@chaibuilder/pages 0.16.7 → 0.16.9

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 (783) hide show
  1. package/dist/{2AITGKQY-BkyIOFBN.cjs → 2AITGKQY-BGZjtYdS.cjs} +1 -1
  2. package/dist/{2AITGKQY-BXiVm60u.js → 2AITGKQY-BmDJ4ubt.js} +2 -2
  3. package/dist/{NCMVHL6D-CnBMv9bF.cjs → NCMVHL6D-CRT9RlLF.cjs} +1 -1
  4. package/dist/{NCMVHL6D-C0JGE8Qr.js → NCMVHL6D-Dk4_u4LD.js} +2 -2
  5. package/dist/{ZDWCUMSJ-jR6OAwVS.cjs → ZDWCUMSJ-DEHPTCDq.cjs} +1 -1
  6. package/dist/{ZDWCUMSJ-Cs-CWvpw.js → ZDWCUMSJ-Ktzz_Tsg.js} +1 -1
  7. package/dist/_arrayEach-BoWUuJyH.js +44 -0
  8. package/dist/_arrayEach-CvixaZ6g.cjs +1 -0
  9. package/dist/abap-DV7Q1lGP.cjs +1 -0
  10. package/dist/abap-Y8Dl9g_6.js +6 -0
  11. package/dist/actionscript-3-DXOxkRa2.cjs +1 -0
  12. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  13. package/dist/ada-D46EKCNf.cjs +1 -0
  14. package/dist/ada-vP6ak0IW.js +6 -0
  15. package/dist/{add-new-language-page-CKwMwrAg.js → add-new-language-page-BLNVUYeo.js} +2 -2
  16. package/dist/{add-new-language-page-UatKeIR2.cjs → add-new-language-page-jU1kF1AN.cjs} +1 -1
  17. package/dist/{add-new-page-BZ2av8fu.cjs → add-new-page-DKyY5ZY7.cjs} +1 -1
  18. package/dist/{add-new-page-BzBMJ3Cn.js → add-new-page-X9ytZJiO.js} +1 -1
  19. package/dist/ai-panel-content-Bi18WMi2.cjs +1 -0
  20. package/dist/ai-panel-content-ChDHNrKg.js +54 -0
  21. package/dist/ai-panel-default-lang-B6tYYmxI.cjs +3 -0
  22. package/dist/ai-panel-default-lang-CxmSDvNu.js +307 -0
  23. package/dist/ai-panel-other-lang-B0umwiEm.cjs +1 -0
  24. package/dist/ai-panel-other-lang-CicrT1I-.js +130 -0
  25. package/dist/ai-prompt-input-BOAqFpAN.js +4027 -0
  26. package/dist/ai-prompt-input-L_bHFj7w.cjs +45 -0
  27. package/dist/{ai-translation-prompt-DH7gwfqx.cjs → ai-translation-prompt-23g3VfWP.cjs} +1 -1
  28. package/dist/{ai-translation-prompt-B8VdHfLY.js → ai-translation-prompt-DoeWqKDZ.js} +1 -1
  29. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  30. package/dist/andromeeda-DVDxRwp5.cjs +1 -0
  31. package/dist/angular-html-DPB4Rf0C.js +32 -0
  32. package/dist/angular-html-KMf2QdtP.cjs +1 -0
  33. package/dist/angular-ts-BxIbo3R1.cjs +1 -0
  34. package/dist/angular-ts-CTOR2ofC.js +21 -0
  35. package/dist/apache-BUjz-sD2.js +6 -0
  36. package/dist/apache-DL1xuH1f.cjs +1 -0
  37. package/dist/apex-CtcXmQ6V.js +6 -0
  38. package/dist/apex-UUd3Occv.cjs +1 -0
  39. package/dist/apl-CjNiDgad.js +16 -0
  40. package/dist/apl-Dj2G2M9w.cjs +1 -0
  41. package/dist/applescript-BPx7YFFu.js +6 -0
  42. package/dist/applescript-COilsSrZ.cjs +1 -0
  43. package/dist/ara-B6Lpq1YJ.cjs +1 -0
  44. package/dist/ara-Z2fSOxSw.js +6 -0
  45. package/dist/arc-CEYgkAY6.js +83 -0
  46. package/dist/arc-DQcgp6fe.cjs +1 -0
  47. package/dist/architecture-U656AL7Q-D9ThnYW7.js +5 -0
  48. package/dist/architecture-U656AL7Q-DXHyXosc.cjs +1 -0
  49. package/dist/architectureDiagram-VXUJARFQ-DJkKSCT6.cjs +36 -0
  50. package/dist/architectureDiagram-VXUJARFQ-xhCIZb18.js +4669 -0
  51. package/dist/asciidoc-B-pCoB3G.js +6 -0
  52. package/dist/asciidoc-DcKqW72n.cjs +1 -0
  53. package/dist/asm-BTWLY5ym.js +6 -0
  54. package/dist/asm-DYMFy-sD.cjs +1 -0
  55. package/dist/astro-CFFExE8Q.js +18 -0
  56. package/dist/astro-DAOP_Xq6.cjs +1 -0
  57. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  58. package/dist/aurora-x-C5IpmIOG.cjs +1 -0
  59. package/dist/awk-Fb0P9dkn.js +6 -0
  60. package/dist/awk-IEszImW6.cjs +1 -0
  61. package/dist/ayu-dark-Cv7nTiif.cjs +1 -0
  62. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  63. package/dist/ballerina-Dr6dU4hP.cjs +1 -0
  64. package/dist/ballerina-oZK-YekG.js +6 -0
  65. package/dist/bat-0FvbqU9S.js +6 -0
  66. package/dist/bat-DGkUhhn2.cjs +1 -0
  67. package/dist/beancount-Bv1Sweoy.cjs +1 -0
  68. package/dist/beancount-DqJEb89h.js +6 -0
  69. package/dist/berry-DZkhZ7K3.cjs +1 -0
  70. package/dist/berry-PwsHPR_K.js +6 -0
  71. package/dist/bibtex-BgA36Z3k.cjs +1 -0
  72. package/dist/bibtex-EULQRLY5.js +6 -0
  73. package/dist/bicep-BorU73w0.js +6 -0
  74. package/dist/bicep-DL0zb-7W.cjs +1 -0
  75. package/dist/blade-BYkiyM-T.cjs +1 -0
  76. package/dist/blade-CRa6j5zS.js +20 -0
  77. package/dist/blockDiagram-VD42YOAC-DqXdnG8y.cjs +122 -0
  78. package/dist/blockDiagram-VD42YOAC-zvZU2M01.js +2368 -0
  79. package/dist/blocks.d.ts +12 -0
  80. package/dist/bsl-9bVgFeM9.cjs +1 -0
  81. package/dist/bsl-NkNNwerW.js +8 -0
  82. package/dist/builder.d.ts +12 -0
  83. package/dist/c-CtlmKnPF.cjs +1 -0
  84. package/dist/c-eeMepfLm.js +6 -0
  85. package/dist/c4Diagram-YG6GDRKO-BpDWqFJi.js +1581 -0
  86. package/dist/c4Diagram-YG6GDRKO-COF9vwh9.cjs +10 -0
  87. package/dist/cadence-02UX7mW8.js +6 -0
  88. package/dist/cadence-DcbmM5v3.cjs +1 -0
  89. package/dist/cairo-DM6WF2e3.js +8 -0
  90. package/dist/cairo-li7sQsxU.cjs +1 -0
  91. package/dist/catppuccin-frappe-Bn4lgmUk.cjs +1 -0
  92. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  93. package/dist/catppuccin-latte-BPtsb8jD.cjs +1 -0
  94. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  95. package/dist/catppuccin-macchiato-BLfpQWhT.cjs +1 -0
  96. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  97. package/dist/catppuccin-mocha-COMta283.cjs +1 -0
  98. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  99. package/dist/channel-DMpDH8Tt.js +5 -0
  100. package/dist/channel-DshxF_w-.cjs +1 -0
  101. package/dist/chunk-4BX2VUAB-DOrHz66s.cjs +1 -0
  102. package/dist/chunk-4BX2VUAB-DcXzX0k2.js +9 -0
  103. package/dist/chunk-55IACEB6-MgFQOjd_.cjs +1 -0
  104. package/dist/chunk-55IACEB6-yEIZuruo.js +8 -0
  105. package/dist/chunk-B4BG7PRW-Bm0X0FwP.js +1376 -0
  106. package/dist/chunk-B4BG7PRW-Dw8okTHN.cjs +165 -0
  107. package/dist/chunk-DI55MBZ5-CY8rQYfB.cjs +220 -0
  108. package/dist/chunk-DI55MBZ5-Dzl4K5YZ.js +1382 -0
  109. package/dist/chunk-FMBD7UC4-DeDzgDPq.cjs +15 -0
  110. package/dist/chunk-FMBD7UC4-DsnO3YB7.js +19 -0
  111. package/dist/chunk-QN33PNHL-D0hZD6ce.cjs +1 -0
  112. package/dist/chunk-QN33PNHL-eCpJSQLd.js +20 -0
  113. package/dist/chunk-QZHKN3VN-0xh2Brzo.js +15 -0
  114. package/dist/chunk-QZHKN3VN-DPT45Qxb.cjs +1 -0
  115. package/dist/chunk-TZMSLE5B-B0DNnH2K.cjs +1 -0
  116. package/dist/chunk-TZMSLE5B-v44khzET.js +64 -0
  117. package/dist/clarity-PKm5CwqM.js +6 -0
  118. package/dist/clarity-gPuvqtpF.cjs +1 -0
  119. package/dist/classDiagram-2ON5EDUG-CatlwrWr.js +16 -0
  120. package/dist/classDiagram-2ON5EDUG-DZwYP3Mp.cjs +1 -0
  121. package/dist/classDiagram-v2-WZHVMYZB-CatlwrWr.js +16 -0
  122. package/dist/classDiagram-v2-WZHVMYZB-DZwYP3Mp.cjs +1 -0
  123. package/dist/clojure-CXJfHrL3.js +6 -0
  124. package/dist/clojure-OUsr1SUl.cjs +1 -0
  125. package/dist/cmake-BJz8BOTU.js +6 -0
  126. package/dist/cmake-jM6P58qY.cjs +1 -0
  127. package/dist/cobol-CcrsCSUZ.cjs +1 -0
  128. package/dist/cobol-HihOMwht.js +10 -0
  129. package/dist/codeowners-Bt9yU6NX.js +6 -0
  130. package/dist/codeowners-QhPK6lIJ.cjs +1 -0
  131. package/dist/codeql-D9-TdUN8.cjs +1 -0
  132. package/dist/codeql-DHkodjjI.js +6 -0
  133. package/dist/coffee-DGBR_nr_.js +8 -0
  134. package/dist/coffee-DycxIFwY.cjs +1 -0
  135. package/dist/common-lisp-C77gR-8i.cjs +1 -0
  136. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  137. package/dist/coq-B0L9upzn.js +6 -0
  138. package/dist/coq-vlPdR5hP.cjs +1 -0
  139. package/dist/cose-bilkent-S5V4N54A-CdqaV_In.js +2609 -0
  140. package/dist/cose-bilkent-S5V4N54A-oJ7CCCne.cjs +1 -0
  141. package/dist/cpp-Cj177cuW.js +18 -0
  142. package/dist/cpp-DvI2Eoso.cjs +1 -0
  143. package/dist/crystal-B_WXhL2O.cjs +1 -0
  144. package/dist/crystal-CRJyc4G-.js +18 -0
  145. package/dist/csharp-C902_8Dy.cjs +1 -0
  146. package/dist/csharp-COJ2mCKr.js +6 -0
  147. package/dist/css-CECN5uSL.js +6 -0
  148. package/dist/css-Do0mp2lm.cjs +1 -0
  149. package/dist/csv-CmYOceLb.js +6 -0
  150. package/dist/csv-DiEdJzSJ.cjs +1 -0
  151. package/dist/cue-D1vJRJEx.cjs +1 -0
  152. package/dist/cue-ZzumE7IT.js +6 -0
  153. package/dist/cypher-atSM3NsM.cjs +1 -0
  154. package/dist/cypher-jpdmjtA6.js +6 -0
  155. package/dist/cytoscape.esm-DdQZKk9f.js +18735 -0
  156. package/dist/cytoscape.esm-DkGgpG6d.cjs +331 -0
  157. package/dist/d-2qe3NhmZ.cjs +1 -0
  158. package/dist/d-CBagWSwH.js +6 -0
  159. package/dist/dagre-6UL2VRFP-DwJsczXN.cjs +4 -0
  160. package/dist/dagre-6UL2VRFP-ylnuUwh7.js +445 -0
  161. package/dist/dark-plus-CRFsux2L.js +4 -0
  162. package/dist/dark-plus-DwC1RSst.cjs +1 -0
  163. package/dist/dart-6ObCrKr9.js +6 -0
  164. package/dist/dart-Ds0_0fwe.cjs +1 -0
  165. package/dist/dax-CcDT-8dH.js +6 -0
  166. package/dist/dax-DbkQa40E.cjs +1 -0
  167. package/dist/defaultLocale-D7EN2tov.js +171 -0
  168. package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
  169. package/dist/{delete-page-Crpwn0Wk.cjs → delete-page-CSuwBSa6.cjs} +1 -1
  170. package/dist/{delete-page-Ck7tD4Hf.js → delete-page-D8gUlElz.js} +1 -1
  171. package/dist/desktop-B93p9R9O.js +6 -0
  172. package/dist/desktop-tn3MFXCZ.cjs +1 -0
  173. package/dist/diagram-PSM6KHXK-DPPOo04u.cjs +24 -0
  174. package/dist/diagram-PSM6KHXK-me6JcFi2.js +534 -0
  175. package/dist/diagram-QEK2KX5R-CfDWc-r0.js +221 -0
  176. package/dist/diagram-QEK2KX5R-atRnaXRv.cjs +43 -0
  177. package/dist/diagram-S2PKOQOG-BzM_Yydz.cjs +24 -0
  178. package/dist/diagram-S2PKOQOG-DvQBNtA7.js +143 -0
  179. package/dist/diff-BxzP2J8R.js +6 -0
  180. package/dist/diff-CA31fCOg.cjs +1 -0
  181. package/dist/{digital-asset-manager-BVrv1-r1.cjs → digital-asset-manager-B1NMros3.cjs} +1 -1
  182. package/dist/{digital-asset-manager-DgLKRrYj.js → digital-asset-manager-C-tiZy6C.js} +1 -1
  183. package/dist/docker-CsHqm9tx.js +6 -0
  184. package/dist/docker-zJpMwmYa.cjs +1 -0
  185. package/dist/dotenv-BMjVjUL1.js +6 -0
  186. package/dist/dotenv-DpcNCNek.cjs +1 -0
  187. package/dist/dracula-BNgwAJ-d.cjs +1 -0
  188. package/dist/dracula-BtZx2Kac.js +4 -0
  189. package/dist/dracula-soft-BHZ7sHFu.cjs +1 -0
  190. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  191. package/dist/dream-maker-BkijXDkm.cjs +1 -0
  192. package/dist/dream-maker-PAx17jaB.js +6 -0
  193. package/dist/{duplicate-page-C7d1f7Ii.js → duplicate-page-BgR_Z5mB.js} +2 -2
  194. package/dist/{duplicate-page-CXUueWfr.cjs → duplicate-page-DfsShaR3.cjs} +1 -1
  195. package/dist/{dynamic-page-selector-DcWDnam4.cjs → dynamic-page-selector-B9LvdmAM.cjs} +1 -1
  196. package/dist/{dynamic-page-selector-D544FjmW.js → dynamic-page-selector-B_Il05Tb.js} +1 -1
  197. package/dist/edge-BYQkOzbF.js +12 -0
  198. package/dist/edge-DaIYN5Mx.cjs +1 -0
  199. package/dist/elixir-BH_wmMK4.cjs +1 -0
  200. package/dist/elixir-Dh036GMp.js +8 -0
  201. package/dist/elm-BtNbw_Cd.js +8 -0
  202. package/dist/elm-Dc4sEBjc.cjs +1 -0
  203. package/dist/emacs-lisp-C1UCIjUO.cjs +1 -0
  204. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  205. package/dist/erDiagram-Q2GNP2WA-BvcqZzam.js +842 -0
  206. package/dist/erDiagram-Q2GNP2WA-CIz-zXL5.cjs +60 -0
  207. package/dist/erb-BqFQADjR.cjs +1 -0
  208. package/dist/erb-CS4zioBv.js +10 -0
  209. package/dist/erlang-CB2cfp6Z.cjs +1 -0
  210. package/dist/erlang-DNcDT8Hi.js +8 -0
  211. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  212. package/dist/everforest-dark-_sBMomR1.cjs +1 -0
  213. package/dist/everforest-light-BbXl82Em.js +4 -0
  214. package/dist/everforest-light-H0xoYxl0.cjs +1 -0
  215. package/dist/fennel-Bz9-EMMc.cjs +1 -0
  216. package/dist/fennel-N4WcXuKx.js +6 -0
  217. package/dist/fish-BTDEUgqH.js +6 -0
  218. package/dist/fish-DwmQKRZi.cjs +1 -0
  219. package/dist/flowDiagram-NV44I4VS-DNDFiS4P.js +1627 -0
  220. package/dist/flowDiagram-NV44I4VS-H3UO6GU6.cjs +162 -0
  221. package/dist/fluent-BMXUxfv1.js +6 -0
  222. package/dist/fluent-CJtpNuaO.cjs +1 -0
  223. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  224. package/dist/fortran-fixed-form-rAbNFykM.cjs +1 -0
  225. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  226. package/dist/fortran-free-form-DRAcQkel.cjs +1 -0
  227. package/dist/fsharp-CYOiIVNx.js +8 -0
  228. package/dist/fsharp-DVcRF7k-.cjs +1 -0
  229. package/dist/ganttDiagram-LVOFAZNH-3uLir5Ok.cjs +267 -0
  230. package/dist/ganttDiagram-LVOFAZNH-CuEk_EPv.js +2506 -0
  231. package/dist/gdresource-BwtMIoBm.js +10 -0
  232. package/dist/gdresource-CcLusmd_.cjs +1 -0
  233. package/dist/gdscript-BifyeYhI.js +6 -0
  234. package/dist/gdscript-DSegQKMB.cjs +1 -0
  235. package/dist/gdshader-Bk8fF6yr.js +6 -0
  236. package/dist/gdshader-DsmqQl4t.cjs +1 -0
  237. package/dist/genie-Dy2rU8CF.cjs +1 -0
  238. package/dist/genie-DzUvd7U9.js +6 -0
  239. package/dist/gherkin-BmiEVBJ1.cjs +1 -0
  240. package/dist/gherkin-DHRaV0YP.js +6 -0
  241. package/dist/git-commit-Bd32YZ0K.js +8 -0
  242. package/dist/git-commit-DlVDzq9L.cjs +1 -0
  243. package/dist/git-rebase-Bn4RLd7u.cjs +1 -0
  244. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  245. package/dist/gitGraph-F6HP7TQM-BNgutOCt.js +5 -0
  246. package/dist/gitGraph-F6HP7TQM-DnzvXoTf.cjs +1 -0
  247. package/dist/gitGraphDiagram-NY62KEGX-CpjW-tAs.cjs +65 -0
  248. package/dist/gitGraphDiagram-NY62KEGX-DJ--wipu.js +712 -0
  249. package/dist/github-dark-BKL9xNgN.cjs +1 -0
  250. package/dist/github-dark-DenFmJkN.js +4 -0
  251. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  252. package/dist/github-dark-default-Dsv5MuSi.cjs +1 -0
  253. package/dist/github-dark-dimmed-CtB9hz8U.cjs +1 -0
  254. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  255. package/dist/github-dark-high-contrast-BqZVM-jF.cjs +1 -0
  256. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  257. package/dist/github-light-BFTOhCbz.cjs +1 -0
  258. package/dist/github-light-JYsPkUQd.js +4 -0
  259. package/dist/github-light-default-BZoWH9dH.cjs +1 -0
  260. package/dist/github-light-default-D99KPAby.js +4 -0
  261. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  262. package/dist/github-light-high-contrast-Ks3kPGJU.cjs +1 -0
  263. package/dist/gleam-Bv284lvN.js +6 -0
  264. package/dist/gleam-DHVuTCr7.cjs +1 -0
  265. package/dist/glimmer-js-CzmC7OX8.cjs +1 -0
  266. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  267. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  268. package/dist/glimmer-ts-DLN2_wRt.cjs +1 -0
  269. package/dist/glsl-CQekZ3Zq.cjs +1 -0
  270. package/dist/glsl-CkUcVZNK.js +8 -0
  271. package/dist/gnuplot-CDPKvI9X.cjs +1 -0
  272. package/dist/gnuplot-yPG9-sE_.js +6 -0
  273. package/dist/go-ChxJuLYK.js +6 -0
  274. package/dist/go-epHseFUa.cjs +1 -0
  275. package/dist/graph-BJDrjORS.js +244 -0
  276. package/dist/graph-BLd2spTm.cjs +1 -0
  277. package/dist/graphql-BnP1YhXQ.cjs +1 -0
  278. package/dist/graphql-CBu2ehBn.js +14 -0
  279. package/dist/groovy-CJQTphOW.js +6 -0
  280. package/dist/groovy-D7VuDBXz.cjs +1 -0
  281. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  282. package/dist/gruvbox-dark-hard-CUGefKS6.cjs +1 -0
  283. package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +1 -0
  284. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  285. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  286. package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +1 -0
  287. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  288. package/dist/gruvbox-light-hard-De4IuseP.cjs +1 -0
  289. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  290. package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +1 -0
  291. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  292. package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +1 -0
  293. package/dist/hack-BaDv2o40.cjs +1 -0
  294. package/dist/hack-ItRNKiEb.js +10 -0
  295. package/dist/haml-Bk21rGjP.cjs +1 -0
  296. package/dist/haml-NZLVzu_R.js +10 -0
  297. package/dist/handlebars-CJJi3lrU.cjs +1 -0
  298. package/dist/handlebars-mxStpSE7.js +14 -0
  299. package/dist/haskell-BShesV2P.cjs +1 -0
  300. package/dist/haskell-WeIwNIP6.js +6 -0
  301. package/dist/haxe-Bo5XuRS0.cjs +1 -0
  302. package/dist/haxe-TztHsm5T.js +6 -0
  303. package/dist/hcl-CrZnvm-1.cjs +1 -0
  304. package/dist/hcl-D438OF-I.js +6 -0
  305. package/dist/hjson-CEESwTUP.cjs +1 -0
  306. package/dist/hjson-DYBUbqOl.js +6 -0
  307. package/dist/hlsl-Bk8TCZNL.js +6 -0
  308. package/dist/hlsl-CyvYRIb9.cjs +1 -0
  309. package/dist/houston-BDYrDoDW.js +4 -0
  310. package/dist/houston-T57H3gQZ.cjs +1 -0
  311. package/dist/html-B50bmoVb.js +10 -0
  312. package/dist/html-C62Zf2h4.cjs +1 -0
  313. package/dist/html-derivative-C6bxFbFW.js +8 -0
  314. package/dist/html-derivative-NDb86jON.cjs +1 -0
  315. package/dist/http-BPlLI56k.cjs +1 -0
  316. package/dist/http-DLvAkeD-.js +14 -0
  317. package/dist/hurl-BQGBr8gH.cjs +1 -0
  318. package/dist/hurl-CgkFN90t.js +12 -0
  319. package/dist/hxml-GbqSQCLa.js +8 -0
  320. package/dist/hxml-vnw7fzrV.cjs +1 -0
  321. package/dist/hy-Brt5EZ7-.js +6 -0
  322. package/dist/hy-a1E2Ed6P.cjs +1 -0
  323. package/dist/{image-editor-CnDnY97s.cjs → image-editor-EmBN_Nn_.cjs} +1 -1
  324. package/dist/imba-CR1Q6r17.cjs +1 -0
  325. package/dist/imba-CimUv-Uh.js +6 -0
  326. package/dist/{index-DdQbaicX.js → index-CSOKPmkj.js} +120 -113
  327. package/dist/index-D_4YaLhN.cjs +5 -0
  328. package/dist/index.cjs +1 -1
  329. package/dist/index.d.ts +12 -0
  330. package/dist/index.js +6 -6
  331. package/dist/info-NVLQJR56-cQ8VboSE.js +5 -0
  332. package/dist/info-NVLQJR56-nlYJye66.cjs +1 -0
  333. package/dist/infoDiagram-ER5ION4S-BYBSnMk9.cjs +2 -0
  334. package/dist/infoDiagram-ER5ION4S-D1ovR6Sb.js +24 -0
  335. package/dist/ini-BZIuRIvJ.js +6 -0
  336. package/dist/ini-Dpu3Xy2p.cjs +1 -0
  337. package/dist/init-CHZsXQcr.cjs +1 -0
  338. package/dist/init-DjUOC4st.js +16 -0
  339. package/dist/java--6gf61wy.cjs +1 -0
  340. package/dist/java-DY6VlHhP.js +6 -0
  341. package/dist/javascript-C25yR2R2.js +6 -0
  342. package/dist/javascript-DgmXW4Ha.cjs +1 -0
  343. package/dist/jinja-6NmewwV8.cjs +1 -0
  344. package/dist/jinja-CFW5uAwY.js +11 -0
  345. package/dist/jison-CD9Qsaj0.cjs +1 -0
  346. package/dist/jison-DdreslRX.js +8 -0
  347. package/dist/journeyDiagram-XKPGCS4Q-D-YRkdmZ.cjs +139 -0
  348. package/dist/journeyDiagram-XKPGCS4Q-aab6wkCY.js +836 -0
  349. package/dist/json-DxJze_jm.js +6 -0
  350. package/dist/json-YkPizm35.cjs +1 -0
  351. package/dist/{json-diff-viewer-KCkYwJMA.cjs → json-diff-viewer-BafhQd3C.cjs} +2 -2
  352. package/dist/{json-diff-viewer-BhWTP1YY.js → json-diff-viewer-eh2Twply.js} +1 -1
  353. package/dist/json5-BT4Fjg39.js +6 -0
  354. package/dist/json5-CCgFZiQn.cjs +1 -0
  355. package/dist/jsonc-CHjZD8gR.js +6 -0
  356. package/dist/jsonc-CKPHIcXW.cjs +1 -0
  357. package/dist/jsonl-BGuvDmy9.js +6 -0
  358. package/dist/jsonl-Dq56Hab-.cjs +1 -0
  359. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  360. package/dist/jsonnet-Csh7E68F.cjs +1 -0
  361. package/dist/jssm-BcADi6EI.js +6 -0
  362. package/dist/jssm-D0M9iZPY.cjs +1 -0
  363. package/dist/jsx-BtKADgXT.js +6 -0
  364. package/dist/jsx-DLX6UGgg.cjs +1 -0
  365. package/dist/julia--2-efCjg.js +16 -0
  366. package/dist/julia-DimQn8rn.cjs +1 -0
  367. package/dist/kanagawa-dragon-BJZF7xDr.cjs +1 -0
  368. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  369. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  370. package/dist/kanagawa-lotus-BhgzmRV4.cjs +1 -0
  371. package/dist/kanagawa-wave-BgJip59C.cjs +1 -0
  372. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  373. package/dist/kanban-definition-3W4ZIXB7-BDK6FtYy.js +721 -0
  374. package/dist/kanban-definition-3W4ZIXB7-D_bnY8Es.cjs +89 -0
  375. package/dist/kdl-BNOv9TC3.js +6 -0
  376. package/dist/kdl-CDG1p2Qi.cjs +1 -0
  377. package/dist/kotlin-BHZjvNqT.cjs +1 -0
  378. package/dist/kotlin-ByBMgTeR.js +6 -0
  379. package/dist/kusto-BgZ0fOqg.cjs +1 -0
  380. package/dist/kusto-VWFLl2T0.js +6 -0
  381. package/dist/{lang-panel-by1VOWvc.js → lang-panel-Dha1mI9s.js} +33 -33
  382. package/dist/{lang-panel-tOddhH70.cjs → lang-panel-koRXBdpN.cjs} +1 -1
  383. package/dist/laserwave--izBLY1I.cjs +1 -0
  384. package/dist/laserwave-6a00oqik.js +4 -0
  385. package/dist/latex-CO8r39zT.js +8 -0
  386. package/dist/latex-Xma1qZep.cjs +1 -0
  387. package/dist/layout-AXx0t5i6.cjs +1 -0
  388. package/dist/layout-B6VyrpKo.js +1223 -0
  389. package/dist/lean-BCqiTZhG.cjs +1 -0
  390. package/dist/lean-k2QBx9cb.js +6 -0
  391. package/dist/less-B1GLI2Di.js +6 -0
  392. package/dist/less-Dtg8mm6P.cjs +1 -0
  393. package/dist/light-plus-B5D0le0o.cjs +1 -0
  394. package/dist/light-plus-CZuVqSLX.js +4 -0
  395. package/dist/linear-CBvDLesx.cjs +1 -0
  396. package/dist/linear-DmFX6iHR.js +259 -0
  397. package/dist/liquid-CHzkx3jT.js +14 -0
  398. package/dist/liquid-DjlCV7Vm.cjs +1 -0
  399. package/dist/llvm-DcRvQ_r8.cjs +1 -0
  400. package/dist/llvm-co1rIKs3.js +6 -0
  401. package/dist/log-Al8wyEFV.js +6 -0
  402. package/dist/log-CjTZ0gSB.cjs +1 -0
  403. package/dist/logo-BAktp_5i.cjs +1 -0
  404. package/dist/logo-DBa4JDzV.js +6 -0
  405. package/dist/lua-BfOnSJPp.cjs +1 -0
  406. package/dist/lua-kX5WP_P5.js +8 -0
  407. package/dist/luau-DTep-u3e.cjs +1 -0
  408. package/dist/luau-DtBSxLyz.js +6 -0
  409. package/dist/make-CsMclxtr.js +6 -0
  410. package/dist/make-NcdIe21U.cjs +1 -0
  411. package/dist/{mark-as-template-BUCysjr2.cjs → mark-as-template-BHkftF1C.cjs} +1 -1
  412. package/dist/{mark-as-template-ngqCvlhA.js → mark-as-template-DojgcJFD.js} +1 -1
  413. package/dist/markdown-Byu9Sdmq.cjs +1 -0
  414. package/dist/markdown-CrScaQ96.js +6 -0
  415. package/dist/marko-Cvx4TamJ.cjs +1 -0
  416. package/dist/marko-ls0Jg2j8.js +14 -0
  417. package/dist/material-theme-D6KBX41T.js +4 -0
  418. package/dist/material-theme-Dj0-OyRN.cjs +1 -0
  419. package/dist/material-theme-darker-CkRroheE.js +4 -0
  420. package/dist/material-theme-darker-Dvfs29ir.cjs +1 -0
  421. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  422. package/dist/material-theme-lighter-EU3ZGl_r.cjs +1 -0
  423. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  424. package/dist/material-theme-ocean-px_3Pwqa.cjs +1 -0
  425. package/dist/material-theme-palenight-38jxvsGX.cjs +1 -0
  426. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  427. package/dist/matlab-BOAaUVP0.js +6 -0
  428. package/dist/matlab-CHTOL9Kx.cjs +1 -0
  429. package/dist/mdc-DEPKJPdx.cjs +1 -0
  430. package/dist/mdc-uaivvctV.js +12 -0
  431. package/dist/mdx-BOhZZUJ8.js +6 -0
  432. package/dist/mdx-CjwI68TB.cjs +1 -0
  433. package/dist/mermaid-B0ixDHKN.js +6 -0
  434. package/dist/mermaid-XEfjk_VN.cjs +1 -0
  435. package/dist/mermaid-parser.core-Crve7Cv1.js +13256 -0
  436. package/dist/mermaid-parser.core-Df9eyFSv.cjs +128 -0
  437. package/dist/mermaid.core-DY8gIrXk.cjs +196 -0
  438. package/dist/mermaid.core-e6RNUZK7.js +14260 -0
  439. package/dist/min-dark-C7ak0t6c.js +4 -0
  440. package/dist/min-dark-tt5o_I5e.cjs +1 -0
  441. package/dist/min-light-CKFxVcPp.js +4 -0
  442. package/dist/min-light-tmTHl_CQ.cjs +1 -0
  443. package/dist/mindmap-definition-VGOIOE7T-BqZKJ_7z.js +787 -0
  444. package/dist/mindmap-definition-VGOIOE7T-CFYCEGsR.cjs +68 -0
  445. package/dist/mipsasm-BSlRcFIy.cjs +1 -0
  446. package/dist/mipsasm-CTx18fBl.js +6 -0
  447. package/dist/mojo-BD611d7o.js +6 -0
  448. package/dist/mojo-BQ8pQfYA.cjs +1 -0
  449. package/dist/monokai-C1KBYcO0.js +4 -0
  450. package/dist/monokai-DMIxv6MM.cjs +1 -0
  451. package/dist/move-Bm1vlCWg.cjs +1 -0
  452. package/dist/move-F-dICmj2.js +6 -0
  453. package/dist/narrat-CBeKHgTl.cjs +1 -0
  454. package/dist/narrat-DmhDCBs-.js +6 -0
  455. package/dist/nextflow-0_vzQJwQ.cjs +1 -0
  456. package/dist/nextflow-BAAEJxI_.js +6 -0
  457. package/dist/nginx-5vhPAEw3.js +8 -0
  458. package/dist/nginx-ByVOUyIE.cjs +1 -0
  459. package/dist/night-owl-BN78kThQ.cjs +1 -0
  460. package/dist/night-owl-Bm2rzalh.js +4 -0
  461. package/dist/nim-Bqmp5Of3.cjs +1 -0
  462. package/dist/nim-QAjRdh9w.js +20 -0
  463. package/dist/nix-B_7Vy2bT.js +6 -0
  464. package/dist/nix-BoOZl1xr.cjs +1 -0
  465. package/dist/{no-language-page-content-CzTbZ07M.cjs → no-language-page-content-BjlCydsa.cjs} +1 -1
  466. package/dist/{no-language-page-content-Dz3GSvnO.js → no-language-page-content-ZlibO6-a.js} +1 -1
  467. package/dist/nord-CC5OiUXg.js +4 -0
  468. package/dist/nord-Ca5AGUWc.cjs +1 -0
  469. package/dist/nushell-D8j3dhT-.js +6 -0
  470. package/dist/nushell-nGrB_wpI.cjs +1 -0
  471. package/dist/objective-c-Itk8tzmv.js +6 -0
  472. package/dist/objective-c-RjkWwFge.cjs +1 -0
  473. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  474. package/dist/objective-cpp-HnfhWwRe.cjs +1 -0
  475. package/dist/ocaml-Cx8ewW_A.cjs +1 -0
  476. package/dist/ocaml-eSVK32Eg.js +6 -0
  477. package/dist/one-dark-pro-C09VQHwB.cjs +1 -0
  478. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  479. package/dist/one-light-020-h_lv.cjs +1 -0
  480. package/dist/one-light-D9sNaUtq.js +4 -0
  481. package/dist/ordinal-CagbB1m8.cjs +1 -0
  482. package/dist/ordinal-DfAQgscy.js +61 -0
  483. package/dist/packet-BFZMPI3H-BNOgRfy4.js +5 -0
  484. package/dist/packet-BFZMPI3H-CmnL1d8H.cjs +1 -0
  485. package/dist/{page-creator-D2iEu92e.js → page-creator-CYxW-uMk.js} +2 -2
  486. package/dist/{page-creator-BICVMC59.cjs → page-creator-D-HTXuwL.cjs} +1 -1
  487. package/dist/{page-lock-request-DjfV2kmK.js → page-lock-request-DIqND4Zp.js} +5 -5
  488. package/dist/{page-lock-request-hlvjC2uX.cjs → page-lock-request-ggTN32LL.cjs} +1 -1
  489. package/dist/{page-locked-by-dialog-NpUOJvWZ.cjs → page-locked-by-dialog-DF_r3NKB.cjs} +1 -1
  490. package/dist/{page-locked-by-dialog-m6K_uaE8.js → page-locked-by-dialog-Dv1QMUs2.js} +1 -1
  491. package/dist/{page-manager-new-C2jmBaFF.cjs → page-manager-new-B7nEY5DJ.cjs} +1 -1
  492. package/dist/{page-manager-new-DshyH-mV.js → page-manager-new-iuNdn54Y.js} +56 -56
  493. package/dist/{page-manager-search-and-filter-D_g51CM8.cjs → page-manager-search-and-filter-BuQLf3EG.cjs} +1 -1
  494. package/dist/{page-manager-search-and-filter-DCg7Fqi_.js → page-manager-search-and-filter-Dvt-nBOL.js} +1 -1
  495. package/dist/{page-revisions-content-N_qdjfDX.cjs → page-revisions-content-CR_65Pri.cjs} +1 -1
  496. package/dist/{page-revisions-content-DZzxttKH.js → page-revisions-content-DH30uwKy.js} +18 -18
  497. package/dist/pages.css +1 -1
  498. package/dist/pascal-DBu9vQ2o.cjs +1 -0
  499. package/dist/pascal-xy8pJNns.js +6 -0
  500. package/dist/perl-CxWZPeDZ.cjs +1 -0
  501. package/dist/perl-DkVrgJBg.js +16 -0
  502. package/dist/php-BLXVJphD.cjs +1 -0
  503. package/dist/php-j2zCzTEz.js +18 -0
  504. package/dist/pie-7BOR55EZ-B4yrare5.js +5 -0
  505. package/dist/pie-7BOR55EZ-CM2pRchz.cjs +1 -0
  506. package/dist/pieDiagram-ADFJNKIX-C_B1s9Ov.cjs +30 -0
  507. package/dist/pieDiagram-ADFJNKIX-DhRe-2Yk.js +162 -0
  508. package/dist/pkl-C-zSNmaA.js +6 -0
  509. package/dist/pkl-Dvyry4Rm.cjs +1 -0
  510. package/dist/plastic-CSTz3KZp.js +4 -0
  511. package/dist/plastic-r5piqq-S.cjs +1 -0
  512. package/dist/plsql-IJkoPJ9P.cjs +1 -0
  513. package/dist/plsql-pVbGZfOv.js +6 -0
  514. package/dist/po-BNfHvqmm.js +6 -0
  515. package/dist/po-Rhu6MvnX.cjs +1 -0
  516. package/dist/poimandres-BLP3NNjc.cjs +1 -0
  517. package/dist/poimandres-C-VADXHD.js +4 -0
  518. package/dist/polar-BtWqSUq2.cjs +1 -0
  519. package/dist/polar-CAZahv3u.js +6 -0
  520. package/dist/postcss-05aHdL-n.js +6 -0
  521. package/dist/postcss-Dh97DcaJ.cjs +1 -0
  522. package/dist/powerquery-BGL6VIw7.cjs +1 -0
  523. package/dist/powerquery-DI9HkTvs.js +6 -0
  524. package/dist/powershell-BiEPMjy-.cjs +1 -0
  525. package/dist/powershell-Clc4ydu-.js +6 -0
  526. package/dist/prisma-Dp473sn0.cjs +1 -0
  527. package/dist/prisma-FZjmVtSl.js +6 -0
  528. package/dist/prolog-C5-yg4TO.js +6 -0
  529. package/dist/prolog-N1U-3UeF.cjs +1 -0
  530. package/dist/proto-MmCPeFAD.js +6 -0
  531. package/dist/proto-kd7Vn2fe.cjs +1 -0
  532. package/dist/{publish-pages-content-Dtu7807d.cjs → publish-pages-content-DOniOjSV.cjs} +1 -1
  533. package/dist/{publish-pages-content-CRvy9fwt.js → publish-pages-content-fwqyxl_3.js} +6 -6
  534. package/dist/pug-DiGNE7sm.cjs +1 -0
  535. package/dist/pug-XOw9Q1Ho.js +12 -0
  536. package/dist/puppet-CUJHmnxV.js +6 -0
  537. package/dist/puppet-cDQP_ZC_.cjs +1 -0
  538. package/dist/purescript-DMxb59gF.cjs +1 -0
  539. package/dist/purescript-rUfGld-4.js +6 -0
  540. package/dist/python-BFNSHbwJ.js +6 -0
  541. package/dist/python-s9jfVbew.cjs +1 -0
  542. package/dist/qml-beorq0E4.cjs +1 -0
  543. package/dist/qml-rTNXsquU.js +8 -0
  544. package/dist/qmldir-BInDYbpo.js +6 -0
  545. package/dist/qmldir-DNF9H2ir.cjs +1 -0
  546. package/dist/qss-AeJTysr_.js +6 -0
  547. package/dist/qss-DwA_oiAM.cjs +1 -0
  548. package/dist/quadrantDiagram-AYHSOK5B-CrS56DWV.cjs +7 -0
  549. package/dist/quadrantDiagram-AYHSOK5B-DSaDCScU.js +1024 -0
  550. package/dist/r-Bm0uF0U2.js +6 -0
  551. package/dist/r-ChIwckeM.cjs +1 -0
  552. package/dist/racket-B83wSAja.js +6 -0
  553. package/dist/racket-D4laxZit.cjs +1 -0
  554. package/dist/radar-NHE76QYJ-CN3oBECV.js +5 -0
  555. package/dist/radar-NHE76QYJ-CPX8AaYO.cjs +1 -0
  556. package/dist/raku-DHySPsLw.cjs +1 -0
  557. package/dist/raku-nEQ4ZJJ7.js +6 -0
  558. package/dist/razor-DgCbant-.cjs +1 -0
  559. package/dist/razor-Dh1wKTmh.js +10 -0
  560. package/dist/red-7y8PH7HH.js +4 -0
  561. package/dist/red-BQGOv1D5.cjs +1 -0
  562. package/dist/reg-CevkCKuZ.cjs +1 -0
  563. package/dist/reg-m_s_Kiip.js +6 -0
  564. package/dist/regexp-BazyLpPg.js +6 -0
  565. package/dist/regexp-DabTWNLE.cjs +1 -0
  566. package/dist/rel-BS5APza7.cjs +1 -0
  567. package/dist/rel-BcRfyd6Q.js +6 -0
  568. package/dist/render.d.ts +12 -0
  569. package/dist/requirementDiagram-UZGBJVZJ-CbpHc5TO.js +852 -0
  570. package/dist/requirementDiagram-UZGBJVZJ-D60OatrS.cjs +64 -0
  571. package/dist/riscv-BnGFr6V7.cjs +1 -0
  572. package/dist/riscv-Ce8MAQLP.js +6 -0
  573. package/dist/rose-pine-Cr4kwgAY.js +4 -0
  574. package/dist/rose-pine-Dynd1SQq.cjs +1 -0
  575. package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
  576. package/dist/rose-pine-dawn-DwrpEjkh.cjs +1 -0
  577. package/dist/rose-pine-moon-8HmiewSG.cjs +1 -0
  578. package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
  579. package/dist/rosmsg-C7VSFzUC.cjs +1 -0
  580. package/dist/rosmsg-Cz0w1km8.js +6 -0
  581. package/dist/rst-CcbeA9zE.js +22 -0
  582. package/dist/rst-D08gsKw8.cjs +1 -0
  583. package/dist/ruby-B5H7kBtd.cjs +1 -0
  584. package/dist/ruby-DMPw6uKF.js +30 -0
  585. package/dist/runtime.d.ts +12 -0
  586. package/dist/rust-CLzF9zIN.js +6 -0
  587. package/dist/rust-CNeTMPbB.cjs +1 -0
  588. package/dist/sankeyDiagram-TZEHDZUN-AFuyaZMZ.js +810 -0
  589. package/dist/sankeyDiagram-TZEHDZUN-DklD-Q91.cjs +10 -0
  590. package/dist/sas-D5Fn8Q38.cjs +1 -0
  591. package/dist/sas-fpEvgATw.js +8 -0
  592. package/dist/sass-DxHp5rTx.js +6 -0
  593. package/dist/sass-vyo-bUwh.cjs +1 -0
  594. package/dist/{save-to-lib-BE0-MXVv.js → save-to-lib-DKP-iiLU.js} +1 -1
  595. package/dist/{save-to-lib-XnTNVHzy.cjs → save-to-lib-DmZbKkm9.cjs} +1 -1
  596. package/dist/scala-D4grkFkl.js +6 -0
  597. package/dist/scala-ZSekD-8-.cjs +1 -0
  598. package/dist/scheme-BCRWuEm4.js +6 -0
  599. package/dist/scheme-vM0LdD-_.cjs +1 -0
  600. package/dist/scss-B1FaCqwR.js +8 -0
  601. package/dist/scss-CKlduTMv.cjs +1 -0
  602. package/dist/sdbl-B7T8abf4.js +6 -0
  603. package/dist/sdbl-DeWT5r4i.cjs +1 -0
  604. package/dist/selected-block-display-BPkRbRtv.js +43632 -0
  605. package/dist/selected-block-display-CMhOKq0c.cjs +541 -0
  606. package/dist/{seo-panel-dIE8Wi40.js → seo-panel-D1FyS42r.js} +17 -17
  607. package/dist/{seo-panel-Ce3uf7XT.cjs → seo-panel-l-VdkTzp.cjs} +1 -1
  608. package/dist/sequenceDiagram-WL72ISMW-CotOH2Xj.cjs +145 -0
  609. package/dist/sequenceDiagram-WL72ISMW-p_o77zn1.js +2522 -0
  610. package/dist/server.cjs +206 -121
  611. package/dist/server.d.ts +12 -0
  612. package/dist/server.js +775 -690
  613. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  614. package/dist/shaderlab-DGJjQHxC.cjs +1 -0
  615. package/dist/{shared-json-ld-DiVirR4t.cjs → shared-json-ld-0VORoKPu.cjs} +1 -1
  616. package/dist/{shared-json-ld-UCI8GeFi.js → shared-json-ld-jn36kQ1J.js} +48 -48
  617. package/dist/shellscript-DYWjN7qW.cjs +1 -0
  618. package/dist/shellscript-InADTalH.js +6 -0
  619. package/dist/shellsession-DMUSXX8m.cjs +1 -0
  620. package/dist/shellsession-DiDJNQdy.js +8 -0
  621. package/dist/slack-dark-akqwQ7ED.cjs +1 -0
  622. package/dist/slack-dark-i7wN4OET.js +4 -0
  623. package/dist/slack-ochin-BoQQWmTv.cjs +1 -0
  624. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  625. package/dist/{slug-input-BbkCbVMY.cjs → slug-input-CPHwulQv.cjs} +1 -1
  626. package/dist/{slug-input-DTA7c8c6.js → slug-input-DPMG1pMZ.js} +1 -1
  627. package/dist/smalltalk-BNs6hxu4.cjs +1 -0
  628. package/dist/smalltalk-BlI1_OkM.js +6 -0
  629. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  630. package/dist/snazzy-light-D_IwRieF.cjs +1 -0
  631. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  632. package/dist/solarized-dark-gmm-WbDC.cjs +1 -0
  633. package/dist/solarized-light-BheCkDPT.js +4 -0
  634. package/dist/solarized-light-DzcxRSZP.cjs +1 -0
  635. package/dist/solidity-CYggdHYd.cjs +1 -0
  636. package/dist/solidity-CneOhxmR.js +6 -0
  637. package/dist/soy-C1-6njHa.js +8 -0
  638. package/dist/soy-CDFPDtGX.cjs +1 -0
  639. package/dist/sparql-6Cg9ppCl.cjs +1 -0
  640. package/dist/sparql-B0KWFEri.js +8 -0
  641. package/dist/splunk-CRXR8A9s.js +6 -0
  642. package/dist/splunk-CWPivao_.cjs +1 -0
  643. package/dist/sql-Cn_v3PB0.js +6 -0
  644. package/dist/sql-DhUUVgH1.cjs +1 -0
  645. package/dist/ssh-config-B93wBIBa.cjs +1 -0
  646. package/dist/ssh-config-DP-hNVbF.js +6 -0
  647. package/dist/stata-B8c5fTjX.js +8 -0
  648. package/dist/stata-DCWFCQQG.cjs +1 -0
  649. package/dist/stateDiagram-FKZM4ZOC-B1pfSzZB.cjs +1 -0
  650. package/dist/stateDiagram-FKZM4ZOC-Ch8gd7OX.js +264 -0
  651. package/dist/stateDiagram-v2-4FDKWEC3-BDxmTUgh.js +16 -0
  652. package/dist/stateDiagram-v2-4FDKWEC3-DCj4svbU.cjs +1 -0
  653. package/dist/stylus-B64Bt0D4.cjs +1 -0
  654. package/dist/stylus-CyKEU1Ej.js +6 -0
  655. package/dist/svelte-5UasyOg7.js +14 -0
  656. package/dist/svelte-DFg_x5i4.cjs +1 -0
  657. package/dist/swift-9UzSvamq.js +6 -0
  658. package/dist/swift-BMbGdc3j.cjs +1 -0
  659. package/dist/synthwave-84-BBRLOmNT.cjs +1 -0
  660. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  661. package/dist/system-verilog-BCm7smPJ.js +6 -0
  662. package/dist/system-verilog-BFclLo9e.cjs +1 -0
  663. package/dist/systemd-C-4qm6XH.js +6 -0
  664. package/dist/systemd-Dtw7P4tb.cjs +1 -0
  665. package/dist/tailwind.d.ts +12 -0
  666. package/dist/talonscript-CFF3LF_O.js +6 -0
  667. package/dist/talonscript-D8SvZJVc.cjs +1 -0
  668. package/dist/tasl--DC4oX-L.cjs +1 -0
  669. package/dist/tasl-Cg_WBUAe.js +6 -0
  670. package/dist/tcl-0Q0H86Yn.cjs +1 -0
  671. package/dist/tcl-DN7buRTF.js +6 -0
  672. package/dist/templ-BDNMUns0.cjs +1 -0
  673. package/dist/templ-peLZIM2D.js +12 -0
  674. package/dist/terraform-C0RDrmWi.cjs +1 -0
  675. package/dist/terraform-DGvcn9zM.js +6 -0
  676. package/dist/tex-BUUuwxQS.js +8 -0
  677. package/dist/tex-By7qnogv.cjs +1 -0
  678. package/dist/{theme-panel-footer-uGKDjNbs.cjs → theme-panel-footer-DsZ67xQ8.cjs} +1 -1
  679. package/dist/{theme-panel-footer-BjRPU7lq.js → theme-panel-footer-XREndTvO.js} +1 -1
  680. package/dist/timeline-definition-IT6M3QCI-CK1EW7lG.cjs +61 -0
  681. package/dist/timeline-definition-IT6M3QCI-CmX-2kfr.js +801 -0
  682. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  683. package/dist/tokyo-night-GOhjzM5y.cjs +1 -0
  684. package/dist/toml-DY62mUL_.js +6 -0
  685. package/dist/toml-Q64DoSvG.cjs +1 -0
  686. package/dist/treemap-KMMF4GRG-B51FyMCU.js +5 -0
  687. package/dist/treemap-KMMF4GRG-D5Rm845j.cjs +1 -0
  688. package/dist/ts-tags-DILCom6A.cjs +1 -0
  689. package/dist/ts-tags-ioVe2PKw.js +41 -0
  690. package/dist/tsv-BtvSkaG0.js +6 -0
  691. package/dist/tsv-DqNGnuVj.cjs +1 -0
  692. package/dist/tsx-B8rCNbgL.js +6 -0
  693. package/dist/tsx-DIpfUf9u.cjs +1 -0
  694. package/dist/turtle-DipIidr5.cjs +1 -0
  695. package/dist/turtle-_H59FV7D.js +6 -0
  696. package/dist/twig-B42NGISI.cjs +1 -0
  697. package/dist/twig-CcRLVyUg.js +18 -0
  698. package/dist/typescript-RycA9KXf.js +6 -0
  699. package/dist/typescript-b48wo4zk.cjs +1 -0
  700. package/dist/typespec-CLqB-2XS.cjs +1 -0
  701. package/dist/typespec-Djmco60m.js +6 -0
  702. package/dist/typst-Cqq4j4V-.cjs +1 -0
  703. package/dist/typst-D_1QKWns.js +6 -0
  704. package/dist/{unmark-as-template-Dbhko_72.cjs → unmark-as-template-BB_2lvTh.cjs} +1 -1
  705. package/dist/{unmark-as-template-BWviVI2t.js → unmark-as-template-VHopisw3.js} +1 -1
  706. package/dist/{unpublish-page-BzI9EFF9.js → unpublish-page-Cq5OwCf-.js} +1 -1
  707. package/dist/{unpublish-page-D0EmMryc.cjs → unpublish-page-DJKgb2OG.cjs} +1 -1
  708. package/dist/use-page-expand-manager-B5Y2KS1c.cjs +1 -0
  709. package/dist/utils.d.ts +12 -0
  710. package/dist/v-81C2s01-.cjs +1 -0
  711. package/dist/v-BPCNiyYe.js +6 -0
  712. package/dist/vala-CsAYdCD2.cjs +1 -0
  713. package/dist/vala-uxaPR7d1.js +6 -0
  714. package/dist/vb-AiTMb16X.cjs +1 -0
  715. package/dist/vb-D8_c5-KN.js +6 -0
  716. package/dist/verilog-AMohXZcN.cjs +1 -0
  717. package/dist/verilog-B-bybjPF.js +6 -0
  718. package/dist/vesper-B59Iw4gV.cjs +1 -0
  719. package/dist/vesper-BckBta1U.js +4 -0
  720. package/dist/vhdl-CUlNa8ac.js +6 -0
  721. package/dist/vhdl-DIdR1NA5.cjs +1 -0
  722. package/dist/viml-D01eKeA4.cjs +1 -0
  723. package/dist/viml-DsfA-sWm.js +6 -0
  724. package/dist/vitesse-black-BoGvW84i.js +4 -0
  725. package/dist/vitesse-black-MF-1S1MG.cjs +1 -0
  726. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  727. package/dist/vitesse-dark-SIffJYSe.cjs +1 -0
  728. package/dist/vitesse-light-CcmG315c.js +4 -0
  729. package/dist/vitesse-light-U63SkYGT.cjs +1 -0
  730. package/dist/vue-DUYfTwgV.cjs +1 -0
  731. package/dist/vue-DrinnB8Y.js +31 -0
  732. package/dist/vue-html-B8T_zUQ-.cjs +1 -0
  733. package/dist/vue-html-CQOyCFnQ.js +10 -0
  734. package/dist/vue-vine-CAyeVfAj.js +20 -0
  735. package/dist/vue-vine-ClEtVpt5.cjs +1 -0
  736. package/dist/vyper-CPQuu50u.js +6 -0
  737. package/dist/vyper-DTzyzn3a.cjs +1 -0
  738. package/dist/wasm-BBXxrAl7.js +6 -0
  739. package/dist/wasm-DQxwEHae.js +7 -0
  740. package/dist/wasm-Dp-QrJpp.cjs +1 -0
  741. package/dist/wasm-Dw4u1m6u.cjs +1 -0
  742. package/dist/web-blocks.d.ts +12 -0
  743. package/dist/{web-preview-SIUM1SWa.js → web-preview-BEYsnCo4.js} +2 -2
  744. package/dist/{web-preview-CSV-DXpI.cjs → web-preview-CGX6_m7_.cjs} +1 -1
  745. package/dist/wenyan-CRNx8UP3.cjs +1 -0
  746. package/dist/wenyan-pbVjoM9_.js +6 -0
  747. package/dist/wgsl-DF5qc9dd.cjs +1 -0
  748. package/dist/wgsl-DY4iK1q1.js +6 -0
  749. package/dist/wikitext-D7uzEIfK.cjs +1 -0
  750. package/dist/wikitext-Z-MoUasO.js +6 -0
  751. package/dist/wit-BjWgLsJj.cjs +1 -0
  752. package/dist/wit-CQMQOlTg.js +6 -0
  753. package/dist/wolfram-BR4t3Ffc.cjs +1 -0
  754. package/dist/wolfram-Dz4KXISs.js +6 -0
  755. package/dist/xml-BpsKWkuV.cjs +1 -0
  756. package/dist/xml-C2J0sS9M.js +8 -0
  757. package/dist/xsl-BmSZphgC.js +8 -0
  758. package/dist/xsl-D-3VYix6.cjs +1 -0
  759. package/dist/xychartDiagram-PRI3JC2R-BXSS1azt.cjs +7 -0
  760. package/dist/xychartDiagram-PRI3JC2R-vt3IdmK_.js +1340 -0
  761. package/dist/yaml-DaO7k5B1.js +6 -0
  762. package/dist/yaml-XVBmpKh-.cjs +1 -0
  763. package/dist/zenscript-CxBjpf9c.js +6 -0
  764. package/dist/zenscript-fNvwKexi.cjs +1 -0
  765. package/dist/zig-BAyIAcWK.cjs +1 -0
  766. package/dist/zig-Vm0PO9wB.js +6 -0
  767. package/package.json +19 -3
  768. package/dist/ai-panel-content-B7VWN9Hp.js +0 -54
  769. package/dist/ai-panel-content-DvNWlTtZ.cjs +0 -1
  770. package/dist/ai-panel-default-lang-DRkJegQm.js +0 -178
  771. package/dist/ai-panel-default-lang-Dnfg53l_.cjs +0 -1
  772. package/dist/ai-panel-message-bubble-Bl-aUeU4.cjs +0 -1
  773. package/dist/ai-panel-message-bubble-DPAaAMAZ.js +0 -38
  774. package/dist/ai-panel-other-lang-0_g52R_I.cjs +0 -1
  775. package/dist/ai-panel-other-lang-CQVkWTd3.js +0 -150
  776. package/dist/ai-panel-quick-prompts-BfMsNuRu.js +0 -46
  777. package/dist/ai-panel-quick-prompts-CGKAAn9A.cjs +0 -1
  778. package/dist/ai-prompt-input-C3TnCYfz.js +0 -222
  779. package/dist/ai-prompt-input-CffQQOKA.cjs +0 -1
  780. package/dist/index-B1OACNv-.cjs +0 -5
  781. package/dist/prompt-helper-D0QRFyFX.js +0 -187
  782. package/dist/prompt-helper-DIy7u3rt.cjs +0 -51
  783. package/dist/use-page-expand-manager-2KjeYfVS.cjs +0 -1
