@elmethis/core 1.0.0-alpha.147 → 1.0.0-alpha.149

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 (1191) 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/components/icon/languages/Bash.vue.mjs +31 -0
  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 +27 -25
  855. package/dist/Bash-aFIJDfx0.js +0 -30
  856. package/dist/Css-aYNwv_jI.js +0 -18
  857. package/dist/ElmShikiHighlighter--ESSD5xl.js +0 -7531
  858. package/dist/Rust-CcTG3HST.js +0 -16
  859. package/dist/_basePickBy-q3OsvEq8.js +0 -152
  860. package/dist/_baseUniq-DXyFBvJx.js +0 -583
  861. package/dist/abap-BPxeDPn4.js +0 -6
  862. package/dist/actionscript-3-Cjb604Dt.js +0 -6
  863. package/dist/ada-BSgRrxrM.js +0 -6
  864. package/dist/andromeeda-uXNdzNpk.js +0 -4
  865. package/dist/angular-html-Zg5oS4-1.js +0 -32
  866. package/dist/angular-ts-NgJ-y-q8.js +0 -21
  867. package/dist/apache-Cyj7Ib-S.js +0 -6
  868. package/dist/apex-DAAiMqi-.js +0 -6
  869. package/dist/apl-DxZdCuNa.js +0 -16
  870. package/dist/applescript-CroEtIVQ.js +0 -6
  871. package/dist/ara-9AczF2vY.js +0 -6
  872. package/dist/arc-BLiqnhIS.js +0 -83
  873. package/dist/architecture-4AB2E3PP-CJBMa096.js +0 -5
  874. package/dist/architectureDiagram-IEHRJDOE-BmZLGcAR.js +0 -4633
  875. package/dist/asciidoc-raFNDrGb.js +0 -6
  876. package/dist/asm-C8ld_M07.js +0 -6
  877. package/dist/astro-DVLPOVeH.js +0 -16
  878. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  879. package/dist/awk-gc4Y_RTq.js +0 -6
  880. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  881. package/dist/ballerina-CML1q4Hw.js +0 -6
  882. package/dist/bat-BVW1L4ug.js +0 -6
  883. package/dist/beancount-DYEC72C_.js +0 -6
  884. package/dist/berry-VTah6p7n.js +0 -6
  885. package/dist/bibtex-Bqt_3AVI.js +0 -6
  886. package/dist/bicep-DGk9_2l4.js +0 -6
  887. package/dist/blade-kJIUE9Xv.js +0 -20
  888. package/dist/blockDiagram-JOT3LUYC-CirZxs50.js +0 -2247
  889. package/dist/bsl-tt9CYf2I.js +0 -8
  890. package/dist/c-Cb-M0LQR.js +0 -6
  891. package/dist/c4Diagram-VJAJSXHY-CT04iVyI.js +0 -1581
  892. package/dist/cadence-Di4VMBdJ.js +0 -6
  893. package/dist/cairo-CNbjbPRN.js +0 -8
  894. package/dist/catppuccin-frappe-MQ6irQtC.js +0 -4
  895. package/dist/catppuccin-latte-UMitw0Sv.js +0 -4
  896. package/dist/catppuccin-macchiato-CpTwm6bY.js +0 -4
  897. package/dist/catppuccin-mocha-DAcVHoH1.js +0 -4
  898. package/dist/channel-DJoWX82m.js +0 -5
  899. package/dist/chunk-4BMEZGHF-DbrRFQBV.js +0 -9
  900. package/dist/chunk-A2AXSNBT-8nnxOxzM.js +0 -1372
  901. package/dist/chunk-AEK57VVT-BuA3ibij.js +0 -1415
  902. package/dist/chunk-D6G4REZN-C3CadGUl.js +0 -64
  903. package/dist/chunk-RZ5BOZE2-bPOa0Bzk.js +0 -24
  904. package/dist/chunk-XZIHB7SX-tSNzo5Pm.js +0 -15
  905. package/dist/clarity-WOA8trQj.js +0 -6
  906. package/dist/classDiagram-GIVACNV2-Ikn0C8nj.js +0 -16
  907. package/dist/classDiagram-v2-COTLJTTW-Ikn0C8nj.js +0 -16
  908. package/dist/clojure-r3NcJ8yt.js +0 -6
  909. package/dist/clone-KYMNdRyb.js +0 -8
  910. package/dist/cmake-CQmEhYbr.js +0 -6
  911. package/dist/cobol-DpscMYyB.js +0 -10
  912. package/dist/codeowners-Bt9yU6NX.js +0 -6
  913. package/dist/codeql-2Dcm6WNF.js +0 -6
  914. package/dist/coffee-cT6mLyjo.js +0 -8
  915. package/dist/common-lisp-DuX5KqId.js +0 -6
  916. package/dist/coq-DboLktjX.js +0 -6
  917. package/dist/cpp-Dfuj7FgN.js +0 -18
  918. package/dist/crystal-Cu359yzW.js +0 -18
  919. package/dist/csharp-xQvxkZxj.js +0 -6
  920. package/dist/css-BnL1064W.js +0 -6
  921. package/dist/csv-CmYOceLb.js +0 -6
  922. package/dist/cue-ByErcpN2.js +0 -6
  923. package/dist/cypher-DEVyrV5b.js +0 -6
  924. package/dist/cytoscape.esm-aRg21b6u.js +0 -18120
  925. package/dist/d-CBVqdj3C.js +0 -6
  926. package/dist/dagre-OKDRZEBW-Dd5I26Ao.js +0 -447
  927. package/dist/dark-plus-pUHDTVV0.js +0 -4
  928. package/dist/dart-u2fD-sKr.js +0 -6
  929. package/dist/dax-Crz9Wv4y.js +0 -6
  930. package/dist/desktop-DNXSD5qJ.js +0 -6
  931. package/dist/diagram-SSKATNLV-DZNkfESc.js +0 -221
  932. package/dist/diagram-VNBRO52H-CEw-lSHb.js +0 -126
  933. package/dist/diff-DOdUfPSR.js +0 -6
  934. package/dist/docker-CsHqm9tx.js +0 -6
  935. package/dist/dotenv-BYL4tpZA.js +0 -6
  936. package/dist/dracula-BtZx2Kac.js +0 -4
  937. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  938. package/dist/dream-maker-kevRUHRs.js +0 -6
  939. package/dist/edge-D-R-hhaT.js +0 -12
  940. package/dist/elixir-DuneT2DZ.js +0 -8
  941. package/dist/elm-DdPFQYmH.js +0 -8
  942. package/dist/elmethis.js +0 -70
  943. package/dist/emacs-lisp-Bwasiep6.js +0 -6
  944. package/dist/erDiagram-Q7BY3M3F-Bi-5rbd2.js +0 -841
  945. package/dist/erb-BDkUfiWc.js +0 -10
  946. package/dist/erlang-CxpbZUOc.js +0 -6
  947. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  948. package/dist/everforest-light-BbXl82Em.js +0 -4
  949. package/dist/fennel-B1x5pKr1.js +0 -6
  950. package/dist/fish-BjbXctXH.js +0 -6
  951. package/dist/flowDiagram-4HSFHLVR-Bep2tb38.js +0 -1622
  952. package/dist/fluent-DCuHrNR-.js +0 -6
  953. package/dist/fortran-fixed-form-muAGtm2V.js +0 -8
  954. package/dist/fortran-free-form-Db8k5H7x.js +0 -6
  955. package/dist/fsharp-D3TfYvtR.js +0 -8
  956. package/dist/ganttDiagram-APWFNJXF-MiSNV5UX.js +0 -2493
  957. package/dist/gdresource-C22851qr.js +0 -10
  958. package/dist/gdscript-C-C99PjI.js +0 -6
  959. package/dist/gdshader-0TihrSQl.js +0 -6
  960. package/dist/genie-MtKmcmPo.js +0 -6
  961. package/dist/gherkin-AzJBtK0J.js +0 -6
  962. package/dist/git-commit-Cdscfa4x.js +0 -8
  963. package/dist/git-rebase-BkertWzk.js +0 -8
  964. package/dist/gitGraph-O2Q2CXLX-2aBB3Qlu.js +0 -5
  965. package/dist/gitGraphDiagram-7IBYFJ6S-BeIrUUuR.js +0 -712
  966. package/dist/github-dark-DenFmJkN.js +0 -4
  967. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  968. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  969. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  970. package/dist/github-light-JYsPkUQd.js +0 -4
  971. package/dist/github-light-default-D99KPAby.js +0 -4
  972. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  973. package/dist/gleam-BoJB89vF.js +0 -6
  974. package/dist/glimmer-js-DEzcmBLn.js +0 -14
  975. package/dist/glimmer-ts-CfoDm2Ms.js +0 -14
  976. package/dist/glsl-BcGeWDoy.js +0 -8
  977. package/dist/gnuplot-DgGnPAp8.js +0 -6
  978. package/dist/go-Cw0OOp5U.js +0 -6
  979. package/dist/graph-BN6Ja3dj.js +0 -247
  980. package/dist/graphql-BA9S3A0F.js +0 -14
  981. package/dist/groovy-45PuQEhl.js +0 -6
  982. package/dist/gruvbox-dark-hard-BDGmrmYl.js +0 -4
  983. package/dist/gruvbox-dark-medium-D7OrvcL5.js +0 -4
  984. package/dist/gruvbox-dark-soft-D_75PUdg.js +0 -4
  985. package/dist/gruvbox-light-hard-DhQt1gbs.js +0 -4
  986. package/dist/gruvbox-light-medium-DNXV_Sw8.js +0 -4
  987. package/dist/gruvbox-light-soft-C7ZspGxH.js +0 -4
  988. package/dist/hack-B5c1rmdK.js +0 -10
  989. package/dist/haml-CknjlTyn.js +0 -10
  990. package/dist/handlebars-DxZCQ1Ls.js +0 -14
  991. package/dist/haskell-ClRE648j.js +0 -6
  992. package/dist/haxe-CClgwBXY.js +0 -6
  993. package/dist/hcl-JJeBEFYE.js +0 -6
  994. package/dist/hjson-BollGKL_.js +0 -6
  995. package/dist/hlsl-b3kI2reZ.js +0 -6
  996. package/dist/houston-BDYrDoDW.js +0 -4
  997. package/dist/html-Iy9EJBkL.js +0 -10
  998. package/dist/html-derivative-BfM_d1x5.js +0 -8
  999. package/dist/http-Q-2xEgRf.js +0 -14
  1000. package/dist/hxml-C2bnoXd-.js +0 -8
  1001. package/dist/hy-S8dYOqS_.js +0 -6
  1002. package/dist/imba-DzSSVziz.js +0 -6
  1003. package/dist/index-DzMRhuTS.js +0 -17481
  1004. package/dist/info-4N47QTOZ-MlaygFtp.js +0 -5
  1005. package/dist/infoDiagram-PH2N3AL5-CLDi4hXF.js +0 -22
  1006. package/dist/ini-Cw62c0sR.js +0 -6
  1007. package/dist/init-DjUOC4st.js +0 -16
  1008. package/dist/java-DNw9zkk2.js +0 -6
  1009. package/dist/javascript-CXHlxgtu.js +0 -6
  1010. package/dist/jinja-D3ov3d_Q.js +0 -11
  1011. package/dist/jison-bKZ_ygkY.js +0 -8
  1012. package/dist/journeyDiagram-U35MCT3I-DF_hle8P.js +0 -809
  1013. package/dist/json-D4cXEhM0.js +0 -6
  1014. package/dist/json5-QDX9y-Y9.js +0 -6
  1015. package/dist/jsonc-Bph7GQf8.js +0 -6
  1016. package/dist/jsonl-CCrMgdQc.js +0 -6
  1017. package/dist/jsonnet-SAcLllmN.js +0 -6
  1018. package/dist/jssm-f8vsTkbr.js +0 -6
  1019. package/dist/jsx-BYrS51r7.js +0 -6
  1020. package/dist/julia-k0_CCOLn.js +0 -16
  1021. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  1022. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  1023. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  1024. package/dist/kanban-definition-NDS4AKOZ-D2HjB3aQ.js +0 -719
  1025. package/dist/kotlin-DZs3CUXT.js +0 -6
  1026. package/dist/kusto-gqgW0Ct6.js +0 -6
  1027. package/dist/laserwave-6a00oqik.js +0 -4
  1028. package/dist/latex-ixPYeODw.js +0 -8
  1029. package/dist/layout-eoX7qCNd.js +0 -1325
  1030. package/dist/lean-DM2VgJqL.js +0 -6
  1031. package/dist/less-I_XXVOZl.js +0 -6
  1032. package/dist/light-plus-CZuVqSLX.js +0 -4
  1033. package/dist/linear-CjVlzhPx.js +0 -423
  1034. package/dist/liquid-DQYM4OUl.js +0 -14
  1035. package/dist/llvm-D3Vjgx0u.js +0 -6
  1036. package/dist/log-D-MzYv1Z.js +0 -6
  1037. package/dist/logo-D1k-IeHX.js +0 -6
  1038. package/dist/lua-DcPVWcJ7.js +0 -8
  1039. package/dist/luau-B3dL2bb0.js +0 -6
  1040. package/dist/make-CR9bkdqJ.js +0 -6
  1041. package/dist/markdown-w3MmBOPg.js +0 -6
  1042. package/dist/marko-Dou6ix2a.js +0 -14
  1043. package/dist/material-theme-D6KBX41T.js +0 -4
  1044. package/dist/material-theme-darker-CkRroheE.js +0 -4
  1045. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  1046. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  1047. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  1048. package/dist/matlab-Dj6qX5si.js +0 -6
  1049. package/dist/mdc-Df47nGTR.js +0 -12
  1050. package/dist/mdx-COYqLMfv.js +0 -6
  1051. package/dist/mermaid-parser.core-Cnk6H5Tf.js +0 -12836
  1052. package/dist/mermaid-qIAHIJes.js +0 -6
  1053. package/dist/mermaid.core-CVg1AOGh.js +0 -15467
  1054. package/dist/min-dark-C7ak0t6c.js +0 -4
  1055. package/dist/min-light-CKFxVcPp.js +0 -4
  1056. package/dist/mindmap-definition-ALO5MXBD-RsXchRow.js +0 -3220
  1057. package/dist/mipsasm-BJbuoeDX.js +0 -6
  1058. package/dist/mojo-BFkEE7I6.js +0 -6
  1059. package/dist/monokai-C1KBYcO0.js +0 -4
  1060. package/dist/move-DhZIVzw9.js +0 -6
  1061. package/dist/narrat-Cru3p5ML.js +0 -6
  1062. package/dist/nextflow-JJGGygxI.js +0 -6
  1063. package/dist/nginx-Chu4HPUZ.js +0 -8
  1064. package/dist/night-owl-Bm2rzalh.js +0 -4
  1065. package/dist/nim-m3ClKyoA.js +0 -20
  1066. package/dist/nix-DeKhqLCs.js +0 -6
  1067. package/dist/nord-CC5OiUXg.js +0 -4
  1068. package/dist/nushell-vZ0whCpp.js +0 -6
  1069. package/dist/objective-c-DLUrAoO7.js +0 -6
  1070. package/dist/objective-cpp-BR9pz3Y7.js +0 -6
  1071. package/dist/ocaml-JmaGD6hS.js +0 -6
  1072. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  1073. package/dist/one-light-D9sNaUtq.js +0 -4
  1074. package/dist/ordinal-DfAQgscy.js +0 -61
  1075. package/dist/packet-KVYON367-B0ibT50B.js +0 -5
  1076. package/dist/pascal-NVmycfDo.js +0 -6
  1077. package/dist/perl-Dvb6TR9K.js +0 -16
  1078. package/dist/php-CJHnp_ft.js +0 -18
  1079. package/dist/pie-R6RNRRYF-eieuCIEv.js +0 -5
  1080. package/dist/pieDiagram-IB7DONF6-z3HiYOHT.js +0 -161
  1081. package/dist/plastic-CSTz3KZp.js +0 -4
  1082. package/dist/plsql-DMWd0imC.js +0 -6
  1083. package/dist/po-GS6uwG3N.js +0 -6
  1084. package/dist/poimandres-C-VADXHD.js +0 -4
  1085. package/dist/polar-kLOnm3TU.js +0 -6
  1086. package/dist/postcss-BHhGrjb8.js +0 -6
  1087. package/dist/powerquery-CMfeLaGU.js +0 -6
  1088. package/dist/powershell-D1mvJxDs.js +0 -6
  1089. package/dist/prisma-pUoUFT3i.js +0 -6
  1090. package/dist/prolog-DY7WzwMi.js +0 -6
  1091. package/dist/proto-CNCp3VWu.js +0 -6
  1092. package/dist/pug-CUZjrycK.js +0 -12
  1093. package/dist/puppet-B0mgPBqt.js +0 -6
  1094. package/dist/purescript-Go548NjJ.js +0 -6
  1095. package/dist/python-x6NdgKMy.js +0 -6
  1096. package/dist/qml-BZvDVi14.js +0 -8
  1097. package/dist/qmldir-BInDYbpo.js +0 -6
  1098. package/dist/qss-8QkBlVEn.js +0 -6
  1099. package/dist/quadrantDiagram-7GDLP6J5-DKNPBuF7.js +0 -1024
  1100. package/dist/r-HSnR3oil.js +0 -6
  1101. package/dist/racket-N6wCNCGC.js +0 -6
  1102. package/dist/radar-MK3ICKWK-EavvS0dk.js +0 -5
  1103. package/dist/raku-DIMO1_4D.js +0 -6
  1104. package/dist/razor-B0naKaWH.js +0 -10
  1105. package/dist/red-7y8PH7HH.js +0 -4
  1106. package/dist/reg-6UpU0EA6.js +0 -6
  1107. package/dist/regexp-DHtjPxOp.js +0 -6
  1108. package/dist/rel-DBIoUiKW.js +0 -6
  1109. package/dist/requirementDiagram-KVF5MWMF-CVtQbDO9.js +0 -851
  1110. package/dist/riscv-DpWk9ieM.js +0 -6
  1111. package/dist/rose-pine-4uTOzEpE.js +0 -4
  1112. package/dist/rose-pine-dawn-GMd81k-m.js +0 -4
  1113. package/dist/rose-pine-moon-CIFp_3PJ.js +0 -4
  1114. package/dist/rst-B64R6T0G.js +0 -22
  1115. package/dist/ruby-DfrpdncG.js +0 -30
  1116. package/dist/rust-B-KPd2nT.js +0 -6
  1117. package/dist/sankeyDiagram-QLVOVGJD-Bv56p0v8.js +0 -808
  1118. package/dist/sas-CJQBty5v.js +0 -8
  1119. package/dist/sass-Zos2Blmo.js +0 -6
  1120. package/dist/scala-7cAMYIqn.js +0 -6
  1121. package/dist/scheme-BQZQETGI.js +0 -6
  1122. package/dist/scss-SeF7XgZE.js +0 -8
  1123. package/dist/sdbl-67k1U2sQ.js +0 -6
  1124. package/dist/sequenceDiagram-X6HHIX6F-B6HsmiCo.js +0 -2281
  1125. package/dist/shaderlab-D-UIeqfT.js +0 -8
  1126. package/dist/shellscript-DmhSIIKI.js +0 -6
  1127. package/dist/shellsession-DJoY56qV.js +0 -8
  1128. package/dist/slack-dark-i7wN4OET.js +0 -4
  1129. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  1130. package/dist/smalltalk-WltKgyq1.js +0 -6
  1131. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  1132. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  1133. package/dist/solarized-light-BheCkDPT.js +0 -4
  1134. package/dist/solidity-C04s0Yy3.js +0 -6
  1135. package/dist/soy-BLRDPjcE.js +0 -8
  1136. package/dist/sparql-DTCaWUmB.js +0 -8
  1137. package/dist/splunk-SGh_QiTm.js +0 -6
  1138. package/dist/sql-CsvhJWkt.js +0 -6
  1139. package/dist/ssh-config-D4I637-k.js +0 -6
  1140. package/dist/stata-CoSdWLbd.js +0 -8
  1141. package/dist/stateDiagram-DGXRK772-DisyN0eE.js +0 -270
  1142. package/dist/stateDiagram-v2-YXO3MK2T-DLdp-rnZ.js +0 -16
  1143. package/dist/stylus-C0YS3cII.js +0 -6
  1144. package/dist/svelte-D5kfh286.js +0 -14
  1145. package/dist/swift-DvTgPjC_.js +0 -6
  1146. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  1147. package/dist/system-verilog-NDUJ-OOt.js +0 -6
  1148. package/dist/systemd-WbxZvB8q.js +0 -6
  1149. package/dist/talonscript-CL368eRB.js +0 -6
  1150. package/dist/tasl-Dz-WwaLH.js +0 -6
  1151. package/dist/tcl-DlZIgGJq.js +0 -6
  1152. package/dist/templ-BeQ_faiG.js +0 -12
  1153. package/dist/terraform-BlQVOgpk.js +0 -6
  1154. package/dist/tex-D5wZQANC.js +0 -8
  1155. package/dist/timeline-definition-BDJGKUSR-BXC_uTuM.js +0 -804
  1156. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  1157. package/dist/toml-DMRYbshZ.js +0 -6
  1158. package/dist/ts-tags-BhMM8FHa.js +0 -41
  1159. package/dist/tsv-BtvSkaG0.js +0 -6
  1160. package/dist/tsx-D0IYuDPS.js +0 -6
  1161. package/dist/turtle-p-VV8DEc.js +0 -6
  1162. package/dist/twig-B7P5Ovvl.js +0 -18
  1163. package/dist/typescript-DKfvlBCw.js +0 -6
  1164. package/dist/typespec-CTme0-JL.js +0 -6
  1165. package/dist/typst-Dn4vyooU.js +0 -6
  1166. package/dist/v-D7ebitkb.js +0 -6
  1167. package/dist/vala-TRtLMDHC.js +0 -6
  1168. package/dist/vb-B47FrOmA.js +0 -6
  1169. package/dist/verilog-B2TLsC4I.js +0 -6
  1170. package/dist/vesper-BckBta1U.js +0 -4
  1171. package/dist/vhdl-CU5AEtCN.js +0 -6
  1172. package/dist/viml-D-fUhqVn.js +0 -6
  1173. package/dist/vitesse-black-BoGvW84i.js +0 -4
  1174. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  1175. package/dist/vitesse-light-CcmG315c.js +0 -4
  1176. package/dist/vue-CdwmeZFh.js +0 -31
  1177. package/dist/vue-html-C-PRGoQQ.js +0 -10
  1178. package/dist/vyper-C03y8CZF.js +0 -6
  1179. package/dist/wasm-Bq8UuFo1.js +0 -6
  1180. package/dist/wasm-DQxwEHae.js +0 -7
  1181. package/dist/wenyan-DZPWEYbu.js +0 -6
  1182. package/dist/wgsl-De1GPYf9.js +0 -6
  1183. package/dist/wikitext-C-THcCj2.js +0 -6
  1184. package/dist/wit-BanP67gl.js +0 -6
  1185. package/dist/wolfram-CUT_U39K.js +0 -6
  1186. package/dist/xml-jRL-qgj-.js +0 -8
  1187. package/dist/xsl-CZWICAVO.js +0 -8
  1188. package/dist/xychartDiagram-VJFVF3MP-CkPa_K58.js +0 -1304
  1189. package/dist/yaml-DcQhbMrL.js +0 -6
  1190. package/dist/zenscript-8JCzLCTe.js +0 -6
  1191. package/dist/zig-DhdgDxkm.js +0 -6
