@elmethis/core 1.0.0-alpha.146 → 1.0.0-alpha.148

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 (859) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +6 -0
  2. package/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/dist/_virtual/advancedFormat.mjs +7 -0
  4. package/dist/_virtual/advancedFormat2.mjs +4 -0
  5. package/dist/_virtual/cancellation.mjs +5 -0
  6. package/dist/_virtual/cancellation2.mjs +4 -0
  7. package/dist/_virtual/constants.mjs +4 -0
  8. package/dist/_virtual/cose-base.mjs +4 -0
  9. package/dist/_virtual/cose-base2.mjs +4 -0
  10. package/dist/_virtual/customParseFormat.mjs +7 -0
  11. package/dist/_virtual/customParseFormat2.mjs +4 -0
  12. package/dist/_virtual/cytoscape-cose-bilkent.mjs +7 -0
  13. package/dist/_virtual/cytoscape-cose-bilkent2.mjs +4 -0
  14. package/dist/_virtual/cytoscape-fcose.mjs +7 -0
  15. package/dist/_virtual/cytoscape-fcose2.mjs +4 -0
  16. package/dist/_virtual/dayjs.min.mjs +7 -0
  17. package/dist/_virtual/dayjs.min2.mjs +4 -0
  18. package/dist/_virtual/events.mjs +5 -0
  19. package/dist/_virtual/events2.mjs +4 -0
  20. package/dist/_virtual/index.mjs +5 -0
  21. package/dist/_virtual/index2.mjs +4 -0
  22. package/dist/_virtual/is.mjs +4 -0
  23. package/dist/_virtual/isoWeek.mjs +7 -0
  24. package/dist/_virtual/isoWeek2.mjs +4 -0
  25. package/dist/_virtual/layout-base.mjs +4 -0
  26. package/dist/_virtual/layout-base2.mjs +4 -0
  27. package/dist/_virtual/ral.mjs +4 -0
  28. package/dist/components/badge/ElmBadge.vue.mjs +10 -0
  29. package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
  30. package/dist/components/badge/ElmBadge.vue3.mjs +14 -0
  31. package/dist/components/badge/ElmTag.vue.mjs +10 -0
  32. package/dist/components/badge/ElmTag.vue2.mjs +39 -0
  33. package/dist/components/badge/ElmTag.vue3.mjs +14 -0
  34. package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
  35. package/dist/components/code/ElmCodeBlock.vue2.mjs +86 -0
  36. package/dist/components/code/ElmCodeBlock.vue3.mjs +18 -0
  37. package/dist/components/code/ElmKatex.vue.mjs +10 -0
  38. package/dist/components/code/ElmKatex.vue2.mjs +46 -0
  39. package/dist/components/code/ElmKatex.vue3.mjs +8 -0
  40. package/dist/components/code/ElmMermaid.vue.mjs +6 -0
  41. package/dist/components/code/ElmMermaid.vue2.mjs +56 -0
  42. package/dist/components/code/ElmShikiHighlighter.vue.mjs +11 -0
  43. package/dist/components/code/ElmShikiHighlighter.vue2.mjs +44 -0
  44. package/dist/components/code/ElmShikiHighlighter.vue3.mjs +8 -0
  45. package/dist/components/containments/ElmColumn.vue.mjs +10 -0
  46. package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
  47. package/dist/components/containments/ElmColumn.vue3.mjs +8 -0
  48. package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
  49. package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
  50. package/dist/components/containments/ElmColumnList.vue3.mjs +6 -0
  51. package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
  52. package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
  53. package/dist/components/containments/ElmDesktopWindow.vue3.mjs +14 -0
  54. package/dist/components/containments/ElmModal.vue.mjs +10 -0
  55. package/dist/components/containments/ElmModal.vue2.mjs +44 -0
  56. package/dist/components/containments/ElmModal.vue3.mjs +11 -0
  57. package/dist/components/containments/ElmParallax.vue.mjs +10 -0
  58. package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
  59. package/dist/components/containments/ElmParallax.vue3.mjs +8 -0
  60. package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
  61. package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
  62. package/dist/components/containments/ElmSnackbar.vue3.mjs +14 -0
  63. package/dist/components/containments/ElmSnackbarContainer.vue.mjs +10 -0
  64. package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
  65. package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +7 -0
  66. package/dist/components/containments/ElmToggle.vue.mjs +10 -0
  67. package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
  68. package/dist/components/containments/ElmToggle.vue3.mjs +17 -0
  69. package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
  70. package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
  71. package/dist/components/containments/ElmTooltip.vue3.mjs +8 -0
  72. package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
  73. package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
  74. package/dist/components/data/ElmMultiProgress.vue3.mjs +11 -0
  75. package/dist/components/data/ElmProgress.vue.mjs +10 -0
  76. package/dist/components/data/ElmProgress.vue2.mjs +53 -0
  77. package/dist/components/data/ElmProgress.vue3.mjs +20 -0
  78. package/dist/components/data/ElmStatusMessage.vue.mjs +10 -0
  79. package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
  80. package/dist/components/data/ElmStatusMessage.vue3.mjs +11 -0
  81. package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
  82. package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
  83. package/dist/components/fallback/ElmBlockFallback.vue3.mjs +6 -0
  84. package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
  85. package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
  86. package/dist/components/fallback/ElmRectangleWave.vue3.mjs +9 -0
  87. package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
  88. package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
  89. package/dist/components/fallback/ElmSpinner.vue3.mjs +12 -0
  90. package/dist/components/form/ElmButton.vue.mjs +10 -0
  91. package/dist/components/form/ElmButton.vue2.mjs +57 -0
  92. package/dist/components/form/ElmButton.vue3.mjs +20 -0
  93. package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
  94. package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
  95. package/dist/components/form/ElmCheckbox.vue3.mjs +22 -0
  96. package/dist/components/form/ElmSwitch.vue.mjs +10 -0
  97. package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
  98. package/dist/components/form/ElmSwitch.vue3.mjs +16 -0
  99. package/dist/components/form/ElmTextField.vue.mjs +10 -0
  100. package/dist/components/form/ElmTextField.vue2.mjs +124 -0
  101. package/dist/components/form/ElmTextField.vue3.mjs +34 -0
  102. package/dist/components/form/ElmTotp.vue.mjs +10 -0
  103. package/dist/components/form/ElmTotp.vue2.mjs +102 -0
  104. package/dist/components/form/ElmTotp.vue3.mjs +22 -0
  105. package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
  106. package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +54 -0
  107. package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +11 -0
  108. package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
  109. package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
  110. package/dist/components/headings/ElmHeading1.vue3.mjs +8 -0
  111. package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
  112. package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
  113. package/dist/components/headings/ElmHeading2.vue3.mjs +11 -0
  114. package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
  115. package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
  116. package/dist/components/headings/ElmHeading3.vue3.mjs +8 -0
  117. package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
  118. package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
  119. package/dist/components/headings/ElmHeading4.vue3.mjs +8 -0
  120. package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
  121. package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
  122. package/dist/components/headings/ElmHeading5.vue3.mjs +8 -0
  123. package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
  124. package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
  125. package/dist/components/headings/ElmHeading6.vue3.mjs +8 -0
  126. package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
  127. package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
  128. package/dist/components/icon/ElmArrowIcon.vue3.mjs +17 -0
  129. package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
  130. package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
  131. package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +15 -0
  132. package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
  133. package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
  134. package/dist/components/icon/ElmCubeIcon.vue3.mjs +12 -0
  135. package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
  136. package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
  137. package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +14 -0
  138. package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
  139. package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
  140. package/dist/components/icon/ElmLanguageIcon.vue3.mjs +11 -0
  141. package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
  142. package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
  143. package/dist/components/icon/ElmLoginIcon.vue3.mjs +8 -0
  144. package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
  145. package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
  146. package/dist/components/icon/ElmToggleTheme.vue3.mjs +8 -0
  147. package/dist/{Bash-Dgvf3lDU.js → components/icon/languages/Bash.vue.mjs} +16 -15
  148. package/dist/components/icon/languages/Bash.vue2.mjs +8 -0
  149. package/dist/components/icon/languages/Css.vue.mjs +19 -0
  150. package/dist/components/icon/languages/Rust.vue.mjs +17 -0
  151. package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
  152. package/dist/components/inline/ElmInlineLink.vue2.mjs +53 -0
  153. package/dist/components/inline/ElmInlineLink.vue3.mjs +11 -0
  154. package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
  155. package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
  156. package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
  157. package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
  158. package/dist/components/inline/ElmInlineText.vue3.mjs +11 -0
  159. package/dist/components/media/ElmFile.vue.mjs +10 -0
  160. package/dist/components/media/ElmFile.vue2.mjs +77 -0
  161. package/dist/components/media/ElmFile.vue3.mjs +14 -0
  162. package/dist/components/media/ElmImage.vue.mjs +10 -0
  163. package/dist/components/media/ElmImage.vue2.mjs +91 -0
  164. package/dist/components/media/ElmImage.vue3.mjs +18 -0
  165. package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
  166. package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
  167. package/dist/components/navigation/ElmBookmark.vue3.mjs +32 -0
  168. package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
  169. package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
  170. package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +18 -0
  171. package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
  172. package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
  173. package/dist/components/navigation/ElmPagetop.vue3.mjs +18 -0
  174. package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
  175. package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
  176. package/dist/components/navigation/ElmTableOfContents.vue3.mjs +14 -0
  177. package/dist/components/others/ElmColorSample.vue.mjs +10 -0
  178. package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
  179. package/dist/components/others/ElmColorSample.vue3.mjs +9 -0
  180. package/dist/components/others/ElmColorTable.vue.mjs +10 -0
  181. package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
  182. package/dist/components/others/ElmColorTable.vue3.mjs +10 -0
  183. package/dist/components/renderer/ElmJsonRenderer.vue.mjs +96 -0
  184. package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +4 -0
  185. package/dist/components/renderer/ElmJsonRendererAsync.vue.mjs +24 -0
  186. package/dist/components/renderer/ElmJsonRendererAsync.vue2.mjs +4 -0
  187. package/dist/components/table/ElmTable.vue.mjs +6 -0
  188. package/dist/components/table/ElmTable.vue2.mjs +22 -0
  189. package/dist/components/table/ElmTableBody.vue.mjs +15 -0
  190. package/dist/components/table/ElmTableBody.vue3.mjs +5 -0
  191. package/dist/components/table/ElmTableCell.vue.mjs +6 -0
  192. package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
  193. package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
  194. package/dist/components/table/ElmTableHeader.vue3.mjs +5 -0
  195. package/dist/components/table/ElmTableRow.vue.mjs +14 -0
  196. package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
  197. package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
  198. package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
  199. package/dist/components/typography/ElmBlockQuote.vue3.mjs +8 -0
  200. package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
  201. package/dist/components/typography/ElmBulletedList.vue3.mjs +5 -0
  202. package/dist/components/typography/ElmCallout.vue.mjs +10 -0
  203. package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
  204. package/dist/components/typography/ElmCallout.vue3.mjs +14 -0
  205. package/dist/components/typography/ElmDivider.vue.mjs +10 -0
  206. package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
  207. package/dist/components/typography/ElmDivider.vue3.mjs +8 -0
  208. package/dist/components/typography/ElmListItem.vue.mjs +10 -0
  209. package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
  210. package/dist/components/typography/ElmListItem.vue3.mjs +8 -0
  211. package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
  212. package/dist/components/typography/ElmNumberedList.vue3.mjs +5 -0
  213. package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
  214. package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
  215. package/dist/components/typography/ElmParagraph.vue3.mjs +8 -0
  216. package/dist/hooks/useElmethisTheme.mjs +43 -0
  217. package/dist/hooks/useTyping.mjs +37 -0
  218. package/dist/index.mjs +150 -0
  219. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.mjs +20 -0
  220. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.mjs +76 -0
  221. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.mjs +57 -0
  222. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.mjs +220 -0
  223. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.mjs +64 -0
  224. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +101 -0
  225. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +45 -0
  226. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +693 -0
  227. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +39 -0
  228. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.mjs +14 -0
  229. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.mjs +10 -0
  230. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +15 -0
  231. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.mjs +15 -0
  232. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +28 -0
  233. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
  234. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +54 -0
  235. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +17 -0
  236. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +27 -0
  237. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +24 -0
  238. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +120 -0
  239. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +33 -0
  240. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +10 -0
  241. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +29 -0
  242. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +41 -0
  243. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-4AB2E3PP.mjs +6 -0
  244. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2NYFTIL2.mjs +34 -0
  245. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2O5ZK7RR.mjs +34 -0
  246. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7PKI6E2E.mjs +541 -0
  247. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C4OEIS7N.mjs +46 -0
  248. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EXZZNE6F.mjs +34 -0
  249. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ROXG7S4E.mjs +42 -0
  250. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-V4Q32G6S.mjs +34 -0
  251. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-O2Q2CXLX.mjs +6 -0
  252. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-4N47QTOZ.mjs +6 -0
  253. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-KVYON367.mjs +6 -0
  254. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-R6RNRRYF.mjs +6 -0
  255. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-MK3ICKWK.mjs +6 -0
  256. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +115 -0
  257. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +531 -0
  258. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +393 -0
  259. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +42 -0
  260. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +12 -0
  261. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.mjs +4 -0
  262. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +42 -0
  263. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +87 -0
  264. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +161 -0
  265. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +60 -0
  266. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +416 -0
  267. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +47 -0
  268. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +41 -0
  269. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +24 -0
  270. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +424 -0
  271. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +22 -0
  272. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +48 -0
  273. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +387 -0
  274. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +40 -0
  275. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +83 -0
  276. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +181 -0
  277. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +25 -0
  278. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +69 -0
  279. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +270 -0
  280. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +59 -0
  281. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +128 -0
  282. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +38 -0
  283. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +323 -0
  284. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +434 -0
  285. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +251 -0
  286. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +167 -0
  287. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +19 -0
  288. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +720 -0
  289. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +11 -0
  290. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +552 -0
  291. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +214 -0
  292. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +20 -0
  293. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.mjs +115 -0
  294. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +88 -0
  295. package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.mjs +1090 -0
  296. package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +2555 -0
  297. package/dist/node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.31.1/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +374 -0
  298. package/dist/node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.31.1/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +1278 -0
  299. package/dist/node_modules/.pnpm/cytoscape@3.31.1/node_modules/cytoscape/dist/cytoscape.esm.mjs +29469 -0
  300. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/max.mjs +21 -0
  301. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/min.mjs +21 -0
  302. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/sum.mjs +21 -0
  303. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.mjs +6 -0
  304. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.mjs +10 -0
  305. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.mjs +47 -0
  306. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.mjs +6 -0
  307. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.mjs +21 -0
  308. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.mjs +21 -0
  309. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.mjs +6 -0
  310. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.mjs +11 -0
  311. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.mjs +51 -0
  312. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.mjs +94 -0
  313. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.mjs +6 -0
  314. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.mjs +338 -0
  315. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.mjs +13 -0
  316. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.mjs +95 -0
  317. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.mjs +6 -0
  318. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.mjs +70 -0
  319. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.mjs +6 -0
  320. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.mjs +20 -0
  321. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.mjs +7 -0
  322. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.mjs +15 -0
  323. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.mjs +15 -0
  324. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.mjs +10 -0
  325. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.mjs +12 -0
  326. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.mjs +10 -0
  327. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.mjs +37 -0
  328. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.mjs +21 -0
  329. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.mjs +21 -0
  330. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.mjs +6 -0
  331. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.mjs +82 -0
  332. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.mjs +7 -0
  333. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.mjs +7 -0
  334. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.mjs +8 -0
  335. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.mjs +13 -0
  336. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.mjs +29 -0
  337. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.mjs +4 -0
  338. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.mjs +9 -0
  339. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.mjs +18 -0
  340. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs +8 -0
  341. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.mjs +15 -0
  342. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.mjs +20 -0
  343. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs +20 -0
  344. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.mjs +8 -0
  345. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs +43 -0
  346. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.mjs +28 -0
  347. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.mjs +59 -0
  348. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.mjs +18 -0
  349. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.mjs +16 -0
  350. package/dist/node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.mjs +73 -0
  351. package/dist/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.mjs +88 -0
  352. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/align.mjs +22 -0
  353. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/constant.mjs +8 -0
  354. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankey.mjs +326 -0
  355. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +13 -0
  356. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +5 -0
  357. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.mjs +8 -0
  358. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.mjs +56 -0
  359. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.mjs +8 -0
  360. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.mjs +95 -0
  361. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.mjs +16 -0
  362. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.mjs +61 -0
  363. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.mjs +14 -0
  364. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.mjs +6 -0
  365. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.mjs +38 -0
  366. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +34 -0
  367. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.mjs +54 -0
  368. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.mjs +6 -0
  369. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.mjs +8 -0
  370. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.mjs +20 -0
  371. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.mjs +14 -0
  372. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.mjs +9 -0
  373. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.mjs +12 -0
  374. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs +7 -0
  375. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.mjs +10 -0
  376. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.mjs +46 -0
  377. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.mjs +9 -0
  378. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.mjs +64 -0
  379. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.mjs +14 -0
  380. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.mjs +76 -0
  381. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.mjs +6 -0
  382. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.mjs +28 -0
  383. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.mjs +11 -0
  384. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.mjs +6 -0
  385. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.mjs +31 -0
  386. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.mjs +8 -0
  387. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.mjs +16 -0
  388. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.mjs +20 -0
  389. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.mjs +88 -0
  390. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.mjs +14 -0
  391. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.mjs +10 -0
  392. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.mjs +19 -0
  393. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.mjs +9 -0
  394. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.mjs +18 -0
  395. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.mjs +12 -0
  396. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
  397. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.mjs +64 -0
  398. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.mjs +14 -0
  399. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.mjs +23 -0
  400. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.mjs +9 -0
  401. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.mjs +10 -0
  402. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.mjs +17 -0
  403. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.mjs +24 -0
  404. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
  405. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
  406. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.mjs +8 -0
  407. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.mjs +22 -0
  408. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
  409. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.mjs +28 -0
  410. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.mjs +20 -0
  411. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.mjs +10 -0
  412. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.mjs +11 -0
  413. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.mjs +6 -0
  414. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/array.mjs +4 -0
  415. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.mjs +8 -0
  416. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/link/index.mjs +45 -0
  417. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/point.mjs +10 -0
  418. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.mjs +133 -0
  419. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.mjs +6 -0
  420. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.mjs +8 -0
  421. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs +66 -0
  422. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.mjs +63 -0
  423. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.mjs +50 -0
  424. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.mjs +49 -0
  425. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.mjs +43 -0
  426. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.mjs +73 -0
  427. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.mjs +69 -0
  428. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.mjs +57 -0
  429. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.mjs +83 -0
  430. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +75 -0
  431. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +63 -0
  432. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.mjs +39 -0
  433. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.mjs +25 -0
  434. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.mjs +99 -0
  435. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.mjs +54 -0
  436. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.mjs +59 -0
  437. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.mjs +6 -0
  438. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.mjs +6 -0
  439. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs +41 -0
  440. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.mjs +32 -0
  441. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.mjs +5 -0
  442. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.mjs +19 -0
  443. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.mjs +55 -0
  444. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.mjs +10 -0
  445. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.mjs +25 -0
  446. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.mjs +542 -0
  447. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.mjs +34 -0
  448. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.mjs +16 -0
  449. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.mjs +26 -0
  450. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.mjs +61 -0
  451. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.mjs +23 -0
  452. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.mjs +26 -0
  453. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.mjs +27 -0
  454. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.mjs +15 -0
  455. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.mjs +54 -0
  456. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.mjs +66 -0
  457. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.mjs +45 -0
  458. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.mjs +13 -0
  459. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.mjs +96 -0
  460. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.mjs +21 -0
  461. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs +5 -0
  462. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
  463. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.mjs +39 -0
  464. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.mjs +55 -0
  465. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.mjs +42 -0
  466. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.mjs +18 -0
  467. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.mjs +18 -0
  468. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.mjs +14 -0
  469. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
  470. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.mjs +23 -0
  471. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.mjs +16 -0
  472. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.mjs +68 -0
  473. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
  474. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.mjs +18 -0
  475. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.mjs +23 -0
  476. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.mjs +13 -0
  477. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.mjs +125 -0
  478. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.mjs +20 -0
  479. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.mjs +24 -0
  480. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.mjs +8 -0
  481. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.mjs +47 -0
  482. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.mjs +25 -0
  483. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.mjs +18 -0
  484. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.mjs +25 -0
  485. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.mjs +22 -0
  486. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.mjs +64 -0
  487. package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs +45 -0
  488. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +55 -0
  489. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +33 -0
  490. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +66 -0
  491. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/data/list.mjs +49 -0
  492. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +97 -0
  493. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/layout.mjs +344 -0
  494. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +94 -0
  495. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/normalize.mjs +69 -0
  496. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +25 -0
  497. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +29 -0
  498. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +33 -0
  499. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +54 -0
  500. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/index.mjs +51 -0
  501. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +30 -0
  502. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +84 -0
  503. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +66 -0
  504. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +47 -0
  505. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +66 -0
  506. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +296 -0
  507. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/index.mjs +29 -0
  508. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +45 -0
  509. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +29 -0
  510. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +148 -0
  511. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +30 -0
  512. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/util.mjs +164 -0
  513. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +33 -0
  514. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.mjs +2 -0
  515. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.mjs +2 -0
  516. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +7 -0
  517. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +7 -0
  518. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +7 -0
  519. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs +420 -0
  520. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/json.mjs +47 -0
  521. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +286 -0
  522. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.mjs +58 -0
  523. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +133 -0
  524. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.mjs +37 -0
  525. package/dist/node_modules/.pnpm/dompurify@3.2.4/node_modules/dompurify/dist/purify.es.mjs +965 -0
  526. package/dist/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.mjs +43 -0
  527. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/index.mjs +131 -0
  528. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/reusable.mjs +5 -0
  529. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/type.mjs +24 -0
  530. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hex.mjs +40 -0
  531. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hsl.mjs +50 -0
  532. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/index.mjs +39 -0
  533. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/keyword.mjs +172 -0
  534. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/rgb.mjs +33 -0
  535. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/constants.mjs +13 -0
  536. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust.mjs +15 -0
  537. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust_channel.mjs +13 -0
  538. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/change.mjs +12 -0
  539. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs +8 -0
  540. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/darken.mjs +7 -0
  541. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/invert.mjs +12 -0
  542. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_dark.mjs +7 -0
  543. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_light.mjs +7 -0
  544. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/lighten.mjs +7 -0
  545. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/luminance.mjs +10 -0
  546. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/mix.mjs +20 -0
  547. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs +18 -0
  548. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.mjs +95 -0
  549. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/index.mjs +11 -0
  550. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/lang.mjs +14 -0
  551. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/unit.mjs +10 -0
  552. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/default-module.mjs +87 -0
  553. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/dependency-injection.mjs +74 -0
  554. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/comment-provider.mjs +17 -0
  555. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/documentation-provider.mjs +62 -0
  556. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/jsdoc.mjs +478 -0
  557. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/generated/ast.mjs +725 -0
  558. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/grammar-config.mjs +20 -0
  559. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/async-parser.mjs +11 -0
  560. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +13 -0
  561. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/cst-node-builder.mjs +233 -0
  562. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +17 -0
  563. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser.mjs +453 -0
  564. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/lexer.mjs +72 -0
  565. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/parser-builder-base.mjs +336 -0
  566. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/token-builder.mjs +105 -0
  567. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/value-converter.mjs +111 -0
  568. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/linker.mjs +139 -0
  569. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/name-provider.mjs +19 -0
  570. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/references.mjs +80 -0
  571. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-computation.mjs +70 -0
  572. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-provider.mjs +62 -0
  573. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope.mjs +60 -0
  574. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/hydrator.mjs +256 -0
  575. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/json-serializer.mjs +202 -0
  576. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/service-registry.mjs +69 -0
  577. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/syntax-tree.mjs +73 -0
  578. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/ast-utils.mjs +159 -0
  579. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/caching.mjs +137 -0
  580. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/collections.mjs +177 -0
  581. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/cst-utils.mjs +126 -0
  582. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/disposable.mjs +12 -0
  583. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/errors.mjs +12 -0
  584. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-loader.mjs +33 -0
  585. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-utils.mjs +377 -0
  586. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/promise-utils.mjs +56 -0
  587. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/regexp-utils.mjs +239 -0
  588. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/stream.mjs +466 -0
  589. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/uri-utils.mjs +37 -0
  590. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/document-validator.mjs +236 -0
  591. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/validation-registry.mjs +142 -0
  592. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +75 -0
  593. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +43 -0
  594. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/configuration.mjs +81 -0
  595. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/document-builder.mjs +328 -0
  596. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/documents.mjs +210 -0
  597. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.mjs +15 -0
  598. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/index-manager.mjs +74 -0
  599. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-lock.mjs +64 -0
  600. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-manager.mjs +106 -0
  601. package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.mjs +3197 -0
  602. package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.mjs +3745 -0
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +6 -0
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +21 -0
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +21 -0
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +6 -0
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +21 -0
  608. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +6 -0
  609. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +6 -0
  610. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +15 -0
  611. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +18 -0
  612. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +5 -0
  613. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +5 -0
  614. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +6 -0
  615. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +16 -0
  616. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +12 -0
  617. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +13 -0
  618. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.mjs +8 -0
  619. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +24 -0
  620. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +10 -0
  621. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +10 -0
  622. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.mjs +13 -0
  623. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +12 -0
  624. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +10 -0
  625. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +13 -0
  626. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +13 -0
  627. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +8 -0
  628. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +16 -0
  629. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +83 -0
  630. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +21 -0
  631. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.mjs +6 -0
  632. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +14 -0
  633. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.mjs +13 -0
  634. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.mjs +12 -0
  635. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.mjs +21 -0
  636. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +5 -0
  637. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.mjs +8 -0
  638. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +13 -0
  639. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  640. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +14 -0
  641. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.mjs +6 -0
  642. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.mjs +9 -0
  643. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +9 -0
  644. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +14 -0
  645. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +45 -0
  646. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  647. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.mjs +35 -0
  648. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.mjs +6 -0
  649. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +22 -0
  650. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  651. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +14 -0
  652. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.mjs +20 -0
  653. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +19 -0
  654. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +20 -0
  655. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +6 -0
  656. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.mjs +12 -0
  657. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.mjs +15 -0
  658. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.mjs +20 -0
  659. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +27 -0
  660. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +61 -0
  661. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.mjs +8 -0
  662. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.mjs +9 -0
  663. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseReduce.mjs +9 -0
  664. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +9 -0
  665. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +14 -0
  666. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +10 -0
  667. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +21 -0
  668. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +8 -0
  669. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +46 -0
  670. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +6 -0
  671. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.mjs +7 -0
  672. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +13 -0
  673. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +9 -0
  674. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +16 -0
  675. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +7 -0
  676. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +9 -0
  677. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  678. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +8 -0
  679. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +11 -0
  680. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +23 -0
  681. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +8 -0
  682. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +5 -0
  683. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +23 -0
  684. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.mjs +21 -0
  685. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +15 -0
  686. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.mjs +10 -0
  687. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +12 -0
  688. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +50 -0
  689. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +59 -0
  690. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +50 -0
  691. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +4 -0
  692. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  693. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +8 -0
  694. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.mjs +13 -0
  695. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +9 -0
  696. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +5 -0
  697. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +25 -0
  698. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +17 -0
  699. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +34 -0
  700. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +6 -0
  701. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.mjs +25 -0
  702. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +8 -0
  703. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +8 -0
  704. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +15 -0
  705. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +10 -0
  706. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +11 -0
  707. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +13 -0
  708. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +43 -0
  709. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +9 -0
  710. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.mjs +10 -0
  711. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +10 -0
  712. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +17 -0
  713. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +16 -0
  714. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +7 -0
  715. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +11 -0
  716. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +8 -0
  717. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.mjs +7 -0
  718. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +7 -0
  719. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +20 -0
  720. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +8 -0
  721. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +7 -0
  722. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +14 -0
  723. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +14 -0
  724. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +9 -0
  725. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +7 -0
  726. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +7 -0
  727. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +10 -0
  728. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +10 -0
  729. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.mjs +11 -0
  730. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +15 -0
  731. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +5 -0
  732. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +5 -0
  733. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +12 -0
  734. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +18 -0
  735. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +8 -0
  736. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +8 -0
  737. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +21 -0
  738. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +6 -0
  739. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +12 -0
  740. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +8 -0
  741. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +6 -0
  742. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +10 -0
  743. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +6 -0
  744. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +20 -0
  745. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +8 -0
  746. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +8 -0
  747. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +6 -0
  748. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +6 -0
  749. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +22 -0
  750. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.mjs +12 -0
  751. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +16 -0
  752. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +11 -0
  753. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +18 -0
  754. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.mjs +8 -0
  755. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +8 -0
  756. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +6 -0
  757. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/filter.mjs +11 -0
  758. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatMap.mjs +8 -0
  759. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.mjs +8 -0
  760. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.mjs +11 -0
  761. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +8 -0
  762. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.mjs +8 -0
  763. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +6 -0
  764. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +13 -0
  765. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +4 -0
  766. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +8 -0
  767. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +8 -0
  768. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +11 -0
  769. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.mjs +35 -0
  770. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +13 -0
  771. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +7 -0
  772. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +8 -0
  773. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +7 -0
  774. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +6 -0
  775. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +22 -0
  776. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +8 -0
  777. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +9 -0
  778. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +8 -0
  779. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +9 -0
  780. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +9 -0
  781. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.mjs +11 -0
  782. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +22 -0
  783. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +8 -0
  784. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +9 -0
  785. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.mjs +5 -0
  786. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.mjs +10 -0
  787. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/reduce.mjs +12 -0
  788. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +6 -0
  789. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +6 -0
  790. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +8 -0
  791. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +7 -0
  792. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +8 -0
  793. package/dist/node_modules/.pnpm/marked@15.0.7/node_modules/marked/lib/marked.esm.mjs +2152 -0
  794. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-IEHRJDOE.mjs +1093 -0
  795. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-JOT3LUYC.mjs +3598 -0
  796. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-VJAJSXHY.mjs +2487 -0
  797. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BMEZGHF.mjs +17 -0
  798. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5NNNAHNI.mjs +143 -0
  799. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JRP7KZX.mjs +2696 -0
  800. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7B677QYD.mjs +19 -0
  801. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-A2AXSNBT.mjs +1828 -0
  802. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AEK57VVT.mjs +1961 -0
  803. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C3MQ5ANM.mjs +332 -0
  804. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-D6G4REZN.mjs +109 -0
  805. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2D2JQ3I.mjs +78 -0
  806. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HRU6DDCH.mjs +5018 -0
  807. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IIMUDSI4.mjs +696 -0
  808. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K557N5IZ.mjs +17 -0
  809. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4NI6UNU.mjs +557 -0
  810. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RZ5BOZE2.mjs +38 -0
  811. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TYCBKAJE.mjs +57 -0
  812. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VV3M67IP.mjs +107 -0
  813. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XZIHB7SX.mjs +17 -0
  814. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YTJNT7DU.mjs +3052 -0
  815. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-GIVACNV2.mjs +27 -0
  816. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-COTLJTTW.mjs +27 -0
  817. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-OKDRZEBW.mjs +662 -0
  818. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-SSKATNLV.mjs +306 -0
  819. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VNBRO52H.mjs +191 -0
  820. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q7BY3M3F.mjs +1168 -0
  821. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-4HSFHLVR.mjs +2339 -0
  822. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-APWFNJXF.mjs +2104 -0
  823. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-7IBYFJ6S.mjs +1215 -0
  824. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-PH2N3AL5.mjs +31 -0
  825. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-U35MCT3I.mjs +1201 -0
  826. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-NDS4AKOZ.mjs +1055 -0
  827. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-ALO5MXBD.mjs +1195 -0
  828. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-IB7DONF6.mjs +188 -0
  829. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-7GDLP6J5.mjs +1340 -0
  830. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-KVF5MWMF.mjs +1168 -0
  831. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-QLVOVGJD.mjs +670 -0
  832. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-X6HHIX6F.mjs +3419 -0
  833. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-DGXRK772.mjs +477 -0
  834. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-YXO3MK2T.mjs +27 -0
  835. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-BDJGKUSR.mjs +1232 -0
  836. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-VJFVF3MP.mjs +1778 -0
  837. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/mermaid.core.mjs +1222 -0
  838. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.browser.mjs +13 -0
  839. package/dist/node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.mjs +4 -0
  840. package/dist/node_modules/.pnpm/roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.mjs +1001 -0
  841. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.mjs +16 -0
  842. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.mjs +164 -0
  843. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.mjs +29 -0
  844. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.mjs +156 -0
  845. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.mjs +38 -0
  846. package/dist/node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.mjs +42 -0
  847. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.mjs +95 -0
  848. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.mjs +133 -0
  849. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.mjs +40 -0
  850. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.mjs +28 -0
  851. package/dist/node_modules/.pnpm/vscode-languageserver-textdocument@1.0.12/node_modules/vscode-languageserver-textdocument/lib/esm/main.mjs +225 -0
  852. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.mjs +1262 -0
  853. package/dist/node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs +344 -0
  854. package/package.json +24 -26
  855. package/dist/Css-BDTor6my.js +0 -18
  856. package/dist/ElmShikiHighlighter-B6syB4ax.js +0 -44
  857. package/dist/Rust-BwuxPQOA.js +0 -16
  858. package/dist/elmethis.js +0 -70
  859. package/dist/index-BFwE0btN.js +0 -3523