@@ -0,0 +1,2609 @@
1
+ import { _ as V, j as lt, l as k } from "./mermaid.core-e6RNUZK7.js";
2
+ import { c as tt } from "./cytoscape.esm-DdQZKk9f.js";
3
+ import { j as gt } from "./selected-block-display-BPkRbRtv.js";
4
+ var Z = { exports: {} }, $ = { exports: {} }, Q = { exports: {} }, ut = Q.exports, q;
5
+ function ft() {
6
+ return q || (q = 1, function(G, b) {
7
+ (function(I, T) {
8
+ G.exports = T();
9
+ })(ut, function() {
10
+ return (
11
+ /******/
12
+ function(N) {
13
+ var I = {};
14
+ function T(o) {
15
+ if (I[o])
16
+ return I[o].exports;
17
+ var e = I[o] = {
18
+ /******/
19
+ i: o,
20
+ /******/
21
+ l: !1,
22
+ /******/
23
+ exports: {}
24
+ /******/
25
+ };
26
+ return N[o].call(e.exports, e, e.exports, T), e.l = !0, e.exports;
27
+ }
28
+ return T.m = N, T.c = I, T.i = function(o) {
29
+ return o;
30
+ }, T.d = function(o, e, t) {
31
+ T.o(o, e) || Object.defineProperty(o, e, {
32
+ /******/
33
+ configurable: !1,
34
+ /******/
35
+ enumerable: !0,
36
+ /******/
37
+ get: t
38
+ /******/
39
+ });
40
+ }, T.n = function(o) {
41
+ var e = o && o.__esModule ? (
42
+ /******/
43
+ function() {
44
+ return o.default;
45
+ }
46
+ ) : (
47
+ /******/
48
+ function() {
49
+ return o;
50
+ }
51
+ );
52
+ return T.d(e, "a", e), e;
53
+ }, T.o = function(o, e) {
54
+ return Object.prototype.hasOwnProperty.call(o, e);
55
+ }, T.p = "", T(T.s = 26);
56
+ }([
57
+ /* 0 */
58
+ /***/
59
+ function(N, I, T) {
60
+ function o() {
61
+ }
62
+ o.QUALITY = 1, o.DEFAULT_CREATE_BENDS_AS_NEEDED = !1, o.DEFAULT_INCREMENTAL = !1, o.DEFAULT_ANIMATION_ON_LAYOUT = !0, o.DEFAULT_ANIMATION_DURING_LAYOUT = !1, o.DEFAULT_ANIMATION_PERIOD = 50, o.DEFAULT_UNIFORM_LEAF_NODE_SIZES = !1, o.DEFAULT_GRAPH_MARGIN = 15, o.NODE_DIMENSIONS_INCLUDE_LABELS = !1, 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;
63
+ },
64
+ /* 1 */
65
+ /***/
66
+ function(N, I, T) {
67
+ var o = T(2), e = T(8), t = T(9);
68
+ function i(g, n, d) {
69
+ o.call(this, d), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = d, this.bendpoints = [], this.source = g, this.target = n;
70
+ }
71
+ i.prototype = Object.create(o.prototype);
72
+ for (var l in o)
73
+ i[l] = o[l];
74
+ i.prototype.getSource = function() {
75
+ return this.source;
76
+ }, i.prototype.getTarget = function() {
77
+ return this.target;
78
+ }, i.prototype.isInterGraph = function() {
79
+ return this.isInterGraph;
80
+ }, i.prototype.getLength = function() {
81
+ return this.length;
82
+ }, i.prototype.isOverlapingSourceAndTarget = function() {
83
+ return this.isOverlapingSourceAndTarget;
84
+ }, i.prototype.getBendpoints = function() {
85
+ return this.bendpoints;
86
+ }, i.prototype.getLca = function() {
87
+ return this.lca;
88
+ }, i.prototype.getSourceInLca = function() {
89
+ return this.sourceInLca;
90
+ }, i.prototype.getTargetInLca = function() {
91
+ return this.targetInLca;
92
+ }, i.prototype.getOtherEnd = function(g) {
93
+ if (this.source === g)
94
+ return this.target;
95
+ if (this.target === g)
96
+ return this.source;
97
+ throw "Node is not incident with this edge";
98
+ }, i.prototype.getOtherEndInGraph = function(g, n) {
99
+ for (var d = this.getOtherEnd(g), r = n.getGraphManager().getRoot(); ; ) {
100
+ if (d.getOwner() == n)
101
+ return d;
102
+ if (d.getOwner() == r)
103
+ break;
104
+ d = d.getOwner().getParent();
105
+ }
106
+ return null;
107
+ }, i.prototype.updateLength = function() {
108
+ var g = new Array(4);
109
+ 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));
110
+ }, i.prototype.updateLengthSimple = function() {
111
+ 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);
112
+ }, N.exports = i;
113
+ },
114
+ /* 2 */
115
+ /***/
116
+ function(N, I, T) {
117
+ function o(e) {
118
+ this.vGraphObject = e;
119
+ }
120
+ N.exports = o;
121
+ },
122
+ /* 3 */
123
+ /***/
124
+ function(N, I, T) {
125
+ var o = T(2), e = T(10), t = T(13), i = T(0), l = T(16), g = T(4);
126
+ function n(r, h, a, p) {
127
+ 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();
128
+ }
129
+ n.prototype = Object.create(o.prototype);
130
+ for (var d in o)
131
+ n[d] = o[d];
132
+ n.prototype.getEdges = function() {
133
+ return this.edges;
134
+ }, n.prototype.getChild = function() {
135
+ return this.child;
136
+ }, n.prototype.getOwner = function() {
137
+ return this.owner;
138
+ }, n.prototype.getWidth = function() {
139
+ return this.rect.width;
140
+ }, n.prototype.setWidth = function(r) {
141
+ this.rect.width = r;
142
+ }, n.prototype.getHeight = function() {
143
+ return this.rect.height;
144
+ }, n.prototype.setHeight = function(r) {
145
+ this.rect.height = r;
146
+ }, n.prototype.getCenterX = function() {
147
+ return this.rect.x + this.rect.width / 2;
148
+ }, n.prototype.getCenterY = function() {
149
+ return this.rect.y + this.rect.height / 2;
150
+ }, n.prototype.getCenter = function() {
151
+ return new g(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
152
+ }, n.prototype.getLocation = function() {
153
+ return new g(this.rect.x, this.rect.y);
154
+ }, n.prototype.getRect = function() {
155
+ return this.rect;
156
+ }, n.prototype.getDiagonal = function() {
157
+ return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
158
+ }, n.prototype.getHalfTheDiagonal = function() {
159
+ return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
160
+ }, n.prototype.setRect = function(r, h) {
161
+ this.rect.x = r.x, this.rect.y = r.y, this.rect.width = h.width, this.rect.height = h.height;
162
+ }, n.prototype.setCenter = function(r, h) {
163
+ this.rect.x = r - this.rect.width / 2, this.rect.y = h - this.rect.height / 2;
164
+ }, n.prototype.setLocation = function(r, h) {
165
+ this.rect.x = r, this.rect.y = h;
166
+ }, n.prototype.moveBy = function(r, h) {
167
+ this.rect.x += r, this.rect.y += h;
168
+ }, n.prototype.getEdgeListToNode = function(r) {
169
+ var h = [], a = this;
170
+ return a.edges.forEach(function(p) {
171
+ if (p.target == r) {
172
+ if (p.source != a) throw "Incorrect edge source!";
173
+ h.push(p);
174
+ }
175
+ }), h;
176
+ }, n.prototype.getEdgesBetween = function(r) {
177
+ var h = [], a = this;
178
+ return a.edges.forEach(function(p) {
179
+ if (!(p.source == a || p.target == a)) throw "Incorrect edge source and/or target";
180
+ (p.target == r || p.source == r) && h.push(p);
181
+ }), h;
182
+ }, n.prototype.getNeighborsList = function() {
183
+ var r = /* @__PURE__ */ new Set(), h = this;
184
+ return h.edges.forEach(function(a) {
185
+ if (a.source == h)
186
+ r.add(a.target);
187
+ else {
188
+ if (a.target != h)
189
+ throw "Incorrect incidency!";
190
+ r.add(a.source);
191
+ }
192
+ }), r;
193
+ }, n.prototype.withChildren = function() {
194
+ var r = /* @__PURE__ */ new Set(), h, a;
195
+ if (r.add(this), this.child != null)
196
+ for (var p = this.child.getNodes(), v = 0; v < p.length; v++)
197
+ h = p[v], a = h.withChildren(), a.forEach(function(D) {
198
+ r.add(D);
199
+ });
200
+ return r;
201
+ }, n.prototype.getNoOfChildren = function() {
202
+ var r = 0, h;
203
+ if (this.child == null)
204
+ r = 1;
205
+ else
206
+ for (var a = this.child.getNodes(), p = 0; p < a.length; p++)
207
+ h = a[p], r += h.getNoOfChildren();
208
+ return r == 0 && (r = 1), r;
209
+ }, n.prototype.getEstimatedSize = function() {
210
+ if (this.estimatedSize == e.MIN_VALUE)
211
+ throw "assert failed";
212
+ return this.estimatedSize;
213
+ }, n.prototype.calcEstimatedSize = function() {
214
+ 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);
215
+ }, n.prototype.scatter = function() {
216
+ var r, h, a = -i.INITIAL_WORLD_BOUNDARY, p = i.INITIAL_WORLD_BOUNDARY;
217
+ r = i.WORLD_CENTER_X + l.nextDouble() * (p - a) + a;
218
+ var v = -i.INITIAL_WORLD_BOUNDARY, D = i.INITIAL_WORLD_BOUNDARY;
219
+ h = i.WORLD_CENTER_Y + l.nextDouble() * (D - v) + v, this.rect.x = r, this.rect.y = h;
220
+ }, n.prototype.updateBounds = function() {
221
+ if (this.getChild() == null)
222
+ throw "assert failed";
223
+ if (this.getChild().getNodes().length != 0) {
224
+ var r = this.getChild();
225
+ if (r.updateBounds(!0), 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) {
226
+ var h = r.getRight() - r.getLeft(), a = r.getBottom() - r.getTop();
227
+ 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));
228
+ }
229
+ }
230
+ }, n.prototype.getInclusionTreeDepth = function() {
231
+ if (this.inclusionTreeDepth == e.MAX_VALUE)
232
+ throw "assert failed";
233
+ return this.inclusionTreeDepth;
234
+ }, n.prototype.transform = function(r) {
235
+ var h = this.rect.x;
236
+ h > i.WORLD_BOUNDARY ? h = i.WORLD_BOUNDARY : h < -i.WORLD_BOUNDARY && (h = -i.WORLD_BOUNDARY);
237
+ var a = this.rect.y;
238
+ a > i.WORLD_BOUNDARY ? a = i.WORLD_BOUNDARY : a < -i.WORLD_BOUNDARY && (a = -i.WORLD_BOUNDARY);
239
+ var p = new g(h, a), v = r.inverseTransformPoint(p);
240
+ this.setLocation(v.x, v.y);
241
+ }, n.prototype.getLeft = function() {
242
+ return this.rect.x;
243
+ }, n.prototype.getRight = function() {
244
+ return this.rect.x + this.rect.width;
245
+ }, n.prototype.getTop = function() {
246
+ return this.rect.y;
247
+ }, n.prototype.getBottom = function() {
248
+ return this.rect.y + this.rect.height;
249
+ }, n.prototype.getParent = function() {
250
+ return this.owner == null ? null : this.owner.getParent();
251
+ }, N.exports = n;
252
+ },
253
+ /* 4 */
254
+ /***/
255
+ function(N, I, T) {
256
+ function o(e, t) {
257
+ e == null && t == null ? (this.x = 0, this.y = 0) : (this.x = e, this.y = t);
258
+ }
259
+ o.prototype.getX = function() {
260
+ return this.x;
261
+ }, o.prototype.getY = function() {
262
+ return this.y;
263
+ }, o.prototype.setX = function(e) {
264
+ this.x = e;
265
+ }, o.prototype.setY = function(e) {
266
+ this.y = e;
267
+ }, o.prototype.getDifference = function(e) {
268
+ return new DimensionD(this.x - e.x, this.y - e.y);
269
+ }, o.prototype.getCopy = function() {
270
+ return new o(this.x, this.y);
271
+ }, o.prototype.translate = function(e) {
272
+ return this.x += e.width, this.y += e.height, this;
273
+ }, N.exports = o;
274
+ },
275
+ /* 5 */
276
+ /***/
277
+ function(N, I, T) {
278
+ var o = T(2), e = T(10), t = T(0), i = T(6), l = T(3), g = T(1), n = T(13), d = T(12), r = T(11);
279
+ function h(p, v, D) {
280
+ o.call(this, D), this.estimatedSize = e.MIN_VALUE, this.margin = t.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = p, v != null && v instanceof i ? this.graphManager = v : v != null && v instanceof Layout && (this.graphManager = v.graphManager);
281
+ }
282
+ h.prototype = Object.create(o.prototype);
283
+ for (var a in o)
284
+ h[a] = o[a];
285
+ h.prototype.getNodes = function() {
286
+ return this.nodes;
287
+ }, h.prototype.getEdges = function() {
288
+ return this.edges;
289
+ }, h.prototype.getGraphManager = function() {
290
+ return this.graphManager;
291
+ }, h.prototype.getParent = function() {
292
+ return this.parent;
293
+ }, h.prototype.getLeft = function() {
294
+ return this.left;
295
+ }, h.prototype.getRight = function() {
296
+ return this.right;
297
+ }, h.prototype.getTop = function() {
298
+ return this.top;
299
+ }, h.prototype.getBottom = function() {
300
+ return this.bottom;
301
+ }, h.prototype.isConnected = function() {
302
+ return this.isConnected;
303
+ }, h.prototype.add = function(p, v, D) {
304
+ if (v == null && D == null) {
305
+ var u = p;
306
+ if (this.graphManager == null)
307
+ throw "Graph has no graph mgr!";
308
+ if (this.getNodes().indexOf(u) > -1)
309
+ throw "Node already in graph!";
310
+ return u.owner = this, this.getNodes().push(u), u;
311
+ } else {
312
+ var E = p;
313
+ if (!(this.getNodes().indexOf(v) > -1 && this.getNodes().indexOf(D) > -1))
314
+ throw "Source or target not in graph!";
315
+ if (!(v.owner == D.owner && v.owner == this))
316
+ throw "Both owners must be this graph!";
317
+ return v.owner != D.owner ? null : (E.source = v, E.target = D, E.isInterGraph = !1, this.getEdges().push(E), v.edges.push(E), D != v && D.edges.push(E), E);
318
+ }
319
+ }, h.prototype.remove = function(p) {
320
+ var v = p;
321
+ if (p instanceof l) {
322
+ if (v == null)
323
+ throw "Node is null!";
324
+ if (!(v.owner != null && v.owner == this))
325
+ throw "Owner graph is invalid!";
326
+ if (this.graphManager == null)
327
+ throw "Owner graph manager is invalid!";
328
+ for (var D = v.edges.slice(), u, E = D.length, y = 0; y < E; y++)
329
+ u = D[y], u.isInterGraph ? this.graphManager.remove(u) : u.source.owner.remove(u);
330
+ var O = this.nodes.indexOf(v);
331
+ if (O == -1)
332
+ throw "Node not in owner node list!";
333
+ this.nodes.splice(O, 1);
334
+ } else if (p instanceof g) {
335
+ var u = p;
336
+ if (u == null)
337
+ throw "Edge is null!";
338
+ if (!(u.source != null && u.target != null))
339
+ throw "Source and/or target is null!";
340
+ if (!(u.source.owner != null && u.target.owner != null && u.source.owner == this && u.target.owner == this))
341
+ throw "Source and/or target owner is invalid!";
342
+ var s = u.source.edges.indexOf(u), f = u.target.edges.indexOf(u);
343
+ if (!(s > -1 && f > -1))
344
+ throw "Source and/or target doesn't know this edge!";
345
+ u.source.edges.splice(s, 1), u.target != u.source && u.target.edges.splice(f, 1);
346
+ var O = u.source.owner.getEdges().indexOf(u);
347
+ if (O == -1)
348
+ throw "Not in owner's edge list!";
349
+ u.source.owner.getEdges().splice(O, 1);
350
+ }
351
+ }, h.prototype.updateLeftTop = function() {
352
+ for (var p = e.MAX_VALUE, v = e.MAX_VALUE, D, u, E, y = this.getNodes(), O = y.length, s = 0; s < O; s++) {
353
+ var f = y[s];
354
+ D = f.getTop(), u = f.getLeft(), p > D && (p = D), v > u && (v = u);
355
+ }
356
+ return p == e.MAX_VALUE ? null : (y[0].getParent().paddingLeft != null ? E = y[0].getParent().paddingLeft : E = this.margin, this.left = v - E, this.top = p - E, new d(this.left, this.top));
357
+ }, h.prototype.updateBounds = function(p) {
358
+ for (var v = e.MAX_VALUE, D = -e.MAX_VALUE, u = e.MAX_VALUE, E = -e.MAX_VALUE, y, O, s, f, c, L = this.nodes, A = L.length, m = 0; m < A; m++) {
359
+ var C = L[m];
360
+ 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), E < f && (E = f);
361
+ }
362
+ var R = new n(v, u, D - v, E - u);
363
+ v == e.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), L[0].getParent().paddingLeft != null ? c = L[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;
364
+ }, h.calculateBounds = function(p) {
365
+ for (var v = e.MAX_VALUE, D = -e.MAX_VALUE, u = e.MAX_VALUE, E = -e.MAX_VALUE, y, O, s, f, c = p.length, L = 0; L < c; L++) {
366
+ var A = p[L];
367
+ y = A.getLeft(), O = A.getRight(), s = A.getTop(), f = A.getBottom(), v > y && (v = y), D < O && (D = O), u > s && (u = s), E < f && (E = f);
368
+ }
369
+ var m = new n(v, u, D - v, E - u);
370
+ return m;
371
+ }, h.prototype.getInclusionTreeDepth = function() {
372
+ return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
373
+ }, h.prototype.getEstimatedSize = function() {
374
+ if (this.estimatedSize == e.MIN_VALUE)
375
+ throw "assert failed";
376
+ return this.estimatedSize;
377
+ }, h.prototype.calcEstimatedSize = function() {
378
+ for (var p = 0, v = this.nodes, D = v.length, u = 0; u < D; u++) {
379
+ var E = v[u];
380
+ p += E.calcEstimatedSize();
381
+ }
382
+ return p == 0 ? this.estimatedSize = t.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = p / Math.sqrt(this.nodes.length), this.estimatedSize;
383
+ }, h.prototype.updateConnected = function() {
384
+ var p = this;
385
+ if (this.nodes.length == 0) {
386
+ this.isConnected = !0;
387
+ return;
388
+ }
389
+ var v = new r(), D = /* @__PURE__ */ new Set(), u = this.nodes[0], E, y, O = u.withChildren();
390
+ for (O.forEach(function(m) {
391
+ v.push(m), D.add(m);
392
+ }); v.length !== 0; ) {
393
+ u = v.shift(), E = u.getEdges();
394
+ for (var s = E.length, f = 0; f < s; f++) {
395
+ var c = E[f];
396
+ if (y = c.getOtherEndInGraph(u, this), y != null && !D.has(y)) {
397
+ var L = y.withChildren();
398
+ L.forEach(function(m) {
399
+ v.push(m), D.add(m);
400
+ });
401
+ }
402
+ }
403
+ }
404
+ if (this.isConnected = !1, D.size >= this.nodes.length) {
405
+ var A = 0;
406
+ D.forEach(function(m) {
407
+ m.owner == p && A++;
408
+ }), A == this.nodes.length && (this.isConnected = !0);
409
+ }
410
+ }, N.exports = h;
411
+ },
412
+ /* 6 */
413
+ /***/
414
+ function(N, I, T) {
415
+ var o, e = T(1);
416
+ function t(i) {
417
+ o = T(5), this.layout = i, this.graphs = [], this.edges = [];
418
+ }
419
+ t.prototype.addRoot = function() {
420
+ var i = this.layout.newGraph(), l = this.layout.newNode(null), g = this.add(i, l);
421
+ return this.setRootGraph(g), this.rootGraph;
422
+ }, t.prototype.add = function(i, l, g, n, d) {
423
+ if (g == null && n == null && d == null) {
424
+ if (i == null)
425
+ throw "Graph is null!";
426
+ if (l == null)
427
+ throw "Parent node is null!";
428
+ if (this.graphs.indexOf(i) > -1)
429
+ throw "Graph already in this graph mgr!";
430
+ if (this.graphs.push(i), i.parent != null)
431
+ throw "Already has a parent!";
432
+ if (l.child != null)
433
+ throw "Already has a child!";
434
+ return i.parent = l, l.child = i, i;
435
+ } else {
436
+ d = g, n = l, g = i;
437
+ var r = n.getOwner(), h = d.getOwner();
438
+ if (!(r != null && r.getGraphManager() == this))
439
+ throw "Source not in this graph mgr!";
440
+ if (!(h != null && h.getGraphManager() == this))
441
+ throw "Target not in this graph mgr!";
442
+ if (r == h)
443
+ return g.isInterGraph = !1, r.add(g, n, d);
444
+ if (g.isInterGraph = !0, g.source = n, g.target = d, this.edges.indexOf(g) > -1)
445
+ throw "Edge already in inter-graph edge list!";
446
+ if (this.edges.push(g), !(g.source != null && g.target != null))
447
+ throw "Edge source and/or target is null!";
448
+ if (!(g.source.edges.indexOf(g) == -1 && g.target.edges.indexOf(g) == -1))
449
+ throw "Edge already in source and/or target incidency list!";
450
+ return g.source.edges.push(g), g.target.edges.push(g), g;
451
+ }
452
+ }, t.prototype.remove = function(i) {
453
+ if (i instanceof o) {
454
+ var l = i;
455
+ if (l.getGraphManager() != this)
456
+ throw "Graph not in this graph mgr";
457
+ if (!(l == this.rootGraph || l.parent != null && l.parent.graphManager == this))
458
+ throw "Invalid parent node!";
459
+ var g = [];
460
+ g = g.concat(l.getEdges());
461
+ for (var n, d = g.length, r = 0; r < d; r++)
462
+ n = g[r], l.remove(n);
463
+ var h = [];
464
+ h = h.concat(l.getNodes());
465
+ var a;
466
+ d = h.length;
467
+ for (var r = 0; r < d; r++)
468
+ a = h[r], l.remove(a);
469
+ l == this.rootGraph && this.setRootGraph(null);
470
+ var p = this.graphs.indexOf(l);
471
+ this.graphs.splice(p, 1), l.parent = null;
472
+ } else if (i instanceof e) {
473
+ if (n = i, n == null)
474
+ throw "Edge is null!";
475
+ if (!n.isInterGraph)
476
+ throw "Not an inter-graph edge!";
477
+ if (!(n.source != null && n.target != null))
478
+ throw "Source and/or target is null!";
479
+ if (!(n.source.edges.indexOf(n) != -1 && n.target.edges.indexOf(n) != -1))
480
+ throw "Source and/or target doesn't know this edge!";
481
+ var p = n.source.edges.indexOf(n);
482
+ 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))
483
+ throw "Edge owner graph or owner graph manager is null!";
484
+ if (n.source.owner.getGraphManager().edges.indexOf(n) == -1)
485
+ throw "Not in owner graph manager's edge list!";
486
+ var p = n.source.owner.getGraphManager().edges.indexOf(n);
487
+ n.source.owner.getGraphManager().edges.splice(p, 1);
488
+ }
489
+ }, t.prototype.updateBounds = function() {
490
+ this.rootGraph.updateBounds(!0);
491
+ }, t.prototype.getGraphs = function() {
492
+ return this.graphs;
493
+ }, t.prototype.getAllNodes = function() {
494
+ if (this.allNodes == null) {
495
+ for (var i = [], l = this.getGraphs(), g = l.length, n = 0; n < g; n++)
496
+ i = i.concat(l[n].getNodes());
497
+ this.allNodes = i;
498
+ }
499
+ return this.allNodes;
500
+ }, t.prototype.resetAllNodes = function() {
501
+ this.allNodes = null;
502
+ }, t.prototype.resetAllEdges = function() {
503
+ this.allEdges = null;
504
+ }, t.prototype.resetAllNodesToApplyGravitation = function() {
505
+ this.allNodesToApplyGravitation = null;
506
+ }, t.prototype.getAllEdges = function() {
507
+ if (this.allEdges == null) {
508
+ var i = [], l = this.getGraphs();
509
+ l.length;
510
+ for (var g = 0; g < l.length; g++)
511
+ i = i.concat(l[g].getEdges());
512
+ i = i.concat(this.edges), this.allEdges = i;
513
+ }
514
+ return this.allEdges;
515
+ }, t.prototype.getAllNodesToApplyGravitation = function() {
516
+ return this.allNodesToApplyGravitation;
517
+ }, t.prototype.setAllNodesToApplyGravitation = function(i) {
518
+ if (this.allNodesToApplyGravitation != null)
519
+ throw "assert failed";
520
+ this.allNodesToApplyGravitation = i;
521
+ }, t.prototype.getRoot = function() {
522
+ return this.rootGraph;
523
+ }, t.prototype.setRootGraph = function(i) {
524
+ if (i.getGraphManager() != this)
525
+ throw "Root not in this graph mgr!";
526
+ this.rootGraph = i, i.parent == null && (i.parent = this.layout.newNode("Root node"));
527
+ }, t.prototype.getLayout = function() {
528
+ return this.layout;
529
+ }, t.prototype.isOneAncestorOfOther = function(i, l) {
530
+ if (!(i != null && l != null))
531
+ throw "assert failed";
532
+ if (i == l)
533
+ return !0;
534
+ var g = i.getOwner(), n;
535
+ do {
536
+ if (n = g.getParent(), n == null)
537
+ break;
538
+ if (n == l)
539
+ return !0;
540
+ if (g = n.getOwner(), g == null)
541
+ break;
542
+ } while (!0);
543
+ g = l.getOwner();
544
+ do {
545
+ if (n = g.getParent(), n == null)
546
+ break;
547
+ if (n == i)
548
+ return !0;
549
+ if (g = n.getOwner(), g == null)
550
+ break;
551
+ } while (!0);
552
+ return !1;
553
+ }, t.prototype.calcLowestCommonAncestors = function() {
554
+ for (var i, l, g, n, d, r = this.getAllEdges(), h = r.length, a = 0; a < h; a++) {
555
+ if (i = r[a], l = i.source, g = i.target, i.lca = null, i.sourceInLca = l, i.targetInLca = g, l == g) {
556
+ i.lca = l.getOwner();
557
+ continue;
558
+ }
559
+ for (n = l.getOwner(); i.lca == null; ) {
560
+ for (i.targetInLca = g, d = g.getOwner(); i.lca == null; ) {
561
+ if (d == n) {
562
+ i.lca = d;
563
+ break;
564
+ }
565
+ if (d == this.rootGraph)
566
+ break;
567
+ if (i.lca != null)
568
+ throw "assert failed";
569
+ i.targetInLca = d.getParent(), d = i.targetInLca.getOwner();
570
+ }
571
+ if (n == this.rootGraph)
572
+ break;
573
+ i.lca == null && (i.sourceInLca = n.getParent(), n = i.sourceInLca.getOwner());
574
+ }
575
+ if (i.lca == null)
576
+ throw "assert failed";
577
+ }
578
+ }, t.prototype.calcLowestCommonAncestor = function(i, l) {
579
+ if (i == l)
580
+ return i.getOwner();
581
+ var g = i.getOwner();
582
+ do {
583
+ if (g == null)
584
+ break;
585
+ var n = l.getOwner();
586
+ do {
587
+ if (n == null)
588
+ break;
589
+ if (n == g)
590
+ return n;
591
+ n = n.getParent().getOwner();
592
+ } while (!0);
593
+ g = g.getParent().getOwner();
594
+ } while (!0);
595
+ return g;
596
+ }, t.prototype.calcInclusionTreeDepths = function(i, l) {
597
+ i == null && l == null && (i = this.rootGraph, l = 1);
598
+ for (var g, n = i.getNodes(), d = n.length, r = 0; r < d; r++)
599
+ g = n[r], g.inclusionTreeDepth = l, g.child != null && this.calcInclusionTreeDepths(g.child, l + 1);
600
+ }, t.prototype.includesInvalidEdge = function() {
601
+ for (var i, l = this.edges.length, g = 0; g < l; g++)
602
+ if (i = this.edges[g], this.isOneAncestorOfOther(i.source, i.target))
603
+ return !0;
604
+ return !1;
605
+ }, N.exports = t;
606
+ },
607
+ /* 7 */
608
+ /***/
609
+ function(N, I, T) {
610
+ var o = T(0);
611
+ function e() {
612
+ }
613
+ for (var t in o)
614
+ e[t] = o[t];
615
+ 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 = !0, e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = !0, 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;
616
+ },
617
+ /* 8 */
618
+ /***/
619
+ function(N, I, T) {
620
+ var o = T(12);
621
+ function e() {
622
+ }
623
+ e.calcSeparationAmount = function(t, i, l, g) {
624
+ if (!t.intersects(i))
625
+ throw "assert failed";
626
+ var n = new Array(2);
627
+ 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()));
628
+ var d = Math.abs((i.getCenterY() - t.getCenterY()) / (i.getCenterX() - t.getCenterX()));
629
+ i.getCenterY() === t.getCenterY() && i.getCenterX() === t.getCenterX() && (d = 1);
630
+ var r = d * l[0], h = l[1] / d;
631
+ 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);
632
+ }, e.decideDirectionsForOverlappingNodes = function(t, i, l) {
633
+ t.getCenterX() < i.getCenterX() ? l[0] = -1 : l[0] = 1, t.getCenterY() < i.getCenterY() ? l[1] = -1 : l[1] = 1;
634
+ }, e.getIntersection2 = function(t, i, l) {
635
+ var g = t.getCenterX(), n = t.getCenterY(), d = i.getCenterX(), r = i.getCenterY();
636
+ if (t.intersects(i))
637
+ return l[0] = g, l[1] = n, l[2] = d, l[3] = r, !0;
638
+ var h = t.getX(), a = t.getY(), p = t.getRight(), v = t.getX(), D = t.getBottom(), u = t.getRight(), E = t.getWidthHalf(), y = t.getHeightHalf(), O = i.getX(), s = i.getY(), f = i.getRight(), c = i.getX(), L = i.getBottom(), A = i.getRight(), m = i.getWidthHalf(), C = i.getHeightHalf(), R = !1, M = !1;
639
+ if (g === d) {
640
+ if (n > r)
641
+ return l[0] = g, l[1] = a, l[2] = d, l[3] = L, !1;
642
+ if (n < r)
643
+ return l[0] = g, l[1] = D, l[2] = d, l[3] = s, !1;
644
+ } else if (n === r) {
645
+ if (g > d)
646
+ return l[0] = h, l[1] = n, l[2] = f, l[3] = r, !1;
647
+ if (g < d)
648
+ return l[0] = p, l[1] = n, l[2] = O, l[3] = r, !1;
649
+ } else {
650
+ 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;
651
+ if (-S === w ? g > d ? (l[0] = v, l[1] = D, R = !0) : (l[0] = p, l[1] = a, R = !0) : S === w && (g > d ? (l[0] = h, l[1] = a, R = !0) : (l[0] = u, l[1] = D, R = !0)), -Y === w ? d > g ? (l[2] = c, l[3] = L, M = !0) : (l[2] = f, l[3] = s, M = !0) : Y === w && (d > g ? (l[2] = O, l[3] = s, M = !0) : (l[2] = A, l[3] = L, M = !0)), R && M)
652
+ return !1;
653
+ 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)
654
+ switch (x) {
655
+ case 1:
656
+ P = a, U = g + -y / w, l[0] = U, l[1] = P;
657
+ break;
658
+ case 2:
659
+ U = u, P = n + E * w, l[0] = U, l[1] = P;
660
+ break;
661
+ case 3:
662
+ P = D, U = g + y / w, l[0] = U, l[1] = P;
663
+ break;
664
+ case 4:
665
+ U = v, P = n + -E * w, l[0] = U, l[1] = P;
666
+ break;
667
+ }
668
+ if (!M)
669
+ switch (F) {
670
+ case 1:
671
+ X = s, _ = d + -C / w, l[2] = _, l[3] = X;
672
+ break;
673
+ case 2:
674
+ _ = A, X = r + m * w, l[2] = _, l[3] = X;
675
+ break;
676
+ case 3:
677
+ X = L, _ = d + C / w, l[2] = _, l[3] = X;
678
+ break;
679
+ case 4:
680
+ _ = c, X = r + -m * w, l[2] = _, l[3] = X;
681
+ break;
682
+ }
683
+ }
684
+ return !1;
685
+ }, e.getCardinalDirection = function(t, i, l) {
686
+ return t > i ? l : 1 + l % 4;
687
+ }, e.getIntersection = function(t, i, l, g) {
688
+ if (g == null)
689
+ return this.getIntersection2(t, i, l);
690
+ 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, E = void 0, y = void 0, O = void 0, s = void 0, f = void 0, c = void 0, L = void 0, A = void 0;
691
+ return y = h - d, s = n - r, c = r * d - n * h, O = D - p, f = a - v, L = v * p - a * D, A = y * f - O * s, A === 0 ? null : (u = (s * L - f * c) / A, E = (O * c - y * L) / A, new o(u, E));
692
+ }, e.angleOfVector = function(t, i, l, g) {
693
+ var n = void 0;
694
+ 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;
695
+ }, e.doIntersect = function(t, i, l, g) {
696
+ 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);
697
+ if (u === 0)
698
+ return !1;
699
+ var E = ((D - p) * (v - n) + (a - v) * (D - d)) / u, y = ((d - h) * (v - n) + (r - n) * (D - d)) / u;
700
+ return 0 < E && E < 1 && 0 < y && y < 1;
701
+ }, 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;
702
+ },
703
+ /* 9 */
704
+ /***/
705
+ function(N, I, T) {
706
+ function o() {
707
+ }
708
+ o.sign = function(e) {
709
+ return e > 0 ? 1 : e < 0 ? -1 : 0;
710
+ }, o.floor = function(e) {
711
+ return e < 0 ? Math.ceil(e) : Math.floor(e);
712
+ }, o.ceil = function(e) {
713
+ return e < 0 ? Math.floor(e) : Math.ceil(e);
714
+ }, N.exports = o;
715
+ },
716
+ /* 10 */
717
+ /***/
718
+ function(N, I, T) {
719
+ function o() {
720
+ }
721
+ o.MAX_VALUE = 2147483647, o.MIN_VALUE = -2147483648, N.exports = o;
722
+ },
723
+ /* 11 */
724
+ /***/
725
+ function(N, I, T) {
726
+ var o = /* @__PURE__ */ function() {
727
+ function n(d, r) {
728
+ for (var h = 0; h < r.length; h++) {
729
+ var a = r[h];
730
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(d, a.key, a);
731
+ }
732
+ }
733
+ return function(d, r, h) {
734
+ return r && n(d.prototype, r), h && n(d, h), d;
735
+ };
736
+ }();
737
+ function e(n, d) {
738
+ if (!(n instanceof d))
739
+ throw new TypeError("Cannot call a class as a function");
740
+ }
741
+ var t = function(d) {
742
+ return { value: d, next: null, prev: null };
743
+ }, i = function(d, r, h, a) {
744
+ 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;
745
+ }, l = function(d, r) {
746
+ var h = d.prev, a = d.next;
747
+ 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;
748
+ }, g = function() {
749
+ function n(d) {
750
+ var r = this;
751
+ e(this, n), this.length = 0, this.head = null, this.tail = null, d != null && d.forEach(function(h) {
752
+ return r.push(h);
753
+ });
754
+ }
755
+ return o(n, [{
756
+ key: "size",
757
+ value: function() {
758
+ return this.length;
759
+ }
760
+ }, {
761
+ key: "insertBefore",
762
+ value: function(r, h) {
763
+ return i(h.prev, t(r), h, this);
764
+ }
765
+ }, {
766
+ key: "insertAfter",
767
+ value: function(r, h) {
768
+ return i(h, t(r), h.next, this);
769
+ }
770
+ }, {
771
+ key: "insertNodeBefore",
772
+ value: function(r, h) {
773
+ return i(h.prev, r, h, this);
774
+ }
775
+ }, {
776
+ key: "insertNodeAfter",
777
+ value: function(r, h) {
778
+ return i(h, r, h.next, this);
779
+ }
780
+ }, {
781
+ key: "push",
782
+ value: function(r) {
783
+ return i(this.tail, t(r), null, this);
784
+ }
785
+ }, {
786
+ key: "unshift",
787
+ value: function(r) {
788
+ return i(null, t(r), this.head, this);
789
+ }
790
+ }, {
791
+ key: "remove",
792
+ value: function(r) {
793
+ return l(r, this);
794
+ }
795
+ }, {
796
+ key: "pop",
797
+ value: function() {
798
+ return l(this.tail, this).value;
799
+ }
800
+ }, {
801
+ key: "popNode",
802
+ value: function() {
803
+ return l(this.tail, this);
804
+ }
805
+ }, {
806
+ key: "shift",
807
+ value: function() {
808
+ return l(this.head, this).value;
809
+ }
810
+ }, {
811
+ key: "shiftNode",
812
+ value: function() {
813
+ return l(this.head, this);
814
+ }
815
+ }, {
816
+ key: "get_object_at",
817
+ value: function(r) {
818
+ if (r <= this.length()) {
819
+ for (var h = 1, a = this.head; h < r; )
820
+ a = a.next, h++;
821
+ return a.value;
822
+ }
823
+ }
824
+ }, {
825
+ key: "set_object_at",
826
+ value: function(r, h) {
827
+ if (r <= this.length()) {
828
+ for (var a = 1, p = this.head; a < r; )
829
+ p = p.next, a++;
830
+ p.value = h;
831
+ }
832
+ }
833
+ }]), n;
834
+ }();
835
+ N.exports = g;
836
+ },
837
+ /* 12 */
838
+ /***/
839
+ function(N, I, T) {
840
+ function o(e, t, i) {
841
+ 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);
842
+ }
843
+ o.prototype.getX = function() {
844
+ return this.x;
845
+ }, o.prototype.getY = function() {
846
+ return this.y;
847
+ }, o.prototype.getLocation = function() {
848
+ return new o(this.x, this.y);
849
+ }, o.prototype.setLocation = function(e, t, i) {
850
+ 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)));
851
+ }, o.prototype.move = function(e, t) {
852
+ this.x = e, this.y = t;
853
+ }, o.prototype.translate = function(e, t) {
854
+ this.x += e, this.y += t;
855
+ }, o.prototype.equals = function(e) {
856
+ if (e.constructor.name == "Point") {
857
+ var t = e;
858
+ return this.x == t.x && this.y == t.y;
859
+ }
860
+ return this == e;
861
+ }, o.prototype.toString = function() {
862
+ return new o().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
863
+ }, N.exports = o;
864
+ },
865
+ /* 13 */
866
+ /***/
867
+ function(N, I, T) {
868
+ function o(e, t, i, l) {
869
+ 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);
870
+ }
871
+ o.prototype.getX = function() {
872
+ return this.x;
873
+ }, o.prototype.setX = function(e) {
874
+ this.x = e;
875
+ }, o.prototype.getY = function() {
876
+ return this.y;
877
+ }, o.prototype.setY = function(e) {
878
+ this.y = e;
879
+ }, o.prototype.getWidth = function() {
880
+ return this.width;
881
+ }, o.prototype.setWidth = function(e) {
882
+ this.width = e;
883
+ }, o.prototype.getHeight = function() {
884
+ return this.height;
885
+ }, o.prototype.setHeight = function(e) {
886
+ this.height = e;
887
+ }, o.prototype.getRight = function() {
888
+ return this.x + this.width;
889
+ }, o.prototype.getBottom = function() {
890
+ return this.y + this.height;
891
+ }, o.prototype.intersects = function(e) {
892
+ return !(this.getRight() < e.x || this.getBottom() < e.y || e.getRight() < this.x || e.getBottom() < this.y);
893
+ }, o.prototype.getCenterX = function() {
894
+ return this.x + this.width / 2;
895
+ }, o.prototype.getMinX = function() {
896
+ return this.getX();
897
+ }, o.prototype.getMaxX = function() {
898
+ return this.getX() + this.width;
899
+ }, o.prototype.getCenterY = function() {
900
+ return this.y + this.height / 2;
901
+ }, o.prototype.getMinY = function() {
902
+ return this.getY();
903
+ }, o.prototype.getMaxY = function() {
904
+ return this.getY() + this.height;
905
+ }, o.prototype.getWidthHalf = function() {
906
+ return this.width / 2;
907
+ }, o.prototype.getHeightHalf = function() {
908
+ return this.height / 2;
909
+ }, N.exports = o;
910
+ },
911
+ /* 14 */
912
+ /***/
913
+ function(N, I, T) {
914
+ var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
915
+ return typeof t;
916
+ } : function(t) {
917
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
918
+ };
919
+ function e() {
920
+ }
921
+ e.lastID = 0, e.createID = function(t) {
922
+ return e.isPrimitive(t) ? t : (t.uniqueID != null || (t.uniqueID = e.getString(), e.lastID++), t.uniqueID);
923
+ }, e.getString = function(t) {
924
+ return t == null && (t = e.lastID), "Object#" + t;
925
+ }, e.isPrimitive = function(t) {
926
+ var i = typeof t > "u" ? "undefined" : o(t);
927
+ return t == null || i != "object" && i != "function";
928
+ }, N.exports = e;
929
+ },
930
+ /* 15 */
931
+ /***/
932
+ function(N, I, T) {
933
+ function o(a) {
934
+ if (Array.isArray(a)) {
935
+ for (var p = 0, v = Array(a.length); p < a.length; p++)
936
+ v[p] = a[p];
937
+ return v;
938
+ } else
939
+ return Array.from(a);
940
+ }
941
+ var e = T(0), t = T(6), i = T(3), l = T(1), g = T(5), n = T(4), d = T(17), r = T(27);
942
+ function h(a) {
943
+ 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 = !1, this.isSubLayout = !1, this.isRemoteUse = !1, a != null && (this.isRemoteUse = a);
944
+ }
945
+ h.RANDOM_SEED = 1, h.prototype = Object.create(r.prototype), h.prototype.getGraphManager = function() {
946
+ return this.graphManager;
947
+ }, h.prototype.getAllNodes = function() {
948
+ return this.graphManager.getAllNodes();
949
+ }, h.prototype.getAllEdges = function() {
950
+ return this.graphManager.getAllEdges();
951
+ }, h.prototype.getAllNodesToApplyGravitation = function() {
952
+ return this.graphManager.getAllNodesToApplyGravitation();
953
+ }, h.prototype.newGraphManager = function() {
954
+ var a = new t(this);
955
+ return this.graphManager = a, a;
956
+ }, h.prototype.newGraph = function(a) {
957
+ return new g(null, this.graphManager, a);
958
+ }, h.prototype.newNode = function(a) {
959
+ return new i(this.graphManager, a);
960
+ }, h.prototype.newEdge = function(a) {
961
+ return new l(null, null, a);
962
+ }, h.prototype.checkLayoutSuccess = function() {
963
+ return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
964
+ }, h.prototype.runLayout = function() {
965
+ this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
966
+ var a;
967
+ return this.checkLayoutSuccess() ? a = !1 : a = this.layout(), e.ANIMATE === "during" ? !1 : (a && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, a);
968
+ }, h.prototype.doPostLayout = function() {
969
+ this.incremental || this.transform(), this.update();
970
+ }, h.prototype.update2 = function() {
971
+ if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) {
972
+ for (var a = this.graphManager.getAllEdges(), p = 0; p < a.length; p++)
973
+ a[p];
974
+ for (var v = this.graphManager.getRoot().getNodes(), p = 0; p < v.length; p++)
975
+ v[p];
976
+ this.update(this.graphManager.getRoot());
977
+ }
978
+ }, h.prototype.update = function(a) {
979
+ if (a == null)
980
+ this.update2();
981
+ else if (a instanceof i) {
982
+ var p = a;
983
+ if (p.getChild() != null)
984
+ for (var v = p.getChild().getNodes(), D = 0; D < v.length; D++)
985
+ update(v[D]);
986
+ if (p.vGraphObject != null) {
987
+ var u = p.vGraphObject;
988
+ u.update(p);
989
+ }
990
+ } else if (a instanceof l) {
991
+ var E = a;
992
+ if (E.vGraphObject != null) {
993
+ var y = E.vGraphObject;
994
+ y.update(E);
995
+ }
996
+ } else if (a instanceof g) {
997
+ var O = a;
998
+ if (O.vGraphObject != null) {
999
+ var s = O.vGraphObject;
1000
+ s.update(O);
1001
+ }
1002
+ }
1003
+ }, h.prototype.initParameters = function() {
1004
+ 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 = !1);
1005
+ }, h.prototype.transform = function(a) {
1006
+ if (a == null)
1007
+ this.transform(new n(0, 0));
1008
+ else {
1009
+ var p = new d(), v = this.graphManager.getRoot().updateLeftTop();
1010
+ if (v != null) {
1011
+ p.setWorldOrgX(a.x), p.setWorldOrgY(a.y), p.setDeviceOrgX(v.x), p.setDeviceOrgY(v.y);
1012
+ for (var D = this.getAllNodes(), u, E = 0; E < D.length; E++)
1013
+ u = D[E], u.transform(p);
1014
+ }
1015
+ }
1016
+ }, h.prototype.positionNodesRandomly = function(a) {
1017
+ if (a == null)
1018
+ this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(!0);
1019
+ else
1020
+ for (var p, v, D = a.getNodes(), u = 0; u < D.length; u++)
1021
+ p = D[u], v = p.getChild(), v == null || v.getNodes().length == 0 ? p.scatter() : (this.positionNodesRandomly(v), p.updateBounds());
1022
+ }, h.prototype.getFlatForest = function() {
1023
+ for (var a = [], p = !0, v = this.graphManager.getRoot().getNodes(), D = !0, u = 0; u < v.length; u++)
1024
+ v[u].getChild() != null && (D = !1);
1025
+ if (!D)
1026
+ return a;
1027
+ var E = /* @__PURE__ */ new Set(), y = [], O = /* @__PURE__ */ new Map(), s = [];
1028
+ for (s = s.concat(v); s.length > 0 && p; ) {
1029
+ for (y.push(s[0]); y.length > 0 && p; ) {
1030
+ var f = y[0];
1031
+ y.splice(0, 1), E.add(f);
1032
+ for (var c = f.getEdges(), u = 0; u < c.length; u++) {
1033
+ var L = c[u].getOtherEnd(f);
1034
+ if (O.get(f) != L)
1035
+ if (!E.has(L))
1036
+ y.push(L), O.set(L, f);
1037
+ else {
1038
+ p = !1;
1039
+ break;
1040
+ }
1041
+ }
1042
+ }
1043
+ if (!p)
1044
+ a = [];
1045
+ else {
1046
+ var A = [].concat(o(E));
1047
+ a.push(A);
1048
+ for (var u = 0; u < A.length; u++) {
1049
+ var m = A[u], C = s.indexOf(m);
1050
+ C > -1 && s.splice(C, 1);
1051
+ }
1052
+ E = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
1053
+ }
1054
+ }
1055
+ return a;
1056
+ }, h.prototype.createDummyNodesForBendpoints = function(a) {
1057
+ for (var p = [], v = a.source, D = this.graphManager.calcLowestCommonAncestor(a.source, a.target), u = 0; u < a.bendpoints.length; u++) {
1058
+ var E = this.newNode(null);
1059
+ E.setRect(new Point(0, 0), new Dimension(1, 1)), D.add(E);
1060
+ var y = this.newEdge(null);
1061
+ this.graphManager.add(y, v, E), p.add(E), v = E;
1062
+ }
1063
+ var y = this.newEdge(null);
1064
+ return this.graphManager.add(y, v, a.target), this.edgeToDummyNodes.set(a, p), a.isInterGraph() ? this.graphManager.remove(a) : D.remove(a), p;
1065
+ }, h.prototype.createBendpointsFromDummyNodes = function() {
1066
+ var a = [];
1067
+ a = a.concat(this.graphManager.getAllEdges()), a = [].concat(o(this.edgeToDummyNodes.keys())).concat(a);
1068
+ for (var p = 0; p < a.length; p++) {
1069
+ var v = a[p];
1070
+ if (v.bendpoints.length > 0) {
1071
+ for (var D = this.edgeToDummyNodes.get(v), u = 0; u < D.length; u++) {
1072
+ var E = D[u], y = new n(E.getCenterX(), E.getCenterY()), O = v.bendpoints.get(u);
1073
+ O.x = y.x, O.y = y.y, E.getOwner().remove(E);
1074
+ }
1075
+ this.graphManager.add(v, v.source, v.target);
1076
+ }
1077
+ }
1078
+ }, h.transform = function(a, p, v, D) {
1079
+ if (v != null && D != null) {
1080
+ var u = p;
1081
+ if (a <= 50) {
1082
+ var E = p / v;
1083
+ u -= (p - E) / 50 * (50 - a);
1084
+ } else {
1085
+ var y = p * D;
1086
+ u += (y - p) / 50 * (a - 50);
1087
+ }
1088
+ return u;
1089
+ } else {
1090
+ var O, s;
1091
+ return a <= 50 ? (O = 9 * p / 500, s = p / 10) : (O = 9 * p / 50, s = -8 * p), O * a + s;
1092
+ }
1093
+ }, h.findCenterOfTree = function(a) {
1094
+ var p = [];
1095
+ p = p.concat(a);
1096
+ var v = [], D = /* @__PURE__ */ new Map(), u = !1, E = null;
1097
+ (p.length == 1 || p.length == 2) && (u = !0, E = p[0]);
1098
+ for (var y = 0; y < p.length; y++) {
1099
+ var O = p[y], s = O.getNeighborsList().size;
1100
+ D.set(O, O.getNeighborsList().size), s == 1 && v.push(O);
1101
+ }
1102
+ var f = [];
1103
+ for (f = f.concat(v); !u; ) {
1104
+ var c = [];
1105
+ c = c.concat(f), f = [];
1106
+ for (var y = 0; y < p.length; y++) {
1107
+ var O = p[y], L = p.indexOf(O);
1108
+ L >= 0 && p.splice(L, 1);
1109
+ var A = O.getNeighborsList();
1110
+ A.forEach(function(R) {
1111
+ if (v.indexOf(R) < 0) {
1112
+ var M = D.get(R), S = M - 1;
1113
+ S == 1 && f.push(R), D.set(R, S);
1114
+ }
1115
+ });
1116
+ }
1117
+ v = v.concat(f), (p.length == 1 || p.length == 2) && (u = !0, E = p[0]);
1118
+ }
1119
+ return E;
1120
+ }, h.prototype.setGraphManager = function(a) {
1121
+ this.graphManager = a;
1122
+ }, N.exports = h;
1123
+ },
1124
+ /* 16 */
1125
+ /***/
1126
+ function(N, I, T) {
1127
+ function o() {
1128
+ }
1129
+ o.seed = 1, o.x = 0, o.nextDouble = function() {
1130
+ return o.x = Math.sin(o.seed++) * 1e4, o.x - Math.floor(o.x);
1131
+ }, N.exports = o;
1132
+ },
1133
+ /* 17 */
1134
+ /***/
1135
+ function(N, I, T) {
1136
+ var o = T(4);
1137
+ function e(t, i) {
1138
+ this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1139
+ }
1140
+ e.prototype.getWorldOrgX = function() {
1141
+ return this.lworldOrgX;
1142
+ }, e.prototype.setWorldOrgX = function(t) {
1143
+ this.lworldOrgX = t;
1144
+ }, e.prototype.getWorldOrgY = function() {
1145
+ return this.lworldOrgY;
1146
+ }, e.prototype.setWorldOrgY = function(t) {
1147
+ this.lworldOrgY = t;
1148
+ }, e.prototype.getWorldExtX = function() {
1149
+ return this.lworldExtX;
1150
+ }, e.prototype.setWorldExtX = function(t) {
1151
+ this.lworldExtX = t;
1152
+ }, e.prototype.getWorldExtY = function() {
1153
+ return this.lworldExtY;
1154
+ }, e.prototype.setWorldExtY = function(t) {
1155
+ this.lworldExtY = t;
1156
+ }, e.prototype.getDeviceOrgX = function() {
1157
+ return this.ldeviceOrgX;
1158
+ }, e.prototype.setDeviceOrgX = function(t) {
1159
+ this.ldeviceOrgX = t;
1160
+ }, e.prototype.getDeviceOrgY = function() {
1161
+ return this.ldeviceOrgY;
1162
+ }, e.prototype.setDeviceOrgY = function(t) {
1163
+ this.ldeviceOrgY = t;
1164
+ }, e.prototype.getDeviceExtX = function() {
1165
+ return this.ldeviceExtX;
1166
+ }, e.prototype.setDeviceExtX = function(t) {
1167
+ this.ldeviceExtX = t;
1168
+ }, e.prototype.getDeviceExtY = function() {
1169
+ return this.ldeviceExtY;
1170
+ }, e.prototype.setDeviceExtY = function(t) {
1171
+ this.ldeviceExtY = t;
1172
+ }, e.prototype.transformX = function(t) {
1173
+ var i = 0, l = this.lworldExtX;
1174
+ return l != 0 && (i = this.ldeviceOrgX + (t - this.lworldOrgX) * this.ldeviceExtX / l), i;
1175
+ }, e.prototype.transformY = function(t) {
1176
+ var i = 0, l = this.lworldExtY;
1177
+ return l != 0 && (i = this.ldeviceOrgY + (t - this.lworldOrgY) * this.ldeviceExtY / l), i;
1178
+ }, e.prototype.inverseTransformX = function(t) {
1179
+ var i = 0, l = this.ldeviceExtX;
1180
+ return l != 0 && (i = this.lworldOrgX + (t - this.ldeviceOrgX) * this.lworldExtX / l), i;
1181
+ }, e.prototype.inverseTransformY = function(t) {
1182
+ var i = 0, l = this.ldeviceExtY;
1183
+ return l != 0 && (i = this.lworldOrgY + (t - this.ldeviceOrgY) * this.lworldExtY / l), i;
1184
+ }, e.prototype.inverseTransformPoint = function(t) {
1185
+ var i = new o(this.inverseTransformX(t.x), this.inverseTransformY(t.y));
1186
+ return i;
1187
+ }, N.exports = e;
1188
+ },
1189
+ /* 18 */
1190
+ /***/
1191
+ function(N, I, T) {
1192
+ function o(r) {
1193
+ if (Array.isArray(r)) {
1194
+ for (var h = 0, a = Array(r.length); h < r.length; h++)
1195
+ a[h] = r[h];
1196
+ return a;
1197
+ } else
1198
+ return Array.from(r);
1199
+ }
1200
+ var e = T(15), t = T(7), i = T(0), l = T(8), g = T(9);
1201
+ function n() {
1202
+ 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;
1203
+ }
1204
+ n.prototype = Object.create(e.prototype);
1205
+ for (var d in e)
1206
+ n[d] = e[d];
1207
+ n.prototype.initParameters = function() {
1208
+ e.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1209
+ }, n.prototype.calcIdealEdgeLengths = function() {
1210
+ for (var r, h, a, p, v, D, u = this.getGraphManager().getAllEdges(), E = 0; E < u.length; E++)
1211
+ r = u[E], 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));
1212
+ }, n.prototype.initSpringEmbedder = function() {
1213
+ var r = this.getAllNodes().length;
1214
+ 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();
1215
+ }, n.prototype.calcSpringForces = function() {
1216
+ for (var r = this.getAllEdges(), h, a = 0; a < r.length; a++)
1217
+ h = r[a], this.calcSpringForce(h, h.idealLength);
1218
+ }, n.prototype.calcRepulsionForces = function() {
1219
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a, p, v, D, u = this.getAllNodes(), E;
1220
+ if (this.useFRGridVariant)
1221
+ for (this.totalIterations % t.GRID_CALCULATION_CHECK_PERIOD == 1 && r && this.updateGrid(), E = /* @__PURE__ */ new Set(), a = 0; a < u.length; a++)
1222
+ v = u[a], this.calculateRepulsionForceOfANode(v, E, r, h), E.add(v);
1223
+ else
1224
+ for (a = 0; a < u.length; a++)
1225
+ for (v = u[a], p = a + 1; p < u.length; p++)
1226
+ D = u[p], v.getOwner() == D.getOwner() && this.calcRepulsionForce(v, D);
1227
+ }, n.prototype.calcGravitationalForces = function() {
1228
+ for (var r, h = this.getAllNodesToApplyGravitation(), a = 0; a < h.length; a++)
1229
+ r = h[a], this.calcGravitationalForce(r);
1230
+ }, n.prototype.moveNodes = function() {
1231
+ for (var r = this.getAllNodes(), h, a = 0; a < r.length; a++)
1232
+ h = r[a], h.move();
1233
+ }, n.prototype.calcSpringForce = function(r, h) {
1234
+ var a = r.getSource(), p = r.getTarget(), v, D, u, E;
1235
+ if (this.uniformLeafNodeSizes && a.getChild() == null && p.getChild() == null)
1236
+ r.updateLengthSimple();
1237
+ else if (r.updateLength(), r.isOverlapingSourceAndTarget)
1238
+ return;
1239
+ v = r.getLength(), v != 0 && (D = this.springConstant * (v - h), u = D * (r.lengthX / v), E = D * (r.lengthY / v), a.springForceX += u, a.springForceY += E, p.springForceX -= u, p.springForceY -= E);
1240
+ }, n.prototype.calcRepulsionForce = function(r, h) {
1241
+ var a = r.getRect(), p = h.getRect(), v = new Array(2), D = new Array(4), u, E, y, O, s, f, c;
1242
+ if (a.intersects(p)) {
1243
+ l.calcSeparationAmount(a, p, v, t.DEFAULT_EDGE_LENGTH / 2), f = 2 * v[0], c = 2 * v[1];
1244
+ var L = r.noOfChildren * h.noOfChildren / (r.noOfChildren + h.noOfChildren);
1245
+ r.repulsionForceX -= L * f, r.repulsionForceY -= L * c, h.repulsionForceX += L * f, h.repulsionForceY += L * c;
1246
+ } else
1247
+ this.uniformLeafNodeSizes && r.getChild() == null && h.getChild() == null ? (u = p.getCenterX() - a.getCenterX(), E = p.getCenterY() - a.getCenterY()) : (l.getIntersection(a, p, D), u = D[2] - D[0], E = D[3] - D[1]), Math.abs(u) < t.MIN_REPULSION_DIST && (u = g.sign(u) * t.MIN_REPULSION_DIST), Math.abs(E) < t.MIN_REPULSION_DIST && (E = g.sign(E) * t.MIN_REPULSION_DIST), y = u * u + E * E, O = Math.sqrt(y), s = this.repulsionConstant * r.noOfChildren * h.noOfChildren / y, f = s * u / O, c = s * E / O, r.repulsionForceX -= f, r.repulsionForceY -= c, h.repulsionForceX += f, h.repulsionForceY += c;
1248
+ }, n.prototype.calcGravitationalForce = function(r) {
1249
+ var h, a, p, v, D, u, E, y;
1250
+ 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, E = Math.abs(D) + r.getHeight() / 2, r.getOwner() == this.graphManager.getRoot() ? (y = h.getEstimatedSize() * this.gravityRangeFactor, (u > y || E > y) && (r.gravitationForceX = -this.gravityConstant * v, r.gravitationForceY = -this.gravityConstant * D)) : (y = h.getEstimatedSize() * this.compoundGravityRangeFactor, (u > y || E > y) && (r.gravitationForceX = -this.gravityConstant * v * this.compoundGravityConstant, r.gravitationForceY = -this.gravityConstant * D * this.compoundGravityConstant));
1251
+ }, n.prototype.isConverged = function() {
1252
+ var r, h = !1;
1253
+ 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;
1254
+ }, n.prototype.animate = function() {
1255
+ this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++);
1256
+ }, n.prototype.calcNoOfChildrenForAllNodes = function() {
1257
+ for (var r, h = this.graphManager.getAllNodes(), a = 0; a < h.length; a++)
1258
+ r = h[a], r.noOfChildren = r.getNoOfChildren();
1259
+ }, n.prototype.calcGrid = function(r) {
1260
+ var h = 0, a = 0;
1261
+ h = parseInt(Math.ceil((r.getRight() - r.getLeft()) / this.repulsionRange)), a = parseInt(Math.ceil((r.getBottom() - r.getTop()) / this.repulsionRange));
1262
+ for (var p = new Array(h), v = 0; v < h; v++)
1263
+ p[v] = new Array(a);
1264
+ for (var v = 0; v < h; v++)
1265
+ for (var D = 0; D < a; D++)
1266
+ p[v][D] = new Array();
1267
+ return p;
1268
+ }, n.prototype.addNodeToGrid = function(r, h, a) {
1269
+ var p = 0, v = 0, D = 0, u = 0;
1270
+ 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));
1271
+ for (var E = p; E <= v; E++)
1272
+ for (var y = D; y <= u; y++)
1273
+ this.grid[E][y].push(r), r.setGridCoordinates(p, v, D, u);
1274
+ }, n.prototype.updateGrid = function() {
1275
+ var r, h, a = this.getAllNodes();
1276
+ for (this.grid = this.calcGrid(this.graphManager.getRoot()), r = 0; r < a.length; r++)
1277
+ h = a[r], this.addNodeToGrid(h, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
1278
+ }, n.prototype.calculateRepulsionForceOfANode = function(r, h, a, p) {
1279
+ if (this.totalIterations % t.GRID_CALCULATION_CHECK_PERIOD == 1 && a || p) {
1280
+ var v = /* @__PURE__ */ new Set();
1281
+ r.surrounding = new Array();
1282
+ for (var D, u = this.grid, E = r.startX - 1; E < r.finishX + 2; E++)
1283
+ for (var y = r.startY - 1; y < r.finishY + 2; y++)
1284
+ if (!(E < 0 || y < 0 || E >= u.length || y >= u[0].length)) {
1285
+ for (var O = 0; O < u[E][y].length; O++)
1286
+ if (D = u[E][y][O], !(r.getOwner() != D.getOwner() || r == D) && !h.has(D) && !v.has(D)) {
1287
+ 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);
1288
+ s <= this.repulsionRange && f <= this.repulsionRange && v.add(D);
1289
+ }
1290
+ }
1291
+ r.surrounding = [].concat(o(v));
1292
+ }
1293
+ for (E = 0; E < r.surrounding.length; E++)
1294
+ this.calcRepulsionForce(r, r.surrounding[E]);
1295
+ }, n.prototype.calcRepulsionRange = function() {
1296
+ return 0;
1297
+ }, N.exports = n;
1298
+ },
1299
+ /* 19 */
1300
+ /***/
1301
+ function(N, I, T) {
1302
+ var o = T(1), e = T(7);
1303
+ function t(l, g, n) {
1304
+ o.call(this, l, g, n), this.idealLength = e.DEFAULT_EDGE_LENGTH;
1305
+ }
1306
+ t.prototype = Object.create(o.prototype);
1307
+ for (var i in o)
1308
+ t[i] = o[i];
1309
+ N.exports = t;
1310
+ },
1311
+ /* 20 */
1312
+ /***/
1313
+ function(N, I, T) {
1314
+ var o = T(3);
1315
+ function e(i, l, g, n) {
1316
+ 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 = [];
1317
+ }
1318
+ e.prototype = Object.create(o.prototype);
1319
+ for (var t in o)
1320
+ e[t] = o[t];
1321
+ e.prototype.setGridCoordinates = function(i, l, g, n) {
1322
+ this.startX = i, this.finishX = l, this.startY = g, this.finishY = n;
1323
+ }, N.exports = e;
1324
+ },
1325
+ /* 21 */
1326
+ /***/
1327
+ function(N, I, T) {
1328
+ function o(e, t) {
1329
+ this.width = 0, this.height = 0, e !== null && t !== null && (this.height = t, this.width = e);
1330
+ }
1331
+ o.prototype.getWidth = function() {
1332
+ return this.width;
1333
+ }, o.prototype.setWidth = function(e) {
1334
+ this.width = e;
1335
+ }, o.prototype.getHeight = function() {
1336
+ return this.height;
1337
+ }, o.prototype.setHeight = function(e) {
1338
+ this.height = e;
1339
+ }, N.exports = o;
1340
+ },
1341
+ /* 22 */
1342
+ /***/
1343
+ function(N, I, T) {
1344
+ var o = T(14);
1345
+ function e() {
1346
+ this.map = {}, this.keys = [];
1347
+ }
1348
+ e.prototype.put = function(t, i) {
1349
+ var l = o.createID(t);
1350
+ this.contains(l) || (this.map[l] = i, this.keys.push(t));
1351
+ }, e.prototype.contains = function(t) {
1352
+ return o.createID(t), this.map[t] != null;
1353
+ }, e.prototype.get = function(t) {
1354
+ var i = o.createID(t);
1355
+ return this.map[i];
1356
+ }, e.prototype.keySet = function() {
1357
+ return this.keys;
1358
+ }, N.exports = e;
1359
+ },
1360
+ /* 23 */
1361
+ /***/
1362
+ function(N, I, T) {
1363
+ var o = T(14);
1364
+ function e() {
1365
+ this.set = {};
1366
+ }
1367
+ e.prototype.add = function(t) {
1368
+ var i = o.createID(t);
1369
+ this.contains(i) || (this.set[i] = t);
1370
+ }, e.prototype.remove = function(t) {
1371
+ delete this.set[o.createID(t)];
1372
+ }, e.prototype.clear = function() {
1373
+ this.set = {};
1374
+ }, e.prototype.contains = function(t) {
1375
+ return this.set[o.createID(t)] == t;
1376
+ }, e.prototype.isEmpty = function() {
1377
+ return this.size() === 0;
1378
+ }, e.prototype.size = function() {
1379
+ return Object.keys(this.set).length;
1380
+ }, e.prototype.addAllTo = function(t) {
1381
+ for (var i = Object.keys(this.set), l = i.length, g = 0; g < l; g++)
1382
+ t.push(this.set[i[g]]);
1383
+ }, e.prototype.size = function() {
1384
+ return Object.keys(this.set).length;
1385
+ }, e.prototype.addAll = function(t) {
1386
+ for (var i = t.length, l = 0; l < i; l++) {
1387
+ var g = t[l];
1388
+ this.add(g);
1389
+ }
1390
+ }, N.exports = e;
1391
+ },
1392
+ /* 24 */
1393
+ /***/
1394
+ function(N, I, T) {
1395
+ var o = /* @__PURE__ */ function() {
1396
+ function l(g, n) {
1397
+ for (var d = 0; d < n.length; d++) {
1398
+ var r = n[d];
1399
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(g, r.key, r);
1400
+ }
1401
+ }
1402
+ return function(g, n, d) {
1403
+ return n && l(g.prototype, n), d && l(g, d), g;
1404
+ };
1405
+ }();
1406
+ function e(l, g) {
1407
+ if (!(l instanceof g))
1408
+ throw new TypeError("Cannot call a class as a function");
1409
+ }
1410
+ var t = T(11), i = function() {
1411
+ function l(g, n) {
1412
+ e(this, l), (n !== null || n !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1413
+ var d = void 0;
1414
+ g instanceof t ? d = g.size() : d = g.length, this._quicksort(g, 0, d - 1);
1415
+ }
1416
+ return o(l, [{
1417
+ key: "_quicksort",
1418
+ value: function(n, d, r) {
1419
+ if (d < r) {
1420
+ var h = this._partition(n, d, r);
1421
+ this._quicksort(n, d, h), this._quicksort(n, h + 1, r);
1422
+ }
1423
+ }
1424
+ }, {
1425
+ key: "_partition",
1426
+ value: function(n, d, r) {
1427
+ for (var h = this._get(n, d), a = d, p = r; ; ) {
1428
+ for (; this.compareFunction(h, this._get(n, p)); )
1429
+ p--;
1430
+ for (; this.compareFunction(this._get(n, a), h); )
1431
+ a++;
1432
+ if (a < p)
1433
+ this._swap(n, a, p), a++, p--;
1434
+ else return p;
1435
+ }
1436
+ }
1437
+ }, {
1438
+ key: "_get",
1439
+ value: function(n, d) {
1440
+ return n instanceof t ? n.get_object_at(d) : n[d];
1441
+ }
1442
+ }, {
1443
+ key: "_set",
1444
+ value: function(n, d, r) {
1445
+ n instanceof t ? n.set_object_at(d, r) : n[d] = r;
1446
+ }
1447
+ }, {
1448
+ key: "_swap",
1449
+ value: function(n, d, r) {
1450
+ var h = this._get(n, d);
1451
+ this._set(n, d, this._get(n, r)), this._set(n, r, h);
1452
+ }
1453
+ }, {
1454
+ key: "_defaultCompareFunction",
1455
+ value: function(n, d) {
1456
+ return d > n;
1457
+ }
1458
+ }]), l;
1459
+ }();
1460
+ N.exports = i;
1461
+ },
1462
+ /* 25 */
1463
+ /***/
1464
+ function(N, I, T) {
1465
+ var o = /* @__PURE__ */ function() {
1466
+ function i(l, g) {
1467
+ for (var n = 0; n < g.length; n++) {
1468
+ var d = g[n];
1469
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(l, d.key, d);
1470
+ }
1471
+ }
1472
+ return function(l, g, n) {
1473
+ return g && i(l.prototype, g), n && i(l, n), l;
1474
+ };
1475
+ }();
1476
+ function e(i, l) {
1477
+ if (!(i instanceof l))
1478
+ throw new TypeError("Cannot call a class as a function");
1479
+ }
1480
+ var t = function() {
1481
+ function i(l, g) {
1482
+ 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;
1483
+ 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);
1484
+ for (var h = 0; h < this.iMax; h++) {
1485
+ this.grid[h] = new Array(this.jMax);
1486
+ for (var a = 0; a < this.jMax; a++)
1487
+ this.grid[h][a] = 0;
1488
+ }
1489
+ this.tracebackGrid = new Array(this.iMax);
1490
+ for (var p = 0; p < this.iMax; p++) {
1491
+ this.tracebackGrid[p] = new Array(this.jMax);
1492
+ for (var v = 0; v < this.jMax; v++)
1493
+ this.tracebackGrid[p][v] = [null, null, null];
1494
+ }
1495
+ this.alignments = [], this.score = -1, this.computeGrids();
1496
+ }
1497
+ return o(i, [{
1498
+ key: "getScore",
1499
+ value: function() {
1500
+ return this.score;
1501
+ }
1502
+ }, {
1503
+ key: "getAlignments",
1504
+ value: function() {
1505
+ return this.alignments;
1506
+ }
1507
+ // Main dynamic programming procedure
1508
+ }, {
1509
+ key: "computeGrids",
1510
+ value: function() {
1511
+ for (var g = 1; g < this.jMax; g++)
1512
+ this.grid[0][g] = this.grid[0][g - 1] + this.gap_penalty, this.tracebackGrid[0][g] = [!1, !1, !0];
1513
+ for (var n = 1; n < this.iMax; n++)
1514
+ this.grid[n][0] = this.grid[n - 1][0] + this.gap_penalty, this.tracebackGrid[n][0] = [!1, !0, !1];
1515
+ for (var d = 1; d < this.iMax; d++)
1516
+ for (var r = 1; r < this.jMax; r++) {
1517
+ var h = void 0;
1518
+ 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;
1519
+ 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);
1520
+ this.grid[d][r] = v[D[0]], this.tracebackGrid[d][r] = [D.includes(0), D.includes(1), D.includes(2)];
1521
+ }
1522
+ this.score = this.grid[this.iMax - 1][this.jMax - 1];
1523
+ }
1524
+ // Gets all possible valid sequence combinations
1525
+ }, {
1526
+ key: "alignmentTraceback",
1527
+ value: function() {
1528
+ var g = [];
1529
+ for (g.push({
1530
+ pos: [this.sequence1.length, this.sequence2.length],
1531
+ seq1: "",
1532
+ seq2: ""
1533
+ }); g[0]; ) {
1534
+ var n = g[0], d = this.tracebackGrid[n.pos[0]][n.pos[1]];
1535
+ d[0] && g.push({
1536
+ pos: [n.pos[0] - 1, n.pos[1] - 1],
1537
+ seq1: this.sequence1[n.pos[0] - 1] + n.seq1,
1538
+ seq2: this.sequence2[n.pos[1] - 1] + n.seq2
1539
+ }), d[1] && g.push({
1540
+ pos: [n.pos[0] - 1, n.pos[1]],
1541
+ seq1: this.sequence1[n.pos[0] - 1] + n.seq1,
1542
+ seq2: "-" + n.seq2
1543
+ }), d[2] && g.push({
1544
+ pos: [n.pos[0], n.pos[1] - 1],
1545
+ seq1: "-" + n.seq1,
1546
+ seq2: this.sequence2[n.pos[1] - 1] + n.seq2
1547
+ }), n.pos[0] === 0 && n.pos[1] === 0 && this.alignments.push({
1548
+ sequence1: n.seq1,
1549
+ sequence2: n.seq2
1550
+ }), g.shift();
1551
+ }
1552
+ return this.alignments;
1553
+ }
1554
+ // Helper Functions
1555
+ }, {
1556
+ key: "getAllIndexes",
1557
+ value: function(g, n) {
1558
+ for (var d = [], r = -1; (r = g.indexOf(n, r + 1)) !== -1; )
1559
+ d.push(r);
1560
+ return d;
1561
+ }
1562
+ }, {
1563
+ key: "arrayAllMaxIndexes",
1564
+ value: function(g) {
1565
+ return this.getAllIndexes(g, Math.max.apply(null, g));
1566
+ }
1567
+ }]), i;
1568
+ }();
1569
+ N.exports = t;
1570
+ },
1571
+ /* 26 */
1572
+ /***/
1573
+ function(N, I, T) {
1574
+ var o = function() {
1575
+ };
1576
+ o.FDLayout = T(18), o.FDLayoutConstants = T(7), o.FDLayoutEdge = T(19), o.FDLayoutNode = T(20), o.DimensionD = T(21), o.HashMap = T(22), o.HashSet = T(23), o.IGeometry = T(8), o.IMath = T(9), o.Integer = T(10), o.Point = T(12), o.PointD = T(4), o.RandomSeed = T(16), o.RectangleD = T(13), o.Transform = T(17), o.UniqueIDGeneretor = T(14), o.Quicksort = T(24), o.LinkedList = T(11), o.LGraphObject = T(2), o.LGraph = T(5), o.LEdge = T(1), o.LGraphManager = T(6), o.LNode = T(3), o.Layout = T(15), o.LayoutConstants = T(0), o.NeedlemanWunsch = T(25), N.exports = o;
1577
+ },
1578
+ /* 27 */
1579
+ /***/
1580
+ function(N, I, T) {
1581
+ function o() {
1582
+ this.listeners = [];
1583
+ }
1584
+ var e = o.prototype;
1585
+ e.addListener = function(t, i) {
1586
+ this.listeners.push({
1587
+ event: t,
1588
+ callback: i
1589
+ });
1590
+ }, e.removeListener = function(t, i) {
1591
+ for (var l = this.listeners.length; l >= 0; l--) {
1592
+ var g = this.listeners[l];
1593
+ g.event === t && g.callback === i && this.listeners.splice(l, 1);
1594
+ }
1595
+ }, e.emit = function(t, i) {
1596
+ for (var l = 0; l < this.listeners.length; l++) {
1597
+ var g = this.listeners[l];
1598
+ t === g.event && g.callback(i);
1599
+ }
1600
+ }, N.exports = o;
1601
+ }
1602
+ /******/
1603
+ ])
1604
+ );
1605
+ });
1606
+ }(Q)), Q.exports;
1607
+ }
1608
+ var ct = $.exports, z;
1609
+ function pt() {
1610
+ return z || (z = 1, function(G, b) {
1611
+ (function(I, T) {
1612
+ G.exports = T(ft());
1613
+ })(ct, function(N) {
1614
+ return (
1615
+ /******/
1616
+ function(I) {
1617
+ var T = {};
1618
+ function o(e) {
1619
+ if (T[e])
1620
+ return T[e].exports;
1621
+ var t = T[e] = {
1622
+ /******/
1623
+ i: e,
1624
+ /******/
1625
+ l: !1,
1626
+ /******/
1627
+ exports: {}
1628
+ /******/
1629
+ };
1630
+ return I[e].call(t.exports, t, t.exports, o), t.l = !0, t.exports;
1631
+ }
1632
+ return o.m = I, o.c = T, o.i = function(e) {
1633
+ return e;
1634
+ }, o.d = function(e, t, i) {
1635
+ o.o(e, t) || Object.defineProperty(e, t, {
1636
+ /******/
1637
+ configurable: !1,
1638
+ /******/
1639
+ enumerable: !0,
1640
+ /******/
1641
+ get: i
1642
+ /******/
1643
+ });
1644
+ }, o.n = function(e) {
1645
+ var t = e && e.__esModule ? (
1646
+ /******/
1647
+ function() {
1648
+ return e.default;
1649
+ }
1650
+ ) : (
1651
+ /******/
1652
+ function() {
1653
+ return e;
1654
+ }
1655
+ );
1656
+ return o.d(t, "a", t), t;
1657
+ }, o.o = function(e, t) {
1658
+ return Object.prototype.hasOwnProperty.call(e, t);
1659
+ }, o.p = "", o(o.s = 7);
1660
+ }([
1661
+ /* 0 */
1662
+ /***/
1663
+ function(I, T) {
1664
+ I.exports = N;
1665
+ },
1666
+ /* 1 */
1667
+ /***/
1668
+ function(I, T, o) {
1669
+ var e = o(0).FDLayoutConstants;
1670
+ function t() {
1671
+ }
1672
+ for (var i in e)
1673
+ t[i] = e[i];
1674
+ t.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, t.DEFAULT_RADIAL_SEPARATION = e.DEFAULT_EDGE_LENGTH, t.DEFAULT_COMPONENT_SEPERATION = 60, t.TILE = !0, t.TILING_PADDING_VERTICAL = 10, t.TILING_PADDING_HORIZONTAL = 10, t.TREE_REDUCTION_ON_INCREMENTAL = !1, I.exports = t;
1675
+ },
1676
+ /* 2 */
1677
+ /***/
1678
+ function(I, T, o) {
1679
+ var e = o(0).FDLayoutEdge;
1680
+ function t(l, g, n) {
1681
+ e.call(this, l, g, n);
1682
+ }
1683
+ t.prototype = Object.create(e.prototype);
1684
+ for (var i in e)
1685
+ t[i] = e[i];
1686
+ I.exports = t;
1687
+ },
1688
+ /* 3 */
1689
+ /***/
1690
+ function(I, T, o) {
1691
+ var e = o(0).LGraph;
1692
+ function t(l, g, n) {
1693
+ e.call(this, l, g, n);
1694
+ }
1695
+ t.prototype = Object.create(e.prototype);
1696
+ for (var i in e)
1697
+ t[i] = e[i];
1698
+ I.exports = t;
1699
+ },
1700
+ /* 4 */
1701
+ /***/
1702
+ function(I, T, o) {
1703
+ var e = o(0).LGraphManager;
1704
+ function t(l) {
1705
+ e.call(this, l);
1706
+ }
1707
+ t.prototype = Object.create(e.prototype);
1708
+ for (var i in e)
1709
+ t[i] = e[i];
1710
+ I.exports = t;
1711
+ },
1712
+ /* 5 */
1713
+ /***/
1714
+ function(I, T, o) {
1715
+ var e = o(0).FDLayoutNode, t = o(0).IMath;
1716
+ function i(g, n, d, r) {
1717
+ e.call(this, g, n, d, r);
1718
+ }
1719
+ i.prototype = Object.create(e.prototype);
1720
+ for (var l in e)
1721
+ i[l] = e[l];
1722
+ i.prototype.move = function() {
1723
+ var g = this.graphManager.getLayout();
1724
+ 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;
1725
+ }, i.prototype.propogateDisplacementToChildren = function(g, n) {
1726
+ for (var d = this.getChild().getNodes(), r, h = 0; h < d.length; h++)
1727
+ r = d[h], r.getChild() == null ? (r.moveBy(g, n), r.displacementX += g, r.displacementY += n) : r.propogateDisplacementToChildren(g, n);
1728
+ }, i.prototype.setPred1 = function(g) {
1729
+ this.pred1 = g;
1730
+ }, i.prototype.getPred1 = function() {
1731
+ return pred1;
1732
+ }, i.prototype.getPred2 = function() {
1733
+ return pred2;
1734
+ }, i.prototype.setNext = function(g) {
1735
+ this.next = g;
1736
+ }, i.prototype.getNext = function() {
1737
+ return next;
1738
+ }, i.prototype.setProcessed = function(g) {
1739
+ this.processed = g;
1740
+ }, i.prototype.isProcessed = function() {
1741
+ return processed;
1742
+ }, I.exports = i;
1743
+ },
1744
+ /* 6 */
1745
+ /***/
1746
+ function(I, T, o) {
1747
+ 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, E = o(0).Transform;
1748
+ function y() {
1749
+ e.call(this), this.toBeTiled = {};
1750
+ }
1751
+ y.prototype = Object.create(e.prototype);
1752
+ for (var O in e)
1753
+ y[O] = e[O];
1754
+ y.prototype.newGraphManager = function() {
1755
+ var s = new t(this);
1756
+ return this.graphManager = s, s;
1757
+ }, y.prototype.newGraph = function(s) {
1758
+ return new i(null, this.graphManager, s);
1759
+ }, y.prototype.newNode = function(s) {
1760
+ return new l(this.graphManager, s);
1761
+ }, y.prototype.newEdge = function(s) {
1762
+ return new g(null, null, s);
1763
+ }, y.prototype.initParameters = function() {
1764
+ 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 = !1, this.isGrowthFinished = !1, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / d.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = d.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
1765
+ }, y.prototype.layout = function() {
1766
+ var s = r.DEFAULT_CREATE_BENDS_AS_NEEDED;
1767
+ return s && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
1768
+ }, y.prototype.classicLayout = function() {
1769
+ 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) {
1770
+ if (n.TREE_REDUCTION_ON_INCREMENTAL) {
1771
+ this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1772
+ var f = new Set(this.getAllNodes()), c = this.nodesWithGravity.filter(function(m) {
1773
+ return f.has(m);
1774
+ });
1775
+ this.graphManager.setAllNodesToApplyGravitation(c);
1776
+ }
1777
+ } else {
1778
+ var s = this.getFlatForest();
1779
+ if (s.length > 0)
1780
+ this.positionNodesRadially(s);
1781
+ else {
1782
+ this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1783
+ var f = new Set(this.getAllNodes()), c = this.nodesWithGravity.filter(function(L) {
1784
+ return f.has(L);
1785
+ });
1786
+ this.graphManager.setAllNodesToApplyGravitation(c), this.positionNodesRandomly();
1787
+ }
1788
+ }
1789
+ return this.initSpringEmbedder(), this.runSpringEmbedder(), !0;
1790
+ }, y.prototype.tick = function() {
1791
+ if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished)
1792
+ if (this.prunedNodesAll.length > 0)
1793
+ this.isTreeGrowing = !0;
1794
+ else
1795
+ return !0;
1796
+ if (this.totalIterations % d.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1797
+ if (this.isConverged())
1798
+ if (this.prunedNodesAll.length > 0)
1799
+ this.isTreeGrowing = !0;
1800
+ else
1801
+ return !0;
1802
+ 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));
1803
+ }
1804
+ if (this.isTreeGrowing) {
1805
+ if (this.growTreeIterations % 10 == 0)
1806
+ if (this.prunedNodesAll.length > 0) {
1807
+ this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1808
+ var s = new Set(this.getAllNodes()), f = this.nodesWithGravity.filter(function(A) {
1809
+ return s.has(A);
1810
+ });
1811
+ this.graphManager.setAllNodesToApplyGravitation(f), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1812
+ } else
1813
+ this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1814
+ this.growTreeIterations++;
1815
+ }
1816
+ if (this.isGrowthFinished) {
1817
+ if (this.isConverged())
1818
+ return !0;
1819
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1820
+ }
1821
+ var c = !this.isTreeGrowing && !this.isGrowthFinished, L = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1822
+ return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(c, L), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
1823
+ }, y.prototype.getPositionsData = function() {
1824
+ for (var s = this.graphManager.getAllNodes(), f = {}, c = 0; c < s.length; c++) {
1825
+ var L = s[c].rect, A = s[c].id;
1826
+ f[A] = {
1827
+ id: A,
1828
+ x: L.getCenterX(),
1829
+ y: L.getCenterY(),
1830
+ w: L.width,
1831
+ h: L.height
1832
+ };
1833
+ }
1834
+ return f;
1835
+ }, y.prototype.runSpringEmbedder = function() {
1836
+ this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
1837
+ var s = !1;
1838
+ if (d.ANIMATE === "during")
1839
+ this.emit("layoutstarted");
1840
+ else {
1841
+ for (; !s; )
1842
+ s = this.tick();
1843
+ this.graphManager.updateBounds();
1844
+ }
1845
+ }, y.prototype.calculateNodesToApplyGravitationTo = function() {
1846
+ var s = [], f, c = this.graphManager.getGraphs(), L = c.length, A;
1847
+ for (A = 0; A < L; A++)
1848
+ f = c[A], f.updateConnected(), f.isConnected || (s = s.concat(f.getNodes()));
1849
+ return s;
1850
+ }, y.prototype.createBendpoints = function() {
1851
+ var s = [];
1852
+ s = s.concat(this.graphManager.getAllEdges());
1853
+ var f = /* @__PURE__ */ new Set(), c;
1854
+ for (c = 0; c < s.length; c++) {
1855
+ var L = s[c];
1856
+ if (!f.has(L)) {
1857
+ var A = L.getSource(), m = L.getTarget();
1858
+ if (A == m)
1859
+ L.getBendpoints().push(new a()), L.getBendpoints().push(new a()), this.createDummyNodesForBendpoints(L), f.add(L);
1860
+ else {
1861
+ var C = [];
1862
+ if (C = C.concat(A.getEdgeListToNode(m)), C = C.concat(m.getEdgeListToNode(A)), !f.has(C[0])) {
1863
+ if (C.length > 1) {
1864
+ var R;
1865
+ for (R = 0; R < C.length; R++) {
1866
+ var M = C[R];
1867
+ M.getBendpoints().push(new a()), this.createDummyNodesForBendpoints(M);
1868
+ }
1869
+ }
1870
+ C.forEach(function(S) {
1871
+ f.add(S);
1872
+ });
1873
+ }
1874
+ }
1875
+ }
1876
+ if (f.size == s.length)
1877
+ break;
1878
+ }
1879
+ }, y.prototype.positionNodesRadially = function(s) {
1880
+ for (var f = new h(0, 0), c = Math.ceil(Math.sqrt(s.length)), L = 0, A = 0, m = 0, C = new a(0, 0), R = 0; R < s.length; R++) {
1881
+ R % c == 0 && (m = 0, A = L, R != 0 && (A += n.DEFAULT_COMPONENT_SEPERATION), L = 0);
1882
+ var M = s[R], S = p.findCenterOfTree(M);
1883
+ f.x = m, f.y = A, C = y.radialLayout(M, S, f), C.y > L && (L = Math.floor(C.y)), m = Math.floor(C.x + n.DEFAULT_COMPONENT_SEPERATION);
1884
+ }
1885
+ this.transform(new a(r.WORLD_CENTER_X - C.x / 2, r.WORLD_CENTER_Y - C.y / 2));
1886
+ }, y.radialLayout = function(s, f, c) {
1887
+ var L = Math.max(this.maxDiagonalInTree(s), n.DEFAULT_RADIAL_SEPARATION);
1888
+ y.branchRadialLayout(f, null, 0, 359, 0, L);
1889
+ var A = u.calculateBounds(s), m = new E();
1890
+ m.setDeviceOrgX(A.getMinX()), m.setDeviceOrgY(A.getMinY()), m.setWorldOrgX(c.x), m.setWorldOrgY(c.y);
1891
+ for (var C = 0; C < s.length; C++) {
1892
+ var R = s[C];
1893
+ R.transform(m);
1894
+ }
1895
+ var M = new a(A.getMaxX(), A.getMaxY());
1896
+ return m.inverseTransformPoint(M);
1897
+ }, y.branchRadialLayout = function(s, f, c, L, A, m) {
1898
+ var C = (L - c + 1) / 2;
1899
+ C < 0 && (C += 180);
1900
+ var R = (C + c) % 360, M = R * D.TWO_PI / 360, S = A * Math.cos(M), Y = A * Math.sin(M);
1901
+ s.setCenter(S, Y);
1902
+ var w = [];
1903
+ w = w.concat(s.getEdges());
1904
+ var x = w.length;
1905
+ f != null && x--;
1906
+ for (var F = 0, U = w.length, P, _ = s.getEdgesBetween(f); _.length > 1; ) {
1907
+ var X = _[0];
1908
+ _.splice(0, 1);
1909
+ var H = w.indexOf(X);
1910
+ H >= 0 && w.splice(H, 1), U--, x--;
1911
+ }
1912
+ f != null ? P = (w.indexOf(_[0]) + 1) % U : P = 0;
1913
+ for (var W = Math.abs(L - c) / x, B = P; F != x; B = ++B % U) {
1914
+ var K = w[B].getOtherEnd(s);
1915
+ if (K != f) {
1916
+ var j = (c + F * W) % 360, ht = (j + W) % 360;
1917
+ y.branchRadialLayout(K, s, j, ht, A + m, m), F++;
1918
+ }
1919
+ }
1920
+ }, y.maxDiagonalInTree = function(s) {
1921
+ for (var f = v.MIN_VALUE, c = 0; c < s.length; c++) {
1922
+ var L = s[c], A = L.getDiagonal();
1923
+ A > f && (f = A);
1924
+ }
1925
+ return f;
1926
+ }, y.prototype.calcRepulsionRange = function() {
1927
+ return 2 * (this.level + 1) * this.idealEdgeLength;
1928
+ }, y.prototype.groupZeroDegreeMembers = function() {
1929
+ var s = this, f = {};
1930
+ this.memberGroups = {}, this.idToDummyNode = {};
1931
+ for (var c = [], L = this.graphManager.getAllNodes(), A = 0; A < L.length; A++) {
1932
+ var m = L[A], C = m.getParent();
1933
+ this.getNodeDegreeWithChildren(m) === 0 && (C.id == null || !this.getToBeTiled(C)) && c.push(m);
1934
+ }
1935
+ for (var A = 0; A < c.length; A++) {
1936
+ var m = c[A], R = m.getParent().id;
1937
+ typeof f[R] > "u" && (f[R] = []), f[R] = f[R].concat(m);
1938
+ }
1939
+ Object.keys(f).forEach(function(M) {
1940
+ if (f[M].length > 1) {
1941
+ var S = "DummyCompound_" + M;
1942
+ s.memberGroups[S] = f[M];
1943
+ var Y = f[M][0].getParent(), w = new l(s.graphManager);
1944
+ 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;
1945
+ var x = s.getGraphManager().add(s.newGraph(), w), F = Y.getChild();
1946
+ F.add(w);
1947
+ for (var U = 0; U < f[M].length; U++) {
1948
+ var P = f[M][U];
1949
+ F.remove(P), x.add(P);
1950
+ }
1951
+ }
1952
+ });
1953
+ }, y.prototype.clearCompounds = function() {
1954
+ var s = {}, f = {};
1955
+ this.performDFSOnCompounds();
1956
+ for (var c = 0; c < this.compoundOrder.length; c++)
1957
+ 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;
1958
+ this.graphManager.resetAllNodes(), this.tileCompoundMembers(s, f);
1959
+ }, y.prototype.clearZeroDegreeMembers = function() {
1960
+ var s = this, f = this.tiledZeroDegreePack = [];
1961
+ Object.keys(this.memberGroups).forEach(function(c) {
1962
+ var L = s.idToDummyNode[c];
1963
+ f[c] = s.tileNodes(s.memberGroups[c], L.paddingLeft + L.paddingRight), L.rect.width = f[c].width, L.rect.height = f[c].height;
1964
+ });
1965
+ }, y.prototype.repopulateCompounds = function() {
1966
+ for (var s = this.compoundOrder.length - 1; s >= 0; s--) {
1967
+ var f = this.compoundOrder[s], c = f.id, L = f.paddingLeft, A = f.paddingTop;
1968
+ this.adjustLocations(this.tiledMemberPack[c], f.rect.x, f.rect.y, L, A);
1969
+ }
1970
+ }, y.prototype.repopulateZeroDegreeMembers = function() {
1971
+ var s = this, f = this.tiledZeroDegreePack;
1972
+ Object.keys(f).forEach(function(c) {
1973
+ var L = s.idToDummyNode[c], A = L.paddingLeft, m = L.paddingTop;
1974
+ s.adjustLocations(f[c], L.rect.x, L.rect.y, A, m);
1975
+ });
1976
+ }, y.prototype.getToBeTiled = function(s) {
1977
+ var f = s.id;
1978
+ if (this.toBeTiled[f] != null)
1979
+ return this.toBeTiled[f];
1980
+ var c = s.getChild();
1981
+ if (c == null)
1982
+ return this.toBeTiled[f] = !1, !1;
1983
+ for (var L = c.getNodes(), A = 0; A < L.length; A++) {
1984
+ var m = L[A];
1985
+ if (this.getNodeDegree(m) > 0)
1986
+ return this.toBeTiled[f] = !1, !1;
1987
+ if (m.getChild() == null) {
1988
+ this.toBeTiled[m.id] = !1;
1989
+ continue;
1990
+ }
1991
+ if (!this.getToBeTiled(m))
1992
+ return this.toBeTiled[f] = !1, !1;
1993
+ }
1994
+ return this.toBeTiled[f] = !0, !0;
1995
+ }, y.prototype.getNodeDegree = function(s) {
1996
+ s.id;
1997
+ for (var f = s.getEdges(), c = 0, L = 0; L < f.length; L++) {
1998
+ var A = f[L];
1999
+ A.getSource().id !== A.getTarget().id && (c = c + 1);
2000
+ }
2001
+ return c;
2002
+ }, y.prototype.getNodeDegreeWithChildren = function(s) {
2003
+ var f = this.getNodeDegree(s);
2004
+ if (s.getChild() == null)
2005
+ return f;
2006
+ for (var c = s.getChild().getNodes(), L = 0; L < c.length; L++) {
2007
+ var A = c[L];
2008
+ f += this.getNodeDegreeWithChildren(A);
2009
+ }
2010
+ return f;
2011
+ }, y.prototype.performDFSOnCompounds = function() {
2012
+ this.compoundOrder = [], this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes());
2013
+ }, y.prototype.fillCompexOrderByDFS = function(s) {
2014
+ for (var f = 0; f < s.length; f++) {
2015
+ var c = s[f];
2016
+ c.getChild() != null && this.fillCompexOrderByDFS(c.getChild().getNodes()), this.getToBeTiled(c) && this.compoundOrder.push(c);
2017
+ }
2018
+ }, y.prototype.adjustLocations = function(s, f, c, L, A) {
2019
+ f += L, c += A;
2020
+ for (var m = f, C = 0; C < s.rows.length; C++) {
2021
+ var R = s.rows[C];
2022
+ f = m;
2023
+ for (var M = 0, S = 0; S < R.length; S++) {
2024
+ var Y = R[S];
2025
+ Y.rect.x = f, Y.rect.y = c, f += Y.rect.width + s.horizontalPadding, Y.rect.height > M && (M = Y.rect.height);
2026
+ }
2027
+ c += M + s.verticalPadding;
2028
+ }
2029
+ }, y.prototype.tileCompoundMembers = function(s, f) {
2030
+ var c = this;
2031
+ this.tiledMemberPack = [], Object.keys(s).forEach(function(L) {
2032
+ var A = f[L];
2033
+ c.tiledMemberPack[L] = c.tileNodes(s[L], A.paddingLeft + A.paddingRight), A.rect.width = c.tiledMemberPack[L].width, A.rect.height = c.tiledMemberPack[L].height;
2034
+ });
2035
+ }, y.prototype.tileNodes = function(s, f) {
2036
+ var c = n.TILING_PADDING_VERTICAL, L = n.TILING_PADDING_HORIZONTAL, A = {
2037
+ rows: [],
2038
+ rowWidth: [],
2039
+ rowHeight: [],
2040
+ width: 0,
2041
+ height: f,
2042
+ // assume minHeight equals to minWidth
2043
+ verticalPadding: c,
2044
+ horizontalPadding: L
2045
+ };
2046
+ s.sort(function(R, M) {
2047
+ 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;
2048
+ });
2049
+ for (var m = 0; m < s.length; m++) {
2050
+ var C = s[m];
2051
+ 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);
2052
+ }
2053
+ return A;
2054
+ }, y.prototype.insertNodeToRow = function(s, f, c, L) {
2055
+ var A = L;
2056
+ if (c == s.rows.length) {
2057
+ var m = [];
2058
+ s.rows.push(m), s.rowWidth.push(A), s.rowHeight.push(0);
2059
+ }
2060
+ var C = s.rowWidth[c] + f.rect.width;
2061
+ s.rows[c].length > 0 && (C += s.horizontalPadding), s.rowWidth[c] = C, s.width < C && (s.width = C);
2062
+ var R = f.rect.height;
2063
+ c > 0 && (R += s.verticalPadding);
2064
+ var M = 0;
2065
+ 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);
2066
+ }, y.prototype.getShortestRowIndex = function(s) {
2067
+ for (var f = -1, c = Number.MAX_VALUE, L = 0; L < s.rows.length; L++)
2068
+ s.rowWidth[L] < c && (f = L, c = s.rowWidth[L]);
2069
+ return f;
2070
+ }, y.prototype.getLongestRowIndex = function(s) {
2071
+ for (var f = -1, c = Number.MIN_VALUE, L = 0; L < s.rows.length; L++)
2072
+ s.rowWidth[L] > c && (f = L, c = s.rowWidth[L]);
2073
+ return f;
2074
+ }, y.prototype.canAddHorizontal = function(s, f, c) {
2075
+ var L = this.getShortestRowIndex(s);
2076
+ if (L < 0)
2077
+ return !0;
2078
+ var A = s.rowWidth[L];
2079
+ if (A + s.horizontalPadding + f <= s.width) return !0;
2080
+ var m = 0;
2081
+ s.rowHeight[L] < c && L > 0 && (m = c + s.verticalPadding - s.rowHeight[L]);
2082
+ var C;
2083
+ s.width - A >= f + s.horizontalPadding ? C = (s.height + m) / (A + f + s.horizontalPadding) : C = (s.height + m) / s.width, m = c + s.verticalPadding;
2084
+ var R;
2085
+ 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;
2086
+ }, y.prototype.shiftToLastRow = function(s) {
2087
+ var f = this.getLongestRowIndex(s), c = s.rowWidth.length - 1, L = s.rows[f], A = L[L.length - 1], m = A.width + s.horizontalPadding;
2088
+ if (s.width - s.rowWidth[c] > m && f != c) {
2089
+ L.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)];
2090
+ for (var C = Number.MIN_VALUE, R = 0; R < L.length; R++)
2091
+ L[R].height > C && (C = L[R].height);
2092
+ f > 0 && (C += s.verticalPadding);
2093
+ var M = s.rowHeight[f] + s.rowHeight[c];
2094
+ s.rowHeight[f] = C, s.rowHeight[c] < A.height + s.verticalPadding && (s.rowHeight[c] = A.height + s.verticalPadding);
2095
+ var S = s.rowHeight[f] + s.rowHeight[c];
2096
+ s.height += S - M, this.shiftToLastRow(s);
2097
+ }
2098
+ }, y.prototype.tilingPreLayout = function() {
2099
+ n.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers());
2100
+ }, y.prototype.tilingPostLayout = function() {
2101
+ n.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds());
2102
+ }, y.prototype.reduceTrees = function() {
2103
+ for (var s = [], f = !0, c; f; ) {
2104
+ var L = this.graphManager.getAllNodes(), A = [];
2105
+ f = !1;
2106
+ for (var m = 0; m < L.length; m++)
2107
+ c = L[m], c.getEdges().length == 1 && !c.getEdges()[0].isInterGraph && c.getChild() == null && (A.push([c, c.getEdges()[0], c.getOwner()]), f = !0);
2108
+ if (f == !0) {
2109
+ for (var C = [], R = 0; R < A.length; R++)
2110
+ A[R][0].getEdges().length == 1 && (C.push(A[R]), A[R][0].getOwner().remove(A[R][0]));
2111
+ s.push(C), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2112
+ }
2113
+ }
2114
+ this.prunedNodesAll = s;
2115
+ }, y.prototype.growTree = function(s) {
2116
+ for (var f = s.length, c = s[f - 1], L, A = 0; A < c.length; A++)
2117
+ L = c[A], this.findPlaceforPrunedNode(L), L[2].add(L[0]), L[2].add(L[1], L[1].source, L[1].target);
2118
+ s.splice(s.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2119
+ }, y.prototype.findPlaceforPrunedNode = function(s) {
2120
+ var f, c, L = s[0];
2121
+ L == s[1].source ? c = s[1].target : c = s[1].source;
2122
+ 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];
2123
+ if (C > 0)
2124
+ for (var F = A; F <= m; F++)
2125
+ x[0] += this.grid[F][C - 1].length + this.grid[F][C].length - 1;
2126
+ if (m < this.grid.length - 1)
2127
+ for (var F = C; F <= R; F++)
2128
+ x[1] += this.grid[m + 1][F].length + this.grid[m][F].length - 1;
2129
+ if (R < this.grid[0].length - 1)
2130
+ for (var F = A; F <= m; F++)
2131
+ x[2] += this.grid[F][R + 1].length + this.grid[F][R].length - 1;
2132
+ if (A > 0)
2133
+ for (var F = C; F <= R; F++)
2134
+ x[3] += this.grid[A - 1][F].length + this.grid[A][F].length - 1;
2135
+ for (var U = v.MAX_VALUE, P, _, X = 0; X < x.length; X++)
2136
+ x[X] < U ? (U = x[X], P = 1, _ = X) : x[X] == U && P++;
2137
+ if (P == 3 && U == 0)
2138
+ 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);
2139
+ else if (P == 2 && U == 0) {
2140
+ var H = Math.floor(Math.random() * 2);
2141
+ 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;
2142
+ } else if (P == 4 && U == 0) {
2143
+ var H = Math.floor(Math.random() * 4);
2144
+ f = H;
2145
+ } else
2146
+ f = _;
2147
+ f == 0 ? L.setCenter(c.getCenterX(), c.getCenterY() - c.getHeight() / 2 - d.DEFAULT_EDGE_LENGTH - L.getHeight() / 2) : f == 1 ? L.setCenter(c.getCenterX() + c.getWidth() / 2 + d.DEFAULT_EDGE_LENGTH + L.getWidth() / 2, c.getCenterY()) : f == 2 ? L.setCenter(c.getCenterX(), c.getCenterY() + c.getHeight() / 2 + d.DEFAULT_EDGE_LENGTH + L.getHeight() / 2) : L.setCenter(c.getCenterX() - c.getWidth() / 2 - d.DEFAULT_EDGE_LENGTH - L.getWidth() / 2, c.getCenterY());
2148
+ }, I.exports = y;
2149
+ },
2150
+ /* 7 */
2151
+ /***/
2152
+ function(I, T, o) {
2153
+ var e = {};
2154
+ 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;
2155
+ }
2156
+ /******/
2157
+ ])
2158
+ );
2159
+ });
2160
+ }($)), $.exports;
2161
+ }
2162
+ var dt = Z.exports, J;
2163
+ function vt() {
2164
+ return J || (J = 1, function(G, b) {
2165
+ (function(I, T) {
2166
+ G.exports = T(pt());
2167
+ })(dt, function(N) {
2168
+ return (
2169
+ /******/
2170
+ function(I) {
2171
+ var T = {};
2172
+ function o(e) {
2173
+ if (T[e])
2174
+ return T[e].exports;
2175
+ var t = T[e] = {
2176
+ /******/
2177
+ i: e,
2178
+ /******/
2179
+ l: !1,
2180
+ /******/
2181
+ exports: {}
2182
+ /******/
2183
+ };
2184
+ return I[e].call(t.exports, t, t.exports, o), t.l = !0, t.exports;
2185
+ }
2186
+ return o.m = I, o.c = T, o.i = function(e) {
2187
+ return e;
2188
+ }, o.d = function(e, t, i) {
2189
+ o.o(e, t) || Object.defineProperty(e, t, {
2190
+ /******/
2191
+ configurable: !1,
2192
+ /******/
2193
+ enumerable: !0,
2194
+ /******/
2195
+ get: i
2196
+ /******/
2197
+ });
2198
+ }, o.n = function(e) {
2199
+ var t = e && e.__esModule ? (
2200
+ /******/
2201
+ function() {
2202
+ return e.default;
2203
+ }
2204
+ ) : (
2205
+ /******/
2206
+ function() {
2207
+ return e;
2208
+ }
2209
+ );
2210
+ return o.d(t, "a", t), t;
2211
+ }, o.o = function(e, t) {
2212
+ return Object.prototype.hasOwnProperty.call(e, t);
2213
+ }, o.p = "", o(o.s = 1);
2214
+ }([
2215
+ /* 0 */
2216
+ /***/
2217
+ function(I, T) {
2218
+ I.exports = N;
2219
+ },
2220
+ /* 1 */
2221
+ /***/
2222
+ function(I, T, o) {
2223
+ 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 = {
2224
+ // Called on `layoutready`
2225
+ ready: function() {
2226
+ },
2227
+ // Called on `layoutstop`
2228
+ stop: function() {
2229
+ },
2230
+ // 'draft', 'default' or 'proof"
2231
+ // - 'draft' fast cooling rate
2232
+ // - 'default' moderate cooling rate
2233
+ // - "proof" slow cooling rate
2234
+ quality: "default",
2235
+ // include labels in node dimensions
2236
+ nodeDimensionsIncludeLabels: !1,
2237
+ // number of ticks per frame; higher is faster but more jerky
2238
+ refresh: 30,
2239
+ // Whether to fit the network view after when done
2240
+ fit: !0,
2241
+ // Padding on fit
2242
+ padding: 10,
2243
+ // Whether to enable incremental mode
2244
+ randomize: !0,
2245
+ // Node repulsion (non overlapping) multiplier
2246
+ nodeRepulsion: 4500,
2247
+ // Ideal edge (non nested) length
2248
+ idealEdgeLength: 50,
2249
+ // Divisor to compute edge forces
2250
+ edgeElasticity: 0.45,
2251
+ // Nesting factor (multiplier) to compute ideal edge length for nested edges
2252
+ nestingFactor: 0.1,
2253
+ // Gravity force (constant)
2254
+ gravity: 0.25,
2255
+ // Maximum number of iterations to perform
2256
+ numIter: 2500,
2257
+ // For enabling tiling
2258
+ tile: !0,
2259
+ // Type of layout animation. The option set is {'during', 'end', false}
2260
+ animate: "end",
2261
+ // Duration for animate:end
2262
+ animationDuration: 500,
2263
+ // Represents the amount of the vertical space to put between the zero degree members during the tiling operation(can also be a function)
2264
+ tilingPaddingVertical: 10,
2265
+ // Represents the amount of the horizontal space to put between the zero degree members during the tiling operation(can also be a function)
2266
+ tilingPaddingHorizontal: 10,
2267
+ // Gravity range (constant) for compounds
2268
+ gravityRangeCompound: 1.5,
2269
+ // Gravity force (constant) for compounds
2270
+ gravityCompound: 1,
2271
+ // Gravity range (constant)
2272
+ gravityRange: 3.8,
2273
+ // Initial cooling factor for incremental layout
2274
+ initialEnergyOnIncremental: 0.5
2275
+ };
2276
+ function h(D, u) {
2277
+ var E = {};
2278
+ for (var y in D)
2279
+ E[y] = D[y];
2280
+ for (var y in u)
2281
+ E[y] = u[y];
2282
+ return E;
2283
+ }
2284
+ function a(D) {
2285
+ this.options = h(r, D), p(this.options);
2286
+ }
2287
+ var p = function(u) {
2288
+ 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;
2289
+ };
2290
+ a.prototype.run = function() {
2291
+ var D, u, E = this.options;
2292
+ this.idToLNode = {};
2293
+ var y = this.layout = new l(), O = this;
2294
+ O.stopped = !1, this.cy = this.options.cy, this.cy.trigger({ type: "layoutstart", layout: this });
2295
+ var s = y.newGraphManager();
2296
+ this.gm = s;
2297
+ var f = this.options.eles.nodes(), c = this.options.eles.edges();
2298
+ this.root = s.addRoot(), this.processChildrenList(this.root, this.getTopMostNodes(f), y);
2299
+ for (var L = 0; L < c.length; L++) {
2300
+ var A = c[L], m = this.idToLNode[A.data("source")], C = this.idToLNode[A.data("target")];
2301
+ if (m !== C && m.getEdgesBetween(C).length == 0) {
2302
+ var R = s.add(y.newEdge(), m, C);
2303
+ R.id = A.id();
2304
+ }
2305
+ }
2306
+ var M = function(w, x) {
2307
+ typeof w == "number" && (w = x);
2308
+ var F = w.data("id"), U = O.idToLNode[F];
2309
+ return {
2310
+ x: U.getRect().getCenterX(),
2311
+ y: U.getRect().getCenterY()
2312
+ };
2313
+ }, S = function Y() {
2314
+ for (var w = function() {
2315
+ E.fit && E.cy.fit(E.eles, E.padding), D || (D = !0, O.cy.one("layoutready", E.ready), O.cy.trigger({ type: "layoutready", layout: O }));
2316
+ }, x = O.options.refresh, F, U = 0; U < x && !F; U++)
2317
+ F = O.stopped || O.layout.tick();
2318
+ if (F) {
2319
+ y.checkLayoutSuccess() && !y.isSubLayout && y.doPostLayout(), y.tilingPostLayout && y.tilingPostLayout(), y.isLayoutFinished = !0, 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 = !1;
2320
+ return;
2321
+ }
2322
+ var P = O.layout.getPositionsData();
2323
+ E.eles.nodes().positions(function(_, X) {
2324
+ if (typeof _ == "number" && (_ = X), !_.isParent()) {
2325
+ 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); )
2326
+ ;
2327
+ return W != null ? {
2328
+ x: W.x,
2329
+ y: W.y
2330
+ } : {
2331
+ x: _.position("x"),
2332
+ y: _.position("y")
2333
+ };
2334
+ }
2335
+ }), w(), u = requestAnimationFrame(Y);
2336
+ };
2337
+ return y.addListener("layoutstarted", function() {
2338
+ O.options.animate === "during" && (u = requestAnimationFrame(S));
2339
+ }), y.runLayout(), this.options.animate !== "during" && (O.options.eles.nodes().not(":parent").layoutPositions(O, O.options, M), D = !1), this;
2340
+ }, a.prototype.getTopMostNodes = function(D) {
2341
+ for (var u = {}, E = 0; E < D.length; E++)
2342
+ u[D[E].id()] = !0;
2343
+ var y = D.filter(function(O, s) {
2344
+ typeof O == "number" && (O = s);
2345
+ for (var f = O.parent()[0]; f != null; ) {
2346
+ if (u[f.id()])
2347
+ return !1;
2348
+ f = f.parent()[0];
2349
+ }
2350
+ return !0;
2351
+ });
2352
+ return y;
2353
+ }, a.prototype.processChildrenList = function(D, u, E) {
2354
+ for (var y = u.length, O = 0; O < y; O++) {
2355
+ var s = u[O], f = s.children(), c, L = s.layoutDimensions({
2356
+ nodeDimensionsIncludeLabels: this.options.nodeDimensionsIncludeLabels
2357
+ });
2358
+ if (s.outerWidth() != null && s.outerHeight() != null ? c = D.add(new g(E.graphManager, new n(s.position("x") - L.w / 2, s.position("y") - L.h / 2), new d(parseFloat(L.w), parseFloat(L.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()) {
2359
+ var A = s.boundingBox({ includeLabels: !0, includeNodes: !1 }).w, m = s.boundingBox({ includeLabels: !0, includeNodes: !1 }).h, C = s.css("text-halign");
2360
+ c.labelWidth = A, c.labelHeight = m, c.labelPos = C;
2361
+ }
2362
+ 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) {
2363
+ var R;
2364
+ R = E.getGraphManager().add(E.newGraph(), c), this.processChildrenList(R, f, E);
2365
+ }
2366
+ }
2367
+ }, a.prototype.stop = function() {
2368
+ return this.stopped = !0, this;
2369
+ };
2370
+ var v = function(u) {
2371
+ u("layout", "cose-bilkent", a);
2372
+ };
2373
+ typeof cytoscape < "u" && v(cytoscape), I.exports = v;
2374
+ }
2375
+ /******/
2376
+ ])
2377
+ );
2378
+ });
2379
+ }(Z)), Z.exports;
2380
+ }
2381
+ var yt = vt();
2382
+ const Et = /* @__PURE__ */ gt(yt);
2383
+ tt.use(Et);
2384
+ function et(G, b) {
2385
+ G.forEach((N) => {
2386
+ const I = {
2387
+ id: N.id,
2388
+ labelText: N.label,
2389
+ height: N.height,
2390
+ width: N.width,
2391
+ padding: N.padding ?? 0
2392
+ };
2393
+ Object.keys(N).forEach((T) => {
2394
+ ["id", "label", "height", "width", "padding", "x", "y"].includes(T) || (I[T] = N[T]);
2395
+ }), b.add({
2396
+ group: "nodes",
2397
+ data: I,
2398
+ position: {
2399
+ x: N.x ?? 0,
2400
+ y: N.y ?? 0
2401
+ }
2402
+ });
2403
+ });
2404
+ }
2405
+ V(et, "addNodes");
2406
+ function rt(G, b) {
2407
+ G.forEach((N) => {
2408
+ const I = {
2409
+ id: N.id,
2410
+ source: N.start,
2411
+ target: N.end
2412
+ };
2413
+ Object.keys(N).forEach((T) => {
2414
+ ["id", "start", "end"].includes(T) || (I[T] = N[T]);
2415
+ }), b.add({
2416
+ group: "edges",
2417
+ data: I
2418
+ });
2419
+ });
2420
+ }
2421
+ V(rt, "addEdges");
2422
+ function it(G) {
2423
+ return new Promise((b) => {
2424
+ const N = lt("body").append("div").attr("id", "cy").attr("style", "display:none"), I = tt({
2425
+ container: document.getElementById("cy"),
2426
+ // container to render in
2427
+ style: [
2428
+ {
2429
+ selector: "edge",
2430
+ style: {
2431
+ "curve-style": "bezier"
2432
+ }
2433
+ }
2434
+ ]
2435
+ });
2436
+ N.remove(), et(G.nodes, I), rt(G.edges, I), I.nodes().forEach(function(o) {
2437
+ o.layoutDimensions = () => {
2438
+ const e = o.data();
2439
+ return { w: e.width, h: e.height };
2440
+ };
2441
+ });
2442
+ const T = {
2443
+ name: "cose-bilkent",
2444
+ // @ts-ignore Types for cose-bilkent are not correct?
2445
+ quality: "proof",
2446
+ styleEnabled: !1,
2447
+ animate: !1
2448
+ };
2449
+ I.layout(T).run(), I.ready((o) => {
2450
+ k.info("Cytoscape ready", o), b(I);
2451
+ });
2452
+ });
2453
+ }
2454
+ V(it, "createCytoscapeInstance");
2455
+ function nt(G) {
2456
+ return G.nodes().map((b) => {
2457
+ const N = b.data(), I = b.position(), T = {
2458
+ id: N.id,
2459
+ x: I.x,
2460
+ y: I.y
2461
+ };
2462
+ return Object.keys(N).forEach((o) => {
2463
+ o !== "id" && (T[o] = N[o]);
2464
+ }), T;
2465
+ });
2466
+ }
2467
+ V(nt, "extractPositionedNodes");
2468
+ function ot(G) {
2469
+ return G.edges().map((b) => {
2470
+ const N = b.data(), I = b._private.rscratch, T = {
2471
+ id: N.id,
2472
+ source: N.source,
2473
+ target: N.target,
2474
+ startX: I.startX,
2475
+ startY: I.startY,
2476
+ midX: I.midX,
2477
+ midY: I.midY,
2478
+ endX: I.endX,
2479
+ endY: I.endY
2480
+ };
2481
+ return Object.keys(N).forEach((o) => {
2482
+ ["id", "source", "target"].includes(o) || (T[o] = N[o]);
2483
+ }), T;
2484
+ });
2485
+ }
2486
+ V(ot, "extractPositionedEdges");
2487
+ async function st(G, b) {
2488
+ k.debug("Starting cose-bilkent layout algorithm");
2489
+ try {
2490
+ at(G);
2491
+ const N = await it(G), I = nt(N), T = ot(N);
2492
+ return k.debug(`Layout completed: ${I.length} nodes, ${T.length} edges`), {
2493
+ nodes: I,
2494
+ edges: T
2495
+ };
2496
+ } catch (N) {
2497
+ throw k.error("Error in cose-bilkent layout algorithm:", N), N;
2498
+ }
2499
+ }
2500
+ V(st, "executeCoseBilkentLayout");
2501
+ function at(G) {
2502
+ if (!G)
2503
+ throw new Error("Layout data is required");
2504
+ if (!G.config)
2505
+ throw new Error("Configuration is required in layout data");
2506
+ if (!G.rootNode)
2507
+ throw new Error("Root node is required");
2508
+ if (!G.nodes || !Array.isArray(G.nodes))
2509
+ throw new Error("No nodes found in layout data");
2510
+ if (!Array.isArray(G.edges))
2511
+ throw new Error("Edges array is required in layout data");
2512
+ return !0;
2513
+ }
2514
+ V(at, "validateLayoutData");
2515
+ var Lt = /* @__PURE__ */ V(async (G, b, {
2516
+ insertCluster: N,
2517
+ insertEdge: I,
2518
+ insertEdgeLabel: T,
2519
+ insertMarkers: o,
2520
+ insertNode: e,
2521
+ log: t,
2522
+ positionEdgeLabel: i
2523
+ }, { algorithm: l }) => {
2524
+ const g = {}, n = {}, d = b.select("g");
2525
+ o(d, G.markers, G.type, G.diagramId);
2526
+ 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");
2527
+ t.debug("Inserting nodes into DOM for dimension calculation"), await Promise.all(
2528
+ G.nodes.map(async (u) => {
2529
+ if (u.isGroup) {
2530
+ const E = { ...u };
2531
+ n[u.id] = E, g[u.id] = E, await N(r, u);
2532
+ } else {
2533
+ const E = { ...u };
2534
+ g[u.id] = E;
2535
+ const y = await e(p, u, {
2536
+ config: G.config,
2537
+ dir: G.direction || "TB"
2538
+ }), O = y.node().getBBox();
2539
+ E.width = O.width, E.height = O.height, E.domId = y, t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`);
2540
+ }
2541
+ })
2542
+ ), t.debug("Running cose-bilkent layout algorithm");
2543
+ const v = {
2544
+ ...G,
2545
+ nodes: G.nodes.map((u) => {
2546
+ const E = g[u.id];
2547
+ return {
2548
+ ...u,
2549
+ width: E.width,
2550
+ height: E.height
2551
+ };
2552
+ })
2553
+ }, D = await st(v, G.config);
2554
+ t.debug("Positioning nodes based on layout results"), D.nodes.forEach((u) => {
2555
+ const E = g[u.id];
2556
+ E != null && E.domId && (E.domId.attr(
2557
+ "transform",
2558
+ `translate(${u.x}, ${u.y})`
2559
+ ), E.x = u.x, E.y = u.y, t.debug(`Positioned node ${E.id} at center (${u.x}, ${u.y})`));
2560
+ }), D.edges.forEach((u) => {
2561
+ const E = G.edges.find((y) => y.id === u.id);
2562
+ E && (E.points = [
2563
+ { x: u.startX, y: u.startY },
2564
+ { x: u.midX, y: u.midY },
2565
+ { x: u.endX, y: u.endY }
2566
+ ]);
2567
+ }), t.debug("Inserting and positioning edges"), await Promise.all(
2568
+ G.edges.map(async (u) => {
2569
+ await T(a, u);
2570
+ const E = g[u.start ?? ""], y = g[u.end ?? ""];
2571
+ if (E && y) {
2572
+ const O = D.edges.find((s) => s.id === u.id);
2573
+ if (O) {
2574
+ t.debug("APA01 positionedEdge", O);
2575
+ const s = { ...u }, f = I(
2576
+ h,
2577
+ s,
2578
+ n,
2579
+ G.type,
2580
+ E,
2581
+ y,
2582
+ G.diagramId
2583
+ );
2584
+ i(s, f);
2585
+ } else {
2586
+ const s = {
2587
+ ...u,
2588
+ points: [
2589
+ { x: E.x || 0, y: E.y || 0 },
2590
+ { x: y.x || 0, y: y.y || 0 }
2591
+ ]
2592
+ }, f = I(
2593
+ h,
2594
+ s,
2595
+ n,
2596
+ G.type,
2597
+ E,
2598
+ y,
2599
+ G.diagramId
2600
+ );
2601
+ i(s, f);
2602
+ }
2603
+ }
2604
+ })
2605
+ ), t.debug("Cose-bilkent rendering completed");
2606
+ }, "render"), Nt = Lt;
2607
+ export {
2608
+ Nt as render
2609
+ };