@evoscientist/webui 0.1.0 → 0.1.2
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 +4 -0
- package/dist/.next/BUILD_ID +1 -1
- package/dist/.next/build-manifest.json +8 -8
- package/dist/.next/server/app/_global-error/page/build-manifest.json +5 -5
- package/dist/.next/server/app/_global-error/page.js +2 -2
- package/dist/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_global-error.html +1 -1
- package/dist/.next/server/app/_global-error.rsc +7 -7
- package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/dist/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/dist/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/.next/server/app/_not-found/page/build-manifest.json +5 -5
- package/dist/.next/server/app/_not-found/page.js +2 -2
- package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/app/_not-found.html +1 -1
- package/dist/.next/server/app/_not-found.rsc +12 -12
- package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
- package/dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/dist/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/api/memory/route.js +2 -2
- package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/catalog/route.js +2 -2
- package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/detail/route.js +2 -2
- package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/install/route.js +2 -2
- package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/skills/route.js +2 -2
- package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/dist/.next/server/app/api/workspace/download/route.js +2 -2
- package/dist/.next/server/app/api/workspace/file/route.js +2 -2
- package/dist/.next/server/app/api/workspace/route.js +2 -2
- package/dist/.next/server/app/api/workspace/upload/route.js +2 -2
- package/dist/.next/server/app/icon.png/route.js +2 -2
- package/dist/.next/server/app/index.html +1 -1
- package/dist/.next/server/app/index.rsc +14 -14
- package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/dist/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/dist/.next/server/app/index.segments/_index.segment.rsc +7 -7
- package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/.next/server/app/page/build-manifest.json +5 -5
- package/dist/.next/server/app/page.js +2 -2
- package/dist/.next/server/app/page.js.nft.json +1 -1
- package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/.next/server/chunks/[externals]_next_dist_0arv.vj._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0-8pt0b._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__04y5ms7._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__08kko28._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0bpxd~j._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0cnmh23._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0j8-xkl._.js +3 -3
- package/dist/.next/server/chunks/[root-of-the-server]__0nngqla._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__0o.c5k_._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0pz~0wz._.js +2 -2
- package/dist/.next/server/chunks/[root-of-the-server]__0s0~gzh._.js +1 -1
- package/dist/.next/server/chunks/[root-of-the-server]__0xoct7b._.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_evosci-config_route_actions_0nka7fr.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_memory_route_actions_0jf5z0q.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_catalog_route_actions_0pp.pug.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_detail_route_actions_02~v0so.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_install_route_actions_03-v3ve.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_skills_route_actions_0kp0j6w.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_download_route_actions_0y83v2y.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_route_actions_0rc11bi.js +1 -1
- package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_upload_route_actions_070kzk5.js +1 -1
- package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0dh.2jf.js +1 -1
- package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0firp2j.js +1 -1
- package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0qs61ly.js +1 -1
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_0xc8cuq._.js +106 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_12xi8w0._.js +66 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0d.k2tv._.js +136 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_02zfksy._.js +81 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0c30c1e._.js +3 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_07fd9jw._.js +155 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0a2sjhb._.js +79 -0
- package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_0xpvx~c._.js +3 -0
- package/dist/.next/server/chunks/ssr/0t6k_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_01.5gnv._.js +82 -0
- package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_0ya3nf7._.js +92 -0
- package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_07c4~j8._.js +81 -0
- package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0i6u~cs._.js +117 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__01cqrhy._.js +2 -2
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__098zro9._.js +4 -4
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e_kl3j._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e~coys._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0lb9jwe._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0rsfize._.js +3 -0
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0tcyn68._.js +2 -2
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wd7vkh._.js +32 -32
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__0zi~h76._.js +1 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__1130a6w._.js +1 -1
- package/dist/.next/server/chunks/ssr/_03eop86._.js +2 -2
- package/dist/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js +1 -1
- package/dist/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js +1 -1
- package/dist/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_00hhaw4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_02j2r6j._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_04ea-l4._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_04s4hf4._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_05yx3aj._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_06nwr7t._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_07l91g-._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_093s0r4._.js +11 -0
- package/dist/.next/server/chunks/ssr/node_modules_09w7yel._.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0_ce7g1._.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_0ajd37d._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0a~j-hx._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0cdeu-p._.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_0defha.._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0e_65ij._.js +31 -0
- package/dist/.next/server/chunks/ssr/node_modules_0eaupz6._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0fcyf9e._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0h3oz6o._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0hsalo_._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0i22b1r._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0j48jbs._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0k51qv9._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0k~wgzn._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0m8d9.a._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0nefi9l._.js +45 -0
- package/dist/.next/server/chunks/ssr/node_modules_0q8gl61._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0r_.8y7._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0rwb7ij._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0s8hn7e._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0t_s22m._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0tf5p2y._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0u4yba~._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_0wfq0.v._.js +17 -0
- package/dist/.next/server/chunks/ssr/node_modules_0wpswc3._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0xxmhi~._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_0z~-p3m._.js +38 -0
- package/dist/.next/server/chunks/ssr/node_modules_115w~gg._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_11oiffd._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_13oabuj._.js +289 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_00zox90._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_048nvza._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0bqbkzr._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0iy4ann._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n~wpy6._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0rp8krb._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0se--ys._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0v554rd._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12i5eeu._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0.ksprp._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00~7fbh._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01-g753._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_02.ao_s._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_yd3ib._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c.1f2e._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0l0_~d-._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0pjzhbh._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0uq.qxy._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13s5vbm._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0642y5z._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_097t5l0.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_03z-83q._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0zuygmo._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0bclh9~._.js +129 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_11i~hhk._.js +7 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_0p4md.t._.js +64 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_0p7as5d._.js +4 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_05x94.y._.js +203 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_0_foecb._.js +228 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0g3lwf.._.js +121 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_0.lzb4g._.js +12 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_041viuq._.js +62 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0h8ib.t._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0itw5kh._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0et-fze._.js +26 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_12bfcsi._.js +82 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_0136c8y._.js +154 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_0z55106._.js +36 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0azazz~._.js +3 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_0wzofym._.js +25 -0
- package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_0rr2bb.._.js +6 -0
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_0xdsm99._.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +1 -1
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_00t_ate.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_031v14j.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rc3ul_.js +2 -2
- package/dist/.next/server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_0opq-c5.js +3 -0
- package/dist/.next/server/middleware-build-manifest.js +8 -8
- package/dist/.next/server/pages/404.html +1 -1
- package/dist/.next/server/pages/500.html +1 -1
- package/dist/.next/static/chunks/0-.wbb-l7eg0y.js +1 -0
- package/dist/.next/static/chunks/0-6znc4v4kg4~.js +1 -0
- package/dist/.next/static/chunks/01ontipw7_pn-.js +1 -0
- package/dist/.next/static/chunks/01y.jx.nxbr-q.js +1 -0
- package/dist/.next/static/chunks/038jxymv2x4u-.js +148 -0
- package/dist/.next/static/chunks/03l_lqxocp3uj.js +1 -0
- package/dist/.next/static/chunks/03lth2le32c6r.js +201 -0
- package/dist/.next/static/chunks/03v0v690_bw8u.js +62 -0
- package/dist/.next/static/chunks/03yru4-m-450t.js +1 -0
- package/dist/.next/static/chunks/06o.rsm2b~dht.js +60 -0
- package/dist/.next/static/chunks/07znaqalfuldz.js +127 -0
- package/dist/.next/static/chunks/08nzg~fbi7p-7.js +1 -0
- package/dist/.next/static/chunks/08o5wsrurx9ux.js +5 -0
- package/dist/.next/static/chunks/09~n7y-jkmjlj.js +152 -0
- package/dist/.next/static/chunks/0_s3y14ic91sy.css +3 -0
- package/dist/.next/static/chunks/0aqpm5mabssqz.js +1 -0
- package/dist/.next/static/chunks/0awsj.h.eiuen.js +1 -0
- package/dist/.next/static/chunks/0axtn1ln1j35_.js +79 -0
- package/dist/.next/static/chunks/0c5xj4q0jmdu0.js +1 -0
- package/dist/.next/static/chunks/0cs_h74-ljzlt.js +77 -0
- package/dist/.next/static/chunks/0cu8k_dz43e4y.js +1 -0
- package/dist/.next/static/chunks/0dcu67gngfgpb.js +4 -0
- package/dist/.next/static/chunks/0do2sl_ugmstg.js +10 -0
- package/dist/.next/static/chunks/0dsde0n1co0l..js +1 -0
- package/dist/.next/static/chunks/0e4xdug~7dxzk.js +1 -0
- package/dist/.next/static/chunks/0ez8v7k1e7v4o.js +1 -0
- package/dist/.next/static/chunks/0f8bbcvfh6x_j.js +64 -0
- package/dist/.next/static/chunks/0ge0mq0ea60lx.js +1 -0
- package/dist/.next/static/chunks/0gq18q-ip0uh2.js +90 -0
- package/dist/.next/static/chunks/0h-pxsp01miga.js +1 -0
- package/dist/.next/static/chunks/0hq~c-~dp2g~1.js +1 -0
- package/dist/.next/static/chunks/0hyyxz1rb~767.js +75 -0
- package/dist/.next/static/chunks/0i8pgzf~hu-3m.js +24 -0
- package/dist/.next/static/chunks/0icpvuwlmnlty.js +43 -0
- package/dist/.next/static/chunks/0ipk1er3w80bj.js +24 -0
- package/dist/.next/static/chunks/0k9_1v72yx36d.js +226 -0
- package/dist/.next/static/chunks/0l3uvjh3oslhq.js +1 -0
- package/dist/.next/static/chunks/0lfej4svc~ist.js +1 -0
- package/dist/.next/static/chunks/0lmzx880lnpb..js +1 -0
- package/dist/.next/static/chunks/0luwdx.2p-x9e.js +31 -0
- package/dist/.next/static/chunks/0lypu-.xpph9..js +15 -0
- package/dist/.next/static/chunks/0mo3-obfy2_6v.js +15 -0
- package/dist/.next/static/chunks/0npm9l63~4j0v.js +1 -0
- package/dist/.next/static/chunks/0ortphe030oky.js +1 -0
- package/dist/.next/static/chunks/0oufb2b491l23.js +153 -0
- package/dist/.next/static/chunks/0p9rfgg_duajn.js +2 -0
- package/dist/.next/static/chunks/0ps77yd96walr.js +4 -0
- package/dist/.next/static/chunks/0qfu4h5g.k-yt.js +1 -0
- package/dist/.next/static/chunks/0qm2930z0c.8m.js +80 -0
- package/dist/.next/static/chunks/0rhvismtjivza.js +104 -0
- package/dist/.next/static/chunks/0rmt10l3458p_.js +93 -0
- package/dist/.next/static/chunks/0r~zu0c3j_b7p.js +1 -0
- package/dist/.next/static/chunks/0s0v8xobo-2ok.js +34 -0
- package/dist/.next/static/chunks/0s8nwq43gep9_.js +15 -0
- package/dist/.next/static/chunks/0spswjguxbqfn.js +1 -0
- package/dist/.next/static/chunks/0wbhqz.-ey98b.js +1 -0
- package/dist/.next/static/chunks/0xxouzzjw_a6q.js +115 -0
- package/dist/.next/static/chunks/0ydl92ezt_ppz.js +1 -0
- package/dist/.next/static/chunks/0~.e-m04zn5l_.js +119 -0
- package/dist/.next/static/chunks/0~b.d.ay4u9zg.js +2 -0
- package/dist/.next/static/chunks/104yvyc1ce3q5.js +1 -0
- package/dist/.next/static/chunks/112qdnf547wz8.js +1 -0
- package/dist/.next/static/chunks/11_7qxlc92f5s.js +1 -0
- package/dist/.next/static/chunks/11h85j-8~tny3.js +36 -0
- package/dist/.next/static/chunks/11luuvvu~stmv.js +1 -0
- package/dist/.next/static/chunks/11uh-ttx4zin-.js +9 -0
- package/dist/.next/static/chunks/13mjf5q.pema_.js +2 -0
- package/dist/.next/static/chunks/14i46k409qlt0.js +1 -0
- package/dist/.next/static/chunks/14j238ax8coge.js +29 -0
- package/dist/.next/static/chunks/14u7twut.vmn5.js +1 -0
- package/dist/.next/static/chunks/159151ghv9-cc.js +1 -0
- package/dist/.next/static/chunks/15r_pfbdb2jhp.js +23 -0
- package/dist/.next/static/chunks/16m14x8k2fnon.js +287 -0
- package/dist/.next/static/chunks/16pzrphqjtyli.js +1 -0
- package/dist/.next/static/chunks/175hd_pl41_vh.js +15 -0
- package/dist/.next/static/chunks/182b_f_n0-cdr.js +1 -0
- package/dist/.next/static/chunks/187v8dzyf1l-f.js +80 -0
- package/dist/.next/static/chunks/turbopack-12mx7z-ex6m1h.js +1 -0
- package/dist/.next/static/media/KaTeX_AMS-Regular.0b~8ki5y928w2.woff +0 -0
- package/dist/.next/static/media/KaTeX_AMS-Regular.0p1vbqd84i2~o.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_AMS-Regular.173t6ktr7uf-w.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Caligraphic-Bold.01-pzluls4zgb.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Caligraphic-Bold.0x2v1lwn~880f.woff +0 -0
- package/dist/.next/static/media/KaTeX_Caligraphic-Bold.16zv5fax0h0ka.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Caligraphic-Regular.02i3z7wig438t.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Caligraphic-Regular.0rysu1t-ncjq8.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Caligraphic-Regular.10927swgekwun.woff +0 -0
- package/dist/.next/static/media/KaTeX_Fraktur-Bold.0e-16u10iuyyf.woff +0 -0
- package/dist/.next/static/media/KaTeX_Fraktur-Bold.0et27v~3~4uhe.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Fraktur-Bold.0w23i72~hprpq.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Fraktur-Regular.0b.riegzdfue2.woff +0 -0
- package/dist/.next/static/media/KaTeX_Fraktur-Regular.0rekyoa-52fj_.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Fraktur-Regular.0vjwa15znhk~4.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Main-Bold.09i7~607shf-h.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Main-Bold.09lmynrorhcbw.woff +0 -0
- package/dist/.next/static/media/KaTeX_Main-Bold.16pfc63_du6mx.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Main-BoldItalic.0cp37g7x1q8h6.woff +0 -0
- package/dist/.next/static/media/KaTeX_Main-BoldItalic.0d54rk08rx11s.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Main-BoldItalic.15j6k~hix2t_0.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Main-Italic.0382gqciexmbu.woff +0 -0
- package/dist/.next/static/media/KaTeX_Main-Italic.06o5nq0_91v60.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Main-Italic.0su4i6mm18-wo.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Main-Regular.08zh8z.7shijf.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Main-Regular.0diheg01zyoph.woff +0 -0
- package/dist/.next/static/media/KaTeX_Main-Regular.0kaf-ag2_wkm-.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Math-BoldItalic.0ajzxypnbx1h1.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Math-BoldItalic.0ck1myuerwyqw.woff +0 -0
- package/dist/.next/static/media/KaTeX_Math-BoldItalic.0ja97dn.cpc87.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Math-Italic.09xkhecjcn5r9.woff +0 -0
- package/dist/.next/static/media/KaTeX_Math-Italic.0x23a-bmp-5tg.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Math-Italic.0zrha2c4sl2je.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Bold.05a9.pc1j_zx9.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Bold.0jcl-ayi1uun0.woff +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Bold.0re8y.dm7.mt5.ttf +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Italic.0a0234dc3s62j.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Italic.0judofdln9731.woff +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Italic.10z1iap9pfus8.ttf +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Regular.0h9yjlugq4q_e.woff +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Regular.0v6gcj32-czft.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_SansSerif-Regular.0zm18kga42ebc.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Script-Regular.0c4.h-mer83d_.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Script-Regular.0q14y6zkzlpob.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Script-Regular.0ze6v4r_-99oy.woff +0 -0
- package/dist/.next/static/media/KaTeX_Size1-Regular.013x6a4ierotp.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Size1-Regular.0kidw0oi.m68o.woff +0 -0
- package/dist/.next/static/media/KaTeX_Size1-Regular.0m6y-i6wfokni.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Size2-Regular.0blpmluwilgbg.woff +0 -0
- package/dist/.next/static/media/KaTeX_Size2-Regular.0d5inmyp-tyv3.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Size2-Regular.0wnhnvj-.k9d5.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Size3-Regular.01h0xm_sfctj3.woff +0 -0
- package/dist/.next/static/media/KaTeX_Size3-Regular.0iukctyhw5j56.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Size3-Regular.0jl8mqyf4gzpn.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Size4-Regular.0w3.rb_c4stzk.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Size4-Regular.0wr_9l81-mu06.ttf +0 -0
- package/dist/.next/static/media/KaTeX_Size4-Regular.12tvaesf3.zl3.woff +0 -0
- package/dist/.next/static/media/KaTeX_Typewriter-Regular.0c4zdxz~8frhm.woff2 +0 -0
- package/dist/.next/static/media/KaTeX_Typewriter-Regular.0cgrzn5l3kao5.woff +0 -0
- package/dist/.next/static/media/KaTeX_Typewriter-Regular.128~qc3858otl.ttf +0 -0
- package/dist/package.json +8 -1
- package/package.json +8 -1
- package/dist/.next/server/chunks/ssr/[root-of-the-server]__04-lgb_._.js +0 -3
- package/dist/.next/static/chunks/063f4u.4z~v2d.js +0 -1
- package/dist/.next/static/chunks/069oirf3gupp6.js +0 -1
- package/dist/.next/static/chunks/09j8za_6zxpaz.js +0 -31
- package/dist/.next/static/chunks/0cje14_narrpx.js +0 -4
- package/dist/.next/static/chunks/0fsi8lw5utejl.js +0 -1
- package/dist/.next/static/chunks/0jtueskz-y_9~.js +0 -2
- package/dist/.next/static/chunks/0lb2ln-m2_o~q.js +0 -1
- package/dist/.next/static/chunks/0njfd4s35t8hg.css +0 -2
- package/dist/.next/static/chunks/143yn1~y.nunv.js +0 -75
- package/dist/.next/static/chunks/15km7mt~t~zy4.js +0 -2
- package/dist/.next/static/chunks/turbopack-0yd~9xptp2nkd.js +0 -1
- /package/dist/.next/static/{IV8SswX1U52biTfmccIat → ervFh0At3WGtGZx_U1jh6}/_buildManifest.js +0 -0
- /package/dist/.next/static/{IV8SswX1U52biTfmccIat → ervFh0At3WGtGZx_U1jh6}/_clientMiddlewareManifest.js +0 -0
- /package/dist/.next/static/{IV8SswX1U52biTfmccIat → ervFh0At3WGtGZx_U1jh6}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,883272,t=>{"use strict";function e(t,e,r){if(t&&t.length){let[a,s]=e,n=Math.PI/180*r,i=Math.cos(n),l=Math.sin(n);for(let e of t){let[t,r]=e;e[0]=(t-a)*i-(r-s)*l+a,e[1]=(t-a)*l+(r-s)*i+s}}}function r(t,r){var a;let s=r.hachureAngle+90,n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.round(Math.max(n,.1));let i=1;return r.roughness>=1&&((null==(a=r.randomizer)?void 0:a.next())||Math.random())>.7&&(i=n),function(t,r,a,s=1){let n=Math.max(r,.1),i=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,l=[0,0];if(a)for(let t of i)e(t,l,a);let o=function(t,e,r){let a=[];for(let e of t){var s,n;let t=[...e];s=t[0],n=t[t.length-1],s[0]===n[0]&&s[1]===n[1]||t.push([t[0][0],t[0][1]]),t.length>2&&a.push(t)}let i=[];e=Math.max(e,.1);let l=[];for(let t of a)for(let e=0;e<t.length-1;e++){let r=t[e],a=t[e+1];if(r[1]!==a[1]){let t=Math.min(r[1],a[1]);l.push({ymin:t,ymax:Math.max(r[1],a[1]),x:t===r[1]?r[0]:a[0],islope:(a[0]-r[0])/(a[1]-r[1])})}}if(l.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!l.length)return i;let o=[],h=l[0].ymin,p=0;for(;o.length||l.length;){if(l.length){let t=-1;for(let e=0;e<l.length&&!(l[e].ymin>h);e++)t=e;l.splice(0,t+1).forEach(t=>{o.push({s:h,edge:t})})}if((o=o.filter(t=>!(t.edge.ymax<=h))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||p%e==0)&&o.length>1)for(let t=0;t<o.length;t+=2){let e=t+1;if(e>=o.length)break;let r=o[t].edge,a=o[e].edge;i.push([[Math.round(r.x),h],[Math.round(a.x),h]])}h+=r,o.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),p++}return i}(i,n,s);if(a){let t;for(let t of i)e(t,l,-a);t=[],o.forEach(e=>t.push(...e)),e(t,l,-a)}return o}(t,n,s,i||1)}class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let a=r(t,e);return{type:"fillSketch",ops:this.renderLines(a,e)}}renderLines(t,e){let r=[];for(let a of t)r.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],e));return r}}function s(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class n extends a{fillPolygons(t,e){let a=e.hachureGap;a<0&&(a=4*e.strokeWidth);let n=r(t,Object.assign({},e,{hachureGap:a=Math.max(a,.1)})),i=Math.PI/180*e.hachureAngle,l=[],o=.5*a*Math.cos(i),h=.5*a*Math.sin(i);for(let[t,e]of n)s([t,e])&&l.push([[t[0]-o,t[1]+h],[...e]],[[t[0]+o,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(l,e)}}}class i extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),a=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),s=this._fillPolygons(t,a);return r.ops=r.ops.concat(s.ops),r}}class l{constructor(t){this.helper=t}fillPolygons(t,e){let a=r(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(a,e)}dotsOnLines(t,e){let r=[],a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.max(a,.1);let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let i=a/4;for(let l of t){let t=s(l),o=Math.ceil(t/a)-1,h=t-o*a,p=(l[0][0]+l[1][0])/2-a/4,d=Math.min(l[0][1],l[1][1]);for(let t=0;t<o;t++){let s=p-i+2*Math.random()*i,l=d+h+t*a-i+2*Math.random()*i,o=this.helper.ellipse(s,l,n,n,e);r.push(...o.ops)}}return{type:"fillSketch",ops:r}}}class o{constructor(t){this.helper=t}fillPolygons(t,e){let a=r(t,e);return{type:"fillSketch",ops:this.dashedLine(a,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,a=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,n=[];return t.forEach(t=>{let i=s(t),l=Math.floor(i/(r+a)),o=(i+a-l*(r+a))/2,h=t[0],p=t[1];h[0]>p[0]&&(h=t[1],p=t[0]);let d=Math.atan((p[1]-h[1])/(p[0]-h[0]));for(let t=0;t<l;t++){let s=t*(r+a),i=s+r,l=[h[0]+s*Math.cos(d)+o*Math.cos(d),h[1]+s*Math.sin(d)+o*Math.sin(d)],p=[h[0]+i*Math.cos(d)+o*Math.cos(d),h[1]+i*Math.sin(d)+o*Math.sin(d)];n.push(...this.helper.doubleLineOps(l[0],l[1],p[0],p[1],e))}}),n}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let a=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,s=e.zigzagOffset<0?a:e.zigzagOffset,n=r(t,e=Object.assign({},e,{hachureGap:a+s}));return{type:"fillSketch",ops:this.zigzagLines(n,s,e)}}zigzagLines(t,e,r){let a=[];return t.forEach(t=>{let n=Math.round(s(t)/(2*e)),i=t[0],l=t[1];i[0]>l[0]&&(i=t[1],l=t[0]);let o=Math.atan((l[1]-i[1])/(l[0]-i[0]));for(let t=0;t<n;t++){let s=2*t*e,n=2*(t+1)*e,l=Math.sqrt(2*Math.pow(e,2)),h=[i[0]+s*Math.cos(o),i[1]+s*Math.sin(o)],p=[i[0]+n*Math.cos(o),i[1]+n*Math.sin(o)],d=[h[0]+l*Math.cos(o+Math.PI/4),h[1]+l*Math.sin(o+Math.PI/4)];a.push(...this.helper.doubleLineOps(h[0],h[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],p[0],p[1],r))}}),a}}let p={};class d{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let c={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function u(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),a="BOD",s=0,n=r[0];for(;2!==n.type;){let i=0,l=[];if("BOD"===a){if("M"!==n.text&&"m"!==n.text)return u("M0,0"+t);s++,i=c[n.text],a=n.text}else 1===n.type?i=c[a]:(s++,i=c[n.text],a=n.text);if(!(s+i<r.length))throw Error("Path data ended short");for(let t=s;t<s+i;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+a+","+e.text);l[l.length]=+e.text}if("number"!=typeof c[a])throw Error("Bad segment: "+a);{let t={key:a,data:l};e.push(t),s+=i,n=r[s],"M"===a&&(a="L"),"m"===a&&(a="l")}}return e}function f(t){let e=0,r=0,a=0,s=0,n=[];for(let{key:i,data:l}of t)switch(i){case"M":n.push({key:"M",data:[...l]}),[e,r]=l,[a,s]=l;break;case"m":e+=l[0],r+=l[1],n.push({key:"M",data:[e,r]}),a=e,s=r;break;case"L":n.push({key:"L",data:[...l]}),[e,r]=l;break;case"l":e+=l[0],r+=l[1],n.push({key:"L",data:[e,r]});break;case"C":n.push({key:"C",data:[...l]}),e=l[4],r=l[5];break;case"c":{let t=l.map((t,a)=>a%2?t+r:t+e);n.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":n.push({key:"Q",data:[...l]}),e=l[2],r=l[3];break;case"q":{let t=l.map((t,a)=>a%2?t+r:t+e);n.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":n.push({key:"A",data:[...l]}),e=l[5],r=l[6];break;case"a":e+=l[5],r+=l[6],n.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],e,r]});break;case"H":n.push({key:"H",data:[...l]}),e=l[0];break;case"h":e+=l[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],n.push({key:"V",data:[r]});break;case"S":n.push({key:"S",data:[...l]}),e=l[2],r=l[3];break;case"s":{let t=l.map((t,a)=>a%2?t+r:t+e);n.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":n.push({key:"T",data:[...l]}),e=l[0],r=l[1];break;case"t":e+=l[0],r+=l[1],n.push({key:"T",data:[e,r]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=a,r=s}return n}function g(t){let e=[],r="",a=0,s=0,n=0,i=0,l=0,o=0;for(let{key:h,data:p}of t){switch(h){case"M":e.push({key:"M",data:[...p]}),[a,s]=p,[n,i]=p;break;case"C":e.push({key:"C",data:[...p]}),a=p[4],s=p[5],l=p[2],o=p[3];break;case"L":e.push({key:"L",data:[...p]}),[a,s]=p;break;case"H":a=p[0],e.push({key:"L",data:[a,s]});break;case"V":s=p[0],e.push({key:"L",data:[a,s]});break;case"S":{let t=0,n=0;"C"===r||"S"===r?(t=a+(a-l),n=s+(s-o)):(t=a,n=s),e.push({key:"C",data:[t,n,...p]}),l=p[0],o=p[1],a=p[2],s=p[3];break}case"T":{let[t,n]=p,i=0,h=0;"Q"===r||"T"===r?(i=a+(a-l),h=s+(s-o)):(i=a,h=s);let d=a+2*(i-a)/3,c=s+2*(h-s)/3,u=t+2*(i-t)/3,f=n+2*(h-n)/3;e.push({key:"C",data:[d,c,u,f,t,n]}),l=i,o=h,a=t,s=n;break}case"Q":{let[t,r,n,i]=p,h=a+2*(t-a)/3,d=s+2*(r-s)/3,c=n+2*(t-n)/3,u=i+2*(r-i)/3;e.push({key:"C",data:[h,d,c,u,n,i]}),l=t,o=r,a=n,s=i;break}case"A":{let t=Math.abs(p[0]),r=Math.abs(p[1]),n=p[2],i=p[3],l=p[4],o=p[5],h=p[6];0===t||0===r?(e.push({key:"C",data:[a,s,o,h,o,h]}),a=o,s=h):(a!==o||s!==h)&&((function t(e,r,a,s,n,i,l,o,h,p){let d=Math.PI*l/180,c=[],u=0,f=0,g=0,k=0;if(p)[u,f,g,k]=p;else{[e,r]=m(e,r,-d),[a,s]=m(a,s,-d);let t=(e-a)/2,l=(r-s)/2,p=t*t/(n*n)+l*l/(i*i);p>1&&(n*=p=Math.sqrt(p),i*=p);let c=n*n,y=i*i,M=(o===h?-1:1)*Math.sqrt(Math.abs((c*y-c*l*l-y*t*t)/(c*l*l+y*t*t)));g=M*n*l/i+(e+a)/2,k=-(M*i)*t/n+(r+s)/2,u=Math.asin(parseFloat(((r-k)/i).toFixed(9))),f=Math.asin(parseFloat(((s-k)/i).toFixed(9))),e<g&&(u=Math.PI-u),a<g&&(f=Math.PI-f),u<0&&(u=2*Math.PI+u),f<0&&(f=2*Math.PI+f),h&&u>f&&(u-=2*Math.PI),!h&&f>u&&(f-=2*Math.PI)}let y=f-u;if(Math.abs(y)>120*Math.PI/180){let e=f,r=a,o=s;c=t(a=g+n*Math.cos(f=h&&f>u?u+120*Math.PI/180*1:u+-(120*Math.PI/180*1)),s=k+i*Math.sin(f),r,o,n,i,l,0,h,[f,e,g,k])}y=f-u;let M=Math.cos(u),_=Math.cos(f),b=Math.tan(y/4),x=4/3*n*b,w=4/3*i*b,L=[e,r],S=[e+x*Math.sin(u),r-w*M],O=[a+x*Math.sin(f),s-w*_],v=[a,s];if(S[0]=2*L[0]-S[0],S[1]=2*L[1]-S[1],p)return[S,O,v].concat(c);{c=[S,O,v].concat(c);let t=[];for(let e=0;e<c.length;e+=3){let r=m(c[e][0],c[e][1],d),a=m(c[e+1][0],c[e+1][1],d),s=m(c[e+2][0],c[e+2][1],d);t.push([r[0],r[1],a[0],a[1],s[0],s[1]])}return t}})(a,s,o,h,t,r,n,i,l).forEach(function(t){e.push({key:"C",data:t})}),a=o,s=h);break}case"Z":e.push({key:"Z",data:[]}),a=n,s=i}r=h}return e}function m(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let k={randOffset:function(t,e){return E(t,e)},randOffsetWithRange:function(t,e,r){return P(t,e,r)},ellipse:function(t,e,r,a,s){let n=b(r,a,s);return x(t,e,s,n).opset},doubleLineOps:function(t,e,r,a,s){return T(t,e,r,a,s,!0)}};function y(t,e,r,a,s){return{type:"path",ops:T(t,e,r,a,s)}}function M(t,e,r){let a=(t||[]).length;if(a>2){let s=[];for(let e=0;e<a-1;e++)s.push(...T(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&s.push(...T(t[a-1][0],t[a-1][1],t[0][0],t[0][1],r)),{type:"path",ops:s}}return 2===a?y(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,a=W(r[0],+(1+.2*e.roughness),e),s=e.disableMultiStroke?[]:W(r[0],1.5*(1+.22*e.roughness),v(e));for(let t=1;t<r.length;t++){let n=r[t];if(n.length){let t=W(n,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:W(n,1.5*(1+.22*e.roughness),v(e));for(let e of t)"move"!==e.op&&a.push(e);for(let t of r)"move"!==t.op&&s.push(t)}}return{type:"path",ops:a.concat(s)}}return{type:"path",ops:[]}}function b(t,e,r){let a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),s=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*a)),n=Math.abs(t/2),i=Math.abs(e/2),l=1-r.curveFitting;return n+=E(n*l,r),i+=E(i*l,r),{increment:s,rx:n,ry:i}}function x(t,e,r,a){let[s,n]=R(a.increment,t,e,a.rx,a.ry,1,a.increment*P(.1,P(.4,1,r),r),r),i=U(s,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[s]=R(a.increment,t,e,a.rx,a.ry,1.5,0,r),n=U(s,null,r);i=i.concat(n)}return{estimatedPoints:n,opset:{type:"path",ops:i}}}function w(t,e,r,a,s,n,i,l,o){let h=Math.abs(r/2),p=Math.abs(a/2);h+=E(.01*h,o),p+=E(.01*p,o);let d=s,c=n;for(;d<0;)d+=2*Math.PI,c+=2*Math.PI;c-d>2*Math.PI&&(d=0,c=2*Math.PI);let u=Math.min(2*Math.PI/o.curveStepCount/2,(c-d)/2),f=A(u,t,e,h,p,d,c,1,o);if(!o.disableMultiStroke){let r=A(u,t,e,h,p,d,c,1.5,o);f.push(...r)}return i&&(l?f.push(...T(t,e,t+h*Math.cos(d),e+p*Math.sin(d),o),...T(t,e,t+h*Math.cos(c),e+p*Math.sin(c),o)):f.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+h*Math.cos(d),e+p*Math.sin(d)]})),{type:"path",ops:f}}function L(t,e){let r=g(f(u(t))),a=[],s=[0,0],n=[0,0];for(let{key:t,data:i}of r)switch(t){case"M":n=[i[0],i[1]],s=[i[0],i[1]];break;case"L":a.push(...T(n[0],n[1],i[0],i[1],e)),n=[i[0],i[1]];break;case"C":{let[t,r,s,l,o,h]=i;a.push(...function(t,e,r,a,s,n,i,l){let o=[],h=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3],p=[0,0],d=l.disableMultiStroke?1:2,c=l.preserveVertices;for(let u=0;u<d;u++)0===u?o.push({op:"move",data:[i[0],i[1]]}):o.push({op:"move",data:[i[0]+(c?0:E(h[0],l)),i[1]+(c?0:E(h[0],l))]}),p=c?[s,n]:[s+E(h[u],l),n+E(h[u],l)],o.push({op:"bcurveTo",data:[t+E(h[u],l),e+E(h[u],l),r+E(h[u],l),a+E(h[u],l),p[0],p[1]]});return o}(t,r,s,l,o,h,n,e)),n=[o,h];break}case"Z":a.push(...T(n[0],n[1],s[0],s[1],e)),n=[s[0],s[1]]}return{type:"path",ops:a}}function S(t,e){let r=[];for(let a of t)if(a.length){let t=e.maxRandomnessOffset||0,s=a.length;if(s>2){r.push({op:"move",data:[a[0][0]+E(t,e),a[0][1]+E(t,e)]});for(let n=1;n<s;n++)r.push({op:"lineTo",data:[a[n][0]+E(t,e),a[n][1]+E(t,e)]})}}return{type:"fillPath",ops:r}}function O(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!p[r])switch(r){case"zigzag":p[r]||(p[r]=new n(e));break;case"cross-hatch":p[r]||(p[r]=new i(e));break;case"dots":p[r]||(p[r]=new l(e));break;case"dashed":p[r]||(p[r]=new o(e));break;case"zigzag-line":p[r]||(p[r]=new h(e));break;default:p[r="hachure"]||(p[r]=new a(e))}return p[r]})(e,k).fillPolygons(t,e)}function v(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function $(t){return t.randomizer||(t.randomizer=new d(t.seed||0)),t.randomizer.next()}function P(t,e,r,a=1){return r.roughness*a*($(r)*(e-t)+t)}function E(t,e,r=1){return P(-t,t,e,r)}function T(t,e,r,a,s,n=!1){let i=n?s.disableMultiStrokeFill:s.disableMultiStroke,l=C(t,e,r,a,s,!0,!1);if(i)return l;let o=C(t,e,r,a,s,!0,!0);return l.concat(o)}function C(t,e,r,a,s,n,i){let l=Math.pow(t-r,2)+Math.pow(e-a,2),o=Math.sqrt(l),h=1;h=o<200?1:o>500?.4:-.0016668*o+1.233334;let p=s.maxRandomnessOffset||0;p*p*100>l&&(p=o/10);let d=p/2,c=.2+.2*$(s),u=s.bowing*s.maxRandomnessOffset*(a-e)/200,f=s.bowing*s.maxRandomnessOffset*(t-r)/200;u=E(u,s,h),f=E(f,s,h);let g=[],m=s.preserveVertices;return n&&(i?g.push({op:"move",data:[t+(m?0:E(d,s,h)),e+(m?0:E(d,s,h))]}):g.push({op:"move",data:[t+(m?0:E(p,s,h)),e+(m?0:E(p,s,h))]})),i?g.push({op:"bcurveTo",data:[u+t+(r-t)*c+E(d,s,h),f+e+(a-e)*c+E(d,s,h),u+t+2*(r-t)*c+E(d,s,h),f+e+2*(a-e)*c+E(d,s,h),r+(m?0:E(d,s,h)),a+(m?0:E(d,s,h))]}):g.push({op:"bcurveTo",data:[u+t+(r-t)*c+E(p,s,h),f+e+(a-e)*c+E(p,s,h),u+t+2*(r-t)*c+E(p,s,h),f+e+2*(a-e)*c+E(p,s,h),r+(m?0:E(p,s,h)),a+(m?0:E(p,s,h))]}),g}function W(t,e,r){if(!t.length)return[];let a=[];a.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),a.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let s=1;s<t.length;s++)a.push([t[s][0]+E(e,r),t[s][1]+E(e,r)]),s===t.length-1&&a.push([t[s][0]+E(e,r),t[s][1]+E(e,r)]);return U(a,null,r)}function U(t,e,r){let a=t.length,s=[];if(a>3){let n=[],i=1-r.curveTightness;s.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<a;e++){let r=t[e];n[0]=[r[0],r[1]],n[1]=[r[0]+(i*t[e+1][0]-i*t[e-1][0])/6,r[1]+(i*t[e+1][1]-i*t[e-1][1])/6],n[2]=[t[e+1][0]+(i*t[e][0]-i*t[e+2][0])/6,t[e+1][1]+(i*t[e][1]-i*t[e+2][1])/6],n[3]=[t[e+1][0],t[e+1][1]],s.push({op:"bcurveTo",data:[n[1][0],n[1][1],n[2][0],n[2][1],n[3][0],n[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;s.push({op:"lineTo",data:[e[0]+E(t,r),e[1]+E(t,r)]})}}else 3===a?(s.push({op:"move",data:[t[1][0],t[1][1]]}),s.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===a&&s.push(...C(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return s}function R(t,e,r,a,s,n,i,l){let o=[],h=[];if(0===l.roughness){t/=4,h.push([e+a*Math.cos(-t),r+s*Math.sin(-t)]);for(let n=0;n<=2*Math.PI;n+=t){let t=[e+a*Math.cos(n),r+s*Math.sin(n)];o.push(t),h.push(t)}h.push([e+ +a,r+0*s]),h.push([e+a*Math.cos(t),r+s*Math.sin(t)])}else{let p=E(.5,l)-Math.PI/2;h.push([E(n,l)+e+.9*a*Math.cos(p-t),E(n,l)+r+.9*s*Math.sin(p-t)]);let d=2*Math.PI+p-.01;for(let i=p;i<d;i+=t){let t=[E(n,l)+e+a*Math.cos(i),E(n,l)+r+s*Math.sin(i)];o.push(t),h.push(t)}h.push([E(n,l)+e+a*Math.cos(p+2*Math.PI+.5*i),E(n,l)+r+s*Math.sin(p+2*Math.PI+.5*i)]),h.push([E(n,l)+e+.98*a*Math.cos(p+i),E(n,l)+r+.98*s*Math.sin(p+i)]),h.push([E(n,l)+e+.9*a*Math.cos(p+.5*i),E(n,l)+r+.9*s*Math.sin(p+.5*i)])}return[h,o]}function A(t,e,r,a,s,n,i,l,o){let h=n+E(.1,o),p=[];p.push([E(l,o)+e+.9*a*Math.cos(h-t),E(l,o)+r+.9*s*Math.sin(h-t)]);for(let n=h;n<=i;n+=t)p.push([E(l,o)+e+a*Math.cos(n),E(l,o)+r+s*Math.sin(n)]);return p.push([e+a*Math.cos(i),r+s*Math.sin(i)]),p.push([e+a*Math.cos(i),r+s*Math.sin(i)]),U(p,null,o)}function H(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let a=[];if(3===r)a.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let s=[],n=1-e;a.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];s[0]=[e[0],e[1]],s[1]=[e[0]+(n*r[t+1][0]-n*r[t-1][0])/6,e[1]+(n*r[t+1][1]-n*r[t-1][1])/6],s[2]=[r[t+1][0]+(n*r[t][0]-n*r[t+2][0])/6,r[t+1][1]+(n*r[t][1]-n*r[t+2][1])/6],s[3]=[r[t+1][0],r[t+1][1]],a.push(s[1],s[2],s[3])}}return a}function z(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function X(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function Y(t,e,r,a,s){let n=s||[],i=t[e],l=t[r-1],o=0,h=1;for(let a=e+1;a<r-1;++a){let e=function(t,e,r){let a=z(e,r);if(0===a)return z(t,e);let s=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/a;return z(t,X(e,r,s=Math.max(0,Math.min(1,s))))}(t[a],i,l);e>o&&(o=e,h=a)}return Math.sqrt(o)>a?(Y(t,e,h+1,a,n),Y(t,h,r,a,n)):(n.length||n.push(i),n.push(l)),n}function B(t,e=.15,r){let a=[],s=(t.length-1)/3;for(let r=0;r<s;r++)!function t(e,r,a,s){let n,i,l,o,h,p,d,c,u=s||[];if(n=e[r+0],i=e[r+1],l=e[r+2],o=e[r+3],h=3*i[0]-2*n[0]-o[0],h*=h,p=3*i[1]-2*n[1]-o[1],p*=p,d=3*l[0]-2*o[0]-n[0],d*=d,c=3*l[1]-2*o[1]-n[1],c*=c,h<d&&(h=d),p<c&&(p=c),h+p<a){let t=e[r+0];u.length?Math.sqrt(z(u[u.length-1],t))>1&&u.push(t):u.push(t),u.push(e[r+3])}else{let s=e[r+0],n=e[r+1],i=e[r+2],l=e[r+3],o=X(s,n,.5),h=X(n,i,.5),p=X(i,l,.5),d=X(o,h,.5),c=X(h,p,.5),f=X(d,c,.5);t([s,o,d,f],0,a,u),t([f,c,p,l],0,a,u)}return u}(t,3*r,e,a);return r&&r>0?Y(a,0,a.length,r):a}let I="none";class D{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,a,s){let n=this._o(s);return this._d("line",[y(t,e,r,a,n)],n)}rectangle(t,e,r,a,s){var n,i,l,o;let h=this._o(s),p=[],d=M([[n=t,i=e],[n+(l=r),i],[n+l,i+(o=a)],[n,i+o]],!0,h);if(h.fill){let s=[[t,e],[t+r,e],[t+r,e+a],[t,e+a]];"solid"===h.fillStyle?p.push(S([s],h)):p.push(O([s],h))}return h.stroke!==I&&p.push(d),this._d("rectangle",p,h)}ellipse(t,e,r,a,s){let n=this._o(s),i=[],l=b(r,a,n),o=x(t,e,n,l);if(n.fill)if("solid"===n.fillStyle){let r=x(t,e,n,l).opset;r.type="fillPath",i.push(r)}else i.push(O([o.estimatedPoints],n));return n.stroke!==I&&i.push(o.opset),this._d("ellipse",i,n)}circle(t,e,r,a){let s=this.ellipse(t,e,r,r,a);return s.shape="circle",s}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[M(t,!1,r)],r)}arc(t,e,r,a,s,n,i=!1,l){let o=this._o(l),h=[],p=w(t,e,r,a,s,n,i,!0,o);if(i&&o.fill)if("solid"===o.fillStyle){let i=Object.assign({},o);i.disableMultiStroke=!0;let l=w(t,e,r,a,s,n,!0,!1,i);l.type="fillPath",h.push(l)}else h.push(function(t,e,r,a,s,n,i){let l=Math.abs(r/2),o=Math.abs(a/2);l+=E(.01*l,i),o+=E(.01*o,i);let h=s,p=n;for(;h<0;)h+=2*Math.PI,p+=2*Math.PI;p-h>2*Math.PI&&(h=0,p=2*Math.PI);let d=(p-h)/i.curveStepCount,c=[];for(let r=h;r<=p;r+=d)c.push([t+l*Math.cos(r),e+o*Math.sin(r)]);return c.push([t+l*Math.cos(p),e+o*Math.sin(p)]),c.push([t,e]),O([c],i)}(t,e,r,a,s,n,o));return o.stroke!==I&&h.push(p),this._d("arc",h,o)}curve(t,e){let r=this._o(e),a=[],s=_(t,r);if(r.fill&&r.fill!==I)if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let a of"number"==typeof t[0][0]?[t]:t)a.length<3?e.push(...a):3===a.length?e.push(...B(H([a[0],a[0],a[1],a[2]]),10,(1+r.roughness)/2)):e.push(...B(H(a),10,(1+r.roughness)/2));e.length&&a.push(O([e],r))}return r.stroke!==I&&a.push(s),this._d("curve",a,r)}polygon(t,e){let r=this._o(e),a=[],s=M(t,!0,r);return r.fill&&("solid"===r.fillStyle?a.push(S([t],r)):a.push(O([t],r))),r.stroke!==I&&a.push(s),this._d("polygon",a,r)}path(t,e){let r=this._o(e),a=[];if(!t)return this._d("path",a,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=r.fill&&"transparent"!==r.fill&&r.fill!==I,n=r.stroke!==I,i=!!(r.simplification&&r.simplification<1),l=function(t,e){let r=g(f(u(t))),a=[],s=[],n=[0,0],i=[],l=()=>{i.length>=4&&s.push(...B(i,1)),i=[]},o=()=>{l(),s.length&&(a.push(s),s=[])};for(let{key:t,data:e}of r)switch(t){case"M":o(),n=[e[0],e[1]],s.push(n);break;case"L":l(),s.push([e[0],e[1]]);break;case"C":if(!i.length){let t=s.length?s[s.length-1]:n;i.push([t[0],t[1]])}i.push([e[0],e[1]]),i.push([e[2],e[3]]),i.push([e[4],e[5]]);break;case"Z":l(),s.push([n[0],n[1]])}if(o(),!e)return a;let h=[];for(let t of a){let r=Y(t,0,t.length,e);r.length&&h.push(r)}return h}(t,i?4-4*(r.simplification||1):(1+r.roughness)/2),o=L(t,r);if(s)if("solid"===r.fillStyle)if(1===l.length){let e=L(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else a.push(S(l,r));else a.push(O(l,r));return n&&(i?l.forEach(t=>{a.push(M(t,!1,r))}):a.push(o)),this._d("path",a,r)}opsToPath(t,e){let r="";for(let a of t.ops){let t="number"==typeof e&&e>=0?a.data.map(t=>+t.toFixed(e)):a.data;switch(a.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,a=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:I};break;case"fillPath":e={d:this.opsToPath(t),stroke:I,strokeWidth:0,fill:r.fill||I};break;case"fillSketch":e=this.fillSketch(t,r)}e&&a.push(e)}return a}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||I,strokeWidth:r,fill:I}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new D(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),a=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(let n of e)switch(n.type){case"path":a.save(),a.strokeStyle="none"===r.stroke?"transparent":r.stroke,a.lineWidth=r.strokeWidth,r.strokeLineDash&&a.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(a.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(a,n,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(a,n,s,e),a.restore();break}case"fillSketch":this.fillSketch(a,n,r)}}fillSketch(t,e,r){let a=r.fillWeight;a<0&&(a=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=a,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,a="nonzero"){for(let a of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?a.data.map(t=>+t.toFixed(r)):a.data;switch(a.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(a):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,a,s){let n=this.gen.line(t,e,r,a,s);return this.draw(n),n}rectangle(t,e,r,a,s){let n=this.gen.rectangle(t,e,r,a,s);return this.draw(n),n}ellipse(t,e,r,a,s){let n=this.gen.ellipse(t,e,r,a,s);return this.draw(n),n}circle(t,e,r,a){let s=this.gen.circle(t,e,r,a);return this.draw(s),s}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,a,s,n,i=!1,l){let o=this.gen.arc(t,e,r,a,s,n,i,l);return this.draw(o),o}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let j="http://www.w3.org/2000/svg";class N{constructor(t,e){this.svg=t,this.gen=new D(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(j,"g"),n=t.options.fixedDecimalPlaceDigits;for(let i of e){let e=null;switch(i.type){case"path":(e=a.createElementNS(j,"path")).setAttribute("d",this.opsToPath(i,n)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=a.createElementNS(j,"path")).setAttribute("d",this.opsToPath(i,n)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(a,i,r)}e&&s.appendChild(e)}return s}fillSketch(t,e,r){let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);let s=t.createElementNS(j,"path");return s.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),s.setAttribute("stroke",r.fill||""),s.setAttribute("stroke-width",a+""),s.setAttribute("fill","none"),r.fillLineDash&&s.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,a,s){let n=this.gen.line(t,e,r,a,s);return this.draw(n)}rectangle(t,e,r,a,s){let n=this.gen.rectangle(t,e,r,a,s);return this.draw(n)}ellipse(t,e,r,a,s){let n=this.gen.ellipse(t,e,r,a,s);return this.draw(n)}circle(t,e,r,a){let s=this.gen.circle(t,e,r,a);return this.draw(s)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,a,s,n,i=!1,l){let o=this.gen.arc(t,e,r,a,s,n,i,l);return this.draw(o)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}t.s(["default",0,{canvas:(t,e)=>new q(t,e),svg:(t,e)=>new N(t,e),generator:t=>new D(t),newSeed:()=>D.newSeed()}])},620144,t=>{"use strict";var e=t.i(908381),r=t.i(171206),a=(0,r.__name)(t=>{let{handDrawnSeed:r}=(0,e.getConfig2)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:r}},"solidStateFill"),s=(0,r.__name)(t=>{let e=n([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),n=(0,r.__name)(t=>{let e=new Map;return t.forEach(t=>{let[r,a]=t.split(":");e.set(r.trim(),a?.trim())}),e},"styles2Map"),i=(0,r.__name)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),l=(0,r.__name)(t=>{let{stylesArray:e}=s(t),r=[],a=[],n=[],l=[];return e.forEach(t=>{let e=t[0];i(e)?r.push(t.join(":")+" !important"):(a.push(t.join(":")+" !important"),e.includes("stroke")&&n.push(t.join(":")+" !important"),"fill"===e&&l.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:a.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:l}},"styles2String"),o=(0,r.__name)((t,r)=>{let{themeVariables:a,handDrawnSeed:n}=(0,e.getConfig2)(),{nodeBorder:i,mainBkg:l}=a,{stylesMap:o}=s(t);return Object.assign({roughness:.7,fill:o.get("fill")||l,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:n,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:h(o.get("stroke-dasharray"))},r)},"userNodeOverrides"),h=(0,r.__name)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray");t.s(["compileStyles",0,s,"isLabelStyle",0,i,"solidStateFill",0,a,"styles2String",0,l,"userNodeOverrides",0,o])},348033,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BLANK_URL=r.relativeFirstCharacters=r.whitespaceEscapeCharsRegex=r.urlSchemeRegex=r.ctrlCharactersRegex=r.htmlCtrlEntityRegex=r.htmlEntitiesRegex=r.invalidProtocolRegex=void 0,r.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,r.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,r.htmlCtrlEntityRegex=/&(newline|tab);/gi,r.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,r.urlSchemeRegex=/^.+(:|:)/gim,r.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,r.relativeFirstCharacters=[".","/"],r.BLANK_URL="about:blank"},139941,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sanitizeUrl=function(t){if(!t)return a.BLANK_URL;var e,r=s(t.trim());do e=(r=s(r=r.replace(a.ctrlCharactersRegex,"").replace(a.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(a.htmlCtrlEntityRegex,"").replace(a.ctrlCharactersRegex,"").replace(a.whitespaceEscapeCharsRegex,"").trim())).match(a.ctrlCharactersRegex)||r.match(a.htmlEntitiesRegex)||r.match(a.htmlCtrlEntityRegex)||r.match(a.whitespaceEscapeCharsRegex);while(e&&e.length>0)var n=r;if(!n)return a.BLANK_URL;if(a.relativeFirstCharacters.indexOf(n[0])>-1)return n;var i=n.trimStart(),l=i.match(a.urlSchemeRegex);if(!l)return n;var o=l[0].toLowerCase().trim();if(a.invalidProtocolRegex.test(o))return a.BLANK_URL;var h=i.replace(/\\/g,"/");if("mailto:"===o||o.includes("://"))return h;if("http:"===o||"https:"===o){if(!URL.canParse(h))return a.BLANK_URL;var p=new URL(h);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return h};var a=t.r(348033);function s(t){try{return decodeURIComponent(t)}catch(e){return t}}},810199,t=>{"use strict";let e=Math.abs,r=Math.atan2,a=Math.cos,s=Math.max,n=Math.min,i=Math.sin,l=Math.sqrt,o=Math.PI,h=o/2;t.s(["abs",0,e,"acos",0,function(t){return t>1?0:t<-1?o:Math.acos(t)},"asin",0,function(t){return t>=1?h:t<=-1?-h:Math.asin(t)},"atan2",0,r,"cos",0,a,"epsilon",0,1e-12,"halfPi",0,h,"max",0,s,"min",0,n,"pi",0,o,"sin",0,i,"sqrt",0,l,"tau",0,2*o])},475058,216888,t=>{"use strict";t.s(["default",0,function(t){return function(){return t}}],475058);let e=Math.PI,r=2*e,a=r-1e-6;function s(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class n{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?s:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return s;let r=10**e;return function(t){this._+=t[0];for(let e=1,a=t.length;e<a;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,a){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,e,r,a,s,n){this._append`C${+t},${+e},${+r},${+a},${this._x1=+s},${this._y1=+n}`}arcTo(t,r,a,s,n){if(t*=1,r*=1,a*=1,s*=1,(n*=1)<0)throw Error(`negative radius: ${n}`);let i=this._x1,l=this._y1,o=a-t,h=s-r,p=i-t,d=l-r,c=p*p+d*d;if(null===this._x1)this._append`M${this._x1=t},${this._y1=r}`;else if(c>1e-6)if(Math.abs(d*o-h*p)>1e-6&&n){let u=a-i,f=s-l,g=o*o+h*h,m=Math.sqrt(g),k=Math.sqrt(c),y=n*Math.tan((e-Math.acos((g+c-(u*u+f*f))/(2*m*k)))/2),M=y/k,_=y/m;Math.abs(M-1)>1e-6&&this._append`L${t+M*p},${r+M*d}`,this._append`A${n},${n},0,0,${+(d*u>p*f)},${this._x1=t+_*o},${this._y1=r+_*h}`}else this._append`L${this._x1=t},${this._y1=r}`}arc(t,s,n,i,l,o){if(t*=1,s*=1,n*=1,o=!!o,n<0)throw Error(`negative radius: ${n}`);let h=n*Math.cos(i),p=n*Math.sin(i),d=t+h,c=s+p,u=1^o,f=o?i-l:l-i;null===this._x1?this._append`M${d},${c}`:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${d},${c}`,n&&(f<0&&(f=f%r+r),f>a?this._append`A${n},${n},0,1,${u},${t-h},${s-p}A${n},${n},0,1,${u},${this._x1=d},${this._y1=c}`:f>1e-6&&this._append`A${n},${n},0,${+(f>=e)},${u},${this._x1=t+n*Math.cos(l)},${this._y1=s+n*Math.sin(l)}`)}rect(t,e,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+a}h${-r}Z`}toString(){return this._}}n.prototype,t.s(["withPath",0,function(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new n(e)}],216888)},62990,t=>{"use strict";Array.prototype.slice,t.s(["default",0,function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}])},785833,t=>{"use strict";var e=t.i(62990),r=t.i(475058),a=t.i(48114),s=t.i(216888);function n(t){return t[0]}function i(t){return t[1]}t.s(["line",0,function(t,l){var o=(0,r.default)(!0),h=null,p=a.default,d=null,c=(0,s.withPath)(u);function u(r){var a,s,n,i=(r=(0,e.default)(r)).length,u=!1;for(null==h&&(d=p(n=c())),a=0;a<=i;++a)!(a<i&&o(s=r[a],a,r))===u&&((u=!u)?d.lineStart():d.lineEnd()),u&&d.point(+t(s,a,r),+l(s,a,r));if(n)return d=null,n+""||null}return t="function"==typeof t?t:void 0===t?n:(0,r.default)(t),l="function"==typeof l?l:void 0===l?i:(0,r.default)(l),u.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),u):t},u.y=function(t){return arguments.length?(l="function"==typeof t?t:(0,r.default)(+t),u):l},u.defined=function(t){return arguments.length?(o="function"==typeof t?t:(0,r.default)(!!t),u):o},u.curve=function(t){return arguments.length?(p=t,null!=h&&(d=p(h)),u):p},u.context=function(t){return arguments.length?(null==t?h=d=null:d=p(h=t),u):h},u}],785833)},136013,t=>{"use strict";var e=t.i(669587),r=t.i(908381),a=t.i(171206),s=(0,a.__name)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins");async function n(t,s){let n=t.getElementsByTagName("img");if(!n||0===n.length)return;let i=""===s.replace(/<img[^>]*>/g,"").trim();await Promise.all([...n].map(t=>new Promise(s=>{function n(){if(t.style.display="flex",t.style.flexDirection="column",i){let a=(0,r.getConfig2)().fontSize?(0,r.getConfig2)().fontSize:window.getComputedStyle(document.body).fontSize,[s=r.defaultConfig_default.fontSize]=(0,e.parseFontSize)(a),n=5*s+"px";t.style.minWidth=n,t.style.maxWidth=n}else t.style.width="100%";s(t)}(0,a.__name)(n,"setupImage"),setTimeout(()=>{t.complete&&n()}),t.addEventListener("error",n),t.addEventListener("load",n)})))}(0,a.__name)(n,"configureLabelImages"),t.s(["configureLabelImages",0,n,"getSubGraphTitleMargins",0,s])},609003,t=>{"use strict";var e=t.i(171206),r=(0,e.__name)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,a=t.y??0;return"translate("+-(r+t.width/2)+", "+-(a+t.height/2)+")"},"computeLabelTransform"),a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5};function s(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=n(t),e=n(e);let[r,a]=[t.x,t.y],[s,i]=[e.x,e.y],l=s-r,o=i-a;return{angle:Math.atan(o/l),deltaX:l,deltaY:o}}(0,e.__name)(s,"calculateDeltaAndAngle");var n=(0,e.__name)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),i=(0,e.__name)(t=>({x:(0,e.__name)(function(e,r,i){let l=0,o=n(i[0]).x<n(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaX:r}=s(i[0],i[1]);l=a[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaX:r}=s(i[i.length-1],i[i.length-2]);l=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let h=Math.abs(n(e).x-n(i[i.length-1]).x),p=Math.abs(n(e).y-n(i[i.length-1]).y),d=Math.abs(n(e).x-n(i[0]).x),c=Math.abs(n(e).y-n(i[0]).y),u=a[t.arrowTypeStart],f=a[t.arrowTypeEnd];if(h<f&&h>0&&p<f){let t=f+1-h;t*="right"===o?-1:1,l-=t}if(d<u&&d>0&&c<u){let t=u+1-d;t*="right"===o?-1:1,l+=t}return n(e).x+l},"x"),y:(0,e.__name)(function(e,r,i){let l=0,o=n(i[0]).y<n(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(a,t.arrowTypeStart)){let{angle:e,deltaY:r}=s(i[0],i[1]);l=a[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){let{angle:e,deltaY:r}=s(i[i.length-1],i[i.length-2]);l=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let h=Math.abs(n(e).y-n(i[i.length-1]).y),p=Math.abs(n(e).x-n(i[i.length-1]).x),d=Math.abs(n(e).y-n(i[0]).y),c=Math.abs(n(e).x-n(i[0]).x),u=a[t.arrowTypeStart],f=a[t.arrowTypeEnd];if(h<f&&h>0&&p<f){let t=f+1-h;t*="up"===o?-1:1,l-=t}if(d<u&&d>0&&c<u){let t=u+1-d;t*="up"===o?-1:1,l+=t}return n(e).y+l},"y")}),"getLineFunctionsWithOffset");t.s(["computeLabelTransform",0,r,"getLineFunctionsWithOffset",0,i,"markerOffsets",0,a,"markerOffsets2",0,{arrow_point:4,arrow_cross:12.5,arrow_circle:12.5}])},95547,t=>{"use strict";var e=t.i(609003),r=t.i(347578),a=t.i(136013),s=t.i(620144),n=t.i(864421),i=t.i(669587),l=t.i(908381),o=t.i(171206);t.i(947716);var h=t.i(600104),p=t.i(851262),d=t.i(826157),c=t.i(872200),u=t.i(722914),f=t.i(693158),g=t.i(363823),m=t.i(992536),k=t.i(226619),y=t.i(381142),M=t.i(700357),_=t.i(163018),b=t.i(785833),x=t.i(723685),w=t.i(883272),L=(0,o.__name)((t,e,r,a,s,n=!1,i)=>{e.arrowTypeStart&&v(t,"start",e.arrowTypeStart,r,a,s,n,i),e.arrowTypeEnd&&v(t,"end",e.arrowTypeEnd,r,a,s,n,i)},"addEdgeMarkers"),S={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},O=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],v=(0,o.__name)((t,e,r,a,s,n,i=!1,l)=>{let h=S[r],p=h&&O.includes(h.type);if(!h)return void o.log.warn(`Unknown arrow type: ${r}`);let d=h.type,c=`${s}_${n}-${d}${"start"===e?"Start":"End"}${i&&p?"-margin":""}`;if(l&&""!==l.trim()){let r=l.replace(/[^\dA-Za-z]/g,"_"),s=`${c}_${r}`;if(!document.getElementById(s)){let t=document.getElementById(c);if(t){let e=t.cloneNode(!0);e.id=s,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",l),h.fill&&t.setAttribute("fill",l)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${a}#${s})`)}else t.attr(`marker-${e}`,`url(${a}#${c})`)},"addEdgeMarker"),$=(0,o.__name)(t=>"string"==typeof t?t:(0,l.getConfig2)()?.flowchart?.curve,"resolveEdgeCurveType"),P=new Map,E=new Map,T=(0,o.__name)(()=>{P.clear(),E.clear()},"clear"),C=(0,o.__name)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),W=(0,o.__name)(async(t,a)=>{let i,h=(0,l.getConfig2)(),p=(0,l.getEffectiveHtmlLabels)(h),{labelStyles:d}=(0,s.styles2String)(a);a.labelStyle=d;let c=t.insert("g").attr("class","edgeLabel"),u=c.insert("g").attr("class","label").attr("data-id",a.id),f="markdown"===a.labelType,g=await (0,n.createText)(t,a.label,{style:C(a.labelStyle),useHtmlLabels:p,addSvgBackground:!0,isNode:!1,markdown:f,width:void 0},h);u.node().appendChild(g),o.log.info("abc82",a,a.labelType);let m=g.getBBox(),k=m;if(p){let t=g.children[0],e=(0,x.select)(g);k=m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}else{let t=(0,x.select)(g).select("text").node();t&&"function"==typeof t.getBBox&&(k=t.getBBox())}if(u.attr("transform",(0,e.computeLabelTransform)(k,p)),P.set(a.id,c),a.width=m.width,a.height=m.height,a.startLabelLeft){let s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner"),l=await (0,r.createLabel_default)(n,a.startLabelLeft,C(a.labelStyle)||"",!1,!1);i=l;let o=l.getBBox();if(p){let t=l.children[0],e=(0,x.select)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,e.computeLabelTransform)(o,p)),E.get(a.id)||E.set(a.id,{}),E.get(a.id).startLeft=s,U(i,a.startLabelLeft)}if(a.startLabelRight){let s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner"),l=await (0,r.createLabel_default)(n,a.startLabelRight,C(a.labelStyle)||"",!1,!1);i=l;let o=l.getBBox();if(p){let t=l.children[0],e=(0,x.select)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,e.computeLabelTransform)(o,p)),E.get(a.id)||E.set(a.id,{}),E.get(a.id).startRight=s,U(i,a.startLabelRight)}if(a.endLabelLeft){let s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner"),l=await (0,r.createLabel_default)(s,a.endLabelLeft,C(a.labelStyle)||"",!1,!1);i=l;let o=l.getBBox();if(p){let t=l.children[0],e=(0,x.select)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,e.computeLabelTransform)(o,p)),E.get(a.id)||E.set(a.id,{}),E.get(a.id).endLeft=s,U(i,a.endLabelLeft)}if(a.endLabelRight){let s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner"),l=await (0,r.createLabel_default)(s,a.endLabelRight,C(a.labelStyle)||"",!1,!1);i=l;let o=l.getBBox();if(p){let t=l.children[0],e=(0,x.select)(l);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",(0,e.computeLabelTransform)(o,p)),E.get(a.id)||E.set(a.id,{}),E.get(a.id).endRight=s,U(i,a.endLabelRight)}return g},"insertEdgeLabel");function U(t,e){(0,l.getEffectiveHtmlLabels)((0,l.getConfig2)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,o.__name)(U,"setTerminalWidth");var R=(0,o.__name)((t,e)=>{o.log.debug("Moving label abc88 ",t.id,t.label,P.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,s=(0,l.getConfig2)(),{subGraphTitleTotalMargin:n}=(0,a.getSubGraphTitleMargins)(s);if(t.label){let a=P.get(t.id),s=t.x,l=t.y;if(r){let a=i.utils_default.calcLabelPosition(r);o.log.debug("Moving label "+t.label+" from (",s,",",l,") to (",a.x,",",a.y,") abc88"),e.updatedPath&&(s=a.x,l=a.y)}a.attr("transform",`translate(${s}, ${l+n/2})`)}if(t.startLabelLeft){let e=E.get(t.id).startLeft,a=t.x,s=t.y;if(r){let e=i.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);a=e.x,s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.startLabelRight){let e=E.get(t.id).startRight,a=t.x,s=t.y;if(r){let e=i.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);a=e.x,s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.endLabelLeft){let e=E.get(t.id).endLeft,a=t.x,s=t.y;if(r){let e=i.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);a=e.x,s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.endLabelRight){let e=E.get(t.id).endRight,a=t.x,s=t.y;if(r){let e=i.utils_default.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);a=e.x,s=e.y}e.attr("transform",`translate(${a}, ${s})`)}},"positionEdgeLabel"),A=(0,o.__name)((t,e)=>{let r=t.x,a=t.y,s=Math.abs(e.x-r),n=Math.abs(e.y-a),i=t.width/2,l=t.height/2;return s>=i||n>=l},"outsideNode"),H=(0,o.__name)((t,e,r)=>{o.log.debug(`intersection calc abc89:
|
|
2
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
3
|
+
insidePoint : ${JSON.stringify(r)}
|
|
4
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let a=t.x,s=t.y,n=Math.abs(a-r.x),i=t.width/2,l=r.x<e.x?i-n:i+n,h=t.height/2,p=Math.abs(e.y-r.y),d=Math.abs(e.x-r.x);if(Math.abs(s-e.y)*i>Math.abs(a-e.x)*h){let t=r.y<e.y?e.y-h-s:s-h-e.y;l=d*t/p;let a={x:r.x<e.x?r.x+l:r.x-d+l,y:r.y<e.y?r.y+p-t:r.y-p+t};return 0===l&&(a.x=e.x,a.y=e.y),0===d&&(a.x=e.x),0===p&&(a.y=e.y),o.log.debug(`abc89 top/bottom calc, Q ${p}, q ${t}, R ${d}, r ${l}`,a),a}{let t=p*(l=r.x<e.x?e.x-i-a:a-i-e.x)/d,s=r.x<e.x?r.x+d-l:r.x-d+l,n=r.y<e.y?r.y+t:r.y-t;return o.log.debug(`sides calc abc89, Q ${p}, q ${t}, R ${d}, r ${l}`,{_x:s,_y:n}),0===l&&(s=e.x,n=e.y),0===d&&(s=e.x),0===p&&(n=e.y),{x:s,y:n}}},"intersection"),z=(0,o.__name)((t,e)=>{o.log.warn("abc88 cutPathAtIntersect",t,e);let r=[],a=t[0],s=!1;return t.forEach(t=>{if(o.log.info("abc88 checking point",t,e),A(e,t)||s)o.log.warn("abc88 outside",t,a),a=t,s||r.push(t);else{let n=H(e,a,t);o.log.debug("abc88 inside",t,a,n),o.log.debug("abc88 intersection",n,e);let i=!1;r.forEach(t=>{i=i||t.x===n.x&&t.y===n.y}),r.some(t=>t.x===n.x&&t.y===n.y)?o.log.warn("abc88 no intersect",n,r):r.push(n),s=!0}}),o.log.debug("returning points",r),r},"cutPathAtIntersect");function X(t){let e=[],r=[];for(let a=1;a<t.length-1;a++){let s=t[a-1],n=t[a],i=t[a+1];s.x===n.x&&n.y===i.y&&Math.abs(n.x-i.x)>5&&Math.abs(n.y-s.y)>5?(e.push(n),r.push(a)):s.y===n.y&&n.x===i.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-i.y)>5&&(e.push(n),r.push(a))}return{cornerPoints:e,cornerPointPositions:r}}(0,o.__name)(X,"extractCornerPoints");var Y=(0,o.__name)(function(t,e,r){let a=e.x-t.x,s=e.y-t.y,n=r/Math.sqrt(a*a+s*s);return{x:e.x-n*a,y:e.y-n*s}},"findAdjacentPoint"),B=(0,o.__name)(function(t){let{cornerPointPositions:e}=X(t),r=[];for(let a=0;a<t.length;a++)if(e.includes(a)){let e=t[a-1],s=t[a+1],n=t[a],i=Y(e,n,5),l=Y(s,n,5),h=l.x-i.x,p=l.y-i.y;r.push(i);let d=2*Math.sqrt(2),c={x:n.x,y:n.y};Math.abs(s.x-e.x)>10&&Math.abs(s.y-e.y)>=10?(o.log.debug("Corner point fixing",Math.abs(s.x-e.x),Math.abs(s.y-e.y)),c=n.x===i.x?{x:h<0?i.x-5+d:i.x+5-d,y:p<0?i.y-d:i.y+d}:{x:h<0?i.x-d:i.x+d,y:p<0?i.y-5+d:i.y+5-d}):o.log.debug("Corner point skipping fixing",Math.abs(s.x-e.x),Math.abs(s.y-e.y)),r.push(c,l)}else r.push(t[a]);return r},"fixCorners"),I=(0,o.__name)((t,e,r)=>{let a=Array(Math.floor((t-e-r)/4)).fill("2 2").join(" ");return`0 ${e} ${a} ${r}`},"generateDashArray"),D=(0,o.__name)(function(t,r,a,n,S,O,v,P=!1){let E,T;if(!v)throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:C}=(0,l.getConfig2)(),W=r.points,U=!1,R=[];for(let t in r.cssCompiledStyles)(0,s.isLabelStyle)(t)||R.push(r.cssCompiledStyles[t]);o.log.debug("UIO intersect check",r.points,O.x,S.x),O.intersect&&S.intersect&&!P&&((W=W.slice(1,r.points.length-1)).unshift(S.intersect(W[0])),o.log.debug("Last point UIO",r.start,"-->",r.end,W[W.length-1],O,O.intersect(W[W.length-1])),W.push(O.intersect(W[W.length-1])));let A=btoa(JSON.stringify(W));r.toCluster&&(o.log.info("to cluster abc88",a.get(r.toCluster)),W=z(r.points,a.get(r.toCluster).node),U=!0),r.fromCluster&&(o.log.debug("from cluster abc88",a.get(r.fromCluster),JSON.stringify(W,null,2)),W=z(W.reverse(),a.get(r.fromCluster).node).reverse(),U=!0);let H=W.filter(t=>!Number.isNaN(t.y)),X=$(r.curve);"rounded"!==X&&(H=B(H));let Y=p.curveLinear;switch(X){case"linear":case"rounded":Y=p.curveLinear;break;case"basis":default:Y=h.curveBasis;break;case"cardinal":Y=d.curveCardinal;break;case"bumpX":Y=c.curveBumpX;break;case"bumpY":Y=u.curveBumpY;break;case"catmullRom":Y=f.curveCatmullRom;break;case"monotoneX":Y=g.curveMonotoneX;break;case"monotoneY":Y=m.curveMonotoneY;break;case"natural":Y=k.curveNatural;break;case"step":Y=y.curveStep;break;case"stepAfter":Y=M.curveStepAfter;break;case"stepBefore":Y=_.curveStepBefore}let{x:D,y:j}=(0,e.getLineFunctionsWithOffset)(r),Z=(0,b.line)().x(D).y(j).curve(Y);switch(r.thickness){case"normal":default:E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible"}switch(r.pattern){case"solid":default:E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed"}let Q="rounded"===X?q(N(H,r),5):Z(H),F=Array.isArray(r.style)?r.style:[r.style],G=F.find(t=>t?.startsWith("stroke:")),V="";r.animate&&(V="edge-animation-fast"),r.animation&&(V="edge-animation-"+r.animation);let K=!1;if("handDrawn"===r.look){let e=w.default.svg(t);Object.assign([],H);let a=e.path(Q,{roughness:.3,seed:C});E+=" transition";let s=(T=(0,x.select)(a).select("path").attr("id",`${v}-${r.id}`).attr("class"," "+E+(r.classes?" "+r.classes:"")+(V?" "+V:"")).attr("style",F?F.reduce((t,e)=>t+";"+e,""):"")).attr("d");T.attr("d",s),t.node().appendChild(T.node())}else{let a=R.join(";"),s=F?F.reduce((t,e)=>t+e+";",""):"",n=(a?a+";"+s+";":s)+";"+(F?F.reduce((t,e)=>t+";"+e,""):"");T=t.append("path").attr("d",Q).attr("id",`${v}-${r.id}`).attr("class"," "+E+(r.classes?" "+r.classes:"")+(V?" "+V:"")).attr("style",n),G=n.match(/stroke:([^;]+)/)?.[1],K=!0===r.animate||!!r.animation||a.includes("animation");let i=T.node(),l="function"==typeof i.getTotalLength?i.getTotalLength():0,o=e.markerOffsets2[r.arrowTypeStart]||0,h=e.markerOffsets2[r.arrowTypeEnd]||0;if("neo"===r.look&&!K){let t="dotted"===r.pattern||"dashed"===r.pattern?I(l,o,h):`0 ${o} ${l-o-h} ${h}`,e=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;T.attr("style",e+T.attr("style"))}}T.attr("data-edge",!0),T.attr("data-et","edge"),T.attr("data-id",r.id),T.attr("data-points",A),T.attr("data-look",(0,i.handleUndefinedAttr)(r.look)),r.showPoints&&H.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let J="";((0,l.getConfig2)().flowchart.arrowMarkerAbsolute||(0,l.getConfig2)().state.arrowMarkerAbsolute)&&(J=(J=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),o.log.info("arrowTypeStart",r.arrowTypeStart),o.log.info("arrowTypeEnd",r.arrowTypeEnd);let tt=!K&&r?.look==="neo";L(T,r,J,v,n,tt,G);let te=Math.floor(W.length/2),tr=W[te];i.utils_default.isLabelCoordinateInPath(tr,T.attr("d"))||(U=!0);let ta={};return U&&(ta.updatedPath=W),ta.originalPath=r.points,ta},"insertEdge");function q(t,e){if(t.length<2)return"";let r="",a=t.length;for(let s=0;s<a;s++){let n=t[s],i=t[s-1],l=t[s+1];if(0===s)r+=`M${n.x},${n.y}`;else if(s===a-1)r+=`L${n.x},${n.y}`;else{let t=n.x-i.x,a=n.y-i.y,s=l.x-n.x,o=l.y-n.y,h=Math.hypot(t,a),p=Math.hypot(s,o);if(h<1e-5||p<1e-5){r+=`L${n.x},${n.y}`;continue}let d=t/h,c=a/h,u=s/p,f=o/p,g=Math.acos(Math.max(-1,Math.min(1,d*u+c*f)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${n.x},${n.y}`;continue}let m=Math.min(e/Math.sin(g/2),h/2,p/2),k=n.x-d*m,y=n.y-c*m,M=n.x+u*m,_=n.y+f*m;r+=`L${k},${y}Q${n.x},${n.y} ${M},${_}`}}return r}function j(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,a=e.y-t.y;return{angle:Math.atan2(a,r),deltaX:r,deltaY:a}}function N(t,r){let a=t.map(t=>({...t}));if(t.length>=2&&e.markerOffsets[r.arrowTypeStart]){let s=e.markerOffsets[r.arrowTypeStart],n=t[0],{angle:i}=j(n,t[1]),l=s*Math.cos(i),o=s*Math.sin(i);a[0].x=n.x+l,a[0].y=n.y+o}let s=t.length;if(s>=2&&e.markerOffsets[r.arrowTypeEnd]){let n=e.markerOffsets[r.arrowTypeEnd],i=t[s-1],{angle:l}=j(t[s-2],i),o=n*Math.cos(l),h=n*Math.sin(l);a[s-1].x=i.x-o,a[s-1].y=i.y-h}return a}(0,o.__name)(q,"generateRoundedPath"),(0,o.__name)(j,"calculateDeltaAndAngle"),(0,o.__name)(N,"applyMarkerOffsetsToPoints");var Z=(0,o.__name)((t,e,r,a)=>{e.forEach(e=>{tf[e](t,r,a)})},"insertMarkers"),Q=(0,o.__name)((t,e,r)=>{o.log.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),F=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),G=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),V=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),K=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),J=(0,o.__name)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),tt=(0,o.__name)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),te=(0,o.__name)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),tr=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),ta=(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{transitionColor:s}=a;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),ts=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),tn=(0,o.__name)((t,e,r)=>{let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),ti=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),tl=(0,o.__name)((t,e,r)=>{let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),to=(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{strokeWidth:s}=a;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),th=(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{strokeWidth:s,mainBkg:n}=a,i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",n??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);let o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",n??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),o.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),tp=(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{strokeWidth:s}=a;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),td=(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{strokeWidth:s,mainBkg:n}=a,i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",n??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);let o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",n??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),tc=(0,o.__name)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
5
|
+
L20,10
|
|
6
|
+
M20,10
|
|
7
|
+
L0,20`)},"requirement_arrow"),tu=(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{strokeWidth:s}=a;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
8
|
+
L20,10
|
|
9
|
+
M20,10
|
|
10
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),tf={extension:Q,composition:F,aggregation:G,dependency:V,lollipop:K,point:J,circle:tt,cross:te,barb:tr,barbNeo:ta,only_one:ts,zero_or_one:tn,one_or_more:ti,zero_or_more:tl,only_one_neo:to,zero_or_one_neo:th,one_or_more_neo:tp,zero_or_more_neo:td,requirement_arrow:tc,requirement_contains:(0,o.__name)((t,e,r)=>{let a=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:tu,requirement_contains_neo:(0,o.__name)((t,e,r)=>{let{themeVariables:a}=(0,l.getConfig)(),{strokeWidth:s}=a,n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo")};t.s(["clear",0,T,"insertEdge",0,D,"insertEdgeLabel",0,W,"markers_default",0,Z,"positionEdgeLabel",0,R])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,551273,(t,e,i)=>{t.e,e.exports=function(){var t=[function(t,e,i){"use strict";function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(8),o=i(9);function s(t,e,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(var a in s.prototype=Object.create(r.prototype),r)s[a]=r[a];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==r)break;i=i.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=[,,,,];this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,i){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(13),s=i(0),a=i(16),h=i(4);function l(t,e,i,s){null==i&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,null!=i&&null!=e?this.rect=new o(e.x,e.y,i.width,i.height):this.rect=new o}for(var g in l.prototype=Object.create(r.prototype),r)l[g]=r[g];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";(r.target==t||r.source==t)&&e.push(r)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach(function(e){t.add(e)});return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),i=0;i<e.length;i++)t+=e[i].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?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)},l.prototype.scatter=function(){var t,e,i=-s.INITIAL_WORLD_BOUNDARY,r=s.INITIAL_WORLD_BOUNDARY;t=s.WORLD_CENTER_X+a.nextDouble()*(r-i)+i;var n=-s.INITIAL_WORLD_BOUNDARY,o=s.INITIAL_WORLD_BOUNDARY;e=s.WORLD_CENTER_Y+a.nextDouble()*(o-n)+n,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),s.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),i=t.getBottom()-t.getTop();this.labelWidth>e&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>i&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-i)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-i),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var i=this.rect.y;i>s.WORLD_BOUNDARY?i=s.WORLD_BOUNDARY:i<-s.WORLD_BOUNDARY&&(i=-s.WORLD_BOUNDARY);var r=new h(e,i),n=t.inverseTransformPoint(r);this.setLocation(n.x,n.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){"use strict";function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(0),s=i(6),a=i(3),h=i(1),l=i(13),g=i(12),u=i(11);function c(t,e,i){r.call(this,i),this.estimatedSize=n.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in c.prototype=Object.create(r.prototype),r)c[d]=r[d];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(t,e,i){if(null==e&&null==i){if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(t)>-1)throw"Node already in graph!";return t.owner=this,this.getNodes().push(t),t}if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(t.source=e,t.target=i,t.isInterGraph=!1,this.getEdges().push(t),e.edges.push(t),i!=e&&i.edges.push(t),t)},c.prototype.remove=function(t){if(t instanceof a){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var e,i=t.edges.slice(),r=i.length,n=0;n<r;n++)(e=i[n]).isInterGraph?this.graphManager.remove(e):e.source.owner.remove(e);var o=this.nodes.indexOf(t);if(-1==o)throw"Node not in owner node list!";this.nodes.splice(o,1)}else if(t instanceof h){var e=t;if(null==e)throw"Edge is null!";if(null==e.source||null==e.target)throw"Source and/or target is null!";if(null==e.source.owner||null==e.target.owner||e.source.owner!=this||e.target.owner!=this)throw"Source and/or target owner is invalid!";var s=e.source.edges.indexOf(e),l=e.target.edges.indexOf(e);if(!(s>-1&&l>-1))throw"Source and/or target doesn't know this edge!";e.source.edges.splice(s,1),e.target!=e.source&&e.target.edges.splice(l,1);var o=e.source.owner.getEdges().indexOf(e);if(-1==o)throw"Not in owner's edge list!";e.source.owner.getEdges().splice(o,1)}},c.prototype.updateLeftTop=function(){for(var t,e,i,r=n.MAX_VALUE,o=n.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;h<a;h++){var l=s[h];t=l.getTop(),e=l.getLeft(),r>t&&(r=t),o>e&&(o=e)}return r==n.MAX_VALUE?null:(i=void 0!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=r-i,new g(this.left,this.top))},c.prototype.updateBounds=function(t){for(var e,i,r,o,s,a=n.MAX_VALUE,h=-n.MAX_VALUE,g=n.MAX_VALUE,u=-n.MAX_VALUE,c=this.nodes,d=c.length,p=0;p<d;p++){var f=c[p];t&&null!=f.child&&f.updateBounds(),e=f.getLeft(),i=f.getRight(),r=f.getTop(),o=f.getBottom(),a>e&&(a=e),h<i&&(h=i),g>r&&(g=r),u<o&&(u=o)}var y=new l(a,g,h-a,u-g);a==n.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),s=void 0!=c[0].getParent().paddingLeft?c[0].getParent().paddingLeft:this.margin,this.left=y.x-s,this.right=y.x+y.width+s,this.top=y.y-s,this.bottom=y.y+y.height+s},c.calculateBounds=function(t){for(var e,i,r,o,s=n.MAX_VALUE,a=-n.MAX_VALUE,h=n.MAX_VALUE,g=-n.MAX_VALUE,u=t.length,c=0;c<u;c++){var d=t[c];e=d.getLeft(),i=d.getRight(),r=d.getTop(),o=d.getBottom(),s>e&&(s=e),a<i&&(a=i),h>r&&(h=r),g<o&&(g=o)}return new l(s,h,a-s,g-h)},c.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,i=e.length,r=0;r<i;r++)t+=e[r].calcEstimatedSize();return 0==t?this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=t/Math.sqrt(this.nodes.length),this.estimatedSize},c.prototype.updateConnected=function(){var t,e,i=this;if(0==this.nodes.length){this.isConnected=!0;return}var r=new u,n=new Set,o=this.nodes[0];for(o.withChildren().forEach(function(t){r.push(t),n.add(t)});0!==r.length;)for(var s=(t=(o=r.shift()).getEdges()).length,a=0;a<s;a++)null==(e=t[a].getOtherEndInGraph(o,this))||n.has(e)||e.withChildren().forEach(function(t){r.push(t),n.add(t)});if(this.isConnected=!1,n.size>=this.nodes.length){var h=0;n.forEach(function(t){t.owner==i&&h++}),h==this.nodes.length&&(this.isConnected=!0)}},t.exports=c},function(t,e,i){"use strict";var r,n=i(1);function o(t){r=i(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}n=i,r=e,i=t;var o=r.getOwner(),s=n.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==s||s.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==s)return i.isInterGraph=!1,o.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var e,i,o=[],s=(o=o.concat(t.getEdges())).length,a=0;a<s;a++)e=o[a],t.remove(e);var h=[];s=(h=h.concat(t.getNodes())).length;for(var a=0;a<s;a++)i=h[a],t.remove(i);t==this.rootGraph&&this.setRootGraph(null);var l=this.graphs.indexOf(t);this.graphs.splice(l,1),t.parent=null}else if(t instanceof n){if(null==(e=t))throw"Edge is null!";if(!e.isInterGraph)throw"Not an inter-graph edge!";if(null==e.source||null==e.target)throw"Source and/or target is null!";if(-1==e.source.edges.indexOf(e)||-1==e.target.edges.indexOf(e))throw"Source and/or target doesn't know this edge!";var l=e.source.edges.indexOf(e);if(e.source.edges.splice(l,1),l=e.target.edges.indexOf(e),e.target.edges.splice(l,1),null==e.source.owner||null==e.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==e.source.owner.getGraphManager().edges.indexOf(e))throw"Not in owner graph manager's edge list!";var l=e.source.owner.getGraphManager().edges.indexOf(e);e.source.owner.getGraphManager().edges.splice(l,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),i=e.length,r=0;r<i;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var t=[],e=this.getGraphs();e.length;for(var i=0;i<e.length;i++)t=t.concat(e[i].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var i,r=t.getOwner();null!=(i=r.getParent());){if(i==e)return!0;if(null==(r=i.getOwner()))break}for(r=e.getOwner();null!=(i=r.getParent());){if(i==t)return!0;if(null==(r=i.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,i,r,n,o=this.getAllEdges(),s=o.length,a=0;a<s;a++){if(e=(t=o[a]).source,i=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=i,e==i){t.lca=e.getOwner();continue}for(r=e.getOwner();null==t.lca;){for(t.targetInLca=i,n=i.getOwner();null==t.lca;){if(n==r){t.lca=n;break}if(n==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=n.getParent(),n=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var i=t.getOwner();null!=i;){for(var r=e.getOwner();null!=r;){if(r==i)return r;r=r.getParent().getOwner()}i=i.getParent().getOwner()}return i},o.prototype.calcInclusionTreeDepths=function(t,e){null==t&&null==e&&(t=this.rootGraph,e=1);for(var i,r=t.getNodes(),n=r.length,o=0;o<n;o++)(i=r[o]).inclusionTreeDepth=e,null!=i.child&&this.calcInclusionTreeDepths(i.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,i=0;i<e;i++)if(t=this.edges[i],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=o},function(t,e,i){"use strict";var r=i(0);function n(){}for(var o in r)n[o]=r[o];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=3*n.MAX_NODE_DISPLACEMENT_INCREMENTAL,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=n},function(t,e,i){"use strict";var r=i(12);function n(){}n.calcSeparationAmount=function(t,e,i,r){if(!t.intersects(e))throw"assert failed";var n=[,,];this.decideDirectionsForOverlappingNodes(t,e,n),i[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),i[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*i[0],a=i[1]/o;i[0]<a?a=i[0]:s=i[1],i[0]=-1*n[0]*(a/2+r),i[1]=-1*n[1]*(s/2+r)},n.decideDirectionsForOverlappingNodes=function(t,e,i){t.getCenterX()<e.getCenterX()?i[0]=-1:i[0]=1,t.getCenterY()<e.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(t,e,i){var r=t.getCenterX(),n=t.getCenterY(),o=e.getCenterX(),s=e.getCenterY();if(t.intersects(e))return i[0]=r,i[1]=n,i[2]=o,i[3]=s,!0;var a=t.getX(),h=t.getY(),l=t.getRight(),g=t.getX(),u=t.getBottom(),c=t.getRight(),d=t.getWidthHalf(),p=t.getHeightHalf(),f=e.getX(),y=e.getY(),E=e.getRight(),v=e.getX(),A=e.getBottom(),T=e.getRight(),N=e.getWidthHalf(),_=e.getHeightHalf(),L=!1,m=!1;if(r===o)n>s?(i[0]=r,i[1]=h,i[2]=o,i[3]=A):n<s&&(i[0]=r,i[1]=u,i[2]=o,i[3]=y);else if(n===s)r>o?(i[0]=a,i[1]=n,i[2]=E,i[3]=s):r<o&&(i[0]=l,i[1]=n,i[2]=f,i[3]=s);else{var O=t.height/t.width,I=e.height/e.width,D=(s-n)/(o-r),w=void 0,R=void 0,C=void 0,M=void 0,G=void 0,x=void 0;if(-O===D?(r>o?(i[0]=g,i[1]=u):(i[0]=l,i[1]=h),L=!0):O===D&&(r>o?(i[0]=a,i[1]=h):(i[0]=c,i[1]=u),L=!0),-I===D?(o>r?(i[2]=v,i[3]=A):(i[2]=E,i[3]=y),m=!0):I===D&&(o>r?(i[2]=f,i[3]=y):(i[2]=T,i[3]=A),m=!0),L&&m)return!1;if(r>o?n>s?(w=this.getCardinalDirection(O,D,4),R=this.getCardinalDirection(I,D,2)):(w=this.getCardinalDirection(-O,D,3),R=this.getCardinalDirection(-I,D,1)):n>s?(w=this.getCardinalDirection(-O,D,1),R=this.getCardinalDirection(-I,D,3)):(w=this.getCardinalDirection(O,D,2),R=this.getCardinalDirection(I,D,4)),!L)switch(w){case 1:M=h,C=r+-p/D,i[0]=C,i[1]=M;break;case 2:C=c,M=n+d*D,i[0]=C,i[1]=M;break;case 3:M=u,C=r+p/D,i[0]=C,i[1]=M;break;case 4:C=g,M=n+-d*D,i[0]=C,i[1]=M}if(!m)switch(R){case 1:x=y,G=o+-_/D,i[2]=G,i[3]=x;break;case 2:G=T,x=s+N*D,i[2]=G,i[3]=x;break;case 3:x=A,G=o+_/D,i[2]=G,i[3]=x;break;case 4:G=v,x=s+-N*D,i[2]=G,i[3]=x}}return!1},n.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},n.getIntersection=function(t,e,i,n){if(null==n)return this.getIntersection2(t,e,i);var o=t.x,s=t.y,a=e.x,h=e.y,l=i.x,g=i.y,u=n.x,c=n.y,d=void 0,p=void 0,f=void 0,y=void 0,E=void 0,v=void 0,A=void 0;return(d=h-s,f=o-a,E=a*s-o*h,p=c-g,y=l-u,v=u*g-l*c,0==(A=d*y-p*f))?null:new r((f*v-y*E)/A,(p*E-d*v)/A)},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i<t?n+=Math.PI:r<e&&(n+=this.TWO_PI)):n=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,n},n.doIntersect=function(t,e,i,r){var n=t.x,o=t.y,s=e.x,a=e.y,h=i.x,l=i.y,g=r.x,u=r.y,c=(s-n)*(u-l)-(g-h)*(a-o);if(0===c)return!1;var d=((u-l)*(g-n)+(h-g)*(u-o))/c,p=((o-a)*(g-n)+(s-n)*(u-o))/c;return 0<d&&d<1&&0<p&&p<1},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,t.exports=n},function(t,e,i){"use strict";function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){"use strict";function r(){}r.MAX_VALUE=0x7fffffff,r.MIN_VALUE=-0x80000000,t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){return{value:t,next:null,prev:null}},o=function(t,e,i,r){return null!==t?t.next=e:r.head=e,null!==i?i.prev=e:r.tail=e,e.prev=t,e.next=i,r.length++,e},s=function(t,e){var i=t.prev,r=t.next;return null!==i?i.next=r:e.head=r,null!==r?r.prev=i:e.tail=i,t.prev=t.next=null,e.length--,t};t.exports=function(){function t(e){var i=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach(function(t){return i.push(t)})}return r(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,n(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,n(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,n(t),null,this)}},{key:"unshift",value:function(t){return o(null,n(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,i=this.head;e<t;)i=i.next,e++;return i.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var i=1,r=this.head;i<t;)r=r.next,i++;r.value=e}}}]),t}()},function(t,e,i){"use strict";function r(t,e,i){this.x=null,this.y=null,null==t&&null==e&&null==i?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==i?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==i&&(i=t,this.x=i.x,this.y=i.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(t,e,i){"Point"==t.constructor.name&&null==e&&null==i?(i=t,this.setLocation(i.x,i.y)):"number"==typeof t&&"number"==typeof e&&null==i&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){return"Point"==t.constructor.name?this.x==t.x&&this.y==t.y:this==t},r.prototype.toString=function(){return new r().constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,i){"use strict";function r(t,e,i,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=i&&null!=r&&(this.x=t,this.y=e,this.width=i,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},t.exports=r},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function n(){}n.lastID=0,n.createID=function(t){return n.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=n.getString(),n.lastID++),t.uniqueID)},n.getString=function(t){return null==t&&(t=n.lastID),"Object#"+t},n.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=n},function(t,e,i){"use strict";function r(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}var n=i(0),o=i(6),s=i(3),a=i(1),h=i(5),l=i(4),g=i(17),u=i(27);function c(t){u.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}c.RANDOM_SEED=1,c.prototype=Object.create(u.prototype),c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},c.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},c.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},c.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},c.prototype.newGraph=function(t){return new h(null,this.graphManager,t)},c.prototype.newNode=function(t){return new s(this.graphManager,t)},c.prototype.newEdge=function(t){return new a(null,null,t)},c.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},c.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(t&&!this.isSubLayout&&this.doPostLayout(),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},c.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},c.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];for(var i=this.graphManager.getRoot().getNodes(),e=0;e<i.length;e++)i[e];this.update(this.graphManager.getRoot())}},c.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof s){if(null!=t.getChild())for(var e=t.getChild().getNodes(),i=0;i<e.length;i++)update(e[i]);null!=t.vGraphObject&&t.vGraphObject.update(t)}else t instanceof a?null!=t.vGraphObject&&t.vGraphObject.update(t):t instanceof h&&null!=t.vGraphObject&&t.vGraphObject.update(t)},c.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},c.prototype.transform=function(t){if(void 0==t)this.transform(new l(0,0));else{var e=new g,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(i.x),e.setDeviceOrgY(i.y);for(var r=this.getAllNodes(),n=0;n<r.length;n++)r[n].transform(e)}}},c.prototype.positionNodesRandomly=function(t){if(void 0==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,i,r=t.getNodes(),n=0;n<r.length;n++)null==(i=(e=r[n]).getChild())||0==i.getNodes().length?e.scatter():(this.positionNodesRandomly(i),e.updateBounds())},c.prototype.getFlatForest=function(){for(var t=[],e=!0,i=this.graphManager.getRoot().getNodes(),n=!0,o=0;o<i.length;o++)null!=i[o].getChild()&&(n=!1);if(!n)return t;var s=new Set,a=[],h=new Map,l=[];for(l=l.concat(i);l.length>0&&e;){for(a.push(l[0]);a.length>0&&e;){var g=a[0];a.splice(0,1),s.add(g);for(var u=g.getEdges(),o=0;o<u.length;o++){var c=u[o].getOtherEnd(g);if(h.get(g)!=c)if(s.has(c)){e=!1;break}else a.push(c),h.set(c,g)}}if(e){var d=[].concat(r(s));t.push(d);for(var o=0;o<d.length;o++){var p=d[o],f=l.indexOf(p);f>-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},c.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n<t.bendpoints.length;n++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var s=this.newEdge(null);this.graphManager.add(s,i,o),e.add(o),i=o}var s=this.newEdge(null);return this.graphManager.add(s,i,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):r.remove(t),e},c.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var i=t[e];if(i.bendpoints.length>0){for(var n=this.edgeToDummyNodes.get(i),o=0;o<n.length;o++){var s=n[o],a=new l(s.getCenterX(),s.getCenterY()),h=i.bendpoints.get(o);h.x=a.x,h.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},c.transform=function(t,e,i,r){if(void 0==i||void 0==r)return t<=50?(n=9*e/500,o=e/10):(n=9*e/50,o=-8*e),n*t+o;var n,o,s=e;return t<=50?s-=(e-e/i)/50*(50-t):s+=(e*r-e)/50*(t-50),s},c.findCenterOfTree=function(t){var e=[];e=e.concat(t);var i=[],r=new Map,n=!1,o=null;(1==e.length||2==e.length)&&(n=!0,o=e[0]);for(var s=0;s<e.length;s++){var a=e[s],h=a.getNeighborsList().size;r.set(a,a.getNeighborsList().size),1==h&&i.push(a)}var l=[];for(l=l.concat(i);!n;){var g=[];g=g.concat(l),l=[];for(var s=0;s<e.length;s++){var a=e[s],u=e.indexOf(a);u>=0&&e.splice(u,1),a.getNeighborsList().forEach(function(t){if(0>i.indexOf(t)){var e=r.get(t)-1;1==e&&l.push(t),r.set(t,e)}})}i=i.concat(l),(1==e.length||2==e.length)&&(n=!0,o=e[0])}return o},c.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=c},function(t,e,i){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,i){"use strict";var r=i(4);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){"use strict";var r=i(15),n=i(7),o=i(0),s=i(8),a=i(9);function h(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=n.DEFAULT_EDGE_LENGTH,this.springConstant=n.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=n.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var l in h.prototype=Object.create(r.prototype),r)h[l]=r[l];h.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,s,a,h=this.getGraphManager().getAllEdges(),l=0;l<h.length;l++)(t=h[l]).idealLength=this.idealEdgeLength,t.isInterGraph&&(i=t.getSource(),r=t.getTarget(),s=t.getSourceInLca().getEstimatedSize(),a=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=s+a-2*o.SIMPLE_NODE_SIZE),e=t.getLca().getInclusionTreeDepth(),t.idealLength+=n.DEFAULT_EDGE_LENGTH*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(i.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*e))},h.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i<e.length;i++)t=e[i],this.calcSpringForce(t,t.idealLength)},h.prototype.calcRepulsionForces=function(){var t,e,i,r,o,s=!(arguments.length>0)||void 0===arguments[0]||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t<h.length;t++)i=h[t],this.calculateRepulsionForceOfANode(i,o,s,a),o.add(i);else for(t=0;t<h.length;t++)for(i=h[t],e=t+1;e<h.length;e++)r=h[e],i.getOwner()==r.getOwner()&&this.calcRepulsionForce(i,r)},h.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),i=0;i<e.length;i++)t=e[i],this.calcGravitationalForce(t)},h.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},h.prototype.calcSpringForce=function(t,e){var i,r,n,o,s=t.getSource(),a=t.getTarget();if(this.uniformLeafNodeSizes&&null==s.getChild()&&null==a.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(i=t.getLength())&&(n=(r=this.springConstant*(i-e))*(t.lengthX/i),o=r*(t.lengthY/i),s.springForceX+=n,s.springForceY+=o,a.springForceX-=n,a.springForceY-=o)},h.prototype.calcRepulsionForce=function(t,e){var i,r,o,h,l,g,u,c=t.getRect(),d=e.getRect(),p=[,,],f=[,,,,];if(c.intersects(d)){s.calcSeparationAmount(c,d,p,n.DEFAULT_EDGE_LENGTH/2),g=2*p[0],u=2*p[1];var y=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=y*g,t.repulsionForceY-=y*u,e.repulsionForceX+=y*g,e.repulsionForceY+=y*u}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(i=d.getCenterX()-c.getCenterX(),r=d.getCenterY()-c.getCenterY()):(s.getIntersection(c,d,f),i=f[2]-f[0],r=f[3]-f[1]),Math.abs(i)<n.MIN_REPULSION_DIST&&(i=a.sign(i)*n.MIN_REPULSION_DIST),Math.abs(r)<n.MIN_REPULSION_DIST&&(r=a.sign(r)*n.MIN_REPULSION_DIST),h=Math.sqrt(o=i*i+r*r),g=(l=this.repulsionConstant*t.noOfChildren*e.noOfChildren/o)*i/h,u=l*r/h,t.repulsionForceX-=g,t.repulsionForceY-=u,e.repulsionForceX+=g,e.repulsionForceY+=u},h.prototype.calcGravitationalForce=function(t){var e,i,r,n,o,s,a,h;i=((e=t.getOwner()).getRight()+e.getLeft())/2,r=(e.getTop()+e.getBottom())/2,n=t.getCenterX()-i,o=t.getCenterY()-r,s=Math.abs(n)+t.getWidth()/2,a=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(s>(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)(t=e[i]).noOfChildren=t.getNoOfChildren()},h.prototype.calcGrid=function(t){var e=0,i=0;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var r=Array(e),n=0;n<e;n++)r[n]=Array(i);for(var n=0;n<e;n++)for(var o=0;o<i;o++)r[n][o]=[];return r},h.prototype.addNodeToGrid=function(t,e,i){var r=0,n=0,o=0,s=0;r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),n=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-i)/this.repulsionRange)),s=parseInt(Math.floor((t.getRect().height+t.getRect().y-i)/this.repulsionRange));for(var a=r;a<=n;a++)for(var h=o;h<=s;h++)this.grid[a][h].push(t),t.setGridCoordinates(r,n,o,s)},h.prototype.updateGrid=function(){var t,e,i=this.getAllNodes();for(t=0,this.grid=this.calcGrid(this.graphManager.getRoot());t<i.length;t++)e=i[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(t,e,i,r){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&i||r){var o,s=new Set;t.surrounding=[];for(var a=this.grid,h=t.startX-1;h<t.finishX+2;h++)for(var l=t.startY-1;l<t.finishY+2;l++)if(!(h<0||l<0||h>=a.length||l>=a[0].length)){for(var g=0;g<a[h][l].length;g++)if(o=a[h][l][g],t.getOwner()==o.getOwner()&&t!=o&&!e.has(o)&&!s.has(o)){var u=Math.abs(t.getCenterX()-o.getCenterX())-(t.getWidth()/2+o.getWidth()/2),c=Math.abs(t.getCenterY()-o.getCenterY())-(t.getHeight()/2+o.getHeight()/2);u<=this.repulsionRange&&c<=this.repulsionRange&&s.add(o)}}t.surrounding=[].concat(function(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}(s))}for(h=0;h<t.surrounding.length;h++)this.calcRepulsionForce(t,t.surrounding[h])},h.prototype.calcRepulsionRange=function(){return 0},t.exports=h},function(t,e,i){"use strict";var r=i(1),n=i(7);function o(t,e,i){r.call(this,t,e,i),this.idealLength=n.DEFAULT_EDGE_LENGTH}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];t.exports=o},function(t,e,i){"use strict";var r=i(3);function n(t,e,i,n){r.call(this,t,e,i,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=[]}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];n.prototype.setGridCoordinates=function(t,e,i,r){this.startX=t,this.finishX=e,this.startY=i,this.finishY=r},t.exports=n},function(t,e,i){"use strict";function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,i){"use strict";var r=i(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(t,e){var i=r.createID(t);this.contains(i)||(this.map[i]=e,this.keys.push(t))},n.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},n.prototype.get=function(t){var e=r.createID(t);return this.map[e]},n.prototype.keySet=function(){return this.keys},t.exports=n},function(t,e,i){"use strict";var r=i(14);function n(){this.set={}}n.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},n.prototype.remove=function(t){delete this.set[r.createID(t)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(t){return this.set[r.createID(t)]==t},n.prototype.isEmpty=function(){return 0===this.size()},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),i=e.length,r=0;r<i;r++)t.push(this.set[e[r]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(t){for(var e=t.length,i=0;i<e;i++){var r=t[i];this.add(r)}},t.exports=n},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=i(11);t.exports=function(){function t(e,i){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");(null!==i||void 0!==i)&&(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=e instanceof n?e.size():e.length,this._quicksort(e,0,r-1)}return r(t,[{key:"_quicksort",value:function(t,e,i){if(e<i){var r=this._partition(t,e,i);this._quicksort(t,e,r),this._quicksort(t,r+1,i)}}},{key:"_partition",value:function(t,e,i){for(var r=this._get(t,e),n=e,o=i;;){for(;this.compareFunction(r,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,n),r);)n++;if(!(n<o))return o;this._swap(t,n,o),n++,o--}}},{key:"_get",value:function(t,e){return t instanceof n?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,i){t instanceof n?t.set_object_at(e,i):t[e]=i}},{key:"_swap",value:function(t,e,i){var r=this._get(t,e);this._set(t,e,this._get(t,i)),this._set(t,i,r)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}()},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();t.exports=function(){function t(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.sequence1=e,this.sequence2=i,this.match_score=r,this.mismatch_penalty=n,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=Array(this.iMax);for(var h=0;h<this.iMax;h++){this.tracebackGrid[h]=Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[h][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var r=1;r<this.jMax;r++){var n=[this.sequence1[i-1]===this.sequence2[r-1]?this.grid[i-1][r-1]+this.match_score:this.grid[i-1][r-1]+this.mismatch_penalty,this.grid[i-1][r]+this.gap_penalty,this.grid[i][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(n);this.grid[i][r]=n[o[0]],this.tracebackGrid[i][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],i=this.tracebackGrid[e.pos[0]][e.pos[1]];i[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),i[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),i[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var i=[],r=-1;-1!==(r=t.indexOf(e,r+1));)i.push(r);return i}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}()},function(t,e,i){"use strict";var r=function(){};r.FDLayout=i(18),r.FDLayoutConstants=i(7),r.FDLayoutEdge=i(19),r.FDLayoutNode=i(20),r.DimensionD=i(21),r.HashMap=i(22),r.HashSet=i(23),r.IGeometry=i(8),r.IMath=i(9),r.Integer=i(10),r.Point=i(12),r.PointD=i(4),r.RandomSeed=i(16),r.RectangleD=i(13),r.Transform=i(17),r.UniqueIDGeneretor=i(14),r.Quicksort=i(24),r.LinkedList=i(11),r.LGraphObject=i(2),r.LGraph=i(5),r.LEdge=i(1),r.LGraphManager=i(6),r.LNode=i(3),r.Layout=i(15),r.LayoutConstants=i(0),r.NeedlemanWunsch=i(25),t.exports=r},function(t,e,i){"use strict";function r(){this.listeners=[]}var n=r.prototype;n.addListener=function(t,e){this.listeners.push({event:t,callback:e})},n.removeListener=function(t,e){for(var i=this.listeners.length;i>=0;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i<this.listeners.length;i++){var r=this.listeners[i];t===r.event&&r.callback(e)}},t.exports=r}],e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=26)}()},797659,(t,e,i)=>{t.e,e.exports=function(t){var e=[function(e,i){e.exports=t},function(t,e,i){"use strict";var r=i(0).FDLayoutConstants;function n(){}for(var o in r)n[o]=r[o];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=n},function(t,e,i){"use strict";var r=i(0).FDLayoutEdge;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){"use strict";var r=i(0).LGraph;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){"use strict";var r=i(0).LGraphManager;function n(t){r.call(this,t)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){"use strict";var r=i(0).FDLayoutNode,n=i(0).IMath;function o(t,e,i,n){r.call(this,t,e,i,n)}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.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},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n<r.length;n++)null==(i=r[n]).getChild()?(i.moveBy(t,e),i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},function(t,e,i){"use strict";var r=i(0).FDLayout,n=i(4),o=i(3),s=i(5),a=i(2),h=i(1),l=i(0).FDLayoutConstants,g=i(0).LayoutConstants,u=i(0).Point,c=i(0).PointD,d=i(0).Layout,p=i(0).Integer,f=i(0).IGeometry,y=i(0).LGraph,E=i(0).Transform;function v(){r.call(this),this.toBeTiled={}}for(var A in v.prototype=Object.create(r.prototype),r)v[A]=r[A];v.prototype.newGraphManager=function(){var t=new n(this);return this.graphManager=t,t},v.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},v.prototype.newNode=function(t){return new s(this.graphManager,t)},v.prototype.newEdge=function(t){return new a(null,null,t)},v.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.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/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){return g.DEFAULT_CREATE_BENDS_AS_NEEDED&&(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(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e)}}else{var i=this.getFlatForest();if(i.length>0)this.positionNodesRadially(i);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),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))return!0;else this.isTreeGrowing=!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(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 t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.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=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var r=t[i].rect,n=t[i].id;e[n]={id:n,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===l.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,i=[],r=this.graphManager.getGraphs(),n=r.length;for(e=0;e<n;e++)(t=r[e]).updateConnected(),t.isConnected||(i=i.concat(t.getNodes()));return i},v.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e=new Set;for(o=0;o<t.length;o++){var i=t[o];if(!e.has(i)){var r=i.getSource(),n=i.getTarget();if(r==n)i.getBendpoints().push(new c),i.getBendpoints().push(new c),this.createDummyNodesForBendpoints(i),e.add(i);else{var o,s,a=[];if(a=(a=a.concat(r.getEdgeListToNode(n))).concat(n.getEdgeListToNode(r)),!e.has(a[0])){if(a.length>1)for(s=0;s<a.length;s++){var h=a[s];h.getBendpoints().push(new c),this.createDummyNodesForBendpoints(h)}a.forEach(function(t){e.add(t)})}}}if(e.size==t.length)break}},v.prototype.positionNodesRadially=function(t){for(var e=new u(0,0),i=Math.ceil(Math.sqrt(t.length)),r=0,n=0,o=0,s=new c(0,0),a=0;a<t.length;a++){a%i==0&&(o=0,n=r,0!=a&&(n+=h.DEFAULT_COMPONENT_SEPERATION),r=0);var l=t[a],p=d.findCenterOfTree(l);e.x=o,e.y=n,(s=v.radialLayout(l,p,e)).y>r&&(r=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new c(g.WORLD_CENTER_X-s.x/2,g.WORLD_CENTER_Y-s.y/2))},v.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(e,null,0,359,0,r);var n=y.calculateBounds(t),o=new E;o.setDeviceOrgX(n.getMinX()),o.setDeviceOrgY(n.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var s=0;s<t.length;s++)t[s].transform(o);var a=new c(n.getMaxX(),n.getMaxY());return o.inverseTransformPoint(a)},v.branchRadialLayout=function(t,e,i,r,n,o){var s,a=(r-i+1)/2;a<0&&(a+=180);var h=(a+i)%360*f.TWO_PI/360,l=n*Math.cos(h),g=n*Math.sin(h);t.setCenter(l,g);var u=[],c=(u=u.concat(t.getEdges())).length;null!=e&&c--;for(var d=0,p=u.length,y=t.getEdgesBetween(e);y.length>1;){var E=y[0];y.splice(0,1);var A=u.indexOf(E);A>=0&&u.splice(A,1),p--,c--}s=null!=e?(u.indexOf(y[0])+1)%p:0;for(var T=Math.abs(r-i)/c,N=s;d!=c;N=++N%p){var _=u[N].getOtherEnd(t);if(_!=e){var L=(i+d*T)%360,m=(L+T)%360;v.branchRadialLayout(_,t,L,m,n+o,o),d++}}},v.maxDiagonalInTree=function(t){for(var e=p.MIN_VALUE,i=0;i<t.length;i++){var r=t[i].getDiagonal();r>e&&(e=r)}return e},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),n=0;n<r.length;n++){var o=r[n],a=o.getParent();0!==this.getNodeDegreeWithChildren(o)||void 0!=a.id&&this.getToBeTiled(a)||i.push(o)}for(var n=0;n<i.length;n++){var o=i[n],h=o.getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(o)}Object.keys(e).forEach(function(i){if(e[i].length>1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var n=e[i][0].getParent(),o=new s(t.graphManager);o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=n.getChild();h.add(o);for(var l=0;l<e[i].length;l++){var g=e[i][l];h.remove(g),a.add(g)}}})},v.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},v.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(i){var r=t.idToDummyNode[i];e[i]=t.tileNodes(t.memberGroups[i],r.paddingLeft+r.paddingRight),r.rect.width=e[i].width,r.rect.height=e[i].height})},v.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,n=e.paddingTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,n)}},v.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(i){var r=t.idToDummyNode[i],n=r.paddingLeft,o=r.paddingTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,o)})},v.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),n=0;n<r.length;n++){var o=r[n];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null==o.getChild()){this.toBeTiled[o.id]=!1;continue}if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}return this.toBeTiled[e]=!0,!0},v.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;r<e.length;r++){var n=e[r];n.getSource().id!==n.getTarget().id&&(i+=1)}return i},v.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var i=t.getChild().getNodes(),r=0;r<i.length;r++){var n=i[r];e+=this.getNodeDegreeWithChildren(n)}return e},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},v.prototype.adjustLocations=function(t,e,i,r,n){e+=r,i+=n;for(var o=e,s=0;s<t.rows.length;s++){var a=t.rows[s];e=o;for(var h=0,l=0;l<a.length;l++){var g=a[l];g.rect.x=e,g.rect.y=i,e+=g.rect.width+t.horizontalPadding,g.rect.height>h&&(h=g.rect.height)}i+=h+t.verticalPadding}},v.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(r){var n=e[r];i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height})},v.prototype.tileNodes=function(t,e){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort(function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:+(t.rect.width*t.rect.height<e.rect.width*e.rect.height)});for(var r=0;r<t.length;r++){var n=t[r];0==i.rows.length?this.insertNodeToRow(i,n,0,e):this.canAddHorizontal(i,n.rect.width,n.rect.height)?this.insertNodeToRow(i,n,this.getShortestRowIndex(i),e):this.insertNodeToRow(i,n,i.rows.length,e),this.shiftToLastRow(i)}return i},v.prototype.insertNodeToRow=function(t,e,i,r){i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(r),t.rowHeight.push(0));var n=t.rowWidth[i]+e.rect.width;t.rows[i].length>0&&(n+=t.horizontalPadding),t.rowWidth[i]=n,t.width<n&&(t.width=n);var o=e.rect.height;i>0&&(o+=t.verticalPadding);var s=0;o>t.rowHeight[i]&&(s=t.rowHeight[i],t.rowHeight[i]=o,s=t.rowHeight[i]-s),t.height+=s,t.rows[i].push(e)},v.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<i&&(e=r,i=t.rowWidth[r]);return e},v.prototype.getLongestRowIndex=function(t){for(var e=-1,i=5e-324,r=0;r<t.rows.length;r++)t.rowWidth[r]>i&&(e=r,i=t.rowWidth[r]);return e},v.prototype.canAddHorizontal=function(t,e,i){var r,n,o=this.getShortestRowIndex(t);if(o<0)return!0;var s=t.rowWidth[o];if(s+t.horizontalPadding+e<=t.width)return!0;var a=0;return t.rowHeight[o]<i&&o>0&&(a=i+t.verticalPadding-t.rowHeight[o]),r=t.width-s>=e+t.horizontalPadding?(t.height+a)/(s+e+t.horizontalPadding):(t.height+a)/t.width,a=i+t.verticalPadding,(n=t.width<e?(t.height+a)/e:(t.height+a)/t.width)<1&&(n=1/n),r<1&&(r=1/r),r<n},v.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,r=t.rows[e],n=r[r.length-1],o=n.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>o&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=5e-324,a=0;a<r.length;a++)r[a].height>s&&(s=r[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=s,t.rowHeight[i]<n.height+t.verticalPadding&&(t.rowHeight[i]=n.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[i];t.height+=l-h,this.shiftToLastRow(t)}},v.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){var r=this.graphManager.getAllNodes(),n=[];i=!1;for(var o=0;o<r.length;o++)1!=(t=r[o]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(n.push([t,t.getEdges()[0],t.getOwner()]),i=!0);if(!0==i){for(var s=[],a=0;a<n.length;a++)1==n[a][0].getEdges().length&&(s.push(n[a]),n[a][0].getOwner().remove(n[a][0]));e.push(s),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},v.prototype.growTree=function(t){for(var e,i=t.length,r=t[i-1],n=0;n<r.length;n++)e=r[n],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(t){var e,i,r,n,o=t[0],s=(i=o==t[1].source?t[1].target:t[1].source).startX,a=i.finishX,h=i.startY,g=i.finishY,u=[0,0,0,0];if(h>0)for(var c=s;c<=a;c++)u[0]+=this.grid[c][h-1].length+this.grid[c][h].length-1;if(a<this.grid.length-1)for(var c=h;c<=g;c++)u[1]+=this.grid[a+1][c].length+this.grid[a][c].length-1;if(g<this.grid[0].length-1)for(var c=s;c<=a;c++)u[2]+=this.grid[c][g+1].length+this.grid[c][g].length-1;if(s>0)for(var c=h;c<=g;c++)u[3]+=this.grid[s-1][c].length+this.grid[s][c].length-1;for(var d=p.MAX_VALUE,f=0;f<u.length;f++)u[f]<d?(d=u[f],r=1,n=f):u[f]==d&&r++;if(3==r&&0==d)0==u[0]&&0==u[1]&&0==u[2]?e=1:0==u[0]&&0==u[1]&&0==u[3]?e=0:0==u[0]&&0==u[2]&&0==u[3]?e=3:0==u[1]&&0==u[2]&&0==u[3]&&(e=2);else if(2==r&&0==d){var y=Math.floor(2*Math.random());e=0==u[0]&&0==u[1]?+(0!=y):0==u[0]&&0==u[2]?2*(0!=y):0==u[0]&&0==u[3]?3*(0!=y):0==u[1]&&0==u[2]?0==y?1:2:0==u[1]&&0==u[3]?0==y?1:3:0==y?2:3}else if(4==r&&0==d){var y=Math.floor(4*Math.random());e=y}else e=n;0==e?o.setCenter(i.getCenterX(),i.getCenterY()-i.getHeight()/2-l.DEFAULT_EDGE_LENGTH-o.getHeight()/2):1==e?o.setCenter(i.getCenterX()+i.getWidth()/2+l.DEFAULT_EDGE_LENGTH+o.getWidth()/2,i.getCenterY()):2==e?o.setCenter(i.getCenterX(),i.getCenterY()+i.getHeight()/2+l.DEFAULT_EDGE_LENGTH+o.getHeight()/2):o.setCenter(i.getCenterX()-i.getWidth()/2-l.DEFAULT_EDGE_LENGTH-o.getWidth()/2,i.getCenterY())},t.exports=v},function(t,e,i){"use strict";var r={};r.layoutBase=i(0),r.CoSEConstants=i(1),r.CoSEEdge=i(2),r.CoSEGraph=i(3),r.CoSEGraphManager=i(4),r.CoSELayout=i(6),r.CoSENode=i(5),t.exports=r}],i={};function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=i,r.i=function(t){return t},r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=7)}(t.r(551273))},815363,(t,e,i)=>{t.e,e.exports=function(t){var e=[function(e,i){e.exports=t},function(t,e,i){"use strict";var r=i(0).layoutBase.LayoutConstants,n=i(0).layoutBase.FDLayoutConstants,o=i(0).CoSEConstants,s=i(0).CoSELayout,a=i(0).CoSENode,h=i(0).layoutBase.PointD,l=i(0).layoutBase.DimensionD,g={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 u(t){this.options=function(t,e){var i={};for(var r in t)i[r]=t[r];for(var r in e)i[r]=e[r];return i}(g,t),c(this.options)}var c=function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=n.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=n.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=n.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=n.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=n.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=n.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=n.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?r.QUALITY=0:"proof"==t.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=n.ANIMATE=r.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};u.prototype.run=function(){var t,e,i=this.options;this.idToLNode={};var r=this.layout=new s,n=this;n.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=r.newGraphManager();this.gm=o;var a=this.options.eles.nodes(),h=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(a),r);for(var l=0;l<h.length;l++){var g=h[l],u=this.idToLNode[g.data("source")],c=this.idToLNode[g.data("target")];u!==c&&0==u.getEdgesBetween(c).length&&(o.add(r.newEdge(),u,c).id=g.id())}var d=function(t,e){"number"==typeof t&&(t=e);var i=t.data("id"),r=n.idToLNode[i];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},p=function o(){for(var s,a=function(){i.fit&&i.cy.fit(i.eles,i.padding),t||(t=!0,n.cy.one("layoutready",i.ready),n.cy.trigger({type:"layoutready",layout:n}))},h=n.options.refresh,l=0;l<h&&!s;l++)s=n.stopped||n.layout.tick();if(s){r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,n.options.eles.nodes().positions(d),a(),n.cy.one("layoutstop",n.options.stop),n.cy.trigger({type:"layoutstop",layout:n}),e&&cancelAnimationFrame(e),t=!1;return}var g=n.layout.getPositionsData();i.eles.nodes().positions(function(t,e){if("number"==typeof t&&(t=e),!t.isParent()){for(var i=t.id(),r=g[i],n=t;null==r&&(r=g[n.data("parent")]||g["DummyCompound_"+n.data("parent")],g[i]=r,void 0!=(n=n.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:t.position("x"),y:t.position("y")}}}),a(),e=requestAnimationFrame(o)};return r.addListener("layoutstarted",function(){"during"===n.options.animate&&(e=requestAnimationFrame(p))}),r.runLayout(),"during"!==this.options.animate&&(n.options.eles.nodes().not(":parent").layoutPositions(n,n.options,d),t=!1),this},u.prototype.getTopMostNodes=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].id()]=!0;return t.filter(function(t,i){"number"==typeof t&&(t=i);for(var r=t.parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0})},u.prototype.processChildrenList=function(t,e,i){for(var r=e.length,n=0;n<r;n++){var o,s,g=e[n],u=g.children(),c=g.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=g.outerWidth()&&null!=g.outerHeight()?t.add(new a(i.graphManager,new h(g.position("x")-c.w/2,g.position("y")-c.h/2),new l(parseFloat(c.w),parseFloat(c.h)))):t.add(new a(this.graphManager))).id=g.data("id"),o.paddingLeft=parseInt(g.css("padding")),o.paddingTop=parseInt(g.css("padding")),o.paddingRight=parseInt(g.css("padding")),o.paddingBottom=parseInt(g.css("padding")),this.options.nodeDimensionsIncludeLabels&&g.isParent()){var d=g.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=g.boundingBox({includeLabels:!0,includeNodes:!1}).h,f=g.css("text-halign");o.labelWidth=d,o.labelHeight=p,o.labelPos=f}this.idToLNode[g.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=u&&u.length>0&&(s=i.getGraphManager().add(i.newGraph(),o),this.processChildrenList(s,u,i))}},u.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",u)};"u">typeof cytoscape&&d(cytoscape),t.exports=d}],i={};function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=i,r.i=function(t){return t},r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}(t.r(797659))},697810,t=>{"use strict";var e=t.i(171206),i=t.i(277871),r=t.i(815363);t.i(947716);var n=t.i(723685);function o(t,e){t.forEach(t=>{let i={id:t.id,labelText:t.label,height:t.height,width:t.width,padding:t.padding??0};Object.keys(t).forEach(e=>{["id","label","height","width","padding","x","y"].includes(e)||(i[e]=t[e])}),e.add({group:"nodes",data:i,position:{x:t.x??0,y:t.y??0}})})}function s(t,e){t.forEach(t=>{let i={id:t.id,source:t.start,target:t.end};Object.keys(t).forEach(e=>{["id","start","end"].includes(e)||(i[e]=t[e])}),e.add({group:"edges",data:i})})}function a(t){return new Promise(r=>{let a=(0,n.select)("body").append("div").attr("id","cy").attr("style","display:none"),h=(0,i.default)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});a.remove(),o(t.nodes,h),s(t.edges,h),h.nodes().forEach(function(t){t.layoutDimensions=()=>{let e=t.data();return{w:e.width,h:e.height}}}),h.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),h.ready(t=>{e.log.info("Cytoscape ready",t),r(h)})})}function h(t){return t.nodes().map(t=>{let e=t.data(),i=t.position(),r={id:e.id,x:i.x,y:i.y};return Object.keys(e).forEach(t=>{"id"!==t&&(r[t]=e[t])}),r})}function l(t){return t.edges().map(t=>{let e=t.data(),i=t._private.rscratch,r={id:e.id,source:e.source,target:e.target,startX:i.startX,startY:i.startY,midX:i.midX,midY:i.midY,endX:i.endX,endY:i.endY};return Object.keys(e).forEach(t=>{["id","source","target"].includes(t)||(r[t]=e[t])}),r})}async function g(t,i){e.log.debug("Starting cose-bilkent layout algorithm");try{u(t);let i=await a(t),r=h(i),n=l(i);return e.log.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(t){throw e.log.error("Error in cose-bilkent layout algorithm:",t),t}}function u(t){if(!t)throw Error("Layout data is required");if(!t.config)throw Error("Configuration is required in layout data");if(!t.rootNode)throw Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw Error("Edges array is required in layout data");return!0}i.default.use(r.default),(0,e.__name)(o,"addNodes"),(0,e.__name)(s,"addEdges"),(0,e.__name)(a,"createCytoscapeInstance"),(0,e.__name)(h,"extractPositionedNodes"),(0,e.__name)(l,"extractPositionedEdges"),(0,e.__name)(g,"executeCoseBilkentLayout"),(0,e.__name)(u,"validateLayoutData");var c=(0,e.__name)(async(t,e,{insertCluster:i,insertEdge:r,insertEdgeLabel:n,insertMarkers:o,insertNode:s,log:a,positionEdgeLabel:h},{algorithm:l})=>{let u={},c={},d=e.select("g");o(d,t.markers,t.type,t.diagramId);let p=d.insert("g").attr("class","subgraphs"),f=d.insert("g").attr("class","edgePaths"),y=d.insert("g").attr("class","edgeLabels"),E=d.insert("g").attr("class","nodes");a.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async e=>{if(e.isGroup){let t={...e};c[e.id]=t,u[e.id]=t,await i(p,e)}else{let i={...e};u[e.id]=i;let r=await s(E,e,{config:t.config,dir:t.direction||"TB"}),n=r.node().getBBox();i.width=n.width,i.height=n.height,i.domId=r,a.debug(`Node ${e.id} dimensions: ${n.width}x${n.height}`)}})),a.debug("Running cose-bilkent layout algorithm");let v={...t,nodes:t.nodes.map(t=>{let e=u[t.id];return{...t,width:e.width,height:e.height}})},A=await g(v,t.config);a.debug("Positioning nodes based on layout results"),A.nodes.forEach(t=>{let e=u[t.id];e?.domId&&(e.domId.attr("transform",`translate(${t.x}, ${t.y})`),e.x=t.x,e.y=t.y,a.debug(`Positioned node ${e.id} at center (${t.x}, ${t.y})`))}),A.edges.forEach(e=>{let i=t.edges.find(t=>t.id===e.id);i&&(i.points=[{x:e.startX,y:e.startY},{x:e.midX,y:e.midY},{x:e.endX,y:e.endY}])}),a.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async e=>{await n(y,e);let i=u[e.start??""],o=u[e.end??""];if(i&&o){let n=A.edges.find(t=>t.id===e.id);if(n){a.debug("APA01 positionedEdge",n);let s={...e},l=r(f,s,c,t.type,i,o,t.diagramId);h(s,l)}else{let n={...e,points:[{x:i.x||0,y:i.y||0},{x:o.x||0,y:o.y||0}]},s=r(f,n,c,t.type,i,o,t.diagramId);h(n,s)}}})),a.debug("Cose-bilkent rendering completed")},"render");t.s(["render",0,c])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,484135,e=>{"use strict";var i=e.i(127129);e.i(539927),e.s([],712376),e.i(712376),e.s(["createTreeViewServices",()=>i.createTreeViewServices],484135)}]);
|