@@ -0,0 +1,3745 @@
1
+ import { __module as layoutBase$1 } from "../../../../../_virtual/layout-base2.mjs";
2
+ var layoutBase = layoutBase$1.exports;
3
+ var hasRequiredLayoutBase;
4
+ function requireLayoutBase() {
5
+ if (hasRequiredLayoutBase) return layoutBase$1.exports;
6
+ hasRequiredLayoutBase = 1;
7
+ (function(module, exports) {
8
+ (function webpackUniversalModuleDefinition(root, factory) {
9
+ module.exports = factory();
10
+ })(layoutBase, function() {
11
+ return (
12
+ /******/
13
+ function(modules) {
14
+ var installedModules = {};
15
+ function __webpack_require__(moduleId) {
16
+ if (installedModules[moduleId]) {
17
+ return installedModules[moduleId].exports;
18
+ }
19
+ var module2 = installedModules[moduleId] = {
20
+ /******/
21
+ i: moduleId,
22
+ /******/
23
+ l: false,
24
+ /******/
25
+ exports: {}
26
+ /******/
27
+ };
28
+ modules[moduleId].call(module2.exports, module2, module2.exports, __webpack_require__);
29
+ module2.l = true;
30
+ return module2.exports;
31
+ }
32
+ __webpack_require__.m = modules;
33
+ __webpack_require__.c = installedModules;
34
+ __webpack_require__.i = function(value) {
35
+ return value;
36
+ };
37
+ __webpack_require__.d = function(exports2, name, getter) {
38
+ if (!__webpack_require__.o(exports2, name)) {
39
+ Object.defineProperty(exports2, name, {
40
+ /******/
41
+ configurable: false,
42
+ /******/
43
+ enumerable: true,
44
+ /******/
45
+ get: getter
46
+ /******/
47
+ });
48
+ }
49
+ };
50
+ __webpack_require__.n = function(module2) {
51
+ var getter = module2 && module2.__esModule ? (
52
+ /******/
53
+ function getDefault() {
54
+ return module2["default"];
55
+ }
56
+ ) : (
57
+ /******/
58
+ function getModuleExports() {
59
+ return module2;
60
+ }
61
+ );
62
+ __webpack_require__.d(getter, "a", getter);
63
+ return getter;
64
+ };
65
+ __webpack_require__.o = function(object, property) {
66
+ return Object.prototype.hasOwnProperty.call(object, property);
67
+ };
68
+ __webpack_require__.p = "";
69
+ return __webpack_require__(__webpack_require__.s = 28);
70
+ }([
71
+ /* 0 */
72
+ /***/
73
+ function(module2, exports2, __webpack_require__) {
74
+ function LayoutConstants() {
75
+ }
76
+ LayoutConstants.QUALITY = 1;
77
+ LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED = false;
78
+ LayoutConstants.DEFAULT_INCREMENTAL = false;
79
+ LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT = true;
80
+ LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT = false;
81
+ LayoutConstants.DEFAULT_ANIMATION_PERIOD = 50;
82
+ LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false;
83
+ LayoutConstants.DEFAULT_GRAPH_MARGIN = 15;
84
+ LayoutConstants.NODE_DIMENSIONS_INCLUDE_LABELS = false;
85
+ LayoutConstants.SIMPLE_NODE_SIZE = 40;
86
+ LayoutConstants.SIMPLE_NODE_HALF_SIZE = LayoutConstants.SIMPLE_NODE_SIZE / 2;
87
+ LayoutConstants.EMPTY_COMPOUND_NODE_SIZE = 40;
88
+ LayoutConstants.MIN_EDGE_LENGTH = 1;
89
+ LayoutConstants.WORLD_BOUNDARY = 1e6;
90
+ LayoutConstants.INITIAL_WORLD_BOUNDARY = LayoutConstants.WORLD_BOUNDARY / 1e3;
91
+ LayoutConstants.WORLD_CENTER_X = 1200;
92
+ LayoutConstants.WORLD_CENTER_Y = 900;
93
+ module2.exports = LayoutConstants;
94
+ },
95
+ /* 1 */
96
+ /***/
97
+ function(module2, exports2, __webpack_require__) {
98
+ var LGraphObject = __webpack_require__(2);
99
+ var IGeometry = __webpack_require__(8);
100
+ var IMath = __webpack_require__(9);
101
+ function LEdge(source, target, vEdge) {
102
+ LGraphObject.call(this, vEdge);
103
+ this.isOverlapingSourceAndTarget = false;
104
+ this.vGraphObject = vEdge;
105
+ this.bendpoints = [];
106
+ this.source = source;
107
+ this.target = target;
108
+ }
109
+ LEdge.prototype = Object.create(LGraphObject.prototype);
110
+ for (var prop in LGraphObject) {
111
+ LEdge[prop] = LGraphObject[prop];
112
+ }
113
+ LEdge.prototype.getSource = function() {
114
+ return this.source;
115
+ };
116
+ LEdge.prototype.getTarget = function() {
117
+ return this.target;
118
+ };
119
+ LEdge.prototype.isInterGraph = function() {
120
+ return this.isInterGraph;
121
+ };
122
+ LEdge.prototype.getLength = function() {
123
+ return this.length;
124
+ };
125
+ LEdge.prototype.isOverlapingSourceAndTarget = function() {
126
+ return this.isOverlapingSourceAndTarget;
127
+ };
128
+ LEdge.prototype.getBendpoints = function() {
129
+ return this.bendpoints;
130
+ };
131
+ LEdge.prototype.getLca = function() {
132
+ return this.lca;
133
+ };
134
+ LEdge.prototype.getSourceInLca = function() {
135
+ return this.sourceInLca;
136
+ };
137
+ LEdge.prototype.getTargetInLca = function() {
138
+ return this.targetInLca;
139
+ };
140
+ LEdge.prototype.getOtherEnd = function(node) {
141
+ if (this.source === node) {
142
+ return this.target;
143
+ } else if (this.target === node) {
144
+ return this.source;
145
+ } else {
146
+ throw "Node is not incident with this edge";
147
+ }
148
+ };
149
+ LEdge.prototype.getOtherEndInGraph = function(node, graph) {
150
+ var otherEnd = this.getOtherEnd(node);
151
+ var root = graph.getGraphManager().getRoot();
152
+ while (true) {
153
+ if (otherEnd.getOwner() == graph) {
154
+ return otherEnd;
155
+ }
156
+ if (otherEnd.getOwner() == root) {
157
+ break;
158
+ }
159
+ otherEnd = otherEnd.getOwner().getParent();
160
+ }
161
+ return null;
162
+ };
163
+ LEdge.prototype.updateLength = function() {
164
+ var clipPointCoordinates = new Array(4);
165
+ this.isOverlapingSourceAndTarget = IGeometry.getIntersection(this.target.getRect(), this.source.getRect(), clipPointCoordinates);
166
+ if (!this.isOverlapingSourceAndTarget) {
167
+ this.lengthX = clipPointCoordinates[0] - clipPointCoordinates[2];
168
+ this.lengthY = clipPointCoordinates[1] - clipPointCoordinates[3];
169
+ if (Math.abs(this.lengthX) < 1) {
170
+ this.lengthX = IMath.sign(this.lengthX);
171
+ }
172
+ if (Math.abs(this.lengthY) < 1) {
173
+ this.lengthY = IMath.sign(this.lengthY);
174
+ }
175
+ this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
176
+ }
177
+ };
178
+ LEdge.prototype.updateLengthSimple = function() {
179
+ this.lengthX = this.target.getCenterX() - this.source.getCenterX();
180
+ this.lengthY = this.target.getCenterY() - this.source.getCenterY();
181
+ if (Math.abs(this.lengthX) < 1) {
182
+ this.lengthX = IMath.sign(this.lengthX);
183
+ }
184
+ if (Math.abs(this.lengthY) < 1) {
185
+ this.lengthY = IMath.sign(this.lengthY);
186
+ }
187
+ this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
188
+ };
189
+ module2.exports = LEdge;
190
+ },
191
+ /* 2 */
192
+ /***/
193
+ function(module2, exports2, __webpack_require__) {
194
+ function LGraphObject(vGraphObject) {
195
+ this.vGraphObject = vGraphObject;
196
+ }
197
+ module2.exports = LGraphObject;
198
+ },
199
+ /* 3 */
200
+ /***/
201
+ function(module2, exports2, __webpack_require__) {
202
+ var LGraphObject = __webpack_require__(2);
203
+ var Integer = __webpack_require__(10);
204
+ var RectangleD = __webpack_require__(13);
205
+ var LayoutConstants = __webpack_require__(0);
206
+ var RandomSeed = __webpack_require__(16);
207
+ var PointD = __webpack_require__(5);
208
+ function LNode(gm, loc, size, vNode) {
209
+ if (size == null && vNode == null) {
210
+ vNode = loc;
211
+ }
212
+ LGraphObject.call(this, vNode);
213
+ if (gm.graphManager != null) gm = gm.graphManager;
214
+ this.estimatedSize = Integer.MIN_VALUE;
215
+ this.inclusionTreeDepth = Integer.MAX_VALUE;
216
+ this.vGraphObject = vNode;
217
+ this.edges = [];
218
+ this.graphManager = gm;
219
+ if (size != null && loc != null) this.rect = new RectangleD(loc.x, loc.y, size.width, size.height);
220
+ else this.rect = new RectangleD();
221
+ }
222
+ LNode.prototype = Object.create(LGraphObject.prototype);
223
+ for (var prop in LGraphObject) {
224
+ LNode[prop] = LGraphObject[prop];
225
+ }
226
+ LNode.prototype.getEdges = function() {
227
+ return this.edges;
228
+ };
229
+ LNode.prototype.getChild = function() {
230
+ return this.child;
231
+ };
232
+ LNode.prototype.getOwner = function() {
233
+ return this.owner;
234
+ };
235
+ LNode.prototype.getWidth = function() {
236
+ return this.rect.width;
237
+ };
238
+ LNode.prototype.setWidth = function(width) {
239
+ this.rect.width = width;
240
+ };
241
+ LNode.prototype.getHeight = function() {
242
+ return this.rect.height;
243
+ };
244
+ LNode.prototype.setHeight = function(height) {
245
+ this.rect.height = height;
246
+ };
247
+ LNode.prototype.getCenterX = function() {
248
+ return this.rect.x + this.rect.width / 2;
249
+ };
250
+ LNode.prototype.getCenterY = function() {
251
+ return this.rect.y + this.rect.height / 2;
252
+ };
253
+ LNode.prototype.getCenter = function() {
254
+ return new PointD(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
255
+ };
256
+ LNode.prototype.getLocation = function() {
257
+ return new PointD(this.rect.x, this.rect.y);
258
+ };
259
+ LNode.prototype.getRect = function() {
260
+ return this.rect;
261
+ };
262
+ LNode.prototype.getDiagonal = function() {
263
+ return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
264
+ };
265
+ LNode.prototype.getHalfTheDiagonal = function() {
266
+ return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
267
+ };
268
+ LNode.prototype.setRect = function(upperLeft, dimension) {
269
+ this.rect.x = upperLeft.x;
270
+ this.rect.y = upperLeft.y;
271
+ this.rect.width = dimension.width;
272
+ this.rect.height = dimension.height;
273
+ };
274
+ LNode.prototype.setCenter = function(cx, cy) {
275
+ this.rect.x = cx - this.rect.width / 2;
276
+ this.rect.y = cy - this.rect.height / 2;
277
+ };
278
+ LNode.prototype.setLocation = function(x, y) {
279
+ this.rect.x = x;
280
+ this.rect.y = y;
281
+ };
282
+ LNode.prototype.moveBy = function(dx, dy) {
283
+ this.rect.x += dx;
284
+ this.rect.y += dy;
285
+ };
286
+ LNode.prototype.getEdgeListToNode = function(to) {
287
+ var edgeList = [];
288
+ var self = this;
289
+ self.edges.forEach(function(edge) {
290
+ if (edge.target == to) {
291
+ if (edge.source != self) throw "Incorrect edge source!";
292
+ edgeList.push(edge);
293
+ }
294
+ });
295
+ return edgeList;
296
+ };
297
+ LNode.prototype.getEdgesBetween = function(other) {
298
+ var edgeList = [];
299
+ var self = this;
300
+ self.edges.forEach(function(edge) {
301
+ if (!(edge.source == self || edge.target == self)) throw "Incorrect edge source and/or target";
302
+ if (edge.target == other || edge.source == other) {
303
+ edgeList.push(edge);
304
+ }
305
+ });
306
+ return edgeList;
307
+ };
308
+ LNode.prototype.getNeighborsList = function() {
309
+ var neighbors = /* @__PURE__ */ new Set();
310
+ var self = this;
311
+ self.edges.forEach(function(edge) {
312
+ if (edge.source == self) {
313
+ neighbors.add(edge.target);
314
+ } else {
315
+ if (edge.target != self) {
316
+ throw "Incorrect incidency!";
317
+ }
318
+ neighbors.add(edge.source);
319
+ }
320
+ });
321
+ return neighbors;
322
+ };
323
+ LNode.prototype.withChildren = function() {
324
+ var withNeighborsList = /* @__PURE__ */ new Set();
325
+ var childNode;
326
+ var children;
327
+ withNeighborsList.add(this);
328
+ if (this.child != null) {
329
+ var nodes = this.child.getNodes();
330
+ for (var i = 0; i < nodes.length; i++) {
331
+ childNode = nodes[i];
332
+ children = childNode.withChildren();
333
+ children.forEach(function(node) {
334
+ withNeighborsList.add(node);
335
+ });
336
+ }
337
+ }
338
+ return withNeighborsList;
339
+ };
340
+ LNode.prototype.getNoOfChildren = function() {
341
+ var noOfChildren = 0;
342
+ var childNode;
343
+ if (this.child == null) {
344
+ noOfChildren = 1;
345
+ } else {
346
+ var nodes = this.child.getNodes();
347
+ for (var i = 0; i < nodes.length; i++) {
348
+ childNode = nodes[i];
349
+ noOfChildren += childNode.getNoOfChildren();
350
+ }
351
+ }
352
+ if (noOfChildren == 0) {
353
+ noOfChildren = 1;
354
+ }
355
+ return noOfChildren;
356
+ };
357
+ LNode.prototype.getEstimatedSize = function() {
358
+ if (this.estimatedSize == Integer.MIN_VALUE) {
359
+ throw "assert failed";
360
+ }
361
+ return this.estimatedSize;
362
+ };
363
+ LNode.prototype.calcEstimatedSize = function() {
364
+ if (this.child == null) {
365
+ return this.estimatedSize = (this.rect.width + this.rect.height) / 2;
366
+ } else {
367
+ this.estimatedSize = this.child.calcEstimatedSize();
368
+ this.rect.width = this.estimatedSize;
369
+ this.rect.height = this.estimatedSize;
370
+ return this.estimatedSize;
371
+ }
372
+ };
373
+ LNode.prototype.scatter = function() {
374
+ var randomCenterX;
375
+ var randomCenterY;
376
+ var minX = -LayoutConstants.INITIAL_WORLD_BOUNDARY;
377
+ var maxX = LayoutConstants.INITIAL_WORLD_BOUNDARY;
378
+ randomCenterX = LayoutConstants.WORLD_CENTER_X + RandomSeed.nextDouble() * (maxX - minX) + minX;
379
+ var minY = -LayoutConstants.INITIAL_WORLD_BOUNDARY;
380
+ var maxY = LayoutConstants.INITIAL_WORLD_BOUNDARY;
381
+ randomCenterY = LayoutConstants.WORLD_CENTER_Y + RandomSeed.nextDouble() * (maxY - minY) + minY;
382
+ this.rect.x = randomCenterX;
383
+ this.rect.y = randomCenterY;
384
+ };
385
+ LNode.prototype.updateBounds = function() {
386
+ if (this.getChild() == null) {
387
+ throw "assert failed";
388
+ }
389
+ if (this.getChild().getNodes().length != 0) {
390
+ var childGraph = this.getChild();
391
+ childGraph.updateBounds(true);
392
+ this.rect.x = childGraph.getLeft();
393
+ this.rect.y = childGraph.getTop();
394
+ this.setWidth(childGraph.getRight() - childGraph.getLeft());
395
+ this.setHeight(childGraph.getBottom() - childGraph.getTop());
396
+ if (LayoutConstants.NODE_DIMENSIONS_INCLUDE_LABELS) {
397
+ var width = childGraph.getRight() - childGraph.getLeft();
398
+ var height = childGraph.getBottom() - childGraph.getTop();
399
+ if (this.labelWidth) {
400
+ if (this.labelPosHorizontal == "left") {
401
+ this.rect.x -= this.labelWidth;
402
+ this.setWidth(width + this.labelWidth);
403
+ } else if (this.labelPosHorizontal == "center" && this.labelWidth > width) {
404
+ this.rect.x -= (this.labelWidth - width) / 2;
405
+ this.setWidth(this.labelWidth);
406
+ } else if (this.labelPosHorizontal == "right") {
407
+ this.setWidth(width + this.labelWidth);
408
+ }
409
+ }
410
+ if (this.labelHeight) {
411
+ if (this.labelPosVertical == "top") {
412
+ this.rect.y -= this.labelHeight;
413
+ this.setHeight(height + this.labelHeight);
414
+ } else if (this.labelPosVertical == "center" && this.labelHeight > height) {
415
+ this.rect.y -= (this.labelHeight - height) / 2;
416
+ this.setHeight(this.labelHeight);
417
+ } else if (this.labelPosVertical == "bottom") {
418
+ this.setHeight(height + this.labelHeight);
419
+ }
420
+ }
421
+ }
422
+ }
423
+ };
424
+ LNode.prototype.getInclusionTreeDepth = function() {
425
+ if (this.inclusionTreeDepth == Integer.MAX_VALUE) {
426
+ throw "assert failed";
427
+ }
428
+ return this.inclusionTreeDepth;
429
+ };
430
+ LNode.prototype.transform = function(trans) {
431
+ var left = this.rect.x;
432
+ if (left > LayoutConstants.WORLD_BOUNDARY) {
433
+ left = LayoutConstants.WORLD_BOUNDARY;
434
+ } else if (left < -LayoutConstants.WORLD_BOUNDARY) {
435
+ left = -LayoutConstants.WORLD_BOUNDARY;
436
+ }
437
+ var top = this.rect.y;
438
+ if (top > LayoutConstants.WORLD_BOUNDARY) {
439
+ top = LayoutConstants.WORLD_BOUNDARY;
440
+ } else if (top < -LayoutConstants.WORLD_BOUNDARY) {
441
+ top = -LayoutConstants.WORLD_BOUNDARY;
442
+ }
443
+ var leftTop = new PointD(left, top);
444
+ var vLeftTop = trans.inverseTransformPoint(leftTop);
445
+ this.setLocation(vLeftTop.x, vLeftTop.y);
446
+ };
447
+ LNode.prototype.getLeft = function() {
448
+ return this.rect.x;
449
+ };
450
+ LNode.prototype.getRight = function() {
451
+ return this.rect.x + this.rect.width;
452
+ };
453
+ LNode.prototype.getTop = function() {
454
+ return this.rect.y;
455
+ };
456
+ LNode.prototype.getBottom = function() {
457
+ return this.rect.y + this.rect.height;
458
+ };
459
+ LNode.prototype.getParent = function() {
460
+ if (this.owner == null) {
461
+ return null;
462
+ }
463
+ return this.owner.getParent();
464
+ };
465
+ module2.exports = LNode;
466
+ },
467
+ /* 4 */
468
+ /***/
469
+ function(module2, exports2, __webpack_require__) {
470
+ var LayoutConstants = __webpack_require__(0);
471
+ function FDLayoutConstants() {
472
+ }
473
+ for (var prop in LayoutConstants) {
474
+ FDLayoutConstants[prop] = LayoutConstants[prop];
475
+ }
476
+ FDLayoutConstants.MAX_ITERATIONS = 2500;
477
+ FDLayoutConstants.DEFAULT_EDGE_LENGTH = 50;
478
+ FDLayoutConstants.DEFAULT_SPRING_STRENGTH = 0.45;
479
+ FDLayoutConstants.DEFAULT_REPULSION_STRENGTH = 4500;
480
+ FDLayoutConstants.DEFAULT_GRAVITY_STRENGTH = 0.4;
481
+ FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1;
482
+ FDLayoutConstants.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8;
483
+ FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5;
484
+ FDLayoutConstants.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = true;
485
+ FDLayoutConstants.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = true;
486
+ FDLayoutConstants.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3;
487
+ FDLayoutConstants.COOLING_ADAPTATION_FACTOR = 0.33;
488
+ FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT = 1e3;
489
+ FDLayoutConstants.ADAPTATION_UPPER_NODE_LIMIT = 5e3;
490
+ FDLayoutConstants.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100;
491
+ FDLayoutConstants.MAX_NODE_DISPLACEMENT = FDLayoutConstants.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3;
492
+ FDLayoutConstants.MIN_REPULSION_DIST = FDLayoutConstants.DEFAULT_EDGE_LENGTH / 10;
493
+ FDLayoutConstants.CONVERGENCE_CHECK_PERIOD = 100;
494
+ FDLayoutConstants.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1;
495
+ FDLayoutConstants.MIN_EDGE_LENGTH = 1;
496
+ FDLayoutConstants.GRID_CALCULATION_CHECK_PERIOD = 10;
497
+ module2.exports = FDLayoutConstants;
498
+ },
499
+ /* 5 */
500
+ /***/
501
+ function(module2, exports2, __webpack_require__) {
502
+ function PointD(x, y) {
503
+ if (x == null && y == null) {
504
+ this.x = 0;
505
+ this.y = 0;
506
+ } else {
507
+ this.x = x;
508
+ this.y = y;
509
+ }
510
+ }
511
+ PointD.prototype.getX = function() {
512
+ return this.x;
513
+ };
514
+ PointD.prototype.getY = function() {
515
+ return this.y;
516
+ };
517
+ PointD.prototype.setX = function(x) {
518
+ this.x = x;
519
+ };
520
+ PointD.prototype.setY = function(y) {
521
+ this.y = y;
522
+ };
523
+ PointD.prototype.getDifference = function(pt) {
524
+ return new DimensionD(this.x - pt.x, this.y - pt.y);
525
+ };
526
+ PointD.prototype.getCopy = function() {
527
+ return new PointD(this.x, this.y);
528
+ };
529
+ PointD.prototype.translate = function(dim) {
530
+ this.x += dim.width;
531
+ this.y += dim.height;
532
+ return this;
533
+ };
534
+ module2.exports = PointD;
535
+ },
536
+ /* 6 */
537
+ /***/
538
+ function(module2, exports2, __webpack_require__) {
539
+ var LGraphObject = __webpack_require__(2);
540
+ var Integer = __webpack_require__(10);
541
+ var LayoutConstants = __webpack_require__(0);
542
+ var LGraphManager = __webpack_require__(7);
543
+ var LNode = __webpack_require__(3);
544
+ var LEdge = __webpack_require__(1);
545
+ var RectangleD = __webpack_require__(13);
546
+ var Point2 = __webpack_require__(12);
547
+ var LinkedList = __webpack_require__(11);
548
+ function LGraph(parent, obj2, vGraph) {
549
+ LGraphObject.call(this, vGraph);
550
+ this.estimatedSize = Integer.MIN_VALUE;
551
+ this.margin = LayoutConstants.DEFAULT_GRAPH_MARGIN;
552
+ this.edges = [];
553
+ this.nodes = [];
554
+ this.isConnected = false;
555
+ this.parent = parent;
556
+ if (obj2 != null && obj2 instanceof LGraphManager) {
557
+ this.graphManager = obj2;
558
+ } else if (obj2 != null && obj2 instanceof Layout) {
559
+ this.graphManager = obj2.graphManager;
560
+ }
561
+ }
562
+ LGraph.prototype = Object.create(LGraphObject.prototype);
563
+ for (var prop in LGraphObject) {
564
+ LGraph[prop] = LGraphObject[prop];
565
+ }
566
+ LGraph.prototype.getNodes = function() {
567
+ return this.nodes;
568
+ };
569
+ LGraph.prototype.getEdges = function() {
570
+ return this.edges;
571
+ };
572
+ LGraph.prototype.getGraphManager = function() {
573
+ return this.graphManager;
574
+ };
575
+ LGraph.prototype.getParent = function() {
576
+ return this.parent;
577
+ };
578
+ LGraph.prototype.getLeft = function() {
579
+ return this.left;
580
+ };
581
+ LGraph.prototype.getRight = function() {
582
+ return this.right;
583
+ };
584
+ LGraph.prototype.getTop = function() {
585
+ return this.top;
586
+ };
587
+ LGraph.prototype.getBottom = function() {
588
+ return this.bottom;
589
+ };
590
+ LGraph.prototype.isConnected = function() {
591
+ return this.isConnected;
592
+ };
593
+ LGraph.prototype.add = function(obj1, sourceNode, targetNode) {
594
+ if (sourceNode == null && targetNode == null) {
595
+ var newNode = obj1;
596
+ if (this.graphManager == null) {
597
+ throw "Graph has no graph mgr!";
598
+ }
599
+ if (this.getNodes().indexOf(newNode) > -1) {
600
+ throw "Node already in graph!";
601
+ }
602
+ newNode.owner = this;
603
+ this.getNodes().push(newNode);
604
+ return newNode;
605
+ } else {
606
+ var newEdge = obj1;
607
+ if (!(this.getNodes().indexOf(sourceNode) > -1 && this.getNodes().indexOf(targetNode) > -1)) {
608
+ throw "Source or target not in graph!";
609
+ }
610
+ if (!(sourceNode.owner == targetNode.owner && sourceNode.owner == this)) {
611
+ throw "Both owners must be this graph!";
612
+ }
613
+ if (sourceNode.owner != targetNode.owner) {
614
+ return null;
615
+ }
616
+ newEdge.source = sourceNode;
617
+ newEdge.target = targetNode;
618
+ newEdge.isInterGraph = false;
619
+ this.getEdges().push(newEdge);
620
+ sourceNode.edges.push(newEdge);
621
+ if (targetNode != sourceNode) {
622
+ targetNode.edges.push(newEdge);
623
+ }
624
+ return newEdge;
625
+ }
626
+ };
627
+ LGraph.prototype.remove = function(obj) {
628
+ var node = obj;
629
+ if (obj instanceof LNode) {
630
+ if (node == null) {
631
+ throw "Node is null!";
632
+ }
633
+ if (!(node.owner != null && node.owner == this)) {
634
+ throw "Owner graph is invalid!";
635
+ }
636
+ if (this.graphManager == null) {
637
+ throw "Owner graph manager is invalid!";
638
+ }
639
+ var edgesToBeRemoved = node.edges.slice();
640
+ var edge;
641
+ var s = edgesToBeRemoved.length;
642
+ for (var i = 0; i < s; i++) {
643
+ edge = edgesToBeRemoved[i];
644
+ if (edge.isInterGraph) {
645
+ this.graphManager.remove(edge);
646
+ } else {
647
+ edge.source.owner.remove(edge);
648
+ }
649
+ }
650
+ var index = this.nodes.indexOf(node);
651
+ if (index == -1) {
652
+ throw "Node not in owner node list!";
653
+ }
654
+ this.nodes.splice(index, 1);
655
+ } else if (obj instanceof LEdge) {
656
+ var edge = obj;
657
+ if (edge == null) {
658
+ throw "Edge is null!";
659
+ }
660
+ if (!(edge.source != null && edge.target != null)) {
661
+ throw "Source and/or target is null!";
662
+ }
663
+ if (!(edge.source.owner != null && edge.target.owner != null && edge.source.owner == this && edge.target.owner == this)) {
664
+ throw "Source and/or target owner is invalid!";
665
+ }
666
+ var sourceIndex = edge.source.edges.indexOf(edge);
667
+ var targetIndex = edge.target.edges.indexOf(edge);
668
+ if (!(sourceIndex > -1 && targetIndex > -1)) {
669
+ throw "Source and/or target doesn't know this edge!";
670
+ }
671
+ edge.source.edges.splice(sourceIndex, 1);
672
+ if (edge.target != edge.source) {
673
+ edge.target.edges.splice(targetIndex, 1);
674
+ }
675
+ var index = edge.source.owner.getEdges().indexOf(edge);
676
+ if (index == -1) {
677
+ throw "Not in owner's edge list!";
678
+ }
679
+ edge.source.owner.getEdges().splice(index, 1);
680
+ }
681
+ };
682
+ LGraph.prototype.updateLeftTop = function() {
683
+ var top = Integer.MAX_VALUE;
684
+ var left = Integer.MAX_VALUE;
685
+ var nodeTop;
686
+ var nodeLeft;
687
+ var margin;
688
+ var nodes = this.getNodes();
689
+ var s = nodes.length;
690
+ for (var i = 0; i < s; i++) {
691
+ var lNode = nodes[i];
692
+ nodeTop = lNode.getTop();
693
+ nodeLeft = lNode.getLeft();
694
+ if (top > nodeTop) {
695
+ top = nodeTop;
696
+ }
697
+ if (left > nodeLeft) {
698
+ left = nodeLeft;
699
+ }
700
+ }
701
+ if (top == Integer.MAX_VALUE) {
702
+ return null;
703
+ }
704
+ if (nodes[0].getParent().paddingLeft != void 0) {
705
+ margin = nodes[0].getParent().paddingLeft;
706
+ } else {
707
+ margin = this.margin;
708
+ }
709
+ this.left = left - margin;
710
+ this.top = top - margin;
711
+ return new Point2(this.left, this.top);
712
+ };
713
+ LGraph.prototype.updateBounds = function(recursive) {
714
+ var left = Integer.MAX_VALUE;
715
+ var right = -Integer.MAX_VALUE;
716
+ var top = Integer.MAX_VALUE;
717
+ var bottom = -Integer.MAX_VALUE;
718
+ var nodeLeft;
719
+ var nodeRight;
720
+ var nodeTop;
721
+ var nodeBottom;
722
+ var margin;
723
+ var nodes = this.nodes;
724
+ var s = nodes.length;
725
+ for (var i = 0; i < s; i++) {
726
+ var lNode = nodes[i];
727
+ if (recursive && lNode.child != null) {
728
+ lNode.updateBounds();
729
+ }
730
+ nodeLeft = lNode.getLeft();
731
+ nodeRight = lNode.getRight();
732
+ nodeTop = lNode.getTop();
733
+ nodeBottom = lNode.getBottom();
734
+ if (left > nodeLeft) {
735
+ left = nodeLeft;
736
+ }
737
+ if (right < nodeRight) {
738
+ right = nodeRight;
739
+ }
740
+ if (top > nodeTop) {
741
+ top = nodeTop;
742
+ }
743
+ if (bottom < nodeBottom) {
744
+ bottom = nodeBottom;
745
+ }
746
+ }
747
+ var boundingRect = new RectangleD(left, top, right - left, bottom - top);
748
+ if (left == Integer.MAX_VALUE) {
749
+ this.left = this.parent.getLeft();
750
+ this.right = this.parent.getRight();
751
+ this.top = this.parent.getTop();
752
+ this.bottom = this.parent.getBottom();
753
+ }
754
+ if (nodes[0].getParent().paddingLeft != void 0) {
755
+ margin = nodes[0].getParent().paddingLeft;
756
+ } else {
757
+ margin = this.margin;
758
+ }
759
+ this.left = boundingRect.x - margin;
760
+ this.right = boundingRect.x + boundingRect.width + margin;
761
+ this.top = boundingRect.y - margin;
762
+ this.bottom = boundingRect.y + boundingRect.height + margin;
763
+ };
764
+ LGraph.calculateBounds = function(nodes) {
765
+ var left = Integer.MAX_VALUE;
766
+ var right = -Integer.MAX_VALUE;
767
+ var top = Integer.MAX_VALUE;
768
+ var bottom = -Integer.MAX_VALUE;
769
+ var nodeLeft;
770
+ var nodeRight;
771
+ var nodeTop;
772
+ var nodeBottom;
773
+ var s = nodes.length;
774
+ for (var i = 0; i < s; i++) {
775
+ var lNode = nodes[i];
776
+ nodeLeft = lNode.getLeft();
777
+ nodeRight = lNode.getRight();
778
+ nodeTop = lNode.getTop();
779
+ nodeBottom = lNode.getBottom();
780
+ if (left > nodeLeft) {
781
+ left = nodeLeft;
782
+ }
783
+ if (right < nodeRight) {
784
+ right = nodeRight;
785
+ }
786
+ if (top > nodeTop) {
787
+ top = nodeTop;
788
+ }
789
+ if (bottom < nodeBottom) {
790
+ bottom = nodeBottom;
791
+ }
792
+ }
793
+ var boundingRect = new RectangleD(left, top, right - left, bottom - top);
794
+ return boundingRect;
795
+ };
796
+ LGraph.prototype.getInclusionTreeDepth = function() {
797
+ if (this == this.graphManager.getRoot()) {
798
+ return 1;
799
+ } else {
800
+ return this.parent.getInclusionTreeDepth();
801
+ }
802
+ };
803
+ LGraph.prototype.getEstimatedSize = function() {
804
+ if (this.estimatedSize == Integer.MIN_VALUE) {
805
+ throw "assert failed";
806
+ }
807
+ return this.estimatedSize;
808
+ };
809
+ LGraph.prototype.calcEstimatedSize = function() {
810
+ var size = 0;
811
+ var nodes = this.nodes;
812
+ var s = nodes.length;
813
+ for (var i = 0; i < s; i++) {
814
+ var lNode = nodes[i];
815
+ size += lNode.calcEstimatedSize();
816
+ }
817
+ if (size == 0) {
818
+ this.estimatedSize = LayoutConstants.EMPTY_COMPOUND_NODE_SIZE;
819
+ } else {
820
+ this.estimatedSize = size / Math.sqrt(this.nodes.length);
821
+ }
822
+ return this.estimatedSize;
823
+ };
824
+ LGraph.prototype.updateConnected = function() {
825
+ var self = this;
826
+ if (this.nodes.length == 0) {
827
+ this.isConnected = true;
828
+ return;
829
+ }
830
+ var queue = new LinkedList();
831
+ var visited = /* @__PURE__ */ new Set();
832
+ var currentNode = this.nodes[0];
833
+ var neighborEdges;
834
+ var currentNeighbor;
835
+ var childrenOfNode = currentNode.withChildren();
836
+ childrenOfNode.forEach(function(node) {
837
+ queue.push(node);
838
+ visited.add(node);
839
+ });
840
+ while (queue.length !== 0) {
841
+ currentNode = queue.shift();
842
+ neighborEdges = currentNode.getEdges();
843
+ var size = neighborEdges.length;
844
+ for (var i = 0; i < size; i++) {
845
+ var neighborEdge = neighborEdges[i];
846
+ currentNeighbor = neighborEdge.getOtherEndInGraph(currentNode, this);
847
+ if (currentNeighbor != null && !visited.has(currentNeighbor)) {
848
+ var childrenOfNeighbor = currentNeighbor.withChildren();
849
+ childrenOfNeighbor.forEach(function(node) {
850
+ queue.push(node);
851
+ visited.add(node);
852
+ });
853
+ }
854
+ }
855
+ }
856
+ this.isConnected = false;
857
+ if (visited.size >= this.nodes.length) {
858
+ var noOfVisitedInThisGraph = 0;
859
+ visited.forEach(function(visitedNode) {
860
+ if (visitedNode.owner == self) {
861
+ noOfVisitedInThisGraph++;
862
+ }
863
+ });
864
+ if (noOfVisitedInThisGraph == this.nodes.length) {
865
+ this.isConnected = true;
866
+ }
867
+ }
868
+ };
869
+ module2.exports = LGraph;
870
+ },
871
+ /* 7 */
872
+ /***/
873
+ function(module2, exports2, __webpack_require__) {
874
+ var LGraph;
875
+ var LEdge = __webpack_require__(1);
876
+ function LGraphManager(layout) {
877
+ LGraph = __webpack_require__(6);
878
+ this.layout = layout;
879
+ this.graphs = [];
880
+ this.edges = [];
881
+ }
882
+ LGraphManager.prototype.addRoot = function() {
883
+ var ngraph = this.layout.newGraph();
884
+ var nnode = this.layout.newNode(null);
885
+ var root = this.add(ngraph, nnode);
886
+ this.setRootGraph(root);
887
+ return this.rootGraph;
888
+ };
889
+ LGraphManager.prototype.add = function(newGraph, parentNode, newEdge, sourceNode, targetNode) {
890
+ if (newEdge == null && sourceNode == null && targetNode == null) {
891
+ if (newGraph == null) {
892
+ throw "Graph is null!";
893
+ }
894
+ if (parentNode == null) {
895
+ throw "Parent node is null!";
896
+ }
897
+ if (this.graphs.indexOf(newGraph) > -1) {
898
+ throw "Graph already in this graph mgr!";
899
+ }
900
+ this.graphs.push(newGraph);
901
+ if (newGraph.parent != null) {
902
+ throw "Already has a parent!";
903
+ }
904
+ if (parentNode.child != null) {
905
+ throw "Already has a child!";
906
+ }
907
+ newGraph.parent = parentNode;
908
+ parentNode.child = newGraph;
909
+ return newGraph;
910
+ } else {
911
+ targetNode = newEdge;
912
+ sourceNode = parentNode;
913
+ newEdge = newGraph;
914
+ var sourceGraph = sourceNode.getOwner();
915
+ var targetGraph = targetNode.getOwner();
916
+ if (!(sourceGraph != null && sourceGraph.getGraphManager() == this)) {
917
+ throw "Source not in this graph mgr!";
918
+ }
919
+ if (!(targetGraph != null && targetGraph.getGraphManager() == this)) {
920
+ throw "Target not in this graph mgr!";
921
+ }
922
+ if (sourceGraph == targetGraph) {
923
+ newEdge.isInterGraph = false;
924
+ return sourceGraph.add(newEdge, sourceNode, targetNode);
925
+ } else {
926
+ newEdge.isInterGraph = true;
927
+ newEdge.source = sourceNode;
928
+ newEdge.target = targetNode;
929
+ if (this.edges.indexOf(newEdge) > -1) {
930
+ throw "Edge already in inter-graph edge list!";
931
+ }
932
+ this.edges.push(newEdge);
933
+ if (!(newEdge.source != null && newEdge.target != null)) {
934
+ throw "Edge source and/or target is null!";
935
+ }
936
+ if (!(newEdge.source.edges.indexOf(newEdge) == -1 && newEdge.target.edges.indexOf(newEdge) == -1)) {
937
+ throw "Edge already in source and/or target incidency list!";
938
+ }
939
+ newEdge.source.edges.push(newEdge);
940
+ newEdge.target.edges.push(newEdge);
941
+ return newEdge;
942
+ }
943
+ }
944
+ };
945
+ LGraphManager.prototype.remove = function(lObj) {
946
+ if (lObj instanceof LGraph) {
947
+ var graph = lObj;
948
+ if (graph.getGraphManager() != this) {
949
+ throw "Graph not in this graph mgr";
950
+ }
951
+ if (!(graph == this.rootGraph || graph.parent != null && graph.parent.graphManager == this)) {
952
+ throw "Invalid parent node!";
953
+ }
954
+ var edgesToBeRemoved = [];
955
+ edgesToBeRemoved = edgesToBeRemoved.concat(graph.getEdges());
956
+ var edge;
957
+ var s = edgesToBeRemoved.length;
958
+ for (var i = 0; i < s; i++) {
959
+ edge = edgesToBeRemoved[i];
960
+ graph.remove(edge);
961
+ }
962
+ var nodesToBeRemoved = [];
963
+ nodesToBeRemoved = nodesToBeRemoved.concat(graph.getNodes());
964
+ var node;
965
+ s = nodesToBeRemoved.length;
966
+ for (var i = 0; i < s; i++) {
967
+ node = nodesToBeRemoved[i];
968
+ graph.remove(node);
969
+ }
970
+ if (graph == this.rootGraph) {
971
+ this.setRootGraph(null);
972
+ }
973
+ var index = this.graphs.indexOf(graph);
974
+ this.graphs.splice(index, 1);
975
+ graph.parent = null;
976
+ } else if (lObj instanceof LEdge) {
977
+ edge = lObj;
978
+ if (edge == null) {
979
+ throw "Edge is null!";
980
+ }
981
+ if (!edge.isInterGraph) {
982
+ throw "Not an inter-graph edge!";
983
+ }
984
+ if (!(edge.source != null && edge.target != null)) {
985
+ throw "Source and/or target is null!";
986
+ }
987
+ if (!(edge.source.edges.indexOf(edge) != -1 && edge.target.edges.indexOf(edge) != -1)) {
988
+ throw "Source and/or target doesn't know this edge!";
989
+ }
990
+ var index = edge.source.edges.indexOf(edge);
991
+ edge.source.edges.splice(index, 1);
992
+ index = edge.target.edges.indexOf(edge);
993
+ edge.target.edges.splice(index, 1);
994
+ if (!(edge.source.owner != null && edge.source.owner.getGraphManager() != null)) {
995
+ throw "Edge owner graph or owner graph manager is null!";
996
+ }
997
+ if (edge.source.owner.getGraphManager().edges.indexOf(edge) == -1) {
998
+ throw "Not in owner graph manager's edge list!";
999
+ }
1000
+ var index = edge.source.owner.getGraphManager().edges.indexOf(edge);
1001
+ edge.source.owner.getGraphManager().edges.splice(index, 1);
1002
+ }
1003
+ };
1004
+ LGraphManager.prototype.updateBounds = function() {
1005
+ this.rootGraph.updateBounds(true);
1006
+ };
1007
+ LGraphManager.prototype.getGraphs = function() {
1008
+ return this.graphs;
1009
+ };
1010
+ LGraphManager.prototype.getAllNodes = function() {
1011
+ if (this.allNodes == null) {
1012
+ var nodeList = [];
1013
+ var graphs = this.getGraphs();
1014
+ var s = graphs.length;
1015
+ for (var i = 0; i < s; i++) {
1016
+ nodeList = nodeList.concat(graphs[i].getNodes());
1017
+ }
1018
+ this.allNodes = nodeList;
1019
+ }
1020
+ return this.allNodes;
1021
+ };
1022
+ LGraphManager.prototype.resetAllNodes = function() {
1023
+ this.allNodes = null;
1024
+ };
1025
+ LGraphManager.prototype.resetAllEdges = function() {
1026
+ this.allEdges = null;
1027
+ };
1028
+ LGraphManager.prototype.resetAllNodesToApplyGravitation = function() {
1029
+ this.allNodesToApplyGravitation = null;
1030
+ };
1031
+ LGraphManager.prototype.getAllEdges = function() {
1032
+ if (this.allEdges == null) {
1033
+ var edgeList = [];
1034
+ var graphs = this.getGraphs();
1035
+ graphs.length;
1036
+ for (var i = 0; i < graphs.length; i++) {
1037
+ edgeList = edgeList.concat(graphs[i].getEdges());
1038
+ }
1039
+ edgeList = edgeList.concat(this.edges);
1040
+ this.allEdges = edgeList;
1041
+ }
1042
+ return this.allEdges;
1043
+ };
1044
+ LGraphManager.prototype.getAllNodesToApplyGravitation = function() {
1045
+ return this.allNodesToApplyGravitation;
1046
+ };
1047
+ LGraphManager.prototype.setAllNodesToApplyGravitation = function(nodeList) {
1048
+ if (this.allNodesToApplyGravitation != null) {
1049
+ throw "assert failed";
1050
+ }
1051
+ this.allNodesToApplyGravitation = nodeList;
1052
+ };
1053
+ LGraphManager.prototype.getRoot = function() {
1054
+ return this.rootGraph;
1055
+ };
1056
+ LGraphManager.prototype.setRootGraph = function(graph) {
1057
+ if (graph.getGraphManager() != this) {
1058
+ throw "Root not in this graph mgr!";
1059
+ }
1060
+ this.rootGraph = graph;
1061
+ if (graph.parent == null) {
1062
+ graph.parent = this.layout.newNode("Root node");
1063
+ }
1064
+ };
1065
+ LGraphManager.prototype.getLayout = function() {
1066
+ return this.layout;
1067
+ };
1068
+ LGraphManager.prototype.isOneAncestorOfOther = function(firstNode, secondNode) {
1069
+ if (!(firstNode != null && secondNode != null)) {
1070
+ throw "assert failed";
1071
+ }
1072
+ if (firstNode == secondNode) {
1073
+ return true;
1074
+ }
1075
+ var ownerGraph = firstNode.getOwner();
1076
+ var parentNode;
1077
+ do {
1078
+ parentNode = ownerGraph.getParent();
1079
+ if (parentNode == null) {
1080
+ break;
1081
+ }
1082
+ if (parentNode == secondNode) {
1083
+ return true;
1084
+ }
1085
+ ownerGraph = parentNode.getOwner();
1086
+ if (ownerGraph == null) {
1087
+ break;
1088
+ }
1089
+ } while (true);
1090
+ ownerGraph = secondNode.getOwner();
1091
+ do {
1092
+ parentNode = ownerGraph.getParent();
1093
+ if (parentNode == null) {
1094
+ break;
1095
+ }
1096
+ if (parentNode == firstNode) {
1097
+ return true;
1098
+ }
1099
+ ownerGraph = parentNode.getOwner();
1100
+ if (ownerGraph == null) {
1101
+ break;
1102
+ }
1103
+ } while (true);
1104
+ return false;
1105
+ };
1106
+ LGraphManager.prototype.calcLowestCommonAncestors = function() {
1107
+ var edge;
1108
+ var sourceNode;
1109
+ var targetNode;
1110
+ var sourceAncestorGraph;
1111
+ var targetAncestorGraph;
1112
+ var edges = this.getAllEdges();
1113
+ var s = edges.length;
1114
+ for (var i = 0; i < s; i++) {
1115
+ edge = edges[i];
1116
+ sourceNode = edge.source;
1117
+ targetNode = edge.target;
1118
+ edge.lca = null;
1119
+ edge.sourceInLca = sourceNode;
1120
+ edge.targetInLca = targetNode;
1121
+ if (sourceNode == targetNode) {
1122
+ edge.lca = sourceNode.getOwner();
1123
+ continue;
1124
+ }
1125
+ sourceAncestorGraph = sourceNode.getOwner();
1126
+ while (edge.lca == null) {
1127
+ edge.targetInLca = targetNode;
1128
+ targetAncestorGraph = targetNode.getOwner();
1129
+ while (edge.lca == null) {
1130
+ if (targetAncestorGraph == sourceAncestorGraph) {
1131
+ edge.lca = targetAncestorGraph;
1132
+ break;
1133
+ }
1134
+ if (targetAncestorGraph == this.rootGraph) {
1135
+ break;
1136
+ }
1137
+ if (edge.lca != null) {
1138
+ throw "assert failed";
1139
+ }
1140
+ edge.targetInLca = targetAncestorGraph.getParent();
1141
+ targetAncestorGraph = edge.targetInLca.getOwner();
1142
+ }
1143
+ if (sourceAncestorGraph == this.rootGraph) {
1144
+ break;
1145
+ }
1146
+ if (edge.lca == null) {
1147
+ edge.sourceInLca = sourceAncestorGraph.getParent();
1148
+ sourceAncestorGraph = edge.sourceInLca.getOwner();
1149
+ }
1150
+ }
1151
+ if (edge.lca == null) {
1152
+ throw "assert failed";
1153
+ }
1154
+ }
1155
+ };
1156
+ LGraphManager.prototype.calcLowestCommonAncestor = function(firstNode, secondNode) {
1157
+ if (firstNode == secondNode) {
1158
+ return firstNode.getOwner();
1159
+ }
1160
+ var firstOwnerGraph = firstNode.getOwner();
1161
+ do {
1162
+ if (firstOwnerGraph == null) {
1163
+ break;
1164
+ }
1165
+ var secondOwnerGraph = secondNode.getOwner();
1166
+ do {
1167
+ if (secondOwnerGraph == null) {
1168
+ break;
1169
+ }
1170
+ if (secondOwnerGraph == firstOwnerGraph) {
1171
+ return secondOwnerGraph;
1172
+ }
1173
+ secondOwnerGraph = secondOwnerGraph.getParent().getOwner();
1174
+ } while (true);
1175
+ firstOwnerGraph = firstOwnerGraph.getParent().getOwner();
1176
+ } while (true);
1177
+ return firstOwnerGraph;
1178
+ };
1179
+ LGraphManager.prototype.calcInclusionTreeDepths = function(graph, depth) {
1180
+ if (graph == null && depth == null) {
1181
+ graph = this.rootGraph;
1182
+ depth = 1;
1183
+ }
1184
+ var node;
1185
+ var nodes = graph.getNodes();
1186
+ var s = nodes.length;
1187
+ for (var i = 0; i < s; i++) {
1188
+ node = nodes[i];
1189
+ node.inclusionTreeDepth = depth;
1190
+ if (node.child != null) {
1191
+ this.calcInclusionTreeDepths(node.child, depth + 1);
1192
+ }
1193
+ }
1194
+ };
1195
+ LGraphManager.prototype.includesInvalidEdge = function() {
1196
+ var edge;
1197
+ var edgesToRemove = [];
1198
+ var s = this.edges.length;
1199
+ for (var i = 0; i < s; i++) {
1200
+ edge = this.edges[i];
1201
+ if (this.isOneAncestorOfOther(edge.source, edge.target)) {
1202
+ edgesToRemove.push(edge);
1203
+ }
1204
+ }
1205
+ for (var i = 0; i < edgesToRemove.length; i++) {
1206
+ this.remove(edgesToRemove[i]);
1207
+ }
1208
+ return false;
1209
+ };
1210
+ module2.exports = LGraphManager;
1211
+ },
1212
+ /* 8 */
1213
+ /***/
1214
+ function(module2, exports2, __webpack_require__) {
1215
+ var Point2 = __webpack_require__(12);
1216
+ function IGeometry() {
1217
+ }
1218
+ IGeometry.calcSeparationAmount = function(rectA, rectB, overlapAmount, separationBuffer) {
1219
+ if (!rectA.intersects(rectB)) {
1220
+ throw "assert failed";
1221
+ }
1222
+ var directions = new Array(2);
1223
+ this.decideDirectionsForOverlappingNodes(rectA, rectB, directions);
1224
+ overlapAmount[0] = Math.min(rectA.getRight(), rectB.getRight()) - Math.max(rectA.x, rectB.x);
1225
+ overlapAmount[1] = Math.min(rectA.getBottom(), rectB.getBottom()) - Math.max(rectA.y, rectB.y);
1226
+ if (rectA.getX() <= rectB.getX() && rectA.getRight() >= rectB.getRight()) {
1227
+ overlapAmount[0] += Math.min(rectB.getX() - rectA.getX(), rectA.getRight() - rectB.getRight());
1228
+ } else if (rectB.getX() <= rectA.getX() && rectB.getRight() >= rectA.getRight()) {
1229
+ overlapAmount[0] += Math.min(rectA.getX() - rectB.getX(), rectB.getRight() - rectA.getRight());
1230
+ }
1231
+ if (rectA.getY() <= rectB.getY() && rectA.getBottom() >= rectB.getBottom()) {
1232
+ overlapAmount[1] += Math.min(rectB.getY() - rectA.getY(), rectA.getBottom() - rectB.getBottom());
1233
+ } else if (rectB.getY() <= rectA.getY() && rectB.getBottom() >= rectA.getBottom()) {
1234
+ overlapAmount[1] += Math.min(rectA.getY() - rectB.getY(), rectB.getBottom() - rectA.getBottom());
1235
+ }
1236
+ var slope = Math.abs((rectB.getCenterY() - rectA.getCenterY()) / (rectB.getCenterX() - rectA.getCenterX()));
1237
+ if (rectB.getCenterY() === rectA.getCenterY() && rectB.getCenterX() === rectA.getCenterX()) {
1238
+ slope = 1;
1239
+ }
1240
+ var moveByY = slope * overlapAmount[0];
1241
+ var moveByX = overlapAmount[1] / slope;
1242
+ if (overlapAmount[0] < moveByX) {
1243
+ moveByX = overlapAmount[0];
1244
+ } else {
1245
+ moveByY = overlapAmount[1];
1246
+ }
1247
+ overlapAmount[0] = -1 * directions[0] * (moveByX / 2 + separationBuffer);
1248
+ overlapAmount[1] = -1 * directions[1] * (moveByY / 2 + separationBuffer);
1249
+ };
1250
+ IGeometry.decideDirectionsForOverlappingNodes = function(rectA, rectB, directions) {
1251
+ if (rectA.getCenterX() < rectB.getCenterX()) {
1252
+ directions[0] = -1;
1253
+ } else {
1254
+ directions[0] = 1;
1255
+ }
1256
+ if (rectA.getCenterY() < rectB.getCenterY()) {
1257
+ directions[1] = -1;
1258
+ } else {
1259
+ directions[1] = 1;
1260
+ }
1261
+ };
1262
+ IGeometry.getIntersection2 = function(rectA, rectB, result) {
1263
+ var p1x = rectA.getCenterX();
1264
+ var p1y = rectA.getCenterY();
1265
+ var p2x = rectB.getCenterX();
1266
+ var p2y = rectB.getCenterY();
1267
+ if (rectA.intersects(rectB)) {
1268
+ result[0] = p1x;
1269
+ result[1] = p1y;
1270
+ result[2] = p2x;
1271
+ result[3] = p2y;
1272
+ return true;
1273
+ }
1274
+ var topLeftAx = rectA.getX();
1275
+ var topLeftAy = rectA.getY();
1276
+ var topRightAx = rectA.getRight();
1277
+ var bottomLeftAx = rectA.getX();
1278
+ var bottomLeftAy = rectA.getBottom();
1279
+ var bottomRightAx = rectA.getRight();
1280
+ var halfWidthA = rectA.getWidthHalf();
1281
+ var halfHeightA = rectA.getHeightHalf();
1282
+ var topLeftBx = rectB.getX();
1283
+ var topLeftBy = rectB.getY();
1284
+ var topRightBx = rectB.getRight();
1285
+ var bottomLeftBx = rectB.getX();
1286
+ var bottomLeftBy = rectB.getBottom();
1287
+ var bottomRightBx = rectB.getRight();
1288
+ var halfWidthB = rectB.getWidthHalf();
1289
+ var halfHeightB = rectB.getHeightHalf();
1290
+ var clipPointAFound = false;
1291
+ var clipPointBFound = false;
1292
+ if (p1x === p2x) {
1293
+ if (p1y > p2y) {
1294
+ result[0] = p1x;
1295
+ result[1] = topLeftAy;
1296
+ result[2] = p2x;
1297
+ result[3] = bottomLeftBy;
1298
+ return false;
1299
+ } else if (p1y < p2y) {
1300
+ result[0] = p1x;
1301
+ result[1] = bottomLeftAy;
1302
+ result[2] = p2x;
1303
+ result[3] = topLeftBy;
1304
+ return false;
1305
+ } else ;
1306
+ } else if (p1y === p2y) {
1307
+ if (p1x > p2x) {
1308
+ result[0] = topLeftAx;
1309
+ result[1] = p1y;
1310
+ result[2] = topRightBx;
1311
+ result[3] = p2y;
1312
+ return false;
1313
+ } else if (p1x < p2x) {
1314
+ result[0] = topRightAx;
1315
+ result[1] = p1y;
1316
+ result[2] = topLeftBx;
1317
+ result[3] = p2y;
1318
+ return false;
1319
+ } else ;
1320
+ } else {
1321
+ var slopeA = rectA.height / rectA.width;
1322
+ var slopeB = rectB.height / rectB.width;
1323
+ var slopePrime = (p2y - p1y) / (p2x - p1x);
1324
+ var cardinalDirectionA = void 0;
1325
+ var cardinalDirectionB = void 0;
1326
+ var tempPointAx = void 0;
1327
+ var tempPointAy = void 0;
1328
+ var tempPointBx = void 0;
1329
+ var tempPointBy = void 0;
1330
+ if (-slopeA === slopePrime) {
1331
+ if (p1x > p2x) {
1332
+ result[0] = bottomLeftAx;
1333
+ result[1] = bottomLeftAy;
1334
+ clipPointAFound = true;
1335
+ } else {
1336
+ result[0] = topRightAx;
1337
+ result[1] = topLeftAy;
1338
+ clipPointAFound = true;
1339
+ }
1340
+ } else if (slopeA === slopePrime) {
1341
+ if (p1x > p2x) {
1342
+ result[0] = topLeftAx;
1343
+ result[1] = topLeftAy;
1344
+ clipPointAFound = true;
1345
+ } else {
1346
+ result[0] = bottomRightAx;
1347
+ result[1] = bottomLeftAy;
1348
+ clipPointAFound = true;
1349
+ }
1350
+ }
1351
+ if (-slopeB === slopePrime) {
1352
+ if (p2x > p1x) {
1353
+ result[2] = bottomLeftBx;
1354
+ result[3] = bottomLeftBy;
1355
+ clipPointBFound = true;
1356
+ } else {
1357
+ result[2] = topRightBx;
1358
+ result[3] = topLeftBy;
1359
+ clipPointBFound = true;
1360
+ }
1361
+ } else if (slopeB === slopePrime) {
1362
+ if (p2x > p1x) {
1363
+ result[2] = topLeftBx;
1364
+ result[3] = topLeftBy;
1365
+ clipPointBFound = true;
1366
+ } else {
1367
+ result[2] = bottomRightBx;
1368
+ result[3] = bottomLeftBy;
1369
+ clipPointBFound = true;
1370
+ }
1371
+ }
1372
+ if (clipPointAFound && clipPointBFound) {
1373
+ return false;
1374
+ }
1375
+ if (p1x > p2x) {
1376
+ if (p1y > p2y) {
1377
+ cardinalDirectionA = this.getCardinalDirection(slopeA, slopePrime, 4);
1378
+ cardinalDirectionB = this.getCardinalDirection(slopeB, slopePrime, 2);
1379
+ } else {
1380
+ cardinalDirectionA = this.getCardinalDirection(-slopeA, slopePrime, 3);
1381
+ cardinalDirectionB = this.getCardinalDirection(-slopeB, slopePrime, 1);
1382
+ }
1383
+ } else {
1384
+ if (p1y > p2y) {
1385
+ cardinalDirectionA = this.getCardinalDirection(-slopeA, slopePrime, 1);
1386
+ cardinalDirectionB = this.getCardinalDirection(-slopeB, slopePrime, 3);
1387
+ } else {
1388
+ cardinalDirectionA = this.getCardinalDirection(slopeA, slopePrime, 2);
1389
+ cardinalDirectionB = this.getCardinalDirection(slopeB, slopePrime, 4);
1390
+ }
1391
+ }
1392
+ if (!clipPointAFound) {
1393
+ switch (cardinalDirectionA) {
1394
+ case 1:
1395
+ tempPointAy = topLeftAy;
1396
+ tempPointAx = p1x + -halfHeightA / slopePrime;
1397
+ result[0] = tempPointAx;
1398
+ result[1] = tempPointAy;
1399
+ break;
1400
+ case 2:
1401
+ tempPointAx = bottomRightAx;
1402
+ tempPointAy = p1y + halfWidthA * slopePrime;
1403
+ result[0] = tempPointAx;
1404
+ result[1] = tempPointAy;
1405
+ break;
1406
+ case 3:
1407
+ tempPointAy = bottomLeftAy;
1408
+ tempPointAx = p1x + halfHeightA / slopePrime;
1409
+ result[0] = tempPointAx;
1410
+ result[1] = tempPointAy;
1411
+ break;
1412
+ case 4:
1413
+ tempPointAx = bottomLeftAx;
1414
+ tempPointAy = p1y + -halfWidthA * slopePrime;
1415
+ result[0] = tempPointAx;
1416
+ result[1] = tempPointAy;
1417
+ break;
1418
+ }
1419
+ }
1420
+ if (!clipPointBFound) {
1421
+ switch (cardinalDirectionB) {
1422
+ case 1:
1423
+ tempPointBy = topLeftBy;
1424
+ tempPointBx = p2x + -halfHeightB / slopePrime;
1425
+ result[2] = tempPointBx;
1426
+ result[3] = tempPointBy;
1427
+ break;
1428
+ case 2:
1429
+ tempPointBx = bottomRightBx;
1430
+ tempPointBy = p2y + halfWidthB * slopePrime;
1431
+ result[2] = tempPointBx;
1432
+ result[3] = tempPointBy;
1433
+ break;
1434
+ case 3:
1435
+ tempPointBy = bottomLeftBy;
1436
+ tempPointBx = p2x + halfHeightB / slopePrime;
1437
+ result[2] = tempPointBx;
1438
+ result[3] = tempPointBy;
1439
+ break;
1440
+ case 4:
1441
+ tempPointBx = bottomLeftBx;
1442
+ tempPointBy = p2y + -halfWidthB * slopePrime;
1443
+ result[2] = tempPointBx;
1444
+ result[3] = tempPointBy;
1445
+ break;
1446
+ }
1447
+ }
1448
+ }
1449
+ return false;
1450
+ };
1451
+ IGeometry.getCardinalDirection = function(slope, slopePrime, line) {
1452
+ if (slope > slopePrime) {
1453
+ return line;
1454
+ } else {
1455
+ return 1 + line % 4;
1456
+ }
1457
+ };
1458
+ IGeometry.getIntersection = function(s1, s2, f1, f2) {
1459
+ if (f2 == null) {
1460
+ return this.getIntersection2(s1, s2, f1);
1461
+ }
1462
+ var x1 = s1.x;
1463
+ var y1 = s1.y;
1464
+ var x2 = s2.x;
1465
+ var y2 = s2.y;
1466
+ var x3 = f1.x;
1467
+ var y3 = f1.y;
1468
+ var x4 = f2.x;
1469
+ var y4 = f2.y;
1470
+ var x = void 0, y = void 0;
1471
+ var a1 = void 0, a2 = void 0, b1 = void 0, b2 = void 0, c1 = void 0, c2 = void 0;
1472
+ var denom = void 0;
1473
+ a1 = y2 - y1;
1474
+ b1 = x1 - x2;
1475
+ c1 = x2 * y1 - x1 * y2;
1476
+ a2 = y4 - y3;
1477
+ b2 = x3 - x4;
1478
+ c2 = x4 * y3 - x3 * y4;
1479
+ denom = a1 * b2 - a2 * b1;
1480
+ if (denom === 0) {
1481
+ return null;
1482
+ }
1483
+ x = (b1 * c2 - b2 * c1) / denom;
1484
+ y = (a2 * c1 - a1 * c2) / denom;
1485
+ return new Point2(x, y);
1486
+ };
1487
+ IGeometry.angleOfVector = function(Cx, Cy, Nx, Ny) {
1488
+ var C_angle = void 0;
1489
+ if (Cx !== Nx) {
1490
+ C_angle = Math.atan((Ny - Cy) / (Nx - Cx));
1491
+ if (Nx < Cx) {
1492
+ C_angle += Math.PI;
1493
+ } else if (Ny < Cy) {
1494
+ C_angle += this.TWO_PI;
1495
+ }
1496
+ } else if (Ny < Cy) {
1497
+ C_angle = this.ONE_AND_HALF_PI;
1498
+ } else {
1499
+ C_angle = this.HALF_PI;
1500
+ }
1501
+ return C_angle;
1502
+ };
1503
+ IGeometry.doIntersect = function(p1, p2, p3, p4) {
1504
+ var a = p1.x;
1505
+ var b = p1.y;
1506
+ var c = p2.x;
1507
+ var d = p2.y;
1508
+ var p = p3.x;
1509
+ var q = p3.y;
1510
+ var r = p4.x;
1511
+ var s = p4.y;
1512
+ var det = (c - a) * (s - q) - (r - p) * (d - b);
1513
+ if (det === 0) {
1514
+ return false;
1515
+ } else {
1516
+ var lambda = ((s - q) * (r - a) + (p - r) * (s - b)) / det;
1517
+ var gamma = ((b - d) * (r - a) + (c - a) * (s - b)) / det;
1518
+ return 0 < lambda && lambda < 1 && 0 < gamma && gamma < 1;
1519
+ }
1520
+ };
1521
+ IGeometry.findCircleLineIntersections = function(Ex, Ey, Lx, Ly, Cx, Cy, r) {
1522
+ var a = (Lx - Ex) * (Lx - Ex) + (Ly - Ey) * (Ly - Ey);
1523
+ var b = 2 * ((Ex - Cx) * (Lx - Ex) + (Ey - Cy) * (Ly - Ey));
1524
+ var c = (Ex - Cx) * (Ex - Cx) + (Ey - Cy) * (Ey - Cy) - r * r;
1525
+ var disc = b * b - 4 * a * c;
1526
+ if (disc >= 0) {
1527
+ var t1 = (-b + Math.sqrt(b * b - 4 * a * c)) / (2 * a);
1528
+ var t2 = (-b - Math.sqrt(b * b - 4 * a * c)) / (2 * a);
1529
+ var intersections = null;
1530
+ if (t1 >= 0 && t1 <= 1) {
1531
+ return [t1];
1532
+ }
1533
+ if (t2 >= 0 && t2 <= 1) {
1534
+ return [t2];
1535
+ }
1536
+ return intersections;
1537
+ } else return null;
1538
+ };
1539
+ IGeometry.HALF_PI = 0.5 * Math.PI;
1540
+ IGeometry.ONE_AND_HALF_PI = 1.5 * Math.PI;
1541
+ IGeometry.TWO_PI = 2 * Math.PI;
1542
+ IGeometry.THREE_PI = 3 * Math.PI;
1543
+ module2.exports = IGeometry;
1544
+ },
1545
+ /* 9 */
1546
+ /***/
1547
+ function(module2, exports2, __webpack_require__) {
1548
+ function IMath() {
1549
+ }
1550
+ IMath.sign = function(value) {
1551
+ if (value > 0) {
1552
+ return 1;
1553
+ } else if (value < 0) {
1554
+ return -1;
1555
+ } else {
1556
+ return 0;
1557
+ }
1558
+ };
1559
+ IMath.floor = function(value) {
1560
+ return value < 0 ? Math.ceil(value) : Math.floor(value);
1561
+ };
1562
+ IMath.ceil = function(value) {
1563
+ return value < 0 ? Math.floor(value) : Math.ceil(value);
1564
+ };
1565
+ module2.exports = IMath;
1566
+ },
1567
+ /* 10 */
1568
+ /***/
1569
+ function(module2, exports2, __webpack_require__) {
1570
+ function Integer() {
1571
+ }
1572
+ Integer.MAX_VALUE = 2147483647;
1573
+ Integer.MIN_VALUE = -2147483648;
1574
+ module2.exports = Integer;
1575
+ },
1576
+ /* 11 */
1577
+ /***/
1578
+ function(module2, exports2, __webpack_require__) {
1579
+ var _createClass = /* @__PURE__ */ function() {
1580
+ function defineProperties(target, props) {
1581
+ for (var i = 0; i < props.length; i++) {
1582
+ var descriptor = props[i];
1583
+ descriptor.enumerable = descriptor.enumerable || false;
1584
+ descriptor.configurable = true;
1585
+ if ("value" in descriptor) descriptor.writable = true;
1586
+ Object.defineProperty(target, descriptor.key, descriptor);
1587
+ }
1588
+ }
1589
+ return function(Constructor, protoProps, staticProps) {
1590
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
1591
+ if (staticProps) defineProperties(Constructor, staticProps);
1592
+ return Constructor;
1593
+ };
1594
+ }();
1595
+ function _classCallCheck(instance, Constructor) {
1596
+ if (!(instance instanceof Constructor)) {
1597
+ throw new TypeError("Cannot call a class as a function");
1598
+ }
1599
+ }
1600
+ var nodeFrom = function nodeFrom2(value) {
1601
+ return { value, next: null, prev: null };
1602
+ };
1603
+ var add = function add2(prev, node, next, list) {
1604
+ if (prev !== null) {
1605
+ prev.next = node;
1606
+ } else {
1607
+ list.head = node;
1608
+ }
1609
+ if (next !== null) {
1610
+ next.prev = node;
1611
+ } else {
1612
+ list.tail = node;
1613
+ }
1614
+ node.prev = prev;
1615
+ node.next = next;
1616
+ list.length++;
1617
+ return node;
1618
+ };
1619
+ var _remove = function _remove2(node, list) {
1620
+ var prev = node.prev, next = node.next;
1621
+ if (prev !== null) {
1622
+ prev.next = next;
1623
+ } else {
1624
+ list.head = next;
1625
+ }
1626
+ if (next !== null) {
1627
+ next.prev = prev;
1628
+ } else {
1629
+ list.tail = prev;
1630
+ }
1631
+ node.prev = node.next = null;
1632
+ list.length--;
1633
+ return node;
1634
+ };
1635
+ var LinkedList = function() {
1636
+ function LinkedList2(vals) {
1637
+ var _this = this;
1638
+ _classCallCheck(this, LinkedList2);
1639
+ this.length = 0;
1640
+ this.head = null;
1641
+ this.tail = null;
1642
+ if (vals != null) {
1643
+ vals.forEach(function(v) {
1644
+ return _this.push(v);
1645
+ });
1646
+ }
1647
+ }
1648
+ _createClass(LinkedList2, [{
1649
+ key: "size",
1650
+ value: function size() {
1651
+ return this.length;
1652
+ }
1653
+ }, {
1654
+ key: "insertBefore",
1655
+ value: function insertBefore(val, otherNode) {
1656
+ return add(otherNode.prev, nodeFrom(val), otherNode, this);
1657
+ }
1658
+ }, {
1659
+ key: "insertAfter",
1660
+ value: function insertAfter(val, otherNode) {
1661
+ return add(otherNode, nodeFrom(val), otherNode.next, this);
1662
+ }
1663
+ }, {
1664
+ key: "insertNodeBefore",
1665
+ value: function insertNodeBefore(newNode, otherNode) {
1666
+ return add(otherNode.prev, newNode, otherNode, this);
1667
+ }
1668
+ }, {
1669
+ key: "insertNodeAfter",
1670
+ value: function insertNodeAfter(newNode, otherNode) {
1671
+ return add(otherNode, newNode, otherNode.next, this);
1672
+ }
1673
+ }, {
1674
+ key: "push",
1675
+ value: function push(val) {
1676
+ return add(this.tail, nodeFrom(val), null, this);
1677
+ }
1678
+ }, {
1679
+ key: "unshift",
1680
+ value: function unshift(val) {
1681
+ return add(null, nodeFrom(val), this.head, this);
1682
+ }
1683
+ }, {
1684
+ key: "remove",
1685
+ value: function remove(node) {
1686
+ return _remove(node, this);
1687
+ }
1688
+ }, {
1689
+ key: "pop",
1690
+ value: function pop() {
1691
+ return _remove(this.tail, this).value;
1692
+ }
1693
+ }, {
1694
+ key: "popNode",
1695
+ value: function popNode() {
1696
+ return _remove(this.tail, this);
1697
+ }
1698
+ }, {
1699
+ key: "shift",
1700
+ value: function shift() {
1701
+ return _remove(this.head, this).value;
1702
+ }
1703
+ }, {
1704
+ key: "shiftNode",
1705
+ value: function shiftNode() {
1706
+ return _remove(this.head, this);
1707
+ }
1708
+ }, {
1709
+ key: "get_object_at",
1710
+ value: function get_object_at(index) {
1711
+ if (index <= this.length()) {
1712
+ var i = 1;
1713
+ var current = this.head;
1714
+ while (i < index) {
1715
+ current = current.next;
1716
+ i++;
1717
+ }
1718
+ return current.value;
1719
+ }
1720
+ }
1721
+ }, {
1722
+ key: "set_object_at",
1723
+ value: function set_object_at(index, value) {
1724
+ if (index <= this.length()) {
1725
+ var i = 1;
1726
+ var current = this.head;
1727
+ while (i < index) {
1728
+ current = current.next;
1729
+ i++;
1730
+ }
1731
+ current.value = value;
1732
+ }
1733
+ }
1734
+ }]);
1735
+ return LinkedList2;
1736
+ }();
1737
+ module2.exports = LinkedList;
1738
+ },
1739
+ /* 12 */
1740
+ /***/
1741
+ function(module2, exports2, __webpack_require__) {
1742
+ function Point2(x, y, p) {
1743
+ this.x = null;
1744
+ this.y = null;
1745
+ if (x == null && y == null && p == null) {
1746
+ this.x = 0;
1747
+ this.y = 0;
1748
+ } else if (typeof x == "number" && typeof y == "number" && p == null) {
1749
+ this.x = x;
1750
+ this.y = y;
1751
+ } else if (x.constructor.name == "Point" && y == null && p == null) {
1752
+ p = x;
1753
+ this.x = p.x;
1754
+ this.y = p.y;
1755
+ }
1756
+ }
1757
+ Point2.prototype.getX = function() {
1758
+ return this.x;
1759
+ };
1760
+ Point2.prototype.getY = function() {
1761
+ return this.y;
1762
+ };
1763
+ Point2.prototype.getLocation = function() {
1764
+ return new Point2(this.x, this.y);
1765
+ };
1766
+ Point2.prototype.setLocation = function(x, y, p) {
1767
+ if (x.constructor.name == "Point" && y == null && p == null) {
1768
+ p = x;
1769
+ this.setLocation(p.x, p.y);
1770
+ } else if (typeof x == "number" && typeof y == "number" && p == null) {
1771
+ if (parseInt(x) == x && parseInt(y) == y) {
1772
+ this.move(x, y);
1773
+ } else {
1774
+ this.x = Math.floor(x + 0.5);
1775
+ this.y = Math.floor(y + 0.5);
1776
+ }
1777
+ }
1778
+ };
1779
+ Point2.prototype.move = function(x, y) {
1780
+ this.x = x;
1781
+ this.y = y;
1782
+ };
1783
+ Point2.prototype.translate = function(dx, dy) {
1784
+ this.x += dx;
1785
+ this.y += dy;
1786
+ };
1787
+ Point2.prototype.equals = function(obj) {
1788
+ if (obj.constructor.name == "Point") {
1789
+ var pt = obj;
1790
+ return this.x == pt.x && this.y == pt.y;
1791
+ }
1792
+ return this == obj;
1793
+ };
1794
+ Point2.prototype.toString = function() {
1795
+ return new Point2().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
1796
+ };
1797
+ module2.exports = Point2;
1798
+ },
1799
+ /* 13 */
1800
+ /***/
1801
+ function(module2, exports2, __webpack_require__) {
1802
+ function RectangleD(x, y, width, height) {
1803
+ this.x = 0;
1804
+ this.y = 0;
1805
+ this.width = 0;
1806
+ this.height = 0;
1807
+ if (x != null && y != null && width != null && height != null) {
1808
+ this.x = x;
1809
+ this.y = y;
1810
+ this.width = width;
1811
+ this.height = height;
1812
+ }
1813
+ }
1814
+ RectangleD.prototype.getX = function() {
1815
+ return this.x;
1816
+ };
1817
+ RectangleD.prototype.setX = function(x) {
1818
+ this.x = x;
1819
+ };
1820
+ RectangleD.prototype.getY = function() {
1821
+ return this.y;
1822
+ };
1823
+ RectangleD.prototype.setY = function(y) {
1824
+ this.y = y;
1825
+ };
1826
+ RectangleD.prototype.getWidth = function() {
1827
+ return this.width;
1828
+ };
1829
+ RectangleD.prototype.setWidth = function(width) {
1830
+ this.width = width;
1831
+ };
1832
+ RectangleD.prototype.getHeight = function() {
1833
+ return this.height;
1834
+ };
1835
+ RectangleD.prototype.setHeight = function(height) {
1836
+ this.height = height;
1837
+ };
1838
+ RectangleD.prototype.getRight = function() {
1839
+ return this.x + this.width;
1840
+ };
1841
+ RectangleD.prototype.getBottom = function() {
1842
+ return this.y + this.height;
1843
+ };
1844
+ RectangleD.prototype.intersects = function(a) {
1845
+ if (this.getRight() < a.x) {
1846
+ return false;
1847
+ }
1848
+ if (this.getBottom() < a.y) {
1849
+ return false;
1850
+ }
1851
+ if (a.getRight() < this.x) {
1852
+ return false;
1853
+ }
1854
+ if (a.getBottom() < this.y) {
1855
+ return false;
1856
+ }
1857
+ return true;
1858
+ };
1859
+ RectangleD.prototype.getCenterX = function() {
1860
+ return this.x + this.width / 2;
1861
+ };
1862
+ RectangleD.prototype.getMinX = function() {
1863
+ return this.getX();
1864
+ };
1865
+ RectangleD.prototype.getMaxX = function() {
1866
+ return this.getX() + this.width;
1867
+ };
1868
+ RectangleD.prototype.getCenterY = function() {
1869
+ return this.y + this.height / 2;
1870
+ };
1871
+ RectangleD.prototype.getMinY = function() {
1872
+ return this.getY();
1873
+ };
1874
+ RectangleD.prototype.getMaxY = function() {
1875
+ return this.getY() + this.height;
1876
+ };
1877
+ RectangleD.prototype.getWidthHalf = function() {
1878
+ return this.width / 2;
1879
+ };
1880
+ RectangleD.prototype.getHeightHalf = function() {
1881
+ return this.height / 2;
1882
+ };
1883
+ module2.exports = RectangleD;
1884
+ },
1885
+ /* 14 */
1886
+ /***/
1887
+ function(module2, exports2, __webpack_require__) {
1888
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
1889
+ return typeof obj;
1890
+ } : function(obj) {
1891
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1892
+ };
1893
+ function UniqueIDGeneretor() {
1894
+ }
1895
+ UniqueIDGeneretor.lastID = 0;
1896
+ UniqueIDGeneretor.createID = function(obj) {
1897
+ if (UniqueIDGeneretor.isPrimitive(obj)) {
1898
+ return obj;
1899
+ }
1900
+ if (obj.uniqueID != null) {
1901
+ return obj.uniqueID;
1902
+ }
1903
+ obj.uniqueID = UniqueIDGeneretor.getString();
1904
+ UniqueIDGeneretor.lastID++;
1905
+ return obj.uniqueID;
1906
+ };
1907
+ UniqueIDGeneretor.getString = function(id) {
1908
+ if (id == null) id = UniqueIDGeneretor.lastID;
1909
+ return "Object#" + id;
1910
+ };
1911
+ UniqueIDGeneretor.isPrimitive = function(arg) {
1912
+ var type = typeof arg === "undefined" ? "undefined" : _typeof(arg);
1913
+ return arg == null || type != "object" && type != "function";
1914
+ };
1915
+ module2.exports = UniqueIDGeneretor;
1916
+ },
1917
+ /* 15 */
1918
+ /***/
1919
+ function(module2, exports2, __webpack_require__) {
1920
+ function _toConsumableArray(arr) {
1921
+ if (Array.isArray(arr)) {
1922
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
1923
+ arr2[i] = arr[i];
1924
+ }
1925
+ return arr2;
1926
+ } else {
1927
+ return Array.from(arr);
1928
+ }
1929
+ }
1930
+ var LayoutConstants = __webpack_require__(0);
1931
+ var LGraphManager = __webpack_require__(7);
1932
+ var LNode = __webpack_require__(3);
1933
+ var LEdge = __webpack_require__(1);
1934
+ var LGraph = __webpack_require__(6);
1935
+ var PointD = __webpack_require__(5);
1936
+ var Transform = __webpack_require__(17);
1937
+ var Emitter = __webpack_require__(29);
1938
+ function Layout2(isRemoteUse) {
1939
+ Emitter.call(this);
1940
+ this.layoutQuality = LayoutConstants.QUALITY;
1941
+ this.createBendsAsNeeded = LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED;
1942
+ this.incremental = LayoutConstants.DEFAULT_INCREMENTAL;
1943
+ this.animationOnLayout = LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT;
1944
+ this.animationDuringLayout = LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT;
1945
+ this.animationPeriod = LayoutConstants.DEFAULT_ANIMATION_PERIOD;
1946
+ this.uniformLeafNodeSizes = LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES;
1947
+ this.edgeToDummyNodes = /* @__PURE__ */ new Map();
1948
+ this.graphManager = new LGraphManager(this);
1949
+ this.isLayoutFinished = false;
1950
+ this.isSubLayout = false;
1951
+ this.isRemoteUse = false;
1952
+ if (isRemoteUse != null) {
1953
+ this.isRemoteUse = isRemoteUse;
1954
+ }
1955
+ }
1956
+ Layout2.RANDOM_SEED = 1;
1957
+ Layout2.prototype = Object.create(Emitter.prototype);
1958
+ Layout2.prototype.getGraphManager = function() {
1959
+ return this.graphManager;
1960
+ };
1961
+ Layout2.prototype.getAllNodes = function() {
1962
+ return this.graphManager.getAllNodes();
1963
+ };
1964
+ Layout2.prototype.getAllEdges = function() {
1965
+ return this.graphManager.getAllEdges();
1966
+ };
1967
+ Layout2.prototype.getAllNodesToApplyGravitation = function() {
1968
+ return this.graphManager.getAllNodesToApplyGravitation();
1969
+ };
1970
+ Layout2.prototype.newGraphManager = function() {
1971
+ var gm = new LGraphManager(this);
1972
+ this.graphManager = gm;
1973
+ return gm;
1974
+ };
1975
+ Layout2.prototype.newGraph = function(vGraph) {
1976
+ return new LGraph(null, this.graphManager, vGraph);
1977
+ };
1978
+ Layout2.prototype.newNode = function(vNode) {
1979
+ return new LNode(this.graphManager, vNode);
1980
+ };
1981
+ Layout2.prototype.newEdge = function(vEdge) {
1982
+ return new LEdge(null, null, vEdge);
1983
+ };
1984
+ Layout2.prototype.checkLayoutSuccess = function() {
1985
+ return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
1986
+ };
1987
+ Layout2.prototype.runLayout = function() {
1988
+ this.isLayoutFinished = false;
1989
+ if (this.tilingPreLayout) {
1990
+ this.tilingPreLayout();
1991
+ }
1992
+ this.initParameters();
1993
+ var isLayoutSuccessfull;
1994
+ if (this.checkLayoutSuccess()) {
1995
+ isLayoutSuccessfull = false;
1996
+ } else {
1997
+ isLayoutSuccessfull = this.layout();
1998
+ }
1999
+ if (LayoutConstants.ANIMATE === "during") {
2000
+ return false;
2001
+ }
2002
+ if (isLayoutSuccessfull) {
2003
+ if (!this.isSubLayout) {
2004
+ this.doPostLayout();
2005
+ }
2006
+ }
2007
+ if (this.tilingPostLayout) {
2008
+ this.tilingPostLayout();
2009
+ }
2010
+ this.isLayoutFinished = true;
2011
+ return isLayoutSuccessfull;
2012
+ };
2013
+ Layout2.prototype.doPostLayout = function() {
2014
+ if (!this.incremental) {
2015
+ this.transform();
2016
+ }
2017
+ this.update();
2018
+ };
2019
+ Layout2.prototype.update2 = function() {
2020
+ if (this.createBendsAsNeeded) {
2021
+ this.createBendpointsFromDummyNodes();
2022
+ this.graphManager.resetAllEdges();
2023
+ }
2024
+ if (!this.isRemoteUse) {
2025
+ var allEdges = this.graphManager.getAllEdges();
2026
+ for (var i = 0; i < allEdges.length; i++) {
2027
+ allEdges[i];
2028
+ }
2029
+ var nodes = this.graphManager.getRoot().getNodes();
2030
+ for (var i = 0; i < nodes.length; i++) {
2031
+ nodes[i];
2032
+ }
2033
+ this.update(this.graphManager.getRoot());
2034
+ }
2035
+ };
2036
+ Layout2.prototype.update = function(obj) {
2037
+ if (obj == null) {
2038
+ this.update2();
2039
+ } else if (obj instanceof LNode) {
2040
+ var node = obj;
2041
+ if (node.getChild() != null) {
2042
+ var nodes = node.getChild().getNodes();
2043
+ for (var i = 0; i < nodes.length; i++) {
2044
+ update(nodes[i]);
2045
+ }
2046
+ }
2047
+ if (node.vGraphObject != null) {
2048
+ var vNode = node.vGraphObject;
2049
+ vNode.update(node);
2050
+ }
2051
+ } else if (obj instanceof LEdge) {
2052
+ var edge = obj;
2053
+ if (edge.vGraphObject != null) {
2054
+ var vEdge = edge.vGraphObject;
2055
+ vEdge.update(edge);
2056
+ }
2057
+ } else if (obj instanceof LGraph) {
2058
+ var graph = obj;
2059
+ if (graph.vGraphObject != null) {
2060
+ var vGraph = graph.vGraphObject;
2061
+ vGraph.update(graph);
2062
+ }
2063
+ }
2064
+ };
2065
+ Layout2.prototype.initParameters = function() {
2066
+ if (!this.isSubLayout) {
2067
+ this.layoutQuality = LayoutConstants.QUALITY;
2068
+ this.animationDuringLayout = LayoutConstants.DEFAULT_ANIMATION_DURING_LAYOUT;
2069
+ this.animationPeriod = LayoutConstants.DEFAULT_ANIMATION_PERIOD;
2070
+ this.animationOnLayout = LayoutConstants.DEFAULT_ANIMATION_ON_LAYOUT;
2071
+ this.incremental = LayoutConstants.DEFAULT_INCREMENTAL;
2072
+ this.createBendsAsNeeded = LayoutConstants.DEFAULT_CREATE_BENDS_AS_NEEDED;
2073
+ this.uniformLeafNodeSizes = LayoutConstants.DEFAULT_UNIFORM_LEAF_NODE_SIZES;
2074
+ }
2075
+ if (this.animationDuringLayout) {
2076
+ this.animationOnLayout = false;
2077
+ }
2078
+ };
2079
+ Layout2.prototype.transform = function(newLeftTop) {
2080
+ if (newLeftTop == void 0) {
2081
+ this.transform(new PointD(0, 0));
2082
+ } else {
2083
+ var trans = new Transform();
2084
+ var leftTop = this.graphManager.getRoot().updateLeftTop();
2085
+ if (leftTop != null) {
2086
+ trans.setWorldOrgX(newLeftTop.x);
2087
+ trans.setWorldOrgY(newLeftTop.y);
2088
+ trans.setDeviceOrgX(leftTop.x);
2089
+ trans.setDeviceOrgY(leftTop.y);
2090
+ var nodes = this.getAllNodes();
2091
+ var node;
2092
+ for (var i = 0; i < nodes.length; i++) {
2093
+ node = nodes[i];
2094
+ node.transform(trans);
2095
+ }
2096
+ }
2097
+ }
2098
+ };
2099
+ Layout2.prototype.positionNodesRandomly = function(graph) {
2100
+ if (graph == void 0) {
2101
+ this.positionNodesRandomly(this.getGraphManager().getRoot());
2102
+ this.getGraphManager().getRoot().updateBounds(true);
2103
+ } else {
2104
+ var lNode;
2105
+ var childGraph;
2106
+ var nodes = graph.getNodes();
2107
+ for (var i = 0; i < nodes.length; i++) {
2108
+ lNode = nodes[i];
2109
+ childGraph = lNode.getChild();
2110
+ if (childGraph == null) {
2111
+ lNode.scatter();
2112
+ } else if (childGraph.getNodes().length == 0) {
2113
+ lNode.scatter();
2114
+ } else {
2115
+ this.positionNodesRandomly(childGraph);
2116
+ lNode.updateBounds();
2117
+ }
2118
+ }
2119
+ }
2120
+ };
2121
+ Layout2.prototype.getFlatForest = function() {
2122
+ var flatForest = [];
2123
+ var isForest = true;
2124
+ var allNodes = this.graphManager.getRoot().getNodes();
2125
+ var isFlat = true;
2126
+ for (var i = 0; i < allNodes.length; i++) {
2127
+ if (allNodes[i].getChild() != null) {
2128
+ isFlat = false;
2129
+ }
2130
+ }
2131
+ if (!isFlat) {
2132
+ return flatForest;
2133
+ }
2134
+ var visited = /* @__PURE__ */ new Set();
2135
+ var toBeVisited = [];
2136
+ var parents = /* @__PURE__ */ new Map();
2137
+ var unProcessedNodes = [];
2138
+ unProcessedNodes = unProcessedNodes.concat(allNodes);
2139
+ while (unProcessedNodes.length > 0 && isForest) {
2140
+ toBeVisited.push(unProcessedNodes[0]);
2141
+ while (toBeVisited.length > 0 && isForest) {
2142
+ var currentNode = toBeVisited[0];
2143
+ toBeVisited.splice(0, 1);
2144
+ visited.add(currentNode);
2145
+ var neighborEdges = currentNode.getEdges();
2146
+ for (var i = 0; i < neighborEdges.length; i++) {
2147
+ var currentNeighbor = neighborEdges[i].getOtherEnd(currentNode);
2148
+ if (parents.get(currentNode) != currentNeighbor) {
2149
+ if (!visited.has(currentNeighbor)) {
2150
+ toBeVisited.push(currentNeighbor);
2151
+ parents.set(currentNeighbor, currentNode);
2152
+ } else {
2153
+ isForest = false;
2154
+ break;
2155
+ }
2156
+ }
2157
+ }
2158
+ }
2159
+ if (!isForest) {
2160
+ flatForest = [];
2161
+ } else {
2162
+ var temp = [].concat(_toConsumableArray(visited));
2163
+ flatForest.push(temp);
2164
+ for (var i = 0; i < temp.length; i++) {
2165
+ var value = temp[i];
2166
+ var index = unProcessedNodes.indexOf(value);
2167
+ if (index > -1) {
2168
+ unProcessedNodes.splice(index, 1);
2169
+ }
2170
+ }
2171
+ visited = /* @__PURE__ */ new Set();
2172
+ parents = /* @__PURE__ */ new Map();
2173
+ }
2174
+ }
2175
+ return flatForest;
2176
+ };
2177
+ Layout2.prototype.createDummyNodesForBendpoints = function(edge) {
2178
+ var dummyNodes = [];
2179
+ var prev = edge.source;
2180
+ var graph = this.graphManager.calcLowestCommonAncestor(edge.source, edge.target);
2181
+ for (var i = 0; i < edge.bendpoints.length; i++) {
2182
+ var dummyNode = this.newNode(null);
2183
+ dummyNode.setRect(new Point(0, 0), new Dimension(1, 1));
2184
+ graph.add(dummyNode);
2185
+ var dummyEdge = this.newEdge(null);
2186
+ this.graphManager.add(dummyEdge, prev, dummyNode);
2187
+ dummyNodes.add(dummyNode);
2188
+ prev = dummyNode;
2189
+ }
2190
+ var dummyEdge = this.newEdge(null);
2191
+ this.graphManager.add(dummyEdge, prev, edge.target);
2192
+ this.edgeToDummyNodes.set(edge, dummyNodes);
2193
+ if (edge.isInterGraph()) {
2194
+ this.graphManager.remove(edge);
2195
+ } else {
2196
+ graph.remove(edge);
2197
+ }
2198
+ return dummyNodes;
2199
+ };
2200
+ Layout2.prototype.createBendpointsFromDummyNodes = function() {
2201
+ var edges = [];
2202
+ edges = edges.concat(this.graphManager.getAllEdges());
2203
+ edges = [].concat(_toConsumableArray(this.edgeToDummyNodes.keys())).concat(edges);
2204
+ for (var k = 0; k < edges.length; k++) {
2205
+ var lEdge = edges[k];
2206
+ if (lEdge.bendpoints.length > 0) {
2207
+ var path = this.edgeToDummyNodes.get(lEdge);
2208
+ for (var i = 0; i < path.length; i++) {
2209
+ var dummyNode = path[i];
2210
+ var p = new PointD(dummyNode.getCenterX(), dummyNode.getCenterY());
2211
+ var ebp = lEdge.bendpoints.get(i);
2212
+ ebp.x = p.x;
2213
+ ebp.y = p.y;
2214
+ dummyNode.getOwner().remove(dummyNode);
2215
+ }
2216
+ this.graphManager.add(lEdge, lEdge.source, lEdge.target);
2217
+ }
2218
+ }
2219
+ };
2220
+ Layout2.transform = function(sliderValue, defaultValue, minDiv, maxMul) {
2221
+ if (minDiv != void 0 && maxMul != void 0) {
2222
+ var value = defaultValue;
2223
+ if (sliderValue <= 50) {
2224
+ var minValue = defaultValue / minDiv;
2225
+ value -= (defaultValue - minValue) / 50 * (50 - sliderValue);
2226
+ } else {
2227
+ var maxValue = defaultValue * maxMul;
2228
+ value += (maxValue - defaultValue) / 50 * (sliderValue - 50);
2229
+ }
2230
+ return value;
2231
+ } else {
2232
+ var a, b;
2233
+ if (sliderValue <= 50) {
2234
+ a = 9 * defaultValue / 500;
2235
+ b = defaultValue / 10;
2236
+ } else {
2237
+ a = 9 * defaultValue / 50;
2238
+ b = -8 * defaultValue;
2239
+ }
2240
+ return a * sliderValue + b;
2241
+ }
2242
+ };
2243
+ Layout2.findCenterOfTree = function(nodes) {
2244
+ var list = [];
2245
+ list = list.concat(nodes);
2246
+ var removedNodes = [];
2247
+ var remainingDegrees = /* @__PURE__ */ new Map();
2248
+ var foundCenter = false;
2249
+ var centerNode = null;
2250
+ if (list.length == 1 || list.length == 2) {
2251
+ foundCenter = true;
2252
+ centerNode = list[0];
2253
+ }
2254
+ for (var i = 0; i < list.length; i++) {
2255
+ var node = list[i];
2256
+ var degree = node.getNeighborsList().size;
2257
+ remainingDegrees.set(node, node.getNeighborsList().size);
2258
+ if (degree == 1) {
2259
+ removedNodes.push(node);
2260
+ }
2261
+ }
2262
+ var tempList = [];
2263
+ tempList = tempList.concat(removedNodes);
2264
+ while (!foundCenter) {
2265
+ var tempList2 = [];
2266
+ tempList2 = tempList2.concat(tempList);
2267
+ tempList = [];
2268
+ for (var i = 0; i < list.length; i++) {
2269
+ var node = list[i];
2270
+ var index = list.indexOf(node);
2271
+ if (index >= 0) {
2272
+ list.splice(index, 1);
2273
+ }
2274
+ var neighbours = node.getNeighborsList();
2275
+ neighbours.forEach(function(neighbour) {
2276
+ if (removedNodes.indexOf(neighbour) < 0) {
2277
+ var otherDegree = remainingDegrees.get(neighbour);
2278
+ var newDegree = otherDegree - 1;
2279
+ if (newDegree == 1) {
2280
+ tempList.push(neighbour);
2281
+ }
2282
+ remainingDegrees.set(neighbour, newDegree);
2283
+ }
2284
+ });
2285
+ }
2286
+ removedNodes = removedNodes.concat(tempList);
2287
+ if (list.length == 1 || list.length == 2) {
2288
+ foundCenter = true;
2289
+ centerNode = list[0];
2290
+ }
2291
+ }
2292
+ return centerNode;
2293
+ };
2294
+ Layout2.prototype.setGraphManager = function(gm) {
2295
+ this.graphManager = gm;
2296
+ };
2297
+ module2.exports = Layout2;
2298
+ },
2299
+ /* 16 */
2300
+ /***/
2301
+ function(module2, exports2, __webpack_require__) {
2302
+ function RandomSeed() {
2303
+ }
2304
+ RandomSeed.seed = 1;
2305
+ RandomSeed.x = 0;
2306
+ RandomSeed.nextDouble = function() {
2307
+ RandomSeed.x = Math.sin(RandomSeed.seed++) * 1e4;
2308
+ return RandomSeed.x - Math.floor(RandomSeed.x);
2309
+ };
2310
+ module2.exports = RandomSeed;
2311
+ },
2312
+ /* 17 */
2313
+ /***/
2314
+ function(module2, exports2, __webpack_require__) {
2315
+ var PointD = __webpack_require__(5);
2316
+ function Transform(x, y) {
2317
+ this.lworldOrgX = 0;
2318
+ this.lworldOrgY = 0;
2319
+ this.ldeviceOrgX = 0;
2320
+ this.ldeviceOrgY = 0;
2321
+ this.lworldExtX = 1;
2322
+ this.lworldExtY = 1;
2323
+ this.ldeviceExtX = 1;
2324
+ this.ldeviceExtY = 1;
2325
+ }
2326
+ Transform.prototype.getWorldOrgX = function() {
2327
+ return this.lworldOrgX;
2328
+ };
2329
+ Transform.prototype.setWorldOrgX = function(wox) {
2330
+ this.lworldOrgX = wox;
2331
+ };
2332
+ Transform.prototype.getWorldOrgY = function() {
2333
+ return this.lworldOrgY;
2334
+ };
2335
+ Transform.prototype.setWorldOrgY = function(woy) {
2336
+ this.lworldOrgY = woy;
2337
+ };
2338
+ Transform.prototype.getWorldExtX = function() {
2339
+ return this.lworldExtX;
2340
+ };
2341
+ Transform.prototype.setWorldExtX = function(wex) {
2342
+ this.lworldExtX = wex;
2343
+ };
2344
+ Transform.prototype.getWorldExtY = function() {
2345
+ return this.lworldExtY;
2346
+ };
2347
+ Transform.prototype.setWorldExtY = function(wey) {
2348
+ this.lworldExtY = wey;
2349
+ };
2350
+ Transform.prototype.getDeviceOrgX = function() {
2351
+ return this.ldeviceOrgX;
2352
+ };
2353
+ Transform.prototype.setDeviceOrgX = function(dox) {
2354
+ this.ldeviceOrgX = dox;
2355
+ };
2356
+ Transform.prototype.getDeviceOrgY = function() {
2357
+ return this.ldeviceOrgY;
2358
+ };
2359
+ Transform.prototype.setDeviceOrgY = function(doy) {
2360
+ this.ldeviceOrgY = doy;
2361
+ };
2362
+ Transform.prototype.getDeviceExtX = function() {
2363
+ return this.ldeviceExtX;
2364
+ };
2365
+ Transform.prototype.setDeviceExtX = function(dex) {
2366
+ this.ldeviceExtX = dex;
2367
+ };
2368
+ Transform.prototype.getDeviceExtY = function() {
2369
+ return this.ldeviceExtY;
2370
+ };
2371
+ Transform.prototype.setDeviceExtY = function(dey) {
2372
+ this.ldeviceExtY = dey;
2373
+ };
2374
+ Transform.prototype.transformX = function(x) {
2375
+ var xDevice = 0;
2376
+ var worldExtX = this.lworldExtX;
2377
+ if (worldExtX != 0) {
2378
+ xDevice = this.ldeviceOrgX + (x - this.lworldOrgX) * this.ldeviceExtX / worldExtX;
2379
+ }
2380
+ return xDevice;
2381
+ };
2382
+ Transform.prototype.transformY = function(y) {
2383
+ var yDevice = 0;
2384
+ var worldExtY = this.lworldExtY;
2385
+ if (worldExtY != 0) {
2386
+ yDevice = this.ldeviceOrgY + (y - this.lworldOrgY) * this.ldeviceExtY / worldExtY;
2387
+ }
2388
+ return yDevice;
2389
+ };
2390
+ Transform.prototype.inverseTransformX = function(x) {
2391
+ var xWorld = 0;
2392
+ var deviceExtX = this.ldeviceExtX;
2393
+ if (deviceExtX != 0) {
2394
+ xWorld = this.lworldOrgX + (x - this.ldeviceOrgX) * this.lworldExtX / deviceExtX;
2395
+ }
2396
+ return xWorld;
2397
+ };
2398
+ Transform.prototype.inverseTransformY = function(y) {
2399
+ var yWorld = 0;
2400
+ var deviceExtY = this.ldeviceExtY;
2401
+ if (deviceExtY != 0) {
2402
+ yWorld = this.lworldOrgY + (y - this.ldeviceOrgY) * this.lworldExtY / deviceExtY;
2403
+ }
2404
+ return yWorld;
2405
+ };
2406
+ Transform.prototype.inverseTransformPoint = function(inPoint) {
2407
+ var outPoint = new PointD(this.inverseTransformX(inPoint.x), this.inverseTransformY(inPoint.y));
2408
+ return outPoint;
2409
+ };
2410
+ module2.exports = Transform;
2411
+ },
2412
+ /* 18 */
2413
+ /***/
2414
+ function(module2, exports2, __webpack_require__) {
2415
+ function _toConsumableArray(arr) {
2416
+ if (Array.isArray(arr)) {
2417
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
2418
+ arr2[i] = arr[i];
2419
+ }
2420
+ return arr2;
2421
+ } else {
2422
+ return Array.from(arr);
2423
+ }
2424
+ }
2425
+ var Layout2 = __webpack_require__(15);
2426
+ var FDLayoutConstants = __webpack_require__(4);
2427
+ var LayoutConstants = __webpack_require__(0);
2428
+ var IGeometry = __webpack_require__(8);
2429
+ var IMath = __webpack_require__(9);
2430
+ function FDLayout() {
2431
+ Layout2.call(this);
2432
+ this.useSmartIdealEdgeLengthCalculation = FDLayoutConstants.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION;
2433
+ this.gravityConstant = FDLayoutConstants.DEFAULT_GRAVITY_STRENGTH;
2434
+ this.compoundGravityConstant = FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_STRENGTH;
2435
+ this.gravityRangeFactor = FDLayoutConstants.DEFAULT_GRAVITY_RANGE_FACTOR;
2436
+ this.compoundGravityRangeFactor = FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR;
2437
+ this.displacementThresholdPerNode = 3 * FDLayoutConstants.DEFAULT_EDGE_LENGTH / 100;
2438
+ this.coolingFactor = FDLayoutConstants.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2439
+ this.initialCoolingFactor = FDLayoutConstants.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2440
+ this.totalDisplacement = 0;
2441
+ this.oldTotalDisplacement = 0;
2442
+ this.maxIterations = FDLayoutConstants.MAX_ITERATIONS;
2443
+ }
2444
+ FDLayout.prototype = Object.create(Layout2.prototype);
2445
+ for (var prop in Layout2) {
2446
+ FDLayout[prop] = Layout2[prop];
2447
+ }
2448
+ FDLayout.prototype.initParameters = function() {
2449
+ Layout2.prototype.initParameters.call(this, arguments);
2450
+ this.totalIterations = 0;
2451
+ this.notAnimatedIterations = 0;
2452
+ this.useFRGridVariant = FDLayoutConstants.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION;
2453
+ this.grid = [];
2454
+ };
2455
+ FDLayout.prototype.calcIdealEdgeLengths = function() {
2456
+ var edge;
2457
+ var originalIdealLength;
2458
+ var lcaDepth;
2459
+ var source;
2460
+ var target;
2461
+ var sizeOfSourceInLca;
2462
+ var sizeOfTargetInLca;
2463
+ var allEdges = this.getGraphManager().getAllEdges();
2464
+ for (var i = 0; i < allEdges.length; i++) {
2465
+ edge = allEdges[i];
2466
+ originalIdealLength = edge.idealLength;
2467
+ if (edge.isInterGraph) {
2468
+ source = edge.getSource();
2469
+ target = edge.getTarget();
2470
+ sizeOfSourceInLca = edge.getSourceInLca().getEstimatedSize();
2471
+ sizeOfTargetInLca = edge.getTargetInLca().getEstimatedSize();
2472
+ if (this.useSmartIdealEdgeLengthCalculation) {
2473
+ edge.idealLength += sizeOfSourceInLca + sizeOfTargetInLca - 2 * LayoutConstants.SIMPLE_NODE_SIZE;
2474
+ }
2475
+ lcaDepth = edge.getLca().getInclusionTreeDepth();
2476
+ edge.idealLength += originalIdealLength * FDLayoutConstants.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (source.getInclusionTreeDepth() + target.getInclusionTreeDepth() - 2 * lcaDepth);
2477
+ }
2478
+ }
2479
+ };
2480
+ FDLayout.prototype.initSpringEmbedder = function() {
2481
+ var s = this.getAllNodes().length;
2482
+ if (this.incremental) {
2483
+ if (s > FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) {
2484
+ this.coolingFactor = Math.max(this.coolingFactor * FDLayoutConstants.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (s - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) / (FDLayoutConstants.ADAPTATION_UPPER_NODE_LIMIT - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - FDLayoutConstants.COOLING_ADAPTATION_FACTOR));
2485
+ }
2486
+ this.maxNodeDisplacement = FDLayoutConstants.MAX_NODE_DISPLACEMENT_INCREMENTAL;
2487
+ } else {
2488
+ if (s > FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) {
2489
+ this.coolingFactor = Math.max(FDLayoutConstants.COOLING_ADAPTATION_FACTOR, 1 - (s - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) / (FDLayoutConstants.ADAPTATION_UPPER_NODE_LIMIT - FDLayoutConstants.ADAPTATION_LOWER_NODE_LIMIT) * (1 - FDLayoutConstants.COOLING_ADAPTATION_FACTOR));
2490
+ } else {
2491
+ this.coolingFactor = 1;
2492
+ }
2493
+ this.initialCoolingFactor = this.coolingFactor;
2494
+ this.maxNodeDisplacement = FDLayoutConstants.MAX_NODE_DISPLACEMENT;
2495
+ }
2496
+ this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations);
2497
+ this.displacementThresholdPerNode = 3 * FDLayoutConstants.DEFAULT_EDGE_LENGTH / 100;
2498
+ this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length;
2499
+ this.repulsionRange = this.calcRepulsionRange();
2500
+ };
2501
+ FDLayout.prototype.calcSpringForces = function() {
2502
+ var lEdges = this.getAllEdges();
2503
+ var edge;
2504
+ for (var i = 0; i < lEdges.length; i++) {
2505
+ edge = lEdges[i];
2506
+ this.calcSpringForce(edge, edge.idealLength);
2507
+ }
2508
+ };
2509
+ FDLayout.prototype.calcRepulsionForces = function() {
2510
+ var gridUpdateAllowed = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
2511
+ var forceToNodeSurroundingUpdate = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
2512
+ var i, j;
2513
+ var nodeA, nodeB;
2514
+ var lNodes = this.getAllNodes();
2515
+ var processedNodeSet;
2516
+ if (this.useFRGridVariant) {
2517
+ if (this.totalIterations % FDLayoutConstants.GRID_CALCULATION_CHECK_PERIOD == 1 && gridUpdateAllowed) {
2518
+ this.updateGrid();
2519
+ }
2520
+ processedNodeSet = /* @__PURE__ */ new Set();
2521
+ for (i = 0; i < lNodes.length; i++) {
2522
+ nodeA = lNodes[i];
2523
+ this.calculateRepulsionForceOfANode(nodeA, processedNodeSet, gridUpdateAllowed, forceToNodeSurroundingUpdate);
2524
+ processedNodeSet.add(nodeA);
2525
+ }
2526
+ } else {
2527
+ for (i = 0; i < lNodes.length; i++) {
2528
+ nodeA = lNodes[i];
2529
+ for (j = i + 1; j < lNodes.length; j++) {
2530
+ nodeB = lNodes[j];
2531
+ if (nodeA.getOwner() != nodeB.getOwner()) {
2532
+ continue;
2533
+ }
2534
+ this.calcRepulsionForce(nodeA, nodeB);
2535
+ }
2536
+ }
2537
+ }
2538
+ };
2539
+ FDLayout.prototype.calcGravitationalForces = function() {
2540
+ var node;
2541
+ var lNodes = this.getAllNodesToApplyGravitation();
2542
+ for (var i = 0; i < lNodes.length; i++) {
2543
+ node = lNodes[i];
2544
+ this.calcGravitationalForce(node);
2545
+ }
2546
+ };
2547
+ FDLayout.prototype.moveNodes = function() {
2548
+ var lNodes = this.getAllNodes();
2549
+ var node;
2550
+ for (var i = 0; i < lNodes.length; i++) {
2551
+ node = lNodes[i];
2552
+ node.move();
2553
+ }
2554
+ };
2555
+ FDLayout.prototype.calcSpringForce = function(edge, idealLength) {
2556
+ var sourceNode = edge.getSource();
2557
+ var targetNode = edge.getTarget();
2558
+ var length;
2559
+ var springForce;
2560
+ var springForceX;
2561
+ var springForceY;
2562
+ if (this.uniformLeafNodeSizes && sourceNode.getChild() == null && targetNode.getChild() == null) {
2563
+ edge.updateLengthSimple();
2564
+ } else {
2565
+ edge.updateLength();
2566
+ if (edge.isOverlapingSourceAndTarget) {
2567
+ return;
2568
+ }
2569
+ }
2570
+ length = edge.getLength();
2571
+ if (length == 0) return;
2572
+ springForce = edge.edgeElasticity * (length - idealLength);
2573
+ springForceX = springForce * (edge.lengthX / length);
2574
+ springForceY = springForce * (edge.lengthY / length);
2575
+ sourceNode.springForceX += springForceX;
2576
+ sourceNode.springForceY += springForceY;
2577
+ targetNode.springForceX -= springForceX;
2578
+ targetNode.springForceY -= springForceY;
2579
+ };
2580
+ FDLayout.prototype.calcRepulsionForce = function(nodeA, nodeB) {
2581
+ var rectA = nodeA.getRect();
2582
+ var rectB = nodeB.getRect();
2583
+ var overlapAmount = new Array(2);
2584
+ var clipPoints = new Array(4);
2585
+ var distanceX;
2586
+ var distanceY;
2587
+ var distanceSquared;
2588
+ var distance;
2589
+ var repulsionForce;
2590
+ var repulsionForceX;
2591
+ var repulsionForceY;
2592
+ if (rectA.intersects(rectB)) {
2593
+ IGeometry.calcSeparationAmount(rectA, rectB, overlapAmount, FDLayoutConstants.DEFAULT_EDGE_LENGTH / 2);
2594
+ repulsionForceX = 2 * overlapAmount[0];
2595
+ repulsionForceY = 2 * overlapAmount[1];
2596
+ var childrenConstant = nodeA.noOfChildren * nodeB.noOfChildren / (nodeA.noOfChildren + nodeB.noOfChildren);
2597
+ nodeA.repulsionForceX -= childrenConstant * repulsionForceX;
2598
+ nodeA.repulsionForceY -= childrenConstant * repulsionForceY;
2599
+ nodeB.repulsionForceX += childrenConstant * repulsionForceX;
2600
+ nodeB.repulsionForceY += childrenConstant * repulsionForceY;
2601
+ } else {
2602
+ if (this.uniformLeafNodeSizes && nodeA.getChild() == null && nodeB.getChild() == null) {
2603
+ distanceX = rectB.getCenterX() - rectA.getCenterX();
2604
+ distanceY = rectB.getCenterY() - rectA.getCenterY();
2605
+ } else {
2606
+ IGeometry.getIntersection(rectA, rectB, clipPoints);
2607
+ distanceX = clipPoints[2] - clipPoints[0];
2608
+ distanceY = clipPoints[3] - clipPoints[1];
2609
+ }
2610
+ if (Math.abs(distanceX) < FDLayoutConstants.MIN_REPULSION_DIST) {
2611
+ distanceX = IMath.sign(distanceX) * FDLayoutConstants.MIN_REPULSION_DIST;
2612
+ }
2613
+ if (Math.abs(distanceY) < FDLayoutConstants.MIN_REPULSION_DIST) {
2614
+ distanceY = IMath.sign(distanceY) * FDLayoutConstants.MIN_REPULSION_DIST;
2615
+ }
2616
+ distanceSquared = distanceX * distanceX + distanceY * distanceY;
2617
+ distance = Math.sqrt(distanceSquared);
2618
+ repulsionForce = (nodeA.nodeRepulsion / 2 + nodeB.nodeRepulsion / 2) * nodeA.noOfChildren * nodeB.noOfChildren / distanceSquared;
2619
+ repulsionForceX = repulsionForce * distanceX / distance;
2620
+ repulsionForceY = repulsionForce * distanceY / distance;
2621
+ nodeA.repulsionForceX -= repulsionForceX;
2622
+ nodeA.repulsionForceY -= repulsionForceY;
2623
+ nodeB.repulsionForceX += repulsionForceX;
2624
+ nodeB.repulsionForceY += repulsionForceY;
2625
+ }
2626
+ };
2627
+ FDLayout.prototype.calcGravitationalForce = function(node) {
2628
+ var ownerGraph;
2629
+ var ownerCenterX;
2630
+ var ownerCenterY;
2631
+ var distanceX;
2632
+ var distanceY;
2633
+ var absDistanceX;
2634
+ var absDistanceY;
2635
+ var estimatedSize;
2636
+ ownerGraph = node.getOwner();
2637
+ ownerCenterX = (ownerGraph.getRight() + ownerGraph.getLeft()) / 2;
2638
+ ownerCenterY = (ownerGraph.getTop() + ownerGraph.getBottom()) / 2;
2639
+ distanceX = node.getCenterX() - ownerCenterX;
2640
+ distanceY = node.getCenterY() - ownerCenterY;
2641
+ absDistanceX = Math.abs(distanceX) + node.getWidth() / 2;
2642
+ absDistanceY = Math.abs(distanceY) + node.getHeight() / 2;
2643
+ if (node.getOwner() == this.graphManager.getRoot()) {
2644
+ estimatedSize = ownerGraph.getEstimatedSize() * this.gravityRangeFactor;
2645
+ if (absDistanceX > estimatedSize || absDistanceY > estimatedSize) {
2646
+ node.gravitationForceX = -this.gravityConstant * distanceX;
2647
+ node.gravitationForceY = -this.gravityConstant * distanceY;
2648
+ }
2649
+ } else {
2650
+ estimatedSize = ownerGraph.getEstimatedSize() * this.compoundGravityRangeFactor;
2651
+ if (absDistanceX > estimatedSize || absDistanceY > estimatedSize) {
2652
+ node.gravitationForceX = -this.gravityConstant * distanceX * this.compoundGravityConstant;
2653
+ node.gravitationForceY = -this.gravityConstant * distanceY * this.compoundGravityConstant;
2654
+ }
2655
+ }
2656
+ };
2657
+ FDLayout.prototype.isConverged = function() {
2658
+ var converged;
2659
+ var oscilating = false;
2660
+ if (this.totalIterations > this.maxIterations / 3) {
2661
+ oscilating = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2;
2662
+ }
2663
+ converged = this.totalDisplacement < this.totalDisplacementThreshold;
2664
+ this.oldTotalDisplacement = this.totalDisplacement;
2665
+ return converged || oscilating;
2666
+ };
2667
+ FDLayout.prototype.animate = function() {
2668
+ if (this.animationDuringLayout && !this.isSubLayout) {
2669
+ if (this.notAnimatedIterations == this.animationPeriod) {
2670
+ this.update();
2671
+ this.notAnimatedIterations = 0;
2672
+ } else {
2673
+ this.notAnimatedIterations++;
2674
+ }
2675
+ }
2676
+ };
2677
+ FDLayout.prototype.calcNoOfChildrenForAllNodes = function() {
2678
+ var node;
2679
+ var allNodes = this.graphManager.getAllNodes();
2680
+ for (var i = 0; i < allNodes.length; i++) {
2681
+ node = allNodes[i];
2682
+ node.noOfChildren = node.getNoOfChildren();
2683
+ }
2684
+ };
2685
+ FDLayout.prototype.calcGrid = function(graph) {
2686
+ var sizeX = 0;
2687
+ var sizeY = 0;
2688
+ sizeX = parseInt(Math.ceil((graph.getRight() - graph.getLeft()) / this.repulsionRange));
2689
+ sizeY = parseInt(Math.ceil((graph.getBottom() - graph.getTop()) / this.repulsionRange));
2690
+ var grid = new Array(sizeX);
2691
+ for (var i = 0; i < sizeX; i++) {
2692
+ grid[i] = new Array(sizeY);
2693
+ }
2694
+ for (var i = 0; i < sizeX; i++) {
2695
+ for (var j = 0; j < sizeY; j++) {
2696
+ grid[i][j] = new Array();
2697
+ }
2698
+ }
2699
+ return grid;
2700
+ };
2701
+ FDLayout.prototype.addNodeToGrid = function(v, left, top) {
2702
+ var startX = 0;
2703
+ var finishX = 0;
2704
+ var startY = 0;
2705
+ var finishY = 0;
2706
+ startX = parseInt(Math.floor((v.getRect().x - left) / this.repulsionRange));
2707
+ finishX = parseInt(Math.floor((v.getRect().width + v.getRect().x - left) / this.repulsionRange));
2708
+ startY = parseInt(Math.floor((v.getRect().y - top) / this.repulsionRange));
2709
+ finishY = parseInt(Math.floor((v.getRect().height + v.getRect().y - top) / this.repulsionRange));
2710
+ for (var i = startX; i <= finishX; i++) {
2711
+ for (var j = startY; j <= finishY; j++) {
2712
+ this.grid[i][j].push(v);
2713
+ v.setGridCoordinates(startX, finishX, startY, finishY);
2714
+ }
2715
+ }
2716
+ };
2717
+ FDLayout.prototype.updateGrid = function() {
2718
+ var i;
2719
+ var nodeA;
2720
+ var lNodes = this.getAllNodes();
2721
+ this.grid = this.calcGrid(this.graphManager.getRoot());
2722
+ for (i = 0; i < lNodes.length; i++) {
2723
+ nodeA = lNodes[i];
2724
+ this.addNodeToGrid(nodeA, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
2725
+ }
2726
+ };
2727
+ FDLayout.prototype.calculateRepulsionForceOfANode = function(nodeA, processedNodeSet, gridUpdateAllowed, forceToNodeSurroundingUpdate) {
2728
+ if (this.totalIterations % FDLayoutConstants.GRID_CALCULATION_CHECK_PERIOD == 1 && gridUpdateAllowed || forceToNodeSurroundingUpdate) {
2729
+ var surrounding = /* @__PURE__ */ new Set();
2730
+ nodeA.surrounding = new Array();
2731
+ var nodeB;
2732
+ var grid = this.grid;
2733
+ for (var i = nodeA.startX - 1; i < nodeA.finishX + 2; i++) {
2734
+ for (var j = nodeA.startY - 1; j < nodeA.finishY + 2; j++) {
2735
+ if (!(i < 0 || j < 0 || i >= grid.length || j >= grid[0].length)) {
2736
+ for (var k = 0; k < grid[i][j].length; k++) {
2737
+ nodeB = grid[i][j][k];
2738
+ if (nodeA.getOwner() != nodeB.getOwner() || nodeA == nodeB) {
2739
+ continue;
2740
+ }
2741
+ if (!processedNodeSet.has(nodeB) && !surrounding.has(nodeB)) {
2742
+ var distanceX = Math.abs(nodeA.getCenterX() - nodeB.getCenterX()) - (nodeA.getWidth() / 2 + nodeB.getWidth() / 2);
2743
+ var distanceY = Math.abs(nodeA.getCenterY() - nodeB.getCenterY()) - (nodeA.getHeight() / 2 + nodeB.getHeight() / 2);
2744
+ if (distanceX <= this.repulsionRange && distanceY <= this.repulsionRange) {
2745
+ surrounding.add(nodeB);
2746
+ }
2747
+ }
2748
+ }
2749
+ }
2750
+ }
2751
+ }
2752
+ nodeA.surrounding = [].concat(_toConsumableArray(surrounding));
2753
+ }
2754
+ for (i = 0; i < nodeA.surrounding.length; i++) {
2755
+ this.calcRepulsionForce(nodeA, nodeA.surrounding[i]);
2756
+ }
2757
+ };
2758
+ FDLayout.prototype.calcRepulsionRange = function() {
2759
+ return 0;
2760
+ };
2761
+ module2.exports = FDLayout;
2762
+ },
2763
+ /* 19 */
2764
+ /***/
2765
+ function(module2, exports2, __webpack_require__) {
2766
+ var LEdge = __webpack_require__(1);
2767
+ var FDLayoutConstants = __webpack_require__(4);
2768
+ function FDLayoutEdge(source, target, vEdge) {
2769
+ LEdge.call(this, source, target, vEdge);
2770
+ this.idealLength = FDLayoutConstants.DEFAULT_EDGE_LENGTH;
2771
+ this.edgeElasticity = FDLayoutConstants.DEFAULT_SPRING_STRENGTH;
2772
+ }
2773
+ FDLayoutEdge.prototype = Object.create(LEdge.prototype);
2774
+ for (var prop in LEdge) {
2775
+ FDLayoutEdge[prop] = LEdge[prop];
2776
+ }
2777
+ module2.exports = FDLayoutEdge;
2778
+ },
2779
+ /* 20 */
2780
+ /***/
2781
+ function(module2, exports2, __webpack_require__) {
2782
+ var LNode = __webpack_require__(3);
2783
+ var FDLayoutConstants = __webpack_require__(4);
2784
+ function FDLayoutNode(gm, loc, size, vNode) {
2785
+ LNode.call(this, gm, loc, size, vNode);
2786
+ this.nodeRepulsion = FDLayoutConstants.DEFAULT_REPULSION_STRENGTH;
2787
+ this.springForceX = 0;
2788
+ this.springForceY = 0;
2789
+ this.repulsionForceX = 0;
2790
+ this.repulsionForceY = 0;
2791
+ this.gravitationForceX = 0;
2792
+ this.gravitationForceY = 0;
2793
+ this.displacementX = 0;
2794
+ this.displacementY = 0;
2795
+ this.startX = 0;
2796
+ this.finishX = 0;
2797
+ this.startY = 0;
2798
+ this.finishY = 0;
2799
+ this.surrounding = [];
2800
+ }
2801
+ FDLayoutNode.prototype = Object.create(LNode.prototype);
2802
+ for (var prop in LNode) {
2803
+ FDLayoutNode[prop] = LNode[prop];
2804
+ }
2805
+ FDLayoutNode.prototype.setGridCoordinates = function(_startX, _finishX, _startY, _finishY) {
2806
+ this.startX = _startX;
2807
+ this.finishX = _finishX;
2808
+ this.startY = _startY;
2809
+ this.finishY = _finishY;
2810
+ };
2811
+ module2.exports = FDLayoutNode;
2812
+ },
2813
+ /* 21 */
2814
+ /***/
2815
+ function(module2, exports2, __webpack_require__) {
2816
+ function DimensionD2(width, height) {
2817
+ this.width = 0;
2818
+ this.height = 0;
2819
+ if (width !== null && height !== null) {
2820
+ this.height = height;
2821
+ this.width = width;
2822
+ }
2823
+ }
2824
+ DimensionD2.prototype.getWidth = function() {
2825
+ return this.width;
2826
+ };
2827
+ DimensionD2.prototype.setWidth = function(width) {
2828
+ this.width = width;
2829
+ };
2830
+ DimensionD2.prototype.getHeight = function() {
2831
+ return this.height;
2832
+ };
2833
+ DimensionD2.prototype.setHeight = function(height) {
2834
+ this.height = height;
2835
+ };
2836
+ module2.exports = DimensionD2;
2837
+ },
2838
+ /* 22 */
2839
+ /***/
2840
+ function(module2, exports2, __webpack_require__) {
2841
+ var UniqueIDGeneretor = __webpack_require__(14);
2842
+ function HashMap() {
2843
+ this.map = {};
2844
+ this.keys = [];
2845
+ }
2846
+ HashMap.prototype.put = function(key, value) {
2847
+ var theId = UniqueIDGeneretor.createID(key);
2848
+ if (!this.contains(theId)) {
2849
+ this.map[theId] = value;
2850
+ this.keys.push(key);
2851
+ }
2852
+ };
2853
+ HashMap.prototype.contains = function(key) {
2854
+ UniqueIDGeneretor.createID(key);
2855
+ return this.map[key] != null;
2856
+ };
2857
+ HashMap.prototype.get = function(key) {
2858
+ var theId = UniqueIDGeneretor.createID(key);
2859
+ return this.map[theId];
2860
+ };
2861
+ HashMap.prototype.keySet = function() {
2862
+ return this.keys;
2863
+ };
2864
+ module2.exports = HashMap;
2865
+ },
2866
+ /* 23 */
2867
+ /***/
2868
+ function(module2, exports2, __webpack_require__) {
2869
+ var UniqueIDGeneretor = __webpack_require__(14);
2870
+ function HashSet() {
2871
+ this.set = {};
2872
+ }
2873
+ HashSet.prototype.add = function(obj) {
2874
+ var theId = UniqueIDGeneretor.createID(obj);
2875
+ if (!this.contains(theId)) this.set[theId] = obj;
2876
+ };
2877
+ HashSet.prototype.remove = function(obj) {
2878
+ delete this.set[UniqueIDGeneretor.createID(obj)];
2879
+ };
2880
+ HashSet.prototype.clear = function() {
2881
+ this.set = {};
2882
+ };
2883
+ HashSet.prototype.contains = function(obj) {
2884
+ return this.set[UniqueIDGeneretor.createID(obj)] == obj;
2885
+ };
2886
+ HashSet.prototype.isEmpty = function() {
2887
+ return this.size() === 0;
2888
+ };
2889
+ HashSet.prototype.size = function() {
2890
+ return Object.keys(this.set).length;
2891
+ };
2892
+ HashSet.prototype.addAllTo = function(list) {
2893
+ var keys = Object.keys(this.set);
2894
+ var length = keys.length;
2895
+ for (var i = 0; i < length; i++) {
2896
+ list.push(this.set[keys[i]]);
2897
+ }
2898
+ };
2899
+ HashSet.prototype.size = function() {
2900
+ return Object.keys(this.set).length;
2901
+ };
2902
+ HashSet.prototype.addAll = function(list) {
2903
+ var s = list.length;
2904
+ for (var i = 0; i < s; i++) {
2905
+ var v = list[i];
2906
+ this.add(v);
2907
+ }
2908
+ };
2909
+ module2.exports = HashSet;
2910
+ },
2911
+ /* 24 */
2912
+ /***/
2913
+ function(module2, exports2, __webpack_require__) {
2914
+ function Matrix() {
2915
+ }
2916
+ Matrix.multMat = function(array1, array2) {
2917
+ var result = [];
2918
+ for (var i = 0; i < array1.length; i++) {
2919
+ result[i] = [];
2920
+ for (var j = 0; j < array2[0].length; j++) {
2921
+ result[i][j] = 0;
2922
+ for (var k = 0; k < array1[0].length; k++) {
2923
+ result[i][j] += array1[i][k] * array2[k][j];
2924
+ }
2925
+ }
2926
+ }
2927
+ return result;
2928
+ };
2929
+ Matrix.transpose = function(array) {
2930
+ var result = [];
2931
+ for (var i = 0; i < array[0].length; i++) {
2932
+ result[i] = [];
2933
+ for (var j = 0; j < array.length; j++) {
2934
+ result[i][j] = array[j][i];
2935
+ }
2936
+ }
2937
+ return result;
2938
+ };
2939
+ Matrix.multCons = function(array, constant) {
2940
+ var result = [];
2941
+ for (var i = 0; i < array.length; i++) {
2942
+ result[i] = array[i] * constant;
2943
+ }
2944
+ return result;
2945
+ };
2946
+ Matrix.minusOp = function(array1, array2) {
2947
+ var result = [];
2948
+ for (var i = 0; i < array1.length; i++) {
2949
+ result[i] = array1[i] - array2[i];
2950
+ }
2951
+ return result;
2952
+ };
2953
+ Matrix.dotProduct = function(array1, array2) {
2954
+ var product = 0;
2955
+ for (var i = 0; i < array1.length; i++) {
2956
+ product += array1[i] * array2[i];
2957
+ }
2958
+ return product;
2959
+ };
2960
+ Matrix.mag = function(array) {
2961
+ return Math.sqrt(this.dotProduct(array, array));
2962
+ };
2963
+ Matrix.normalize = function(array) {
2964
+ var result = [];
2965
+ var magnitude = this.mag(array);
2966
+ for (var i = 0; i < array.length; i++) {
2967
+ result[i] = array[i] / magnitude;
2968
+ }
2969
+ return result;
2970
+ };
2971
+ Matrix.multGamma = function(array) {
2972
+ var result = [];
2973
+ var sum = 0;
2974
+ for (var i = 0; i < array.length; i++) {
2975
+ sum += array[i];
2976
+ }
2977
+ sum *= -1 / array.length;
2978
+ for (var _i = 0; _i < array.length; _i++) {
2979
+ result[_i] = sum + array[_i];
2980
+ }
2981
+ return result;
2982
+ };
2983
+ Matrix.multL = function(array, C, INV) {
2984
+ var result = [];
2985
+ var temp1 = [];
2986
+ var temp2 = [];
2987
+ for (var i = 0; i < C[0].length; i++) {
2988
+ var sum = 0;
2989
+ for (var j = 0; j < C.length; j++) {
2990
+ sum += -0.5 * C[j][i] * array[j];
2991
+ }
2992
+ temp1[i] = sum;
2993
+ }
2994
+ for (var _i2 = 0; _i2 < INV.length; _i2++) {
2995
+ var _sum = 0;
2996
+ for (var _j = 0; _j < INV.length; _j++) {
2997
+ _sum += INV[_i2][_j] * temp1[_j];
2998
+ }
2999
+ temp2[_i2] = _sum;
3000
+ }
3001
+ for (var _i3 = 0; _i3 < C.length; _i3++) {
3002
+ var _sum2 = 0;
3003
+ for (var _j2 = 0; _j2 < C[0].length; _j2++) {
3004
+ _sum2 += C[_i3][_j2] * temp2[_j2];
3005
+ }
3006
+ result[_i3] = _sum2;
3007
+ }
3008
+ return result;
3009
+ };
3010
+ module2.exports = Matrix;
3011
+ },
3012
+ /* 25 */
3013
+ /***/
3014
+ function(module2, exports2, __webpack_require__) {
3015
+ var _createClass = /* @__PURE__ */ function() {
3016
+ function defineProperties(target, props) {
3017
+ for (var i = 0; i < props.length; i++) {
3018
+ var descriptor = props[i];
3019
+ descriptor.enumerable = descriptor.enumerable || false;
3020
+ descriptor.configurable = true;
3021
+ if ("value" in descriptor) descriptor.writable = true;
3022
+ Object.defineProperty(target, descriptor.key, descriptor);
3023
+ }
3024
+ }
3025
+ return function(Constructor, protoProps, staticProps) {
3026
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
3027
+ if (staticProps) defineProperties(Constructor, staticProps);
3028
+ return Constructor;
3029
+ };
3030
+ }();
3031
+ function _classCallCheck(instance, Constructor) {
3032
+ if (!(instance instanceof Constructor)) {
3033
+ throw new TypeError("Cannot call a class as a function");
3034
+ }
3035
+ }
3036
+ var LinkedList = __webpack_require__(11);
3037
+ var Quicksort = function() {
3038
+ function Quicksort2(A, compareFunction) {
3039
+ _classCallCheck(this, Quicksort2);
3040
+ if (compareFunction !== null || compareFunction !== void 0) this.compareFunction = this._defaultCompareFunction;
3041
+ var length = void 0;
3042
+ if (A instanceof LinkedList) length = A.size();
3043
+ else length = A.length;
3044
+ this._quicksort(A, 0, length - 1);
3045
+ }
3046
+ _createClass(Quicksort2, [{
3047
+ key: "_quicksort",
3048
+ value: function _quicksort(A, p, r) {
3049
+ if (p < r) {
3050
+ var q = this._partition(A, p, r);
3051
+ this._quicksort(A, p, q);
3052
+ this._quicksort(A, q + 1, r);
3053
+ }
3054
+ }
3055
+ }, {
3056
+ key: "_partition",
3057
+ value: function _partition(A, p, r) {
3058
+ var x = this._get(A, p);
3059
+ var i = p;
3060
+ var j = r;
3061
+ while (true) {
3062
+ while (this.compareFunction(x, this._get(A, j))) {
3063
+ j--;
3064
+ }
3065
+ while (this.compareFunction(this._get(A, i), x)) {
3066
+ i++;
3067
+ }
3068
+ if (i < j) {
3069
+ this._swap(A, i, j);
3070
+ i++;
3071
+ j--;
3072
+ } else return j;
3073
+ }
3074
+ }
3075
+ }, {
3076
+ key: "_get",
3077
+ value: function _get(object, index) {
3078
+ if (object instanceof LinkedList) return object.get_object_at(index);
3079
+ else return object[index];
3080
+ }
3081
+ }, {
3082
+ key: "_set",
3083
+ value: function _set(object, index, value) {
3084
+ if (object instanceof LinkedList) object.set_object_at(index, value);
3085
+ else object[index] = value;
3086
+ }
3087
+ }, {
3088
+ key: "_swap",
3089
+ value: function _swap(A, i, j) {
3090
+ var temp = this._get(A, i);
3091
+ this._set(A, i, this._get(A, j));
3092
+ this._set(A, j, temp);
3093
+ }
3094
+ }, {
3095
+ key: "_defaultCompareFunction",
3096
+ value: function _defaultCompareFunction(a, b) {
3097
+ return b > a;
3098
+ }
3099
+ }]);
3100
+ return Quicksort2;
3101
+ }();
3102
+ module2.exports = Quicksort;
3103
+ },
3104
+ /* 26 */
3105
+ /***/
3106
+ function(module2, exports2, __webpack_require__) {
3107
+ function SVD() {
3108
+ }
3109
+ SVD.svd = function(A) {
3110
+ this.U = null;
3111
+ this.V = null;
3112
+ this.s = null;
3113
+ this.m = 0;
3114
+ this.n = 0;
3115
+ this.m = A.length;
3116
+ this.n = A[0].length;
3117
+ var nu = Math.min(this.m, this.n);
3118
+ this.s = function(s) {
3119
+ var a = [];
3120
+ while (s-- > 0) {
3121
+ a.push(0);
3122
+ }
3123
+ return a;
3124
+ }(Math.min(this.m + 1, this.n));
3125
+ this.U = function(dims) {
3126
+ var allocate = function allocate2(dims2) {
3127
+ if (dims2.length == 0) {
3128
+ return 0;
3129
+ } else {
3130
+ var array = [];
3131
+ for (var i2 = 0; i2 < dims2[0]; i2++) {
3132
+ array.push(allocate2(dims2.slice(1)));
3133
+ }
3134
+ return array;
3135
+ }
3136
+ };
3137
+ return allocate(dims);
3138
+ }([this.m, nu]);
3139
+ this.V = function(dims) {
3140
+ var allocate = function allocate2(dims2) {
3141
+ if (dims2.length == 0) {
3142
+ return 0;
3143
+ } else {
3144
+ var array = [];
3145
+ for (var i2 = 0; i2 < dims2[0]; i2++) {
3146
+ array.push(allocate2(dims2.slice(1)));
3147
+ }
3148
+ return array;
3149
+ }
3150
+ };
3151
+ return allocate(dims);
3152
+ }([this.n, this.n]);
3153
+ var e = function(s) {
3154
+ var a = [];
3155
+ while (s-- > 0) {
3156
+ a.push(0);
3157
+ }
3158
+ return a;
3159
+ }(this.n);
3160
+ var work = function(s) {
3161
+ var a = [];
3162
+ while (s-- > 0) {
3163
+ a.push(0);
3164
+ }
3165
+ return a;
3166
+ }(this.m);
3167
+ var wantu = true;
3168
+ var nct = Math.min(this.m - 1, this.n);
3169
+ var nrt = Math.max(0, Math.min(this.n - 2, this.m));
3170
+ for (var k = 0; k < Math.max(nct, nrt); k++) {
3171
+ if (k < nct) {
3172
+ this.s[k] = 0;
3173
+ for (var i = k; i < this.m; i++) {
3174
+ this.s[k] = SVD.hypot(this.s[k], A[i][k]);
3175
+ }
3176
+ if (this.s[k] !== 0) {
3177
+ if (A[k][k] < 0) {
3178
+ this.s[k] = -this.s[k];
3179
+ }
3180
+ for (var _i = k; _i < this.m; _i++) {
3181
+ A[_i][k] /= this.s[k];
3182
+ }
3183
+ A[k][k] += 1;
3184
+ }
3185
+ this.s[k] = -this.s[k];
3186
+ }
3187
+ for (var j = k + 1; j < this.n; j++) {
3188
+ if (/* @__PURE__ */ function(lhs, rhs) {
3189
+ return lhs && rhs;
3190
+ }(k < nct, this.s[k] !== 0)) {
3191
+ var t = 0;
3192
+ for (var _i2 = k; _i2 < this.m; _i2++) {
3193
+ t += A[_i2][k] * A[_i2][j];
3194
+ }
3195
+ t = -t / A[k][k];
3196
+ for (var _i3 = k; _i3 < this.m; _i3++) {
3197
+ A[_i3][j] += t * A[_i3][k];
3198
+ }
3199
+ }
3200
+ e[j] = A[k][j];
3201
+ }
3202
+ if (/* @__PURE__ */ function(lhs, rhs) {
3203
+ return rhs;
3204
+ }(wantu, k < nct)) {
3205
+ for (var _i4 = k; _i4 < this.m; _i4++) {
3206
+ this.U[_i4][k] = A[_i4][k];
3207
+ }
3208
+ }
3209
+ if (k < nrt) {
3210
+ e[k] = 0;
3211
+ for (var _i5 = k + 1; _i5 < this.n; _i5++) {
3212
+ e[k] = SVD.hypot(e[k], e[_i5]);
3213
+ }
3214
+ if (e[k] !== 0) {
3215
+ if (e[k + 1] < 0) {
3216
+ e[k] = -e[k];
3217
+ }
3218
+ for (var _i6 = k + 1; _i6 < this.n; _i6++) {
3219
+ e[_i6] /= e[k];
3220
+ }
3221
+ e[k + 1] += 1;
3222
+ }
3223
+ e[k] = -e[k];
3224
+ if (/* @__PURE__ */ function(lhs, rhs) {
3225
+ return lhs && rhs;
3226
+ }(k + 1 < this.m, e[k] !== 0)) {
3227
+ for (var _i7 = k + 1; _i7 < this.m; _i7++) {
3228
+ work[_i7] = 0;
3229
+ }
3230
+ for (var _j = k + 1; _j < this.n; _j++) {
3231
+ for (var _i8 = k + 1; _i8 < this.m; _i8++) {
3232
+ work[_i8] += e[_j] * A[_i8][_j];
3233
+ }
3234
+ }
3235
+ for (var _j2 = k + 1; _j2 < this.n; _j2++) {
3236
+ var _t = -e[_j2] / e[k + 1];
3237
+ for (var _i9 = k + 1; _i9 < this.m; _i9++) {
3238
+ A[_i9][_j2] += _t * work[_i9];
3239
+ }
3240
+ }
3241
+ }
3242
+ {
3243
+ for (var _i10 = k + 1; _i10 < this.n; _i10++) {
3244
+ this.V[_i10][k] = e[_i10];
3245
+ }
3246
+ }
3247
+ }
3248
+ }
3249
+ var p = Math.min(this.n, this.m + 1);
3250
+ if (nct < this.n) {
3251
+ this.s[nct] = A[nct][nct];
3252
+ }
3253
+ if (this.m < p) {
3254
+ this.s[p - 1] = 0;
3255
+ }
3256
+ if (nrt + 1 < p) {
3257
+ e[nrt] = A[nrt][p - 1];
3258
+ }
3259
+ e[p - 1] = 0;
3260
+ {
3261
+ for (var _j3 = nct; _j3 < nu; _j3++) {
3262
+ for (var _i11 = 0; _i11 < this.m; _i11++) {
3263
+ this.U[_i11][_j3] = 0;
3264
+ }
3265
+ this.U[_j3][_j3] = 1;
3266
+ }
3267
+ for (var _k = nct - 1; _k >= 0; _k--) {
3268
+ if (this.s[_k] !== 0) {
3269
+ for (var _j4 = _k + 1; _j4 < nu; _j4++) {
3270
+ var _t2 = 0;
3271
+ for (var _i12 = _k; _i12 < this.m; _i12++) {
3272
+ _t2 += this.U[_i12][_k] * this.U[_i12][_j4];
3273
+ }
3274
+ _t2 = -_t2 / this.U[_k][_k];
3275
+ for (var _i13 = _k; _i13 < this.m; _i13++) {
3276
+ this.U[_i13][_j4] += _t2 * this.U[_i13][_k];
3277
+ }
3278
+ }
3279
+ for (var _i14 = _k; _i14 < this.m; _i14++) {
3280
+ this.U[_i14][_k] = -this.U[_i14][_k];
3281
+ }
3282
+ this.U[_k][_k] = 1 + this.U[_k][_k];
3283
+ for (var _i15 = 0; _i15 < _k - 1; _i15++) {
3284
+ this.U[_i15][_k] = 0;
3285
+ }
3286
+ } else {
3287
+ for (var _i16 = 0; _i16 < this.m; _i16++) {
3288
+ this.U[_i16][_k] = 0;
3289
+ }
3290
+ this.U[_k][_k] = 1;
3291
+ }
3292
+ }
3293
+ }
3294
+ {
3295
+ for (var _k2 = this.n - 1; _k2 >= 0; _k2--) {
3296
+ if (/* @__PURE__ */ function(lhs, rhs) {
3297
+ return lhs && rhs;
3298
+ }(_k2 < nrt, e[_k2] !== 0)) {
3299
+ for (var _j5 = _k2 + 1; _j5 < nu; _j5++) {
3300
+ var _t3 = 0;
3301
+ for (var _i17 = _k2 + 1; _i17 < this.n; _i17++) {
3302
+ _t3 += this.V[_i17][_k2] * this.V[_i17][_j5];
3303
+ }
3304
+ _t3 = -_t3 / this.V[_k2 + 1][_k2];
3305
+ for (var _i18 = _k2 + 1; _i18 < this.n; _i18++) {
3306
+ this.V[_i18][_j5] += _t3 * this.V[_i18][_k2];
3307
+ }
3308
+ }
3309
+ }
3310
+ for (var _i19 = 0; _i19 < this.n; _i19++) {
3311
+ this.V[_i19][_k2] = 0;
3312
+ }
3313
+ this.V[_k2][_k2] = 1;
3314
+ }
3315
+ }
3316
+ var pp = p - 1;
3317
+ var eps = Math.pow(2, -52);
3318
+ var tiny = Math.pow(2, -966);
3319
+ while (p > 0) {
3320
+ var _k3 = void 0;
3321
+ var kase = void 0;
3322
+ for (_k3 = p - 2; _k3 >= -1; _k3--) {
3323
+ if (_k3 === -1) {
3324
+ break;
3325
+ }
3326
+ if (Math.abs(e[_k3]) <= tiny + eps * (Math.abs(this.s[_k3]) + Math.abs(this.s[_k3 + 1]))) {
3327
+ e[_k3] = 0;
3328
+ break;
3329
+ }
3330
+ }
3331
+ if (_k3 === p - 2) {
3332
+ kase = 4;
3333
+ } else {
3334
+ var ks = void 0;
3335
+ for (ks = p - 1; ks >= _k3; ks--) {
3336
+ if (ks === _k3) {
3337
+ break;
3338
+ }
3339
+ var _t4 = (ks !== p ? Math.abs(e[ks]) : 0) + (ks !== _k3 + 1 ? Math.abs(e[ks - 1]) : 0);
3340
+ if (Math.abs(this.s[ks]) <= tiny + eps * _t4) {
3341
+ this.s[ks] = 0;
3342
+ break;
3343
+ }
3344
+ }
3345
+ if (ks === _k3) {
3346
+ kase = 3;
3347
+ } else if (ks === p - 1) {
3348
+ kase = 1;
3349
+ } else {
3350
+ kase = 2;
3351
+ _k3 = ks;
3352
+ }
3353
+ }
3354
+ _k3++;
3355
+ switch (kase) {
3356
+ case 1:
3357
+ {
3358
+ var f = e[p - 2];
3359
+ e[p - 2] = 0;
3360
+ for (var _j6 = p - 2; _j6 >= _k3; _j6--) {
3361
+ var _t5 = SVD.hypot(this.s[_j6], f);
3362
+ var cs = this.s[_j6] / _t5;
3363
+ var sn = f / _t5;
3364
+ this.s[_j6] = _t5;
3365
+ if (_j6 !== _k3) {
3366
+ f = -sn * e[_j6 - 1];
3367
+ e[_j6 - 1] = cs * e[_j6 - 1];
3368
+ }
3369
+ {
3370
+ for (var _i20 = 0; _i20 < this.n; _i20++) {
3371
+ _t5 = cs * this.V[_i20][_j6] + sn * this.V[_i20][p - 1];
3372
+ this.V[_i20][p - 1] = -sn * this.V[_i20][_j6] + cs * this.V[_i20][p - 1];
3373
+ this.V[_i20][_j6] = _t5;
3374
+ }
3375
+ }
3376
+ }
3377
+ }
3378
+ break;
3379
+ case 2:
3380
+ {
3381
+ var _f = e[_k3 - 1];
3382
+ e[_k3 - 1] = 0;
3383
+ for (var _j7 = _k3; _j7 < p; _j7++) {
3384
+ var _t6 = SVD.hypot(this.s[_j7], _f);
3385
+ var _cs = this.s[_j7] / _t6;
3386
+ var _sn = _f / _t6;
3387
+ this.s[_j7] = _t6;
3388
+ _f = -_sn * e[_j7];
3389
+ e[_j7] = _cs * e[_j7];
3390
+ {
3391
+ for (var _i21 = 0; _i21 < this.m; _i21++) {
3392
+ _t6 = _cs * this.U[_i21][_j7] + _sn * this.U[_i21][_k3 - 1];
3393
+ this.U[_i21][_k3 - 1] = -_sn * this.U[_i21][_j7] + _cs * this.U[_i21][_k3 - 1];
3394
+ this.U[_i21][_j7] = _t6;
3395
+ }
3396
+ }
3397
+ }
3398
+ }
3399
+ break;
3400
+ case 3:
3401
+ {
3402
+ var scale = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[p - 1]), Math.abs(this.s[p - 2])), Math.abs(e[p - 2])), Math.abs(this.s[_k3])), Math.abs(e[_k3]));
3403
+ var sp = this.s[p - 1] / scale;
3404
+ var spm1 = this.s[p - 2] / scale;
3405
+ var epm1 = e[p - 2] / scale;
3406
+ var sk = this.s[_k3] / scale;
3407
+ var ek = e[_k3] / scale;
3408
+ var b = ((spm1 + sp) * (spm1 - sp) + epm1 * epm1) / 2;
3409
+ var c = sp * epm1 * (sp * epm1);
3410
+ var shift = 0;
3411
+ if (/* @__PURE__ */ function(lhs, rhs) {
3412
+ return lhs || rhs;
3413
+ }(b !== 0, c !== 0)) {
3414
+ shift = Math.sqrt(b * b + c);
3415
+ if (b < 0) {
3416
+ shift = -shift;
3417
+ }
3418
+ shift = c / (b + shift);
3419
+ }
3420
+ var _f2 = (sk + sp) * (sk - sp) + shift;
3421
+ var g = sk * ek;
3422
+ for (var _j8 = _k3; _j8 < p - 1; _j8++) {
3423
+ var _t7 = SVD.hypot(_f2, g);
3424
+ var _cs2 = _f2 / _t7;
3425
+ var _sn2 = g / _t7;
3426
+ if (_j8 !== _k3) {
3427
+ e[_j8 - 1] = _t7;
3428
+ }
3429
+ _f2 = _cs2 * this.s[_j8] + _sn2 * e[_j8];
3430
+ e[_j8] = _cs2 * e[_j8] - _sn2 * this.s[_j8];
3431
+ g = _sn2 * this.s[_j8 + 1];
3432
+ this.s[_j8 + 1] = _cs2 * this.s[_j8 + 1];
3433
+ {
3434
+ for (var _i22 = 0; _i22 < this.n; _i22++) {
3435
+ _t7 = _cs2 * this.V[_i22][_j8] + _sn2 * this.V[_i22][_j8 + 1];
3436
+ this.V[_i22][_j8 + 1] = -_sn2 * this.V[_i22][_j8] + _cs2 * this.V[_i22][_j8 + 1];
3437
+ this.V[_i22][_j8] = _t7;
3438
+ }
3439
+ }
3440
+ _t7 = SVD.hypot(_f2, g);
3441
+ _cs2 = _f2 / _t7;
3442
+ _sn2 = g / _t7;
3443
+ this.s[_j8] = _t7;
3444
+ _f2 = _cs2 * e[_j8] + _sn2 * this.s[_j8 + 1];
3445
+ this.s[_j8 + 1] = -_sn2 * e[_j8] + _cs2 * this.s[_j8 + 1];
3446
+ g = _sn2 * e[_j8 + 1];
3447
+ e[_j8 + 1] = _cs2 * e[_j8 + 1];
3448
+ if (_j8 < this.m - 1) {
3449
+ for (var _i23 = 0; _i23 < this.m; _i23++) {
3450
+ _t7 = _cs2 * this.U[_i23][_j8] + _sn2 * this.U[_i23][_j8 + 1];
3451
+ this.U[_i23][_j8 + 1] = -_sn2 * this.U[_i23][_j8] + _cs2 * this.U[_i23][_j8 + 1];
3452
+ this.U[_i23][_j8] = _t7;
3453
+ }
3454
+ }
3455
+ }
3456
+ e[p - 2] = _f2;
3457
+ }
3458
+ break;
3459
+ case 4:
3460
+ {
3461
+ if (this.s[_k3] <= 0) {
3462
+ this.s[_k3] = this.s[_k3] < 0 ? -this.s[_k3] : 0;
3463
+ {
3464
+ for (var _i24 = 0; _i24 <= pp; _i24++) {
3465
+ this.V[_i24][_k3] = -this.V[_i24][_k3];
3466
+ }
3467
+ }
3468
+ }
3469
+ while (_k3 < pp) {
3470
+ if (this.s[_k3] >= this.s[_k3 + 1]) {
3471
+ break;
3472
+ }
3473
+ var _t8 = this.s[_k3];
3474
+ this.s[_k3] = this.s[_k3 + 1];
3475
+ this.s[_k3 + 1] = _t8;
3476
+ if (_k3 < this.n - 1) {
3477
+ for (var _i25 = 0; _i25 < this.n; _i25++) {
3478
+ _t8 = this.V[_i25][_k3 + 1];
3479
+ this.V[_i25][_k3 + 1] = this.V[_i25][_k3];
3480
+ this.V[_i25][_k3] = _t8;
3481
+ }
3482
+ }
3483
+ if (_k3 < this.m - 1) {
3484
+ for (var _i26 = 0; _i26 < this.m; _i26++) {
3485
+ _t8 = this.U[_i26][_k3 + 1];
3486
+ this.U[_i26][_k3 + 1] = this.U[_i26][_k3];
3487
+ this.U[_i26][_k3] = _t8;
3488
+ }
3489
+ }
3490
+ _k3++;
3491
+ }
3492
+ p--;
3493
+ }
3494
+ break;
3495
+ }
3496
+ }
3497
+ var result = { U: this.U, V: this.V, S: this.s };
3498
+ return result;
3499
+ };
3500
+ SVD.hypot = function(a, b) {
3501
+ var r = void 0;
3502
+ if (Math.abs(a) > Math.abs(b)) {
3503
+ r = b / a;
3504
+ r = Math.abs(a) * Math.sqrt(1 + r * r);
3505
+ } else if (b != 0) {
3506
+ r = a / b;
3507
+ r = Math.abs(b) * Math.sqrt(1 + r * r);
3508
+ } else {
3509
+ r = 0;
3510
+ }
3511
+ return r;
3512
+ };
3513
+ module2.exports = SVD;
3514
+ },
3515
+ /* 27 */
3516
+ /***/
3517
+ function(module2, exports2, __webpack_require__) {
3518
+ var _createClass = /* @__PURE__ */ function() {
3519
+ function defineProperties(target, props) {
3520
+ for (var i = 0; i < props.length; i++) {
3521
+ var descriptor = props[i];
3522
+ descriptor.enumerable = descriptor.enumerable || false;
3523
+ descriptor.configurable = true;
3524
+ if ("value" in descriptor) descriptor.writable = true;
3525
+ Object.defineProperty(target, descriptor.key, descriptor);
3526
+ }
3527
+ }
3528
+ return function(Constructor, protoProps, staticProps) {
3529
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
3530
+ if (staticProps) defineProperties(Constructor, staticProps);
3531
+ return Constructor;
3532
+ };
3533
+ }();
3534
+ function _classCallCheck(instance, Constructor) {
3535
+ if (!(instance instanceof Constructor)) {
3536
+ throw new TypeError("Cannot call a class as a function");
3537
+ }
3538
+ }
3539
+ var NeedlemanWunsch = function() {
3540
+ function NeedlemanWunsch2(sequence1, sequence2) {
3541
+ var match_score = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
3542
+ var mismatch_penalty = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1;
3543
+ var gap_penalty = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
3544
+ _classCallCheck(this, NeedlemanWunsch2);
3545
+ this.sequence1 = sequence1;
3546
+ this.sequence2 = sequence2;
3547
+ this.match_score = match_score;
3548
+ this.mismatch_penalty = mismatch_penalty;
3549
+ this.gap_penalty = gap_penalty;
3550
+ this.iMax = sequence1.length + 1;
3551
+ this.jMax = sequence2.length + 1;
3552
+ this.grid = new Array(this.iMax);
3553
+ for (var i = 0; i < this.iMax; i++) {
3554
+ this.grid[i] = new Array(this.jMax);
3555
+ for (var j = 0; j < this.jMax; j++) {
3556
+ this.grid[i][j] = 0;
3557
+ }
3558
+ }
3559
+ this.tracebackGrid = new Array(this.iMax);
3560
+ for (var _i = 0; _i < this.iMax; _i++) {
3561
+ this.tracebackGrid[_i] = new Array(this.jMax);
3562
+ for (var _j = 0; _j < this.jMax; _j++) {
3563
+ this.tracebackGrid[_i][_j] = [null, null, null];
3564
+ }
3565
+ }
3566
+ this.alignments = [];
3567
+ this.score = -1;
3568
+ this.computeGrids();
3569
+ }
3570
+ _createClass(NeedlemanWunsch2, [{
3571
+ key: "getScore",
3572
+ value: function getScore() {
3573
+ return this.score;
3574
+ }
3575
+ }, {
3576
+ key: "getAlignments",
3577
+ value: function getAlignments() {
3578
+ return this.alignments;
3579
+ }
3580
+ // Main dynamic programming procedure
3581
+ }, {
3582
+ key: "computeGrids",
3583
+ value: function computeGrids() {
3584
+ for (var j = 1; j < this.jMax; j++) {
3585
+ this.grid[0][j] = this.grid[0][j - 1] + this.gap_penalty;
3586
+ this.tracebackGrid[0][j] = [false, false, true];
3587
+ }
3588
+ for (var i = 1; i < this.iMax; i++) {
3589
+ this.grid[i][0] = this.grid[i - 1][0] + this.gap_penalty;
3590
+ this.tracebackGrid[i][0] = [false, true, false];
3591
+ }
3592
+ for (var _i2 = 1; _i2 < this.iMax; _i2++) {
3593
+ for (var _j2 = 1; _j2 < this.jMax; _j2++) {
3594
+ var diag = void 0;
3595
+ if (this.sequence1[_i2 - 1] === this.sequence2[_j2 - 1]) diag = this.grid[_i2 - 1][_j2 - 1] + this.match_score;
3596
+ else diag = this.grid[_i2 - 1][_j2 - 1] + this.mismatch_penalty;
3597
+ var up = this.grid[_i2 - 1][_j2] + this.gap_penalty;
3598
+ var left = this.grid[_i2][_j2 - 1] + this.gap_penalty;
3599
+ var maxOf = [diag, up, left];
3600
+ var indices = this.arrayAllMaxIndexes(maxOf);
3601
+ this.grid[_i2][_j2] = maxOf[indices[0]];
3602
+ this.tracebackGrid[_i2][_j2] = [indices.includes(0), indices.includes(1), indices.includes(2)];
3603
+ }
3604
+ }
3605
+ this.score = this.grid[this.iMax - 1][this.jMax - 1];
3606
+ }
3607
+ // Gets all possible valid sequence combinations
3608
+ }, {
3609
+ key: "alignmentTraceback",
3610
+ value: function alignmentTraceback() {
3611
+ var inProcessAlignments = [];
3612
+ inProcessAlignments.push({
3613
+ pos: [this.sequence1.length, this.sequence2.length],
3614
+ seq1: "",
3615
+ seq2: ""
3616
+ });
3617
+ while (inProcessAlignments[0]) {
3618
+ var current = inProcessAlignments[0];
3619
+ var directions = this.tracebackGrid[current.pos[0]][current.pos[1]];
3620
+ if (directions[0]) {
3621
+ inProcessAlignments.push({
3622
+ pos: [current.pos[0] - 1, current.pos[1] - 1],
3623
+ seq1: this.sequence1[current.pos[0] - 1] + current.seq1,
3624
+ seq2: this.sequence2[current.pos[1] - 1] + current.seq2
3625
+ });
3626
+ }
3627
+ if (directions[1]) {
3628
+ inProcessAlignments.push({
3629
+ pos: [current.pos[0] - 1, current.pos[1]],
3630
+ seq1: this.sequence1[current.pos[0] - 1] + current.seq1,
3631
+ seq2: "-" + current.seq2
3632
+ });
3633
+ }
3634
+ if (directions[2]) {
3635
+ inProcessAlignments.push({
3636
+ pos: [current.pos[0], current.pos[1] - 1],
3637
+ seq1: "-" + current.seq1,
3638
+ seq2: this.sequence2[current.pos[1] - 1] + current.seq2
3639
+ });
3640
+ }
3641
+ if (current.pos[0] === 0 && current.pos[1] === 0) this.alignments.push({
3642
+ sequence1: current.seq1,
3643
+ sequence2: current.seq2
3644
+ });
3645
+ inProcessAlignments.shift();
3646
+ }
3647
+ return this.alignments;
3648
+ }
3649
+ // Helper Functions
3650
+ }, {
3651
+ key: "getAllIndexes",
3652
+ value: function getAllIndexes(arr, val) {
3653
+ var indexes = [], i = -1;
3654
+ while ((i = arr.indexOf(val, i + 1)) !== -1) {
3655
+ indexes.push(i);
3656
+ }
3657
+ return indexes;
3658
+ }
3659
+ }, {
3660
+ key: "arrayAllMaxIndexes",
3661
+ value: function arrayAllMaxIndexes(array) {
3662
+ return this.getAllIndexes(array, Math.max.apply(null, array));
3663
+ }
3664
+ }]);
3665
+ return NeedlemanWunsch2;
3666
+ }();
3667
+ module2.exports = NeedlemanWunsch;
3668
+ },
3669
+ /* 28 */
3670
+ /***/
3671
+ function(module2, exports2, __webpack_require__) {
3672
+ var layoutBase2 = function layoutBase3() {
3673
+ return;
3674
+ };
3675
+ layoutBase2.FDLayout = __webpack_require__(18);
3676
+ layoutBase2.FDLayoutConstants = __webpack_require__(4);
3677
+ layoutBase2.FDLayoutEdge = __webpack_require__(19);
3678
+ layoutBase2.FDLayoutNode = __webpack_require__(20);
3679
+ layoutBase2.DimensionD = __webpack_require__(21);
3680
+ layoutBase2.HashMap = __webpack_require__(22);
3681
+ layoutBase2.HashSet = __webpack_require__(23);
3682
+ layoutBase2.IGeometry = __webpack_require__(8);
3683
+ layoutBase2.IMath = __webpack_require__(9);
3684
+ layoutBase2.Integer = __webpack_require__(10);
3685
+ layoutBase2.Point = __webpack_require__(12);
3686
+ layoutBase2.PointD = __webpack_require__(5);
3687
+ layoutBase2.RandomSeed = __webpack_require__(16);
3688
+ layoutBase2.RectangleD = __webpack_require__(13);
3689
+ layoutBase2.Transform = __webpack_require__(17);
3690
+ layoutBase2.UniqueIDGeneretor = __webpack_require__(14);
3691
+ layoutBase2.Quicksort = __webpack_require__(25);
3692
+ layoutBase2.LinkedList = __webpack_require__(11);
3693
+ layoutBase2.LGraphObject = __webpack_require__(2);
3694
+ layoutBase2.LGraph = __webpack_require__(6);
3695
+ layoutBase2.LEdge = __webpack_require__(1);
3696
+ layoutBase2.LGraphManager = __webpack_require__(7);
3697
+ layoutBase2.LNode = __webpack_require__(3);
3698
+ layoutBase2.Layout = __webpack_require__(15);
3699
+ layoutBase2.LayoutConstants = __webpack_require__(0);
3700
+ layoutBase2.NeedlemanWunsch = __webpack_require__(27);
3701
+ layoutBase2.Matrix = __webpack_require__(24);
3702
+ layoutBase2.SVD = __webpack_require__(26);
3703
+ module2.exports = layoutBase2;
3704
+ },
3705
+ /* 29 */
3706
+ /***/
3707
+ function(module2, exports2, __webpack_require__) {
3708
+ function Emitter() {
3709
+ this.listeners = [];
3710
+ }
3711
+ var p = Emitter.prototype;
3712
+ p.addListener = function(event, callback) {
3713
+ this.listeners.push({
3714
+ event,
3715
+ callback
3716
+ });
3717
+ };
3718
+ p.removeListener = function(event, callback) {
3719
+ for (var i = this.listeners.length; i >= 0; i--) {
3720
+ var l = this.listeners[i];
3721
+ if (l.event === event && l.callback === callback) {
3722
+ this.listeners.splice(i, 1);
3723
+ }
3724
+ }
3725
+ };
3726
+ p.emit = function(event, data) {
3727
+ for (var i = 0; i < this.listeners.length; i++) {
3728
+ var l = this.listeners[i];
3729
+ if (event === l.event) {
3730
+ l.callback(data);
3731
+ }
3732
+ }
3733
+ };
3734
+ module2.exports = Emitter;
3735
+ }
3736
+ /******/
3737
+ ])
3738
+ );
3739
+ });
3740
+ })(layoutBase$1);
3741
+ return layoutBase$1.exports;
3742
+ }
3743
+ export {
3744
+ requireLayoutBase as __require
3745
+ };