@evoscientist/webui 0.0.10 → 0.1.1

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 (287) hide show
  1. package/README.md +4 -0
  2. package/dist/.next/BUILD_ID +1 -1
  3. package/dist/.next/build-manifest.json +8 -8
  4. package/dist/.next/server/app/_global-error/page/build-manifest.json +5 -5
  5. package/dist/.next/server/app/_global-error/page.js +2 -2
  6. package/dist/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  7. package/dist/.next/server/app/_global-error.html +1 -1
  8. package/dist/.next/server/app/_global-error.rsc +7 -7
  9. package/dist/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  10. package/dist/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
  11. package/dist/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
  12. package/dist/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  13. package/dist/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/dist/.next/server/app/_not-found/page/build-manifest.json +5 -5
  15. package/dist/.next/server/app/_not-found/page.js +2 -2
  16. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/dist/.next/server/app/_not-found.html +1 -1
  18. package/dist/.next/server/app/_not-found.rsc +12 -12
  19. package/dist/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  20. package/dist/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  21. package/dist/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
  22. package/dist/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  23. package/dist/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  24. package/dist/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  25. package/dist/.next/server/app/api/memory/route.js +2 -2
  26. package/dist/.next/server/app/api/memory/route.js.nft.json +1 -1
  27. package/dist/.next/server/app/api/skills/catalog/route.js +2 -2
  28. package/dist/.next/server/app/api/skills/catalog/route.js.nft.json +1 -1
  29. package/dist/.next/server/app/api/skills/detail/route.js +2 -2
  30. package/dist/.next/server/app/api/skills/detail/route.js.nft.json +1 -1
  31. package/dist/.next/server/app/api/skills/install/route.js +2 -2
  32. package/dist/.next/server/app/api/skills/install/route.js.nft.json +1 -1
  33. package/dist/.next/server/app/api/skills/route.js +2 -2
  34. package/dist/.next/server/app/api/skills/route.js.nft.json +1 -1
  35. package/dist/.next/server/app/api/workspace/download/route.js +2 -2
  36. package/dist/.next/server/app/api/workspace/file/route.js +2 -2
  37. package/dist/.next/server/app/api/workspace/route.js +2 -2
  38. package/dist/.next/server/app/api/workspace/upload/route.js +2 -2
  39. package/dist/.next/server/app/icon.png/route.js +2 -2
  40. package/dist/.next/server/app/index.html +1 -1
  41. package/dist/.next/server/app/index.rsc +14 -14
  42. package/dist/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  43. package/dist/.next/server/app/index.segments/_full.segment.rsc +14 -14
  44. package/dist/.next/server/app/index.segments/_head.segment.rsc +4 -4
  45. package/dist/.next/server/app/index.segments/_index.segment.rsc +7 -7
  46. package/dist/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  47. package/dist/.next/server/app/page/build-manifest.json +5 -5
  48. package/dist/.next/server/app/page.js +2 -2
  49. package/dist/.next/server/app/page.js.nft.json +1 -1
  50. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  51. package/dist/.next/server/chunks/[externals]_next_dist_0arv.vj._.js +1 -1
  52. package/dist/.next/server/chunks/[root-of-the-server]__0-8pt0b._.js +2 -2
  53. package/dist/.next/server/chunks/[root-of-the-server]__04y5ms7._.js +2 -2
  54. package/dist/.next/server/chunks/[root-of-the-server]__08kko28._.js +1 -1
  55. package/dist/.next/server/chunks/[root-of-the-server]__0bpxd~j._.js +1 -1
  56. package/dist/.next/server/chunks/[root-of-the-server]__0cnmh23._.js +1 -1
  57. package/dist/.next/server/chunks/[root-of-the-server]__0j8-xkl._.js +3 -3
  58. package/dist/.next/server/chunks/[root-of-the-server]__0nngqla._.js +2 -2
  59. package/dist/.next/server/chunks/[root-of-the-server]__0o.c5k_._.js +1 -1
  60. package/dist/.next/server/chunks/[root-of-the-server]__0pz~0wz._.js +2 -2
  61. package/dist/.next/server/chunks/[root-of-the-server]__0s0~gzh._.js +1 -1
  62. package/dist/.next/server/chunks/[root-of-the-server]__0xoct7b._.js +1 -1
  63. package/dist/.next/server/chunks/_next-internal_server_app_api_evosci-config_route_actions_0nka7fr.js +1 -1
  64. package/dist/.next/server/chunks/_next-internal_server_app_api_memory_route_actions_0jf5z0q.js +1 -1
  65. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_catalog_route_actions_0pp.pug.js +1 -1
  66. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_detail_route_actions_02~v0so.js +1 -1
  67. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_install_route_actions_03-v3ve.js +1 -1
  68. package/dist/.next/server/chunks/_next-internal_server_app_api_skills_route_actions_0kp0j6w.js +1 -1
  69. package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_download_route_actions_0y83v2y.js +1 -1
  70. package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_route_actions_0rc11bi.js +1 -1
  71. package/dist/.next/server/chunks/_next-internal_server_app_api_workspace_upload_route_actions_070kzk5.js +1 -1
  72. package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0dh.2jf.js +1 -1
  73. package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0firp2j.js +1 -1
  74. package/dist/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0qs61ly.js +1 -1
  75. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_0xc8cuq._.js +106 -0
  76. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_12xi8w0._.js +66 -0
  77. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0d.k2tv._.js +136 -0
  78. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_02zfksy._.js +81 -0
  79. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0c30c1e._.js +3 -0
  80. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_07fd9jw._.js +155 -0
  81. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0a2sjhb._.js +79 -0
  82. package/dist/.next/server/chunks/ssr/0_lp_modules_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_0xpvx~c._.js +3 -0
  83. package/dist/.next/server/chunks/ssr/0t6k_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-NNHCCRGN_mjs_01.5gnv._.js +82 -0
  84. package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_0ya3nf7._.js +92 -0
  85. package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_07c4~j8._.js +81 -0
  86. package/dist/.next/server/chunks/ssr/0t6k_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0i6u~cs._.js +117 -0
  87. package/dist/.next/server/chunks/ssr/[root-of-the-server]__01cqrhy._.js +2 -2
  88. package/dist/.next/server/chunks/ssr/[root-of-the-server]__098zro9._.js +4 -4
  89. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e_kl3j._.js +1 -1
  90. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0e~coys._.js +1 -1
  91. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0lb9jwe._.js +1 -1
  92. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0tcyn68._.js +2 -2
  93. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wd7vkh._.js +32 -32
  94. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0wg-5yv._.js +3 -0
  95. package/dist/.next/server/chunks/ssr/[root-of-the-server]__0zi~h76._.js +1 -1
  96. package/dist/.next/server/chunks/ssr/[root-of-the-server]__1130a6w._.js +1 -1
  97. package/dist/.next/server/chunks/ssr/_03eop86._.js +2 -2
  98. package/dist/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js +1 -1
  99. package/dist/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js +1 -1
  100. package/dist/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js +1 -1
  101. package/dist/.next/server/chunks/ssr/node_modules_0-1grbb._.js +3 -0
  102. package/dist/.next/server/chunks/ssr/node_modules_01cxuby._.js +26 -0
  103. package/dist/.next/server/chunks/ssr/node_modules_01g.ix5._.js +3 -0
  104. package/dist/.next/server/chunks/ssr/node_modules_05gcv18._.js +17 -0
  105. package/dist/.next/server/chunks/ssr/node_modules_06xkovd._.js +3 -0
  106. package/dist/.next/server/chunks/ssr/node_modules_07a8dl.._.js +17 -0
  107. package/dist/.next/server/chunks/ssr/node_modules_09.c5cb._.js +3 -0
  108. package/dist/.next/server/chunks/ssr/node_modules_09w7yel._.js +2 -2
  109. package/dist/.next/server/chunks/ssr/node_modules_0_1jgqq._.js +17 -0
  110. package/dist/.next/server/chunks/ssr/node_modules_0_ce7g1._.js +1 -1
  111. package/dist/.next/server/chunks/ssr/node_modules_0cdeu-p._.js +2 -2
  112. package/dist/.next/server/chunks/ssr/node_modules_0g~jsln._.js +3 -0
  113. package/dist/.next/server/chunks/ssr/node_modules_0h3oz6o._.js +3 -0
  114. package/dist/.next/server/chunks/ssr/node_modules_0hsalo_._.js +3 -0
  115. package/dist/.next/server/chunks/ssr/node_modules_0hwzlhf._.js +3 -0
  116. package/dist/.next/server/chunks/ssr/node_modules_0j48jbs._.js +3 -0
  117. package/dist/.next/server/chunks/ssr/node_modules_0j5y4_5._.js +3 -0
  118. package/dist/.next/server/chunks/ssr/node_modules_0j_qjbq._.js +3 -0
  119. package/dist/.next/server/chunks/ssr/node_modules_0k~wgzn._.js +3 -0
  120. package/dist/.next/server/chunks/ssr/node_modules_0m8d9.a._.js +3 -0
  121. package/dist/.next/server/chunks/ssr/node_modules_0muum2-._.js +17 -0
  122. package/dist/.next/server/chunks/ssr/node_modules_0n1oaty._.js +3 -0
  123. package/dist/.next/server/chunks/ssr/node_modules_0nsd60y._.js +3 -0
  124. package/dist/.next/server/chunks/ssr/node_modules_0pi1vzb._.js +3 -0
  125. package/dist/.next/server/chunks/ssr/node_modules_0q8gl61._.js +3 -0
  126. package/dist/.next/server/chunks/ssr/node_modules_0qha24~._.js +3 -0
  127. package/dist/.next/server/chunks/ssr/node_modules_0rb97t7._.js +45 -0
  128. package/dist/.next/server/chunks/ssr/node_modules_0rmdi2n._.js +3 -0
  129. package/dist/.next/server/chunks/ssr/node_modules_0rs-at~._.js +3 -0
  130. package/dist/.next/server/chunks/ssr/node_modules_0s8hn7e._.js +3 -0
  131. package/dist/.next/server/chunks/ssr/node_modules_0usc4s9._.js +11 -0
  132. package/dist/.next/server/chunks/ssr/node_modules_0uteg8_._.js +3 -0
  133. package/dist/.next/server/chunks/ssr/node_modules_0ve5~h2._.js +31 -0
  134. package/dist/.next/server/chunks/ssr/node_modules_0vstvyn._.js +3 -0
  135. package/dist/.next/server/chunks/ssr/node_modules_0x2wy7b._.js +17 -0
  136. package/dist/.next/server/chunks/ssr/node_modules_0yo1ilw._.js +17 -0
  137. package/dist/.next/server/chunks/ssr/node_modules_0z~-p3m._.js +38 -0
  138. package/dist/.next/server/chunks/ssr/node_modules_0~4gze7._.js +3 -0
  139. package/dist/.next/server/chunks/ssr/node_modules_13oabuj._.js +289 -0
  140. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_00zox90._.js +3 -0
  141. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_048nvza._.js +3 -0
  142. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0bqbkzr._.js +3 -0
  143. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0iy4ann._.js +3 -0
  144. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0n~wpy6._.js +3 -0
  145. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0rp8krb._.js +3 -0
  146. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0se--ys._.js +3 -0
  147. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_0v554rd._.js +3 -0
  148. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_12i5eeu._.js +3 -0
  149. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0.ksprp._.js +3 -0
  150. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00~7fbh._.js +3 -0
  151. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_01-g753._.js +3 -0
  152. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_02.ao_s._.js +3 -0
  153. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_yd3ib._.js +3 -0
  154. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c.1f2e._.js +3 -0
  155. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0l0_~d-._.js +3 -0
  156. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0pjzhbh._.js +3 -0
  157. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0uq.qxy._.js +3 -0
  158. package/dist/.next/server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13s5vbm._.js +3 -0
  159. package/dist/.next/server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0642y5z._.js +3 -0
  160. package/dist/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_097t5l0.js +3 -0
  161. package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0w42f48._.js +3 -0
  162. package/dist/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_0zuygmo._.js +3 -0
  163. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0bclh9~._.js +129 -0
  164. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_11i~hhk._.js +7 -0
  165. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_0p4md.t._.js +64 -0
  166. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_0p7as5d._.js +4 -0
  167. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_05x94.y._.js +203 -0
  168. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_0_foecb._.js +228 -0
  169. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_0g3lwf.._.js +121 -0
  170. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_0.lzb4g._.js +12 -0
  171. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_041viuq._.js +62 -0
  172. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0h8ib.t._.js +3 -0
  173. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_0itw5kh._.js +3 -0
  174. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0et-fze._.js +26 -0
  175. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_12bfcsi._.js +82 -0
  176. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_0136c8y._.js +154 -0
  177. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_0z55106._.js +36 -0
  178. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0azazz~._.js +3 -0
  179. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_0wzofym._.js +25 -0
  180. package/dist/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_0rr2bb.._.js +6 -0
  181. package/dist/.next/server/chunks/ssr/node_modules_next_dist_0xdsm99._.js +2 -2
  182. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +1 -1
  183. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +1 -1
  184. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +1 -1
  185. package/dist/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +1 -1
  186. package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_00t_ate.js +2 -2
  187. package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_031v14j.js +2 -2
  188. package/dist/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rc3ul_.js +2 -2
  189. package/dist/.next/server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_0opq-c5.js +3 -0
  190. package/dist/.next/server/middleware-build-manifest.js +8 -8
  191. package/dist/.next/server/pages/404.html +1 -1
  192. package/dist/.next/server/pages/500.html +1 -1
  193. package/dist/.next/static/chunks/0-.wbb-l7eg0y.js +1 -0
  194. package/dist/.next/static/chunks/0-6znc4v4kg4~.js +1 -0
  195. package/dist/.next/static/chunks/01ontipw7_pn-.js +1 -0
  196. package/dist/.next/static/chunks/038jxymv2x4u-.js +148 -0
  197. package/dist/.next/static/chunks/03l_lqxocp3uj.js +1 -0
  198. package/dist/.next/static/chunks/03lth2le32c6r.js +201 -0
  199. package/dist/.next/static/chunks/03v0v690_bw8u.js +62 -0
  200. package/dist/.next/static/chunks/03yru4-m-450t.js +1 -0
  201. package/dist/.next/static/chunks/06o.rsm2b~dht.js +60 -0
  202. package/dist/.next/static/chunks/07znaqalfuldz.js +127 -0
  203. package/dist/.next/static/chunks/08nzg~fbi7p-7.js +1 -0
  204. package/dist/.next/static/chunks/08o5wsrurx9ux.js +5 -0
  205. package/dist/.next/static/chunks/09~n7y-jkmjlj.js +152 -0
  206. package/dist/.next/static/chunks/0aqpm5mabssqz.js +1 -0
  207. package/dist/.next/static/chunks/0awsj.h.eiuen.js +1 -0
  208. package/dist/.next/static/chunks/0axtn1ln1j35_.js +79 -0
  209. package/dist/.next/static/chunks/0c5xj4q0jmdu0.js +1 -0
  210. package/dist/.next/static/chunks/0cs_h74-ljzlt.js +77 -0
  211. package/dist/.next/static/chunks/0cu8k_dz43e4y.js +1 -0
  212. package/dist/.next/static/chunks/0dcu67gngfgpb.js +4 -0
  213. package/dist/.next/static/chunks/0do2sl_ugmstg.js +10 -0
  214. package/dist/.next/static/chunks/0dsde0n1co0l..js +1 -0
  215. package/dist/.next/static/chunks/0e4xdug~7dxzk.js +1 -0
  216. package/dist/.next/static/chunks/0ez8v7k1e7v4o.js +1 -0
  217. package/dist/.next/static/chunks/0f8bbcvfh6x_j.js +64 -0
  218. package/dist/.next/static/chunks/0ge0mq0ea60lx.js +1 -0
  219. package/dist/.next/static/chunks/0gq18q-ip0uh2.js +90 -0
  220. package/dist/.next/static/chunks/0hq~c-~dp2g~1.js +1 -0
  221. package/dist/.next/static/chunks/0i8pgzf~hu-3m.js +24 -0
  222. package/dist/.next/static/chunks/0icpvuwlmnlty.js +43 -0
  223. package/dist/.next/static/chunks/0ipk1er3w80bj.js +24 -0
  224. package/dist/.next/static/chunks/0k9_1v72yx36d.js +226 -0
  225. package/dist/.next/static/chunks/0l3uvjh3oslhq.js +1 -0
  226. package/dist/.next/static/chunks/0lfej4svc~ist.js +1 -0
  227. package/dist/.next/static/chunks/0lmzx880lnpb..js +1 -0
  228. package/dist/.next/static/chunks/0luwdx.2p-x9e.js +31 -0
  229. package/dist/.next/static/chunks/0lypu-.xpph9..js +15 -0
  230. package/dist/.next/static/chunks/0mo3-obfy2_6v.js +15 -0
  231. package/dist/.next/static/chunks/0npm9l63~4j0v.js +1 -0
  232. package/dist/.next/static/chunks/0ortphe030oky.js +1 -0
  233. package/dist/.next/static/chunks/0oufb2b491l23.js +153 -0
  234. package/dist/.next/static/chunks/0p9rfgg_duajn.js +2 -0
  235. package/dist/.next/static/chunks/0ps77yd96walr.js +4 -0
  236. package/dist/.next/static/chunks/0qfu4h5g.k-yt.js +1 -0
  237. package/dist/.next/static/chunks/0qm2930z0c.8m.js +80 -0
  238. package/dist/.next/static/chunks/0rhp21-_6q-24.css +2 -0
  239. package/dist/.next/static/chunks/0rhvismtjivza.js +104 -0
  240. package/dist/.next/static/chunks/0rmt10l3458p_.js +93 -0
  241. package/dist/.next/static/chunks/0r~zu0c3j_b7p.js +1 -0
  242. package/dist/.next/static/chunks/0s0v8xobo-2ok.js +34 -0
  243. package/dist/.next/static/chunks/0s8nwq43gep9_.js +15 -0
  244. package/dist/.next/static/chunks/0spswjguxbqfn.js +1 -0
  245. package/dist/.next/static/chunks/0uc19zfv_v9-i.js +1 -0
  246. package/dist/.next/static/chunks/0uf5oxbpavywn.js +1 -0
  247. package/dist/.next/static/chunks/0v4i6jr6yqwgm.js +75 -0
  248. package/dist/.next/static/chunks/0wbhqz.-ey98b.js +1 -0
  249. package/dist/.next/static/chunks/0xxouzzjw_a6q.js +115 -0
  250. package/dist/.next/static/chunks/0ydl92ezt_ppz.js +1 -0
  251. package/dist/.next/static/chunks/0~.e-m04zn5l_.js +119 -0
  252. package/dist/.next/static/chunks/0~b.d.ay4u9zg.js +2 -0
  253. package/dist/.next/static/chunks/104yvyc1ce3q5.js +1 -0
  254. package/dist/.next/static/chunks/112qdnf547wz8.js +1 -0
  255. package/dist/.next/static/chunks/11_7qxlc92f5s.js +1 -0
  256. package/dist/.next/static/chunks/11h85j-8~tny3.js +36 -0
  257. package/dist/.next/static/chunks/11luuvvu~stmv.js +1 -0
  258. package/dist/.next/static/chunks/11uh-ttx4zin-.js +9 -0
  259. package/dist/.next/static/chunks/13mjf5q.pema_.js +2 -0
  260. package/dist/.next/static/chunks/14i46k409qlt0.js +1 -0
  261. package/dist/.next/static/chunks/14j238ax8coge.js +29 -0
  262. package/dist/.next/static/chunks/14u7twut.vmn5.js +1 -0
  263. package/dist/.next/static/chunks/159151ghv9-cc.js +1 -0
  264. package/dist/.next/static/chunks/15r_pfbdb2jhp.js +23 -0
  265. package/dist/.next/static/chunks/16m14x8k2fnon.js +287 -0
  266. package/dist/.next/static/chunks/16pzrphqjtyli.js +1 -0
  267. package/dist/.next/static/chunks/175hd_pl41_vh.js +15 -0
  268. package/dist/.next/static/chunks/182b_f_n0-cdr.js +1 -0
  269. package/dist/.next/static/chunks/187v8dzyf1l-f.js +80 -0
  270. package/dist/.next/static/chunks/turbopack-12mx7z-ex6m1h.js +1 -0
  271. package/dist/package.json +5 -1
  272. package/package.json +5 -1
  273. package/dist/.next/server/chunks/ssr/[root-of-the-server]__04-lgb_._.js +0 -3
  274. package/dist/.next/static/chunks/063f4u.4z~v2d.js +0 -1
  275. package/dist/.next/static/chunks/069oirf3gupp6.js +0 -1
  276. package/dist/.next/static/chunks/09j8za_6zxpaz.js +0 -31
  277. package/dist/.next/static/chunks/0cje14_narrpx.js +0 -4
  278. package/dist/.next/static/chunks/0fsi8lw5utejl.js +0 -1
  279. package/dist/.next/static/chunks/0jtueskz-y_9~.js +0 -2
  280. package/dist/.next/static/chunks/0lb2ln-m2_o~q.js +0 -1
  281. package/dist/.next/static/chunks/0njfd4s35t8hg.css +0 -2
  282. package/dist/.next/static/chunks/143yn1~y.nunv.js +0 -75
  283. package/dist/.next/static/chunks/15km7mt~t~zy4.js +0 -2
  284. package/dist/.next/static/chunks/turbopack-0yd~9xptp2nkd.js +0 -1
  285. /package/dist/.next/static/{Bt8CaAVvU3jBI-gY3KExJ → gkNr2MgYRz9rGG-3TWYFV}/_buildManifest.js +0 -0
  286. /package/dist/.next/static/{Bt8CaAVvU3jBI-gY3KExJ → gkNr2MgYRz9rGG-3TWYFV}/_clientMiddlewareManifest.js +0 -0
  287. /package/dist/.next/static/{Bt8CaAVvU3jBI-gY3KExJ → gkNr2MgYRz9rGG-3TWYFV}/_ssgManifest.js +0 -0
