@leanspec/ui 0.2.22 → 0.2.24
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.
- package/README.md +1 -1
- package/dist/_baseUniq-0KC2LwTU.js +477 -0
- package/dist/arc-BF3pCZeb.js +83 -0
- package/dist/architecture-U656AL7Q-Dvz3aEBf.js +5 -0
- package/dist/architectureDiagram-VXUJARFQ-DUvgrr6M.js +4661 -0
- package/dist/assets/_baseUniq-zaVu3d-8.js +1 -0
- package/dist/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist/assets/apl-dKokRX4l.js +1 -0
- package/dist/assets/arc-CNsbs1Hc.js +1 -0
- package/dist/assets/architectureDiagram-VXUJARFQ-CNRNXzWH.js +36 -0
- package/dist/assets/astro-CbQHKStN.js +1 -0
- package/dist/assets/blade-D4QpJJKB.js +1 -0
- package/dist/assets/blockDiagram-VD42YOAC-B-z5fhLO.js +122 -0
- package/dist/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/assets/c4Diagram-YG6GDRKO-D1wRy3rn.js +10 -0
- package/dist/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/assets/channel-C1utiKyQ.js +1 -0
- package/dist/assets/chunk-4BX2VUAB-Ju0iuf5T.js +1 -0
- package/dist/assets/chunk-55IACEB6-BOKBDX1b.js +1 -0
- package/dist/assets/chunk-B4BG7PRW-DsLx2FWG.js +165 -0
- package/dist/assets/chunk-DI55MBZ5-DVZlU9hx.js +220 -0
- package/dist/assets/chunk-FMBD7UC4-DcibvRDC.js +15 -0
- package/dist/assets/chunk-QN33PNHL-CNdyoS13.js +1 -0
- package/dist/assets/chunk-QZHKN3VN-B6wDkRFR.js +1 -0
- package/dist/assets/chunk-TZMSLE5B-DiRAl639.js +1 -0
- package/dist/assets/classDiagram-2ON5EDUG-DHe9K9aJ.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-DHe9K9aJ.js +1 -0
- package/dist/assets/clone-BP5MKGQF.js +1 -0
- package/dist/assets/cobol-nwyudZeR.js +1 -0
- package/dist/assets/code-block-37QAKDTI-D0bYQ3tc.js +2 -0
- package/dist/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-C7eFSjsi.js +1 -0
- package/dist/assets/cpp-CofmeUqb.js +1 -0
- package/dist/assets/crystal-tKQVLTB8.js +1 -0
- package/dist/assets/csv-fuZLfV_i.js +1 -0
- package/dist/assets/dagre-6UL2VRFP-Chm9A17M.js +4 -0
- package/dist/assets/diagram-PSM6KHXK-CCbDlCx9.js +24 -0
- package/dist/assets/diagram-QEK2KX5R-Dtd49XA6.js +43 -0
- package/dist/assets/diagram-S2PKOQOG-0K2p7g5b.js +24 -0
- package/dist/assets/edge-BkV0erSs.js +1 -0
- package/dist/assets/elixir-CDX3lj18.js +1 -0
- package/dist/assets/elm-DbKCFpqz.js +1 -0
- package/dist/assets/erDiagram-Q2GNP2WA-jqGcgMyf.js +60 -0
- package/dist/assets/erb-BOJIQeun.js +1 -0
- package/dist/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/assets/flowDiagram-NV44I4VS-Dq-5nSyY.js +162 -0
- package/dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/assets/ganttDiagram-JELNMOA3-I2WySoN5.js +267 -0
- package/dist/assets/gdresource-B7Tvp0Sc.js +1 -0
- package/dist/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/assets/gitGraphDiagram-NY62KEGX-B-rqrf_i.js +65 -0
- package/dist/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist/assets/glsl-DplSGwfg.js +1 -0
- package/dist/assets/graph-BXq8Vy6g.js +1 -0
- package/dist/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/assets/hack-CaT9iCJl.js +1 -0
- package/dist/assets/haml-B8DHNrY2.js +1 -0
- package/dist/assets/handlebars-BL8al0AC.js +1 -0
- package/dist/assets/html-GMplVEZG.js +1 -0
- package/dist/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist/assets/http-jrhK8wxY.js +1 -0
- package/dist/assets/hurl-irOxFIW8.js +1 -0
- package/dist/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/assets/index-CiNlAQ9U.js +2224 -0
- package/dist/assets/index-CzAbEYUe.css +1 -0
- package/dist/assets/infoDiagram-WHAUD3N6-C7RcpAsC.js +2 -0
- package/dist/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist/assets/jison-wvAkD_A8.js +1 -0
- package/dist/assets/journeyDiagram-XKPGCS4Q-CzPy13x7.js +139 -0
- package/dist/assets/julia-CxzCAyBv.js +1 -0
- package/dist/assets/kanban-definition-3W4ZIXB7-BwjszvCG.js +89 -0
- package/dist/assets/kdl-DV7GczEv.js +1 -0
- package/dist/assets/latex-B4uzh10-.js +1 -0
- package/dist/assets/layout-tBkKcjOH.js +1 -0
- package/dist/assets/liquid-DYVedYrR.js +1 -0
- package/dist/assets/lua-BbnMAYS6.js +1 -0
- package/dist/assets/marko-DZsq8hO1.js +1 -0
- package/dist/assets/mdc-DUICxH0z.js +1 -0
- package/dist/assets/min-L_dIkaz8.js +1 -0
- package/dist/assets/mindmap-definition-VGOIOE7T-Dv_R0Kzs.js +68 -0
- package/dist/assets/nginx-DknmC5AR.js +1 -0
- package/dist/assets/nim-CVrawwO9.js +1 -0
- package/dist/assets/perl-C0TMdlhV.js +1 -0
- package/dist/assets/php-CDn_0X-4.js +1 -0
- package/dist/assets/pieDiagram-ADFJNKIX-DBdEQqzX.js +30 -0
- package/dist/assets/pug-CGlum2m_.js +1 -0
- package/dist/assets/qml-3beO22l8.js +1 -0
- package/dist/assets/quadrantDiagram-AYHSOK5B-DSe0t1Vr.js +7 -0
- package/dist/assets/razor-C1TweQQi.js +1 -0
- package/dist/assets/requirementDiagram-UZGBJVZJ-DINdLdJg.js +64 -0
- package/dist/assets/rst-B0xPkSld.js +1 -0
- package/dist/assets/ruby-BvKwtOVI.js +1 -0
- package/dist/assets/sankeyDiagram-TZEHDZUN-ByLK18cs.js +10 -0
- package/dist/assets/sas-cz2c8ADy.js +1 -0
- package/dist/assets/scss-OYdSNvt2.js +1 -0
- package/dist/assets/sequenceDiagram-WL72ISMW-BtwZoEF6.js +145 -0
- package/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/assets/soy-Brmx7dQM.js +1 -0
- package/dist/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/assets/stata-BH5u7GGu.js +1 -0
- package/dist/assets/stateDiagram-FKZM4ZOC-B_dGGh5t.js +1 -0
- package/dist/assets/stateDiagram-v2-4FDKWEC3-lqWWS4Yz.js +1 -0
- package/dist/assets/svelte-zxCyuUbr.js +1 -0
- package/dist/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/assets/templ-W15q3VgB.js +1 -0
- package/dist/assets/tex-CvyZ59Mk.js +1 -0
- package/dist/assets/timeline-definition-IT6M3QCI-BKq8fAVj.js +61 -0
- package/dist/assets/treemap-KMMF4GRG-DpzypmYP.js +128 -0
- package/dist/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist/assets/twig-CO9l9SDP.js +1 -0
- package/dist/assets/vue-DN_0RTcg.js +1 -0
- package/dist/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/assets/vue-vine-CQOfvN7w.js +1 -0
- package/dist/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/assets/xychartDiagram-PRI3JC2R-B2nRsBEy.js +7 -0
- package/dist/blockDiagram-VD42YOAC-C5CukG0j.js +2256 -0
- package/dist/c4Diagram-YG6GDRKO-D700bLUP.js +1580 -0
- package/dist/channel-Cti7M2bZ.js +5 -0
- package/dist/chunk-4BX2VUAB-CgLsIbqb.js +8 -0
- package/dist/chunk-55IACEB6-BlgtjLk2.js +8 -0
- package/dist/chunk-B4BG7PRW-B0F1XFJz.js +1375 -0
- package/dist/chunk-DI55MBZ5-DHtjqtxd.js +1370 -0
- package/dist/chunk-FMBD7UC4-d2R18kU3.js +19 -0
- package/dist/chunk-QN33PNHL-hc_HFHv7.js +19 -0
- package/dist/chunk-QZHKN3VN-DFrM02dn.js +15 -0
- package/dist/chunk-TZMSLE5B-BKKjuHyU.js +64 -0
- package/dist/classDiagram-2ON5EDUG-CWBGyk3O.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-CWBGyk3O.js +16 -0
- package/dist/clone-C-SjnjM3.js +8 -0
- package/dist/cose-bilkent-S5V4N54A-DP3AP0OF.js +2608 -0
- package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
- package/dist/dagre-6UL2VRFP-D9e9iL9P.js +443 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/diagram-PSM6KHXK-BpO0cxRG.js +531 -0
- package/dist/diagram-QEK2KX5R-CSMfjuPl.js +217 -0
- package/dist/diagram-S2PKOQOG-Csx2ehrH.js +142 -0
- package/dist/erDiagram-Q2GNP2WA-X4t9tzNA.js +841 -0
- package/dist/flowDiagram-NV44I4VS-JVEdioX6.js +1620 -0
- package/dist/ganttDiagram-JELNMOA3-BksGSOHP.js +2671 -0
- package/dist/gitGraph-F6HP7TQM-OK0kClD7.js +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-BRpBdTVE.js +699 -0
- package/dist/graph-Czb_7a7B.js +381 -0
- package/dist/icons/runners/amp.svg +6 -0
- package/dist/icons/runners/antigravity.svg +2 -0
- package/dist/icons/runners/claude.svg +1 -0
- package/dist/icons/runners/codex.svg +1 -0
- package/dist/icons/runners/copilot.svg +1 -0
- package/dist/icons/runners/cursor.svg +1 -0
- package/dist/icons/runners/droid.svg +8 -0
- package/dist/icons/runners/gemini.svg +1 -0
- package/dist/icons/runners/kiro.svg +11 -0
- package/dist/icons/runners/opencode.svg +1 -0
- package/dist/icons/runners/windsurf.svg +1 -0
- package/dist/index-iCTLJvaV.js +67305 -0
- package/dist/index.html +2 -2
- package/dist/info-NVLQJR56-BY80xctL.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-DWuyY_dJ.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-XKPGCS4Q-CrnINICH.js +834 -0
- package/dist/kanban-definition-3W4ZIXB7-64OgHBcl.js +719 -0
- package/dist/katex-r9TeExgs.js +11690 -0
- package/dist/layout-Bx4_X9_k.js +1441 -0
- package/dist/lib/App.d.ts +2 -0
- package/dist/lib/components/badge-config.d.ts +13 -0
- package/dist/lib/components/chat/chat-container.d.ts +16 -0
- package/dist/lib/components/chat/chat-history.d.ts +1 -0
- package/dist/lib/components/chat/chat-input.d.ts +8 -0
- package/dist/lib/components/chat/chat-message.d.ts +7 -0
- package/dist/lib/components/chat/chat-sidebar.d.ts +1 -0
- package/dist/lib/components/chat/enhanced-model-selector.d.ts +13 -0
- package/dist/lib/components/chat/index.d.ts +6 -0
- package/dist/lib/components/chat/inline-model-selector.d.ts +18 -0
- package/dist/lib/components/chat/model-picker.d.ts +13 -0
- package/dist/lib/components/chat/resize-handle.d.ts +9 -0
- package/dist/lib/components/chat/thinking-indicator.d.ts +4 -0
- package/dist/lib/components/chat/tool-result-registry.d.ts +6 -0
- package/dist/lib/components/chat/tool-result-utils.d.ts +12 -0
- package/dist/lib/components/context/context-client.d.ts +6 -0
- package/dist/lib/components/context/context-file-detail.d.ts +8 -0
- package/dist/lib/components/dashboard/activity-item.d.ts +9 -0
- package/dist/lib/components/dashboard/dashboard-client.d.ts +11 -0
- package/dist/lib/components/dashboard/spec-list-item.d.ts +8 -0
- package/dist/lib/components/dashboard/stat-card.d.ts +12 -0
- package/dist/lib/components/dependencies/constants.d.ts +7 -0
- package/dist/lib/components/dependencies/spec-node-types.d.ts +3 -0
- package/dist/lib/components/dependencies/spec-node.d.ts +4 -0
- package/dist/lib/components/dependencies/spec-sidebar.d.ts +8 -0
- package/dist/lib/components/dependencies/types.d.ts +31 -0
- package/dist/lib/components/dependencies/utils.d.ts +23 -0
- package/dist/lib/components/language-switcher.d.ts +1 -0
- package/dist/lib/components/layout.d.ts +13 -0
- package/dist/lib/components/library/ai-elements/agent.d.ts +26 -0
- package/dist/lib/components/library/ai-elements/artifact.d.ts +23 -0
- package/dist/lib/components/library/ai-elements/attachments.d.ts +54 -0
- package/dist/lib/components/library/ai-elements/audio-player.d.ts +29 -0
- package/dist/lib/components/library/ai-elements/canvas.d.ts +7 -0
- package/dist/lib/components/library/ai-elements/chain-of-thought.d.ts +29 -0
- package/dist/lib/components/library/ai-elements/checkpoint.d.ts +11 -0
- package/dist/lib/components/library/ai-elements/code-block.d.ts +47 -0
- package/dist/lib/components/library/ai-elements/commit.d.ts +64 -0
- package/dist/lib/components/library/ai-elements/confirmation.d.ts +49 -0
- package/dist/lib/components/library/ai-elements/connection.d.ts +2 -0
- package/dist/lib/components/library/ai-elements/context.d.ts +32 -0
- package/dist/lib/components/library/ai-elements/controls.d.ts +4 -0
- package/dist/lib/components/library/ai-elements/conversation.d.ts +15 -0
- package/dist/lib/components/library/ai-elements/edge.d.ts +5 -0
- package/dist/lib/components/library/ai-elements/environment-variables.d.ts +38 -0
- package/dist/lib/components/library/ai-elements/file-tree.d.ts +26 -0
- package/dist/lib/components/library/ai-elements/image.d.ts +6 -0
- package/dist/lib/components/library/ai-elements/index.d.ts +56 -0
- package/dist/lib/components/library/ai-elements/inline-citation.d.ts +38 -0
- package/dist/lib/components/library/ai-elements/loader.d.ts +5 -0
- package/dist/lib/components/library/ai-elements/message.d.ts +41 -0
- package/dist/lib/components/library/ai-elements/mic-selector.d.ts +45 -0
- package/dist/lib/components/library/ai-elements/model-selector.d.ts +35 -0
- package/dist/lib/components/library/ai-elements/node.d.ts +21 -0
- package/dist/lib/components/library/ai-elements/open-in-chat.d.ts +28 -0
- package/dist/lib/components/library/ai-elements/package-info.d.ts +29 -0
- package/dist/lib/components/library/ai-elements/panel.d.ts +5 -0
- package/dist/lib/components/library/ai-elements/persona.d.ts +48 -0
- package/dist/lib/components/library/ai-elements/plan.d.ts +25 -0
- package/dist/lib/components/library/ai-elements/prompt-input.d.ts +136 -0
- package/dist/lib/components/library/ai-elements/queue.d.ts +61 -0
- package/dist/lib/components/library/ai-elements/reasoning.d.ts +26 -0
- package/dist/lib/components/library/ai-elements/runner-logo.d.ts +33 -0
- package/dist/lib/components/library/ai-elements/sandbox.d.ts +24 -0
- package/dist/lib/components/library/ai-elements/schema-display.d.ts +55 -0
- package/dist/lib/components/library/ai-elements/shimmer.d.ts +9 -0
- package/dist/lib/components/library/ai-elements/snippet.d.ts +18 -0
- package/dist/lib/components/library/ai-elements/sources.d.ts +12 -0
- package/dist/lib/components/library/ai-elements/speech-input.d.ts +58 -0
- package/dist/lib/components/library/ai-elements/stack-trace.d.ts +37 -0
- package/dist/lib/components/library/ai-elements/suggestion.d.ts +10 -0
- package/dist/lib/components/library/ai-elements/task.d.ts +14 -0
- package/dist/lib/components/library/ai-elements/terminal.d.ts +27 -0
- package/dist/lib/components/library/ai-elements/test-results.d.ts +58 -0
- package/dist/lib/components/library/ai-elements/tool-duration.d.ts +12 -0
- package/dist/lib/components/library/ai-elements/tool-icon-registry.d.ts +26 -0
- package/dist/lib/components/library/ai-elements/tool-input-ui-view.d.ts +10 -0
- package/dist/lib/components/library/ai-elements/tool.d.ts +41 -0
- package/dist/lib/components/library/ai-elements/toolbar.d.ts +5 -0
- package/dist/lib/components/library/ai-elements/transcription.d.ts +16 -0
- package/dist/lib/components/library/ai-elements/voice-selector.d.ts +63 -0
- package/dist/lib/components/library/ai-elements/web-preview.d.ts +34 -0
- package/dist/lib/components/library/graph/dependency-graph.d.ts +26 -0
- package/dist/lib/components/library/graph/index.d.ts +2 -0
- package/dist/lib/components/library/hierarchy/hierarchy-tree.d.ts +23 -0
- package/dist/lib/components/library/hierarchy/index.d.ts +1 -0
- package/dist/lib/components/library/index.d.ts +10 -0
- package/dist/lib/components/library/layout/empty-state.d.ts +25 -0
- package/dist/lib/components/library/layout/index.d.ts +2 -0
- package/dist/lib/components/library/layout/loading-skeletons.d.ts +76 -0
- package/dist/lib/components/library/navigation/back-to-top.d.ts +15 -0
- package/dist/lib/components/library/navigation/index.d.ts +2 -0
- package/dist/lib/components/library/navigation/theme-toggle.d.ts +25 -0
- package/dist/lib/components/library/project/index.d.ts +4 -0
- package/dist/lib/components/library/project/project-avatar.d.ts +17 -0
- package/dist/lib/components/library/project/project-card.d.ts +41 -0
- package/dist/lib/components/library/project/project-dialog.d.ts +21 -0
- package/dist/lib/components/library/project/project-switcher.d.ts +27 -0
- package/dist/lib/components/library/search/filter-select.d.ts +27 -0
- package/dist/lib/components/library/search/index.d.ts +3 -0
- package/dist/lib/components/library/search/search-input.d.ts +22 -0
- package/dist/lib/components/library/search/search-results.d.ts +8 -0
- package/dist/lib/components/library/spec/index.d.ts +9 -0
- package/dist/lib/components/library/spec/priority-badge.d.ts +18 -0
- package/dist/lib/components/library/spec/priority-editor.d.ts +11 -0
- package/dist/lib/components/library/spec/spec-card.d.ts +16 -0
- package/dist/lib/components/library/spec/spec-metadata.d.ts +35 -0
- package/dist/lib/components/library/spec/spec-timeline.d.ts +21 -0
- package/dist/lib/components/library/spec/status-badge.d.ts +18 -0
- package/dist/lib/components/library/spec/status-editor.d.ts +11 -0
- package/dist/lib/components/library/spec/tag-badge.d.ts +29 -0
- package/dist/lib/components/library/spec/tags-editor.d.ts +23 -0
- package/dist/lib/components/library/stats/index.d.ts +3 -0
- package/dist/lib/components/library/stats/progress-bar.d.ts +19 -0
- package/dist/lib/components/library/stats/stats-card.d.ts +22 -0
- package/dist/lib/components/library/stats/stats-overview.d.ts +35 -0
- package/dist/lib/components/library/ui/accordion.d.ts +7 -0
- package/dist/lib/components/library/ui/alert.d.ts +8 -0
- package/dist/lib/components/library/ui/avatar.d.ts +15 -0
- package/dist/lib/components/library/ui/badge.d.ts +9 -0
- package/dist/lib/components/library/ui/button-group.d.ts +11 -0
- package/dist/lib/components/library/ui/button.d.ts +11 -0
- package/dist/lib/components/library/ui/card.d.ts +9 -0
- package/dist/lib/components/library/ui/carousel.d.ts +18 -0
- package/dist/lib/components/library/ui/collapsible.d.ts +5 -0
- package/dist/lib/components/library/ui/command.d.ts +80 -0
- package/dist/lib/components/library/ui/dialog.d.ts +19 -0
- package/dist/lib/components/library/ui/dropdown-menu.d.ts +27 -0
- package/dist/lib/components/library/ui/hover-card.d.ts +6 -0
- package/dist/lib/components/library/ui/index.d.ts +25 -0
- package/dist/lib/components/library/ui/input-group.d.ts +16 -0
- package/dist/lib/components/library/ui/input.d.ts +4 -0
- package/dist/lib/components/library/ui/popover.d.ts +7 -0
- package/dist/lib/components/library/ui/progress.d.ts +4 -0
- package/dist/lib/components/library/ui/scroll-area.d.ts +5 -0
- package/dist/lib/components/library/ui/select.d.ts +24 -0
- package/dist/lib/components/library/ui/separator.d.ts +5 -0
- package/dist/lib/components/library/ui/skeleton.d.ts +5 -0
- package/dist/lib/components/library/ui/switch.d.ts +4 -0
- package/dist/lib/components/library/ui/tabs.d.ts +7 -0
- package/dist/lib/components/library/ui/textarea.d.ts +3 -0
- package/dist/lib/components/library/ui/tooltip.d.ts +7 -0
- package/dist/lib/components/machine-switcher.d.ts +1 -0
- package/dist/lib/components/main-sidebar.d.ts +6 -0
- package/dist/lib/components/mermaid-diagram.d.ts +6 -0
- package/dist/lib/components/metadata-editors/priority-editor.d.ts +11 -0
- package/dist/lib/components/metadata-editors/status-editor.d.ts +11 -0
- package/dist/lib/components/metadata-editors/tags-editor.d.ts +12 -0
- package/dist/lib/components/metrics/token-progress-bar.d.ts +9 -0
- package/dist/lib/components/minimal-layout.d.ts +9 -0
- package/dist/lib/components/navigation.d.ts +9 -0
- package/dist/lib/components/priority-badge.d.ts +10 -0
- package/dist/lib/components/project-switcher.d.ts +10 -0
- package/dist/lib/components/projects/create-project-dialog.d.ts +6 -0
- package/dist/lib/components/projects/directory-picker.d.ts +9 -0
- package/dist/lib/components/quick-search.d.ts +1 -0
- package/dist/lib/components/relationships/relationship-section.d.ts +17 -0
- package/dist/lib/components/relationships/relationships-editor.d.ts +11 -0
- package/dist/lib/components/relationships/spec-search-picker.d.ts +11 -0
- package/dist/lib/components/root-redirect.d.ts +6 -0
- package/dist/lib/components/sessions/session-card.d.ts +7 -0
- package/dist/lib/components/sessions/session-create-dialog.d.ts +14 -0
- package/dist/lib/components/sessions/session-create-form.d.ts +7 -0
- package/dist/lib/components/sessions/session-logs-panel.d.ts +6 -0
- package/dist/lib/components/sessions/sessions-drawer.d.ts +1 -0
- package/dist/lib/components/settings/appearance-settings-tab.d.ts +1 -0
- package/dist/lib/components/settings/models-settings-tab.d.ts +1 -0
- package/dist/lib/components/settings/runner-settings-tab.d.ts +1 -0
- package/dist/lib/components/shared/back-to-top.d.ts +1 -0
- package/dist/lib/components/shared/color-picker.d.ts +7 -0
- package/dist/lib/components/shared/empty-state.d.ts +12 -0
- package/dist/lib/components/shared/error-boundary.d.ts +14 -0
- package/dist/lib/components/shared/markdown/enhanced-code-block.d.ts +7 -0
- package/dist/lib/components/shared/markdown/enhanced-table.d.ts +4 -0
- package/dist/lib/components/shared/markdown/index.d.ts +4 -0
- package/dist/lib/components/shared/markdown/markdown-components.d.ts +27 -0
- package/dist/lib/components/shared/markdown/utils.d.ts +3 -0
- package/dist/lib/components/shared/page-container.d.ts +10 -0
- package/dist/lib/components/shared/page-header.d.ts +8 -0
- package/dist/lib/components/shared/page-transition.d.ts +7 -0
- package/dist/lib/components/shared/project-avatar.d.ts +10 -0
- package/dist/lib/components/shared/search-filter-bar.d.ts +36 -0
- package/dist/lib/components/shared/sidebar-link.d.ts +14 -0
- package/dist/lib/components/shared/skeletons.d.ts +8 -0
- package/dist/lib/components/spec-detail/editable-metadata.d.ts +7 -0
- package/dist/lib/components/spec-detail/markdown-renderer.d.ts +9 -0
- package/dist/lib/components/spec-detail/session-panel.d.ts +6 -0
- package/dist/lib/components/spec-detail/table-of-contents.d.ts +6 -0
- package/dist/lib/components/spec-detail-layout.context.d.ts +5 -0
- package/dist/lib/components/spec-detail-layout.d.ts +1 -0
- package/dist/lib/components/specs/board-view.d.ts +15 -0
- package/dist/lib/components/specs/hierarchy-list.d.ts +15 -0
- package/dist/lib/components/specs/list-view.d.ts +16 -0
- package/dist/lib/components/specs/specs-filters.d.ts +30 -0
- package/dist/lib/components/specs/token-details-dialog.d.ts +10 -0
- package/dist/lib/components/specs/validation-dialog.d.ts +10 -0
- package/dist/lib/components/specs-nav-sidebar.d.ts +6 -0
- package/dist/lib/components/status-badge.d.ts +10 -0
- package/dist/lib/components/theme-toggle.d.ts +1 -0
- package/dist/lib/components/token-badge.d.ts +9 -0
- package/dist/lib/components/token-progress-bar.d.ts +8 -0
- package/dist/lib/components/tooltip.d.ts +1 -0
- package/dist/lib/components/umbrella-badge.d.ts +7 -0
- package/dist/lib/components/validation-badge.d.ts +12 -0
- package/dist/lib/components/wide-mode-toggle.d.ts +1 -0
- package/dist/lib/contexts/ChatContext.d.ts +25 -0
- package/dist/lib/contexts/KeyboardShortcutsContext.d.ts +23 -0
- package/dist/lib/contexts/ToastContext.d.ts +15 -0
- package/dist/lib/contexts/index.d.ts +3 -0
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/use-debounce.d.ts +8 -0
- package/dist/lib/hooks/use-local-storage.d.ts +4 -0
- package/dist/lib/hooks/use-media-query.d.ts +1 -0
- package/dist/lib/hooks/use-spec-sync.d.ts +12 -0
- package/dist/lib/hooks/useAutoTitle.d.ts +8 -0
- package/dist/lib/hooks/useChatConfigQuery.d.ts +44 -0
- package/dist/lib/hooks/useChatQuery.d.ts +23 -0
- package/dist/lib/hooks/useKeyboardShortcuts.d.ts +10 -0
- package/dist/lib/hooks/useModelsQuery.d.ts +22 -0
- package/dist/lib/hooks/useProjectQuery.d.ts +211 -0
- package/dist/lib/hooks/useProjectScopedStorage.d.ts +12 -0
- package/dist/lib/hooks/useSessionsQuery.d.ts +29 -0
- package/dist/lib/hooks/useSpecActionDialogs.d.ts +14 -0
- package/dist/lib/hooks/useSpecsQuery.d.ts +44 -0
- package/dist/lib/hooks/useSpecsSSE.d.ts +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +567 -0
- package/dist/lib/layouts/SettingsLayout.d.ts +1 -0
- package/dist/lib/lib/api.d.ts +135 -0
- package/dist/lib/lib/backend-adapter/core.d.ts +135 -0
- package/dist/lib/lib/backend-adapter/http.d.ts +126 -0
- package/dist/lib/lib/backend-adapter/index.d.ts +10 -0
- package/dist/lib/lib/backend-adapter/tauri.d.ts +121 -0
- package/dist/lib/lib/badge-config.d.ts +20 -0
- package/dist/lib/lib/chat-api.d.ts +38 -0
- package/dist/lib/lib/color-utils.d.ts +20 -0
- package/dist/lib/lib/date-utils.d.ts +16 -0
- package/dist/lib/lib/hierarchy.d.ts +17 -0
- package/dist/lib/lib/i18n.d.ts +2 -0
- package/dist/lib/lib/index.d.ts +5 -0
- package/dist/lib/lib/markdown-utils.d.ts +9 -0
- package/dist/lib/lib/project-scoped-storage.d.ts +31 -0
- package/dist/lib/lib/project-store-sync.d.ts +12 -0
- package/dist/lib/lib/query-client.d.ts +2 -0
- package/dist/lib/lib/session-utils.d.ts +8 -0
- package/dist/lib/lib/storage.d.ts +20 -0
- package/dist/lib/lib/sub-spec-utils.d.ts +17 -0
- package/dist/lib/lib/token-utils.d.ts +14 -0
- package/dist/lib/lib/use-chat.d.ts +41 -0
- package/dist/lib/lib/use-models-registry.d.ts +28 -0
- package/dist/lib/lib/utils.d.ts +8 -0
- package/dist/lib/library.d.ts +4 -0
- package/dist/lib/locales/en/common.json.d.ts +1422 -0
- package/dist/lib/locales/en/errors.json.d.ts +22 -0
- package/dist/lib/locales/en/help.json.d.ts +11 -0
- package/dist/lib/locales/zh-CN/common.json.d.ts +1421 -0
- package/dist/lib/locales/zh-CN/errors.json.d.ts +22 -0
- package/dist/lib/locales/zh-CN/help.json.d.ts +11 -0
- package/dist/lib/main.d.ts +0 -0
- package/dist/lib/pages/ChatSettingsPage.d.ts +1 -0
- package/dist/lib/pages/ContextPage.d.ts +6 -0
- package/dist/lib/pages/DashboardPage.d.ts +1 -0
- package/dist/lib/pages/DependenciesPage.d.ts +1 -0
- package/dist/lib/pages/MachinesPage.d.ts +1 -0
- package/dist/lib/pages/ProjectsPage.d.ts +1 -0
- package/dist/lib/pages/SessionDetailPage.d.ts +1 -0
- package/dist/lib/pages/SessionsPage.d.ts +1 -0
- package/dist/lib/pages/SettingsPage.d.ts +1 -0
- package/dist/lib/pages/SpecDetailPage.d.ts +1 -0
- package/dist/lib/pages/SpecsPage.d.ts +1 -0
- package/dist/lib/pages/StatsPage.d.ts +1 -0
- package/dist/lib/pages/settings/AppearanceSettingsPage.d.ts +1 -0
- package/dist/lib/pages/settings/ModelsSettingsPage.d.ts +1 -0
- package/dist/lib/pages/settings/RunnersSettingsPage.d.ts +1 -0
- package/dist/lib/router/projectRoutes.d.ts +9 -0
- package/dist/lib/router.d.ts +12 -0
- package/dist/lib/stores/chat-preferences.d.ts +28 -0
- package/dist/lib/stores/display.d.ts +19 -0
- package/dist/lib/stores/layout.d.ts +34 -0
- package/dist/lib/stores/machine.d.ts +16 -0
- package/dist/lib/stores/search.d.ts +19 -0
- package/dist/lib/stores/sessions-ui.d.ts +12 -0
- package/dist/lib/stores/settings-filters.d.ts +69 -0
- package/dist/lib/stores/specs-preferences.d.ts +57 -0
- package/dist/lib/stores/theme.d.ts +9 -0
- package/dist/lib/types/api.d.ts +294 -0
- package/dist/lib/types/chat-config.d.ts +29 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/models-registry.d.ts +65 -0
- package/dist/lib/types/specs.d.ts +170 -0
- package/dist/linear-D6e8ml0A.js +259 -0
- package/dist/logo-dark-bg-dev.svg +28 -0
- package/dist/logo-dev.svg +25 -0
- package/dist/logo-with-bg-dev.svg +28 -0
- package/dist/mermaid-parser.core-CJoVqMU2.js +14177 -0
- package/dist/min-D0H_bVmw.js +38 -0
- package/dist/mindmap-definition-VGOIOE7T-c7LG-I9l.js +784 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/packet-BFZMPI3H-Xg1qsh9M.js +5 -0
- package/dist/pie-7BOR55EZ-DTOFOZjt.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-Dq5FSMbe.js +161 -0
- package/dist/quadrantDiagram-AYHSOK5B-CSC6AaCS.js +1022 -0
- package/dist/radar-NHE76QYJ-C6sDWiPq.js +5 -0
- package/dist/requirementDiagram-UZGBJVZJ-B1VMLqi1.js +850 -0
- package/dist/sankeyDiagram-TZEHDZUN-5yhAl98J.js +810 -0
- package/dist/sequenceDiagram-WL72ISMW-BdRUPrKR.js +2511 -0
- package/dist/stateDiagram-FKZM4ZOC-ieQQjJqa.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-CMJV60i9.js +16 -0
- package/dist/timeline-definition-IT6M3QCI-CgpuLO53.js +795 -0
- package/dist/treemap-KMMF4GRG-C-mDpIlT.js +5 -0
- package/dist/ui.css +1 -0
- package/dist/xychartDiagram-PRI3JC2R-CQmC0pjv.js +1340 -0
- package/package.json +19 -13
- package/src/index.css +615 -0
- package/dist/assets/_baseUniq-D7Jo4wA--B2TRxPWE.js +0 -1
- package/dist/assets/_baseUniq-iT192ZJn.js +0 -1
- package/dist/assets/angular-html-DPB4Rf0C-BGgsGAY9.js +0 -1
- package/dist/assets/angular-ts-CTOR2ofC-k8fsuEIJ.js +0 -1
- package/dist/assets/apl-CjNiDgad-CT4Sbzkr.js +0 -1
- package/dist/assets/arc-BpF2CtTd.js +0 -1
- package/dist/assets/arc-bSbgZKu2-DL3rNhb4.js +0 -1
- package/dist/assets/architectureDiagram-VXUJARFQ-B9csKaKv-CjjNwF-J.js +0 -36
- package/dist/assets/architectureDiagram-VXUJARFQ-RJJR00DR.js +0 -36
- package/dist/assets/astro-CFFExE8Q-HUi9-hH-.js +0 -1
- package/dist/assets/blade-D0HyNvCw-B6w5bG5s.js +0 -1
- package/dist/assets/blockDiagram-VD42YOAC-1uTfdDe0.js +0 -122
- package/dist/assets/blockDiagram-VD42YOAC-DrRsdznF-BABvqVBT.js +0 -122
- package/dist/assets/bsl-NkNNwerW-COH_2WFP.js +0 -1
- package/dist/assets/c4Diagram-YG6GDRKO-Di2rkJ8i-Ds0QfElR.js +0 -10
- package/dist/assets/c4Diagram-YG6GDRKO-f40n5_vc.js +0 -10
- package/dist/assets/cairo-DM6WF2e3-DtzH3ucv.js +0 -1
- package/dist/assets/channel-B6afjgOL.js +0 -1
- package/dist/assets/channel-CTeTHv-y-DAoPNf9o.js +0 -1
- package/dist/assets/chunk-4BX2VUAB-BWm6jvkB.js +0 -1
- package/dist/assets/chunk-4BX2VUAB-Dkr-Egsj-hwESrSLd.js +0 -1
- package/dist/assets/chunk-55IACEB6-D_uwi6CC-CwcdTnFf.js +0 -1
- package/dist/assets/chunk-55IACEB6-SXD_npDw.js +0 -1
- package/dist/assets/chunk-B4BG7PRW-BipBIVhj-1FtWONL8.js +0 -165
- package/dist/assets/chunk-B4BG7PRW-UGjCd_Gn.js +0 -165
- package/dist/assets/chunk-DI55MBZ5-8tWOlvAD-Cye13dPz.js +0 -220
- package/dist/assets/chunk-DI55MBZ5-BQAFhPjX.js +0 -220
- package/dist/assets/chunk-FMBD7UC4-CLc8_72--CGehZjII.js +0 -15
- package/dist/assets/chunk-FMBD7UC4-GQVp2u3C.js +0 -15
- package/dist/assets/chunk-QN33PNHL-QKH9jByz-BVKajMNG.js +0 -1
- package/dist/assets/chunk-QN33PNHL-xEzemp3c.js +0 -1
- package/dist/assets/chunk-QZHKN3VN-BPpgPA2g-DfaPwKB_.js +0 -1
- package/dist/assets/chunk-QZHKN3VN-DmaRauNH.js +0 -1
- package/dist/assets/chunk-TZMSLE5B-Bx7Kyzw7.js +0 -1
- package/dist/assets/chunk-TZMSLE5B-Coq49FaX-CdOY_0Y9.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-DDdP3lEc.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-DYaKkEXb-BMs1bhMY.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-DDdP3lEc.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-DYaKkEXb-BMs1bhMY.js +0 -1
- package/dist/assets/clone-B4FGNCC9.js +0 -1
- package/dist/assets/clone-Ctm6tjrV-cgncjIrI.js +0 -1
- package/dist/assets/cobol-HihOMwht-CEH5cA2t.js +0 -1
- package/dist/assets/code-block-37QAKDTI-3zaK1Sok-DkWCKnjc.js +0 -2
- package/dist/assets/coffee-DGBR_nr_-BGq2hPi0.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-OjaorTGT.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-iUMgKFJZ-CcWe6Gov.js +0 -1
- package/dist/assets/cpp-Cj177cuW-CX9fafSh.js +0 -1
- package/dist/assets/crystal-CRJyc4G--DiK3qIky.js +0 -1
- package/dist/assets/csv-CmYOceLb-Co7V7EpZ.js +0 -1
- package/dist/assets/cytoscape.esm-Cvf3sx9F-DgU3JdRZ.js +0 -321
- package/dist/assets/dagre-6UL2VRFP-BLazRBE2.js +0 -4
- package/dist/assets/dagre-6UL2VRFP-CKc2IEbO-CPlhk_ig.js +0 -4
- package/dist/assets/defaultLocale-D7EN2tov-DTlwZUNI.js +0 -1
- package/dist/assets/diagram-PSM6KHXK-Cz_Zed26.js +0 -24
- package/dist/assets/diagram-PSM6KHXK-DERIvROx-B9mGRCGq.js +0 -24
- package/dist/assets/diagram-QEK2KX5R-B6CdcylU-lSCL2dm4.js +0 -43
- package/dist/assets/diagram-QEK2KX5R-BAMwQLy8.js +0 -43
- package/dist/assets/diagram-S2PKOQOG-5f_4uCtF-CUC-ZBue.js +0 -24
- package/dist/assets/diagram-S2PKOQOG-v5vZ9P70.js +0 -24
- package/dist/assets/edge-BYQkOzbF-DYO1BWoQ.js +0 -1
- package/dist/assets/elixir-Dh036GMp-Bmki-TVL.js +0 -1
- package/dist/assets/elm-BtNbw_Cd-Bp18OckW.js +0 -1
- package/dist/assets/erDiagram-Q2GNP2WA-CnN7DF_N-yqb-l1CZ.js +0 -60
- package/dist/assets/erDiagram-Q2GNP2WA-DFCKi0mZ.js +0 -60
- package/dist/assets/erb-CS4zioBv-CIsDXqOo.js +0 -1
- package/dist/assets/erlang-DNcDT8Hi-BWqZUIhL.js +0 -1
- package/dist/assets/flowDiagram-NV44I4VS-3Rq7lbgS.js +0 -162
- package/dist/assets/flowDiagram-NV44I4VS-Dl3ZZj2W-C9K7yiSN.js +0 -162
- package/dist/assets/fortran-fixed-form-B67KFkXH-D1ymqiEx.js +0 -1
- package/dist/assets/fsharp-CYOiIVNx-C_zLmMdw.js +0 -1
- package/dist/assets/ganttDiagram-JELNMOA3-D76DQdCK.js +0 -267
- package/dist/assets/ganttDiagram-JELNMOA3-q87tSGGF-CKPOItTI.js +0 -267
- package/dist/assets/gdresource-BwtMIoBm-DAu1Gww7.js +0 -1
- package/dist/assets/git-commit-Bd32YZ0K-DKnZnecv.js +0 -1
- package/dist/assets/git-rebase-ZWUFO_T4-PODeWoq4.js +0 -1
- package/dist/assets/gitGraphDiagram-NY62KEGX-Db2iqJeU.js +0 -65
- package/dist/assets/gitGraphDiagram-NY62KEGX-NeHUXng4-DDlIETSy.js +0 -65
- package/dist/assets/glimmer-js-DkxNrfPT-CYvKIGv7.js +0 -1
- package/dist/assets/glimmer-ts-D6YZEmK_-BwkeDeeu.js +0 -1
- package/dist/assets/glsl-CkUcVZNK-Bf0UjSP5.js +0 -1
- package/dist/assets/graph-D9RB6DwV.js +0 -1
- package/dist/assets/graph-Da1z0n_J-yJ-tLMG7.js +0 -1
- package/dist/assets/graphql-CBu2ehBn-Cr253Gy9.js +0 -1
- package/dist/assets/hack-ItRNKiEb-Dz4s7CVj.js +0 -1
- package/dist/assets/haml-NZLVzu_R-C8mKtd0e.js +0 -1
- package/dist/assets/handlebars-mxStpSE7-B5GnhLue.js +0 -1
- package/dist/assets/html-B50bmoVb-Cb86E5ej.js +0 -1
- package/dist/assets/html-derivative-C6bxFbFW-Iy97gZi_.js +0 -1
- package/dist/assets/http-DLvAkeD--BNfsu0Nw.js +0 -1
- package/dist/assets/hurl-CgkFN90t-RkzLjdXO.js +0 -1
- package/dist/assets/hxml-GbqSQCLa-MyDbT556.js +0 -1
- package/dist/assets/index-B7GqH6If.js +0 -2542
- package/dist/assets/index-Blg_AJgc.css +0 -1
- package/dist/assets/infoDiagram-WHAUD3N6-CgNeND0m.js +0 -2
- package/dist/assets/infoDiagram-WHAUD3N6-Cj-s-gtw-B2FbdsVb.js +0 -2
- package/dist/assets/init-DjUOC4st-DHuO7-vr.js +0 -1
- package/dist/assets/jinja-CFW5uAwY-CRnS6Ysd.js +0 -1
- package/dist/assets/jison-DdreslRX-C_aDQymB.js +0 -1
- package/dist/assets/journeyDiagram-XKPGCS4Q-BbXXFBC--Cb6ONhr6.js +0 -139
- package/dist/assets/journeyDiagram-XKPGCS4Q-D0meuzwF.js +0 -139
- package/dist/assets/julia-CZiKXNNP-DuHOepf6.js +0 -1
- package/dist/assets/kanban-definition-3W4ZIXB7-BCx2MTD3.js +0 -89
- package/dist/assets/kanban-definition-3W4ZIXB7-ClCUbNCO-DyL1fJFZ.js +0 -89
- package/dist/assets/katex-XbL3y5x-.js +0 -261
- package/dist/assets/kdl-BNOv9TC3-U6gkEhfw.js +0 -1
- package/dist/assets/latex-DLWszopg-CIi2Hdhz.js +0 -1
- package/dist/assets/layout-BoJlbrAK-CAQ1YqzH.js +0 -1
- package/dist/assets/layout-DFWNR-Y1.js +0 -1
- package/dist/assets/linear-4rmylyIU-DexK5wO7.js +0 -1
- package/dist/assets/liquid-CHzkx3jT-zQly3uxw.js +0 -1
- package/dist/assets/lua-kX5WP_P5-BiSz3S93.js +0 -1
- package/dist/assets/marko-Ns9BYtDO-BWXOr_MP.js +0 -1
- package/dist/assets/mdc-uaivvctV-DArzT8kn.js +0 -1
- package/dist/assets/min-C8aXS73f-D0DvW8t2.js +0 -1
- package/dist/assets/min-CRMSN7nx.js +0 -1
- package/dist/assets/mindmap-definition-VGOIOE7T-BGABgSVt.js +0 -68
- package/dist/assets/mindmap-definition-VGOIOE7T-BRNm-2aJ-DQQO6TMa.js +0 -68
- package/dist/assets/nginx-5vhPAEw3-DWisHew1.js +0 -1
- package/dist/assets/nim-QAjRdh9w-DCY1hsTS.js +0 -1
- package/dist/assets/ordinal-B6-f3MAq-Pc8f3NoK.js +0 -1
- package/dist/assets/perl-DkVrgJBg-BOYFiEPK.js +0 -1
- package/dist/assets/php-j2zCzTEz-D4sqbyu8.js +0 -1
- package/dist/assets/pieDiagram-ADFJNKIX-BAPQcD4y.js +0 -30
- package/dist/assets/pieDiagram-ADFJNKIX-BVRqurYx-QWWibrkj.js +0 -30
- package/dist/assets/pug-XOw9Q1Ho-ibTSJqKJ.js +0 -1
- package/dist/assets/qml-rTNXsquU-ChczqDSS.js +0 -1
- package/dist/assets/quadrantDiagram-AYHSOK5B-CcsZBY3e-DjxqpMlH.js +0 -7
- package/dist/assets/quadrantDiagram-AYHSOK5B-kNxQZTX1.js +0 -7
- package/dist/assets/razor-C5CyrFEt-BEqhH4vI.js +0 -1
- package/dist/assets/requirementDiagram-UZGBJVZJ-BZ08al2Y.js +0 -64
- package/dist/assets/requirementDiagram-UZGBJVZJ-CV5SUGj--Crvo94rv.js +0 -64
- package/dist/assets/rst-CcbeA9zE-DJw32adD.js +0 -1
- package/dist/assets/ruby-DMPw6uKF-che4axXI.js +0 -1
- package/dist/assets/sankeyDiagram-TZEHDZUN-BFPvVGcz-DAajH7lE.js +0 -10
- package/dist/assets/sankeyDiagram-TZEHDZUN-BQT0X4qe.js +0 -10
- package/dist/assets/sas-fpEvgATw-BHxbuS_h.js +0 -1
- package/dist/assets/scss-B1FaCqwR-D5j8Lzl0.js +0 -1
- package/dist/assets/sequenceDiagram-WL72ISMW-BcmegQjZ.js +0 -145
- package/dist/assets/sequenceDiagram-WL72ISMW-CQ5u3b_o-B7RzlL6P.js +0 -145
- package/dist/assets/shaderlab-Cr62-Wb4-DBlXx3uy.js +0 -1
- package/dist/assets/shellsession-DiDJNQdy-DyhC3EVy.js +0 -1
- package/dist/assets/soy-C1-6njHa-gzSMiW6X.js +0 -1
- package/dist/assets/sparql-B0KWFEri-hRQCfo7w.js +0 -1
- package/dist/assets/stata-B8c5fTjX-C93OJGXX.js +0 -1
- package/dist/assets/stateDiagram-FKZM4ZOC-C-u3YY-3.js +0 -1
- package/dist/assets/stateDiagram-FKZM4ZOC-zOb-V3pD-D2k2TVkN.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CvvobAsa.js +0 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-_Mzc1jVl-lAsEHEbp.js +0 -1
- package/dist/assets/svelte-CYf4HR3U-CATdMkt-.js +0 -1
- package/dist/assets/talonscript-CFF3LF_O-Cc6Jm0TJ.js +0 -1
- package/dist/assets/templ-peLZIM2D-BFctp3GS.js +0 -1
- package/dist/assets/tex-BvKThJ8p-DLMkzFBl.js +0 -1
- package/dist/assets/timeline-definition-IT6M3QCI-B2T2QrC5-eoEFP1Po.js +0 -61
- package/dist/assets/timeline-definition-IT6M3QCI-Dx4HH0C5.js +0 -61
- package/dist/assets/treemap-KMMF4GRG-DfaADvmb.js +0 -128
- package/dist/assets/treemap-KMMF4GRG-wB3pBnFc-DQrUn2c6.js +0 -128
- package/dist/assets/ts-tags-ioVe2PKw-KHYt7rNi.js +0 -1
- package/dist/assets/twig-CcRLVyUg-C7btHcUR.js +0 -1
- package/dist/assets/vue-DXEmyXn9-Bb3W6Xr4.js +0 -1
- package/dist/assets/vue-html-j9xNEdu3-CHybns-J.js +0 -1
- package/dist/assets/vue-vine-D41-N99t-CQUxmJgq.js +0 -1
- package/dist/assets/xml-C2J0sS9M-wPCL2nsB.js +0 -1
- package/dist/assets/xsl-BmSZphgC-CVyS_1ZI.js +0 -1
- package/dist/assets/xychartDiagram-PRI3JC2R-BSPghzKh-CYIgkUk9.js +0 -7
- package/dist/assets/xychartDiagram-PRI3JC2R-DusIzSwm.js +0 -7
- /package/dist/assets/{abap-Y8Dl9g_6-BdImnpbu.js → abap-BdImnpbu.js} +0 -0
- /package/dist/assets/{actionscript-3-DZzbMeqX-CfeIJUat.js → actionscript-3-CfeIJUat.js} +0 -0
- /package/dist/assets/{ada-vP6ak0IW-bCR0ucgS.js → ada-bCR0ucgS.js} +0 -0
- /package/dist/assets/{andromeeda-BIpZ7gaU-C-Jbm3Hp.js → andromeeda-C-Jbm3Hp.js} +0 -0
- /package/dist/assets/{apache-BUjz-sD2-Pmp26Uib.js → apache-Pmp26Uib.js} +0 -0
- /package/dist/assets/{apex-OyTfjCYK-D8_7TLub.js → apex-D8_7TLub.js} +0 -0
- /package/dist/assets/{applescript-BPx7YFFu-Co6uUVPk.js → applescript-Co6uUVPk.js} +0 -0
- /package/dist/assets/{ara-Z2fSOxSw-BRHolxvo.js → ara-BRHolxvo.js} +0 -0
- /package/dist/assets/{asciidoc-B-pCoB3G-Dv7Oe6Be.js → asciidoc-Dv7Oe6Be.js} +0 -0
- /package/dist/assets/{asm-BTWLY5ym-D_Q5rh1f.js → asm-D_Q5rh1f.js} +0 -0
- /package/dist/assets/{aurora-x-BwoVEUWZ-D-2ljcwZ.js → aurora-x-D-2ljcwZ.js} +0 -0
- /package/dist/assets/{awk-Fb0P9dkn-DMzUqQB5.js → awk-DMzUqQB5.js} +0 -0
- /package/dist/assets/{ayu-dark-DG7aLdHp-CmMr59Fi.js → ayu-dark-CmMr59Fi.js} +0 -0
- /package/dist/assets/{ballerina-oZK-YekG-BFfxhgS-.js → ballerina-BFfxhgS-.js} +0 -0
- /package/dist/assets/{bat-0FvbqU9S-BkioyH1T.js → bat-BkioyH1T.js} +0 -0
- /package/dist/assets/{beancount-DqJEb89h-k_qm7-4y.js → beancount-k_qm7-4y.js} +0 -0
- /package/dist/assets/{berry-DODBq_Ff-uYugtg8r.js → berry-uYugtg8r.js} +0 -0
- /package/dist/assets/{bibtex-EULQRLY5-CHM0blh-.js → bibtex-CHM0blh-.js} +0 -0
- /package/dist/assets/{bicep-BorU73w0-Bmn6On1c.js → bicep-Bmn6On1c.js} +0 -0
- /package/dist/assets/{c-eeMepfLm-BIGW1oBm.js → c-BIGW1oBm.js} +0 -0
- /package/dist/assets/{c3-Bt581sCe-VCDPK7BO.js → c3-VCDPK7BO.js} +0 -0
- /package/dist/assets/{cadence-02UX7mW8-Bv_4Rxtq.js → cadence-Bv_4Rxtq.js} +0 -0
- /package/dist/assets/{catppuccin-frappe-D3cH2rXe-DFWUc33u.js → catppuccin-frappe-DFWUc33u.js} +0 -0
- /package/dist/assets/{catppuccin-latte-C0LRGUW4-C9dUb6Cb.js → catppuccin-latte-C9dUb6Cb.js} +0 -0
- /package/dist/assets/{catppuccin-macchiato-c5wQ11TT-DQyhUUbL.js → catppuccin-macchiato-DQyhUUbL.js} +0 -0
- /package/dist/assets/{catppuccin-mocha-WMD6Qvya-D87Tk5Gz.js → catppuccin-mocha-D87Tk5Gz.js} +0 -0
- /package/dist/assets/{clarity-PKm5CwqM-D53aC0YG.js → clarity-D53aC0YG.js} +0 -0
- /package/dist/assets/{clojure-CXJfHrL3-P80f7IUj.js → clojure-P80f7IUj.js} +0 -0
- /package/dist/assets/{cmake-BJz8BOTU-D1j8_8rp.js → cmake-D1j8_8rp.js} +0 -0
- /package/dist/assets/{codeowners-Bt9yU6NX-Bp6g37R7.js → codeowners-Bp6g37R7.js} +0 -0
- /package/dist/assets/{codeql-DHkodjjI-DsOJ9woJ.js → codeql-DsOJ9woJ.js} +0 -0
- /package/dist/assets/{common-lisp-EVqT9Zhp-Cg-RD9OK.js → common-lisp-Cg-RD9OK.js} +0 -0
- /package/dist/assets/{coq-B0L9upzn-DkFqJrB1.js → coq-DkFqJrB1.js} +0 -0
- /package/dist/assets/{csharp-C7yUs7-w-K5feNrxe.js → csharp-K5feNrxe.js} +0 -0
- /package/dist/assets/{css-CECN5uSL-DPfMkruS.js → css-DPfMkruS.js} +0 -0
- /package/dist/assets/{cue-ZzumE7IT-D82EKSYY.js → cue-D82EKSYY.js} +0 -0
- /package/dist/assets/{cypher-jpdmjtA6-COkxafJQ.js → cypher-COkxafJQ.js} +0 -0
- /package/dist/assets/{d-CBagWSwH-85-TOEBH.js → d-85-TOEBH.js} +0 -0
- /package/dist/assets/{dark-plus-pUHDTVV0-C3mMm8J8.js → dark-plus-C3mMm8J8.js} +0 -0
- /package/dist/assets/{dart-6ObCrKr9-CF10PKvl.js → dart-CF10PKvl.js} +0 -0
- /package/dist/assets/{dax-CcDT-8dH-CEL-wOlO.js → dax-CEL-wOlO.js} +0 -0
- /package/dist/assets/{desktop-B93p9R9O-BmXAJ9_W.js → desktop-BmXAJ9_W.js} +0 -0
- /package/dist/assets/{diff-BxzP2J8R-D97Zzqfu.js → diff-D97Zzqfu.js} +0 -0
- /package/dist/assets/{docker-CsHqm9tx-BcOcwvcX.js → docker-BcOcwvcX.js} +0 -0
- /package/dist/assets/{dotenv-BMjVjUL1-Da5cRb03.js → dotenv-Da5cRb03.js} +0 -0
- /package/dist/assets/{dracula-BtZx2Kac-BzJJZx-M.js → dracula-BzJJZx-M.js} +0 -0
- /package/dist/assets/{dracula-soft-BKa-aqBv-BXkSAIEj.js → dracula-soft-BXkSAIEj.js} +0 -0
- /package/dist/assets/{dream-maker-PAx17jaB-BtqSS_iP.js → dream-maker-BtqSS_iP.js} +0 -0
- /package/dist/assets/{emacs-lisp-Cfxdx5D--C9XAeP06.js → emacs-lisp-C9XAeP06.js} +0 -0
- /package/dist/assets/{everforest-dark-DMCBqXCK-BgDCqdQA.js → everforest-dark-BgDCqdQA.js} +0 -0
- /package/dist/assets/{everforest-light-BbXl82Em-C8M2exoo.js → everforest-light-C8M2exoo.js} +0 -0
- /package/dist/assets/{fennel-N4WcXuKx-BYunw83y.js → fennel-BYunw83y.js} +0 -0
- /package/dist/assets/{fish-BTDEUgqH-BvzEVeQv.js → fish-BvzEVeQv.js} +0 -0
- /package/dist/assets/{fluent-BMXUxfv1-C4IJs8-o.js → fluent-C4IJs8-o.js} +0 -0
- /package/dist/assets/{fortran-free-form-CwqYvCLJ-BxgE0vQu.js → fortran-free-form-BxgE0vQu.js} +0 -0
- /package/dist/assets/{gdscript-BifyeYhI-DTMYz4Jt.js → gdscript-DTMYz4Jt.js} +0 -0
- /package/dist/assets/{gdshader-Bk8fF6yr-DkwncUOv.js → gdshader-DkwncUOv.js} +0 -0
- /package/dist/assets/{genie-DzUvd7U9-D0YGMca9.js → genie-D0YGMca9.js} +0 -0
- /package/dist/assets/{gherkin-DHRaV0YP-DyxjwDmM.js → gherkin-DyxjwDmM.js} +0 -0
- /package/dist/assets/{github-dark-DenFmJkN-DHJKELXO.js → github-dark-DHJKELXO.js} +0 -0
- /package/dist/assets/{github-dark-default-BJPUVz4H-Cuk6v7N8.js → github-dark-default-Cuk6v7N8.js} +0 -0
- /package/dist/assets/{github-dark-dimmed-DUshB20C-DH5Ifo-i.js → github-dark-dimmed-DH5Ifo-i.js} +0 -0
- /package/dist/assets/{github-dark-high-contrast-D3aGCnF8-E3gJ1_iC.js → github-dark-high-contrast-E3gJ1_iC.js} +0 -0
- /package/dist/assets/{github-light-JYsPkUQd-DAi9KRSo.js → github-light-DAi9KRSo.js} +0 -0
- /package/dist/assets/{github-light-default-D99KPAby-D7oLnXFd.js → github-light-default-D7oLnXFd.js} +0 -0
- /package/dist/assets/{github-light-high-contrast-BbmZE-Mp-BfjtVDDH.js → github-light-high-contrast-BfjtVDDH.js} +0 -0
- /package/dist/assets/{gleam-Bv284lvN-BspZqrRM.js → gleam-BspZqrRM.js} +0 -0
- /package/dist/assets/{gn-XtJxiLa4-n2N0HUVH.js → gn-n2N0HUVH.js} +0 -0
- /package/dist/assets/{gnuplot-yPG9-sE_-DdkO51Og.js → gnuplot-DdkO51Og.js} +0 -0
- /package/dist/assets/{go-ChxJuLYK-Dn2_MT6a.js → go-Dn2_MT6a.js} +0 -0
- /package/dist/assets/{groovy-CJQTphOW-gcz8RCvz.js → groovy-gcz8RCvz.js} +0 -0
- /package/dist/assets/{gruvbox-dark-hard-C5HOtKIh-CFHQjOhq.js → gruvbox-dark-hard-CFHQjOhq.js} +0 -0
- /package/dist/assets/{gruvbox-dark-medium-FVgwJHuz-GsRaNv29.js → gruvbox-dark-medium-GsRaNv29.js} +0 -0
- /package/dist/assets/{gruvbox-dark-soft-B46F314v-CVdnzihN.js → gruvbox-dark-soft-CVdnzihN.js} +0 -0
- /package/dist/assets/{gruvbox-light-hard-CJD38wDZ-CH1njM8p.js → gruvbox-light-hard-CH1njM8p.js} +0 -0
- /package/dist/assets/{gruvbox-light-medium-BlIhMYTA-DRw_LuNl.js → gruvbox-light-medium-DRw_LuNl.js} +0 -0
- /package/dist/assets/{gruvbox-light-soft-DoPHyLVZ-hJgmCMqR.js → gruvbox-light-soft-hJgmCMqR.js} +0 -0
- /package/dist/assets/{haskell-WeIwNIP6-Df6bDoY_.js → haskell-Df6bDoY_.js} +0 -0
- /package/dist/assets/{haxe-TztHsm5T-CzTSHFRz.js → haxe-CzTSHFRz.js} +0 -0
- /package/dist/assets/{hcl-D438OF-I-BWvSN4gD.js → hcl-BWvSN4gD.js} +0 -0
- /package/dist/assets/{hjson-DYBUbqOl-D5-asLiD.js → hjson-D5-asLiD.js} +0 -0
- /package/dist/assets/{hlsl-Bk8TCZNL-D3lLCCz7.js → hlsl-D3lLCCz7.js} +0 -0
- /package/dist/assets/{houston-BDYrDoDW-DnULxvSX.js → houston-DnULxvSX.js} +0 -0
- /package/dist/assets/{hy-Brt5EZ7--DFXneXwc.js → hy-DFXneXwc.js} +0 -0
- /package/dist/assets/{imba-CimUv-Uh-DGztddWO.js → imba-DGztddWO.js} +0 -0
- /package/dist/assets/{ini-BZIuRIvJ-BEwlwnbL.js → ini-BEwlwnbL.js} +0 -0
- /package/dist/assets/{java-DY6VlHhP-CylS5w8V.js → java-CylS5w8V.js} +0 -0
- /package/dist/assets/{javascript-C25yR2R2-wDzz0qaB.js → javascript-wDzz0qaB.js} +0 -0
- /package/dist/assets/{json-DxJze_jm-Cp-IABpG.js → json-Cp-IABpG.js} +0 -0
- /package/dist/assets/{json5-BT4Fjg39-C9tS-k6U.js → json5-C9tS-k6U.js} +0 -0
- /package/dist/assets/{jsonc-CHjZD8gR-Des-eS-w.js → jsonc-Des-eS-w.js} +0 -0
- /package/dist/assets/{jsonl-BGuvDmy9-DcaNXYhu.js → jsonl-DcaNXYhu.js} +0 -0
- /package/dist/assets/{jsonnet-Bx2cfsXg-DFQXde-d.js → jsonnet-DFQXde-d.js} +0 -0
- /package/dist/assets/{jssm-BcADi6EI-C2t-YnRu.js → jssm-C2t-YnRu.js} +0 -0
- /package/dist/assets/{jsx-BtKADgXT-g9-lgVsj.js → jsx-g9-lgVsj.js} +0 -0
- /package/dist/assets/{kanagawa-dragon-CiKur4Hl-CkXjmgJE.js → kanagawa-dragon-CkXjmgJE.js} +0 -0
- /package/dist/assets/{kanagawa-lotus-BKu-smKu-CfQXZHmo.js → kanagawa-lotus-CfQXZHmo.js} +0 -0
- /package/dist/assets/{kanagawa-wave-CQwozSzG-DWedfzmr.js → kanagawa-wave-DWedfzmr.js} +0 -0
- /package/dist/assets/{kotlin-ByBMgTeR-BdnUsdx6.js → kotlin-BdnUsdx6.js} +0 -0
- /package/dist/assets/{kusto-DH_XitHS-DZf3V79B.js → kusto-DZf3V79B.js} +0 -0
- /package/dist/assets/{laserwave-6a00oqik-DUszq2jm.js → laserwave-DUszq2jm.js} +0 -0
- /package/dist/assets/{lean-BnVxaZxY-BZvkOJ9d.js → lean-BZvkOJ9d.js} +0 -0
- /package/dist/assets/{less-B1GLI2Di-B1dDrJ26.js → less-B1dDrJ26.js} +0 -0
- /package/dist/assets/{light-plus-CZuVqSLX-B7mTdjB0.js → light-plus-B7mTdjB0.js} +0 -0
- /package/dist/assets/{llvm-co1rIKs3-BtvRca6l.js → llvm-BtvRca6l.js} +0 -0
- /package/dist/assets/{log-Al8wyEFV-2UxHyX5q.js → log-2UxHyX5q.js} +0 -0
- /package/dist/assets/{logo-DBa4JDzV-BtOb2qkB.js → logo-BtOb2qkB.js} +0 -0
- /package/dist/assets/{luau-UQyhudEE-C-HG3fhB.js → luau-C-HG3fhB.js} +0 -0
- /package/dist/assets/{make-CsMclxtr-CHLpvVh8.js → make-CHLpvVh8.js} +0 -0
- /package/dist/assets/{markdown-CrScaQ96-Cvjx9yec.js → markdown-Cvjx9yec.js} +0 -0
- /package/dist/assets/{material-theme-D6KBX41T-D5KoaKCx.js → material-theme-D5KoaKCx.js} +0 -0
- /package/dist/assets/{material-theme-darker-CkRroheE-BfHTSMKl.js → material-theme-darker-BfHTSMKl.js} +0 -0
- /package/dist/assets/{material-theme-lighter-BUBw43Yz-B0m2ddpp.js → material-theme-lighter-B0m2ddpp.js} +0 -0
- /package/dist/assets/{material-theme-ocean-ClGX14Ja-CyktbL80.js → material-theme-ocean-CyktbL80.js} +0 -0
- /package/dist/assets/{material-theme-palenight-C1RVm8K1-Csfq5Kiy.js → material-theme-palenight-Csfq5Kiy.js} +0 -0
- /package/dist/assets/{matlab-BOAaUVP0-D7o27uSR.js → matlab-D7o27uSR.js} +0 -0
- /package/dist/assets/{mdx-BOhZZUJ8-Cmh6b_Ma.js → mdx-Cmh6b_Ma.js} +0 -0
- /package/dist/assets/{mermaid-C3rz4dYh-mWjccvbQ.js → mermaid-mWjccvbQ.js} +0 -0
- /package/dist/assets/{min-dark-C7ak0t6c-CafNBF8u.js → min-dark-CafNBF8u.js} +0 -0
- /package/dist/assets/{min-light-CKFxVcPp-CTRr51gU.js → min-light-CTRr51gU.js} +0 -0
- /package/dist/assets/{mipsasm-CTx18fBl-CKIfxQSi.js → mipsasm-CKIfxQSi.js} +0 -0
- /package/dist/assets/{mojo-CgKe2b8g-B93PlW-d.js → mojo-B93PlW-d.js} +0 -0
- /package/dist/assets/{monokai-C1KBYcO0-D4h5O-jR.js → monokai-D4h5O-jR.js} +0 -0
- /package/dist/assets/{moonbit-NVPuhMCm-Ba13S78F.js → moonbit-Ba13S78F.js} +0 -0
- /package/dist/assets/{move-F-dICmj2-Bu9oaDYs.js → move-Bu9oaDYs.js} +0 -0
- /package/dist/assets/{narrat-DmhDCBs--DRg8JJMk.js → narrat-DRg8JJMk.js} +0 -0
- /package/dist/assets/{nextflow-DmSVRGjG-BrzmwbiE.js → nextflow-BrzmwbiE.js} +0 -0
- /package/dist/assets/{night-owl-Bm2rzalh-C39BiMTA.js → night-owl-C39BiMTA.js} +0 -0
- /package/dist/assets/{nix-fTRXMGic-CwoSXNpI.js → nix-CwoSXNpI.js} +0 -0
- /package/dist/assets/{nord-CC5OiUXg-Ddv68eIx.js → nord-Ddv68eIx.js} +0 -0
- /package/dist/assets/{nushell-D8j3dhT--C-sUppwS.js → nushell-C-sUppwS.js} +0 -0
- /package/dist/assets/{objective-c-Itk8tzmv-DXmwc3jG.js → objective-c-DXmwc3jG.js} +0 -0
- /package/dist/assets/{objective-cpp-DGt5UKRO-CLxacb5B.js → objective-cpp-CLxacb5B.js} +0 -0
- /package/dist/assets/{ocaml-eSVK32Eg-C0hk2d4L.js → ocaml-C0hk2d4L.js} +0 -0
- /package/dist/assets/{one-dark-pro-DTA3VF0_-DVMEJ2y_.js → one-dark-pro-DVMEJ2y_.js} +0 -0
- /package/dist/assets/{one-light-D9sNaUtq-PoHY5YXO.js → one-light-PoHY5YXO.js} +0 -0
- /package/dist/assets/{openscad-Sp5uZ6f2-C4EeE6gA.js → openscad-C4EeE6gA.js} +0 -0
- /package/dist/assets/{pascal-xy8pJNns-D93ZcfNL.js → pascal-D93ZcfNL.js} +0 -0
- /package/dist/assets/{pkl-C-zSNmaA-u5AG7uiY.js → pkl-u5AG7uiY.js} +0 -0
- /package/dist/assets/{plastic-CSTz3KZp-3e1v2bzS.js → plastic-3e1v2bzS.js} +0 -0
- /package/dist/assets/{plsql-pVbGZfOv-ChMvpjG-.js → plsql-ChMvpjG-.js} +0 -0
- /package/dist/assets/{po-BNfHvqmm-BTJTHyun.js → po-BTJTHyun.js} +0 -0
- /package/dist/assets/{poimandres-C-VADXHD-CS3Unz2-.js → poimandres-CS3Unz2-.js} +0 -0
- /package/dist/assets/{polar-CAZahv3u-C0HS_06l.js → polar-C0HS_06l.js} +0 -0
- /package/dist/assets/{postcss-05aHdL-n-CXtECtnM.js → postcss-CXtECtnM.js} +0 -0
- /package/dist/assets/{powerquery-DI9HkTvs-CEu0bR-o.js → powerquery-CEu0bR-o.js} +0 -0
- /package/dist/assets/{powershell-Clc4ydu--Dpen1YoG.js → powershell-Dpen1YoG.js} +0 -0
- /package/dist/assets/{prisma-FZjmVtSl-Dd19v3D-.js → prisma-Dd19v3D-.js} +0 -0
- /package/dist/assets/{prolog-C5-yg4TO-CbFg5uaA.js → prolog-CbFg5uaA.js} +0 -0
- /package/dist/assets/{proto-C7QgialS-C7zT0LnQ.js → proto-C7zT0LnQ.js} +0 -0
- /package/dist/assets/{puppet-CUJHmnxV-BMWR74SV.js → puppet-BMWR74SV.js} +0 -0
- /package/dist/assets/{purescript-rUfGld-4-CklMAg4u.js → purescript-CklMAg4u.js} +0 -0
- /package/dist/assets/{python-BFNSHbwJ-B6aJPvgy.js → python-B6aJPvgy.js} +0 -0
- /package/dist/assets/{qmldir-BInDYbpo-C8lEn-DE.js → qmldir-C8lEn-DE.js} +0 -0
- /package/dist/assets/{qss-AeJTysr_-IeuSbFQv.js → qss-IeuSbFQv.js} +0 -0
- /package/dist/assets/{r-CSmzDPi7-Dspwwk_N.js → r-Dspwwk_N.js} +0 -0
- /package/dist/assets/{racket-B83wSAja-BqYA7rlc.js → racket-BqYA7rlc.js} +0 -0
- /package/dist/assets/{raku-nEQ4ZJJ7-DXvB9xmW.js → raku-DXvB9xmW.js} +0 -0
- /package/dist/assets/{red-7y8PH7HH-bN70gL4F.js → red-bN70gL4F.js} +0 -0
- /package/dist/assets/{reg-m_s_Kiip-C-SQnVFl.js → reg-C-SQnVFl.js} +0 -0
- /package/dist/assets/{regexp-BazyLpPg-CDVJQ6XC.js → regexp-CDVJQ6XC.js} +0 -0
- /package/dist/assets/{rel-BcRfyd6Q-C3B-1QV4.js → rel-C3B-1QV4.js} +0 -0
- /package/dist/assets/{riscv-Ce8MAQLP-BM1_JUlF.js → riscv-BM1_JUlF.js} +0 -0
- /package/dist/assets/{rose-pine-dawn-BulJcPZT-DHQR4-dF.js → rose-pine-dawn-DHQR4-dF.js} +0 -0
- /package/dist/assets/{rose-pine-moon-j6jiXKV8-D4_iv3hh.js → rose-pine-moon-D4_iv3hh.js} +0 -0
- /package/dist/assets/{rose-pine-BKc3yVeu-qdsjHGoJ.js → rose-pine-qdsjHGoJ.js} +0 -0
- /package/dist/assets/{rosmsg-Cz0w1km8-BJDFO7_C.js → rosmsg-BJDFO7_C.js} +0 -0
- /package/dist/assets/{rust-CLzF9zIN-B1yitclQ.js → rust-B1yitclQ.js} +0 -0
- /package/dist/assets/{sass-DxHp5rTx-Cj5Yp3dK.js → sass-Cj5Yp3dK.js} +0 -0
- /package/dist/assets/{scala-D4grkFkl-C151Ov-r.js → scala-C151Ov-r.js} +0 -0
- /package/dist/assets/{scheme-BCRWuEm4-C98Dy4si.js → scheme-C98Dy4si.js} +0 -0
- /package/dist/assets/{sdbl-B7T8abf4-DVxCFoDh.js → sdbl-DVxCFoDh.js} +0 -0
- /package/dist/assets/{shellscript-InADTalH-Yzrsuije.js → shellscript-Yzrsuije.js} +0 -0
- /package/dist/assets/{slack-dark-i7wN4OET-BthQWCQV.js → slack-dark-BthQWCQV.js} +0 -0
- /package/dist/assets/{slack-ochin-ndHf0LoP-DqwNpetd.js → slack-ochin-DqwNpetd.js} +0 -0
- /package/dist/assets/{smalltalk-BlI1_OkM-BERRCDM3.js → smalltalk-BERRCDM3.js} +0 -0
- /package/dist/assets/{snazzy-light-BlSJXAu4-Bw305WKR.js → snazzy-light-Bw305WKR.js} +0 -0
- /package/dist/assets/{solarized-dark-UTmkh7lw-DXbdFlpD.js → solarized-dark-DXbdFlpD.js} +0 -0
- /package/dist/assets/{solarized-light-BheCkDPT-L9t79GZl.js → solarized-light-L9t79GZl.js} +0 -0
- /package/dist/assets/{solidity-DUWnFhS6-rGO070M0.js → solidity-rGO070M0.js} +0 -0
- /package/dist/assets/{splunk-CRXR8A9s-BtCnVYZw.js → splunk-BtCnVYZw.js} +0 -0
- /package/dist/assets/{sql-Cn_v3PB0-BLtJtn59.js → sql-BLtJtn59.js} +0 -0
- /package/dist/assets/{ssh-config-DP-hNVbF-_ykCGR6B.js → ssh-config-_ykCGR6B.js} +0 -0
- /package/dist/assets/{stylus-CyKEU1Ej-BEDo0Tqx.js → stylus-BEDo0Tqx.js} +0 -0
- /package/dist/assets/{swift-9UzSvamq-Dg5xB15N.js → swift-Dg5xB15N.js} +0 -0
- /package/dist/assets/{synthwave-84-NU3C_KFZ-CbfX1IO0.js → synthwave-84-CbfX1IO0.js} +0 -0
- /package/dist/assets/{system-verilog-BCm7smPJ-CnnmHF94.js → system-verilog-CnnmHF94.js} +0 -0
- /package/dist/assets/{systemd-C-4qm6XH-4A_iFExJ.js → systemd-4A_iFExJ.js} +0 -0
- /package/dist/assets/{tasl-Cg_WBUAe-QIJgUcNo.js → tasl-QIJgUcNo.js} +0 -0
- /package/dist/assets/{tcl-DN7buRTF-dwOrl1Do.js → tcl-dwOrl1Do.js} +0 -0
- /package/dist/assets/{terraform-DGvcn9zM-BETggiCN.js → terraform-BETggiCN.js} +0 -0
- /package/dist/assets/{tokyo-night-DP4TmcQl-hegEt444.js → tokyo-night-hegEt444.js} +0 -0
- /package/dist/assets/{toml-DY62mUL_-vGWfd6FD.js → toml-vGWfd6FD.js} +0 -0
- /package/dist/assets/{tsv-BtvSkaG0-B_m7g4N7.js → tsv-B_m7g4N7.js} +0 -0
- /package/dist/assets/{tsx-B8rCNbgL-COt5Ahok.js → tsx-COt5Ahok.js} +0 -0
- /package/dist/assets/{turtle-_H59FV7D-BsS91CYL.js → turtle-BsS91CYL.js} +0 -0
- /package/dist/assets/{typescript-RycA9KXf-BPQ3VLAy.js → typescript-BPQ3VLAy.js} +0 -0
- /package/dist/assets/{typespec-DWqp-kUU-BGHnOYBU.js → typespec-BGHnOYBU.js} +0 -0
- /package/dist/assets/{typst-D_1QKWns-DHCkPAjA.js → typst-DHCkPAjA.js} +0 -0
- /package/dist/assets/{v-BPCNiyYe-BcVCzyr7.js → v-BcVCzyr7.js} +0 -0
- /package/dist/assets/{vala-uxaPR7d1-CsfeWuGM.js → vala-CsfeWuGM.js} +0 -0
- /package/dist/assets/{vb-D8_c5-KN-D17OF-Vu.js → vb-D17OF-Vu.js} +0 -0
- /package/dist/assets/{verilog-B-bybjPF-BQ8w6xss.js → verilog-BQ8w6xss.js} +0 -0
- /package/dist/assets/{vesper-BckBta1U-DU1UobuO.js → vesper-DU1UobuO.js} +0 -0
- /package/dist/assets/{vhdl-CUlNa8ac-CeAyd5Ju.js → vhdl-CeAyd5Ju.js} +0 -0
- /package/dist/assets/{viml-DsfA-sWm-CJc9bBzg.js → viml-CJc9bBzg.js} +0 -0
- /package/dist/assets/{vitesse-black-BoGvW84i-Bkuqu6BP.js → vitesse-black-Bkuqu6BP.js} +0 -0
- /package/dist/assets/{vitesse-dark-Cym-eLtO-D0r3Knsf.js → vitesse-dark-D0r3Knsf.js} +0 -0
- /package/dist/assets/{vitesse-light-CcmG315c-CVO1_9PV.js → vitesse-light-CVO1_9PV.js} +0 -0
- /package/dist/assets/{vyper-CPQuu50u-CDx5xZoG.js → vyper-CDx5xZoG.js} +0 -0
- /package/dist/assets/{wasm-DQxwEHae-CG6Dc4jp.js → wasm-CG6Dc4jp.js} +0 -0
- /package/dist/assets/{wasm-BBXxrAl7-MzD3tlZU.js → wasm-MzD3tlZU.js} +0 -0
- /package/dist/assets/{wenyan-pbVjoM9_-BV7otONQ.js → wenyan-BV7otONQ.js} +0 -0
- /package/dist/assets/{wgsl-DY4iK1q1-Dx-B1_4e.js → wgsl-Dx-B1_4e.js} +0 -0
- /package/dist/assets/{wikitext-Z-MoUasO-BhOHFoWU.js → wikitext-BhOHFoWU.js} +0 -0
- /package/dist/assets/{wit-CQMQOlTg-5i3qLPDT.js → wit-5i3qLPDT.js} +0 -0
- /package/dist/assets/{wolfram-Dz4KXISs-lXgVvXCa.js → wolfram-lXgVvXCa.js} +0 -0
- /package/dist/assets/{yaml-DaO7k5B1-Buea-lGh.js → yaml-Buea-lGh.js} +0 -0
- /package/dist/assets/{zenscript-CxBjpf9c-DVFEvuxE.js → zenscript-DVFEvuxE.js} +0 -0
- /package/dist/assets/{zig-Vm0PO9wB-VOosw3JB.js → zig-VOosw3JB.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{db as lt,bE as V,bL as $,bK as gt}from"./index-B7GqH6If.js";import{c as tt}from"./cytoscape.esm-5J0xJHOV.js";var k={exports:{}},Z={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,L){G.exports=L()})(ut,function(){return(function(N){var I={};function L(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,L),e.l=!0,e.exports}return L.m=N,L.c=I,L.i=function(o){return o},L.d=function(o,e,t){L.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},L.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return L.d(e,"a",e),e},L.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},L.p="",L(L.s=26)})([(function(N,I,L){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,L){var o=L(2),e=L(8),t=L(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,L){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(13),i=L(0),l=L(16),g=L(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;v<p.length;v++)h=p[v],a=h.withChildren(),a.forEach(function(D){r.add(D)});return r},n.prototype.getNoOfChildren=function(){var r=0,h;if(this.child==null)r=1;else for(var a=this.child.getNodes(),p=0;p<a.length;p++)h=a[p],r+=h.getNoOfChildren();return r==0&&(r=1),r},n.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},n.prototype.calcEstimatedSize=function(){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)},n.prototype.scatter=function(){var r,h,a=-i.INITIAL_WORLD_BOUNDARY,p=i.INITIAL_WORLD_BOUNDARY;r=i.WORLD_CENTER_X+l.nextDouble()*(p-a)+a;var v=-i.INITIAL_WORLD_BOUNDARY,D=i.INITIAL_WORLD_BOUNDARY;h=i.WORLD_CENTER_Y+l.nextDouble()*(D-v)+v,this.rect.x=r,this.rect.y=h},n.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var r=this.getChild();if(r.updateBounds(!0),this.rect.x=r.getLeft(),this.rect.y=r.getTop(),this.setWidth(r.getRight()-r.getLeft()),this.setHeight(r.getBottom()-r.getTop()),i.NODE_DIMENSIONS_INCLUDE_LABELS){var h=r.getRight()-r.getLeft(),a=r.getBottom()-r.getTop();this.labelWidth>h&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,L){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,L){var o=L(2),e=L(10),t=L(0),i=L(6),l=L(3),g=L(1),n=L(13),d=L(12),r=L(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var T=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(T.source=v,T.target=D,T.isInterGraph=!1,this.getEdges().push(T),v.edges.push(T),D!=v&&D.edges.push(T),T)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,T=D.length,y=0;y<T;y++)u=D[y],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var O=this.nodes.indexOf(v);if(O==-1)throw"Node not in owner node list!";this.nodes.splice(O,1)}else if(p instanceof g){var u=p;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var s=u.source.edges.indexOf(u),f=u.target.edges.indexOf(u);if(!(s>-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,T,y=this.getNodes(),O=y.length,s=0;s<O;s++){var f=y[s];D=f.getTop(),u=f.getLeft(),p>D&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?T=y[0].getParent().paddingLeft:T=this.margin,this.left=v-T,this.top=p-T,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c,E=this.nodes,A=E.length,m=0;m<A;m++){var C=E[m];p&&C.child!=null&&C.updateBounds(),y=C.getLeft(),O=C.getRight(),s=C.getTop(),f=C.getBottom(),v>y&&(v=y),D<O&&(D=O),u>s&&(u=s),T<f&&(T=f)}var R=new n(v,u,D-v,T-u);v==e.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),E[0].getParent().paddingLeft!=null?c=E[0].getParent().paddingLeft:c=this.margin,this.left=R.x-c,this.right=R.x+R.width+c,this.top=R.y-c,this.bottom=R.y+R.height+c},h.calculateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,T=-e.MAX_VALUE,y,O,s,f,c=p.length,E=0;E<c;E++){var A=p[E];y=A.getLeft(),O=A.getRight(),s=A.getTop(),f=A.getBottom(),v>y&&(v=y),D<O&&(D=O),u>s&&(u=s),T<f&&(T=f)}var m=new n(v,u,D-v,T-u);return m},h.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){for(var p=0,v=this.nodes,D=v.length,u=0;u<D;u++){var T=v[u];p+=T.calcEstimatedSize()}return p==0?this.estimatedSize=t.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=p/Math.sqrt(this.nodes.length),this.estimatedSize},h.prototype.updateConnected=function(){var p=this;if(this.nodes.length==0){this.isConnected=!0;return}var v=new r,D=new Set,u=this.nodes[0],T,y,O=u.withChildren();for(O.forEach(function(m){v.push(m),D.add(m)});v.length!==0;){u=v.shift(),T=u.getEdges();for(var s=T.length,f=0;f<s;f++){var c=T[f];if(y=c.getOtherEndInGraph(u,this),y!=null&&!D.has(y)){var E=y.withChildren();E.forEach(function(m){v.push(m),D.add(m)})}}}if(this.isConnected=!1,D.size>=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,L){var o,e=L(1);function t(i){o=L(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r<d;r++)n=g[r],l.remove(n);var h=[];h=h.concat(l.getNodes());var a;d=h.length;for(var r=0;r<d;r++)a=h[r],l.remove(a);l==this.rootGraph&&this.setRootGraph(null);var p=this.graphs.indexOf(l);this.graphs.splice(p,1),l.parent=null}else if(i instanceof e){if(n=i,n==null)throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(!(n.source!=null&&n.target!=null))throw"Source and/or target is null!";if(!(n.source.edges.indexOf(n)!=-1&&n.target.edges.indexOf(n)!=-1))throw"Source and/or target doesn't know this edge!";var p=n.source.edges.indexOf(n);if(n.source.edges.splice(p,1),p=n.target.edges.indexOf(n),n.target.edges.splice(p,1),!(n.source.owner!=null&&n.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(n.source.owner.getGraphManager().edges.indexOf(n)==-1)throw"Not in owner graph manager's edge list!";var p=n.source.owner.getGraphManager().edges.indexOf(n);n.source.owner.getGraphManager().edges.splice(p,1)}},t.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},t.prototype.getGraphs=function(){return this.graphs},t.prototype.getAllNodes=function(){if(this.allNodes==null){for(var i=[],l=this.getGraphs(),g=l.length,n=0;n<g;n++)i=i.concat(l[n].getNodes());this.allNodes=i}return this.allNodes},t.prototype.resetAllNodes=function(){this.allNodes=null},t.prototype.resetAllEdges=function(){this.allEdges=null},t.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},t.prototype.getAllEdges=function(){if(this.allEdges==null){var i=[],l=this.getGraphs();l.length;for(var g=0;g<l.length;g++)i=i.concat(l[g].getEdges());i=i.concat(this.edges),this.allEdges=i}return this.allEdges},t.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},t.prototype.setAllNodesToApplyGravitation=function(i){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=i},t.prototype.getRoot=function(){return this.rootGraph},t.prototype.setRootGraph=function(i){if(i.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=i,i.parent==null&&(i.parent=this.layout.newNode("Root node"))},t.prototype.getLayout=function(){return this.layout},t.prototype.isOneAncestorOfOther=function(i,l){if(!(i!=null&&l!=null))throw"assert failed";if(i==l)return!0;var g=i.getOwner(),n;do{if(n=g.getParent(),n==null)break;if(n==l)return!0;if(g=n.getOwner(),g==null)break}while(!0);g=l.getOwner();do{if(n=g.getParent(),n==null)break;if(n==i)return!0;if(g=n.getOwner(),g==null)break}while(!0);return!1},t.prototype.calcLowestCommonAncestors=function(){for(var i,l,g,n,d,r=this.getAllEdges(),h=r.length,a=0;a<h;a++){if(i=r[a],l=i.source,g=i.target,i.lca=null,i.sourceInLca=l,i.targetInLca=g,l==g){i.lca=l.getOwner();continue}for(n=l.getOwner();i.lca==null;){for(i.targetInLca=g,d=g.getOwner();i.lca==null;){if(d==n){i.lca=d;break}if(d==this.rootGraph)break;if(i.lca!=null)throw"assert failed";i.targetInLca=d.getParent(),d=i.targetInLca.getOwner()}if(n==this.rootGraph)break;i.lca==null&&(i.sourceInLca=n.getParent(),n=i.sourceInLca.getOwner())}if(i.lca==null)throw"assert failed"}},t.prototype.calcLowestCommonAncestor=function(i,l){if(i==l)return i.getOwner();var g=i.getOwner();do{if(g==null)break;var n=l.getOwner();do{if(n==null)break;if(n==g)return n;n=n.getParent().getOwner()}while(!0);g=g.getParent().getOwner()}while(!0);return g},t.prototype.calcInclusionTreeDepths=function(i,l){i==null&&l==null&&(i=this.rootGraph,l=1);for(var g,n=i.getNodes(),d=n.length,r=0;r<d;r++)g=n[r],g.inclusionTreeDepth=l,g.child!=null&&this.calcInclusionTreeDepths(g.child,l+1)},t.prototype.includesInvalidEdge=function(){for(var i,l=this.edges.length,g=0;g<l;g++)if(i=this.edges[g],this.isOneAncestorOfOther(i.source,i.target))return!0;return!1},N.exports=t}),(function(N,I,L){var o=L(0);function e(){}for(var t in o)e[t]=o[t];e.MAX_ITERATIONS=2500,e.DEFAULT_EDGE_LENGTH=50,e.DEFAULT_SPRING_STRENGTH=.45,e.DEFAULT_REPULSION_STRENGTH=4500,e.DEFAULT_GRAVITY_STRENGTH=.4,e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,e.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,e.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,e.COOLING_ADAPTATION_FACTOR=.33,e.ADAPTATION_LOWER_NODE_LIMIT=1e3,e.ADAPTATION_UPPER_NODE_LIMIT=5e3,e.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,e.MAX_NODE_DISPLACEMENT=e.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,e.MIN_REPULSION_DIST=e.DEFAULT_EDGE_LENGTH/10,e.CONVERGENCE_CHECK_PERIOD=100,e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,e.MIN_EDGE_LENGTH=1,e.GRID_CALCULATION_CHECK_PERIOD=10,N.exports=e}),(function(N,I,L){var o=L(12);function e(){}e.calcSeparationAmount=function(t,i,l,g){if(!t.intersects(i))throw"assert failed";var n=new Array(2);this.decideDirectionsForOverlappingNodes(t,i,n),l[0]=Math.min(t.getRight(),i.getRight())-Math.max(t.x,i.x),l[1]=Math.min(t.getBottom(),i.getBottom())-Math.max(t.y,i.y),t.getX()<=i.getX()&&t.getRight()>=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]<h?h=l[0]:r=l[1],l[0]=-1*n[0]*(h/2+g),l[1]=-1*n[1]*(r/2+g)},e.decideDirectionsForOverlappingNodes=function(t,i,l){t.getCenterX()<i.getCenterX()?l[0]=-1:l[0]=1,t.getCenterY()<i.getCenterY()?l[1]=-1:l[1]=1},e.getIntersection2=function(t,i,l){var g=t.getCenterX(),n=t.getCenterY(),d=i.getCenterX(),r=i.getCenterY();if(t.intersects(i))return l[0]=g,l[1]=n,l[2]=d,l[3]=r,!0;var h=t.getX(),a=t.getY(),p=t.getRight(),v=t.getX(),D=t.getBottom(),u=t.getRight(),T=t.getWidthHalf(),y=t.getHeightHalf(),O=i.getX(),s=i.getY(),f=i.getRight(),c=i.getX(),E=i.getBottom(),A=i.getRight(),m=i.getWidthHalf(),C=i.getHeightHalf(),R=!1,M=!1;if(g===d){if(n>r)return l[0]=g,l[1]=a,l[2]=d,l[3]=E,!1;if(n<r)return l[0]=g,l[1]=D,l[2]=d,l[3]=s,!1}else if(n===r){if(g>d)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(g<d)return l[0]=p,l[1]=n,l[2]=O,l[3]=r,!1}else{var S=t.height/t.width,Y=i.height/i.width,w=(r-n)/(d-g),x=void 0,F=void 0,U=void 0,P=void 0,_=void 0,X=void 0;if(-S===w?g>d?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=E,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=E,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+T*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-T*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=E,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,T=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,E=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,E=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*E-f*c)/A,T=(O*c-y*E)/A,new o(u,T))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l<t?n+=Math.PI:g<i&&(n+=this.TWO_PI)):g<i?n=this.ONE_AND_HALF_PI:n=this.HALF_PI,n},e.doIntersect=function(t,i,l,g){var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=(r-n)*(D-p)-(v-a)*(h-d);if(u===0)return!1;var T=((D-p)*(v-n)+(a-v)*(D-d))/u,y=((d-h)*(v-n)+(r-n)*(D-d))/u;return 0<T&&T<1&&0<y&&y<1},e.HALF_PI=.5*Math.PI,e.ONE_AND_HALF_PI=1.5*Math.PI,e.TWO_PI=2*Math.PI,e.THREE_PI=3*Math.PI,N.exports=e}),(function(N,I,L){function o(){}o.sign=function(e){return e>0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,L){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,L){var o=(function(){function n(d,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,r,h){return r&&n(d.prototype,r),h&&n(d,h),d}})();function e(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}var t=function(d){return{value:d,next:null,prev:null}},i=function(d,r,h,a){return d!==null?d.next=r:a.head=r,h!==null?h.prev=r:a.tail=r,r.prev=d,r.next=h,a.length++,r},l=function(d,r){var h=d.prev,a=d.next;return h!==null?h.next=a:r.head=a,a!==null?a.prev=h:r.tail=h,d.prev=d.next=null,r.length--,d},g=(function(){function n(d){var r=this;e(this,n),this.length=0,this.head=null,this.tail=null,d?.forEach(function(h){return r.push(h)})}return o(n,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(r,h){return i(h.prev,t(r),h,this)}},{key:"insertAfter",value:function(r,h){return i(h,t(r),h.next,this)}},{key:"insertNodeBefore",value:function(r,h){return i(h.prev,r,h,this)}},{key:"insertNodeAfter",value:function(r,h){return i(h,r,h.next,this)}},{key:"push",value:function(r){return i(this.tail,t(r),null,this)}},{key:"unshift",value:function(r){return i(null,t(r),this.head,this)}},{key:"remove",value:function(r){return l(r,this)}},{key:"pop",value:function(){return l(this.tail,this).value}},{key:"popNode",value:function(){return l(this.tail,this)}},{key:"shift",value:function(){return l(this.head,this).value}},{key:"shiftNode",value:function(){return l(this.head,this)}},{key:"get_object_at",value:function(r){if(r<=this.length()){for(var h=1,a=this.head;h<r;)a=a.next,h++;return a.value}}},{key:"set_object_at",value:function(r,h){if(r<=this.length()){for(var a=1,p=this.head;a<r;)p=p.next,a++;p.value=h}}}]),n})();N.exports=g}),(function(N,I,L){function o(e,t,i){this.x=null,this.y=null,e==null&&t==null&&i==null?(this.x=0,this.y=0):typeof e=="number"&&typeof t=="number"&&i==null?(this.x=e,this.y=t):e.constructor.name=="Point"&&t==null&&i==null&&(i=e,this.x=i.x,this.y=i.y)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.getLocation=function(){return new o(this.x,this.y)},o.prototype.setLocation=function(e,t,i){e.constructor.name=="Point"&&t==null&&i==null?(i=e,this.setLocation(i.x,i.y)):typeof e=="number"&&typeof t=="number"&&i==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},o.prototype.move=function(e,t){this.x=e,this.y=t},o.prototype.translate=function(e,t){this.x+=e,this.y+=t},o.prototype.equals=function(e){if(e.constructor.name=="Point"){var t=e;return this.x==t.x&&this.y==t.y}return this==e},o.prototype.toString=function(){return new o().constructor.name+"[x="+this.x+",y="+this.y+"]"},N.exports=o}),(function(N,I,L){function o(e,t,i,l){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&i!=null&&l!=null&&(this.x=e,this.y=t,this.width=i,this.height=l)}o.prototype.getX=function(){return this.x},o.prototype.setX=function(e){this.x=e},o.prototype.getY=function(){return this.y},o.prototype.setY=function(e){this.y=e},o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(e){this.width=e},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(e){this.height=e},o.prototype.getRight=function(){return this.x+this.width},o.prototype.getBottom=function(){return this.y+this.height},o.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},o.prototype.getCenterX=function(){return this.x+this.width/2},o.prototype.getMinX=function(){return this.getX()},o.prototype.getMaxX=function(){return this.getX()+this.width},o.prototype.getCenterY=function(){return this.y+this.height/2},o.prototype.getMinY=function(){return this.getY()},o.prototype.getMaxY=function(){return this.getY()+this.height},o.prototype.getWidthHalf=function(){return this.width/2},o.prototype.getHeightHalf=function(){return this.height/2},N.exports=o}),(function(N,I,L){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function e(){}e.lastID=0,e.createID=function(t){return e.isPrimitive(t)?t:(t.uniqueID!=null||(t.uniqueID=e.getString(),e.lastID++),t.uniqueID)},e.getString=function(t){return t==null&&(t=e.lastID),"Object#"+t},e.isPrimitive=function(t){var i=typeof t>"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,L){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p<a.length;p++)v[p]=a[p];return v}else return Array.from(a)}var e=L(0),t=L(6),i=L(3),l=L(1),g=L(5),n=L(4),d=L(17),r=L(27);function h(a){r.call(this),this.layoutQuality=e.QUALITY,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=e.DEFAULT_INCREMENTAL,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new t(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,a!=null&&(this.isRemoteUse=a)}h.RANDOM_SEED=1,h.prototype=Object.create(r.prototype),h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},h.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},h.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},h.prototype.newGraphManager=function(){var a=new t(this);return this.graphManager=a,a},h.prototype.newGraph=function(a){return new g(null,this.graphManager,a)},h.prototype.newNode=function(a){return new i(this.graphManager,a)},h.prototype.newEdge=function(a){return new l(null,null,a)},h.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},h.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var a;return this.checkLayoutSuccess()?a=!1:a=this.layout(),e.ANIMATE==="during"?!1:(a&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,a)},h.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},h.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var a=this.graphManager.getAllEdges(),p=0;p<a.length;p++)a[p];for(var v=this.graphManager.getRoot().getNodes(),p=0;p<v.length;p++)v[p];this.update(this.graphManager.getRoot())}},h.prototype.update=function(a){if(a==null)this.update2();else if(a instanceof i){var p=a;if(p.getChild()!=null)for(var v=p.getChild().getNodes(),D=0;D<v.length;D++)update(v[D]);if(p.vGraphObject!=null){var u=p.vGraphObject;u.update(p)}}else if(a instanceof l){var T=a;if(T.vGraphObject!=null){var y=T.vGraphObject;y.update(T)}}else if(a instanceof g){var O=a;if(O.vGraphObject!=null){var s=O.vGraphObject;s.update(O)}}},h.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=e.QUALITY,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=e.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},h.prototype.transform=function(a){if(a==null)this.transform(new n(0,0));else{var p=new d,v=this.graphManager.getRoot().updateLeftTop();if(v!=null){p.setWorldOrgX(a.x),p.setWorldOrgY(a.y),p.setDeviceOrgX(v.x),p.setDeviceOrgY(v.y);for(var D=this.getAllNodes(),u,T=0;T<D.length;T++)u=D[T],u.transform(p)}}},h.prototype.positionNodesRandomly=function(a){if(a==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var p,v,D=a.getNodes(),u=0;u<D.length;u++)p=D[u],v=p.getChild(),v==null||v.getNodes().length==0?p.scatter():(this.positionNodesRandomly(v),p.updateBounds())},h.prototype.getFlatForest=function(){for(var a=[],p=!0,v=this.graphManager.getRoot().getNodes(),D=!0,u=0;u<v.length;u++)v[u].getChild()!=null&&(D=!1);if(!D)return a;var T=new Set,y=[],O=new Map,s=[];for(s=s.concat(v);s.length>0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),T.add(f);for(var c=f.getEdges(),u=0;u<c.length;u++){var E=c[u].getOtherEnd(f);if(O.get(f)!=E)if(!T.has(E))y.push(E),O.set(E,f);else{p=!1;break}}}if(!p)a=[];else{var A=[].concat(o(T));a.push(A);for(var u=0;u<A.length;u++){var m=A[u],C=s.indexOf(m);C>-1&&s.splice(C,1)}T=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u<a.bendpoints.length;u++){var T=this.newNode(null);T.setRect(new Point(0,0),new Dimension(1,1)),D.add(T);var y=this.newEdge(null);this.graphManager.add(y,v,T),p.add(T),v=T}var y=this.newEdge(null);return this.graphManager.add(y,v,a.target),this.edgeToDummyNodes.set(a,p),a.isInterGraph()?this.graphManager.remove(a):D.remove(a),p},h.prototype.createBendpointsFromDummyNodes=function(){var a=[];a=a.concat(this.graphManager.getAllEdges()),a=[].concat(o(this.edgeToDummyNodes.keys())).concat(a);for(var p=0;p<a.length;p++){var v=a[p];if(v.bendpoints.length>0){for(var D=this.edgeToDummyNodes.get(v),u=0;u<D.length;u++){var T=D[u],y=new n(T.getCenterX(),T.getCenterY()),O=v.bendpoints.get(u);O.x=y.x,O.y=y.y,T.getOwner().remove(T)}this.graphManager.add(v,v.source,v.target)}}},h.transform=function(a,p,v,D){if(v!=null&&D!=null){var u=p;if(a<=50){var T=p/v;u-=(p-T)/50*(50-a)}else{var y=p*D;u+=(y-p)/50*(a-50)}return u}else{var O,s;return a<=50?(O=9*p/500,s=p/10):(O=9*p/50,s=-8*p),O*a+s}},h.findCenterOfTree=function(a){var p=[];p=p.concat(a);var v=[],D=new Map,u=!1,T=null;(p.length==1||p.length==2)&&(u=!0,T=p[0]);for(var y=0;y<p.length;y++){var O=p[y],s=O.getNeighborsList().size;D.set(O,O.getNeighborsList().size),s==1&&v.push(O)}var f=[];for(f=f.concat(v);!u;){var c=[];c=c.concat(f),f=[];for(var y=0;y<p.length;y++){var O=p[y],E=p.indexOf(O);E>=0&&p.splice(E,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,T=p[0])}return T},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,L){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,L){var o=L(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,L){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);h<r.length;h++)a[h]=r[h];return a}else return Array.from(r)}var e=L(15),t=L(7),i=L(0),l=L(8),g=L(9);function n(){e.call(this),this.useSmartIdealEdgeLengthCalculation=t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=t.DEFAULT_EDGE_LENGTH,this.springConstant=t.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=t.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=t.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=t.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*t.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=t.MAX_ITERATIONS}n.prototype=Object.create(e.prototype);for(var d in e)n[d]=e[d];n.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},n.prototype.calcIdealEdgeLengths=function(){for(var r,h,a,p,v,D,u=this.getGraphManager().getAllEdges(),T=0;T<u.length;T++)r=u[T],r.idealLength=this.idealEdgeLength,r.isInterGraph&&(a=r.getSource(),p=r.getTarget(),v=r.getSourceInLca().getEstimatedSize(),D=r.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(r.idealLength+=v+D-2*i.SIMPLE_NODE_SIZE),h=r.getLca().getInclusionTreeDepth(),r.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(a.getInclusionTreeDepth()+p.getInclusionTreeDepth()-2*h))},n.prototype.initSpringEmbedder=function(){var r=this.getAllNodes().length;this.incremental?(r>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a<r.length;a++)h=r[a],this.calcSpringForce(h,h.idealLength)},n.prototype.calcRepulsionForces=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),T;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),T=new Set,a=0;a<u.length;a++)v=u[a],this.calculateRepulsionForceOfANode(v,T,r,h),T.add(v);else for(a=0;a<u.length;a++)for(v=u[a],p=a+1;p<u.length;p++)D=u[p],v.getOwner()==D.getOwner()&&this.calcRepulsionForce(v,D)},n.prototype.calcGravitationalForces=function(){for(var r,h=this.getAllNodesToApplyGravitation(),a=0;a<h.length;a++)r=h[a],this.calcGravitationalForce(r)},n.prototype.moveNodes=function(){for(var r=this.getAllNodes(),h,a=0;a<r.length;a++)h=r[a],h.move()},n.prototype.calcSpringForce=function(r,h){var a=r.getSource(),p=r.getTarget(),v,D,u,T;if(this.uniformLeafNodeSizes&&a.getChild()==null&&p.getChild()==null)r.updateLengthSimple();else if(r.updateLength(),r.isOverlapingSourceAndTarget)return;v=r.getLength(),v!=0&&(D=this.springConstant*(v-h),u=D*(r.lengthX/v),T=D*(r.lengthY/v),a.springForceX+=u,a.springForceY+=T,p.springForceX-=u,p.springForceY-=T)},n.prototype.calcRepulsionForce=function(r,h){var a=r.getRect(),p=h.getRect(),v=new Array(2),D=new Array(4),u,T,y,O,s,f,c;if(a.intersects(p)){l.calcSeparationAmount(a,p,v,t.DEFAULT_EDGE_LENGTH/2),f=2*v[0],c=2*v[1];var E=r.noOfChildren*h.noOfChildren/(r.noOfChildren+h.noOfChildren);r.repulsionForceX-=E*f,r.repulsionForceY-=E*c,h.repulsionForceX+=E*f,h.repulsionForceY+=E*c}else this.uniformLeafNodeSizes&&r.getChild()==null&&h.getChild()==null?(u=p.getCenterX()-a.getCenterX(),T=p.getCenterY()-a.getCenterY()):(l.getIntersection(a,p,D),u=D[2]-D[0],T=D[3]-D[1]),Math.abs(u)<t.MIN_REPULSION_DIST&&(u=g.sign(u)*t.MIN_REPULSION_DIST),Math.abs(T)<t.MIN_REPULSION_DIST&&(T=g.sign(T)*t.MIN_REPULSION_DIST),y=u*u+T*T,O=Math.sqrt(y),s=this.repulsionConstant*r.noOfChildren*h.noOfChildren/y,f=s*u/O,c=s*T/O,r.repulsionForceX-=f,r.repulsionForceY-=c,h.repulsionForceX+=f,h.repulsionForceY+=c},n.prototype.calcGravitationalForce=function(r){var h,a,p,v,D,u,T,y;h=r.getOwner(),a=(h.getRight()+h.getLeft())/2,p=(h.getTop()+h.getBottom())/2,v=r.getCenterX()-a,D=r.getCenterY()-p,u=Math.abs(v)+r.getWidth()/2,T=Math.abs(D)+r.getHeight()/2,r.getOwner()==this.graphManager.getRoot()?(y=h.getEstimatedSize()*this.gravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||T>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,r||h},n.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},n.prototype.calcNoOfChildrenForAllNodes=function(){for(var r,h=this.graphManager.getAllNodes(),a=0;a<h.length;a++)r=h[a],r.noOfChildren=r.getNoOfChildren()},n.prototype.calcGrid=function(r){var h=0,a=0;h=parseInt(Math.ceil((r.getRight()-r.getLeft())/this.repulsionRange)),a=parseInt(Math.ceil((r.getBottom()-r.getTop())/this.repulsionRange));for(var p=new Array(h),v=0;v<h;v++)p[v]=new Array(a);for(var v=0;v<h;v++)for(var D=0;D<a;D++)p[v][D]=new Array;return p},n.prototype.addNodeToGrid=function(r,h,a){var p=0,v=0,D=0,u=0;p=parseInt(Math.floor((r.getRect().x-h)/this.repulsionRange)),v=parseInt(Math.floor((r.getRect().width+r.getRect().x-h)/this.repulsionRange)),D=parseInt(Math.floor((r.getRect().y-a)/this.repulsionRange)),u=parseInt(Math.floor((r.getRect().height+r.getRect().y-a)/this.repulsionRange));for(var T=p;T<=v;T++)for(var y=D;y<=u;y++)this.grid[T][y].push(r),r.setGridCoordinates(p,v,D,u)},n.prototype.updateGrid=function(){var r,h,a=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),r=0;r<a.length;r++)h=a[r],this.addNodeToGrid(h,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},n.prototype.calculateRepulsionForceOfANode=function(r,h,a,p){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&a||p){var v=new Set;r.surrounding=new Array;for(var D,u=this.grid,T=r.startX-1;T<r.finishX+2;T++)for(var y=r.startY-1;y<r.finishY+2;y++)if(!(T<0||y<0||T>=u.length||y>=u[0].length)){for(var O=0;O<u[T][y].length;O++)if(D=u[T][y][O],!(r.getOwner()!=D.getOwner()||r==D)&&!h.has(D)&&!v.has(D)){var s=Math.abs(r.getCenterX()-D.getCenterX())-(r.getWidth()/2+D.getWidth()/2),f=Math.abs(r.getCenterY()-D.getCenterY())-(r.getHeight()/2+D.getHeight()/2);s<=this.repulsionRange&&f<=this.repulsionRange&&v.add(D)}}r.surrounding=[].concat(o(v))}for(T=0;T<r.surrounding.length;T++)this.calcRepulsionForce(r,r.surrounding[T])},n.prototype.calcRepulsionRange=function(){return 0},N.exports=n}),(function(N,I,L){var o=L(1),e=L(7);function t(l,g,n){o.call(this,l,g,n),this.idealLength=e.DEFAULT_EDGE_LENGTH}t.prototype=Object.create(o.prototype);for(var i in o)t[i]=o[i];N.exports=t}),(function(N,I,L){var o=L(3);function e(i,l,g,n){o.call(this,i,l,g,n),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}e.prototype=Object.create(o.prototype);for(var t in o)e[t]=o[t];e.prototype.setGridCoordinates=function(i,l,g,n){this.startX=i,this.finishX=l,this.startY=g,this.finishY=n},N.exports=e}),(function(N,I,L){function o(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}o.prototype.getWidth=function(){return this.width},o.prototype.setWidth=function(e){this.width=e},o.prototype.getHeight=function(){return this.height},o.prototype.setHeight=function(e){this.height=e},N.exports=o}),(function(N,I,L){var o=L(14);function e(){this.map={},this.keys=[]}e.prototype.put=function(t,i){var l=o.createID(t);this.contains(l)||(this.map[l]=i,this.keys.push(t))},e.prototype.contains=function(t){return o.createID(t),this.map[t]!=null},e.prototype.get=function(t){var i=o.createID(t);return this.map[i]},e.prototype.keySet=function(){return this.keys},N.exports=e}),(function(N,I,L){var o=L(14);function e(){this.set={}}e.prototype.add=function(t){var i=o.createID(t);this.contains(i)||(this.set[i]=t)},e.prototype.remove=function(t){delete this.set[o.createID(t)]},e.prototype.clear=function(){this.set={}},e.prototype.contains=function(t){return this.set[o.createID(t)]==t},e.prototype.isEmpty=function(){return this.size()===0},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAllTo=function(t){for(var i=Object.keys(this.set),l=i.length,g=0;g<l;g++)t.push(this.set[i[g]])},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAll=function(t){for(var i=t.length,l=0;l<i;l++){var g=t[l];this.add(g)}},N.exports=e}),(function(N,I,L){var o=(function(){function l(g,n){for(var d=0;d<n.length;d++){var r=n[d];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(g,r.key,r)}}return function(g,n,d){return n&&l(g.prototype,n),d&&l(g,d),g}})();function e(l,g){if(!(l instanceof g))throw new TypeError("Cannot call a class as a function")}var t=L(11),i=(function(){function l(g,n){e(this,l),(n!==null||n!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var d=void 0;g instanceof t?d=g.size():d=g.length,this._quicksort(g,0,d-1)}return o(l,[{key:"_quicksort",value:function(n,d,r){if(d<r){var h=this._partition(n,d,r);this._quicksort(n,d,h),this._quicksort(n,h+1,r)}}},{key:"_partition",value:function(n,d,r){for(var h=this._get(n,d),a=d,p=r;;){for(;this.compareFunction(h,this._get(n,p));)p--;for(;this.compareFunction(this._get(n,a),h);)a++;if(a<p)this._swap(n,a,p),a++,p--;else return p}}},{key:"_get",value:function(n,d){return n instanceof t?n.get_object_at(d):n[d]}},{key:"_set",value:function(n,d,r){n instanceof t?n.set_object_at(d,r):n[d]=r}},{key:"_swap",value:function(n,d,r){var h=this._get(n,d);this._set(n,d,this._get(n,r)),this._set(n,r,h)}},{key:"_defaultCompareFunction",value:function(n,d){return d>n}}]),l})();N.exports=i}),(function(N,I,L){var o=(function(){function i(l,g){for(var n=0;n<g.length;n++){var d=g[n];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}return function(l,g,n){return g&&i(l.prototype,g),n&&i(l,n),l}})();function e(i,l){if(!(i instanceof l))throw new TypeError("Cannot call a class as a function")}var t=(function(){function i(l,g){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h<this.iMax;h++){this.grid[h]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[h][a]=0}this.tracebackGrid=new Array(this.iMax);for(var p=0;p<this.iMax;p++){this.tracebackGrid[p]=new Array(this.jMax);for(var v=0;v<this.jMax;v++)this.tracebackGrid[p][v]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return o(i,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var g=1;g<this.jMax;g++)this.grid[0][g]=this.grid[0][g-1]+this.gap_penalty,this.tracebackGrid[0][g]=[!1,!1,!0];for(var n=1;n<this.iMax;n++)this.grid[n][0]=this.grid[n-1][0]+this.gap_penalty,this.tracebackGrid[n][0]=[!1,!0,!1];for(var d=1;d<this.iMax;d++)for(var r=1;r<this.jMax;r++){var h=void 0;this.sequence1[d-1]===this.sequence2[r-1]?h=this.grid[d-1][r-1]+this.match_score:h=this.grid[d-1][r-1]+this.mismatch_penalty;var a=this.grid[d-1][r]+this.gap_penalty,p=this.grid[d][r-1]+this.gap_penalty,v=[h,a,p],D=this.arrayAllMaxIndexes(v);this.grid[d][r]=v[D[0]],this.tracebackGrid[d][r]=[D.includes(0),D.includes(1),D.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var g=[];for(g.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});g[0];){var n=g[0],d=this.tracebackGrid[n.pos[0]][n.pos[1]];d[0]&&g.push({pos:[n.pos[0]-1,n.pos[1]-1],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),d[1]&&g.push({pos:[n.pos[0]-1,n.pos[1]],seq1:this.sequence1[n.pos[0]-1]+n.seq1,seq2:"-"+n.seq2}),d[2]&&g.push({pos:[n.pos[0],n.pos[1]-1],seq1:"-"+n.seq1,seq2:this.sequence2[n.pos[1]-1]+n.seq2}),n.pos[0]===0&&n.pos[1]===0&&this.alignments.push({sequence1:n.seq1,sequence2:n.seq2}),g.shift()}return this.alignments}},{key:"getAllIndexes",value:function(g,n){for(var d=[],r=-1;(r=g.indexOf(n,r+1))!==-1;)d.push(r);return d}},{key:"arrayAllMaxIndexes",value:function(g){return this.getAllIndexes(g,Math.max.apply(null,g))}}]),i})();N.exports=t}),(function(N,I,L){var o=function(){};o.FDLayout=L(18),o.FDLayoutConstants=L(7),o.FDLayoutEdge=L(19),o.FDLayoutNode=L(20),o.DimensionD=L(21),o.HashMap=L(22),o.HashSet=L(23),o.IGeometry=L(8),o.IMath=L(9),o.Integer=L(10),o.Point=L(12),o.PointD=L(4),o.RandomSeed=L(16),o.RectangleD=L(13),o.Transform=L(17),o.UniqueIDGeneretor=L(14),o.Quicksort=L(24),o.LinkedList=L(11),o.LGraphObject=L(2),o.LGraph=L(5),o.LEdge=L(1),o.LGraphManager=L(6),o.LNode=L(3),o.Layout=L(15),o.LayoutConstants=L(0),o.NeedlemanWunsch=L(25),N.exports=o}),(function(N,I,L){function o(){this.listeners=[]}var e=o.prototype;e.addListener=function(t,i){this.listeners.push({event:t,callback:i})},e.removeListener=function(t,i){for(var l=this.listeners.length;l>=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;l<this.listeners.length;l++){var g=this.listeners[l];t===g.event&&g.callback(i)}},N.exports=o})])})})(Q)),Q.exports}var ct=Z.exports,z;function pt(){return z||(z=1,(function(G,b){(function(I,L){G.exports=L(ft())})(ct,function(N){return(function(I){var L={};function o(e){if(L[e])return L[e].exports;var t=L[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=I,o.c=L,o.i=function(e){return e},o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=7)})([(function(I,L){I.exports=N}),(function(I,L,o){var e=o(0).FDLayoutConstants;function t(){}for(var i in e)t[i]=e[i];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,I.exports=t}),(function(I,L,o){var e=o(0).FDLayoutEdge;function t(l,g,n){e.call(this,l,g,n)}t.prototype=Object.create(e.prototype);for(var i in e)t[i]=e[i];I.exports=t}),(function(I,L,o){var e=o(0).LGraph;function t(l,g,n){e.call(this,l,g,n)}t.prototype=Object.create(e.prototype);for(var i in e)t[i]=e[i];I.exports=t}),(function(I,L,o){var e=o(0).LGraphManager;function t(l){e.call(this,l)}t.prototype=Object.create(e.prototype);for(var i in e)t[i]=e[i];I.exports=t}),(function(I,L,o){var e=o(0).FDLayoutNode,t=o(0).IMath;function i(g,n,d,r){e.call(this,g,n,d,r)}i.prototype=Object.create(e.prototype);for(var l in e)i[l]=e[l];i.prototype.move=function(){var g=this.graphManager.getLayout();this.displacementX=g.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=g.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h<d.length;h++)r=d[h],r.getChild()==null?(r.moveBy(g,n),r.displacementX+=g,r.displacementY+=n):r.propogateDisplacementToChildren(g,n)},i.prototype.setPred1=function(g){this.pred1=g},i.prototype.getPred1=function(){return pred1},i.prototype.getPred2=function(){return pred2},i.prototype.setNext=function(g){this.next=g},i.prototype.getNext=function(){return next},i.prototype.setProcessed=function(g){this.processed=g},i.prototype.isProcessed=function(){return processed},I.exports=i}),(function(I,L,o){var e=o(0).FDLayout,t=o(4),i=o(3),l=o(5),g=o(2),n=o(1),d=o(0).FDLayoutConstants,r=o(0).LayoutConstants,h=o(0).Point,a=o(0).PointD,p=o(0).Layout,v=o(0).Integer,D=o(0).IGeometry,u=o(0).LGraph,T=o(0).Transform;function y(){e.call(this),this.toBeTiled={}}y.prototype=Object.create(e.prototype);for(var O in e)y[O]=e[O];y.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},y.prototype.newGraph=function(s){return new i(null,this.graphManager,s)},y.prototype.newNode=function(s){return new l(this.graphManager,s)},y.prototype.newEdge=function(s){return new g(null,null,s)},y.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.isSubLayout||(n.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=n.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=d.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=d.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=d.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},y.prototype.layout=function(){var s=r.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},y.prototype.classicLayout=function(){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){if(n.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(m){return f.has(m)});this.graphManager.setAllNodesToApplyGravitation(c)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(E){return f.has(E)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;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))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c<s.length;c++){var E=s[c].rect,A=s[c].id;f[A]={id:A,x:E.getCenterX(),y:E.getCenterY(),w:E.width,h:E.height}}return f},y.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(d.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},y.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],f,c=this.graphManager.getGraphs(),E=c.length,A;for(A=0;A<E;A++)f=c[A],f.updateConnected(),f.isConnected||(s=s.concat(f.getNodes()));return s},y.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var f=new Set,c;for(c=0;c<s.length;c++){var E=s[c];if(!f.has(E)){var A=E.getSource(),m=E.getTarget();if(A==m)E.getBendpoints().push(new a),E.getBendpoints().push(new a),this.createDummyNodesForBendpoints(E),f.add(E);else{var C=[];if(C=C.concat(A.getEdgeListToNode(m)),C=C.concat(m.getEdgeListToNode(A)),!f.has(C[0])){if(C.length>1){var R;for(R=0;R<C.length;R++){var M=C[R];M.getBendpoints().push(new a),this.createDummyNodesForBendpoints(M)}}C.forEach(function(S){f.add(S)})}}}if(f.size==s.length)break}},y.prototype.positionNodesRadially=function(s){for(var f=new h(0,0),c=Math.ceil(Math.sqrt(s.length)),E=0,A=0,m=0,C=new a(0,0),R=0;R<s.length;R++){R%c==0&&(m=0,A=E,R!=0&&(A+=n.DEFAULT_COMPONENT_SEPERATION),E=0);var M=s[R],S=p.findCenterOfTree(M);f.x=m,f.y=A,C=y.radialLayout(M,S,f),C.y>E&&(E=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var E=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,E);var A=u.calculateBounds(s),m=new T;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C<s.length;C++){var R=s[C];R.transform(m)}var M=new a(A.getMaxX(),A.getMaxY());return m.inverseTransformPoint(M)},y.branchRadialLayout=function(s,f,c,E,A,m){var C=(E-c+1)/2;C<0&&(C+=180);var R=(C+c)%360,M=R*D.TWO_PI/360,S=A*Math.cos(M),Y=A*Math.sin(M);s.setCenter(S,Y);var w=[];w=w.concat(s.getEdges());var x=w.length;f!=null&&x--;for(var F=0,U=w.length,P,_=s.getEdgesBetween(f);_.length>1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(E-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;c<s.length;c++){var E=s[c],A=E.getDiagonal();A>f&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],E=this.graphManager.getAllNodes(),A=0;A<E.length;A++){var m=E[A],C=m.getParent();this.getNodeDegreeWithChildren(m)===0&&(C.id==null||!this.getToBeTiled(C))&&c.push(m)}for(var A=0;A<c.length;A++){var m=c[A],R=m.getParent().id;typeof f[R]>"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U<f[M].length;U++){var P=f[M][U];F.remove(P),x.add(P)}}})},y.prototype.clearCompounds=function(){var s={},f={};this.performDFSOnCompounds();for(var c=0;c<this.compoundOrder.length;c++)f[this.compoundOrder[c].id]=this.compoundOrder[c],s[this.compoundOrder[c].id]=[].concat(this.compoundOrder[c].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[c].getChild()),this.compoundOrder[c].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,f)},y.prototype.clearZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(c){var E=s.idToDummyNode[c];f[c]=s.tileNodes(s.memberGroups[c],E.paddingLeft+E.paddingRight),E.rect.width=f[c].width,E.rect.height=f[c].height})},y.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var f=this.compoundOrder[s],c=f.id,E=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,E,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var E=s.idToDummyNode[c],A=E.paddingLeft,m=E.paddingTop;s.adjustLocations(f[c],E.rect.x,E.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var E=c.getNodes(),A=0;A<E.length;A++){var m=E[A];if(this.getNodeDegree(m)>0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,E=0;E<f.length;E++){var A=f[E];A.getSource().id!==A.getTarget().id&&(c=c+1)}return c},y.prototype.getNodeDegreeWithChildren=function(s){var f=this.getNodeDegree(s);if(s.getChild()==null)return f;for(var c=s.getChild().getNodes(),E=0;E<c.length;E++){var A=c[E];f+=this.getNodeDegreeWithChildren(A)}return f},y.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},y.prototype.fillCompexOrderByDFS=function(s){for(var f=0;f<s.length;f++){var c=s[f];c.getChild()!=null&&this.fillCompexOrderByDFS(c.getChild().getNodes()),this.getToBeTiled(c)&&this.compoundOrder.push(c)}},y.prototype.adjustLocations=function(s,f,c,E,A){f+=E,c+=A;for(var m=f,C=0;C<s.rows.length;C++){var R=s.rows[C];f=m;for(var M=0,S=0;S<R.length;S++){var Y=R[S];Y.rect.x=f,Y.rect.y=c,f+=Y.rect.width+s.horizontalPadding,Y.rect.height>M&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(E){var A=f[E];c.tiledMemberPack[E]=c.tileNodes(s[E],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[E].width,A.rect.height=c.tiledMemberPack[E].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,E=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:E};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height<M.rect.width*M.rect.height?1:0});for(var m=0;m<s.length;m++){var C=s[m];A.rows.length==0?this.insertNodeToRow(A,C,0,f):this.canAddHorizontal(A,C.rect.width,C.rect.height)?this.insertNodeToRow(A,C,this.getShortestRowIndex(A),f):this.insertNodeToRow(A,C,A.rows.length,f),this.shiftToLastRow(A)}return A},y.prototype.insertNodeToRow=function(s,f,c,E){var A=E;if(c==s.rows.length){var m=[];s.rows.push(m),s.rowWidth.push(A),s.rowHeight.push(0)}var C=s.rowWidth[c]+f.rect.width;s.rows[c].length>0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width<C&&(s.width=C);var R=f.rect.height;c>0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]<c&&(f=E,c=s.rowWidth[E]);return f},y.prototype.getLongestRowIndex=function(s){for(var f=-1,c=Number.MIN_VALUE,E=0;E<s.rows.length;E++)s.rowWidth[E]>c&&(f=E,c=s.rowWidth[E]);return f},y.prototype.canAddHorizontal=function(s,f,c){var E=this.getShortestRowIndex(s);if(E<0)return!0;var A=s.rowWidth[E];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[E]<c&&E>0&&(m=c+s.verticalPadding-s.rowHeight[E]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.width<f?R=(s.height+m)/f:R=(s.height+m)/s.width,R<1&&(R=1/R),C<1&&(C=1/C),C<R},y.prototype.shiftToLastRow=function(s){var f=this.getLongestRowIndex(s),c=s.rowWidth.length-1,E=s.rows[f],A=E[E.length-1],m=A.width+s.horizontalPadding;if(s.width-s.rowWidth[c]>m&&f!=c){E.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;R<E.length;R++)E[R].height>C&&(C=E[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]<A.height+s.verticalPadding&&(s.rowHeight[c]=A.height+s.verticalPadding);var S=s.rowHeight[f]+s.rowHeight[c];s.height+=S-M,this.shiftToLastRow(s)}},y.prototype.tilingPreLayout=function(){n.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},y.prototype.tilingPostLayout=function(){n.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},y.prototype.reduceTrees=function(){for(var s=[],f=!0,c;f;){var E=this.graphManager.getAllNodes(),A=[];f=!1;for(var m=0;m<E.length;m++)c=E[m],c.getEdges().length==1&&!c.getEdges()[0].isInterGraph&&c.getChild()==null&&(A.push([c,c.getEdges()[0],c.getOwner()]),f=!0);if(f==!0){for(var C=[],R=0;R<A.length;R++)A[R][0].getEdges().length==1&&(C.push(A[R]),A[R][0].getOwner().remove(A[R][0]));s.push(C),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},y.prototype.growTree=function(s){for(var f=s.length,c=s[f-1],E,A=0;A<c.length;A++)E=c[A],this.findPlaceforPrunedNode(E),E[2].add(E[0]),E[2].add(E[1],E[1].source,E[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},y.prototype.findPlaceforPrunedNode=function(s){var f,c,E=s[0];E==s[1].source?c=s[1].target:c=s[1].source;var A=c.startX,m=c.finishX,C=c.startY,R=c.finishY,M=0,S=0,Y=0,w=0,x=[M,Y,S,w];if(C>0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m<this.grid.length-1)for(var F=C;F<=R;F++)x[1]+=this.grid[m+1][F].length+this.grid[m][F].length-1;if(R<this.grid[0].length-1)for(var F=A;F<=m;F++)x[2]+=this.grid[F][R+1].length+this.grid[F][R].length-1;if(A>0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X<x.length;X++)x[X]<U?(U=x[X],P=1,_=X):x[X]==U&&P++;if(P==3&&U==0)x[0]==0&&x[1]==0&&x[2]==0?f=1:x[0]==0&&x[1]==0&&x[3]==0?f=0:x[0]==0&&x[2]==0&&x[3]==0?f=3:x[1]==0&&x[2]==0&&x[3]==0&&(f=2);else if(P==2&&U==0){var H=Math.floor(Math.random()*2);x[0]==0&&x[1]==0?H==0?f=0:f=1:x[0]==0&&x[2]==0?H==0?f=0:f=2:x[0]==0&&x[3]==0?H==0?f=0:f=3:x[1]==0&&x[2]==0?H==0?f=1:f=2:x[1]==0&&x[3]==0?H==0?f=1:f=3:H==0?f=2:f=3}else if(P==4&&U==0){var H=Math.floor(Math.random()*4);f=H}else f=_;f==0?E.setCenter(c.getCenterX(),c.getCenterY()-c.getHeight()/2-d.DEFAULT_EDGE_LENGTH-E.getHeight()/2):f==1?E.setCenter(c.getCenterX()+c.getWidth()/2+d.DEFAULT_EDGE_LENGTH+E.getWidth()/2,c.getCenterY()):f==2?E.setCenter(c.getCenterX(),c.getCenterY()+c.getHeight()/2+d.DEFAULT_EDGE_LENGTH+E.getHeight()/2):E.setCenter(c.getCenterX()-c.getWidth()/2-d.DEFAULT_EDGE_LENGTH-E.getWidth()/2,c.getCenterY())},I.exports=y}),(function(I,L,o){var e={};e.layoutBase=o(0),e.CoSEConstants=o(1),e.CoSEEdge=o(2),e.CoSEGraph=o(3),e.CoSEGraphManager=o(4),e.CoSELayout=o(6),e.CoSENode=o(5),I.exports=e})])})})(Z)),Z.exports}var dt=k.exports,J;function vt(){return J||(J=1,(function(G,b){(function(I,L){G.exports=L(pt())})(dt,function(N){return(function(I){var L={};function o(e){if(L[e])return L[e].exports;var t=L[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=I,o.c=L,o.i=function(e){return e},o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)})([(function(I,L){I.exports=N}),(function(I,L,o){var e=o(0).layoutBase.LayoutConstants,t=o(0).layoutBase.FDLayoutConstants,i=o(0).CoSEConstants,l=o(0).CoSELayout,g=o(0).CoSENode,n=o(0).layoutBase.PointD,d=o(0).layoutBase.DimensionD,r={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(D,u){var T={};for(var y in D)T[y]=D[y];for(var y in u)T[y]=u[y];return T}function a(D){this.options=h(r,D),p(this.options)}var p=function(u){u.nodeRepulsion!=null&&(i.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=u.nodeRepulsion),u.idealEdgeLength!=null&&(i.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=u.idealEdgeLength),u.edgeElasticity!=null&&(i.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=u.edgeElasticity),u.nestingFactor!=null&&(i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=u.nestingFactor),u.gravity!=null&&(i.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=u.gravity),u.numIter!=null&&(i.MAX_ITERATIONS=t.MAX_ITERATIONS=u.numIter),u.gravityRange!=null&&(i.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=u.gravityRange),u.gravityCompound!=null&&(i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=u.gravityCompound),u.gravityRangeCompound!=null&&(i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=u.gravityRangeCompound),u.initialEnergyOnIncremental!=null&&(i.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=u.initialEnergyOnIncremental),u.quality=="draft"?e.QUALITY=0:u.quality=="proof"?e.QUALITY=2:e.QUALITY=1,i.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=u.nodeDimensionsIncludeLabels,i.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!u.randomize,i.ANIMATE=t.ANIMATE=e.ANIMATE=u.animate,i.TILE=u.tile,i.TILING_PADDING_VERTICAL=typeof u.tilingPaddingVertical=="function"?u.tilingPaddingVertical.call():u.tilingPaddingVertical,i.TILING_PADDING_HORIZONTAL=typeof u.tilingPaddingHorizontal=="function"?u.tilingPaddingHorizontal.call():u.tilingPaddingHorizontal};a.prototype.run=function(){var D,u,T=this.options;this.idToLNode={};var y=this.layout=new l,O=this;O.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var s=y.newGraphManager();this.gm=s;var f=this.options.eles.nodes(),c=this.options.eles.edges();this.root=s.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(f),y);for(var E=0;E<c.length;E++){var A=c[E],m=this.idToLNode[A.data("source")],C=this.idToLNode[A.data("target")];if(m!==C&&m.getEdgesBetween(C).length==0){var R=s.add(y.newEdge(),m,C);R.id=A.id()}}var M=function(w,x){typeof w=="number"&&(w=x);var F=w.data("id"),U=O.idToLNode[F];return{x:U.getRect().getCenterX(),y:U.getRect().getCenterY()}},S=function Y(){for(var w=function(){T.fit&&T.cy.fit(T.eles,T.padding),D||(D=!0,O.cy.one("layoutready",T.ready),O.cy.trigger({type:"layoutready",layout:O}))},x=O.options.refresh,F,U=0;U<x&&!F;U++)F=O.stopped||O.layout.tick();if(F){y.checkLayoutSuccess()&&!y.isSubLayout&&y.doPostLayout(),y.tilingPostLayout&&y.tilingPostLayout(),y.isLayoutFinished=!0,O.options.eles.nodes().positions(M),w(),O.cy.one("layoutstop",O.options.stop),O.cy.trigger({type:"layoutstop",layout:O}),u&&cancelAnimationFrame(u),D=!1;return}var P=O.layout.getPositionsData();T.eles.nodes().positions(function(_,X){if(typeof _=="number"&&(_=X),!_.isParent()){for(var H=_.id(),W=P[H],B=_;W==null&&(W=P[B.data("parent")]||P["DummyCompound_"+B.data("parent")],P[H]=W,B=B.parent()[0],B!=null););return W!=null?{x:W.x,y:W.y}:{x:_.position("x"),y:_.position("y")}}}),w(),u=requestAnimationFrame(Y)};return y.addListener("layoutstarted",function(){O.options.animate==="during"&&(u=requestAnimationFrame(S))}),y.runLayout(),this.options.animate!=="during"&&(O.options.eles.nodes().not(":parent").layoutPositions(O,O.options,M),D=!1),this},a.prototype.getTopMostNodes=function(D){for(var u={},T=0;T<D.length;T++)u[D[T].id()]=!0;var y=D.filter(function(O,s){typeof O=="number"&&(O=s);for(var f=O.parent()[0];f!=null;){if(u[f.id()])return!1;f=f.parent()[0]}return!0});return y},a.prototype.processChildrenList=function(D,u,T){for(var y=u.length,O=0;O<y;O++){var s=u[O],f=s.children(),c,E=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(s.outerWidth()!=null&&s.outerHeight()!=null?c=D.add(new g(T.graphManager,new n(s.position("x")-E.w/2,s.position("y")-E.h/2),new d(parseFloat(E.w),parseFloat(E.h)))):c=D.add(new g(this.graphManager)),c.id=s.data("id"),c.paddingLeft=parseInt(s.css("padding")),c.paddingTop=parseInt(s.css("padding")),c.paddingRight=parseInt(s.css("padding")),c.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var A=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,m=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,C=s.css("text-halign");c.labelWidth=A,c.labelHeight=m,c.labelPos=C}if(this.idToLNode[s.data("id")]=c,isNaN(c.rect.x)&&(c.rect.x=0),isNaN(c.rect.y)&&(c.rect.y=0),f!=null&&f.length>0){var R;R=T.getGraphManager().add(T.newGraph(),c),this.processChildrenList(R,f,T)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(k)),k.exports}var yt=vt();const Et=lt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(L=>{["id","label","height","width","padding","x","y"].includes(L)||(I[L]=N[L])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(L=>{["id","start","end"].includes(L)||(I[L]=N[L])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=gt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const L={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(L).run(),I.ready(o=>{$.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),L={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(L[o]=N[o])}),L})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,L={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(L[o]=N[o])}),L})}V(ot,"extractPositionedEdges");async function st(G,b){$.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),L=ot(N);return $.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`),{nodes:I,edges:L}}catch(N){throw $.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:L,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const T={...u};n[u.id]=T,g[u.id]=T,await N(r,u)}else{const T={...u};g[u.id]=T;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();T.width=O.width,T.height=O.height,T.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const T=g[u.id];return{...u,width:T.width,height:T.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const T=g[u.id];T?.domId&&(T.domId.attr("transform",`translate(${u.x}, ${u.y})`),T.x=u.x,T.y=u.y,t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const T=G.edges.find(y=>y.id===u.id);T&&(T.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await L(a,u);const T=g[u.start??""],y=g[u.end??""];if(T&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:T.x||0,y:T.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,T,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),At=Lt;export{At as render};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{H as W,z as j,a5 as lt,a6 as gt}from"./index-B7GqH6If.js";import{e as tt}from"./cytoscape.esm-Cvf3sx9F-DgU3JdRZ.js";var V={exports:{}},z={exports:{}},q={exports:{}},ut=q.exports,$;function ct(){return $||($=1,(function(x,X){(function(m,L){x.exports=L()})(ut,function(){return(function(m){var L={};function T(n){if(L[n])return L[n].exports;var e=L[n]={i:n,l:!1,exports:{}};return m[n].call(e.exports,e,e.exports,T),e.l=!0,e.exports}return T.m=m,T.c=L,T.i=function(n){return n},T.d=function(n,e,t){T.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:t})},T.n=function(n){var e=n&&n.__esModule?(function(){return n.default}):(function(){return n});return T.d(e,"a",e),e},T.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},T.p="",T(T.s=26)})([(function(m,L,T){function n(){}n.QUALITY=1,n.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,n.DEFAULT_INCREMENTAL=!1,n.DEFAULT_ANIMATION_ON_LAYOUT=!0,n.DEFAULT_ANIMATION_DURING_LAYOUT=!1,n.DEFAULT_ANIMATION_PERIOD=50,n.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,n.DEFAULT_GRAPH_MARGIN=15,n.NODE_DIMENSIONS_INCLUDE_LABELS=!1,n.SIMPLE_NODE_SIZE=40,n.SIMPLE_NODE_HALF_SIZE=n.SIMPLE_NODE_SIZE/2,n.EMPTY_COMPOUND_NODE_SIZE=40,n.MIN_EDGE_LENGTH=1,n.WORLD_BOUNDARY=1e6,n.INITIAL_WORLD_BOUNDARY=n.WORLD_BOUNDARY/1e3,n.WORLD_CENTER_X=1200,n.WORLD_CENTER_Y=900,m.exports=n}),(function(m,L,T){var n=T(2),e=T(8),t=T(9);function r(a,o,p){n.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=a,this.target=o}r.prototype=Object.create(n.prototype);for(var h in n)r[h]=n[h];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(a){if(this.source===a)return this.target;if(this.target===a)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(a,o){for(var p=this.getOtherEnd(a),i=o.getGraphManager().getRoot();;){if(p.getOwner()==o)return p;if(p.getOwner()==i)break;p=p.getOwner().getParent()}return null},r.prototype.updateLength=function(){var a=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),a),this.isOverlapingSourceAndTarget||(this.lengthX=a[0]-a[2],this.lengthY=a[1]-a[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},m.exports=r}),(function(m,L,T){function n(e){this.vGraphObject=e}m.exports=n}),(function(m,L,T){var n=T(2),e=T(10),t=T(13),r=T(0),h=T(16),a=T(4);function o(i,g,l,f){l==null&&f==null&&(f=g),n.call(this,f),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=f,this.edges=[],this.graphManager=i,l!=null&&g!=null?this.rect=new t(g.x,g.y,l.width,l.height):this.rect=new t}o.prototype=Object.create(n.prototype);for(var p in n)o[p]=n[p];o.prototype.getEdges=function(){return this.edges},o.prototype.getChild=function(){return this.child},o.prototype.getOwner=function(){return this.owner},o.prototype.getWidth=function(){return this.rect.width},o.prototype.setWidth=function(i){this.rect.width=i},o.prototype.getHeight=function(){return this.rect.height},o.prototype.setHeight=function(i){this.rect.height=i},o.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},o.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},o.prototype.getCenter=function(){return new a(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},o.prototype.getLocation=function(){return new a(this.rect.x,this.rect.y)},o.prototype.getRect=function(){return this.rect},o.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},o.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},o.prototype.setRect=function(i,g){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=g.width,this.rect.height=g.height},o.prototype.setCenter=function(i,g){this.rect.x=i-this.rect.width/2,this.rect.y=g-this.rect.height/2},o.prototype.setLocation=function(i,g){this.rect.x=i,this.rect.y=g},o.prototype.moveBy=function(i,g){this.rect.x+=i,this.rect.y+=g},o.prototype.getEdgeListToNode=function(i){var g=[],l=this;return l.edges.forEach(function(f){if(f.target==i){if(f.source!=l)throw"Incorrect edge source!";g.push(f)}}),g},o.prototype.getEdgesBetween=function(i){var g=[],l=this;return l.edges.forEach(function(f){if(!(f.source==l||f.target==l))throw"Incorrect edge source and/or target";(f.target==i||f.source==i)&&g.push(f)}),g},o.prototype.getNeighborsList=function(){var i=new Set,g=this;return g.edges.forEach(function(l){if(l.source==g)i.add(l.target);else{if(l.target!=g)throw"Incorrect incidency!";i.add(l.source)}}),i},o.prototype.withChildren=function(){var i=new Set,g,l;if(i.add(this),this.child!=null)for(var f=this.child.getNodes(),E=0;E<f.length;E++)g=f[E],l=g.withChildren(),l.forEach(function(y){i.add(y)});return i},o.prototype.getNoOfChildren=function(){var i=0,g;if(this.child==null)i=1;else for(var l=this.child.getNodes(),f=0;f<l.length;f++)g=l[f],i+=g.getNoOfChildren();return i==0&&(i=1),i},o.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},o.prototype.calcEstimatedSize=function(){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)},o.prototype.scatter=function(){var i,g,l=-r.INITIAL_WORLD_BOUNDARY,f=r.INITIAL_WORLD_BOUNDARY;i=r.WORLD_CENTER_X+h.nextDouble()*(f-l)+l;var E=-r.INITIAL_WORLD_BOUNDARY,y=r.INITIAL_WORLD_BOUNDARY;g=r.WORLD_CENTER_Y+h.nextDouble()*(y-E)+E,this.rect.x=i,this.rect.y=g},o.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var i=this.getChild();if(i.updateBounds(!0),this.rect.x=i.getLeft(),this.rect.y=i.getTop(),this.setWidth(i.getRight()-i.getLeft()),this.setHeight(i.getBottom()-i.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var g=i.getRight()-i.getLeft(),l=i.getBottom()-i.getTop();this.labelWidth>g&&(this.rect.x-=(this.labelWidth-g)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},o.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},o.prototype.transform=function(i){var g=this.rect.x;g>r.WORLD_BOUNDARY?g=r.WORLD_BOUNDARY:g<-r.WORLD_BOUNDARY&&(g=-r.WORLD_BOUNDARY);var l=this.rect.y;l>r.WORLD_BOUNDARY?l=r.WORLD_BOUNDARY:l<-r.WORLD_BOUNDARY&&(l=-r.WORLD_BOUNDARY);var f=new a(g,l),E=i.inverseTransformPoint(f);this.setLocation(E.x,E.y)},o.prototype.getLeft=function(){return this.rect.x},o.prototype.getRight=function(){return this.rect.x+this.rect.width},o.prototype.getTop=function(){return this.rect.y},o.prototype.getBottom=function(){return this.rect.y+this.rect.height},o.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},m.exports=o}),(function(m,L,T){function n(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.setX=function(e){this.x=e},n.prototype.setY=function(e){this.y=e},n.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},n.prototype.getCopy=function(){return new n(this.x,this.y)},n.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},m.exports=n}),(function(m,L,T){var n=T(2),e=T(10),t=T(0),r=T(6),h=T(3),a=T(1),o=T(13),p=T(12),i=T(11);function g(f,E,y){n.call(this,y),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=f,E!=null&&E instanceof r?this.graphManager=E:E!=null&&E instanceof Layout&&(this.graphManager=E.graphManager)}g.prototype=Object.create(n.prototype);for(var l in n)g[l]=n[l];g.prototype.getNodes=function(){return this.nodes},g.prototype.getEdges=function(){return this.edges},g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getParent=function(){return this.parent},g.prototype.getLeft=function(){return this.left},g.prototype.getRight=function(){return this.right},g.prototype.getTop=function(){return this.top},g.prototype.getBottom=function(){return this.bottom},g.prototype.isConnected=function(){return this.isConnected},g.prototype.add=function(f,E,y){if(E==null&&y==null){var d=f;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(d)>-1)throw"Node already in graph!";return d.owner=this,this.getNodes().push(d),d}else{var N=f;if(!(this.getNodes().indexOf(E)>-1&&this.getNodes().indexOf(y)>-1))throw"Source or target not in graph!";if(!(E.owner==y.owner&&E.owner==this))throw"Both owners must be this graph!";return E.owner!=y.owner?null:(N.source=E,N.target=y,N.isInterGraph=!1,this.getEdges().push(N),E.edges.push(N),y!=E&&y.edges.push(N),N)}},g.prototype.remove=function(f){var E=f;if(f instanceof h){if(E==null)throw"Node is null!";if(!(E.owner!=null&&E.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var y=E.edges.slice(),d,N=y.length,v=0;v<N;v++)d=y[v],d.isInterGraph?this.graphManager.remove(d):d.source.owner.remove(d);var I=this.nodes.indexOf(E);if(I==-1)throw"Node not in owner node list!";this.nodes.splice(I,1)}else if(f instanceof a){var d=f;if(d==null)throw"Edge is null!";if(!(d.source!=null&&d.target!=null))throw"Source and/or target is null!";if(!(d.source.owner!=null&&d.target.owner!=null&&d.source.owner==this&&d.target.owner==this))throw"Source and/or target owner is invalid!";var s=d.source.edges.indexOf(d),u=d.target.edges.indexOf(d);if(!(s>-1&&u>-1))throw"Source and/or target doesn't know this edge!";d.source.edges.splice(s,1),d.target!=d.source&&d.target.edges.splice(u,1);var I=d.source.owner.getEdges().indexOf(d);if(I==-1)throw"Not in owner's edge list!";d.source.owner.getEdges().splice(I,1)}},g.prototype.updateLeftTop=function(){for(var f=e.MAX_VALUE,E=e.MAX_VALUE,y,d,N,v=this.getNodes(),I=v.length,s=0;s<I;s++){var u=v[s];y=u.getTop(),d=u.getLeft(),f>y&&(f=y),E>d&&(E=d)}return f==e.MAX_VALUE?null:(v[0].getParent().paddingLeft!=null?N=v[0].getParent().paddingLeft:N=this.margin,this.left=E-N,this.top=f-N,new p(this.left,this.top))},g.prototype.updateBounds=function(f){for(var E=e.MAX_VALUE,y=-e.MAX_VALUE,d=e.MAX_VALUE,N=-e.MAX_VALUE,v,I,s,u,c,A=this.nodes,_=A.length,O=0;O<_;O++){var D=A[O];f&&D.child!=null&&D.updateBounds(),v=D.getLeft(),I=D.getRight(),s=D.getTop(),u=D.getBottom(),E>v&&(E=v),y<I&&(y=I),d>s&&(d=s),N<u&&(N=u)}var w=new o(E,d,y-E,N-d);E==e.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),A[0].getParent().paddingLeft!=null?c=A[0].getParent().paddingLeft:c=this.margin,this.left=w.x-c,this.right=w.x+w.width+c,this.top=w.y-c,this.bottom=w.y+w.height+c},g.calculateBounds=function(f){for(var E=e.MAX_VALUE,y=-e.MAX_VALUE,d=e.MAX_VALUE,N=-e.MAX_VALUE,v,I,s,u,c=f.length,A=0;A<c;A++){var _=f[A];v=_.getLeft(),I=_.getRight(),s=_.getTop(),u=_.getBottom(),E>v&&(E=v),y<I&&(y=I),d>s&&(d=s),N<u&&(N=u)}var O=new o(E,d,y-E,N-d);return O},g.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},g.prototype.getEstimatedSize=function(){if(this.estimatedSize==e.MIN_VALUE)throw"assert failed";return this.estimatedSize},g.prototype.calcEstimatedSize=function(){for(var f=0,E=this.nodes,y=E.length,d=0;d<y;d++){var N=E[d];f+=N.calcEstimatedSize()}return f==0?this.estimatedSize=t.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=f/Math.sqrt(this.nodes.length),this.estimatedSize},g.prototype.updateConnected=function(){var f=this;if(this.nodes.length==0){this.isConnected=!0;return}var E=new i,y=new Set,d=this.nodes[0],N,v,I=d.withChildren();for(I.forEach(function(O){E.push(O),y.add(O)});E.length!==0;){d=E.shift(),N=d.getEdges();for(var s=N.length,u=0;u<s;u++){var c=N[u];if(v=c.getOtherEndInGraph(d,this),v!=null&&!y.has(v)){var A=v.withChildren();A.forEach(function(O){E.push(O),y.add(O)})}}}if(this.isConnected=!1,y.size>=this.nodes.length){var _=0;y.forEach(function(O){O.owner==f&&_++}),_==this.nodes.length&&(this.isConnected=!0)}},m.exports=g}),(function(m,L,T){var n,e=T(1);function t(r){n=T(5),this.layout=r,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var r=this.layout.newGraph(),h=this.layout.newNode(null),a=this.add(r,h);return this.setRootGraph(a),this.rootGraph},t.prototype.add=function(r,h,a,o,p){if(a==null&&o==null&&p==null){if(r==null)throw"Graph is null!";if(h==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(h.child!=null)throw"Already has a child!";return r.parent=h,h.child=r,r}else{p=a,o=h,a=r;var i=o.getOwner(),g=p.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(g!=null&&g.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==g)return a.isInterGraph=!1,i.add(a,o,p);if(a.isInterGraph=!0,a.source=o,a.target=p,this.edges.indexOf(a)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(a),!(a.source!=null&&a.target!=null))throw"Edge source and/or target is null!";if(!(a.source.edges.indexOf(a)==-1&&a.target.edges.indexOf(a)==-1))throw"Edge already in source and/or target incidency list!";return a.source.edges.push(a),a.target.edges.push(a),a}},t.prototype.remove=function(r){if(r instanceof n){var h=r;if(h.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(h==this.rootGraph||h.parent!=null&&h.parent.graphManager==this))throw"Invalid parent node!";var a=[];a=a.concat(h.getEdges());for(var o,p=a.length,i=0;i<p;i++)o=a[i],h.remove(o);var g=[];g=g.concat(h.getNodes());var l;p=g.length;for(var i=0;i<p;i++)l=g[i],h.remove(l);h==this.rootGraph&&this.setRootGraph(null);var f=this.graphs.indexOf(h);this.graphs.splice(f,1),h.parent=null}else if(r instanceof e){if(o=r,o==null)throw"Edge is null!";if(!o.isInterGraph)throw"Not an inter-graph edge!";if(!(o.source!=null&&o.target!=null))throw"Source and/or target is null!";if(!(o.source.edges.indexOf(o)!=-1&&o.target.edges.indexOf(o)!=-1))throw"Source and/or target doesn't know this edge!";var f=o.source.edges.indexOf(o);if(o.source.edges.splice(f,1),f=o.target.edges.indexOf(o),o.target.edges.splice(f,1),!(o.source.owner!=null&&o.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(o.source.owner.getGraphManager().edges.indexOf(o)==-1)throw"Not in owner graph manager's edge list!";var f=o.source.owner.getGraphManager().edges.indexOf(o);o.source.owner.getGraphManager().edges.splice(f,1)}},t.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},t.prototype.getGraphs=function(){return this.graphs},t.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],h=this.getGraphs(),a=h.length,o=0;o<a;o++)r=r.concat(h[o].getNodes());this.allNodes=r}return this.allNodes},t.prototype.resetAllNodes=function(){this.allNodes=null},t.prototype.resetAllEdges=function(){this.allEdges=null},t.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},t.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],h=this.getGraphs();h.length;for(var a=0;a<h.length;a++)r=r.concat(h[a].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},t.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},t.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},t.prototype.getRoot=function(){return this.rootGraph},t.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},t.prototype.getLayout=function(){return this.layout},t.prototype.isOneAncestorOfOther=function(r,h){if(!(r!=null&&h!=null))throw"assert failed";if(r==h)return!0;var a=r.getOwner(),o;do{if(o=a.getParent(),o==null)break;if(o==h)return!0;if(a=o.getOwner(),a==null)break}while(!0);a=h.getOwner();do{if(o=a.getParent(),o==null)break;if(o==r)return!0;if(a=o.getOwner(),a==null)break}while(!0);return!1},t.prototype.calcLowestCommonAncestors=function(){for(var r,h,a,o,p,i=this.getAllEdges(),g=i.length,l=0;l<g;l++){if(r=i[l],h=r.source,a=r.target,r.lca=null,r.sourceInLca=h,r.targetInLca=a,h==a){r.lca=h.getOwner();continue}for(o=h.getOwner();r.lca==null;){for(r.targetInLca=a,p=a.getOwner();r.lca==null;){if(p==o){r.lca=p;break}if(p==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=p.getParent(),p=r.targetInLca.getOwner()}if(o==this.rootGraph)break;r.lca==null&&(r.sourceInLca=o.getParent(),o=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},t.prototype.calcLowestCommonAncestor=function(r,h){if(r==h)return r.getOwner();var a=r.getOwner();do{if(a==null)break;var o=h.getOwner();do{if(o==null)break;if(o==a)return o;o=o.getParent().getOwner()}while(!0);a=a.getParent().getOwner()}while(!0);return a},t.prototype.calcInclusionTreeDepths=function(r,h){r==null&&h==null&&(r=this.rootGraph,h=1);for(var a,o=r.getNodes(),p=o.length,i=0;i<p;i++)a=o[i],a.inclusionTreeDepth=h,a.child!=null&&this.calcInclusionTreeDepths(a.child,h+1)},t.prototype.includesInvalidEdge=function(){for(var r,h=this.edges.length,a=0;a<h;a++)if(r=this.edges[a],this.isOneAncestorOfOther(r.source,r.target))return!0;return!1},m.exports=t}),(function(m,L,T){var n=T(0);function e(){}for(var t in n)e[t]=n[t];e.MAX_ITERATIONS=2500,e.DEFAULT_EDGE_LENGTH=50,e.DEFAULT_SPRING_STRENGTH=.45,e.DEFAULT_REPULSION_STRENGTH=4500,e.DEFAULT_GRAVITY_STRENGTH=.4,e.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,e.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,e.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,e.COOLING_ADAPTATION_FACTOR=.33,e.ADAPTATION_LOWER_NODE_LIMIT=1e3,e.ADAPTATION_UPPER_NODE_LIMIT=5e3,e.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,e.MAX_NODE_DISPLACEMENT=e.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,e.MIN_REPULSION_DIST=e.DEFAULT_EDGE_LENGTH/10,e.CONVERGENCE_CHECK_PERIOD=100,e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,e.MIN_EDGE_LENGTH=1,e.GRID_CALCULATION_CHECK_PERIOD=10,m.exports=e}),(function(m,L,T){var n=T(12);function e(){}e.calcSeparationAmount=function(t,r,h,a){if(!t.intersects(r))throw"assert failed";var o=new Array(2);this.decideDirectionsForOverlappingNodes(t,r,o),h[0]=Math.min(t.getRight(),r.getRight())-Math.max(t.x,r.x),h[1]=Math.min(t.getBottom(),r.getBottom())-Math.max(t.y,r.y),t.getX()<=r.getX()&&t.getRight()>=r.getRight()?h[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(h[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?h[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(h[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var p=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(p=1);var i=p*h[0],g=h[1]/p;h[0]<g?g=h[0]:i=h[1],h[0]=-1*o[0]*(g/2+a),h[1]=-1*o[1]*(i/2+a)},e.decideDirectionsForOverlappingNodes=function(t,r,h){t.getCenterX()<r.getCenterX()?h[0]=-1:h[0]=1,t.getCenterY()<r.getCenterY()?h[1]=-1:h[1]=1},e.getIntersection2=function(t,r,h){var a=t.getCenterX(),o=t.getCenterY(),p=r.getCenterX(),i=r.getCenterY();if(t.intersects(r))return h[0]=a,h[1]=o,h[2]=p,h[3]=i,!0;var g=t.getX(),l=t.getY(),f=t.getRight(),E=t.getX(),y=t.getBottom(),d=t.getRight(),N=t.getWidthHalf(),v=t.getHeightHalf(),I=r.getX(),s=r.getY(),u=r.getRight(),c=r.getX(),A=r.getBottom(),_=r.getRight(),O=r.getWidthHalf(),D=r.getHeightHalf(),w=!1,R=!1;if(a===p){if(o>i)return h[0]=a,h[1]=l,h[2]=p,h[3]=A,!1;if(o<i)return h[0]=a,h[1]=y,h[2]=p,h[3]=s,!1}else if(o===i){if(a>p)return h[0]=g,h[1]=o,h[2]=u,h[3]=i,!1;if(a<p)return h[0]=f,h[1]=o,h[2]=I,h[3]=i,!1}else{var F=t.height/t.width,b=r.height/r.width,C=(i-o)/(p-a),M=void 0,G=void 0,P=void 0,S=void 0,U=void 0,Y=void 0;if(-F===C?a>p?(h[0]=E,h[1]=y,w=!0):(h[0]=f,h[1]=l,w=!0):F===C&&(a>p?(h[0]=g,h[1]=l,w=!0):(h[0]=d,h[1]=y,w=!0)),-b===C?p>a?(h[2]=c,h[3]=A,R=!0):(h[2]=u,h[3]=s,R=!0):b===C&&(p>a?(h[2]=I,h[3]=s,R=!0):(h[2]=_,h[3]=A,R=!0)),w&&R)return!1;if(a>p?o>i?(M=this.getCardinalDirection(F,C,4),G=this.getCardinalDirection(b,C,2)):(M=this.getCardinalDirection(-F,C,3),G=this.getCardinalDirection(-b,C,1)):o>i?(M=this.getCardinalDirection(-F,C,1),G=this.getCardinalDirection(-b,C,3)):(M=this.getCardinalDirection(F,C,2),G=this.getCardinalDirection(b,C,4)),!w)switch(M){case 1:S=l,P=a+-v/C,h[0]=P,h[1]=S;break;case 2:P=d,S=o+N*C,h[0]=P,h[1]=S;break;case 3:S=y,P=a+v/C,h[0]=P,h[1]=S;break;case 4:P=E,S=o+-N*C,h[0]=P,h[1]=S;break}if(!R)switch(G){case 1:Y=s,U=p+-D/C,h[2]=U,h[3]=Y;break;case 2:U=_,Y=i+O*C,h[2]=U,h[3]=Y;break;case 3:Y=A,U=p+D/C,h[2]=U,h[3]=Y;break;case 4:U=c,Y=i+-O*C,h[2]=U,h[3]=Y;break}}return!1},e.getCardinalDirection=function(t,r,h){return t>r?h:1+h%4},e.getIntersection=function(t,r,h,a){if(a==null)return this.getIntersection2(t,r,h);var o=t.x,p=t.y,i=r.x,g=r.y,l=h.x,f=h.y,E=a.x,y=a.y,d=void 0,N=void 0,v=void 0,I=void 0,s=void 0,u=void 0,c=void 0,A=void 0,_=void 0;return v=g-p,s=o-i,c=i*p-o*g,I=y-f,u=l-E,A=E*f-l*y,_=v*u-I*s,_===0?null:(d=(s*A-u*c)/_,N=(I*c-v*A)/_,new n(d,N))},e.angleOfVector=function(t,r,h,a){var o=void 0;return t!==h?(o=Math.atan((a-r)/(h-t)),h<t?o+=Math.PI:a<r&&(o+=this.TWO_PI)):a<r?o=this.ONE_AND_HALF_PI:o=this.HALF_PI,o},e.doIntersect=function(t,r,h,a){var o=t.x,p=t.y,i=r.x,g=r.y,l=h.x,f=h.y,E=a.x,y=a.y,d=(i-o)*(y-f)-(E-l)*(g-p);if(d===0)return!1;var N=((y-f)*(E-o)+(l-E)*(y-p))/d,v=((p-g)*(E-o)+(i-o)*(y-p))/d;return 0<N&&N<1&&0<v&&v<1},e.HALF_PI=.5*Math.PI,e.ONE_AND_HALF_PI=1.5*Math.PI,e.TWO_PI=2*Math.PI,e.THREE_PI=3*Math.PI,m.exports=e}),(function(m,L,T){function n(){}n.sign=function(e){return e>0?1:e<0?-1:0},n.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},n.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},m.exports=n}),(function(m,L,T){function n(){}n.MAX_VALUE=2147483647,n.MIN_VALUE=-2147483648,m.exports=n}),(function(m,L,T){var n=(function(){function o(p,i){for(var g=0;g<i.length;g++){var l=i[g];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(p,l.key,l)}}return function(p,i,g){return i&&o(p.prototype,i),g&&o(p,g),p}})();function e(o,p){if(!(o instanceof p))throw new TypeError("Cannot call a class as a function")}var t=function(o){return{value:o,next:null,prev:null}},r=function(o,p,i,g){return o!==null?o.next=p:g.head=p,i!==null?i.prev=p:g.tail=p,p.prev=o,p.next=i,g.length++,p},h=function(o,p){var i=o.prev,g=o.next;return i!==null?i.next=g:p.head=g,g!==null?g.prev=i:p.tail=i,o.prev=o.next=null,p.length--,o},a=(function(){function o(p){var i=this;e(this,o),this.length=0,this.head=null,this.tail=null,p?.forEach(function(g){return i.push(g)})}return n(o,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(p,i){return r(i.prev,t(p),i,this)}},{key:"insertAfter",value:function(p,i){return r(i,t(p),i.next,this)}},{key:"insertNodeBefore",value:function(p,i){return r(i.prev,p,i,this)}},{key:"insertNodeAfter",value:function(p,i){return r(i,p,i.next,this)}},{key:"push",value:function(p){return r(this.tail,t(p),null,this)}},{key:"unshift",value:function(p){return r(null,t(p),this.head,this)}},{key:"remove",value:function(p){return h(p,this)}},{key:"pop",value:function(){return h(this.tail,this).value}},{key:"popNode",value:function(){return h(this.tail,this)}},{key:"shift",value:function(){return h(this.head,this).value}},{key:"shiftNode",value:function(){return h(this.head,this)}},{key:"get_object_at",value:function(p){if(p<=this.length()){for(var i=1,g=this.head;i<p;)g=g.next,i++;return g.value}}},{key:"set_object_at",value:function(p,i){if(p<=this.length()){for(var g=1,l=this.head;g<p;)l=l.next,g++;l.value=i}}}]),o})();m.exports=a}),(function(m,L,T){function n(e,t,r){this.x=null,this.y=null,e==null&&t==null&&r==null?(this.x=0,this.y=0):typeof e=="number"&&typeof t=="number"&&r==null?(this.x=e,this.y=t):e.constructor.name=="Point"&&t==null&&r==null&&(r=e,this.x=r.x,this.y=r.y)}n.prototype.getX=function(){return this.x},n.prototype.getY=function(){return this.y},n.prototype.getLocation=function(){return new n(this.x,this.y)},n.prototype.setLocation=function(e,t,r){e.constructor.name=="Point"&&t==null&&r==null?(r=e,this.setLocation(r.x,r.y)):typeof e=="number"&&typeof t=="number"&&r==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},n.prototype.move=function(e,t){this.x=e,this.y=t},n.prototype.translate=function(e,t){this.x+=e,this.y+=t},n.prototype.equals=function(e){if(e.constructor.name=="Point"){var t=e;return this.x==t.x&&this.y==t.y}return this==e},n.prototype.toString=function(){return new n().constructor.name+"[x="+this.x+",y="+this.y+"]"},m.exports=n}),(function(m,L,T){function n(e,t,r,h){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&r!=null&&h!=null&&(this.x=e,this.y=t,this.width=r,this.height=h)}n.prototype.getX=function(){return this.x},n.prototype.setX=function(e){this.x=e},n.prototype.getY=function(){return this.y},n.prototype.setY=function(e){this.y=e},n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},n.prototype.getRight=function(){return this.x+this.width},n.prototype.getBottom=function(){return this.y+this.height},n.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},n.prototype.getCenterX=function(){return this.x+this.width/2},n.prototype.getMinX=function(){return this.getX()},n.prototype.getMaxX=function(){return this.getX()+this.width},n.prototype.getCenterY=function(){return this.y+this.height/2},n.prototype.getMinY=function(){return this.getY()},n.prototype.getMaxY=function(){return this.getY()+this.height},n.prototype.getWidthHalf=function(){return this.width/2},n.prototype.getHeightHalf=function(){return this.height/2},m.exports=n}),(function(m,L,T){var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function e(){}e.lastID=0,e.createID=function(t){return e.isPrimitive(t)?t:(t.uniqueID!=null||(t.uniqueID=e.getString(),e.lastID++),t.uniqueID)},e.getString=function(t){return t==null&&(t=e.lastID),"Object#"+t},e.isPrimitive=function(t){var r=typeof t>"u"?"undefined":n(t);return t==null||r!="object"&&r!="function"},m.exports=e}),(function(m,L,T){function n(l){if(Array.isArray(l)){for(var f=0,E=Array(l.length);f<l.length;f++)E[f]=l[f];return E}else return Array.from(l)}var e=T(0),t=T(6),r=T(3),h=T(1),a=T(5),o=T(4),p=T(17),i=T(27);function g(l){i.call(this),this.layoutQuality=e.QUALITY,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=e.DEFAULT_INCREMENTAL,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new t(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,l!=null&&(this.isRemoteUse=l)}g.RANDOM_SEED=1,g.prototype=Object.create(i.prototype),g.prototype.getGraphManager=function(){return this.graphManager},g.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},g.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},g.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},g.prototype.newGraphManager=function(){var l=new t(this);return this.graphManager=l,l},g.prototype.newGraph=function(l){return new a(null,this.graphManager,l)},g.prototype.newNode=function(l){return new r(this.graphManager,l)},g.prototype.newEdge=function(l){return new h(null,null,l)},g.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},g.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var l;return this.checkLayoutSuccess()?l=!1:l=this.layout(),e.ANIMATE==="during"?!1:(l&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,l)},g.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},g.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var l=this.graphManager.getAllEdges(),f=0;f<l.length;f++)l[f];for(var E=this.graphManager.getRoot().getNodes(),f=0;f<E.length;f++)E[f];this.update(this.graphManager.getRoot())}},g.prototype.update=function(l){if(l==null)this.update2();else if(l instanceof r){var f=l;if(f.getChild()!=null)for(var E=f.getChild().getNodes(),y=0;y<E.length;y++)update(E[y]);if(f.vGraphObject!=null){var d=f.vGraphObject;d.update(f)}}else if(l instanceof h){var N=l;if(N.vGraphObject!=null){var v=N.vGraphObject;v.update(N)}}else if(l instanceof a){var I=l;if(I.vGraphObject!=null){var s=I.vGraphObject;s.update(I)}}},g.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=e.QUALITY,this.animationDuringLayout=e.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=e.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=e.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=e.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=e.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=e.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},g.prototype.transform=function(l){if(l==null)this.transform(new o(0,0));else{var f=new p,E=this.graphManager.getRoot().updateLeftTop();if(E!=null){f.setWorldOrgX(l.x),f.setWorldOrgY(l.y),f.setDeviceOrgX(E.x),f.setDeviceOrgY(E.y);for(var y=this.getAllNodes(),d,N=0;N<y.length;N++)d=y[N],d.transform(f)}}},g.prototype.positionNodesRandomly=function(l){if(l==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var f,E,y=l.getNodes(),d=0;d<y.length;d++)f=y[d],E=f.getChild(),E==null||E.getNodes().length==0?f.scatter():(this.positionNodesRandomly(E),f.updateBounds())},g.prototype.getFlatForest=function(){for(var l=[],f=!0,E=this.graphManager.getRoot().getNodes(),y=!0,d=0;d<E.length;d++)E[d].getChild()!=null&&(y=!1);if(!y)return l;var N=new Set,v=[],I=new Map,s=[];for(s=s.concat(E);s.length>0&&f;){for(v.push(s[0]);v.length>0&&f;){var u=v[0];v.splice(0,1),N.add(u);for(var c=u.getEdges(),d=0;d<c.length;d++){var A=c[d].getOtherEnd(u);if(I.get(u)!=A)if(!N.has(A))v.push(A),I.set(A,u);else{f=!1;break}}}if(!f)l=[];else{var _=[].concat(n(N));l.push(_);for(var d=0;d<_.length;d++){var O=_[d],D=s.indexOf(O);D>-1&&s.splice(D,1)}N=new Set,I=new Map}}return l},g.prototype.createDummyNodesForBendpoints=function(l){for(var f=[],E=l.source,y=this.graphManager.calcLowestCommonAncestor(l.source,l.target),d=0;d<l.bendpoints.length;d++){var N=this.newNode(null);N.setRect(new Point(0,0),new Dimension(1,1)),y.add(N);var v=this.newEdge(null);this.graphManager.add(v,E,N),f.add(N),E=N}var v=this.newEdge(null);return this.graphManager.add(v,E,l.target),this.edgeToDummyNodes.set(l,f),l.isInterGraph()?this.graphManager.remove(l):y.remove(l),f},g.prototype.createBendpointsFromDummyNodes=function(){var l=[];l=l.concat(this.graphManager.getAllEdges()),l=[].concat(n(this.edgeToDummyNodes.keys())).concat(l);for(var f=0;f<l.length;f++){var E=l[f];if(E.bendpoints.length>0){for(var y=this.edgeToDummyNodes.get(E),d=0;d<y.length;d++){var N=y[d],v=new o(N.getCenterX(),N.getCenterY()),I=E.bendpoints.get(d);I.x=v.x,I.y=v.y,N.getOwner().remove(N)}this.graphManager.add(E,E.source,E.target)}}},g.transform=function(l,f,E,y){if(E!=null&&y!=null){var d=f;if(l<=50){var N=f/E;d-=(f-N)/50*(50-l)}else{var v=f*y;d+=(v-f)/50*(l-50)}return d}else{var I,s;return l<=50?(I=9*f/500,s=f/10):(I=9*f/50,s=-8*f),I*l+s}},g.findCenterOfTree=function(l){var f=[];f=f.concat(l);var E=[],y=new Map,d=!1,N=null;(f.length==1||f.length==2)&&(d=!0,N=f[0]);for(var v=0;v<f.length;v++){var I=f[v],s=I.getNeighborsList().size;y.set(I,I.getNeighborsList().size),s==1&&E.push(I)}var u=[];for(u=u.concat(E);!d;){var c=[];c=c.concat(u),u=[];for(var v=0;v<f.length;v++){var I=f[v],A=f.indexOf(I);A>=0&&f.splice(A,1);var _=I.getNeighborsList();_.forEach(function(w){if(E.indexOf(w)<0){var R=y.get(w),F=R-1;F==1&&u.push(w),y.set(w,F)}})}E=E.concat(u),(f.length==1||f.length==2)&&(d=!0,N=f[0])}return N},g.prototype.setGraphManager=function(l){this.graphManager=l},m.exports=g}),(function(m,L,T){function n(){}n.seed=1,n.x=0,n.nextDouble=function(){return n.x=Math.sin(n.seed++)*1e4,n.x-Math.floor(n.x)},m.exports=n}),(function(m,L,T){var n=T(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,h=this.lworldExtX;return h!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/h),r},e.prototype.transformY=function(t){var r=0,h=this.lworldExtY;return h!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/h),r},e.prototype.inverseTransformX=function(t){var r=0,h=this.ldeviceExtX;return h!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/h),r},e.prototype.inverseTransformY=function(t){var r=0,h=this.ldeviceExtY;return h!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/h),r},e.prototype.inverseTransformPoint=function(t){var r=new n(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},m.exports=e}),(function(m,L,T){function n(i){if(Array.isArray(i)){for(var g=0,l=Array(i.length);g<i.length;g++)l[g]=i[g];return l}else return Array.from(i)}var e=T(15),t=T(7),r=T(0),h=T(8),a=T(9);function o(){e.call(this),this.useSmartIdealEdgeLengthCalculation=t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=t.DEFAULT_EDGE_LENGTH,this.springConstant=t.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=t.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=t.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=t.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*t.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=t.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=t.MAX_ITERATIONS}o.prototype=Object.create(e.prototype);for(var p in e)o[p]=e[p];o.prototype.initParameters=function(){e.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},o.prototype.calcIdealEdgeLengths=function(){for(var i,g,l,f,E,y,d=this.getGraphManager().getAllEdges(),N=0;N<d.length;N++)i=d[N],i.idealLength=this.idealEdgeLength,i.isInterGraph&&(l=i.getSource(),f=i.getTarget(),E=i.getSourceInLca().getEstimatedSize(),y=i.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(i.idealLength+=E+y-2*r.SIMPLE_NODE_SIZE),g=i.getLca().getInclusionTreeDepth(),i.idealLength+=t.DEFAULT_EDGE_LENGTH*t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(l.getInclusionTreeDepth()+f.getInclusionTreeDepth()-2*g))},o.prototype.initSpringEmbedder=function(){var i=this.getAllNodes().length;this.incremental?(i>t.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(i-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},o.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),g,l=0;l<i.length;l++)g=i[l],this.calcSpringForce(g,g.idealLength)},o.prototype.calcRepulsionForces=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,f,E,y,d=this.getAllNodes(),N;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),N=new Set,l=0;l<d.length;l++)E=d[l],this.calculateRepulsionForceOfANode(E,N,i,g),N.add(E);else for(l=0;l<d.length;l++)for(E=d[l],f=l+1;f<d.length;f++)y=d[f],E.getOwner()==y.getOwner()&&this.calcRepulsionForce(E,y)},o.prototype.calcGravitationalForces=function(){for(var i,g=this.getAllNodesToApplyGravitation(),l=0;l<g.length;l++)i=g[l],this.calcGravitationalForce(i)},o.prototype.moveNodes=function(){for(var i=this.getAllNodes(),g,l=0;l<i.length;l++)g=i[l],g.move()},o.prototype.calcSpringForce=function(i,g){var l=i.getSource(),f=i.getTarget(),E,y,d,N;if(this.uniformLeafNodeSizes&&l.getChild()==null&&f.getChild()==null)i.updateLengthSimple();else if(i.updateLength(),i.isOverlapingSourceAndTarget)return;E=i.getLength(),E!=0&&(y=this.springConstant*(E-g),d=y*(i.lengthX/E),N=y*(i.lengthY/E),l.springForceX+=d,l.springForceY+=N,f.springForceX-=d,f.springForceY-=N)},o.prototype.calcRepulsionForce=function(i,g){var l=i.getRect(),f=g.getRect(),E=new Array(2),y=new Array(4),d,N,v,I,s,u,c;if(l.intersects(f)){h.calcSeparationAmount(l,f,E,t.DEFAULT_EDGE_LENGTH/2),u=2*E[0],c=2*E[1];var A=i.noOfChildren*g.noOfChildren/(i.noOfChildren+g.noOfChildren);i.repulsionForceX-=A*u,i.repulsionForceY-=A*c,g.repulsionForceX+=A*u,g.repulsionForceY+=A*c}else this.uniformLeafNodeSizes&&i.getChild()==null&&g.getChild()==null?(d=f.getCenterX()-l.getCenterX(),N=f.getCenterY()-l.getCenterY()):(h.getIntersection(l,f,y),d=y[2]-y[0],N=y[3]-y[1]),Math.abs(d)<t.MIN_REPULSION_DIST&&(d=a.sign(d)*t.MIN_REPULSION_DIST),Math.abs(N)<t.MIN_REPULSION_DIST&&(N=a.sign(N)*t.MIN_REPULSION_DIST),v=d*d+N*N,I=Math.sqrt(v),s=this.repulsionConstant*i.noOfChildren*g.noOfChildren/v,u=s*d/I,c=s*N/I,i.repulsionForceX-=u,i.repulsionForceY-=c,g.repulsionForceX+=u,g.repulsionForceY+=c},o.prototype.calcGravitationalForce=function(i){var g,l,f,E,y,d,N,v;g=i.getOwner(),l=(g.getRight()+g.getLeft())/2,f=(g.getTop()+g.getBottom())/2,E=i.getCenterX()-l,y=i.getCenterY()-f,d=Math.abs(E)+i.getWidth()/2,N=Math.abs(y)+i.getHeight()/2,i.getOwner()==this.graphManager.getRoot()?(v=g.getEstimatedSize()*this.gravityRangeFactor,(d>v||N>v)&&(i.gravitationForceX=-this.gravityConstant*E,i.gravitationForceY=-this.gravityConstant*y)):(v=g.getEstimatedSize()*this.compoundGravityRangeFactor,(d>v||N>v)&&(i.gravitationForceX=-this.gravityConstant*E*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*y*this.compoundGravityConstant))},o.prototype.isConverged=function(){var i,g=!1;return this.totalIterations>this.maxIterations/3&&(g=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,i||g},o.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},o.prototype.calcNoOfChildrenForAllNodes=function(){for(var i,g=this.graphManager.getAllNodes(),l=0;l<g.length;l++)i=g[l],i.noOfChildren=i.getNoOfChildren()},o.prototype.calcGrid=function(i){var g=0,l=0;g=parseInt(Math.ceil((i.getRight()-i.getLeft())/this.repulsionRange)),l=parseInt(Math.ceil((i.getBottom()-i.getTop())/this.repulsionRange));for(var f=new Array(g),E=0;E<g;E++)f[E]=new Array(l);for(var E=0;E<g;E++)for(var y=0;y<l;y++)f[E][y]=new Array;return f},o.prototype.addNodeToGrid=function(i,g,l){var f=0,E=0,y=0,d=0;f=parseInt(Math.floor((i.getRect().x-g)/this.repulsionRange)),E=parseInt(Math.floor((i.getRect().width+i.getRect().x-g)/this.repulsionRange)),y=parseInt(Math.floor((i.getRect().y-l)/this.repulsionRange)),d=parseInt(Math.floor((i.getRect().height+i.getRect().y-l)/this.repulsionRange));for(var N=f;N<=E;N++)for(var v=y;v<=d;v++)this.grid[N][v].push(i),i.setGridCoordinates(f,E,y,d)},o.prototype.updateGrid=function(){var i,g,l=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),i=0;i<l.length;i++)g=l[i],this.addNodeToGrid(g,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},o.prototype.calculateRepulsionForceOfANode=function(i,g,l,f){if(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&l||f){var E=new Set;i.surrounding=new Array;for(var y,d=this.grid,N=i.startX-1;N<i.finishX+2;N++)for(var v=i.startY-1;v<i.finishY+2;v++)if(!(N<0||v<0||N>=d.length||v>=d[0].length)){for(var I=0;I<d[N][v].length;I++)if(y=d[N][v][I],!(i.getOwner()!=y.getOwner()||i==y)&&!g.has(y)&&!E.has(y)){var s=Math.abs(i.getCenterX()-y.getCenterX())-(i.getWidth()/2+y.getWidth()/2),u=Math.abs(i.getCenterY()-y.getCenterY())-(i.getHeight()/2+y.getHeight()/2);s<=this.repulsionRange&&u<=this.repulsionRange&&E.add(y)}}i.surrounding=[].concat(n(E))}for(N=0;N<i.surrounding.length;N++)this.calcRepulsionForce(i,i.surrounding[N])},o.prototype.calcRepulsionRange=function(){return 0},m.exports=o}),(function(m,L,T){var n=T(1),e=T(7);function t(h,a,o){n.call(this,h,a,o),this.idealLength=e.DEFAULT_EDGE_LENGTH}t.prototype=Object.create(n.prototype);for(var r in n)t[r]=n[r];m.exports=t}),(function(m,L,T){var n=T(3);function e(r,h,a,o){n.call(this,r,h,a,o),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=[]}e.prototype=Object.create(n.prototype);for(var t in n)e[t]=n[t];e.prototype.setGridCoordinates=function(r,h,a,o){this.startX=r,this.finishX=h,this.startY=a,this.finishY=o},m.exports=e}),(function(m,L,T){function n(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}n.prototype.getWidth=function(){return this.width},n.prototype.setWidth=function(e){this.width=e},n.prototype.getHeight=function(){return this.height},n.prototype.setHeight=function(e){this.height=e},m.exports=n}),(function(m,L,T){var n=T(14);function e(){this.map={},this.keys=[]}e.prototype.put=function(t,r){var h=n.createID(t);this.contains(h)||(this.map[h]=r,this.keys.push(t))},e.prototype.contains=function(t){return n.createID(t),this.map[t]!=null},e.prototype.get=function(t){var r=n.createID(t);return this.map[r]},e.prototype.keySet=function(){return this.keys},m.exports=e}),(function(m,L,T){var n=T(14);function e(){this.set={}}e.prototype.add=function(t){var r=n.createID(t);this.contains(r)||(this.set[r]=t)},e.prototype.remove=function(t){delete this.set[n.createID(t)]},e.prototype.clear=function(){this.set={}},e.prototype.contains=function(t){return this.set[n.createID(t)]==t},e.prototype.isEmpty=function(){return this.size()===0},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAllTo=function(t){for(var r=Object.keys(this.set),h=r.length,a=0;a<h;a++)t.push(this.set[r[a]])},e.prototype.size=function(){return Object.keys(this.set).length},e.prototype.addAll=function(t){for(var r=t.length,h=0;h<r;h++){var a=t[h];this.add(a)}},m.exports=e}),(function(m,L,T){var n=(function(){function h(a,o){for(var p=0;p<o.length;p++){var i=o[p];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,o,p){return o&&h(a.prototype,o),p&&h(a,p),a}})();function e(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}var t=T(11),r=(function(){function h(a,o){e(this,h),(o!==null||o!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var p=void 0;a instanceof t?p=a.size():p=a.length,this._quicksort(a,0,p-1)}return n(h,[{key:"_quicksort",value:function(a,o,p){if(o<p){var i=this._partition(a,o,p);this._quicksort(a,o,i),this._quicksort(a,i+1,p)}}},{key:"_partition",value:function(a,o,p){for(var i=this._get(a,o),g=o,l=p;;){for(;this.compareFunction(i,this._get(a,l));)l--;for(;this.compareFunction(this._get(a,g),i);)g++;if(g<l)this._swap(a,g,l),g++,l--;else return l}}},{key:"_get",value:function(a,o){return a instanceof t?a.get_object_at(o):a[o]}},{key:"_set",value:function(a,o,p){a instanceof t?a.set_object_at(o,p):a[o]=p}},{key:"_swap",value:function(a,o,p){var i=this._get(a,o);this._set(a,o,this._get(a,p)),this._set(a,p,i)}},{key:"_defaultCompareFunction",value:function(a,o){return o>a}}]),h})();m.exports=r}),(function(m,L,T){var n=(function(){function r(h,a){for(var o=0;o<a.length;o++){var p=a[o];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(h,p.key,p)}}return function(h,a,o){return a&&r(h.prototype,a),o&&r(h,o),h}})();function e(r,h){if(!(r instanceof h))throw new TypeError("Cannot call a class as a function")}var t=(function(){function r(h,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=h,this.sequence2=a,this.match_score=o,this.mismatch_penalty=p,this.gap_penalty=i,this.iMax=h.length+1,this.jMax=a.length+1,this.grid=new Array(this.iMax);for(var g=0;g<this.iMax;g++){this.grid[g]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.grid[g][l]=0}this.tracebackGrid=new Array(this.iMax);for(var f=0;f<this.iMax;f++){this.tracebackGrid[f]=new Array(this.jMax);for(var E=0;E<this.jMax;E++)this.tracebackGrid[f][E]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return n(r,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var h=1;h<this.jMax;h++)this.grid[0][h]=this.grid[0][h-1]+this.gap_penalty,this.tracebackGrid[0][h]=[!1,!1,!0];for(var a=1;a<this.iMax;a++)this.grid[a][0]=this.grid[a-1][0]+this.gap_penalty,this.tracebackGrid[a][0]=[!1,!0,!1];for(var o=1;o<this.iMax;o++)for(var p=1;p<this.jMax;p++){var i=void 0;this.sequence1[o-1]===this.sequence2[p-1]?i=this.grid[o-1][p-1]+this.match_score:i=this.grid[o-1][p-1]+this.mismatch_penalty;var g=this.grid[o-1][p]+this.gap_penalty,l=this.grid[o][p-1]+this.gap_penalty,f=[i,g,l],E=this.arrayAllMaxIndexes(f);this.grid[o][p]=f[E[0]],this.tracebackGrid[o][p]=[E.includes(0),E.includes(1),E.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var h=[];for(h.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});h[0];){var a=h[0],o=this.tracebackGrid[a.pos[0]][a.pos[1]];o[0]&&h.push({pos:[a.pos[0]-1,a.pos[1]-1],seq1:this.sequence1[a.pos[0]-1]+a.seq1,seq2:this.sequence2[a.pos[1]-1]+a.seq2}),o[1]&&h.push({pos:[a.pos[0]-1,a.pos[1]],seq1:this.sequence1[a.pos[0]-1]+a.seq1,seq2:"-"+a.seq2}),o[2]&&h.push({pos:[a.pos[0],a.pos[1]-1],seq1:"-"+a.seq1,seq2:this.sequence2[a.pos[1]-1]+a.seq2}),a.pos[0]===0&&a.pos[1]===0&&this.alignments.push({sequence1:a.seq1,sequence2:a.seq2}),h.shift()}return this.alignments}},{key:"getAllIndexes",value:function(h,a){for(var o=[],p=-1;(p=h.indexOf(a,p+1))!==-1;)o.push(p);return o}},{key:"arrayAllMaxIndexes",value:function(h){return this.getAllIndexes(h,Math.max.apply(null,h))}}]),r})();m.exports=t}),(function(m,L,T){var n=function(){};n.FDLayout=T(18),n.FDLayoutConstants=T(7),n.FDLayoutEdge=T(19),n.FDLayoutNode=T(20),n.DimensionD=T(21),n.HashMap=T(22),n.HashSet=T(23),n.IGeometry=T(8),n.IMath=T(9),n.Integer=T(10),n.Point=T(12),n.PointD=T(4),n.RandomSeed=T(16),n.RectangleD=T(13),n.Transform=T(17),n.UniqueIDGeneretor=T(14),n.Quicksort=T(24),n.LinkedList=T(11),n.LGraphObject=T(2),n.LGraph=T(5),n.LEdge=T(1),n.LGraphManager=T(6),n.LNode=T(3),n.Layout=T(15),n.LayoutConstants=T(0),n.NeedlemanWunsch=T(25),m.exports=n}),(function(m,L,T){function n(){this.listeners=[]}var e=n.prototype;e.addListener=function(t,r){this.listeners.push({event:t,callback:r})},e.removeListener=function(t,r){for(var h=this.listeners.length;h>=0;h--){var a=this.listeners[h];a.event===t&&a.callback===r&&this.listeners.splice(h,1)}},e.emit=function(t,r){for(var h=0;h<this.listeners.length;h++){var a=this.listeners[h];t===a.event&&a.callback(r)}},m.exports=n})])})})(q)),q.exports}var dt=z.exports,K;function pt(){return K||(K=1,(function(x,X){(function(m,L){x.exports=L(ct())})(dt,function(m){return(function(L){var T={};function n(e){if(T[e])return T[e].exports;var t=T[e]={i:e,l:!1,exports:{}};return L[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=L,n.c=T,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?(function(){return e.default}):(function(){return e});return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)})([(function(L,T){L.exports=m}),(function(L,T,n){var e=n(0).FDLayoutConstants;function t(){}for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,L.exports=t}),(function(L,T,n){var e=n(0).FDLayoutEdge;function t(h,a,o){e.call(this,h,a,o)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];L.exports=t}),(function(L,T,n){var e=n(0).LGraph;function t(h,a,o){e.call(this,h,a,o)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];L.exports=t}),(function(L,T,n){var e=n(0).LGraphManager;function t(h){e.call(this,h)}t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];L.exports=t}),(function(L,T,n){var e=n(0).FDLayoutNode,t=n(0).IMath;function r(a,o,p,i){e.call(this,a,o,p,i)}r.prototype=Object.create(e.prototype);for(var h in e)r[h]=e[h];r.prototype.move=function(){var a=this.graphManager.getLayout();this.displacementX=a.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=a.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>a.coolingFactor*a.maxNodeDisplacement&&(this.displacementX=a.coolingFactor*a.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>a.coolingFactor*a.maxNodeDisplacement&&(this.displacementY=a.coolingFactor*a.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),a.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},r.prototype.propogateDisplacementToChildren=function(a,o){for(var p=this.getChild().getNodes(),i,g=0;g<p.length;g++)i=p[g],i.getChild()==null?(i.moveBy(a,o),i.displacementX+=a,i.displacementY+=o):i.propogateDisplacementToChildren(a,o)},r.prototype.setPred1=function(a){this.pred1=a},r.prototype.getPred1=function(){return pred1},r.prototype.getPred2=function(){return pred2},r.prototype.setNext=function(a){this.next=a},r.prototype.getNext=function(){return next},r.prototype.setProcessed=function(a){this.processed=a},r.prototype.isProcessed=function(){return processed},L.exports=r}),(function(L,T,n){var e=n(0).FDLayout,t=n(4),r=n(3),h=n(5),a=n(2),o=n(1),p=n(0).FDLayoutConstants,i=n(0).LayoutConstants,g=n(0).Point,l=n(0).PointD,f=n(0).Layout,E=n(0).Integer,y=n(0).IGeometry,d=n(0).LGraph,N=n(0).Transform;function v(){e.call(this),this.toBeTiled={}}v.prototype=Object.create(e.prototype);for(var I in e)v[I]=e[I];v.prototype.newGraphManager=function(){var s=new t(this);return this.graphManager=s,s},v.prototype.newGraph=function(s){return new r(null,this.graphManager,s)},v.prototype.newNode=function(s){return new h(this.graphManager,s)},v.prototype.newEdge=function(s){return new a(null,null,s)},v.prototype.initParameters=function(){e.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.springConstant=p.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=p.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=p.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=p.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=p.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=p.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/p.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=p.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){var s=i.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},v.prototype.classicLayout=function(){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){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(u)}}else{var c=this.getFlatForest();if(c.length>0)this.positionNodesRadially(c);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(O){return s.has(O)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%p.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;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))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(_){return s.has(_)});this.graphManager.setAllNodesToApplyGravitation(u),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=p.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,A=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,A),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),u={},c=0;c<s.length;c++){var A=s[c].rect,_=s[c].id;u[_]={id:_,x:A.getCenterX(),y:A.getCenterY(),w:A.width,h:A.height}}return u},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(p.ANIMATE==="during")this.emit("layoutstarted");else{for(;!s;)s=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],u,c=this.graphManager.getGraphs(),A=c.length,_;for(_=0;_<A;_++)u=c[_],u.updateConnected(),u.isConnected||(s=s.concat(u.getNodes()));return s},v.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var u=new Set,c;for(c=0;c<s.length;c++){var A=s[c];if(!u.has(A)){var _=A.getSource(),O=A.getTarget();if(_==O)A.getBendpoints().push(new l),A.getBendpoints().push(new l),this.createDummyNodesForBendpoints(A),u.add(A);else{var D=[];if(D=D.concat(_.getEdgeListToNode(O)),D=D.concat(O.getEdgeListToNode(_)),!u.has(D[0])){if(D.length>1){var w;for(w=0;w<D.length;w++){var R=D[w];R.getBendpoints().push(new l),this.createDummyNodesForBendpoints(R)}}D.forEach(function(F){u.add(F)})}}}if(u.size==s.length)break}},v.prototype.positionNodesRadially=function(s){for(var u=new g(0,0),c=Math.ceil(Math.sqrt(s.length)),A=0,_=0,O=0,D=new l(0,0),w=0;w<s.length;w++){w%c==0&&(O=0,_=A,w!=0&&(_+=o.DEFAULT_COMPONENT_SEPERATION),A=0);var R=s[w],F=f.findCenterOfTree(R);u.x=O,u.y=_,D=v.radialLayout(R,F,u),D.y>A&&(A=Math.floor(D.y)),O=Math.floor(D.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(i.WORLD_CENTER_X-D.x/2,i.WORLD_CENTER_Y-D.y/2))},v.radialLayout=function(s,u,c){var A=Math.max(this.maxDiagonalInTree(s),o.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(u,null,0,359,0,A);var _=d.calculateBounds(s),O=new N;O.setDeviceOrgX(_.getMinX()),O.setDeviceOrgY(_.getMinY()),O.setWorldOrgX(c.x),O.setWorldOrgY(c.y);for(var D=0;D<s.length;D++){var w=s[D];w.transform(O)}var R=new l(_.getMaxX(),_.getMaxY());return O.inverseTransformPoint(R)},v.branchRadialLayout=function(s,u,c,A,_,O){var D=(A-c+1)/2;D<0&&(D+=180);var w=(D+c)%360,R=w*y.TWO_PI/360,F=_*Math.cos(R),b=_*Math.sin(R);s.setCenter(F,b);var C=[];C=C.concat(s.getEdges());var M=C.length;u!=null&&M--;for(var G=0,P=C.length,S,U=s.getEdgesBetween(u);U.length>1;){var Y=U[0];U.splice(0,1);var H=C.indexOf(Y);H>=0&&C.splice(H,1),P--,M--}u!=null?S=(C.indexOf(U[0])+1)%P:S=0;for(var B=Math.abs(A-c)/M,k=S;G!=M;k=++k%P){var Z=C[k].getOtherEnd(s);if(Z!=u){var Q=(c+G*B)%360,ht=(Q+B)%360;v.branchRadialLayout(Z,s,Q,ht,_+O,O),G++}}},v.maxDiagonalInTree=function(s){for(var u=E.MIN_VALUE,c=0;c<s.length;c++){var A=s[c],_=A.getDiagonal();_>u&&(u=_)}return u},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var s=this,u={};this.memberGroups={},this.idToDummyNode={};for(var c=[],A=this.graphManager.getAllNodes(),_=0;_<A.length;_++){var O=A[_],D=O.getParent();this.getNodeDegreeWithChildren(O)===0&&(D.id==null||!this.getToBeTiled(D))&&c.push(O)}for(var _=0;_<c.length;_++){var O=c[_],w=O.getParent().id;typeof u[w]>"u"&&(u[w]=[]),u[w]=u[w].concat(O)}Object.keys(u).forEach(function(R){if(u[R].length>1){var F="DummyCompound_"+R;s.memberGroups[F]=u[R];var b=u[R][0].getParent(),C=new h(s.graphManager);C.id=F,C.paddingLeft=b.paddingLeft||0,C.paddingRight=b.paddingRight||0,C.paddingBottom=b.paddingBottom||0,C.paddingTop=b.paddingTop||0,s.idToDummyNode[F]=C;var M=s.getGraphManager().add(s.newGraph(),C),G=b.getChild();G.add(C);for(var P=0;P<u[R].length;P++){var S=u[R][P];G.remove(S),M.add(S)}}})},v.prototype.clearCompounds=function(){var s={},u={};this.performDFSOnCompounds();for(var c=0;c<this.compoundOrder.length;c++)u[this.compoundOrder[c].id]=this.compoundOrder[c],s[this.compoundOrder[c].id]=[].concat(this.compoundOrder[c].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[c].getChild()),this.compoundOrder[c].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,u)},v.prototype.clearZeroDegreeMembers=function(){var s=this,u=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(c){var A=s.idToDummyNode[c];u[c]=s.tileNodes(s.memberGroups[c],A.paddingLeft+A.paddingRight),A.rect.width=u[c].width,A.rect.height=u[c].height})},v.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var u=this.compoundOrder[s],c=u.id,A=u.paddingLeft,_=u.paddingTop;this.adjustLocations(this.tiledMemberPack[c],u.rect.x,u.rect.y,A,_)}},v.prototype.repopulateZeroDegreeMembers=function(){var s=this,u=this.tiledZeroDegreePack;Object.keys(u).forEach(function(c){var A=s.idToDummyNode[c],_=A.paddingLeft,O=A.paddingTop;s.adjustLocations(u[c],A.rect.x,A.rect.y,_,O)})},v.prototype.getToBeTiled=function(s){var u=s.id;if(this.toBeTiled[u]!=null)return this.toBeTiled[u];var c=s.getChild();if(c==null)return this.toBeTiled[u]=!1,!1;for(var A=c.getNodes(),_=0;_<A.length;_++){var O=A[_];if(this.getNodeDegree(O)>0)return this.toBeTiled[u]=!1,!1;if(O.getChild()==null){this.toBeTiled[O.id]=!1;continue}if(!this.getToBeTiled(O))return this.toBeTiled[u]=!1,!1}return this.toBeTiled[u]=!0,!0},v.prototype.getNodeDegree=function(s){s.id;for(var u=s.getEdges(),c=0,A=0;A<u.length;A++){var _=u[A];_.getSource().id!==_.getTarget().id&&(c=c+1)}return c},v.prototype.getNodeDegreeWithChildren=function(s){var u=this.getNodeDegree(s);if(s.getChild()==null)return u;for(var c=s.getChild().getNodes(),A=0;A<c.length;A++){var _=c[A];u+=this.getNodeDegreeWithChildren(_)}return u},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(s){for(var u=0;u<s.length;u++){var c=s[u];c.getChild()!=null&&this.fillCompexOrderByDFS(c.getChild().getNodes()),this.getToBeTiled(c)&&this.compoundOrder.push(c)}},v.prototype.adjustLocations=function(s,u,c,A,_){u+=A,c+=_;for(var O=u,D=0;D<s.rows.length;D++){var w=s.rows[D];u=O;for(var R=0,F=0;F<w.length;F++){var b=w[F];b.rect.x=u,b.rect.y=c,u+=b.rect.width+s.horizontalPadding,b.rect.height>R&&(R=b.rect.height)}c+=R+s.verticalPadding}},v.prototype.tileCompoundMembers=function(s,u){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(A){var _=u[A];c.tiledMemberPack[A]=c.tileNodes(s[A],_.paddingLeft+_.paddingRight),_.rect.width=c.tiledMemberPack[A].width,_.rect.height=c.tiledMemberPack[A].height})},v.prototype.tileNodes=function(s,u){var c=o.TILING_PADDING_VERTICAL,A=o.TILING_PADDING_HORIZONTAL,_={rows:[],rowWidth:[],rowHeight:[],width:0,height:u,verticalPadding:c,horizontalPadding:A};s.sort(function(w,R){return w.rect.width*w.rect.height>R.rect.width*R.rect.height?-1:w.rect.width*w.rect.height<R.rect.width*R.rect.height?1:0});for(var O=0;O<s.length;O++){var D=s[O];_.rows.length==0?this.insertNodeToRow(_,D,0,u):this.canAddHorizontal(_,D.rect.width,D.rect.height)?this.insertNodeToRow(_,D,this.getShortestRowIndex(_),u):this.insertNodeToRow(_,D,_.rows.length,u),this.shiftToLastRow(_)}return _},v.prototype.insertNodeToRow=function(s,u,c,A){var _=A;if(c==s.rows.length){var O=[];s.rows.push(O),s.rowWidth.push(_),s.rowHeight.push(0)}var D=s.rowWidth[c]+u.rect.width;s.rows[c].length>0&&(D+=s.horizontalPadding),s.rowWidth[c]=D,s.width<D&&(s.width=D);var w=u.rect.height;c>0&&(w+=s.verticalPadding);var R=0;w>s.rowHeight[c]&&(R=s.rowHeight[c],s.rowHeight[c]=w,R=s.rowHeight[c]-R),s.height+=R,s.rows[c].push(u)},v.prototype.getShortestRowIndex=function(s){for(var u=-1,c=Number.MAX_VALUE,A=0;A<s.rows.length;A++)s.rowWidth[A]<c&&(u=A,c=s.rowWidth[A]);return u},v.prototype.getLongestRowIndex=function(s){for(var u=-1,c=Number.MIN_VALUE,A=0;A<s.rows.length;A++)s.rowWidth[A]>c&&(u=A,c=s.rowWidth[A]);return u},v.prototype.canAddHorizontal=function(s,u,c){var A=this.getShortestRowIndex(s);if(A<0)return!0;var _=s.rowWidth[A];if(_+s.horizontalPadding+u<=s.width)return!0;var O=0;s.rowHeight[A]<c&&A>0&&(O=c+s.verticalPadding-s.rowHeight[A]);var D;s.width-_>=u+s.horizontalPadding?D=(s.height+O)/(_+u+s.horizontalPadding):D=(s.height+O)/s.width,O=c+s.verticalPadding;var w;return s.width<u?w=(s.height+O)/u:w=(s.height+O)/s.width,w<1&&(w=1/w),D<1&&(D=1/D),D<w},v.prototype.shiftToLastRow=function(s){var u=this.getLongestRowIndex(s),c=s.rowWidth.length-1,A=s.rows[u],_=A[A.length-1],O=_.width+s.horizontalPadding;if(s.width-s.rowWidth[c]>O&&u!=c){A.splice(-1,1),s.rows[c].push(_),s.rowWidth[u]=s.rowWidth[u]-O,s.rowWidth[c]=s.rowWidth[c]+O,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var D=Number.MIN_VALUE,w=0;w<A.length;w++)A[w].height>D&&(D=A[w].height);u>0&&(D+=s.verticalPadding);var R=s.rowHeight[u]+s.rowHeight[c];s.rowHeight[u]=D,s.rowHeight[c]<_.height+s.verticalPadding&&(s.rowHeight[c]=_.height+s.verticalPadding);var F=s.rowHeight[u]+s.rowHeight[c];s.height+=F-R,this.shiftToLastRow(s)}},v.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var s=[],u=!0,c;u;){var A=this.graphManager.getAllNodes(),_=[];u=!1;for(var O=0;O<A.length;O++)c=A[O],c.getEdges().length==1&&!c.getEdges()[0].isInterGraph&&c.getChild()==null&&(_.push([c,c.getEdges()[0],c.getOwner()]),u=!0);if(u==!0){for(var D=[],w=0;w<_.length;w++)_[w][0].getEdges().length==1&&(D.push(_[w]),_[w][0].getOwner().remove(_[w][0]));s.push(D),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},v.prototype.growTree=function(s){for(var u=s.length,c=s[u-1],A,_=0;_<c.length;_++)A=c[_],this.findPlaceforPrunedNode(A),A[2].add(A[0]),A[2].add(A[1],A[1].source,A[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(s){var u,c,A=s[0];A==s[1].source?c=s[1].target:c=s[1].source;var _=c.startX,O=c.finishX,D=c.startY,w=c.finishY,R=0,F=0,b=0,C=0,M=[R,b,F,C];if(D>0)for(var G=_;G<=O;G++)M[0]+=this.grid[G][D-1].length+this.grid[G][D].length-1;if(O<this.grid.length-1)for(var G=D;G<=w;G++)M[1]+=this.grid[O+1][G].length+this.grid[O][G].length-1;if(w<this.grid[0].length-1)for(var G=_;G<=O;G++)M[2]+=this.grid[G][w+1].length+this.grid[G][w].length-1;if(_>0)for(var G=D;G<=w;G++)M[3]+=this.grid[_-1][G].length+this.grid[_][G].length-1;for(var P=E.MAX_VALUE,S,U,Y=0;Y<M.length;Y++)M[Y]<P?(P=M[Y],S=1,U=Y):M[Y]==P&&S++;if(S==3&&P==0)M[0]==0&&M[1]==0&&M[2]==0?u=1:M[0]==0&&M[1]==0&&M[3]==0?u=0:M[0]==0&&M[2]==0&&M[3]==0?u=3:M[1]==0&&M[2]==0&&M[3]==0&&(u=2);else if(S==2&&P==0){var H=Math.floor(Math.random()*2);M[0]==0&&M[1]==0?H==0?u=0:u=1:M[0]==0&&M[2]==0?H==0?u=0:u=2:M[0]==0&&M[3]==0?H==0?u=0:u=3:M[1]==0&&M[2]==0?H==0?u=1:u=2:M[1]==0&&M[3]==0?H==0?u=1:u=3:H==0?u=2:u=3}else if(S==4&&P==0){var H=Math.floor(Math.random()*4);u=H}else u=U;u==0?A.setCenter(c.getCenterX(),c.getCenterY()-c.getHeight()/2-p.DEFAULT_EDGE_LENGTH-A.getHeight()/2):u==1?A.setCenter(c.getCenterX()+c.getWidth()/2+p.DEFAULT_EDGE_LENGTH+A.getWidth()/2,c.getCenterY()):u==2?A.setCenter(c.getCenterX(),c.getCenterY()+c.getHeight()/2+p.DEFAULT_EDGE_LENGTH+A.getHeight()/2):A.setCenter(c.getCenterX()-c.getWidth()/2-p.DEFAULT_EDGE_LENGTH-A.getWidth()/2,c.getCenterY())},L.exports=v}),(function(L,T,n){var e={};e.layoutBase=n(0),e.CoSEConstants=n(1),e.CoSEEdge=n(2),e.CoSEGraph=n(3),e.CoSEGraphManager=n(4),e.CoSELayout=n(6),e.CoSENode=n(5),L.exports=e})])})})(z)),z.exports}var ft=V.exports,J;function yt(){return J||(J=1,(function(x,X){(function(m,L){x.exports=L(pt())})(ft,function(m){return(function(L){var T={};function n(e){if(T[e])return T[e].exports;var t=T[e]={i:e,l:!1,exports:{}};return L[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}return n.m=L,n.c=T,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?(function(){return e.default}):(function(){return e});return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)})([(function(L,T){L.exports=m}),(function(L,T,n){var e=n(0).layoutBase.LayoutConstants,t=n(0).layoutBase.FDLayoutConstants,r=n(0).CoSEConstants,h=n(0).CoSELayout,a=n(0).CoSENode,o=n(0).layoutBase.PointD,p=n(0).layoutBase.DimensionD,i={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function g(y,d){var N={};for(var v in y)N[v]=y[v];for(var v in d)N[v]=d[v];return N}function l(y){this.options=g(i,y),f(this.options)}var f=function(y){y.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=y.nodeRepulsion),y.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=y.idealEdgeLength),y.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=y.edgeElasticity),y.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.nestingFactor),y.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=y.gravity),y.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=y.numIter),y.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=y.gravityRange),y.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.gravityCompound),y.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.gravityRangeCompound),y.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.initialEnergyOnIncremental),y.quality=="draft"?e.QUALITY=0:y.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=y.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!y.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=y.animate,r.TILE=y.tile,r.TILING_PADDING_VERTICAL=typeof y.tilingPaddingVertical=="function"?y.tilingPaddingVertical.call():y.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof y.tilingPaddingHorizontal=="function"?y.tilingPaddingHorizontal.call():y.tilingPaddingHorizontal};l.prototype.run=function(){var y,d,N=this.options;this.idToLNode={};var v=this.layout=new h,I=this;I.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var s=v.newGraphManager();this.gm=s;var u=this.options.eles.nodes(),c=this.options.eles.edges();this.root=s.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(u),v);for(var A=0;A<c.length;A++){var _=c[A],O=this.idToLNode[_.data("source")],D=this.idToLNode[_.data("target")];if(O!==D&&O.getEdgesBetween(D).length==0){var w=s.add(v.newEdge(),O,D);w.id=_.id()}}var R=function(b,C){typeof b=="number"&&(b=C);var M=b.data("id"),G=I.idToLNode[M];return{x:G.getRect().getCenterX(),y:G.getRect().getCenterY()}},F=function b(){for(var C=function(){N.fit&&N.cy.fit(N.eles,N.padding),y||(y=!0,I.cy.one("layoutready",N.ready),I.cy.trigger({type:"layoutready",layout:I}))},M=I.options.refresh,G,P=0;P<M&&!G;P++)G=I.stopped||I.layout.tick();if(G){v.checkLayoutSuccess()&&!v.isSubLayout&&v.doPostLayout(),v.tilingPostLayout&&v.tilingPostLayout(),v.isLayoutFinished=!0,I.options.eles.nodes().positions(R),C(),I.cy.one("layoutstop",I.options.stop),I.cy.trigger({type:"layoutstop",layout:I}),d&&cancelAnimationFrame(d),y=!1;return}var S=I.layout.getPositionsData();N.eles.nodes().positions(function(U,Y){if(typeof U=="number"&&(U=Y),!U.isParent()){for(var H=U.id(),B=S[H],k=U;B==null&&(B=S[k.data("parent")]||S["DummyCompound_"+k.data("parent")],S[H]=B,k=k.parent()[0],k!=null););return B!=null?{x:B.x,y:B.y}:{x:U.position("x"),y:U.position("y")}}}),C(),d=requestAnimationFrame(b)};return v.addListener("layoutstarted",function(){I.options.animate==="during"&&(d=requestAnimationFrame(F))}),v.runLayout(),this.options.animate!=="during"&&(I.options.eles.nodes().not(":parent").layoutPositions(I,I.options,R),y=!1),this},l.prototype.getTopMostNodes=function(y){for(var d={},N=0;N<y.length;N++)d[y[N].id()]=!0;var v=y.filter(function(I,s){typeof I=="number"&&(I=s);for(var u=I.parent()[0];u!=null;){if(d[u.id()])return!1;u=u.parent()[0]}return!0});return v},l.prototype.processChildrenList=function(y,d,N){for(var v=d.length,I=0;I<v;I++){var s=d[I],u=s.children(),c,A=s.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(s.outerWidth()!=null&&s.outerHeight()!=null?c=y.add(new a(N.graphManager,new o(s.position("x")-A.w/2,s.position("y")-A.h/2),new p(parseFloat(A.w),parseFloat(A.h)))):c=y.add(new a(this.graphManager)),c.id=s.data("id"),c.paddingLeft=parseInt(s.css("padding")),c.paddingTop=parseInt(s.css("padding")),c.paddingRight=parseInt(s.css("padding")),c.paddingBottom=parseInt(s.css("padding")),this.options.nodeDimensionsIncludeLabels&&s.isParent()){var _=s.boundingBox({includeLabels:!0,includeNodes:!1}).w,O=s.boundingBox({includeLabels:!0,includeNodes:!1}).h,D=s.css("text-halign");c.labelWidth=_,c.labelHeight=O,c.labelPos=D}if(this.idToLNode[s.data("id")]=c,isNaN(c.rect.x)&&(c.rect.x=0),isNaN(c.rect.y)&&(c.rect.y=0),u!=null&&u.length>0){var w;w=N.getGraphManager().add(N.newGraph(),c),this.processChildrenList(w,u,N)}}},l.prototype.stop=function(){return this.stopped=!0,this};var E=function(y){y("layout","cose-bilkent",l)};typeof cytoscape<"u"&&E(cytoscape),L.exports=E})])})})(V)),V.exports}var Et=yt();const vt=gt(Et);tt.use(vt);function et(x,X){x.forEach(m=>{const L={id:m.id,labelText:m.label,height:m.height,width:m.width,padding:m.padding??0};Object.keys(m).forEach(T=>{["id","label","height","width","padding","x","y"].includes(T)||(L[T]=m[T])}),X.add({group:"nodes",data:L,position:{x:m.x??0,y:m.y??0}})})}W(et,"addNodes");function rt(x,X){x.forEach(m=>{const L={id:m.id,source:m.start,target:m.end};Object.keys(m).forEach(T=>{["id","start","end"].includes(T)||(L[T]=m[T])}),X.add({group:"edges",data:L})})}W(rt,"addEdges");function it(x){return new Promise(X=>{const m=lt("body").append("div").attr("id","cy").attr("style","display:none"),L=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});m.remove(),et(x.nodes,L),rt(x.edges,L),L.nodes().forEach(function(n){n.layoutDimensions=()=>{const e=n.data();return{w:e.width,h:e.height}}});const T={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};L.layout(T).run(),L.ready(n=>{j.info("Cytoscape ready",n),X(L)})})}W(it,"createCytoscapeInstance");function nt(x){return x.nodes().map(X=>{const m=X.data(),L=X.position(),T={id:m.id,x:L.x,y:L.y};return Object.keys(m).forEach(n=>{n!=="id"&&(T[n]=m[n])}),T})}W(nt,"extractPositionedNodes");function ot(x){return x.edges().map(X=>{const m=X.data(),L=X._private.rscratch,T={id:m.id,source:m.source,target:m.target,startX:L.startX,startY:L.startY,midX:L.midX,midY:L.midY,endX:L.endX,endY:L.endY};return Object.keys(m).forEach(n=>{["id","source","target"].includes(n)||(T[n]=m[n])}),T})}W(ot,"extractPositionedEdges");async function st(x,X){j.debug("Starting cose-bilkent layout algorithm");try{at(x);const m=await it(x),L=nt(m),T=ot(m);return j.debug(`Layout completed: ${L.length} nodes, ${T.length} edges`),{nodes:L,edges:T}}catch(m){throw j.error("Error in cose-bilkent layout algorithm:",m),m}}W(st,"executeCoseBilkentLayout");function at(x){if(!x)throw new Error("Layout data is required");if(!x.config)throw new Error("Configuration is required in layout data");if(!x.rootNode)throw new Error("Root node is required");if(!x.nodes||!Array.isArray(x.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(x.edges))throw new Error("Edges array is required in layout data");return!0}W(at,"validateLayoutData");var At=W(async(x,X,{insertCluster:m,insertEdge:L,insertEdgeLabel:T,insertMarkers:n,insertNode:e,log:t,positionEdgeLabel:r},{algorithm:h})=>{const a={},o={},p=X.select("g");n(p,x.markers,x.type,x.diagramId);const i=p.insert("g").attr("class","subgraphs"),g=p.insert("g").attr("class","edgePaths"),l=p.insert("g").attr("class","edgeLabels"),f=p.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(x.nodes.map(async d=>{if(d.isGroup){const N={...d};o[d.id]=N,a[d.id]=N,await m(i,d)}else{const N={...d};a[d.id]=N;const v=await e(f,d,{config:x.config,dir:x.direction||"TB"}),I=v.node().getBBox();N.width=I.width,N.height=I.height,N.domId=v,t.debug(`Node ${d.id} dimensions: ${I.width}x${I.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const E={...x,nodes:x.nodes.map(d=>{const N=a[d.id];return{...d,width:N.width,height:N.height}})},y=await st(E,x.config);t.debug("Positioning nodes based on layout results"),y.nodes.forEach(d=>{const N=a[d.id];N?.domId&&(N.domId.attr("transform",`translate(${d.x}, ${d.y})`),N.x=d.x,N.y=d.y,t.debug(`Positioned node ${N.id} at center (${d.x}, ${d.y})`))}),y.edges.forEach(d=>{const N=x.edges.find(v=>v.id===d.id);N&&(N.points=[{x:d.startX,y:d.startY},{x:d.midX,y:d.midY},{x:d.endX,y:d.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(x.edges.map(async d=>{await T(l,d);const N=a[d.start??""],v=a[d.end??""];if(N&&v){const I=y.edges.find(s=>s.id===d.id);if(I){t.debug("APA01 positionedEdge",I);const s={...d},u=L(g,s,o,x.type,N,v,x.diagramId);r(s,u)}else{const s={...d,points:[{x:N.x||0,y:N.y||0},{x:v.x||0,y:v.y||0}]},u=L(g,s,o,x.type,N,v,x.diagramId);r(s,u)}}})),t.debug("Cose-bilkent rendering completed")},"render"),_t=At;export{_t as render};
|