@@ -1,4633 +0,0 @@
1
- import { aG as qe, _ as nt, g as Je, s as Qe, a as Ke, b as je, t as _e, q as tr, K as er, ab as rr, z as ir, l as Pe, al as Le, c as ge, aH as me, d as ar, H as nr, aI as or, aJ as sr } from "./mermaid.core-CVg1AOGh.js";
2
- import { p as hr } from "./chunk-4BMEZGHF-DbrRFQBV.js";
3
- import { I as lr } from "./chunk-XZIHB7SX-tSNzo5Pm.js";
4
- import { p as fr } from "./mermaid-parser.core-Cnk6H5Tf.js";
5
- import { c as Ge } from "./cytoscape.esm-aRg21b6u.js";
6
- var le = { exports: {} }, fe = { exports: {} }, ce = { exports: {} }, cr = ce.exports, xe;
7
- function ur() {
8
- return xe || (xe = 1, function(C, U) {
9
- (function(G, L) {
10
- C.exports = L();
11
- })(cr, function() {
12
- return (
13
- /******/
14
- function(A) {
15
- var G = {};
16
- function L(u) {
17
- if (G[u])
18
- return G[u].exports;
19
- var l = G[u] = {
20
- /******/
21
- i: u,
22
- /******/
23
- l: !1,
24
- /******/
25
- exports: {}
26
- /******/
27
- };
28
- return A[u].call(l.exports, l, l.exports, L), l.l = !0, l.exports;
29
- }
30
- return L.m = A, L.c = G, L.i = function(u) {
31
- return u;
32
- }, L.d = function(u, l, a) {
33
- L.o(u, l) || Object.defineProperty(u, l, {
34
- /******/
35
- configurable: !1,
36
- /******/
37
- enumerable: !0,
38
- /******/
39
- get: a
40
- /******/
41
- });
42
- }, L.n = function(u) {
43
- var l = u && u.__esModule ? (
44
- /******/
45
- function() {
46
- return u.default;
47
- }
48
- ) : (
49
- /******/
50
- function() {
51
- return u;
52
- }
53
- );
54
- return L.d(l, "a", l), l;
55
- }, L.o = function(u, l) {
56
- return Object.prototype.hasOwnProperty.call(u, l);
57
- }, L.p = "", L(L.s = 28);
58
- }([
59
- /* 0 */
60
- /***/
61
- function(A, G, L) {
62
- function u() {
63
- }
64
- u.QUALITY = 1, u.DEFAULT_CREATE_BENDS_AS_NEEDED = !1, u.DEFAULT_INCREMENTAL = !1, u.DEFAULT_ANIMATION_ON_LAYOUT = !0, u.DEFAULT_ANIMATION_DURING_LAYOUT = !1, u.DEFAULT_ANIMATION_PERIOD = 50, u.DEFAULT_UNIFORM_LEAF_NODE_SIZES = !1, u.DEFAULT_GRAPH_MARGIN = 15, u.NODE_DIMENSIONS_INCLUDE_LABELS = !1, u.SIMPLE_NODE_SIZE = 40, u.SIMPLE_NODE_HALF_SIZE = u.SIMPLE_NODE_SIZE / 2, u.EMPTY_COMPOUND_NODE_SIZE = 40, u.MIN_EDGE_LENGTH = 1, u.WORLD_BOUNDARY = 1e6, u.INITIAL_WORLD_BOUNDARY = u.WORLD_BOUNDARY / 1e3, u.WORLD_CENTER_X = 1200, u.WORLD_CENTER_Y = 900, A.exports = u;
65
- },
66
- /* 1 */
67
- /***/
68
- function(A, G, L) {
69
- var u = L(2), l = L(8), a = L(9);
70
- function r(f, i, g) {
71
- u.call(this, g), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = g, this.bendpoints = [], this.source = f, this.target = i;
72
- }
73
- r.prototype = Object.create(u.prototype);
74
- for (var e in u)
75
- r[e] = u[e];
76
- r.prototype.getSource = function() {
77
- return this.source;
78
- }, r.prototype.getTarget = function() {
79
- return this.target;
80
- }, r.prototype.isInterGraph = function() {
81
- return this.isInterGraph;
82
- }, r.prototype.getLength = function() {
83
- return this.length;
84
- }, r.prototype.isOverlapingSourceAndTarget = function() {
85
- return this.isOverlapingSourceAndTarget;
86
- }, r.prototype.getBendpoints = function() {
87
- return this.bendpoints;
88
- }, r.prototype.getLca = function() {
89
- return this.lca;
90
- }, r.prototype.getSourceInLca = function() {
91
- return this.sourceInLca;
92
- }, r.prototype.getTargetInLca = function() {
93
- return this.targetInLca;
94
- }, r.prototype.getOtherEnd = function(f) {
95
- if (this.source === f)
96
- return this.target;
97
- if (this.target === f)
98
- return this.source;
99
- throw "Node is not incident with this edge";
100
- }, r.prototype.getOtherEndInGraph = function(f, i) {
101
- for (var g = this.getOtherEnd(f), t = i.getGraphManager().getRoot(); ; ) {
102
- if (g.getOwner() == i)
103
- return g;
104
- if (g.getOwner() == t)
105
- break;
106
- g = g.getOwner().getParent();
107
- }
108
- return null;
109
- }, r.prototype.updateLength = function() {
110
- var f = new Array(4);
111
- this.isOverlapingSourceAndTarget = l.getIntersection(this.target.getRect(), this.source.getRect(), f), this.isOverlapingSourceAndTarget || (this.lengthX = f[0] - f[2], this.lengthY = f[1] - f[3], Math.abs(this.lengthX) < 1 && (this.lengthX = a.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = a.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
112
- }, r.prototype.updateLengthSimple = function() {
113
- this.lengthX = this.target.getCenterX() - this.source.getCenterX(), this.lengthY = this.target.getCenterY() - this.source.getCenterY(), Math.abs(this.lengthX) < 1 && (this.lengthX = a.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = a.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
114
- }, A.exports = r;
115
- },
116
- /* 2 */
117
- /***/
118
- function(A, G, L) {
119
- function u(l) {
120
- this.vGraphObject = l;
121
- }
122
- A.exports = u;
123
- },
124
- /* 3 */
125
- /***/
126
- function(A, G, L) {
127
- var u = L(2), l = L(10), a = L(13), r = L(0), e = L(16), f = L(5);
128
- function i(t, s, o, c) {
129
- o == null && c == null && (c = s), u.call(this, c), t.graphManager != null && (t = t.graphManager), this.estimatedSize = l.MIN_VALUE, this.inclusionTreeDepth = l.MAX_VALUE, this.vGraphObject = c, this.edges = [], this.graphManager = t, o != null && s != null ? this.rect = new a(s.x, s.y, o.width, o.height) : this.rect = new a();
130
- }
131
- i.prototype = Object.create(u.prototype);
132
- for (var g in u)
133
- i[g] = u[g];
134
- i.prototype.getEdges = function() {
135
- return this.edges;
136
- }, i.prototype.getChild = function() {
137
- return this.child;
138
- }, i.prototype.getOwner = function() {
139
- return this.owner;
140
- }, i.prototype.getWidth = function() {
141
- return this.rect.width;
142
- }, i.prototype.setWidth = function(t) {
143
- this.rect.width = t;
144
- }, i.prototype.getHeight = function() {
145
- return this.rect.height;
146
- }, i.prototype.setHeight = function(t) {
147
- this.rect.height = t;
148
- }, i.prototype.getCenterX = function() {
149
- return this.rect.x + this.rect.width / 2;
150
- }, i.prototype.getCenterY = function() {
151
- return this.rect.y + this.rect.height / 2;
152
- }, i.prototype.getCenter = function() {
153
- return new f(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
154
- }, i.prototype.getLocation = function() {
155
- return new f(this.rect.x, this.rect.y);
156
- }, i.prototype.getRect = function() {
157
- return this.rect;
158
- }, i.prototype.getDiagonal = function() {
159
- return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
160
- }, i.prototype.getHalfTheDiagonal = function() {
161
- return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
162
- }, i.prototype.setRect = function(t, s) {
163
- this.rect.x = t.x, this.rect.y = t.y, this.rect.width = s.width, this.rect.height = s.height;
164
- }, i.prototype.setCenter = function(t, s) {
165
- this.rect.x = t - this.rect.width / 2, this.rect.y = s - this.rect.height / 2;
166
- }, i.prototype.setLocation = function(t, s) {
167
- this.rect.x = t, this.rect.y = s;
168
- }, i.prototype.moveBy = function(t, s) {
169
- this.rect.x += t, this.rect.y += s;
170
- }, i.prototype.getEdgeListToNode = function(t) {
171
- var s = [], o = this;
172
- return o.edges.forEach(function(c) {
173
- if (c.target == t) {
174
- if (c.source != o) throw "Incorrect edge source!";
175
- s.push(c);
176
- }
177
- }), s;
178
- }, i.prototype.getEdgesBetween = function(t) {
179
- var s = [], o = this;
180
- return o.edges.forEach(function(c) {
181
- if (!(c.source == o || c.target == o)) throw "Incorrect edge source and/or target";
182
- (c.target == t || c.source == t) && s.push(c);
183
- }), s;
184
- }, i.prototype.getNeighborsList = function() {
185
- var t = /* @__PURE__ */ new Set(), s = this;
186
- return s.edges.forEach(function(o) {
187
- if (o.source == s)
188
- t.add(o.target);
189
- else {
190
- if (o.target != s)
191
- throw "Incorrect incidency!";
192
- t.add(o.source);
193
- }
194
- }), t;
195
- }, i.prototype.withChildren = function() {
196
- var t = /* @__PURE__ */ new Set(), s, o;
197
- if (t.add(this), this.child != null)
198
- for (var c = this.child.getNodes(), h = 0; h < c.length; h++)
199
- s = c[h], o = s.withChildren(), o.forEach(function(T) {
200
- t.add(T);
201
- });
202
- return t;
203
- }, i.prototype.getNoOfChildren = function() {
204
- var t = 0, s;
205
- if (this.child == null)
206
- t = 1;
207
- else
208
- for (var o = this.child.getNodes(), c = 0; c < o.length; c++)
209
- s = o[c], t += s.getNoOfChildren();
210
- return t == 0 && (t = 1), t;
211
- }, i.prototype.getEstimatedSize = function() {
212
- if (this.estimatedSize == l.MIN_VALUE)
213
- throw "assert failed";
214
- return this.estimatedSize;
215
- }, i.prototype.calcEstimatedSize = function() {
216
- return this.child == null ? this.estimatedSize = (this.rect.width + this.rect.height) / 2 : (this.estimatedSize = this.child.calcEstimatedSize(), this.rect.width = this.estimatedSize, this.rect.height = this.estimatedSize, this.estimatedSize);
217
- }, i.prototype.scatter = function() {
218
- var t, s, o = -r.INITIAL_WORLD_BOUNDARY, c = r.INITIAL_WORLD_BOUNDARY;
219
- t = r.WORLD_CENTER_X + e.nextDouble() * (c - o) + o;
220
- var h = -r.INITIAL_WORLD_BOUNDARY, T = r.INITIAL_WORLD_BOUNDARY;
221
- s = r.WORLD_CENTER_Y + e.nextDouble() * (T - h) + h, this.rect.x = t, this.rect.y = s;
222
- }, i.prototype.updateBounds = function() {
223
- if (this.getChild() == null)
224
- throw "assert failed";
225
- if (this.getChild().getNodes().length != 0) {
226
- var t = this.getChild();
227
- if (t.updateBounds(!0), this.rect.x = t.getLeft(), this.rect.y = t.getTop(), this.setWidth(t.getRight() - t.getLeft()), this.setHeight(t.getBottom() - t.getTop()), r.NODE_DIMENSIONS_INCLUDE_LABELS) {
228
- var s = t.getRight() - t.getLeft(), o = t.getBottom() - t.getTop();
229
- this.labelWidth && (this.labelPosHorizontal == "left" ? (this.rect.x -= this.labelWidth, this.setWidth(s + this.labelWidth)) : this.labelPosHorizontal == "center" && this.labelWidth > s ? (this.rect.x -= (this.labelWidth - s) / 2, this.setWidth(this.labelWidth)) : this.labelPosHorizontal == "right" && this.setWidth(s + this.labelWidth)), this.labelHeight && (this.labelPosVertical == "top" ? (this.rect.y -= this.labelHeight, this.setHeight(o + this.labelHeight)) : this.labelPosVertical == "center" && this.labelHeight > o ? (this.rect.y -= (this.labelHeight - o) / 2, this.setHeight(this.labelHeight)) : this.labelPosVertical == "bottom" && this.setHeight(o + this.labelHeight));
230
- }
231
- }
232
- }, i.prototype.getInclusionTreeDepth = function() {
233
- if (this.inclusionTreeDepth == l.MAX_VALUE)
234
- throw "assert failed";
235
- return this.inclusionTreeDepth;
236
- }, i.prototype.transform = function(t) {
237
- var s = this.rect.x;
238
- s > r.WORLD_BOUNDARY ? s = r.WORLD_BOUNDARY : s < -r.WORLD_BOUNDARY && (s = -r.WORLD_BOUNDARY);
239
- var o = this.rect.y;
240
- o > r.WORLD_BOUNDARY ? o = r.WORLD_BOUNDARY : o < -r.WORLD_BOUNDARY && (o = -r.WORLD_BOUNDARY);
241
- var c = new f(s, o), h = t.inverseTransformPoint(c);
242
- this.setLocation(h.x, h.y);
243
- }, i.prototype.getLeft = function() {
244
- return this.rect.x;
245
- }, i.prototype.getRight = function() {
246
- return this.rect.x + this.rect.width;
247
- }, i.prototype.getTop = function() {
248
- return this.rect.y;
249
- }, i.prototype.getBottom = function() {
250
- return this.rect.y + this.rect.height;
251
- }, i.prototype.getParent = function() {
252
- return this.owner == null ? null : this.owner.getParent();
253
- }, A.exports = i;
254
- },
255
- /* 4 */
256
- /***/
257
- function(A, G, L) {
258
- var u = L(0);
259
- function l() {
260
- }
261
- for (var a in u)
262
- l[a] = u[a];
263
- l.MAX_ITERATIONS = 2500, l.DEFAULT_EDGE_LENGTH = 50, l.DEFAULT_SPRING_STRENGTH = 0.45, l.DEFAULT_REPULSION_STRENGTH = 4500, l.DEFAULT_GRAVITY_STRENGTH = 0.4, l.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, l.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = !0, l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = !0, l.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, l.COOLING_ADAPTATION_FACTOR = 0.33, l.ADAPTATION_LOWER_NODE_LIMIT = 1e3, l.ADAPTATION_UPPER_NODE_LIMIT = 5e3, l.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, l.MAX_NODE_DISPLACEMENT = l.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, l.MIN_REPULSION_DIST = l.DEFAULT_EDGE_LENGTH / 10, l.CONVERGENCE_CHECK_PERIOD = 100, l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, l.MIN_EDGE_LENGTH = 1, l.GRID_CALCULATION_CHECK_PERIOD = 10, A.exports = l;
264
- },
265
- /* 5 */
266
- /***/
267
- function(A, G, L) {
268
- function u(l, a) {
269
- l == null && a == null ? (this.x = 0, this.y = 0) : (this.x = l, this.y = a);
270
- }
271
- u.prototype.getX = function() {
272
- return this.x;
273
- }, u.prototype.getY = function() {
274
- return this.y;
275
- }, u.prototype.setX = function(l) {
276
- this.x = l;
277
- }, u.prototype.setY = function(l) {
278
- this.y = l;
279
- }, u.prototype.getDifference = function(l) {
280
- return new DimensionD(this.x - l.x, this.y - l.y);
281
- }, u.prototype.getCopy = function() {
282
- return new u(this.x, this.y);
283
- }, u.prototype.translate = function(l) {
284
- return this.x += l.width, this.y += l.height, this;
285
- }, A.exports = u;
286
- },
287
- /* 6 */
288
- /***/
289
- function(A, G, L) {
290
- var u = L(2), l = L(10), a = L(0), r = L(7), e = L(3), f = L(1), i = L(13), g = L(12), t = L(11);
291
- function s(c, h, T) {
292
- u.call(this, T), this.estimatedSize = l.MIN_VALUE, this.margin = a.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = c, h != null && h instanceof r ? this.graphManager = h : h != null && h instanceof Layout && (this.graphManager = h.graphManager);
293
- }
294
- s.prototype = Object.create(u.prototype);
295
- for (var o in u)
296
- s[o] = u[o];
297
- s.prototype.getNodes = function() {
298
- return this.nodes;
299
- }, s.prototype.getEdges = function() {
300
- return this.edges;
301
- }, s.prototype.getGraphManager = function() {
302
- return this.graphManager;
303
- }, s.prototype.getParent = function() {
304
- return this.parent;
305
- }, s.prototype.getLeft = function() {
306
- return this.left;
307
- }, s.prototype.getRight = function() {
308
- return this.right;
309
- }, s.prototype.getTop = function() {
310
- return this.top;
311
- }, s.prototype.getBottom = function() {
312
- return this.bottom;
313
- }, s.prototype.isConnected = function() {
314
- return this.isConnected;
315
- }, s.prototype.add = function(c, h, T) {
316
- if (h == null && T == null) {
317
- var v = c;
318
- if (this.graphManager == null)
319
- throw "Graph has no graph mgr!";
320
- if (this.getNodes().indexOf(v) > -1)
321
- throw "Node already in graph!";
322
- return v.owner = this, this.getNodes().push(v), v;
323
- } else {
324
- var d = c;
325
- if (!(this.getNodes().indexOf(h) > -1 && this.getNodes().indexOf(T) > -1))
326
- throw "Source or target not in graph!";
327
- if (!(h.owner == T.owner && h.owner == this))
328
- throw "Both owners must be this graph!";
329
- return h.owner != T.owner ? null : (d.source = h, d.target = T, d.isInterGraph = !1, this.getEdges().push(d), h.edges.push(d), T != h && T.edges.push(d), d);
330
- }
331
- }, s.prototype.remove = function(c) {
332
- var h = c;
333
- if (c instanceof e) {
334
- if (h == null)
335
- throw "Node is null!";
336
- if (!(h.owner != null && h.owner == this))
337
- throw "Owner graph is invalid!";
338
- if (this.graphManager == null)
339
- throw "Owner graph manager is invalid!";
340
- for (var T = h.edges.slice(), v, d = T.length, N = 0; N < d; N++)
341
- v = T[N], v.isInterGraph ? this.graphManager.remove(v) : v.source.owner.remove(v);
342
- var S = this.nodes.indexOf(h);
343
- if (S == -1)
344
- throw "Node not in owner node list!";
345
- this.nodes.splice(S, 1);
346
- } else if (c instanceof f) {
347
- var v = c;
348
- if (v == null)
349
- throw "Edge is null!";
350
- if (!(v.source != null && v.target != null))
351
- throw "Source and/or target is null!";
352
- if (!(v.source.owner != null && v.target.owner != null && v.source.owner == this && v.target.owner == this))
353
- throw "Source and/or target owner is invalid!";
354
- var M = v.source.edges.indexOf(v), P = v.target.edges.indexOf(v);
355
- if (!(M > -1 && P > -1))
356
- throw "Source and/or target doesn't know this edge!";
357
- v.source.edges.splice(M, 1), v.target != v.source && v.target.edges.splice(P, 1);
358
- var S = v.source.owner.getEdges().indexOf(v);
359
- if (S == -1)
360
- throw "Not in owner's edge list!";
361
- v.source.owner.getEdges().splice(S, 1);
362
- }
363
- }, s.prototype.updateLeftTop = function() {
364
- for (var c = l.MAX_VALUE, h = l.MAX_VALUE, T, v, d, N = this.getNodes(), S = N.length, M = 0; M < S; M++) {
365
- var P = N[M];
366
- T = P.getTop(), v = P.getLeft(), c > T && (c = T), h > v && (h = v);
367
- }
368
- return c == l.MAX_VALUE ? null : (N[0].getParent().paddingLeft != null ? d = N[0].getParent().paddingLeft : d = this.margin, this.left = h - d, this.top = c - d, new g(this.left, this.top));
369
- }, s.prototype.updateBounds = function(c) {
370
- for (var h = l.MAX_VALUE, T = -l.MAX_VALUE, v = l.MAX_VALUE, d = -l.MAX_VALUE, N, S, M, P, K, X = this.nodes, k = X.length, D = 0; D < k; D++) {
371
- var rt = X[D];
372
- c && rt.child != null && rt.updateBounds(), N = rt.getLeft(), S = rt.getRight(), M = rt.getTop(), P = rt.getBottom(), h > N && (h = N), T < S && (T = S), v > M && (v = M), d < P && (d = P);
373
- }
374
- var n = new i(h, v, T - h, d - v);
375
- h == l.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), X[0].getParent().paddingLeft != null ? K = X[0].getParent().paddingLeft : K = this.margin, this.left = n.x - K, this.right = n.x + n.width + K, this.top = n.y - K, this.bottom = n.y + n.height + K;
376
- }, s.calculateBounds = function(c) {
377
- for (var h = l.MAX_VALUE, T = -l.MAX_VALUE, v = l.MAX_VALUE, d = -l.MAX_VALUE, N, S, M, P, K = c.length, X = 0; X < K; X++) {
378
- var k = c[X];
379
- N = k.getLeft(), S = k.getRight(), M = k.getTop(), P = k.getBottom(), h > N && (h = N), T < S && (T = S), v > M && (v = M), d < P && (d = P);
380
- }
381
- var D = new i(h, v, T - h, d - v);
382
- return D;
383
- }, s.prototype.getInclusionTreeDepth = function() {
384
- return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
385
- }, s.prototype.getEstimatedSize = function() {
386
- if (this.estimatedSize == l.MIN_VALUE)
387
- throw "assert failed";
388
- return this.estimatedSize;
389
- }, s.prototype.calcEstimatedSize = function() {
390
- for (var c = 0, h = this.nodes, T = h.length, v = 0; v < T; v++) {
391
- var d = h[v];
392
- c += d.calcEstimatedSize();
393
- }
394
- return c == 0 ? this.estimatedSize = a.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = c / Math.sqrt(this.nodes.length), this.estimatedSize;
395
- }, s.prototype.updateConnected = function() {
396
- var c = this;
397
- if (this.nodes.length == 0) {
398
- this.isConnected = !0;
399
- return;
400
- }
401
- var h = new t(), T = /* @__PURE__ */ new Set(), v = this.nodes[0], d, N, S = v.withChildren();
402
- for (S.forEach(function(D) {
403
- h.push(D), T.add(D);
404
- }); h.length !== 0; ) {
405
- v = h.shift(), d = v.getEdges();
406
- for (var M = d.length, P = 0; P < M; P++) {
407
- var K = d[P];
408
- if (N = K.getOtherEndInGraph(v, this), N != null && !T.has(N)) {
409
- var X = N.withChildren();
410
- X.forEach(function(D) {
411
- h.push(D), T.add(D);
412
- });
413
- }
414
- }
415
- }
416
- if (this.isConnected = !1, T.size >= this.nodes.length) {
417
- var k = 0;
418
- T.forEach(function(D) {
419
- D.owner == c && k++;
420
- }), k == this.nodes.length && (this.isConnected = !0);
421
- }
422
- }, A.exports = s;
423
- },
424
- /* 7 */
425
- /***/
426
- function(A, G, L) {
427
- var u, l = L(1);
428
- function a(r) {
429
- u = L(6), this.layout = r, this.graphs = [], this.edges = [];
430
- }
431
- a.prototype.addRoot = function() {
432
- var r = this.layout.newGraph(), e = this.layout.newNode(null), f = this.add(r, e);
433
- return this.setRootGraph(f), this.rootGraph;
434
- }, a.prototype.add = function(r, e, f, i, g) {
435
- if (f == null && i == null && g == null) {
436
- if (r == null)
437
- throw "Graph is null!";
438
- if (e == null)
439
- throw "Parent node is null!";
440
- if (this.graphs.indexOf(r) > -1)
441
- throw "Graph already in this graph mgr!";
442
- if (this.graphs.push(r), r.parent != null)
443
- throw "Already has a parent!";
444
- if (e.child != null)
445
- throw "Already has a child!";
446
- return r.parent = e, e.child = r, r;
447
- } else {
448
- g = f, i = e, f = r;
449
- var t = i.getOwner(), s = g.getOwner();
450
- if (!(t != null && t.getGraphManager() == this))
451
- throw "Source not in this graph mgr!";
452
- if (!(s != null && s.getGraphManager() == this))
453
- throw "Target not in this graph mgr!";
454
- if (t == s)
455
- return f.isInterGraph = !1, t.add(f, i, g);
456
- if (f.isInterGraph = !0, f.source = i, f.target = g, this.edges.indexOf(f) > -1)
457
- throw "Edge already in inter-graph edge list!";
458
- if (this.edges.push(f), !(f.source != null && f.target != null))
459
- throw "Edge source and/or target is null!";
460
- if (!(f.source.edges.indexOf(f) == -1 && f.target.edges.indexOf(f) == -1))
461
- throw "Edge already in source and/or target incidency list!";
462
- return f.source.edges.push(f), f.target.edges.push(f), f;
463
- }
464
- }, a.prototype.remove = function(r) {
465
- if (r instanceof u) {
466
- var e = r;
467
- if (e.getGraphManager() != this)
468
- throw "Graph not in this graph mgr";
469
- if (!(e == this.rootGraph || e.parent != null && e.parent.graphManager == this))
470
- throw "Invalid parent node!";
471
- var f = [];
472
- f = f.concat(e.getEdges());
473
- for (var i, g = f.length, t = 0; t < g; t++)
474
- i = f[t], e.remove(i);
475
- var s = [];
476
- s = s.concat(e.getNodes());
477
- var o;
478
- g = s.length;
479
- for (var t = 0; t < g; t++)
480
- o = s[t], e.remove(o);
481
- e == this.rootGraph && this.setRootGraph(null);
482
- var c = this.graphs.indexOf(e);
483
- this.graphs.splice(c, 1), e.parent = null;
484
- } else if (r instanceof l) {
485
- if (i = r, i == null)
486
- throw "Edge is null!";
487
- if (!i.isInterGraph)
488
- throw "Not an inter-graph edge!";
489
- if (!(i.source != null && i.target != null))
490
- throw "Source and/or target is null!";
491
- if (!(i.source.edges.indexOf(i) != -1 && i.target.edges.indexOf(i) != -1))
492
- throw "Source and/or target doesn't know this edge!";
493
- var c = i.source.edges.indexOf(i);
494
- if (i.source.edges.splice(c, 1), c = i.target.edges.indexOf(i), i.target.edges.splice(c, 1), !(i.source.owner != null && i.source.owner.getGraphManager() != null))
495
- throw "Edge owner graph or owner graph manager is null!";
496
- if (i.source.owner.getGraphManager().edges.indexOf(i) == -1)
497
- throw "Not in owner graph manager's edge list!";
498
- var c = i.source.owner.getGraphManager().edges.indexOf(i);
499
- i.source.owner.getGraphManager().edges.splice(c, 1);
500
- }
501
- }, a.prototype.updateBounds = function() {
502
- this.rootGraph.updateBounds(!0);
503
- }, a.prototype.getGraphs = function() {
504
- return this.graphs;
505
- }, a.prototype.getAllNodes = function() {
506
- if (this.allNodes == null) {
507
- for (var r = [], e = this.getGraphs(), f = e.length, i = 0; i < f; i++)
508
- r = r.concat(e[i].getNodes());
509
- this.allNodes = r;
510
- }
511
- return this.allNodes;
512
- }, a.prototype.resetAllNodes = function() {
513
- this.allNodes = null;
514
- }, a.prototype.resetAllEdges = function() {
515
- this.allEdges = null;
516
- }, a.prototype.resetAllNodesToApplyGravitation = function() {
517
- this.allNodesToApplyGravitation = null;
518
- }, a.prototype.getAllEdges = function() {
519
- if (this.allEdges == null) {
520
- var r = [], e = this.getGraphs();
521
- e.length;
522
- for (var f = 0; f < e.length; f++)
523
- r = r.concat(e[f].getEdges());
524
- r = r.concat(this.edges), this.allEdges = r;
525
- }
526
- return this.allEdges;
527
- }, a.prototype.getAllNodesToApplyGravitation = function() {
528
- return this.allNodesToApplyGravitation;
529
- }, a.prototype.setAllNodesToApplyGravitation = function(r) {
530
- if (this.allNodesToApplyGravitation != null)
531
- throw "assert failed";
532
- this.allNodesToApplyGravitation = r;
533
- }, a.prototype.getRoot = function() {
534
- return this.rootGraph;
535
- }, a.prototype.setRootGraph = function(r) {
536
- if (r.getGraphManager() != this)
537
- throw "Root not in this graph mgr!";
538
- this.rootGraph = r, r.parent == null && (r.parent = this.layout.newNode("Root node"));
539
- }, a.prototype.getLayout = function() {
540
- return this.layout;
541
- }, a.prototype.isOneAncestorOfOther = function(r, e) {
542
- if (!(r != null && e != null))
543
- throw "assert failed";
544
- if (r == e)
545
- return !0;
546
- var f = r.getOwner(), i;
547
- do {
548
- if (i = f.getParent(), i == null)
549
- break;
550
- if (i == e)
551
- return !0;
552
- if (f = i.getOwner(), f == null)
553
- break;
554
- } while (!0);
555
- f = e.getOwner();
556
- do {
557
- if (i = f.getParent(), i == null)
558
- break;
559
- if (i == r)
560
- return !0;
561
- if (f = i.getOwner(), f == null)
562
- break;
563
- } while (!0);
564
- return !1;
565
- }, a.prototype.calcLowestCommonAncestors = function() {
566
- for (var r, e, f, i, g, t = this.getAllEdges(), s = t.length, o = 0; o < s; o++) {
567
- if (r = t[o], e = r.source, f = r.target, r.lca = null, r.sourceInLca = e, r.targetInLca = f, e == f) {
568
- r.lca = e.getOwner();
569
- continue;
570
- }
571
- for (i = e.getOwner(); r.lca == null; ) {
572
- for (r.targetInLca = f, g = f.getOwner(); r.lca == null; ) {
573
- if (g == i) {
574
- r.lca = g;
575
- break;
576
- }
577
- if (g == this.rootGraph)
578
- break;
579
- if (r.lca != null)
580
- throw "assert failed";
581
- r.targetInLca = g.getParent(), g = r.targetInLca.getOwner();
582
- }
583
- if (i == this.rootGraph)
584
- break;
585
- r.lca == null && (r.sourceInLca = i.getParent(), i = r.sourceInLca.getOwner());
586
- }
587
- if (r.lca == null)
588
- throw "assert failed";
589
- }
590
- }, a.prototype.calcLowestCommonAncestor = function(r, e) {
591
- if (r == e)
592
- return r.getOwner();
593
- var f = r.getOwner();
594
- do {
595
- if (f == null)
596
- break;
597
- var i = e.getOwner();
598
- do {
599
- if (i == null)
600
- break;
601
- if (i == f)
602
- return i;
603
- i = i.getParent().getOwner();
604
- } while (!0);
605
- f = f.getParent().getOwner();
606
- } while (!0);
607
- return f;
608
- }, a.prototype.calcInclusionTreeDepths = function(r, e) {
609
- r == null && e == null && (r = this.rootGraph, e = 1);
610
- for (var f, i = r.getNodes(), g = i.length, t = 0; t < g; t++)
611
- f = i[t], f.inclusionTreeDepth = e, f.child != null && this.calcInclusionTreeDepths(f.child, e + 1);
612
- }, a.prototype.includesInvalidEdge = function() {
613
- for (var r, e = [], f = this.edges.length, i = 0; i < f; i++)
614
- r = this.edges[i], this.isOneAncestorOfOther(r.source, r.target) && e.push(r);
615
- for (var i = 0; i < e.length; i++)
616
- this.remove(e[i]);
617
- return !1;
618
- }, A.exports = a;
619
- },
620
- /* 8 */
621
- /***/
622
- function(A, G, L) {
623
- var u = L(12);
624
- function l() {
625
- }
626
- l.calcSeparationAmount = function(a, r, e, f) {
627
- if (!a.intersects(r))
628
- throw "assert failed";
629
- var i = new Array(2);
630
- this.decideDirectionsForOverlappingNodes(a, r, i), e[0] = Math.min(a.getRight(), r.getRight()) - Math.max(a.x, r.x), e[1] = Math.min(a.getBottom(), r.getBottom()) - Math.max(a.y, r.y), a.getX() <= r.getX() && a.getRight() >= r.getRight() ? e[0] += Math.min(r.getX() - a.getX(), a.getRight() - r.getRight()) : r.getX() <= a.getX() && r.getRight() >= a.getRight() && (e[0] += Math.min(a.getX() - r.getX(), r.getRight() - a.getRight())), a.getY() <= r.getY() && a.getBottom() >= r.getBottom() ? e[1] += Math.min(r.getY() - a.getY(), a.getBottom() - r.getBottom()) : r.getY() <= a.getY() && r.getBottom() >= a.getBottom() && (e[1] += Math.min(a.getY() - r.getY(), r.getBottom() - a.getBottom()));
631
- var g = Math.abs((r.getCenterY() - a.getCenterY()) / (r.getCenterX() - a.getCenterX()));
632
- r.getCenterY() === a.getCenterY() && r.getCenterX() === a.getCenterX() && (g = 1);
633
- var t = g * e[0], s = e[1] / g;
634
- e[0] < s ? s = e[0] : t = e[1], e[0] = -1 * i[0] * (s / 2 + f), e[1] = -1 * i[1] * (t / 2 + f);
635
- }, l.decideDirectionsForOverlappingNodes = function(a, r, e) {
636
- a.getCenterX() < r.getCenterX() ? e[0] = -1 : e[0] = 1, a.getCenterY() < r.getCenterY() ? e[1] = -1 : e[1] = 1;
637
- }, l.getIntersection2 = function(a, r, e) {
638
- var f = a.getCenterX(), i = a.getCenterY(), g = r.getCenterX(), t = r.getCenterY();
639
- if (a.intersects(r))
640
- return e[0] = f, e[1] = i, e[2] = g, e[3] = t, !0;
641
- var s = a.getX(), o = a.getY(), c = a.getRight(), h = a.getX(), T = a.getBottom(), v = a.getRight(), d = a.getWidthHalf(), N = a.getHeightHalf(), S = r.getX(), M = r.getY(), P = r.getRight(), K = r.getX(), X = r.getBottom(), k = r.getRight(), D = r.getWidthHalf(), rt = r.getHeightHalf(), n = !1, m = !1;
642
- if (f === g) {
643
- if (i > t)
644
- return e[0] = f, e[1] = o, e[2] = g, e[3] = X, !1;
645
- if (i < t)
646
- return e[0] = f, e[1] = T, e[2] = g, e[3] = M, !1;
647
- } else if (i === t) {
648
- if (f > g)
649
- return e[0] = s, e[1] = i, e[2] = P, e[3] = t, !1;
650
- if (f < g)
651
- return e[0] = c, e[1] = i, e[2] = S, e[3] = t, !1;
652
- } else {
653
- var p = a.height / a.width, E = r.height / r.width, y = (t - i) / (g - f), I = void 0, w = void 0, R = void 0, W = void 0, x = void 0, q = void 0;
654
- if (-p === y ? f > g ? (e[0] = h, e[1] = T, n = !0) : (e[0] = c, e[1] = o, n = !0) : p === y && (f > g ? (e[0] = s, e[1] = o, n = !0) : (e[0] = v, e[1] = T, n = !0)), -E === y ? g > f ? (e[2] = K, e[3] = X, m = !0) : (e[2] = P, e[3] = M, m = !0) : E === y && (g > f ? (e[2] = S, e[3] = M, m = !0) : (e[2] = k, e[3] = X, m = !0)), n && m)
655
- return !1;
656
- if (f > g ? i > t ? (I = this.getCardinalDirection(p, y, 4), w = this.getCardinalDirection(E, y, 2)) : (I = this.getCardinalDirection(-p, y, 3), w = this.getCardinalDirection(-E, y, 1)) : i > t ? (I = this.getCardinalDirection(-p, y, 1), w = this.getCardinalDirection(-E, y, 3)) : (I = this.getCardinalDirection(p, y, 2), w = this.getCardinalDirection(E, y, 4)), !n)
657
- switch (I) {
658
- case 1:
659
- W = o, R = f + -N / y, e[0] = R, e[1] = W;
660
- break;
661
- case 2:
662
- R = v, W = i + d * y, e[0] = R, e[1] = W;
663
- break;
664
- case 3:
665
- W = T, R = f + N / y, e[0] = R, e[1] = W;
666
- break;
667
- case 4:
668
- R = h, W = i + -d * y, e[0] = R, e[1] = W;
669
- break;
670
- }
671
- if (!m)
672
- switch (w) {
673
- case 1:
674
- q = M, x = g + -rt / y, e[2] = x, e[3] = q;
675
- break;
676
- case 2:
677
- x = k, q = t + D * y, e[2] = x, e[3] = q;
678
- break;
679
- case 3:
680
- q = X, x = g + rt / y, e[2] = x, e[3] = q;
681
- break;
682
- case 4:
683
- x = K, q = t + -D * y, e[2] = x, e[3] = q;
684
- break;
685
- }
686
- }
687
- return !1;
688
- }, l.getCardinalDirection = function(a, r, e) {
689
- return a > r ? e : 1 + e % 4;
690
- }, l.getIntersection = function(a, r, e, f) {
691
- if (f == null)
692
- return this.getIntersection2(a, r, e);
693
- var i = a.x, g = a.y, t = r.x, s = r.y, o = e.x, c = e.y, h = f.x, T = f.y, v = void 0, d = void 0, N = void 0, S = void 0, M = void 0, P = void 0, K = void 0, X = void 0, k = void 0;
694
- return N = s - g, M = i - t, K = t * g - i * s, S = T - c, P = o - h, X = h * c - o * T, k = N * P - S * M, k === 0 ? null : (v = (M * X - P * K) / k, d = (S * K - N * X) / k, new u(v, d));
695
- }, l.angleOfVector = function(a, r, e, f) {
696
- var i = void 0;
697
- return a !== e ? (i = Math.atan((f - r) / (e - a)), e < a ? i += Math.PI : f < r && (i += this.TWO_PI)) : f < r ? i = this.ONE_AND_HALF_PI : i = this.HALF_PI, i;
698
- }, l.doIntersect = function(a, r, e, f) {
699
- var i = a.x, g = a.y, t = r.x, s = r.y, o = e.x, c = e.y, h = f.x, T = f.y, v = (t - i) * (T - c) - (h - o) * (s - g);
700
- if (v === 0)
701
- return !1;
702
- var d = ((T - c) * (h - i) + (o - h) * (T - g)) / v, N = ((g - s) * (h - i) + (t - i) * (T - g)) / v;
703
- return 0 < d && d < 1 && 0 < N && N < 1;
704
- }, l.findCircleLineIntersections = function(a, r, e, f, i, g, t) {
705
- var s = (e - a) * (e - a) + (f - r) * (f - r), o = 2 * ((a - i) * (e - a) + (r - g) * (f - r)), c = (a - i) * (a - i) + (r - g) * (r - g) - t * t, h = o * o - 4 * s * c;
706
- if (h >= 0) {
707
- var T = (-o + Math.sqrt(o * o - 4 * s * c)) / (2 * s), v = (-o - Math.sqrt(o * o - 4 * s * c)) / (2 * s), d = null;
708
- return T >= 0 && T <= 1 ? [T] : v >= 0 && v <= 1 ? [v] : d;
709
- } else return null;
710
- }, l.HALF_PI = 0.5 * Math.PI, l.ONE_AND_HALF_PI = 1.5 * Math.PI, l.TWO_PI = 2 * Math.PI, l.THREE_PI = 3 * Math.PI, A.exports = l;
711
- },
712
- /* 9 */
713
- /***/
714
- function(A, G, L) {
715
- function u() {
716
- }
717
- u.sign = function(l) {
718
- return l > 0 ? 1 : l < 0 ? -1 : 0;
719
- }, u.floor = function(l) {
720
- return l < 0 ? Math.ceil(l) : Math.floor(l);
721
- }, u.ceil = function(l) {
722
- return l < 0 ? Math.floor(l) : Math.ceil(l);
723
- }, A.exports = u;
724
- },
725
- /* 10 */
726
- /***/
727
- function(A, G, L) {
728
- function u() {
729
- }
730
- u.MAX_VALUE = 2147483647, u.MIN_VALUE = -2147483648, A.exports = u;
731
- },
732
- /* 11 */
733
- /***/
734
- function(A, G, L) {
735
- var u = /* @__PURE__ */ function() {
736
- function i(g, t) {
737
- for (var s = 0; s < t.length; s++) {
738
- var o = t[s];
739
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(g, o.key, o);
740
- }
741
- }
742
- return function(g, t, s) {
743
- return t && i(g.prototype, t), s && i(g, s), g;
744
- };
745
- }();
746
- function l(i, g) {
747
- if (!(i instanceof g))
748
- throw new TypeError("Cannot call a class as a function");
749
- }
750
- var a = function(g) {
751
- return { value: g, next: null, prev: null };
752
- }, r = function(g, t, s, o) {
753
- return g !== null ? g.next = t : o.head = t, s !== null ? s.prev = t : o.tail = t, t.prev = g, t.next = s, o.length++, t;
754
- }, e = function(g, t) {
755
- var s = g.prev, o = g.next;
756
- return s !== null ? s.next = o : t.head = o, o !== null ? o.prev = s : t.tail = s, g.prev = g.next = null, t.length--, g;
757
- }, f = function() {
758
- function i(g) {
759
- var t = this;
760
- l(this, i), this.length = 0, this.head = null, this.tail = null, g != null && g.forEach(function(s) {
761
- return t.push(s);
762
- });
763
- }
764
- return u(i, [{
765
- key: "size",
766
- value: function() {
767
- return this.length;
768
- }
769
- }, {
770
- key: "insertBefore",
771
- value: function(t, s) {
772
- return r(s.prev, a(t), s, this);
773
- }
774
- }, {
775
- key: "insertAfter",
776
- value: function(t, s) {
777
- return r(s, a(t), s.next, this);
778
- }
779
- }, {
780
- key: "insertNodeBefore",
781
- value: function(t, s) {
782
- return r(s.prev, t, s, this);
783
- }
784
- }, {
785
- key: "insertNodeAfter",
786
- value: function(t, s) {
787
- return r(s, t, s.next, this);
788
- }
789
- }, {
790
- key: "push",
791
- value: function(t) {
792
- return r(this.tail, a(t), null, this);
793
- }
794
- }, {
795
- key: "unshift",
796
- value: function(t) {
797
- return r(null, a(t), this.head, this);
798
- }
799
- }, {
800
- key: "remove",
801
- value: function(t) {
802
- return e(t, this);
803
- }
804
- }, {
805
- key: "pop",
806
- value: function() {
807
- return e(this.tail, this).value;
808
- }
809
- }, {
810
- key: "popNode",
811
- value: function() {
812
- return e(this.tail, this);
813
- }
814
- }, {
815
- key: "shift",
816
- value: function() {
817
- return e(this.head, this).value;
818
- }
819
- }, {
820
- key: "shiftNode",
821
- value: function() {
822
- return e(this.head, this);
823
- }
824
- }, {
825
- key: "get_object_at",
826
- value: function(t) {
827
- if (t <= this.length()) {
828
- for (var s = 1, o = this.head; s < t; )
829
- o = o.next, s++;
830
- return o.value;
831
- }
832
- }
833
- }, {
834
- key: "set_object_at",
835
- value: function(t, s) {
836
- if (t <= this.length()) {
837
- for (var o = 1, c = this.head; o < t; )
838
- c = c.next, o++;
839
- c.value = s;
840
- }
841
- }
842
- }]), i;
843
- }();
844
- A.exports = f;
845
- },
846
- /* 12 */
847
- /***/
848
- function(A, G, L) {
849
- function u(l, a, r) {
850
- this.x = null, this.y = null, l == null && a == null && r == null ? (this.x = 0, this.y = 0) : typeof l == "number" && typeof a == "number" && r == null ? (this.x = l, this.y = a) : l.constructor.name == "Point" && a == null && r == null && (r = l, this.x = r.x, this.y = r.y);
851
- }
852
- u.prototype.getX = function() {
853
- return this.x;
854
- }, u.prototype.getY = function() {
855
- return this.y;
856
- }, u.prototype.getLocation = function() {
857
- return new u(this.x, this.y);
858
- }, u.prototype.setLocation = function(l, a, r) {
859
- l.constructor.name == "Point" && a == null && r == null ? (r = l, this.setLocation(r.x, r.y)) : typeof l == "number" && typeof a == "number" && r == null && (parseInt(l) == l && parseInt(a) == a ? this.move(l, a) : (this.x = Math.floor(l + 0.5), this.y = Math.floor(a + 0.5)));
860
- }, u.prototype.move = function(l, a) {
861
- this.x = l, this.y = a;
862
- }, u.prototype.translate = function(l, a) {
863
- this.x += l, this.y += a;
864
- }, u.prototype.equals = function(l) {
865
- if (l.constructor.name == "Point") {
866
- var a = l;
867
- return this.x == a.x && this.y == a.y;
868
- }
869
- return this == l;
870
- }, u.prototype.toString = function() {
871
- return new u().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
872
- }, A.exports = u;
873
- },
874
- /* 13 */
875
- /***/
876
- function(A, G, L) {
877
- function u(l, a, r, e) {
878
- this.x = 0, this.y = 0, this.width = 0, this.height = 0, l != null && a != null && r != null && e != null && (this.x = l, this.y = a, this.width = r, this.height = e);
879
- }
880
- u.prototype.getX = function() {
881
- return this.x;
882
- }, u.prototype.setX = function(l) {
883
- this.x = l;
884
- }, u.prototype.getY = function() {
885
- return this.y;
886
- }, u.prototype.setY = function(l) {
887
- this.y = l;
888
- }, u.prototype.getWidth = function() {
889
- return this.width;
890
- }, u.prototype.setWidth = function(l) {
891
- this.width = l;
892
- }, u.prototype.getHeight = function() {
893
- return this.height;
894
- }, u.prototype.setHeight = function(l) {
895
- this.height = l;
896
- }, u.prototype.getRight = function() {
897
- return this.x + this.width;
898
- }, u.prototype.getBottom = function() {
899
- return this.y + this.height;
900
- }, u.prototype.intersects = function(l) {
901
- return !(this.getRight() < l.x || this.getBottom() < l.y || l.getRight() < this.x || l.getBottom() < this.y);
902
- }, u.prototype.getCenterX = function() {
903
- return this.x + this.width / 2;
904
- }, u.prototype.getMinX = function() {
905
- return this.getX();
906
- }, u.prototype.getMaxX = function() {
907
- return this.getX() + this.width;
908
- }, u.prototype.getCenterY = function() {
909
- return this.y + this.height / 2;
910
- }, u.prototype.getMinY = function() {
911
- return this.getY();
912
- }, u.prototype.getMaxY = function() {
913
- return this.getY() + this.height;
914
- }, u.prototype.getWidthHalf = function() {
915
- return this.width / 2;
916
- }, u.prototype.getHeightHalf = function() {
917
- return this.height / 2;
918
- }, A.exports = u;
919
- },
920
- /* 14 */
921
- /***/
922
- function(A, G, L) {
923
- var u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
924
- return typeof a;
925
- } : function(a) {
926
- return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
927
- };
928
- function l() {
929
- }
930
- l.lastID = 0, l.createID = function(a) {
931
- return l.isPrimitive(a) ? a : (a.uniqueID != null || (a.uniqueID = l.getString(), l.lastID++), a.uniqueID);
932
- }, l.getString = function(a) {
933
- return a == null && (a = l.lastID), "Object#" + a;
934
- }, l.isPrimitive = function(a) {
935
- var r = typeof a > "u" ? "undefined" : u(a);
936
- return a == null || r != "object" && r != "function";
937
- }, A.exports = l;
938
- },
939
- /* 15 */
940
- /***/
941
- function(A, G, L) {
942
- function u(o) {
943
- if (Array.isArray(o)) {
944
- for (var c = 0, h = Array(o.length); c < o.length; c++)
945
- h[c] = o[c];
946
- return h;
947
- } else
948
- return Array.from(o);
949
- }
950
- var l = L(0), a = L(7), r = L(3), e = L(1), f = L(6), i = L(5), g = L(17), t = L(29);
951
- function s(o) {
952
- t.call(this), this.layoutQuality = l.QUALITY, this.createBendsAsNeeded = l.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = l.DEFAULT_INCREMENTAL, this.animationOnLayout = l.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = l.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = l.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = l.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new a(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, o != null && (this.isRemoteUse = o);
953
- }
954
- s.RANDOM_SEED = 1, s.prototype = Object.create(t.prototype), s.prototype.getGraphManager = function() {
955
- return this.graphManager;
956
- }, s.prototype.getAllNodes = function() {
957
- return this.graphManager.getAllNodes();
958
- }, s.prototype.getAllEdges = function() {
959
- return this.graphManager.getAllEdges();
960
- }, s.prototype.getAllNodesToApplyGravitation = function() {
961
- return this.graphManager.getAllNodesToApplyGravitation();
962
- }, s.prototype.newGraphManager = function() {
963
- var o = new a(this);
964
- return this.graphManager = o, o;
965
- }, s.prototype.newGraph = function(o) {
966
- return new f(null, this.graphManager, o);
967
- }, s.prototype.newNode = function(o) {
968
- return new r(this.graphManager, o);
969
- }, s.prototype.newEdge = function(o) {
970
- return new e(null, null, o);
971
- }, s.prototype.checkLayoutSuccess = function() {
972
- return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
973
- }, s.prototype.runLayout = function() {
974
- this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
975
- var o;
976
- return this.checkLayoutSuccess() ? o = !1 : o = this.layout(), l.ANIMATE === "during" ? !1 : (o && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, o);
977
- }, s.prototype.doPostLayout = function() {
978
- this.incremental || this.transform(), this.update();
979
- }, s.prototype.update2 = function() {
980
- if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) {
981
- for (var o = this.graphManager.getAllEdges(), c = 0; c < o.length; c++)
982
- o[c];
983
- for (var h = this.graphManager.getRoot().getNodes(), c = 0; c < h.length; c++)
984
- h[c];
985
- this.update(this.graphManager.getRoot());
986
- }
987
- }, s.prototype.update = function(o) {
988
- if (o == null)
989
- this.update2();
990
- else if (o instanceof r) {
991
- var c = o;
992
- if (c.getChild() != null)
993
- for (var h = c.getChild().getNodes(), T = 0; T < h.length; T++)
994
- update(h[T]);
995
- if (c.vGraphObject != null) {
996
- var v = c.vGraphObject;
997
- v.update(c);
998
- }
999
- } else if (o instanceof e) {
1000
- var d = o;
1001
- if (d.vGraphObject != null) {
1002
- var N = d.vGraphObject;
1003
- N.update(d);
1004
- }
1005
- } else if (o instanceof f) {
1006
- var S = o;
1007
- if (S.vGraphObject != null) {
1008
- var M = S.vGraphObject;
1009
- M.update(S);
1010
- }
1011
- }
1012
- }, s.prototype.initParameters = function() {
1013
- this.isSubLayout || (this.layoutQuality = l.QUALITY, this.animationDuringLayout = l.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = l.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = l.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = l.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = l.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = l.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = !1);
1014
- }, s.prototype.transform = function(o) {
1015
- if (o == null)
1016
- this.transform(new i(0, 0));
1017
- else {
1018
- var c = new g(), h = this.graphManager.getRoot().updateLeftTop();
1019
- if (h != null) {
1020
- c.setWorldOrgX(o.x), c.setWorldOrgY(o.y), c.setDeviceOrgX(h.x), c.setDeviceOrgY(h.y);
1021
- for (var T = this.getAllNodes(), v, d = 0; d < T.length; d++)
1022
- v = T[d], v.transform(c);
1023
- }
1024
- }
1025
- }, s.prototype.positionNodesRandomly = function(o) {
1026
- if (o == null)
1027
- this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(!0);
1028
- else
1029
- for (var c, h, T = o.getNodes(), v = 0; v < T.length; v++)
1030
- c = T[v], h = c.getChild(), h == null || h.getNodes().length == 0 ? c.scatter() : (this.positionNodesRandomly(h), c.updateBounds());
1031
- }, s.prototype.getFlatForest = function() {
1032
- for (var o = [], c = !0, h = this.graphManager.getRoot().getNodes(), T = !0, v = 0; v < h.length; v++)
1033
- h[v].getChild() != null && (T = !1);
1034
- if (!T)
1035
- return o;
1036
- var d = /* @__PURE__ */ new Set(), N = [], S = /* @__PURE__ */ new Map(), M = [];
1037
- for (M = M.concat(h); M.length > 0 && c; ) {
1038
- for (N.push(M[0]); N.length > 0 && c; ) {
1039
- var P = N[0];
1040
- N.splice(0, 1), d.add(P);
1041
- for (var K = P.getEdges(), v = 0; v < K.length; v++) {
1042
- var X = K[v].getOtherEnd(P);
1043
- if (S.get(P) != X)
1044
- if (!d.has(X))
1045
- N.push(X), S.set(X, P);
1046
- else {
1047
- c = !1;
1048
- break;
1049
- }
1050
- }
1051
- }
1052
- if (!c)
1053
- o = [];
1054
- else {
1055
- var k = [].concat(u(d));
1056
- o.push(k);
1057
- for (var v = 0; v < k.length; v++) {
1058
- var D = k[v], rt = M.indexOf(D);
1059
- rt > -1 && M.splice(rt, 1);
1060
- }
1061
- d = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Map();
1062
- }
1063
- }
1064
- return o;
1065
- }, s.prototype.createDummyNodesForBendpoints = function(o) {
1066
- for (var c = [], h = o.source, T = this.graphManager.calcLowestCommonAncestor(o.source, o.target), v = 0; v < o.bendpoints.length; v++) {
1067
- var d = this.newNode(null);
1068
- d.setRect(new Point(0, 0), new Dimension(1, 1)), T.add(d);
1069
- var N = this.newEdge(null);
1070
- this.graphManager.add(N, h, d), c.add(d), h = d;
1071
- }
1072
- var N = this.newEdge(null);
1073
- return this.graphManager.add(N, h, o.target), this.edgeToDummyNodes.set(o, c), o.isInterGraph() ? this.graphManager.remove(o) : T.remove(o), c;
1074
- }, s.prototype.createBendpointsFromDummyNodes = function() {
1075
- var o = [];
1076
- o = o.concat(this.graphManager.getAllEdges()), o = [].concat(u(this.edgeToDummyNodes.keys())).concat(o);
1077
- for (var c = 0; c < o.length; c++) {
1078
- var h = o[c];
1079
- if (h.bendpoints.length > 0) {
1080
- for (var T = this.edgeToDummyNodes.get(h), v = 0; v < T.length; v++) {
1081
- var d = T[v], N = new i(d.getCenterX(), d.getCenterY()), S = h.bendpoints.get(v);
1082
- S.x = N.x, S.y = N.y, d.getOwner().remove(d);
1083
- }
1084
- this.graphManager.add(h, h.source, h.target);
1085
- }
1086
- }
1087
- }, s.transform = function(o, c, h, T) {
1088
- if (h != null && T != null) {
1089
- var v = c;
1090
- if (o <= 50) {
1091
- var d = c / h;
1092
- v -= (c - d) / 50 * (50 - o);
1093
- } else {
1094
- var N = c * T;
1095
- v += (N - c) / 50 * (o - 50);
1096
- }
1097
- return v;
1098
- } else {
1099
- var S, M;
1100
- return o <= 50 ? (S = 9 * c / 500, M = c / 10) : (S = 9 * c / 50, M = -8 * c), S * o + M;
1101
- }
1102
- }, s.findCenterOfTree = function(o) {
1103
- var c = [];
1104
- c = c.concat(o);
1105
- var h = [], T = /* @__PURE__ */ new Map(), v = !1, d = null;
1106
- (c.length == 1 || c.length == 2) && (v = !0, d = c[0]);
1107
- for (var N = 0; N < c.length; N++) {
1108
- var S = c[N], M = S.getNeighborsList().size;
1109
- T.set(S, S.getNeighborsList().size), M == 1 && h.push(S);
1110
- }
1111
- var P = [];
1112
- for (P = P.concat(h); !v; ) {
1113
- var K = [];
1114
- K = K.concat(P), P = [];
1115
- for (var N = 0; N < c.length; N++) {
1116
- var S = c[N], X = c.indexOf(S);
1117
- X >= 0 && c.splice(X, 1);
1118
- var k = S.getNeighborsList();
1119
- k.forEach(function(n) {
1120
- if (h.indexOf(n) < 0) {
1121
- var m = T.get(n), p = m - 1;
1122
- p == 1 && P.push(n), T.set(n, p);
1123
- }
1124
- });
1125
- }
1126
- h = h.concat(P), (c.length == 1 || c.length == 2) && (v = !0, d = c[0]);
1127
- }
1128
- return d;
1129
- }, s.prototype.setGraphManager = function(o) {
1130
- this.graphManager = o;
1131
- }, A.exports = s;
1132
- },
1133
- /* 16 */
1134
- /***/
1135
- function(A, G, L) {
1136
- function u() {
1137
- }
1138
- u.seed = 1, u.x = 0, u.nextDouble = function() {
1139
- return u.x = Math.sin(u.seed++) * 1e4, u.x - Math.floor(u.x);
1140
- }, A.exports = u;
1141
- },
1142
- /* 17 */
1143
- /***/
1144
- function(A, G, L) {
1145
- var u = L(5);
1146
- function l(a, r) {
1147
- this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1148
- }
1149
- l.prototype.getWorldOrgX = function() {
1150
- return this.lworldOrgX;
1151
- }, l.prototype.setWorldOrgX = function(a) {
1152
- this.lworldOrgX = a;
1153
- }, l.prototype.getWorldOrgY = function() {
1154
- return this.lworldOrgY;
1155
- }, l.prototype.setWorldOrgY = function(a) {
1156
- this.lworldOrgY = a;
1157
- }, l.prototype.getWorldExtX = function() {
1158
- return this.lworldExtX;
1159
- }, l.prototype.setWorldExtX = function(a) {
1160
- this.lworldExtX = a;
1161
- }, l.prototype.getWorldExtY = function() {
1162
- return this.lworldExtY;
1163
- }, l.prototype.setWorldExtY = function(a) {
1164
- this.lworldExtY = a;
1165
- }, l.prototype.getDeviceOrgX = function() {
1166
- return this.ldeviceOrgX;
1167
- }, l.prototype.setDeviceOrgX = function(a) {
1168
- this.ldeviceOrgX = a;
1169
- }, l.prototype.getDeviceOrgY = function() {
1170
- return this.ldeviceOrgY;
1171
- }, l.prototype.setDeviceOrgY = function(a) {
1172
- this.ldeviceOrgY = a;
1173
- }, l.prototype.getDeviceExtX = function() {
1174
- return this.ldeviceExtX;
1175
- }, l.prototype.setDeviceExtX = function(a) {
1176
- this.ldeviceExtX = a;
1177
- }, l.prototype.getDeviceExtY = function() {
1178
- return this.ldeviceExtY;
1179
- }, l.prototype.setDeviceExtY = function(a) {
1180
- this.ldeviceExtY = a;
1181
- }, l.prototype.transformX = function(a) {
1182
- var r = 0, e = this.lworldExtX;
1183
- return e != 0 && (r = this.ldeviceOrgX + (a - this.lworldOrgX) * this.ldeviceExtX / e), r;
1184
- }, l.prototype.transformY = function(a) {
1185
- var r = 0, e = this.lworldExtY;
1186
- return e != 0 && (r = this.ldeviceOrgY + (a - this.lworldOrgY) * this.ldeviceExtY / e), r;
1187
- }, l.prototype.inverseTransformX = function(a) {
1188
- var r = 0, e = this.ldeviceExtX;
1189
- return e != 0 && (r = this.lworldOrgX + (a - this.ldeviceOrgX) * this.lworldExtX / e), r;
1190
- }, l.prototype.inverseTransformY = function(a) {
1191
- var r = 0, e = this.ldeviceExtY;
1192
- return e != 0 && (r = this.lworldOrgY + (a - this.ldeviceOrgY) * this.lworldExtY / e), r;
1193
- }, l.prototype.inverseTransformPoint = function(a) {
1194
- var r = new u(this.inverseTransformX(a.x), this.inverseTransformY(a.y));
1195
- return r;
1196
- }, A.exports = l;
1197
- },
1198
- /* 18 */
1199
- /***/
1200
- function(A, G, L) {
1201
- function u(t) {
1202
- if (Array.isArray(t)) {
1203
- for (var s = 0, o = Array(t.length); s < t.length; s++)
1204
- o[s] = t[s];
1205
- return o;
1206
- } else
1207
- return Array.from(t);
1208
- }
1209
- var l = L(15), a = L(4), r = L(0), e = L(8), f = L(9);
1210
- function i() {
1211
- l.call(this), this.useSmartIdealEdgeLengthCalculation = a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = a.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = a.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = a.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = a.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = a.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = a.MAX_ITERATIONS;
1212
- }
1213
- i.prototype = Object.create(l.prototype);
1214
- for (var g in l)
1215
- i[g] = l[g];
1216
- i.prototype.initParameters = function() {
1217
- l.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1218
- }, i.prototype.calcIdealEdgeLengths = function() {
1219
- for (var t, s, o, c, h, T, v, d = this.getGraphManager().getAllEdges(), N = 0; N < d.length; N++)
1220
- t = d[N], s = t.idealLength, t.isInterGraph && (c = t.getSource(), h = t.getTarget(), T = t.getSourceInLca().getEstimatedSize(), v = t.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (t.idealLength += T + v - 2 * r.SIMPLE_NODE_SIZE), o = t.getLca().getInclusionTreeDepth(), t.idealLength += s * a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (c.getInclusionTreeDepth() + h.getInclusionTreeDepth() - 2 * o));
1221
- }, i.prototype.initSpringEmbedder = function() {
1222
- var t = this.getAllNodes().length;
1223
- this.incremental ? (t > a.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * a.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (t - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - a.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (t > a.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(a.COOLING_ADAPTATION_FACTOR, 1 - (t - a.ADAPTATION_LOWER_NODE_LIMIT) / (a.ADAPTATION_UPPER_NODE_LIMIT - a.ADAPTATION_LOWER_NODE_LIMIT) * (1 - a.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = a.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.displacementThresholdPerNode = 3 * a.DEFAULT_EDGE_LENGTH / 100, this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1224
- }, i.prototype.calcSpringForces = function() {
1225
- for (var t = this.getAllEdges(), s, o = 0; o < t.length; o++)
1226
- s = t[o], this.calcSpringForce(s, s.idealLength);
1227
- }, i.prototype.calcRepulsionForces = function() {
1228
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, o, c, h, T, v = this.getAllNodes(), d;
1229
- if (this.useFRGridVariant)
1230
- for (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && t && this.updateGrid(), d = /* @__PURE__ */ new Set(), o = 0; o < v.length; o++)
1231
- h = v[o], this.calculateRepulsionForceOfANode(h, d, t, s), d.add(h);
1232
- else
1233
- for (o = 0; o < v.length; o++)
1234
- for (h = v[o], c = o + 1; c < v.length; c++)
1235
- T = v[c], h.getOwner() == T.getOwner() && this.calcRepulsionForce(h, T);
1236
- }, i.prototype.calcGravitationalForces = function() {
1237
- for (var t, s = this.getAllNodesToApplyGravitation(), o = 0; o < s.length; o++)
1238
- t = s[o], this.calcGravitationalForce(t);
1239
- }, i.prototype.moveNodes = function() {
1240
- for (var t = this.getAllNodes(), s, o = 0; o < t.length; o++)
1241
- s = t[o], s.move();
1242
- }, i.prototype.calcSpringForce = function(t, s) {
1243
- var o = t.getSource(), c = t.getTarget(), h, T, v, d;
1244
- if (this.uniformLeafNodeSizes && o.getChild() == null && c.getChild() == null)
1245
- t.updateLengthSimple();
1246
- else if (t.updateLength(), t.isOverlapingSourceAndTarget)
1247
- return;
1248
- h = t.getLength(), h != 0 && (T = t.edgeElasticity * (h - s), v = T * (t.lengthX / h), d = T * (t.lengthY / h), o.springForceX += v, o.springForceY += d, c.springForceX -= v, c.springForceY -= d);
1249
- }, i.prototype.calcRepulsionForce = function(t, s) {
1250
- var o = t.getRect(), c = s.getRect(), h = new Array(2), T = new Array(4), v, d, N, S, M, P, K;
1251
- if (o.intersects(c)) {
1252
- e.calcSeparationAmount(o, c, h, a.DEFAULT_EDGE_LENGTH / 2), P = 2 * h[0], K = 2 * h[1];
1253
- var X = t.noOfChildren * s.noOfChildren / (t.noOfChildren + s.noOfChildren);
1254
- t.repulsionForceX -= X * P, t.repulsionForceY -= X * K, s.repulsionForceX += X * P, s.repulsionForceY += X * K;
1255
- } else
1256
- this.uniformLeafNodeSizes && t.getChild() == null && s.getChild() == null ? (v = c.getCenterX() - o.getCenterX(), d = c.getCenterY() - o.getCenterY()) : (e.getIntersection(o, c, T), v = T[2] - T[0], d = T[3] - T[1]), Math.abs(v) < a.MIN_REPULSION_DIST && (v = f.sign(v) * a.MIN_REPULSION_DIST), Math.abs(d) < a.MIN_REPULSION_DIST && (d = f.sign(d) * a.MIN_REPULSION_DIST), N = v * v + d * d, S = Math.sqrt(N), M = (t.nodeRepulsion / 2 + s.nodeRepulsion / 2) * t.noOfChildren * s.noOfChildren / N, P = M * v / S, K = M * d / S, t.repulsionForceX -= P, t.repulsionForceY -= K, s.repulsionForceX += P, s.repulsionForceY += K;
1257
- }, i.prototype.calcGravitationalForce = function(t) {
1258
- var s, o, c, h, T, v, d, N;
1259
- s = t.getOwner(), o = (s.getRight() + s.getLeft()) / 2, c = (s.getTop() + s.getBottom()) / 2, h = t.getCenterX() - o, T = t.getCenterY() - c, v = Math.abs(h) + t.getWidth() / 2, d = Math.abs(T) + t.getHeight() / 2, t.getOwner() == this.graphManager.getRoot() ? (N = s.getEstimatedSize() * this.gravityRangeFactor, (v > N || d > N) && (t.gravitationForceX = -this.gravityConstant * h, t.gravitationForceY = -this.gravityConstant * T)) : (N = s.getEstimatedSize() * this.compoundGravityRangeFactor, (v > N || d > N) && (t.gravitationForceX = -this.gravityConstant * h * this.compoundGravityConstant, t.gravitationForceY = -this.gravityConstant * T * this.compoundGravityConstant));
1260
- }, i.prototype.isConverged = function() {
1261
- var t, s = !1;
1262
- return this.totalIterations > this.maxIterations / 3 && (s = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), t = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, t || s;
1263
- }, i.prototype.animate = function() {
1264
- this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++);
1265
- }, i.prototype.calcNoOfChildrenForAllNodes = function() {
1266
- for (var t, s = this.graphManager.getAllNodes(), o = 0; o < s.length; o++)
1267
- t = s[o], t.noOfChildren = t.getNoOfChildren();
1268
- }, i.prototype.calcGrid = function(t) {
1269
- var s = 0, o = 0;
1270
- s = parseInt(Math.ceil((t.getRight() - t.getLeft()) / this.repulsionRange)), o = parseInt(Math.ceil((t.getBottom() - t.getTop()) / this.repulsionRange));
1271
- for (var c = new Array(s), h = 0; h < s; h++)
1272
- c[h] = new Array(o);
1273
- for (var h = 0; h < s; h++)
1274
- for (var T = 0; T < o; T++)
1275
- c[h][T] = new Array();
1276
- return c;
1277
- }, i.prototype.addNodeToGrid = function(t, s, o) {
1278
- var c = 0, h = 0, T = 0, v = 0;
1279
- c = parseInt(Math.floor((t.getRect().x - s) / this.repulsionRange)), h = parseInt(Math.floor((t.getRect().width + t.getRect().x - s) / this.repulsionRange)), T = parseInt(Math.floor((t.getRect().y - o) / this.repulsionRange)), v = parseInt(Math.floor((t.getRect().height + t.getRect().y - o) / this.repulsionRange));
1280
- for (var d = c; d <= h; d++)
1281
- for (var N = T; N <= v; N++)
1282
- this.grid[d][N].push(t), t.setGridCoordinates(c, h, T, v);
1283
- }, i.prototype.updateGrid = function() {
1284
- var t, s, o = this.getAllNodes();
1285
- for (this.grid = this.calcGrid(this.graphManager.getRoot()), t = 0; t < o.length; t++)
1286
- s = o[t], this.addNodeToGrid(s, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
1287
- }, i.prototype.calculateRepulsionForceOfANode = function(t, s, o, c) {
1288
- if (this.totalIterations % a.GRID_CALCULATION_CHECK_PERIOD == 1 && o || c) {
1289
- var h = /* @__PURE__ */ new Set();
1290
- t.surrounding = new Array();
1291
- for (var T, v = this.grid, d = t.startX - 1; d < t.finishX + 2; d++)
1292
- for (var N = t.startY - 1; N < t.finishY + 2; N++)
1293
- if (!(d < 0 || N < 0 || d >= v.length || N >= v[0].length)) {
1294
- for (var S = 0; S < v[d][N].length; S++)
1295
- if (T = v[d][N][S], !(t.getOwner() != T.getOwner() || t == T) && !s.has(T) && !h.has(T)) {
1296
- var M = Math.abs(t.getCenterX() - T.getCenterX()) - (t.getWidth() / 2 + T.getWidth() / 2), P = Math.abs(t.getCenterY() - T.getCenterY()) - (t.getHeight() / 2 + T.getHeight() / 2);
1297
- M <= this.repulsionRange && P <= this.repulsionRange && h.add(T);
1298
- }
1299
- }
1300
- t.surrounding = [].concat(u(h));
1301
- }
1302
- for (d = 0; d < t.surrounding.length; d++)
1303
- this.calcRepulsionForce(t, t.surrounding[d]);
1304
- }, i.prototype.calcRepulsionRange = function() {
1305
- return 0;
1306
- }, A.exports = i;
1307
- },
1308
- /* 19 */
1309
- /***/
1310
- function(A, G, L) {
1311
- var u = L(1), l = L(4);
1312
- function a(e, f, i) {
1313
- u.call(this, e, f, i), this.idealLength = l.DEFAULT_EDGE_LENGTH, this.edgeElasticity = l.DEFAULT_SPRING_STRENGTH;
1314
- }
1315
- a.prototype = Object.create(u.prototype);
1316
- for (var r in u)
1317
- a[r] = u[r];
1318
- A.exports = a;
1319
- },
1320
- /* 20 */
1321
- /***/
1322
- function(A, G, L) {
1323
- var u = L(3), l = L(4);
1324
- function a(e, f, i, g) {
1325
- u.call(this, e, f, i, g), this.nodeRepulsion = l.DEFAULT_REPULSION_STRENGTH, this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0, this.startX = 0, this.finishX = 0, this.startY = 0, this.finishY = 0, this.surrounding = [];
1326
- }
1327
- a.prototype = Object.create(u.prototype);
1328
- for (var r in u)
1329
- a[r] = u[r];
1330
- a.prototype.setGridCoordinates = function(e, f, i, g) {
1331
- this.startX = e, this.finishX = f, this.startY = i, this.finishY = g;
1332
- }, A.exports = a;
1333
- },
1334
- /* 21 */
1335
- /***/
1336
- function(A, G, L) {
1337
- function u(l, a) {
1338
- this.width = 0, this.height = 0, l !== null && a !== null && (this.height = a, this.width = l);
1339
- }
1340
- u.prototype.getWidth = function() {
1341
- return this.width;
1342
- }, u.prototype.setWidth = function(l) {
1343
- this.width = l;
1344
- }, u.prototype.getHeight = function() {
1345
- return this.height;
1346
- }, u.prototype.setHeight = function(l) {
1347
- this.height = l;
1348
- }, A.exports = u;
1349
- },
1350
- /* 22 */
1351
- /***/
1352
- function(A, G, L) {
1353
- var u = L(14);
1354
- function l() {
1355
- this.map = {}, this.keys = [];
1356
- }
1357
- l.prototype.put = function(a, r) {
1358
- var e = u.createID(a);
1359
- this.contains(e) || (this.map[e] = r, this.keys.push(a));
1360
- }, l.prototype.contains = function(a) {
1361
- return u.createID(a), this.map[a] != null;
1362
- }, l.prototype.get = function(a) {
1363
- var r = u.createID(a);
1364
- return this.map[r];
1365
- }, l.prototype.keySet = function() {
1366
- return this.keys;
1367
- }, A.exports = l;
1368
- },
1369
- /* 23 */
1370
- /***/
1371
- function(A, G, L) {
1372
- var u = L(14);
1373
- function l() {
1374
- this.set = {};
1375
- }
1376
- l.prototype.add = function(a) {
1377
- var r = u.createID(a);
1378
- this.contains(r) || (this.set[r] = a);
1379
- }, l.prototype.remove = function(a) {
1380
- delete this.set[u.createID(a)];
1381
- }, l.prototype.clear = function() {
1382
- this.set = {};
1383
- }, l.prototype.contains = function(a) {
1384
- return this.set[u.createID(a)] == a;
1385
- }, l.prototype.isEmpty = function() {
1386
- return this.size() === 0;
1387
- }, l.prototype.size = function() {
1388
- return Object.keys(this.set).length;
1389
- }, l.prototype.addAllTo = function(a) {
1390
- for (var r = Object.keys(this.set), e = r.length, f = 0; f < e; f++)
1391
- a.push(this.set[r[f]]);
1392
- }, l.prototype.size = function() {
1393
- return Object.keys(this.set).length;
1394
- }, l.prototype.addAll = function(a) {
1395
- for (var r = a.length, e = 0; e < r; e++) {
1396
- var f = a[e];
1397
- this.add(f);
1398
- }
1399
- }, A.exports = l;
1400
- },
1401
- /* 24 */
1402
- /***/
1403
- function(A, G, L) {
1404
- function u() {
1405
- }
1406
- u.multMat = function(l, a) {
1407
- for (var r = [], e = 0; e < l.length; e++) {
1408
- r[e] = [];
1409
- for (var f = 0; f < a[0].length; f++) {
1410
- r[e][f] = 0;
1411
- for (var i = 0; i < l[0].length; i++)
1412
- r[e][f] += l[e][i] * a[i][f];
1413
- }
1414
- }
1415
- return r;
1416
- }, u.transpose = function(l) {
1417
- for (var a = [], r = 0; r < l[0].length; r++) {
1418
- a[r] = [];
1419
- for (var e = 0; e < l.length; e++)
1420
- a[r][e] = l[e][r];
1421
- }
1422
- return a;
1423
- }, u.multCons = function(l, a) {
1424
- for (var r = [], e = 0; e < l.length; e++)
1425
- r[e] = l[e] * a;
1426
- return r;
1427
- }, u.minusOp = function(l, a) {
1428
- for (var r = [], e = 0; e < l.length; e++)
1429
- r[e] = l[e] - a[e];
1430
- return r;
1431
- }, u.dotProduct = function(l, a) {
1432
- for (var r = 0, e = 0; e < l.length; e++)
1433
- r += l[e] * a[e];
1434
- return r;
1435
- }, u.mag = function(l) {
1436
- return Math.sqrt(this.dotProduct(l, l));
1437
- }, u.normalize = function(l) {
1438
- for (var a = [], r = this.mag(l), e = 0; e < l.length; e++)
1439
- a[e] = l[e] / r;
1440
- return a;
1441
- }, u.multGamma = function(l) {
1442
- for (var a = [], r = 0, e = 0; e < l.length; e++)
1443
- r += l[e];
1444
- r *= -1 / l.length;
1445
- for (var f = 0; f < l.length; f++)
1446
- a[f] = r + l[f];
1447
- return a;
1448
- }, u.multL = function(l, a, r) {
1449
- for (var e = [], f = [], i = [], g = 0; g < a[0].length; g++) {
1450
- for (var t = 0, s = 0; s < a.length; s++)
1451
- t += -0.5 * a[s][g] * l[s];
1452
- f[g] = t;
1453
- }
1454
- for (var o = 0; o < r.length; o++) {
1455
- for (var c = 0, h = 0; h < r.length; h++)
1456
- c += r[o][h] * f[h];
1457
- i[o] = c;
1458
- }
1459
- for (var T = 0; T < a.length; T++) {
1460
- for (var v = 0, d = 0; d < a[0].length; d++)
1461
- v += a[T][d] * i[d];
1462
- e[T] = v;
1463
- }
1464
- return e;
1465
- }, A.exports = u;
1466
- },
1467
- /* 25 */
1468
- /***/
1469
- function(A, G, L) {
1470
- var u = /* @__PURE__ */ function() {
1471
- function e(f, i) {
1472
- for (var g = 0; g < i.length; g++) {
1473
- var t = i[g];
1474
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(f, t.key, t);
1475
- }
1476
- }
1477
- return function(f, i, g) {
1478
- return i && e(f.prototype, i), g && e(f, g), f;
1479
- };
1480
- }();
1481
- function l(e, f) {
1482
- if (!(e instanceof f))
1483
- throw new TypeError("Cannot call a class as a function");
1484
- }
1485
- var a = L(11), r = function() {
1486
- function e(f, i) {
1487
- l(this, e), (i !== null || i !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1488
- var g = void 0;
1489
- f instanceof a ? g = f.size() : g = f.length, this._quicksort(f, 0, g - 1);
1490
- }
1491
- return u(e, [{
1492
- key: "_quicksort",
1493
- value: function(i, g, t) {
1494
- if (g < t) {
1495
- var s = this._partition(i, g, t);
1496
- this._quicksort(i, g, s), this._quicksort(i, s + 1, t);
1497
- }
1498
- }
1499
- }, {
1500
- key: "_partition",
1501
- value: function(i, g, t) {
1502
- for (var s = this._get(i, g), o = g, c = t; ; ) {
1503
- for (; this.compareFunction(s, this._get(i, c)); )
1504
- c--;
1505
- for (; this.compareFunction(this._get(i, o), s); )
1506
- o++;
1507
- if (o < c)
1508
- this._swap(i, o, c), o++, c--;
1509
- else return c;
1510
- }
1511
- }
1512
- }, {
1513
- key: "_get",
1514
- value: function(i, g) {
1515
- return i instanceof a ? i.get_object_at(g) : i[g];
1516
- }
1517
- }, {
1518
- key: "_set",
1519
- value: function(i, g, t) {
1520
- i instanceof a ? i.set_object_at(g, t) : i[g] = t;
1521
- }
1522
- }, {
1523
- key: "_swap",
1524
- value: function(i, g, t) {
1525
- var s = this._get(i, g);
1526
- this._set(i, g, this._get(i, t)), this._set(i, t, s);
1527
- }
1528
- }, {
1529
- key: "_defaultCompareFunction",
1530
- value: function(i, g) {
1531
- return g > i;
1532
- }
1533
- }]), e;
1534
- }();
1535
- A.exports = r;
1536
- },
1537
- /* 26 */
1538
- /***/
1539
- function(A, G, L) {
1540
- function u() {
1541
- }
1542
- u.svd = function(l) {
1543
- this.U = null, this.V = null, this.s = null, this.m = 0, this.n = 0, this.m = l.length, this.n = l[0].length;
1544
- var a = Math.min(this.m, this.n);
1545
- this.s = function(Nt) {
1546
- for (var Mt = []; Nt-- > 0; )
1547
- Mt.push(0);
1548
- return Mt;
1549
- }(Math.min(this.m + 1, this.n)), this.U = function(Nt) {
1550
- var Mt = function Zt(Gt) {
1551
- if (Gt.length == 0)
1552
- return 0;
1553
- for (var $t = [], Ft = 0; Ft < Gt[0]; Ft++)
1554
- $t.push(Zt(Gt.slice(1)));
1555
- return $t;
1556
- };
1557
- return Mt(Nt);
1558
- }([this.m, a]), this.V = function(Nt) {
1559
- var Mt = function Zt(Gt) {
1560
- if (Gt.length == 0)
1561
- return 0;
1562
- for (var $t = [], Ft = 0; Ft < Gt[0]; Ft++)
1563
- $t.push(Zt(Gt.slice(1)));
1564
- return $t;
1565
- };
1566
- return Mt(Nt);
1567
- }([this.n, this.n]);
1568
- for (var r = function(Nt) {
1569
- for (var Mt = []; Nt-- > 0; )
1570
- Mt.push(0);
1571
- return Mt;
1572
- }(this.n), e = function(Nt) {
1573
- for (var Mt = []; Nt-- > 0; )
1574
- Mt.push(0);
1575
- return Mt;
1576
- }(this.m), f = !0, i = Math.min(this.m - 1, this.n), g = Math.max(0, Math.min(this.n - 2, this.m)), t = 0; t < Math.max(i, g); t++) {
1577
- if (t < i) {
1578
- this.s[t] = 0;
1579
- for (var s = t; s < this.m; s++)
1580
- this.s[t] = u.hypot(this.s[t], l[s][t]);
1581
- if (this.s[t] !== 0) {
1582
- l[t][t] < 0 && (this.s[t] = -this.s[t]);
1583
- for (var o = t; o < this.m; o++)
1584
- l[o][t] /= this.s[t];
1585
- l[t][t] += 1;
1586
- }
1587
- this.s[t] = -this.s[t];
1588
- }
1589
- for (var c = t + 1; c < this.n; c++) {
1590
- if (/* @__PURE__ */ function(Nt, Mt) {
1591
- return Nt && Mt;
1592
- }(t < i, this.s[t] !== 0)) {
1593
- for (var h = 0, T = t; T < this.m; T++)
1594
- h += l[T][t] * l[T][c];
1595
- h = -h / l[t][t];
1596
- for (var v = t; v < this.m; v++)
1597
- l[v][c] += h * l[v][t];
1598
- }
1599
- r[c] = l[t][c];
1600
- }
1601
- if (/* @__PURE__ */ function(Nt, Mt) {
1602
- return Mt;
1603
- }(f, t < i))
1604
- for (var d = t; d < this.m; d++)
1605
- this.U[d][t] = l[d][t];
1606
- if (t < g) {
1607
- r[t] = 0;
1608
- for (var N = t + 1; N < this.n; N++)
1609
- r[t] = u.hypot(r[t], r[N]);
1610
- if (r[t] !== 0) {
1611
- r[t + 1] < 0 && (r[t] = -r[t]);
1612
- for (var S = t + 1; S < this.n; S++)
1613
- r[S] /= r[t];
1614
- r[t + 1] += 1;
1615
- }
1616
- if (r[t] = -r[t], /* @__PURE__ */ function(Nt, Mt) {
1617
- return Nt && Mt;
1618
- }(t + 1 < this.m, r[t] !== 0)) {
1619
- for (var M = t + 1; M < this.m; M++)
1620
- e[M] = 0;
1621
- for (var P = t + 1; P < this.n; P++)
1622
- for (var K = t + 1; K < this.m; K++)
1623
- e[K] += r[P] * l[K][P];
1624
- for (var X = t + 1; X < this.n; X++)
1625
- for (var k = -r[X] / r[t + 1], D = t + 1; D < this.m; D++)
1626
- l[D][X] += k * e[D];
1627
- }
1628
- for (var rt = t + 1; rt < this.n; rt++)
1629
- this.V[rt][t] = r[rt];
1630
- }
1631
- }
1632
- var n = Math.min(this.n, this.m + 1);
1633
- i < this.n && (this.s[i] = l[i][i]), this.m < n && (this.s[n - 1] = 0), g + 1 < n && (r[g] = l[g][n - 1]), r[n - 1] = 0;
1634
- {
1635
- for (var m = i; m < a; m++) {
1636
- for (var p = 0; p < this.m; p++)
1637
- this.U[p][m] = 0;
1638
- this.U[m][m] = 1;
1639
- }
1640
- for (var E = i - 1; E >= 0; E--)
1641
- if (this.s[E] !== 0) {
1642
- for (var y = E + 1; y < a; y++) {
1643
- for (var I = 0, w = E; w < this.m; w++)
1644
- I += this.U[w][E] * this.U[w][y];
1645
- I = -I / this.U[E][E];
1646
- for (var R = E; R < this.m; R++)
1647
- this.U[R][y] += I * this.U[R][E];
1648
- }
1649
- for (var W = E; W < this.m; W++)
1650
- this.U[W][E] = -this.U[W][E];
1651
- this.U[E][E] = 1 + this.U[E][E];
1652
- for (var x = 0; x < E - 1; x++)
1653
- this.U[x][E] = 0;
1654
- } else {
1655
- for (var q = 0; q < this.m; q++)
1656
- this.U[q][E] = 0;
1657
- this.U[E][E] = 1;
1658
- }
1659
- }
1660
- for (var V = this.n - 1; V >= 0; V--) {
1661
- if (/* @__PURE__ */ function(Nt, Mt) {
1662
- return Nt && Mt;
1663
- }(V < g, r[V] !== 0))
1664
- for (var Y = V + 1; Y < a; Y++) {
1665
- for (var et = 0, z = V + 1; z < this.n; z++)
1666
- et += this.V[z][V] * this.V[z][Y];
1667
- et = -et / this.V[V + 1][V];
1668
- for (var O = V + 1; O < this.n; O++)
1669
- this.V[O][Y] += et * this.V[O][V];
1670
- }
1671
- for (var H = 0; H < this.n; H++)
1672
- this.V[H][V] = 0;
1673
- this.V[V][V] = 1;
1674
- }
1675
- for (var B = n - 1, _ = Math.pow(2, -52), lt = Math.pow(2, -966); n > 0; ) {
1676
- var J = void 0, Rt = void 0;
1677
- for (J = n - 2; J >= -1 && J !== -1; J--)
1678
- if (Math.abs(r[J]) <= lt + _ * (Math.abs(this.s[J]) + Math.abs(this.s[J + 1]))) {
1679
- r[J] = 0;
1680
- break;
1681
- }
1682
- if (J === n - 2)
1683
- Rt = 4;
1684
- else {
1685
- var Lt = void 0;
1686
- for (Lt = n - 1; Lt >= J && Lt !== J; Lt--) {
1687
- var vt = (Lt !== n ? Math.abs(r[Lt]) : 0) + (Lt !== J + 1 ? Math.abs(r[Lt - 1]) : 0);
1688
- if (Math.abs(this.s[Lt]) <= lt + _ * vt) {
1689
- this.s[Lt] = 0;
1690
- break;
1691
- }
1692
- }
1693
- Lt === J ? Rt = 3 : Lt === n - 1 ? Rt = 1 : (Rt = 2, J = Lt);
1694
- }
1695
- switch (J++, Rt) {
1696
- case 1:
1697
- {
1698
- var it = r[n - 2];
1699
- r[n - 2] = 0;
1700
- for (var gt = n - 2; gt >= J; gt--) {
1701
- var Tt = u.hypot(this.s[gt], it), At = this.s[gt] / Tt, Dt = it / Tt;
1702
- this.s[gt] = Tt, gt !== J && (it = -Dt * r[gt - 1], r[gt - 1] = At * r[gt - 1]);
1703
- for (var mt = 0; mt < this.n; mt++)
1704
- Tt = At * this.V[mt][gt] + Dt * this.V[mt][n - 1], this.V[mt][n - 1] = -Dt * this.V[mt][gt] + At * this.V[mt][n - 1], this.V[mt][gt] = Tt;
1705
- }
1706
- }
1707
- break;
1708
- case 2:
1709
- {
1710
- var xt = r[J - 1];
1711
- r[J - 1] = 0;
1712
- for (var St = J; St < n; St++) {
1713
- var Vt = u.hypot(this.s[St], xt), Xt = this.s[St] / Vt, Ut = xt / Vt;
1714
- this.s[St] = Vt, xt = -Ut * r[St], r[St] = Xt * r[St];
1715
- for (var bt = 0; bt < this.m; bt++)
1716
- Vt = Xt * this.U[bt][St] + Ut * this.U[bt][J - 1], this.U[bt][J - 1] = -Ut * this.U[bt][St] + Xt * this.U[bt][J - 1], this.U[bt][St] = Vt;
1717
- }
1718
- }
1719
- break;
1720
- case 3:
1721
- {
1722
- var Ht = Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n - 1]), Math.abs(this.s[n - 2])), Math.abs(r[n - 2])), Math.abs(this.s[J])), Math.abs(r[J])), Bt = this.s[n - 1] / Ht, F = this.s[n - 2] / Ht, b = r[n - 2] / Ht, $ = this.s[J] / Ht, Q = r[J] / Ht, Z = ((F + Bt) * (F - Bt) + b * b) / 2, at = Bt * b * (Bt * b), ut = 0;
1723
- /* @__PURE__ */ (function(Nt, Mt) {
1724
- return Nt || Mt;
1725
- })(Z !== 0, at !== 0) && (ut = Math.sqrt(Z * Z + at), Z < 0 && (ut = -ut), ut = at / (Z + ut));
1726
- for (var ot = ($ + Bt) * ($ - Bt) + ut, tt = $ * Q, j = J; j < n - 1; j++) {
1727
- var dt = u.hypot(ot, tt), wt = ot / dt, yt = tt / dt;
1728
- j !== J && (r[j - 1] = dt), ot = wt * this.s[j] + yt * r[j], r[j] = wt * r[j] - yt * this.s[j], tt = yt * this.s[j + 1], this.s[j + 1] = wt * this.s[j + 1];
1729
- for (var It = 0; It < this.n; It++)
1730
- dt = wt * this.V[It][j] + yt * this.V[It][j + 1], this.V[It][j + 1] = -yt * this.V[It][j] + wt * this.V[It][j + 1], this.V[It][j] = dt;
1731
- if (dt = u.hypot(ot, tt), wt = ot / dt, yt = tt / dt, this.s[j] = dt, ot = wt * r[j] + yt * this.s[j + 1], this.s[j + 1] = -yt * r[j] + wt * this.s[j + 1], tt = yt * r[j + 1], r[j + 1] = wt * r[j + 1], j < this.m - 1)
1732
- for (var ft = 0; ft < this.m; ft++)
1733
- dt = wt * this.U[ft][j] + yt * this.U[ft][j + 1], this.U[ft][j + 1] = -yt * this.U[ft][j] + wt * this.U[ft][j + 1], this.U[ft][j] = dt;
1734
- }
1735
- r[n - 2] = ot;
1736
- }
1737
- break;
1738
- case 4:
1739
- {
1740
- if (this.s[J] <= 0) {
1741
- this.s[J] = this.s[J] < 0 ? -this.s[J] : 0;
1742
- for (var st = 0; st <= B; st++)
1743
- this.V[st][J] = -this.V[st][J];
1744
- }
1745
- for (; J < B && !(this.s[J] >= this.s[J + 1]); ) {
1746
- var Ct = this.s[J];
1747
- if (this.s[J] = this.s[J + 1], this.s[J + 1] = Ct, J < this.n - 1)
1748
- for (var ct = 0; ct < this.n; ct++)
1749
- Ct = this.V[ct][J + 1], this.V[ct][J + 1] = this.V[ct][J], this.V[ct][J] = Ct;
1750
- if (J < this.m - 1)
1751
- for (var ht = 0; ht < this.m; ht++)
1752
- Ct = this.U[ht][J + 1], this.U[ht][J + 1] = this.U[ht][J], this.U[ht][J] = Ct;
1753
- J++;
1754
- }
1755
- n--;
1756
- }
1757
- break;
1758
- }
1759
- }
1760
- var Wt = { U: this.U, V: this.V, S: this.s };
1761
- return Wt;
1762
- }, u.hypot = function(l, a) {
1763
- var r = void 0;
1764
- return Math.abs(l) > Math.abs(a) ? (r = a / l, r = Math.abs(l) * Math.sqrt(1 + r * r)) : a != 0 ? (r = l / a, r = Math.abs(a) * Math.sqrt(1 + r * r)) : r = 0, r;
1765
- }, A.exports = u;
1766
- },
1767
- /* 27 */
1768
- /***/
1769
- function(A, G, L) {
1770
- var u = /* @__PURE__ */ function() {
1771
- function r(e, f) {
1772
- for (var i = 0; i < f.length; i++) {
1773
- var g = f[i];
1774
- g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(e, g.key, g);
1775
- }
1776
- }
1777
- return function(e, f, i) {
1778
- return f && r(e.prototype, f), i && r(e, i), e;
1779
- };
1780
- }();
1781
- function l(r, e) {
1782
- if (!(r instanceof e))
1783
- throw new TypeError("Cannot call a class as a function");
1784
- }
1785
- var a = function() {
1786
- function r(e, f) {
1787
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, t = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
1788
- l(this, r), this.sequence1 = e, this.sequence2 = f, this.match_score = i, this.mismatch_penalty = g, this.gap_penalty = t, this.iMax = e.length + 1, this.jMax = f.length + 1, this.grid = new Array(this.iMax);
1789
- for (var s = 0; s < this.iMax; s++) {
1790
- this.grid[s] = new Array(this.jMax);
1791
- for (var o = 0; o < this.jMax; o++)
1792
- this.grid[s][o] = 0;
1793
- }
1794
- this.tracebackGrid = new Array(this.iMax);
1795
- for (var c = 0; c < this.iMax; c++) {
1796
- this.tracebackGrid[c] = new Array(this.jMax);
1797
- for (var h = 0; h < this.jMax; h++)
1798
- this.tracebackGrid[c][h] = [null, null, null];
1799
- }
1800
- this.alignments = [], this.score = -1, this.computeGrids();
1801
- }
1802
- return u(r, [{
1803
- key: "getScore",
1804
- value: function() {
1805
- return this.score;
1806
- }
1807
- }, {
1808
- key: "getAlignments",
1809
- value: function() {
1810
- return this.alignments;
1811
- }
1812
- // Main dynamic programming procedure
1813
- }, {
1814
- key: "computeGrids",
1815
- value: function() {
1816
- for (var f = 1; f < this.jMax; f++)
1817
- this.grid[0][f] = this.grid[0][f - 1] + this.gap_penalty, this.tracebackGrid[0][f] = [!1, !1, !0];
1818
- for (var i = 1; i < this.iMax; i++)
1819
- this.grid[i][0] = this.grid[i - 1][0] + this.gap_penalty, this.tracebackGrid[i][0] = [!1, !0, !1];
1820
- for (var g = 1; g < this.iMax; g++)
1821
- for (var t = 1; t < this.jMax; t++) {
1822
- var s = void 0;
1823
- this.sequence1[g - 1] === this.sequence2[t - 1] ? s = this.grid[g - 1][t - 1] + this.match_score : s = this.grid[g - 1][t - 1] + this.mismatch_penalty;
1824
- var o = this.grid[g - 1][t] + this.gap_penalty, c = this.grid[g][t - 1] + this.gap_penalty, h = [s, o, c], T = this.arrayAllMaxIndexes(h);
1825
- this.grid[g][t] = h[T[0]], this.tracebackGrid[g][t] = [T.includes(0), T.includes(1), T.includes(2)];
1826
- }
1827
- this.score = this.grid[this.iMax - 1][this.jMax - 1];
1828
- }
1829
- // Gets all possible valid sequence combinations
1830
- }, {
1831
- key: "alignmentTraceback",
1832
- value: function() {
1833
- var f = [];
1834
- for (f.push({
1835
- pos: [this.sequence1.length, this.sequence2.length],
1836
- seq1: "",
1837
- seq2: ""
1838
- }); f[0]; ) {
1839
- var i = f[0], g = this.tracebackGrid[i.pos[0]][i.pos[1]];
1840
- g[0] && f.push({
1841
- pos: [i.pos[0] - 1, i.pos[1] - 1],
1842
- seq1: this.sequence1[i.pos[0] - 1] + i.seq1,
1843
- seq2: this.sequence2[i.pos[1] - 1] + i.seq2
1844
- }), g[1] && f.push({
1845
- pos: [i.pos[0] - 1, i.pos[1]],
1846
- seq1: this.sequence1[i.pos[0] - 1] + i.seq1,
1847
- seq2: "-" + i.seq2
1848
- }), g[2] && f.push({
1849
- pos: [i.pos[0], i.pos[1] - 1],
1850
- seq1: "-" + i.seq1,
1851
- seq2: this.sequence2[i.pos[1] - 1] + i.seq2
1852
- }), i.pos[0] === 0 && i.pos[1] === 0 && this.alignments.push({
1853
- sequence1: i.seq1,
1854
- sequence2: i.seq2
1855
- }), f.shift();
1856
- }
1857
- return this.alignments;
1858
- }
1859
- // Helper Functions
1860
- }, {
1861
- key: "getAllIndexes",
1862
- value: function(f, i) {
1863
- for (var g = [], t = -1; (t = f.indexOf(i, t + 1)) !== -1; )
1864
- g.push(t);
1865
- return g;
1866
- }
1867
- }, {
1868
- key: "arrayAllMaxIndexes",
1869
- value: function(f) {
1870
- return this.getAllIndexes(f, Math.max.apply(null, f));
1871
- }
1872
- }]), r;
1873
- }();
1874
- A.exports = a;
1875
- },
1876
- /* 28 */
1877
- /***/
1878
- function(A, G, L) {
1879
- var u = function() {
1880
- };
1881
- u.FDLayout = L(18), u.FDLayoutConstants = L(4), u.FDLayoutEdge = L(19), u.FDLayoutNode = L(20), u.DimensionD = L(21), u.HashMap = L(22), u.HashSet = L(23), u.IGeometry = L(8), u.IMath = L(9), u.Integer = L(10), u.Point = L(12), u.PointD = L(5), u.RandomSeed = L(16), u.RectangleD = L(13), u.Transform = L(17), u.UniqueIDGeneretor = L(14), u.Quicksort = L(25), u.LinkedList = L(11), u.LGraphObject = L(2), u.LGraph = L(6), u.LEdge = L(1), u.LGraphManager = L(7), u.LNode = L(3), u.Layout = L(15), u.LayoutConstants = L(0), u.NeedlemanWunsch = L(27), u.Matrix = L(24), u.SVD = L(26), A.exports = u;
1882
- },
1883
- /* 29 */
1884
- /***/
1885
- function(A, G, L) {
1886
- function u() {
1887
- this.listeners = [];
1888
- }
1889
- var l = u.prototype;
1890
- l.addListener = function(a, r) {
1891
- this.listeners.push({
1892
- event: a,
1893
- callback: r
1894
- });
1895
- }, l.removeListener = function(a, r) {
1896
- for (var e = this.listeners.length; e >= 0; e--) {
1897
- var f = this.listeners[e];
1898
- f.event === a && f.callback === r && this.listeners.splice(e, 1);
1899
- }
1900
- }, l.emit = function(a, r) {
1901
- for (var e = 0; e < this.listeners.length; e++) {
1902
- var f = this.listeners[e];
1903
- a === f.event && f.callback(r);
1904
- }
1905
- }, A.exports = u;
1906
- }
1907
- /******/
1908
- ])
1909
- );
1910
- });
1911
- }(ce)), ce.exports;
1912
- }
1913
- var gr = fe.exports, Ie;
1914
- function dr() {
1915
- return Ie || (Ie = 1, function(C, U) {
1916
- (function(G, L) {
1917
- C.exports = L(ur());
1918
- })(gr, function(A) {
1919
- return (
1920
- /******/
1921
- (() => {
1922
- var G = {
1923
- /***/
1924
- 45: (
1925
- /***/
1926
- (a, r, e) => {
1927
- var f = {};
1928
- f.layoutBase = e(551), f.CoSEConstants = e(806), f.CoSEEdge = e(767), f.CoSEGraph = e(880), f.CoSEGraphManager = e(578), f.CoSELayout = e(765), f.CoSENode = e(991), f.ConstraintHandler = e(902), a.exports = f;
1929
- }
1930
- ),
1931
- /***/
1932
- 806: (
1933
- /***/
1934
- (a, r, e) => {
1935
- var f = e(551).FDLayoutConstants;
1936
- function i() {
1937
- }
1938
- for (var g in f)
1939
- i[g] = f[g];
1940
- i.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, i.DEFAULT_RADIAL_SEPARATION = f.DEFAULT_EDGE_LENGTH, i.DEFAULT_COMPONENT_SEPERATION = 60, i.TILE = !0, i.TILING_PADDING_VERTICAL = 10, i.TILING_PADDING_HORIZONTAL = 10, i.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, i.ENFORCE_CONSTRAINTS = !0, i.APPLY_LAYOUT = !0, i.RELAX_MOVEMENT_ON_CONSTRAINTS = !0, i.TREE_REDUCTION_ON_INCREMENTAL = !0, i.PURE_INCREMENTAL = i.DEFAULT_INCREMENTAL, a.exports = i;
1941
- }
1942
- ),
1943
- /***/
1944
- 767: (
1945
- /***/
1946
- (a, r, e) => {
1947
- var f = e(551).FDLayoutEdge;
1948
- function i(t, s, o) {
1949
- f.call(this, t, s, o);
1950
- }
1951
- i.prototype = Object.create(f.prototype);
1952
- for (var g in f)
1953
- i[g] = f[g];
1954
- a.exports = i;
1955
- }
1956
- ),
1957
- /***/
1958
- 880: (
1959
- /***/
1960
- (a, r, e) => {
1961
- var f = e(551).LGraph;
1962
- function i(t, s, o) {
1963
- f.call(this, t, s, o);
1964
- }
1965
- i.prototype = Object.create(f.prototype);
1966
- for (var g in f)
1967
- i[g] = f[g];
1968
- a.exports = i;
1969
- }
1970
- ),
1971
- /***/
1972
- 578: (
1973
- /***/
1974
- (a, r, e) => {
1975
- var f = e(551).LGraphManager;
1976
- function i(t) {
1977
- f.call(this, t);
1978
- }
1979
- i.prototype = Object.create(f.prototype);
1980
- for (var g in f)
1981
- i[g] = f[g];
1982
- a.exports = i;
1983
- }
1984
- ),
1985
- /***/
1986
- 765: (
1987
- /***/
1988
- (a, r, e) => {
1989
- var f = e(551).FDLayout, i = e(578), g = e(880), t = e(991), s = e(767), o = e(806), c = e(902), h = e(551).FDLayoutConstants, T = e(551).LayoutConstants, v = e(551).Point, d = e(551).PointD, N = e(551).DimensionD, S = e(551).Layout, M = e(551).Integer, P = e(551).IGeometry, K = e(551).LGraph, X = e(551).Transform, k = e(551).LinkedList;
1990
- function D() {
1991
- f.call(this), this.toBeTiled = {}, this.constraints = {};
1992
- }
1993
- D.prototype = Object.create(f.prototype);
1994
- for (var rt in f)
1995
- D[rt] = f[rt];
1996
- D.prototype.newGraphManager = function() {
1997
- var n = new i(this);
1998
- return this.graphManager = n, n;
1999
- }, D.prototype.newGraph = function(n) {
2000
- return new g(null, this.graphManager, n);
2001
- }, D.prototype.newNode = function(n) {
2002
- return new t(this.graphManager, n);
2003
- }, D.prototype.newEdge = function(n) {
2004
- return new s(null, null, n);
2005
- }, D.prototype.initParameters = function() {
2006
- f.prototype.initParameters.call(this, arguments), this.isSubLayout || (o.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = o.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.gravityConstant = h.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = h.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = h.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1);
2007
- }, D.prototype.initSpringEmbedder = function() {
2008
- f.prototype.initSpringEmbedder.call(this), this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / h.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = 0.04, this.coolingAdjuster = 1;
2009
- }, D.prototype.layout = function() {
2010
- var n = T.DEFAULT_CREATE_BENDS_AS_NEEDED;
2011
- return n && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
2012
- }, D.prototype.classicLayout = function() {
2013
- if (this.nodesWithGravity = this.calculateNodesToApplyGravitationTo(), this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity), this.calcNoOfChildrenForAllNodes(), this.graphManager.calcLowestCommonAncestors(), this.graphManager.calcInclusionTreeDepths(), this.graphManager.getRoot().calcEstimatedSize(), this.calcIdealEdgeLengths(), this.incremental) {
2014
- if (o.TREE_REDUCTION_ON_INCREMENTAL) {
2015
- this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
2016
- var m = new Set(this.getAllNodes()), p = this.nodesWithGravity.filter(function(I) {
2017
- return m.has(I);
2018
- });
2019
- this.graphManager.setAllNodesToApplyGravitation(p);
2020
- }
2021
- } else {
2022
- var n = this.getFlatForest();
2023
- if (n.length > 0)
2024
- this.positionNodesRadially(n);
2025
- else {
2026
- this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
2027
- var m = new Set(this.getAllNodes()), p = this.nodesWithGravity.filter(function(E) {
2028
- return m.has(E);
2029
- });
2030
- this.graphManager.setAllNodesToApplyGravitation(p), this.positionNodesRandomly();
2031
- }
2032
- }
2033
- return Object.keys(this.constraints).length > 0 && (c.handleConstraints(this), this.initConstraintVariables()), this.initSpringEmbedder(), o.APPLY_LAYOUT && this.runSpringEmbedder(), !0;
2034
- }, D.prototype.tick = function() {
2035
- if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished)
2036
- if (this.prunedNodesAll.length > 0)
2037
- this.isTreeGrowing = !0;
2038
- else
2039
- return !0;
2040
- if (this.totalIterations % h.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
2041
- if (this.isConverged())
2042
- if (this.prunedNodesAll.length > 0)
2043
- this.isTreeGrowing = !0;
2044
- else
2045
- return !0;
2046
- this.coolingCycle++, this.layoutQuality == 0 ? this.coolingAdjuster = this.coolingCycle : this.layoutQuality == 1 && (this.coolingAdjuster = this.coolingCycle / 3), this.coolingFactor = Math.max(this.initialCoolingFactor - Math.pow(this.coolingCycle, Math.log(100 * (this.initialCoolingFactor - this.finalTemperature)) / Math.log(this.maxCoolingCycle)) / 100 * this.coolingAdjuster, this.finalTemperature), this.animationPeriod = Math.ceil(this.initialAnimationPeriod * Math.sqrt(this.coolingFactor));
2047
- }
2048
- if (this.isTreeGrowing) {
2049
- if (this.growTreeIterations % 10 == 0)
2050
- if (this.prunedNodesAll.length > 0) {
2051
- this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
2052
- var n = new Set(this.getAllNodes()), m = this.nodesWithGravity.filter(function(y) {
2053
- return n.has(y);
2054
- });
2055
- this.graphManager.setAllNodesToApplyGravitation(m), this.graphManager.updateBounds(), this.updateGrid(), o.PURE_INCREMENTAL ? this.coolingFactor = h.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 : this.coolingFactor = h.DEFAULT_COOLING_FACTOR_INCREMENTAL;
2056
- } else
2057
- this.isTreeGrowing = !1, this.isGrowthFinished = !0;
2058
- this.growTreeIterations++;
2059
- }
2060
- if (this.isGrowthFinished) {
2061
- if (this.isConverged())
2062
- return !0;
2063
- this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), o.PURE_INCREMENTAL ? this.coolingFactor = h.DEFAULT_COOLING_FACTOR_INCREMENTAL / 2 * ((100 - this.afterGrowthIterations) / 100) : this.coolingFactor = h.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
2064
- }
2065
- var p = !this.isTreeGrowing && !this.isGrowthFinished, E = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
2066
- return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(p, E), this.calcGravitationalForces(), this.moveNodes(), this.animate(), !1;
2067
- }, D.prototype.getPositionsData = function() {
2068
- for (var n = this.graphManager.getAllNodes(), m = {}, p = 0; p < n.length; p++) {
2069
- var E = n[p].rect, y = n[p].id;
2070
- m[y] = {
2071
- id: y,
2072
- x: E.getCenterX(),
2073
- y: E.getCenterY(),
2074
- w: E.width,
2075
- h: E.height
2076
- };
2077
- }
2078
- return m;
2079
- }, D.prototype.runSpringEmbedder = function() {
2080
- this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
2081
- var n = !1;
2082
- if (h.ANIMATE === "during")
2083
- this.emit("layoutstarted");
2084
- else {
2085
- for (; !n; )
2086
- n = this.tick();
2087
- this.graphManager.updateBounds();
2088
- }
2089
- }, D.prototype.moveNodes = function() {
2090
- for (var n = this.getAllNodes(), m, p = 0; p < n.length; p++)
2091
- m = n[p], m.calculateDisplacement();
2092
- Object.keys(this.constraints).length > 0 && this.updateDisplacements();
2093
- for (var p = 0; p < n.length; p++)
2094
- m = n[p], m.move();
2095
- }, D.prototype.initConstraintVariables = function() {
2096
- var n = this;
2097
- this.idToNodeMap = /* @__PURE__ */ new Map(), this.fixedNodeSet = /* @__PURE__ */ new Set();
2098
- for (var m = this.graphManager.getAllNodes(), p = 0; p < m.length; p++) {
2099
- var E = m[p];
2100
- this.idToNodeMap.set(E.id, E);
2101
- }
2102
- var y = function O(H) {
2103
- for (var B = H.getChild().getNodes(), _, lt = 0, J = 0; J < B.length; J++)
2104
- _ = B[J], _.getChild() == null ? n.fixedNodeSet.has(_.id) && (lt += 100) : lt += O(_);
2105
- return lt;
2106
- };
2107
- if (this.constraints.fixedNodeConstraint) {
2108
- this.constraints.fixedNodeConstraint.forEach(function(B) {
2109
- n.fixedNodeSet.add(B.nodeId);
2110
- });
2111
- for (var m = this.graphManager.getAllNodes(), E, p = 0; p < m.length; p++)
2112
- if (E = m[p], E.getChild() != null) {
2113
- var I = y(E);
2114
- I > 0 && (E.fixedNodeWeight = I);
2115
- }
2116
- }
2117
- if (this.constraints.relativePlacementConstraint) {
2118
- var w = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map();
2119
- if (this.dummyToNodeForVerticalAlignment = /* @__PURE__ */ new Map(), this.dummyToNodeForHorizontalAlignment = /* @__PURE__ */ new Map(), this.fixedNodesOnHorizontal = /* @__PURE__ */ new Set(), this.fixedNodesOnVertical = /* @__PURE__ */ new Set(), this.fixedNodeSet.forEach(function(O) {
2120
- n.fixedNodesOnHorizontal.add(O), n.fixedNodesOnVertical.add(O);
2121
- }), this.constraints.alignmentConstraint) {
2122
- if (this.constraints.alignmentConstraint.vertical)
2123
- for (var W = this.constraints.alignmentConstraint.vertical, p = 0; p < W.length; p++)
2124
- this.dummyToNodeForVerticalAlignment.set("dummy" + p, []), W[p].forEach(function(H) {
2125
- w.set(H, "dummy" + p), n.dummyToNodeForVerticalAlignment.get("dummy" + p).push(H), n.fixedNodeSet.has(H) && n.fixedNodesOnHorizontal.add("dummy" + p);
2126
- });
2127
- if (this.constraints.alignmentConstraint.horizontal)
2128
- for (var x = this.constraints.alignmentConstraint.horizontal, p = 0; p < x.length; p++)
2129
- this.dummyToNodeForHorizontalAlignment.set("dummy" + p, []), x[p].forEach(function(H) {
2130
- R.set(H, "dummy" + p), n.dummyToNodeForHorizontalAlignment.get("dummy" + p).push(H), n.fixedNodeSet.has(H) && n.fixedNodesOnVertical.add("dummy" + p);
2131
- });
2132
- }
2133
- if (o.RELAX_MOVEMENT_ON_CONSTRAINTS)
2134
- this.shuffle = function(O) {
2135
- var H, B, _;
2136
- for (_ = O.length - 1; _ >= 2 * O.length / 3; _--)
2137
- H = Math.floor(Math.random() * (_ + 1)), B = O[_], O[_] = O[H], O[H] = B;
2138
- return O;
2139
- }, this.nodesInRelativeHorizontal = [], this.nodesInRelativeVertical = [], this.nodeToRelativeConstraintMapHorizontal = /* @__PURE__ */ new Map(), this.nodeToRelativeConstraintMapVertical = /* @__PURE__ */ new Map(), this.nodeToTempPositionMapHorizontal = /* @__PURE__ */ new Map(), this.nodeToTempPositionMapVertical = /* @__PURE__ */ new Map(), this.constraints.relativePlacementConstraint.forEach(function(O) {
2140
- if (O.left) {
2141
- var H = w.has(O.left) ? w.get(O.left) : O.left, B = w.has(O.right) ? w.get(O.right) : O.right;
2142
- n.nodesInRelativeHorizontal.includes(H) || (n.nodesInRelativeHorizontal.push(H), n.nodeToRelativeConstraintMapHorizontal.set(H, []), n.dummyToNodeForVerticalAlignment.has(H) ? n.nodeToTempPositionMapHorizontal.set(H, n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()) : n.nodeToTempPositionMapHorizontal.set(H, n.idToNodeMap.get(H).getCenterX())), n.nodesInRelativeHorizontal.includes(B) || (n.nodesInRelativeHorizontal.push(B), n.nodeToRelativeConstraintMapHorizontal.set(B, []), n.dummyToNodeForVerticalAlignment.has(B) ? n.nodeToTempPositionMapHorizontal.set(B, n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()) : n.nodeToTempPositionMapHorizontal.set(B, n.idToNodeMap.get(B).getCenterX())), n.nodeToRelativeConstraintMapHorizontal.get(H).push({ right: B, gap: O.gap }), n.nodeToRelativeConstraintMapHorizontal.get(B).push({ left: H, gap: O.gap });
2143
- } else {
2144
- var _ = R.has(O.top) ? R.get(O.top) : O.top, lt = R.has(O.bottom) ? R.get(O.bottom) : O.bottom;
2145
- n.nodesInRelativeVertical.includes(_) || (n.nodesInRelativeVertical.push(_), n.nodeToRelativeConstraintMapVertical.set(_, []), n.dummyToNodeForHorizontalAlignment.has(_) ? n.nodeToTempPositionMapVertical.set(_, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(_, n.idToNodeMap.get(_).getCenterY())), n.nodesInRelativeVertical.includes(lt) || (n.nodesInRelativeVertical.push(lt), n.nodeToRelativeConstraintMapVertical.set(lt, []), n.dummyToNodeForHorizontalAlignment.has(lt) ? n.nodeToTempPositionMapVertical.set(lt, n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()) : n.nodeToTempPositionMapVertical.set(lt, n.idToNodeMap.get(lt).getCenterY())), n.nodeToRelativeConstraintMapVertical.get(_).push({ bottom: lt, gap: O.gap }), n.nodeToRelativeConstraintMapVertical.get(lt).push({ top: _, gap: O.gap });
2146
- }
2147
- });
2148
- else {
2149
- var q = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
2150
- this.constraints.relativePlacementConstraint.forEach(function(O) {
2151
- if (O.left) {
2152
- var H = w.has(O.left) ? w.get(O.left) : O.left, B = w.has(O.right) ? w.get(O.right) : O.right;
2153
- q.has(H) ? q.get(H).push(B) : q.set(H, [B]), q.has(B) ? q.get(B).push(H) : q.set(B, [H]);
2154
- } else {
2155
- var _ = R.has(O.top) ? R.get(O.top) : O.top, lt = R.has(O.bottom) ? R.get(O.bottom) : O.bottom;
2156
- V.has(_) ? V.get(_).push(lt) : V.set(_, [lt]), V.has(lt) ? V.get(lt).push(_) : V.set(lt, [_]);
2157
- }
2158
- });
2159
- var Y = function(H, B) {
2160
- var _ = [], lt = [], J = new k(), Rt = /* @__PURE__ */ new Set(), Lt = 0;
2161
- return H.forEach(function(vt, it) {
2162
- if (!Rt.has(it)) {
2163
- _[Lt] = [], lt[Lt] = !1;
2164
- var gt = it;
2165
- for (J.push(gt), Rt.add(gt), _[Lt].push(gt); J.length != 0; ) {
2166
- gt = J.shift(), B.has(gt) && (lt[Lt] = !0);
2167
- var Tt = H.get(gt);
2168
- Tt.forEach(function(At) {
2169
- Rt.has(At) || (J.push(At), Rt.add(At), _[Lt].push(At));
2170
- });
2171
- }
2172
- Lt++;
2173
- }
2174
- }), { components: _, isFixed: lt };
2175
- }, et = Y(q, n.fixedNodesOnHorizontal);
2176
- this.componentsOnHorizontal = et.components, this.fixedComponentsOnHorizontal = et.isFixed;
2177
- var z = Y(V, n.fixedNodesOnVertical);
2178
- this.componentsOnVertical = z.components, this.fixedComponentsOnVertical = z.isFixed;
2179
- }
2180
- }
2181
- }, D.prototype.updateDisplacements = function() {
2182
- var n = this;
2183
- if (this.constraints.fixedNodeConstraint && this.constraints.fixedNodeConstraint.forEach(function(z) {
2184
- var O = n.idToNodeMap.get(z.nodeId);
2185
- O.displacementX = 0, O.displacementY = 0;
2186
- }), this.constraints.alignmentConstraint) {
2187
- if (this.constraints.alignmentConstraint.vertical)
2188
- for (var m = this.constraints.alignmentConstraint.vertical, p = 0; p < m.length; p++) {
2189
- for (var E = 0, y = 0; y < m[p].length; y++) {
2190
- if (this.fixedNodeSet.has(m[p][y])) {
2191
- E = 0;
2192
- break;
2193
- }
2194
- E += this.idToNodeMap.get(m[p][y]).displacementX;
2195
- }
2196
- for (var I = E / m[p].length, y = 0; y < m[p].length; y++)
2197
- this.idToNodeMap.get(m[p][y]).displacementX = I;
2198
- }
2199
- if (this.constraints.alignmentConstraint.horizontal)
2200
- for (var w = this.constraints.alignmentConstraint.horizontal, p = 0; p < w.length; p++) {
2201
- for (var R = 0, y = 0; y < w[p].length; y++) {
2202
- if (this.fixedNodeSet.has(w[p][y])) {
2203
- R = 0;
2204
- break;
2205
- }
2206
- R += this.idToNodeMap.get(w[p][y]).displacementY;
2207
- }
2208
- for (var W = R / w[p].length, y = 0; y < w[p].length; y++)
2209
- this.idToNodeMap.get(w[p][y]).displacementY = W;
2210
- }
2211
- }
2212
- if (this.constraints.relativePlacementConstraint)
2213
- if (o.RELAX_MOVEMENT_ON_CONSTRAINTS)
2214
- this.totalIterations % 10 == 0 && (this.shuffle(this.nodesInRelativeHorizontal), this.shuffle(this.nodesInRelativeVertical)), this.nodesInRelativeHorizontal.forEach(function(z) {
2215
- if (!n.fixedNodesOnHorizontal.has(z)) {
2216
- var O = 0;
2217
- n.dummyToNodeForVerticalAlignment.has(z) ? O = n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(z)[0]).displacementX : O = n.idToNodeMap.get(z).displacementX, n.nodeToRelativeConstraintMapHorizontal.get(z).forEach(function(H) {
2218
- if (H.right) {
2219
- var B = n.nodeToTempPositionMapHorizontal.get(H.right) - n.nodeToTempPositionMapHorizontal.get(z) - O;
2220
- B < H.gap && (O -= H.gap - B);
2221
- } else {
2222
- var B = n.nodeToTempPositionMapHorizontal.get(z) - n.nodeToTempPositionMapHorizontal.get(H.left) + O;
2223
- B < H.gap && (O += H.gap - B);
2224
- }
2225
- }), n.nodeToTempPositionMapHorizontal.set(z, n.nodeToTempPositionMapHorizontal.get(z) + O), n.dummyToNodeForVerticalAlignment.has(z) ? n.dummyToNodeForVerticalAlignment.get(z).forEach(function(H) {
2226
- n.idToNodeMap.get(H).displacementX = O;
2227
- }) : n.idToNodeMap.get(z).displacementX = O;
2228
- }
2229
- }), this.nodesInRelativeVertical.forEach(function(z) {
2230
- if (!n.fixedNodesOnHorizontal.has(z)) {
2231
- var O = 0;
2232
- n.dummyToNodeForHorizontalAlignment.has(z) ? O = n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(z)[0]).displacementY : O = n.idToNodeMap.get(z).displacementY, n.nodeToRelativeConstraintMapVertical.get(z).forEach(function(H) {
2233
- if (H.bottom) {
2234
- var B = n.nodeToTempPositionMapVertical.get(H.bottom) - n.nodeToTempPositionMapVertical.get(z) - O;
2235
- B < H.gap && (O -= H.gap - B);
2236
- } else {
2237
- var B = n.nodeToTempPositionMapVertical.get(z) - n.nodeToTempPositionMapVertical.get(H.top) + O;
2238
- B < H.gap && (O += H.gap - B);
2239
- }
2240
- }), n.nodeToTempPositionMapVertical.set(z, n.nodeToTempPositionMapVertical.get(z) + O), n.dummyToNodeForHorizontalAlignment.has(z) ? n.dummyToNodeForHorizontalAlignment.get(z).forEach(function(H) {
2241
- n.idToNodeMap.get(H).displacementY = O;
2242
- }) : n.idToNodeMap.get(z).displacementY = O;
2243
- }
2244
- });
2245
- else {
2246
- for (var p = 0; p < this.componentsOnHorizontal.length; p++) {
2247
- var x = this.componentsOnHorizontal[p];
2248
- if (this.fixedComponentsOnHorizontal[p])
2249
- for (var y = 0; y < x.length; y++)
2250
- this.dummyToNodeForVerticalAlignment.has(x[y]) ? this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H) {
2251
- n.idToNodeMap.get(H).displacementX = 0;
2252
- }) : this.idToNodeMap.get(x[y]).displacementX = 0;
2253
- else {
2254
- for (var q = 0, V = 0, y = 0; y < x.length; y++)
2255
- if (this.dummyToNodeForVerticalAlignment.has(x[y])) {
2256
- var Y = this.dummyToNodeForVerticalAlignment.get(x[y]);
2257
- q += Y.length * this.idToNodeMap.get(Y[0]).displacementX, V += Y.length;
2258
- } else
2259
- q += this.idToNodeMap.get(x[y]).displacementX, V++;
2260
- for (var et = q / V, y = 0; y < x.length; y++)
2261
- this.dummyToNodeForVerticalAlignment.has(x[y]) ? this.dummyToNodeForVerticalAlignment.get(x[y]).forEach(function(H) {
2262
- n.idToNodeMap.get(H).displacementX = et;
2263
- }) : this.idToNodeMap.get(x[y]).displacementX = et;
2264
- }
2265
- }
2266
- for (var p = 0; p < this.componentsOnVertical.length; p++) {
2267
- var x = this.componentsOnVertical[p];
2268
- if (this.fixedComponentsOnVertical[p])
2269
- for (var y = 0; y < x.length; y++)
2270
- this.dummyToNodeForHorizontalAlignment.has(x[y]) ? this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(B) {
2271
- n.idToNodeMap.get(B).displacementY = 0;
2272
- }) : this.idToNodeMap.get(x[y]).displacementY = 0;
2273
- else {
2274
- for (var q = 0, V = 0, y = 0; y < x.length; y++)
2275
- if (this.dummyToNodeForHorizontalAlignment.has(x[y])) {
2276
- var Y = this.dummyToNodeForHorizontalAlignment.get(x[y]);
2277
- q += Y.length * this.idToNodeMap.get(Y[0]).displacementY, V += Y.length;
2278
- } else
2279
- q += this.idToNodeMap.get(x[y]).displacementY, V++;
2280
- for (var et = q / V, y = 0; y < x.length; y++)
2281
- this.dummyToNodeForHorizontalAlignment.has(x[y]) ? this.dummyToNodeForHorizontalAlignment.get(x[y]).forEach(function(J) {
2282
- n.idToNodeMap.get(J).displacementY = et;
2283
- }) : this.idToNodeMap.get(x[y]).displacementY = et;
2284
- }
2285
- }
2286
- }
2287
- }, D.prototype.calculateNodesToApplyGravitationTo = function() {
2288
- var n = [], m, p = this.graphManager.getGraphs(), E = p.length, y;
2289
- for (y = 0; y < E; y++)
2290
- m = p[y], m.updateConnected(), m.isConnected || (n = n.concat(m.getNodes()));
2291
- return n;
2292
- }, D.prototype.createBendpoints = function() {
2293
- var n = [];
2294
- n = n.concat(this.graphManager.getAllEdges());
2295
- var m = /* @__PURE__ */ new Set(), p;
2296
- for (p = 0; p < n.length; p++) {
2297
- var E = n[p];
2298
- if (!m.has(E)) {
2299
- var y = E.getSource(), I = E.getTarget();
2300
- if (y == I)
2301
- E.getBendpoints().push(new d()), E.getBendpoints().push(new d()), this.createDummyNodesForBendpoints(E), m.add(E);
2302
- else {
2303
- var w = [];
2304
- if (w = w.concat(y.getEdgeListToNode(I)), w = w.concat(I.getEdgeListToNode(y)), !m.has(w[0])) {
2305
- if (w.length > 1) {
2306
- var R;
2307
- for (R = 0; R < w.length; R++) {
2308
- var W = w[R];
2309
- W.getBendpoints().push(new d()), this.createDummyNodesForBendpoints(W);
2310
- }
2311
- }
2312
- w.forEach(function(x) {
2313
- m.add(x);
2314
- });
2315
- }
2316
- }
2317
- }
2318
- if (m.size == n.length)
2319
- break;
2320
- }
2321
- }, D.prototype.positionNodesRadially = function(n) {
2322
- for (var m = new v(0, 0), p = Math.ceil(Math.sqrt(n.length)), E = 0, y = 0, I = 0, w = new d(0, 0), R = 0; R < n.length; R++) {
2323
- R % p == 0 && (I = 0, y = E, R != 0 && (y += o.DEFAULT_COMPONENT_SEPERATION), E = 0);
2324
- var W = n[R], x = S.findCenterOfTree(W);
2325
- m.x = I, m.y = y, w = D.radialLayout(W, x, m), w.y > E && (E = Math.floor(w.y)), I = Math.floor(w.x + o.DEFAULT_COMPONENT_SEPERATION);
2326
- }
2327
- this.transform(new d(T.WORLD_CENTER_X - w.x / 2, T.WORLD_CENTER_Y - w.y / 2));
2328
- }, D.radialLayout = function(n, m, p) {
2329
- var E = Math.max(this.maxDiagonalInTree(n), o.DEFAULT_RADIAL_SEPARATION);
2330
- D.branchRadialLayout(m, null, 0, 359, 0, E);
2331
- var y = K.calculateBounds(n), I = new X();
2332
- I.setDeviceOrgX(y.getMinX()), I.setDeviceOrgY(y.getMinY()), I.setWorldOrgX(p.x), I.setWorldOrgY(p.y);
2333
- for (var w = 0; w < n.length; w++) {
2334
- var R = n[w];
2335
- R.transform(I);
2336
- }
2337
- var W = new d(y.getMaxX(), y.getMaxY());
2338
- return I.inverseTransformPoint(W);
2339
- }, D.branchRadialLayout = function(n, m, p, E, y, I) {
2340
- var w = (E - p + 1) / 2;
2341
- w < 0 && (w += 180);
2342
- var R = (w + p) % 360, W = R * P.TWO_PI / 360, x = y * Math.cos(W), q = y * Math.sin(W);
2343
- n.setCenter(x, q);
2344
- var V = [];
2345
- V = V.concat(n.getEdges());
2346
- var Y = V.length;
2347
- m != null && Y--;
2348
- for (var et = 0, z = V.length, O, H = n.getEdgesBetween(m); H.length > 1; ) {
2349
- var B = H[0];
2350
- H.splice(0, 1);
2351
- var _ = V.indexOf(B);
2352
- _ >= 0 && V.splice(_, 1), z--, Y--;
2353
- }
2354
- m != null ? O = (V.indexOf(H[0]) + 1) % z : O = 0;
2355
- for (var lt = Math.abs(E - p) / Y, J = O; et != Y; J = ++J % z) {
2356
- var Rt = V[J].getOtherEnd(n);
2357
- if (Rt != m) {
2358
- var Lt = (p + et * lt) % 360, vt = (Lt + lt) % 360;
2359
- D.branchRadialLayout(Rt, n, Lt, vt, y + I, I), et++;
2360
- }
2361
- }
2362
- }, D.maxDiagonalInTree = function(n) {
2363
- for (var m = M.MIN_VALUE, p = 0; p < n.length; p++) {
2364
- var E = n[p], y = E.getDiagonal();
2365
- y > m && (m = y);
2366
- }
2367
- return m;
2368
- }, D.prototype.calcRepulsionRange = function() {
2369
- return 2 * (this.level + 1) * this.idealEdgeLength;
2370
- }, D.prototype.groupZeroDegreeMembers = function() {
2371
- var n = this, m = {};
2372
- this.memberGroups = {}, this.idToDummyNode = {};
2373
- for (var p = [], E = this.graphManager.getAllNodes(), y = 0; y < E.length; y++) {
2374
- var I = E[y], w = I.getParent();
2375
- this.getNodeDegreeWithChildren(I) === 0 && (w.id == null || !this.getToBeTiled(w)) && p.push(I);
2376
- }
2377
- for (var y = 0; y < p.length; y++) {
2378
- var I = p[y], R = I.getParent().id;
2379
- typeof m[R] > "u" && (m[R] = []), m[R] = m[R].concat(I);
2380
- }
2381
- Object.keys(m).forEach(function(W) {
2382
- if (m[W].length > 1) {
2383
- var x = "DummyCompound_" + W;
2384
- n.memberGroups[x] = m[W];
2385
- var q = m[W][0].getParent(), V = new t(n.graphManager);
2386
- V.id = x, V.paddingLeft = q.paddingLeft || 0, V.paddingRight = q.paddingRight || 0, V.paddingBottom = q.paddingBottom || 0, V.paddingTop = q.paddingTop || 0, n.idToDummyNode[x] = V;
2387
- var Y = n.getGraphManager().add(n.newGraph(), V), et = q.getChild();
2388
- et.add(V);
2389
- for (var z = 0; z < m[W].length; z++) {
2390
- var O = m[W][z];
2391
- et.remove(O), Y.add(O);
2392
- }
2393
- }
2394
- });
2395
- }, D.prototype.clearCompounds = function() {
2396
- var n = {}, m = {};
2397
- this.performDFSOnCompounds();
2398
- for (var p = 0; p < this.compoundOrder.length; p++)
2399
- m[this.compoundOrder[p].id] = this.compoundOrder[p], n[this.compoundOrder[p].id] = [].concat(this.compoundOrder[p].getChild().getNodes()), this.graphManager.remove(this.compoundOrder[p].getChild()), this.compoundOrder[p].child = null;
2400
- this.graphManager.resetAllNodes(), this.tileCompoundMembers(n, m);
2401
- }, D.prototype.clearZeroDegreeMembers = function() {
2402
- var n = this, m = this.tiledZeroDegreePack = [];
2403
- Object.keys(this.memberGroups).forEach(function(p) {
2404
- var E = n.idToDummyNode[p];
2405
- if (m[p] = n.tileNodes(n.memberGroups[p], E.paddingLeft + E.paddingRight), E.rect.width = m[p].width, E.rect.height = m[p].height, E.setCenter(m[p].centerX, m[p].centerY), E.labelMarginLeft = 0, E.labelMarginTop = 0, o.NODE_DIMENSIONS_INCLUDE_LABELS) {
2406
- var y = E.rect.width, I = E.rect.height;
2407
- E.labelWidth && (E.labelPosHorizontal == "left" ? (E.rect.x -= E.labelWidth, E.setWidth(y + E.labelWidth), E.labelMarginLeft = E.labelWidth) : E.labelPosHorizontal == "center" && E.labelWidth > y ? (E.rect.x -= (E.labelWidth - y) / 2, E.setWidth(E.labelWidth), E.labelMarginLeft = (E.labelWidth - y) / 2) : E.labelPosHorizontal == "right" && E.setWidth(y + E.labelWidth)), E.labelHeight && (E.labelPosVertical == "top" ? (E.rect.y -= E.labelHeight, E.setHeight(I + E.labelHeight), E.labelMarginTop = E.labelHeight) : E.labelPosVertical == "center" && E.labelHeight > I ? (E.rect.y -= (E.labelHeight - I) / 2, E.setHeight(E.labelHeight), E.labelMarginTop = (E.labelHeight - I) / 2) : E.labelPosVertical == "bottom" && E.setHeight(I + E.labelHeight));
2408
- }
2409
- });
2410
- }, D.prototype.repopulateCompounds = function() {
2411
- for (var n = this.compoundOrder.length - 1; n >= 0; n--) {
2412
- var m = this.compoundOrder[n], p = m.id, E = m.paddingLeft, y = m.paddingTop, I = m.labelMarginLeft, w = m.labelMarginTop;
2413
- this.adjustLocations(this.tiledMemberPack[p], m.rect.x, m.rect.y, E, y, I, w);
2414
- }
2415
- }, D.prototype.repopulateZeroDegreeMembers = function() {
2416
- var n = this, m = this.tiledZeroDegreePack;
2417
- Object.keys(m).forEach(function(p) {
2418
- var E = n.idToDummyNode[p], y = E.paddingLeft, I = E.paddingTop, w = E.labelMarginLeft, R = E.labelMarginTop;
2419
- n.adjustLocations(m[p], E.rect.x, E.rect.y, y, I, w, R);
2420
- });
2421
- }, D.prototype.getToBeTiled = function(n) {
2422
- var m = n.id;
2423
- if (this.toBeTiled[m] != null)
2424
- return this.toBeTiled[m];
2425
- var p = n.getChild();
2426
- if (p == null)
2427
- return this.toBeTiled[m] = !1, !1;
2428
- for (var E = p.getNodes(), y = 0; y < E.length; y++) {
2429
- var I = E[y];
2430
- if (this.getNodeDegree(I) > 0)
2431
- return this.toBeTiled[m] = !1, !1;
2432
- if (I.getChild() == null) {
2433
- this.toBeTiled[I.id] = !1;
2434
- continue;
2435
- }
2436
- if (!this.getToBeTiled(I))
2437
- return this.toBeTiled[m] = !1, !1;
2438
- }
2439
- return this.toBeTiled[m] = !0, !0;
2440
- }, D.prototype.getNodeDegree = function(n) {
2441
- n.id;
2442
- for (var m = n.getEdges(), p = 0, E = 0; E < m.length; E++) {
2443
- var y = m[E];
2444
- y.getSource().id !== y.getTarget().id && (p = p + 1);
2445
- }
2446
- return p;
2447
- }, D.prototype.getNodeDegreeWithChildren = function(n) {
2448
- var m = this.getNodeDegree(n);
2449
- if (n.getChild() == null)
2450
- return m;
2451
- for (var p = n.getChild().getNodes(), E = 0; E < p.length; E++) {
2452
- var y = p[E];
2453
- m += this.getNodeDegreeWithChildren(y);
2454
- }
2455
- return m;
2456
- }, D.prototype.performDFSOnCompounds = function() {
2457
- this.compoundOrder = [], this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes());
2458
- }, D.prototype.fillCompexOrderByDFS = function(n) {
2459
- for (var m = 0; m < n.length; m++) {
2460
- var p = n[m];
2461
- p.getChild() != null && this.fillCompexOrderByDFS(p.getChild().getNodes()), this.getToBeTiled(p) && this.compoundOrder.push(p);
2462
- }
2463
- }, D.prototype.adjustLocations = function(n, m, p, E, y, I, w) {
2464
- m += E + I, p += y + w;
2465
- for (var R = m, W = 0; W < n.rows.length; W++) {
2466
- var x = n.rows[W];
2467
- m = R;
2468
- for (var q = 0, V = 0; V < x.length; V++) {
2469
- var Y = x[V];
2470
- Y.rect.x = m, Y.rect.y = p, m += Y.rect.width + n.horizontalPadding, Y.rect.height > q && (q = Y.rect.height);
2471
- }
2472
- p += q + n.verticalPadding;
2473
- }
2474
- }, D.prototype.tileCompoundMembers = function(n, m) {
2475
- var p = this;
2476
- this.tiledMemberPack = [], Object.keys(n).forEach(function(E) {
2477
- var y = m[E];
2478
- if (p.tiledMemberPack[E] = p.tileNodes(n[E], y.paddingLeft + y.paddingRight), y.rect.width = p.tiledMemberPack[E].width, y.rect.height = p.tiledMemberPack[E].height, y.setCenter(p.tiledMemberPack[E].centerX, p.tiledMemberPack[E].centerY), y.labelMarginLeft = 0, y.labelMarginTop = 0, o.NODE_DIMENSIONS_INCLUDE_LABELS) {
2479
- var I = y.rect.width, w = y.rect.height;
2480
- y.labelWidth && (y.labelPosHorizontal == "left" ? (y.rect.x -= y.labelWidth, y.setWidth(I + y.labelWidth), y.labelMarginLeft = y.labelWidth) : y.labelPosHorizontal == "center" && y.labelWidth > I ? (y.rect.x -= (y.labelWidth - I) / 2, y.setWidth(y.labelWidth), y.labelMarginLeft = (y.labelWidth - I) / 2) : y.labelPosHorizontal == "right" && y.setWidth(I + y.labelWidth)), y.labelHeight && (y.labelPosVertical == "top" ? (y.rect.y -= y.labelHeight, y.setHeight(w + y.labelHeight), y.labelMarginTop = y.labelHeight) : y.labelPosVertical == "center" && y.labelHeight > w ? (y.rect.y -= (y.labelHeight - w) / 2, y.setHeight(y.labelHeight), y.labelMarginTop = (y.labelHeight - w) / 2) : y.labelPosVertical == "bottom" && y.setHeight(w + y.labelHeight));
2481
- }
2482
- });
2483
- }, D.prototype.tileNodes = function(n, m) {
2484
- var p = this.tileNodesByFavoringDim(n, m, !0), E = this.tileNodesByFavoringDim(n, m, !1), y = this.getOrgRatio(p), I = this.getOrgRatio(E), w;
2485
- return I < y ? w = E : w = p, w;
2486
- }, D.prototype.getOrgRatio = function(n) {
2487
- var m = n.width, p = n.height, E = m / p;
2488
- return E < 1 && (E = 1 / E), E;
2489
- }, D.prototype.calcIdealRowWidth = function(n, m) {
2490
- var p = o.TILING_PADDING_VERTICAL, E = o.TILING_PADDING_HORIZONTAL, y = n.length, I = 0, w = 0, R = 0;
2491
- n.forEach(function(z) {
2492
- I += z.getWidth(), w += z.getHeight(), z.getWidth() > R && (R = z.getWidth());
2493
- });
2494
- var W = I / y, x = w / y, q = Math.pow(p - E, 2) + 4 * (W + E) * (x + p) * y, V = (E - p + Math.sqrt(q)) / (2 * (W + E)), Y;
2495
- m ? (Y = Math.ceil(V), Y == V && Y++) : Y = Math.floor(V);
2496
- var et = Y * (W + E) - E;
2497
- return R > et && (et = R), et += E * 2, et;
2498
- }, D.prototype.tileNodesByFavoringDim = function(n, m, p) {
2499
- var E = o.TILING_PADDING_VERTICAL, y = o.TILING_PADDING_HORIZONTAL, I = o.TILING_COMPARE_BY, w = {
2500
- rows: [],
2501
- rowWidth: [],
2502
- rowHeight: [],
2503
- width: 0,
2504
- height: m,
2505
- // assume minHeight equals to minWidth
2506
- verticalPadding: E,
2507
- horizontalPadding: y,
2508
- centerX: 0,
2509
- centerY: 0
2510
- };
2511
- I && (w.idealRowWidth = this.calcIdealRowWidth(n, p));
2512
- var R = function(O) {
2513
- return O.rect.width * O.rect.height;
2514
- }, W = function(O, H) {
2515
- return R(H) - R(O);
2516
- };
2517
- n.sort(function(z, O) {
2518
- var H = W;
2519
- return w.idealRowWidth ? (H = I, H(z.id, O.id)) : H(z, O);
2520
- });
2521
- for (var x = 0, q = 0, V = 0; V < n.length; V++) {
2522
- var Y = n[V];
2523
- x += Y.getCenterX(), q += Y.getCenterY();
2524
- }
2525
- w.centerX = x / n.length, w.centerY = q / n.length;
2526
- for (var V = 0; V < n.length; V++) {
2527
- var Y = n[V];
2528
- if (w.rows.length == 0)
2529
- this.insertNodeToRow(w, Y, 0, m);
2530
- else if (this.canAddHorizontal(w, Y.rect.width, Y.rect.height)) {
2531
- var et = w.rows.length - 1;
2532
- w.idealRowWidth || (et = this.getShortestRowIndex(w)), this.insertNodeToRow(w, Y, et, m);
2533
- } else
2534
- this.insertNodeToRow(w, Y, w.rows.length, m);
2535
- this.shiftToLastRow(w);
2536
- }
2537
- return w;
2538
- }, D.prototype.insertNodeToRow = function(n, m, p, E) {
2539
- var y = E;
2540
- if (p == n.rows.length) {
2541
- var I = [];
2542
- n.rows.push(I), n.rowWidth.push(y), n.rowHeight.push(0);
2543
- }
2544
- var w = n.rowWidth[p] + m.rect.width;
2545
- n.rows[p].length > 0 && (w += n.horizontalPadding), n.rowWidth[p] = w, n.width < w && (n.width = w);
2546
- var R = m.rect.height;
2547
- p > 0 && (R += n.verticalPadding);
2548
- var W = 0;
2549
- R > n.rowHeight[p] && (W = n.rowHeight[p], n.rowHeight[p] = R, W = n.rowHeight[p] - W), n.height += W, n.rows[p].push(m);
2550
- }, D.prototype.getShortestRowIndex = function(n) {
2551
- for (var m = -1, p = Number.MAX_VALUE, E = 0; E < n.rows.length; E++)
2552
- n.rowWidth[E] < p && (m = E, p = n.rowWidth[E]);
2553
- return m;
2554
- }, D.prototype.getLongestRowIndex = function(n) {
2555
- for (var m = -1, p = Number.MIN_VALUE, E = 0; E < n.rows.length; E++)
2556
- n.rowWidth[E] > p && (m = E, p = n.rowWidth[E]);
2557
- return m;
2558
- }, D.prototype.canAddHorizontal = function(n, m, p) {
2559
- if (n.idealRowWidth) {
2560
- var E = n.rows.length - 1, y = n.rowWidth[E];
2561
- return y + m + n.horizontalPadding <= n.idealRowWidth;
2562
- }
2563
- var I = this.getShortestRowIndex(n);
2564
- if (I < 0)
2565
- return !0;
2566
- var w = n.rowWidth[I];
2567
- if (w + n.horizontalPadding + m <= n.width) return !0;
2568
- var R = 0;
2569
- n.rowHeight[I] < p && I > 0 && (R = p + n.verticalPadding - n.rowHeight[I]);
2570
- var W;
2571
- n.width - w >= m + n.horizontalPadding ? W = (n.height + R) / (w + m + n.horizontalPadding) : W = (n.height + R) / n.width, R = p + n.verticalPadding;
2572
- var x;
2573
- return n.width < m ? x = (n.height + R) / m : x = (n.height + R) / n.width, x < 1 && (x = 1 / x), W < 1 && (W = 1 / W), W < x;
2574
- }, D.prototype.shiftToLastRow = function(n) {
2575
- var m = this.getLongestRowIndex(n), p = n.rowWidth.length - 1, E = n.rows[m], y = E[E.length - 1], I = y.width + n.horizontalPadding;
2576
- if (n.width - n.rowWidth[p] > I && m != p) {
2577
- E.splice(-1, 1), n.rows[p].push(y), n.rowWidth[m] = n.rowWidth[m] - I, n.rowWidth[p] = n.rowWidth[p] + I, n.width = n.rowWidth[instance.getLongestRowIndex(n)];
2578
- for (var w = Number.MIN_VALUE, R = 0; R < E.length; R++)
2579
- E[R].height > w && (w = E[R].height);
2580
- m > 0 && (w += n.verticalPadding);
2581
- var W = n.rowHeight[m] + n.rowHeight[p];
2582
- n.rowHeight[m] = w, n.rowHeight[p] < y.height + n.verticalPadding && (n.rowHeight[p] = y.height + n.verticalPadding);
2583
- var x = n.rowHeight[m] + n.rowHeight[p];
2584
- n.height += x - W, this.shiftToLastRow(n);
2585
- }
2586
- }, D.prototype.tilingPreLayout = function() {
2587
- o.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers());
2588
- }, D.prototype.tilingPostLayout = function() {
2589
- o.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds());
2590
- }, D.prototype.reduceTrees = function() {
2591
- for (var n = [], m = !0, p; m; ) {
2592
- var E = this.graphManager.getAllNodes(), y = [];
2593
- m = !1;
2594
- for (var I = 0; I < E.length; I++)
2595
- if (p = E[I], p.getEdges().length == 1 && !p.getEdges()[0].isInterGraph && p.getChild() == null) {
2596
- if (o.PURE_INCREMENTAL) {
2597
- var w = p.getEdges()[0].getOtherEnd(p), R = new N(p.getCenterX() - w.getCenterX(), p.getCenterY() - w.getCenterY());
2598
- y.push([p, p.getEdges()[0], p.getOwner(), R]);
2599
- } else
2600
- y.push([p, p.getEdges()[0], p.getOwner()]);
2601
- m = !0;
2602
- }
2603
- if (m == !0) {
2604
- for (var W = [], x = 0; x < y.length; x++)
2605
- y[x][0].getEdges().length == 1 && (W.push(y[x]), y[x][0].getOwner().remove(y[x][0]));
2606
- n.push(W), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2607
- }
2608
- }
2609
- this.prunedNodesAll = n;
2610
- }, D.prototype.growTree = function(n) {
2611
- for (var m = n.length, p = n[m - 1], E, y = 0; y < p.length; y++)
2612
- E = p[y], this.findPlaceforPrunedNode(E), E[2].add(E[0]), E[2].add(E[1], E[1].source, E[1].target);
2613
- n.splice(n.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2614
- }, D.prototype.findPlaceforPrunedNode = function(n) {
2615
- var m, p, E = n[0];
2616
- if (E == n[1].source ? p = n[1].target : p = n[1].source, o.PURE_INCREMENTAL)
2617
- E.setCenter(p.getCenterX() + n[3].getWidth(), p.getCenterY() + n[3].getHeight());
2618
- else {
2619
- var y = p.startX, I = p.finishX, w = p.startY, R = p.finishY, W = 0, x = 0, q = 0, V = 0, Y = [W, q, x, V];
2620
- if (w > 0)
2621
- for (var et = y; et <= I; et++)
2622
- Y[0] += this.grid[et][w - 1].length + this.grid[et][w].length - 1;
2623
- if (I < this.grid.length - 1)
2624
- for (var et = w; et <= R; et++)
2625
- Y[1] += this.grid[I + 1][et].length + this.grid[I][et].length - 1;
2626
- if (R < this.grid[0].length - 1)
2627
- for (var et = y; et <= I; et++)
2628
- Y[2] += this.grid[et][R + 1].length + this.grid[et][R].length - 1;
2629
- if (y > 0)
2630
- for (var et = w; et <= R; et++)
2631
- Y[3] += this.grid[y - 1][et].length + this.grid[y][et].length - 1;
2632
- for (var z = M.MAX_VALUE, O, H, B = 0; B < Y.length; B++)
2633
- Y[B] < z ? (z = Y[B], O = 1, H = B) : Y[B] == z && O++;
2634
- if (O == 3 && z == 0)
2635
- Y[0] == 0 && Y[1] == 0 && Y[2] == 0 ? m = 1 : Y[0] == 0 && Y[1] == 0 && Y[3] == 0 ? m = 0 : Y[0] == 0 && Y[2] == 0 && Y[3] == 0 ? m = 3 : Y[1] == 0 && Y[2] == 0 && Y[3] == 0 && (m = 2);
2636
- else if (O == 2 && z == 0) {
2637
- var _ = Math.floor(Math.random() * 2);
2638
- Y[0] == 0 && Y[1] == 0 ? _ == 0 ? m = 0 : m = 1 : Y[0] == 0 && Y[2] == 0 ? _ == 0 ? m = 0 : m = 2 : Y[0] == 0 && Y[3] == 0 ? _ == 0 ? m = 0 : m = 3 : Y[1] == 0 && Y[2] == 0 ? _ == 0 ? m = 1 : m = 2 : Y[1] == 0 && Y[3] == 0 ? _ == 0 ? m = 1 : m = 3 : _ == 0 ? m = 2 : m = 3;
2639
- } else if (O == 4 && z == 0) {
2640
- var _ = Math.floor(Math.random() * 4);
2641
- m = _;
2642
- } else
2643
- m = H;
2644
- m == 0 ? E.setCenter(p.getCenterX(), p.getCenterY() - p.getHeight() / 2 - h.DEFAULT_EDGE_LENGTH - E.getHeight() / 2) : m == 1 ? E.setCenter(p.getCenterX() + p.getWidth() / 2 + h.DEFAULT_EDGE_LENGTH + E.getWidth() / 2, p.getCenterY()) : m == 2 ? E.setCenter(p.getCenterX(), p.getCenterY() + p.getHeight() / 2 + h.DEFAULT_EDGE_LENGTH + E.getHeight() / 2) : E.setCenter(p.getCenterX() - p.getWidth() / 2 - h.DEFAULT_EDGE_LENGTH - E.getWidth() / 2, p.getCenterY());
2645
- }
2646
- }, a.exports = D;
2647
- }
2648
- ),
2649
- /***/
2650
- 991: (
2651
- /***/
2652
- (a, r, e) => {
2653
- var f = e(551).FDLayoutNode, i = e(551).IMath;
2654
- function g(s, o, c, h) {
2655
- f.call(this, s, o, c, h);
2656
- }
2657
- g.prototype = Object.create(f.prototype);
2658
- for (var t in f)
2659
- g[t] = f[t];
2660
- g.prototype.calculateDisplacement = function() {
2661
- var s = this.graphManager.getLayout();
2662
- this.getChild() != null && this.fixedNodeWeight ? (this.displacementX += s.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.fixedNodeWeight, this.displacementY += s.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.fixedNodeWeight) : (this.displacementX += s.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY += s.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren), Math.abs(this.displacementX) > s.coolingFactor * s.maxNodeDisplacement && (this.displacementX = s.coolingFactor * s.maxNodeDisplacement * i.sign(this.displacementX)), Math.abs(this.displacementY) > s.coolingFactor * s.maxNodeDisplacement && (this.displacementY = s.coolingFactor * s.maxNodeDisplacement * i.sign(this.displacementY)), this.child && this.child.getNodes().length > 0 && this.propogateDisplacementToChildren(this.displacementX, this.displacementY);
2663
- }, g.prototype.propogateDisplacementToChildren = function(s, o) {
2664
- for (var c = this.getChild().getNodes(), h, T = 0; T < c.length; T++)
2665
- h = c[T], h.getChild() == null ? (h.displacementX += s, h.displacementY += o) : h.propogateDisplacementToChildren(s, o);
2666
- }, g.prototype.move = function() {
2667
- var s = this.graphManager.getLayout();
2668
- (this.child == null || this.child.getNodes().length == 0) && (this.moveBy(this.displacementX, this.displacementY), s.totalDisplacement += Math.abs(this.displacementX) + Math.abs(this.displacementY)), this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0;
2669
- }, g.prototype.setPred1 = function(s) {
2670
- this.pred1 = s;
2671
- }, g.prototype.getPred1 = function() {
2672
- return pred1;
2673
- }, g.prototype.getPred2 = function() {
2674
- return pred2;
2675
- }, g.prototype.setNext = function(s) {
2676
- this.next = s;
2677
- }, g.prototype.getNext = function() {
2678
- return next;
2679
- }, g.prototype.setProcessed = function(s) {
2680
- this.processed = s;
2681
- }, g.prototype.isProcessed = function() {
2682
- return processed;
2683
- }, a.exports = g;
2684
- }
2685
- ),
2686
- /***/
2687
- 902: (
2688
- /***/
2689
- (a, r, e) => {
2690
- function f(c) {
2691
- if (Array.isArray(c)) {
2692
- for (var h = 0, T = Array(c.length); h < c.length; h++)
2693
- T[h] = c[h];
2694
- return T;
2695
- } else
2696
- return Array.from(c);
2697
- }
2698
- var i = e(806), g = e(551).LinkedList, t = e(551).Matrix, s = e(551).SVD;
2699
- function o() {
2700
- }
2701
- o.handleConstraints = function(c) {
2702
- var h = {};
2703
- h.fixedNodeConstraint = c.constraints.fixedNodeConstraint, h.alignmentConstraint = c.constraints.alignmentConstraint, h.relativePlacementConstraint = c.constraints.relativePlacementConstraint;
2704
- for (var T = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), d = [], N = [], S = c.getAllNodes(), M = 0, P = 0; P < S.length; P++) {
2705
- var K = S[P];
2706
- K.getChild() == null && (v.set(K.id, M++), d.push(K.getCenterX()), N.push(K.getCenterY()), T.set(K.id, K));
2707
- }
2708
- h.relativePlacementConstraint && h.relativePlacementConstraint.forEach(function(F) {
2709
- !F.gap && F.gap != 0 && (F.left ? F.gap = i.DEFAULT_EDGE_LENGTH + T.get(F.left).getWidth() / 2 + T.get(F.right).getWidth() / 2 : F.gap = i.DEFAULT_EDGE_LENGTH + T.get(F.top).getHeight() / 2 + T.get(F.bottom).getHeight() / 2);
2710
- });
2711
- var X = function(b, $) {
2712
- return { x: b.x - $.x, y: b.y - $.y };
2713
- }, k = function(b) {
2714
- var $ = 0, Q = 0;
2715
- return b.forEach(function(Z) {
2716
- $ += d[v.get(Z)], Q += N[v.get(Z)];
2717
- }), { x: $ / b.size, y: Q / b.size };
2718
- }, D = function(b, $, Q, Z, at) {
2719
- function ut(ft, st) {
2720
- var Ct = new Set(ft), ct = !0, ht = !1, Wt = void 0;
2721
- try {
2722
- for (var Nt = st[Symbol.iterator](), Mt; !(ct = (Mt = Nt.next()).done); ct = !0) {
2723
- var Zt = Mt.value;
2724
- Ct.add(Zt);
2725
- }
2726
- } catch (Gt) {
2727
- ht = !0, Wt = Gt;
2728
- } finally {
2729
- try {
2730
- !ct && Nt.return && Nt.return();
2731
- } finally {
2732
- if (ht)
2733
- throw Wt;
2734
- }
2735
- }
2736
- return Ct;
2737
- }
2738
- var ot = /* @__PURE__ */ new Map();
2739
- b.forEach(function(ft, st) {
2740
- ot.set(st, 0);
2741
- }), b.forEach(function(ft, st) {
2742
- ft.forEach(function(Ct) {
2743
- ot.set(Ct.id, ot.get(Ct.id) + 1);
2744
- });
2745
- });
2746
- var tt = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), dt = new g();
2747
- ot.forEach(function(ft, st) {
2748
- ft == 0 ? (dt.push(st), Q || ($ == "horizontal" ? tt.set(st, v.has(st) ? d[v.get(st)] : Z.get(st)) : tt.set(st, v.has(st) ? N[v.get(st)] : Z.get(st)))) : tt.set(st, Number.NEGATIVE_INFINITY), Q && j.set(st, /* @__PURE__ */ new Set([st]));
2749
- }), Q && at.forEach(function(ft) {
2750
- var st = [];
2751
- if (ft.forEach(function(ht) {
2752
- Q.has(ht) && st.push(ht);
2753
- }), st.length > 0) {
2754
- var Ct = 0;
2755
- st.forEach(function(ht) {
2756
- $ == "horizontal" ? (tt.set(ht, v.has(ht) ? d[v.get(ht)] : Z.get(ht)), Ct += tt.get(ht)) : (tt.set(ht, v.has(ht) ? N[v.get(ht)] : Z.get(ht)), Ct += tt.get(ht));
2757
- }), Ct = Ct / st.length, ft.forEach(function(ht) {
2758
- Q.has(ht) || tt.set(ht, Ct);
2759
- });
2760
- } else {
2761
- var ct = 0;
2762
- ft.forEach(function(ht) {
2763
- $ == "horizontal" ? ct += v.has(ht) ? d[v.get(ht)] : Z.get(ht) : ct += v.has(ht) ? N[v.get(ht)] : Z.get(ht);
2764
- }), ct = ct / ft.length, ft.forEach(function(ht) {
2765
- tt.set(ht, ct);
2766
- });
2767
- }
2768
- });
2769
- for (var wt = function() {
2770
- var st = dt.shift(), Ct = b.get(st);
2771
- Ct.forEach(function(ct) {
2772
- if (tt.get(ct.id) < tt.get(st) + ct.gap)
2773
- if (Q && Q.has(ct.id)) {
2774
- var ht = void 0;
2775
- if ($ == "horizontal" ? ht = v.has(ct.id) ? d[v.get(ct.id)] : Z.get(ct.id) : ht = v.has(ct.id) ? N[v.get(ct.id)] : Z.get(ct.id), tt.set(ct.id, ht), ht < tt.get(st) + ct.gap) {
2776
- var Wt = tt.get(st) + ct.gap - ht;
2777
- j.get(st).forEach(function(Nt) {
2778
- tt.set(Nt, tt.get(Nt) - Wt);
2779
- });
2780
- }
2781
- } else
2782
- tt.set(ct.id, tt.get(st) + ct.gap);
2783
- ot.set(ct.id, ot.get(ct.id) - 1), ot.get(ct.id) == 0 && dt.push(ct.id), Q && j.set(ct.id, ut(j.get(st), j.get(ct.id)));
2784
- });
2785
- }; dt.length != 0; )
2786
- wt();
2787
- if (Q) {
2788
- var yt = /* @__PURE__ */ new Set();
2789
- b.forEach(function(ft, st) {
2790
- ft.length == 0 && yt.add(st);
2791
- });
2792
- var It = [];
2793
- j.forEach(function(ft, st) {
2794
- if (yt.has(st)) {
2795
- var Ct = !1, ct = !0, ht = !1, Wt = void 0;
2796
- try {
2797
- for (var Nt = ft[Symbol.iterator](), Mt; !(ct = (Mt = Nt.next()).done); ct = !0) {
2798
- var Zt = Mt.value;
2799
- Q.has(Zt) && (Ct = !0);
2800
- }
2801
- } catch (Ft) {
2802
- ht = !0, Wt = Ft;
2803
- } finally {
2804
- try {
2805
- !ct && Nt.return && Nt.return();
2806
- } finally {
2807
- if (ht)
2808
- throw Wt;
2809
- }
2810
- }
2811
- if (!Ct) {
2812
- var Gt = !1, $t = void 0;
2813
- It.forEach(function(Ft, qt) {
2814
- Ft.has([].concat(f(ft))[0]) && (Gt = !0, $t = qt);
2815
- }), Gt ? ft.forEach(function(Ft) {
2816
- It[$t].add(Ft);
2817
- }) : It.push(new Set(ft));
2818
- }
2819
- }
2820
- }), It.forEach(function(ft, st) {
2821
- var Ct = Number.POSITIVE_INFINITY, ct = Number.POSITIVE_INFINITY, ht = Number.NEGATIVE_INFINITY, Wt = Number.NEGATIVE_INFINITY, Nt = !0, Mt = !1, Zt = void 0;
2822
- try {
2823
- for (var Gt = ft[Symbol.iterator](), $t; !(Nt = ($t = Gt.next()).done); Nt = !0) {
2824
- var Ft = $t.value, qt = void 0;
2825
- $ == "horizontal" ? qt = v.has(Ft) ? d[v.get(Ft)] : Z.get(Ft) : qt = v.has(Ft) ? N[v.get(Ft)] : Z.get(Ft);
2826
- var _t = tt.get(Ft);
2827
- qt < Ct && (Ct = qt), qt > ht && (ht = qt), _t < ct && (ct = _t), _t > Wt && (Wt = _t);
2828
- }
2829
- } catch (ie) {
2830
- Mt = !0, Zt = ie;
2831
- } finally {
2832
- try {
2833
- !Nt && Gt.return && Gt.return();
2834
- } finally {
2835
- if (Mt)
2836
- throw Zt;
2837
- }
2838
- }
2839
- var de = (Ct + ht) / 2 - (ct + Wt) / 2, Kt = !0, te = !1, ee = void 0;
2840
- try {
2841
- for (var jt = ft[Symbol.iterator](), se; !(Kt = (se = jt.next()).done); Kt = !0) {
2842
- var re = se.value;
2843
- tt.set(re, tt.get(re) + de);
2844
- }
2845
- } catch (ie) {
2846
- te = !0, ee = ie;
2847
- } finally {
2848
- try {
2849
- !Kt && jt.return && jt.return();
2850
- } finally {
2851
- if (te)
2852
- throw ee;
2853
- }
2854
- }
2855
- });
2856
- }
2857
- return tt;
2858
- }, rt = function(b) {
2859
- var $ = 0, Q = 0, Z = 0, at = 0;
2860
- if (b.forEach(function(j) {
2861
- j.left ? d[v.get(j.left)] - d[v.get(j.right)] >= 0 ? $++ : Q++ : N[v.get(j.top)] - N[v.get(j.bottom)] >= 0 ? Z++ : at++;
2862
- }), $ > Q && Z > at)
2863
- for (var ut = 0; ut < v.size; ut++)
2864
- d[ut] = -1 * d[ut], N[ut] = -1 * N[ut];
2865
- else if ($ > Q)
2866
- for (var ot = 0; ot < v.size; ot++)
2867
- d[ot] = -1 * d[ot];
2868
- else if (Z > at)
2869
- for (var tt = 0; tt < v.size; tt++)
2870
- N[tt] = -1 * N[tt];
2871
- }, n = function(b) {
2872
- var $ = [], Q = new g(), Z = /* @__PURE__ */ new Set(), at = 0;
2873
- return b.forEach(function(ut, ot) {
2874
- if (!Z.has(ot)) {
2875
- $[at] = [];
2876
- var tt = ot;
2877
- for (Q.push(tt), Z.add(tt), $[at].push(tt); Q.length != 0; ) {
2878
- tt = Q.shift();
2879
- var j = b.get(tt);
2880
- j.forEach(function(dt) {
2881
- Z.has(dt.id) || (Q.push(dt.id), Z.add(dt.id), $[at].push(dt.id));
2882
- });
2883
- }
2884
- at++;
2885
- }
2886
- }), $;
2887
- }, m = function(b) {
2888
- var $ = /* @__PURE__ */ new Map();
2889
- return b.forEach(function(Q, Z) {
2890
- $.set(Z, []);
2891
- }), b.forEach(function(Q, Z) {
2892
- Q.forEach(function(at) {
2893
- $.get(Z).push(at), $.get(at.id).push({ id: Z, gap: at.gap, direction: at.direction });
2894
- });
2895
- }), $;
2896
- }, p = function(b) {
2897
- var $ = /* @__PURE__ */ new Map();
2898
- return b.forEach(function(Q, Z) {
2899
- $.set(Z, []);
2900
- }), b.forEach(function(Q, Z) {
2901
- Q.forEach(function(at) {
2902
- $.get(at.id).push({ id: Z, gap: at.gap, direction: at.direction });
2903
- });
2904
- }), $;
2905
- }, E = [], y = [], I = !1, w = !1, R = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), q = [];
2906
- if (h.fixedNodeConstraint && h.fixedNodeConstraint.forEach(function(F) {
2907
- R.add(F.nodeId);
2908
- }), h.relativePlacementConstraint && (h.relativePlacementConstraint.forEach(function(F) {
2909
- F.left ? (W.has(F.left) ? W.get(F.left).push({ id: F.right, gap: F.gap, direction: "horizontal" }) : W.set(F.left, [{ id: F.right, gap: F.gap, direction: "horizontal" }]), W.has(F.right) || W.set(F.right, [])) : (W.has(F.top) ? W.get(F.top).push({ id: F.bottom, gap: F.gap, direction: "vertical" }) : W.set(F.top, [{ id: F.bottom, gap: F.gap, direction: "vertical" }]), W.has(F.bottom) || W.set(F.bottom, []));
2910
- }), x = m(W), q = n(x)), i.TRANSFORM_ON_CONSTRAINT_HANDLING) {
2911
- if (h.fixedNodeConstraint && h.fixedNodeConstraint.length > 1)
2912
- h.fixedNodeConstraint.forEach(function(F, b) {
2913
- E[b] = [F.position.x, F.position.y], y[b] = [d[v.get(F.nodeId)], N[v.get(F.nodeId)]];
2914
- }), I = !0;
2915
- else if (h.alignmentConstraint)
2916
- (function() {
2917
- var F = 0;
2918
- if (h.alignmentConstraint.vertical) {
2919
- for (var b = h.alignmentConstraint.vertical, $ = function(tt) {
2920
- var j = /* @__PURE__ */ new Set();
2921
- b[tt].forEach(function(yt) {
2922
- j.add(yt);
2923
- });
2924
- var dt = new Set([].concat(f(j)).filter(function(yt) {
2925
- return R.has(yt);
2926
- })), wt = void 0;
2927
- dt.size > 0 ? wt = d[v.get(dt.values().next().value)] : wt = k(j).x, b[tt].forEach(function(yt) {
2928
- E[F] = [wt, N[v.get(yt)]], y[F] = [d[v.get(yt)], N[v.get(yt)]], F++;
2929
- });
2930
- }, Q = 0; Q < b.length; Q++)
2931
- $(Q);
2932
- I = !0;
2933
- }
2934
- if (h.alignmentConstraint.horizontal) {
2935
- for (var Z = h.alignmentConstraint.horizontal, at = function(tt) {
2936
- var j = /* @__PURE__ */ new Set();
2937
- Z[tt].forEach(function(yt) {
2938
- j.add(yt);
2939
- });
2940
- var dt = new Set([].concat(f(j)).filter(function(yt) {
2941
- return R.has(yt);
2942
- })), wt = void 0;
2943
- dt.size > 0 ? wt = d[v.get(dt.values().next().value)] : wt = k(j).y, Z[tt].forEach(function(yt) {
2944
- E[F] = [d[v.get(yt)], wt], y[F] = [d[v.get(yt)], N[v.get(yt)]], F++;
2945
- });
2946
- }, ut = 0; ut < Z.length; ut++)
2947
- at(ut);
2948
- I = !0;
2949
- }
2950
- h.relativePlacementConstraint && (w = !0);
2951
- })();
2952
- else if (h.relativePlacementConstraint) {
2953
- for (var V = 0, Y = 0, et = 0; et < q.length; et++)
2954
- q[et].length > V && (V = q[et].length, Y = et);
2955
- if (V < x.size / 2)
2956
- rt(h.relativePlacementConstraint), I = !1, w = !1;
2957
- else {
2958
- var z = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), H = [];
2959
- q[Y].forEach(function(F) {
2960
- W.get(F).forEach(function(b) {
2961
- b.direction == "horizontal" ? (z.has(F) ? z.get(F).push(b) : z.set(F, [b]), z.has(b.id) || z.set(b.id, []), H.push({ left: F, right: b.id })) : (O.has(F) ? O.get(F).push(b) : O.set(F, [b]), O.has(b.id) || O.set(b.id, []), H.push({ top: F, bottom: b.id }));
2962
- });
2963
- }), rt(H), w = !1;
2964
- var B = D(z, "horizontal"), _ = D(O, "vertical");
2965
- q[Y].forEach(function(F, b) {
2966
- y[b] = [d[v.get(F)], N[v.get(F)]], E[b] = [], B.has(F) ? E[b][0] = B.get(F) : E[b][0] = d[v.get(F)], _.has(F) ? E[b][1] = _.get(F) : E[b][1] = N[v.get(F)];
2967
- }), I = !0;
2968
- }
2969
- }
2970
- if (I) {
2971
- for (var lt = void 0, J = t.transpose(E), Rt = t.transpose(y), Lt = 0; Lt < J.length; Lt++)
2972
- J[Lt] = t.multGamma(J[Lt]), Rt[Lt] = t.multGamma(Rt[Lt]);
2973
- var vt = t.multMat(J, t.transpose(Rt)), it = s.svd(vt);
2974
- lt = t.multMat(it.V, t.transpose(it.U));
2975
- for (var gt = 0; gt < v.size; gt++) {
2976
- var Tt = [d[gt], N[gt]], At = [lt[0][0], lt[1][0]], Dt = [lt[0][1], lt[1][1]];
2977
- d[gt] = t.dotProduct(Tt, At), N[gt] = t.dotProduct(Tt, Dt);
2978
- }
2979
- w && rt(h.relativePlacementConstraint);
2980
- }
2981
- }
2982
- if (i.ENFORCE_CONSTRAINTS) {
2983
- if (h.fixedNodeConstraint && h.fixedNodeConstraint.length > 0) {
2984
- var mt = { x: 0, y: 0 };
2985
- h.fixedNodeConstraint.forEach(function(F, b) {
2986
- var $ = { x: d[v.get(F.nodeId)], y: N[v.get(F.nodeId)] }, Q = F.position, Z = X(Q, $);
2987
- mt.x += Z.x, mt.y += Z.y;
2988
- }), mt.x /= h.fixedNodeConstraint.length, mt.y /= h.fixedNodeConstraint.length, d.forEach(function(F, b) {
2989
- d[b] += mt.x;
2990
- }), N.forEach(function(F, b) {
2991
- N[b] += mt.y;
2992
- }), h.fixedNodeConstraint.forEach(function(F) {
2993
- d[v.get(F.nodeId)] = F.position.x, N[v.get(F.nodeId)] = F.position.y;
2994
- });
2995
- }
2996
- if (h.alignmentConstraint) {
2997
- if (h.alignmentConstraint.vertical)
2998
- for (var xt = h.alignmentConstraint.vertical, St = function(b) {
2999
- var $ = /* @__PURE__ */ new Set();
3000
- xt[b].forEach(function(at) {
3001
- $.add(at);
3002
- });
3003
- var Q = new Set([].concat(f($)).filter(function(at) {
3004
- return R.has(at);
3005
- })), Z = void 0;
3006
- Q.size > 0 ? Z = d[v.get(Q.values().next().value)] : Z = k($).x, $.forEach(function(at) {
3007
- R.has(at) || (d[v.get(at)] = Z);
3008
- });
3009
- }, Vt = 0; Vt < xt.length; Vt++)
3010
- St(Vt);
3011
- if (h.alignmentConstraint.horizontal)
3012
- for (var Xt = h.alignmentConstraint.horizontal, Ut = function(b) {
3013
- var $ = /* @__PURE__ */ new Set();
3014
- Xt[b].forEach(function(at) {
3015
- $.add(at);
3016
- });
3017
- var Q = new Set([].concat(f($)).filter(function(at) {
3018
- return R.has(at);
3019
- })), Z = void 0;
3020
- Q.size > 0 ? Z = N[v.get(Q.values().next().value)] : Z = k($).y, $.forEach(function(at) {
3021
- R.has(at) || (N[v.get(at)] = Z);
3022
- });
3023
- }, bt = 0; bt < Xt.length; bt++)
3024
- Ut(bt);
3025
- }
3026
- h.relativePlacementConstraint && function() {
3027
- var F = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), ut = /* @__PURE__ */ new Set(), ot = /* @__PURE__ */ new Set();
3028
- if (R.forEach(function(Yt) {
3029
- ut.add(Yt), ot.add(Yt);
3030
- }), h.alignmentConstraint) {
3031
- if (h.alignmentConstraint.vertical)
3032
- for (var tt = h.alignmentConstraint.vertical, j = function(Et) {
3033
- $.set("dummy" + Et, []), tt[Et].forEach(function(Ot) {
3034
- F.set(Ot, "dummy" + Et), $.get("dummy" + Et).push(Ot), R.has(Ot) && ut.add("dummy" + Et);
3035
- }), Z.set("dummy" + Et, d[v.get(tt[Et][0])]);
3036
- }, dt = 0; dt < tt.length; dt++)
3037
- j(dt);
3038
- if (h.alignmentConstraint.horizontal)
3039
- for (var wt = h.alignmentConstraint.horizontal, yt = function(Et) {
3040
- Q.set("dummy" + Et, []), wt[Et].forEach(function(Ot) {
3041
- b.set(Ot, "dummy" + Et), Q.get("dummy" + Et).push(Ot), R.has(Ot) && ot.add("dummy" + Et);
3042
- }), at.set("dummy" + Et, N[v.get(wt[Et][0])]);
3043
- }, It = 0; It < wt.length; It++)
3044
- yt(It);
3045
- }
3046
- var ft = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map(), Ct = function(Et) {
3047
- W.get(Et).forEach(function(Ot) {
3048
- var Jt = void 0, kt = void 0;
3049
- Ot.direction == "horizontal" ? (Jt = F.get(Et) ? F.get(Et) : Et, F.get(Ot.id) ? kt = { id: F.get(Ot.id), gap: Ot.gap, direction: Ot.direction } : kt = Ot, ft.has(Jt) ? ft.get(Jt).push(kt) : ft.set(Jt, [kt]), ft.has(kt.id) || ft.set(kt.id, [])) : (Jt = b.get(Et) ? b.get(Et) : Et, b.get(Ot.id) ? kt = { id: b.get(Ot.id), gap: Ot.gap, direction: Ot.direction } : kt = Ot, st.has(Jt) ? st.get(Jt).push(kt) : st.set(Jt, [kt]), st.has(kt.id) || st.set(kt.id, []));
3050
- });
3051
- }, ct = !0, ht = !1, Wt = void 0;
3052
- try {
3053
- for (var Nt = W.keys()[Symbol.iterator](), Mt; !(ct = (Mt = Nt.next()).done); ct = !0) {
3054
- var Zt = Mt.value;
3055
- Ct(Zt);
3056
- }
3057
- } catch (Yt) {
3058
- ht = !0, Wt = Yt;
3059
- } finally {
3060
- try {
3061
- !ct && Nt.return && Nt.return();
3062
- } finally {
3063
- if (ht)
3064
- throw Wt;
3065
- }
3066
- }
3067
- var Gt = m(ft), $t = m(st), Ft = n(Gt), qt = n($t), _t = p(ft), de = p(st), Kt = [], te = [];
3068
- Ft.forEach(function(Yt, Et) {
3069
- Kt[Et] = [], Yt.forEach(function(Ot) {
3070
- _t.get(Ot).length == 0 && Kt[Et].push(Ot);
3071
- });
3072
- }), qt.forEach(function(Yt, Et) {
3073
- te[Et] = [], Yt.forEach(function(Ot) {
3074
- de.get(Ot).length == 0 && te[Et].push(Ot);
3075
- });
3076
- });
3077
- var ee = D(ft, "horizontal", ut, Z, Kt), jt = D(st, "vertical", ot, at, te), se = function(Et) {
3078
- $.get(Et) ? $.get(Et).forEach(function(Ot) {
3079
- d[v.get(Ot)] = ee.get(Et);
3080
- }) : d[v.get(Et)] = ee.get(Et);
3081
- }, re = !0, ie = !1, Me = void 0;
3082
- try {
3083
- for (var ve = ee.keys()[Symbol.iterator](), Ae; !(re = (Ae = ve.next()).done); re = !0) {
3084
- var pe = Ae.value;
3085
- se(pe);
3086
- }
3087
- } catch (Yt) {
3088
- ie = !0, Me = Yt;
3089
- } finally {
3090
- try {
3091
- !re && ve.return && ve.return();
3092
- } finally {
3093
- if (ie)
3094
- throw Me;
3095
- }
3096
- }
3097
- var ke = function(Et) {
3098
- Q.get(Et) ? Q.get(Et).forEach(function(Ot) {
3099
- N[v.get(Ot)] = jt.get(Et);
3100
- }) : N[v.get(Et)] = jt.get(Et);
3101
- }, ye = !0, we = !1, Oe = void 0;
3102
- try {
3103
- for (var Ee = jt.keys()[Symbol.iterator](), De; !(ye = (De = Ee.next()).done); ye = !0) {
3104
- var pe = De.value;
3105
- ke(pe);
3106
- }
3107
- } catch (Yt) {
3108
- we = !0, Oe = Yt;
3109
- } finally {
3110
- try {
3111
- !ye && Ee.return && Ee.return();
3112
- } finally {
3113
- if (we)
3114
- throw Oe;
3115
- }
3116
- }
3117
- }();
3118
- }
3119
- for (var Ht = 0; Ht < S.length; Ht++) {
3120
- var Bt = S[Ht];
3121
- Bt.getChild() == null && Bt.setCenter(d[v.get(Bt.id)], N[v.get(Bt.id)]);
3122
- }
3123
- }, a.exports = o;
3124
- }
3125
- ),
3126
- /***/
3127
- 551: (
3128
- /***/
3129
- (a) => {
3130
- a.exports = A;
3131
- }
3132
- )
3133
- /******/
3134
- }, L = {};
3135
- function u(a) {
3136
- var r = L[a];
3137
- if (r !== void 0)
3138
- return r.exports;
3139
- var e = L[a] = {
3140
- /******/
3141
- // no module.id needed
3142
- /******/
3143
- // no module.loaded needed
3144
- /******/
3145
- exports: {}
3146
- /******/
3147
- };
3148
- return G[a](e, e.exports, u), e.exports;
3149
- }
3150
- var l = u(45);
3151
- return l;
3152
- })()
3153
- );
3154
- });
3155
- }(fe)), fe.exports;
3156
- }
3157
- var vr = le.exports, Re;
3158
- function pr() {
3159
- return Re || (Re = 1, function(C, U) {
3160
- (function(G, L) {
3161
- C.exports = L(dr());
3162
- })(vr, function(A) {
3163
- return (
3164
- /******/
3165
- (() => {
3166
- var G = {
3167
- /***/
3168
- 658: (
3169
- /***/
3170
- (a) => {
3171
- a.exports = Object.assign != null ? Object.assign.bind(Object) : function(r) {
3172
- for (var e = arguments.length, f = Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3173
- f[i - 1] = arguments[i];
3174
- return f.forEach(function(g) {
3175
- Object.keys(g).forEach(function(t) {
3176
- return r[t] = g[t];
3177
- });
3178
- }), r;
3179
- };
3180
- }
3181
- ),
3182
- /***/
3183
- 548: (
3184
- /***/
3185
- (a, r, e) => {
3186
- var f = /* @__PURE__ */ function() {
3187
- function t(s, o) {
3188
- var c = [], h = !0, T = !1, v = void 0;
3189
- try {
3190
- for (var d = s[Symbol.iterator](), N; !(h = (N = d.next()).done) && (c.push(N.value), !(o && c.length === o)); h = !0)
3191
- ;
3192
- } catch (S) {
3193
- T = !0, v = S;
3194
- } finally {
3195
- try {
3196
- !h && d.return && d.return();
3197
- } finally {
3198
- if (T) throw v;
3199
- }
3200
- }
3201
- return c;
3202
- }
3203
- return function(s, o) {
3204
- if (Array.isArray(s))
3205
- return s;
3206
- if (Symbol.iterator in Object(s))
3207
- return t(s, o);
3208
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
3209
- };
3210
- }(), i = e(140).layoutBase.LinkedList, g = {};
3211
- g.getTopMostNodes = function(t) {
3212
- for (var s = {}, o = 0; o < t.length; o++)
3213
- s[t[o].id()] = !0;
3214
- var c = t.filter(function(h, T) {
3215
- typeof h == "number" && (h = T);
3216
- for (var v = h.parent()[0]; v != null; ) {
3217
- if (s[v.id()])
3218
- return !1;
3219
- v = v.parent()[0];
3220
- }
3221
- return !0;
3222
- });
3223
- return c;
3224
- }, g.connectComponents = function(t, s, o, c) {
3225
- var h = new i(), T = /* @__PURE__ */ new Set(), v = [], d = void 0, N = void 0, S = void 0, M = !1, P = 1, K = [], X = [], k = function() {
3226
- var rt = t.collection();
3227
- X.push(rt);
3228
- var n = o[0], m = t.collection();
3229
- m.merge(n).merge(n.descendants().intersection(s)), v.push(n), m.forEach(function(y) {
3230
- h.push(y), T.add(y), rt.merge(y);
3231
- });
3232
- for (var p = function() {
3233
- n = h.shift();
3234
- var I = t.collection();
3235
- n.neighborhood().nodes().forEach(function(x) {
3236
- s.intersection(n.edgesWith(x)).length > 0 && I.merge(x);
3237
- });
3238
- for (var w = 0; w < I.length; w++) {
3239
- var R = I[w];
3240
- if (d = o.intersection(R.union(R.ancestors())), d != null && !T.has(d[0])) {
3241
- var W = d.union(d.descendants());
3242
- W.forEach(function(x) {
3243
- h.push(x), T.add(x), rt.merge(x), o.has(x) && v.push(x);
3244
- });
3245
- }
3246
- }
3247
- }; h.length != 0; )
3248
- p();
3249
- if (rt.forEach(function(y) {
3250
- s.intersection(y.connectedEdges()).forEach(function(I) {
3251
- rt.has(I.source()) && rt.has(I.target()) && rt.merge(I);
3252
- });
3253
- }), v.length == o.length && (M = !0), !M || M && P > 1) {
3254
- N = v[0], S = N.connectedEdges().length, v.forEach(function(y) {
3255
- y.connectedEdges().length < S && (S = y.connectedEdges().length, N = y);
3256
- }), K.push(N.id());
3257
- var E = t.collection();
3258
- E.merge(v[0]), v.forEach(function(y) {
3259
- E.merge(y);
3260
- }), v = [], o = o.difference(E), P++;
3261
- }
3262
- };
3263
- do
3264
- k();
3265
- while (!M);
3266
- return c && K.length > 0 && c.set("dummy" + (c.size + 1), K), X;
3267
- }, g.relocateComponent = function(t, s, o) {
3268
- if (!o.fixedNodeConstraint) {
3269
- var c = Number.POSITIVE_INFINITY, h = Number.NEGATIVE_INFINITY, T = Number.POSITIVE_INFINITY, v = Number.NEGATIVE_INFINITY;
3270
- if (o.quality == "draft") {
3271
- var d = !0, N = !1, S = void 0;
3272
- try {
3273
- for (var M = s.nodeIndexes[Symbol.iterator](), P; !(d = (P = M.next()).done); d = !0) {
3274
- var K = P.value, X = f(K, 2), k = X[0], D = X[1], rt = o.cy.getElementById(k);
3275
- if (rt) {
3276
- var n = rt.boundingBox(), m = s.xCoords[D] - n.w / 2, p = s.xCoords[D] + n.w / 2, E = s.yCoords[D] - n.h / 2, y = s.yCoords[D] + n.h / 2;
3277
- m < c && (c = m), p > h && (h = p), E < T && (T = E), y > v && (v = y);
3278
- }
3279
- }
3280
- } catch (x) {
3281
- N = !0, S = x;
3282
- } finally {
3283
- try {
3284
- !d && M.return && M.return();
3285
- } finally {
3286
- if (N)
3287
- throw S;
3288
- }
3289
- }
3290
- var I = t.x - (h + c) / 2, w = t.y - (v + T) / 2;
3291
- s.xCoords = s.xCoords.map(function(x) {
3292
- return x + I;
3293
- }), s.yCoords = s.yCoords.map(function(x) {
3294
- return x + w;
3295
- });
3296
- } else {
3297
- Object.keys(s).forEach(function(x) {
3298
- var q = s[x], V = q.getRect().x, Y = q.getRect().x + q.getRect().width, et = q.getRect().y, z = q.getRect().y + q.getRect().height;
3299
- V < c && (c = V), Y > h && (h = Y), et < T && (T = et), z > v && (v = z);
3300
- });
3301
- var R = t.x - (h + c) / 2, W = t.y - (v + T) / 2;
3302
- Object.keys(s).forEach(function(x) {
3303
- var q = s[x];
3304
- q.setCenter(q.getCenterX() + R, q.getCenterY() + W);
3305
- });
3306
- }
3307
- }
3308
- }, g.calcBoundingBox = function(t, s, o, c) {
3309
- for (var h = Number.MAX_SAFE_INTEGER, T = Number.MIN_SAFE_INTEGER, v = Number.MAX_SAFE_INTEGER, d = Number.MIN_SAFE_INTEGER, N = void 0, S = void 0, M = void 0, P = void 0, K = t.descendants().not(":parent"), X = K.length, k = 0; k < X; k++) {
3310
- var D = K[k];
3311
- N = s[c.get(D.id())] - D.width() / 2, S = s[c.get(D.id())] + D.width() / 2, M = o[c.get(D.id())] - D.height() / 2, P = o[c.get(D.id())] + D.height() / 2, h > N && (h = N), T < S && (T = S), v > M && (v = M), d < P && (d = P);
3312
- }
3313
- var rt = {};
3314
- return rt.topLeftX = h, rt.topLeftY = v, rt.width = T - h, rt.height = d - v, rt;
3315
- }, g.calcParentsWithoutChildren = function(t, s) {
3316
- var o = t.collection();
3317
- return s.nodes(":parent").forEach(function(c) {
3318
- var h = !1;
3319
- c.children().forEach(function(T) {
3320
- T.css("display") != "none" && (h = !0);
3321
- }), h || o.merge(c);
3322
- }), o;
3323
- }, a.exports = g;
3324
- }
3325
- ),
3326
- /***/
3327
- 816: (
3328
- /***/
3329
- (a, r, e) => {
3330
- var f = e(548), i = e(140).CoSELayout, g = e(140).CoSENode, t = e(140).layoutBase.PointD, s = e(140).layoutBase.DimensionD, o = e(140).layoutBase.LayoutConstants, c = e(140).layoutBase.FDLayoutConstants, h = e(140).CoSEConstants, T = function(d, N) {
3331
- var S = d.cy, M = d.eles, P = M.nodes(), K = M.edges(), X = void 0, k = void 0, D = void 0, rt = {};
3332
- d.randomize && (X = N.nodeIndexes, k = N.xCoords, D = N.yCoords);
3333
- var n = function(x) {
3334
- return typeof x == "function";
3335
- }, m = function(x, q) {
3336
- return n(x) ? x(q) : x;
3337
- }, p = f.calcParentsWithoutChildren(S, M), E = function W(x, q, V, Y) {
3338
- for (var et = q.length, z = 0; z < et; z++) {
3339
- var O = q[z], H = null;
3340
- O.intersection(p).length == 0 && (H = O.children());
3341
- var B = void 0, _ = O.layoutDimensions({
3342
- nodeDimensionsIncludeLabels: Y.nodeDimensionsIncludeLabels
3343
- });
3344
- if (O.outerWidth() != null && O.outerHeight() != null)
3345
- if (Y.randomize)
3346
- if (!O.isParent())
3347
- B = x.add(new g(V.graphManager, new t(k[X.get(O.id())] - _.w / 2, D[X.get(O.id())] - _.h / 2), new s(parseFloat(_.w), parseFloat(_.h))));
3348
- else {
3349
- var lt = f.calcBoundingBox(O, k, D, X);
3350
- O.intersection(p).length == 0 ? B = x.add(new g(V.graphManager, new t(lt.topLeftX, lt.topLeftY), new s(lt.width, lt.height))) : B = x.add(new g(V.graphManager, new t(lt.topLeftX, lt.topLeftY), new s(parseFloat(_.w), parseFloat(_.h))));
3351
- }
3352
- else
3353
- B = x.add(new g(V.graphManager, new t(O.position("x") - _.w / 2, O.position("y") - _.h / 2), new s(parseFloat(_.w), parseFloat(_.h))));
3354
- else
3355
- B = x.add(new g(this.graphManager));
3356
- if (B.id = O.data("id"), B.nodeRepulsion = m(Y.nodeRepulsion, O), B.paddingLeft = parseInt(O.css("padding")), B.paddingTop = parseInt(O.css("padding")), B.paddingRight = parseInt(O.css("padding")), B.paddingBottom = parseInt(O.css("padding")), Y.nodeDimensionsIncludeLabels && (B.labelWidth = O.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).w, B.labelHeight = O.boundingBox({ includeLabels: !0, includeNodes: !1, includeOverlays: !1 }).h, B.labelPosVertical = O.css("text-valign"), B.labelPosHorizontal = O.css("text-halign")), rt[O.data("id")] = B, isNaN(B.rect.x) && (B.rect.x = 0), isNaN(B.rect.y) && (B.rect.y = 0), H != null && H.length > 0) {
3357
- var J = void 0;
3358
- J = V.getGraphManager().add(V.newGraph(), B), W(J, H, V, Y);
3359
- }
3360
- }
3361
- }, y = function(x, q, V) {
3362
- for (var Y = 0, et = 0, z = 0; z < V.length; z++) {
3363
- var O = V[z], H = rt[O.data("source")], B = rt[O.data("target")];
3364
- if (H && B && H !== B && H.getEdgesBetween(B).length == 0) {
3365
- var _ = q.add(x.newEdge(), H, B);
3366
- _.id = O.id(), _.idealLength = m(d.idealEdgeLength, O), _.edgeElasticity = m(d.edgeElasticity, O), Y += _.idealLength, et++;
3367
- }
3368
- }
3369
- d.idealEdgeLength != null && (et > 0 ? h.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = Y / et : n(d.idealEdgeLength) ? h.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = 50 : h.DEFAULT_EDGE_LENGTH = c.DEFAULT_EDGE_LENGTH = d.idealEdgeLength, h.MIN_REPULSION_DIST = c.MIN_REPULSION_DIST = c.DEFAULT_EDGE_LENGTH / 10, h.DEFAULT_RADIAL_SEPARATION = c.DEFAULT_EDGE_LENGTH);
3370
- }, I = function(x, q) {
3371
- q.fixedNodeConstraint && (x.constraints.fixedNodeConstraint = q.fixedNodeConstraint), q.alignmentConstraint && (x.constraints.alignmentConstraint = q.alignmentConstraint), q.relativePlacementConstraint && (x.constraints.relativePlacementConstraint = q.relativePlacementConstraint);
3372
- };
3373
- d.nestingFactor != null && (h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = d.nestingFactor), d.gravity != null && (h.DEFAULT_GRAVITY_STRENGTH = c.DEFAULT_GRAVITY_STRENGTH = d.gravity), d.numIter != null && (h.MAX_ITERATIONS = c.MAX_ITERATIONS = d.numIter), d.gravityRange != null && (h.DEFAULT_GRAVITY_RANGE_FACTOR = c.DEFAULT_GRAVITY_RANGE_FACTOR = d.gravityRange), d.gravityCompound != null && (h.DEFAULT_COMPOUND_GRAVITY_STRENGTH = c.DEFAULT_COMPOUND_GRAVITY_STRENGTH = d.gravityCompound), d.gravityRangeCompound != null && (h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = d.gravityRangeCompound), d.initialEnergyOnIncremental != null && (h.DEFAULT_COOLING_FACTOR_INCREMENTAL = c.DEFAULT_COOLING_FACTOR_INCREMENTAL = d.initialEnergyOnIncremental), d.tilingCompareBy != null && (h.TILING_COMPARE_BY = d.tilingCompareBy), d.quality == "proof" ? o.QUALITY = 2 : o.QUALITY = 0, h.NODE_DIMENSIONS_INCLUDE_LABELS = c.NODE_DIMENSIONS_INCLUDE_LABELS = o.NODE_DIMENSIONS_INCLUDE_LABELS = d.nodeDimensionsIncludeLabels, h.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = o.DEFAULT_INCREMENTAL = !d.randomize, h.ANIMATE = c.ANIMATE = o.ANIMATE = d.animate, h.TILE = d.tile, h.TILING_PADDING_VERTICAL = typeof d.tilingPaddingVertical == "function" ? d.tilingPaddingVertical.call() : d.tilingPaddingVertical, h.TILING_PADDING_HORIZONTAL = typeof d.tilingPaddingHorizontal == "function" ? d.tilingPaddingHorizontal.call() : d.tilingPaddingHorizontal, h.DEFAULT_INCREMENTAL = c.DEFAULT_INCREMENTAL = o.DEFAULT_INCREMENTAL = !0, h.PURE_INCREMENTAL = !d.randomize, o.DEFAULT_UNIFORM_LEAF_NODE_SIZES = d.uniformNodeDimensions, d.step == "transformed" && (h.TRANSFORM_ON_CONSTRAINT_HANDLING = !0, h.ENFORCE_CONSTRAINTS = !1, h.APPLY_LAYOUT = !1), d.step == "enforced" && (h.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, h.ENFORCE_CONSTRAINTS = !0, h.APPLY_LAYOUT = !1), d.step == "cose" && (h.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, h.ENFORCE_CONSTRAINTS = !1, h.APPLY_LAYOUT = !0), d.step == "all" && (d.randomize ? h.TRANSFORM_ON_CONSTRAINT_HANDLING = !0 : h.TRANSFORM_ON_CONSTRAINT_HANDLING = !1, h.ENFORCE_CONSTRAINTS = !0, h.APPLY_LAYOUT = !0), d.fixedNodeConstraint || d.alignmentConstraint || d.relativePlacementConstraint ? h.TREE_REDUCTION_ON_INCREMENTAL = !1 : h.TREE_REDUCTION_ON_INCREMENTAL = !0;
3374
- var w = new i(), R = w.newGraphManager();
3375
- return E(R.addRoot(), f.getTopMostNodes(P), w, d), y(w, R, K), I(w, d), w.runLayout(), rt;
3376
- };
3377
- a.exports = { coseLayout: T };
3378
- }
3379
- ),
3380
- /***/
3381
- 212: (
3382
- /***/
3383
- (a, r, e) => {
3384
- var f = /* @__PURE__ */ function() {
3385
- function d(N, S) {
3386
- for (var M = 0; M < S.length; M++) {
3387
- var P = S[M];
3388
- P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(N, P.key, P);
3389
- }
3390
- }
3391
- return function(N, S, M) {
3392
- return S && d(N.prototype, S), M && d(N, M), N;
3393
- };
3394
- }();
3395
- function i(d, N) {
3396
- if (!(d instanceof N))
3397
- throw new TypeError("Cannot call a class as a function");
3398
- }
3399
- var g = e(658), t = e(548), s = e(657), o = s.spectralLayout, c = e(816), h = c.coseLayout, T = Object.freeze({
3400
- // 'draft', 'default' or 'proof'
3401
- // - 'draft' only applies spectral layout
3402
- // - 'default' improves the quality with subsequent CoSE layout (fast cooling rate)
3403
- // - 'proof' improves the quality with subsequent CoSE layout (slow cooling rate)
3404
- quality: "default",
3405
- // Use random node positions at beginning of layout
3406
- // if this is set to false, then quality option must be "proof"
3407
- randomize: !0,
3408
- // Whether or not to animate the layout
3409
- animate: !0,
3410
- // Duration of animation in ms, if enabled
3411
- animationDuration: 1e3,
3412
- // Easing of animation, if enabled
3413
- animationEasing: void 0,
3414
- // Fit the viewport to the repositioned nodes
3415
- fit: !0,
3416
- // Padding around layout
3417
- padding: 30,
3418
- // Whether to include labels in node dimensions. Valid in "proof" quality
3419
- nodeDimensionsIncludeLabels: !1,
3420
- // Whether or not simple nodes (non-compound nodes) are of uniform dimensions
3421
- uniformNodeDimensions: !1,
3422
- // Whether to pack disconnected components - valid only if randomize: true
3423
- packComponents: !0,
3424
- // Layout step - all, transformed, enforced, cose - for debug purpose only
3425
- step: "all",
3426
- /* spectral layout options */
3427
- // False for random, true for greedy
3428
- samplingType: !0,
3429
- // Sample size to construct distance matrix
3430
- sampleSize: 25,
3431
- // Separation amount between nodes
3432
- nodeSeparation: 75,
3433
- // Power iteration tolerance
3434
- piTol: 1e-7,
3435
- /* CoSE layout options */
3436
- // Node repulsion (non overlapping) multiplier
3437
- nodeRepulsion: function(N) {
3438
- return 4500;
3439
- },
3440
- // Ideal edge (non nested) length
3441
- idealEdgeLength: function(N) {
3442
- return 50;
3443
- },
3444
- // Divisor to compute edge forces
3445
- edgeElasticity: function(N) {
3446
- return 0.45;
3447
- },
3448
- // Nesting factor (multiplier) to compute ideal edge length for nested edges
3449
- nestingFactor: 0.1,
3450
- // Gravity force (constant)
3451
- gravity: 0.25,
3452
- // Maximum number of iterations to perform
3453
- numIter: 2500,
3454
- // For enabling tiling
3455
- tile: !0,
3456
- // The function that specifies the criteria for comparing nodes while sorting them during tiling operation.
3457
- // Takes the node id as a parameter and the default tiling operation is perfomed when this option is not set.
3458
- tilingCompareBy: void 0,
3459
- // Represents the amount of the vertical space to put between the zero degree members during the tiling operation(can also be a function)
3460
- tilingPaddingVertical: 10,
3461
- // Represents the amount of the horizontal space to put between the zero degree members during the tiling operation(can also be a function)
3462
- tilingPaddingHorizontal: 10,
3463
- // Gravity range (constant) for compounds
3464
- gravityRangeCompound: 1.5,
3465
- // Gravity force (constant) for compounds
3466
- gravityCompound: 1,
3467
- // Gravity range (constant)
3468
- gravityRange: 3.8,
3469
- // Initial cooling factor for incremental layout
3470
- initialEnergyOnIncremental: 0.3,
3471
- /* constraint options */
3472
- // Fix required nodes to predefined positions
3473
- // [{nodeId: 'n1', position: {x: 100, y: 200}, {...}]
3474
- fixedNodeConstraint: void 0,
3475
- // Align required nodes in vertical/horizontal direction
3476
- // {vertical: [['n1', 'n2')], ['n3', 'n4']], horizontal: ['n2', 'n4']}
3477
- alignmentConstraint: void 0,
3478
- // Place two nodes relatively in vertical/horizontal direction
3479
- // [{top: 'n1', bottom: 'n2', gap: 100}, {left: 'n3', right: 'n4', gap: 75}]
3480
- relativePlacementConstraint: void 0,
3481
- /* layout event callbacks */
3482
- ready: function() {
3483
- },
3484
- // on layoutready
3485
- stop: function() {
3486
- }
3487
- // on layoutstop
3488
- }), v = function() {
3489
- function d(N) {
3490
- i(this, d), this.options = g({}, T, N);
3491
- }
3492
- return f(d, [{
3493
- key: "run",
3494
- value: function() {
3495
- var S = this, M = this.options, P = M.cy, K = M.eles, X = [], k = [], D = void 0, rt = [];
3496
- M.fixedNodeConstraint && (!Array.isArray(M.fixedNodeConstraint) || M.fixedNodeConstraint.length == 0) && (M.fixedNodeConstraint = void 0), M.alignmentConstraint && (M.alignmentConstraint.vertical && (!Array.isArray(M.alignmentConstraint.vertical) || M.alignmentConstraint.vertical.length == 0) && (M.alignmentConstraint.vertical = void 0), M.alignmentConstraint.horizontal && (!Array.isArray(M.alignmentConstraint.horizontal) || M.alignmentConstraint.horizontal.length == 0) && (M.alignmentConstraint.horizontal = void 0)), M.relativePlacementConstraint && (!Array.isArray(M.relativePlacementConstraint) || M.relativePlacementConstraint.length == 0) && (M.relativePlacementConstraint = void 0);
3497
- var n = M.fixedNodeConstraint || M.alignmentConstraint || M.relativePlacementConstraint;
3498
- n && (M.tile = !1, M.packComponents = !1);
3499
- var m = void 0, p = !1;
3500
- if (P.layoutUtilities && M.packComponents && (m = P.layoutUtilities("get"), m || (m = P.layoutUtilities()), p = !0), K.nodes().length > 0)
3501
- if (p) {
3502
- var I = t.getTopMostNodes(M.eles.nodes());
3503
- if (D = t.connectComponents(P, M.eles, I), D.forEach(function(vt) {
3504
- var it = vt.boundingBox();
3505
- rt.push({ x: it.x1 + it.w / 2, y: it.y1 + it.h / 2 });
3506
- }), M.randomize && D.forEach(function(vt) {
3507
- M.eles = vt, X.push(o(M));
3508
- }), M.quality == "default" || M.quality == "proof") {
3509
- var w = P.collection();
3510
- if (M.tile) {
3511
- var R = /* @__PURE__ */ new Map(), W = [], x = [], q = 0, V = { nodeIndexes: R, xCoords: W, yCoords: x }, Y = [];
3512
- if (D.forEach(function(vt, it) {
3513
- vt.edges().length == 0 && (vt.nodes().forEach(function(gt, Tt) {
3514
- w.merge(vt.nodes()[Tt]), gt.isParent() || (V.nodeIndexes.set(vt.nodes()[Tt].id(), q++), V.xCoords.push(vt.nodes()[0].position().x), V.yCoords.push(vt.nodes()[0].position().y));
3515
- }), Y.push(it));
3516
- }), w.length > 1) {
3517
- var et = w.boundingBox();
3518
- rt.push({ x: et.x1 + et.w / 2, y: et.y1 + et.h / 2 }), D.push(w), X.push(V);
3519
- for (var z = Y.length - 1; z >= 0; z--)
3520
- D.splice(Y[z], 1), X.splice(Y[z], 1), rt.splice(Y[z], 1);
3521
- }
3522
- }
3523
- D.forEach(function(vt, it) {
3524
- M.eles = vt, k.push(h(M, X[it])), t.relocateComponent(rt[it], k[it], M);
3525
- });
3526
- } else
3527
- D.forEach(function(vt, it) {
3528
- t.relocateComponent(rt[it], X[it], M);
3529
- });
3530
- var O = /* @__PURE__ */ new Set();
3531
- if (D.length > 1) {
3532
- var H = [], B = K.filter(function(vt) {
3533
- return vt.css("display") == "none";
3534
- });
3535
- D.forEach(function(vt, it) {
3536
- var gt = void 0;
3537
- if (M.quality == "draft" && (gt = X[it].nodeIndexes), vt.nodes().not(B).length > 0) {
3538
- var Tt = {};
3539
- Tt.edges = [], Tt.nodes = [];
3540
- var At = void 0;
3541
- vt.nodes().not(B).forEach(function(Dt) {
3542
- if (M.quality == "draft")
3543
- if (!Dt.isParent())
3544
- At = gt.get(Dt.id()), Tt.nodes.push({ x: X[it].xCoords[At] - Dt.boundingbox().w / 2, y: X[it].yCoords[At] - Dt.boundingbox().h / 2, width: Dt.boundingbox().w, height: Dt.boundingbox().h });
3545
- else {
3546
- var mt = t.calcBoundingBox(Dt, X[it].xCoords, X[it].yCoords, gt);
3547
- Tt.nodes.push({ x: mt.topLeftX, y: mt.topLeftY, width: mt.width, height: mt.height });
3548
- }
3549
- else
3550
- k[it][Dt.id()] && Tt.nodes.push({ x: k[it][Dt.id()].getLeft(), y: k[it][Dt.id()].getTop(), width: k[it][Dt.id()].getWidth(), height: k[it][Dt.id()].getHeight() });
3551
- }), vt.edges().forEach(function(Dt) {
3552
- var mt = Dt.source(), xt = Dt.target();
3553
- if (mt.css("display") != "none" && xt.css("display") != "none")
3554
- if (M.quality == "draft") {
3555
- var St = gt.get(mt.id()), Vt = gt.get(xt.id()), Xt = [], Ut = [];
3556
- if (mt.isParent()) {
3557
- var bt = t.calcBoundingBox(mt, X[it].xCoords, X[it].yCoords, gt);
3558
- Xt.push(bt.topLeftX + bt.width / 2), Xt.push(bt.topLeftY + bt.height / 2);
3559
- } else
3560
- Xt.push(X[it].xCoords[St]), Xt.push(X[it].yCoords[St]);
3561
- if (xt.isParent()) {
3562
- var Ht = t.calcBoundingBox(xt, X[it].xCoords, X[it].yCoords, gt);
3563
- Ut.push(Ht.topLeftX + Ht.width / 2), Ut.push(Ht.topLeftY + Ht.height / 2);
3564
- } else
3565
- Ut.push(X[it].xCoords[Vt]), Ut.push(X[it].yCoords[Vt]);
3566
- Tt.edges.push({ startX: Xt[0], startY: Xt[1], endX: Ut[0], endY: Ut[1] });
3567
- } else
3568
- k[it][mt.id()] && k[it][xt.id()] && Tt.edges.push({ startX: k[it][mt.id()].getCenterX(), startY: k[it][mt.id()].getCenterY(), endX: k[it][xt.id()].getCenterX(), endY: k[it][xt.id()].getCenterY() });
3569
- }), Tt.nodes.length > 0 && (H.push(Tt), O.add(it));
3570
- }
3571
- });
3572
- var _ = m.packComponents(H, M.randomize).shifts;
3573
- if (M.quality == "draft")
3574
- X.forEach(function(vt, it) {
3575
- var gt = vt.xCoords.map(function(At) {
3576
- return At + _[it].dx;
3577
- }), Tt = vt.yCoords.map(function(At) {
3578
- return At + _[it].dy;
3579
- });
3580
- vt.xCoords = gt, vt.yCoords = Tt;
3581
- });
3582
- else {
3583
- var lt = 0;
3584
- O.forEach(function(vt) {
3585
- Object.keys(k[vt]).forEach(function(it) {
3586
- var gt = k[vt][it];
3587
- gt.setCenter(gt.getCenterX() + _[lt].dx, gt.getCenterY() + _[lt].dy);
3588
- }), lt++;
3589
- });
3590
- }
3591
- }
3592
- } else {
3593
- var E = M.eles.boundingBox();
3594
- if (rt.push({ x: E.x1 + E.w / 2, y: E.y1 + E.h / 2 }), M.randomize) {
3595
- var y = o(M);
3596
- X.push(y);
3597
- }
3598
- M.quality == "default" || M.quality == "proof" ? (k.push(h(M, X[0])), t.relocateComponent(rt[0], k[0], M)) : t.relocateComponent(rt[0], X[0], M);
3599
- }
3600
- var J = function(it, gt) {
3601
- if (M.quality == "default" || M.quality == "proof") {
3602
- typeof it == "number" && (it = gt);
3603
- var Tt = void 0, At = void 0, Dt = it.data("id");
3604
- return k.forEach(function(xt) {
3605
- Dt in xt && (Tt = { x: xt[Dt].getRect().getCenterX(), y: xt[Dt].getRect().getCenterY() }, At = xt[Dt]);
3606
- }), M.nodeDimensionsIncludeLabels && (At.labelWidth && (At.labelPosHorizontal == "left" ? Tt.x += At.labelWidth / 2 : At.labelPosHorizontal == "right" && (Tt.x -= At.labelWidth / 2)), At.labelHeight && (At.labelPosVertical == "top" ? Tt.y += At.labelHeight / 2 : At.labelPosVertical == "bottom" && (Tt.y -= At.labelHeight / 2))), Tt == null && (Tt = { x: it.position("x"), y: it.position("y") }), {
3607
- x: Tt.x,
3608
- y: Tt.y
3609
- };
3610
- } else {
3611
- var mt = void 0;
3612
- return X.forEach(function(xt) {
3613
- var St = xt.nodeIndexes.get(it.id());
3614
- St != null && (mt = { x: xt.xCoords[St], y: xt.yCoords[St] });
3615
- }), mt == null && (mt = { x: it.position("x"), y: it.position("y") }), {
3616
- x: mt.x,
3617
- y: mt.y
3618
- };
3619
- }
3620
- };
3621
- if (M.quality == "default" || M.quality == "proof" || M.randomize) {
3622
- var Rt = t.calcParentsWithoutChildren(P, K), Lt = K.filter(function(vt) {
3623
- return vt.css("display") == "none";
3624
- });
3625
- M.eles = K.not(Lt), K.nodes().not(":parent").not(Lt).layoutPositions(S, M, J), Rt.length > 0 && Rt.forEach(function(vt) {
3626
- vt.position(J(vt));
3627
- });
3628
- } else
3629
- console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.");
3630
- }
3631
- }]), d;
3632
- }();
3633
- a.exports = v;
3634
- }
3635
- ),
3636
- /***/
3637
- 657: (
3638
- /***/
3639
- (a, r, e) => {
3640
- var f = e(548), i = e(140).layoutBase.Matrix, g = e(140).layoutBase.SVD, t = function(o) {
3641
- var c = o.cy, h = o.eles, T = h.nodes(), v = h.nodes(":parent"), d = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), M = [], P = [], K = [], X = [], k = [], D = [], rt = [], n = [], m = void 0, p = 1e8, E = 1e-9, y = o.piTol, I = o.samplingType, w = o.nodeSeparation, R = void 0, W = function() {
3642
- for (var b = 0, $ = 0, Q = !1; $ < R; ) {
3643
- b = Math.floor(Math.random() * m), Q = !1;
3644
- for (var Z = 0; Z < $; Z++)
3645
- if (X[Z] == b) {
3646
- Q = !0;
3647
- break;
3648
- }
3649
- if (!Q)
3650
- X[$] = b, $++;
3651
- else
3652
- continue;
3653
- }
3654
- }, x = function(b, $, Q) {
3655
- for (var Z = [], at = 0, ut = 0, ot = 0, tt = void 0, j = [], dt = 0, wt = 1, yt = 0; yt < m; yt++)
3656
- j[yt] = p;
3657
- for (Z[ut] = b, j[b] = 0; ut >= at; ) {
3658
- ot = Z[at++];
3659
- for (var It = M[ot], ft = 0; ft < It.length; ft++)
3660
- tt = N.get(It[ft]), j[tt] == p && (j[tt] = j[ot] + 1, Z[++ut] = tt);
3661
- D[ot][$] = j[ot] * w;
3662
- }
3663
- if (Q) {
3664
- for (var st = 0; st < m; st++)
3665
- D[st][$] < k[st] && (k[st] = D[st][$]);
3666
- for (var Ct = 0; Ct < m; Ct++)
3667
- k[Ct] > dt && (dt = k[Ct], wt = Ct);
3668
- }
3669
- return wt;
3670
- }, q = function(b) {
3671
- var $ = void 0;
3672
- if (b) {
3673
- $ = Math.floor(Math.random() * m);
3674
- for (var Z = 0; Z < m; Z++)
3675
- k[Z] = p;
3676
- for (var at = 0; at < R; at++)
3677
- X[at] = $, $ = x($, at, b);
3678
- } else {
3679
- W();
3680
- for (var Q = 0; Q < R; Q++)
3681
- x(X[Q], Q, b);
3682
- }
3683
- for (var ut = 0; ut < m; ut++)
3684
- for (var ot = 0; ot < R; ot++)
3685
- D[ut][ot] *= D[ut][ot];
3686
- for (var tt = 0; tt < R; tt++)
3687
- rt[tt] = [];
3688
- for (var j = 0; j < R; j++)
3689
- for (var dt = 0; dt < R; dt++)
3690
- rt[j][dt] = D[X[dt]][j];
3691
- }, V = function() {
3692
- for (var b = g.svd(rt), $ = b.S, Q = b.U, Z = b.V, at = $[0] * $[0] * $[0], ut = [], ot = 0; ot < R; ot++) {
3693
- ut[ot] = [];
3694
- for (var tt = 0; tt < R; tt++)
3695
- ut[ot][tt] = 0, ot == tt && (ut[ot][tt] = $[ot] / ($[ot] * $[ot] + at / ($[ot] * $[ot])));
3696
- }
3697
- n = i.multMat(i.multMat(Z, ut), i.transpose(Q));
3698
- }, Y = function() {
3699
- for (var b = void 0, $ = void 0, Q = [], Z = [], at = [], ut = [], ot = 0; ot < m; ot++)
3700
- Q[ot] = Math.random(), Z[ot] = Math.random();
3701
- Q = i.normalize(Q), Z = i.normalize(Z);
3702
- for (var tt = E, j = E, dt = void 0; ; ) {
3703
- for (var wt = 0; wt < m; wt++)
3704
- at[wt] = Q[wt];
3705
- if (Q = i.multGamma(i.multL(i.multGamma(at), D, n)), b = i.dotProduct(at, Q), Q = i.normalize(Q), tt = i.dotProduct(at, Q), dt = Math.abs(tt / j), dt <= 1 + y && dt >= 1)
3706
- break;
3707
- j = tt;
3708
- }
3709
- for (var yt = 0; yt < m; yt++)
3710
- at[yt] = Q[yt];
3711
- for (j = E; ; ) {
3712
- for (var It = 0; It < m; It++)
3713
- ut[It] = Z[It];
3714
- if (ut = i.minusOp(ut, i.multCons(at, i.dotProduct(at, ut))), Z = i.multGamma(i.multL(i.multGamma(ut), D, n)), $ = i.dotProduct(ut, Z), Z = i.normalize(Z), tt = i.dotProduct(ut, Z), dt = Math.abs(tt / j), dt <= 1 + y && dt >= 1)
3715
- break;
3716
- j = tt;
3717
- }
3718
- for (var ft = 0; ft < m; ft++)
3719
- ut[ft] = Z[ft];
3720
- P = i.multCons(at, Math.sqrt(Math.abs(b))), K = i.multCons(ut, Math.sqrt(Math.abs($)));
3721
- };
3722
- f.connectComponents(c, h, f.getTopMostNodes(T), d), v.forEach(function(F) {
3723
- f.connectComponents(c, h, f.getTopMostNodes(F.descendants().intersection(h)), d);
3724
- });
3725
- for (var et = 0, z = 0; z < T.length; z++)
3726
- T[z].isParent() || N.set(T[z].id(), et++);
3727
- var O = !0, H = !1, B = void 0;
3728
- try {
3729
- for (var _ = d.keys()[Symbol.iterator](), lt; !(O = (lt = _.next()).done); O = !0) {
3730
- var J = lt.value;
3731
- N.set(J, et++);
3732
- }
3733
- } catch (F) {
3734
- H = !0, B = F;
3735
- } finally {
3736
- try {
3737
- !O && _.return && _.return();
3738
- } finally {
3739
- if (H)
3740
- throw B;
3741
- }
3742
- }
3743
- for (var Rt = 0; Rt < N.size; Rt++)
3744
- M[Rt] = [];
3745
- v.forEach(function(F) {
3746
- for (var b = F.children().intersection(h); b.nodes(":childless").length == 0; )
3747
- b = b.nodes()[0].children().intersection(h);
3748
- var $ = 0, Q = b.nodes(":childless")[0].connectedEdges().length;
3749
- b.nodes(":childless").forEach(function(Z, at) {
3750
- Z.connectedEdges().length < Q && (Q = Z.connectedEdges().length, $ = at);
3751
- }), S.set(F.id(), b.nodes(":childless")[$].id());
3752
- }), T.forEach(function(F) {
3753
- var b = void 0;
3754
- F.isParent() ? b = N.get(S.get(F.id())) : b = N.get(F.id()), F.neighborhood().nodes().forEach(function($) {
3755
- h.intersection(F.edgesWith($)).length > 0 && ($.isParent() ? M[b].push(S.get($.id())) : M[b].push($.id()));
3756
- });
3757
- });
3758
- var Lt = function(b) {
3759
- var $ = N.get(b), Q = void 0;
3760
- d.get(b).forEach(function(Z) {
3761
- c.getElementById(Z).isParent() ? Q = S.get(Z) : Q = Z, M[$].push(Q), M[N.get(Q)].push(b);
3762
- });
3763
- }, vt = !0, it = !1, gt = void 0;
3764
- try {
3765
- for (var Tt = d.keys()[Symbol.iterator](), At; !(vt = (At = Tt.next()).done); vt = !0) {
3766
- var Dt = At.value;
3767
- Lt(Dt);
3768
- }
3769
- } catch (F) {
3770
- it = !0, gt = F;
3771
- } finally {
3772
- try {
3773
- !vt && Tt.return && Tt.return();
3774
- } finally {
3775
- if (it)
3776
- throw gt;
3777
- }
3778
- }
3779
- m = N.size;
3780
- var mt = void 0;
3781
- if (m > 2) {
3782
- R = m < o.sampleSize ? m : o.sampleSize;
3783
- for (var xt = 0; xt < m; xt++)
3784
- D[xt] = [];
3785
- for (var St = 0; St < R; St++)
3786
- n[St] = [];
3787
- return o.quality == "draft" || o.step == "all" ? (q(I), V(), Y(), mt = { nodeIndexes: N, xCoords: P, yCoords: K }) : (N.forEach(function(F, b) {
3788
- P.push(c.getElementById(b).position("x")), K.push(c.getElementById(b).position("y"));
3789
- }), mt = { nodeIndexes: N, xCoords: P, yCoords: K }), mt;
3790
- } else {
3791
- var Vt = N.keys(), Xt = c.getElementById(Vt.next().value), Ut = Xt.position(), bt = Xt.outerWidth();
3792
- if (P.push(Ut.x), K.push(Ut.y), m == 2) {
3793
- var Ht = c.getElementById(Vt.next().value), Bt = Ht.outerWidth();
3794
- P.push(Ut.x + bt / 2 + Bt / 2 + o.idealEdgeLength), K.push(Ut.y);
3795
- }
3796
- return mt = { nodeIndexes: N, xCoords: P, yCoords: K }, mt;
3797
- }
3798
- };
3799
- a.exports = { spectralLayout: t };
3800
- }
3801
- ),
3802
- /***/
3803
- 579: (
3804
- /***/
3805
- (a, r, e) => {
3806
- var f = e(212), i = function(t) {
3807
- t && t("layout", "fcose", f);
3808
- };
3809
- typeof cytoscape < "u" && i(cytoscape), a.exports = i;
3810
- }
3811
- ),
3812
- /***/
3813
- 140: (
3814
- /***/
3815
- (a) => {
3816
- a.exports = A;
3817
- }
3818
- )
3819
- /******/
3820
- }, L = {};
3821
- function u(a) {
3822
- var r = L[a];
3823
- if (r !== void 0)
3824
- return r.exports;
3825
- var e = L[a] = {
3826
- /******/
3827
- // no module.id needed
3828
- /******/
3829
- // no module.loaded needed
3830
- /******/
3831
- exports: {}
3832
- /******/
3833
- };
3834
- return G[a](e, e.exports, u), e.exports;
3835
- }
3836
- var l = u(579);
3837
- return l;
3838
- })()
3839
- );
3840
- });
3841
- }(le)), le.exports;
3842
- }
3843
- var yr = pr();
3844
- const Er = /* @__PURE__ */ qe(yr);
3845
- var Se = {
3846
- L: "left",
3847
- R: "right",
3848
- T: "top",
3849
- B: "bottom"
3850
- }, Fe = {
3851
- L: /* @__PURE__ */ nt((C) => `${C},${C / 2} 0,${C} 0,0`, "L"),
3852
- R: /* @__PURE__ */ nt((C) => `0,${C / 2} ${C},0 ${C},${C}`, "R"),
3853
- T: /* @__PURE__ */ nt((C) => `0,0 ${C},0 ${C / 2},${C}`, "T"),
3854
- B: /* @__PURE__ */ nt((C) => `${C / 2},0 ${C},${C} 0,${C}`, "B")
3855
- }, he = {
3856
- L: /* @__PURE__ */ nt((C, U) => C - U + 2, "L"),
3857
- R: /* @__PURE__ */ nt((C, U) => C - 2, "R"),
3858
- T: /* @__PURE__ */ nt((C, U) => C - U + 2, "T"),
3859
- B: /* @__PURE__ */ nt((C, U) => C - 2, "B")
3860
- }, mr = /* @__PURE__ */ nt(function(C) {
3861
- return zt(C) ? C === "L" ? "R" : "L" : C === "T" ? "B" : "T";
3862
- }, "getOppositeArchitectureDirection"), be = /* @__PURE__ */ nt(function(C) {
3863
- const U = C;
3864
- return U === "L" || U === "R" || U === "T" || U === "B";
3865
- }, "isArchitectureDirection"), zt = /* @__PURE__ */ nt(function(C) {
3866
- const U = C;
3867
- return U === "L" || U === "R";
3868
- }, "isArchitectureDirectionX"), Qt = /* @__PURE__ */ nt(function(C) {
3869
- const U = C;
3870
- return U === "T" || U === "B";
3871
- }, "isArchitectureDirectionY"), Ce = /* @__PURE__ */ nt(function(C, U) {
3872
- const A = zt(C) && Qt(U), G = Qt(C) && zt(U);
3873
- return A || G;
3874
- }, "isArchitectureDirectionXY"), Tr = /* @__PURE__ */ nt(function(C) {
3875
- const U = C[0], A = C[1], G = zt(U) && Qt(A), L = Qt(U) && zt(A);
3876
- return G || L;
3877
- }, "isArchitecturePairXY"), Nr = /* @__PURE__ */ nt(function(C) {
3878
- return C !== "LL" && C !== "RR" && C !== "TT" && C !== "BB";
3879
- }, "isValidArchitectureDirectionPair"), Te = /* @__PURE__ */ nt(function(C, U) {
3880
- const A = `${C}${U}`;
3881
- return Nr(A) ? A : void 0;
3882
- }, "getArchitectureDirectionPair"), Lr = /* @__PURE__ */ nt(function([C, U], A) {
3883
- const G = A[0], L = A[1];
3884
- return zt(G) ? Qt(L) ? [C + (G === "L" ? -1 : 1), U + (L === "T" ? 1 : -1)] : [C + (G === "L" ? -1 : 1), U] : zt(L) ? [C + (L === "L" ? 1 : -1), U + (G === "T" ? 1 : -1)] : [C, U + (G === "T" ? 1 : -1)];
3885
- }, "shiftPositionByArchitectureDirectionPair"), Cr = /* @__PURE__ */ nt(function(C) {
3886
- return C === "LT" || C === "TL" ? [1, 1] : C === "BL" || C === "LB" ? [1, -1] : C === "BR" || C === "RB" ? [-1, -1] : [-1, 1];
3887
- }, "getArchitectureDirectionXYFactors"), Mr = /* @__PURE__ */ nt(function(C, U) {
3888
- return Ce(C, U) ? "bend" : zt(C) ? "horizontal" : "vertical";
3889
- }, "getArchitectureDirectionAlignment"), Ar = /* @__PURE__ */ nt(function(C) {
3890
- return C.type === "service";
3891
- }, "isArchitectureService"), wr = /* @__PURE__ */ nt(function(C) {
3892
- return C.type === "junction";
3893
- }, "isArchitectureJunction"), Ue = /* @__PURE__ */ nt((C) => C.data(), "edgeData"), ne = /* @__PURE__ */ nt((C) => C.data(), "nodeData"), Ye = nr.architecture, pt = new lr(() => ({
3894
- nodes: {},
3895
- groups: {},
3896
- edges: [],
3897
- registeredIds: {},
3898
- config: Ye,
3899
- dataStructures: void 0,
3900
- elements: {}
3901
- })), Or = /* @__PURE__ */ nt(() => {
3902
- pt.reset(), ir();
3903
- }, "clear"), Dr = /* @__PURE__ */ nt(function({
3904
- id: C,
3905
- icon: U,
3906
- in: A,
3907
- title: G,
3908
- iconText: L
3909
- }) {
3910
- if (pt.records.registeredIds[C] !== void 0)
3911
- throw new Error(
3912
- `The service id [${C}] is already in use by another ${pt.records.registeredIds[C]}`
3913
- );
3914
- if (A !== void 0) {
3915
- if (C === A)
3916
- throw new Error(`The service [${C}] cannot be placed within itself`);
3917
- if (pt.records.registeredIds[A] === void 0)
3918
- throw new Error(
3919
- `The service [${C}]'s parent does not exist. Please make sure the parent is created before this service`
3920
- );
3921
- if (pt.records.registeredIds[A] === "node")
3922
- throw new Error(`The service [${C}]'s parent is not a group`);
3923
- }
3924
- pt.records.registeredIds[C] = "node", pt.records.nodes[C] = {
3925
- id: C,
3926
- type: "service",
3927
- icon: U,
3928
- iconText: L,
3929
- title: G,
3930
- edges: [],
3931
- in: A
3932
- };
3933
- }, "addService"), xr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes).filter(Ar), "getServices"), Ir = /* @__PURE__ */ nt(function({ id: C, in: U }) {
3934
- pt.records.registeredIds[C] = "node", pt.records.nodes[C] = {
3935
- id: C,
3936
- type: "junction",
3937
- edges: [],
3938
- in: U
3939
- };
3940
- }, "addJunction"), Rr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes).filter(wr), "getJunctions"), Sr = /* @__PURE__ */ nt(() => Object.values(pt.records.nodes), "getNodes"), Ne = /* @__PURE__ */ nt((C) => pt.records.nodes[C], "getNode"), Fr = /* @__PURE__ */ nt(function({ id: C, icon: U, in: A, title: G }) {
3941
- if (pt.records.registeredIds[C] !== void 0)
3942
- throw new Error(
3943
- `The group id [${C}] is already in use by another ${pt.records.registeredIds[C]}`
3944
- );
3945
- if (A !== void 0) {
3946
- if (C === A)
3947
- throw new Error(`The group [${C}] cannot be placed within itself`);
3948
- if (pt.records.registeredIds[A] === void 0)
3949
- throw new Error(
3950
- `The group [${C}]'s parent does not exist. Please make sure the parent is created before this group`
3951
- );
3952
- if (pt.records.registeredIds[A] === "node")
3953
- throw new Error(`The group [${C}]'s parent is not a group`);
3954
- }
3955
- pt.records.registeredIds[C] = "group", pt.records.groups[C] = {
3956
- id: C,
3957
- icon: U,
3958
- title: G,
3959
- in: A
3960
- };
3961
- }, "addGroup"), br = /* @__PURE__ */ nt(() => Object.values(pt.records.groups), "getGroups"), Pr = /* @__PURE__ */ nt(function({
3962
- lhsId: C,
3963
- rhsId: U,
3964
- lhsDir: A,
3965
- rhsDir: G,
3966
- lhsInto: L,
3967
- rhsInto: u,
3968
- lhsGroup: l,
3969
- rhsGroup: a,
3970
- title: r
3971
- }) {
3972
- if (!be(A))
3973
- throw new Error(
3974
- `Invalid direction given for left hand side of edge ${C}--${U}. Expected (L,R,T,B) got ${A}`
3975
- );
3976
- if (!be(G))
3977
- throw new Error(
3978
- `Invalid direction given for right hand side of edge ${C}--${U}. Expected (L,R,T,B) got ${G}`
3979
- );
3980
- if (pt.records.nodes[C] === void 0 && pt.records.groups[C] === void 0)
3981
- throw new Error(
3982
- `The left-hand id [${C}] does not yet exist. Please create the service/group before declaring an edge to it.`
3983
- );
3984
- if (pt.records.nodes[U] === void 0 && pt.records.groups[C] === void 0)
3985
- throw new Error(
3986
- `The right-hand id [${U}] does not yet exist. Please create the service/group before declaring an edge to it.`
3987
- );
3988
- const e = pt.records.nodes[C].in, f = pt.records.nodes[U].in;
3989
- if (l && e && f && e == f)
3990
- throw new Error(
3991
- `The left-hand id [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
3992
- );
3993
- if (a && e && f && e == f)
3994
- throw new Error(
3995
- `The right-hand id [${U}] is modified to traverse the group boundary, but the edge does not pass through two groups.`
3996
- );
3997
- const i = {
3998
- lhsId: C,
3999
- lhsDir: A,
4000
- lhsInto: L,
4001
- lhsGroup: l,
4002
- rhsId: U,
4003
- rhsDir: G,
4004
- rhsInto: u,
4005
- rhsGroup: a,
4006
- title: r
4007
- };
4008
- pt.records.edges.push(i), pt.records.nodes[C] && pt.records.nodes[U] && (pt.records.nodes[C].edges.push(pt.records.edges[pt.records.edges.length - 1]), pt.records.nodes[U].edges.push(pt.records.edges[pt.records.edges.length - 1]));
4009
- }, "addEdge"), Gr = /* @__PURE__ */ nt(() => pt.records.edges, "getEdges"), Ur = /* @__PURE__ */ nt(() => {
4010
- if (pt.records.dataStructures === void 0) {
4011
- const C = {}, U = Object.entries(pt.records.nodes).reduce((a, [r, e]) => (a[r] = e.edges.reduce((f, i) => {
4012
- var s, o;
4013
- const g = (s = Ne(i.lhsId)) == null ? void 0 : s.in, t = (o = Ne(i.rhsId)) == null ? void 0 : o.in;
4014
- if (g && t && g !== t) {
4015
- const c = Mr(i.lhsDir, i.rhsDir);
4016
- c !== "bend" && (C[g] ?? (C[g] = {}), C[g][t] = c, C[t] ?? (C[t] = {}), C[t][g] = c);
4017
- }
4018
- if (i.lhsId === r) {
4019
- const c = Te(i.lhsDir, i.rhsDir);
4020
- c && (f[c] = i.rhsId);
4021
- } else {
4022
- const c = Te(i.rhsDir, i.lhsDir);
4023
- c && (f[c] = i.lhsId);
4024
- }
4025
- return f;
4026
- }, {}), a), {}), A = Object.keys(U)[0], G = { [A]: 1 }, L = Object.keys(U).reduce(
4027
- (a, r) => r === A ? a : { ...a, [r]: 1 },
4028
- {}
4029
- ), u = /* @__PURE__ */ nt((a) => {
4030
- const r = { [a]: [0, 0] }, e = [a];
4031
- for (; e.length > 0; ) {
4032
- const f = e.shift();
4033
- if (f) {
4034
- G[f] = 1, delete L[f];
4035
- const i = U[f], [g, t] = r[f];
4036
- Object.entries(i).forEach(([s, o]) => {
4037
- G[o] || (r[o] = Lr(
4038
- [g, t],
4039
- s
4040
- ), e.push(o));
4041
- });
4042
- }
4043
- }
4044
- return r;
4045
- }, "BFS"), l = [u(A)];
4046
- for (; Object.keys(L).length > 0; )
4047
- l.push(u(Object.keys(L)[0]));
4048
- pt.records.dataStructures = {
4049
- adjList: U,
4050
- spatialMaps: l,
4051
- groupAlignments: C
4052
- };
4053
- }
4054
- return pt.records.dataStructures;
4055
- }, "getDataStructures"), Yr = /* @__PURE__ */ nt((C, U) => {
4056
- pt.records.elements[C] = U;
4057
- }, "setElementForId"), Xr = /* @__PURE__ */ nt((C) => pt.records.elements[C], "getElementById"), ue = {
4058
- clear: Or,
4059
- setDiagramTitle: tr,
4060
- getDiagramTitle: _e,
4061
- setAccTitle: je,
4062
- getAccTitle: Ke,
4063
- setAccDescription: Qe,
4064
- getAccDescription: Je,
4065
- addService: Dr,
4066
- getServices: xr,
4067
- addJunction: Ir,
4068
- getJunctions: Rr,
4069
- getNodes: Sr,
4070
- getNode: Ne,
4071
- addGroup: Fr,
4072
- getGroups: br,
4073
- addEdge: Pr,
4074
- getEdges: Gr,
4075
- setElementForId: Yr,
4076
- getElementById: Xr,
4077
- getDataStructures: Ur
4078
- };
4079
- function Pt(C) {
4080
- const U = ge().architecture;
4081
- return U != null && U[C] ? U[C] : Ye[C];
4082
- }
4083
- nt(Pt, "getConfigField");
4084
- var Hr = /* @__PURE__ */ nt((C, U) => {
4085
- hr(C, U), C.groups.map(U.addGroup), C.services.map((A) => U.addService({ ...A, type: "service" })), C.junctions.map((A) => U.addJunction({ ...A, type: "junction" })), C.edges.map(U.addEdge);
4086
- }, "populateDb"), Wr = {
4087
- parse: /* @__PURE__ */ nt(async (C) => {
4088
- const U = await fr("architecture", C);
4089
- Pe.debug(U), Hr(U, ue);
4090
- }, "parse")
4091
- }, Vr = /* @__PURE__ */ nt((C) => `
4092
- .edge {
4093
- stroke-width: ${C.archEdgeWidth};
4094
- stroke: ${C.archEdgeColor};
4095
- fill: none;
4096
- }
4097
-
4098
- .arrow {
4099
- fill: ${C.archEdgeArrowColor};
4100
- }
4101
-
4102
- .node-bkg {
4103
- fill: none;
4104
- stroke: ${C.archGroupBorderColor};
4105
- stroke-width: ${C.archGroupBorderWidth};
4106
- stroke-dasharray: 8;
4107
- }
4108
- .node-icon-text {
4109
- display: flex;
4110
- align-items: center;
4111
- }
4112
-
4113
- .node-icon-text > div {
4114
- color: #fff;
4115
- margin: 1px;
4116
- height: fit-content;
4117
- text-align: center;
4118
- overflow: hidden;
4119
- display: -webkit-box;
4120
- -webkit-box-orient: vertical;
4121
- }
4122
- `, "getStyles"), zr = Vr, ae = /* @__PURE__ */ nt((C) => `<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${C}</g>`, "wrapIcon"), oe = {
4123
- prefix: "mermaid-architecture",
4124
- height: 80,
4125
- width: 80,
4126
- icons: {
4127
- database: {
4128
- body: ae(
4129
- '<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>'
4130
- )
4131
- },
4132
- server: {
4133
- body: ae(
4134
- '<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>'
4135
- )
4136
- },
4137
- disk: {
4138
- body: ae(
4139
- '<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>'
4140
- )
4141
- },
4142
- internet: {
4143
- body: ae(
4144
- '<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>'
4145
- )
4146
- },
4147
- cloud: {
4148
- body: ae(
4149
- '<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>'
4150
- )
4151
- },
4152
- unknown: sr,
4153
- blank: {
4154
- body: ae("")
4155
- }
4156
- }
4157
- }, Br = /* @__PURE__ */ nt(async function(C, U) {
4158
- const A = Pt("padding"), G = Pt("iconSize"), L = G / 2, u = G / 6, l = u / 2;
4159
- await Promise.all(
4160
- U.edges().map(async (a) => {
4161
- var P, K;
4162
- const {
4163
- source: r,
4164
- sourceDir: e,
4165
- sourceArrow: f,
4166
- sourceGroup: i,
4167
- target: g,
4168
- targetDir: t,
4169
- targetArrow: s,
4170
- targetGroup: o,
4171
- label: c
4172
- } = Ue(a);
4173
- let { x: h, y: T } = a[0].sourceEndpoint();
4174
- const { x: v, y: d } = a[0].midpoint();
4175
- let { x: N, y: S } = a[0].targetEndpoint();
4176
- const M = A + 4;
4177
- if (i && (zt(e) ? h += e === "L" ? -M : M : T += e === "T" ? -M : M + 18), o && (zt(t) ? N += t === "L" ? -M : M : S += t === "T" ? -M : M + 18), !i && ((P = ue.getNode(r)) == null ? void 0 : P.type) === "junction" && (zt(e) ? h += e === "L" ? L : -L : T += e === "T" ? L : -L), !o && ((K = ue.getNode(g)) == null ? void 0 : K.type) === "junction" && (zt(t) ? N += t === "L" ? L : -L : S += t === "T" ? L : -L), a[0]._private.rscratch) {
4178
- const X = C.insert("g");
4179
- if (X.insert("path").attr("d", `M ${h},${T} L ${v},${d} L${N},${S} `).attr("class", "edge"), f) {
4180
- const k = zt(e) ? he[e](h, u) : h - l, D = Qt(e) ? he[e](T, u) : T - l;
4181
- X.insert("polygon").attr("points", Fe[e](u)).attr("transform", `translate(${k},${D})`).attr("class", "arrow");
4182
- }
4183
- if (s) {
4184
- const k = zt(t) ? he[t](N, u) : N - l, D = Qt(t) ? he[t](S, u) : S - l;
4185
- X.insert("polygon").attr("points", Fe[t](u)).attr("transform", `translate(${k},${D})`).attr("class", "arrow");
4186
- }
4187
- if (c) {
4188
- const k = Ce(e, t) ? "XY" : zt(e) ? "X" : "Y";
4189
- let D = 0;
4190
- k === "X" ? D = Math.abs(h - N) : k === "Y" ? D = Math.abs(T - S) / 1.5 : D = Math.abs(h - N) / 2;
4191
- const rt = X.append("g");
4192
- if (await Le(
4193
- rt,
4194
- c,
4195
- {
4196
- useHtmlLabels: !1,
4197
- width: D,
4198
- classes: "architecture-service-label"
4199
- },
4200
- ge()
4201
- ), rt.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), k === "X")
4202
- rt.attr("transform", "translate(" + v + ", " + d + ")");
4203
- else if (k === "Y")
4204
- rt.attr("transform", "translate(" + v + ", " + d + ") rotate(-90)");
4205
- else if (k === "XY") {
4206
- const n = Te(e, t);
4207
- if (n && Tr(n)) {
4208
- const m = rt.node().getBoundingClientRect(), [p, E] = Cr(n);
4209
- rt.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * p * E * 45})`);
4210
- const y = rt.node().getBoundingClientRect();
4211
- rt.attr(
4212
- "transform",
4213
- `
4214
- translate(${v}, ${d - m.height / 2})
4215
- translate(${p * y.width / 2}, ${E * y.height / 2})
4216
- rotate(${-1 * p * E * 45}, 0, ${m.height / 2})
4217
- `
4218
- );
4219
- }
4220
- }
4221
- }
4222
- }
4223
- })
4224
- );
4225
- }, "drawEdges"), $r = /* @__PURE__ */ nt(async function(C, U) {
4226
- const G = Pt("padding") * 0.75, L = Pt("fontSize"), l = Pt("iconSize") / 2;
4227
- await Promise.all(
4228
- U.nodes().map(async (a) => {
4229
- const r = ne(a);
4230
- if (r.type === "group") {
4231
- const { h: e, w: f, x1: i, y1: g } = a.boundingBox();
4232
- C.append("rect").attr("x", i + l).attr("y", g + l).attr("width", f).attr("height", e).attr("class", "node-bkg");
4233
- const t = C.append("g");
4234
- let s = i, o = g;
4235
- if (r.icon) {
4236
- const c = t.append("g");
4237
- c.html(
4238
- `<g>${await me(r.icon, { height: G, width: G, fallbackPrefix: oe.prefix })}</g>`
4239
- ), c.attr(
4240
- "transform",
4241
- "translate(" + (s + l + 1) + ", " + (o + l + 1) + ")"
4242
- ), s += G, o += L / 2 - 1 - 2;
4243
- }
4244
- if (r.label) {
4245
- const c = t.append("g");
4246
- await Le(
4247
- c,
4248
- r.label,
4249
- {
4250
- useHtmlLabels: !1,
4251
- width: f,
4252
- classes: "architecture-service-label"
4253
- },
4254
- ge()
4255
- ), c.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "start").attr("text-anchor", "start"), c.attr(
4256
- "transform",
4257
- "translate(" + (s + l + 4) + ", " + (o + l + 2) + ")"
4258
- );
4259
- }
4260
- }
4261
- })
4262
- );
4263
- }, "drawGroups"), Zr = /* @__PURE__ */ nt(async function(C, U, A) {
4264
- for (const G of A) {
4265
- const L = U.append("g"), u = Pt("iconSize");
4266
- if (G.title) {
4267
- const e = L.append("g");
4268
- await Le(
4269
- e,
4270
- G.title,
4271
- {
4272
- useHtmlLabels: !1,
4273
- width: u * 1.5,
4274
- classes: "architecture-service-label"
4275
- },
4276
- ge()
4277
- ), e.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle"), e.attr("transform", "translate(" + u / 2 + ", " + u + ")");
4278
- }
4279
- const l = L.append("g");
4280
- if (G.icon)
4281
- l.html(
4282
- `<g>${await me(G.icon, { height: u, width: u, fallbackPrefix: oe.prefix })}</g>`
4283
- );
4284
- else if (G.iconText) {
4285
- l.html(
4286
- `<g>${await me("blank", { height: u, width: u, fallbackPrefix: oe.prefix })}</g>`
4287
- );
4288
- const i = l.append("g").append("foreignObject").attr("width", u).attr("height", u).append("div").attr("class", "node-icon-text").attr("style", `height: ${u}px;`).append("div").html(G.iconText), g = parseInt(
4289
- window.getComputedStyle(i.node(), null).getPropertyValue("font-size").replace(/\D/g, "")
4290
- ) ?? 16;
4291
- i.attr("style", `-webkit-line-clamp: ${Math.floor((u - 2) / g)};`);
4292
- } else
4293
- l.append("path").attr("class", "node-bkg").attr("id", "node-" + G.id).attr(
4294
- "d",
4295
- `M0 ${u} v${-u} q0,-5 5,-5 h${u} q5,0 5,5 v${u} H0 Z`
4296
- );
4297
- L.attr("class", "architecture-service");
4298
- const { width: a, height: r } = L._groups[0][0].getBBox();
4299
- G.width = a, G.height = r, C.setElementForId(G.id, L);
4300
- }
4301
- return 0;
4302
- }, "drawServices"), kr = /* @__PURE__ */ nt(function(C, U, A) {
4303
- A.forEach((G) => {
4304
- const L = U.append("g"), u = Pt("iconSize");
4305
- L.append("g").append("rect").attr("id", "node-" + G.id).attr("fill-opacity", "0").attr("width", u).attr("height", u), L.attr("class", "architecture-junction");
4306
- const { width: a, height: r } = L._groups[0][0].getBBox();
4307
- L.width = a, L.height = r, C.setElementForId(G.id, L);
4308
- });
4309
- }, "drawJunctions");
4310
- or([
4311
- {
4312
- name: oe.prefix,
4313
- icons: oe
4314
- }
4315
- ]);
4316
- Ge.use(Er);
4317
- function Xe(C, U) {
4318
- C.forEach((A) => {
4319
- U.add({
4320
- group: "nodes",
4321
- data: {
4322
- type: "service",
4323
- id: A.id,
4324
- icon: A.icon,
4325
- label: A.title,
4326
- parent: A.in,
4327
- width: Pt("iconSize"),
4328
- height: Pt("iconSize")
4329
- },
4330
- classes: "node-service"
4331
- });
4332
- });
4333
- }
4334
- nt(Xe, "addServices");
4335
- function He(C, U) {
4336
- C.forEach((A) => {
4337
- U.add({
4338
- group: "nodes",
4339
- data: {
4340
- type: "junction",
4341
- id: A.id,
4342
- parent: A.in,
4343
- width: Pt("iconSize"),
4344
- height: Pt("iconSize")
4345
- },
4346
- classes: "node-junction"
4347
- });
4348
- });
4349
- }
4350
- nt(He, "addJunctions");
4351
- function We(C, U) {
4352
- U.nodes().map((A) => {
4353
- const G = ne(A);
4354
- if (G.type === "group")
4355
- return;
4356
- G.x = A.position().x, G.y = A.position().y, C.getElementById(G.id).attr("transform", "translate(" + (G.x || 0) + "," + (G.y || 0) + ")");
4357
- });
4358
- }
4359
- nt(We, "positionNodes");
4360
- function Ve(C, U) {
4361
- C.forEach((A) => {
4362
- U.add({
4363
- group: "nodes",
4364
- data: {
4365
- type: "group",
4366
- id: A.id,
4367
- icon: A.icon,
4368
- label: A.title,
4369
- parent: A.in
4370
- },
4371
- classes: "node-group"
4372
- });
4373
- });
4374
- }
4375
- nt(Ve, "addGroups");
4376
- function ze(C, U) {
4377
- C.forEach((A) => {
4378
- const { lhsId: G, rhsId: L, lhsInto: u, lhsGroup: l, rhsInto: a, lhsDir: r, rhsDir: e, rhsGroup: f, title: i } = A, g = Ce(A.lhsDir, A.rhsDir) ? "segments" : "straight", t = {
4379
- id: `${G}-${L}`,
4380
- label: i,
4381
- source: G,
4382
- sourceDir: r,
4383
- sourceArrow: u,
4384
- sourceGroup: l,
4385
- sourceEndpoint: r === "L" ? "0 50%" : r === "R" ? "100% 50%" : r === "T" ? "50% 0" : "50% 100%",
4386
- target: L,
4387
- targetDir: e,
4388
- targetArrow: a,
4389
- targetGroup: f,
4390
- targetEndpoint: e === "L" ? "0 50%" : e === "R" ? "100% 50%" : e === "T" ? "50% 0" : "50% 100%"
4391
- };
4392
- U.add({
4393
- group: "edges",
4394
- data: t,
4395
- classes: g
4396
- });
4397
- });
4398
- }
4399
- nt(ze, "addEdges");
4400
- function Be(C, U, A) {
4401
- const G = /* @__PURE__ */ nt((a, r) => Object.entries(a).reduce(
4402
- (e, [f, i]) => {
4403
- var s;
4404
- let g = 0;
4405
- const t = Object.entries(i);
4406
- if (t.length === 1)
4407
- return e[f] = t[0][1], e;
4408
- for (let o = 0; o < t.length - 1; o++)
4409
- for (let c = o + 1; c < t.length; c++) {
4410
- const [h, T] = t[o], [v, d] = t[c];
4411
- if (((s = A[h]) == null ? void 0 : s[v]) === r)
4412
- e[f] ?? (e[f] = []), e[f] = [...e[f], ...T, ...d];
4413
- else if (h === "default" || v === "default")
4414
- e[f] ?? (e[f] = []), e[f] = [...e[f], ...T, ...d];
4415
- else {
4416
- const S = `${f}-${g++}`;
4417
- e[S] = T;
4418
- const M = `${f}-${g++}`;
4419
- e[M] = d;
4420
- }
4421
- }
4422
- return e;
4423
- },
4424
- {}
4425
- ), "flattenAlignments"), L = U.map((a) => {
4426
- const r = {}, e = {};
4427
- return Object.entries(a).forEach(([f, [i, g]]) => {
4428
- var s, o, c;
4429
- const t = ((s = C.getNode(f)) == null ? void 0 : s.in) ?? "default";
4430
- r[g] ?? (r[g] = {}), (o = r[g])[t] ?? (o[t] = []), r[g][t].push(f), e[i] ?? (e[i] = {}), (c = e[i])[t] ?? (c[t] = []), e[i][t].push(f);
4431
- }), {
4432
- horiz: Object.values(G(r, "horizontal")).filter(
4433
- (f) => f.length > 1
4434
- ),
4435
- vert: Object.values(G(e, "vertical")).filter(
4436
- (f) => f.length > 1
4437
- )
4438
- };
4439
- }), [u, l] = L.reduce(
4440
- ([a, r], { horiz: e, vert: f }) => [
4441
- [...a, ...e],
4442
- [...r, ...f]
4443
- ],
4444
- [[], []]
4445
- );
4446
- return {
4447
- horizontal: u,
4448
- vertical: l
4449
- };
4450
- }
4451
- nt(Be, "getAlignments");
4452
- function $e(C) {
4453
- const U = [], A = /* @__PURE__ */ nt((L) => `${L[0]},${L[1]}`, "posToStr"), G = /* @__PURE__ */ nt((L) => L.split(",").map((u) => parseInt(u)), "strToPos");
4454
- return C.forEach((L) => {
4455
- const u = Object.fromEntries(
4456
- Object.entries(L).map(([e, f]) => [A(f), e])
4457
- ), l = [A([0, 0])], a = {}, r = {
4458
- L: [-1, 0],
4459
- R: [1, 0],
4460
- T: [0, 1],
4461
- B: [0, -1]
4462
- };
4463
- for (; l.length > 0; ) {
4464
- const e = l.shift();
4465
- if (e) {
4466
- a[e] = 1;
4467
- const f = u[e];
4468
- if (f) {
4469
- const i = G(e);
4470
- Object.entries(r).forEach(([g, t]) => {
4471
- const s = A([i[0] + t[0], i[1] + t[1]]), o = u[s];
4472
- o && !a[s] && (l.push(s), U.push({
4473
- [Se[g]]: o,
4474
- [Se[mr(g)]]: f,
4475
- gap: 1.5 * Pt("iconSize")
4476
- }));
4477
- });
4478
- }
4479
- }
4480
- }
4481
- }), U;
4482
- }
4483
- nt($e, "getRelativeConstraints");
4484
- function Ze(C, U, A, G, L, { spatialMaps: u, groupAlignments: l }) {
4485
- return new Promise((a) => {
4486
- const r = ar("body").append("div").attr("id", "cy").attr("style", "display:none"), e = Ge({
4487
- container: document.getElementById("cy"),
4488
- style: [
4489
- {
4490
- selector: "edge",
4491
- style: {
4492
- "curve-style": "straight",
4493
- label: "data(label)",
4494
- "source-endpoint": "data(sourceEndpoint)",
4495
- "target-endpoint": "data(targetEndpoint)"
4496
- }
4497
- },
4498
- {
4499
- selector: "edge.segments",
4500
- style: {
4501
- "curve-style": "segments",
4502
- "segment-weights": "0",
4503
- "segment-distances": [0.5],
4504
- // @ts-ignore Incorrect library types
4505
- "edge-distances": "endpoints",
4506
- "source-endpoint": "data(sourceEndpoint)",
4507
- "target-endpoint": "data(targetEndpoint)"
4508
- }
4509
- },
4510
- {
4511
- selector: "node",
4512
- style: {
4513
- // @ts-ignore Incorrect library types
4514
- "compound-sizing-wrt-labels": "include"
4515
- }
4516
- },
4517
- {
4518
- selector: "node[label]",
4519
- style: {
4520
- "text-valign": "bottom",
4521
- "text-halign": "center",
4522
- "font-size": `${Pt("fontSize")}px`
4523
- }
4524
- },
4525
- {
4526
- selector: ".node-service",
4527
- style: {
4528
- label: "data(label)",
4529
- width: "data(width)",
4530
- height: "data(height)"
4531
- }
4532
- },
4533
- {
4534
- selector: ".node-junction",
4535
- style: {
4536
- width: "data(width)",
4537
- height: "data(height)"
4538
- }
4539
- },
4540
- {
4541
- selector: ".node-group",
4542
- style: {
4543
- // @ts-ignore Incorrect library types
4544
- padding: `${Pt("padding")}px`
4545
- }
4546
- }
4547
- ]
4548
- });
4549
- r.remove(), Ve(A, e), Xe(C, e), He(U, e), ze(G, e);
4550
- const f = Be(L, u, l), i = $e(u), g = e.layout({
4551
- name: "fcose",
4552
- quality: "proof",
4553
- styleEnabled: !1,
4554
- animate: !1,
4555
- nodeDimensionsIncludeLabels: !1,
4556
- // Adjust the edge parameters if it passes through the border of a group
4557
- // Hacky fix for: https://github.com/iVis-at-Bilkent/cytoscape.js-fcose/issues/67
4558
- idealEdgeLength(t) {
4559
- const [s, o] = t.connectedNodes(), { parent: c } = ne(s), { parent: h } = ne(o);
4560
- return c === h ? 1.5 * Pt("iconSize") : 0.5 * Pt("iconSize");
4561
- },
4562
- edgeElasticity(t) {
4563
- const [s, o] = t.connectedNodes(), { parent: c } = ne(s), { parent: h } = ne(o);
4564
- return c === h ? 0.45 : 1e-3;
4565
- },
4566
- alignmentConstraint: f,
4567
- relativePlacementConstraint: i
4568
- });
4569
- g.one("layoutstop", () => {
4570
- var s;
4571
- function t(o, c, h, T) {
4572
- let v, d;
4573
- const { x: N, y: S } = o, { x: M, y: P } = c;
4574
- d = (T - S + (N - h) * (S - P) / (N - M)) / Math.sqrt(1 + Math.pow((S - P) / (N - M), 2)), v = Math.sqrt(Math.pow(T - S, 2) + Math.pow(h - N, 2) - Math.pow(d, 2));
4575
- const K = Math.sqrt(Math.pow(M - N, 2) + Math.pow(P - S, 2));
4576
- v = v / K;
4577
- let X = (M - N) * (T - S) - (P - S) * (h - N);
4578
- switch (!0) {
4579
- case X >= 0:
4580
- X = 1;
4581
- break;
4582
- case X < 0:
4583
- X = -1;
4584
- break;
4585
- }
4586
- let k = (M - N) * (h - N) + (P - S) * (T - S);
4587
- switch (!0) {
4588
- case k >= 0:
4589
- k = 1;
4590
- break;
4591
- case k < 0:
4592
- k = -1;
4593
- break;
4594
- }
4595
- return d = Math.abs(d) * X, v = v * k, {
4596
- distances: d,
4597
- weights: v
4598
- };
4599
- }
4600
- nt(t, "getSegmentWeights"), e.startBatch();
4601
- for (const o of Object.values(e.edges()))
4602
- if ((s = o.data) != null && s.call(o)) {
4603
- const { x: c, y: h } = o.source().position(), { x: T, y: v } = o.target().position();
4604
- if (c !== T && h !== v) {
4605
- const d = o.sourceEndpoint(), N = o.targetEndpoint(), { sourceDir: S } = Ue(o), [M, P] = Qt(S) ? [d.x, N.y] : [N.x, d.y], { weights: K, distances: X } = t(d, N, M, P);
4606
- o.style("segment-distances", X), o.style("segment-weights", K);
4607
- }
4608
- }
4609
- e.endBatch(), g.run();
4610
- }), g.run(), e.ready((t) => {
4611
- Pe.info("Ready", t), a(e);
4612
- });
4613
- });
4614
- }
4615
- nt(Ze, "layoutArchitecture");
4616
- var qr = /* @__PURE__ */ nt(async (C, U, A, G) => {
4617
- const L = G.db, u = L.getServices(), l = L.getJunctions(), a = L.getGroups(), r = L.getEdges(), e = L.getDataStructures(), f = er(U), i = f.append("g");
4618
- i.attr("class", "architecture-edges");
4619
- const g = f.append("g");
4620
- g.attr("class", "architecture-services");
4621
- const t = f.append("g");
4622
- t.attr("class", "architecture-groups"), await Zr(L, g, u), kr(L, g, l);
4623
- const s = await Ze(u, l, a, r, L, e);
4624
- await Br(i, s), await $r(t, s), We(L, s), rr(void 0, f, Pt("padding"), Pt("useMaxWidth"));
4625
- }, "draw"), Jr = { draw: qr }, ei = {
4626
- parser: Wr,
4627
- db: ue,
4628
- renderer: Jr,
4629
- styles: zr
4630
- };
4631
- export {
4632
- ei as diagram
4633
- };