@elmethis/core 1.0.0-alpha.14 → 1.0.0-alpha.140

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 (439) hide show
  1. package/dist/{Bash-Cd5wtNan.js → Bash-AnB1C5rB.js} +19 -15
  2. package/dist/Css-B8ydTxz6.js +18 -0
  3. package/dist/ElmShikiHighlighter-BjszRo5d.js +7469 -0
  4. package/dist/{Rust-Beyp-qeb.js → Rust-D6u5pnz9.js} +3 -3
  5. package/dist/_basePickBy-Dna5Lu4R.js +152 -0
  6. package/dist/_baseUniq-DoD3ppoF.js +583 -0
  7. package/dist/abap-BmBUA35e.js +6 -0
  8. package/dist/actionscript-3-Duslr-Xk.js +6 -0
  9. package/dist/ada-CBvPkFpZ.js +6 -0
  10. package/dist/andromeeda-uXNdzNpk.js +4 -0
  11. package/dist/angular-html-BykNicnS.js +32 -0
  12. package/dist/angular-ts-BHpD0guW.js +21 -0
  13. package/dist/apache-CVNlsSDc.js +6 -0
  14. package/dist/apex-DFk3KRB1.js +6 -0
  15. package/dist/apl-iiNHpPRe.js +16 -0
  16. package/dist/applescript-D0lq2uyG.js +6 -0
  17. package/dist/ara-BxwG6H0R.js +6 -0
  18. package/dist/arc-Sg2hIErX.js +83 -0
  19. package/dist/architecture-I3QFYML2-Cr3eE8TC.js +5 -0
  20. package/dist/architectureDiagram-UYN6MBPD-DML6M8Xe.js +4594 -0
  21. package/dist/asciidoc-DfqmH17V.js +6 -0
  22. package/dist/asm-RC0Yh-NZ.js +6 -0
  23. package/dist/astro-jjdX1_o0.js +16 -0
  24. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  25. package/dist/awk-gPH8MVMW.js +6 -0
  26. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  27. package/dist/ballerina-kvLnRU_e.js +6 -0
  28. package/dist/bat-BHYy44sT.js +6 -0
  29. package/dist/beancount-CRuI-qxP.js +6 -0
  30. package/dist/berry-Ci9U0o4h.js +6 -0
  31. package/dist/bibtex-CX618D15.js +6 -0
  32. package/dist/bicep-iuYiPopT.js +6 -0
  33. package/dist/blade-C-EMBGSs.js +18 -0
  34. package/dist/blockDiagram-ZHA2E4KO-DUTZa5UU.js +2247 -0
  35. package/dist/bsl-CXtfttnD.js +8 -0
  36. package/dist/c-DASdrs7p.js +6 -0
  37. package/dist/c4Diagram-6F5ED5ID-Nk3OUrzy.js +1581 -0
  38. package/dist/cadence-BwtsKTvx.js +6 -0
  39. package/dist/cairo-BWa6TLMq.js +8 -0
  40. package/dist/catppuccin-frappe-BrTOiad2.js +4 -0
  41. package/dist/catppuccin-latte-D-dc_R4m.js +4 -0
  42. package/dist/catppuccin-macchiato-DN4jOp0G.js +4 -0
  43. package/dist/catppuccin-mocha-B8yCE3-3.js +4 -0
  44. package/dist/channel-BXMaWN8j.js +5 -0
  45. package/dist/chunk-5HRBRIJM-O7fddiBY.js +24 -0
  46. package/dist/chunk-7U56Z5CX-DOy_XlUF.js +1215 -0
  47. package/dist/chunk-ASOPGD6M-CRHrFIjk.js +64 -0
  48. package/dist/chunk-KFBOBJHC-kjD7HAK_.js +15 -0
  49. package/dist/chunk-T2TOU4HS-DAV9o7jd.js +1303 -0
  50. package/dist/chunk-TMUBEWPD-Ch3JZI2O.js +9 -0
  51. package/dist/clarity-9Cadad6s.js +6 -0
  52. package/dist/classDiagram-LNE6IOMH-BXuvXlWw.js +14 -0
  53. package/dist/classDiagram-v2-MQ7JQ4JX-BXuvXlWw.js +14 -0
  54. package/dist/clojure-CsKKFGwv.js +6 -0
  55. package/dist/clone-C-OzJ6u8.js +8 -0
  56. package/dist/cmake-Ba0CZDb1.js +6 -0
  57. package/dist/cobol-CAatoUdx.js +10 -0
  58. package/dist/codeowners-Bt9yU6NX.js +6 -0
  59. package/dist/codeql-Ce2eNlR6.js +6 -0
  60. package/dist/coffee-D_GzM8k1.js +8 -0
  61. package/dist/common-lisp-r7ZEOG7T.js +6 -0
  62. package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
  63. package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
  64. package/dist/components/badge/ElmTag.stories.d.ts +7 -0
  65. package/dist/components/badge/ElmTag.vue.d.ts +14 -0
  66. package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
  67. package/dist/components/code/ElmKatex.vue.d.ts +3 -1
  68. package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
  69. package/dist/components/code/ElmMermaid.vue.d.ts +8 -0
  70. package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
  71. package/dist/components/code/{ElmPrismHighlighter.vue.d.ts → ElmShikiHighlighter.vue.d.ts} +3 -3
  72. package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
  73. package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
  74. package/dist/components/containments/ElmDesktopWindow.stories.d.ts +6 -0
  75. package/dist/components/containments/ElmDesktopWindow.vue.d.ts +27 -0
  76. package/dist/components/containments/ElmModal.stories.d.ts +6 -0
  77. package/dist/components/containments/ElmModal.vue.d.ts +35 -0
  78. package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
  79. package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
  80. package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
  81. package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
  82. package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
  83. package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
  84. package/dist/components/containments/useSnackbarState.d.ts +28 -0
  85. package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
  86. package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
  87. package/dist/components/data/ElmProgress.stories.d.ts +1 -0
  88. package/dist/components/data/ElmProgress.vue.d.ts +6 -1
  89. package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
  90. package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
  91. package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
  92. package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
  93. package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
  94. package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
  95. package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
  96. package/dist/components/form/ElmButton.stories.d.ts +11 -0
  97. package/dist/components/form/ElmButton.vue.d.ts +41 -0
  98. package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
  99. package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
  100. package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
  101. package/dist/components/form/ElmTextField.stories.d.ts +6 -0
  102. package/dist/components/form/ElmTextField.vue.d.ts +30 -0
  103. package/dist/components/form/ElmTotp.stories.d.ts +6 -0
  104. package/dist/components/form/ElmTotp.vue.d.ts +12 -0
  105. package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
  106. package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
  107. package/dist/components/headings/ElmHeading1.vue.d.ts +3 -1
  108. package/dist/components/headings/ElmHeading2.vue.d.ts +3 -1
  109. package/dist/components/headings/ElmHeading3.vue.d.ts +3 -1
  110. package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
  111. package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
  112. package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
  113. package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
  114. package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
  115. package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
  116. package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
  117. package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
  118. package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
  119. package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
  120. package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
  121. package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
  122. package/dist/components/inline/ElmInlineLink.vue.d.ts +1 -1
  123. package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
  124. package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
  125. package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
  126. package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
  127. package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
  128. package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
  129. package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
  130. package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
  131. package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
  132. package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
  133. package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
  134. package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
  135. package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
  136. package/dist/components/media/ElmFile.vue.d.ts +6 -1
  137. package/dist/components/media/ElmImage.stories.d.ts +1 -0
  138. package/dist/components/media/ElmImage.vue.d.ts +5 -0
  139. package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
  140. package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
  141. package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
  142. package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
  143. package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
  144. package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
  145. package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
  146. package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
  147. package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
  148. package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
  149. package/dist/components/others/ElmTyping.vue.d.ts +4 -0
  150. package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +3 -8
  151. package/dist/components/renderer/ElmJsonRendererAsync.vue.d.ts +3 -0
  152. package/dist/components/table/ElmTable.vue.d.ts +8 -2
  153. package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
  154. package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
  155. package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
  156. package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
  157. package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
  158. package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
  159. package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
  160. package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
  161. package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
  162. package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
  163. package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
  164. package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
  165. package/dist/coq-D7gLDqnE.js +6 -0
  166. package/dist/cpp-DgBvEX06.js +18 -0
  167. package/dist/crystal-Irrx0Pa-.js +18 -0
  168. package/dist/csharp-DP0xB1m9.js +6 -0
  169. package/dist/css-D1aVdRIU.js +6 -0
  170. package/dist/csv-DvCncUGQ.js +6 -0
  171. package/dist/cue-BXMrmvay.js +6 -0
  172. package/dist/cypher-Bjq2-Qil.js +6 -0
  173. package/dist/cytoscape.esm-D7d-JUdX.js +17637 -0
  174. package/dist/d-D6ZXmn3l.js +6 -0
  175. package/dist/dagre-4EVJKHTY-BYRN9jou.js +447 -0
  176. package/dist/dark-plus-pUHDTVV0.js +4 -0
  177. package/dist/dart-Dz59Is3F.js +6 -0
  178. package/dist/dax-BQnxIpeJ.js +6 -0
  179. package/dist/desktop-Db9vb-dl.js +6 -0
  180. package/dist/diagram-QW4FP2JN-Bs-8drax.js +126 -0
  181. package/dist/diff-CXJVWqiZ.js +6 -0
  182. package/dist/docker-CsHqm9tx.js +6 -0
  183. package/dist/dotenv-CpZf7hu_.js +6 -0
  184. package/dist/dracula-BtZx2Kac.js +4 -0
  185. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  186. package/dist/dream-maker-B0kijSoP.js +6 -0
  187. package/dist/edge-DUKxyBaA.js +12 -0
  188. package/dist/elixir-DciEEYXV.js +8 -0
  189. package/dist/elm-C-_4e5ZU.js +8 -0
  190. package/dist/elmethis.js +68 -44
  191. package/dist/elmethis.umd.cjs +2424 -191
  192. package/dist/emacs-lisp-BAefI874.js +6 -0
  193. package/dist/erDiagram-6RL3IURR-ribDrswX.js +937 -0
  194. package/dist/erb-qWJ2Sxju.js +10 -0
  195. package/dist/erlang-zeJgoGSf.js +6 -0
  196. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  197. package/dist/everforest-light-BbXl82Em.js +4 -0
  198. package/dist/fennel-DNqkz9pE.js +6 -0
  199. package/dist/fish-CgmTWKa-.js +6 -0
  200. package/dist/flowDiagram-7ASYPVHJ-CuBgt9gS.js +1484 -0
  201. package/dist/fluent-BapTxJsC.js +6 -0
  202. package/dist/fortran-fixed-form-BJHD-IIW.js +8 -0
  203. package/dist/fortran-free-form-DIGrsU3L.js +6 -0
  204. package/dist/fsharp-C9ST_v27.js +8 -0
  205. package/dist/ganttDiagram-NTVNEXSI-DBJrsNdL.js +2493 -0
  206. package/dist/gdresource-BDmP_ODe.js +10 -0
  207. package/dist/gdscript-C_KI5dtV.js +6 -0
  208. package/dist/gdshader-BGJEsM2Z.js +6 -0
  209. package/dist/genie-C9gPjc6J.js +6 -0
  210. package/dist/gherkin-bka1Exbx.js +6 -0
  211. package/dist/git-commit-CpnaV1vS.js +8 -0
  212. package/dist/git-rebase-i91KcDkj.js +8 -0
  213. package/dist/gitGraph-YCYPL57B-Dxn-b765.js +5 -0
  214. package/dist/gitGraphDiagram-NRZ2UAAF-CLVLlkG2.js +712 -0
  215. package/dist/github-dark-DenFmJkN.js +4 -0
  216. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  217. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  218. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  219. package/dist/github-light-JYsPkUQd.js +4 -0
  220. package/dist/github-light-default-D99KPAby.js +4 -0
  221. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  222. package/dist/gleam-B4k9YFGD.js +6 -0
  223. package/dist/glimmer-js-Cy-seTWt.js +14 -0
  224. package/dist/glimmer-ts-BqS9vK74.js +14 -0
  225. package/dist/glsl-XLGYNq5B.js +8 -0
  226. package/dist/gnuplot-DnWoRZt-.js +6 -0
  227. package/dist/go-BE_MH2_f.js +6 -0
  228. package/dist/graph-Bez2_NoA.js +247 -0
  229. package/dist/graphql-DfqJ60AB.js +14 -0
  230. package/dist/groovy-CyKtXwrG.js +6 -0
  231. package/dist/hack-BcPvMs07.js +10 -0
  232. package/dist/haml-kgLjPoQR.js +10 -0
  233. package/dist/handlebars-CxEEvn8q.js +14 -0
  234. package/dist/haskell-DA6E-9ES.js +6 -0
  235. package/dist/haxe-CZZ33vZw.js +6 -0
  236. package/dist/hcl-BmHk-gID.js +6 -0
  237. package/dist/hjson-CgwED-oz.js +6 -0
  238. package/dist/hlsl-3-lv4gi7.js +6 -0
  239. package/dist/hooks/useElmethisTheme.d.ts +4 -0
  240. package/dist/hooks/useTyping.d.ts +17 -0
  241. package/dist/houston-BDYrDoDW.js +4 -0
  242. package/dist/html-CAwPY-4s.js +10 -0
  243. package/dist/html-derivative-CgU1HeVZ.js +8 -0
  244. package/dist/http-CtmMjKg2.js +14 -0
  245. package/dist/hxml-BNKImryz.js +8 -0
  246. package/dist/hy-C2xHhR6I.js +6 -0
  247. package/dist/imba-Drd0AMDo.js +8 -0
  248. package/dist/{index-DO0Qe0Kt.js → index-D1xdlTqU.js} +17156 -15920
  249. package/dist/index.d.ts +28 -4
  250. package/dist/info-46DW6VJ7-De-85lhs.js +5 -0
  251. package/dist/infoDiagram-A4XQUW5V-BPrPq9DF.js +22 -0
  252. package/dist/ini-BUcvsX-U.js +6 -0
  253. package/dist/init-DjUOC4st.js +16 -0
  254. package/dist/java-B7odJ7Ap.js +6 -0
  255. package/dist/javascript-fa8UlHZE.js +6 -0
  256. package/dist/jinja-BPjRosMt.js +11 -0
  257. package/dist/jison-BygvlveW.js +8 -0
  258. package/dist/journeyDiagram-G5WM74LC-CnI5BKTx.js +810 -0
  259. package/dist/json-Cz3rcMTA.js +6 -0
  260. package/dist/json5-uIDDV5qu.js +6 -0
  261. package/dist/jsonc-i-WRxL89.js +6 -0
  262. package/dist/jsonl-B0wQGTiP.js +6 -0
  263. package/dist/jsonnet-DEQ7IUoJ.js +6 -0
  264. package/dist/jssm-IG12tW_e.js +6 -0
  265. package/dist/jsx-Bkesy5tT.js +6 -0
  266. package/dist/julia-CRcgK_Of.js +16 -0
  267. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  268. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  269. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  270. package/dist/kanban-definition-QRCXZQQD-DrR4vU6r.js +718 -0
  271. package/dist/kotlin-DCgZY7Ii.js +6 -0
  272. package/dist/kusto-BrNSo3rV.js +6 -0
  273. package/dist/laserwave-6a00oqik.js +4 -0
  274. package/dist/latex-D-TusJJP.js +8 -0
  275. package/dist/layout-COyBDkVe.js +1325 -0
  276. package/dist/lean-CYSet4vs.js +6 -0
  277. package/dist/less-BPRpblJr.js +6 -0
  278. package/dist/light-plus-CZuVqSLX.js +4 -0
  279. package/dist/linear-vUygCKAW.js +423 -0
  280. package/dist/liquid-B7RQOxbw.js +14 -0
  281. package/dist/log-D2eRfqDn.js +6 -0
  282. package/dist/logo-QEAtGWZ9.js +6 -0
  283. package/dist/lua-BVfhNLDr.js +8 -0
  284. package/dist/luau-BjYGiqID.js +6 -0
  285. package/dist/make-BjuHP00g.js +6 -0
  286. package/dist/markdown-B7jjCkMW.js +6 -0
  287. package/dist/marko-vyeifSx8.js +14 -0
  288. package/dist/material-theme-D6KBX41T.js +4 -0
  289. package/dist/material-theme-darker-CkRroheE.js +4 -0
  290. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  291. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  292. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  293. package/dist/matlab-Co0cm4Uj.js +6 -0
  294. package/dist/mdc-AwGfuot8.js +12 -0
  295. package/dist/mdx-DIoECIFU.js +6 -0
  296. package/dist/mermaid-B8Znk7YO.js +6 -0
  297. package/dist/mermaid-parser.core-o6MVuPct.js +12479 -0
  298. package/dist/mermaid.core-CrPCZGbK.js +14844 -0
  299. package/dist/min-dark-C7ak0t6c.js +4 -0
  300. package/dist/min-light-CKFxVcPp.js +4 -0
  301. package/dist/mindmap-definition-GWI6TPTV-DC9-zuJZ.js +3219 -0
  302. package/dist/mipsasm-Dn465ziZ.js +6 -0
  303. package/dist/mojo-DPiIJnW3.js +6 -0
  304. package/dist/monokai-C1KBYcO0.js +4 -0
  305. package/dist/move-D0U3hAMk.js +6 -0
  306. package/dist/narrat-Dz4d7OmN.js +6 -0
  307. package/dist/nextflow-DW0Yq9a2.js +6 -0
  308. package/dist/nginx-Can2eAjw.js +8 -0
  309. package/dist/night-owl-Bm2rzalh.js +4 -0
  310. package/dist/nim-B1j3Kg94.js +20 -0
  311. package/dist/nix-DUbL-Ieg.js +6 -0
  312. package/dist/nord-CC5OiUXg.js +4 -0
  313. package/dist/nushell-DX7mjnU-.js +6 -0
  314. package/dist/objective-c-BVVh5_wH.js +6 -0
  315. package/dist/objective-cpp-B7rOm0GT.js +6 -0
  316. package/dist/ocaml-BZLsfx_o.js +6 -0
  317. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  318. package/dist/one-light-D9sNaUtq.js +4 -0
  319. package/dist/ordinal-DfAQgscy.js +61 -0
  320. package/dist/packet-W2GHVCYJ-BaD_yypn.js +5 -0
  321. package/dist/pascal-l2bqd7Dz.js +6 -0
  322. package/dist/perl-B6oy4kD0.js +16 -0
  323. package/dist/php-DGP0mMYG.js +18 -0
  324. package/dist/pie-BEWT4RHE-OeInp-RN.js +5 -0
  325. package/dist/pieDiagram-YF2LJOPJ-DviPVNka.js +161 -0
  326. package/dist/plastic-CSTz3KZp.js +4 -0
  327. package/dist/plsql-oVq_K_wH.js +6 -0
  328. package/dist/po-C82DhkWG.js +6 -0
  329. package/dist/poimandres-C-VADXHD.js +4 -0
  330. package/dist/polar-Ld-I0zJ7.js +6 -0
  331. package/dist/postcss-BZ3MNRIJ.js +6 -0
  332. package/dist/powerquery-CgRa2XRw.js +6 -0
  333. package/dist/powershell-CJR6U-QA.js +6 -0
  334. package/dist/prisma-COL_v1x4.js +6 -0
  335. package/dist/prolog-CuvJOxqT.js +6 -0
  336. package/dist/proto-o9HLmF90.js +6 -0
  337. package/dist/pug-CBXnJ8g8.js +12 -0
  338. package/dist/puppet-BYzxAd8_.js +6 -0
  339. package/dist/purescript-B_1NgE2N.js +6 -0
  340. package/dist/python-DsQISJFZ.js +6 -0
  341. package/dist/qml-FlMIyjU9.js +8 -0
  342. package/dist/qmldir-BInDYbpo.js +6 -0
  343. package/dist/qss-D-h4NdUG.js +6 -0
  344. package/dist/quadrantDiagram-OS5C2QUG-ZXGTzIMD.js +1024 -0
  345. package/dist/r-F-9I-ITZ.js +6 -0
  346. package/dist/racket-BoD1TBFT.js +6 -0
  347. package/dist/raku-IaYcw19m.js +6 -0
  348. package/dist/razor-Bje1i-BN.js +10 -0
  349. package/dist/red-7y8PH7HH.js +4 -0
  350. package/dist/reg-CMUdAgIP.js +6 -0
  351. package/dist/regexp-CXbjUNFD.js +6 -0
  352. package/dist/rel-BaRn3QX7.js +6 -0
  353. package/dist/requirementDiagram-MIRIMTAZ-BBQg3ZoA.js +768 -0
  354. package/dist/riscv-D275NyXt.js +6 -0
  355. package/dist/rose-pine-DhT-HZE9.js +4 -0
  356. package/dist/rose-pine-dawn-DiCjL2i4.js +4 -0
  357. package/dist/rose-pine-moon-BNmGHlcn.js +4 -0
  358. package/dist/rst-B-Yhj7ct.js +22 -0
  359. package/dist/ruby-DTuHl1fB.js +30 -0
  360. package/dist/rust-Cii5SJWu.js +6 -0
  361. package/dist/sankeyDiagram-Y46BX6SQ-kRxFmf2d.js +805 -0
  362. package/dist/sas-E6uq4Yf6.js +8 -0
  363. package/dist/sass-eCUyDs9S.js +6 -0
  364. package/dist/scala-BoCxXFyN.js +6 -0
  365. package/dist/scheme-CJeyKjnR.js +6 -0
  366. package/dist/scss-DhHc4lxB.js +8 -0
  367. package/dist/sdbl-bnfMePEG.js +6 -0
  368. package/dist/sequenceDiagram-G6AWOVSC-J-adtWLC.js +2274 -0
  369. package/dist/shaderlab-CvqEIoL0.js +8 -0
  370. package/dist/shellscript-DXPd9Pjm.js +6 -0
  371. package/dist/shellsession-BM4Gi9UW.js +8 -0
  372. package/dist/slack-dark-i7wN4OET.js +4 -0
  373. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  374. package/dist/smalltalk-C-SeEPAs.js +6 -0
  375. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  376. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  377. package/dist/solarized-light-BheCkDPT.js +4 -0
  378. package/dist/solidity-BG_k8fA_.js +6 -0
  379. package/dist/soy-yvpdUHGC.js +8 -0
  380. package/dist/sparql-DhuelBut.js +8 -0
  381. package/dist/splunk-5AdRU-op.js +6 -0
  382. package/dist/sql-CE1s-LNJ.js +6 -0
  383. package/dist/ssh-config-DHHGll-v.js +6 -0
  384. package/dist/stata-XG8GBm9b.js +8 -0
  385. package/dist/stateDiagram-MAYHULR4-CnqR21Ky.js +268 -0
  386. package/dist/stateDiagram-v2-4JROLMXI-BXZl6QHK.js +14 -0
  387. package/dist/stylus-Bx_GeJsi.js +6 -0
  388. package/dist/svelte-01qw6Rxm.js +14 -0
  389. package/dist/swift-BAWqNR8A.js +6 -0
  390. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  391. package/dist/system-verilog-Cui-g-ut.js +6 -0
  392. package/dist/systemd-CsKYQIQK.js +6 -0
  393. package/dist/talonscript-D2dGh8FO.js +6 -0
  394. package/dist/tasl-D3W8HMV6.js +6 -0
  395. package/dist/tcl-DBFP4l7q.js +6 -0
  396. package/dist/templ-CkuR9rNI.js +12 -0
  397. package/dist/terraform-CBat0YKl.js +6 -0
  398. package/dist/tex-mHs7a43s.js +8 -0
  399. package/dist/timeline-definition-U7ZMHBDA-DmgHfw1m.js +804 -0
  400. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  401. package/dist/toml-4juXvPlK.js +6 -0
  402. package/dist/ts-tags-DA8sBOJH.js +41 -0
  403. package/dist/tsv-BtvSkaG0.js +6 -0
  404. package/dist/tsx-DiGsgWT8.js +6 -0
  405. package/dist/turtle-BJ2wmjPc.js +6 -0
  406. package/dist/twig-5rMZH5nB.js +18 -0
  407. package/dist/typescript-buWNZFwO.js +6 -0
  408. package/dist/typespec-bLbdsxJL.js +6 -0
  409. package/dist/typst-YfWVUfOB.js +6 -0
  410. package/dist/v-wa8Orrdd.js +6 -0
  411. package/dist/vala-DRdriFr_.js +6 -0
  412. package/dist/vb-E2_-jk4M.js +6 -0
  413. package/dist/verilog-B1iBoR5_.js +6 -0
  414. package/dist/vesper-CJsaOsSM.js +4 -0
  415. package/dist/vhdl-CRVaAhXk.js +6 -0
  416. package/dist/viml-B-zWOd7Z.js +6 -0
  417. package/dist/vitesse-black-BoGvW84i.js +4 -0
  418. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  419. package/dist/vitesse-light-CcmG315c.js +4 -0
  420. package/dist/vue-V5-KOnq6.js +31 -0
  421. package/dist/vue-html-B8gQHLrf.js +10 -0
  422. package/dist/vyper-7y1ADzZr.js +6 -0
  423. package/dist/wasm-BWqHbxc2.js +6 -0
  424. package/dist/wasm-DQxwEHae.js +7 -0
  425. package/dist/wenyan-BMYnfus1.js +6 -0
  426. package/dist/wgsl-Cg1wrNXn.js +6 -0
  427. package/dist/wikitext-CntM04PE.js +6 -0
  428. package/dist/wolfram-Ws5qPlX9.js +6 -0
  429. package/dist/xml-ChBsf5uy.js +8 -0
  430. package/dist/xsl-BefjlXrd.js +8 -0
  431. package/dist/xychartDiagram-6QU3TZC5-BTmney6_.js +1304 -0
  432. package/dist/yaml-Bbg74JKr.js +6 -0
  433. package/dist/zenscript-C7IWVCmN.js +6 -0
  434. package/dist/zig-ppDBI4fs.js +6 -0
  435. package/package.json +35 -23
  436. package/dist/JavaScript-CPGj6jvI.js +0 -22
  437. package/dist/TypeScript-Dk8QmsMS.js +0 -22
  438. package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
  439. package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
