@kabmo-labs/kabmo 0.47.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +535 -521
  3. package/dist/client/static/js/Body-9h5hd351.js +3 -0
  4. package/dist/client/static/js/{CsvGrid-vfgttmym.js → CsvGrid-s05k1q18.js} +2 -2
  5. package/dist/client/static/js/{DocxView-dc41t6rp.js → DocxView-x6sjw5ht.js} +22 -22
  6. package/dist/client/static/js/{DrawioView-wpwr38d9.js → DrawioView-jashn8sf.js} +2 -2
  7. package/dist/client/static/js/{HtmlPreview-23n7t5cs.js → HtmlPreview-eygzgtyc.js} +1 -1
  8. package/dist/client/static/js/ImageView-g50pk5pt.js +1 -0
  9. package/dist/client/static/js/LayoutWrapper-tag0qpts.js +2 -0
  10. package/dist/client/static/js/MergeDiffView-c4mb8m1w.js +1 -0
  11. package/dist/client/static/js/Modal-pf9p6m1k.js +59 -0
  12. package/dist/client/static/js/PdfView-syhjmyqf.js +1 -0
  13. package/dist/client/static/js/SessionsView-2r1grxxs.js +1 -0
  14. package/dist/client/static/js/{SheetView-n6mst0hq.js → SheetView-26r0e506.js} +45 -45
  15. package/dist/client/static/js/{SvgPreview-g2aqq812.js → SvgPreview-2fk85jzz.js} +1 -1
  16. package/dist/client/static/js/{abnfDiagram-O67JEVCF-3vac8sq4.js → abnfDiagram-O67JEVCF-fdka7pxr.js} +1 -1
  17. package/dist/client/static/js/architecture-7GRP2DOG-ee9wjsht.js +1 -0
  18. package/dist/client/static/js/architectureDiagram-NJMV4G6O-278nx8rt.js +36 -0
  19. package/dist/client/static/js/{astro-63zcysj7.js → astro-rn2bvwpm.js} +1 -1
  20. package/dist/client/static/js/bash-36shcpcw.js +1 -0
  21. package/dist/client/static/js/{blockDiagram-BEXU5L5S-62z6kaar.js → blockDiagram-BEXU5L5S-vpcmd3vx.js} +9 -9
  22. package/dist/client/static/js/c-kxeqssf9.js +1 -0
  23. package/dist/client/static/js/{c4Diagram-YGBWAQC7-rts5zgx4.js → c4Diagram-YGBWAQC7-1rgpdnbq.js} +4 -4
  24. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-tnpww186.js → classDiagram-v2-NBCMYWYE-fbsejvb9.js} +9 -9
  25. package/dist/client/static/js/{cose-bilkent-JH36ORCC-8vsjbzwa.js → cose-bilkent-JH36ORCC-ydq7mvy0.js} +1 -1
  26. package/dist/client/static/js/cpp-wtk1s3d7.js +1 -0
  27. package/dist/client/static/js/css-0a0r6rp3.js +1 -0
  28. package/dist/client/static/js/css-xhnrhg4e.js +1 -0
  29. package/dist/client/static/js/cynefin-OW5HDTMX-gs16zjqa.js +1 -0
  30. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-005gc8km.js → cynefinDiagram-VND7K2PF-7ta5vbrw.js} +1 -1
  31. package/dist/client/static/js/dagre-6A5THRUB-b8gtt32x.js +4 -0
  32. package/dist/client/static/js/{diagram-22UHCM2B-prsm18a1.js → diagram-22UHCM2B-7emepy7h.js} +28 -28
  33. package/dist/client/static/js/{diagram-3UASUU5V-5nx9wf04.js → diagram-3UASUU5V-06nptkzc.js} +2 -2
  34. package/dist/client/static/js/{diagram-ATOU4E4O-k3d4z3aq.js → diagram-ATOU4E4O-t113exk3.js} +3 -3
  35. package/dist/client/static/js/{diagram-CDSNMT55-x2c5x5j2.js → diagram-CDSNMT55-pyj3x97y.js} +4 -4
  36. package/dist/client/static/js/{diagram-MLGK6HIB-nvr76jqh.js → diagram-MLGK6HIB-183sgpjh.js} +2 -2
  37. package/dist/client/static/js/{diagram-MPIPVDR6-v1jpzp9p.js → diagram-MPIPVDR6-fmbj4hcx.js} +2 -2
  38. package/dist/client/static/js/{dockerfile-vz6va73h.js → dockerfile-qay672za.js} +1 -1
  39. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-0v4tqr9v.js → ebnfDiagram-ZINNZB2B-eafvfws2.js} +1 -1
  40. package/dist/client/static/js/{elixir-80wq7gak.js → elixir-t8bep87c.js} +1 -1
  41. package/dist/client/static/js/{elk-276RUBZZ-qfn4r7xj.js → elk-276RUBZZ-573f1vfs.js} +1 -1
  42. package/dist/client/static/js/{erDiagram-OPXOYQCR-cd667n9f.js → erDiagram-OPXOYQCR-4z1r88ej.js} +14 -14
  43. package/dist/client/static/js/{erlang-vk66vt7q.js → erlang-261km7r1.js} +1 -1
  44. package/dist/client/static/js/eventmodeling-NTZA5JFV-ftz7zrz5.js +1 -0
  45. package/dist/client/static/js/flowDiagram-KWPJA3E3-ax0qfmp3.js +1 -0
  46. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-ps0h3drm.js → ganttDiagram-FUAMR5RP-49jd7msz.js} +5 -5
  47. package/dist/client/static/js/gitGraph-4MIJSDKK-3rtkds4s.js +1 -0
  48. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-fts23jer.js → gitGraphDiagram-X574FWY7-5p9mgq7n.js} +26 -26
  49. package/dist/client/static/js/graphql-w9ajhndp.js +1 -0
  50. package/dist/client/static/js/html-krfbq5wp.js +1 -0
  51. package/dist/client/static/js/index-05n22cg9.js +4 -0
  52. package/dist/client/static/js/{index-fxd8dfj4.js → index-0857zpr0.js} +2 -2
  53. package/dist/client/static/js/{index-9ab6xaxd.js → index-0w4jqzqk.js} +2 -2
  54. package/dist/client/static/js/index-14dgbjsm.js +2 -0
  55. package/dist/client/static/js/{index-q4ke39rh.js → index-1p880x6e.js} +2 -2
  56. package/dist/client/static/js/{index-e5j5gc4h.js → index-1yq96wpa.js} +2 -2
  57. package/dist/client/static/js/{index-x0xspam4.js → index-2bf0txsp.js} +2 -2
  58. package/dist/client/static/js/index-2jgx68m0.js +1 -0
  59. package/dist/client/static/js/{index-evmcc5qh.js → index-2yzt8h3d.js} +2 -2
  60. package/dist/client/static/js/{index-ccgzzydx.js → index-333rq9yy.js} +1 -1
  61. package/dist/client/static/js/{index-9xsf8162.js → index-38g2eevc.js} +80 -80
  62. package/dist/client/static/js/{index-dxkefysk.js → index-3v8k8ms3.js} +1 -1
  63. package/dist/client/static/js/index-473hk8nb.js +10 -0
  64. package/dist/client/static/js/{index-5f4b44ay.js → index-4ccs971z.js} +2 -2
  65. package/dist/client/static/js/{index-fjex1y0t.js → index-4dnc1kys.js} +2 -2
  66. package/dist/client/static/js/{index-4jzsr1ky.js → index-4z5ram7g.js} +2 -2
  67. package/dist/client/static/js/{index-dzeyd153.js → index-5dn4159w.js} +2 -2
  68. package/dist/client/static/js/{index-54mkp2r2.js → index-5p8dwr4y.js} +1 -1
  69. package/dist/client/static/js/{index-1c2jvnyh.js → index-5ztdqm1w.js} +2 -2
  70. package/dist/client/static/js/{index-cra9mgkq.js → index-7dqq7cjp.js} +13 -13
  71. package/dist/client/static/js/{index-64p1dncg.js → index-7ff9scbm.js} +2 -2
  72. package/dist/client/static/js/{index-z0fkfphe.js → index-7rmps91t.js} +2 -2
  73. package/dist/client/static/js/{index-0dkc6z8e.js → index-80fjn77c.js} +2 -2
  74. package/dist/client/static/js/{index-cvyqp8nz.css → index-9wc36am3.css} +1 -1
  75. package/dist/client/static/js/{index-y6ke70e6.js → index-a4636gt1.js} +2 -2
  76. package/dist/client/static/js/{index-c63qyysm.js → index-bmaktvm2.js} +1 -1
  77. package/dist/client/static/js/index-bvpzzhn2.js +4 -0
  78. package/dist/client/static/js/{index-56rtb871.js → index-c3whkrwa.js} +58 -58
  79. package/dist/client/static/js/{index-7zeah164.js → index-dh060b7r.js} +2 -2
  80. package/dist/client/static/js/{index-hkz2mz34.js → index-dmc82cxb.js} +2 -2
  81. package/dist/client/static/js/index-e19dbqd3.js +2 -0
  82. package/dist/client/static/js/{index-g4kkapka.js → index-e8mt8rag.js} +2 -2
  83. package/dist/client/static/js/index-epzvftkq.js +1 -0
  84. package/dist/client/static/js/{index-an2wv33f.js → index-fbg5vhhw.js} +2 -2
  85. package/dist/client/static/js/{index-nkahe229.js → index-gaqjrzdb.js} +2 -2
  86. package/dist/client/static/js/index-gg910gpv.js +2 -0
  87. package/dist/client/static/js/{index-n1yr4khe.js → index-gr8sqjpz.js} +1 -1
  88. package/dist/client/static/js/{index-7zedprz3.js → index-gz7kvpnm.js} +1 -1
  89. package/dist/client/static/js/{index-70g527sb.js → index-h8hjcdj1.js} +2 -2
  90. package/dist/client/static/js/{index-4wnzs76g.js → index-j37m7pn9.js} +2 -2
  91. package/dist/client/static/js/{index-39d8zbkx.js → index-mbtenbyc.js} +6 -6
  92. package/dist/client/static/js/{index-tqgj7rd9.js → index-nbm5r9g1.js} +2 -2
  93. package/dist/client/static/js/{index-52nd4hgm.js → index-nzvte8s5.js} +2 -2
  94. package/dist/client/static/js/index-pv4z2mp2.js +463 -0
  95. package/dist/client/static/js/{index-c5hjht5e.js → index-pygy21w5.js} +2 -2
  96. package/dist/client/static/js/{index-sa1675y0.js → index-qs4n116g.js} +2 -2
  97. package/dist/client/static/js/{index-6d6hxwb5.js → index-qwxawph7.js} +2 -2
  98. package/dist/client/static/js/index-rz0tz4hg.js +1 -0
  99. package/dist/client/static/js/{index-gzkzwgzv.js → index-s5vegk6q.js} +2 -2
  100. package/dist/client/static/js/{index-xk1cqjkn.js → index-t522tpxt.js} +3 -3
  101. package/dist/client/static/js/{index-a4h5np9r.js → index-taev57jw.js} +2 -2
  102. package/dist/client/static/js/{index-dyc886cc.js → index-tb35a328.js} +2 -2
  103. package/dist/client/static/js/{index-396r53n0.js → index-tc6k8qt7.js} +2 -2
  104. package/dist/client/static/js/{index-62jgcgfd.js → index-tcfpzqb9.js} +36 -36
  105. package/dist/client/static/js/{index-z4530r3c.js → index-wbsvg1d9.js} +2 -2
  106. package/dist/client/static/js/index-xw1bptp5.js +2 -0
  107. package/dist/client/static/js/{index-33qxg79j.js → index-yg083mk0.js} +6 -6
  108. package/dist/client/static/js/{index-f2ahkev0.js → index-ykc14gez.js} +5 -5
  109. package/dist/client/static/js/index-yr3exz70.js +2 -0
  110. package/dist/client/static/js/{index-1whzs9kb.js → index-yyjw1ty9.js} +2 -2
  111. package/dist/client/static/js/index-z6y8j93w.js +9 -0
  112. package/dist/client/static/js/index-zdw8bd5t.js +2 -0
  113. package/dist/client/static/js/index-zp40g8ah.js +12 -0
  114. package/dist/client/static/js/{index-zhjjpvcc.js → index-zyefab6q.js} +1 -1
  115. package/dist/client/static/js/info-A6RAGUB7-vr5mxm6f.js +1 -0
  116. package/dist/client/static/js/{infoDiagram-VRGFBTTK-88qbtpq5.js → infoDiagram-VRGFBTTK-xsar9j6v.js} +2 -2
  117. package/dist/client/static/js/ini-zx7x1jj1.js +1 -0
  118. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-s8bagk00.js → ishikawaDiagram-OU5B5YK6-g2rvt9jp.js} +6 -6
  119. package/dist/client/static/js/java-bbw6kdcr.js +1 -0
  120. package/dist/client/static/js/javascript-p2a8rbpw.js +1 -0
  121. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-hz8z0b9x.js → journeyDiagram-ZHPQQLJL-q95v18zc.js} +5 -5
  122. package/dist/client/static/js/json-zh7m2fyg.js +1 -0
  123. package/dist/client/static/js/jsx-3zyyt0eh.js +1 -0
  124. package/dist/client/static/js/{julia-dm0j9apa.js → julia-pe5vpc2m.js} +1 -1
  125. package/dist/client/static/js/{kanban-definition-PNTS6WVX-sjjnjb51.js → kanban-definition-PNTS6WVX-2e7m7ds3.js} +11 -11
  126. package/dist/client/static/js/lua-d656k76a.js +1 -0
  127. package/dist/client/static/js/markdown-b5w681mm.js +1 -0
  128. package/dist/client/static/js/{mermaid.core-zvwygxbh.js → mermaid.core-dzajkp0g.js} +8 -8
  129. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-kgj8enan.js → mindmap-definition-NLK3R4M7-banecvf8.js} +4 -4
  130. package/dist/client/static/js/one-dark-pro-z965dedc.js +1 -0
  131. package/dist/client/static/js/one-light-capdx801.js +1 -0
  132. package/dist/client/static/js/packet-AYTQ26CC-ncb5xxtn.js +1 -0
  133. package/dist/client/static/js/{pegDiagram-GJSIUBJH-gxzw1qwa.js → pegDiagram-GJSIUBJH-6erykm1c.js} +1 -1
  134. package/dist/client/static/js/{perl-4jcm2jxv.js → perl-cc2eqye8.js} +1 -1
  135. package/dist/client/static/js/{php-q32mec74.js → php-p9bvnpsv.js} +1 -1
  136. package/dist/client/static/js/pie-WAS4IAKB-ff8fpvc4.js +1 -0
  137. package/dist/client/static/js/{pieDiagram-5QR66LMP-pdqwyqcm.js → pieDiagram-5QR66LMP-jn1d905q.js} +3 -3
  138. package/dist/client/static/js/properties-3c6rmnqp.js +1 -0
  139. package/dist/client/static/js/python-a3x3zpv1.js +1 -0
  140. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-yx2t364p.js → quadrantDiagram-O4NWA36T-sz4afnp1.js} +6 -6
  141. package/dist/client/static/js/r-7h3gwype.js +1 -0
  142. package/dist/client/static/js/radar-RG4KPBEZ-gbj4b1hf.js +1 -0
  143. package/dist/client/static/js/railroad-74A4TZTK-ndv5tqgr.js +1 -0
  144. package/dist/client/static/js/railroad-abnf-HS5TGJTU-yjzj09s1.js +1 -0
  145. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-e6pw7e5z.js +1 -0
  146. package/dist/client/static/js/railroad-peg-WCYAUIDC-9734dxy4.js +1 -0
  147. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-800fdzkr.js → railroadDiagram-XR7U4H2S-ewzhhth2.js} +1 -1
  148. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-vc5rpgtm.js → requirementDiagram-PLB6GJNP-fcs3xd42.js} +8 -8
  149. package/dist/client/static/js/{ruby-npmpb290.js → ruby-65s2ca5d.js} +1 -1
  150. package/dist/client/static/js/{rust-waks43wh.js → rust-ec1j2hwy.js} +1 -1
  151. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-ccjk8zgn.js → sankeyDiagram-IPEJSGJF-2r829rjf.js} +4 -4
  152. package/dist/client/static/js/{sass-502a4r7y.js → sass-p6cssgq8.js} +1 -1
  153. package/dist/client/static/js/{scss-kvev49ga.js → scss-qfx8wt3b.js} +1 -1
  154. package/dist/client/static/js/sequenceDiagram-PO4LG4MO-3mnte9tv.js +169 -0
  155. package/dist/client/static/js/{sizeCapture-INFHLROL-fma9p1vy.js → sizeCapture-INFHLROL-r6hf9265.js} +1 -1
  156. package/dist/client/static/js/sql-7a5vavm0.js +1 -0
  157. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-d8f24b7j.js → stateDiagram-v2-GCMORJYK-hm2f0wdb.js} +6 -6
  158. package/dist/client/static/js/{svelte-c15d0421.js → svelte-jz3a190v.js} +1 -1
  159. package/dist/client/static/js/{swimlanes-2SLR337P-sdt7qy36.js → swimlanes-2SLR337P-s58xzqhw.js} +1 -1
  160. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-z4pt2kn1.js +8 -0
  161. package/dist/client/static/js/{timeline-definition-EJHVYXUP-rv8qyr8b.js → timeline-definition-EJHVYXUP-ezm1c4pz.js} +8 -8
  162. package/dist/client/static/js/treeView-Q6P3EWNA-rs10d4p5.js +1 -0
  163. package/dist/client/static/js/treemap-WGGIJYW6-ey6c5x9f.js +1 -0
  164. package/dist/client/static/js/tsx-4a9b8tqf.js +1 -0
  165. package/dist/client/static/js/typescript-kas107wb.js +1 -0
  166. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-w6ew1red.js → usecaseDiagram-POWQR4AR-ryvgs5ac.js} +48 -48
  167. package/dist/client/static/js/{vennDiagram-UO4OBE2U-p9axw7ch.js → vennDiagram-UO4OBE2U-rd5prsf1.js} +6 -6
  168. package/dist/client/static/js/{vue-xpemy62d.js → vue-rv4pea8r.js} +1 -1
  169. package/dist/client/static/js/wardley-WFR3VGLG-kd9swrdr.js +1 -0
  170. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-5ewc8s4p.js → wardleyDiagram-VNRHLVJA-1kt8q8a4.js} +4 -4
  171. package/dist/client/static/js/xml-3g4bdtpa.js +1 -0
  172. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-7n4gn7k6.js → xychartDiagram-PMCCYNJV-q39bbgq4.js} +4 -4
  173. package/dist/client/static/js/yaml-ktxjn917.js +1 -0
  174. package/package.json +1 -1
  175. package/src/client/components/common/MarkdownRenderer.tsx +29 -28
  176. package/src/client/components/common/header-controls/index.test.tsx +1 -0
  177. package/src/client/components/common/header-controls/phone-row.test.tsx +1 -0
  178. package/src/client/components/common/header-controls/plugin-entry.test.tsx +1 -0
  179. package/src/client/components/common/header-controls/shell-chrome.test.tsx +1 -0
  180. package/src/client/components/layout/ActivityBar.tsx +2 -1
  181. package/src/client/components/layout/LeftActivityBar.test.ts +1 -0
  182. package/src/client/components/settings/Modal.tsx +1 -1
  183. package/src/client/components/settings/Sidebar.tsx +2 -1
  184. package/src/client/components/settings/apply-side-effects.ts +8 -0
  185. package/src/client/components/settings/categories/DictationSettings.test.tsx +152 -0
  186. package/src/client/components/settings/categories/DictationSettings.tsx +76 -0
  187. package/src/client/components/settings/categories/VoiceSettings.tsx +77 -0
  188. package/src/client/components/settings/categories/dictation-settings/CaptureSection.tsx +153 -0
  189. package/src/client/components/settings/categories/dictation-settings/EngineSection.tsx +123 -0
  190. package/src/client/components/settings/categories/dictation-settings/ExternalSection.tsx +221 -0
  191. package/src/client/components/settings/categories/dictation-settings/LanguageSection.tsx +73 -0
  192. package/src/client/components/settings/categories/panel-plugins/InstallForm.tsx +24 -17
  193. package/src/client/components/settings/categories/panel-plugins/Registries.test.tsx +164 -0
  194. package/src/client/components/settings/categories/panel-plugins/Registries.tsx +180 -0
  195. package/src/client/components/settings/categories/panel-plugins/Section.tsx +15 -6
  196. package/src/client/components/settings/categories/usage-settings/LimitsSection.tsx +10 -3
  197. package/src/client/components/settings/categories/usage-settings/ProviderDetail.tsx +27 -4
  198. package/src/client/components/settings/categories/usage-settings/TokenHarborCard.tsx +160 -0
  199. package/src/client/components/settings/categories/usage-settings/TokenPortalCard.tsx +104 -0
  200. package/src/client/components/settings/categories/usage-settings/format.ts +35 -0
  201. package/src/client/components/settings/categories/usage-settings/limits-section.test.tsx +16 -0
  202. package/src/client/components/settings/categories/usage-settings/providers.ts +26 -4
  203. package/src/client/components/settings/categories/usage-settings/token-harbor-card.test.tsx +114 -0
  204. package/src/client/components/settings/categories/usage-settings/token-harbor-hint.test.ts +68 -0
  205. package/src/client/components/settings/categories/usage-settings/token-portal-card.test.tsx +81 -0
  206. package/src/client/components/settings/categories/usage-settings/usage-and-picker.test.ts +66 -0
  207. package/src/client/components/settings/categories/voice-settings/SpeechSettings.test.tsx +112 -0
  208. package/src/client/components/settings/categories/voice-settings/SpeechSettings.tsx +84 -0
  209. package/src/client/components/settings/categories/voice-settings/groups.test.ts +23 -0
  210. package/src/client/components/settings/categories/voice-settings/groups.ts +48 -0
  211. package/src/client/components/settings/categories/voice-settings/speech/AutoplaySection.tsx +49 -0
  212. package/src/client/components/settings/categories/voice-settings/speech/EndpointSection.tsx +161 -0
  213. package/src/client/components/settings/categories/voice-settings/speech/EngineSection.tsx +108 -0
  214. package/src/client/components/settings/categories/voice-settings/speech/TestSection.tsx +56 -0
  215. package/src/client/components/settings/categories/voice-settings/speech/VoiceSection.tsx +157 -0
  216. package/src/client/components/settings/categories/voice-settings/speech/styles.ts +15 -0
  217. package/src/client/components/settings/category-content.tsx +3 -0
  218. package/src/client/components/workspace/chat-timeline/AiMessageFooter.speech.test.tsx +140 -0
  219. package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +41 -97
  220. package/src/client/components/workspace/chat-timeline/AiMessageFooterSheet.tsx +143 -0
  221. package/src/client/components/workspace/chat-timeline/MessageItem.tsx +5 -1
  222. package/src/client/components/workspace/chat-timeline/MessageList.tsx +1 -0
  223. package/src/client/components/workspace/chat-timeline/RunFooter.tsx +1 -0
  224. package/src/client/components/workspace/chat-timeline/SpeechButton.tsx +110 -0
  225. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.test.ts +26 -10
  226. package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +13 -8
  227. package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +9 -2
  228. package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +6 -0
  229. package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +18 -7
  230. package/src/client/components/workspace/chat-timeline/chat-input/SessionModeDropdown.tsx +4 -2
  231. package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +4 -4
  232. package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +19 -11
  233. package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +8 -6
  234. package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +38 -30
  235. package/src/client/components/workspace/chat-timeline/chat-input/narrow.test.tsx +185 -0
  236. package/src/client/components/workspace/chat-timeline/chat-input/paste-attach.test.tsx +194 -0
  237. package/src/client/components/workspace/chat-timeline/index.tsx +4 -1
  238. package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +5 -11
  239. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.test.ts +10 -0
  240. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.tsx +2 -7
  241. package/src/client/components/workspace/chat-timeline/tool-renderers/panels/task-rows.ts +6 -1
  242. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.test.ts +38 -0
  243. package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +10 -2
  244. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.test.ts +13 -0
  245. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +41 -18
  246. package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input.ts +5 -5
  247. package/src/client/components/workspace/editor/BodyLazy.tsx +40 -0
  248. package/src/client/components/workspace/editor/index.tsx +2 -2
  249. package/src/client/data/settings/omp-schema.json +33 -10
  250. package/src/client/hooks/chat/composer/attachments.ts +18 -2
  251. package/src/client/hooks/chat/composer/capture.test.ts +282 -0
  252. package/src/client/hooks/chat/composer/capture.ts +166 -0
  253. package/src/client/hooks/chat/composer/dictation-settings.ts +53 -0
  254. package/src/client/hooks/chat/composer/narrow.test.ts +130 -0
  255. package/src/client/hooks/chat/composer/narrow.ts +82 -0
  256. package/src/client/hooks/chat/composer/paste-attachments.test.ts +215 -0
  257. package/src/client/hooks/chat/composer/paste-attachments.ts +173 -0
  258. package/src/client/hooks/chat/composer/pipeline.ts +16 -3
  259. package/src/client/hooks/chat/composer/speech-to-text.test.tsx +314 -0
  260. package/src/client/hooks/chat/composer/speech-to-text.ts +158 -134
  261. package/src/client/hooks/chat/composer/voice-input.ts +24 -9
  262. package/src/client/hooks/chat/timeline/scroll.test.ts +44 -3
  263. package/src/client/hooks/chat/timeline/scroll.ts +31 -14
  264. package/src/client/hooks/chat/timeline/send-helpers.ts +3 -0
  265. package/src/client/hooks/chat/timeline/send.ts +5 -1
  266. package/src/client/hooks/settings/dictation.ts +153 -0
  267. package/src/client/hooks/settings/speech.ts +170 -0
  268. package/src/client/hooks/tts/provider.tsx +50 -0
  269. package/src/client/hooks/tts/tts-context.ts +39 -0
  270. package/src/client/hooks/tts/use-speech-autoplay.test.tsx +122 -0
  271. package/src/client/hooks/tts/use-speech-autoplay.ts +106 -0
  272. package/src/client/hooks/tts/use-tts-player.ts +33 -0
  273. package/src/client/hooks/ui/markdown-hydration.test.tsx +83 -0
  274. package/src/client/hooks/ui/markdown-hydration.ts +31 -0
  275. package/src/client/hooks/ui/markdown-render.ts +119 -0
  276. package/src/client/hooks/workspace/journal-diff.ts +8 -1
  277. package/src/client/hooks/workspace/panel-actions.ts +184 -0
  278. package/src/client/hooks/workspace/panel-registry.ts +6 -139
  279. package/src/client/hooks/workspace/panel-visibility-menu.ts +2 -1
  280. package/src/client/lib/plugins/bootstrap.test.ts +1 -0
  281. package/src/client/lib/tts/player.test.ts +103 -0
  282. package/src/client/lib/tts/player.ts +213 -0
  283. package/src/client/tailwind.css +11 -0
  284. package/src/server/lib/changes/capture-bash.server.ts +6 -3
  285. package/src/server/lib/changes/capture-fs.server.ts +2 -2
  286. package/src/server/lib/changes/capture-races.test.ts +33 -1
  287. package/src/server/lib/changes/capture-scan.test.ts +1 -1
  288. package/src/server/lib/changes/capture-test-util.ts +1 -1
  289. package/src/server/lib/changes/capture-types.ts +1 -1
  290. package/src/server/lib/changes/capture.server.ts +1 -1
  291. package/src/server/lib/changes/journal-read.server.ts +21 -0
  292. package/src/server/lib/changes/reader.server.ts +92 -14
  293. package/src/server/lib/changes/reader.test.ts +99 -0
  294. package/src/server/lib/changes/records.ts +2 -0
  295. package/src/server/lib/dictation/capability.server.test.ts +113 -0
  296. package/src/server/lib/dictation/capability.server.ts +57 -0
  297. package/src/server/lib/dictation/engines/adapter.ts +147 -0
  298. package/src/server/lib/dictation/engines/adapters.test.ts +215 -0
  299. package/src/server/lib/dictation/engines/deepgram.ts +77 -0
  300. package/src/server/lib/dictation/engines/elevenlabs.ts +44 -0
  301. package/src/server/lib/dictation/engines/index.ts +55 -0
  302. package/src/server/lib/dictation/engines/openai.ts +51 -0
  303. package/src/server/lib/dictation/language.server.test.ts +21 -22
  304. package/src/server/lib/dictation/language.server.ts +16 -19
  305. package/src/server/lib/dictation/omp-stt-worker.test.ts +183 -0
  306. package/src/server/lib/dictation/omp-stt-worker.ts +130 -78
  307. package/src/server/lib/dictation/settings.server.ts +74 -0
  308. package/src/server/lib/dictation/speech-frames.test.ts +125 -0
  309. package/src/server/lib/dictation/speech-frames.ts +146 -0
  310. package/src/server/lib/dictation/worker-process.ts +122 -0
  311. package/src/server/lib/harness/acp/calls.ts +20 -0
  312. package/src/server/lib/harness/acp/client-capabilities.ts +8 -1
  313. package/src/server/lib/harness/acp/client-fs.ts +17 -5
  314. package/src/server/lib/harness/acp/client-initialize.test.ts +32 -1
  315. package/src/server/lib/harness/acp/client-initialize.ts +51 -6
  316. package/src/server/lib/harness/acp/client-requests.ts +49 -0
  317. package/src/server/lib/harness/acp/client.ts +33 -36
  318. package/src/server/lib/harness/acp/frames-rows.test.ts +144 -0
  319. package/src/server/lib/harness/acp/frames-tool-shapes.test.ts +238 -0
  320. package/src/server/lib/harness/acp/frames-v2.test.ts +21 -0
  321. package/src/server/lib/harness/acp/frames.test.ts +3 -15
  322. package/src/server/lib/harness/acp/frames.ts +43 -67
  323. package/src/server/lib/harness/acp/grants.ts +20 -5
  324. package/src/server/lib/harness/acp/mapper.test.ts +40 -1
  325. package/src/server/lib/harness/acp/mapper.ts +69 -9
  326. package/src/server/lib/harness/acp/message-rows.ts +219 -0
  327. package/src/server/lib/harness/acp/prompt.ts +20 -2
  328. package/src/server/lib/harness/acp/protocol.ts +24 -0
  329. package/src/server/lib/harness/acp/replay-window.test.ts +66 -0
  330. package/src/server/lib/harness/acp/replay.ts +33 -8
  331. package/src/server/lib/harness/acp/session-addressing.test.ts +99 -0
  332. package/src/server/lib/harness/acp/session-approvals.ts +4 -0
  333. package/src/server/lib/harness/acp/session-cancel-policy.test.ts +86 -0
  334. package/src/server/lib/harness/acp/session-close.test.ts +89 -0
  335. package/src/server/lib/harness/acp/session-config.ts +8 -3
  336. package/src/server/lib/harness/acp/session-handshake.ts +6 -0
  337. package/src/server/lib/harness/acp/session-inbound.ts +126 -0
  338. package/src/server/lib/harness/acp/session-intake.ts +9 -2
  339. package/src/server/lib/harness/acp/session-lifecycle.ts +25 -0
  340. package/src/server/lib/harness/acp/session-notifications.ts +36 -0
  341. package/src/server/lib/harness/acp/session-permissions.ts +22 -1
  342. package/src/server/lib/harness/acp/session-requests.ts +19 -1
  343. package/src/server/lib/harness/acp/session-stop.ts +54 -0
  344. package/src/server/lib/harness/acp/session-wiring.ts +1 -0
  345. package/src/server/lib/harness/acp/session.test-util.ts +8 -3
  346. package/src/server/lib/harness/acp/session.ts +75 -75
  347. package/src/server/lib/harness/acp/stdio.ts +8 -1
  348. package/src/server/lib/harness/acp/subagent-frames.test.ts +82 -0
  349. package/src/server/lib/harness/acp/subagent-frames.ts +124 -0
  350. package/src/server/lib/harness/acp/subagents.test.ts +124 -0
  351. package/src/server/lib/harness/acp/subagents.ts +182 -0
  352. package/src/server/lib/harness/acp/tool-calls.ts +115 -45
  353. package/src/server/lib/harness/acp/tool-identity.test.ts +8 -0
  354. package/src/server/lib/harness/acp/tool-identity.ts +13 -1
  355. package/src/server/lib/harness/acp/tool-shape.ts +99 -0
  356. package/src/server/lib/harness/acp/turn.test.ts +1 -0
  357. package/src/server/lib/harness/acp/turn.ts +4 -1
  358. package/src/server/lib/harness/acp/v2.test.ts +21 -1
  359. package/src/server/lib/harness/acp/v2.ts +6 -1
  360. package/src/server/lib/lifecycle/paths.ts +22 -0
  361. package/src/server/lib/omp/session/changes-patch.test.ts +120 -0
  362. package/src/server/lib/omp/session/changes-patch.ts +190 -0
  363. package/src/server/lib/omp/session/changes.test.ts +55 -61
  364. package/src/server/lib/omp/session/changes.ts +79 -127
  365. package/src/server/lib/omp/session/merge-stored.ts +2 -0
  366. package/src/server/lib/panels/catalog-offers.server.ts +1 -1
  367. package/src/server/lib/panels/catalog.server.test.ts +71 -2
  368. package/src/server/lib/panels/catalog.server.ts +80 -0
  369. package/src/server/lib/panels/install.server.test.ts +15 -0
  370. package/src/server/lib/panels/install.server.ts +7 -0
  371. package/src/server/lib/panels/manifest.test.ts +1 -76
  372. package/src/server/lib/panels/manifest.ts +3 -60
  373. package/src/server/lib/panels/marketplace-catalog.server.test.ts +154 -0
  374. package/src/server/lib/panels/marketplace-catalog.server.ts +131 -0
  375. package/src/server/lib/panels/offers.server.test.ts +5 -5
  376. package/src/server/lib/panels/offers.server.ts +20 -2
  377. package/src/server/lib/panels/registries.server.test.ts +216 -0
  378. package/src/server/lib/panels/registries.server.ts +118 -0
  379. package/src/server/lib/panels/registry-cache.server.ts +104 -0
  380. package/src/server/lib/panels/registry-refresh.server.ts +195 -0
  381. package/src/server/lib/panels/registry.server.test.ts +2 -2
  382. package/src/server/lib/panels/registry.server.ts +19 -1
  383. package/src/server/lib/panels/seed.server.ts +4 -1
  384. package/src/server/lib/tts/engines/adapter.ts +133 -0
  385. package/src/server/lib/tts/engines/adapters.test.ts +129 -0
  386. package/src/server/lib/tts/engines/deepgram.ts +43 -0
  387. package/src/server/lib/tts/engines/elevenlabs.ts +53 -0
  388. package/src/server/lib/tts/engines/index.ts +75 -0
  389. package/src/server/lib/tts/engines/openai.ts +52 -0
  390. package/src/server/lib/tts/engines/xai.ts +44 -0
  391. package/src/server/lib/tts/local.server.ts +160 -0
  392. package/src/server/lib/tts/settings.server.ts +103 -0
  393. package/src/server/lib/usage/provider-key.ts +18 -0
  394. package/src/server/lib/usage/providers.server.ts +27 -3
  395. package/src/server/lib/usage/report.server.ts +24 -0
  396. package/src/server/lib/usage/token-harbor.test.ts +191 -0
  397. package/src/server/lib/usage/token-harbor.ts +207 -0
  398. package/src/server/lib/usage/token-portal.test.ts +140 -0
  399. package/src/server/lib/usage/token-portal.ts +179 -0
  400. package/src/server/lib/usage/vendor-http.test.ts +52 -0
  401. package/src/server/lib/usage/vendor-http.ts +9 -2
  402. package/src/server/routes/dictation/ws.ts +99 -27
  403. package/src/server/routes/index.ts +2 -0
  404. package/src/server/routes/panels/install-route.test.ts +110 -0
  405. package/src/server/routes/panels/install.ts +82 -3
  406. package/src/server/routes/sessions/index.ts +5 -0
  407. package/src/server/routes/sessions/local-image.test.ts +94 -0
  408. package/src/server/routes/sessions/local-image.ts +141 -0
  409. package/src/server/routes/settings/dictation.test.ts +139 -0
  410. package/src/server/routes/settings/dictation.ts +86 -0
  411. package/src/server/routes/settings/index.ts +4 -0
  412. package/src/server/routes/settings/speech.test.ts +156 -0
  413. package/src/server/routes/settings/speech.ts +98 -0
  414. package/src/server/routes/tts/index.ts +11 -0
  415. package/src/server/routes/tts/speak.test.ts +160 -0
  416. package/src/server/routes/tts/speak.ts +87 -0
  417. package/src/shared/lib/chat/attachments.ts +17 -3
  418. package/src/shared/lib/chat/composer/attachment-labels.test.ts +154 -0
  419. package/src/shared/lib/chat/composer/attachment-labels.ts +166 -0
  420. package/src/shared/lib/chat/omp/subagent-card-fold.test.ts +75 -0
  421. package/src/shared/lib/chat/timeline/changed-files.test.ts +13 -0
  422. package/src/shared/lib/chat/timeline/changed-files.ts +4 -2
  423. package/src/shared/lib/chat/timeline/local-image.test.ts +88 -0
  424. package/src/shared/lib/chat/timeline/local-image.ts +110 -0
  425. package/src/shared/lib/chat/timeline/omp-callbacks.ts +3 -2
  426. package/src/shared/lib/chat/timeline/run-signals.ts +2 -2
  427. package/src/shared/lib/chat/timeline/stream-callbacks.ts +8 -6
  428. package/src/shared/lib/chat/timeline/stream-coalescer.ts +7 -0
  429. package/src/shared/lib/chat/timeline/stream.test.ts +3 -1
  430. package/src/shared/lib/chat/timeline/tool-verbs.test.ts +5 -0
  431. package/src/shared/lib/chat/timeline/tool-verbs.ts +3 -1
  432. package/src/shared/lib/chat/todo/parser.test.ts +54 -0
  433. package/src/shared/lib/chat/todo/parser.ts +56 -0
  434. package/src/shared/lib/chat/tool/tool-aliases.test.ts +37 -0
  435. package/src/shared/lib/chat/tool/tool-aliases.ts +75 -0
  436. package/src/shared/lib/chat/tool/tool-input-path.test.ts +44 -0
  437. package/src/shared/lib/chat/tool/tool-input-path.ts +47 -0
  438. package/src/shared/lib/dictation/capability.ts +32 -0
  439. package/src/shared/lib/dictation/constraints.test.ts +41 -0
  440. package/src/shared/lib/dictation/constraints.ts +48 -0
  441. package/src/shared/lib/dictation/engines.test.ts +117 -0
  442. package/src/shared/lib/dictation/engines.ts +190 -0
  443. package/src/shared/lib/dictation/gate.test.ts +118 -0
  444. package/src/shared/lib/dictation/gate.ts +85 -0
  445. package/src/shared/lib/dictation/languages.test.ts +88 -0
  446. package/src/shared/lib/dictation/languages.ts +90 -0
  447. package/src/shared/lib/dictation/models.ts +9 -5
  448. package/src/shared/lib/dictation/protocol.ts +74 -34
  449. package/src/shared/lib/dictation/settings.test.ts +94 -0
  450. package/src/shared/lib/dictation/settings.ts +111 -0
  451. package/src/shared/lib/dictation/wav.test.ts +66 -0
  452. package/src/shared/lib/dictation/wav.ts +48 -0
  453. package/src/shared/lib/fs/journal-unavailable.test.ts +30 -0
  454. package/src/shared/lib/fs/journal-unavailable.ts +35 -0
  455. package/src/shared/lib/icons/tint-hues.generated.ts +35 -35
  456. package/src/shared/lib/net/base-url.test.ts +25 -0
  457. package/src/shared/lib/net/base-url.ts +29 -0
  458. package/src/shared/lib/omp/config/schema-extras.ts +9 -8
  459. package/src/shared/lib/omp/config/schema-releases.test.ts +22 -0
  460. package/src/shared/lib/omp/session/parse-message-blocks.ts +2 -2
  461. package/src/shared/lib/panels/plugin-repo.test.ts +113 -0
  462. package/src/shared/lib/panels/plugin-repo.ts +149 -0
  463. package/src/shared/lib/settings/defaults.ts +4 -0
  464. package/src/shared/lib/tts/capability.ts +16 -0
  465. package/src/shared/lib/tts/engines.test.ts +79 -0
  466. package/src/shared/lib/tts/engines.ts +313 -0
  467. package/src/shared/lib/tts/settings.test.ts +56 -0
  468. package/src/shared/lib/tts/settings.ts +108 -0
  469. package/src/shared/lib/tts/speakable.test.ts +76 -0
  470. package/src/shared/lib/tts/speakable.ts +179 -0
  471. package/src/shared/types/chat.ts +8 -1
  472. package/src/shared/types/panels-registry.ts +32 -0
  473. package/src/shared/types/panels.ts +23 -0
  474. package/src/shared/types/session-changes.ts +15 -1
  475. package/src/shared/types/settings/state.ts +25 -0
  476. package/src/shared/types/settings/usage.ts +89 -2
  477. package/src/test-support/pristine-globals.ts +5 -0
  478. package/dist/client/static/js/ImageView-mvjb3qh1.js +0 -1
  479. package/dist/client/static/js/LayoutWrapper-eenx0hp2.js +0 -2
  480. package/dist/client/static/js/Modal-dsqhas10.js +0 -59
  481. package/dist/client/static/js/PdfView-cpvsbfk0.js +0 -1
  482. package/dist/client/static/js/SessionsView-s0crtcm8.js +0 -1
  483. package/dist/client/static/js/architecture-7GRP2DOG-b5w9mnn5.js +0 -1
  484. package/dist/client/static/js/architectureDiagram-NJMV4G6O-1nh4htz2.js +0 -36
  485. package/dist/client/static/js/bash-hv3167gh.js +0 -1
  486. package/dist/client/static/js/c-acmn1zc9.js +0 -1
  487. package/dist/client/static/js/cpp-v2mqp8j7.js +0 -1
  488. package/dist/client/static/js/css-drfs4n12.js +0 -1
  489. package/dist/client/static/js/css-x7gyc3ta.js +0 -1
  490. package/dist/client/static/js/cynefin-OW5HDTMX-kdj8rjc1.js +0 -1
  491. package/dist/client/static/js/dagre-6A5THRUB-41zsteyd.js +0 -4
  492. package/dist/client/static/js/eventmodeling-NTZA5JFV-m57b7ytw.js +0 -1
  493. package/dist/client/static/js/flowDiagram-KWPJA3E3-fasj2gxy.js +0 -1
  494. package/dist/client/static/js/gitGraph-4MIJSDKK-wvzsc4ph.js +0 -1
  495. package/dist/client/static/js/graphql-a4gbqpj9.js +0 -1
  496. package/dist/client/static/js/html-m0megrvb.js +0 -1
  497. package/dist/client/static/js/index-1d8bxjsz.js +0 -4
  498. package/dist/client/static/js/index-3nsrnyqr.js +0 -2
  499. package/dist/client/static/js/index-4x9p7hf9.js +0 -2
  500. package/dist/client/static/js/index-6009v8jf.js +0 -1
  501. package/dist/client/static/js/index-9vqkyj58.js +0 -3
  502. package/dist/client/static/js/index-d2xtbabt.js +0 -2
  503. package/dist/client/static/js/index-dxp2yvy7.js +0 -2
  504. package/dist/client/static/js/index-p6s3fz6b.js +0 -12
  505. package/dist/client/static/js/index-qtd0e38d.js +0 -1
  506. package/dist/client/static/js/index-x2v1zmth.js +0 -479
  507. package/dist/client/static/js/index-x9hfvbz6.js +0 -2
  508. package/dist/client/static/js/info-A6RAGUB7-ym2xevn8.js +0 -1
  509. package/dist/client/static/js/ini-80p6sp79.js +0 -1
  510. package/dist/client/static/js/java-mm2b3s9b.js +0 -1
  511. package/dist/client/static/js/javascript-n9w9p97f.js +0 -1
  512. package/dist/client/static/js/json-fzy76fkw.js +0 -1
  513. package/dist/client/static/js/jsx-c7v2f8s7.js +0 -1
  514. package/dist/client/static/js/lua-ppfdxrmv.js +0 -1
  515. package/dist/client/static/js/markdown-xed7y3ds.js +0 -1
  516. package/dist/client/static/js/one-dark-pro-mq6sn6a2.js +0 -1
  517. package/dist/client/static/js/one-light-pt6t6vax.js +0 -1
  518. package/dist/client/static/js/packet-AYTQ26CC-01vcsy6x.js +0 -1
  519. package/dist/client/static/js/pie-WAS4IAKB-053gzkmh.js +0 -1
  520. package/dist/client/static/js/properties-8ysbq2n2.js +0 -1
  521. package/dist/client/static/js/python-4ysexc8s.js +0 -1
  522. package/dist/client/static/js/r-hrsw5arc.js +0 -1
  523. package/dist/client/static/js/radar-RG4KPBEZ-bkpby8am.js +0 -1
  524. package/dist/client/static/js/railroad-74A4TZTK-67bxrjgw.js +0 -1
  525. package/dist/client/static/js/railroad-abnf-HS5TGJTU-xj9ymacg.js +0 -1
  526. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-2xxpbnf6.js +0 -1
  527. package/dist/client/static/js/railroad-peg-WCYAUIDC-78w88znz.js +0 -1
  528. package/dist/client/static/js/sequenceDiagram-PO4LG4MO-c0tk7gfn.js +0 -169
  529. package/dist/client/static/js/sql-hd42h8wx.js +0 -1
  530. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-rz309qrx.js +0 -8
  531. package/dist/client/static/js/treeView-Q6P3EWNA-g2bkjr4z.js +0 -1
  532. package/dist/client/static/js/treemap-WGGIJYW6-pj7yw9rw.js +0 -1
  533. package/dist/client/static/js/tsx-xjp2ds8g.js +0 -1
  534. package/dist/client/static/js/typescript-yg97da8h.js +0 -1
  535. package/dist/client/static/js/wardley-WFR3VGLG-c7ekf8r2.js +0 -1
  536. package/dist/client/static/js/xml-nrb23phz.js +0 -1
  537. package/dist/client/static/js/yaml-sqs6pjpx.js +0 -1