@@ -0,0 +1,24 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,443578,e=>{"use strict";var t=e.i(908381),r=e.i(171206),a=(0,r.__name)((e,a,l,s)=>{e.attr("class",l);let{width:o,height:c,x:d,y:u}=n(e,a);(0,t.configureSvgSize)(e,c,o,s);let h=i(d,u,o,c,a);e.attr("viewBox",h),r.log.debug(`viewBox configured: ${h} with padding: ${a}`)},"setupViewPortForSVG"),n=(0,r.__name)((e,t)=>{let r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+2*t,height:r.height+2*t,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),i=(0,r.__name)((e,t,r,a,n)=>`${e-n} ${t-n} ${r} ${a}`,"createViewBox");e.s(["setupViewPortForSVG",0,a])},905834,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},a=new Set(["cmd","command"]),n=new Set(["evt","event"]),i=new Set(["rmo","readmodel"]),l=new Set(["pcr","processor"]),s=new Set(["ui"]);function o(e){let t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){let e={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(e,t)}}(0,t.__name)(o,"registerValidationChecks");var c=class{static{(0,t.__name)(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){0!==e.sourceFrames.length&&(a.has(e.modelEntityType)?this.validateSources(e,new Set([...s,...l]),"command","ui or processor",t):n.has(e.modelEntityType)?this.validateSources(e,a,"event","command",t):i.has(e.modelEntityType)?this.validateSources(e,n,"read model","event",t):l.has(e.modelEntityType)?this.validateSources(e,i,"processor","read model",t):s.has(e.modelEntityType)&&this.validateSources(e,i,"ui","read model",t))}validateSources(e,t,r,a,n){for(let i of e.sourceFrames){let l=i.ref;void 0===l||t.has(l.modelEntityType)||n("error",`A ${r} can only receive input from a ${a}, not from '${l.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},d={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")},validation:{EventModelingValidator:(0,t.__name)(()=>new c,"EventModelingValidator")}};function u(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),a=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.EventModelingGeneratedModule,d);return r.ServiceRegistry.register(a),o(a),{shared:r,EventModel:a}}(0,t.__name)(u,"createEventModelingServices"),e.s(["EventModelingModule",0,d,"createEventModelingServices",0,u])},660245,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},a=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,n=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if("NUMBER2"===e.name)return parseFloat(t.replace(/,/g,""));if("SEPARATOR"===e.name)return t.substring(1,t.length-1);if("STRING2"===e.name)return t.substring(1,t.length-1);if("INDENTATION"===e.name)return t.length;if("ClassDef"===e.name){if("string"!=typeof t)return t;let e=a.exec(t);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function i(e){let t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){let e={Treemap:t.checkSingleRoot.bind(t)};r.register(e,t)}}(0,t.__name)(i,"registerValidationChecks");var l=class{static{(0,t.__name)(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(let a of e.TreemapRows)a.item&&(void 0===r&&void 0===a.indent?r=0:void 0===a.indent?t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==r&&r>=parseInt(a.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},s={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new n,"ValueConverter")},validation:{TreemapValidator:(0,t.__name)(()=>new l,"TreemapValidator")}};function o(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),a=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.TreemapGrammarGeneratedModule,s);return r.ServiceRegistry.register(a),i(a),{shared:r,Treemap:a}}(0,t.__name)(o,"createTreemapServices"),e.s(["TreemapModule",0,s,"createTreemapServices",0,o])},127129,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){return"INDENTATION"===e.name?t?.length||0:"STRING2"===e.name?t.substring(1,t.length-1):void 0}},a=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},n={parser:{TokenBuilder:(0,t.__name)(()=>new a,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new r,"ValueConverter")}};function i(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),a=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.TreeViewGrammarGeneratedModule,n);return r.ServiceRegistry.register(a),{shared:r,TreeView:a}}(0,t.__name)(i,"createTreeViewServices"),e.s(["TreeViewModule",0,n,"createTreeViewServices",0,i])},324590,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},a=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if("ARCH_ICON"===e.name)return t.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return t.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=t.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=(e=e.slice(1,-1)).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},n={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new a,"ValueConverter")}};function i(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),a=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.ArchitectureGrammarGeneratedModule,n);return r.ServiceRegistry.register(a),{shared:r,Architecture:a}}(0,t.__name)(i,"createArchitectureServices"),e.s(["ArchitectureModule",0,n,"createArchitectureServices",0,i])},762592,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},a={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function n(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),i=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.InfoGrammarGeneratedModule,a);return r.ServiceRegistry.register(i),{shared:r,Info:i}}(0,t.__name)(n,"createInfoServices"),e.s(["InfoModule",0,a,"createInfoServices",0,n])},287470,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},a={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function n(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),i=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.PacketGrammarGeneratedModule,a);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}(0,t.__name)(n,"createPacketServices"),e.s(["PacketModule",0,a,"createPacketServices",0,n])},133473,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},a={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function n(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),i=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.RadarGrammarGeneratedModule,a);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}(0,t.__name)(n,"createRadarServices"),e.s(["RadarModule",0,a,"createRadarServices",0,n])},716327,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},a=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"PieValueConverter")}runCustomConverter(e,t,r){if("PIE_SECTION_LABEL"===e.name)return t.replace(/"/g,"").trim()}},n={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new a,"ValueConverter")}};function i(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),a=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.PieGrammarGeneratedModule,n);return r.ServiceRegistry.register(a),{shared:r,Pie:a}}(0,t.__name)(i,"createPieServices"),e.s(["PieModule",0,n,"createPieServices",0,i])},725188,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidValueConverter{static{(0,t.__name)(this,"WardleyValueConverter")}runCustomConverter(e,t,r){return"LINK_LABEL"===e.name.toUpperCase()?t.substring(1).trim():void 0}},a={parser:{ValueConverter:(0,t.__name)(()=>new r,"ValueConverter")}};function n(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),i=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.WardleyGrammarGeneratedModule,a);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}(0,t.__name)(n,"createWardleyServices"),e.s(["WardleyModule",0,a,"createWardleyServices",0,n])},283214,e=>{"use strict";var t=e.i(539927),r=class extends t.AbstractMermaidTokenBuilder{static{(0,t.__name)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},a={parser:{TokenBuilder:(0,t.__name)(()=>new r,"TokenBuilder"),ValueConverter:(0,t.__name)(()=>new t.CommonValueConverter,"ValueConverter")}};function n(e=t.EmptyFileSystem){let r=(0,t.inject)((0,t.createDefaultSharedCoreModule)(e),t.MermaidGeneratedSharedModule),i=(0,t.inject)((0,t.createDefaultCoreModule)({shared:r}),t.GitGraphGrammarGeneratedModule,a);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}(0,t.__name)(n,"createGitGraphServices"),e.s(["GitGraphModule",0,a,"createGitGraphServices",0,n])},289590,e=>{"use strict";e.i(133473),e.i(660245),e.i(725188),e.i(283214),e.i(762592),e.i(287470),e.i(716327),e.i(127129),e.i(324590),e.i(905834);var t=e.i(539927),r={},a={info:(0,t.__name)(async()=>{let{createInfoServices:t}=await e.A(799352);r.info=t().Info.parser.LangiumParser},"info"),packet:(0,t.__name)(async()=>{let{createPacketServices:t}=await e.A(428477);r.packet=t().Packet.parser.LangiumParser},"packet"),pie:(0,t.__name)(async()=>{let{createPieServices:t}=await e.A(938722);r.pie=t().Pie.parser.LangiumParser},"pie"),treeView:(0,t.__name)(async()=>{let{createTreeViewServices:t}=await e.A(94862);r.treeView=t().TreeView.parser.LangiumParser},"treeView"),architecture:(0,t.__name)(async()=>{let{createArchitectureServices:t}=await e.A(220490);r.architecture=t().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,t.__name)(async()=>{let{createGitGraphServices:t}=await e.A(691759);r.gitGraph=t().GitGraph.parser.LangiumParser},"gitGraph"),eventmodeling:(0,t.__name)(async()=>{let{createEventModelingServices:t}=await e.A(114878);r.eventmodeling=t().EventModel.parser.LangiumParser},"eventmodeling"),radar:(0,t.__name)(async()=>{let{createRadarServices:t}=await e.A(381916);r.radar=t().Radar.parser.LangiumParser},"radar"),treemap:(0,t.__name)(async()=>{let{createTreemapServices:t}=await e.A(558201);r.treemap=t().Treemap.parser.LangiumParser},"treemap"),wardley:(0,t.__name)(async()=>{let{createWardleyServices:t}=await e.A(122457);r.wardley=t().Wardley.parser.LangiumParser},"wardley")};async function n(e,t){let n=a[e];if(!n)throw Error(`Unknown diagram type: ${e}`);r[e]||await n();let l=r[e].parse(t);if(l.lexerErrors.length>0||l.parserErrors.length>0)throw new i(l);return l.value}(0,t.__name)(n,"parse");var i=class extends Error{constructor(e){const t=e.lexerErrors.map(e=>{let t=void 0===e.line||isNaN(e.line)?"?":e.line,r=void 0===e.column||isNaN(e.column)?"?":e.column;return`Lexer error on line ${t}, column ${r}: ${e.message}`}).join("\n"),r=e.parserErrors.map(e=>{let t=void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine,r=void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn;return`Parse error on line ${t}, column ${r}: ${e.message}`}).join("\n");super(`Parsing failed: ${t} ${r}`),this.result=e}static{(0,t.__name)(this,"MermaidParseError")}};e.s(["parse",0,n])},602099,e=>{"use strict";function t(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}(0,e.i(171206).__name)(t,"populateCommonDb"),e.s(["populateCommonDb",0,t])},64912,948293,684511,e=>{"use strict";function t(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function r(e){return(e=t(Math.abs(e)))?e[1]:NaN}e.s(["default",0,r],948293);var a,n,i,l,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){var t;if(!(t=s.exec(e)))throw Error("invalid format: "+e);return new c({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function c(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function d(e,r){var a=t(e,r);if(!a)return e+"";var n=a[0],i=a[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}o.prototype=c.prototype,c.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},e.s(["default",0,o],684511);let u={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d(100*e,t),r:d,s:function(e,r){var n=t(e,r);if(!n)return a=void 0,e.toPrecision(r);var i=n[0],l=n[1],s=l-(a=3*Math.max(-8,Math.min(8,Math.floor(l/3))))+1,o=i.length;return s===o?i:s>o?i+Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+Array(1-s).join("0")+t(e,Math.max(0,r+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function h(e){return e}var m=Array.prototype.map,p=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];i=(n=function(e){var t,n,i,l=void 0===e.grouping||void 0===e.thousands?h:(t=m.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var a=e.length,i=[],l=0,s=t[0],o=0;a>0&&s>0&&(o+s+1>r&&(s=Math.max(1,r-o)),i.push(e.substring(a-=s,a+s)),!((o+=s+1)>r));)s=t[l=(l+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",c=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",f=void 0===e.numerals?h:(i=m.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),g=void 0===e.percent?"%":e.percent+"",v=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function S(e,t){var r=(e=o(e)).fill,n=e.align,i=e.sign,h=e.symbol,m=e.zero,S=e.width,_=e.comma,x=e.precision,M=e.trim,C=e.type;"n"===C?(_=!0,C="g"):u[C]||(void 0===x&&(x=12),M=!0,C="g"),(m||"0"===r&&"="===n)&&(m=!0,r="0",n="=");var w=(t&&void 0!==t.prefix?t.prefix:"")+("$"===h?s:"#"===h&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),T=("$"===h?c:/[%p]/.test(C)?g:"")+(t&&void 0!==t.suffix?t.suffix:""),k=u[C],b=/[defgprs%]/.test(C);function A(e){var t,s,o,c=w,u=T;if("c"===C)u=k(e)+u,e="";else{var h=(e*=1)<0||1/e<0;if(e=isNaN(e)?y:k(Math.abs(e),x),M&&(e=function(e){e:for(var t,r=e.length,a=1,n=-1;a<r;++a)switch(e[a]){case".":n=t=a;break;case"0":0===n&&(n=a),t=a;break;default:if(!+e[a])break e;n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),h&&0==+e&&"+"!==i&&(h=!1),c=(h?"("===i?i:v:"-"===i||"("===i?"":i)+c,u=("s"!==C||isNaN(e)||void 0===a?"":p[8+a/3])+u+(h&&"("===i?")":""),b){for(t=-1,s=e.length;++t<s;)if(48>(o=e.charCodeAt(t))||o>57){u=(46===o?d+e.slice(t+1):e.slice(t))+u,e=e.slice(0,t);break}}}_&&!m&&(e=l(e,1/0));var g=c.length+e.length+u.length,A=g<S?Array(S-g+1).join(r):"";switch(_&&m&&(e=l(A+e,A.length?S-u.length:1/0),A=""),n){case"<":e=c+e+u+A;break;case"=":e=c+A+e+u;break;case"^":e=A.slice(0,g=A.length>>1)+c+e+u+A.slice(g);break;default:e=A+c+e+u}return f(e)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),A.toString=function(){return e+""},A}return{format:S,formatPrefix:function(e,t){var a=3*Math.max(-8,Math.min(8,Math.floor(r(t)/3))),n=Math.pow(10,-a),i=S(((e=o(e)).type="f",e),{suffix:p[8+a/3]});return function(e){return i(n*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,l=n.formatPrefix,e.s(["format",()=>i,"formatPrefix",()=>l],64912)},365332,e=>{"use strict";e.s(["initRange",0,function(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}])},65232,e=>{"use strict";class t extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}(this,e))}}function r({_intern:e,_key:t},a){let n=t(a);return e.has(n)?e.get(n):a}function a(e){return null!==e&&"object"==typeof e?e.valueOf():e}var n=e.i(365332);let i=Symbol("implicit");e.s(["default",0,function e(){var r=new t,a=[],l=[],s=i;function o(e){let t=r.get(e);if(void 0===t){if(s!==i)return s;r.set(e,t=a.push(e)-1)}return l[t%l.length]}return o.domain=function(e){if(!arguments.length)return a.slice();for(let n of(a=[],r=new t,e))r.has(n)||r.set(n,a.push(n)-1);return o},o.range=function(e){return arguments.length?(l=Array.from(e),o):l.slice()},o.unknown=function(e){return arguments.length?(s=e,o):s},o.copy=function(){return e(a,l).unknown(s)},n.initRange.apply(o,arguments),o}],65232)},401475,e=>{"use strict";var t=e.i(65232);e.s(["scaleOrdinal",()=>t.default])},389920,e=>{"use strict";var t=e.i(332090),r=e.i(443578),a=e.i(620144),n=e.i(602099),i=e.i(669587),l=e.i(908381),s=e.i(171206),o=e.i(289590);e.i(947716);var c=e.i(401475);function d(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}let u=function e(t){function r(e,r,a,n,i){!function(e,t,r,a,n,i){for(var l,s,o,c,d,u,h,m,p,f,g,v=[],y=t.children,S=0,_=0,x=y.length,M=t.value;S<x;){o=n-r,c=i-a;do d=y[_++].value;while(!d&&_<x)for(u=h=d,p=Math.max(h/(g=d*d*(f=Math.max(c/o,o/c)/(M*e))),g/u);_<x;++_){if(d+=s=y[_].value,s<u&&(u=s),s>h&&(h=s),(m=Math.max(h/(g=d*d*f),g/u))>p){d-=s;break}p=m}v.push(l={value:d,dice:o<c,children:y.slice(S,_)}),l.dice?function(e,t,r,a,n){for(var i,l=e.children,s=-1,o=l.length,c=e.value&&(a-t)/e.value;++s<o;)(i=l[s]).y0=r,i.y1=n,i.x0=t,i.x1=t+=i.value*c}(l,r,a,n,M?a+=c*d/M:i):function(e,t,r,a,n){for(var i,l=e.children,s=-1,o=l.length,c=e.value&&(n-r)/e.value;++s<o;)(i=l[s]).x0=t,i.x1=a,i.y0=r,i.y1=r+=i.value*c}(l,r,a,M?r+=o*d/M:n,i),M-=d,S=_}}(t,e,r,a,n,i)}return r.ratio=function(t){return e((t*=1)>1?t:1)},r}((1+Math.sqrt(5))/2);function h(){return 0}function m(e){return function(){return e}}function p(e){var t=0,r=e.children,a=r&&r.length;if(a)for(;--a>=0;)t+=r[a].value;else t=1;e.value=t}function f(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=g);for(var r,a,n,i,l,s=new _(e),o=[s];r=o.pop();)if((n=t(r.data))&&(l=(n=Array.from(n)).length))for(r.children=n,i=l-1;i>=0;--i)o.push(a=n[i]=new _(n[i])),a.parent=r,a.depth=r.depth+1;return s.eachBefore(S)}function g(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function y(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function S(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function _(e){this.data=e,this.depth=this.height=0,this.parent=null}_.prototype=f.prototype={constructor:_,count:function(){return this.eachAfter(p)},each:function(e,t){let r=-1;for(let a of this)e.call(t,a,++r,this);return this},eachAfter:function(e,t){for(var r,a,n,i=this,l=[i],s=[],o=-1;i=l.pop();)if(s.push(i),r=i.children)for(a=0,n=r.length;a<n;++a)l.push(r[a]);for(;i=s.pop();)e.call(t,i,++o,this);return this},eachBefore:function(e,t){for(var r,a,n=this,i=[n],l=-1;n=i.pop();)if(e.call(t,n,++l,this),r=n.children)for(a=r.length-1;a>=0;--a)i.push(r[a]);return this},find:function(e,t){let r=-1;for(let a of this)if(e.call(t,a,++r,this))return a},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,a=t.children,n=a&&a.length;--n>=0;)r+=a[n].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),a=t.ancestors(),n=null;for(e=r.pop(),t=a.pop();e===t;)n=e,e=r.pop(),t=a.pop();return n}(t,e),a=[t];t!==r;)a.push(t=t.parent);for(var n=a.length;e!==r;)a.splice(n,0,e),e=e.parent;return a},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return f(this).eachBefore(y)},[Symbol.iterator]:function*(){var e,t,r,a,n=this,i=[n];do for(e=i.reverse(),i=[];n=e.pop();)if(yield n,t=n.children)for(r=0,a=t.length;r<a;++r)i.push(t[r]);while(i.length)}};var x=e.i(64912),M=e.i(723685),C=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=l.setAccTitle,this.getAccTitle=l.getAccTitle,this.setDiagramTitle=l.setDiagramTitle,this.getDiagramTitle=l.getDiagramTitle,this.getAccDescription=l.getAccDescription,this.setAccDescription=l.setAccDescription}static{(0,s.__name)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=l.defaultConfig_default,t=(0,l.getConfig)();return(0,i.cleanAndMerge)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let r=this.classes.get(e)??{id:e,styles:[],textStyles:[]},n=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(e=>{(0,a.isLabelStyle)(e)&&(r?.textStyles?r.textStyles.push(e):r.textStyles=[e]),r?.styles?r.styles.push(e):r.styles=[e]}),this.classes.set(e,r)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,l.clear)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function w(e){if(!e.length)return[];let t=[],r=[];return e.forEach(e=>{let a={name:e.name,children:"Leaf"===e.type?void 0:[]};for(a.classSelector=e?.classSelector,e?.cssCompiledStyles&&(a.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(a.value=e.value);r.length>0&&r[r.length-1].level>=e.level;)r.pop();if(0===r.length)t.push(a);else{let e=r[r.length-1].node;e.children?e.children.push(a):e.children=[a]}"Leaf"!==e.type&&r.push({node:a,level:e.level})}),t}(0,s.__name)(w,"buildHierarchy");var T=(0,s.__name)((e,t)=>{(0,n.populateCommonDb)(e,t);let r=[];for(let r of e.TreemapRows??[])"ClassDefStatement"===r.$type&&t.addClass(r.className??"",r.styleText??"");for(let a of e.TreemapRows??[]){let e=a.item;if(!e)continue;let n=a.indent?parseInt(a.indent):0,i=k(e),l=e.classSelector?t.getStylesForClass(e.classSelector):[],s=l.length>0?l:void 0,o={level:n,name:i,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(o)}let a=w(r),i=(0,s.__name)((e,r)=>{for(let a of e)t.addNode(a,r),a.children&&a.children.length>0&&i(a.children,r+1)},"addNodesRecursively");i(a,0)},"populate"),k=(0,s.__name)(e=>e.name?String(e.name):"","getItemName"),b={parser:{yy:void 0},parse:(0,s.__name)(async e=>{try{let t=o.parse,r=await t("treemap",e);s.log.debug("Treemap AST:",r);let a=b.parser?.yy;if(!(a instanceof C))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");T(r,a)}catch(e){throw s.log.error("Error parsing treemap:",e),e}},"parse")},A=(0,s.__name)((e,n,i,o)=>{let p,g=o.db,v=g.getConfig(),y=v.padding??10,S=g.getDiagramTitle(),_=g.getRoot(),{themeVariables:C}=(0,l.getConfig)();if(!_)return;let w=30*!!S,T=(0,t.selectSvgElement)(n),k=v.nodeWidth?10*v.nodeWidth:960,b=v.nodeHeight?10*v.nodeHeight:500,A=b+w;T.attr("viewBox",`0 0 ${k} ${A}`),(0,l.configureSvgSize)(T,A,k,v.useMaxWidth);try{let e=v.valueFormat||",";if("$0,0"===e)p=(0,s.__name)(e=>"$"+(0,x.format)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),r=t?t[0]:"";p=(0,s.__name)(e=>"$"+(0,x.format)(","+r)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);p=(0,s.__name)(e=>"$"+(0,x.format)(t||"")(e),"valueFormat")}else p=(0,x.format)(e)}catch(e){s.log.error("Error creating format function:",e),p=(0,x.format)(",")}let V=(0,c.scaleOrdinal)().range(["transparent",C.cScale0,C.cScale1,C.cScale2,C.cScale3,C.cScale4,C.cScale5,C.cScale6,C.cScale7,C.cScale8,C.cScale9,C.cScale10,C.cScale11]),P=(0,c.scaleOrdinal)().range(["transparent",C.cScalePeer0,C.cScalePeer1,C.cScalePeer2,C.cScalePeer3,C.cScalePeer4,C.cScalePeer5,C.cScalePeer6,C.cScalePeer7,C.cScalePeer8,C.cScalePeer9,C.cScalePeer10,C.cScalePeer11]),$=(0,c.scaleOrdinal)().range([C.cScaleLabel0,C.cScaleLabel1,C.cScaleLabel2,C.cScaleLabel3,C.cScaleLabel4,C.cScaleLabel5,C.cScaleLabel6,C.cScaleLabel7,C.cScaleLabel8,C.cScaleLabel9,C.cScaleLabel10,C.cScaleLabel11]);S&&T.append("text").attr("x",k/2).attr("y",w/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(S);let B=T.append("g").attr("transform",`translate(0, ${w})`).attr("class","treemapContainer"),E=f(_).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),G=(function(){var e=u,t=!1,r=1,a=1,n=[0],i=h,l=h,s=h,o=h,c=h;function p(e){return e.x0=e.y0=0,e.x1=r,e.y1=a,e.eachBefore(f),n=[0],t&&e.eachBefore(d),e}function f(t){var r=n[t.depth],a=t.x0+r,d=t.y0+r,u=t.x1-r,h=t.y1-r;u<a&&(a=u=(a+u)/2),h<d&&(d=h=(d+h)/2),t.x0=a,t.y0=d,t.x1=u,t.y1=h,t.children&&(r=n[t.depth+1]=i(t)/2,a+=c(t)-r,d+=l(t)-r,u-=s(t)-r,h-=o(t)-r,u<a&&(a=u=(a+u)/2),h<d&&(d=h=(d+h)/2),e(t,a,d,u,h))}return p.round=function(e){return arguments.length?(t=!!e,p):t},p.size=function(e){return arguments.length?(r=+e[0],a=+e[1],p):[r,a]},p.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw Error();return e}(t),p):e},p.padding=function(e){return arguments.length?p.paddingInner(e).paddingOuter(e):p.paddingInner()},p.paddingInner=function(e){return arguments.length?(i="function"==typeof e?e:m(+e),p):i},p.paddingOuter=function(e){return arguments.length?p.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):p.paddingTop()},p.paddingTop=function(e){return arguments.length?(l="function"==typeof e?e:m(+e),p):l},p.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:m(+e),p):s},p.paddingBottom=function(e){return arguments.length?(o="function"==typeof e?e:m(+e),p):o},p.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:m(+e),p):c},p})().size([k,b]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(y).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0)(E),L=G.descendants().filter(e=>e.children&&e.children.length>0),D=B.selectAll(".treemapSection").data(L).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${n}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>V(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>P(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("style",e=>0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(0===e.depth)return;let t=(0,M.select)(this),r=e.data.name;t.text(r);let a=e.x1-e.x0,n=Math.max(15,!1!==v.showValues&&e.value?a-10-30-10-6:a-6-6),i=t.node();if(i.getComputedTextLength()>n){let e=r;for(;e.length>0;){if(0===(e=r.substring(0,e.length-1)).length){t.text("..."),i.getComputedTextLength()>n&&t.text("");break}if(t.text(e+"..."),i.getComputedTextLength()<=n)break}}}),!1!==v.showValues&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let j=G.leaves(),N=B.selectAll(".treemapLeafGroup").data(j).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);N.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?V(e.parent.data.name):V(e.data.name)).attr("style",e=>(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?V(e.parent.data.name):V(e.data.name)).attr("stroke-width",3),N.append("clipPath").attr("id",(e,t)=>`clip-${n}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),N.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+$(e.data.name)+";"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${n}-${t})`).text(e=>e.data.name).each(function(e){let t=(0,M.select)(this),r=e.x1-e.x0,a=e.y1-e.y0,n=t.node(),i=r-8,l=a-8;if(i<10||l<10)return void t.style("display","none");let s=parseInt(t.style("font-size"),10);for(;n.getComputedTextLength()>i&&s>8;)s--,t.style("font-size",`${s}px`);let o=Math.max(6,Math.min(28,Math.round(.6*s))),c=s+2+o;for(;c>l&&s>8&&(!((o=Math.max(6,Math.min(28,Math.round(.6*--s))))<6)||8!==s);)t.style("font-size",`${s}px`),c=s+2+o;t.style("font-size",`${s}px`),(n.getComputedTextLength()>i||s<8||l<s)&&t.style("display","none")}),!1!==v.showValues&&N.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+$(e.data.name)+";"+(0,a.styles2String)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${n}-${t})`).text(e=>e.value?p(e.value):"").each(function(e){let t=(0,M.select)(this),r=this.parentNode;if(!r)return void t.style("display","none");let a=(0,M.select)(r).select(".treemapLabel");if(a.empty()||"none"===a.style("display"))return void t.style("display","none");let n=parseFloat(a.style("font-size")),i=Math.max(6,Math.min(28,Math.round(.6*n)));t.style("font-size",`${i}px`);let l=(e.y1-e.y0)/2+n/2+2;t.attr("y",l);let s=e.x1-e.x0,o=e.y1-e.y0;t.node().getComputedTextLength()>s-8||l+i>o-4||i<6?t.style("display","none"):t.style("display",null)});let R=v.diagramPadding??8;(0,r.setupViewPortForSVG)(T,R,"flowchart",v?.useMaxWidth||!1)},"draw"),V=(0,s.__name)(function(e,t){return t.db.getClasses()},"getClasses"),P={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},$=(0,s.__name)(({treemap:e}={})=>{let t=(0,l.getThemeVariables)(),r=(0,l.getConfig)(),a=(0,i.cleanAndMerge)(t,r.themeVariables),n=(0,i.cleanAndMerge)(P,e),s=n.titleColor??a.titleColor,o=n.labelColor??a.textColor,c=n.valueColor??a.textColor;return`
2
+ .treemapNode.section {
3
+ stroke: ${n.sectionStrokeColor};
4
+ stroke-width: ${n.sectionStrokeWidth};
5
+ fill: ${n.sectionFillColor};
6
+ }
7
+ .treemapNode.leaf {
8
+ stroke: ${n.leafStrokeColor};
9
+ stroke-width: ${n.leafStrokeWidth};
10
+ fill: ${n.leafFillColor};
11
+ }
12
+ .treemapLabel {
13
+ fill: ${o};
14
+ font-size: ${n.labelFontSize};
15
+ }
16
+ .treemapValue {
17
+ fill: ${c};
18
+ font-size: ${n.valueFontSize};
19
+ }
20
+ .treemapTitle {
21
+ fill: ${s};
22
+ font-size: ${n.titleFontSize};
23
+ }
24
+ `},"getStyles");e.s(["diagram",0,{parser:b,get db(){return new C},renderer:{draw:A,getClasses:V},styles:$}],389920)},799352,e=>{e.v(t=>Promise.all(["static/chunks/0ortphe030oky.js"].map(t=>e.l(t))).then(()=>t(443214)))},428477,e=>{e.v(t=>Promise.all(["static/chunks/159151ghv9-cc.js"].map(t=>e.l(t))).then(()=>t(708077)))},938722,e=>{e.v(t=>Promise.all(["static/chunks/0spswjguxbqfn.js"].map(t=>e.l(t))).then(()=>t(44842)))},94862,e=>{e.v(t=>Promise.all(["static/chunks/0e4xdug~7dxzk.js"].map(t=>e.l(t))).then(()=>t(484135)))},220490,e=>{e.v(t=>Promise.all(["static/chunks/11_7qxlc92f5s.js"].map(t=>e.l(t))).then(()=>t(40890)))},691759,e=>{e.v(t=>Promise.all(["static/chunks/0cu8k_dz43e4y.js"].map(t=>e.l(t))).then(()=>t(372102)))},114878,e=>{e.v(t=>Promise.all(["static/chunks/0ydl92ezt_ppz.js"].map(t=>e.l(t))).then(()=>t(962952)))},381916,e=>{e.v(t=>Promise.all(["static/chunks/182b_f_n0-cdr.js"].map(t=>e.l(t))).then(()=>t(826531)))},558201,e=>{e.v(t=>Promise.all(["static/chunks/0qfu4h5g.k-yt.js"].map(t=>e.l(t))).then(()=>t(401568)))},122457,e=>{e.v(t=>Promise.all(["static/chunks/0awsj.h.eiuen.js"].map(t=>e.l(t))).then(()=>t(347171)))}]);
@@ -0,0 +1,226 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,547902,t=>{"use strict";var e=t.i(707510),s=t.i(443578),i=t.i(233755),r=t.i(669587),n=t.i(908381),a=t.i(171206),o=function(){var t=(0,a.__name)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],s=[1,3],i=[1,4],r=[2,4],n=[1,9],o=[1,11],l=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],m=[1,23],f=[1,24],_=[1,26],S=[1,27],k=[1,28],T=[1,29],b=[1,30],E=[1,31],C=[1,32],D=[1,35],$=[1,36],x=[1,37],I=[1,38],A=[1,34],v=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],w=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:(0,a.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,a.__name)(function(t,e,s,i,r,n,a){var o=n.length-1;switch(r){case 3:return i.setRootDoc(n[o]),n[o];case 4:this.$=[];break;case 5:"nl"!=n[o]&&(n[o-1].push(n[o]),this.$=n[o-1]);break;case 6:case 7:case 12:this.$=n[o];break;case 8:this.$="nl";break;case 13:let l=n[o-1];l.description=i.trimColon(n[o]),this.$=l;break;case 14:this.$={stmt:"relation",state1:n[o-2],state2:n[o]};break;case 15:let c=i.trimColon(n[o]);this.$={stmt:"relation",state1:n[o-3],state2:n[o-1],description:c};break;case 19:this.$={stmt:"state",id:n[o-3],type:"default",description:"",doc:n[o-1]};break;case 20:var h=n[o],d=n[o-2].trim();if(n[o].match(":")){var u=n[o].split(":");h=u[0],d=[d,u[1]]}this.$={stmt:"state",id:h,type:"default",description:d};break;case 21:this.$={stmt:"state",id:n[o-3],type:"default",description:n[o-5],doc:n[o-1]};break;case 22:this.$={stmt:"state",id:n[o],type:"fork"};break;case 23:this.$={stmt:"state",id:n[o],type:"join"};break;case 24:this.$={stmt:"state",id:n[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:n[o-1].trim(),note:{position:n[o-2].trim(),text:n[o].trim()}};break;case 29:this.$=n[o].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=n[o].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:n[o-3],url:n[o-2],tooltip:n[o-1]};break;case 33:this.$={stmt:"click",id:n[o-3],url:n[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:n[o-1].trim(),classes:n[o].trim()};break;case 36:this.$={stmt:"style",id:n[o-1].trim(),styleClass:n[o].trim()};break;case 37:this.$={stmt:"applyClass",id:n[o-1].trim(),styleClass:n[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:n[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:n[o-2].trim(),classes:[n[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:k,38:T,41:b,45:E,48:C,51:D,52:$,53:x,54:I,57:A},t(v,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:l,17:c,19:h,22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:k,38:T,41:b,45:E,48:C,51:D,52:$,53:x,54:I,57:A},t(v,[2,7]),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(v,[2,11]),t(v,[2,12],{14:[1,40],15:[1,41]}),t(v,[2,16]),{18:[1,42]},t(v,[2,18],{20:[1,43]}),{23:[1,44]},t(v,[2,22]),t(v,[2,23]),t(v,[2,24]),t(v,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(v,[2,28]),{34:[1,49]},{36:[1,50]},t(v,[2,31]),{13:51,24:u,57:A},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(L,[2,44],{58:[1,56]}),t(L,[2,45],{58:[1,57]}),t(v,[2,38]),t(v,[2,39]),t(v,[2,40]),t(v,[2,41]),t(v,[2,6]),t(v,[2,13]),{13:58,24:u,57:A},t(v,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(v,[2,29]),t(v,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(v,[2,14],{14:[1,71]}),{4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:k,38:T,41:b,45:E,48:C,51:D,52:$,53:x,54:I,57:A},t(v,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(L,[2,46]),t(L,[2,47]),t(v,[2,15]),t(v,[2,19]),t(w,r,{7:78}),t(v,[2,26]),t(v,[2,27]),{5:[1,79]},{5:[1,80]},{4:n,5:o,8:8,9:10,10:12,11:13,12:14,13:15,16:l,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:m,29:f,32:25,33:_,35:S,37:k,38:T,41:b,45:E,48:C,51:D,52:$,53:x,54:I,57:A},t(v,[2,32]),t(v,[2,33]),t(v,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,a.__name)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,a.__name)(function(t){var e=this,s=[0],i=[],r=[null],n=[],o=this.table,l="",c=0,h=0,d=0,u=n.slice.call(arguments,1),p=Object.create(this.lexer),y={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y[g]=this.yy[g]);p.setInput(t,y),y.lexer=p,y.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;n.push(m);var f=p.options&&p.options.ranges;function _(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.__name)(function(t){s.length=s.length-2*t,r.length=r.length-t,n.length=n.length-t},"popStack"),(0,a.__name)(_,"lex");for(var S,k,T,b,E,C,D,$,x,I={};;){if(T=s[s.length-1],this.defaultActions[T]?b=this.defaultActions[T]:(null==S&&(S=_()),b=o[T]&&o[T][S]),void 0===b||!b.length||!b[0]){var A="";for(C in x=[],o[T])this.terminals_[C]&&C>2&&x.push("'"+this.terminals_[C]+"'");A=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(A,{text:p.match,token:this.terminals_[S]||S,line:p.yylineno,loc:m,expected:x})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+T+", token: "+S);switch(b[0]){case 1:s.push(S),r.push(p.yytext),n.push(p.yylloc),s.push(b[1]),S=null,k?(S=k,k=null):(h=p.yyleng,l=p.yytext,c=p.yylineno,m=p.yylloc,d>0&&d--);break;case 2:if(D=this.productions_[b[1]][1],I.$=r[r.length-D],I._$={first_line:n[n.length-(D||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(D||1)].first_column,last_column:n[n.length-1].last_column},f&&(I._$.range=[n[n.length-(D||1)].range[0],n[n.length-1].range[1]]),void 0!==(E=this.performAction.apply(I,[l,h,c,y,b[1],r,n].concat(u))))return E;D&&(s=s.slice(0,-1*D*2),r=r.slice(0,-1*D),n=n.slice(0,-1*D)),s.push(this.productions_[b[1]][0]),r.push(I.$),n.push(I._$),$=o[s[s.length-2]][s[s.length-1]],s.push($);break;case 3:return!0}}return!0},"parse")};function O(){this.yy={}}return N.lexer={EOF:1,parseError:(0,a.__name)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.__name)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,a.__name)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,a.__name)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.__name)(function(){return this._more=!0,this},"more"),reject:(0,a.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,a.__name)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.__name)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.__name)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.__name)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.__name)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in r)this[n]=r[n];return!1},"test_match"),next:(0,a.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),n=0;n<r.length;n++)if((s=this._input.match(this.rules[r[n]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[n])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.__name)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,a.__name)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,a.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,a.__name)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,a.__name)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,a.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.__name)(function(t,e,s,i){function r(){let s=e.yytext.indexOf("%%");if(0===s)return!1;if(s>0){let i=e.yytext.slice(0,s),r=e.yytext.slice(s);r&&t.lexer.unput(r),e.yytext=i}return!0}switch((0,a.__name)(r,"processId"),s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 77:return 5;case 9:case 10:case 11:case 12:case 56:case 62:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 53:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 64:if(!r())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:return 19;case 54:return this.popState(),this.pushState("struct"),20;case 55:return this.popState(),21;case 57:return this.begin("NOTE"),29;case 58:return this.popState(),this.pushState("NOTE_ID"),59;case 59:return this.popState(),this.pushState("NOTE_ID"),60;case 60:this.popState(),this.pushState("FLOATING_NOTE");break;case 61:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 63:return"NOTE_TEXT";case 65:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 66:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 67:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 68:case 69:return 6;case 70:return 16;case 71:return 57;case 72:if(!r())return;return 24;case 73:return e.yytext=e.yytext.trim(),14;case 74:return 15;case 75:return 28;case 76:return 58;case 78:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,55,56,57,71,72,73,74,75,76],inclusive:!1},FLOATING_NOTE_ID:{rules:[64],inclusive:!1},FLOATING_NOTE:{rules:[61,62,63],inclusive:!1},NOTE_TEXT:{rules:[66,67],inclusive:!1},NOTE_ID:{rules:[65],inclusive:!1},NOTE:{rules:[58,59,60],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,54,57,68,69,70,71,72,73,74,76,77,78],inclusive:!0}}},(0,a.__name)(O,"Parser"),O.prototype=N,N.Parser=O,new O}();o.parser=o;var l="TB",c="state",h="root",d="relation",u="default",p="divider",y="fill:none",g="fill: #333",m="markdown",f="normal",_="rect",S="rectWithTitle",k="divider",T="roundedWithTitle",b="statediagram",E=`${b}-state`,C="transition",D=`${C} note-edge`,$=`${b}-note`,x=`${b}-cluster`,I=`${b}-cluster-alt`,A="parent",v="note",L="----",w=`${L}${v}`,N=`${L}${A}`,O=(0,a.__name)((t,e=l)=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),R=(0,a.__name)(function(t,e){return e.db.getClasses()},"getClasses"),B=(0,a.__name)(async function(t,o,l,c){a.log.info("REF0:"),a.log.info("Drawing state diagram (v2)",o);let{securityLevel:h,state:d,layout:u}=(0,n.getConfig2)();c.db.extract(c.db.getRootDocV2());let p=c.db.getData(),y=(0,e.getDiagramElement)(o,h);p.type=c.type,p.layoutAlgorithm=u,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50,"neo"===(0,n.getConfig2)().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=o,await (0,i.render)(p,y);try{("function"==typeof c.db.getLinks?c.db.getLinks():new Map).forEach((t,e)=>{let s,i="string"==typeof e?e:"string"==typeof e?.id?e.id:"";if(!i)return void a.log.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));let r=y.node()?.querySelectorAll("g");if(r?.forEach(t=>{t.textContent?.trim()===i&&(s=t)}),!s)return void a.log.warn("⚠️ Could not find node matching text:",i);let n=s.parentNode;if(!n)return void a.log.warn("⚠️ Node has no parent, cannot wrap:",i);let o=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.setAttribute("target","_blank"),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,"");o.setAttribute("title",e)}n.replaceChild(o,s),o.appendChild(s),a.log.info("🔗 Wrapped node in <a> tag for:",i,t.url)})}catch(t){a.log.error("❌ Error injecting clickable links:",t)}r.utils_default.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle()),(0,s.setupViewPortForSVG)(y,8,b,d?.useMaxWidth??!0)},"draw"),F=new Map,P=0;function G(t="",e=0,s="",i=L){let r=null!==s&&s.length>0?`${i}${s}`:"";return`state-${t}${r}-${e}`}(0,a.__name)(G,"stateDomId");var Y=(0,a.__name)((t,e,s,i,r,o,l,h)=>{a.log.trace("items",e),e.forEach(e=>{switch(e.stmt){case c:case u:M(t,e,s,i,r,o,l,h);break;case d:{M(t,e.state1,s,i,r,o,l,h),M(t,e.state2,s,i,r,o,l,h);let a="neo"===l,c={id:"edge"+P,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:a?"arrow_barb_neo":"arrow_barb",style:y,labelStyle:"",label:n.common_default.sanitizeText(e.description??"",(0,n.getConfig2)()),arrowheadStyle:g,labelpos:"c",labelType:m,thickness:f,classes:C,look:l};r.push(c),P++}}})},"setupDoc"),j=(0,a.__name)((t,e=l)=>{let s=e;if(t.doc)for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function W(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{let i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));let i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function z(t){return t?.classes?.join(" ")??""}function U(t){return t?.styles??[]}(0,a.__name)(W,"insertOrUpdateNode"),(0,a.__name)(z,"getClassesFromDbInfo"),(0,a.__name)(U,"getStylesFromDbInfo");var M=(0,a.__name)((t,e,s,i,r,o,l,c)=>{let h=e.id,d=s.get(h),b=z(d),C=U(d),L=(0,n.getConfig2)();if(a.log.info("dataFetcher parsedItem",e,d,C),"root"!==h){let s=_;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==u&&(s=e.type),F.get(h)||F.set(h,{id:h,shape:s,description:n.common_default.sanitizeText(h,L),cssClasses:`${b} ${E}`,cssStyles:C});let d=F.get(h);e.description&&(Array.isArray(d.description)?(d.shape=S,d.description.push(e.description)):d.description?.length&&d.description.length>0?(d.shape=S,d.description===h?d.description=[e.description]:d.description=[d.description,e.description]):(d.shape=_,d.description=e.description),d.description=n.common_default.sanitizeTextOrArray(d.description,L)),d.description?.length===1&&d.shape===S&&("group"===d.type?d.shape=T:d.shape=_),!d.type&&e.doc&&(a.log.info("Setting cluster for XCX",h,j(e)),d.type="group",d.isGroup=!0,d.dir=j(e),d.shape=e.type===p?k:T,d.cssClasses=`${d.cssClasses} ${x} ${o?I:""}`);let O={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:h,dir:d.dir,domId:G(h,P),type:d.type,isGroup:"group"===d.type,padding:8,rx:10,ry:10,look:l,labelType:"markdown"};if(O.shape===k&&(O.label=""),t&&"root"!==t.id&&(a.log.trace("Setting node ",h," to be child of its parent ",t.id),O.parentId=t.id),O.centerLabel=!0,e.note){let t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:$,cssStyles:[],cssCompiledStyles:[],id:h+w+"-"+P,domId:G(h,P,v),type:d.type,isGroup:"group"===d.type,padding:L.flowchart?.padding,look:l,position:e.note.position},s=h+N,n={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:d.cssClasses,cssStyles:[],id:h+N,domId:G(h,P,A),type:"group",isGroup:!0,padding:16,look:l,position:e.note.position};P++,n.id=s,t.parentId=s,W(i,n,c),W(i,t,c),W(i,O,c);let a=h,o=t.id;"left of"===e.note.position&&(a=t.id,o=h),r.push({id:a+"-"+o,start:a,end:o,arrowhead:"none",arrowTypeEnd:"",style:y,labelStyle:"",classes:D,arrowheadStyle:g,labelpos:"c",labelType:m,thickness:f,look:l})}else W(i,O,c)}e.doc&&(a.log.trace("Adding nodes children "),Y(e,e.doc,s,i,r,!o,l,c))},"dataFetcher"),H=(0,a.__name)(()=>{F.clear(),P=0},"reset"),V="start",X="color",K="fill",J=(0,a.__name)(()=>new Map,"newClassesList"),q=(0,a.__name)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Q=(0,a.__name)(t=>JSON.parse(JSON.stringify(t)),"clone"),Z=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=J(),this.documents={root:q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=n.getAccTitle,this.setAccTitle=n.setAccTitle,this.getAccDescription=n.getAccDescription,this.setAccDescription=n.setAccDescription,this.setDiagramTitle=n.setDiagramTitle,this.getDiagramTitle=n.getDiagramTitle,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{(0,a.__name)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){for(let e of(this.clear(!0),Array.isArray(t)?t:t.doc))switch(e.stmt){case c:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case d:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}let e=this.getStates(),s=(0,n.getConfig2)();for(let t of(H(),M(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes),this.nodes))if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){let e=t.id.trim().split(","),s=t.styleClass.split(",");for(let t of e){let e=this.getState(t);if(!e){let s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){a.log.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===d){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===c&&("[*]"===e.id?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==h&&e.stmt!==c||!e.doc)return;let i=[],n=[];for(let t of e.doc)if(t.type===p){let e=Q(t);e.doc=Q(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){let t={stmt:c,id:(0,r.generateId)(),type:"divider",doc:Q(n)};i.push(Q(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:h,stmt:h},{id:h,stmt:h,doc:this.rootDoc},!0),{id:h,doc:this.rootDoc}}addState(t,e=u,s,i,r,o,l,h){let d=t?.trim();if(this.currentDocument.states.has(d)){let t=this.currentDocument.states.get(d);if(!t)throw Error(`State not found: ${d}`);t.doc||(t.doc=s),t.type||(t.type=e)}else a.log.info("Adding state ",d,i),this.currentDocument.states.set(d,{stmt:c,id:d,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]});if(i&&(a.log.info("Setting state description",d,i),(Array.isArray(i)?i:[i]).forEach(t=>this.addDescription(d,t.trim()))),r){let t=this.currentDocument.states.get(d);if(!t)throw Error(`State not found: ${d}`);t.note=r,t.note.text=n.common_default.sanitizeText(t.note.text,(0,n.getConfig2)())}o&&(a.log.info("Setting state classes",d,o),(Array.isArray(o)?o:[o]).forEach(t=>this.setCssClass(d,t.trim()))),l&&(a.log.info("Setting state styles",d,l),(Array.isArray(l)?l:[l]).forEach(t=>this.setStyle(d,t.trim()))),h&&(a.log.info("Setting state styles",d,l),(Array.isArray(h)?h:[h]).forEach(t=>this.setTextStyle(d,t.trim())))}clear(t){this.nodes=[],this.edges=[],this.documents={root:q()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=J(),t||(this.links=new Map,(0,n.clear)())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){a.log.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),a.log.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return"[*]"===t?(this.startEndCount++,`${V}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=u){return"[*]"===t?V:e}endIdIfNeeded(t=""){return"[*]"===t?(this.startEndCount++,`end${this.startEndCount}`):t}endTypeIfNeeded(t="",e=u){return"[*]"===t?"end":e}addRelationObjs(t,e,s=""){let i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(e.id.trim()),o=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:n.common_default.sanitizeText(s,(0,n.getConfig2)())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){let i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),a=this.endIdIfNeeded(e.trim()),o=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(a,o),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:s?n.common_default.sanitizeText(s,(0,n.getConfig2)()):void 0})}}addDescription(t,e){let s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(n.common_default.sanitizeText(i,(0,n.getConfig2)()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let s=this.classes.get(t);e&&s&&e.split(",").forEach(t=>{let e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(X).exec(t)){let t=e.replace(K,"bgFill").replace(X,K);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){let e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){let e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=(0,n.getConfig2)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:O(this.getRootDocV2())}}getConfig(){return(0,n.getConfig2)().state}},tt=(0,a.__name)(t=>`
2
+ defs [id$="-barbEnd"] {
3
+ fill: ${t.transitionColor};
4
+ stroke: ${t.transitionColor};
5
+ }
6
+ g.stateGroup text {
7
+ fill: ${t.nodeBorder};
8
+ stroke: none;
9
+ font-size: 10px;
10
+ }
11
+ g.stateGroup text {
12
+ fill: ${t.textColor};
13
+ stroke: none;
14
+ font-size: 10px;
15
+
16
+ }
17
+ g.stateGroup .state-title {
18
+ font-weight: bolder;
19
+ fill: ${t.stateLabelColor};
20
+ }
21
+
22
+ g.stateGroup rect {
23
+ fill: ${t.mainBkg};
24
+ stroke: ${t.nodeBorder};
25
+ }
26
+
27
+ g.stateGroup line {
28
+ stroke: ${t.lineColor};
29
+ stroke-width: ${t.strokeWidth||1};
30
+ }
31
+
32
+ .transition {
33
+ stroke: ${t.transitionColor};
34
+ stroke-width: ${t.strokeWidth||1};
35
+ fill: none;
36
+ }
37
+
38
+ .stateGroup .composit {
39
+ fill: ${t.background};
40
+ border-bottom: 1px
41
+ }
42
+
43
+ .stateGroup .alt-composit {
44
+ fill: #e0e0e0;
45
+ border-bottom: 1px
46
+ }
47
+
48
+ .state-note {
49
+ stroke: ${t.noteBorderColor};
50
+ fill: ${t.noteBkgColor};
51
+
52
+ text {
53
+ fill: ${t.noteTextColor};
54
+ stroke: none;
55
+ font-size: 10px;
56
+ }
57
+ }
58
+
59
+ .stateLabel .box {
60
+ stroke: none;
61
+ stroke-width: 0;
62
+ fill: ${t.mainBkg};
63
+ opacity: 0.5;
64
+ }
65
+
66
+ .edgeLabel .label rect {
67
+ fill: ${t.labelBackgroundColor};
68
+ opacity: 0.5;
69
+ }
70
+ .edgeLabel {
71
+ background-color: ${t.edgeLabelBackground};
72
+ p {
73
+ background-color: ${t.edgeLabelBackground};
74
+ }
75
+ rect {
76
+ opacity: 0.5;
77
+ background-color: ${t.edgeLabelBackground};
78
+ fill: ${t.edgeLabelBackground};
79
+ }
80
+ text-align: center;
81
+ }
82
+ .edgeLabel .label text {
83
+ fill: ${t.transitionLabelColor||t.tertiaryTextColor};
84
+ }
85
+ .label div .edgeLabel {
86
+ color: ${t.transitionLabelColor||t.tertiaryTextColor};
87
+ }
88
+
89
+ .stateLabel text {
90
+ fill: ${t.stateLabelColor};
91
+ font-size: 10px;
92
+ font-weight: bold;
93
+ }
94
+
95
+ .node circle.state-start {
96
+ fill: ${t.specialStateColor};
97
+ stroke: ${t.specialStateColor};
98
+ }
99
+
100
+ .node .fork-join {
101
+ fill: ${t.specialStateColor};
102
+ stroke: ${t.specialStateColor};
103
+ }
104
+
105
+ .node circle.state-end {
106
+ fill: ${t.innerEndBackground};
107
+ stroke: ${t.background};
108
+ stroke-width: 1.5
109
+ }
110
+ .end-state-inner {
111
+ fill: ${t.compositeBackground||t.background};
112
+ // stroke: ${t.background};
113
+ stroke-width: 1.5
114
+ }
115
+
116
+ .node rect {
117
+ fill: ${t.stateBkg||t.mainBkg};
118
+ stroke: ${t.stateBorder||t.nodeBorder};
119
+ stroke-width: ${t.strokeWidth||1}px;
120
+ }
121
+ .node polygon {
122
+ fill: ${t.mainBkg};
123
+ stroke: ${t.stateBorder||t.nodeBorder};;
124
+ stroke-width: ${t.strokeWidth||1}px;
125
+ }
126
+ [id$="-barbEnd"] {
127
+ fill: ${t.lineColor};
128
+ }
129
+
130
+ .statediagram-cluster rect {
131
+ fill: ${t.compositeTitleBackground};
132
+ stroke: ${t.stateBorder||t.nodeBorder};
133
+ stroke-width: ${t.strokeWidth||1}px;
134
+ }
135
+
136
+ .cluster-label, .nodeLabel {
137
+ color: ${t.stateLabelColor};
138
+ // line-height: 1;
139
+ }
140
+
141
+ .statediagram-cluster rect.outer {
142
+ rx: 5px;
143
+ ry: 5px;
144
+ }
145
+ .statediagram-state .divider {
146
+ stroke: ${t.stateBorder||t.nodeBorder};
147
+ }
148
+
149
+ .statediagram-state .title-state {
150
+ rx: 5px;
151
+ ry: 5px;
152
+ }
153
+ .statediagram-cluster.statediagram-cluster .inner {
154
+ fill: ${t.compositeBackground||t.background};
155
+ }
156
+ .statediagram-cluster.statediagram-cluster-alt .inner {
157
+ fill: ${t.altBackground?t.altBackground:"#efefef"};
158
+ }
159
+
160
+ .statediagram-cluster .inner {
161
+ rx:0;
162
+ ry:0;
163
+ }
164
+
165
+ .statediagram-state rect.basic {
166
+ rx: 5px;
167
+ ry: 5px;
168
+ }
169
+ .statediagram-state rect.divider {
170
+ stroke-dasharray: 10,10;
171
+ fill: ${t.altBackground?t.altBackground:"#efefef"};
172
+ }
173
+
174
+ .note-edge {
175
+ stroke-dasharray: 5;
176
+ }
177
+
178
+ .statediagram-note rect {
179
+ fill: ${t.noteBkgColor};
180
+ stroke: ${t.noteBorderColor};
181
+ stroke-width: 1px;
182
+ rx: 0;
183
+ ry: 0;
184
+ }
185
+ .statediagram-note rect {
186
+ fill: ${t.noteBkgColor};
187
+ stroke: ${t.noteBorderColor};
188
+ stroke-width: 1px;
189
+ rx: 0;
190
+ ry: 0;
191
+ }
192
+
193
+ .statediagram-note text {
194
+ fill: ${t.noteTextColor};
195
+ }
196
+
197
+ .statediagram-note .nodeLabel {
198
+ color: ${t.noteTextColor};
199
+ }
200
+ .statediagram .edgeLabel {
201
+ color: red; // ${t.noteTextColor};
202
+ }
203
+
204
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
205
+ fill: ${t.lineColor};
206
+ stroke: ${t.lineColor};
207
+ stroke-width: ${t.strokeWidth||1};
208
+ }
209
+
210
+ .statediagramTitleText {
211
+ text-anchor: middle;
212
+ font-size: 18px;
213
+ fill: ${t.textColor};
214
+ }
215
+
216
+ [data-look="neo"].statediagram-cluster rect {
217
+ fill: ${t.mainBkg};
218
+ stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
219
+ stroke-width: ${t.strokeWidth??1};
220
+ }
221
+ [data-look="neo"].statediagram-cluster rect.outer {
222
+ rx: ${t.radius}px;
223
+ ry: ${t.radius}px;
224
+ filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
225
+ }
226
+ `,"getStyles");t.s(["StateDB",0,Z,"stateDiagram_default",0,o,"stateRenderer_v3_unified_default",0,{getClasses:R,draw:B,getDir:O},"styles_default",0,tt])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,248018,t=>{"use strict";var i,e=t.i(332090),s=t.i(864421),a=t.i(669587),n=t.i(908381),h=t.i(171206);t.i(947716);var o=t.i(365332),r=t.i(65232);function l(){var t,i,e=(0,r.default)().unknown(void 0),s=e.domain,a=e.range,n=0,h=1,c=!1,g=0,u=0,x=.5;function d(){var e=s().length,o=h<n,r=o?h:n,l=o?n:h;t=(l-r)/Math.max(1,e-g+2*u),c&&(t=Math.floor(t)),r+=(l-r-t*(e-g))*x,i=t*(1-g),c&&(r=Math.round(r),i=Math.round(i));var d=(function(t,i,e){t*=1,i*=1,e=(a=arguments.length)<2?(i=t,t=0,1):a<3?1:+e;for(var s=-1,a=0|Math.max(0,Math.ceil((i-t)/e)),n=Array(a);++s<a;)n[s]=t+s*e;return n})(e).map(function(i){return r+t*i});return a(o?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(s(t),d()):s()},e.range=function(t){return arguments.length?([n,h]=t,n*=1,h*=1,d()):[n,h]},e.rangeRound=function(t){return[n,h]=t,n*=1,h*=1,c=!0,d()},e.bandwidth=function(){return i},e.step=function(){return t},e.round=function(t){return arguments.length?(c=!!t,d()):c},e.padding=function(t){return arguments.length?(g=Math.min(1,u=+t),d()):g},e.paddingInner=function(t){return arguments.length?(g=Math.min(1,t),d()):g},e.paddingOuter=function(t){return arguments.length?(u=+t,d()):u},e.align=function(t){return arguments.length?(x=Math.max(0,Math.min(1,t)),d()):x},e.copy=function(){return l(s(),[n,h]).round(c).paddingInner(g).paddingOuter(u).align(x)},o.initRange.apply(d(),arguments)}var c=t.i(282803),g=t.i(785833),u=function(){var t=(0,h.__name)(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],n=[1,6],o=[1,7],r=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],m=[1,33],f=[1,34],_=[1,35],y=[1,36],b=[1,37],A=[1,43],S=[1,42],w=[1,47],C=[1,50],k=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:(0,h.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,h.__name)(function(t,i,e,s,a,n,h){var o=n.length-1;switch(a){case 5:s.setOrientation(n[o]);break;case 9:s.setDiagramTitle(n[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},n[o]);break;case 13:s.setLineData(n[o-1],n[o]);break;case 14:s.setBarData({text:"",type:"text"},n[o]);break;case 15:s.setBarData(n[o-1],n[o]);break;case 16:this.$=n[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=n[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=n[o-1];break;case 20:this.$=[Number(n[o-2]),...n[o]];break;case 21:this.$=[Number(n[o])];break;case 22:s.setXAxisTitle(n[o]);break;case 23:s.setXAxisTitle(n[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(n[o]);break;case 26:s.setXAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 28:this.$=[n[o-2],...n[o]];break;case 29:this.$=[n[o]];break;case 30:s.setYAxisTitle(n[o]);break;case 31:s.setYAxisTitle(n[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 37:case 38:this.$={text:n[o],type:"text"};break;case 39:this.$={text:n[o],type:"markdown"};break;case 40:this.$=n[o];break;case 41:this.$=n[o-1]+""+n[o]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:a,35:n,36:o}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:a,35:n,36:o}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:n,36:o}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(r,[2,34]),t(r,[2,35]),t(r,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:a,35:n,36:o}),{1:[2,3]},t(r,[2,5]),t(i,[2,7],{4:22,34:a,35:n,36:o}),{11:23,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:39,13:38,24:A,27:S,29:40,30:41,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:45,15:44,27:w,33:46,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:49,17:48,24:C,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{11:52,17:51,24:C,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},{20:[1,53]},{22:[1,54]},t(k,[2,18]),{1:[2,2]},t(k,[2,8]),t(k,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(k,[2,10]),t(k,[2,22],{30:41,29:56,24:A,27:S}),t(k,[2,24]),t(k,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},t(k,[2,11]),t(k,[2,30],{33:60,27:w}),t(k,[2,32]),{31:[1,61]},t(k,[2,12]),{17:62,24:C},{25:63,27:D},t(k,[2,14]),{17:65,24:C},t(k,[2,16]),t(k,[2,17]),t(R,[2,41]),t(k,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(k,[2,31]),{27:[1,69]},t(k,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(k,[2,15]),t(k,[2,26]),t(k,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:_,49:y,50:b},t(k,[2,33]),t(k,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,h.__name)(function(t,i){if(i.recoverable)this.trace(t);else{var e=Error(t);throw e.hash=i,e}},"parseError"),parse:(0,h.__name)(function(t){var i=this,e=[0],s=[],a=[null],n=[],o=this.table,r="",l=0,c=0,g=0,u=n.slice.call(arguments,1),x=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);x.setInput(t,d),d.lexer=x,d.parser=this,void 0===x.yylloc&&(x.yylloc={});var m=x.yylloc;n.push(m);var f=x.options&&x.options.ranges;function _(){var t;return"number"!=typeof(t=s.pop()||x.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.__name)(function(t){e.length=e.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),(0,h.__name)(_,"lex");for(var y,b,A,S,w,C,k,T,R,D={};;){if(A=e[e.length-1],this.defaultActions[A]?S=this.defaultActions[A]:(null==y&&(y=_()),S=o[A]&&o[A][y]),void 0===S||!S.length||!S[0]){var L="";for(C in R=[],o[A])this.terminals_[C]&&C>2&&R.push("'"+this.terminals_[C]+"'");L=x.showPosition?"Parse error on line "+(l+1)+":\n"+x.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(L,{text:x.match,token:this.terminals_[y]||y,line:x.yylineno,loc:m,expected:R})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+y);switch(S[0]){case 1:e.push(y),a.push(x.yytext),n.push(x.yylloc),e.push(S[1]),y=null,b?(y=b,b=null):(c=x.yyleng,r=x.yytext,l=x.yylineno,m=x.yylloc,g>0&&g--);break;case 2:if(k=this.productions_[S[1]][1],D.$=a[a.length-k],D._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},f&&(D._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),void 0!==(w=this.performAction.apply(D,[r,c,l,d,S[1],a,n].concat(u))))return w;k&&(e=e.slice(0,-1*k*2),a=a.slice(0,-1*k),n=n.slice(0,-1*k)),e.push(this.productions_[S[1]][0]),a.push(D.$),n.push(D._$),T=o[e[e.length-2]][e[e.length-1]],e.push(T);break;case 3:return!0}}return!0},"parse")};function P(){this.yy={}}return L.lexer={EOF:1,parseError:(0,h.__name)(function(t,i){if(this.yy.parser)this.yy.parser.parseError(t,i);else throw Error(t)},"parseError"),setInput:(0,h.__name)(function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,h.__name)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,h.__name)(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.__name)(function(){return this._more=!0,this},"more"),reject:(0,h.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,h.__name)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,h.__name)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.__name)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,h.__name)(function(){var t=this.pastInput(),i=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:(0,h.__name)(function(t,i){var e,s,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:(0,h.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,i,e,s,a=this._currentRules(),n=0;n<a.length;n++)if((e=this._input.match(this.rules[a[n]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,a[n])))return t;if(!this._backtrack)return!1;i=!1;continue}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,h.__name)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,h.__name)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,h.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,h.__name)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,h.__name)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,h.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,h.__name)(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}},(0,h.__name)(P,"Parser"),P.prototype=L,L.Parser=P,new P}();function x(t){return"bar"===t.type}function d(t){return"band"===t.type}function p(t){return"linear"===t.type}u.parser=u,(0,h.__name)(x,"isBarPlot"),(0,h.__name)(d,"isBandAxisData"),(0,h.__name)(p,"isLinearAxisData");var m=class{constructor(t){this.parentGroup=t}static{(0,h.__name)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};let e={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let n of t){let t=(0,s.computeDimensionOfText)(a,1,n),h=t?t.width:n.length*i,o=t?t.height:i;e.width=Math.max(e.width,h),e.height=Math.max(e.height,o)}return a.remove(),e}},f=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{(0,h.__name)(this,"BaseAxis")}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);let a=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);let a=e.width+2*this.axisConfig.labelPadding;a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},_=class extends f{static{(0,h.__name)(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.categories=e,this.scale=l().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=l().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),h.log.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},y=class extends f{static{(0,h.__name)(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.domain=e,this.scale=(0,c.scaleLinear)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,c.scaleLinear)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function b(t,i,e,s){let a=new m(s);return d(t)?new _(i,e,t.categories,t.title,a):new y(i,e,[t.min,t.max],t.title,a)}(0,h.__name)(b,"getAxis");var A=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{(0,h.__name)(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function S(t,i,e,s){return new A(new m(s),t,i,e)}(0,h.__name)(S,"getChartTitleComponent");var w=class{constructor(t,i,e,s,a){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=a}static{(0,h.__name)(this,"LinePlot")}getDrawableElement(){let t,i=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);return(t="horizontal"===this.orientation?(0,g.line)().y(t=>t[0]).x(t=>t[1])(i):(0,g.line)().x(t=>t[0]).y(t=>t[1])(i))?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},C=class{constructor(t,i,e,s,a,n){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=a,this.plotIndex=n}static{(0,h.__name)(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},k=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,h.__name)(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{let s=new w(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{let s=new C(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}};function T(t,i,e){return new k(t,i,e)}(0,h.__name)(T,"getPlotComponent");var R=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:S(t,i,e,s),plot:T(t,i,e),xAxis:b(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:b(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,h.__name)(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),n=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:a,height:n});t-=h.width,i-=h.height,s=(h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),e=(h=this.componentStore.yAxis.calculateSpace({width:t,height:i})).width,(t-=h.width)>0&&(a+=t,t=0),i>0&&(n+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:n}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+a]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+n}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>x(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:n,height:h});t-=o.width,i-=o.height,e=(o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=o.height,this.componentStore.xAxis.setAxisPosition("left"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=o.width,s=o.width,this.componentStore.yAxis.setAxisPosition("top"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=o.height,a=e+o.height,t>0&&(n+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([a,a+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(t=>x(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];for(let i of(this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis),Object.values(this.componentStore)))t.push(...i.getDrawableElements());return t}},D=class{static{(0,h.__name)(this,"XYChartBuilder")}static build(t,i,e,s){return new R(t,i,e,s).getDrawableElement()}},L=0,P=z(),v=B(),E=O(),M=v.plotColorPalette.split(",").map(t=>t.trim()),I=!1,$=!1;function B(){let t=(0,n.getThemeVariables)(),i=(0,n.getConfig)();return(0,a.cleanAndMerge)(t.xyChart,i.themeVariables.xyChart)}function z(){let t=(0,n.getConfig)();return(0,a.cleanAndMerge)(n.defaultConfig_default.xyChart,t.xyChart)}function O(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function W(t){let i=(0,n.getConfig)();return(0,n.sanitizeText)(t.trim(),i)}function F(t){i=t}function N(t){"horizontal"===t?P.chartOrientation="horizontal":P.chartOrientation="vertical"}function V(t){E.xAxis.title=W(t.text)}function X(t,i){E.xAxis={type:"linear",title:E.xAxis.title,min:t,max:i},I=!0}function Y(t){E.xAxis={type:"band",title:E.xAxis.title,categories:t.map(t=>W(t.text))},I=!0}function U(t){E.yAxis.title=W(t.text)}function H(t,i){E.yAxis={type:"linear",title:E.yAxis.title,min:t,max:i},$=!0}function j(t){let i=Math.min(...t),e=Math.max(...t),s=p(E.yAxis)?E.yAxis.min:1/0,a=p(E.yAxis)?E.yAxis.max:-1/0;E.yAxis={type:"linear",title:E.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}function G(t){let i=[];if(0===t.length)return i;if(I||X(Math.min(p(E.xAxis)?E.xAxis.min:1/0,1),Math.max(p(E.xAxis)?E.xAxis.max:-1/0,t.length)),$||j(t),d(E.xAxis)&&(i=E.xAxis.categories.map((i,e)=>[i,t[e]])),p(E.xAxis)){let e=E.xAxis.min,s=E.xAxis.max,a=(s-e)/(t.length-1),n=[];for(let t=e;t<=s;t+=a)n.push(`${t}`);i=n.map((i,e)=>[i,t[e]])}return i}function Q(t){return M[0===t?0:t%M.length]}function K(t,i){let e=G(i);E.plots.push({type:"line",strokeFill:Q(L),strokeWidth:2,data:e}),L++}function Z(t,i){let e=G(i);E.plots.push({type:"bar",fill:Q(L),data:e}),L++}function q(){if(0===E.plots.length)throw Error("No Plot to render, please provide a plot with some data");return E.title=(0,n.getDiagramTitle)(),D.build(P,E,v,i)}function J(){return v}function tt(){return P}function ti(){return E}(0,h.__name)(B,"getChartDefaultThemeConfig"),(0,h.__name)(z,"getChartDefaultConfig"),(0,h.__name)(O,"getChartDefaultData"),(0,h.__name)(W,"textSanitizer"),(0,h.__name)(F,"setTmpSVGG"),(0,h.__name)(N,"setOrientation"),(0,h.__name)(V,"setXAxisTitle"),(0,h.__name)(X,"setXAxisRangeData"),(0,h.__name)(Y,"setXAxisBand"),(0,h.__name)(U,"setYAxisTitle"),(0,h.__name)(H,"setYAxisRangeData"),(0,h.__name)(j,"setYAxisRangeFromPlotData"),(0,h.__name)(G,"transformDataWithoutCategory"),(0,h.__name)(Q,"getPlotColorFromPalette"),(0,h.__name)(K,"setLineData"),(0,h.__name)(Z,"setBarData"),(0,h.__name)(q,"getDrawableElem"),(0,h.__name)(J,"getChartThemeConfig"),(0,h.__name)(tt,"getChartConfig"),(0,h.__name)(ti,"getXYChartData");var te={getDrawableElem:q,clear:(0,h.__name)(function(){(0,n.clear)(),L=0,P=z(),E=O(),M=(v=B()).plotColorPalette.split(",").map(t=>t.trim()),I=!1,$=!1},"clear"),setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription,setOrientation:N,setXAxisTitle:V,setXAxisRangeData:X,setXAxisBand:Y,setYAxisTitle:U,setYAxisRangeData:H,setLineData:K,setBarData:Z,setTmpSVGG:F,getChartThemeConfig:J,getChartConfig:tt,getXYChartData:ti},ts=(0,h.__name)((t,i,s,a)=>{let o=a.db,r=o.getChartThemeConfig(),l=o.getChartConfig(),c=o.getXYChartData().plots[0].data.map(t=>t[1]);function g(t){return"top"===t?"text-before-edge":"middle"}function u(t){return"left"===t?"start":"right"===t?"end":"middle"}function x(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,h.__name)(g,"getDominantBaseLine"),(0,h.__name)(u,"getTextAnchor"),(0,h.__name)(x,"getTextTransformation"),h.log.debug("Rendering xychart chart\n"+t);let d=(0,e.selectSvgElement)(i),p=d.append("g").attr("class","main"),m=p.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");(0,n.configureSvgSize)(d,l.height,l.width,!0),d.attr("viewBox",`0 0 ${l.width} ${l.height}`),m.attr("fill",r.backgroundColor),o.setTmpSVGG(d.append("g").attr("class","mermaid-tmp-group"));let f=o.getDrawableElem(),_={};function y(t){let i=p,e="";for(let[s]of t.entries()){let a=p;s>0&&_[e]&&(a=_[e]),e+=t[s],(i=_[e])||(i=_[e]=a.append("g").attr("class",t[s]))}return i}for(let t of((0,h.__name)(y,"getGroup"),f)){if(0===t.data.length)continue;let i=y(t.groupTexts);switch(t.type){case"rect":if(i.selectAll("rect").data(t.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),l.showDataLabel){let e=l.showDataLabelOutsideBar;if("horizontal"===l.chartOrientation){let s=function(t,i){let{data:e,label:s}=t;return i*s.length*a<=e.width-n};(0,h.__name)(s,"fitsHorizontally");let a=.7,n=10,o=t.data.map((t,i)=>({data:t,label:c[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),l=Math.floor(Math.min(...o.map(t=>{let{data:i}=t,e=.7*i.height;for(;!s(t,e)&&e>0;)e-=1;return e}))),g=(0,h.__name)(t=>e?t.data.x+t.data.width+n:t.data.x+t.data.width-n,"determineLabelXPosition");i.selectAll("text").data(o).enter().append("text").attr("x",g).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor",e?"start":"end").attr("dominant-baseline","middle").attr("fill",r.dataLabelColor).attr("font-size",`${l}px`).text(t=>t.label)}else{let s=function(t,i,e){let{data:s,label:a}=t,n=i*a.length*.7,h=s.x+s.width/2,o=h-n/2,r=h+n/2,l=o>=s.x&&r<=s.x+s.width,c=s.y+e+i<=s.y+s.height;return l&&c};(0,h.__name)(s,"fitsInBar");let a=t.data.map((t,i)=>({data:t,label:c[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=Math.floor(Math.min(...a.map(t=>{let{data:i,label:e}=t,a=i.width/(.7*e.length);for(;!s(t,a,10)&&a>0;)a-=1;return a}))),o=(0,h.__name)(t=>e?t.data.y-10:t.data.y+10,"determineLabelYPosition");i.selectAll("text").data(a).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",o).attr("text-anchor","middle").attr("dominant-baseline",e?"auto":"hanging").attr("fill",r.dataLabelColor).attr("font-size",`${n}px`).text(t=>t.label)}}break;case"text":i.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.verticalPos)).attr("text-anchor",t=>u(t.horizontalPos)).attr("transform",t=>x(t)).text(t=>t.text);break;case"path":i.selectAll("path").data(t.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw");t.s(["diagram",0,{parser:u,db:te,renderer:{draw:ts}}],248018)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,233525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},618566,(e,t,r)=>{t.exports=e.r(976562)},12985,e=>{"use strict";var t=e.i(622289),r=e.i(680902);let n=0;function s(e=1){n=e}function o(){(0,t.c)("[nuqs] Aborting queues"),r.t.abortAll(),r.n.abort().forEach(e=>r.t.queuedQuerySync.emit(e))}var u=e.i(271645),i=e.i(618566);function a(){s(0),o()}function l(){!function(e=o){(n=Math.max(0,n-1))>0||e()}(()=>{queueMicrotask(o)})}function c(){return(0,u.useEffect)(()=>(!function(){var e;if(e="next/app","u"<typeof history||(history.nuqs?.version&&"2.8.9"!==history.nuqs.version?(console.error((0,t.s)(409),history.nuqs.version,"2.8.9",e),!0):!!history.nuqs?.adapters?.includes(e)))return;let r=history.replaceState,n=history.pushState;history.replaceState=function(e,t,n){return l(),r.call(history,e,t,n)},history.pushState=function(e,t,r){return l(),n.call(history,e,t,r)},history.nuqs=history.nuqs??{version:"2.8.9",adapters:[]},history.nuqs.adapters.push("next/app")}(),window.addEventListener("popstate",a),()=>window.removeEventListener("popstate",a)),[]),null}let p=(0,t.n)(function(){let e=(0,i.useRouter)(),[r,n]=(0,u.useOptimistic)((0,i.useSearchParams)());return{searchParams:r,updateUrl:(0,u.useCallback)((r,o)=>{(0,u.startTransition)(()=>{o.shallow||n(r);let u=function(e){let{origin:r,pathname:n,hash:s}=location;return r+n+(0,t.o)(e)+s}(r);(0,t.c)("[nuqs next/app] Updating url: %s",u);let i="push"===o.history?history.pushState:history.replaceState;s(3),i.call(history,null,"",u),o.scroll&&window.scrollTo(0,0),o.shallow||e.replace(u,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!0}});e.s(["NuqsAdapter",0,function({children:e,...t}){return(0,u.createElement)(p,{...t,children:[(0,u.createElement)(u.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,u.createElement)(c)}),e]})}],12985)}]);