@@ -0,0 +1,3219 @@
1
+ import { aG as Nt, _ as S, l as z, c as ot, I as Dt, aa as mt, G as it, i as nt, ab as Ot, ac as At, ad as It, d as Ct, al as Rt, a4 as xt } from "./mermaid.core-CrPCZGbK.js";
2
+ import { c as dt } from "./cytoscape.esm-D7d-JUdX.js";
3
+ var tt = { exports: {} }, et = { exports: {} }, rt = { exports: {} }, Mt = rt.exports, ut;
4
+ function wt() {
5
+ return ut || (ut = 1, function(I, w) {
6
+ (function(m, y) {
7
+ I.exports = y();
8
+ })(Mt, function() {
9
+ return (
10
+ /******/
11
+ function(f) {
12
+ var m = {};
13
+ function y(r) {
14
+ if (m[r])
15
+ return m[r].exports;
16
+ var t = m[r] = {
17
+ /******/
18
+ i: r,
19
+ /******/
20
+ l: !1,
21
+ /******/
22
+ exports: {}
23
+ /******/
24
+ };
25
+ return f[r].call(t.exports, t, t.exports, y), t.l = !0, t.exports;
26
+ }
27
+ return y.m = f, y.c = m, y.i = function(r) {
28
+ return r;
29
+ }, y.d = function(r, t, e) {
30
+ y.o(r, t) || Object.defineProperty(r, t, {
31
+ /******/
32
+ configurable: !1,
33
+ /******/
34
+ enumerable: !0,
35
+ /******/
36
+ get: e
37
+ /******/
38
+ });
39
+ }, y.n = function(r) {
40
+ var t = r && r.__esModule ? (
41
+ /******/
42
+ function() {
43
+ return r.default;
44
+ }
45
+ ) : (
46
+ /******/
47
+ function() {
48
+ return r;
49
+ }
50
+ );
51
+ return y.d(t, "a", t), t;
52
+ }, y.o = function(r, t) {
53
+ return Object.prototype.hasOwnProperty.call(r, t);
54
+ }, y.p = "", y(y.s = 26);
55
+ }([
56
+ /* 0 */
57
+ /***/
58
+ function(f, m, y) {
59
+ function r() {
60
+ }
61
+ r.QUALITY = 1, r.DEFAULT_CREATE_BENDS_AS_NEEDED = !1, r.DEFAULT_INCREMENTAL = !1, r.DEFAULT_ANIMATION_ON_LAYOUT = !0, r.DEFAULT_ANIMATION_DURING_LAYOUT = !1, r.DEFAULT_ANIMATION_PERIOD = 50, r.DEFAULT_UNIFORM_LEAF_NODE_SIZES = !1, r.DEFAULT_GRAPH_MARGIN = 15, r.NODE_DIMENSIONS_INCLUDE_LABELS = !1, r.SIMPLE_NODE_SIZE = 40, r.SIMPLE_NODE_HALF_SIZE = r.SIMPLE_NODE_SIZE / 2, r.EMPTY_COMPOUND_NODE_SIZE = 40, r.MIN_EDGE_LENGTH = 1, r.WORLD_BOUNDARY = 1e6, r.INITIAL_WORLD_BOUNDARY = r.WORLD_BOUNDARY / 1e3, r.WORLD_CENTER_X = 1200, r.WORLD_CENTER_Y = 900, f.exports = r;
62
+ },
63
+ /* 1 */
64
+ /***/
65
+ function(f, m, y) {
66
+ var r = y(2), t = y(8), e = y(9);
67
+ function i(g, a, v) {
68
+ r.call(this, v), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = v, this.bendpoints = [], this.source = g, this.target = a;
69
+ }
70
+ i.prototype = Object.create(r.prototype);
71
+ for (var o in r)
72
+ i[o] = r[o];
73
+ i.prototype.getSource = function() {
74
+ return this.source;
75
+ }, i.prototype.getTarget = function() {
76
+ return this.target;
77
+ }, i.prototype.isInterGraph = function() {
78
+ return this.isInterGraph;
79
+ }, i.prototype.getLength = function() {
80
+ return this.length;
81
+ }, i.prototype.isOverlapingSourceAndTarget = function() {
82
+ return this.isOverlapingSourceAndTarget;
83
+ }, i.prototype.getBendpoints = function() {
84
+ return this.bendpoints;
85
+ }, i.prototype.getLca = function() {
86
+ return this.lca;
87
+ }, i.prototype.getSourceInLca = function() {
88
+ return this.sourceInLca;
89
+ }, i.prototype.getTargetInLca = function() {
90
+ return this.targetInLca;
91
+ }, i.prototype.getOtherEnd = function(g) {
92
+ if (this.source === g)
93
+ return this.target;
94
+ if (this.target === g)
95
+ return this.source;
96
+ throw "Node is not incident with this edge";
97
+ }, i.prototype.getOtherEndInGraph = function(g, a) {
98
+ for (var v = this.getOtherEnd(g), n = a.getGraphManager().getRoot(); ; ) {
99
+ if (v.getOwner() == a)
100
+ return v;
101
+ if (v.getOwner() == n)
102
+ break;
103
+ v = v.getOwner().getParent();
104
+ }
105
+ return null;
106
+ }, i.prototype.updateLength = function() {
107
+ var g = new Array(4);
108
+ this.isOverlapingSourceAndTarget = t.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 = e.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = e.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
109
+ }, i.prototype.updateLengthSimple = function() {
110
+ this.lengthX = this.target.getCenterX() - this.source.getCenterX(), this.lengthY = this.target.getCenterY() - this.source.getCenterY(), Math.abs(this.lengthX) < 1 && (this.lengthX = e.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = e.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
111
+ }, f.exports = i;
112
+ },
113
+ /* 2 */
114
+ /***/
115
+ function(f, m, y) {
116
+ function r(t) {
117
+ this.vGraphObject = t;
118
+ }
119
+ f.exports = r;
120
+ },
121
+ /* 3 */
122
+ /***/
123
+ function(f, m, y) {
124
+ var r = y(2), t = y(10), e = y(13), i = y(0), o = y(16), g = y(4);
125
+ function a(n, c, l, E) {
126
+ l == null && E == null && (E = c), r.call(this, E), n.graphManager != null && (n = n.graphManager), this.estimatedSize = t.MIN_VALUE, this.inclusionTreeDepth = t.MAX_VALUE, this.vGraphObject = E, this.edges = [], this.graphManager = n, l != null && c != null ? this.rect = new e(c.x, c.y, l.width, l.height) : this.rect = new e();
127
+ }
128
+ a.prototype = Object.create(r.prototype);
129
+ for (var v in r)
130
+ a[v] = r[v];
131
+ a.prototype.getEdges = function() {
132
+ return this.edges;
133
+ }, a.prototype.getChild = function() {
134
+ return this.child;
135
+ }, a.prototype.getOwner = function() {
136
+ return this.owner;
137
+ }, a.prototype.getWidth = function() {
138
+ return this.rect.width;
139
+ }, a.prototype.setWidth = function(n) {
140
+ this.rect.width = n;
141
+ }, a.prototype.getHeight = function() {
142
+ return this.rect.height;
143
+ }, a.prototype.setHeight = function(n) {
144
+ this.rect.height = n;
145
+ }, a.prototype.getCenterX = function() {
146
+ return this.rect.x + this.rect.width / 2;
147
+ }, a.prototype.getCenterY = function() {
148
+ return this.rect.y + this.rect.height / 2;
149
+ }, a.prototype.getCenter = function() {
150
+ return new g(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
151
+ }, a.prototype.getLocation = function() {
152
+ return new g(this.rect.x, this.rect.y);
153
+ }, a.prototype.getRect = function() {
154
+ return this.rect;
155
+ }, a.prototype.getDiagonal = function() {
156
+ return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
157
+ }, a.prototype.getHalfTheDiagonal = function() {
158
+ return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
159
+ }, a.prototype.setRect = function(n, c) {
160
+ this.rect.x = n.x, this.rect.y = n.y, this.rect.width = c.width, this.rect.height = c.height;
161
+ }, a.prototype.setCenter = function(n, c) {
162
+ this.rect.x = n - this.rect.width / 2, this.rect.y = c - this.rect.height / 2;
163
+ }, a.prototype.setLocation = function(n, c) {
164
+ this.rect.x = n, this.rect.y = c;
165
+ }, a.prototype.moveBy = function(n, c) {
166
+ this.rect.x += n, this.rect.y += c;
167
+ }, a.prototype.getEdgeListToNode = function(n) {
168
+ var c = [], l = this;
169
+ return l.edges.forEach(function(E) {
170
+ if (E.target == n) {
171
+ if (E.source != l) throw "Incorrect edge source!";
172
+ c.push(E);
173
+ }
174
+ }), c;
175
+ }, a.prototype.getEdgesBetween = function(n) {
176
+ var c = [], l = this;
177
+ return l.edges.forEach(function(E) {
178
+ if (!(E.source == l || E.target == l)) throw "Incorrect edge source and/or target";
179
+ (E.target == n || E.source == n) && c.push(E);
180
+ }), c;
181
+ }, a.prototype.getNeighborsList = function() {
182
+ var n = /* @__PURE__ */ new Set(), c = this;
183
+ return c.edges.forEach(function(l) {
184
+ if (l.source == c)
185
+ n.add(l.target);
186
+ else {
187
+ if (l.target != c)
188
+ throw "Incorrect incidency!";
189
+ n.add(l.source);
190
+ }
191
+ }), n;
192
+ }, a.prototype.withChildren = function() {
193
+ var n = /* @__PURE__ */ new Set(), c, l;
194
+ if (n.add(this), this.child != null)
195
+ for (var E = this.child.getNodes(), T = 0; T < E.length; T++)
196
+ c = E[T], l = c.withChildren(), l.forEach(function(D) {
197
+ n.add(D);
198
+ });
199
+ return n;
200
+ }, a.prototype.getNoOfChildren = function() {
201
+ var n = 0, c;
202
+ if (this.child == null)
203
+ n = 1;
204
+ else
205
+ for (var l = this.child.getNodes(), E = 0; E < l.length; E++)
206
+ c = l[E], n += c.getNoOfChildren();
207
+ return n == 0 && (n = 1), n;
208
+ }, a.prototype.getEstimatedSize = function() {
209
+ if (this.estimatedSize == t.MIN_VALUE)
210
+ throw "assert failed";
211
+ return this.estimatedSize;
212
+ }, a.prototype.calcEstimatedSize = function() {
213
+ 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);
214
+ }, a.prototype.scatter = function() {
215
+ var n, c, l = -i.INITIAL_WORLD_BOUNDARY, E = i.INITIAL_WORLD_BOUNDARY;
216
+ n = i.WORLD_CENTER_X + o.nextDouble() * (E - l) + l;
217
+ var T = -i.INITIAL_WORLD_BOUNDARY, D = i.INITIAL_WORLD_BOUNDARY;
218
+ c = i.WORLD_CENTER_Y + o.nextDouble() * (D - T) + T, this.rect.x = n, this.rect.y = c;
219
+ }, a.prototype.updateBounds = function() {
220
+ if (this.getChild() == null)
221
+ throw "assert failed";
222
+ if (this.getChild().getNodes().length != 0) {
223
+ var n = this.getChild();
224
+ if (n.updateBounds(!0), this.rect.x = n.getLeft(), this.rect.y = n.getTop(), this.setWidth(n.getRight() - n.getLeft()), this.setHeight(n.getBottom() - n.getTop()), i.NODE_DIMENSIONS_INCLUDE_LABELS) {
225
+ var c = n.getRight() - n.getLeft(), l = n.getBottom() - n.getTop();
226
+ this.labelWidth > c && (this.rect.x -= (this.labelWidth - c) / 2, this.setWidth(this.labelWidth)), this.labelHeight > l && (this.labelPos == "center" ? this.rect.y -= (this.labelHeight - l) / 2 : this.labelPos == "top" && (this.rect.y -= this.labelHeight - l), this.setHeight(this.labelHeight));
227
+ }
228
+ }
229
+ }, a.prototype.getInclusionTreeDepth = function() {
230
+ if (this.inclusionTreeDepth == t.MAX_VALUE)
231
+ throw "assert failed";
232
+ return this.inclusionTreeDepth;
233
+ }, a.prototype.transform = function(n) {
234
+ var c = this.rect.x;
235
+ c > i.WORLD_BOUNDARY ? c = i.WORLD_BOUNDARY : c < -i.WORLD_BOUNDARY && (c = -i.WORLD_BOUNDARY);
236
+ var l = this.rect.y;
237
+ l > i.WORLD_BOUNDARY ? l = i.WORLD_BOUNDARY : l < -i.WORLD_BOUNDARY && (l = -i.WORLD_BOUNDARY);
238
+ var E = new g(c, l), T = n.inverseTransformPoint(E);
239
+ this.setLocation(T.x, T.y);
240
+ }, a.prototype.getLeft = function() {
241
+ return this.rect.x;
242
+ }, a.prototype.getRight = function() {
243
+ return this.rect.x + this.rect.width;
244
+ }, a.prototype.getTop = function() {
245
+ return this.rect.y;
246
+ }, a.prototype.getBottom = function() {
247
+ return this.rect.y + this.rect.height;
248
+ }, a.prototype.getParent = function() {
249
+ return this.owner == null ? null : this.owner.getParent();
250
+ }, f.exports = a;
251
+ },
252
+ /* 4 */
253
+ /***/
254
+ function(f, m, y) {
255
+ function r(t, e) {
256
+ t == null && e == null ? (this.x = 0, this.y = 0) : (this.x = t, this.y = e);
257
+ }
258
+ r.prototype.getX = function() {
259
+ return this.x;
260
+ }, r.prototype.getY = function() {
261
+ return this.y;
262
+ }, r.prototype.setX = function(t) {
263
+ this.x = t;
264
+ }, r.prototype.setY = function(t) {
265
+ this.y = t;
266
+ }, r.prototype.getDifference = function(t) {
267
+ return new DimensionD(this.x - t.x, this.y - t.y);
268
+ }, r.prototype.getCopy = function() {
269
+ return new r(this.x, this.y);
270
+ }, r.prototype.translate = function(t) {
271
+ return this.x += t.width, this.y += t.height, this;
272
+ }, f.exports = r;
273
+ },
274
+ /* 5 */
275
+ /***/
276
+ function(f, m, y) {
277
+ var r = y(2), t = y(10), e = y(0), i = y(6), o = y(3), g = y(1), a = y(13), v = y(12), n = y(11);
278
+ function c(E, T, D) {
279
+ r.call(this, D), this.estimatedSize = t.MIN_VALUE, this.margin = e.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = E, T != null && T instanceof i ? this.graphManager = T : T != null && T instanceof Layout && (this.graphManager = T.graphManager);
280
+ }
281
+ c.prototype = Object.create(r.prototype);
282
+ for (var l in r)
283
+ c[l] = r[l];
284
+ c.prototype.getNodes = function() {
285
+ return this.nodes;
286
+ }, c.prototype.getEdges = function() {
287
+ return this.edges;
288
+ }, c.prototype.getGraphManager = function() {
289
+ return this.graphManager;
290
+ }, c.prototype.getParent = function() {
291
+ return this.parent;
292
+ }, c.prototype.getLeft = function() {
293
+ return this.left;
294
+ }, c.prototype.getRight = function() {
295
+ return this.right;
296
+ }, c.prototype.getTop = function() {
297
+ return this.top;
298
+ }, c.prototype.getBottom = function() {
299
+ return this.bottom;
300
+ }, c.prototype.isConnected = function() {
301
+ return this.isConnected;
302
+ }, c.prototype.add = function(E, T, D) {
303
+ if (T == null && D == null) {
304
+ var L = E;
305
+ if (this.graphManager == null)
306
+ throw "Graph has no graph mgr!";
307
+ if (this.getNodes().indexOf(L) > -1)
308
+ throw "Node already in graph!";
309
+ return L.owner = this, this.getNodes().push(L), L;
310
+ } else {
311
+ var O = E;
312
+ if (!(this.getNodes().indexOf(T) > -1 && this.getNodes().indexOf(D) > -1))
313
+ throw "Source or target not in graph!";
314
+ if (!(T.owner == D.owner && T.owner == this))
315
+ throw "Both owners must be this graph!";
316
+ return T.owner != D.owner ? null : (O.source = T, O.target = D, O.isInterGraph = !1, this.getEdges().push(O), T.edges.push(O), D != T && D.edges.push(O), O);
317
+ }
318
+ }, c.prototype.remove = function(E) {
319
+ var T = E;
320
+ if (E instanceof o) {
321
+ if (T == null)
322
+ throw "Node is null!";
323
+ if (!(T.owner != null && T.owner == this))
324
+ throw "Owner graph is invalid!";
325
+ if (this.graphManager == null)
326
+ throw "Owner graph manager is invalid!";
327
+ for (var D = T.edges.slice(), L, O = D.length, d = 0; d < O; d++)
328
+ L = D[d], L.isInterGraph ? this.graphManager.remove(L) : L.source.owner.remove(L);
329
+ var N = this.nodes.indexOf(T);
330
+ if (N == -1)
331
+ throw "Node not in owner node list!";
332
+ this.nodes.splice(N, 1);
333
+ } else if (E instanceof g) {
334
+ var L = E;
335
+ if (L == null)
336
+ throw "Edge is null!";
337
+ if (!(L.source != null && L.target != null))
338
+ throw "Source and/or target is null!";
339
+ if (!(L.source.owner != null && L.target.owner != null && L.source.owner == this && L.target.owner == this))
340
+ throw "Source and/or target owner is invalid!";
341
+ var s = L.source.edges.indexOf(L), h = L.target.edges.indexOf(L);
342
+ if (!(s > -1 && h > -1))
343
+ throw "Source and/or target doesn't know this edge!";
344
+ L.source.edges.splice(s, 1), L.target != L.source && L.target.edges.splice(h, 1);
345
+ var N = L.source.owner.getEdges().indexOf(L);
346
+ if (N == -1)
347
+ throw "Not in owner's edge list!";
348
+ L.source.owner.getEdges().splice(N, 1);
349
+ }
350
+ }, c.prototype.updateLeftTop = function() {
351
+ for (var E = t.MAX_VALUE, T = t.MAX_VALUE, D, L, O, d = this.getNodes(), N = d.length, s = 0; s < N; s++) {
352
+ var h = d[s];
353
+ D = h.getTop(), L = h.getLeft(), E > D && (E = D), T > L && (T = L);
354
+ }
355
+ return E == t.MAX_VALUE ? null : (d[0].getParent().paddingLeft != null ? O = d[0].getParent().paddingLeft : O = this.margin, this.left = T - O, this.top = E - O, new v(this.left, this.top));
356
+ }, c.prototype.updateBounds = function(E) {
357
+ for (var T = t.MAX_VALUE, D = -t.MAX_VALUE, L = t.MAX_VALUE, O = -t.MAX_VALUE, d, N, s, h, u, p = this.nodes, A = p.length, C = 0; C < A; C++) {
358
+ var R = p[C];
359
+ E && R.child != null && R.updateBounds(), d = R.getLeft(), N = R.getRight(), s = R.getTop(), h = R.getBottom(), T > d && (T = d), D < N && (D = N), L > s && (L = s), O < h && (O = h);
360
+ }
361
+ var x = new a(T, L, D - T, O - L);
362
+ T == t.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), p[0].getParent().paddingLeft != null ? u = p[0].getParent().paddingLeft : u = this.margin, this.left = x.x - u, this.right = x.x + x.width + u, this.top = x.y - u, this.bottom = x.y + x.height + u;
363
+ }, c.calculateBounds = function(E) {
364
+ for (var T = t.MAX_VALUE, D = -t.MAX_VALUE, L = t.MAX_VALUE, O = -t.MAX_VALUE, d, N, s, h, u = E.length, p = 0; p < u; p++) {
365
+ var A = E[p];
366
+ d = A.getLeft(), N = A.getRight(), s = A.getTop(), h = A.getBottom(), T > d && (T = d), D < N && (D = N), L > s && (L = s), O < h && (O = h);
367
+ }
368
+ var C = new a(T, L, D - T, O - L);
369
+ return C;
370
+ }, c.prototype.getInclusionTreeDepth = function() {
371
+ return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
372
+ }, c.prototype.getEstimatedSize = function() {
373
+ if (this.estimatedSize == t.MIN_VALUE)
374
+ throw "assert failed";
375
+ return this.estimatedSize;
376
+ }, c.prototype.calcEstimatedSize = function() {
377
+ for (var E = 0, T = this.nodes, D = T.length, L = 0; L < D; L++) {
378
+ var O = T[L];
379
+ E += O.calcEstimatedSize();
380
+ }
381
+ return E == 0 ? this.estimatedSize = e.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = E / Math.sqrt(this.nodes.length), this.estimatedSize;
382
+ }, c.prototype.updateConnected = function() {
383
+ var E = this;
384
+ if (this.nodes.length == 0) {
385
+ this.isConnected = !0;
386
+ return;
387
+ }
388
+ var T = new n(), D = /* @__PURE__ */ new Set(), L = this.nodes[0], O, d, N = L.withChildren();
389
+ for (N.forEach(function(C) {
390
+ T.push(C), D.add(C);
391
+ }); T.length !== 0; ) {
392
+ L = T.shift(), O = L.getEdges();
393
+ for (var s = O.length, h = 0; h < s; h++) {
394
+ var u = O[h];
395
+ if (d = u.getOtherEndInGraph(L, this), d != null && !D.has(d)) {
396
+ var p = d.withChildren();
397
+ p.forEach(function(C) {
398
+ T.push(C), D.add(C);
399
+ });
400
+ }
401
+ }
402
+ }
403
+ if (this.isConnected = !1, D.size >= this.nodes.length) {
404
+ var A = 0;
405
+ D.forEach(function(C) {
406
+ C.owner == E && A++;
407
+ }), A == this.nodes.length && (this.isConnected = !0);
408
+ }
409
+ }, f.exports = c;
410
+ },
411
+ /* 6 */
412
+ /***/
413
+ function(f, m, y) {
414
+ var r, t = y(1);
415
+ function e(i) {
416
+ r = y(5), this.layout = i, this.graphs = [], this.edges = [];
417
+ }
418
+ e.prototype.addRoot = function() {
419
+ var i = this.layout.newGraph(), o = this.layout.newNode(null), g = this.add(i, o);
420
+ return this.setRootGraph(g), this.rootGraph;
421
+ }, e.prototype.add = function(i, o, g, a, v) {
422
+ if (g == null && a == null && v == null) {
423
+ if (i == null)
424
+ throw "Graph is null!";
425
+ if (o == null)
426
+ throw "Parent node is null!";
427
+ if (this.graphs.indexOf(i) > -1)
428
+ throw "Graph already in this graph mgr!";
429
+ if (this.graphs.push(i), i.parent != null)
430
+ throw "Already has a parent!";
431
+ if (o.child != null)
432
+ throw "Already has a child!";
433
+ return i.parent = o, o.child = i, i;
434
+ } else {
435
+ v = g, a = o, g = i;
436
+ var n = a.getOwner(), c = v.getOwner();
437
+ if (!(n != null && n.getGraphManager() == this))
438
+ throw "Source not in this graph mgr!";
439
+ if (!(c != null && c.getGraphManager() == this))
440
+ throw "Target not in this graph mgr!";
441
+ if (n == c)
442
+ return g.isInterGraph = !1, n.add(g, a, v);
443
+ if (g.isInterGraph = !0, g.source = a, g.target = v, this.edges.indexOf(g) > -1)
444
+ throw "Edge already in inter-graph edge list!";
445
+ if (this.edges.push(g), !(g.source != null && g.target != null))
446
+ throw "Edge source and/or target is null!";
447
+ if (!(g.source.edges.indexOf(g) == -1 && g.target.edges.indexOf(g) == -1))
448
+ throw "Edge already in source and/or target incidency list!";
449
+ return g.source.edges.push(g), g.target.edges.push(g), g;
450
+ }
451
+ }, e.prototype.remove = function(i) {
452
+ if (i instanceof r) {
453
+ var o = i;
454
+ if (o.getGraphManager() != this)
455
+ throw "Graph not in this graph mgr";
456
+ if (!(o == this.rootGraph || o.parent != null && o.parent.graphManager == this))
457
+ throw "Invalid parent node!";
458
+ var g = [];
459
+ g = g.concat(o.getEdges());
460
+ for (var a, v = g.length, n = 0; n < v; n++)
461
+ a = g[n], o.remove(a);
462
+ var c = [];
463
+ c = c.concat(o.getNodes());
464
+ var l;
465
+ v = c.length;
466
+ for (var n = 0; n < v; n++)
467
+ l = c[n], o.remove(l);
468
+ o == this.rootGraph && this.setRootGraph(null);
469
+ var E = this.graphs.indexOf(o);
470
+ this.graphs.splice(E, 1), o.parent = null;
471
+ } else if (i instanceof t) {
472
+ if (a = i, a == null)
473
+ throw "Edge is null!";
474
+ if (!a.isInterGraph)
475
+ throw "Not an inter-graph edge!";
476
+ if (!(a.source != null && a.target != null))
477
+ throw "Source and/or target is null!";
478
+ if (!(a.source.edges.indexOf(a) != -1 && a.target.edges.indexOf(a) != -1))
479
+ throw "Source and/or target doesn't know this edge!";
480
+ var E = a.source.edges.indexOf(a);
481
+ if (a.source.edges.splice(E, 1), E = a.target.edges.indexOf(a), a.target.edges.splice(E, 1), !(a.source.owner != null && a.source.owner.getGraphManager() != null))
482
+ throw "Edge owner graph or owner graph manager is null!";
483
+ if (a.source.owner.getGraphManager().edges.indexOf(a) == -1)
484
+ throw "Not in owner graph manager's edge list!";
485
+ var E = a.source.owner.getGraphManager().edges.indexOf(a);
486
+ a.source.owner.getGraphManager().edges.splice(E, 1);
487
+ }
488
+ }, e.prototype.updateBounds = function() {
489
+ this.rootGraph.updateBounds(!0);
490
+ }, e.prototype.getGraphs = function() {
491
+ return this.graphs;
492
+ }, e.prototype.getAllNodes = function() {
493
+ if (this.allNodes == null) {
494
+ for (var i = [], o = this.getGraphs(), g = o.length, a = 0; a < g; a++)
495
+ i = i.concat(o[a].getNodes());
496
+ this.allNodes = i;
497
+ }
498
+ return this.allNodes;
499
+ }, e.prototype.resetAllNodes = function() {
500
+ this.allNodes = null;
501
+ }, e.prototype.resetAllEdges = function() {
502
+ this.allEdges = null;
503
+ }, e.prototype.resetAllNodesToApplyGravitation = function() {
504
+ this.allNodesToApplyGravitation = null;
505
+ }, e.prototype.getAllEdges = function() {
506
+ if (this.allEdges == null) {
507
+ var i = [], o = this.getGraphs();
508
+ o.length;
509
+ for (var g = 0; g < o.length; g++)
510
+ i = i.concat(o[g].getEdges());
511
+ i = i.concat(this.edges), this.allEdges = i;
512
+ }
513
+ return this.allEdges;
514
+ }, e.prototype.getAllNodesToApplyGravitation = function() {
515
+ return this.allNodesToApplyGravitation;
516
+ }, e.prototype.setAllNodesToApplyGravitation = function(i) {
517
+ if (this.allNodesToApplyGravitation != null)
518
+ throw "assert failed";
519
+ this.allNodesToApplyGravitation = i;
520
+ }, e.prototype.getRoot = function() {
521
+ return this.rootGraph;
522
+ }, e.prototype.setRootGraph = function(i) {
523
+ if (i.getGraphManager() != this)
524
+ throw "Root not in this graph mgr!";
525
+ this.rootGraph = i, i.parent == null && (i.parent = this.layout.newNode("Root node"));
526
+ }, e.prototype.getLayout = function() {
527
+ return this.layout;
528
+ }, e.prototype.isOneAncestorOfOther = function(i, o) {
529
+ if (!(i != null && o != null))
530
+ throw "assert failed";
531
+ if (i == o)
532
+ return !0;
533
+ var g = i.getOwner(), a;
534
+ do {
535
+ if (a = g.getParent(), a == null)
536
+ break;
537
+ if (a == o)
538
+ return !0;
539
+ if (g = a.getOwner(), g == null)
540
+ break;
541
+ } while (!0);
542
+ g = o.getOwner();
543
+ do {
544
+ if (a = g.getParent(), a == null)
545
+ break;
546
+ if (a == i)
547
+ return !0;
548
+ if (g = a.getOwner(), g == null)
549
+ break;
550
+ } while (!0);
551
+ return !1;
552
+ }, e.prototype.calcLowestCommonAncestors = function() {
553
+ for (var i, o, g, a, v, n = this.getAllEdges(), c = n.length, l = 0; l < c; l++) {
554
+ if (i = n[l], o = i.source, g = i.target, i.lca = null, i.sourceInLca = o, i.targetInLca = g, o == g) {
555
+ i.lca = o.getOwner();
556
+ continue;
557
+ }
558
+ for (a = o.getOwner(); i.lca == null; ) {
559
+ for (i.targetInLca = g, v = g.getOwner(); i.lca == null; ) {
560
+ if (v == a) {
561
+ i.lca = v;
562
+ break;
563
+ }
564
+ if (v == this.rootGraph)
565
+ break;
566
+ if (i.lca != null)
567
+ throw "assert failed";
568
+ i.targetInLca = v.getParent(), v = i.targetInLca.getOwner();
569
+ }
570
+ if (a == this.rootGraph)
571
+ break;
572
+ i.lca == null && (i.sourceInLca = a.getParent(), a = i.sourceInLca.getOwner());
573
+ }
574
+ if (i.lca == null)
575
+ throw "assert failed";
576
+ }
577
+ }, e.prototype.calcLowestCommonAncestor = function(i, o) {
578
+ if (i == o)
579
+ return i.getOwner();
580
+ var g = i.getOwner();
581
+ do {
582
+ if (g == null)
583
+ break;
584
+ var a = o.getOwner();
585
+ do {
586
+ if (a == null)
587
+ break;
588
+ if (a == g)
589
+ return a;
590
+ a = a.getParent().getOwner();
591
+ } while (!0);
592
+ g = g.getParent().getOwner();
593
+ } while (!0);
594
+ return g;
595
+ }, e.prototype.calcInclusionTreeDepths = function(i, o) {
596
+ i == null && o == null && (i = this.rootGraph, o = 1);
597
+ for (var g, a = i.getNodes(), v = a.length, n = 0; n < v; n++)
598
+ g = a[n], g.inclusionTreeDepth = o, g.child != null && this.calcInclusionTreeDepths(g.child, o + 1);
599
+ }, e.prototype.includesInvalidEdge = function() {
600
+ for (var i, o = this.edges.length, g = 0; g < o; g++)
601
+ if (i = this.edges[g], this.isOneAncestorOfOther(i.source, i.target))
602
+ return !0;
603
+ return !1;
604
+ }, f.exports = e;
605
+ },
606
+ /* 7 */
607
+ /***/
608
+ function(f, m, y) {
609
+ var r = y(0);
610
+ function t() {
611
+ }
612
+ for (var e in r)
613
+ t[e] = r[e];
614
+ t.MAX_ITERATIONS = 2500, t.DEFAULT_EDGE_LENGTH = 50, t.DEFAULT_SPRING_STRENGTH = 0.45, t.DEFAULT_REPULSION_STRENGTH = 4500, t.DEFAULT_GRAVITY_STRENGTH = 0.4, t.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, t.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = !0, t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = !0, t.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, t.COOLING_ADAPTATION_FACTOR = 0.33, t.ADAPTATION_LOWER_NODE_LIMIT = 1e3, t.ADAPTATION_UPPER_NODE_LIMIT = 5e3, t.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, t.MAX_NODE_DISPLACEMENT = t.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, t.MIN_REPULSION_DIST = t.DEFAULT_EDGE_LENGTH / 10, t.CONVERGENCE_CHECK_PERIOD = 100, t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, t.MIN_EDGE_LENGTH = 1, t.GRID_CALCULATION_CHECK_PERIOD = 10, f.exports = t;
615
+ },
616
+ /* 8 */
617
+ /***/
618
+ function(f, m, y) {
619
+ var r = y(12);
620
+ function t() {
621
+ }
622
+ t.calcSeparationAmount = function(e, i, o, g) {
623
+ if (!e.intersects(i))
624
+ throw "assert failed";
625
+ var a = new Array(2);
626
+ this.decideDirectionsForOverlappingNodes(e, i, a), o[0] = Math.min(e.getRight(), i.getRight()) - Math.max(e.x, i.x), o[1] = Math.min(e.getBottom(), i.getBottom()) - Math.max(e.y, i.y), e.getX() <= i.getX() && e.getRight() >= i.getRight() ? o[0] += Math.min(i.getX() - e.getX(), e.getRight() - i.getRight()) : i.getX() <= e.getX() && i.getRight() >= e.getRight() && (o[0] += Math.min(e.getX() - i.getX(), i.getRight() - e.getRight())), e.getY() <= i.getY() && e.getBottom() >= i.getBottom() ? o[1] += Math.min(i.getY() - e.getY(), e.getBottom() - i.getBottom()) : i.getY() <= e.getY() && i.getBottom() >= e.getBottom() && (o[1] += Math.min(e.getY() - i.getY(), i.getBottom() - e.getBottom()));
627
+ var v = Math.abs((i.getCenterY() - e.getCenterY()) / (i.getCenterX() - e.getCenterX()));
628
+ i.getCenterY() === e.getCenterY() && i.getCenterX() === e.getCenterX() && (v = 1);
629
+ var n = v * o[0], c = o[1] / v;
630
+ o[0] < c ? c = o[0] : n = o[1], o[0] = -1 * a[0] * (c / 2 + g), o[1] = -1 * a[1] * (n / 2 + g);
631
+ }, t.decideDirectionsForOverlappingNodes = function(e, i, o) {
632
+ e.getCenterX() < i.getCenterX() ? o[0] = -1 : o[0] = 1, e.getCenterY() < i.getCenterY() ? o[1] = -1 : o[1] = 1;
633
+ }, t.getIntersection2 = function(e, i, o) {
634
+ var g = e.getCenterX(), a = e.getCenterY(), v = i.getCenterX(), n = i.getCenterY();
635
+ if (e.intersects(i))
636
+ return o[0] = g, o[1] = a, o[2] = v, o[3] = n, !0;
637
+ var c = e.getX(), l = e.getY(), E = e.getRight(), T = e.getX(), D = e.getBottom(), L = e.getRight(), O = e.getWidthHalf(), d = e.getHeightHalf(), N = i.getX(), s = i.getY(), h = i.getRight(), u = i.getX(), p = i.getBottom(), A = i.getRight(), C = i.getWidthHalf(), R = i.getHeightHalf(), x = !1, _ = !1;
638
+ if (g === v) {
639
+ if (a > n)
640
+ return o[0] = g, o[1] = l, o[2] = v, o[3] = p, !1;
641
+ if (a < n)
642
+ return o[0] = g, o[1] = D, o[2] = v, o[3] = s, !1;
643
+ } else if (a === n) {
644
+ if (g > v)
645
+ return o[0] = c, o[1] = a, o[2] = h, o[3] = n, !1;
646
+ if (g < v)
647
+ return o[0] = E, o[1] = a, o[2] = N, o[3] = n, !1;
648
+ } else {
649
+ var U = e.height / e.width, X = i.height / i.width, M = (n - a) / (v - g), G = void 0, F = void 0, b = void 0, Y = void 0, k = void 0, H = void 0;
650
+ if (-U === M ? g > v ? (o[0] = T, o[1] = D, x = !0) : (o[0] = E, o[1] = l, x = !0) : U === M && (g > v ? (o[0] = c, o[1] = l, x = !0) : (o[0] = L, o[1] = D, x = !0)), -X === M ? v > g ? (o[2] = u, o[3] = p, _ = !0) : (o[2] = h, o[3] = s, _ = !0) : X === M && (v > g ? (o[2] = N, o[3] = s, _ = !0) : (o[2] = A, o[3] = p, _ = !0)), x && _)
651
+ return !1;
652
+ if (g > v ? a > n ? (G = this.getCardinalDirection(U, M, 4), F = this.getCardinalDirection(X, M, 2)) : (G = this.getCardinalDirection(-U, M, 3), F = this.getCardinalDirection(-X, M, 1)) : a > n ? (G = this.getCardinalDirection(-U, M, 1), F = this.getCardinalDirection(-X, M, 3)) : (G = this.getCardinalDirection(U, M, 2), F = this.getCardinalDirection(X, M, 4)), !x)
653
+ switch (G) {
654
+ case 1:
655
+ Y = l, b = g + -d / M, o[0] = b, o[1] = Y;
656
+ break;
657
+ case 2:
658
+ b = L, Y = a + O * M, o[0] = b, o[1] = Y;
659
+ break;
660
+ case 3:
661
+ Y = D, b = g + d / M, o[0] = b, o[1] = Y;
662
+ break;
663
+ case 4:
664
+ b = T, Y = a + -O * M, o[0] = b, o[1] = Y;
665
+ break;
666
+ }
667
+ if (!_)
668
+ switch (F) {
669
+ case 1:
670
+ H = s, k = v + -R / M, o[2] = k, o[3] = H;
671
+ break;
672
+ case 2:
673
+ k = A, H = n + C * M, o[2] = k, o[3] = H;
674
+ break;
675
+ case 3:
676
+ H = p, k = v + R / M, o[2] = k, o[3] = H;
677
+ break;
678
+ case 4:
679
+ k = u, H = n + -C * M, o[2] = k, o[3] = H;
680
+ break;
681
+ }
682
+ }
683
+ return !1;
684
+ }, t.getCardinalDirection = function(e, i, o) {
685
+ return e > i ? o : 1 + o % 4;
686
+ }, t.getIntersection = function(e, i, o, g) {
687
+ if (g == null)
688
+ return this.getIntersection2(e, i, o);
689
+ var a = e.x, v = e.y, n = i.x, c = i.y, l = o.x, E = o.y, T = g.x, D = g.y, L = void 0, O = void 0, d = void 0, N = void 0, s = void 0, h = void 0, u = void 0, p = void 0, A = void 0;
690
+ return d = c - v, s = a - n, u = n * v - a * c, N = D - E, h = l - T, p = T * E - l * D, A = d * h - N * s, A === 0 ? null : (L = (s * p - h * u) / A, O = (N * u - d * p) / A, new r(L, O));
691
+ }, t.angleOfVector = function(e, i, o, g) {
692
+ var a = void 0;
693
+ return e !== o ? (a = Math.atan((g - i) / (o - e)), o < e ? a += Math.PI : g < i && (a += this.TWO_PI)) : g < i ? a = this.ONE_AND_HALF_PI : a = this.HALF_PI, a;
694
+ }, t.doIntersect = function(e, i, o, g) {
695
+ var a = e.x, v = e.y, n = i.x, c = i.y, l = o.x, E = o.y, T = g.x, D = g.y, L = (n - a) * (D - E) - (T - l) * (c - v);
696
+ if (L === 0)
697
+ return !1;
698
+ var O = ((D - E) * (T - a) + (l - T) * (D - v)) / L, d = ((v - c) * (T - a) + (n - a) * (D - v)) / L;
699
+ return 0 < O && O < 1 && 0 < d && d < 1;
700
+ }, t.HALF_PI = 0.5 * Math.PI, t.ONE_AND_HALF_PI = 1.5 * Math.PI, t.TWO_PI = 2 * Math.PI, t.THREE_PI = 3 * Math.PI, f.exports = t;
701
+ },
702
+ /* 9 */
703
+ /***/
704
+ function(f, m, y) {
705
+ function r() {
706
+ }
707
+ r.sign = function(t) {
708
+ return t > 0 ? 1 : t < 0 ? -1 : 0;
709
+ }, r.floor = function(t) {
710
+ return t < 0 ? Math.ceil(t) : Math.floor(t);
711
+ }, r.ceil = function(t) {
712
+ return t < 0 ? Math.floor(t) : Math.ceil(t);
713
+ }, f.exports = r;
714
+ },
715
+ /* 10 */
716
+ /***/
717
+ function(f, m, y) {
718
+ function r() {
719
+ }
720
+ r.MAX_VALUE = 2147483647, r.MIN_VALUE = -2147483648, f.exports = r;
721
+ },
722
+ /* 11 */
723
+ /***/
724
+ function(f, m, y) {
725
+ var r = /* @__PURE__ */ function() {
726
+ function a(v, n) {
727
+ for (var c = 0; c < n.length; c++) {
728
+ var l = n[c];
729
+ l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(v, l.key, l);
730
+ }
731
+ }
732
+ return function(v, n, c) {
733
+ return n && a(v.prototype, n), c && a(v, c), v;
734
+ };
735
+ }();
736
+ function t(a, v) {
737
+ if (!(a instanceof v))
738
+ throw new TypeError("Cannot call a class as a function");
739
+ }
740
+ var e = function(v) {
741
+ return { value: v, next: null, prev: null };
742
+ }, i = function(v, n, c, l) {
743
+ return v !== null ? v.next = n : l.head = n, c !== null ? c.prev = n : l.tail = n, n.prev = v, n.next = c, l.length++, n;
744
+ }, o = function(v, n) {
745
+ var c = v.prev, l = v.next;
746
+ return c !== null ? c.next = l : n.head = l, l !== null ? l.prev = c : n.tail = c, v.prev = v.next = null, n.length--, v;
747
+ }, g = function() {
748
+ function a(v) {
749
+ var n = this;
750
+ t(this, a), this.length = 0, this.head = null, this.tail = null, v != null && v.forEach(function(c) {
751
+ return n.push(c);
752
+ });
753
+ }
754
+ return r(a, [{
755
+ key: "size",
756
+ value: function() {
757
+ return this.length;
758
+ }
759
+ }, {
760
+ key: "insertBefore",
761
+ value: function(n, c) {
762
+ return i(c.prev, e(n), c, this);
763
+ }
764
+ }, {
765
+ key: "insertAfter",
766
+ value: function(n, c) {
767
+ return i(c, e(n), c.next, this);
768
+ }
769
+ }, {
770
+ key: "insertNodeBefore",
771
+ value: function(n, c) {
772
+ return i(c.prev, n, c, this);
773
+ }
774
+ }, {
775
+ key: "insertNodeAfter",
776
+ value: function(n, c) {
777
+ return i(c, n, c.next, this);
778
+ }
779
+ }, {
780
+ key: "push",
781
+ value: function(n) {
782
+ return i(this.tail, e(n), null, this);
783
+ }
784
+ }, {
785
+ key: "unshift",
786
+ value: function(n) {
787
+ return i(null, e(n), this.head, this);
788
+ }
789
+ }, {
790
+ key: "remove",
791
+ value: function(n) {
792
+ return o(n, this);
793
+ }
794
+ }, {
795
+ key: "pop",
796
+ value: function() {
797
+ return o(this.tail, this).value;
798
+ }
799
+ }, {
800
+ key: "popNode",
801
+ value: function() {
802
+ return o(this.tail, this);
803
+ }
804
+ }, {
805
+ key: "shift",
806
+ value: function() {
807
+ return o(this.head, this).value;
808
+ }
809
+ }, {
810
+ key: "shiftNode",
811
+ value: function() {
812
+ return o(this.head, this);
813
+ }
814
+ }, {
815
+ key: "get_object_at",
816
+ value: function(n) {
817
+ if (n <= this.length()) {
818
+ for (var c = 1, l = this.head; c < n; )
819
+ l = l.next, c++;
820
+ return l.value;
821
+ }
822
+ }
823
+ }, {
824
+ key: "set_object_at",
825
+ value: function(n, c) {
826
+ if (n <= this.length()) {
827
+ for (var l = 1, E = this.head; l < n; )
828
+ E = E.next, l++;
829
+ E.value = c;
830
+ }
831
+ }
832
+ }]), a;
833
+ }();
834
+ f.exports = g;
835
+ },
836
+ /* 12 */
837
+ /***/
838
+ function(f, m, y) {
839
+ function r(t, e, i) {
840
+ this.x = null, this.y = null, t == null && e == null && i == null ? (this.x = 0, this.y = 0) : typeof t == "number" && typeof e == "number" && i == null ? (this.x = t, this.y = e) : t.constructor.name == "Point" && e == null && i == null && (i = t, this.x = i.x, this.y = i.y);
841
+ }
842
+ r.prototype.getX = function() {
843
+ return this.x;
844
+ }, r.prototype.getY = function() {
845
+ return this.y;
846
+ }, r.prototype.getLocation = function() {
847
+ return new r(this.x, this.y);
848
+ }, r.prototype.setLocation = function(t, e, i) {
849
+ t.constructor.name == "Point" && e == null && i == null ? (i = t, this.setLocation(i.x, i.y)) : typeof t == "number" && typeof e == "number" && i == null && (parseInt(t) == t && parseInt(e) == e ? this.move(t, e) : (this.x = Math.floor(t + 0.5), this.y = Math.floor(e + 0.5)));
850
+ }, r.prototype.move = function(t, e) {
851
+ this.x = t, this.y = e;
852
+ }, r.prototype.translate = function(t, e) {
853
+ this.x += t, this.y += e;
854
+ }, r.prototype.equals = function(t) {
855
+ if (t.constructor.name == "Point") {
856
+ var e = t;
857
+ return this.x == e.x && this.y == e.y;
858
+ }
859
+ return this == t;
860
+ }, r.prototype.toString = function() {
861
+ return new r().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
862
+ }, f.exports = r;
863
+ },
864
+ /* 13 */
865
+ /***/
866
+ function(f, m, y) {
867
+ function r(t, e, i, o) {
868
+ this.x = 0, this.y = 0, this.width = 0, this.height = 0, t != null && e != null && i != null && o != null && (this.x = t, this.y = e, this.width = i, this.height = o);
869
+ }
870
+ r.prototype.getX = function() {
871
+ return this.x;
872
+ }, r.prototype.setX = function(t) {
873
+ this.x = t;
874
+ }, r.prototype.getY = function() {
875
+ return this.y;
876
+ }, r.prototype.setY = function(t) {
877
+ this.y = t;
878
+ }, r.prototype.getWidth = function() {
879
+ return this.width;
880
+ }, r.prototype.setWidth = function(t) {
881
+ this.width = t;
882
+ }, r.prototype.getHeight = function() {
883
+ return this.height;
884
+ }, r.prototype.setHeight = function(t) {
885
+ this.height = t;
886
+ }, r.prototype.getRight = function() {
887
+ return this.x + this.width;
888
+ }, r.prototype.getBottom = function() {
889
+ return this.y + this.height;
890
+ }, r.prototype.intersects = function(t) {
891
+ return !(this.getRight() < t.x || this.getBottom() < t.y || t.getRight() < this.x || t.getBottom() < this.y);
892
+ }, r.prototype.getCenterX = function() {
893
+ return this.x + this.width / 2;
894
+ }, r.prototype.getMinX = function() {
895
+ return this.getX();
896
+ }, r.prototype.getMaxX = function() {
897
+ return this.getX() + this.width;
898
+ }, r.prototype.getCenterY = function() {
899
+ return this.y + this.height / 2;
900
+ }, r.prototype.getMinY = function() {
901
+ return this.getY();
902
+ }, r.prototype.getMaxY = function() {
903
+ return this.getY() + this.height;
904
+ }, r.prototype.getWidthHalf = function() {
905
+ return this.width / 2;
906
+ }, r.prototype.getHeightHalf = function() {
907
+ return this.height / 2;
908
+ }, f.exports = r;
909
+ },
910
+ /* 14 */
911
+ /***/
912
+ function(f, m, y) {
913
+ var r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
914
+ return typeof e;
915
+ } : function(e) {
916
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
917
+ };
918
+ function t() {
919
+ }
920
+ t.lastID = 0, t.createID = function(e) {
921
+ return t.isPrimitive(e) ? e : (e.uniqueID != null || (e.uniqueID = t.getString(), t.lastID++), e.uniqueID);
922
+ }, t.getString = function(e) {
923
+ return e == null && (e = t.lastID), "Object#" + e;
924
+ }, t.isPrimitive = function(e) {
925
+ var i = typeof e > "u" ? "undefined" : r(e);
926
+ return e == null || i != "object" && i != "function";
927
+ }, f.exports = t;
928
+ },
929
+ /* 15 */
930
+ /***/
931
+ function(f, m, y) {
932
+ function r(l) {
933
+ if (Array.isArray(l)) {
934
+ for (var E = 0, T = Array(l.length); E < l.length; E++)
935
+ T[E] = l[E];
936
+ return T;
937
+ } else
938
+ return Array.from(l);
939
+ }
940
+ var t = y(0), e = y(6), i = y(3), o = y(1), g = y(5), a = y(4), v = y(17), n = y(27);
941
+ function c(l) {
942
+ n.call(this), this.layoutQuality = t.QUALITY, this.createBendsAsNeeded = t.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = t.DEFAULT_INCREMENTAL, this.animationOnLayout = t.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = t.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = t.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = t.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new e(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, l != null && (this.isRemoteUse = l);
943
+ }
944
+ c.RANDOM_SEED = 1, c.prototype = Object.create(n.prototype), c.prototype.getGraphManager = function() {
945
+ return this.graphManager;
946
+ }, c.prototype.getAllNodes = function() {
947
+ return this.graphManager.getAllNodes();
948
+ }, c.prototype.getAllEdges = function() {
949
+ return this.graphManager.getAllEdges();
950
+ }, c.prototype.getAllNodesToApplyGravitation = function() {
951
+ return this.graphManager.getAllNodesToApplyGravitation();
952
+ }, c.prototype.newGraphManager = function() {
953
+ var l = new e(this);
954
+ return this.graphManager = l, l;
955
+ }, c.prototype.newGraph = function(l) {
956
+ return new g(null, this.graphManager, l);
957
+ }, c.prototype.newNode = function(l) {
958
+ return new i(this.graphManager, l);
959
+ }, c.prototype.newEdge = function(l) {
960
+ return new o(null, null, l);
961
+ }, c.prototype.checkLayoutSuccess = function() {
962
+ return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
963
+ }, c.prototype.runLayout = function() {
964
+ this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
965
+ var l;
966
+ return this.checkLayoutSuccess() ? l = !1 : l = this.layout(), t.ANIMATE === "during" ? !1 : (l && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, l);
967
+ }, c.prototype.doPostLayout = function() {
968
+ this.incremental || this.transform(), this.update();
969
+ }, c.prototype.update2 = function() {
970
+ if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) {
971
+ for (var l = this.graphManager.getAllEdges(), E = 0; E < l.length; E++)
972
+ l[E];
973
+ for (var T = this.graphManager.getRoot().getNodes(), E = 0; E < T.length; E++)
974
+ T[E];
975
+ this.update(this.graphManager.getRoot());
976
+ }
977
+ }, c.prototype.update = function(l) {
978
+ if (l == null)
979
+ this.update2();
980
+ else if (l instanceof i) {
981
+ var E = l;
982
+ if (E.getChild() != null)
983
+ for (var T = E.getChild().getNodes(), D = 0; D < T.length; D++)
984
+ update(T[D]);
985
+ if (E.vGraphObject != null) {
986
+ var L = E.vGraphObject;
987
+ L.update(E);
988
+ }
989
+ } else if (l instanceof o) {
990
+ var O = l;
991
+ if (O.vGraphObject != null) {
992
+ var d = O.vGraphObject;
993
+ d.update(O);
994
+ }
995
+ } else if (l instanceof g) {
996
+ var N = l;
997
+ if (N.vGraphObject != null) {
998
+ var s = N.vGraphObject;
999
+ s.update(N);
1000
+ }
1001
+ }
1002
+ }, c.prototype.initParameters = function() {
1003
+ this.isSubLayout || (this.layoutQuality = t.QUALITY, this.animationDuringLayout = t.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = t.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = t.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = t.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = t.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = t.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = !1);
1004
+ }, c.prototype.transform = function(l) {
1005
+ if (l == null)
1006
+ this.transform(new a(0, 0));
1007
+ else {
1008
+ var E = new v(), T = this.graphManager.getRoot().updateLeftTop();
1009
+ if (T != null) {
1010
+ E.setWorldOrgX(l.x), E.setWorldOrgY(l.y), E.setDeviceOrgX(T.x), E.setDeviceOrgY(T.y);
1011
+ for (var D = this.getAllNodes(), L, O = 0; O < D.length; O++)
1012
+ L = D[O], L.transform(E);
1013
+ }
1014
+ }
1015
+ }, c.prototype.positionNodesRandomly = function(l) {
1016
+ if (l == null)
1017
+ this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(!0);
1018
+ else
1019
+ for (var E, T, D = l.getNodes(), L = 0; L < D.length; L++)
1020
+ E = D[L], T = E.getChild(), T == null || T.getNodes().length == 0 ? E.scatter() : (this.positionNodesRandomly(T), E.updateBounds());
1021
+ }, c.prototype.getFlatForest = function() {
1022
+ for (var l = [], E = !0, T = this.graphManager.getRoot().getNodes(), D = !0, L = 0; L < T.length; L++)
1023
+ T[L].getChild() != null && (D = !1);
1024
+ if (!D)
1025
+ return l;
1026
+ var O = /* @__PURE__ */ new Set(), d = [], N = /* @__PURE__ */ new Map(), s = [];
1027
+ for (s = s.concat(T); s.length > 0 && E; ) {
1028
+ for (d.push(s[0]); d.length > 0 && E; ) {
1029
+ var h = d[0];
1030
+ d.splice(0, 1), O.add(h);
1031
+ for (var u = h.getEdges(), L = 0; L < u.length; L++) {
1032
+ var p = u[L].getOtherEnd(h);
1033
+ if (N.get(h) != p)
1034
+ if (!O.has(p))
1035
+ d.push(p), N.set(p, h);
1036
+ else {
1037
+ E = !1;
1038
+ break;
1039
+ }
1040
+ }
1041
+ }
1042
+ if (!E)
1043
+ l = [];
1044
+ else {
1045
+ var A = [].concat(r(O));
1046
+ l.push(A);
1047
+ for (var L = 0; L < A.length; L++) {
1048
+ var C = A[L], R = s.indexOf(C);
1049
+ R > -1 && s.splice(R, 1);
1050
+ }
1051
+ O = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Map();
1052
+ }
1053
+ }
1054
+ return l;
1055
+ }, c.prototype.createDummyNodesForBendpoints = function(l) {
1056
+ for (var E = [], T = l.source, D = this.graphManager.calcLowestCommonAncestor(l.source, l.target), L = 0; L < l.bendpoints.length; L++) {
1057
+ var O = this.newNode(null);
1058
+ O.setRect(new Point(0, 0), new Dimension(1, 1)), D.add(O);
1059
+ var d = this.newEdge(null);
1060
+ this.graphManager.add(d, T, O), E.add(O), T = O;
1061
+ }
1062
+ var d = this.newEdge(null);
1063
+ return this.graphManager.add(d, T, l.target), this.edgeToDummyNodes.set(l, E), l.isInterGraph() ? this.graphManager.remove(l) : D.remove(l), E;
1064
+ }, c.prototype.createBendpointsFromDummyNodes = function() {
1065
+ var l = [];
1066
+ l = l.concat(this.graphManager.getAllEdges()), l = [].concat(r(this.edgeToDummyNodes.keys())).concat(l);
1067
+ for (var E = 0; E < l.length; E++) {
1068
+ var T = l[E];
1069
+ if (T.bendpoints.length > 0) {
1070
+ for (var D = this.edgeToDummyNodes.get(T), L = 0; L < D.length; L++) {
1071
+ var O = D[L], d = new a(O.getCenterX(), O.getCenterY()), N = T.bendpoints.get(L);
1072
+ N.x = d.x, N.y = d.y, O.getOwner().remove(O);
1073
+ }
1074
+ this.graphManager.add(T, T.source, T.target);
1075
+ }
1076
+ }
1077
+ }, c.transform = function(l, E, T, D) {
1078
+ if (T != null && D != null) {
1079
+ var L = E;
1080
+ if (l <= 50) {
1081
+ var O = E / T;
1082
+ L -= (E - O) / 50 * (50 - l);
1083
+ } else {
1084
+ var d = E * D;
1085
+ L += (d - E) / 50 * (l - 50);
1086
+ }
1087
+ return L;
1088
+ } else {
1089
+ var N, s;
1090
+ return l <= 50 ? (N = 9 * E / 500, s = E / 10) : (N = 9 * E / 50, s = -8 * E), N * l + s;
1091
+ }
1092
+ }, c.findCenterOfTree = function(l) {
1093
+ var E = [];
1094
+ E = E.concat(l);
1095
+ var T = [], D = /* @__PURE__ */ new Map(), L = !1, O = null;
1096
+ (E.length == 1 || E.length == 2) && (L = !0, O = E[0]);
1097
+ for (var d = 0; d < E.length; d++) {
1098
+ var N = E[d], s = N.getNeighborsList().size;
1099
+ D.set(N, N.getNeighborsList().size), s == 1 && T.push(N);
1100
+ }
1101
+ var h = [];
1102
+ for (h = h.concat(T); !L; ) {
1103
+ var u = [];
1104
+ u = u.concat(h), h = [];
1105
+ for (var d = 0; d < E.length; d++) {
1106
+ var N = E[d], p = E.indexOf(N);
1107
+ p >= 0 && E.splice(p, 1);
1108
+ var A = N.getNeighborsList();
1109
+ A.forEach(function(x) {
1110
+ if (T.indexOf(x) < 0) {
1111
+ var _ = D.get(x), U = _ - 1;
1112
+ U == 1 && h.push(x), D.set(x, U);
1113
+ }
1114
+ });
1115
+ }
1116
+ T = T.concat(h), (E.length == 1 || E.length == 2) && (L = !0, O = E[0]);
1117
+ }
1118
+ return O;
1119
+ }, c.prototype.setGraphManager = function(l) {
1120
+ this.graphManager = l;
1121
+ }, f.exports = c;
1122
+ },
1123
+ /* 16 */
1124
+ /***/
1125
+ function(f, m, y) {
1126
+ function r() {
1127
+ }
1128
+ r.seed = 1, r.x = 0, r.nextDouble = function() {
1129
+ return r.x = Math.sin(r.seed++) * 1e4, r.x - Math.floor(r.x);
1130
+ }, f.exports = r;
1131
+ },
1132
+ /* 17 */
1133
+ /***/
1134
+ function(f, m, y) {
1135
+ var r = y(4);
1136
+ function t(e, i) {
1137
+ this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1138
+ }
1139
+ t.prototype.getWorldOrgX = function() {
1140
+ return this.lworldOrgX;
1141
+ }, t.prototype.setWorldOrgX = function(e) {
1142
+ this.lworldOrgX = e;
1143
+ }, t.prototype.getWorldOrgY = function() {
1144
+ return this.lworldOrgY;
1145
+ }, t.prototype.setWorldOrgY = function(e) {
1146
+ this.lworldOrgY = e;
1147
+ }, t.prototype.getWorldExtX = function() {
1148
+ return this.lworldExtX;
1149
+ }, t.prototype.setWorldExtX = function(e) {
1150
+ this.lworldExtX = e;
1151
+ }, t.prototype.getWorldExtY = function() {
1152
+ return this.lworldExtY;
1153
+ }, t.prototype.setWorldExtY = function(e) {
1154
+ this.lworldExtY = e;
1155
+ }, t.prototype.getDeviceOrgX = function() {
1156
+ return this.ldeviceOrgX;
1157
+ }, t.prototype.setDeviceOrgX = function(e) {
1158
+ this.ldeviceOrgX = e;
1159
+ }, t.prototype.getDeviceOrgY = function() {
1160
+ return this.ldeviceOrgY;
1161
+ }, t.prototype.setDeviceOrgY = function(e) {
1162
+ this.ldeviceOrgY = e;
1163
+ }, t.prototype.getDeviceExtX = function() {
1164
+ return this.ldeviceExtX;
1165
+ }, t.prototype.setDeviceExtX = function(e) {
1166
+ this.ldeviceExtX = e;
1167
+ }, t.prototype.getDeviceExtY = function() {
1168
+ return this.ldeviceExtY;
1169
+ }, t.prototype.setDeviceExtY = function(e) {
1170
+ this.ldeviceExtY = e;
1171
+ }, t.prototype.transformX = function(e) {
1172
+ var i = 0, o = this.lworldExtX;
1173
+ return o != 0 && (i = this.ldeviceOrgX + (e - this.lworldOrgX) * this.ldeviceExtX / o), i;
1174
+ }, t.prototype.transformY = function(e) {
1175
+ var i = 0, o = this.lworldExtY;
1176
+ return o != 0 && (i = this.ldeviceOrgY + (e - this.lworldOrgY) * this.ldeviceExtY / o), i;
1177
+ }, t.prototype.inverseTransformX = function(e) {
1178
+ var i = 0, o = this.ldeviceExtX;
1179
+ return o != 0 && (i = this.lworldOrgX + (e - this.ldeviceOrgX) * this.lworldExtX / o), i;
1180
+ }, t.prototype.inverseTransformY = function(e) {
1181
+ var i = 0, o = this.ldeviceExtY;
1182
+ return o != 0 && (i = this.lworldOrgY + (e - this.ldeviceOrgY) * this.lworldExtY / o), i;
1183
+ }, t.prototype.inverseTransformPoint = function(e) {
1184
+ var i = new r(this.inverseTransformX(e.x), this.inverseTransformY(e.y));
1185
+ return i;
1186
+ }, f.exports = t;
1187
+ },
1188
+ /* 18 */
1189
+ /***/
1190
+ function(f, m, y) {
1191
+ function r(n) {
1192
+ if (Array.isArray(n)) {
1193
+ for (var c = 0, l = Array(n.length); c < n.length; c++)
1194
+ l[c] = n[c];
1195
+ return l;
1196
+ } else
1197
+ return Array.from(n);
1198
+ }
1199
+ var t = y(15), e = y(7), i = y(0), o = y(8), g = y(9);
1200
+ function a() {
1201
+ t.call(this), this.useSmartIdealEdgeLengthCalculation = e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.idealEdgeLength = e.DEFAULT_EDGE_LENGTH, this.springConstant = e.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = e.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = e.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = e.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = e.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * e.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = e.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = e.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = e.MAX_ITERATIONS;
1202
+ }
1203
+ a.prototype = Object.create(t.prototype);
1204
+ for (var v in t)
1205
+ a[v] = t[v];
1206
+ a.prototype.initParameters = function() {
1207
+ t.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1208
+ }, a.prototype.calcIdealEdgeLengths = function() {
1209
+ for (var n, c, l, E, T, D, L = this.getGraphManager().getAllEdges(), O = 0; O < L.length; O++)
1210
+ n = L[O], n.idealLength = this.idealEdgeLength, n.isInterGraph && (l = n.getSource(), E = n.getTarget(), T = n.getSourceInLca().getEstimatedSize(), D = n.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (n.idealLength += T + D - 2 * i.SIMPLE_NODE_SIZE), c = n.getLca().getInclusionTreeDepth(), n.idealLength += e.DEFAULT_EDGE_LENGTH * e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (l.getInclusionTreeDepth() + E.getInclusionTreeDepth() - 2 * c));
1211
+ }, a.prototype.initSpringEmbedder = function() {
1212
+ var n = this.getAllNodes().length;
1213
+ this.incremental ? (n > e.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * e.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (n - e.ADAPTATION_LOWER_NODE_LIMIT) / (e.ADAPTATION_UPPER_NODE_LIMIT - e.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - e.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = e.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (n > e.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(e.COOLING_ADAPTATION_FACTOR, 1 - (n - e.ADAPTATION_LOWER_NODE_LIMIT) / (e.ADAPTATION_UPPER_NODE_LIMIT - e.ADAPTATION_LOWER_NODE_LIMIT) * (1 - e.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = e.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1214
+ }, a.prototype.calcSpringForces = function() {
1215
+ for (var n = this.getAllEdges(), c, l = 0; l < n.length; l++)
1216
+ c = n[l], this.calcSpringForce(c, c.idealLength);
1217
+ }, a.prototype.calcRepulsionForces = function() {
1218
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, l, E, T, D, L = this.getAllNodes(), O;
1219
+ if (this.useFRGridVariant)
1220
+ for (this.totalIterations % e.GRID_CALCULATION_CHECK_PERIOD == 1 && n && this.updateGrid(), O = /* @__PURE__ */ new Set(), l = 0; l < L.length; l++)
1221
+ T = L[l], this.calculateRepulsionForceOfANode(T, O, n, c), O.add(T);
1222
+ else
1223
+ for (l = 0; l < L.length; l++)
1224
+ for (T = L[l], E = l + 1; E < L.length; E++)
1225
+ D = L[E], T.getOwner() == D.getOwner() && this.calcRepulsionForce(T, D);
1226
+ }, a.prototype.calcGravitationalForces = function() {
1227
+ for (var n, c = this.getAllNodesToApplyGravitation(), l = 0; l < c.length; l++)
1228
+ n = c[l], this.calcGravitationalForce(n);
1229
+ }, a.prototype.moveNodes = function() {
1230
+ for (var n = this.getAllNodes(), c, l = 0; l < n.length; l++)
1231
+ c = n[l], c.move();
1232
+ }, a.prototype.calcSpringForce = function(n, c) {
1233
+ var l = n.getSource(), E = n.getTarget(), T, D, L, O;
1234
+ if (this.uniformLeafNodeSizes && l.getChild() == null && E.getChild() == null)
1235
+ n.updateLengthSimple();
1236
+ else if (n.updateLength(), n.isOverlapingSourceAndTarget)
1237
+ return;
1238
+ T = n.getLength(), T != 0 && (D = this.springConstant * (T - c), L = D * (n.lengthX / T), O = D * (n.lengthY / T), l.springForceX += L, l.springForceY += O, E.springForceX -= L, E.springForceY -= O);
1239
+ }, a.prototype.calcRepulsionForce = function(n, c) {
1240
+ var l = n.getRect(), E = c.getRect(), T = new Array(2), D = new Array(4), L, O, d, N, s, h, u;
1241
+ if (l.intersects(E)) {
1242
+ o.calcSeparationAmount(l, E, T, e.DEFAULT_EDGE_LENGTH / 2), h = 2 * T[0], u = 2 * T[1];
1243
+ var p = n.noOfChildren * c.noOfChildren / (n.noOfChildren + c.noOfChildren);
1244
+ n.repulsionForceX -= p * h, n.repulsionForceY -= p * u, c.repulsionForceX += p * h, c.repulsionForceY += p * u;
1245
+ } else
1246
+ this.uniformLeafNodeSizes && n.getChild() == null && c.getChild() == null ? (L = E.getCenterX() - l.getCenterX(), O = E.getCenterY() - l.getCenterY()) : (o.getIntersection(l, E, D), L = D[2] - D[0], O = D[3] - D[1]), Math.abs(L) < e.MIN_REPULSION_DIST && (L = g.sign(L) * e.MIN_REPULSION_DIST), Math.abs(O) < e.MIN_REPULSION_DIST && (O = g.sign(O) * e.MIN_REPULSION_DIST), d = L * L + O * O, N = Math.sqrt(d), s = this.repulsionConstant * n.noOfChildren * c.noOfChildren / d, h = s * L / N, u = s * O / N, n.repulsionForceX -= h, n.repulsionForceY -= u, c.repulsionForceX += h, c.repulsionForceY += u;
1247
+ }, a.prototype.calcGravitationalForce = function(n) {
1248
+ var c, l, E, T, D, L, O, d;
1249
+ c = n.getOwner(), l = (c.getRight() + c.getLeft()) / 2, E = (c.getTop() + c.getBottom()) / 2, T = n.getCenterX() - l, D = n.getCenterY() - E, L = Math.abs(T) + n.getWidth() / 2, O = Math.abs(D) + n.getHeight() / 2, n.getOwner() == this.graphManager.getRoot() ? (d = c.getEstimatedSize() * this.gravityRangeFactor, (L > d || O > d) && (n.gravitationForceX = -this.gravityConstant * T, n.gravitationForceY = -this.gravityConstant * D)) : (d = c.getEstimatedSize() * this.compoundGravityRangeFactor, (L > d || O > d) && (n.gravitationForceX = -this.gravityConstant * T * this.compoundGravityConstant, n.gravitationForceY = -this.gravityConstant * D * this.compoundGravityConstant));
1250
+ }, a.prototype.isConverged = function() {
1251
+ var n, c = !1;
1252
+ return this.totalIterations > this.maxIterations / 3 && (c = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), n = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, n || c;
1253
+ }, a.prototype.animate = function() {
1254
+ this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++);
1255
+ }, a.prototype.calcNoOfChildrenForAllNodes = function() {
1256
+ for (var n, c = this.graphManager.getAllNodes(), l = 0; l < c.length; l++)
1257
+ n = c[l], n.noOfChildren = n.getNoOfChildren();
1258
+ }, a.prototype.calcGrid = function(n) {
1259
+ var c = 0, l = 0;
1260
+ c = parseInt(Math.ceil((n.getRight() - n.getLeft()) / this.repulsionRange)), l = parseInt(Math.ceil((n.getBottom() - n.getTop()) / this.repulsionRange));
1261
+ for (var E = new Array(c), T = 0; T < c; T++)
1262
+ E[T] = new Array(l);
1263
+ for (var T = 0; T < c; T++)
1264
+ for (var D = 0; D < l; D++)
1265
+ E[T][D] = new Array();
1266
+ return E;
1267
+ }, a.prototype.addNodeToGrid = function(n, c, l) {
1268
+ var E = 0, T = 0, D = 0, L = 0;
1269
+ E = parseInt(Math.floor((n.getRect().x - c) / this.repulsionRange)), T = parseInt(Math.floor((n.getRect().width + n.getRect().x - c) / this.repulsionRange)), D = parseInt(Math.floor((n.getRect().y - l) / this.repulsionRange)), L = parseInt(Math.floor((n.getRect().height + n.getRect().y - l) / this.repulsionRange));
1270
+ for (var O = E; O <= T; O++)
1271
+ for (var d = D; d <= L; d++)
1272
+ this.grid[O][d].push(n), n.setGridCoordinates(E, T, D, L);
1273
+ }, a.prototype.updateGrid = function() {
1274
+ var n, c, l = this.getAllNodes();
1275
+ for (this.grid = this.calcGrid(this.graphManager.getRoot()), n = 0; n < l.length; n++)
1276
+ c = l[n], this.addNodeToGrid(c, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
1277
+ }, a.prototype.calculateRepulsionForceOfANode = function(n, c, l, E) {
1278
+ if (this.totalIterations % e.GRID_CALCULATION_CHECK_PERIOD == 1 && l || E) {
1279
+ var T = /* @__PURE__ */ new Set();
1280
+ n.surrounding = new Array();
1281
+ for (var D, L = this.grid, O = n.startX - 1; O < n.finishX + 2; O++)
1282
+ for (var d = n.startY - 1; d < n.finishY + 2; d++)
1283
+ if (!(O < 0 || d < 0 || O >= L.length || d >= L[0].length)) {
1284
+ for (var N = 0; N < L[O][d].length; N++)
1285
+ if (D = L[O][d][N], !(n.getOwner() != D.getOwner() || n == D) && !c.has(D) && !T.has(D)) {
1286
+ var s = Math.abs(n.getCenterX() - D.getCenterX()) - (n.getWidth() / 2 + D.getWidth() / 2), h = Math.abs(n.getCenterY() - D.getCenterY()) - (n.getHeight() / 2 + D.getHeight() / 2);
1287
+ s <= this.repulsionRange && h <= this.repulsionRange && T.add(D);
1288
+ }
1289
+ }
1290
+ n.surrounding = [].concat(r(T));
1291
+ }
1292
+ for (O = 0; O < n.surrounding.length; O++)
1293
+ this.calcRepulsionForce(n, n.surrounding[O]);
1294
+ }, a.prototype.calcRepulsionRange = function() {
1295
+ return 0;
1296
+ }, f.exports = a;
1297
+ },
1298
+ /* 19 */
1299
+ /***/
1300
+ function(f, m, y) {
1301
+ var r = y(1), t = y(7);
1302
+ function e(o, g, a) {
1303
+ r.call(this, o, g, a), this.idealLength = t.DEFAULT_EDGE_LENGTH;
1304
+ }
1305
+ e.prototype = Object.create(r.prototype);
1306
+ for (var i in r)
1307
+ e[i] = r[i];
1308
+ f.exports = e;
1309
+ },
1310
+ /* 20 */
1311
+ /***/
1312
+ function(f, m, y) {
1313
+ var r = y(3);
1314
+ function t(i, o, g, a) {
1315
+ r.call(this, i, o, g, a), 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 = [];
1316
+ }
1317
+ t.prototype = Object.create(r.prototype);
1318
+ for (var e in r)
1319
+ t[e] = r[e];
1320
+ t.prototype.setGridCoordinates = function(i, o, g, a) {
1321
+ this.startX = i, this.finishX = o, this.startY = g, this.finishY = a;
1322
+ }, f.exports = t;
1323
+ },
1324
+ /* 21 */
1325
+ /***/
1326
+ function(f, m, y) {
1327
+ function r(t, e) {
1328
+ this.width = 0, this.height = 0, t !== null && e !== null && (this.height = e, this.width = t);
1329
+ }
1330
+ r.prototype.getWidth = function() {
1331
+ return this.width;
1332
+ }, r.prototype.setWidth = function(t) {
1333
+ this.width = t;
1334
+ }, r.prototype.getHeight = function() {
1335
+ return this.height;
1336
+ }, r.prototype.setHeight = function(t) {
1337
+ this.height = t;
1338
+ }, f.exports = r;
1339
+ },
1340
+ /* 22 */
1341
+ /***/
1342
+ function(f, m, y) {
1343
+ var r = y(14);
1344
+ function t() {
1345
+ this.map = {}, this.keys = [];
1346
+ }
1347
+ t.prototype.put = function(e, i) {
1348
+ var o = r.createID(e);
1349
+ this.contains(o) || (this.map[o] = i, this.keys.push(e));
1350
+ }, t.prototype.contains = function(e) {
1351
+ return r.createID(e), this.map[e] != null;
1352
+ }, t.prototype.get = function(e) {
1353
+ var i = r.createID(e);
1354
+ return this.map[i];
1355
+ }, t.prototype.keySet = function() {
1356
+ return this.keys;
1357
+ }, f.exports = t;
1358
+ },
1359
+ /* 23 */
1360
+ /***/
1361
+ function(f, m, y) {
1362
+ var r = y(14);
1363
+ function t() {
1364
+ this.set = {};
1365
+ }
1366
+ t.prototype.add = function(e) {
1367
+ var i = r.createID(e);
1368
+ this.contains(i) || (this.set[i] = e);
1369
+ }, t.prototype.remove = function(e) {
1370
+ delete this.set[r.createID(e)];
1371
+ }, t.prototype.clear = function() {
1372
+ this.set = {};
1373
+ }, t.prototype.contains = function(e) {
1374
+ return this.set[r.createID(e)] == e;
1375
+ }, t.prototype.isEmpty = function() {
1376
+ return this.size() === 0;
1377
+ }, t.prototype.size = function() {
1378
+ return Object.keys(this.set).length;
1379
+ }, t.prototype.addAllTo = function(e) {
1380
+ for (var i = Object.keys(this.set), o = i.length, g = 0; g < o; g++)
1381
+ e.push(this.set[i[g]]);
1382
+ }, t.prototype.size = function() {
1383
+ return Object.keys(this.set).length;
1384
+ }, t.prototype.addAll = function(e) {
1385
+ for (var i = e.length, o = 0; o < i; o++) {
1386
+ var g = e[o];
1387
+ this.add(g);
1388
+ }
1389
+ }, f.exports = t;
1390
+ },
1391
+ /* 24 */
1392
+ /***/
1393
+ function(f, m, y) {
1394
+ var r = /* @__PURE__ */ function() {
1395
+ function o(g, a) {
1396
+ for (var v = 0; v < a.length; v++) {
1397
+ var n = a[v];
1398
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(g, n.key, n);
1399
+ }
1400
+ }
1401
+ return function(g, a, v) {
1402
+ return a && o(g.prototype, a), v && o(g, v), g;
1403
+ };
1404
+ }();
1405
+ function t(o, g) {
1406
+ if (!(o instanceof g))
1407
+ throw new TypeError("Cannot call a class as a function");
1408
+ }
1409
+ var e = y(11), i = function() {
1410
+ function o(g, a) {
1411
+ t(this, o), (a !== null || a !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1412
+ var v = void 0;
1413
+ g instanceof e ? v = g.size() : v = g.length, this._quicksort(g, 0, v - 1);
1414
+ }
1415
+ return r(o, [{
1416
+ key: "_quicksort",
1417
+ value: function(a, v, n) {
1418
+ if (v < n) {
1419
+ var c = this._partition(a, v, n);
1420
+ this._quicksort(a, v, c), this._quicksort(a, c + 1, n);
1421
+ }
1422
+ }
1423
+ }, {
1424
+ key: "_partition",
1425
+ value: function(a, v, n) {
1426
+ for (var c = this._get(a, v), l = v, E = n; ; ) {
1427
+ for (; this.compareFunction(c, this._get(a, E)); )
1428
+ E--;
1429
+ for (; this.compareFunction(this._get(a, l), c); )
1430
+ l++;
1431
+ if (l < E)
1432
+ this._swap(a, l, E), l++, E--;
1433
+ else return E;
1434
+ }
1435
+ }
1436
+ }, {
1437
+ key: "_get",
1438
+ value: function(a, v) {
1439
+ return a instanceof e ? a.get_object_at(v) : a[v];
1440
+ }
1441
+ }, {
1442
+ key: "_set",
1443
+ value: function(a, v, n) {
1444
+ a instanceof e ? a.set_object_at(v, n) : a[v] = n;
1445
+ }
1446
+ }, {
1447
+ key: "_swap",
1448
+ value: function(a, v, n) {
1449
+ var c = this._get(a, v);
1450
+ this._set(a, v, this._get(a, n)), this._set(a, n, c);
1451
+ }
1452
+ }, {
1453
+ key: "_defaultCompareFunction",
1454
+ value: function(a, v) {
1455
+ return v > a;
1456
+ }
1457
+ }]), o;
1458
+ }();
1459
+ f.exports = i;
1460
+ },
1461
+ /* 25 */
1462
+ /***/
1463
+ function(f, m, y) {
1464
+ var r = /* @__PURE__ */ function() {
1465
+ function i(o, g) {
1466
+ for (var a = 0; a < g.length; a++) {
1467
+ var v = g[a];
1468
+ v.enumerable = v.enumerable || !1, v.configurable = !0, "value" in v && (v.writable = !0), Object.defineProperty(o, v.key, v);
1469
+ }
1470
+ }
1471
+ return function(o, g, a) {
1472
+ return g && i(o.prototype, g), a && i(o, a), o;
1473
+ };
1474
+ }();
1475
+ function t(i, o) {
1476
+ if (!(i instanceof o))
1477
+ throw new TypeError("Cannot call a class as a function");
1478
+ }
1479
+ var e = function() {
1480
+ function i(o, g) {
1481
+ var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, v = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
1482
+ t(this, i), this.sequence1 = o, this.sequence2 = g, this.match_score = a, this.mismatch_penalty = v, this.gap_penalty = n, this.iMax = o.length + 1, this.jMax = g.length + 1, this.grid = new Array(this.iMax);
1483
+ for (var c = 0; c < this.iMax; c++) {
1484
+ this.grid[c] = new Array(this.jMax);
1485
+ for (var l = 0; l < this.jMax; l++)
1486
+ this.grid[c][l] = 0;
1487
+ }
1488
+ this.tracebackGrid = new Array(this.iMax);
1489
+ for (var E = 0; E < this.iMax; E++) {
1490
+ this.tracebackGrid[E] = new Array(this.jMax);
1491
+ for (var T = 0; T < this.jMax; T++)
1492
+ this.tracebackGrid[E][T] = [null, null, null];
1493
+ }
1494
+ this.alignments = [], this.score = -1, this.computeGrids();
1495
+ }
1496
+ return r(i, [{
1497
+ key: "getScore",
1498
+ value: function() {
1499
+ return this.score;
1500
+ }
1501
+ }, {
1502
+ key: "getAlignments",
1503
+ value: function() {
1504
+ return this.alignments;
1505
+ }
1506
+ // Main dynamic programming procedure
1507
+ }, {
1508
+ key: "computeGrids",
1509
+ value: function() {
1510
+ for (var g = 1; g < this.jMax; g++)
1511
+ this.grid[0][g] = this.grid[0][g - 1] + this.gap_penalty, this.tracebackGrid[0][g] = [!1, !1, !0];
1512
+ for (var a = 1; a < this.iMax; a++)
1513
+ this.grid[a][0] = this.grid[a - 1][0] + this.gap_penalty, this.tracebackGrid[a][0] = [!1, !0, !1];
1514
+ for (var v = 1; v < this.iMax; v++)
1515
+ for (var n = 1; n < this.jMax; n++) {
1516
+ var c = void 0;
1517
+ this.sequence1[v - 1] === this.sequence2[n - 1] ? c = this.grid[v - 1][n - 1] + this.match_score : c = this.grid[v - 1][n - 1] + this.mismatch_penalty;
1518
+ var l = this.grid[v - 1][n] + this.gap_penalty, E = this.grid[v][n - 1] + this.gap_penalty, T = [c, l, E], D = this.arrayAllMaxIndexes(T);
1519
+ this.grid[v][n] = T[D[0]], this.tracebackGrid[v][n] = [D.includes(0), D.includes(1), D.includes(2)];
1520
+ }
1521
+ this.score = this.grid[this.iMax - 1][this.jMax - 1];
1522
+ }
1523
+ // Gets all possible valid sequence combinations
1524
+ }, {
1525
+ key: "alignmentTraceback",
1526
+ value: function() {
1527
+ var g = [];
1528
+ for (g.push({
1529
+ pos: [this.sequence1.length, this.sequence2.length],
1530
+ seq1: "",
1531
+ seq2: ""
1532
+ }); g[0]; ) {
1533
+ var a = g[0], v = this.tracebackGrid[a.pos[0]][a.pos[1]];
1534
+ v[0] && g.push({
1535
+ pos: [a.pos[0] - 1, a.pos[1] - 1],
1536
+ seq1: this.sequence1[a.pos[0] - 1] + a.seq1,
1537
+ seq2: this.sequence2[a.pos[1] - 1] + a.seq2
1538
+ }), v[1] && g.push({
1539
+ pos: [a.pos[0] - 1, a.pos[1]],
1540
+ seq1: this.sequence1[a.pos[0] - 1] + a.seq1,
1541
+ seq2: "-" + a.seq2
1542
+ }), v[2] && g.push({
1543
+ pos: [a.pos[0], a.pos[1] - 1],
1544
+ seq1: "-" + a.seq1,
1545
+ seq2: this.sequence2[a.pos[1] - 1] + a.seq2
1546
+ }), a.pos[0] === 0 && a.pos[1] === 0 && this.alignments.push({
1547
+ sequence1: a.seq1,
1548
+ sequence2: a.seq2
1549
+ }), g.shift();
1550
+ }
1551
+ return this.alignments;
1552
+ }
1553
+ // Helper Functions
1554
+ }, {
1555
+ key: "getAllIndexes",
1556
+ value: function(g, a) {
1557
+ for (var v = [], n = -1; (n = g.indexOf(a, n + 1)) !== -1; )
1558
+ v.push(n);
1559
+ return v;
1560
+ }
1561
+ }, {
1562
+ key: "arrayAllMaxIndexes",
1563
+ value: function(g) {
1564
+ return this.getAllIndexes(g, Math.max.apply(null, g));
1565
+ }
1566
+ }]), i;
1567
+ }();
1568
+ f.exports = e;
1569
+ },
1570
+ /* 26 */
1571
+ /***/
1572
+ function(f, m, y) {
1573
+ var r = function() {
1574
+ };
1575
+ r.FDLayout = y(18), r.FDLayoutConstants = y(7), r.FDLayoutEdge = y(19), r.FDLayoutNode = y(20), r.DimensionD = y(21), r.HashMap = y(22), r.HashSet = y(23), r.IGeometry = y(8), r.IMath = y(9), r.Integer = y(10), r.Point = y(12), r.PointD = y(4), r.RandomSeed = y(16), r.RectangleD = y(13), r.Transform = y(17), r.UniqueIDGeneretor = y(14), r.Quicksort = y(24), r.LinkedList = y(11), r.LGraphObject = y(2), r.LGraph = y(5), r.LEdge = y(1), r.LGraphManager = y(6), r.LNode = y(3), r.Layout = y(15), r.LayoutConstants = y(0), r.NeedlemanWunsch = y(25), f.exports = r;
1576
+ },
1577
+ /* 27 */
1578
+ /***/
1579
+ function(f, m, y) {
1580
+ function r() {
1581
+ this.listeners = [];
1582
+ }
1583
+ var t = r.prototype;
1584
+ t.addListener = function(e, i) {
1585
+ this.listeners.push({
1586
+ event: e,
1587
+ callback: i
1588
+ });
1589
+ }, t.removeListener = function(e, i) {
1590
+ for (var o = this.listeners.length; o >= 0; o--) {
1591
+ var g = this.listeners[o];
1592
+ g.event === e && g.callback === i && this.listeners.splice(o, 1);
1593
+ }
1594
+ }, t.emit = function(e, i) {
1595
+ for (var o = 0; o < this.listeners.length; o++) {
1596
+ var g = this.listeners[o];
1597
+ e === g.event && g.callback(i);
1598
+ }
1599
+ }, f.exports = r;
1600
+ }
1601
+ /******/
1602
+ ])
1603
+ );
1604
+ });
1605
+ }(rt)), rt.exports;
1606
+ }
1607
+ var St = et.exports, ft;
1608
+ function Gt() {
1609
+ return ft || (ft = 1, function(I, w) {
1610
+ (function(m, y) {
1611
+ I.exports = y(wt());
1612
+ })(St, function(f) {
1613
+ return (
1614
+ /******/
1615
+ function(m) {
1616
+ var y = {};
1617
+ function r(t) {
1618
+ if (y[t])
1619
+ return y[t].exports;
1620
+ var e = y[t] = {
1621
+ /******/
1622
+ i: t,
1623
+ /******/
1624
+ l: !1,
1625
+ /******/
1626
+ exports: {}
1627
+ /******/
1628
+ };
1629
+ return m[t].call(e.exports, e, e.exports, r), e.l = !0, e.exports;
1630
+ }
1631
+ return r.m = m, r.c = y, r.i = function(t) {
1632
+ return t;
1633
+ }, r.d = function(t, e, i) {
1634
+ r.o(t, e) || Object.defineProperty(t, e, {
1635
+ /******/
1636
+ configurable: !1,
1637
+ /******/
1638
+ enumerable: !0,
1639
+ /******/
1640
+ get: i
1641
+ /******/
1642
+ });
1643
+ }, r.n = function(t) {
1644
+ var e = t && t.__esModule ? (
1645
+ /******/
1646
+ function() {
1647
+ return t.default;
1648
+ }
1649
+ ) : (
1650
+ /******/
1651
+ function() {
1652
+ return t;
1653
+ }
1654
+ );
1655
+ return r.d(e, "a", e), e;
1656
+ }, r.o = function(t, e) {
1657
+ return Object.prototype.hasOwnProperty.call(t, e);
1658
+ }, r.p = "", r(r.s = 7);
1659
+ }([
1660
+ /* 0 */
1661
+ /***/
1662
+ function(m, y) {
1663
+ m.exports = f;
1664
+ },
1665
+ /* 1 */
1666
+ /***/
1667
+ function(m, y, r) {
1668
+ var t = r(0).FDLayoutConstants;
1669
+ function e() {
1670
+ }
1671
+ for (var i in t)
1672
+ e[i] = t[i];
1673
+ e.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, e.DEFAULT_RADIAL_SEPARATION = t.DEFAULT_EDGE_LENGTH, e.DEFAULT_COMPONENT_SEPERATION = 60, e.TILE = !0, e.TILING_PADDING_VERTICAL = 10, e.TILING_PADDING_HORIZONTAL = 10, e.TREE_REDUCTION_ON_INCREMENTAL = !1, m.exports = e;
1674
+ },
1675
+ /* 2 */
1676
+ /***/
1677
+ function(m, y, r) {
1678
+ var t = r(0).FDLayoutEdge;
1679
+ function e(o, g, a) {
1680
+ t.call(this, o, g, a);
1681
+ }
1682
+ e.prototype = Object.create(t.prototype);
1683
+ for (var i in t)
1684
+ e[i] = t[i];
1685
+ m.exports = e;
1686
+ },
1687
+ /* 3 */
1688
+ /***/
1689
+ function(m, y, r) {
1690
+ var t = r(0).LGraph;
1691
+ function e(o, g, a) {
1692
+ t.call(this, o, g, a);
1693
+ }
1694
+ e.prototype = Object.create(t.prototype);
1695
+ for (var i in t)
1696
+ e[i] = t[i];
1697
+ m.exports = e;
1698
+ },
1699
+ /* 4 */
1700
+ /***/
1701
+ function(m, y, r) {
1702
+ var t = r(0).LGraphManager;
1703
+ function e(o) {
1704
+ t.call(this, o);
1705
+ }
1706
+ e.prototype = Object.create(t.prototype);
1707
+ for (var i in t)
1708
+ e[i] = t[i];
1709
+ m.exports = e;
1710
+ },
1711
+ /* 5 */
1712
+ /***/
1713
+ function(m, y, r) {
1714
+ var t = r(0).FDLayoutNode, e = r(0).IMath;
1715
+ function i(g, a, v, n) {
1716
+ t.call(this, g, a, v, n);
1717
+ }
1718
+ i.prototype = Object.create(t.prototype);
1719
+ for (var o in t)
1720
+ i[o] = t[o];
1721
+ i.prototype.move = function() {
1722
+ var g = this.graphManager.getLayout();
1723
+ 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 * e.sign(this.displacementX)), Math.abs(this.displacementY) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementY = g.coolingFactor * g.maxNodeDisplacement * e.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;
1724
+ }, i.prototype.propogateDisplacementToChildren = function(g, a) {
1725
+ for (var v = this.getChild().getNodes(), n, c = 0; c < v.length; c++)
1726
+ n = v[c], n.getChild() == null ? (n.moveBy(g, a), n.displacementX += g, n.displacementY += a) : n.propogateDisplacementToChildren(g, a);
1727
+ }, i.prototype.setPred1 = function(g) {
1728
+ this.pred1 = g;
1729
+ }, i.prototype.getPred1 = function() {
1730
+ return pred1;
1731
+ }, i.prototype.getPred2 = function() {
1732
+ return pred2;
1733
+ }, i.prototype.setNext = function(g) {
1734
+ this.next = g;
1735
+ }, i.prototype.getNext = function() {
1736
+ return next;
1737
+ }, i.prototype.setProcessed = function(g) {
1738
+ this.processed = g;
1739
+ }, i.prototype.isProcessed = function() {
1740
+ return processed;
1741
+ }, m.exports = i;
1742
+ },
1743
+ /* 6 */
1744
+ /***/
1745
+ function(m, y, r) {
1746
+ var t = r(0).FDLayout, e = r(4), i = r(3), o = r(5), g = r(2), a = r(1), v = r(0).FDLayoutConstants, n = r(0).LayoutConstants, c = r(0).Point, l = r(0).PointD, E = r(0).Layout, T = r(0).Integer, D = r(0).IGeometry, L = r(0).LGraph, O = r(0).Transform;
1747
+ function d() {
1748
+ t.call(this), this.toBeTiled = {};
1749
+ }
1750
+ d.prototype = Object.create(t.prototype);
1751
+ for (var N in t)
1752
+ d[N] = t[N];
1753
+ d.prototype.newGraphManager = function() {
1754
+ var s = new e(this);
1755
+ return this.graphManager = s, s;
1756
+ }, d.prototype.newGraph = function(s) {
1757
+ return new i(null, this.graphManager, s);
1758
+ }, d.prototype.newNode = function(s) {
1759
+ return new o(this.graphManager, s);
1760
+ }, d.prototype.newEdge = function(s) {
1761
+ return new g(null, null, s);
1762
+ }, d.prototype.initParameters = function() {
1763
+ t.prototype.initParameters.call(this, arguments), this.isSubLayout || (a.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = a.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = v.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = v.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = v.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = v.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = v.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = v.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 / v.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = v.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
1764
+ }, d.prototype.layout = function() {
1765
+ var s = n.DEFAULT_CREATE_BENDS_AS_NEEDED;
1766
+ return s && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
1767
+ }, d.prototype.classicLayout = function() {
1768
+ 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) {
1769
+ if (a.TREE_REDUCTION_ON_INCREMENTAL) {
1770
+ this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1771
+ var h = new Set(this.getAllNodes()), u = this.nodesWithGravity.filter(function(C) {
1772
+ return h.has(C);
1773
+ });
1774
+ this.graphManager.setAllNodesToApplyGravitation(u);
1775
+ }
1776
+ } else {
1777
+ var s = this.getFlatForest();
1778
+ if (s.length > 0)
1779
+ this.positionNodesRadially(s);
1780
+ else {
1781
+ this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1782
+ var h = new Set(this.getAllNodes()), u = this.nodesWithGravity.filter(function(p) {
1783
+ return h.has(p);
1784
+ });
1785
+ this.graphManager.setAllNodesToApplyGravitation(u), this.positionNodesRandomly();
1786
+ }
1787
+ }
1788
+ return this.initSpringEmbedder(), this.runSpringEmbedder(), !0;
1789
+ }, d.prototype.tick = function() {
1790
+ if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished)
1791
+ if (this.prunedNodesAll.length > 0)
1792
+ this.isTreeGrowing = !0;
1793
+ else
1794
+ return !0;
1795
+ if (this.totalIterations % v.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1796
+ if (this.isConverged())
1797
+ if (this.prunedNodesAll.length > 0)
1798
+ this.isTreeGrowing = !0;
1799
+ else
1800
+ return !0;
1801
+ 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));
1802
+ }
1803
+ if (this.isTreeGrowing) {
1804
+ if (this.growTreeIterations % 10 == 0)
1805
+ if (this.prunedNodesAll.length > 0) {
1806
+ this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1807
+ var s = new Set(this.getAllNodes()), h = this.nodesWithGravity.filter(function(A) {
1808
+ return s.has(A);
1809
+ });
1810
+ this.graphManager.setAllNodesToApplyGravitation(h), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = v.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1811
+ } else
1812
+ this.isTreeGrowing = !1, this.isGrowthFinished = !0;
1813
+ this.growTreeIterations++;
1814
+ }
1815
+ if (this.isGrowthFinished) {
1816
+ if (this.isConverged())
1817
+ return !0;
1818
+ this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = v.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1819
+ }
1820
+ var u = !this.isTreeGrowing && !this.isGrowthFinished, p = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1821
+ return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(u, p), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
1822
+ }, d.prototype.getPositionsData = function() {
1823
+ for (var s = this.graphManager.getAllNodes(), h = {}, u = 0; u < s.length; u++) {
1824
+ var p = s[u].rect, A = s[u].id;
1825
+ h[A] = {
1826
+ id: A,
1827
+ x: p.getCenterX(),
1828
+ y: p.getCenterY(),
1829
+ w: p.width,
1830
+ h: p.height
1831
+ };
1832
+ }
1833
+ return h;
1834
+ }, d.prototype.runSpringEmbedder = function() {
1835
+ this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
1836
+ var s = !1;
1837
+ if (v.ANIMATE === "during")
1838
+ this.emit("layoutstarted");
1839
+ else {
1840
+ for (; !s; )
1841
+ s = this.tick();
1842
+ this.graphManager.updateBounds();
1843
+ }
1844
+ }, d.prototype.calculateNodesToApplyGravitationTo = function() {
1845
+ var s = [], h, u = this.graphManager.getGraphs(), p = u.length, A;
1846
+ for (A = 0; A < p; A++)
1847
+ h = u[A], h.updateConnected(), h.isConnected || (s = s.concat(h.getNodes()));
1848
+ return s;
1849
+ }, d.prototype.createBendpoints = function() {
1850
+ var s = [];
1851
+ s = s.concat(this.graphManager.getAllEdges());
1852
+ var h = /* @__PURE__ */ new Set(), u;
1853
+ for (u = 0; u < s.length; u++) {
1854
+ var p = s[u];
1855
+ if (!h.has(p)) {
1856
+ var A = p.getSource(), C = p.getTarget();
1857
+ if (A == C)
1858
+ p.getBendpoints().push(new l()), p.getBendpoints().push(new l()), this.createDummyNodesForBendpoints(p), h.add(p);
1859
+ else {
1860
+ var R = [];
1861
+ if (R = R.concat(A.getEdgeListToNode(C)), R = R.concat(C.getEdgeListToNode(A)), !h.has(R[0])) {
1862
+ if (R.length > 1) {
1863
+ var x;
1864
+ for (x = 0; x < R.length; x++) {
1865
+ var _ = R[x];
1866
+ _.getBendpoints().push(new l()), this.createDummyNodesForBendpoints(_);
1867
+ }
1868
+ }
1869
+ R.forEach(function(U) {
1870
+ h.add(U);
1871
+ });
1872
+ }
1873
+ }
1874
+ }
1875
+ if (h.size == s.length)
1876
+ break;
1877
+ }
1878
+ }, d.prototype.positionNodesRadially = function(s) {
1879
+ for (var h = new c(0, 0), u = Math.ceil(Math.sqrt(s.length)), p = 0, A = 0, C = 0, R = new l(0, 0), x = 0; x < s.length; x++) {
1880
+ x % u == 0 && (C = 0, A = p, x != 0 && (A += a.DEFAULT_COMPONENT_SEPERATION), p = 0);
1881
+ var _ = s[x], U = E.findCenterOfTree(_);
1882
+ h.x = C, h.y = A, R = d.radialLayout(_, U, h), R.y > p && (p = Math.floor(R.y)), C = Math.floor(R.x + a.DEFAULT_COMPONENT_SEPERATION);
1883
+ }
1884
+ this.transform(new l(n.WORLD_CENTER_X - R.x / 2, n.WORLD_CENTER_Y - R.y / 2));
1885
+ }, d.radialLayout = function(s, h, u) {
1886
+ var p = Math.max(this.maxDiagonalInTree(s), a.DEFAULT_RADIAL_SEPARATION);
1887
+ d.branchRadialLayout(h, null, 0, 359, 0, p);
1888
+ var A = L.calculateBounds(s), C = new O();
1889
+ C.setDeviceOrgX(A.getMinX()), C.setDeviceOrgY(A.getMinY()), C.setWorldOrgX(u.x), C.setWorldOrgY(u.y);
1890
+ for (var R = 0; R < s.length; R++) {
1891
+ var x = s[R];
1892
+ x.transform(C);
1893
+ }
1894
+ var _ = new l(A.getMaxX(), A.getMaxY());
1895
+ return C.inverseTransformPoint(_);
1896
+ }, d.branchRadialLayout = function(s, h, u, p, A, C) {
1897
+ var R = (p - u + 1) / 2;
1898
+ R < 0 && (R += 180);
1899
+ var x = (R + u) % 360, _ = x * D.TWO_PI / 360, U = A * Math.cos(_), X = A * Math.sin(_);
1900
+ s.setCenter(U, X);
1901
+ var M = [];
1902
+ M = M.concat(s.getEdges());
1903
+ var G = M.length;
1904
+ h != null && G--;
1905
+ for (var F = 0, b = M.length, Y, k = s.getEdgesBetween(h); k.length > 1; ) {
1906
+ var H = k[0];
1907
+ k.splice(0, 1);
1908
+ var P = M.indexOf(H);
1909
+ P >= 0 && M.splice(P, 1), b--, G--;
1910
+ }
1911
+ h != null ? Y = (M.indexOf(k[0]) + 1) % b : Y = 0;
1912
+ for (var B = Math.abs(p - u) / G, $ = Y; F != G; $ = ++$ % b) {
1913
+ var K = M[$].getOtherEnd(s);
1914
+ if (K != h) {
1915
+ var Q = (u + F * B) % 360, q = (Q + B) % 360;
1916
+ d.branchRadialLayout(K, s, Q, q, A + C, C), F++;
1917
+ }
1918
+ }
1919
+ }, d.maxDiagonalInTree = function(s) {
1920
+ for (var h = T.MIN_VALUE, u = 0; u < s.length; u++) {
1921
+ var p = s[u], A = p.getDiagonal();
1922
+ A > h && (h = A);
1923
+ }
1924
+ return h;
1925
+ }, d.prototype.calcRepulsionRange = function() {
1926
+ return 2 * (this.level + 1) * this.idealEdgeLength;
1927
+ }, d.prototype.groupZeroDegreeMembers = function() {
1928
+ var s = this, h = {};
1929
+ this.memberGroups = {}, this.idToDummyNode = {};
1930
+ for (var u = [], p = this.graphManager.getAllNodes(), A = 0; A < p.length; A++) {
1931
+ var C = p[A], R = C.getParent();
1932
+ this.getNodeDegreeWithChildren(C) === 0 && (R.id == null || !this.getToBeTiled(R)) && u.push(C);
1933
+ }
1934
+ for (var A = 0; A < u.length; A++) {
1935
+ var C = u[A], x = C.getParent().id;
1936
+ typeof h[x] > "u" && (h[x] = []), h[x] = h[x].concat(C);
1937
+ }
1938
+ Object.keys(h).forEach(function(_) {
1939
+ if (h[_].length > 1) {
1940
+ var U = "DummyCompound_" + _;
1941
+ s.memberGroups[U] = h[_];
1942
+ var X = h[_][0].getParent(), M = new o(s.graphManager);
1943
+ M.id = U, M.paddingLeft = X.paddingLeft || 0, M.paddingRight = X.paddingRight || 0, M.paddingBottom = X.paddingBottom || 0, M.paddingTop = X.paddingTop || 0, s.idToDummyNode[U] = M;
1944
+ var G = s.getGraphManager().add(s.newGraph(), M), F = X.getChild();
1945
+ F.add(M);
1946
+ for (var b = 0; b < h[_].length; b++) {
1947
+ var Y = h[_][b];
1948
+ F.remove(Y), G.add(Y);
1949
+ }
1950
+ }
1951
+ });
1952
+ }, d.prototype.clearCompounds = function() {
1953
+ var s = {}, h = {};
1954
+ this.performDFSOnCompounds();
1955
+ for (var u = 0; u < this.compoundOrder.length; u++)
1956
+ h[this.compoundOrder[u].id] = this.compoundOrder[u], s[this.compoundOrder[u].id] = [].concat(this.compoundOrder[u].getChild().getNodes()), this.graphManager.remove(this.compoundOrder[u].getChild()), this.compoundOrder[u].child = null;
1957
+ this.graphManager.resetAllNodes(), this.tileCompoundMembers(s, h);
1958
+ }, d.prototype.clearZeroDegreeMembers = function() {
1959
+ var s = this, h = this.tiledZeroDegreePack = [];
1960
+ Object.keys(this.memberGroups).forEach(function(u) {
1961
+ var p = s.idToDummyNode[u];
1962
+ h[u] = s.tileNodes(s.memberGroups[u], p.paddingLeft + p.paddingRight), p.rect.width = h[u].width, p.rect.height = h[u].height;
1963
+ });
1964
+ }, d.prototype.repopulateCompounds = function() {
1965
+ for (var s = this.compoundOrder.length - 1; s >= 0; s--) {
1966
+ var h = this.compoundOrder[s], u = h.id, p = h.paddingLeft, A = h.paddingTop;
1967
+ this.adjustLocations(this.tiledMemberPack[u], h.rect.x, h.rect.y, p, A);
1968
+ }
1969
+ }, d.prototype.repopulateZeroDegreeMembers = function() {
1970
+ var s = this, h = this.tiledZeroDegreePack;
1971
+ Object.keys(h).forEach(function(u) {
1972
+ var p = s.idToDummyNode[u], A = p.paddingLeft, C = p.paddingTop;
1973
+ s.adjustLocations(h[u], p.rect.x, p.rect.y, A, C);
1974
+ });
1975
+ }, d.prototype.getToBeTiled = function(s) {
1976
+ var h = s.id;
1977
+ if (this.toBeTiled[h] != null)
1978
+ return this.toBeTiled[h];
1979
+ var u = s.getChild();
1980
+ if (u == null)
1981
+ return this.toBeTiled[h] = !1, !1;
1982
+ for (var p = u.getNodes(), A = 0; A < p.length; A++) {
1983
+ var C = p[A];
1984
+ if (this.getNodeDegree(C) > 0)
1985
+ return this.toBeTiled[h] = !1, !1;
1986
+ if (C.getChild() == null) {
1987
+ this.toBeTiled[C.id] = !1;
1988
+ continue;
1989
+ }
1990
+ if (!this.getToBeTiled(C))
1991
+ return this.toBeTiled[h] = !1, !1;
1992
+ }
1993
+ return this.toBeTiled[h] = !0, !0;
1994
+ }, d.prototype.getNodeDegree = function(s) {
1995
+ s.id;
1996
+ for (var h = s.getEdges(), u = 0, p = 0; p < h.length; p++) {
1997
+ var A = h[p];
1998
+ A.getSource().id !== A.getTarget().id && (u = u + 1);
1999
+ }
2000
+ return u;
2001
+ }, d.prototype.getNodeDegreeWithChildren = function(s) {
2002
+ var h = this.getNodeDegree(s);
2003
+ if (s.getChild() == null)
2004
+ return h;
2005
+ for (var u = s.getChild().getNodes(), p = 0; p < u.length; p++) {
2006
+ var A = u[p];
2007
+ h += this.getNodeDegreeWithChildren(A);
2008
+ }
2009
+ return h;
2010
+ }, d.prototype.performDFSOnCompounds = function() {
2011
+ this.compoundOrder = [], this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes());
2012
+ }, d.prototype.fillCompexOrderByDFS = function(s) {
2013
+ for (var h = 0; h < s.length; h++) {
2014
+ var u = s[h];
2015
+ u.getChild() != null && this.fillCompexOrderByDFS(u.getChild().getNodes()), this.getToBeTiled(u) && this.compoundOrder.push(u);
2016
+ }
2017
+ }, d.prototype.adjustLocations = function(s, h, u, p, A) {
2018
+ h += p, u += A;
2019
+ for (var C = h, R = 0; R < s.rows.length; R++) {
2020
+ var x = s.rows[R];
2021
+ h = C;
2022
+ for (var _ = 0, U = 0; U < x.length; U++) {
2023
+ var X = x[U];
2024
+ X.rect.x = h, X.rect.y = u, h += X.rect.width + s.horizontalPadding, X.rect.height > _ && (_ = X.rect.height);
2025
+ }
2026
+ u += _ + s.verticalPadding;
2027
+ }
2028
+ }, d.prototype.tileCompoundMembers = function(s, h) {
2029
+ var u = this;
2030
+ this.tiledMemberPack = [], Object.keys(s).forEach(function(p) {
2031
+ var A = h[p];
2032
+ u.tiledMemberPack[p] = u.tileNodes(s[p], A.paddingLeft + A.paddingRight), A.rect.width = u.tiledMemberPack[p].width, A.rect.height = u.tiledMemberPack[p].height;
2033
+ });
2034
+ }, d.prototype.tileNodes = function(s, h) {
2035
+ var u = a.TILING_PADDING_VERTICAL, p = a.TILING_PADDING_HORIZONTAL, A = {
2036
+ rows: [],
2037
+ rowWidth: [],
2038
+ rowHeight: [],
2039
+ width: 0,
2040
+ height: h,
2041
+ // assume minHeight equals to minWidth
2042
+ verticalPadding: u,
2043
+ horizontalPadding: p
2044
+ };
2045
+ s.sort(function(x, _) {
2046
+ return x.rect.width * x.rect.height > _.rect.width * _.rect.height ? -1 : x.rect.width * x.rect.height < _.rect.width * _.rect.height ? 1 : 0;
2047
+ });
2048
+ for (var C = 0; C < s.length; C++) {
2049
+ var R = s[C];
2050
+ A.rows.length == 0 ? this.insertNodeToRow(A, R, 0, h) : this.canAddHorizontal(A, R.rect.width, R.rect.height) ? this.insertNodeToRow(A, R, this.getShortestRowIndex(A), h) : this.insertNodeToRow(A, R, A.rows.length, h), this.shiftToLastRow(A);
2051
+ }
2052
+ return A;
2053
+ }, d.prototype.insertNodeToRow = function(s, h, u, p) {
2054
+ var A = p;
2055
+ if (u == s.rows.length) {
2056
+ var C = [];
2057
+ s.rows.push(C), s.rowWidth.push(A), s.rowHeight.push(0);
2058
+ }
2059
+ var R = s.rowWidth[u] + h.rect.width;
2060
+ s.rows[u].length > 0 && (R += s.horizontalPadding), s.rowWidth[u] = R, s.width < R && (s.width = R);
2061
+ var x = h.rect.height;
2062
+ u > 0 && (x += s.verticalPadding);
2063
+ var _ = 0;
2064
+ x > s.rowHeight[u] && (_ = s.rowHeight[u], s.rowHeight[u] = x, _ = s.rowHeight[u] - _), s.height += _, s.rows[u].push(h);
2065
+ }, d.prototype.getShortestRowIndex = function(s) {
2066
+ for (var h = -1, u = Number.MAX_VALUE, p = 0; p < s.rows.length; p++)
2067
+ s.rowWidth[p] < u && (h = p, u = s.rowWidth[p]);
2068
+ return h;
2069
+ }, d.prototype.getLongestRowIndex = function(s) {
2070
+ for (var h = -1, u = Number.MIN_VALUE, p = 0; p < s.rows.length; p++)
2071
+ s.rowWidth[p] > u && (h = p, u = s.rowWidth[p]);
2072
+ return h;
2073
+ }, d.prototype.canAddHorizontal = function(s, h, u) {
2074
+ var p = this.getShortestRowIndex(s);
2075
+ if (p < 0)
2076
+ return !0;
2077
+ var A = s.rowWidth[p];
2078
+ if (A + s.horizontalPadding + h <= s.width) return !0;
2079
+ var C = 0;
2080
+ s.rowHeight[p] < u && p > 0 && (C = u + s.verticalPadding - s.rowHeight[p]);
2081
+ var R;
2082
+ s.width - A >= h + s.horizontalPadding ? R = (s.height + C) / (A + h + s.horizontalPadding) : R = (s.height + C) / s.width, C = u + s.verticalPadding;
2083
+ var x;
2084
+ return s.width < h ? x = (s.height + C) / h : x = (s.height + C) / s.width, x < 1 && (x = 1 / x), R < 1 && (R = 1 / R), R < x;
2085
+ }, d.prototype.shiftToLastRow = function(s) {
2086
+ var h = this.getLongestRowIndex(s), u = s.rowWidth.length - 1, p = s.rows[h], A = p[p.length - 1], C = A.width + s.horizontalPadding;
2087
+ if (s.width - s.rowWidth[u] > C && h != u) {
2088
+ p.splice(-1, 1), s.rows[u].push(A), s.rowWidth[h] = s.rowWidth[h] - C, s.rowWidth[u] = s.rowWidth[u] + C, s.width = s.rowWidth[instance.getLongestRowIndex(s)];
2089
+ for (var R = Number.MIN_VALUE, x = 0; x < p.length; x++)
2090
+ p[x].height > R && (R = p[x].height);
2091
+ h > 0 && (R += s.verticalPadding);
2092
+ var _ = s.rowHeight[h] + s.rowHeight[u];
2093
+ s.rowHeight[h] = R, s.rowHeight[u] < A.height + s.verticalPadding && (s.rowHeight[u] = A.height + s.verticalPadding);
2094
+ var U = s.rowHeight[h] + s.rowHeight[u];
2095
+ s.height += U - _, this.shiftToLastRow(s);
2096
+ }
2097
+ }, d.prototype.tilingPreLayout = function() {
2098
+ a.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers());
2099
+ }, d.prototype.tilingPostLayout = function() {
2100
+ a.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds());
2101
+ }, d.prototype.reduceTrees = function() {
2102
+ for (var s = [], h = !0, u; h; ) {
2103
+ var p = this.graphManager.getAllNodes(), A = [];
2104
+ h = !1;
2105
+ for (var C = 0; C < p.length; C++)
2106
+ u = p[C], u.getEdges().length == 1 && !u.getEdges()[0].isInterGraph && u.getChild() == null && (A.push([u, u.getEdges()[0], u.getOwner()]), h = !0);
2107
+ if (h == !0) {
2108
+ for (var R = [], x = 0; x < A.length; x++)
2109
+ A[x][0].getEdges().length == 1 && (R.push(A[x]), A[x][0].getOwner().remove(A[x][0]));
2110
+ s.push(R), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2111
+ }
2112
+ }
2113
+ this.prunedNodesAll = s;
2114
+ }, d.prototype.growTree = function(s) {
2115
+ for (var h = s.length, u = s[h - 1], p, A = 0; A < u.length; A++)
2116
+ p = u[A], this.findPlaceforPrunedNode(p), p[2].add(p[0]), p[2].add(p[1], p[1].source, p[1].target);
2117
+ s.splice(s.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2118
+ }, d.prototype.findPlaceforPrunedNode = function(s) {
2119
+ var h, u, p = s[0];
2120
+ p == s[1].source ? u = s[1].target : u = s[1].source;
2121
+ var A = u.startX, C = u.finishX, R = u.startY, x = u.finishY, _ = 0, U = 0, X = 0, M = 0, G = [_, X, U, M];
2122
+ if (R > 0)
2123
+ for (var F = A; F <= C; F++)
2124
+ G[0] += this.grid[F][R - 1].length + this.grid[F][R].length - 1;
2125
+ if (C < this.grid.length - 1)
2126
+ for (var F = R; F <= x; F++)
2127
+ G[1] += this.grid[C + 1][F].length + this.grid[C][F].length - 1;
2128
+ if (x < this.grid[0].length - 1)
2129
+ for (var F = A; F <= C; F++)
2130
+ G[2] += this.grid[F][x + 1].length + this.grid[F][x].length - 1;
2131
+ if (A > 0)
2132
+ for (var F = R; F <= x; F++)
2133
+ G[3] += this.grid[A - 1][F].length + this.grid[A][F].length - 1;
2134
+ for (var b = T.MAX_VALUE, Y, k, H = 0; H < G.length; H++)
2135
+ G[H] < b ? (b = G[H], Y = 1, k = H) : G[H] == b && Y++;
2136
+ if (Y == 3 && b == 0)
2137
+ G[0] == 0 && G[1] == 0 && G[2] == 0 ? h = 1 : G[0] == 0 && G[1] == 0 && G[3] == 0 ? h = 0 : G[0] == 0 && G[2] == 0 && G[3] == 0 ? h = 3 : G[1] == 0 && G[2] == 0 && G[3] == 0 && (h = 2);
2138
+ else if (Y == 2 && b == 0) {
2139
+ var P = Math.floor(Math.random() * 2);
2140
+ G[0] == 0 && G[1] == 0 ? P == 0 ? h = 0 : h = 1 : G[0] == 0 && G[2] == 0 ? P == 0 ? h = 0 : h = 2 : G[0] == 0 && G[3] == 0 ? P == 0 ? h = 0 : h = 3 : G[1] == 0 && G[2] == 0 ? P == 0 ? h = 1 : h = 2 : G[1] == 0 && G[3] == 0 ? P == 0 ? h = 1 : h = 3 : P == 0 ? h = 2 : h = 3;
2141
+ } else if (Y == 4 && b == 0) {
2142
+ var P = Math.floor(Math.random() * 4);
2143
+ h = P;
2144
+ } else
2145
+ h = k;
2146
+ h == 0 ? p.setCenter(u.getCenterX(), u.getCenterY() - u.getHeight() / 2 - v.DEFAULT_EDGE_LENGTH - p.getHeight() / 2) : h == 1 ? p.setCenter(u.getCenterX() + u.getWidth() / 2 + v.DEFAULT_EDGE_LENGTH + p.getWidth() / 2, u.getCenterY()) : h == 2 ? p.setCenter(u.getCenterX(), u.getCenterY() + u.getHeight() / 2 + v.DEFAULT_EDGE_LENGTH + p.getHeight() / 2) : p.setCenter(u.getCenterX() - u.getWidth() / 2 - v.DEFAULT_EDGE_LENGTH - p.getWidth() / 2, u.getCenterY());
2147
+ }, m.exports = d;
2148
+ },
2149
+ /* 7 */
2150
+ /***/
2151
+ function(m, y, r) {
2152
+ var t = {};
2153
+ t.layoutBase = r(0), t.CoSEConstants = r(1), t.CoSEEdge = r(2), t.CoSEGraph = r(3), t.CoSEGraphManager = r(4), t.CoSELayout = r(6), t.CoSENode = r(5), m.exports = t;
2154
+ }
2155
+ /******/
2156
+ ])
2157
+ );
2158
+ });
2159
+ }(et)), et.exports;
2160
+ }
2161
+ var _t = tt.exports, pt;
2162
+ function Ft() {
2163
+ return pt || (pt = 1, function(I, w) {
2164
+ (function(m, y) {
2165
+ I.exports = y(Gt());
2166
+ })(_t, function(f) {
2167
+ return (
2168
+ /******/
2169
+ function(m) {
2170
+ var y = {};
2171
+ function r(t) {
2172
+ if (y[t])
2173
+ return y[t].exports;
2174
+ var e = y[t] = {
2175
+ /******/
2176
+ i: t,
2177
+ /******/
2178
+ l: !1,
2179
+ /******/
2180
+ exports: {}
2181
+ /******/
2182
+ };
2183
+ return m[t].call(e.exports, e, e.exports, r), e.l = !0, e.exports;
2184
+ }
2185
+ return r.m = m, r.c = y, r.i = function(t) {
2186
+ return t;
2187
+ }, r.d = function(t, e, i) {
2188
+ r.o(t, e) || Object.defineProperty(t, e, {
2189
+ /******/
2190
+ configurable: !1,
2191
+ /******/
2192
+ enumerable: !0,
2193
+ /******/
2194
+ get: i
2195
+ /******/
2196
+ });
2197
+ }, r.n = function(t) {
2198
+ var e = t && t.__esModule ? (
2199
+ /******/
2200
+ function() {
2201
+ return t.default;
2202
+ }
2203
+ ) : (
2204
+ /******/
2205
+ function() {
2206
+ return t;
2207
+ }
2208
+ );
2209
+ return r.d(e, "a", e), e;
2210
+ }, r.o = function(t, e) {
2211
+ return Object.prototype.hasOwnProperty.call(t, e);
2212
+ }, r.p = "", r(r.s = 1);
2213
+ }([
2214
+ /* 0 */
2215
+ /***/
2216
+ function(m, y) {
2217
+ m.exports = f;
2218
+ },
2219
+ /* 1 */
2220
+ /***/
2221
+ function(m, y, r) {
2222
+ var t = r(0).layoutBase.LayoutConstants, e = r(0).layoutBase.FDLayoutConstants, i = r(0).CoSEConstants, o = r(0).CoSELayout, g = r(0).CoSENode, a = r(0).layoutBase.PointD, v = r(0).layoutBase.DimensionD, n = {
2223
+ // Called on `layoutready`
2224
+ ready: function() {
2225
+ },
2226
+ // Called on `layoutstop`
2227
+ stop: function() {
2228
+ },
2229
+ // 'draft', 'default' or 'proof"
2230
+ // - 'draft' fast cooling rate
2231
+ // - 'default' moderate cooling rate
2232
+ // - "proof" slow cooling rate
2233
+ quality: "default",
2234
+ // include labels in node dimensions
2235
+ nodeDimensionsIncludeLabels: !1,
2236
+ // number of ticks per frame; higher is faster but more jerky
2237
+ refresh: 30,
2238
+ // Whether to fit the network view after when done
2239
+ fit: !0,
2240
+ // Padding on fit
2241
+ padding: 10,
2242
+ // Whether to enable incremental mode
2243
+ randomize: !0,
2244
+ // Node repulsion (non overlapping) multiplier
2245
+ nodeRepulsion: 4500,
2246
+ // Ideal edge (non nested) length
2247
+ idealEdgeLength: 50,
2248
+ // Divisor to compute edge forces
2249
+ edgeElasticity: 0.45,
2250
+ // Nesting factor (multiplier) to compute ideal edge length for nested edges
2251
+ nestingFactor: 0.1,
2252
+ // Gravity force (constant)
2253
+ gravity: 0.25,
2254
+ // Maximum number of iterations to perform
2255
+ numIter: 2500,
2256
+ // For enabling tiling
2257
+ tile: !0,
2258
+ // Type of layout animation. The option set is {'during', 'end', false}
2259
+ animate: "end",
2260
+ // Duration for animate:end
2261
+ animationDuration: 500,
2262
+ // Represents the amount of the vertical space to put between the zero degree members during the tiling operation(can also be a function)
2263
+ tilingPaddingVertical: 10,
2264
+ // Represents the amount of the horizontal space to put between the zero degree members during the tiling operation(can also be a function)
2265
+ tilingPaddingHorizontal: 10,
2266
+ // Gravity range (constant) for compounds
2267
+ gravityRangeCompound: 1.5,
2268
+ // Gravity force (constant) for compounds
2269
+ gravityCompound: 1,
2270
+ // Gravity range (constant)
2271
+ gravityRange: 3.8,
2272
+ // Initial cooling factor for incremental layout
2273
+ initialEnergyOnIncremental: 0.5
2274
+ };
2275
+ function c(D, L) {
2276
+ var O = {};
2277
+ for (var d in D)
2278
+ O[d] = D[d];
2279
+ for (var d in L)
2280
+ O[d] = L[d];
2281
+ return O;
2282
+ }
2283
+ function l(D) {
2284
+ this.options = c(n, D), E(this.options);
2285
+ }
2286
+ var E = function(L) {
2287
+ L.nodeRepulsion != null && (i.DEFAULT_REPULSION_STRENGTH = e.DEFAULT_REPULSION_STRENGTH = L.nodeRepulsion), L.idealEdgeLength != null && (i.DEFAULT_EDGE_LENGTH = e.DEFAULT_EDGE_LENGTH = L.idealEdgeLength), L.edgeElasticity != null && (i.DEFAULT_SPRING_STRENGTH = e.DEFAULT_SPRING_STRENGTH = L.edgeElasticity), L.nestingFactor != null && (i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = L.nestingFactor), L.gravity != null && (i.DEFAULT_GRAVITY_STRENGTH = e.DEFAULT_GRAVITY_STRENGTH = L.gravity), L.numIter != null && (i.MAX_ITERATIONS = e.MAX_ITERATIONS = L.numIter), L.gravityRange != null && (i.DEFAULT_GRAVITY_RANGE_FACTOR = e.DEFAULT_GRAVITY_RANGE_FACTOR = L.gravityRange), L.gravityCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_STRENGTH = e.DEFAULT_COMPOUND_GRAVITY_STRENGTH = L.gravityCompound), L.gravityRangeCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = L.gravityRangeCompound), L.initialEnergyOnIncremental != null && (i.DEFAULT_COOLING_FACTOR_INCREMENTAL = e.DEFAULT_COOLING_FACTOR_INCREMENTAL = L.initialEnergyOnIncremental), L.quality == "draft" ? t.QUALITY = 0 : L.quality == "proof" ? t.QUALITY = 2 : t.QUALITY = 1, i.NODE_DIMENSIONS_INCLUDE_LABELS = e.NODE_DIMENSIONS_INCLUDE_LABELS = t.NODE_DIMENSIONS_INCLUDE_LABELS = L.nodeDimensionsIncludeLabels, i.DEFAULT_INCREMENTAL = e.DEFAULT_INCREMENTAL = t.DEFAULT_INCREMENTAL = !L.randomize, i.ANIMATE = e.ANIMATE = t.ANIMATE = L.animate, i.TILE = L.tile, i.TILING_PADDING_VERTICAL = typeof L.tilingPaddingVertical == "function" ? L.tilingPaddingVertical.call() : L.tilingPaddingVertical, i.TILING_PADDING_HORIZONTAL = typeof L.tilingPaddingHorizontal == "function" ? L.tilingPaddingHorizontal.call() : L.tilingPaddingHorizontal;
2288
+ };
2289
+ l.prototype.run = function() {
2290
+ var D, L, O = this.options;
2291
+ this.idToLNode = {};
2292
+ var d = this.layout = new o(), N = this;
2293
+ N.stopped = !1, this.cy = this.options.cy, this.cy.trigger({ type: "layoutstart", layout: this });
2294
+ var s = d.newGraphManager();
2295
+ this.gm = s;
2296
+ var h = this.options.eles.nodes(), u = this.options.eles.edges();
2297
+ this.root = s.addRoot(), this.processChildrenList(this.root, this.getTopMostNodes(h), d);
2298
+ for (var p = 0; p < u.length; p++) {
2299
+ var A = u[p], C = this.idToLNode[A.data("source")], R = this.idToLNode[A.data("target")];
2300
+ if (C !== R && C.getEdgesBetween(R).length == 0) {
2301
+ var x = s.add(d.newEdge(), C, R);
2302
+ x.id = A.id();
2303
+ }
2304
+ }
2305
+ var _ = function(M, G) {
2306
+ typeof M == "number" && (M = G);
2307
+ var F = M.data("id"), b = N.idToLNode[F];
2308
+ return {
2309
+ x: b.getRect().getCenterX(),
2310
+ y: b.getRect().getCenterY()
2311
+ };
2312
+ }, U = function X() {
2313
+ for (var M = function() {
2314
+ O.fit && O.cy.fit(O.eles, O.padding), D || (D = !0, N.cy.one("layoutready", O.ready), N.cy.trigger({ type: "layoutready", layout: N }));
2315
+ }, G = N.options.refresh, F, b = 0; b < G && !F; b++)
2316
+ F = N.stopped || N.layout.tick();
2317
+ if (F) {
2318
+ d.checkLayoutSuccess() && !d.isSubLayout && d.doPostLayout(), d.tilingPostLayout && d.tilingPostLayout(), d.isLayoutFinished = !0, N.options.eles.nodes().positions(_), M(), N.cy.one("layoutstop", N.options.stop), N.cy.trigger({ type: "layoutstop", layout: N }), L && cancelAnimationFrame(L), D = !1;
2319
+ return;
2320
+ }
2321
+ var Y = N.layout.getPositionsData();
2322
+ O.eles.nodes().positions(function(k, H) {
2323
+ if (typeof k == "number" && (k = H), !k.isParent()) {
2324
+ for (var P = k.id(), B = Y[P], $ = k; B == null && (B = Y[$.data("parent")] || Y["DummyCompound_" + $.data("parent")], Y[P] = B, $ = $.parent()[0], $ != null); )
2325
+ ;
2326
+ return B != null ? {
2327
+ x: B.x,
2328
+ y: B.y
2329
+ } : {
2330
+ x: k.position("x"),
2331
+ y: k.position("y")
2332
+ };
2333
+ }
2334
+ }), M(), L = requestAnimationFrame(X);
2335
+ };
2336
+ return d.addListener("layoutstarted", function() {
2337
+ N.options.animate === "during" && (L = requestAnimationFrame(U));
2338
+ }), d.runLayout(), this.options.animate !== "during" && (N.options.eles.nodes().not(":parent").layoutPositions(N, N.options, _), D = !1), this;
2339
+ }, l.prototype.getTopMostNodes = function(D) {
2340
+ for (var L = {}, O = 0; O < D.length; O++)
2341
+ L[D[O].id()] = !0;
2342
+ var d = D.filter(function(N, s) {
2343
+ typeof N == "number" && (N = s);
2344
+ for (var h = N.parent()[0]; h != null; ) {
2345
+ if (L[h.id()])
2346
+ return !1;
2347
+ h = h.parent()[0];
2348
+ }
2349
+ return !0;
2350
+ });
2351
+ return d;
2352
+ }, l.prototype.processChildrenList = function(D, L, O) {
2353
+ for (var d = L.length, N = 0; N < d; N++) {
2354
+ var s = L[N], h = s.children(), u, p = s.layoutDimensions({
2355
+ nodeDimensionsIncludeLabels: this.options.nodeDimensionsIncludeLabels
2356
+ });
2357
+ if (s.outerWidth() != null && s.outerHeight() != null ? u = D.add(new g(O.graphManager, new a(s.position("x") - p.w / 2, s.position("y") - p.h / 2), new v(parseFloat(p.w), parseFloat(p.h)))) : u = D.add(new g(this.graphManager)), u.id = s.data("id"), u.paddingLeft = parseInt(s.css("padding")), u.paddingTop = parseInt(s.css("padding")), u.paddingRight = parseInt(s.css("padding")), u.paddingBottom = parseInt(s.css("padding")), this.options.nodeDimensionsIncludeLabels && s.isParent()) {
2358
+ var A = s.boundingBox({ includeLabels: !0, includeNodes: !1 }).w, C = s.boundingBox({ includeLabels: !0, includeNodes: !1 }).h, R = s.css("text-halign");
2359
+ u.labelWidth = A, u.labelHeight = C, u.labelPos = R;
2360
+ }
2361
+ if (this.idToLNode[s.data("id")] = u, isNaN(u.rect.x) && (u.rect.x = 0), isNaN(u.rect.y) && (u.rect.y = 0), h != null && h.length > 0) {
2362
+ var x;
2363
+ x = O.getGraphManager().add(O.newGraph(), u), this.processChildrenList(x, h, O);
2364
+ }
2365
+ }
2366
+ }, l.prototype.stop = function() {
2367
+ return this.stopped = !0, this;
2368
+ };
2369
+ var T = function(L) {
2370
+ L("layout", "cose-bilkent", l);
2371
+ };
2372
+ typeof cytoscape < "u" && T(cytoscape), m.exports = T;
2373
+ }
2374
+ /******/
2375
+ ])
2376
+ );
2377
+ });
2378
+ }(tt)), tt.exports;
2379
+ }
2380
+ var bt = Ft();
2381
+ const Ut = /* @__PURE__ */ Nt(bt);
2382
+ var at = function() {
2383
+ var I = /* @__PURE__ */ S(function(O, d, N, s) {
2384
+ for (N = N || {}, s = O.length; s--; N[O[s]] = d) ;
2385
+ return N;
2386
+ }, "o"), w = [1, 4], f = [1, 13], m = [1, 12], y = [1, 15], r = [1, 16], t = [1, 20], e = [1, 19], i = [6, 7, 8], o = [1, 26], g = [1, 24], a = [1, 25], v = [6, 7, 11], n = [1, 6, 13, 15, 16, 19, 22], c = [1, 33], l = [1, 34], E = [1, 6, 7, 11, 13, 15, 16, 19, 22], T = {
2387
+ trace: /* @__PURE__ */ S(function() {
2388
+ }, "trace"),
2389
+ yy: {},
2390
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
2391
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
2392
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
2393
+ performAction: /* @__PURE__ */ S(function(d, N, s, h, u, p, A) {
2394
+ var C = p.length - 1;
2395
+ switch (u) {
2396
+ case 6:
2397
+ case 7:
2398
+ return h;
2399
+ case 8:
2400
+ h.getLogger().trace("Stop NL ");
2401
+ break;
2402
+ case 9:
2403
+ h.getLogger().trace("Stop EOF ");
2404
+ break;
2405
+ case 11:
2406
+ h.getLogger().trace("Stop NL2 ");
2407
+ break;
2408
+ case 12:
2409
+ h.getLogger().trace("Stop EOF2 ");
2410
+ break;
2411
+ case 15:
2412
+ h.getLogger().info("Node: ", p[C].id), h.addNode(p[C - 1].length, p[C].id, p[C].descr, p[C].type);
2413
+ break;
2414
+ case 16:
2415
+ h.getLogger().trace("Icon: ", p[C]), h.decorateNode({ icon: p[C] });
2416
+ break;
2417
+ case 17:
2418
+ case 21:
2419
+ h.decorateNode({ class: p[C] });
2420
+ break;
2421
+ case 18:
2422
+ h.getLogger().trace("SPACELIST");
2423
+ break;
2424
+ case 19:
2425
+ h.getLogger().trace("Node: ", p[C].id), h.addNode(0, p[C].id, p[C].descr, p[C].type);
2426
+ break;
2427
+ case 20:
2428
+ h.decorateNode({ icon: p[C] });
2429
+ break;
2430
+ case 25:
2431
+ h.getLogger().trace("node found ..", p[C - 2]), this.$ = { id: p[C - 1], descr: p[C - 1], type: h.getType(p[C - 2], p[C]) };
2432
+ break;
2433
+ case 26:
2434
+ this.$ = { id: p[C], descr: p[C], type: h.nodeType.DEFAULT };
2435
+ break;
2436
+ case 27:
2437
+ h.getLogger().trace("node found ..", p[C - 3]), this.$ = { id: p[C - 3], descr: p[C - 1], type: h.getType(p[C - 2], p[C]) };
2438
+ break;
2439
+ }
2440
+ }, "anonymous"),
2441
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: w }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: w }, { 6: f, 7: [1, 10], 9: 9, 12: 11, 13: m, 14: 14, 15: y, 16: r, 17: 17, 18: 18, 19: t, 22: e }, I(i, [2, 3]), { 1: [2, 2] }, I(i, [2, 4]), I(i, [2, 5]), { 1: [2, 6], 6: f, 12: 21, 13: m, 14: 14, 15: y, 16: r, 17: 17, 18: 18, 19: t, 22: e }, { 6: f, 9: 22, 12: 11, 13: m, 14: 14, 15: y, 16: r, 17: 17, 18: 18, 19: t, 22: e }, { 6: o, 7: g, 10: 23, 11: a }, I(v, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: t, 22: e }), I(v, [2, 18]), I(v, [2, 19]), I(v, [2, 20]), I(v, [2, 21]), I(v, [2, 23]), I(v, [2, 24]), I(v, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: o, 7: g, 10: 32, 11: a }, { 1: [2, 7], 6: f, 12: 21, 13: m, 14: 14, 15: y, 16: r, 17: 17, 18: 18, 19: t, 22: e }, I(n, [2, 14], { 7: c, 11: l }), I(E, [2, 8]), I(E, [2, 9]), I(E, [2, 10]), I(v, [2, 15]), I(v, [2, 16]), I(v, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, I(n, [2, 13], { 7: c, 11: l }), I(E, [2, 11]), I(E, [2, 12]), { 21: [1, 37] }, I(v, [2, 25]), I(v, [2, 27])],
2442
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
2443
+ parseError: /* @__PURE__ */ S(function(d, N) {
2444
+ if (N.recoverable)
2445
+ this.trace(d);
2446
+ else {
2447
+ var s = new Error(d);
2448
+ throw s.hash = N, s;
2449
+ }
2450
+ }, "parseError"),
2451
+ parse: /* @__PURE__ */ S(function(d) {
2452
+ var N = this, s = [0], h = [], u = [null], p = [], A = this.table, C = "", R = 0, x = 0, _ = 2, U = 1, X = p.slice.call(arguments, 1), M = Object.create(this.lexer), G = { yy: {} };
2453
+ for (var F in this.yy)
2454
+ Object.prototype.hasOwnProperty.call(this.yy, F) && (G.yy[F] = this.yy[F]);
2455
+ M.setInput(d, G.yy), G.yy.lexer = M, G.yy.parser = this, typeof M.yylloc > "u" && (M.yylloc = {});
2456
+ var b = M.yylloc;
2457
+ p.push(b);
2458
+ var Y = M.options && M.options.ranges;
2459
+ typeof G.yy.parseError == "function" ? this.parseError = G.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
2460
+ function k(V) {
2461
+ s.length = s.length - 2 * V, u.length = u.length - V, p.length = p.length - V;
2462
+ }
2463
+ S(k, "popStack");
2464
+ function H() {
2465
+ var V;
2466
+ return V = h.pop() || M.lex() || U, typeof V != "number" && (V instanceof Array && (h = V, V = h.pop()), V = N.symbols_[V] || V), V;
2467
+ }
2468
+ S(H, "lex");
2469
+ for (var P, B, $, K, Q = {}, q, j, gt, J; ; ) {
2470
+ if (B = s[s.length - 1], this.defaultActions[B] ? $ = this.defaultActions[B] : ((P === null || typeof P > "u") && (P = H()), $ = A[B] && A[B][P]), typeof $ > "u" || !$.length || !$[0]) {
2471
+ var st = "";
2472
+ J = [];
2473
+ for (q in A[B])
2474
+ this.terminals_[q] && q > _ && J.push("'" + this.terminals_[q] + "'");
2475
+ M.showPosition ? st = "Parse error on line " + (R + 1) + `:
2476
+ ` + M.showPosition() + `
2477
+ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st = "Parse error on line " + (R + 1) + ": Unexpected " + (P == U ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(st, {
2478
+ text: M.match,
2479
+ token: this.terminals_[P] || P,
2480
+ line: M.yylineno,
2481
+ loc: b,
2482
+ expected: J
2483
+ });
2484
+ }
2485
+ if ($[0] instanceof Array && $.length > 1)
2486
+ throw new Error("Parse Error: multiple actions possible at state: " + B + ", token: " + P);
2487
+ switch ($[0]) {
2488
+ case 1:
2489
+ s.push(P), u.push(M.yytext), p.push(M.yylloc), s.push($[1]), P = null, x = M.yyleng, C = M.yytext, R = M.yylineno, b = M.yylloc;
2490
+ break;
2491
+ case 2:
2492
+ if (j = this.productions_[$[1]][1], Q.$ = u[u.length - j], Q._$ = {
2493
+ first_line: p[p.length - (j || 1)].first_line,
2494
+ last_line: p[p.length - 1].last_line,
2495
+ first_column: p[p.length - (j || 1)].first_column,
2496
+ last_column: p[p.length - 1].last_column
2497
+ }, Y && (Q._$.range = [
2498
+ p[p.length - (j || 1)].range[0],
2499
+ p[p.length - 1].range[1]
2500
+ ]), K = this.performAction.apply(Q, [
2501
+ C,
2502
+ x,
2503
+ R,
2504
+ G.yy,
2505
+ $[1],
2506
+ u,
2507
+ p
2508
+ ].concat(X)), typeof K < "u")
2509
+ return K;
2510
+ j && (s = s.slice(0, -1 * j * 2), u = u.slice(0, -1 * j), p = p.slice(0, -1 * j)), s.push(this.productions_[$[1]][0]), u.push(Q.$), p.push(Q._$), gt = A[s[s.length - 2]][s[s.length - 1]], s.push(gt);
2511
+ break;
2512
+ case 3:
2513
+ return !0;
2514
+ }
2515
+ }
2516
+ return !0;
2517
+ }, "parse")
2518
+ }, D = /* @__PURE__ */ function() {
2519
+ var O = {
2520
+ EOF: 1,
2521
+ parseError: /* @__PURE__ */ S(function(N, s) {
2522
+ if (this.yy.parser)
2523
+ this.yy.parser.parseError(N, s);
2524
+ else
2525
+ throw new Error(N);
2526
+ }, "parseError"),
2527
+ // resets the lexer, sets new input
2528
+ setInput: /* @__PURE__ */ S(function(d, N) {
2529
+ return this.yy = N || this.yy || {}, this._input = d, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
2530
+ first_line: 1,
2531
+ first_column: 0,
2532
+ last_line: 1,
2533
+ last_column: 0
2534
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
2535
+ }, "setInput"),
2536
+ // consumes and returns one char from the input
2537
+ input: /* @__PURE__ */ S(function() {
2538
+ var d = this._input[0];
2539
+ this.yytext += d, this.yyleng++, this.offset++, this.match += d, this.matched += d;
2540
+ var N = d.match(/(?:\r\n?|\n).*/g);
2541
+ return N ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), d;
2542
+ }, "input"),
2543
+ // unshifts one char (or a string) into the input
2544
+ unput: /* @__PURE__ */ S(function(d) {
2545
+ var N = d.length, s = d.split(/(?:\r\n?|\n)/g);
2546
+ this._input = d + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - N), this.offset -= N;
2547
+ var h = this.match.split(/(?:\r\n?|\n)/g);
2548
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), s.length - 1 && (this.yylineno -= s.length - 1);
2549
+ var u = this.yylloc.range;
2550
+ return this.yylloc = {
2551
+ first_line: this.yylloc.first_line,
2552
+ last_line: this.yylineno + 1,
2553
+ first_column: this.yylloc.first_column,
2554
+ last_column: s ? (s.length === h.length ? this.yylloc.first_column : 0) + h[h.length - s.length].length - s[0].length : this.yylloc.first_column - N
2555
+ }, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - N]), this.yyleng = this.yytext.length, this;
2556
+ }, "unput"),
2557
+ // When called from action, caches matched text and appends it on next action
2558
+ more: /* @__PURE__ */ S(function() {
2559
+ return this._more = !0, this;
2560
+ }, "more"),
2561
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
2562
+ reject: /* @__PURE__ */ S(function() {
2563
+ if (this.options.backtrack_lexer)
2564
+ this._backtrack = !0;
2565
+ else
2566
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
2567
+ ` + this.showPosition(), {
2568
+ text: "",
2569
+ token: null,
2570
+ line: this.yylineno
2571
+ });
2572
+ return this;
2573
+ }, "reject"),
2574
+ // retain first n characters of the match
2575
+ less: /* @__PURE__ */ S(function(d) {
2576
+ this.unput(this.match.slice(d));
2577
+ }, "less"),
2578
+ // displays already matched input, i.e. for error messages
2579
+ pastInput: /* @__PURE__ */ S(function() {
2580
+ var d = this.matched.substr(0, this.matched.length - this.match.length);
2581
+ return (d.length > 20 ? "..." : "") + d.substr(-20).replace(/\n/g, "");
2582
+ }, "pastInput"),
2583
+ // displays upcoming input, i.e. for error messages
2584
+ upcomingInput: /* @__PURE__ */ S(function() {
2585
+ var d = this.match;
2586
+ return d.length < 20 && (d += this._input.substr(0, 20 - d.length)), (d.substr(0, 20) + (d.length > 20 ? "..." : "")).replace(/\n/g, "");
2587
+ }, "upcomingInput"),
2588
+ // displays the character position where the lexing error occurred, i.e. for error messages
2589
+ showPosition: /* @__PURE__ */ S(function() {
2590
+ var d = this.pastInput(), N = new Array(d.length + 1).join("-");
2591
+ return d + this.upcomingInput() + `
2592
+ ` + N + "^";
2593
+ }, "showPosition"),
2594
+ // test the lexed token: return FALSE when not a match, otherwise return token
2595
+ test_match: /* @__PURE__ */ S(function(d, N) {
2596
+ var s, h, u;
2597
+ if (this.options.backtrack_lexer && (u = {
2598
+ yylineno: this.yylineno,
2599
+ yylloc: {
2600
+ first_line: this.yylloc.first_line,
2601
+ last_line: this.last_line,
2602
+ first_column: this.yylloc.first_column,
2603
+ last_column: this.yylloc.last_column
2604
+ },
2605
+ yytext: this.yytext,
2606
+ match: this.match,
2607
+ matches: this.matches,
2608
+ matched: this.matched,
2609
+ yyleng: this.yyleng,
2610
+ offset: this.offset,
2611
+ _more: this._more,
2612
+ _input: this._input,
2613
+ yy: this.yy,
2614
+ conditionStack: this.conditionStack.slice(0),
2615
+ done: this.done
2616
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), h = d[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
2617
+ first_line: this.yylloc.last_line,
2618
+ last_line: this.yylineno + 1,
2619
+ first_column: this.yylloc.last_column,
2620
+ last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length
2621
+ }, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(d[0].length), this.matched += d[0], s = this.performAction.call(this, this.yy, this, N, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), s)
2622
+ return s;
2623
+ if (this._backtrack) {
2624
+ for (var p in u)
2625
+ this[p] = u[p];
2626
+ return !1;
2627
+ }
2628
+ return !1;
2629
+ }, "test_match"),
2630
+ // return next match in input
2631
+ next: /* @__PURE__ */ S(function() {
2632
+ if (this.done)
2633
+ return this.EOF;
2634
+ this._input || (this.done = !0);
2635
+ var d, N, s, h;
2636
+ this._more || (this.yytext = "", this.match = "");
2637
+ for (var u = this._currentRules(), p = 0; p < u.length; p++)
2638
+ if (s = this._input.match(this.rules[u[p]]), s && (!N || s[0].length > N[0].length)) {
2639
+ if (N = s, h = p, this.options.backtrack_lexer) {
2640
+ if (d = this.test_match(s, u[p]), d !== !1)
2641
+ return d;
2642
+ if (this._backtrack) {
2643
+ N = !1;
2644
+ continue;
2645
+ } else
2646
+ return !1;
2647
+ } else if (!this.options.flex)
2648
+ break;
2649
+ }
2650
+ return N ? (d = this.test_match(N, u[h]), d !== !1 ? d : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
2651
+ ` + this.showPosition(), {
2652
+ text: "",
2653
+ token: null,
2654
+ line: this.yylineno
2655
+ });
2656
+ }, "next"),
2657
+ // return next match that has a token
2658
+ lex: /* @__PURE__ */ S(function() {
2659
+ var N = this.next();
2660
+ return N || this.lex();
2661
+ }, "lex"),
2662
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
2663
+ begin: /* @__PURE__ */ S(function(N) {
2664
+ this.conditionStack.push(N);
2665
+ }, "begin"),
2666
+ // pop the previously active lexer condition state off the condition stack
2667
+ popState: /* @__PURE__ */ S(function() {
2668
+ var N = this.conditionStack.length - 1;
2669
+ return N > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2670
+ }, "popState"),
2671
+ // produce the lexer rule set which is active for the currently active lexer condition state
2672
+ _currentRules: /* @__PURE__ */ S(function() {
2673
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2674
+ }, "_currentRules"),
2675
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
2676
+ topState: /* @__PURE__ */ S(function(N) {
2677
+ return N = this.conditionStack.length - 1 - Math.abs(N || 0), N >= 0 ? this.conditionStack[N] : "INITIAL";
2678
+ }, "topState"),
2679
+ // alias for begin(condition)
2680
+ pushState: /* @__PURE__ */ S(function(N) {
2681
+ this.begin(N);
2682
+ }, "pushState"),
2683
+ // return the number of states currently on the stack
2684
+ stateStackSize: /* @__PURE__ */ S(function() {
2685
+ return this.conditionStack.length;
2686
+ }, "stateStackSize"),
2687
+ options: { "case-insensitive": !0 },
2688
+ performAction: /* @__PURE__ */ S(function(N, s, h, u) {
2689
+ switch (h) {
2690
+ case 0:
2691
+ return N.getLogger().trace("Found comment", s.yytext), 6;
2692
+ case 1:
2693
+ return 8;
2694
+ case 2:
2695
+ this.begin("CLASS");
2696
+ break;
2697
+ case 3:
2698
+ return this.popState(), 16;
2699
+ case 4:
2700
+ this.popState();
2701
+ break;
2702
+ case 5:
2703
+ N.getLogger().trace("Begin icon"), this.begin("ICON");
2704
+ break;
2705
+ case 6:
2706
+ return N.getLogger().trace("SPACELINE"), 6;
2707
+ case 7:
2708
+ return 7;
2709
+ case 8:
2710
+ return 15;
2711
+ case 9:
2712
+ N.getLogger().trace("end icon"), this.popState();
2713
+ break;
2714
+ case 10:
2715
+ return N.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
2716
+ case 11:
2717
+ return N.getLogger().trace("Cloud"), this.begin("NODE"), 19;
2718
+ case 12:
2719
+ return N.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
2720
+ case 13:
2721
+ return N.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
2722
+ case 14:
2723
+ return this.begin("NODE"), 19;
2724
+ case 15:
2725
+ return this.begin("NODE"), 19;
2726
+ case 16:
2727
+ return this.begin("NODE"), 19;
2728
+ case 17:
2729
+ return this.begin("NODE"), 19;
2730
+ case 18:
2731
+ return 13;
2732
+ case 19:
2733
+ return 22;
2734
+ case 20:
2735
+ return 11;
2736
+ case 21:
2737
+ this.begin("NSTR2");
2738
+ break;
2739
+ case 22:
2740
+ return "NODE_DESCR";
2741
+ case 23:
2742
+ this.popState();
2743
+ break;
2744
+ case 24:
2745
+ N.getLogger().trace("Starting NSTR"), this.begin("NSTR");
2746
+ break;
2747
+ case 25:
2748
+ return N.getLogger().trace("description:", s.yytext), "NODE_DESCR";
2749
+ case 26:
2750
+ this.popState();
2751
+ break;
2752
+ case 27:
2753
+ return this.popState(), N.getLogger().trace("node end ))"), "NODE_DEND";
2754
+ case 28:
2755
+ return this.popState(), N.getLogger().trace("node end )"), "NODE_DEND";
2756
+ case 29:
2757
+ return this.popState(), N.getLogger().trace("node end ...", s.yytext), "NODE_DEND";
2758
+ case 30:
2759
+ return this.popState(), N.getLogger().trace("node end (("), "NODE_DEND";
2760
+ case 31:
2761
+ return this.popState(), N.getLogger().trace("node end (-"), "NODE_DEND";
2762
+ case 32:
2763
+ return this.popState(), N.getLogger().trace("node end (-"), "NODE_DEND";
2764
+ case 33:
2765
+ return this.popState(), N.getLogger().trace("node end (("), "NODE_DEND";
2766
+ case 34:
2767
+ return this.popState(), N.getLogger().trace("node end (("), "NODE_DEND";
2768
+ case 35:
2769
+ return N.getLogger().trace("Long description:", s.yytext), 20;
2770
+ case 36:
2771
+ return N.getLogger().trace("Long description:", s.yytext), 20;
2772
+ }
2773
+ }, "anonymous"),
2774
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
2775
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
2776
+ };
2777
+ return O;
2778
+ }();
2779
+ T.lexer = D;
2780
+ function L() {
2781
+ this.yy = {};
2782
+ }
2783
+ return S(L, "Parser"), L.prototype = T, T.Parser = L, new L();
2784
+ }();
2785
+ at.parser = at;
2786
+ var Pt = at, Z = [], vt = 0, ht = {}, Yt = /* @__PURE__ */ S(() => {
2787
+ Z = [], vt = 0, ht = {};
2788
+ }, "clear"), Xt = /* @__PURE__ */ S(function(I) {
2789
+ for (let w = Z.length - 1; w >= 0; w--)
2790
+ if (Z[w].level < I)
2791
+ return Z[w];
2792
+ return null;
2793
+ }, "getParent"), kt = /* @__PURE__ */ S(() => Z.length > 0 ? Z[0] : null, "getMindmap"), Ht = /* @__PURE__ */ S((I, w, f, m) => {
2794
+ var i, o;
2795
+ z.info("addNode", I, w, f, m);
2796
+ const y = ot();
2797
+ let r = ((i = y.mindmap) == null ? void 0 : i.padding) ?? it.mindmap.padding;
2798
+ switch (m) {
2799
+ case W.ROUNDED_RECT:
2800
+ case W.RECT:
2801
+ case W.HEXAGON:
2802
+ r *= 2;
2803
+ }
2804
+ const t = {
2805
+ id: vt++,
2806
+ nodeId: nt(w, y),
2807
+ level: I,
2808
+ descr: nt(f, y),
2809
+ type: m,
2810
+ children: [],
2811
+ width: ((o = y.mindmap) == null ? void 0 : o.maxNodeWidth) ?? it.mindmap.maxNodeWidth,
2812
+ padding: r
2813
+ }, e = Xt(I);
2814
+ if (e)
2815
+ e.children.push(t), Z.push(t);
2816
+ else if (Z.length === 0)
2817
+ Z.push(t);
2818
+ else
2819
+ throw new Error(
2820
+ 'There can be only one root. No parent could be found for ("' + t.descr + '")'
2821
+ );
2822
+ }, "addNode"), W = {
2823
+ DEFAULT: 0,
2824
+ NO_BORDER: 0,
2825
+ ROUNDED_RECT: 1,
2826
+ RECT: 2,
2827
+ CIRCLE: 3,
2828
+ CLOUD: 4,
2829
+ BANG: 5,
2830
+ HEXAGON: 6
2831
+ }, $t = /* @__PURE__ */ S((I, w) => {
2832
+ switch (z.debug("In get type", I, w), I) {
2833
+ case "[":
2834
+ return W.RECT;
2835
+ case "(":
2836
+ return w === ")" ? W.ROUNDED_RECT : W.CLOUD;
2837
+ case "((":
2838
+ return W.CIRCLE;
2839
+ case ")":
2840
+ return W.CLOUD;
2841
+ case "))":
2842
+ return W.BANG;
2843
+ case "{{":
2844
+ return W.HEXAGON;
2845
+ default:
2846
+ return W.DEFAULT;
2847
+ }
2848
+ }, "getType"), Wt = /* @__PURE__ */ S((I, w) => {
2849
+ ht[I] = w;
2850
+ }, "setElementForId"), Bt = /* @__PURE__ */ S((I) => {
2851
+ if (!I)
2852
+ return;
2853
+ const w = ot(), f = Z[Z.length - 1];
2854
+ I.icon && (f.icon = nt(I.icon, w)), I.class && (f.class = nt(I.class, w));
2855
+ }, "decorateNode"), Vt = /* @__PURE__ */ S((I) => {
2856
+ switch (I) {
2857
+ case W.DEFAULT:
2858
+ return "no-border";
2859
+ case W.RECT:
2860
+ return "rect";
2861
+ case W.ROUNDED_RECT:
2862
+ return "rounded-rect";
2863
+ case W.CIRCLE:
2864
+ return "circle";
2865
+ case W.CLOUD:
2866
+ return "cloud";
2867
+ case W.BANG:
2868
+ return "bang";
2869
+ case W.HEXAGON:
2870
+ return "hexgon";
2871
+ default:
2872
+ return "no-border";
2873
+ }
2874
+ }, "type2Str"), Zt = /* @__PURE__ */ S(() => z, "getLogger"), Qt = /* @__PURE__ */ S((I) => ht[I], "getElementById"), jt = {
2875
+ clear: Yt,
2876
+ addNode: Ht,
2877
+ getMindmap: kt,
2878
+ nodeType: W,
2879
+ getType: $t,
2880
+ setElementForId: Wt,
2881
+ decorateNode: Bt,
2882
+ type2Str: Vt,
2883
+ getLogger: Zt,
2884
+ getElementById: Qt
2885
+ }, zt = jt, Kt = 12, qt = /* @__PURE__ */ S(function(I, w, f, m) {
2886
+ w.append("path").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr(
2887
+ "d",
2888
+ `M0 ${f.height - 5} v${-f.height + 2 * 5} q0,-5 5,-5 h${f.width - 2 * 5} q5,0 5,5 v${f.height - 5} H0 Z`
2889
+ ), w.append("line").attr("class", "node-line-" + m).attr("x1", 0).attr("y1", f.height).attr("x2", f.width).attr("y2", f.height);
2890
+ }, "defaultBkg"), Jt = /* @__PURE__ */ S(function(I, w, f) {
2891
+ w.append("rect").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr("height", f.height).attr("width", f.width);
2892
+ }, "rectBkg"), te = /* @__PURE__ */ S(function(I, w, f) {
2893
+ const m = f.width, y = f.height, r = 0.15 * m, t = 0.25 * m, e = 0.35 * m, i = 0.2 * m;
2894
+ w.append("path").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr(
2895
+ "d",
2896
+ `M0 0 a${r},${r} 0 0,1 ${m * 0.25},${-1 * m * 0.1}
2897
+ a${e},${e} 1 0,1 ${m * 0.4},${-1 * m * 0.1}
2898
+ a${t},${t} 1 0,1 ${m * 0.35},${1 * m * 0.2}
2899
+
2900
+ a${r},${r} 1 0,1 ${m * 0.15},${1 * y * 0.35}
2901
+ a${i},${i} 1 0,1 ${-1 * m * 0.15},${1 * y * 0.65}
2902
+
2903
+ a${t},${r} 1 0,1 ${-1 * m * 0.25},${m * 0.15}
2904
+ a${e},${e} 1 0,1 ${-1 * m * 0.5},0
2905
+ a${r},${r} 1 0,1 ${-1 * m * 0.25},${-1 * m * 0.15}
2906
+
2907
+ a${r},${r} 1 0,1 ${-1 * m * 0.1},${-1 * y * 0.35}
2908
+ a${i},${i} 1 0,1 ${m * 0.1},${-1 * y * 0.65}
2909
+
2910
+ H0 V0 Z`
2911
+ );
2912
+ }, "cloudBkg"), ee = /* @__PURE__ */ S(function(I, w, f) {
2913
+ const m = f.width, y = f.height, r = 0.15 * m;
2914
+ w.append("path").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr(
2915
+ "d",
2916
+ `M0 0 a${r},${r} 1 0,0 ${m * 0.25},${-1 * y * 0.1}
2917
+ a${r},${r} 1 0,0 ${m * 0.25},0
2918
+ a${r},${r} 1 0,0 ${m * 0.25},0
2919
+ a${r},${r} 1 0,0 ${m * 0.25},${1 * y * 0.1}
2920
+
2921
+ a${r},${r} 1 0,0 ${m * 0.15},${1 * y * 0.33}
2922
+ a${r * 0.8},${r * 0.8} 1 0,0 0,${1 * y * 0.34}
2923
+ a${r},${r} 1 0,0 ${-1 * m * 0.15},${1 * y * 0.33}
2924
+
2925
+ a${r},${r} 1 0,0 ${-1 * m * 0.25},${y * 0.15}
2926
+ a${r},${r} 1 0,0 ${-1 * m * 0.25},0
2927
+ a${r},${r} 1 0,0 ${-1 * m * 0.25},0
2928
+ a${r},${r} 1 0,0 ${-1 * m * 0.25},${-1 * y * 0.15}
2929
+
2930
+ a${r},${r} 1 0,0 ${-1 * m * 0.1},${-1 * y * 0.33}
2931
+ a${r * 0.8},${r * 0.8} 1 0,0 0,${-1 * y * 0.34}
2932
+ a${r},${r} 1 0,0 ${m * 0.1},${-1 * y * 0.33}
2933
+
2934
+ H0 V0 Z`
2935
+ );
2936
+ }, "bangBkg"), re = /* @__PURE__ */ S(function(I, w, f) {
2937
+ w.append("circle").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr("r", f.width / 2);
2938
+ }, "circleBkg");
2939
+ function yt(I, w, f, m, y) {
2940
+ return I.insert("polygon", ":first-child").attr(
2941
+ "points",
2942
+ m.map(function(r) {
2943
+ return r.x + "," + r.y;
2944
+ }).join(" ")
2945
+ ).attr("transform", "translate(" + (y.width - w) / 2 + ", " + f + ")");
2946
+ }
2947
+ S(yt, "insertPolygonShape");
2948
+ var ie = /* @__PURE__ */ S(function(I, w, f) {
2949
+ const m = f.height, r = m / 4, t = f.width - f.padding + 2 * r, e = [
2950
+ { x: r, y: 0 },
2951
+ { x: t - r, y: 0 },
2952
+ { x: t, y: -m / 2 },
2953
+ { x: t - r, y: -m },
2954
+ { x: r, y: -m },
2955
+ { x: 0, y: -m / 2 }
2956
+ ];
2957
+ yt(w, t, m, e, f);
2958
+ }, "hexagonBkg"), ne = /* @__PURE__ */ S(function(I, w, f) {
2959
+ w.append("rect").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr("height", f.height).attr("rx", f.padding).attr("ry", f.padding).attr("width", f.width);
2960
+ }, "roundedRectBkg"), se = /* @__PURE__ */ S(async function(I, w, f, m, y) {
2961
+ const r = y.htmlLabels, t = m % (Kt - 1), e = w.append("g");
2962
+ f.section = t;
2963
+ let i = "section-" + t;
2964
+ t < 0 && (i += " section-root"), e.attr("class", (f.class ? f.class + " " : "") + "mindmap-node " + i);
2965
+ const o = e.append("g"), g = e.append("g"), a = f.descr.replace(/(<br\/*>)/g, `
2966
+ `);
2967
+ await Rt(
2968
+ g,
2969
+ a,
2970
+ {
2971
+ useHtmlLabels: r,
2972
+ width: f.width,
2973
+ classes: "mindmap-node-label"
2974
+ },
2975
+ y
2976
+ ), r || g.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle");
2977
+ const v = g.node().getBBox(), [n] = xt(y.fontSize);
2978
+ if (f.height = v.height + n * 1.1 * 0.5 + f.padding, f.width = v.width + 2 * f.padding, f.icon)
2979
+ if (f.type === I.nodeType.CIRCLE)
2980
+ f.height += 50, f.width += 50, e.append("foreignObject").attr("height", "50px").attr("width", f.width).attr("style", "text-align: center;").append("div").attr("class", "icon-container").append("i").attr("class", "node-icon-" + t + " " + f.icon), g.attr(
2981
+ "transform",
2982
+ "translate(" + f.width / 2 + ", " + (f.height / 2 - 1.5 * f.padding) + ")"
2983
+ );
2984
+ else {
2985
+ f.width += 50;
2986
+ const c = f.height;
2987
+ f.height = Math.max(c, 60);
2988
+ const l = Math.abs(f.height - c);
2989
+ e.append("foreignObject").attr("width", "60px").attr("height", f.height).attr("style", "text-align: center;margin-top:" + l / 2 + "px;").append("div").attr("class", "icon-container").append("i").attr("class", "node-icon-" + t + " " + f.icon), g.attr(
2990
+ "transform",
2991
+ "translate(" + (25 + f.width / 2) + ", " + (l / 2 + f.padding / 2) + ")"
2992
+ );
2993
+ }
2994
+ else if (r) {
2995
+ const c = (f.width - v.width) / 2, l = (f.height - v.height) / 2;
2996
+ g.attr("transform", "translate(" + c + ", " + l + ")");
2997
+ } else {
2998
+ const c = f.width / 2, l = f.padding / 2;
2999
+ g.attr("transform", "translate(" + c + ", " + l + ")");
3000
+ }
3001
+ switch (f.type) {
3002
+ case I.nodeType.DEFAULT:
3003
+ qt(I, o, f, t);
3004
+ break;
3005
+ case I.nodeType.ROUNDED_RECT:
3006
+ ne(I, o, f, t);
3007
+ break;
3008
+ case I.nodeType.RECT:
3009
+ Jt(I, o, f, t);
3010
+ break;
3011
+ case I.nodeType.CIRCLE:
3012
+ o.attr("transform", "translate(" + f.width / 2 + ", " + +f.height / 2 + ")"), re(I, o, f, t);
3013
+ break;
3014
+ case I.nodeType.CLOUD:
3015
+ te(I, o, f, t);
3016
+ break;
3017
+ case I.nodeType.BANG:
3018
+ ee(I, o, f, t);
3019
+ break;
3020
+ case I.nodeType.HEXAGON:
3021
+ ie(I, o, f, t);
3022
+ break;
3023
+ }
3024
+ return I.setElementForId(f.id, e), f.height;
3025
+ }, "drawNode"), ae = /* @__PURE__ */ S(function(I, w) {
3026
+ const f = I.getElementById(w.id), m = w.x || 0, y = w.y || 0;
3027
+ f.attr("transform", "translate(" + m + "," + y + ")");
3028
+ }, "positionNode");
3029
+ dt.use(Ut);
3030
+ async function lt(I, w, f, m, y) {
3031
+ await se(I, w, f, m, y), f.children && await Promise.all(
3032
+ f.children.map(
3033
+ (r, t) => lt(I, w, r, m < 0 ? t : m, y)
3034
+ )
3035
+ );
3036
+ }
3037
+ S(lt, "drawNodes");
3038
+ function Et(I, w) {
3039
+ w.edges().map((f, m) => {
3040
+ const y = f.data();
3041
+ if (f[0]._private.bodyBounds) {
3042
+ const r = f[0]._private.rscratch;
3043
+ z.trace("Edge: ", m, y), I.insert("path").attr(
3044
+ "d",
3045
+ `M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `
3046
+ ).attr("class", "edge section-edge-" + y.section + " edge-depth-" + y.depth);
3047
+ }
3048
+ });
3049
+ }
3050
+ S(Et, "drawEdges");
3051
+ function ct(I, w, f, m) {
3052
+ w.add({
3053
+ group: "nodes",
3054
+ data: {
3055
+ id: I.id.toString(),
3056
+ labelText: I.descr,
3057
+ height: I.height,
3058
+ width: I.width,
3059
+ level: m,
3060
+ nodeId: I.id,
3061
+ padding: I.padding,
3062
+ type: I.type
3063
+ },
3064
+ position: {
3065
+ x: I.x,
3066
+ y: I.y
3067
+ }
3068
+ }), I.children && I.children.forEach((y) => {
3069
+ ct(y, w, f, m + 1), w.add({
3070
+ group: "edges",
3071
+ data: {
3072
+ id: `${I.id}_${y.id}`,
3073
+ source: I.id,
3074
+ target: y.id,
3075
+ depth: m,
3076
+ section: y.section
3077
+ }
3078
+ });
3079
+ });
3080
+ }
3081
+ S(ct, "addNodes");
3082
+ function Lt(I, w) {
3083
+ return new Promise((f) => {
3084
+ const m = Ct("body").append("div").attr("id", "cy").attr("style", "display:none"), y = dt({
3085
+ container: document.getElementById("cy"),
3086
+ // container to render in
3087
+ style: [
3088
+ {
3089
+ selector: "edge",
3090
+ style: {
3091
+ "curve-style": "bezier"
3092
+ }
3093
+ }
3094
+ ]
3095
+ });
3096
+ m.remove(), ct(I, y, w, 0), y.nodes().forEach(function(r) {
3097
+ r.layoutDimensions = () => {
3098
+ const t = r.data();
3099
+ return { w: t.width, h: t.height };
3100
+ };
3101
+ }), y.layout({
3102
+ name: "cose-bilkent",
3103
+ // @ts-ignore Types for cose-bilkent are not correct?
3104
+ quality: "proof",
3105
+ styleEnabled: !1,
3106
+ animate: !1
3107
+ }).run(), y.ready((r) => {
3108
+ z.info("Ready", r), f(y);
3109
+ });
3110
+ });
3111
+ }
3112
+ S(Lt, "layoutMindmap");
3113
+ function Tt(I, w) {
3114
+ w.nodes().map((f, m) => {
3115
+ const y = f.data();
3116
+ y.x = f.position().x, y.y = f.position().y, ae(I, y);
3117
+ const r = I.getElementById(y.nodeId);
3118
+ z.info("Id:", m, "Position: (", f.position().x, ", ", f.position().y, ")", y), r.attr(
3119
+ "transform",
3120
+ `translate(${f.position().x - y.width / 2}, ${f.position().y - y.height / 2})`
3121
+ ), r.attr("attr", `apa-${m})`);
3122
+ });
3123
+ }
3124
+ S(Tt, "positionNodes");
3125
+ var oe = /* @__PURE__ */ S(async (I, w, f, m) => {
3126
+ var a, v;
3127
+ z.debug(`Rendering mindmap diagram
3128
+ ` + I);
3129
+ const y = m.db, r = y.getMindmap();
3130
+ if (!r)
3131
+ return;
3132
+ const t = ot();
3133
+ t.htmlLabels = !1;
3134
+ const e = Dt(w), i = e.append("g");
3135
+ i.attr("class", "mindmap-edges");
3136
+ const o = e.append("g");
3137
+ o.attr("class", "mindmap-nodes"), await lt(y, o, r, -1, t);
3138
+ const g = await Lt(r, t);
3139
+ Et(i, g), Tt(y, g), mt(
3140
+ void 0,
3141
+ e,
3142
+ ((a = t.mindmap) == null ? void 0 : a.padding) ?? it.mindmap.padding,
3143
+ ((v = t.mindmap) == null ? void 0 : v.useMaxWidth) ?? it.mindmap.useMaxWidth
3144
+ );
3145
+ }, "draw"), he = {
3146
+ draw: oe
3147
+ }, le = /* @__PURE__ */ S((I) => {
3148
+ let w = "";
3149
+ for (let f = 0; f < I.THEME_COLOR_LIMIT; f++)
3150
+ I["lineColor" + f] = I["lineColor" + f] || I["cScaleInv" + f], Ot(I["lineColor" + f]) ? I["lineColor" + f] = At(I["lineColor" + f], 20) : I["lineColor" + f] = It(I["lineColor" + f], 20);
3151
+ for (let f = 0; f < I.THEME_COLOR_LIMIT; f++) {
3152
+ const m = "" + (17 - 3 * f);
3153
+ w += `
3154
+ .section-${f - 1} rect, .section-${f - 1} path, .section-${f - 1} circle, .section-${f - 1} polygon, .section-${f - 1} path {
3155
+ fill: ${I["cScale" + f]};
3156
+ }
3157
+ .section-${f - 1} text {
3158
+ fill: ${I["cScaleLabel" + f]};
3159
+ }
3160
+ .node-icon-${f - 1} {
3161
+ font-size: 40px;
3162
+ color: ${I["cScaleLabel" + f]};
3163
+ }
3164
+ .section-edge-${f - 1}{
3165
+ stroke: ${I["cScale" + f]};
3166
+ }
3167
+ .edge-depth-${f - 1}{
3168
+ stroke-width: ${m};
3169
+ }
3170
+ .section-${f - 1} line {
3171
+ stroke: ${I["cScaleInv" + f]} ;
3172
+ stroke-width: 3;
3173
+ }
3174
+
3175
+ .disabled, .disabled circle, .disabled text {
3176
+ fill: lightgray;
3177
+ }
3178
+ .disabled text {
3179
+ fill: #efefef;
3180
+ }
3181
+ `;
3182
+ }
3183
+ return w;
3184
+ }, "genSections"), ce = /* @__PURE__ */ S((I) => `
3185
+ .edge {
3186
+ stroke-width: 3;
3187
+ }
3188
+ ${le(I)}
3189
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
3190
+ fill: ${I.git0};
3191
+ }
3192
+ .section-root text {
3193
+ fill: ${I.gitBranchLabel0};
3194
+ }
3195
+ .icon-container {
3196
+ height:100%;
3197
+ display: flex;
3198
+ justify-content: center;
3199
+ align-items: center;
3200
+ }
3201
+ .edge {
3202
+ fill: none;
3203
+ }
3204
+ .mindmap-node-label {
3205
+ dy: 1em;
3206
+ alignment-baseline: middle;
3207
+ text-anchor: middle;
3208
+ dominant-baseline: middle;
3209
+ text-align: center;
3210
+ }
3211
+ `, "getStyles"), ge = ce, pe = {
3212
+ db: zt,
3213
+ renderer: he,
3214
+ parser: Pt,
3215
+ styles: ge
3216
+ };
3217
+ export {
3218
+ pe as diagram
3219
+ };