@@ -1 +1 @@
1
- import{i,u,e,nm,a0,_d}from"./index-x2v1zmth.js";function g({content:s,name:o}){let r=i("");if(!r.current)r.current=_d();let v=u(()=>nm(a0(s,r.current)),[s]);return e("div",{className:"flex-1 overflow-auto bg-paper",children:e("div",{className:"flex min-h-full items-center justify-center p-6",children:e("div",{className:"svg-preview w-full max-w-full [&>svg]:mx-auto [&>svg]:block [&>svg]:h-auto [&>svg]:max-h-[80vh] [&>svg]:w-auto [&>svg]:max-w-full",role:"img","aria-label":o,dangerouslySetInnerHTML:{__html:v}})})})}export{g as SvgPreview};
1
+ import{i,u,e,Rm,z0,qd}from"./index-pv4z2mp2.js";function g({content:s,name:o}){let r=i("");if(!r.current)r.current=qd();let v=u(()=>Rm(z0(s,r.current)),[s]);return e("div",{className:"flex-1 overflow-auto bg-paper",children:e("div",{className:"flex min-h-full items-center justify-center p-6",children:e("div",{className:"svg-preview w-full max-w-full [&>svg]:mx-auto [&>svg]:block [&>svg]:h-auto [&>svg]:max-h-[80vh] [&>svg]:w-auto [&>svg]:max-w-full",role:"img","aria-label":o,dangerouslySetInnerHTML:{__html:v}})})})}export{g as SvgPreview};
@@ -1 +1 @@
1
- import{t,l}from"./index-9xsf8162.js";import{Pe,La,Ma}from"./index-cra9mgkq.js";import{ye}from"./index-x9hfvbz6.js";import{Ll,sa}from"./index-56rtb871.js";var m=Ll().RailroadAbnf.parser.LangiumParser,o=t((e)=>{let r=e.alternatives.map(p);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformAlternation"),p=t((e)=>{let r=e.elements.map(f);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformConcatenation"),u=t((e)=>{if(e.includes("*")){let[n,a]=e.split("*"),s=n?parseInt(n,10):0,i=a?parseInt(a,10):1/0;return{min:s,max:i}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),f=t((e)=>{let r=c(e.primary);if(!e.repeat)return r;let{min:n,max:a}=u(e.repeat);if(n===0&&a===1)return{type:"optional",element:r};return{type:"repetition",element:r,min:n,max:a}},"transformElement"),c=t((e)=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return o(e.element);case"AbnfOptionalGroup":return{type:"optional",element:o(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),d=t((e)=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t((e)=>{if(ye(e,Pe),e.title)Pe.setTitle(e.title);e.rules.map((r)=>Pe.addRule(d(r)))},"populateDb"),g={parse:t((e)=>{Pe.clear(),l.debug("[ABNF Parser] Starting Langium parse");let r=m.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new sa(r);let n=r.value;l.debug("[ABNF Parser] Parsed rules:",n.rules.length),v(n),l.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:Pe}},E={parser:g,db:Pe,renderer:Ma,styles:La};export{E as diagram};
1
+ import{t,l}from"./index-38g2eevc.js";import{Ue,qa,Ha}from"./index-7dqq7cjp.js";import{ke}from"./index-14dgbjsm.js";import{Vl,ma}from"./index-c3whkrwa.js";var m=Vl().RailroadAbnf.parser.LangiumParser,o=t((e)=>{let r=e.alternatives.map(p);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformAlternation"),p=t((e)=>{let r=e.elements.map(f);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformConcatenation"),u=t((e)=>{if(e.includes("*")){let[n,a]=e.split("*"),s=n?parseInt(n,10):0,i=a?parseInt(a,10):1/0;return{min:s,max:i}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),f=t((e)=>{let r=c(e.primary);if(!e.repeat)return r;let{min:n,max:a}=u(e.repeat);if(n===0&&a===1)return{type:"optional",element:r};return{type:"repetition",element:r,min:n,max:a}},"transformElement"),c=t((e)=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return o(e.element);case"AbnfOptionalGroup":return{type:"optional",element:o(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),d=t((e)=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=t((e)=>{if(ke(e,Ue),e.title)Ue.setTitle(e.title);e.rules.map((r)=>Ue.addRule(d(r)))},"populateDb"),g={parse:t((e)=>{Ue.clear(),l.debug("[ABNF Parser] Starting Langium parse");let r=m.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new ma(r);let n=r.value;l.debug("[ABNF Parser] Parsed rules:",n.rules.length),v(n),l.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:Ue}},E={parser:g,db:Ue,renderer:Ha,styles:qa};export{E as diagram};
@@ -0,0 +1 @@
1
+ import{kg}from"./index-c3whkrwa.js";export{kg as createArchitectureServices};
@@ -0,0 +1,36 @@
1
+ import{ke}from"./index-14dgbjsm.js";import{t,l,Y,C,ee,Jr,M,O,G,z,j,H,q,m,h,ge,Ng,Ji,mr,ie,Rn,fn}from"./index-38g2eevc.js";import{Pe}from"./index-c3whkrwa.js";import{Vr}from"./index-yg083mk0.js";import{yn,Mn}from"./index-2yzt8h3d.js";var Ie=Mn(function(me,xe){(function(S,D){if(typeof me==="object"&&typeof xe==="object")xe.exports=D();else if(typeof define==="function"&&define.amd)define([],D);else if(typeof me==="object")me.layoutBase=D();else S.layoutBase=D()})(me,function(){return function(w){var S={};function D(v){if(S[v])return S[v].exports;var f=S[v]={i:v,l:!1,exports:{}};return w[v].call(f.exports,f,f.exports,D),f.l=!0,f.exports}return D.m=w,D.c=S,D.i=function(v){return v},D.d=function(v,f,o){if(!D.o(v,f))Object.defineProperty(v,f,{configurable:!1,enumerable:!0,get:o})},D.n=function(v){var f=v&&v.__esModule?function(){return v.default}:function(){return v};return D.d(f,"a",f),f},D.o=function(v,f){return Object.prototype.hasOwnProperty.call(v,f)},D.p="",D(D.s=28)}([function(w,S,D){function v(){}v.QUALITY=1,v.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,v.DEFAULT_INCREMENTAL=!1,v.DEFAULT_ANIMATION_ON_LAYOUT=!0,v.DEFAULT_ANIMATION_DURING_LAYOUT=!1,v.DEFAULT_ANIMATION_PERIOD=50,v.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,v.DEFAULT_GRAPH_MARGIN=15,v.NODE_DIMENSIONS_INCLUDE_LABELS=!1,v.SIMPLE_NODE_SIZE=40,v.SIMPLE_NODE_HALF_SIZE=v.SIMPLE_NODE_SIZE/2,v.EMPTY_COMPOUND_NODE_SIZE=40,v.MIN_EDGE_LENGTH=1,v.WORLD_BOUNDARY=1e6,v.INITIAL_WORLD_BOUNDARY=v.WORLD_BOUNDARY/1000,v.WORLD_CENTER_X=1200,v.WORLD_CENTER_Y=900,w.exports=v},function(w,S,D){var v=D(2),f=D(8),o=D(9);function n(u,r,p){v.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=u,this.target=r}n.prototype=Object.create(v.prototype);for(var a in v)n[a]=v[a];n.prototype.getSource=function(){return this.source},n.prototype.getTarget=function(){return this.target},n.prototype.isInterGraph=function(){return this.isInterGraph},n.prototype.getLength=function(){return this.length},n.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},n.prototype.getBendpoints=function(){return this.bendpoints},n.prototype.getLca=function(){return this.lca},n.prototype.getSourceInLca=function(){return this.sourceInLca},n.prototype.getTargetInLca=function(){return this.targetInLca},n.prototype.getOtherEnd=function(u){if(this.source===u)return this.target;else if(this.target===u)return this.source;else throw"Node is not incident with this edge"},n.prototype.getOtherEndInGraph=function(u,r){var p=this.getOtherEnd(u),i=r.getGraphManager().getRoot();while(!0){if(p.getOwner()==r)return p;if(p.getOwner()==i)break;p=p.getOwner().getParent()}return null},n.prototype.updateLength=function(){var u=[,,,,];if(this.isOverlapingSourceAndTarget=f.getIntersection(this.target.getRect(),this.source.getRect(),u),!this.isOverlapingSourceAndTarget){if(this.lengthX=u[0]-u[2],this.lengthY=u[1]-u[3],Math.abs(this.lengthX)<1)this.lengthX=o.sign(this.lengthX);if(Math.abs(this.lengthY)<1)this.lengthY=o.sign(this.lengthY);this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)}},n.prototype.updateLengthSimple=function(){if(this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1)this.lengthX=o.sign(this.lengthX);if(Math.abs(this.lengthY)<1)this.lengthY=o.sign(this.lengthY);this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},w.exports=n},function(w,S,D){function v(f){this.vGraphObject=f}w.exports=v},function(w,S,D){var v=D(2),f=D(10),o=D(13),n=D(0),a=D(16),u=D(5);function r(i,e,g,d){if(g==null&&d==null)d=e;if(v.call(this,d),i.graphManager!=null)i=i.graphManager;if(this.estimatedSize=f.MIN_VALUE,this.inclusionTreeDepth=f.MAX_VALUE,this.vGraphObject=d,this.edges=[],this.graphManager=i,g!=null&&e!=null)this.rect=new o(e.x,e.y,g.width,g.height);else this.rect=new o}r.prototype=Object.create(v.prototype);for(var p in v)r[p]=v[p];r.prototype.getEdges=function(){return this.edges},r.prototype.getChild=function(){return this.child},r.prototype.getOwner=function(){return this.owner},r.prototype.getWidth=function(){return this.rect.width},r.prototype.setWidth=function(i){this.rect.width=i},r.prototype.getHeight=function(){return this.rect.height},r.prototype.setHeight=function(i){this.rect.height=i},r.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},r.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},r.prototype.getCenter=function(){return new u(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},r.prototype.getLocation=function(){return new u(this.rect.x,this.rect.y)},r.prototype.getRect=function(){return this.rect},r.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},r.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},r.prototype.setRect=function(i,e){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=e.width,this.rect.height=e.height},r.prototype.setCenter=function(i,e){this.rect.x=i-this.rect.width/2,this.rect.y=e-this.rect.height/2},r.prototype.setLocation=function(i,e){this.rect.x=i,this.rect.y=e},r.prototype.moveBy=function(i,e){this.rect.x+=i,this.rect.y+=e},r.prototype.getEdgeListToNode=function(i){var e=[],g,d=this;return d.edges.forEach(function(c){if(c.target==i){if(c.source!=d)throw"Incorrect edge source!";e.push(c)}}),e},r.prototype.getEdgesBetween=function(i){var e=[],g,d=this;return d.edges.forEach(function(c){if(!(c.source==d||c.target==d))throw"Incorrect edge source and/or target";if(c.target==i||c.source==i)e.push(c)}),e},r.prototype.getNeighborsList=function(){var i=new Set,e=this;return e.edges.forEach(function(g){if(g.source==e)i.add(g.target);else{if(g.target!=e)throw"Incorrect incidency!";i.add(g.source)}}),i},r.prototype.withChildren=function(){var i=new Set,e,g;if(i.add(this),this.child!=null){var d=this.child.getNodes();for(var c=0;c<d.length;c++)e=d[c],g=e.withChildren(),g.forEach(function(I){i.add(I)})}return i},r.prototype.getNoOfChildren=function(){var i=0,e;if(this.child==null)i=1;else{var g=this.child.getNodes();for(var d=0;d<g.length;d++)e=g[d],i+=e.getNoOfChildren()}if(i==0)i=1;return i},r.prototype.getEstimatedSize=function(){if(this.estimatedSize==f.MIN_VALUE)throw"assert failed";return this.estimatedSize},r.prototype.calcEstimatedSize=function(){if(this.child==null)return this.estimatedSize=(this.rect.width+this.rect.height)/2;else return this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize},r.prototype.scatter=function(){var i,e,g=-n.INITIAL_WORLD_BOUNDARY,d=n.INITIAL_WORLD_BOUNDARY;i=n.WORLD_CENTER_X+a.nextDouble()*(d-g)+g;var c=-n.INITIAL_WORLD_BOUNDARY,I=n.INITIAL_WORLD_BOUNDARY;e=n.WORLD_CENTER_Y+a.nextDouble()*(I-c)+c,this.rect.x=i,this.rect.y=e},r.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var i=this.getChild();if(i.updateBounds(!0),this.rect.x=i.getLeft(),this.rect.y=i.getTop(),this.setWidth(i.getRight()-i.getLeft()),this.setHeight(i.getBottom()-i.getTop()),n.NODE_DIMENSIONS_INCLUDE_LABELS){var e=i.getRight()-i.getLeft(),g=i.getBottom()-i.getTop();if(this.labelWidth){if(this.labelPosHorizontal=="left")this.rect.x-=this.labelWidth,this.setWidth(e+this.labelWidth);else if(this.labelPosHorizontal=="center"&&this.labelWidth>e)this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth);else if(this.labelPosHorizontal=="right")this.setWidth(e+this.labelWidth)}if(this.labelHeight){if(this.labelPosVertical=="top")this.rect.y-=this.labelHeight,this.setHeight(g+this.labelHeight);else if(this.labelPosVertical=="center"&&this.labelHeight>g)this.rect.y-=(this.labelHeight-g)/2,this.setHeight(this.labelHeight);else if(this.labelPosVertical=="bottom")this.setHeight(g+this.labelHeight)}}}},r.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==f.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},r.prototype.transform=function(i){var e=this.rect.x;if(e>n.WORLD_BOUNDARY)e=n.WORLD_BOUNDARY;else if(e<-n.WORLD_BOUNDARY)e=-n.WORLD_BOUNDARY;var g=this.rect.y;if(g>n.WORLD_BOUNDARY)g=n.WORLD_BOUNDARY;else if(g<-n.WORLD_BOUNDARY)g=-n.WORLD_BOUNDARY;var d=new u(e,g),c=i.inverseTransformPoint(d);this.setLocation(c.x,c.y)},r.prototype.getLeft=function(){return this.rect.x},r.prototype.getRight=function(){return this.rect.x+this.rect.width},r.prototype.getTop=function(){return this.rect.y},r.prototype.getBottom=function(){return this.rect.y+this.rect.height},r.prototype.getParent=function(){if(this.owner==null)return null;return this.owner.getParent()},w.exports=r},function(w,S,D){var v=D(0);function f(){}for(var o in v)f[o]=v[o];f.MAX_ITERATIONS=2500,f.DEFAULT_EDGE_LENGTH=50,f.DEFAULT_SPRING_STRENGTH=0.45,f.DEFAULT_REPULSION_STRENGTH=4500,f.DEFAULT_GRAVITY_STRENGTH=0.4,f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,f.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,f.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,f.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,f.DEFAULT_COOLING_FACTOR_INCREMENTAL=0.3,f.COOLING_ADAPTATION_FACTOR=0.33,f.ADAPTATION_LOWER_NODE_LIMIT=1000,f.ADAPTATION_UPPER_NODE_LIMIT=5000,f.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,f.MAX_NODE_DISPLACEMENT=f.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,f.MIN_REPULSION_DIST=f.DEFAULT_EDGE_LENGTH/10,f.CONVERGENCE_CHECK_PERIOD=100,f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=0.1,f.MIN_EDGE_LENGTH=1,f.GRID_CALCULATION_CHECK_PERIOD=10,w.exports=f},function(w,S,D){function v(f,o){if(f==null&&o==null)this.x=0,this.y=0;else this.x=f,this.y=o}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.setX=function(f){this.x=f},v.prototype.setY=function(f){this.y=f},v.prototype.getDifference=function(f){return new DimensionD(this.x-f.x,this.y-f.y)},v.prototype.getCopy=function(){return new v(this.x,this.y)},v.prototype.translate=function(f){return this.x+=f.width,this.y+=f.height,this},w.exports=v},function(w,S,D){var v=D(2),f=D(10),o=D(0),n=D(7),a=D(3),u=D(1),r=D(13),p=D(12),i=D(11);function e(d,c,I){if(v.call(this,I),this.estimatedSize=f.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=d,c!=null&&c instanceof n)this.graphManager=c;else if(c!=null&&c instanceof Layout)this.graphManager=c.graphManager}e.prototype=Object.create(v.prototype);for(var g in v)e[g]=v[g];e.prototype.getNodes=function(){return this.nodes},e.prototype.getEdges=function(){return this.edges},e.prototype.getGraphManager=function(){return this.graphManager},e.prototype.getParent=function(){return this.parent},e.prototype.getLeft=function(){return this.left},e.prototype.getRight=function(){return this.right},e.prototype.getTop=function(){return this.top},e.prototype.getBottom=function(){return this.bottom},e.prototype.isConnected=function(){return this.isConnected},e.prototype.add=function(d,c,I){if(c==null&&I==null){var T=d;if(this.graphManager==null)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}else{var N=d;if(!(this.getNodes().indexOf(c)>-1&&this.getNodes().indexOf(I)>-1))throw"Source or target not in graph!";if(!(c.owner==I.owner&&c.owner==this))throw"Both owners must be this graph!";if(c.owner!=I.owner)return null;if(N.source=c,N.target=I,N.isInterGraph=!1,this.getEdges().push(N),c.edges.push(N),I!=c)I.edges.push(N);return N}},e.prototype.remove=function(d){var c=d;if(d instanceof a){if(c==null)throw"Node is null!";if(!(c.owner!=null&&c.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";var I=c.edges.slice(),T,N=I.length;for(var x=0;x<N;x++)if(T=I[x],T.isInterGraph)this.graphManager.remove(T);else T.source.owner.remove(T);var X=this.nodes.indexOf(c);if(X==-1)throw"Node not in owner node list!";this.nodes.splice(X,1)}else if(d instanceof u){var T=d;if(T==null)throw"Edge is null!";if(!(T.source!=null&&T.target!=null))throw"Source and/or target is null!";if(!(T.source.owner!=null&&T.target.owner!=null&&T.source.owner==this&&T.target.owner==this))throw"Source and/or target owner is invalid!";var R=T.source.edges.indexOf(T),V=T.target.edges.indexOf(T);if(!(R>-1&&V>-1))throw"Source and/or target doesn't know this edge!";if(T.source.edges.splice(R,1),T.target!=T.source)T.target.edges.splice(V,1);var X=T.source.owner.getEdges().indexOf(T);if(X==-1)throw"Not in owner's edge list!";T.source.owner.getEdges().splice(X,1)}},e.prototype.updateLeftTop=function(){var{MAX_VALUE:d,MAX_VALUE:c}=f,I,T,N,x=this.getNodes(),X=x.length;for(var R=0;R<X;R++){var V=x[R];if(I=V.getTop(),T=V.getLeft(),d>I)d=I;if(c>T)c=T}if(d==f.MAX_VALUE)return null;if(x[0].getParent().paddingLeft!=null)N=x[0].getParent().paddingLeft;else N=this.margin;return this.left=c-N,this.top=d-N,new p(this.left,this.top)},e.prototype.updateBounds=function(d){var c=f.MAX_VALUE,I=-f.MAX_VALUE,T=f.MAX_VALUE,N=-f.MAX_VALUE,x,X,R,V,_,Q=this.nodes,lt=Q.length;for(var P=0;P<lt;P++){var tt=Q[P];if(d&&tt.child!=null)tt.updateBounds();if(x=tt.getLeft(),X=tt.getRight(),R=tt.getTop(),V=tt.getBottom(),c>x)c=x;if(I<X)I=X;if(T>R)T=R;if(N<V)N=V}var s=new r(c,T,I-c,N-T);if(c==f.MAX_VALUE)this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom();if(Q[0].getParent().paddingLeft!=null)_=Q[0].getParent().paddingLeft;else _=this.margin;this.left=s.x-_,this.right=s.x+s.width+_,this.top=s.y-_,this.bottom=s.y+s.height+_},e.calculateBounds=function(d){var c=f.MAX_VALUE,I=-f.MAX_VALUE,T=f.MAX_VALUE,N=-f.MAX_VALUE,x,X,R,V,_=d.length;for(var Q=0;Q<_;Q++){var lt=d[Q];if(x=lt.getLeft(),X=lt.getRight(),R=lt.getTop(),V=lt.getBottom(),c>x)c=x;if(I<X)I=X;if(T>R)T=R;if(N<V)N=V}var P=new r(c,T,I-c,N-T);return P},e.prototype.getInclusionTreeDepth=function(){if(this==this.graphManager.getRoot())return 1;else return this.parent.getInclusionTreeDepth()},e.prototype.getEstimatedSize=function(){if(this.estimatedSize==f.MIN_VALUE)throw"assert failed";return this.estimatedSize},e.prototype.calcEstimatedSize=function(){var d=0,c=this.nodes,I=c.length;for(var T=0;T<I;T++){var N=c[T];d+=N.calcEstimatedSize()}if(d==0)this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE;else this.estimatedSize=d/Math.sqrt(this.nodes.length);return this.estimatedSize},e.prototype.updateConnected=function(){var d=this;if(this.nodes.length==0){this.isConnected=!0;return}var c=new i,I=new Set,T=this.nodes[0],N,x,X=T.withChildren();X.forEach(function(P){c.push(P),I.add(P)});while(c.length!==0){T=c.shift(),N=T.getEdges();var R=N.length;for(var V=0;V<R;V++){var _=N[V];if(x=_.getOtherEndInGraph(T,this),x!=null&&!I.has(x)){var Q=x.withChildren();Q.forEach(function(P){c.push(P),I.add(P)})}}}if(this.isConnected=!1,I.size>=this.nodes.length){var lt=0;if(I.forEach(function(P){if(P.owner==d)lt++}),lt==this.nodes.length)this.isConnected=!0}},w.exports=e},function(w,S,D){var v,f=D(1);function o(n){v=D(6),this.layout=n,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var n=this.layout.newGraph(),a=this.layout.newNode(null),u=this.add(n,a);return this.setRootGraph(u),this.rootGraph},o.prototype.add=function(n,a,u,r,p){if(u==null&&r==null&&p==null){if(n==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(n)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(n),n.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return n.parent=a,a.child=n,n}else{p=u,r=a,u=n;var i=r.getOwner(),e=p.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(e!=null&&e.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==e)return u.isInterGraph=!1,i.add(u,r,p);else{if(u.isInterGraph=!0,u.source=r,u.target=p,this.edges.indexOf(u)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(u),!(u.source!=null&&u.target!=null))throw"Edge source and/or target is null!";if(!(u.source.edges.indexOf(u)==-1&&u.target.edges.indexOf(u)==-1))throw"Edge already in source and/or target incidency list!";return u.source.edges.push(u),u.target.edges.push(u),u}}},o.prototype.remove=function(n){if(n instanceof v){var a=n;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var u=[];u=u.concat(a.getEdges());var r,p=u.length;for(var i=0;i<p;i++)r=u[i],a.remove(r);var e=[];e=e.concat(a.getNodes());var g;p=e.length;for(var i=0;i<p;i++)g=e[i],a.remove(g);if(a==this.rootGraph)this.setRootGraph(null);var d=this.graphs.indexOf(a);this.graphs.splice(d,1),a.parent=null}else if(n instanceof f){if(r=n,r==null)throw"Edge is null!";if(!r.isInterGraph)throw"Not an inter-graph edge!";if(!(r.source!=null&&r.target!=null))throw"Source and/or target is null!";if(!(r.source.edges.indexOf(r)!=-1&&r.target.edges.indexOf(r)!=-1))throw"Source and/or target doesn't know this edge!";var d=r.source.edges.indexOf(r);if(r.source.edges.splice(d,1),d=r.target.edges.indexOf(r),r.target.edges.splice(d,1),!(r.source.owner!=null&&r.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(r.source.owner.getGraphManager().edges.indexOf(r)==-1)throw"Not in owner graph manager's edge list!";var d=r.source.owner.getGraphManager().edges.indexOf(r);r.source.owner.getGraphManager().edges.splice(d,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(this.allNodes==null){var n=[],a=this.getGraphs(),u=a.length;for(var r=0;r<u;r++)n=n.concat(a[r].getNodes());this.allNodes=n}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(this.allEdges==null){var n=[],a=this.getGraphs(),u=a.length;for(var r=0;r<a.length;r++)n=n.concat(a[r].getEdges());n=n.concat(this.edges),this.allEdges=n}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(n){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=n},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(n){if(n.getGraphManager()!=this)throw"Root not in this graph mgr!";if(this.rootGraph=n,n.parent==null)n.parent=this.layout.newNode("Root node")},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(n,a){if(!(n!=null&&a!=null))throw"assert failed";if(n==a)return!0;var u=n.getOwner(),r;do{if(r=u.getParent(),r==null)break;if(r==a)return!0;if(u=r.getOwner(),u==null)break}while(!0);u=a.getOwner();do{if(r=u.getParent(),r==null)break;if(r==n)return!0;if(u=r.getOwner(),u==null)break}while(!0);return!1},o.prototype.calcLowestCommonAncestors=function(){var n,a,u,r,p,i=this.getAllEdges(),e=i.length;for(var g=0;g<e;g++){if(n=i[g],a=n.source,u=n.target,n.lca=null,n.sourceInLca=a,n.targetInLca=u,a==u){n.lca=a.getOwner();continue}r=a.getOwner();while(n.lca==null){n.targetInLca=u,p=u.getOwner();while(n.lca==null){if(p==r){n.lca=p;break}if(p==this.rootGraph)break;if(n.lca!=null)throw"assert failed";n.targetInLca=p.getParent(),p=n.targetInLca.getOwner()}if(r==this.rootGraph)break;if(n.lca==null)n.sourceInLca=r.getParent(),r=n.sourceInLca.getOwner()}if(n.lca==null)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(n,a){if(n==a)return n.getOwner();var u=n.getOwner();do{if(u==null)break;var r=a.getOwner();do{if(r==null)break;if(r==u)return r;r=r.getParent().getOwner()}while(!0);u=u.getParent().getOwner()}while(!0);return u},o.prototype.calcInclusionTreeDepths=function(n,a){if(n==null&&a==null)n=this.rootGraph,a=1;var u,r=n.getNodes(),p=r.length;for(var i=0;i<p;i++)if(u=r[i],u.inclusionTreeDepth=a,u.child!=null)this.calcInclusionTreeDepths(u.child,a+1)},o.prototype.includesInvalidEdge=function(){var n,a=[],u=this.edges.length;for(var r=0;r<u;r++)if(n=this.edges[r],this.isOneAncestorOfOther(n.source,n.target))a.push(n);for(var r=0;r<a.length;r++)this.remove(a[r]);return!1},w.exports=o},function(w,S,D){var v=D(12);function f(){}f.calcSeparationAmount=function(o,n,a,u){if(!o.intersects(n))throw"assert failed";var r=[,,];if(this.decideDirectionsForOverlappingNodes(o,n,r),a[0]=Math.min(o.getRight(),n.getRight())-Math.max(o.x,n.x),a[1]=Math.min(o.getBottom(),n.getBottom())-Math.max(o.y,n.y),o.getX()<=n.getX()&&o.getRight()>=n.getRight())a[0]+=Math.min(n.getX()-o.getX(),o.getRight()-n.getRight());else if(n.getX()<=o.getX()&&n.getRight()>=o.getRight())a[0]+=Math.min(o.getX()-n.getX(),n.getRight()-o.getRight());if(o.getY()<=n.getY()&&o.getBottom()>=n.getBottom())a[1]+=Math.min(n.getY()-o.getY(),o.getBottom()-n.getBottom());else if(n.getY()<=o.getY()&&n.getBottom()>=o.getBottom())a[1]+=Math.min(o.getY()-n.getY(),n.getBottom()-o.getBottom());var p=Math.abs((n.getCenterY()-o.getCenterY())/(n.getCenterX()-o.getCenterX()));if(n.getCenterY()===o.getCenterY()&&n.getCenterX()===o.getCenterX())p=1;var i=p*a[0],e=a[1]/p;if(a[0]<e)e=a[0];else i=a[1];a[0]=-1*r[0]*(e/2+u),a[1]=-1*r[1]*(i/2+u)},f.decideDirectionsForOverlappingNodes=function(o,n,a){if(o.getCenterX()<n.getCenterX())a[0]=-1;else a[0]=1;if(o.getCenterY()<n.getCenterY())a[1]=-1;else a[1]=1},f.getIntersection2=function(o,n,a){var u=o.getCenterX(),r=o.getCenterY(),p=n.getCenterX(),i=n.getCenterY();if(o.intersects(n))return a[0]=u,a[1]=r,a[2]=p,a[3]=i,!0;var e=o.getX(),g=o.getY(),d=o.getRight(),c=o.getX(),I=o.getBottom(),T=o.getRight(),N=o.getWidthHalf(),x=o.getHeightHalf(),X=n.getX(),R=n.getY(),V=n.getRight(),_=n.getX(),Q=n.getBottom(),lt=n.getRight(),P=n.getWidthHalf(),tt=n.getHeightHalf(),s=!1,L=!1;if(u===p){if(r>i)return a[0]=u,a[1]=g,a[2]=p,a[3]=Q,!1;else if(r<i)return a[0]=u,a[1]=I,a[2]=p,a[3]=R,!1}else if(r===i){if(u>p)return a[0]=e,a[1]=r,a[2]=V,a[3]=i,!1;else if(u<p)return a[0]=d,a[1]=r,a[2]=X,a[3]=i,!1}else{var E=o.height/o.width,A=n.height/n.width,y=(i-r)/(p-u),U=void 0,b=void 0,k=void 0,B=void 0,W=void 0,st=void 0;if(-E===y)if(u>p)a[0]=c,a[1]=I,s=!0;else a[0]=d,a[1]=g,s=!0;else if(E===y)if(u>p)a[0]=e,a[1]=g,s=!0;else a[0]=T,a[1]=I,s=!0;if(-A===y)if(p>u)a[2]=_,a[3]=Q,L=!0;else a[2]=V,a[3]=R,L=!0;else if(A===y)if(p>u)a[2]=X,a[3]=R,L=!0;else a[2]=lt,a[3]=Q,L=!0;if(s&&L)return!1;if(u>p)if(r>i)U=this.getCardinalDirection(E,y,4),b=this.getCardinalDirection(A,y,2);else U=this.getCardinalDirection(-E,y,3),b=this.getCardinalDirection(-A,y,1);else if(r>i)U=this.getCardinalDirection(-E,y,1),b=this.getCardinalDirection(-A,y,3);else U=this.getCardinalDirection(E,y,2),b=this.getCardinalDirection(A,y,4);if(!s)switch(U){case 1:B=g,k=u+-x/y,a[0]=k,a[1]=B;break;case 2:k=T,B=r+N*y,a[0]=k,a[1]=B;break;case 3:B=I,k=u+x/y,a[0]=k,a[1]=B;break;case 4:k=c,B=r+-N*y,a[0]=k,a[1]=B;break}if(!L)switch(b){case 1:st=R,W=p+-tt/y,a[2]=W,a[3]=st;break;case 2:W=lt,st=i+P*y,a[2]=W,a[3]=st;break;case 3:st=Q,W=p+tt/y,a[2]=W,a[3]=st;break;case 4:W=_,st=i+-P*y,a[2]=W,a[3]=st;break}}return!1},f.getCardinalDirection=function(o,n,a){if(o>n)return a;else return 1+a%4},f.getIntersection=function(o,n,a,u){if(u==null)return this.getIntersection2(o,n,a);var{x:r,y:p}=o,{x:i,y:e}=n,{x:g,y:d}=a,{x:c,y:I}=u,T=void 0,N=void 0,x=void 0,X=void 0,R=void 0,V=void 0,_=void 0,Q=void 0,lt=void 0;if(x=e-p,R=r-i,_=i*p-r*e,X=I-d,V=g-c,Q=c*d-g*I,lt=x*V-X*R,lt===0)return null;return T=(R*Q-V*_)/lt,N=(X*_-x*Q)/lt,new v(T,N)},f.angleOfVector=function(o,n,a,u){var r=void 0;if(o!==a){if(r=Math.atan((u-n)/(a-o)),a<o)r+=Math.PI;else if(u<n)r+=this.TWO_PI}else if(u<n)r=this.ONE_AND_HALF_PI;else r=this.HALF_PI;return r},f.doIntersect=function(o,n,a,u){var{x:r,y:p}=o,{x:i,y:e}=n,{x:g,y:d}=a,{x:c,y:I}=u,T=(i-r)*(I-d)-(c-g)*(e-p);if(T===0)return!1;else{var N=((I-d)*(c-r)+(g-c)*(I-p))/T,x=((p-e)*(c-r)+(i-r)*(I-p))/T;return 0<N&&N<1&&0<x&&x<1}},f.findCircleLineIntersections=function(o,n,a,u,r,p,i){var e=(a-o)*(a-o)+(u-n)*(u-n),g=2*((o-r)*(a-o)+(n-p)*(u-n)),d=(o-r)*(o-r)+(n-p)*(n-p)-i*i,c=g*g-4*e*d;if(c>=0){var I=(-g+Math.sqrt(g*g-4*e*d))/(2*e),T=(-g-Math.sqrt(g*g-4*e*d))/(2*e),N=null;if(I>=0&&I<=1)return[I];if(T>=0&&T<=1)return[T];return N}else return null},f.HALF_PI=0.5*Math.PI,f.ONE_AND_HALF_PI=1.5*Math.PI,f.TWO_PI=2*Math.PI,f.THREE_PI=3*Math.PI,w.exports=f},function(w,S,D){function v(){}v.sign=function(f){if(f>0)return 1;else if(f<0)return-1;else return 0},v.floor=function(f){return f<0?Math.ceil(f):Math.floor(f)},v.ceil=function(f){return f<0?Math.floor(f):Math.ceil(f)},w.exports=v},function(w,S,D){function v(){}v.MAX_VALUE=2147483647,v.MIN_VALUE=-2147483648,w.exports=v},function(w,S,D){var v=function(){function r(p,i){for(var e=0;e<i.length;e++){var g=i[e];if(g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g)g.writable=!0;Object.defineProperty(p,g.key,g)}}return function(p,i,e){if(i)r(p.prototype,i);if(e)r(p,e);return p}}();function f(r,p){if(!(r instanceof p))throw TypeError("Cannot call a class as a function")}var o=function(p){return{value:p,next:null,prev:null}},n=function(p,i,e,g){if(p!==null)p.next=i;else g.head=i;if(e!==null)e.prev=i;else g.tail=i;return i.prev=p,i.next=e,g.length++,i},a=function(p,i){var{prev:e,next:g}=p;if(e!==null)e.next=g;else i.head=g;if(g!==null)g.prev=e;else i.tail=e;return p.prev=p.next=null,i.length--,p},u=function(){function r(p){var i=this;if(f(this,r),this.length=0,this.head=null,this.tail=null,p!=null)p.forEach(function(e){return i.push(e)})}return v(r,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(i,e){return n(e.prev,o(i),e,this)}},{key:"insertAfter",value:function(i,e){return n(e,o(i),e.next,this)}},{key:"insertNodeBefore",value:function(i,e){return n(e.prev,i,e,this)}},{key:"insertNodeAfter",value:function(i,e){return n(e,i,e.next,this)}},{key:"push",value:function(i){return n(this.tail,o(i),null,this)}},{key:"unshift",value:function(i){return n(null,o(i),this.head,this)}},{key:"remove",value:function(i){return a(i,this)}},{key:"pop",value:function(){return a(this.tail,this).value}},{key:"popNode",value:function(){return a(this.tail,this)}},{key:"shift",value:function(){return a(this.head,this).value}},{key:"shiftNode",value:function(){return a(this.head,this)}},{key:"get_object_at",value:function(i){if(i<=this.length()){var e=1,g=this.head;while(e<i)g=g.next,e++;return g.value}}},{key:"set_object_at",value:function(i,e){if(i<=this.length()){var g=1,d=this.head;while(g<i)d=d.next,g++;d.value=e}}}]),r}();w.exports=u},function(w,S,D){function v(f,o,n){if(this.x=null,this.y=null,f==null&&o==null&&n==null)this.x=0,this.y=0;else if(typeof f=="number"&&typeof o=="number"&&n==null)this.x=f,this.y=o;else if(f.constructor.name=="Point"&&o==null&&n==null)n=f,this.x=n.x,this.y=n.y}v.prototype.getX=function(){return this.x},v.prototype.getY=function(){return this.y},v.prototype.getLocation=function(){return new v(this.x,this.y)},v.prototype.setLocation=function(f,o,n){if(f.constructor.name=="Point"&&o==null&&n==null)n=f,this.setLocation(n.x,n.y);else if(typeof f=="number"&&typeof o=="number"&&n==null)if(parseInt(f)==f&&parseInt(o)==o)this.move(f,o);else this.x=Math.floor(f+0.5),this.y=Math.floor(o+0.5)},v.prototype.move=function(f,o){this.x=f,this.y=o},v.prototype.translate=function(f,o){this.x+=f,this.y+=o},v.prototype.equals=function(f){if(f.constructor.name=="Point"){var o=f;return this.x==o.x&&this.y==o.y}return this==f},v.prototype.toString=function(){return new v().constructor.name+"[x="+this.x+",y="+this.y+"]"},w.exports=v},function(w,S,D){function v(f,o,n,a){if(this.x=0,this.y=0,this.width=0,this.height=0,f!=null&&o!=null&&n!=null&&a!=null)this.x=f,this.y=o,this.width=n,this.height=a}v.prototype.getX=function(){return this.x},v.prototype.setX=function(f){this.x=f},v.prototype.getY=function(){return this.y},v.prototype.setY=function(f){this.y=f},v.prototype.getWidth=function(){return this.width},v.prototype.setWidth=function(f){this.width=f},v.prototype.getHeight=function(){return this.height},v.prototype.setHeight=function(f){this.height=f},v.prototype.getRight=function(){return this.x+this.width},v.prototype.getBottom=function(){return this.y+this.height},v.prototype.intersects=function(f){if(this.getRight()<f.x)return!1;if(this.getBottom()<f.y)return!1;if(f.getRight()<this.x)return!1;if(f.getBottom()<this.y)return!1;return!0},v.prototype.getCenterX=function(){return this.x+this.width/2},v.prototype.getMinX=function(){return this.getX()},v.prototype.getMaxX=function(){return this.getX()+this.width},v.prototype.getCenterY=function(){return this.y+this.height/2},v.prototype.getMinY=function(){return this.getY()},v.prototype.getMaxY=function(){return this.getY()+this.height},v.prototype.getWidthHalf=function(){return this.width/2},v.prototype.getHeightHalf=function(){return this.height/2},w.exports=v},function(w,S,D){var v=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol==="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function f(){}f.lastID=0,f.createID=function(o){if(f.isPrimitive(o))return o;if(o.uniqueID!=null)return o.uniqueID;return o.uniqueID=f.getString(),f.lastID++,o.uniqueID},f.getString=function(o){if(o==null)o=f.lastID;return"Object#"+o},f.isPrimitive=function(o){var n=typeof o>"u"?"undefined":v(o);return o==null||n!="object"&&n!="function"},w.exports=f},function(w,S,D){function v(g){if(Array.isArray(g)){for(var d=0,c=Array(g.length);d<g.length;d++)c[d]=g[d];return c}else return Array.from(g)}var f=D(0),o=D(7),n=D(3),a=D(1),u=D(6),r=D(5),p=D(17),i=D(29);function e(g){if(i.call(this),this.layoutQuality=f.QUALITY,this.createBendsAsNeeded=f.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=f.DEFAULT_INCREMENTAL,this.animationOnLayout=f.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=f.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=f.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=f.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,g!=null)this.isRemoteUse=g}e.RANDOM_SEED=1,e.prototype=Object.create(i.prototype),e.prototype.getGraphManager=function(){return this.graphManager},e.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},e.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},e.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},e.prototype.newGraphManager=function(){var g=new o(this);return this.graphManager=g,g},e.prototype.newGraph=function(g){return new u(null,this.graphManager,g)},e.prototype.newNode=function(g){return new n(this.graphManager,g)},e.prototype.newEdge=function(g){return new a(null,null,g)},e.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},e.prototype.runLayout=function(){if(this.isLayoutFinished=!1,this.tilingPreLayout)this.tilingPreLayout();this.initParameters();var g;if(this.checkLayoutSuccess())g=!1;else g=this.layout();if(f.ANIMATE==="during")return!1;if(g){if(!this.isSubLayout)this.doPostLayout()}if(this.tilingPostLayout)this.tilingPostLayout();return this.isLayoutFinished=!0,g},e.prototype.doPostLayout=function(){if(!this.incremental)this.transform();this.update()},e.prototype.update2=function(){if(this.createBendsAsNeeded)this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges();if(!this.isRemoteUse){var g,d=this.graphManager.getAllEdges();for(var c=0;c<d.length;c++)g=d[c];var I,T=this.graphManager.getRoot().getNodes();for(var c=0;c<T.length;c++)I=T[c];this.update(this.graphManager.getRoot())}},e.prototype.update=function(g){if(g==null)this.update2();else if(g instanceof n){var d=g;if(d.getChild()!=null){var c=d.getChild().getNodes();for(var I=0;I<c.length;I++)update(c[I])}if(d.vGraphObject!=null){var T=d.vGraphObject;T.update(d)}}else if(g instanceof a){var N=g;if(N.vGraphObject!=null){var x=N.vGraphObject;x.update(N)}}else if(g instanceof u){var X=g;if(X.vGraphObject!=null){var R=X.vGraphObject;R.update(X)}}},e.prototype.initParameters=function(){if(!this.isSubLayout)this.layoutQuality=f.QUALITY,this.animationDuringLayout=f.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=f.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=f.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=f.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=f.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=f.DEFAULT_UNIFORM_LEAF_NODE_SIZES;if(this.animationDuringLayout)this.animationOnLayout=!1},e.prototype.transform=function(g){if(g==null)this.transform(new r(0,0));else{var d=new p,c=this.graphManager.getRoot().updateLeftTop();if(c!=null){d.setWorldOrgX(g.x),d.setWorldOrgY(g.y),d.setDeviceOrgX(c.x),d.setDeviceOrgY(c.y);var I=this.getAllNodes(),T;for(var N=0;N<I.length;N++)T=I[N],T.transform(d)}}},e.prototype.positionNodesRandomly=function(g){if(g==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else{var d,c,I=g.getNodes();for(var T=0;T<I.length;T++)if(d=I[T],c=d.getChild(),c==null)d.scatter();else if(c.getNodes().length==0)d.scatter();else this.positionNodesRandomly(c),d.updateBounds()}},e.prototype.getFlatForest=function(){var g=[],d=!0,c=this.graphManager.getRoot().getNodes(),I=!0;for(var T=0;T<c.length;T++)if(c[T].getChild()!=null)I=!1;if(!I)return g;var N=new Set,x=[],X=new Map,R=[];R=R.concat(c);while(R.length>0&&d){x.push(R[0]);while(x.length>0&&d){var V=x[0];x.splice(0,1),N.add(V);var _=V.getEdges();for(var T=0;T<_.length;T++){var Q=_[T].getOtherEnd(V);if(X.get(V)!=Q)if(!N.has(Q))x.push(Q),X.set(Q,V);else{d=!1;break}}}if(!d)g=[];else{var lt=[].concat(v(N));g.push(lt);for(var T=0;T<lt.length;T++){var P=lt[T],tt=R.indexOf(P);if(tt>-1)R.splice(tt,1)}N=new Set,X=new Map}}return g},e.prototype.createDummyNodesForBendpoints=function(g){var d=[],c=g.source,I=this.graphManager.calcLowestCommonAncestor(g.source,g.target);for(var T=0;T<g.bendpoints.length;T++){var N=this.newNode(null);N.setRect(new Point(0,0),new Dimension(1,1)),I.add(N);var x=this.newEdge(null);this.graphManager.add(x,c,N),d.add(N),c=N}var x=this.newEdge(null);if(this.graphManager.add(x,c,g.target),this.edgeToDummyNodes.set(g,d),g.isInterGraph())this.graphManager.remove(g);else I.remove(g);return d},e.prototype.createBendpointsFromDummyNodes=function(){var g=[];g=g.concat(this.graphManager.getAllEdges()),g=[].concat(v(this.edgeToDummyNodes.keys())).concat(g);for(var d=0;d<g.length;d++){var c=g[d];if(c.bendpoints.length>0){var I=this.edgeToDummyNodes.get(c);for(var T=0;T<I.length;T++){var N=I[T],x=new r(N.getCenterX(),N.getCenterY()),X=c.bendpoints.get(T);X.x=x.x,X.y=x.y,N.getOwner().remove(N)}this.graphManager.add(c,c.source,c.target)}}},e.transform=function(g,d,c,I){if(c!=null&&I!=null){var T=d;if(g<=50){var N=d/c;T-=(d-N)/50*(50-g)}else{var x=d*I;T+=(x-d)/50*(g-50)}return T}else{var X,R;if(g<=50)X=9*d/500,R=d/10;else X=9*d/50,R=-8*d;return X*g+R}},e.findCenterOfTree=function(g){var d=[];d=d.concat(g);var c=[],I=new Map,T=!1,N=null;if(d.length==1||d.length==2)T=!0,N=d[0];for(var x=0;x<d.length;x++){var X=d[x],R=X.getNeighborsList().size;if(I.set(X,X.getNeighborsList().size),R==1)c.push(X)}var V=[];V=V.concat(c);while(!T){var _=[];_=_.concat(V),V=[];for(var x=0;x<d.length;x++){var X=d[x],Q=d.indexOf(X);if(Q>=0)d.splice(Q,1);var lt=X.getNeighborsList();lt.forEach(function(s){if(c.indexOf(s)<0){var L=I.get(s),E=L-1;if(E==1)V.push(s);I.set(s,E)}})}if(c=c.concat(V),d.length==1||d.length==2)T=!0,N=d[0]}return N},e.prototype.setGraphManager=function(g){this.graphManager=g},w.exports=e},function(w,S,D){function v(){}v.seed=1,v.x=0,v.nextDouble=function(){return v.x=Math.sin(v.seed++)*1e4,v.x-Math.floor(v.x)},w.exports=v},function(w,S,D){var v=D(5);function f(o,n){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}f.prototype.getWorldOrgX=function(){return this.lworldOrgX},f.prototype.setWorldOrgX=function(o){this.lworldOrgX=o},f.prototype.getWorldOrgY=function(){return this.lworldOrgY},f.prototype.setWorldOrgY=function(o){this.lworldOrgY=o},f.prototype.getWorldExtX=function(){return this.lworldExtX},f.prototype.setWorldExtX=function(o){this.lworldExtX=o},f.prototype.getWorldExtY=function(){return this.lworldExtY},f.prototype.setWorldExtY=function(o){this.lworldExtY=o},f.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},f.prototype.setDeviceOrgX=function(o){this.ldeviceOrgX=o},f.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},f.prototype.setDeviceOrgY=function(o){this.ldeviceOrgY=o},f.prototype.getDeviceExtX=function(){return this.ldeviceExtX},f.prototype.setDeviceExtX=function(o){this.ldeviceExtX=o},f.prototype.getDeviceExtY=function(){return this.ldeviceExtY},f.prototype.setDeviceExtY=function(o){this.ldeviceExtY=o},f.prototype.transformX=function(o){var n=0,a=this.lworldExtX;if(a!=0)n=this.ldeviceOrgX+(o-this.lworldOrgX)*this.ldeviceExtX/a;return n},f.prototype.transformY=function(o){var n=0,a=this.lworldExtY;if(a!=0)n=this.ldeviceOrgY+(o-this.lworldOrgY)*this.ldeviceExtY/a;return n},f.prototype.inverseTransformX=function(o){var n=0,a=this.ldeviceExtX;if(a!=0)n=this.lworldOrgX+(o-this.ldeviceOrgX)*this.lworldExtX/a;return n},f.prototype.inverseTransformY=function(o){var n=0,a=this.ldeviceExtY;if(a!=0)n=this.lworldOrgY+(o-this.ldeviceOrgY)*this.lworldExtY/a;return n},f.prototype.inverseTransformPoint=function(o){var n=new v(this.inverseTransformX(o.x),this.inverseTransformY(o.y));return n},w.exports=f},function(w,S,D){function v(i){if(Array.isArray(i)){for(var e=0,g=Array(i.length);e<i.length;e++)g[e]=i[e];return g}else return Array.from(i)}var f=D(15),o=D(4),n=D(0),a=D(8),u=D(9);function r(){f.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}r.prototype=Object.create(f.prototype);for(var p in f)r[p]=f[p];r.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},r.prototype.calcIdealEdgeLengths=function(){var i,e,g,d,c,I,T,N=this.getGraphManager().getAllEdges();for(var x=0;x<N.length;x++)if(i=N[x],e=i.idealLength,i.isInterGraph){if(d=i.getSource(),c=i.getTarget(),I=i.getSourceInLca().getEstimatedSize(),T=i.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation)i.idealLength+=I+T-2*n.SIMPLE_NODE_SIZE;g=i.getLca().getInclusionTreeDepth(),i.idealLength+=e*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(d.getInclusionTreeDepth()+c.getInclusionTreeDepth()-2*g)}},r.prototype.initSpringEmbedder=function(){var i=this.getAllNodes().length;if(this.incremental){if(i>o.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR));this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL}else{if(i>o.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(i-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR));else this.coolingFactor=1;this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT}this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},r.prototype.calcSpringForces=function(){var i=this.getAllEdges(),e;for(var g=0;g<i.length;g++)e=i[g],this.calcSpringForce(e,e.idealLength)},r.prototype.calcRepulsionForces=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g,d,c,I,T=this.getAllNodes(),N;if(this.useFRGridVariant){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&i)this.updateGrid();N=new Set;for(g=0;g<T.length;g++)c=T[g],this.calculateRepulsionForceOfANode(c,N,i,e),N.add(c)}else for(g=0;g<T.length;g++){c=T[g];for(d=g+1;d<T.length;d++){if(I=T[d],c.getOwner()!=I.getOwner())continue;this.calcRepulsionForce(c,I)}}},r.prototype.calcGravitationalForces=function(){var i,e=this.getAllNodesToApplyGravitation();for(var g=0;g<e.length;g++)i=e[g],this.calcGravitationalForce(i)},r.prototype.moveNodes=function(){var i=this.getAllNodes(),e;for(var g=0;g<i.length;g++)e=i[g],e.move()},r.prototype.calcSpringForce=function(i,e){var g=i.getSource(),d=i.getTarget(),c,I,T,N;if(this.uniformLeafNodeSizes&&g.getChild()==null&&d.getChild()==null)i.updateLengthSimple();else if(i.updateLength(),i.isOverlapingSourceAndTarget)return;if(c=i.getLength(),c==0)return;I=i.edgeElasticity*(c-e),T=I*(i.lengthX/c),N=I*(i.lengthY/c),g.springForceX+=T,g.springForceY+=N,d.springForceX-=T,d.springForceY-=N},r.prototype.calcRepulsionForce=function(i,e){var g=i.getRect(),d=e.getRect(),c=[,,],I=[,,,,],T,N,x,X,R,V,_;if(g.intersects(d)){a.calcSeparationAmount(g,d,c,o.DEFAULT_EDGE_LENGTH/2),V=2*c[0],_=2*c[1];var Q=i.noOfChildren*e.noOfChildren/(i.noOfChildren+e.noOfChildren);i.repulsionForceX-=Q*V,i.repulsionForceY-=Q*_,e.repulsionForceX+=Q*V,e.repulsionForceY+=Q*_}else{if(this.uniformLeafNodeSizes&&i.getChild()==null&&e.getChild()==null)T=d.getCenterX()-g.getCenterX(),N=d.getCenterY()-g.getCenterY();else a.getIntersection(g,d,I),T=I[2]-I[0],N=I[3]-I[1];if(Math.abs(T)<o.MIN_REPULSION_DIST)T=u.sign(T)*o.MIN_REPULSION_DIST;if(Math.abs(N)<o.MIN_REPULSION_DIST)N=u.sign(N)*o.MIN_REPULSION_DIST;x=T*T+N*N,X=Math.sqrt(x),R=(i.nodeRepulsion/2+e.nodeRepulsion/2)*i.noOfChildren*e.noOfChildren/x,V=R*T/X,_=R*N/X,i.repulsionForceX-=V,i.repulsionForceY-=_,e.repulsionForceX+=V,e.repulsionForceY+=_}},r.prototype.calcGravitationalForce=function(i){var e,g,d,c,I,T,N,x;if(e=i.getOwner(),g=(e.getRight()+e.getLeft())/2,d=(e.getTop()+e.getBottom())/2,c=i.getCenterX()-g,I=i.getCenterY()-d,T=Math.abs(c)+i.getWidth()/2,N=Math.abs(I)+i.getHeight()/2,i.getOwner()==this.graphManager.getRoot()){if(x=e.getEstimatedSize()*this.gravityRangeFactor,T>x||N>x)i.gravitationForceX=-this.gravityConstant*c,i.gravitationForceY=-this.gravityConstant*I}else if(x=e.getEstimatedSize()*this.compoundGravityRangeFactor,T>x||N>x)i.gravitationForceX=-this.gravityConstant*c*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*I*this.compoundGravityConstant},r.prototype.isConverged=function(){var i,e=!1;if(this.totalIterations>this.maxIterations/3)e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2;return i=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,i||e},r.prototype.animate=function(){if(this.animationDuringLayout&&!this.isSubLayout)if(this.notAnimatedIterations==this.animationPeriod)this.update(),this.notAnimatedIterations=0;else this.notAnimatedIterations++},r.prototype.calcNoOfChildrenForAllNodes=function(){var i,e=this.graphManager.getAllNodes();for(var g=0;g<e.length;g++)i=e[g],i.noOfChildren=i.getNoOfChildren()},r.prototype.calcGrid=function(i){var e=0,g=0;e=parseInt(Math.ceil((i.getRight()-i.getLeft())/this.repulsionRange)),g=parseInt(Math.ceil((i.getBottom()-i.getTop())/this.repulsionRange));var d=Array(e);for(var c=0;c<e;c++)d[c]=Array(g);for(var c=0;c<e;c++)for(var I=0;I<g;I++)d[c][I]=[];return d},r.prototype.addNodeToGrid=function(i,e,g){var d=0,c=0,I=0,T=0;d=parseInt(Math.floor((i.getRect().x-e)/this.repulsionRange)),c=parseInt(Math.floor((i.getRect().width+i.getRect().x-e)/this.repulsionRange)),I=parseInt(Math.floor((i.getRect().y-g)/this.repulsionRange)),T=parseInt(Math.floor((i.getRect().height+i.getRect().y-g)/this.repulsionRange));for(var N=d;N<=c;N++)for(var x=I;x<=T;x++)this.grid[N][x].push(i),i.setGridCoordinates(d,c,I,T)},r.prototype.updateGrid=function(){var i,e,g=this.getAllNodes();this.grid=this.calcGrid(this.graphManager.getRoot());for(i=0;i<g.length;i++)e=g[i],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},r.prototype.calculateRepulsionForceOfANode=function(i,e,g,d){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&g||d){var c=new Set;i.surrounding=[];var I,T=this.grid;for(var N=i.startX-1;N<i.finishX+2;N++)for(var x=i.startY-1;x<i.finishY+2;x++)if(!(N<0||x<0||N>=T.length||x>=T[0].length))for(var X=0;X<T[N][x].length;X++){if(I=T[N][x][X],i.getOwner()!=I.getOwner()||i==I)continue;if(!e.has(I)&&!c.has(I)){var R=Math.abs(i.getCenterX()-I.getCenterX())-(i.getWidth()/2+I.getWidth()/2),V=Math.abs(i.getCenterY()-I.getCenterY())-(i.getHeight()/2+I.getHeight()/2);if(R<=this.repulsionRange&&V<=this.repulsionRange)c.add(I)}}i.surrounding=[].concat(v(c))}for(N=0;N<i.surrounding.length;N++)this.calcRepulsionForce(i,i.surrounding[N])},r.prototype.calcRepulsionRange=function(){return 0},w.exports=r},function(w,S,D){var v=D(1),f=D(4);function o(a,u,r){v.call(this,a,u,r),this.idealLength=f.DEFAULT_EDGE_LENGTH,this.edgeElasticity=f.DEFAULT_SPRING_STRENGTH}o.prototype=Object.create(v.prototype);for(var n in v)o[n]=v[n];w.exports=o},function(w,S,D){var v=D(3),f=D(4);function o(a,u,r,p){v.call(this,a,u,r,p),this.nodeRepulsion=f.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}o.prototype=Object.create(v.prototype);for(var n in v)o[n]=v[n];o.prototype.setGridCoordinates=function(a,u,r,p){this.startX=a,this.finishX=u,this.startY=r,this.finishY=p},w.exports=o},function(w,S,D){function v(f,o){if(this.width=0,this.height=0,f!==null&&o!==null)this.height=o,this.width=f}v.prototype.getWidth=function(){return this.width},v.prototype.setWidth=function(f){this.width=f},v.prototype.getHeight=function(){return this.height},v.prototype.setHeight=function(f){this.height=f},w.exports=v},function(w,S,D){var v=D(14);function f(){this.map={},this.keys=[]}f.prototype.put=function(o,n){var a=v.createID(o);if(!this.contains(a))this.map[a]=n,this.keys.push(o)},f.prototype.contains=function(o){var n=v.createID(o);return this.map[o]!=null},f.prototype.get=function(o){var n=v.createID(o);return this.map[n]},f.prototype.keySet=function(){return this.keys},w.exports=f},function(w,S,D){var v=D(14);function f(){this.set={}}f.prototype.add=function(o){var n=v.createID(o);if(!this.contains(n))this.set[n]=o},f.prototype.remove=function(o){delete this.set[v.createID(o)]},f.prototype.clear=function(){this.set={}},f.prototype.contains=function(o){return this.set[v.createID(o)]==o},f.prototype.isEmpty=function(){return this.size()===0},f.prototype.size=function(){return Object.keys(this.set).length},f.prototype.addAllTo=function(o){var n=Object.keys(this.set),a=n.length;for(var u=0;u<a;u++)o.push(this.set[n[u]])},f.prototype.size=function(){return Object.keys(this.set).length},f.prototype.addAll=function(o){var n=o.length;for(var a=0;a<n;a++){var u=o[a];this.add(u)}},w.exports=f},function(w,S,D){function v(){}v.multMat=function(f,o){var n=[];for(var a=0;a<f.length;a++){n[a]=[];for(var u=0;u<o[0].length;u++){n[a][u]=0;for(var r=0;r<f[0].length;r++)n[a][u]+=f[a][r]*o[r][u]}}return n},v.transpose=function(f){var o=[];for(var n=0;n<f[0].length;n++){o[n]=[];for(var a=0;a<f.length;a++)o[n][a]=f[a][n]}return o},v.multCons=function(f,o){var n=[];for(var a=0;a<f.length;a++)n[a]=f[a]*o;return n},v.minusOp=function(f,o){var n=[];for(var a=0;a<f.length;a++)n[a]=f[a]-o[a];return n},v.dotProduct=function(f,o){var n=0;for(var a=0;a<f.length;a++)n+=f[a]*o[a];return n},v.mag=function(f){return Math.sqrt(this.dotProduct(f,f))},v.normalize=function(f){var o=[],n=this.mag(f);for(var a=0;a<f.length;a++)o[a]=f[a]/n;return o},v.multGamma=function(f){var o=[],n=0;for(var a=0;a<f.length;a++)n+=f[a];n*=-1/f.length;for(var u=0;u<f.length;u++)o[u]=n+f[u];return o},v.multL=function(f,o,n){var a=[],u=[],r=[];for(var p=0;p<o[0].length;p++){var i=0;for(var e=0;e<o.length;e++)i+=-0.5*o[e][p]*f[e];u[p]=i}for(var g=0;g<n.length;g++){var d=0;for(var c=0;c<n.length;c++)d+=n[g][c]*u[c];r[g]=d}for(var I=0;I<o.length;I++){var T=0;for(var N=0;N<o[0].length;N++)T+=o[I][N]*r[N];a[I]=T}return a},w.exports=v},function(w,S,D){var v=function(){function a(u,r){for(var p=0;p<r.length;p++){var i=r[p];if(i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i)i.writable=!0;Object.defineProperty(u,i.key,i)}}return function(u,r,p){if(r)a(u.prototype,r);if(p)a(u,p);return u}}();function f(a,u){if(!(a instanceof u))throw TypeError("Cannot call a class as a function")}var o=D(11),n=function(){function a(u,r){if(f(this,a),r!==null||r!==void 0)this.compareFunction=this._defaultCompareFunction;var p=void 0;if(u instanceof o)p=u.size();else p=u.length;this._quicksort(u,0,p-1)}return v(a,[{key:"_quicksort",value:function(r,p,i){if(p<i){var e=this._partition(r,p,i);this._quicksort(r,p,e),this._quicksort(r,e+1,i)}}},{key:"_partition",value:function(r,p,i){var e=this._get(r,p),g=p,d=i;while(!0){while(this.compareFunction(e,this._get(r,d)))d--;while(this.compareFunction(this._get(r,g),e))g++;if(g<d)this._swap(r,g,d),g++,d--;else return d}}},{key:"_get",value:function(r,p){if(r instanceof o)return r.get_object_at(p);else return r[p]}},{key:"_set",value:function(r,p,i){if(r instanceof o)r.set_object_at(p,i);else r[p]=i}},{key:"_swap",value:function(r,p,i){var e=this._get(r,p);this._set(r,p,this._get(r,i)),this._set(r,i,e)}},{key:"_defaultCompareFunction",value:function(r,p){return p>r}}]),a}();w.exports=n},function(w,S,D){function v(){}v.svd=function(f){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=f.length,this.n=f[0].length;var o=Math.min(this.m,this.n);this.s=function(Wt){var bt=[];while(Wt-- >0)bt.push(0);return bt}(Math.min(this.m+1,this.n)),this.U=function(Wt){var bt=function oe($t){if($t.length==0)return 0;else{var jt=[];for(var ne=0;ne<$t[0];ne++)jt.push(oe($t.slice(1)));return jt}};return bt(Wt)}([this.m,o]),this.V=function(Wt){var bt=function oe($t){if($t.length==0)return 0;else{var jt=[];for(var ne=0;ne<$t[0];ne++)jt.push(oe($t.slice(1)));return jt}};return bt(Wt)}([this.n,this.n]);var n=function(Wt){var bt=[];while(Wt-- >0)bt.push(0);return bt}(this.n),a=function(Wt){var bt=[];while(Wt-- >0)bt.push(0);return bt}(this.m),u=!0,r=!0,p=Math.min(this.m-1,this.n),i=Math.max(0,Math.min(this.n-2,this.m));for(var e=0;e<Math.max(p,i);e++){if(e<p){this.s[e]=0;for(var g=e;g<this.m;g++)this.s[e]=v.hypot(this.s[e],f[g][e]);if(this.s[e]!==0){if(f[e][e]<0)this.s[e]=-this.s[e];for(var d=e;d<this.m;d++)f[d][e]/=this.s[e];f[e][e]+=1}this.s[e]=-this.s[e]}for(var c=e+1;c<this.n;c++){if(function(Wt,bt){return Wt&&bt}(e<p,this.s[e]!==0)){var I=0;for(var T=e;T<this.m;T++)I+=f[T][e]*f[T][c];I=-I/f[e][e];for(var N=e;N<this.m;N++)f[N][c]+=I*f[N][e]}n[c]=f[e][c]}if(function(Wt,bt){return Wt&&bt}(u,e<p))for(var x=e;x<this.m;x++)this.U[x][e]=f[x][e];if(e<i){n[e]=0;for(var X=e+1;X<this.n;X++)n[e]=v.hypot(n[e],n[X]);if(n[e]!==0){if(n[e+1]<0)n[e]=-n[e];for(var R=e+1;R<this.n;R++)n[R]/=n[e];n[e+1]+=1}if(n[e]=-n[e],function(Wt,bt){return Wt&&bt}(e+1<this.m,n[e]!==0)){for(var V=e+1;V<this.m;V++)a[V]=0;for(var _=e+1;_<this.n;_++)for(var Q=e+1;Q<this.m;Q++)a[Q]+=n[_]*f[Q][_];for(var lt=e+1;lt<this.n;lt++){var P=-n[lt]/n[e+1];for(var tt=e+1;tt<this.m;tt++)f[tt][lt]+=P*a[tt]}}if(r)for(var s=e+1;s<this.n;s++)this.V[s][e]=n[s]}}var L=Math.min(this.n,this.m+1);if(p<this.n)this.s[p]=f[p][p];if(this.m<L)this.s[L-1]=0;if(i+1<L)n[i]=f[i][L-1];if(n[L-1]=0,u){for(var E=p;E<o;E++){for(var A=0;A<this.m;A++)this.U[A][E]=0;this.U[E][E]=1}for(var y=p-1;y>=0;y--)if(this.s[y]!==0){for(var U=y+1;U<o;U++){var b=0;for(var k=y;k<this.m;k++)b+=this.U[k][y]*this.U[k][U];b=-b/this.U[y][y];for(var B=y;B<this.m;B++)this.U[B][U]+=b*this.U[B][y]}for(var W=y;W<this.m;W++)this.U[W][y]=-this.U[W][y];this.U[y][y]=1+this.U[y][y];for(var st=0;st<y-1;st++)this.U[st][y]=0}else{for(var dt=0;dt<this.m;dt++)this.U[dt][y]=0;this.U[y][y]=1}}if(r)for(var Z=this.n-1;Z>=0;Z--){if(function(Wt,bt){return Wt&&bt}(Z<i,n[Z]!==0))for(var ut=Z+1;ut<o;ut++){var nt=0;for(var F=Z+1;F<this.n;F++)nt+=this.V[F][Z]*this.V[F][ut];nt=-nt/this.V[Z+1][Z];for(var K=Z+1;K<this.n;K++)this.V[K][ut]+=nt*this.V[K][Z]}for(var et=0;et<this.n;et++)this.V[et][Z]=0;this.V[Z][Z]=1}var ct=L-1,Nt=0,Pt=Math.pow(2,-52),Bt=Math.pow(2,-966);while(L>0){var ft=void 0,Jt=void 0;for(ft=L-2;ft>=-1;ft--){if(ft===-1)break;if(Math.abs(n[ft])<=Bt+Pt*(Math.abs(this.s[ft])+Math.abs(this.s[ft+1]))){n[ft]=0;break}}if(ft===L-2)Jt=4;else{var Xt=void 0;for(Xt=L-1;Xt>=ft;Xt--){if(Xt===ft)break;var Et=(Xt!==L?Math.abs(n[Xt]):0)+(Xt!==ft+1?Math.abs(n[Xt-1]):0);if(Math.abs(this.s[Xt])<=Bt+Pt*Et){this.s[Xt]=0;break}}if(Xt===ft)Jt=3;else if(Xt===L-1)Jt=1;else Jt=2,ft=Xt}switch(ft++,Jt){case 1:{var vt=n[L-2];n[L-2]=0;for(var xt=L-2;xt>=ft;xt--){var Rt=v.hypot(this.s[xt],vt),Gt=this.s[xt]/Rt,St=vt/Rt;if(this.s[xt]=Rt,xt!==ft)vt=-St*n[xt-1],n[xt-1]=Gt*n[xt-1];if(r)for(var Ft=0;Ft<this.n;Ft++)Rt=Gt*this.V[Ft][xt]+St*this.V[Ft][L-1],this.V[Ft][L-1]=-St*this.V[Ft][xt]+Gt*this.V[Ft][L-1],this.V[Ft][xt]=Rt}}break;case 2:{var Ht=n[ft-1];n[ft-1]=0;for(var zt=ft;zt<L;zt++){var te=v.hypot(this.s[zt],Ht),qt=this.s[zt]/te,Kt=Ht/te;if(this.s[zt]=te,Ht=-Kt*n[zt],n[zt]=qt*n[zt],u)for(var kt=0;kt<this.m;kt++)te=qt*this.U[kt][zt]+Kt*this.U[kt][ft-1],this.U[kt][ft-1]=-Kt*this.U[kt][zt]+qt*this.U[kt][ft-1],this.U[kt][zt]=te}}break;case 3:{var J=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[L-1]),Math.abs(this.s[L-2])),Math.abs(n[L-2])),Math.abs(this.s[ft])),Math.abs(n[ft])),rt=this.s[L-1]/J,it=this.s[L-2]/J,at=n[L-2]/J,ot=this.s[ft]/J,gt=n[ft]/J,At=((it+rt)*(it-rt)+at*at)/2,Mt=rt*at*(rt*at),ht=0;if(function(Wt,bt){return Wt||bt}(At!==0,Mt!==0)){if(ht=Math.sqrt(At*At+Mt),At<0)ht=-ht;ht=Mt/(At+ht)}var Lt=(ot+rt)*(ot-rt)+ht,Ct=ot*gt;for(var pt=ft;pt<L-1;pt++){var Ot=v.hypot(Lt,Ct),Ut=Lt/Ot,Tt=Ct/Ot;if(pt!==ft)n[pt-1]=Ot;if(Lt=Ut*this.s[pt]+Tt*n[pt],n[pt]=Ut*n[pt]-Tt*this.s[pt],Ct=Tt*this.s[pt+1],this.s[pt+1]=Ut*this.s[pt+1],r)for(var yt=0;yt<this.n;yt++)Ot=Ut*this.V[yt][pt]+Tt*this.V[yt][pt+1],this.V[yt][pt+1]=-Tt*this.V[yt][pt]+Ut*this.V[yt][pt+1],this.V[yt][pt]=Ot;if(Ot=v.hypot(Lt,Ct),Ut=Lt/Ot,Tt=Ct/Ot,this.s[pt]=Ot,Lt=Ut*n[pt]+Tt*this.s[pt+1],this.s[pt+1]=-Tt*n[pt]+Ut*this.s[pt+1],Ct=Tt*n[pt+1],n[pt+1]=Ut*n[pt+1],u&&pt<this.m-1)for(var Dt=0;Dt<this.m;Dt++)Ot=Ut*this.U[Dt][pt]+Tt*this.U[Dt][pt+1],this.U[Dt][pt+1]=-Tt*this.U[Dt][pt]+Ut*this.U[Dt][pt+1],this.U[Dt][pt]=Ot}n[L-2]=Lt,Nt=Nt+1}break;case 4:{if(this.s[ft]<=0){if(this.s[ft]=this.s[ft]<0?-this.s[ft]:0,r)for(var mt=0;mt<=ct;mt++)this.V[mt][ft]=-this.V[mt][ft]}while(ft<ct){if(this.s[ft]>=this.s[ft+1])break;var wt=this.s[ft];if(this.s[ft]=this.s[ft+1],this.s[ft+1]=wt,r&&ft<this.n-1)for(var Zt=0;Zt<this.n;Zt++)wt=this.V[Zt][ft+1],this.V[Zt][ft+1]=this.V[Zt][ft],this.V[Zt][ft]=wt;if(u&&ft<this.m-1)for(var Vt=0;Vt<this.m;Vt++)wt=this.U[Vt][ft+1],this.U[Vt][ft+1]=this.U[Vt][ft],this.U[Vt][ft]=wt;ft++}Nt=0,L--}break}}var re={U:this.U,V:this.V,S:this.s};return re},v.hypot=function(f,o){var n=void 0;if(Math.abs(f)>Math.abs(o))n=o/f,n=Math.abs(f)*Math.sqrt(1+n*n);else if(o!=0)n=f/o,n=Math.abs(o)*Math.sqrt(1+n*n);else n=0;return n},w.exports=v},function(w,S,D){var v=function(){function n(a,u){for(var r=0;r<u.length;r++){var p=u[r];if(p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p)p.writable=!0;Object.defineProperty(a,p.key,p)}}return function(a,u,r){if(u)n(a.prototype,u);if(r)n(a,r);return a}}();function f(n,a){if(!(n instanceof a))throw TypeError("Cannot call a class as a function")}var o=function(){function n(a,u){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;f(this,n),this.sequence1=a,this.sequence2=u,this.match_score=r,this.mismatch_penalty=p,this.gap_penalty=i,this.iMax=a.length+1,this.jMax=u.length+1,this.grid=Array(this.iMax);for(var e=0;e<this.iMax;e++){this.grid[e]=Array(this.jMax);for(var g=0;g<this.jMax;g++)this.grid[e][g]=0}this.tracebackGrid=Array(this.iMax);for(var d=0;d<this.iMax;d++){this.tracebackGrid[d]=Array(this.jMax);for(var c=0;c<this.jMax;c++)this.tracebackGrid[d][c]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return v(n,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var u=1;u<this.jMax;u++)this.grid[0][u]=this.grid[0][u-1]+this.gap_penalty,this.tracebackGrid[0][u]=[!1,!1,!0];for(var r=1;r<this.iMax;r++)this.grid[r][0]=this.grid[r-1][0]+this.gap_penalty,this.tracebackGrid[r][0]=[!1,!0,!1];for(var p=1;p<this.iMax;p++)for(var i=1;i<this.jMax;i++){var e=void 0;if(this.sequence1[p-1]===this.sequence2[i-1])e=this.grid[p-1][i-1]+this.match_score;else e=this.grid[p-1][i-1]+this.mismatch_penalty;var g=this.grid[p-1][i]+this.gap_penalty,d=this.grid[p][i-1]+this.gap_penalty,c=[e,g,d],I=this.arrayAllMaxIndexes(c);this.grid[p][i]=c[I[0]],this.tracebackGrid[p][i]=[I.includes(0),I.includes(1),I.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var u=[];u.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});while(u[0]){var r=u[0],p=this.tracebackGrid[r.pos[0]][r.pos[1]];if(p[0])u.push({pos:[r.pos[0]-1,r.pos[1]-1],seq1:this.sequence1[r.pos[0]-1]+r.seq1,seq2:this.sequence2[r.pos[1]-1]+r.seq2});if(p[1])u.push({pos:[r.pos[0]-1,r.pos[1]],seq1:this.sequence1[r.pos[0]-1]+r.seq1,seq2:"-"+r.seq2});if(p[2])u.push({pos:[r.pos[0],r.pos[1]-1],seq1:"-"+r.seq1,seq2:this.sequence2[r.pos[1]-1]+r.seq2});if(r.pos[0]===0&&r.pos[1]===0)this.alignments.push({sequence1:r.seq1,sequence2:r.seq2});u.shift()}return this.alignments}},{key:"getAllIndexes",value:function(u,r){var p=[],i=-1;while((i=u.indexOf(r,i+1))!==-1)p.push(i);return p}},{key:"arrayAllMaxIndexes",value:function(u){return this.getAllIndexes(u,Math.max.apply(null,u))}}]),n}();w.exports=o},function(w,S,D){var v=function(){return};v.FDLayout=D(18),v.FDLayoutConstants=D(4),v.FDLayoutEdge=D(19),v.FDLayoutNode=D(20),v.DimensionD=D(21),v.HashMap=D(22),v.HashSet=D(23),v.IGeometry=D(8),v.IMath=D(9),v.Integer=D(10),v.Point=D(12),v.PointD=D(5),v.RandomSeed=D(16),v.RectangleD=D(13),v.Transform=D(17),v.UniqueIDGeneretor=D(14),v.Quicksort=D(25),v.LinkedList=D(11),v.LGraphObject=D(2),v.LGraph=D(6),v.LEdge=D(1),v.LGraphManager=D(7),v.LNode=D(3),v.Layout=D(15),v.LayoutConstants=D(0),v.NeedlemanWunsch=D(27),v.Matrix=D(24),v.SVD=D(26),w.exports=v},function(w,S,D){function v(){this.listeners=[]}var f=v.prototype;f.addListener=function(o,n){this.listeners.push({event:o,callback:n})},f.removeListener=function(o,n){for(var a=this.listeners.length;a>=0;a--){var u=this.listeners[a];if(u.event===o&&u.callback===n)this.listeners.splice(a,1)}},f.emit=function(o,n){for(var a=0;a<this.listeners.length;a++){var u=this.listeners[a];if(o===u.event)u.callback(n)}},w.exports=v}])})});var Se=Mn(function(Ee,Re){(function(S,D){if(typeof Ee==="object"&&typeof Re==="object")Re.exports=D(Ie());else if(typeof define==="function"&&define.amd)define(["layout-base"],D);else if(typeof Ee==="object")Ee.coseBase=D(Ie());else S.coseBase=D(S.layoutBase)})(Ee,function(w){return(()=>{var S={45:(o,n,a)=>{var u={};u.layoutBase=a(551),u.CoSEConstants=a(806),u.CoSEEdge=a(767),u.CoSEGraph=a(880),u.CoSEGraphManager=a(578),u.CoSELayout=a(765),u.CoSENode=a(991),u.ConstraintHandler=a(902),o.exports=u},806:(o,n,a)=>{var u=a(551).FDLayoutConstants;function r(){}for(var p in u)r[p]=u[p];r.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,r.DEFAULT_RADIAL_SEPARATION=u.DEFAULT_EDGE_LENGTH,r.DEFAULT_COMPONENT_SEPERATION=60,r.TILE=!0,r.TILING_PADDING_VERTICAL=10,r.TILING_PADDING_HORIZONTAL=10,r.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,r.ENFORCE_CONSTRAINTS=!0,r.APPLY_LAYOUT=!0,r.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,r.TREE_REDUCTION_ON_INCREMENTAL=!0,r.PURE_INCREMENTAL=r.DEFAULT_INCREMENTAL,o.exports=r},767:(o,n,a)=>{var u=a(551).FDLayoutEdge;function r(i,e,g){u.call(this,i,e,g)}r.prototype=Object.create(u.prototype);for(var p in u)r[p]=u[p];o.exports=r},880:(o,n,a)=>{var u=a(551).LGraph;function r(i,e,g){u.call(this,i,e,g)}r.prototype=Object.create(u.prototype);for(var p in u)r[p]=u[p];o.exports=r},578:(o,n,a)=>{var u=a(551).LGraphManager;function r(i){u.call(this,i)}r.prototype=Object.create(u.prototype);for(var p in u)r[p]=u[p];o.exports=r},765:(o,n,a)=>{var u=a(551).FDLayout,r=a(578),p=a(880),i=a(991),e=a(767),g=a(806),d=a(902),c=a(551).FDLayoutConstants,I=a(551).LayoutConstants,T=a(551).Point,N=a(551).PointD,x=a(551).DimensionD,X=a(551).Layout,R=a(551).Integer,V=a(551).IGeometry,_=a(551).LGraph,Q=a(551).Transform,lt=a(551).LinkedList;function P(){u.call(this),this.toBeTiled={},this.constraints={}}P.prototype=Object.create(u.prototype);for(var tt in u)P[tt]=u[tt];P.prototype.newGraphManager=function(){var s=new r(this);return this.graphManager=s,s},P.prototype.newGraph=function(s){return new p(null,this.graphManager,s)},P.prototype.newNode=function(s){return new i(this.graphManager,s)},P.prototype.newEdge=function(s){return new e(null,null,s)},P.prototype.initParameters=function(){if(u.prototype.initParameters.call(this,arguments),!this.isSubLayout){if(g.DEFAULT_EDGE_LENGTH<10)this.idealEdgeLength=10;else this.idealEdgeLength=g.DEFAULT_EDGE_LENGTH;this.useSmartIdealEdgeLengthCalculation=g.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1}},P.prototype.initSpringEmbedder=function(){u.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=0.04,this.coolingAdjuster=1},P.prototype.layout=function(){var s=I.DEFAULT_CREATE_BENDS_AS_NEEDED;if(s)this.createBendpoints(),this.graphManager.resetAllEdges();return this.level=0,this.classicLayout()},P.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){var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var L=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(A){return L.has(A)});this.graphManager.setAllNodesToApplyGravitation(E),this.positionNodesRandomly()}}else if(g.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var L=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(U){return L.has(U)});this.graphManager.setAllNodesToApplyGravitation(E)}if(Object.keys(this.constraints).length>0)d.handleConstraints(this),this.initConstraintVariables();if(this.initSpringEmbedder(),g.APPLY_LAYOUT)this.runSpringEmbedder();return!0},P.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.coolingCycle++,this.layoutQuality==0)this.coolingAdjuster=this.coolingCycle;else if(this.layoutQuality==1)this.coolingAdjuster=this.coolingCycle/3;this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),L=this.nodesWithGravity.filter(function(y){return s.has(y)});if(this.graphManager.setAllNodesToApplyGravitation(L),this.graphManager.updateBounds(),this.updateGrid(),g.PURE_INCREMENTAL)this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL/2;else this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;if(this.afterGrowthIterations%10==0)this.graphManager.updateBounds(),this.updateGrid();if(g.PURE_INCREMENTAL)this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100);else this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100);this.afterGrowthIterations++}var E=!this.isTreeGrowing&&!this.isGrowthFinished,A=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(E,A),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},P.prototype.getPositionsData=function(){var s=this.graphManager.getAllNodes(),L={};for(var E=0;E<s.length;E++){var A=s[E].rect,y=s[E].id;L[y]={id:y,x:A.getCenterX(),y:A.getCenterY(),w:A.width,h:A.height}}return L},P.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var s=!1;if(c.ANIMATE==="during")this.emit("layoutstarted");else{while(!s)s=this.tick();this.graphManager.updateBounds()}},P.prototype.moveNodes=function(){var s=this.getAllNodes(),L;for(var E=0;E<s.length;E++)L=s[E],L.calculateDisplacement();if(Object.keys(this.constraints).length>0)this.updateDisplacements();for(var E=0;E<s.length;E++)L=s[E],L.move()},P.prototype.initConstraintVariables=function(){var s=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;var L=this.graphManager.getAllNodes();for(var E=0;E<L.length;E++){var A=L[E];this.idToNodeMap.set(A.id,A)}var y=function F(K){var et=K.getChild().getNodes(),ct,Nt=0;for(var Pt=0;Pt<et.length;Pt++)if(ct=et[Pt],ct.getChild()==null){if(s.fixedNodeSet.has(ct.id))Nt+=100}else Nt+=F(ct);return Nt};if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(et){s.fixedNodeSet.add(et.nodeId)});var L=this.graphManager.getAllNodes(),A;for(var E=0;E<L.length;E++)if(A=L[E],A.getChild()!=null){var U=y(A);if(U>0)A.fixedNodeWeight=U}}if(this.constraints.relativePlacementConstraint){var b=new Map,k=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(F){s.fixedNodesOnHorizontal.add(F),s.fixedNodesOnVertical.add(F)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var B=this.constraints.alignmentConstraint.vertical;for(var E=0;E<B.length;E++)this.dummyToNodeForVerticalAlignment.set("dummy"+E,[]),B[E].forEach(function(K){if(b.set(K,"dummy"+E),s.dummyToNodeForVerticalAlignment.get("dummy"+E).push(K),s.fixedNodeSet.has(K))s.fixedNodesOnHorizontal.add("dummy"+E)})}if(this.constraints.alignmentConstraint.horizontal){var W=this.constraints.alignmentConstraint.horizontal;for(var E=0;E<W.length;E++)this.dummyToNodeForHorizontalAlignment.set("dummy"+E,[]),W[E].forEach(function(K){if(k.set(K,"dummy"+E),s.dummyToNodeForHorizontalAlignment.get("dummy"+E).push(K),s.fixedNodeSet.has(K))s.fixedNodesOnVertical.add("dummy"+E)})}}if(g.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(F){var K,et,ct;for(ct=F.length-1;ct>=2*F.length/3;ct--)K=Math.floor(Math.random()*(ct+1)),et=F[ct],F[ct]=F[K],F[K]=et;return F},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(F){if(F.left){var K=b.has(F.left)?b.get(F.left):F.left,et=b.has(F.right)?b.get(F.right):F.right;if(!s.nodesInRelativeHorizontal.includes(K))if(s.nodesInRelativeHorizontal.push(K),s.nodeToRelativeConstraintMapHorizontal.set(K,[]),s.dummyToNodeForVerticalAlignment.has(K))s.nodeToTempPositionMapHorizontal.set(K,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(K)[0]).getCenterX());else s.nodeToTempPositionMapHorizontal.set(K,s.idToNodeMap.get(K).getCenterX());if(!s.nodesInRelativeHorizontal.includes(et))if(s.nodesInRelativeHorizontal.push(et),s.nodeToRelativeConstraintMapHorizontal.set(et,[]),s.dummyToNodeForVerticalAlignment.has(et))s.nodeToTempPositionMapHorizontal.set(et,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(et)[0]).getCenterX());else s.nodeToTempPositionMapHorizontal.set(et,s.idToNodeMap.get(et).getCenterX());s.nodeToRelativeConstraintMapHorizontal.get(K).push({right:et,gap:F.gap}),s.nodeToRelativeConstraintMapHorizontal.get(et).push({left:K,gap:F.gap})}else{var ct=k.has(F.top)?k.get(F.top):F.top,Nt=k.has(F.bottom)?k.get(F.bottom):F.bottom;if(!s.nodesInRelativeVertical.includes(ct))if(s.nodesInRelativeVertical.push(ct),s.nodeToRelativeConstraintMapVertical.set(ct,[]),s.dummyToNodeForHorizontalAlignment.has(ct))s.nodeToTempPositionMapVertical.set(ct,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(ct)[0]).getCenterY());else s.nodeToTempPositionMapVertical.set(ct,s.idToNodeMap.get(ct).getCenterY());if(!s.nodesInRelativeVertical.includes(Nt))if(s.nodesInRelativeVertical.push(Nt),s.nodeToRelativeConstraintMapVertical.set(Nt,[]),s.dummyToNodeForHorizontalAlignment.has(Nt))s.nodeToTempPositionMapVertical.set(Nt,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(Nt)[0]).getCenterY());else s.nodeToTempPositionMapVertical.set(Nt,s.idToNodeMap.get(Nt).getCenterY());s.nodeToRelativeConstraintMapVertical.get(ct).push({bottom:Nt,gap:F.gap}),s.nodeToRelativeConstraintMapVertical.get(Nt).push({top:ct,gap:F.gap})}});else{var st=new Map,dt=new Map;this.constraints.relativePlacementConstraint.forEach(function(F){if(F.left){var K=b.has(F.left)?b.get(F.left):F.left,et=b.has(F.right)?b.get(F.right):F.right;if(st.has(K))st.get(K).push(et);else st.set(K,[et]);if(st.has(et))st.get(et).push(K);else st.set(et,[K])}else{var ct=k.has(F.top)?k.get(F.top):F.top,Nt=k.has(F.bottom)?k.get(F.bottom):F.bottom;if(dt.has(ct))dt.get(ct).push(Nt);else dt.set(ct,[Nt]);if(dt.has(Nt))dt.get(Nt).push(ct);else dt.set(Nt,[ct])}});var Z=function(K,et){var ct=[],Nt=[],Pt=new lt,Bt=new Set,ft=0;return K.forEach(function(Jt,Xt){if(!Bt.has(Xt)){ct[ft]=[],Nt[ft]=!1;var Et=Xt;Pt.push(Et),Bt.add(Et),ct[ft].push(Et);while(Pt.length!=0){if(Et=Pt.shift(),et.has(Et))Nt[ft]=!0;var vt=K.get(Et);vt.forEach(function(xt){if(!Bt.has(xt))Pt.push(xt),Bt.add(xt),ct[ft].push(xt)})}ft++}}),{components:ct,isFixed:Nt}},ut=Z(st,s.fixedNodesOnHorizontal);this.componentsOnHorizontal=ut.components,this.fixedComponentsOnHorizontal=ut.isFixed;var nt=Z(dt,s.fixedNodesOnVertical);this.componentsOnVertical=nt.components,this.fixedComponentsOnVertical=nt.isFixed}}},P.prototype.updateDisplacements=function(){var s=this;if(this.constraints.fixedNodeConstraint)this.constraints.fixedNodeConstraint.forEach(function(nt){var F=s.idToNodeMap.get(nt.nodeId);F.displacementX=0,F.displacementY=0});if(this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var L=this.constraints.alignmentConstraint.vertical;for(var E=0;E<L.length;E++){var A=0;for(var y=0;y<L[E].length;y++){if(this.fixedNodeSet.has(L[E][y])){A=0;break}A+=this.idToNodeMap.get(L[E][y]).displacementX}var U=A/L[E].length;for(var y=0;y<L[E].length;y++)this.idToNodeMap.get(L[E][y]).displacementX=U}}if(this.constraints.alignmentConstraint.horizontal){var b=this.constraints.alignmentConstraint.horizontal;for(var E=0;E<b.length;E++){var k=0;for(var y=0;y<b[E].length;y++){if(this.fixedNodeSet.has(b[E][y])){k=0;break}k+=this.idToNodeMap.get(b[E][y]).displacementY}var B=k/b[E].length;for(var y=0;y<b[E].length;y++)this.idToNodeMap.get(b[E][y]).displacementY=B}}}if(this.constraints.relativePlacementConstraint)if(g.RELAX_MOVEMENT_ON_CONSTRAINTS){if(this.totalIterations%10==0)this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical);this.nodesInRelativeHorizontal.forEach(function(nt){if(!s.fixedNodesOnHorizontal.has(nt)){var F=0;if(s.dummyToNodeForVerticalAlignment.has(nt))F=s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(nt)[0]).displacementX;else F=s.idToNodeMap.get(nt).displacementX;if(s.nodeToRelativeConstraintMapHorizontal.get(nt).forEach(function(K){if(K.right){var et=s.nodeToTempPositionMapHorizontal.get(K.right)-s.nodeToTempPositionMapHorizontal.get(nt)-F;if(et<K.gap)F-=K.gap-et}else{var et=s.nodeToTempPositionMapHorizontal.get(nt)-s.nodeToTempPositionMapHorizontal.get(K.left)+F;if(et<K.gap)F+=K.gap-et}}),s.nodeToTempPositionMapHorizontal.set(nt,s.nodeToTempPositionMapHorizontal.get(nt)+F),s.dummyToNodeForVerticalAlignment.has(nt))s.dummyToNodeForVerticalAlignment.get(nt).forEach(function(K){s.idToNodeMap.get(K).displacementX=F});else s.idToNodeMap.get(nt).displacementX=F}}),this.nodesInRelativeVertical.forEach(function(nt){if(!s.fixedNodesOnHorizontal.has(nt)){var F=0;if(s.dummyToNodeForHorizontalAlignment.has(nt))F=s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(nt)[0]).displacementY;else F=s.idToNodeMap.get(nt).displacementY;if(s.nodeToRelativeConstraintMapVertical.get(nt).forEach(function(K){if(K.bottom){var et=s.nodeToTempPositionMapVertical.get(K.bottom)-s.nodeToTempPositionMapVertical.get(nt)-F;if(et<K.gap)F-=K.gap-et}else{var et=s.nodeToTempPositionMapVertical.get(nt)-s.nodeToTempPositionMapVertical.get(K.top)+F;if(et<K.gap)F+=K.gap-et}}),s.nodeToTempPositionMapVertical.set(nt,s.nodeToTempPositionMapVertical.get(nt)+F),s.dummyToNodeForHorizontalAlignment.has(nt))s.dummyToNodeForHorizontalAlignment.get(nt).forEach(function(K){s.idToNodeMap.get(K).displacementY=F});else s.idToNodeMap.get(nt).displacementY=F}})}else{for(var E=0;E<this.componentsOnHorizontal.length;E++){var W=this.componentsOnHorizontal[E];if(this.fixedComponentsOnHorizontal[E])for(var y=0;y<W.length;y++)if(this.dummyToNodeForVerticalAlignment.has(W[y]))this.dummyToNodeForVerticalAlignment.get(W[y]).forEach(function(K){s.idToNodeMap.get(K).displacementX=0});else this.idToNodeMap.get(W[y]).displacementX=0;else{var st=0,dt=0;for(var y=0;y<W.length;y++)if(this.dummyToNodeForVerticalAlignment.has(W[y])){var Z=this.dummyToNodeForVerticalAlignment.get(W[y]);st+=Z.length*this.idToNodeMap.get(Z[0]).displacementX,dt+=Z.length}else st+=this.idToNodeMap.get(W[y]).displacementX,dt++;var ut=st/dt;for(var y=0;y<W.length;y++)if(this.dummyToNodeForVerticalAlignment.has(W[y]))this.dummyToNodeForVerticalAlignment.get(W[y]).forEach(function(K){s.idToNodeMap.get(K).displacementX=ut});else this.idToNodeMap.get(W[y]).displacementX=ut}}for(var E=0;E<this.componentsOnVertical.length;E++){var W=this.componentsOnVertical[E];if(this.fixedComponentsOnVertical[E])for(var y=0;y<W.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(W[y]))this.dummyToNodeForHorizontalAlignment.get(W[y]).forEach(function(et){s.idToNodeMap.get(et).displacementY=0});else this.idToNodeMap.get(W[y]).displacementY=0;else{var st=0,dt=0;for(var y=0;y<W.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(W[y])){var Z=this.dummyToNodeForHorizontalAlignment.get(W[y]);st+=Z.length*this.idToNodeMap.get(Z[0]).displacementY,dt+=Z.length}else st+=this.idToNodeMap.get(W[y]).displacementY,dt++;var ut=st/dt;for(var y=0;y<W.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(W[y]))this.dummyToNodeForHorizontalAlignment.get(W[y]).forEach(function(Pt){s.idToNodeMap.get(Pt).displacementY=ut});else this.idToNodeMap.get(W[y]).displacementY=ut}}}},P.prototype.calculateNodesToApplyGravitationTo=function(){var s=[],L,E=this.graphManager.getGraphs(),A=E.length,y;for(y=0;y<A;y++)if(L=E[y],L.updateConnected(),!L.isConnected)s=s.concat(L.getNodes());return s},P.prototype.createBendpoints=function(){var s=[];s=s.concat(this.graphManager.getAllEdges());var L=new Set,E;for(E=0;E<s.length;E++){var A=s[E];if(!L.has(A)){var y=A.getSource(),U=A.getTarget();if(y==U)A.getBendpoints().push(new N),A.getBendpoints().push(new N),this.createDummyNodesForBendpoints(A),L.add(A);else{var b=[];if(b=b.concat(y.getEdgeListToNode(U)),b=b.concat(U.getEdgeListToNode(y)),!L.has(b[0])){if(b.length>1){var k;for(k=0;k<b.length;k++){var B=b[k];B.getBendpoints().push(new N),this.createDummyNodesForBendpoints(B)}}b.forEach(function(W){L.add(W)})}}}if(L.size==s.length)break}},P.prototype.positionNodesRadially=function(s){var L=new T(0,0),E=Math.ceil(Math.sqrt(s.length)),A=0,y=0,U=0,b=new N(0,0);for(var k=0;k<s.length;k++){if(k%E==0){if(U=0,y=A,k!=0)y+=g.DEFAULT_COMPONENT_SEPERATION;A=0}var B=s[k],W=X.findCenterOfTree(B);if(L.x=U,L.y=y,b=P.radialLayout(B,W,L),b.y>A)A=Math.floor(b.y);U=Math.floor(b.x+g.DEFAULT_COMPONENT_SEPERATION)}this.transform(new N(I.WORLD_CENTER_X-b.x/2,I.WORLD_CENTER_Y-b.y/2))},P.radialLayout=function(s,L,E){var A=Math.max(this.maxDiagonalInTree(s),g.DEFAULT_RADIAL_SEPARATION);P.branchRadialLayout(L,null,0,359,0,A);var y=_.calculateBounds(s),U=new Q;U.setDeviceOrgX(y.getMinX()),U.setDeviceOrgY(y.getMinY()),U.setWorldOrgX(E.x),U.setWorldOrgY(E.y);for(var b=0;b<s.length;b++){var k=s[b];k.transform(U)}var B=new N(y.getMaxX(),y.getMaxY());return U.inverseTransformPoint(B)},P.branchRadialLayout=function(s,L,E,A,y,U){var b=(A-E+1)/2;if(b<0)b+=180;var k=(b+E)%360,B=k*V.TWO_PI/360,W=Math.cos(B),st=y*Math.cos(B),dt=y*Math.sin(B);s.setCenter(st,dt);var Z=[];Z=Z.concat(s.getEdges());var ut=Z.length;if(L!=null)ut--;var nt=0,F=Z.length,K,et=s.getEdgesBetween(L);while(et.length>1){var ct=et[0];et.splice(0,1);var Nt=Z.indexOf(ct);if(Nt>=0)Z.splice(Nt,1);F--,ut--}if(L!=null)K=(Z.indexOf(et[0])+1)%F;else K=0;var Pt=Math.abs(A-E)/ut;for(var Bt=K;nt!=ut;Bt=++Bt%F){var ft=Z[Bt].getOtherEnd(s);if(ft==L)continue;var Jt=(E+nt*Pt)%360,Xt=(Jt+Pt)%360;P.branchRadialLayout(ft,s,Jt,Xt,y+U,U),nt++}},P.maxDiagonalInTree=function(s){var L=R.MIN_VALUE;for(var E=0;E<s.length;E++){var A=s[E],y=A.getDiagonal();if(y>L)L=y}return L},P.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},P.prototype.groupZeroDegreeMembers=function(){var s=this,L={};this.memberGroups={},this.idToDummyNode={};var E=[],A=this.graphManager.getAllNodes();for(var y=0;y<A.length;y++){var U=A[y],b=U.getParent();if(this.getNodeDegreeWithChildren(U)===0&&(b.id==null||!this.getToBeTiled(b)))E.push(U)}for(var y=0;y<E.length;y++){var U=E[y],k=U.getParent().id;if(typeof L[k]>"u")L[k]=[];L[k]=L[k].concat(U)}Object.keys(L).forEach(function(B){if(L[B].length>1){var W="DummyCompound_"+B;s.memberGroups[W]=L[B];var st=L[B][0].getParent(),dt=new i(s.graphManager);dt.id=W,dt.paddingLeft=st.paddingLeft||0,dt.paddingRight=st.paddingRight||0,dt.paddingBottom=st.paddingBottom||0,dt.paddingTop=st.paddingTop||0,s.idToDummyNode[W]=dt;var Z=s.getGraphManager().add(s.newGraph(),dt),ut=st.getChild();ut.add(dt);for(var nt=0;nt<L[B].length;nt++){var F=L[B][nt];ut.remove(F),Z.add(F)}}})},P.prototype.clearCompounds=function(){var s={},L={};this.performDFSOnCompounds();for(var E=0;E<this.compoundOrder.length;E++)L[this.compoundOrder[E].id]=this.compoundOrder[E],s[this.compoundOrder[E].id]=[].concat(this.compoundOrder[E].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[E].getChild()),this.compoundOrder[E].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(s,L)},P.prototype.clearZeroDegreeMembers=function(){var s=this,L=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(E){var A=s.idToDummyNode[E];if(L[E]=s.tileNodes(s.memberGroups[E],A.paddingLeft+A.paddingRight),A.rect.width=L[E].width,A.rect.height=L[E].height,A.setCenter(L[E].centerX,L[E].centerY),A.labelMarginLeft=0,A.labelMarginTop=0,g.NODE_DIMENSIONS_INCLUDE_LABELS){var y=A.rect.width,U=A.rect.height;if(A.labelWidth){if(A.labelPosHorizontal=="left")A.rect.x-=A.labelWidth,A.setWidth(y+A.labelWidth),A.labelMarginLeft=A.labelWidth;else if(A.labelPosHorizontal=="center"&&A.labelWidth>y)A.rect.x-=(A.labelWidth-y)/2,A.setWidth(A.labelWidth),A.labelMarginLeft=(A.labelWidth-y)/2;else if(A.labelPosHorizontal=="right")A.setWidth(y+A.labelWidth)}if(A.labelHeight){if(A.labelPosVertical=="top")A.rect.y-=A.labelHeight,A.setHeight(U+A.labelHeight),A.labelMarginTop=A.labelHeight;else if(A.labelPosVertical=="center"&&A.labelHeight>U)A.rect.y-=(A.labelHeight-U)/2,A.setHeight(A.labelHeight),A.labelMarginTop=(A.labelHeight-U)/2;else if(A.labelPosVertical=="bottom")A.setHeight(U+A.labelHeight)}}})},P.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var L=this.compoundOrder[s],{id:E,paddingLeft:A,paddingTop:y,labelMarginLeft:U,labelMarginTop:b}=L;this.adjustLocations(this.tiledMemberPack[E],L.rect.x,L.rect.y,A,y,U,b)}},P.prototype.repopulateZeroDegreeMembers=function(){var s=this,L=this.tiledZeroDegreePack;Object.keys(L).forEach(function(E){var A=s.idToDummyNode[E],{paddingLeft:y,paddingTop:U,labelMarginLeft:b,labelMarginTop:k}=A;s.adjustLocations(L[E],A.rect.x,A.rect.y,y,U,b,k)})},P.prototype.getToBeTiled=function(s){var L=s.id;if(this.toBeTiled[L]!=null)return this.toBeTiled[L];var E=s.getChild();if(E==null)return this.toBeTiled[L]=!1,!1;var A=E.getNodes();for(var y=0;y<A.length;y++){var U=A[y];if(this.getNodeDegree(U)>0)return this.toBeTiled[L]=!1,!1;if(U.getChild()==null){this.toBeTiled[U.id]=!1;continue}if(!this.getToBeTiled(U))return this.toBeTiled[L]=!1,!1}return this.toBeTiled[L]=!0,!0},P.prototype.getNodeDegree=function(s){var L=s.id,E=s.getEdges(),A=0;for(var y=0;y<E.length;y++){var U=E[y];if(U.getSource().id!==U.getTarget().id)A=A+1}return A},P.prototype.getNodeDegreeWithChildren=function(s){var L=this.getNodeDegree(s);if(s.getChild()==null)return L;var E=s.getChild().getNodes();for(var A=0;A<E.length;A++){var y=E[A];L+=this.getNodeDegreeWithChildren(y)}return L},P.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},P.prototype.fillCompexOrderByDFS=function(s){for(var L=0;L<s.length;L++){var E=s[L];if(E.getChild()!=null)this.fillCompexOrderByDFS(E.getChild().getNodes());if(this.getToBeTiled(E))this.compoundOrder.push(E)}},P.prototype.adjustLocations=function(s,L,E,A,y,U,b){L+=A+U,E+=y+b;var k=L;for(var B=0;B<s.rows.length;B++){var W=s.rows[B];L=k;var st=0;for(var dt=0;dt<W.length;dt++){var Z=W[dt];if(Z.rect.x=L,Z.rect.y=E,L+=Z.rect.width+s.horizontalPadding,Z.rect.height>st)st=Z.rect.height}E+=st+s.verticalPadding}},P.prototype.tileCompoundMembers=function(s,L){var E=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(A){var y=L[A];if(E.tiledMemberPack[A]=E.tileNodes(s[A],y.paddingLeft+y.paddingRight),y.rect.width=E.tiledMemberPack[A].width,y.rect.height=E.tiledMemberPack[A].height,y.setCenter(E.tiledMemberPack[A].centerX,E.tiledMemberPack[A].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,g.NODE_DIMENSIONS_INCLUDE_LABELS){var U=y.rect.width,b=y.rect.height;if(y.labelWidth){if(y.labelPosHorizontal=="left")y.rect.x-=y.labelWidth,y.setWidth(U+y.labelWidth),y.labelMarginLeft=y.labelWidth;else if(y.labelPosHorizontal=="center"&&y.labelWidth>U)y.rect.x-=(y.labelWidth-U)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-U)/2;else if(y.labelPosHorizontal=="right")y.setWidth(U+y.labelWidth)}if(y.labelHeight){if(y.labelPosVertical=="top")y.rect.y-=y.labelHeight,y.setHeight(b+y.labelHeight),y.labelMarginTop=y.labelHeight;else if(y.labelPosVertical=="center"&&y.labelHeight>b)y.rect.y-=(y.labelHeight-b)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-b)/2;else if(y.labelPosVertical=="bottom")y.setHeight(b+y.labelHeight)}}})},P.prototype.tileNodes=function(s,L){var E=this.tileNodesByFavoringDim(s,L,!0),A=this.tileNodesByFavoringDim(s,L,!1),y=this.getOrgRatio(E),U=this.getOrgRatio(A),b;if(U<y)b=A;else b=E;return b},P.prototype.getOrgRatio=function(s){var{width:L,height:E}=s,A=L/E;if(A<1)A=1/A;return A},P.prototype.calcIdealRowWidth=function(s,L){var{TILING_PADDING_VERTICAL:E,TILING_PADDING_HORIZONTAL:A}=g,y=s.length,U=0,b=0,k=0;s.forEach(function(nt){if(U+=nt.getWidth(),b+=nt.getHeight(),nt.getWidth()>k)k=nt.getWidth()});var B=U/y,W=b/y,st=Math.pow(E-A,2)+4*(B+A)*(W+E)*y,dt=(A-E+Math.sqrt(st))/(2*(B+A)),Z;if(L){if(Z=Math.ceil(dt),Z==dt)Z++}else Z=Math.floor(dt);var ut=Z*(B+A)-A;if(k>ut)ut=k;return ut+=A*2,ut},P.prototype.tileNodesByFavoringDim=function(s,L,E){var{TILING_PADDING_VERTICAL:A,TILING_PADDING_HORIZONTAL:y,TILING_COMPARE_BY:U}=g,b={rows:[],rowWidth:[],rowHeight:[],width:0,height:L,verticalPadding:A,horizontalPadding:y,centerX:0,centerY:0};if(U)b.idealRowWidth=this.calcIdealRowWidth(s,E);var k=function(F){return F.rect.width*F.rect.height},B=function(F,K){return k(K)-k(F)};s.sort(function(nt,F){var K=B;if(b.idealRowWidth)return K=U,K(nt.id,F.id);return K(nt,F)});var W=0,st=0;for(var dt=0;dt<s.length;dt++){var Z=s[dt];W+=Z.getCenterX(),st+=Z.getCenterY()}b.centerX=W/s.length,b.centerY=st/s.length;for(var dt=0;dt<s.length;dt++){var Z=s[dt];if(b.rows.length==0)this.insertNodeToRow(b,Z,0,L);else if(this.canAddHorizontal(b,Z.rect.width,Z.rect.height)){var ut=b.rows.length-1;if(!b.idealRowWidth)ut=this.getShortestRowIndex(b);this.insertNodeToRow(b,Z,ut,L)}else this.insertNodeToRow(b,Z,b.rows.length,L);this.shiftToLastRow(b)}return b},P.prototype.insertNodeToRow=function(s,L,E,A){var y=A;if(E==s.rows.length){var U=[];s.rows.push(U),s.rowWidth.push(y),s.rowHeight.push(0)}var b=s.rowWidth[E]+L.rect.width;if(s.rows[E].length>0)b+=s.horizontalPadding;if(s.rowWidth[E]=b,s.width<b)s.width=b;var k=L.rect.height;if(E>0)k+=s.verticalPadding;var B=0;if(k>s.rowHeight[E])B=s.rowHeight[E],s.rowHeight[E]=k,B=s.rowHeight[E]-B;s.height+=B,s.rows[E].push(L)},P.prototype.getShortestRowIndex=function(s){var L=-1,E=Number.MAX_VALUE;for(var A=0;A<s.rows.length;A++)if(s.rowWidth[A]<E)L=A,E=s.rowWidth[A];return L},P.prototype.getLongestRowIndex=function(s){var L=-1,E=Number.MIN_VALUE;for(var A=0;A<s.rows.length;A++)if(s.rowWidth[A]>E)L=A,E=s.rowWidth[A];return L},P.prototype.canAddHorizontal=function(s,L,E){if(s.idealRowWidth){var A=s.rows.length-1,y=s.rowWidth[A];return y+L+s.horizontalPadding<=s.idealRowWidth}var U=this.getShortestRowIndex(s);if(U<0)return!0;var b=s.rowWidth[U];if(b+s.horizontalPadding+L<=s.width)return!0;var k=0;if(s.rowHeight[U]<E){if(U>0)k=E+s.verticalPadding-s.rowHeight[U]}var B;if(s.width-b>=L+s.horizontalPadding)B=(s.height+k)/(b+L+s.horizontalPadding);else B=(s.height+k)/s.width;k=E+s.verticalPadding;var W;if(s.width<L)W=(s.height+k)/L;else W=(s.height+k)/s.width;if(W<1)W=1/W;if(B<1)B=1/B;return B<W},P.prototype.shiftToLastRow=function(s){var L=this.getLongestRowIndex(s),E=s.rowWidth.length-1,A=s.rows[L],y=A[A.length-1],U=y.width+s.horizontalPadding;if(s.width-s.rowWidth[E]>U&&L!=E){A.splice(-1,1),s.rows[E].push(y),s.rowWidth[L]=s.rowWidth[L]-U,s.rowWidth[E]=s.rowWidth[E]+U,s.width=s.rowWidth[instance.getLongestRowIndex(s)];var b=Number.MIN_VALUE;for(var k=0;k<A.length;k++)if(A[k].height>b)b=A[k].height;if(L>0)b+=s.verticalPadding;var B=s.rowHeight[L]+s.rowHeight[E];if(s.rowHeight[L]=b,s.rowHeight[E]<y.height+s.verticalPadding)s.rowHeight[E]=y.height+s.verticalPadding;var W=s.rowHeight[L]+s.rowHeight[E];s.height+=W-B,this.shiftToLastRow(s)}},P.prototype.tilingPreLayout=function(){if(g.TILE)this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers()},P.prototype.tilingPostLayout=function(){if(g.TILE)this.repopulateZeroDegreeMembers(),this.repopulateCompounds()},P.prototype.reduceTrees=function(){var s=[],L=!0,E;while(L){var A=this.graphManager.getAllNodes(),y=[];L=!1;for(var U=0;U<A.length;U++)if(E=A[U],E.getEdges().length==1&&!E.getEdges()[0].isInterGraph&&E.getChild()==null){if(g.PURE_INCREMENTAL){var b=E.getEdges()[0].getOtherEnd(E),k=new x(E.getCenterX()-b.getCenterX(),E.getCenterY()-b.getCenterY());y.push([E,E.getEdges()[0],E.getOwner(),k])}else y.push([E,E.getEdges()[0],E.getOwner()]);L=!0}if(L==!0){var B=[];for(var W=0;W<y.length;W++)if(y[W][0].getEdges().length==1)B.push(y[W]),y[W][0].getOwner().remove(y[W][0]);s.push(B),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=s},P.prototype.growTree=function(s){var L=s.length,E=s[L-1],A;for(var y=0;y<E.length;y++)A=E[y],this.findPlaceforPrunedNode(A),A[2].add(A[0]),A[2].add(A[1],A[1].source,A[1].target);s.splice(s.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},P.prototype.findPlaceforPrunedNode=function(s){var L,E,A=s[0];if(A==s[1].source)E=s[1].target;else E=s[1].source;if(g.PURE_INCREMENTAL)A.setCenter(E.getCenterX()+s[3].getWidth(),E.getCenterY()+s[3].getHeight());else{var y=E.startX,U=E.finishX,b=E.startY,k=E.finishY,B=0,W=0,st=0,dt=0,Z=[B,st,W,dt];if(b>0)for(var ut=y;ut<=U;ut++)Z[0]+=this.grid[ut][b-1].length+this.grid[ut][b].length-1;if(U<this.grid.length-1)for(var ut=b;ut<=k;ut++)Z[1]+=this.grid[U+1][ut].length+this.grid[U][ut].length-1;if(k<this.grid[0].length-1)for(var ut=y;ut<=U;ut++)Z[2]+=this.grid[ut][k+1].length+this.grid[ut][k].length-1;if(y>0)for(var ut=b;ut<=k;ut++)Z[3]+=this.grid[y-1][ut].length+this.grid[y][ut].length-1;var nt=R.MAX_VALUE,F,K;for(var et=0;et<Z.length;et++)if(Z[et]<nt)nt=Z[et],F=1,K=et;else if(Z[et]==nt)F++;if(F==3&&nt==0){if(Z[0]==0&&Z[1]==0&&Z[2]==0)L=1;else if(Z[0]==0&&Z[1]==0&&Z[3]==0)L=0;else if(Z[0]==0&&Z[2]==0&&Z[3]==0)L=3;else if(Z[1]==0&&Z[2]==0&&Z[3]==0)L=2}else if(F==2&&nt==0){var ct=Math.floor(Math.random()*2);if(Z[0]==0&&Z[1]==0)if(ct==0)L=0;else L=1;else if(Z[0]==0&&Z[2]==0)if(ct==0)L=0;else L=2;else if(Z[0]==0&&Z[3]==0)if(ct==0)L=0;else L=3;else if(Z[1]==0&&Z[2]==0)if(ct==0)L=1;else L=2;else if(Z[1]==0&&Z[3]==0)if(ct==0)L=1;else L=3;else if(ct==0)L=2;else L=3}else if(F==4&&nt==0){var ct=Math.floor(Math.random()*4);L=ct}else L=K;if(L==0)A.setCenter(E.getCenterX(),E.getCenterY()-E.getHeight()/2-c.DEFAULT_EDGE_LENGTH-A.getHeight()/2);else if(L==1)A.setCenter(E.getCenterX()+E.getWidth()/2+c.DEFAULT_EDGE_LENGTH+A.getWidth()/2,E.getCenterY());else if(L==2)A.setCenter(E.getCenterX(),E.getCenterY()+E.getHeight()/2+c.DEFAULT_EDGE_LENGTH+A.getHeight()/2);else A.setCenter(E.getCenterX()-E.getWidth()/2-c.DEFAULT_EDGE_LENGTH-A.getWidth()/2,E.getCenterY())}},o.exports=P},991:(o,n,a)=>{var u=a(551).FDLayoutNode,r=a(551).IMath;function p(e,g,d,c){u.call(this,e,g,d,c)}p.prototype=Object.create(u.prototype);for(var i in u)p[i]=u[i];p.prototype.calculateDisplacement=function(){var e=this.graphManager.getLayout();if(this.getChild()!=null&&this.fixedNodeWeight)this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight;else this.displacementX+=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren;if(Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement)this.displacementX=e.coolingFactor*e.maxNodeDisplacement*r.sign(this.displacementX);if(Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement)this.displacementY=e.coolingFactor*e.maxNodeDisplacement*r.sign(this.displacementY);if(this.child&&this.child.getNodes().length>0)this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},p.prototype.propogateDisplacementToChildren=function(e,g){var d=this.getChild().getNodes(),c;for(var I=0;I<d.length;I++)if(c=d[I],c.getChild()==null)c.displacementX+=e,c.displacementY+=g;else c.propogateDisplacementToChildren(e,g)},p.prototype.move=function(){var e=this.graphManager.getLayout();if(this.child==null||this.child.getNodes().length==0)this.moveBy(this.displacementX,this.displacementY),e.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},p.prototype.setPred1=function(e){this.pred1=e},p.prototype.getPred1=function(){return pred1},p.prototype.getPred2=function(){return pred2},p.prototype.setNext=function(e){this.next=e},p.prototype.getNext=function(){return next},p.prototype.setProcessed=function(e){this.processed=e},p.prototype.isProcessed=function(){return processed},o.exports=p},902:(o,n,a)=>{function u(d){if(Array.isArray(d)){for(var c=0,I=Array(d.length);c<d.length;c++)I[c]=d[c];return I}else return Array.from(d)}var r=a(806),p=a(551).LinkedList,i=a(551).Matrix,e=a(551).SVD;function g(){}g.handleConstraints=function(d){var c={};c.fixedNodeConstraint=d.constraints.fixedNodeConstraint,c.alignmentConstraint=d.constraints.alignmentConstraint,c.relativePlacementConstraint=d.constraints.relativePlacementConstraint;var I=new Map,T=new Map,N=[],x=[],X=d.getAllNodes(),R=0;for(var V=0;V<X.length;V++){var _=X[V];if(_.getChild()==null)T.set(_.id,R++),N.push(_.getCenterX()),x.push(_.getCenterY()),I.set(_.id,_)}if(c.relativePlacementConstraint)c.relativePlacementConstraint.forEach(function(J){if(!J.gap&&J.gap!=0)if(J.left)J.gap=r.DEFAULT_EDGE_LENGTH+I.get(J.left).getWidth()/2+I.get(J.right).getWidth()/2;else J.gap=r.DEFAULT_EDGE_LENGTH+I.get(J.top).getHeight()/2+I.get(J.bottom).getHeight()/2});var Q=function(rt,it){return{x:rt.x-it.x,y:rt.y-it.y}},lt=function(rt){var it=0,at=0;return rt.forEach(function(ot){it+=N[T.get(ot)],at+=x[T.get(ot)]}),{x:it/rt.size,y:at/rt.size}},P=function(rt,it,at,ot,gt){function At(Tt,yt){var Dt=new Set(Tt),mt=!0,wt=!1,Zt=void 0;try{for(var Vt=yt[Symbol.iterator](),re;!(mt=(re=Vt.next()).done);mt=!0){var Wt=re.value;Dt.add(Wt)}}catch(bt){wt=!0,Zt=bt}finally{try{if(!mt&&Vt.return)Vt.return()}finally{if(wt)throw Zt}}return Dt}var Mt=new Map;rt.forEach(function(Tt,yt){Mt.set(yt,0)}),rt.forEach(function(Tt,yt){Tt.forEach(function(Dt){Mt.set(Dt.id,Mt.get(Dt.id)+1)})});var ht=new Map,Lt=new Map,Ct=new p;if(Mt.forEach(function(Tt,yt){if(Tt==0){if(Ct.push(yt),!at)if(it=="horizontal")ht.set(yt,T.has(yt)?N[T.get(yt)]:ot.get(yt));else ht.set(yt,T.has(yt)?x[T.get(yt)]:ot.get(yt))}else ht.set(yt,Number.NEGATIVE_INFINITY);if(at)Lt.set(yt,new Set([yt]))}),at)gt.forEach(function(Tt){var yt=[];if(Tt.forEach(function(wt){if(at.has(wt))yt.push(wt)}),yt.length>0){var Dt=0;yt.forEach(function(wt){if(it=="horizontal")ht.set(wt,T.has(wt)?N[T.get(wt)]:ot.get(wt)),Dt+=ht.get(wt);else ht.set(wt,T.has(wt)?x[T.get(wt)]:ot.get(wt)),Dt+=ht.get(wt)}),Dt=Dt/yt.length,Tt.forEach(function(wt){if(!at.has(wt))ht.set(wt,Dt)})}else{var mt=0;Tt.forEach(function(wt){if(it=="horizontal")mt+=T.has(wt)?N[T.get(wt)]:ot.get(wt);else mt+=T.has(wt)?x[T.get(wt)]:ot.get(wt)}),mt=mt/Tt.length,Tt.forEach(function(wt){ht.set(wt,mt)})}});var pt=function(){var yt=Ct.shift(),Dt=rt.get(yt);Dt.forEach(function(mt){if(ht.get(mt.id)<ht.get(yt)+mt.gap)if(at&&at.has(mt.id)){var wt=void 0;if(it=="horizontal")wt=T.has(mt.id)?N[T.get(mt.id)]:ot.get(mt.id);else wt=T.has(mt.id)?x[T.get(mt.id)]:ot.get(mt.id);if(ht.set(mt.id,wt),wt<ht.get(yt)+mt.gap){var Zt=ht.get(yt)+mt.gap-wt;Lt.get(yt).forEach(function(Vt){ht.set(Vt,ht.get(Vt)-Zt)})}}else ht.set(mt.id,ht.get(yt)+mt.gap);if(Mt.set(mt.id,Mt.get(mt.id)-1),Mt.get(mt.id)==0)Ct.push(mt.id);if(at)Lt.set(mt.id,At(Lt.get(yt),Lt.get(mt.id)))})};while(Ct.length!=0)pt();if(at){var Ot=new Set;rt.forEach(function(Tt,yt){if(Tt.length==0)Ot.add(yt)});var Ut=[];Lt.forEach(function(Tt,yt){if(Ot.has(yt)){var Dt=!1,mt=!0,wt=!1,Zt=void 0;try{for(var Vt=Tt[Symbol.iterator](),re;!(mt=(re=Vt.next()).done);mt=!0){var Wt=re.value;if(at.has(Wt))Dt=!0}}catch($t){wt=!0,Zt=$t}finally{try{if(!mt&&Vt.return)Vt.return()}finally{if(wt)throw Zt}}if(!Dt){var bt=!1,oe=void 0;if(Ut.forEach(function($t,jt){if($t.has([].concat(u(Tt))[0]))bt=!0,oe=jt}),!bt)Ut.push(new Set(Tt));else Tt.forEach(function($t){Ut[oe].add($t)})}}}),Ut.forEach(function(Tt,yt){var{POSITIVE_INFINITY:Dt,POSITIVE_INFINITY:mt,NEGATIVE_INFINITY:wt,NEGATIVE_INFINITY:Zt}=Number,Vt=!0,re=!1,Wt=void 0;try{for(var bt=Tt[Symbol.iterator](),oe;!(Vt=(oe=bt.next()).done);Vt=!0){var $t=oe.value,jt=void 0;if(it=="horizontal")jt=T.has($t)?N[T.get($t)]:ot.get($t);else jt=T.has($t)?x[T.get($t)]:ot.get($t);var ne=ht.get($t);if(jt<Dt)Dt=jt;if(jt>wt)wt=jt;if(ne<mt)mt=ne;if(ne>Zt)Zt=ne}}catch(ve){re=!0,Wt=ve}finally{try{if(!Vt&&bt.return)bt.return()}finally{if(re)throw Wt}}var Me=(Dt+wt)/2-(mt+Zt)/2,le=!0,ce=!1,ue=void 0;try{for(var fe=Tt[Symbol.iterator](),Le;!(le=(Le=fe.next()).done);le=!0){var de=Le.value;ht.set(de,ht.get(de)+Me)}}catch(ve){ce=!0,ue=ve}finally{try{if(!le&&fe.return)fe.return()}finally{if(ce)throw ue}}})}return ht},tt=function(rt){var it=0,at=0,ot=0,gt=0;if(rt.forEach(function(Lt){if(Lt.left)N[T.get(Lt.left)]-N[T.get(Lt.right)]>=0?it++:at++;else x[T.get(Lt.top)]-x[T.get(Lt.bottom)]>=0?ot++:gt++}),it>at&&ot>gt)for(var At=0;At<T.size;At++)N[At]=-1*N[At],x[At]=-1*x[At];else if(it>at)for(var Mt=0;Mt<T.size;Mt++)N[Mt]=-1*N[Mt];else if(ot>gt)for(var ht=0;ht<T.size;ht++)x[ht]=-1*x[ht]},s=function(rt){var it=[],at=new p,ot=new Set,gt=0;return rt.forEach(function(At,Mt){if(!ot.has(Mt)){it[gt]=[];var ht=Mt;at.push(ht),ot.add(ht),it[gt].push(ht);while(at.length!=0){ht=at.shift();var Lt=rt.get(ht);Lt.forEach(function(Ct){if(!ot.has(Ct.id))at.push(Ct.id),ot.add(Ct.id),it[gt].push(Ct.id)})}gt++}}),it},L=function(rt){var it=new Map;return rt.forEach(function(at,ot){it.set(ot,[])}),rt.forEach(function(at,ot){at.forEach(function(gt){it.get(ot).push(gt),it.get(gt.id).push({id:ot,gap:gt.gap,direction:gt.direction})})}),it},E=function(rt){var it=new Map;return rt.forEach(function(at,ot){it.set(ot,[])}),rt.forEach(function(at,ot){at.forEach(function(gt){it.get(gt.id).push({id:ot,gap:gt.gap,direction:gt.direction})})}),it},A=[],y=[],U=!1,b=!1,k=new Set,B=new Map,W=new Map,st=[];if(c.fixedNodeConstraint)c.fixedNodeConstraint.forEach(function(J){k.add(J.nodeId)});if(c.relativePlacementConstraint)c.relativePlacementConstraint.forEach(function(J){if(J.left){if(B.has(J.left))B.get(J.left).push({id:J.right,gap:J.gap,direction:"horizontal"});else B.set(J.left,[{id:J.right,gap:J.gap,direction:"horizontal"}]);if(!B.has(J.right))B.set(J.right,[])}else{if(B.has(J.top))B.get(J.top).push({id:J.bottom,gap:J.gap,direction:"vertical"});else B.set(J.top,[{id:J.bottom,gap:J.gap,direction:"vertical"}]);if(!B.has(J.bottom))B.set(J.bottom,[])}}),W=L(B),st=s(W);if(r.TRANSFORM_ON_CONSTRAINT_HANDLING){if(c.fixedNodeConstraint&&c.fixedNodeConstraint.length>1)c.fixedNodeConstraint.forEach(function(J,rt){A[rt]=[J.position.x,J.position.y],y[rt]=[N[T.get(J.nodeId)],x[T.get(J.nodeId)]]}),U=!0;else if(c.alignmentConstraint)(function(){var J=0;if(c.alignmentConstraint.vertical){var rt=c.alignmentConstraint.vertical,it=function(ht){var Lt=new Set;rt[ht].forEach(function(Ot){Lt.add(Ot)});var Ct=new Set([].concat(u(Lt)).filter(function(Ot){return k.has(Ot)})),pt=void 0;if(Ct.size>0)pt=N[T.get(Ct.values().next().value)];else pt=lt(Lt).x;rt[ht].forEach(function(Ot){A[J]=[pt,x[T.get(Ot)]],y[J]=[N[T.get(Ot)],x[T.get(Ot)]],J++})};for(var at=0;at<rt.length;at++)it(at);U=!0}if(c.alignmentConstraint.horizontal){var ot=c.alignmentConstraint.horizontal,gt=function(ht){var Lt=new Set;ot[ht].forEach(function(Ot){Lt.add(Ot)});var Ct=new Set([].concat(u(Lt)).filter(function(Ot){return k.has(Ot)})),pt=void 0;if(Ct.size>0)pt=N[T.get(Ct.values().next().value)];else pt=lt(Lt).y;ot[ht].forEach(function(Ot){A[J]=[N[T.get(Ot)],pt],y[J]=[N[T.get(Ot)],x[T.get(Ot)]],J++})};for(var At=0;At<ot.length;At++)gt(At);U=!0}if(c.relativePlacementConstraint)b=!0})();else if(c.relativePlacementConstraint){var dt=0,Z=0;for(var ut=0;ut<st.length;ut++)if(st[ut].length>dt)dt=st[ut].length,Z=ut;if(dt<W.size/2)tt(c.relativePlacementConstraint),U=!1,b=!1;else{var nt=new Map,F=new Map,K=[];st[Z].forEach(function(J){B.get(J).forEach(function(rt){if(rt.direction=="horizontal"){if(nt.has(J))nt.get(J).push(rt);else nt.set(J,[rt]);if(!nt.has(rt.id))nt.set(rt.id,[]);K.push({left:J,right:rt.id})}else{if(F.has(J))F.get(J).push(rt);else F.set(J,[rt]);if(!F.has(rt.id))F.set(rt.id,[]);K.push({top:J,bottom:rt.id})}})}),tt(K),b=!1;var et=P(nt,"horizontal"),ct=P(F,"vertical");st[Z].forEach(function(J,rt){if(y[rt]=[N[T.get(J)],x[T.get(J)]],A[rt]=[],et.has(J))A[rt][0]=et.get(J);else A[rt][0]=N[T.get(J)];if(ct.has(J))A[rt][1]=ct.get(J);else A[rt][1]=x[T.get(J)]}),U=!0}}if(U){var Nt=void 0,Pt=i.transpose(A),Bt=i.transpose(y);for(var ft=0;ft<Pt.length;ft++)Pt[ft]=i.multGamma(Pt[ft]),Bt[ft]=i.multGamma(Bt[ft]);var Jt=i.multMat(Pt,i.transpose(Bt)),Xt=e.svd(Jt);Nt=i.multMat(Xt.V,i.transpose(Xt.U));for(var Et=0;Et<T.size;Et++){var vt=[N[Et],x[Et]],xt=[Nt[0][0],Nt[1][0]],Rt=[Nt[0][1],Nt[1][1]];N[Et]=i.dotProduct(vt,xt),x[Et]=i.dotProduct(vt,Rt)}if(b)tt(c.relativePlacementConstraint)}}if(r.ENFORCE_CONSTRAINTS){if(c.fixedNodeConstraint&&c.fixedNodeConstraint.length>0){var Gt={x:0,y:0};c.fixedNodeConstraint.forEach(function(J,rt){var it={x:N[T.get(J.nodeId)],y:x[T.get(J.nodeId)]},at=J.position,ot=Q(at,it);Gt.x+=ot.x,Gt.y+=ot.y}),Gt.x/=c.fixedNodeConstraint.length,Gt.y/=c.fixedNodeConstraint.length,N.forEach(function(J,rt){N[rt]+=Gt.x}),x.forEach(function(J,rt){x[rt]+=Gt.y}),c.fixedNodeConstraint.forEach(function(J){N[T.get(J.nodeId)]=J.position.x,x[T.get(J.nodeId)]=J.position.y})}if(c.alignmentConstraint){if(c.alignmentConstraint.vertical){var St=c.alignmentConstraint.vertical,Ft=function(rt){var it=new Set;St[rt].forEach(function(gt){it.add(gt)});var at=new Set([].concat(u(it)).filter(function(gt){return k.has(gt)})),ot=void 0;if(at.size>0)ot=N[T.get(at.values().next().value)];else ot=lt(it).x;it.forEach(function(gt){if(!k.has(gt))N[T.get(gt)]=ot})};for(var Ht=0;Ht<St.length;Ht++)Ft(Ht)}if(c.alignmentConstraint.horizontal){var zt=c.alignmentConstraint.horizontal,te=function(rt){var it=new Set;zt[rt].forEach(function(gt){it.add(gt)});var at=new Set([].concat(u(it)).filter(function(gt){return k.has(gt)})),ot=void 0;if(at.size>0)ot=x[T.get(at.values().next().value)];else ot=lt(it).y;it.forEach(function(gt){if(!k.has(gt))x[T.get(gt)]=ot})};for(var qt=0;qt<zt.length;qt++)te(qt)}}if(c.relativePlacementConstraint)(function(){var J=new Map,rt=new Map,it=new Map,at=new Map,ot=new Map,gt=new Map,At=new Set,Mt=new Set;if(k.forEach(function(Qt){At.add(Qt),Mt.add(Qt)}),c.alignmentConstraint){if(c.alignmentConstraint.vertical){var ht=c.alignmentConstraint.vertical,Lt=function(It){it.set("dummy"+It,[]),ht[It].forEach(function(Yt){if(J.set(Yt,"dummy"+It),it.get("dummy"+It).push(Yt),k.has(Yt))At.add("dummy"+It)}),ot.set("dummy"+It,N[T.get(ht[It][0])])};for(var Ct=0;Ct<ht.length;Ct++)Lt(Ct)}if(c.alignmentConstraint.horizontal){var pt=c.alignmentConstraint.horizontal,Ot=function(It){at.set("dummy"+It,[]),pt[It].forEach(function(Yt){if(rt.set(Yt,"dummy"+It),at.get("dummy"+It).push(Yt),k.has(Yt))Mt.add("dummy"+It)}),gt.set("dummy"+It,x[T.get(pt[It][0])])};for(var Ut=0;Ut<pt.length;Ut++)Ot(Ut)}}var Tt=new Map,yt=new Map,Dt=function(It){B.get(It).forEach(function(Yt){var se=void 0,ae=void 0;if(Yt.direction=="horizontal"){if(se=J.get(It)?J.get(It):It,J.get(Yt.id))ae={id:J.get(Yt.id),gap:Yt.gap,direction:Yt.direction};else ae=Yt;if(Tt.has(se))Tt.get(se).push(ae);else Tt.set(se,[ae]);if(!Tt.has(ae.id))Tt.set(ae.id,[])}else{if(se=rt.get(It)?rt.get(It):It,rt.get(Yt.id))ae={id:rt.get(Yt.id),gap:Yt.gap,direction:Yt.direction};else ae=Yt;if(yt.has(se))yt.get(se).push(ae);else yt.set(se,[ae]);if(!yt.has(ae.id))yt.set(ae.id,[])}})},mt=!0,wt=!1,Zt=void 0;try{for(var Vt=B.keys()[Symbol.iterator](),re;!(mt=(re=Vt.next()).done);mt=!0){var Wt=re.value;Dt(Wt)}}catch(Qt){wt=!0,Zt=Qt}finally{try{if(!mt&&Vt.return)Vt.return()}finally{if(wt)throw Zt}}var bt=L(Tt),oe=L(yt),$t=s(bt),jt=s(oe),ne=E(Tt),Me=E(yt),le=[],ce=[];$t.forEach(function(Qt,It){le[It]=[],Qt.forEach(function(Yt){if(ne.get(Yt).length==0)le[It].push(Yt)})}),jt.forEach(function(Qt,It){ce[It]=[],Qt.forEach(function(Yt){if(Me.get(Yt).length==0)ce[It].push(Yt)})});var ue=P(Tt,"horizontal",At,ot,le),fe=P(yt,"vertical",Mt,gt,ce),Le=function(It){if(it.get(It))it.get(It).forEach(function(Yt){N[T.get(Yt)]=ue.get(It)});else N[T.get(It)]=ue.get(It)},de=!0,ve=!1,Ye=void 0;try{for(var Ce=ue.keys()[Symbol.iterator](),Xe;!(de=(Xe=Ce.next()).done);de=!0){var Ae=Xe.value;Le(Ae)}}catch(Qt){ve=!0,Ye=Qt}finally{try{if(!de&&Ce.return)Ce.return()}finally{if(ve)throw Ye}}var sr=function(It){if(at.get(It))at.get(It).forEach(function(Yt){x[T.get(Yt)]=fe.get(It)});else x[T.get(It)]=fe.get(It)},De=!0,He=!1,We=void 0;try{for(var Oe=fe.keys()[Symbol.iterator](),Ve;!(De=(Ve=Oe.next()).done);De=!0){var Ae=Ve.value;sr(Ae)}}catch(Qt){He=!0,We=Qt}finally{try{if(!De&&Oe.return)Oe.return()}finally{if(He)throw We}}})()}for(var Kt=0;Kt<X.length;Kt++){var kt=X[Kt];if(kt.getChild()==null)kt.setCenter(N[T.get(kt.id)],x[T.get(kt.id)])}},o.exports=g},551:(o)=>{o.exports=w}},D={};function v(o){var n=D[o];if(n!==void 0)return n.exports;var a=D[o]={exports:{}};return S[o](a,a.exports,v),a.exports}var f=v(45);return f})()})});var ze=Mn(function(Te,Fe){(function(S,D){if(typeof Te==="object"&&typeof Fe==="object")Fe.exports=D(Se());else if(typeof define==="function"&&define.amd)define(["cose-base"],D);else if(typeof Te==="object")Te.cytoscapeFcose=D(Se());else S.cytoscapeFcose=D(S.coseBase)})(Te,function(w){return(()=>{var S={658:(o)=>{o.exports=Object.assign!=null?Object.assign.bind(Object):function(n){for(var a=arguments.length,u=Array(a>1?a-1:0),r=1;r<a;r++)u[r-1]=arguments[r];return u.forEach(function(p){Object.keys(p).forEach(function(i){return n[i]=p[i]})}),n}},548:(o,n,a)=>{var u=function(){function i(e,g){var d=[],c=!0,I=!1,T=void 0;try{for(var N=e[Symbol.iterator](),x;!(c=(x=N.next()).done);c=!0)if(d.push(x.value),g&&d.length===g)break}catch(X){I=!0,T=X}finally{try{if(!c&&N.return)N.return()}finally{if(I)throw T}}return d}return function(e,g){if(Array.isArray(e))return e;else if(Symbol.iterator in Object(e))return i(e,g);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=a(140).layoutBase.LinkedList,p={};p.getTopMostNodes=function(i){var e={};for(var g=0;g<i.length;g++)e[i[g].id()]=!0;var d=i.filter(function(c,I){if(typeof c==="number")c=I;var T=c.parent()[0];while(T!=null){if(e[T.id()])return!1;T=T.parent()[0]}return!0});return d},p.connectComponents=function(i,e,g,d){var c=new r,I=new Set,T=[],N=void 0,x=void 0,X=void 0,R=!1,V=1,_=[],Q=[],lt=function(){var tt=i.collection();Q.push(tt);var s=g[0],L=i.collection();L.merge(s).merge(s.descendants().intersection(e)),T.push(s),L.forEach(function(y){c.push(y),I.add(y),tt.merge(y)});var E=function(){s=c.shift();var U=i.collection();s.neighborhood().nodes().forEach(function(W){if(e.intersection(s.edgesWith(W)).length>0)U.merge(W)});for(var b=0;b<U.length;b++){var k=U[b];if(N=g.intersection(k.union(k.ancestors())),N!=null&&!I.has(N[0])){var B=N.union(N.descendants());B.forEach(function(W){if(c.push(W),I.add(W),tt.merge(W),g.has(W))T.push(W)})}}};while(c.length!=0)E();if(tt.forEach(function(y){e.intersection(y.connectedEdges()).forEach(function(U){if(tt.has(U.source())&&tt.has(U.target()))tt.merge(U)})}),T.length==g.length)R=!0;if(!R||R&&V>1){x=T[0],X=x.connectedEdges().length,T.forEach(function(y){if(y.connectedEdges().length<X)X=y.connectedEdges().length,x=y}),_.push(x.id());var A=i.collection();A.merge(T[0]),T.forEach(function(y){A.merge(y)}),T=[],g=g.difference(A),V++}};do lt();while(!R);if(d){if(_.length>0)d.set("dummy"+(d.size+1),_)}return Q},p.relocateComponent=function(i,e,g){if(!g.fixedNodeConstraint){var{POSITIVE_INFINITY:d,NEGATIVE_INFINITY:c,POSITIVE_INFINITY:I,NEGATIVE_INFINITY:T}=Number;if(g.quality=="draft"){var N=!0,x=!1,X=void 0;try{for(var R=e.nodeIndexes[Symbol.iterator](),V;!(N=(V=R.next()).done);N=!0){var _=V.value,Q=u(_,2),lt=Q[0],P=Q[1],tt=g.cy.getElementById(lt);if(tt){var s=tt.boundingBox(),L=e.xCoords[P]-s.w/2,E=e.xCoords[P]+s.w/2,A=e.yCoords[P]-s.h/2,y=e.yCoords[P]+s.h/2;if(L<d)d=L;if(E>c)c=E;if(A<I)I=A;if(y>T)T=y}}}catch(W){x=!0,X=W}finally{try{if(!N&&R.return)R.return()}finally{if(x)throw X}}var U=i.x-(c+d)/2,b=i.y-(T+I)/2;e.xCoords=e.xCoords.map(function(W){return W+U}),e.yCoords=e.yCoords.map(function(W){return W+b})}else{Object.keys(e).forEach(function(W){var st=e[W],dt=st.getRect().x,Z=st.getRect().x+st.getRect().width,ut=st.getRect().y,nt=st.getRect().y+st.getRect().height;if(dt<d)d=dt;if(Z>c)c=Z;if(ut<I)I=ut;if(nt>T)T=nt});var k=i.x-(c+d)/2,B=i.y-(T+I)/2;Object.keys(e).forEach(function(W){var st=e[W];st.setCenter(st.getCenterX()+k,st.getCenterY()+B)})}}},p.calcBoundingBox=function(i,e,g,d){var{MAX_SAFE_INTEGER:c,MIN_SAFE_INTEGER:I,MAX_SAFE_INTEGER:T,MIN_SAFE_INTEGER:N}=Number,x=void 0,X=void 0,R=void 0,V=void 0,_=i.descendants().not(":parent"),Q=_.length;for(var lt=0;lt<Q;lt++){var P=_[lt];if(x=e[d.get(P.id())]-P.width()/2,X=e[d.get(P.id())]+P.width()/2,R=g[d.get(P.id())]-P.height()/2,V=g[d.get(P.id())]+P.height()/2,c>x)c=x;if(I<X)I=X;if(T>R)T=R;if(N<V)N=V}var tt={};return tt.topLeftX=c,tt.topLeftY=T,tt.width=I-c,tt.height=N-T,tt},p.calcParentsWithoutChildren=function(i,e){var g=i.collection();return e.nodes(":parent").forEach(function(d){var c=!1;if(d.children().forEach(function(I){if(I.css("display")!="none")c=!0}),!c)g.merge(d)}),g},o.exports=p},816:(o,n,a)=>{var u=a(548),r=a(140).CoSELayout,p=a(140).CoSENode,i=a(140).layoutBase.PointD,e=a(140).layoutBase.DimensionD,g=a(140).layoutBase.LayoutConstants,d=a(140).layoutBase.FDLayoutConstants,c=a(140).CoSEConstants,I=function(N,x){var{cy:X,eles:R}=N,V=R.nodes(),_=R.edges(),Q=void 0,lt=void 0,P=void 0,tt={};if(N.randomize)Q=x.nodeIndexes,lt=x.xCoords,P=x.yCoords;var s=function(W){return typeof W==="function"},L=function(W,st){if(s(W))return W(st);else return W},E=u.calcParentsWithoutChildren(X,R),A=function B(W,st,dt,Z){var ut=st.length;for(var nt=0;nt<ut;nt++){var F=st[nt],K=null;if(F.intersection(E).length==0)K=F.children();var et=void 0,ct=F.layoutDimensions({nodeDimensionsIncludeLabels:Z.nodeDimensionsIncludeLabels});if(F.outerWidth()!=null&&F.outerHeight()!=null)if(Z.randomize)if(!F.isParent())et=W.add(new p(dt.graphManager,new i(lt[Q.get(F.id())]-ct.w/2,P[Q.get(F.id())]-ct.h/2),new e(parseFloat(ct.w),parseFloat(ct.h))));else{var Nt=u.calcBoundingBox(F,lt,P,Q);if(F.intersection(E).length==0)et=W.add(new p(dt.graphManager,new i(Nt.topLeftX,Nt.topLeftY),new e(Nt.width,Nt.height)));else et=W.add(new p(dt.graphManager,new i(Nt.topLeftX,Nt.topLeftY),new e(parseFloat(ct.w),parseFloat(ct.h))))}else et=W.add(new p(dt.graphManager,new i(F.position("x")-ct.w/2,F.position("y")-ct.h/2),new e(parseFloat(ct.w),parseFloat(ct.h))));else et=W.add(new p(this.graphManager));if(et.id=F.data("id"),et.nodeRepulsion=L(Z.nodeRepulsion,F),et.paddingLeft=parseInt(F.css("padding")),et.paddingTop=parseInt(F.css("padding")),et.paddingRight=parseInt(F.css("padding")),et.paddingBottom=parseInt(F.css("padding")),Z.nodeDimensionsIncludeLabels)et.labelWidth=F.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,et.labelHeight=F.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,et.labelPosVertical=F.css("text-valign"),et.labelPosHorizontal=F.css("text-halign");if(tt[F.data("id")]=et,isNaN(et.rect.x))et.rect.x=0;if(isNaN(et.rect.y))et.rect.y=0;if(K!=null&&K.length>0){var Pt=void 0;Pt=dt.getGraphManager().add(dt.newGraph(),et),B(Pt,K,dt,Z)}}},y=function(W,st,dt){var Z=0,ut=0;for(var nt=0;nt<dt.length;nt++){var F=dt[nt],K=tt[F.data("source")],et=tt[F.data("target")];if(K&&et&&K!==et&&K.getEdgesBetween(et).length==0){var ct=st.add(W.newEdge(),K,et);ct.id=F.id(),ct.idealLength=L(N.idealEdgeLength,F),ct.edgeElasticity=L(N.edgeElasticity,F),Z+=ct.idealLength,ut++}}if(N.idealEdgeLength!=null){if(ut>0)c.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=Z/ut;else if(!s(N.idealEdgeLength))c.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=N.idealEdgeLength;else c.DEFAULT_EDGE_LENGTH=d.DEFAULT_EDGE_LENGTH=50;c.MIN_REPULSION_DIST=d.MIN_REPULSION_DIST=d.DEFAULT_EDGE_LENGTH/10,c.DEFAULT_RADIAL_SEPARATION=d.DEFAULT_EDGE_LENGTH}},U=function(W,st){if(st.fixedNodeConstraint)W.constraints.fixedNodeConstraint=st.fixedNodeConstraint;if(st.alignmentConstraint)W.constraints.alignmentConstraint=st.alignmentConstraint;if(st.relativePlacementConstraint)W.constraints.relativePlacementConstraint=st.relativePlacementConstraint};if(N.nestingFactor!=null)c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=N.nestingFactor;if(N.gravity!=null)c.DEFAULT_GRAVITY_STRENGTH=d.DEFAULT_GRAVITY_STRENGTH=N.gravity;if(N.numIter!=null)c.MAX_ITERATIONS=d.MAX_ITERATIONS=N.numIter;if(N.gravityRange!=null)c.DEFAULT_GRAVITY_RANGE_FACTOR=d.DEFAULT_GRAVITY_RANGE_FACTOR=N.gravityRange;if(N.gravityCompound!=null)c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=N.gravityCompound;if(N.gravityRangeCompound!=null)c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=N.gravityRangeCompound;if(N.initialEnergyOnIncremental!=null)c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.DEFAULT_COOLING_FACTOR_INCREMENTAL=N.initialEnergyOnIncremental;if(N.tilingCompareBy!=null)c.TILING_COMPARE_BY=N.tilingCompareBy;if(N.quality=="proof")g.QUALITY=2;else g.QUALITY=0;if(c.NODE_DIMENSIONS_INCLUDE_LABELS=d.NODE_DIMENSIONS_INCLUDE_LABELS=g.NODE_DIMENSIONS_INCLUDE_LABELS=N.nodeDimensionsIncludeLabels,c.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=!N.randomize,c.ANIMATE=d.ANIMATE=g.ANIMATE=N.animate,c.TILE=N.tile,c.TILING_PADDING_VERTICAL=typeof N.tilingPaddingVertical==="function"?N.tilingPaddingVertical.call():N.tilingPaddingVertical,c.TILING_PADDING_HORIZONTAL=typeof N.tilingPaddingHorizontal==="function"?N.tilingPaddingHorizontal.call():N.tilingPaddingHorizontal,c.DEFAULT_INCREMENTAL=d.DEFAULT_INCREMENTAL=g.DEFAULT_INCREMENTAL=!0,c.PURE_INCREMENTAL=!N.randomize,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=N.uniformNodeDimensions,N.step=="transformed")c.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,c.ENFORCE_CONSTRAINTS=!1,c.APPLY_LAYOUT=!1;if(N.step=="enforced")c.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,c.ENFORCE_CONSTRAINTS=!0,c.APPLY_LAYOUT=!1;if(N.step=="cose")c.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,c.ENFORCE_CONSTRAINTS=!1,c.APPLY_LAYOUT=!0;if(N.step=="all"){if(N.randomize)c.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else c.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;c.ENFORCE_CONSTRAINTS=!0,c.APPLY_LAYOUT=!0}if(N.fixedNodeConstraint||N.alignmentConstraint||N.relativePlacementConstraint)c.TREE_REDUCTION_ON_INCREMENTAL=!1;else c.TREE_REDUCTION_ON_INCREMENTAL=!0;var b=new r,k=b.newGraphManager();return A(k.addRoot(),u.getTopMostNodes(V),b,N),y(b,k,_),U(b,N),b.runLayout(),tt};o.exports={coseLayout:I}},212:(o,n,a)=>{var u=function(){function N(x,X){for(var R=0;R<X.length;R++){var V=X[R];if(V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V)V.writable=!0;Object.defineProperty(x,V.key,V)}}return function(x,X,R){if(X)N(x.prototype,X);if(R)N(x,R);return x}}();function r(N,x){if(!(N instanceof x))throw TypeError("Cannot call a class as a function")}var p=a(658),i=a(548),e=a(657),g=e.spectralLayout,d=a(816),c=d.coseLayout,I=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1000,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:0.0000001,nodeRepulsion:function(x){return 4500},idealEdgeLength:function(x){return 50},edgeElasticity:function(x){return 0.45},nestingFactor:0.1,gravity:0.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:0.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}}),T=function(){function N(x){r(this,N),this.options=p({},I,x)}return u(N,[{key:"run",value:function(){var X=this,R=this.options,{cy:V,eles:_}=R,Q=[],lt=void 0,P=void 0,tt=[],s=void 0,L=[];if(R.fixedNodeConstraint&&(!Array.isArray(R.fixedNodeConstraint)||R.fixedNodeConstraint.length==0))R.fixedNodeConstraint=void 0;if(R.alignmentConstraint){if(R.alignmentConstraint.vertical&&(!Array.isArray(R.alignmentConstraint.vertical)||R.alignmentConstraint.vertical.length==0))R.alignmentConstraint.vertical=void 0;if(R.alignmentConstraint.horizontal&&(!Array.isArray(R.alignmentConstraint.horizontal)||R.alignmentConstraint.horizontal.length==0))R.alignmentConstraint.horizontal=void 0}if(R.relativePlacementConstraint&&(!Array.isArray(R.relativePlacementConstraint)||R.relativePlacementConstraint.length==0))R.relativePlacementConstraint=void 0;var E=R.fixedNodeConstraint||R.alignmentConstraint||R.relativePlacementConstraint;if(E)R.tile=!1,R.packComponents=!1;var A=void 0,y=!1;if(V.layoutUtilities&&R.packComponents){if(A=V.layoutUtilities("get"),!A)A=V.layoutUtilities();y=!0}if(_.nodes().length>0)if(!y){var U=R.eles.boundingBox();if(L.push({x:U.x1+U.w/2,y:U.y1+U.h/2}),R.randomize){var b=g(R);Q.push(b)}if(R.quality=="default"||R.quality=="proof")tt.push(c(R,Q[0])),i.relocateComponent(L[0],tt[0],R);else i.relocateComponent(L[0],Q[0],R)}else{var k=i.getTopMostNodes(R.eles.nodes());if(s=i.connectComponents(V,R.eles,k),s.forEach(function(Et){var vt=Et.boundingBox();L.push({x:vt.x1+vt.w/2,y:vt.y1+vt.h/2})}),R.randomize)s.forEach(function(Et){R.eles=Et,Q.push(g(R))});if(R.quality=="default"||R.quality=="proof"){var B=V.collection();if(R.tile){var W=new Map,st=[],dt=[],Z=0,ut={nodeIndexes:W,xCoords:st,yCoords:dt},nt=[];if(s.forEach(function(Et,vt){if(Et.edges().length==0)Et.nodes().forEach(function(xt,Rt){if(B.merge(Et.nodes()[Rt]),!xt.isParent())ut.nodeIndexes.set(Et.nodes()[Rt].id(),Z++),ut.xCoords.push(Et.nodes()[0].position().x),ut.yCoords.push(Et.nodes()[0].position().y)}),nt.push(vt)}),B.length>1){var F=B.boundingBox();L.push({x:F.x1+F.w/2,y:F.y1+F.h/2}),s.push(B),Q.push(ut);for(var K=nt.length-1;K>=0;K--)s.splice(nt[K],1),Q.splice(nt[K],1),L.splice(nt[K],1)}}s.forEach(function(Et,vt){R.eles=Et,tt.push(c(R,Q[vt])),i.relocateComponent(L[vt],tt[vt],R)})}else s.forEach(function(Et,vt){i.relocateComponent(L[vt],Q[vt],R)});var et=new Set;if(s.length>1){var ct=[],Nt=_.filter(function(Et){return Et.css("display")=="none"});s.forEach(function(Et,vt){var xt=void 0;if(R.quality=="draft")xt=Q[vt].nodeIndexes;if(Et.nodes().not(Nt).length>0){var Rt={};Rt.edges=[],Rt.nodes=[];var Gt=void 0;if(Et.nodes().not(Nt).forEach(function(St){if(R.quality=="draft")if(!St.isParent())Gt=xt.get(St.id()),Rt.nodes.push({x:Q[vt].xCoords[Gt]-St.boundingbox().w/2,y:Q[vt].yCoords[Gt]-St.boundingbox().h/2,width:St.boundingbox().w,height:St.boundingbox().h});else{var Ft=i.calcBoundingBox(St,Q[vt].xCoords,Q[vt].yCoords,xt);Rt.nodes.push({x:Ft.topLeftX,y:Ft.topLeftY,width:Ft.width,height:Ft.height})}else if(tt[vt][St.id()])Rt.nodes.push({x:tt[vt][St.id()].getLeft(),y:tt[vt][St.id()].getTop(),width:tt[vt][St.id()].getWidth(),height:tt[vt][St.id()].getHeight()})}),Et.edges().forEach(function(St){var Ft=St.source(),Ht=St.target();if(Ft.css("display")!="none"&&Ht.css("display")!="none"){if(R.quality=="draft"){var zt=xt.get(Ft.id()),te=xt.get(Ht.id()),qt=[],Kt=[];if(Ft.isParent()){var kt=i.calcBoundingBox(Ft,Q[vt].xCoords,Q[vt].yCoords,xt);qt.push(kt.topLeftX+kt.width/2),qt.push(kt.topLeftY+kt.height/2)}else qt.push(Q[vt].xCoords[zt]),qt.push(Q[vt].yCoords[zt]);if(Ht.isParent()){var J=i.calcBoundingBox(Ht,Q[vt].xCoords,Q[vt].yCoords,xt);Kt.push(J.topLeftX+J.width/2),Kt.push(J.topLeftY+J.height/2)}else Kt.push(Q[vt].xCoords[te]),Kt.push(Q[vt].yCoords[te]);Rt.edges.push({startX:qt[0],startY:qt[1],endX:Kt[0],endY:Kt[1]})}else if(tt[vt][Ft.id()]&&tt[vt][Ht.id()])Rt.edges.push({startX:tt[vt][Ft.id()].getCenterX(),startY:tt[vt][Ft.id()].getCenterY(),endX:tt[vt][Ht.id()].getCenterX(),endY:tt[vt][Ht.id()].getCenterY()})}}),Rt.nodes.length>0)ct.push(Rt),et.add(vt)}});var Pt=A.packComponents(ct,R.randomize).shifts;if(R.quality=="draft")Q.forEach(function(Et,vt){var xt=Et.xCoords.map(function(Gt){return Gt+Pt[vt].dx}),Rt=Et.yCoords.map(function(Gt){return Gt+Pt[vt].dy});Et.xCoords=xt,Et.yCoords=Rt});else{var Bt=0;et.forEach(function(Et){Object.keys(tt[Et]).forEach(function(vt){var xt=tt[Et][vt];xt.setCenter(xt.getCenterX()+Pt[Bt].dx,xt.getCenterY()+Pt[Bt].dy)}),Bt++})}}}var ft=function(vt,xt){if(R.quality=="default"||R.quality=="proof"){if(typeof vt==="number")vt=xt;var Rt=void 0,Gt=void 0,St=vt.data("id");if(tt.forEach(function(Ht){if(St in Ht)Rt={x:Ht[St].getRect().getCenterX(),y:Ht[St].getRect().getCenterY()},Gt=Ht[St]}),R.nodeDimensionsIncludeLabels){if(Gt.labelWidth){if(Gt.labelPosHorizontal=="left")Rt.x+=Gt.labelWidth/2;else if(Gt.labelPosHorizontal=="right")Rt.x-=Gt.labelWidth/2}if(Gt.labelHeight){if(Gt.labelPosVertical=="top")Rt.y+=Gt.labelHeight/2;else if(Gt.labelPosVertical=="bottom")Rt.y-=Gt.labelHeight/2}}if(Rt==null)Rt={x:vt.position("x"),y:vt.position("y")};return{x:Rt.x,y:Rt.y}}else{var Ft=void 0;if(Q.forEach(function(Ht){var zt=Ht.nodeIndexes.get(vt.id());if(zt!=null)Ft={x:Ht.xCoords[zt],y:Ht.yCoords[zt]}}),Ft==null)Ft={x:vt.position("x"),y:vt.position("y")};return{x:Ft.x,y:Ft.y}}};if(R.quality=="default"||R.quality=="proof"||R.randomize){var Jt=i.calcParentsWithoutChildren(V,_),Xt=_.filter(function(Et){return Et.css("display")=="none"});if(R.eles=_.not(Xt),_.nodes().not(":parent").not(Xt).layoutPositions(X,R,ft),Jt.length>0)Jt.forEach(function(Et){Et.position(ft(Et))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),N}();o.exports=T},657:(o,n,a)=>{var u=a(548),r=a(140).layoutBase.Matrix,p=a(140).layoutBase.SVD,i=function(g){var{cy:d,eles:c}=g,I=c.nodes(),T=c.nodes(":parent"),N=new Map,x=new Map,X=new Map,R=[],V=[],_=[],Q=[],lt=[],P=[],tt=[],s=[],L=void 0,E=void 0,A=1e8,y=0.000000001,{piTol:U,samplingType:b,nodeSeparation:k}=g,B=void 0,W=function(){var it=0,at=0,ot=!1;while(at<B){it=Math.floor(Math.random()*E),ot=!1;for(var gt=0;gt<at;gt++)if(Q[gt]==it){ot=!0;break}if(!ot)Q[at]=it,at++;else continue}},st=function(it,at,ot){var gt=[],At=0,Mt=0,ht=0,Lt=void 0,Ct=[],pt=0,Ot=1;for(var Ut=0;Ut<E;Ut++)Ct[Ut]=A;gt[Mt]=it,Ct[it]=0;while(Mt>=At){ht=gt[At++];var Tt=R[ht];for(var yt=0;yt<Tt.length;yt++)if(Lt=x.get(Tt[yt]),Ct[Lt]==A)Ct[Lt]=Ct[ht]+1,gt[++Mt]=Lt;P[ht][at]=Ct[ht]*k}if(ot){for(var Dt=0;Dt<E;Dt++)if(P[Dt][at]<lt[Dt])lt[Dt]=P[Dt][at];for(var mt=0;mt<E;mt++)if(lt[mt]>pt)pt=lt[mt],Ot=mt}return Ot},dt=function(it){var at=void 0;if(!it){W();for(var ot=0;ot<B;ot++)st(Q[ot],ot,it,!1)}else{at=Math.floor(Math.random()*E),L=at;for(var gt=0;gt<E;gt++)lt[gt]=A;for(var At=0;At<B;At++)Q[At]=at,at=st(at,At,it)}for(var Mt=0;Mt<E;Mt++)for(var ht=0;ht<B;ht++)P[Mt][ht]*=P[Mt][ht];for(var Lt=0;Lt<B;Lt++)tt[Lt]=[];for(var Ct=0;Ct<B;Ct++)for(var pt=0;pt<B;pt++)tt[Ct][pt]=P[Q[pt]][Ct]},Z=function(){var it=p.svd(tt),{S:at,U:ot,V:gt}=it,At=at[0]*at[0]*at[0],Mt=[];for(var ht=0;ht<B;ht++){Mt[ht]=[];for(var Lt=0;Lt<B;Lt++)if(Mt[ht][Lt]=0,ht==Lt)Mt[ht][Lt]=at[ht]/(at[ht]*at[ht]+At/(at[ht]*at[ht]))}s=r.multMat(r.multMat(gt,Mt),r.transpose(ot))},ut=function(){var it=void 0,at=void 0,ot=[],gt=[],At=[],Mt=[];for(var ht=0;ht<E;ht++)ot[ht]=Math.random(),gt[ht]=Math.random();ot=r.normalize(ot),gt=r.normalize(gt);var Lt=0,Ct=y,pt=y,Ot=void 0;while(!0){Lt++;for(var Ut=0;Ut<E;Ut++)At[Ut]=ot[Ut];if(ot=r.multGamma(r.multL(r.multGamma(At),P,s)),it=r.dotProduct(At,ot),ot=r.normalize(ot),Ct=r.dotProduct(At,ot),Ot=Math.abs(Ct/pt),Ot<=1+U&&Ot>=1)break;pt=Ct}for(var Tt=0;Tt<E;Tt++)At[Tt]=ot[Tt];Lt=0,pt=y;while(!0){Lt++;for(var yt=0;yt<E;yt++)Mt[yt]=gt[yt];if(Mt=r.minusOp(Mt,r.multCons(At,r.dotProduct(At,Mt))),gt=r.multGamma(r.multL(r.multGamma(Mt),P,s)),at=r.dotProduct(Mt,gt),gt=r.normalize(gt),Ct=r.dotProduct(Mt,gt),Ot=Math.abs(Ct/pt),Ot<=1+U&&Ot>=1)break;pt=Ct}for(var Dt=0;Dt<E;Dt++)Mt[Dt]=gt[Dt];V=r.multCons(At,Math.sqrt(Math.abs(it))),_=r.multCons(Mt,Math.sqrt(Math.abs(at)))};u.connectComponents(d,c,u.getTopMostNodes(I),N),T.forEach(function(rt){u.connectComponents(d,c,u.getTopMostNodes(rt.descendants().intersection(c)),N)});var nt=0;for(var F=0;F<I.length;F++)if(!I[F].isParent())x.set(I[F].id(),nt++);var K=!0,et=!1,ct=void 0;try{for(var Nt=N.keys()[Symbol.iterator](),Pt;!(K=(Pt=Nt.next()).done);K=!0){var Bt=Pt.value;x.set(Bt,nt++)}}catch(rt){et=!0,ct=rt}finally{try{if(!K&&Nt.return)Nt.return()}finally{if(et)throw ct}}for(var ft=0;ft<x.size;ft++)R[ft]=[];T.forEach(function(rt){var it=rt.children().intersection(c);while(it.nodes(":childless").length==0)it=it.nodes()[0].children().intersection(c);var at=0,ot=it.nodes(":childless")[0].connectedEdges().length;it.nodes(":childless").forEach(function(gt,At){if(gt.connectedEdges().length<ot)ot=gt.connectedEdges().length,at=At}),X.set(rt.id(),it.nodes(":childless")[at].id())}),I.forEach(function(rt){var it=void 0;if(rt.isParent())it=x.get(X.get(rt.id()));else it=x.get(rt.id());rt.neighborhood().nodes().forEach(function(at){if(c.intersection(rt.edgesWith(at)).length>0)if(at.isParent())R[it].push(X.get(at.id()));else R[it].push(at.id())})});var Jt=function(it){var at=x.get(it),ot=void 0;N.get(it).forEach(function(gt){if(d.getElementById(gt).isParent())ot=X.get(gt);else ot=gt;R[at].push(ot),R[x.get(ot)].push(it)})},Xt=!0,Et=!1,vt=void 0;try{for(var xt=N.keys()[Symbol.iterator](),Rt;!(Xt=(Rt=xt.next()).done);Xt=!0){var Gt=Rt.value;Jt(Gt)}}catch(rt){Et=!0,vt=rt}finally{try{if(!Xt&&xt.return)xt.return()}finally{if(Et)throw vt}}E=x.size;var St=void 0;if(E>2){B=E<g.sampleSize?E:g.sampleSize;for(var Ft=0;Ft<E;Ft++)P[Ft]=[];for(var Ht=0;Ht<B;Ht++)s[Ht]=[];if(g.quality=="draft"||g.step=="all")dt(b),Z(),ut(),St={nodeIndexes:x,xCoords:V,yCoords:_};else x.forEach(function(rt,it){V.push(d.getElementById(it).position("x")),_.push(d.getElementById(it).position("y"))}),St={nodeIndexes:x,xCoords:V,yCoords:_};return St}else{var zt=x.keys(),te=d.getElementById(zt.next().value),qt=te.position(),Kt=te.outerWidth();if(V.push(qt.x),_.push(qt.y),E==2){var kt=d.getElementById(zt.next().value),J=kt.outerWidth();V.push(qt.x+Kt/2+J/2+g.idealEdgeLength),_.push(qt.y)}return St={nodeIndexes:x,xCoords:V,yCoords:_},St}};o.exports={spectralLayout:i}},579:(o,n,a)=>{var u=a(212),r=function(i){if(!i)return;i("layout","fcose",u)};if(typeof cytoscape<"u")r(cytoscape);o.exports=r},140:(o)=>{o.exports=w}},D={};function v(o){var n=D[o];if(n!==void 0)return n.exports;var a=D[o]={exports:{}};return S[o](a,a.exports,v),a.exports}var f=v(579);return f})()})});var je=yn(ze(),1);var $e={L:"left",R:"right",T:"top",B:"bottom"},Be={L:t((w)=>`${w},${w/2} 0,${w} 0,0`,"L"),R:t((w)=>`0,${w/2} ${w},0 ${w},${w}`,"R"),T:t((w)=>`0,0 ${w},0 ${w/2},${w}`,"T"),B:t((w)=>`${w/2},0 ${w},${w} 0,${w}`,"B")},we={L:t((w,S)=>w-S+2,"L"),R:t((w,S)=>w-2,"R"),T:t((w,S)=>w-S+2,"T"),B:t((w,S)=>w-2,"B")},hr=t(function(w){if(_t(w))return w==="L"?"R":"L";else return w==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ze=t(function(w){let S=w;return S==="L"||S==="R"||S==="T"||S==="B"},"isArchitectureDirection"),_t=t(function(w){let S=w;return S==="L"||S==="R"},"isArchitectureDirectionX"),he=t(function(w){let S=w;return S==="T"||S==="B"},"isArchitectureDirectionY"),Ue=t(function(w,S){let D=_t(w)&&he(S),v=he(w)&&_t(S);return D||v},"isArchitectureDirectionXY"),lr=t(function(w){let S=w[0],D=w[1],v=_t(S)&&he(D),f=he(S)&&_t(D);return v||f},"isArchitecturePairXY"),fr=t(function(w){return w!=="LL"&&w!=="RR"&&w!=="TT"&&w!=="BB"},"isValidArchitectureDirectionPair"),be=t(function(w,S){let D=`${w}${S}`;return fr(D)?D:void 0},"getArchitectureDirectionPair"),cr=t(function([w,S],D){let v=D[0],f=D[1];if(_t(v))if(he(f))return[w+(v==="L"?-1:1),S+(f==="T"?1:-1)];else return[w+(v==="L"?-1:1),S];else if(_t(f))return[w+(f==="L"?1:-1),S+(v==="T"?1:-1)];else return[w,S+(v==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),gr=t(function(w){if(w==="LT"||w==="TL")return[1,1];else if(w==="BL"||w==="LB")return[1,-1];else if(w==="BR"||w==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),ur=t(function(w,S){if(Ue(w,S))return"bend";else if(_t(w))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),dr=t(function(w){return w.type==="service"},"isArchitectureService"),vr=t(function(w){return w.type==="junction"},"isArchitectureJunction"),qe=t((w,S)=>{let[D,v]=[w,S].sort();return`${JSON.stringify(D)}-${JSON.stringify(v)}`},"architectureGroupAlignmentKey"),Qe=t((w)=>w.data(),"edgeData"),ye=t((w)=>w.data(),"nodeData"),pr=Y.architecture,Je=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=O,this.getAccTitle=G,this.setDiagramTitle=H,this.getDiagramTitle=q,this.getAccDescription=j,this.setAccDescription=z,this.clear()}static{t(this,"ArchitectureDB")}setDiagramId(w){this.diagramId=w}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",M()}addService({id:w,icon:S,in:D,title:v,iconText:f}){if(this.registeredIds.has(w))throw Error(`The service id [${w}] is already in use by another ${this.registeredIds.get(w)}`);if(D!==void 0){if(w===D)throw Error(`The service [${w}] cannot be placed within itself`);if(!this.registeredIds.has(D))throw Error(`The service [${w}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(D)==="node")throw Error(`The service [${w}]'s parent is not a group`)}this.registeredIds.set(w,"node"),this.nodes.set(w,{id:w,type:"service",icon:S,iconText:f,title:v,edges:[],in:D})}getServices(){return[...this.nodes.values()].filter(dr)}addJunction({id:w,in:S}){if(this.registeredIds.has(w))throw Error(`The junction id [${w}] is already in use by another ${this.registeredIds.get(w)}`);if(S!==void 0){if(w===S)throw Error(`The junction [${w}] cannot be placed within itself`);if(!this.registeredIds.has(S))throw Error(`The junction [${w}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(S)==="node")throw Error(`The junction [${w}]'s parent is not a group`)}this.registeredIds.set(w,"node"),this.nodes.set(w,{id:w,type:"junction",edges:[],in:S})}getJunctions(){return[...this.nodes.values()].filter(vr)}getNodes(){return[...this.nodes.values()]}getNode(w){return this.nodes.get(w)??null}addGroup({id:w,icon:S,in:D,title:v}){if(this.registeredIds.has(w))throw Error(`The group id [${w}] is already in use by another ${this.registeredIds.get(w)}`);if(D!==void 0){if(w===D)throw Error(`The group [${w}] cannot be placed within itself`);if(!this.registeredIds.has(D))throw Error(`The group [${w}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(D)==="node")throw Error(`The group [${w}]'s parent is not a group`)}this.registeredIds.set(w,"group"),this.groups.set(w,{id:w,icon:S,title:v,in:D})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:w,rhsId:S,lhsDir:D,rhsDir:v,lhsInto:f,rhsInto:o,lhsGroup:n,rhsGroup:a,title:u}){if(!Ze(D))throw Error(`Invalid direction given for left hand side of edge ${w}--${S}. Expected (L,R,T,B) got ${String(D)}`);if(!Ze(v))throw Error(`Invalid direction given for right hand side of edge ${w}--${S}. Expected (L,R,T,B) got ${String(v)}`);if(!this.nodes.has(w)&&!this.groups.has(w))throw Error(`The left-hand id [${w}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(S)&&!this.groups.has(S))throw Error(`The right-hand id [${S}] does not yet exist. Please create the service/group before declaring an edge to it.`);let r=this.nodes.get(w).in,p=this.nodes.get(S).in;if(n&&r&&p&&r==p)throw Error(`The left-hand id [${w}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(a&&r&&p&&r==p)throw Error(`The right-hand id [${S}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let i={lhsId:w,lhsDir:D,lhsInto:f,lhsGroup:n,rhsId:S,rhsDir:v,rhsInto:o,rhsGroup:a,title:u};this.edges.push(i);let e=this.nodes.get(w),g=this.nodes.get(S);if(e&&g)e.edges.push(this.edges[this.edges.length-1]),g.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(w){if(w.members.length<2)throw Error(`An align directive requires at least two members; got ${w.members.length}`);let S=new Set;w.members.forEach((D)=>{if(this.registeredIds.get(D)!=="node")throw Error(`align ${w.direction} references [${D}], which is not a service or junction`);if(S.has(D))throw Error(`align ${w.direction} lists [${D}] more than once`);S.add(D)}),this.layoutHints.push(w)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let w=new Map,S=new Map;for(let[n,a]of this.nodes.entries()){let u=new Map;for(let r of a.edges){let p=this.getNode(r.lhsId)?.in,i=this.getNode(r.rhsId)?.in;if(p&&i&&p!==i){let e=ur(r.lhsDir,r.rhsDir);if(e!=="bend")w.set(qe(p,i),e)}if(r.lhsId===n){let e=be(r.lhsDir,r.rhsDir);if(e)u.set(e,r.rhsId)}else{let e=be(r.rhsDir,r.lhsDir);if(e)u.set(e,r.lhsId)}}S.set(n,u)}let D=new Set,v=new Set(S.keys()),f=t((n)=>{let a=new Map([[n,[0,0]]]),u=[n];while(u.length>0){let r=u.shift();if(r){D.add(r),v.delete(r);let p=S.get(r);if(!p)throw Error(`BFS error: adjacency list for id ${r} not found. Please report this as a bug.`);let i=a.get(r);if(!i)throw Error(`BFS error: position for id ${r} not found in spatial map. Please report this as a bug.`);let[e,g]=i;p.forEach((d,c)=>{if(!D.has(d))a.set(d,cr([e,g],c)),u.push(d)})}}return a},"BFS"),o=[];while(v.size>0){let n=v.values().next().value;o.push(f(n))}this.dataStructures={adjList:S,spatialMaps:o,groupAlignments:w}}return this.dataStructures}setElementForId(w,S){this.elements.set(w,S)}getElementById(w){return this.elements.get(w)}getConfig(){return ie({...pr,...C().architecture})}getConfigField(w){return this.getConfig()[w]}},yr=t((w,S)=>{ke(w,S),w.groups.map((D)=>S.addGroup(D)),w.services.map((D)=>S.addService({...D,type:"service"})),w.junctions.map((D)=>S.addJunction({...D,type:"junction"})),w.edges.map((D)=>S.addEdge(D)),w.alignments?.map((D)=>S.addLayoutHint({direction:D.direction,members:[...D.members]}))},"populateDb"),Ke={parser:{yy:void 0},parse:t(async(w)=>{let S=await Pe("architecture",w);l.debug(S);let D=Ke.parser?.yy;if(!(D instanceof Je))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");yr(S,D)},"parse")},Er=t((w)=>`
2
+ .edge {
3
+ stroke-width: ${w.archEdgeWidth};
4
+ stroke: ${w.archEdgeColor};
5
+ fill: none;
6
+ }
7
+
8
+ .arrow {
9
+ fill: ${w.archEdgeArrowColor};
10
+ }
11
+
12
+ .node-bkg {
13
+ fill: none;
14
+ stroke: ${w.archGroupBorderColor};
15
+ stroke-width: ${w.archGroupBorderWidth};
16
+ stroke-dasharray: 8;
17
+ }
18
+ .node-icon-text {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ .node-icon-text > div {
24
+ color: #fff;
25
+ margin: 1px;
26
+ height: fit-content;
27
+ text-align: center;
28
+ overflow: hidden;
29
+ display: -webkit-box;
30
+ -webkit-box-orient: vertical;
31
+ }
32
+ `,"getStyles"),Tr=Er;function Ge(w,S){if(w===0)return S();let D=Math.random,v=w>>>0;Math.random=function(){v=v+1831565813>>>0;let f=v;return f=Math.imul(f^f>>>15,f|1),f^=f+Math.imul(f^f>>>7,f|61),((f^f>>>14)>>>0)/4294967296};try{return S()}finally{Math.random=D}}t(Ge,"withSeededRandom");var pe=t((w)=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${w}</g>`,"wrapIcon"),Ne={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:pe('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:pe('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:pe('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:pe('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:pe('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:Ng,blank:{body:pe("")}}},Nr=t(async function(w,S,D,v){let f=D.getConfigField("padding"),o=D.getConfigField("iconSize"),n=o/2,a=o/6,u=a/2;await Promise.all(S.edges().map(async(r)=>{let{source:p,sourceDir:i,sourceArrow:e,sourceGroup:g,target:d,targetDir:c,targetArrow:I,targetGroup:T,label:N}=Qe(r),{x,y:X}=r[0].sourceEndpoint(),{x:R,y:V}=r[0].midpoint(),{x:_,y:Q}=r[0].targetEndpoint(),lt=f+4;if(g)if(_t(i))x+=i==="L"?-lt:lt;else X+=i==="T"?-lt:lt+18;if(T)if(_t(c))_+=c==="L"?-lt:lt;else Q+=c==="T"?-lt:lt+18;if(!g&&D.getNode(p)?.type==="junction")if(_t(i))x+=i==="L"?n:-n;else X+=i==="T"?n:-n;if(!T&&D.getNode(d)?.type==="junction")if(_t(c))_+=c==="L"?n:-n;else Q+=c==="T"?n:-n;if(r[0]._private.rscratch){let P=w.insert("g");if(P.insert("path").attr("d",`M ${x},${X} L ${R},${V} L${_},${Q} `).attr("class","edge").attr("id",`${v}-${Rn(p,d,{prefix:"L"})}`),e){let tt=_t(i)?we[i](x,a):x-u,s=he(i)?we[i](X,a):X-u;P.insert("polygon").attr("points",Be[i](a)).attr("transform",`translate(${tt},${s})`).attr("class","arrow")}if(I){let tt=_t(c)?we[c](_,a):_-u,s=he(c)?we[c](Q,a):Q-u;P.insert("polygon").attr("points",Be[c](a)).attr("transform",`translate(${tt},${s})`).attr("class","arrow")}if(N){let tt=!Ue(i,c)?_t(i)?"X":"Y":"XY",s=0;if(tt==="X")s=Math.abs(x-_);else if(tt==="Y")s=Math.abs(X-Q)/1.5;else s=Math.abs(x-_)/2;let L=P.append("g");if(await fn(L,N,{useHtmlLabels:!1,width:s,classes:"architecture-service-label"},m()),L.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),tt==="X")L.attr("transform","translate("+R+", "+V+")");else if(tt==="Y")L.attr("transform","translate("+R+", "+V+") rotate(-90)");else if(tt==="XY"){let E=be(i,c);if(E&&lr(E)){let A=L.node().getBoundingClientRect(),[y,U]=gr(E);L.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*y*U*45})`);let b=L.node().getBoundingClientRect();L.attr("transform",`
33
+ translate(${R}, ${V-A.height/2})
34
+ translate(${y*b.width/2}, ${U*b.height/2})
35
+ rotate(${-1*y*U*45}, 0, ${A.height/2})
36
+ `)}}}}}))},"drawEdges"),Lr=t(async function(w,S,D,v){let o=D.getConfigField("padding")*0.75,n=D.getConfigField("fontSize"),u=D.getConfigField("iconSize")/2;await Promise.all(S.nodes().map(async(r)=>{let p=ye(r);if(p.type==="group"){let{h:i,w:e,x1:g,y1:d}=r.boundingBox(),c=w.append("rect");c.attr("id",`${v}-group-${p.id}`).attr("x",g+u).attr("y",d+u).attr("width",e).attr("height",i).attr("class","node-bkg");let I=w.append("g"),T=g,N=d;if(p.icon){let x=I.append("g");x.html(`<g>${await mr(p.icon,{height:o,width:o,fallbackPrefix:Ne.prefix})}</g>`),x.attr("transform","translate("+(T+u+1)+", "+(N+u+1)+")"),T+=o,N+=n/2-1-2}if(p.label){let x=I.append("g");await fn(x,p.label,{useHtmlLabels:!1,width:e,classes:"architecture-service-label"},m()),x.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),x.attr("transform","translate("+(T+u+4)+", "+(N+u+2)+")")}D.setElementForId(p.id,c)}}))},"drawGroups"),wr=t(async function(w,S,D,v){let f=m();for(let o of D){let n=S.append("g"),a=w.getConfigField("iconSize");if(o.title){let i=n.append("g");await fn(i,o.title,{useHtmlLabels:!1,width:a*1.5,classes:"architecture-service-label"},f),i.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),i.attr("transform","translate("+a/2+", "+a+")")}let u=n.append("g");if(o.icon)u.html(`<g>${await mr(o.icon,{height:a,width:a,fallbackPrefix:Ne.prefix})}</g>`);else if(o.iconText){u.html(`<g>${await mr("blank",{height:a,width:a,fallbackPrefix:Ne.prefix})}</g>`);let g=u.append("g").append("foreignObject").attr("width",a).attr("height",a).append("div").attr("class","node-icon-text").attr("style",`height: ${a}px;`).append("div").html(ee(o.iconText,f)),d=parseInt(window.getComputedStyle(g.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;g.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/d)};`)}else u.append("path").attr("class","node-bkg").attr("id",`${v}-node-${o.id}`).attr("d",`M0,${a} V5 Q0,0 5,0 H${a-5} Q${a},0 ${a},5 V${a} Z`);n.attr("id",`${v}-service-${o.id}`).attr("class","architecture-service");let{width:r,height:p}=n.node().getBBox();o.width=r,o.height=p,w.setElementForId(o.id,n)}return 0},"drawServices"),Mr=t(function(w,S,D,v){D.forEach((f)=>{let o=S.append("g"),n=w.getConfigField("iconSize");o.append("g").append("rect").attr("id",`${v}-node-${f.id}`).attr("fill-opacity","0").attr("width",n).attr("height",n),o.attr("class","architecture-junction");let{width:u,height:r}=o._groups[0][0].getBBox();o.width=u,o.height=r,w.setElementForId(f.id,o)})},"drawJunctions");Ji([{name:Ne.prefix,icons:Ne}]);Vr.use(je.default);function _e(w,S,D){w.forEach((v)=>{S.add({group:"nodes",data:{type:"service",id:v.id,icon:v.icon,label:v.title,parent:v.in,width:D.getConfigField("iconSize"),height:D.getConfigField("iconSize")},classes:"node-service"})})}t(_e,"addServices");function tr(w,S,D){w.forEach((v)=>{S.add({group:"nodes",data:{type:"junction",id:v.id,parent:v.in,width:D.getConfigField("iconSize"),height:D.getConfigField("iconSize")},classes:"node-junction"})})}t(tr,"addJunctions");function er(w,S){S.nodes().map((D)=>{let v=ye(D);if(v.type==="group")return;v.x=D.position().x,v.y=D.position().y,w.getElementById(v.id).attr("transform","translate("+(v.x||0)+","+(v.y||0)+")")})}t(er,"positionNodes");function rr(w,S){w.forEach((D)=>{S.add({group:"nodes",data:{type:"group",id:D.id,icon:D.icon,label:D.title,parent:D.in},classes:"node-group"})})}t(rr,"addGroups");function ir(w,S){w.forEach((D)=>{let{lhsId:v,rhsId:f,lhsInto:o,lhsGroup:n,rhsInto:a,lhsDir:u,rhsDir:r,rhsGroup:p,title:i}=D,e=Ue(D.lhsDir,D.rhsDir)?"segments":"straight",g={id:`${v}-${f}`,label:i,source:v,sourceDir:u,sourceArrow:o,sourceGroup:n,sourceEndpoint:u==="L"?"0 50%":u==="R"?"100% 50%":u==="T"?"50% 0":"50% 100%",target:f,targetDir:r,targetArrow:a,targetGroup:p,targetEndpoint:r==="L"?"0 50%":r==="R"?"100% 50%":r==="T"?"50% 0":"50% 100%"};S.add({group:"edges",data:g,classes:e})})}t(ir,"addEdges");function nr(w,S,D,v=[]){let f=t((e,g)=>{let d=new Map;for(let[c,I]of e.entries()){let T=`${c}`,N=0,x=[...I.entries()];if(x.length===1){d.set(T,x[0][1]);continue}for(let X=0;X<x.length-1;X++)for(let R=X+1;R<x.length;R++){let[V,_]=x[X],[Q,lt]=x[R];if(D.get(qe(V,Q))===g)d.set(T,[...d.get(T)??[],..._,...lt]);else if(V==="default"||Q==="default")d.set(T,[...d.get(T)??[],..._,...lt]);else{let tt=`${T}-${N++}`;d.set(tt,_);let s=`${T}-${N++}`;d.set(s,lt)}}}return d},"flattenAlignments"),o=S.map((e)=>{let g=new Map,d=new Map;return e.forEach(([c,I],T)=>{let N=w.getNode(T)?.in??"default",x=g.get(I)??new Map;if(!g.has(I))g.set(I,x);let X=d.get(c)??new Map;if(!d.has(c))d.set(c,X);for(let R of[x,X]){let V=R.get(N)??[];if(!R.has(N))R.set(N,V);V.push(T)}}),{horiz:[...f(g,"horizontal").values()].filter((c)=>c.length>1),vert:[...f(d,"vertical").values()].filter((c)=>c.length>1)}}),[n,a]=o.reduce(([e,g],{horiz:d,vert:c})=>[[...e,...d],[...g,...c]],[[],[]]),u=new Set;v.forEach((e)=>e.members.forEach((g)=>u.add(g)));let r=t((e)=>e.filter((g)=>!g.some((d)=>u.has(d))),"dropOverlapping"),p=r(n),i=r(a);return v.forEach((e)=>{if(e.members.length<2)return;if(e.direction==="row")p.push([...e.members]);else i.push([...e.members])}),{horizontal:p,vertical:i}}t(nr,"getAlignments");function ar(w,S,D=[]){let v=[],f=S.getConfigField("iconSize"),o=S.getConfigField("idealEdgeLengthMultiplier"),n=o*f,a=new Set;D.forEach((p)=>{for(let i=0;i<p.members.length-1;i++){let e=p.members[i],g=p.members[i+1];if(a.add(`${e}|${g}`),a.add(`${g}|${e}`),p.direction==="row")v.push({left:e,right:g,gap:n});else v.push({top:e,bottom:g,gap:n})}});let u=t((p)=>`${p[0]},${p[1]}`,"posToStr"),r=t((p)=>p.split(",").map((i)=>parseInt(i)),"strToPos");return w.forEach((p)=>{let i=new Map([...p.entries()].map(([c,I])=>[u(I),c])),e=[u([0,0])],g={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(e.length>0){let c=e.shift();if(c){g[c]=1;let I=i.get(c);if(I){let T=r(c);Object.entries(d).forEach(([N,x])=>{let X=u([T[0]+x[0],T[1]+x[1]]),R=i.get(X);if(R&&!g[X]){if(e.push(X),a.has(`${I}|${R}`))return;v.push({[$e[N]]:R,[$e[hr(N)]]:I,gap:o*f})}})}}}}),v}t(ar,"getRelativeConstraints");function or(w,S,D,v,f,{spatialMaps:o,groupAlignments:n}){return new Promise((a)=>{let u=h("body").append("div").attr("id","cy").attr("style","display:none"),r=Vr({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${f.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${f.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});u.remove(),rr(D,r),_e(w,r,f),tr(S,r,f),ir(v,r);let p=f.getLayoutHints(),i=nr(f,o,n,p),e=ar(o,f,p),g=f.getConfigField("iconSize"),d=f.getConfigField("idealEdgeLengthMultiplier")*g,c=0.5*g,I=f.getConfigField("edgeElasticity"),T=f.getConfigField("seed"),N=r.layout({name:"fcose",quality:"proof",randomize:f.getConfigField("randomize"),nodeSeparation:f.getConfigField("nodeSeparation"),numIter:f.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(x){let[X,R]=x.connectedNodes(),{parent:V}=ye(X),{parent:_}=ye(R);return V===_?d:c},edgeElasticity(x){let[X,R]=x.connectedNodes(),{parent:V}=ye(X),{parent:_}=ye(R);return V===_?I:0.001},alignmentConstraint:i,relativePlacementConstraint:e});N.one("layoutstop",()=>{function x(X,R,V,_){let Q,lt,{x:P,y:tt}=X,{x:s,y:L}=R;lt=(_-tt+(P-V)*(tt-L)/(P-s))/Math.sqrt(1+Math.pow((tt-L)/(P-s),2)),Q=Math.sqrt(Math.pow(_-tt,2)+Math.pow(V-P,2)-Math.pow(lt,2));let E=Math.sqrt(Math.pow(s-P,2)+Math.pow(L-tt,2));Q=Q/E;let A=(s-P)*(_-tt)-(L-tt)*(V-P);switch(!0){case A>=0:A=1;break;case A<0:A=-1;break}let y=(s-P)*(V-P)+(L-tt)*(_-tt);switch(!0){case y>=0:y=1;break;case y<0:y=-1;break}return lt=Math.abs(lt)*A,Q=Q*y,{distances:lt,weights:Q}}t(x,"getSegmentWeights"),r.startBatch();for(let X of Object.values(r.edges()))if(X.data?.()){let{x:R,y:V}=X.source().position(),{x:_,y:Q}=X.target().position();if(R!==_&&V!==Q){let lt=X.sourceEndpoint(),P=X.targetEndpoint(),{sourceDir:tt}=Qe(X),[s,L]=he(tt)?[lt.x,P.y]:[P.x,lt.y],{weights:E,distances:A}=x(lt,P,s,L);X.style("segment-distances",A),X.style("segment-weights",E)}}r.endBatch(),Ge(T,()=>N.run())});try{Ge(T,()=>N.run())}catch(x){if(x instanceof RangeError&&x.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw x}r.ready((x)=>{l.info("Ready",x),a(r)})})}t(or,"layoutArchitecture");var Cr=t(async(w,S,D,v)=>{let f=v.db;f.setDiagramId(S);let o=f.getServices(),n=f.getJunctions(),a=f.getGroups(),u=f.getEdges(),r=f.getDataStructures(),p=ge(S),i=p.append("g");i.attr("class","architecture-edges");let e=p.append("g");e.attr("class","architecture-services");let g=p.append("g");g.attr("class","architecture-groups"),await wr(f,e,o,S),Mr(f,e,n,S);let d=await or(o,n,a,u,f,r);await Nr(i,d,f,S),await Lr(g,d,f,S),er(f,d),Jr(void 0,p,f.getConfigField("padding"),f.getConfigField("useMaxWidth"))},"draw"),Ar={draw:Cr},Yr={parser:Ke,get db(){return new Je},renderer:Ar,styles:Tr};export{Yr as diagram};
@@ -1 +1 @@
1
- import{Ci}from"./index-396r53n0.js";import{Ue}from"./index-1c2jvnyh.js";import{Na,Td}from"./index-e5j5gc4h.js";import{vt}from"./index-hkz2mz34.js";import{Kc}from"./index-c5hjht5e.js";var e=Object.freeze(JSON.parse('{"displayName":"Astro","fileTypes":["astro"],"injections":{"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.js"}]}]},"L:(meta.script.astro) (meta.lang.json) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.json","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.json"}]}]},"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.ts","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.ts"}]}]},"L:meta.script.astro - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.js"}]}]},"L:meta.style.astro - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css"}]}]},"L:meta.style.astro meta.lang.css - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css"}]}]},"L:meta.style.astro meta.lang.less - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.less","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.astro meta.lang.postcss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.postcss","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css.postcss"}]}]},"L:meta.style.astro meta.lang.sass - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.sass","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.sass"}]}]},"L:meta.style.astro meta.lang.scss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.scss","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.astro meta.lang.stylus - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.stylus","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.stylus"}]}]}},"name":"astro","patterns":[{"include":"#scope"},{"include":"#frontmatter"},{"include":"#text"}],"repository":{"attribute-literal":{"begin":"(`)","end":"\\\\1","name":"string.template.astro","patterns":[{"include":"source.tsx#template-substitution-element"},{"include":"source.tsx#string-character-escape"}]},"attributes":{"patterns":[{"include":"#attributes-events"},{"include":"#attributes-keyvalue"},{"include":"#attributes-interpolated"}]},"attributes-events":{"begin":"(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o((?:n|ff)line)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d((?:|meta)data)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![-:\\\\\\\\w])","beginCaptures":{"0":{"patterns":[{"match":".*","name":"entity.other.attribute-name.astro"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.astro","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.astro"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#interpolation"},{"include":"#attribute-literal"},{"begin":"(?=[^/<=>`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.js","patterns":[{"captures":{"0":{"name":"source.js"},"1":{"patterns":[{"include":"source.js"}]}},"match":"(([^\\"\'/<=>`\\\\s]|/(?!>))+)","name":"string.unquoted.astro"},{"begin":"(\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\\"/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\\")|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\\")|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]},{"begin":"(\')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\'/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\')|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\')|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]}]}]}]},"attributes-interpolated":{"begin":"(?<![:=])\\\\s*(\\\\{)","contentName":"meta.embedded.expression.astro source.tsx","end":"(})","patterns":[{"include":"source.tsx"}]},"attributes-keyvalue":{"begin":"([$@_[:alpha:]][-$.:_[:alnum:]]*)","beginCaptures":{"0":{"patterns":[{"match":".*","name":"entity.other.attribute-name.astro"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.astro","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.astro"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"match":"([^\\"\'/<=>`\\\\s]|/(?!>))+","name":"string.unquoted.astro"},{"begin":"([\\"\'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro"},{"include":"#attribute-literal"}]},"comments":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.astro"}},"end":"-->","name":"comment.block.astro","patterns":[{"match":"\\\\G-?>|<!--(?!>)|<!-(?=-->)|--!>","name":"invalid.illegal.characters-not-allowed-here.astro"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"912":{"name":"punctuation.definition.entity.astro"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.astro"},{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"3":{"name":"punctuation.definition.entity.astro"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.astro"},{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"3":{"name":"punctuation.definition.entity.astro"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.astro"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.astro"}]},"frontmatter":{"begin":"\\\\A(-{3})\\\\s*$","beginCaptures":{"1":{"name":"comment"}},"contentName":"source.ts","end":"(^|\\\\G)(-{3})|\\\\.{3}\\\\s*$","endCaptures":{"2":{"name":"comment"}},"patterns":[{"include":"source.ts"}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.astro"}},"contentName":"meta.embedded.expression.astro source.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.astro"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.tsx#object-literal"}]},{"include":"source.tsx"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#tags"},{"include":"#interpolation"},{"include":"#entities"}]},"tags":{"patterns":[{"include":"#tags-raw"},{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"},"4":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}},"match":"(</)(.*?)\\\\s*(>)|(/>)"},"tags-general-end":{"begin":"(</)([^/>\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"}},"name":"meta.scope.tag.$2.astro"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}},"name":"meta.scope.tag.$2.astro","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(s(?:cript|tyle))","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.scope.tag.$1.astro meta.$1.astro","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(?:text/)?(application/ld\\\\+json)\\\\2)","end":"(?=</|/>)","name":"meta.lang.json.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(module)\\\\2)","end":"(?=</|/>)","name":"meta.lang.javascript.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(?:text/|application/)?([+/\\\\w]+)\\\\2)","end":"(?=</|/>)","name":"meta.lang.$3.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.astro"}},"name":"meta.tag.start.astro","patterns":[{"include":"#attributes"}]},"tags-name":{"patterns":[{"match":"[A-Z][0-9A-Z_a-z]*","name":"support.class.component.astro"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.astro entity.name.tag.astro"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.astro"}]},"tags-raw":{"begin":"<([^!/<>?\\\\s]+)(?=[^>]+is:raw).*?","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"contentName":"source.unknown","end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.scope.tag.$1.astro meta.raw.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.astro","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.astro"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"name":"entity.name.tag.astro"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.astro"}},"name":"meta.tag.void.astro","patterns":[{"include":"#attributes"}]},"text":{"patterns":[{"begin":"(?<=^|---|[>}])","end":"(?=[<{]|$)","name":"text.astro","patterns":[{"include":"#entities"}]}]}},"scopeName":"source.astro","embeddedLangs":["json","javascript","typescript","css","postcss","tsx"],"embeddedLangsLazy":["sass","scss","stylus","less"]}')),o=[...Ci,...Ue,...Na,...vt,...Td,...Kc,e];export{o as default};
1
+ import{Di}from"./index-tc6k8qt7.js";import{We}from"./index-5ztdqm1w.js";import{Oa,Wd}from"./index-1yq96wpa.js";import{kt}from"./index-dmc82cxb.js";import{iu}from"./index-pygy21w5.js";var e=Object.freeze(JSON.parse('{"displayName":"Astro","fileTypes":["astro"],"injections":{"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.js"}]}]},"L:(meta.script.astro) (meta.lang.json) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.json","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.json"}]}]},"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.ts","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.ts"}]}]},"L:meta.script.astro - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.js","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.js"}]}]},"L:meta.style.astro - meta.lang - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css"}]}]},"L:meta.style.astro meta.lang.css - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css"}]}]},"L:meta.style.astro meta.lang.less - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.less","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.astro meta.lang.postcss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.postcss","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css.postcss"}]}]},"L:meta.style.astro meta.lang.sass - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.sass","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.sass"}]}]},"L:meta.style.astro meta.lang.scss - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.css.scss","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.astro meta.lang.stylus - (meta source)":{"patterns":[{"begin":"(?<=>)(?!</)","contentName":"source.stylus","end":"(?=</)","name":"meta.embedded.block.astro","patterns":[{"include":"source.stylus"}]}]}},"name":"astro","patterns":[{"include":"#scope"},{"include":"#frontmatter"},{"include":"#text"}],"repository":{"attribute-literal":{"begin":"(`)","end":"\\\\1","name":"string.template.astro","patterns":[{"include":"source.tsx#template-substitution-element"},{"include":"source.tsx#string-character-escape"}]},"attributes":{"patterns":[{"include":"#attributes-events"},{"include":"#attributes-keyvalue"},{"include":"#attributes-interpolated"}]},"attributes-events":{"begin":"(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o((?:n|ff)line)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d((?:|meta)data)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![-:\\\\\\\\w])","beginCaptures":{"0":{"patterns":[{"match":".*","name":"entity.other.attribute-name.astro"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.astro","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.astro"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#interpolation"},{"include":"#attribute-literal"},{"begin":"(?=[^/<=>`\\\\s]|/(?!>))","end":"(?!\\\\G)","name":"meta.embedded.line.js","patterns":[{"captures":{"0":{"name":"source.js"},"1":{"patterns":[{"include":"source.js"}]}},"match":"(([^\\"\'/<=>`\\\\s]|/(?!>))+)","name":"string.unquoted.astro"},{"begin":"(\\")","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\\"/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\\")|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\\")|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]},{"begin":"(\')","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro","patterns":[{"captures":{"0":{"patterns":[{"include":"source.js"}]}},"match":"([^\\\\n\'/]|/(?![*/]))+"},{"begin":"//","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}},"end":"(?=\')|\\\\n","name":"comment.line.double-slash.js"},{"begin":"/\\\\*","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"end":"(?=\')|\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}},"name":"comment.block.js"}]}]}]}]},"attributes-interpolated":{"begin":"(?<![:=])\\\\s*(\\\\{)","contentName":"meta.embedded.expression.astro source.tsx","end":"(})","patterns":[{"include":"source.tsx"}]},"attributes-keyvalue":{"begin":"([$@_[:alpha:]][-$.:_[:alnum:]]*)","beginCaptures":{"0":{"patterns":[{"match":".*","name":"entity.other.attribute-name.astro"}]}},"end":"(?=\\\\s*+[^=\\\\s])","name":"meta.attribute.$1.astro","patterns":[{"begin":"=","beginCaptures":{"0":{"name":"punctuation.separator.key-value.astro"}},"end":"(?<=[^=\\\\s])(?!\\\\s*=)|(?=/?>)","patterns":[{"include":"#attributes-value"}]}]},"attributes-value":{"patterns":[{"include":"#interpolation"},{"match":"([^\\"\'/<=>`\\\\s]|/(?!>))+","name":"string.unquoted.astro"},{"begin":"([\\"\'])","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"end":"\\\\1","endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}},"name":"string.quoted.astro"},{"include":"#attribute-literal"}]},"comments":{"begin":"<!--","captures":{"0":{"name":"punctuation.definition.comment.astro"}},"end":"-->","name":"comment.block.astro","patterns":[{"match":"\\\\G-?>|<!--(?!>)|<!-(?=-->)|--!>","name":"invalid.illegal.characters-not-allowed-here.astro"}]},"entities":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"912":{"name":"punctuation.definition.entity.astro"}},"match":"(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","name":"constant.character.entity.named.$2.astro"},{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"3":{"name":"punctuation.definition.entity.astro"}},"match":"(&)#[0-9]+(;)","name":"constant.character.entity.numeric.decimal.astro"},{"captures":{"1":{"name":"punctuation.definition.entity.astro"},"3":{"name":"punctuation.definition.entity.astro"}},"match":"(&)#[Xx]\\\\h+(;)","name":"constant.character.entity.numeric.hexadecimal.astro"},{"match":"&(?=[0-9A-Za-z]+;)","name":"invalid.illegal.ambiguous-ampersand.astro"}]},"frontmatter":{"begin":"\\\\A(-{3})\\\\s*$","beginCaptures":{"1":{"name":"comment"}},"contentName":"source.ts","end":"(^|\\\\G)(-{3})|\\\\.{3}\\\\s*$","endCaptures":{"2":{"name":"comment"}},"patterns":[{"include":"source.ts"}]},"interpolation":{"patterns":[{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.astro"}},"contentName":"meta.embedded.expression.astro source.tsx","end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.astro"}},"patterns":[{"begin":"\\\\G\\\\s*(?=\\\\{)","end":"(?<=})","patterns":[{"include":"source.tsx#object-literal"}]},{"include":"source.tsx"}]}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#tags"},{"include":"#interpolation"},{"include":"#entities"}]},"tags":{"patterns":[{"include":"#tags-raw"},{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"captures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"},"4":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}},"match":"(</)(.*?)\\\\s*(>)|(/>)"},"tags-general-end":{"begin":"(</)([^/>\\\\s]*)","beginCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]}},"end":"(>)","endCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"}},"name":"meta.scope.tag.$2.astro"},"tags-general-start":{"begin":"(<)([^/>\\\\s]*)","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"(/?>)","endCaptures":{"1":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}},"name":"meta.scope.tag.$2.astro","patterns":[{"include":"#tags-start-attributes"}]},"tags-lang":{"begin":"<(s(?:cript|tyle))","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.scope.tag.$1.astro meta.$1.astro","patterns":[{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(?:text/)?(application/ld\\\\+json)\\\\2)","end":"(?=</|/>)","name":"meta.lang.json.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(module)\\\\2)","end":"(?=</|/>)","name":"meta.lang.javascript.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"begin":"\\\\G(?=\\\\s*[^>]*?(type|lang)\\\\s*=\\\\s*([\\"\']?)(?:text/|application/)?([+/\\\\w]+)\\\\2)","end":"(?=</|/>)","name":"meta.lang.$3.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{"begin":"\\\\G","end":"(?=/>)|>","endCaptures":{"0":{"name":"punctuation.definition.tag.end.astro"}},"name":"meta.tag.start.astro","patterns":[{"include":"#attributes"}]},"tags-name":{"patterns":[{"match":"[A-Z][0-9A-Z_a-z]*","name":"support.class.component.astro"},{"match":"[a-z][0-:\\\\w]*-[-0-:\\\\w]*","name":"meta.tag.custom.astro entity.name.tag.astro"},{"match":"[a-z][-0-:\\\\w]*","name":"entity.name.tag.astro"}]},"tags-raw":{"begin":"<([^!/<>?\\\\s]+)(?=[^>]+is:raw).*?","beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"contentName":"source.unknown","end":"</\\\\1\\\\s*>|/>","endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}},"name":"meta.scope.tag.$1.astro meta.raw.astro","patterns":[{"include":"#tags-lang-start-attributes"}]},"tags-start-attributes":{"begin":"\\\\G","end":"(?=/?>)","name":"meta.tag.start.astro","patterns":[{"include":"#attributes"}]},"tags-start-node":{"captures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"patterns":[{"include":"#tags-name"}]}},"match":"(<)([^/>\\\\s]*)","name":"meta.tag.start.astro"},"tags-void":{"begin":"(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\\\s|/?>)","beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"name":"entity.name.tag.astro"}},"end":"/?>","endCaptures":{"0":{"name":"punctuation.definition.tag.begin.astro"}},"name":"meta.tag.void.astro","patterns":[{"include":"#attributes"}]},"text":{"patterns":[{"begin":"(?<=^|---|[>}])","end":"(?=[<{]|$)","name":"text.astro","patterns":[{"include":"#entities"}]}]}},"scopeName":"source.astro","embeddedLangs":["json","javascript","typescript","css","postcss","tsx"],"embeddedLangsLazy":["sass","scss","stylus","less"]}')),o=[...Di,...We,...Oa,...kt,...Wd,...iu,e];export{o as default};
@@ -0,0 +1 @@
1
+ import{ym}from"./index-7ff9scbm.js";export{ym as default};