@seungyeop-lee/beads-desk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (945) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +32 -0
  3. package/.next/build-manifest.json +134 -0
  4. package/.next/export-marker.json +6 -0
  5. package/.next/fallback-build-manifest.json +15 -0
  6. package/.next/images-manifest.json +68 -0
  7. package/.next/package.json +1 -0
  8. package/.next/prerender-manifest.json +100 -0
  9. package/.next/required-server-files.js +371 -0
  10. package/.next/required-server-files.json +371 -0
  11. package/.next/routes-manifest.json +234 -0
  12. package/.next/server/app/(client)/board/page/app-paths-manifest.json +3 -0
  13. package/.next/server/app/(client)/board/page/build-manifest.json +21 -0
  14. package/.next/server/app/(client)/board/page/next-font-manifest.json +6 -0
  15. package/.next/server/app/(client)/board/page/react-loadable-manifest.json +1 -0
  16. package/.next/server/app/(client)/board/page/server-reference-manifest.json +165 -0
  17. package/.next/server/app/(client)/board/page.js +21 -0
  18. package/.next/server/app/(client)/board/page.js.nft.json +1 -0
  19. package/.next/server/app/(client)/board/page_client-reference-manifest.js +3 -0
  20. package/.next/server/app/(client)/decisions/page/app-paths-manifest.json +3 -0
  21. package/.next/server/app/(client)/decisions/page/build-manifest.json +21 -0
  22. package/.next/server/app/(client)/decisions/page/next-font-manifest.json +6 -0
  23. package/.next/server/app/(client)/decisions/page/react-loadable-manifest.json +1 -0
  24. package/.next/server/app/(client)/decisions/page/server-reference-manifest.json +165 -0
  25. package/.next/server/app/(client)/decisions/page.js +21 -0
  26. package/.next/server/app/(client)/decisions/page.js.nft.json +1 -0
  27. package/.next/server/app/(client)/decisions/page_client-reference-manifest.js +3 -0
  28. package/.next/server/app/(client)/epics/page/app-paths-manifest.json +3 -0
  29. package/.next/server/app/(client)/epics/page/build-manifest.json +21 -0
  30. package/.next/server/app/(client)/epics/page/next-font-manifest.json +6 -0
  31. package/.next/server/app/(client)/epics/page/react-loadable-manifest.json +1 -0
  32. package/.next/server/app/(client)/epics/page/server-reference-manifest.json +165 -0
  33. package/.next/server/app/(client)/epics/page.js +21 -0
  34. package/.next/server/app/(client)/epics/page.js.nft.json +1 -0
  35. package/.next/server/app/(client)/epics/page_client-reference-manifest.js +3 -0
  36. package/.next/server/app/(client)/focus/page/app-paths-manifest.json +3 -0
  37. package/.next/server/app/(client)/focus/page/build-manifest.json +21 -0
  38. package/.next/server/app/(client)/focus/page/next-font-manifest.json +6 -0
  39. package/.next/server/app/(client)/focus/page/react-loadable-manifest.json +1 -0
  40. package/.next/server/app/(client)/focus/page/server-reference-manifest.json +165 -0
  41. package/.next/server/app/(client)/focus/page.js +21 -0
  42. package/.next/server/app/(client)/focus/page.js.nft.json +1 -0
  43. package/.next/server/app/(client)/focus/page_client-reference-manifest.js +3 -0
  44. package/.next/server/app/(client)/graph/page/app-paths-manifest.json +3 -0
  45. package/.next/server/app/(client)/graph/page/build-manifest.json +21 -0
  46. package/.next/server/app/(client)/graph/page/next-font-manifest.json +6 -0
  47. package/.next/server/app/(client)/graph/page/react-loadable-manifest.json +1 -0
  48. package/.next/server/app/(client)/graph/page/server-reference-manifest.json +165 -0
  49. package/.next/server/app/(client)/graph/page.js +21 -0
  50. package/.next/server/app/(client)/graph/page.js.nft.json +1 -0
  51. package/.next/server/app/(client)/graph/page_client-reference-manifest.js +3 -0
  52. package/.next/server/app/(client)/human/page/app-paths-manifest.json +3 -0
  53. package/.next/server/app/(client)/human/page/build-manifest.json +21 -0
  54. package/.next/server/app/(client)/human/page/next-font-manifest.json +6 -0
  55. package/.next/server/app/(client)/human/page/react-loadable-manifest.json +1 -0
  56. package/.next/server/app/(client)/human/page/server-reference-manifest.json +165 -0
  57. package/.next/server/app/(client)/human/page.js +21 -0
  58. package/.next/server/app/(client)/human/page.js.nft.json +1 -0
  59. package/.next/server/app/(client)/human/page_client-reference-manifest.js +3 -0
  60. package/.next/server/app/(client)/hygiene/page/app-paths-manifest.json +3 -0
  61. package/.next/server/app/(client)/hygiene/page/build-manifest.json +21 -0
  62. package/.next/server/app/(client)/hygiene/page/next-font-manifest.json +6 -0
  63. package/.next/server/app/(client)/hygiene/page/react-loadable-manifest.json +1 -0
  64. package/.next/server/app/(client)/hygiene/page/server-reference-manifest.json +165 -0
  65. package/.next/server/app/(client)/hygiene/page.js +21 -0
  66. package/.next/server/app/(client)/hygiene/page.js.nft.json +1 -0
  67. package/.next/server/app/(client)/hygiene/page_client-reference-manifest.js +3 -0
  68. package/.next/server/app/(client)/issues/page/app-paths-manifest.json +3 -0
  69. package/.next/server/app/(client)/issues/page/build-manifest.json +21 -0
  70. package/.next/server/app/(client)/issues/page/next-font-manifest.json +6 -0
  71. package/.next/server/app/(client)/issues/page/react-loadable-manifest.json +1 -0
  72. package/.next/server/app/(client)/issues/page/server-reference-manifest.json +165 -0
  73. package/.next/server/app/(client)/issues/page.js +21 -0
  74. package/.next/server/app/(client)/issues/page.js.nft.json +1 -0
  75. package/.next/server/app/(client)/issues/page_client-reference-manifest.js +3 -0
  76. package/.next/server/app/(client)/page/app-paths-manifest.json +3 -0
  77. package/.next/server/app/(client)/page/build-manifest.json +21 -0
  78. package/.next/server/app/(client)/page/next-font-manifest.json +6 -0
  79. package/.next/server/app/(client)/page/react-loadable-manifest.json +1 -0
  80. package/.next/server/app/(client)/page/server-reference-manifest.json +165 -0
  81. package/.next/server/app/(client)/page.js +22 -0
  82. package/.next/server/app/(client)/page.js.nft.json +1 -0
  83. package/.next/server/app/(client)/page_client-reference-manifest.js +3 -0
  84. package/.next/server/app/(server)/api/board/route/app-paths-manifest.json +3 -0
  85. package/.next/server/app/(server)/api/board/route/build-manifest.json +12 -0
  86. package/.next/server/app/(server)/api/board/route/server-reference-manifest.json +4 -0
  87. package/.next/server/app/(server)/api/board/route.js +10 -0
  88. package/.next/server/app/(server)/api/board/route.js.nft.json +1 -0
  89. package/.next/server/app/(server)/api/board/route_client-reference-manifest.js +3 -0
  90. package/.next/server/app/(server)/api/decisions/route/app-paths-manifest.json +3 -0
  91. package/.next/server/app/(server)/api/decisions/route/build-manifest.json +12 -0
  92. package/.next/server/app/(server)/api/decisions/route/server-reference-manifest.json +4 -0
  93. package/.next/server/app/(server)/api/decisions/route.js +10 -0
  94. package/.next/server/app/(server)/api/decisions/route.js.nft.json +1 -0
  95. package/.next/server/app/(server)/api/decisions/route_client-reference-manifest.js +3 -0
  96. package/.next/server/app/(server)/api/epics/[id]/descendants/route/app-paths-manifest.json +3 -0
  97. package/.next/server/app/(server)/api/epics/[id]/descendants/route/build-manifest.json +12 -0
  98. package/.next/server/app/(server)/api/epics/[id]/descendants/route/server-reference-manifest.json +4 -0
  99. package/.next/server/app/(server)/api/epics/[id]/descendants/route.js +10 -0
  100. package/.next/server/app/(server)/api/epics/[id]/descendants/route.js.nft.json +1 -0
  101. package/.next/server/app/(server)/api/epics/[id]/descendants/route_client-reference-manifest.js +3 -0
  102. package/.next/server/app/(server)/api/epics/route/app-paths-manifest.json +3 -0
  103. package/.next/server/app/(server)/api/epics/route/build-manifest.json +12 -0
  104. package/.next/server/app/(server)/api/epics/route/server-reference-manifest.json +4 -0
  105. package/.next/server/app/(server)/api/epics/route.js +10 -0
  106. package/.next/server/app/(server)/api/epics/route.js.nft.json +1 -0
  107. package/.next/server/app/(server)/api/epics/route_client-reference-manifest.js +3 -0
  108. package/.next/server/app/(server)/api/events/route/app-paths-manifest.json +3 -0
  109. package/.next/server/app/(server)/api/events/route/build-manifest.json +12 -0
  110. package/.next/server/app/(server)/api/events/route/server-reference-manifest.json +4 -0
  111. package/.next/server/app/(server)/api/events/route.js +8 -0
  112. package/.next/server/app/(server)/api/events/route.js.nft.json +1 -0
  113. package/.next/server/app/(server)/api/events/route_client-reference-manifest.js +3 -0
  114. package/.next/server/app/(server)/api/graph/route/app-paths-manifest.json +3 -0
  115. package/.next/server/app/(server)/api/graph/route/build-manifest.json +12 -0
  116. package/.next/server/app/(server)/api/graph/route/server-reference-manifest.json +4 -0
  117. package/.next/server/app/(server)/api/graph/route.js +10 -0
  118. package/.next/server/app/(server)/api/graph/route.js.nft.json +1 -0
  119. package/.next/server/app/(server)/api/graph/route_client-reference-manifest.js +3 -0
  120. package/.next/server/app/(server)/api/health/route/app-paths-manifest.json +3 -0
  121. package/.next/server/app/(server)/api/health/route/build-manifest.json +12 -0
  122. package/.next/server/app/(server)/api/health/route/server-reference-manifest.json +4 -0
  123. package/.next/server/app/(server)/api/health/route.js +10 -0
  124. package/.next/server/app/(server)/api/health/route.js.nft.json +1 -0
  125. package/.next/server/app/(server)/api/health/route_client-reference-manifest.js +3 -0
  126. package/.next/server/app/(server)/api/human-decisions/count/route/app-paths-manifest.json +3 -0
  127. package/.next/server/app/(server)/api/human-decisions/count/route/build-manifest.json +12 -0
  128. package/.next/server/app/(server)/api/human-decisions/count/route/server-reference-manifest.json +4 -0
  129. package/.next/server/app/(server)/api/human-decisions/count/route.js +10 -0
  130. package/.next/server/app/(server)/api/human-decisions/count/route.js.nft.json +1 -0
  131. package/.next/server/app/(server)/api/human-decisions/count/route_client-reference-manifest.js +3 -0
  132. package/.next/server/app/(server)/api/human-gates/[id]/previous-gates/route/app-paths-manifest.json +3 -0
  133. package/.next/server/app/(server)/api/human-gates/[id]/previous-gates/route/build-manifest.json +12 -0
  134. package/.next/server/app/(server)/api/human-gates/[id]/previous-gates/route/server-reference-manifest.json +4 -0
  135. package/.next/server/app/(server)/api/human-gates/[id]/previous-gates/route.js +10 -0
  136. package/.next/server/app/(server)/api/human-gates/[id]/previous-gates/route.js.nft.json +1 -0
  137. package/.next/server/app/(server)/api/human-gates/[id]/previous-gates/route_client-reference-manifest.js +3 -0
  138. package/.next/server/app/(server)/api/human-gates/route/app-paths-manifest.json +3 -0
  139. package/.next/server/app/(server)/api/human-gates/route/build-manifest.json +12 -0
  140. package/.next/server/app/(server)/api/human-gates/route/server-reference-manifest.json +4 -0
  141. package/.next/server/app/(server)/api/human-gates/route.js +10 -0
  142. package/.next/server/app/(server)/api/human-gates/route.js.nft.json +1 -0
  143. package/.next/server/app/(server)/api/human-gates/route_client-reference-manifest.js +3 -0
  144. package/.next/server/app/(server)/api/hygiene/route/app-paths-manifest.json +3 -0
  145. package/.next/server/app/(server)/api/hygiene/route/build-manifest.json +12 -0
  146. package/.next/server/app/(server)/api/hygiene/route/server-reference-manifest.json +4 -0
  147. package/.next/server/app/(server)/api/hygiene/route.js +10 -0
  148. package/.next/server/app/(server)/api/hygiene/route.js.nft.json +1 -0
  149. package/.next/server/app/(server)/api/hygiene/route_client-reference-manifest.js +3 -0
  150. package/.next/server/app/(server)/api/hygiene/stale/route/app-paths-manifest.json +3 -0
  151. package/.next/server/app/(server)/api/hygiene/stale/route/build-manifest.json +12 -0
  152. package/.next/server/app/(server)/api/hygiene/stale/route/server-reference-manifest.json +4 -0
  153. package/.next/server/app/(server)/api/hygiene/stale/route.js +10 -0
  154. package/.next/server/app/(server)/api/hygiene/stale/route.js.nft.json +1 -0
  155. package/.next/server/app/(server)/api/hygiene/stale/route_client-reference-manifest.js +3 -0
  156. package/.next/server/app/(server)/api/issue-search/route/app-paths-manifest.json +3 -0
  157. package/.next/server/app/(server)/api/issue-search/route/build-manifest.json +12 -0
  158. package/.next/server/app/(server)/api/issue-search/route/server-reference-manifest.json +4 -0
  159. package/.next/server/app/(server)/api/issue-search/route.js +10 -0
  160. package/.next/server/app/(server)/api/issue-search/route.js.nft.json +1 -0
  161. package/.next/server/app/(server)/api/issue-search/route_client-reference-manifest.js +3 -0
  162. package/.next/server/app/(server)/api/issues/[id]/history/route/app-paths-manifest.json +3 -0
  163. package/.next/server/app/(server)/api/issues/[id]/history/route/build-manifest.json +12 -0
  164. package/.next/server/app/(server)/api/issues/[id]/history/route/server-reference-manifest.json +4 -0
  165. package/.next/server/app/(server)/api/issues/[id]/history/route.js +10 -0
  166. package/.next/server/app/(server)/api/issues/[id]/history/route.js.nft.json +1 -0
  167. package/.next/server/app/(server)/api/issues/[id]/history/route_client-reference-manifest.js +3 -0
  168. package/.next/server/app/(server)/api/issues/[id]/route/app-paths-manifest.json +3 -0
  169. package/.next/server/app/(server)/api/issues/[id]/route/build-manifest.json +12 -0
  170. package/.next/server/app/(server)/api/issues/[id]/route/server-reference-manifest.json +4 -0
  171. package/.next/server/app/(server)/api/issues/[id]/route.js +10 -0
  172. package/.next/server/app/(server)/api/issues/[id]/route.js.nft.json +1 -0
  173. package/.next/server/app/(server)/api/issues/[id]/route_client-reference-manifest.js +3 -0
  174. package/.next/server/app/(server)/api/issues/route/app-paths-manifest.json +3 -0
  175. package/.next/server/app/(server)/api/issues/route/build-manifest.json +12 -0
  176. package/.next/server/app/(server)/api/issues/route/server-reference-manifest.json +4 -0
  177. package/.next/server/app/(server)/api/issues/route.js +10 -0
  178. package/.next/server/app/(server)/api/issues/route.js.nft.json +1 -0
  179. package/.next/server/app/(server)/api/issues/route_client-reference-manifest.js +3 -0
  180. package/.next/server/app/(server)/api/local-files/route/app-paths-manifest.json +3 -0
  181. package/.next/server/app/(server)/api/local-files/route/build-manifest.json +12 -0
  182. package/.next/server/app/(server)/api/local-files/route/server-reference-manifest.json +4 -0
  183. package/.next/server/app/(server)/api/local-files/route.js +10 -0
  184. package/.next/server/app/(server)/api/local-files/route.js.nft.json +1 -0
  185. package/.next/server/app/(server)/api/local-files/route_client-reference-manifest.js +3 -0
  186. package/.next/server/app/(server)/api/workspaces/route/app-paths-manifest.json +3 -0
  187. package/.next/server/app/(server)/api/workspaces/route/build-manifest.json +12 -0
  188. package/.next/server/app/(server)/api/workspaces/route/server-reference-manifest.json +4 -0
  189. package/.next/server/app/(server)/api/workspaces/route.js +10 -0
  190. package/.next/server/app/(server)/api/workspaces/route.js.nft.json +1 -0
  191. package/.next/server/app/(server)/api/workspaces/route_client-reference-manifest.js +3 -0
  192. package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  193. package/.next/server/app/_global-error/page/build-manifest.json +21 -0
  194. package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  195. package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  196. package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  197. package/.next/server/app/_global-error/page.js +12 -0
  198. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  199. package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
  200. package/.next/server/app/_global-error.html +1 -0
  201. package/.next/server/app/_global-error.meta +30 -0
  202. package/.next/server/app/_global-error.rsc +18 -0
  203. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +23 -0
  204. package/.next/server/app/_global-error.segments/_full.segment.rsc +18 -0
  205. package/.next/server/app/_global-error.segments/_tree.segment.rsc +2 -0
  206. package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  207. package/.next/server/app/_not-found/page/build-manifest.json +21 -0
  208. package/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
  209. package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  210. package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  211. package/.next/server/app/_not-found/page.js +16 -0
  212. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  213. package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
  214. package/.next/server/app/_not-found.html +1 -0
  215. package/.next/server/app/_not-found.meta +35 -0
  216. package/.next/server/app/_not-found.rsc +20 -0
  217. package/.next/server/app/_not-found.segments/_full.segment.rsc +20 -0
  218. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +26 -0
  219. package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -0
  220. package/.next/server/app/icon/route/app-paths-manifest.json +3 -0
  221. package/.next/server/app/icon/route/build-manifest.json +12 -0
  222. package/.next/server/app/icon/route/server-reference-manifest.json +4 -0
  223. package/.next/server/app/icon/route.js +8 -0
  224. package/.next/server/app/icon/route.js.nft.json +1 -0
  225. package/.next/server/app/icon/route_client-reference-manifest.js +3 -0
  226. package/.next/server/app/icon.body +1 -0
  227. package/.next/server/app/icon.meta +1 -0
  228. package/.next/server/app-paths-manifest.json +32 -0
  229. package/.next/server/chunks/0-na_next_dist_01oqa_lnmf7od._.js +313 -0
  230. package/.next/server/chunks/06xz_server_app_(server)_api_epics_[id]_descendants_route_actions_0i4p715kb4ns7.js +3 -0
  231. package/.next/server/chunks/06xz_server_app_(server)_api_human-decisions_count_route_actions_04pn0rymkjlvn.js +3 -0
  232. package/.next/server/chunks/06xz_server_app_(server)_api_issues_[id]_history_route_actions_1_s1k9rao3ycm.js +3 -0
  233. package/.next/server/chunks/0_j8_app_(server)_api_human-gates_[id]_previous-gates_route_actions_0nyo4gp16cfh9.js +3 -0
  234. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_board_route_actions_097o5ubfgp2yk.js +3 -0
  235. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_epics_route_actions_1s-bb_ads54kj.js +3 -0
  236. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_events_route_actions_00eflzab8v1u7.js +3 -0
  237. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_graph_route_actions_1_gx-jxsob7ho.js +3 -0
  238. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_health_route_actions_0lmaikfylcm27.js +3 -0
  239. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_hygiene_route_actions_1wqr2gsd6e0hd.js +3 -0
  240. package/.next/server/chunks/0ysl_app__next-internal_server_app_(server)_api_issues_route_actions_1-flaiy39drl6.js +3 -0
  241. package/.next/server/chunks/1bhh__next-internal_server_app_(server)_api_decisions_route_actions_1vqfq248-8gbw.js +3 -0
  242. package/.next/server/chunks/1bhh__next-internal_server_app_(server)_api_human-gates_route_actions_1-p0n-_ic-hpt.js +3 -0
  243. package/.next/server/chunks/1bhh__next-internal_server_app_(server)_api_issue-search_route_actions_0oaf_0__q_2ji.js +3 -0
  244. package/.next/server/chunks/1bhh__next-internal_server_app_(server)_api_issues_[id]_route_actions_17twvl7hxiqgj.js +3 -0
  245. package/.next/server/chunks/1bhh__next-internal_server_app_(server)_api_local-files_route_actions_0gs2eeq-mizrj.js +3 -0
  246. package/.next/server/chunks/1bhh__next-internal_server_app_(server)_api_workspaces_route_actions_1qzkzsnyssoeq.js +3 -0
  247. package/.next/server/chunks/1fg0_next-internal_server_app_(server)_api_hygiene_stale_route_actions_049cuh2m8mi1m.js +3 -0
  248. package/.next/server/chunks/[externals]__0bdqleb-2jkl7._.js +3 -0
  249. package/.next/server/chunks/[externals]__1fs8mjfnash82._.js +3 -0
  250. package/.next/server/chunks/[externals]__1p2jmvy9f54lr._.js +3 -0
  251. package/.next/server/chunks/[externals]__1uj88cmlo8i4s._.js +3 -0
  252. package/.next/server/chunks/[root-of-the-server]__006_l_2nrnvsf._.js +3 -0
  253. package/.next/server/chunks/[root-of-the-server]__00jsp_c83rs0d._.js +10 -0
  254. package/.next/server/chunks/[root-of-the-server]__0_4glddr7jm_9._.js +3 -0
  255. package/.next/server/chunks/[root-of-the-server]__0axi17jnan2-f._.js +3 -0
  256. package/.next/server/chunks/[root-of-the-server]__0fjqil8szgpkp._.js +3 -0
  257. package/.next/server/chunks/[root-of-the-server]__0wwp-dm4u6vym._.js +3 -0
  258. package/.next/server/chunks/[root-of-the-server]__0xzu8s05n84en._.js +3 -0
  259. package/.next/server/chunks/[root-of-the-server]__11bvqbes4g_x3._.js +5 -0
  260. package/.next/server/chunks/[root-of-the-server]__128z1hatzhqgf._.js +3 -0
  261. package/.next/server/chunks/[root-of-the-server]__1yi1roe3p8ipb._.js +3 -0
  262. package/.next/server/chunks/[root-of-the-server]__20ro7mv0nna0v._.js +3 -0
  263. package/.next/server/chunks/[turbopack]_runtime.js +937 -0
  264. package/.next/server/chunks/_00b94jqphddy1._.js +3 -0
  265. package/.next/server/chunks/_016uu1siddgx2._.js +3 -0
  266. package/.next/server/chunks/_06bsii67q7yo6._.js +3 -0
  267. package/.next/server/chunks/_0hprt7v9m-j0-._.js +3 -0
  268. package/.next/server/chunks/_0i562xm36lquh._.js +3 -0
  269. package/.next/server/chunks/_0lg6l5x123jq2._.js +6 -0
  270. package/.next/server/chunks/_0lx-opy56s5c6._.js +3 -0
  271. package/.next/server/chunks/_0qbf8y587q6bu._.js +3 -0
  272. package/.next/server/chunks/_0rm-wc2vo3piv._.js +3 -0
  273. package/.next/server/chunks/_0s7zs7vzx_ylx._.js +3 -0
  274. package/.next/server/chunks/_0xwu00a8s2-yg._.js +3 -0
  275. package/.next/server/chunks/_0y6_en0_cs0o3._.js +3 -0
  276. package/.next/server/chunks/_102aj9ahpwc9u._.js +10 -0
  277. package/.next/server/chunks/_11katfvzfhpy9._.js +3 -0
  278. package/.next/server/chunks/_15u7zxu6y0q9w._.js +3 -0
  279. package/.next/server/chunks/_1cr-1ah3asieh._.js +3 -0
  280. package/.next/server/chunks/_1is_u1uzjetxm._.js +3 -0
  281. package/.next/server/chunks/_1pmfwik0sv_fj._.js +3 -0
  282. package/.next/server/chunks/_2155dycg7481k._.js +3 -0
  283. package/.next/server/chunks/packages_app__next-internal_server_app_icon_route_actions_1f6wrwy66aii3.js +3 -0
  284. package/.next/server/chunks/packages_app_src_04u27lgyq7ug_._.js +3 -0
  285. package/.next/server/chunks/packages_app_src_server_infra_runtime_serverRuntime_ts_0nr1il1nd01xh._.js +3 -0
  286. package/.next/server/chunks/packages_app_src_server_infra_runtime_serverRuntime_ts_101nvikwwh8am._.js +3 -0
  287. package/.next/server/chunks/ssr/0-na_next_dist_0v22fkgl1dei7._.js +3 -0
  288. package/.next/server/chunks/ssr/0-na_next_dist_11o-i8zo8w04f._.js +291 -0
  289. package/.next/server/chunks/ssr/0-na_next_dist_167mi2pg1epou._.js +3 -0
  290. package/.next/server/chunks/ssr/0-na_next_dist_1obel6la6bfir._.js +6 -0
  291. package/.next/server/chunks/ssr/0-na_next_dist_client_components_12rpdkf4u6sxc._.js +3 -0
  292. package/.next/server/chunks/ssr/0-na_next_dist_client_components_builtin_1iah_ms13r9-a._.js +33 -0
  293. package/.next/server/chunks/ssr/0-na_next_dist_client_components_builtin_forbidden_1tn71dj7nsmm9.js +3 -0
  294. package/.next/server/chunks/ssr/0-na_next_dist_client_components_builtin_unauthorized_1v356ydmzbedc.js +3 -0
  295. package/.next/server/chunks/ssr/0-na_next_dist_compiled_0u74mrfe4mo1d._.js +3 -0
  296. package/.next/server/chunks/ssr/0-na_next_dist_compiled_@edge-runtime_cookies_index_1w1mtde4yx_m_.js +3 -0
  297. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_05wl45qgcqk39.js +3 -0
  298. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_08-b4uarsqzff.js +3 -0
  299. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_09wp5x9z70ftx.js +3 -0
  300. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_0j7iske5kstio.js +3 -0
  301. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_17w6wwo4xnm32.js +3 -0
  302. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_1bu5t180bl2zv.js +3 -0
  303. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_1mv7fkhdbene9.js +3 -0
  304. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_1o0u8v-gnw2rq.js +3 -0
  305. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_1rvza4ou0v1-n.js +3 -0
  306. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_1xbwpw2s40so0.js +3 -0
  307. package/.next/server/chunks/ssr/0-na_next_dist_esm_build_templates_app-page_21bi4df-u6lk_.js +3 -0
  308. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_builder_1q1p-aoo5ansr.js +3 -0
  309. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_feature_code-mirror_index_060e1a7cm58y2.js +92 -0
  310. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_feature_cursor_index_17hai-ps4gy4m.js +3 -0
  311. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_feature_link-tooltip_index_1k2_en72b30f7.js +64 -0
  312. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_feature_list-item_index_0739hwl0ixqj0.js +55 -0
  313. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_feature_table_index_1nc604l0he98t.js +76 -0
  314. package/.next/server/chunks/ssr/044y_@milkdown_crepe_lib_esm_feature_toolbar_index_0cjy552j1ozb9.js +90 -0
  315. package/.next/server/chunks/ssr/04q__@milkdown_utils_lib_index_20ji0hxjb6f0c.js +3 -0
  316. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_0kzccy9wz3pwr._.js +3 -0
  317. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_0wpn1ak7mn954._.js +3 -0
  318. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_10lvg7z_h49wj._.js +3 -0
  319. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_abnfDiagram-WEYOIA3C_mjs_1butfkav4nrp_._.js +3 -0
  320. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_blockDiagram-RJAE7QA3_mjs_07b4_jr9j6-z6._.js +137 -0
  321. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_c4Diagram-XDPPPE54_mjs_03_5esminmjt6._.js +34 -0
  322. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-2E7WHVMD_mjs_15ch8esvdlyi1._.js +88 -0
  323. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-4EMNKR2T_mjs_1por2e_6w1hot._.js +3 -0
  324. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-55XCU76K_mjs_01_34r55e2ue0._.js +3 -0
  325. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-7S6XSTFO_mjs_0pba--mmow_3w._.js +4 -0
  326. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-AQDTSKZB_mjs_1imrwm33n17dq._.js +63 -0
  327. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-DSNLSHJZ_mjs_1rwsi1s96wxbp._.js +124 -0
  328. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-EJLWFMJV_mjs_0ky30uqs_9c4t._.js +3 -0
  329. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-HAGFOTED_mjs_0pyffq0u31zx5._.js +64 -0
  330. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-HNE4Q36P_mjs_0n1112llzwsn7._.js +3 -0
  331. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-LNGE3PJU_mjs_16411go7dz2nk._.js +3 -0
  332. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-NQOKRVIF_mjs_1-ezpt030vg0c._.js +205 -0
  333. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-UHW7PFBP_mjs_06nw53i9vszkk._.js +3 -0
  334. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-WQQL4CDK_mjs_1ax7a7wcrgy3z._.js +12 -0
  335. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-Y2CYZVJY_mjs_1od6pg7dbuib2._.js +3 -0
  336. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-YZO67HFG_mjs_0_51e-7cinhuj._.js +3 -0
  337. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_chunk-ZCHMQSOR_mjs_1kmw145zykheb._.js +3 -0
  338. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_classDiagram-v2-4MYWR3UA_mjs_02piun0j899uf._.js +214 -0
  339. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_cynefinDiagram-WF24UDRP_mjs_077j2gwrb0bq1._.js +64 -0
  340. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_dagre-NK4GIZVX_mjs_1tt16cnu00v9a._.js +3 -0
  341. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_diagram-CBK3MWTC_mjs_07d5q40_6omfm._.js +26 -0
  342. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_diagram-I5XIIV2D_mjs_081ap9jt-udj7._.js +26 -0
  343. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_diagram-ODIL2UCW_mjs_08uzfa_p1s2ud._.js +29 -0
  344. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_diagram-PFBEJUXE_mjs_1_ye28kgsx5j_._.js +3 -0
  345. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_diagram-RJA3I4VV_mjs_1083zzyhow9f3._.js +43 -0
  346. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_diagram-TYUNFSNR_mjs_1io58afd5nhut._.js +181 -0
  347. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_ebnfDiagram-V4P3TTPT_mjs_0qgpp90kabk41._.js +3 -0
  348. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_erDiagram-KYQIGQAA_mjs_0t1sn6-bv15rb._.js +96 -0
  349. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PDYL7XHY_mjs_0gdc-p7pi-jfu._.js +106 -0
  350. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-HPEHV2GE_mjs_1w3smw-ijzodn._.js +66 -0
  351. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_journeyDiagram-BOSHW7O7_mjs_1v5r67f10sxd2._.js +136 -0
  352. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_kanban-definition-FNSA4HC5_mjs_0bx3yg9h0-o_h._.js +81 -0
  353. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_mindmap-definition-6OY57UG3_mjs_1flbwvokbe43l._.js +94 -0
  354. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_pegDiagram-ECIUJNBX_mjs_19ws2lks7y8ba._.js +3 -0
  355. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_pieDiagram-GNMPY74T_mjs_1svnsi81sdmsu._.js +40 -0
  356. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_quadrantDiagram-D57K4MC3_mjs_1l9703iajtl6q._.js +3 -0
  357. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_requirementDiagram-EQYSW5RA_mjs_1vmr4mg1z-9ll._.js +81 -0
  358. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_sankeyDiagram-SY24JHO5_mjs_0rxkes89qu0cn._.js +36 -0
  359. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_sequenceDiagram-BLEHNHQU_mjs_01xlvftvbiqfj._.js +162 -0
  360. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_stateDiagram-v2-A6IESKWZ_mjs_0wv3xhf_fiekb._.js +288 -0
  361. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_swimlanes-B3ENRKFQ_mjs_1c5xp74kftuoo._.js +3 -0
  362. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_timeline-definition-JXYKGLGB_mjs_1678388vmj0r0._.js +117 -0
  363. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_usecaseDiagram-WPOLBNNX_mjs_0ybnglahymms6._.js +311 -0
  364. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_vennDiagram-Q3Y3IDCW_mjs_0x_2lcij5t6zs._.js +25 -0
  365. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_wardleyDiagram-IVAIDKWA_mjs_1sbonpcn-cpbz._.js +79 -0
  366. package/.next/server/chunks/ssr/06--_mermaid_dist_chunks_mermaid_core_xychartDiagram-4URNHDU4_mjs_1s6zhs5p0p-uv._.js +3 -0
  367. package/.next/server/chunks/ssr/06--_mermaid_dist_mermaid_core_mjs_1mlk1u5b8e_wn._.js +6 -0
  368. package/.next/server/chunks/ssr/06xc_@lezer_lr_dist_index_1ktnljh3i3dwo.js +3 -0
  369. package/.next/server/chunks/ssr/09i1_@codemirror_lang-sass_dist_index_19o49rj9px8g3.js +3 -0
  370. package/.next/server/chunks/ssr/0ana_@codemirror_lang-less_dist_index_016njegqx8l3k.js +3 -0
  371. package/.next/server/chunks/ssr/0axp_@codemirror_lang-php_dist_index_0jzg1qsirtogl.js +3 -0
  372. package/.next/server/chunks/ssr/0bpr_@codemirror_lang-liquid_dist_index_0rrn_eevcqro2.js +3 -0
  373. package/.next/server/chunks/ssr/0dma_d3-format_src_defaultLocale_1uw4-huukm4o-.js +3 -0
  374. package/.next/server/chunks/ssr/0f1w_cytoscape_dist_cytoscape_esm_mjs_0uvjn72-bpvk4._.js +3 -0
  375. package/.next/server/chunks/ssr/0fbn_dagre-d3-es_src_graphlib_index_09d95eh9qqqd8.js +3 -0
  376. package/.next/server/chunks/ssr/0h5b_@codemirror_lang-css_dist_index_1s3yuhh-gd740.js +3 -0
  377. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_1up0wutfzzapj._.js +3 -0
  378. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_1xt53qk5-ubau._.js +3 -0
  379. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_apl_0hd-rl7toibrs.js +3 -0
  380. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_asciiarmor_1i1f4m20xupjo.js +3 -0
  381. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_asn1_16nc76_3_litg.js +3 -0
  382. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_asterisk_1tzuhtaf8ahm_.js +3 -0
  383. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_brainfuck_06q0ovjbfprn5.js +3 -0
  384. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_clike_0j6-sjl0oyh-c.js +3 -0
  385. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_clojure_1qnm5efd-lskg.js +3 -0
  386. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_cmake_08e0qe8ry3g-c.js +3 -0
  387. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_cobol_0t8vf93347z4l.js +3 -0
  388. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_coffeescript_02way8n-uj1hn.js +3 -0
  389. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_commonlisp_1ckj8o6t0fb3n.js +3 -0
  390. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_crystal_03neyhdxyqkuc.js +3 -0
  391. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_css_1zokbtd0x2cae.js +3 -0
  392. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_cypher_1od6c8ltdsd4_.js +3 -0
  393. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_d_08v1efs0gdadb.js +3 -0
  394. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_diff_0r1b_33b1-og_.js +3 -0
  395. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_dtd_1-_g6cfrzf_l-.js +3 -0
  396. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_dylan_061ggipbgui49.js +3 -0
  397. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_ebnf_0ufe_tv_55q7m.js +3 -0
  398. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_ecl_0gpkd5617hx49.js +3 -0
  399. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_eiffel_035yhhz-yxk-d.js +3 -0
  400. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_elm_212kji0cxl7ug.js +3 -0
  401. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_erlang_0lkuq_20k580t.js +3 -0
  402. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_fcl_17lsjlsvrzdce.js +3 -0
  403. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_forth_1n5g1it-3i5q4.js +3 -0
  404. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_fortran_19-4_uku5u9eb.js +3 -0
  405. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_gas_0kivncx99ha2e.js +3 -0
  406. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_gherkin_0clkn8i3fgex8.js +3 -0
  407. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_groovy_1ir9iyj9sadgs.js +3 -0
  408. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_haskell_19ss2pb74i2gf.js +3 -0
  409. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_haxe_1cyjdahxariv9.js +3 -0
  410. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_http_0qan-v-bkwd25.js +3 -0
  411. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_idl_0-49hggjjx-o2.js +3 -0
  412. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_javascript_0x1ivs8e7u2pq.js +3 -0
  413. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_julia_0ommddtg8wi7c.js +3 -0
  414. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_livescript_0c-5aeyqpoehd.js +3 -0
  415. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_lua_14-kx0k1je8-f.js +3 -0
  416. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_mathematica_18e0jz0jo7ez4.js +3 -0
  417. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_mbox_03b3dr1wm6w9n.js +3 -0
  418. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_mirc_16a2jn4_iov1t.js +3 -0
  419. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_mllike_0x6siwel93q75.js +3 -0
  420. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_modelica_1qyaq1fpagllh.js +3 -0
  421. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_mscgen_0_gvqphlkg68n.js +3 -0
  422. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_mumps_1if0j5x7yac3r.js +3 -0
  423. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_nginx_16enblsar91wp.js +3 -0
  424. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_nsis_0491k25qzq6n-.js +3 -0
  425. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_ntriples_16lpw_nzxj463.js +3 -0
  426. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_octave_1z7rt0muew0-8.js +3 -0
  427. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_oz_1h5vk-x2xmkx3.js +3 -0
  428. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_pascal_0dtupnshldhdd.js +3 -0
  429. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_perl_20hz0yz38usbe.js +3 -0
  430. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_pig_18u2h9t-odnog.js +3 -0
  431. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_powershell_05n-u6qu56d5p.js +3 -0
  432. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_properties_0bg5fvo2oa6qy.js +3 -0
  433. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_protobuf_18uq17i-qn6w0.js +3 -0
  434. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_pug_07wg_nqynejih.js +3 -0
  435. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_puppet_1v-k_-ploxfte.js +3 -0
  436. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_python_0aua1h_-tgmwi.js +3 -0
  437. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_q_1ek_kudm8jyxr.js +3 -0
  438. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_r_083j-t_rl9tu7.js +3 -0
  439. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_rpm_1ehnqh3wmk8fp.js +3 -0
  440. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_ruby_109j-bw7mr2r3.js +3 -0
  441. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_sas_1nlco5idodt95.js +3 -0
  442. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_scheme_0crl8cmmtqf75.js +3 -0
  443. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_shell_1tsioxmtynmq3.js +3 -0
  444. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_sieve_0d_n76tw290-p.js +3 -0
  445. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_simple-mode_0_elikdcmtruu.js +3 -0
  446. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_smalltalk_02101v3jdo341.js +3 -0
  447. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_solr_1epzrk9yg68gn.js +3 -0
  448. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_sparql_1nr8sm5wng4qg.js +3 -0
  449. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_spreadsheet_0fhpeni20btev.js +3 -0
  450. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_sql_12c864xzjdvwc.js +3 -0
  451. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_stex_0ast5uihb18sf.js +3 -0
  452. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_stylus_0rl42eh3a2f48.js +3 -0
  453. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_swift_1j7o6_33v6_to.js +3 -0
  454. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_tcl_0ka67avgn5l4o.js +3 -0
  455. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_textile_13h_9i7jt6qk0.js +3 -0
  456. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_tiddlywiki_12169j0ddj4y7.js +3 -0
  457. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_tiki_0gcde4ak41ine.js +3 -0
  458. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_toml_1jo35xcze4t3d.js +3 -0
  459. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_troff_0oiw7542lhtnu.js +3 -0
  460. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_ttcn-cfg_0p1s_wii-pwtf.js +3 -0
  461. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_ttcn_0vg8jqeksnp7o.js +3 -0
  462. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_turtle_0xjj3bbbff06r.js +3 -0
  463. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_vb_1utn9s1rucao0.js +3 -0
  464. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_vbscript_0h0amv3roogpq.js +3 -0
  465. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_velocity_08ymnyoghln_f.js +3 -0
  466. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_verilog_0oiraytw93k6r.js +3 -0
  467. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_vhdl_1zd2o4jsn93r9.js +3 -0
  468. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_webidl_1gd_j_jpgi42s.js +3 -0
  469. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_xquery_20e0h-fcaoa4x.js +3 -0
  470. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_yacas_0zo4vg3-bgj2t.js +3 -0
  471. package/.next/server/chunks/ssr/0ivy_@codemirror_legacy-modes_mode_z80_11b_-rqp_g395.js +3 -0
  472. package/.next/server/chunks/ssr/0jby_remark-gfm_lib_index_0yd1x-xt5kcpe.js +3 -0
  473. package/.next/server/chunks/ssr/0jju_@codemirror_autocomplete_dist_index_028dte6e8vkl-.js +3 -0
  474. package/.next/server/chunks/ssr/0juv_@codemirror_lang-sql_dist_index_0rwek9n1u99a_.js +3 -0
  475. package/.next/server/chunks/ssr/0lpo_@codemirror_lang-rust_dist_index_18ooto8eksxu5.js +3 -0
  476. package/.next/server/chunks/ssr/0mvo_@codemirror_language-data_dist_index_0710tfl961i5s.js +3 -0
  477. package/.next/server/chunks/ssr/0n41_@codemirror_lang-xml_dist_index_0n3jjk5jehx9e.js +3 -0
  478. package/.next/server/chunks/ssr/0pkv_d3-scale_src_1alxykz8vij00._.js +3 -0
  479. package/.next/server/chunks/ssr/0q0o_@codemirror_lang-html_dist_index_19od880-n0fza.js +3 -0
  480. package/.next/server/chunks/ssr/0r4x_prosemirror-state_dist_index_1v160urao-pk8.js +3 -0
  481. package/.next/server/chunks/ssr/0rfu_@floating-ui_dom_dist_floating-ui_dom_mjs_1qcxne4ahv9eo._.js +3 -0
  482. package/.next/server/chunks/ssr/0ssf_prosemirror-history_dist_index_0mxcqf9op8kkf.js +3 -0
  483. package/.next/server/chunks/ssr/0tee_@milkdown_components_lib_link-tooltip_index_0_yn-0wcgrhst.js +3 -0
  484. package/.next/server/chunks/ssr/0upk_roughjs_bundled_rough_esm_0vflsucibqjsr.js +3 -0
  485. package/.next/server/chunks/ssr/0xze_parser_dist_chunks_mermaid-parser_core_chunk-NGNAAXSQ_mjs_18xrienhu0z76._.js +68 -0
  486. package/.next/server/chunks/ssr/0ysl_app_src_client_ui_screens_humanDecisions_HumanDecisionsScreen_tsx_1q9b8qom_7y1u._.js +3 -0
  487. package/.next/server/chunks/ssr/1-u6_katex_dist_katex_mjs_1e0_o2klyd22u._.js +3 -0
  488. package/.next/server/chunks/ssr/1-u6_katex_dist_katex_mjs_1mg4u198lr_ru._.js +3 -0
  489. package/.next/server/chunks/ssr/11di_w3c-keyname_index_090lnqxpyzlk-.js +3 -0
  490. package/.next/server/chunks/ssr/176e_@codemirror_lang-yaml_dist_index_1nvbi388c7zxz.js +3 -0
  491. package/.next/server/chunks/ssr/1_e4_@codemirror_lang-json_dist_index_11_o2a1gnr_g9.js +3 -0
  492. package/.next/server/chunks/ssr/1b4m_@codemirror_lang-cpp_dist_index_05u2zenxpc8xc.js +3 -0
  493. package/.next/server/chunks/ssr/1bjv_@milkdown_preset-gfm_lib_index_04pvj1u0oclag.js +3 -0
  494. package/.next/server/chunks/ssr/1cfu_@codemirror_lang-jinja_dist_index_17_2vifgsjkln.js +3 -0
  495. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00sb27hetapp0._.js +3 -0
  496. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_07w3r5m6f98u8._.js +3 -0
  497. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0f7y4dnnnvm8q._.js +3 -0
  498. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0fpxwlehulj_4._.js +3 -0
  499. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0id2pjpmu-odw._.js +3 -0
  500. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ios6rsftenb5._.js +3 -0
  501. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0l5u7nic2b--h._.js +3 -0
  502. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0n_-wc148xo6y._.js +3 -0
  503. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0om2n7yjk-4uu._.js +3 -0
  504. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0q1m7r-ru61bx._.js +3 -0
  505. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0uy_f0ba48_lm._.js +3 -0
  506. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0vjp2rg-bxr1v._.js +3 -0
  507. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_16pba_l_k4_0w._.js +3 -0
  508. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_16w5-w0jl3hgt._.js +3 -0
  509. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_714r7le15bq._.js +3 -0
  510. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1fn60lsssnuj9._.js +3 -0
  511. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1ga3p9k7r3y9-._.js +3 -0
  512. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1gajvkjnhvjyw._.js +3 -0
  513. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1h_a6rr921hly._.js +3 -0
  514. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1i-f_2_ckogt_._.js +3 -0
  515. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1kajkl9i_isr8._.js +3 -0
  516. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lfufxb3kj70o._.js +3 -0
  517. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1qzpw5-gpfun6._.js +3 -0
  518. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1rdj_y3armgt8._.js +3 -0
  519. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1rq8c0_i_skwj._.js +3 -0
  520. package/.next/server/chunks/ssr/1fxq_@mermaid-js_parser_dist_mermaid-parser_core_mjs_0h8gp-j9cqq7e._.js +3 -0
  521. package/.next/server/chunks/ssr/1kte_@codemirror_lang-javascript_dist_index_0d90aa47yk3sz.js +3 -0
  522. package/.next/server/chunks/ssr/1mcb_d3-shape_src_0l1t-x602qgg2._.js +3 -0
  523. package/.next/server/chunks/ssr/1mcb_d3-shape_src_arc_16i56gflp84y0.js +3 -0
  524. package/.next/server/chunks/ssr/1rm-_@codemirror_lang-vue_dist_index_1dsp-8v7o-56l.js +3 -0
  525. package/.next/server/chunks/ssr/1t7n_@codemirror_lang-markdown_dist_index_1vm7csirr39ig.js +3 -0
  526. package/.next/server/chunks/ssr/1tlw_lodash-es_002j8344wfg3y._.js +3 -0
  527. package/.next/server/chunks/ssr/1tlw_lodash-es_16g4nfgqx3a79._.js +3 -0
  528. package/.next/server/chunks/ssr/1tlw_lodash-es_1927j9hytmby5._.js +3 -0
  529. package/.next/server/chunks/ssr/1tlw_lodash-es_debounce_06oemraa4uzz_.js +3 -0
  530. package/.next/server/chunks/ssr/1tlw_lodash-es_debounce_08zp9g1ywpuwx.js +3 -0
  531. package/.next/server/chunks/ssr/1tlw_lodash-es_throttle_19ilivtm7teo4.js +3 -0
  532. package/.next/server/chunks/ssr/1tr6_@milkdown_preset-commonmark_lib_index_1jsr6pxdnfhq4.js +3 -0
  533. package/.next/server/chunks/ssr/1tuv_@codemirror_lang-go_dist_index_1y9u-ppkiy8r8.js +3 -0
  534. package/.next/server/chunks/ssr/1twc_dompurify_dist_purify_es_mjs_03b70y15h_fqw._.js +3 -0
  535. package/.next/server/chunks/ssr/1u_2_@codemirror_lang-angular_dist_index_1s5c_2tgu_16b.js +3 -0
  536. package/.next/server/chunks/ssr/1w85_@codemirror_lang-python_dist_index_126zaqoa_oskj.js +3 -0
  537. package/.next/server/chunks/ssr/20hm_@codemirror_lang-java_dist_index_17cnwkupe4-rz.js +3 -0
  538. package/.next/server/chunks/ssr/214e_@milkdown_kit_lib_prose_state_0eq9g8z4xeh-u.js +3 -0
  539. package/.next/server/chunks/ssr/[root-of-the-server]__02u9f32ry284v._.js +14 -0
  540. package/.next/server/chunks/ssr/[root-of-the-server]__03fd40g3mm6_p._.js +3 -0
  541. package/.next/server/chunks/ssr/[root-of-the-server]__068ixxdaa5ac8._.js +3 -0
  542. package/.next/server/chunks/ssr/[root-of-the-server]__076i3q845sw_f._.js +3 -0
  543. package/.next/server/chunks/ssr/[root-of-the-server]__08_dlsgm45li_._.js +3 -0
  544. package/.next/server/chunks/ssr/[root-of-the-server]__09lybaidp4ytp._.js +3 -0
  545. package/.next/server/chunks/ssr/[root-of-the-server]__09lymwel_or87._.js +3 -0
  546. package/.next/server/chunks/ssr/[root-of-the-server]__0azxp5zozje9_._.js +3 -0
  547. package/.next/server/chunks/ssr/[root-of-the-server]__0hogoguacz8ur._.js +3 -0
  548. package/.next/server/chunks/ssr/[root-of-the-server]__0of5i1kim-02t._.js +3 -0
  549. package/.next/server/chunks/ssr/[root-of-the-server]__0q3r5zcq1nq-l._.js +3 -0
  550. package/.next/server/chunks/ssr/[root-of-the-server]__0qvsu-225ae-9._.js +3 -0
  551. package/.next/server/chunks/ssr/[root-of-the-server]__0sh5kpcrtscul._.js +3 -0
  552. package/.next/server/chunks/ssr/[root-of-the-server]__0tshst3064nz2._.js +3 -0
  553. package/.next/server/chunks/ssr/[root-of-the-server]__0tygv-zuxlxc7._.js +3 -0
  554. package/.next/server/chunks/ssr/[root-of-the-server]__0u-oy5lhckmao._.js +3 -0
  555. package/.next/server/chunks/ssr/[root-of-the-server]__0vmd5kxnst7_n._.js +3 -0
  556. package/.next/server/chunks/ssr/[root-of-the-server]__0y8_n69fn3dcz._.js +3 -0
  557. package/.next/server/chunks/ssr/[root-of-the-server]__0yx3-boz833my._.js +3 -0
  558. package/.next/server/chunks/ssr/[root-of-the-server]__0zob21vm-qus-._.js +3 -0
  559. package/.next/server/chunks/ssr/[root-of-the-server]__14vsuap94qdvv._.js +3 -0
  560. package/.next/server/chunks/ssr/[root-of-the-server]__1859jwyl-0dyv._.js +3 -0
  561. package/.next/server/chunks/ssr/[root-of-the-server]__1at64e6zbwoan._.js +3 -0
  562. package/.next/server/chunks/ssr/[root-of-the-server]__1i-khow6d_8_4._.js +3 -0
  563. package/.next/server/chunks/ssr/[root-of-the-server]__1iimaf2bu0424._.js +3 -0
  564. package/.next/server/chunks/ssr/[root-of-the-server]__1l1qy81q6o38c._.js +3 -0
  565. package/.next/server/chunks/ssr/[root-of-the-server]__1l5v10nlz9ydv._.js +3 -0
  566. package/.next/server/chunks/ssr/[root-of-the-server]__1o26vr103y40w._.js +3 -0
  567. package/.next/server/chunks/ssr/[root-of-the-server]__1qg27t6-twvk1._.js +3 -0
  568. package/.next/server/chunks/ssr/[root-of-the-server]__1r0lv_nd2c9rc._.js +3 -0
  569. package/.next/server/chunks/ssr/[root-of-the-server]__1rhtswovlx559._.js +3 -0
  570. package/.next/server/chunks/ssr/[turbopack]_runtime.js +937 -0
  571. package/.next/server/chunks/ssr/_00u85u5a1h8o6._.js +3 -0
  572. package/.next/server/chunks/ssr/_06n6aoyvk4v8d._.js +3 -0
  573. package/.next/server/chunks/ssr/_0xpnl68zms_u4._.js +25 -0
  574. package/.next/server/chunks/ssr/_18sy10caq_3xy._.js +4 -0
  575. package/.next/server/chunks/ssr/_1gjuc1gubpwo8._.js +3 -0
  576. package/.next/server/chunks/ssr/_1pzwyebui89yg._.js +3 -0
  577. package/.next/server/chunks/ssr/_1slk-hkdgtggu._.js +3 -0
  578. package/.next/server/chunks/ssr/_1ym1o9h62ul9i._.js +299 -0
  579. package/.next/server/chunks/ssr/node_modules__pnpm_0-62y689aghse._.js +3 -0
  580. package/.next/server/chunks/ssr/node_modules__pnpm_01skrdxa7jh90._.js +3 -0
  581. package/.next/server/chunks/ssr/node_modules__pnpm_02uzilx7_av_j._.js +3 -0
  582. package/.next/server/chunks/ssr/node_modules__pnpm_040gekg7c46fx._.js +3 -0
  583. package/.next/server/chunks/ssr/node_modules__pnpm_04schutfn35bj._.js +3 -0
  584. package/.next/server/chunks/ssr/node_modules__pnpm_05h501p6qsta2._.js +3 -0
  585. package/.next/server/chunks/ssr/node_modules__pnpm_07__3n9kdea3x._.js +17 -0
  586. package/.next/server/chunks/ssr/node_modules__pnpm_07bue1xogf_3-._.js +3 -0
  587. package/.next/server/chunks/ssr/node_modules__pnpm_0809yfsbemzjk._.js +3 -0
  588. package/.next/server/chunks/ssr/node_modules__pnpm_089dt1n_-87tz._.js +3 -0
  589. package/.next/server/chunks/ssr/node_modules__pnpm_08vun7__wqvc_._.js +3 -0
  590. package/.next/server/chunks/ssr/node_modules__pnpm_0aty6r4mnp97n._.js +17 -0
  591. package/.next/server/chunks/ssr/node_modules__pnpm_0b70te4pjhy2e._.js +3 -0
  592. package/.next/server/chunks/ssr/node_modules__pnpm_0h16tk2cwq36v._.js +3 -0
  593. package/.next/server/chunks/ssr/node_modules__pnpm_0k5x_rsbezvwb._.js +3 -0
  594. package/.next/server/chunks/ssr/node_modules__pnpm_0k7jt_isf2v40._.js +3 -0
  595. package/.next/server/chunks/ssr/node_modules__pnpm_0ljbxyfip22ml._.js +3 -0
  596. package/.next/server/chunks/ssr/node_modules__pnpm_0lkowm9skxawi._.js +3 -0
  597. package/.next/server/chunks/ssr/node_modules__pnpm_0mmyvqb-ix-us._.js +3 -0
  598. package/.next/server/chunks/ssr/node_modules__pnpm_0olfojkjg7h-c._.js +3 -0
  599. package/.next/server/chunks/ssr/node_modules__pnpm_0q72wwfh94hc7._.js +3 -0
  600. package/.next/server/chunks/ssr/node_modules__pnpm_0qdi2brbala9w._.js +3 -0
  601. package/.next/server/chunks/ssr/node_modules__pnpm_0qf67-025iumd._.js +3 -0
  602. package/.next/server/chunks/ssr/node_modules__pnpm_0r63o_ocihhx3._.js +3 -0
  603. package/.next/server/chunks/ssr/node_modules__pnpm_0rq1l-jz2qx23._.js +3 -0
  604. package/.next/server/chunks/ssr/node_modules__pnpm_0vwfzp40fv85a._.js +3 -0
  605. package/.next/server/chunks/ssr/node_modules__pnpm_0xogjruqowijn._.js +3 -0
  606. package/.next/server/chunks/ssr/node_modules__pnpm_0ydc1h7j6a-t_._.js +17 -0
  607. package/.next/server/chunks/ssr/node_modules__pnpm_0ylum8o696oms._.js +38 -0
  608. package/.next/server/chunks/ssr/node_modules__pnpm_10hg7r6co86g6._.js +3 -0
  609. package/.next/server/chunks/ssr/node_modules__pnpm_10sx7hc9jbw5g._.js +3 -0
  610. package/.next/server/chunks/ssr/node_modules__pnpm_175uzatd356wd._.js +17 -0
  611. package/.next/server/chunks/ssr/node_modules__pnpm_192aapf0uy8n9._.js +3 -0
  612. package/.next/server/chunks/ssr/node_modules__pnpm_192fe9lvk84x7._.js +3 -0
  613. package/.next/server/chunks/ssr/node_modules__pnpm_1_i3oawxylmn8._.js +33 -0
  614. package/.next/server/chunks/ssr/node_modules__pnpm_1_uhg4m40s4to._.js +3 -0
  615. package/.next/server/chunks/ssr/node_modules__pnpm_1a1jr-zf5qrn-._.js +3 -0
  616. package/.next/server/chunks/ssr/node_modules__pnpm_1a803tkkqathx._.js +3 -0
  617. package/.next/server/chunks/ssr/node_modules__pnpm_1apn-qyd0up6n._.js +24 -0
  618. package/.next/server/chunks/ssr/node_modules__pnpm_1e5awe78f5vzg._.js +3 -0
  619. package/.next/server/chunks/ssr/node_modules__pnpm_1ek1wv-1f-w91._.js +3 -0
  620. package/.next/server/chunks/ssr/node_modules__pnpm_1f9mdx66r4ppk._.js +3 -0
  621. package/.next/server/chunks/ssr/node_modules__pnpm_1gc719cpwlhpz._.js +3 -0
  622. package/.next/server/chunks/ssr/node_modules__pnpm_1gwsr6acpah96._.js +3 -0
  623. package/.next/server/chunks/ssr/node_modules__pnpm_1h4r9n8b9_s1g._.js +17 -0
  624. package/.next/server/chunks/ssr/node_modules__pnpm_1hyd6ogb53vgm._.js +3 -0
  625. package/.next/server/chunks/ssr/node_modules__pnpm_1k9nmnub0yosz._.js +3 -0
  626. package/.next/server/chunks/ssr/node_modules__pnpm_1kp5q5_02l22o._.js +3 -0
  627. package/.next/server/chunks/ssr/node_modules__pnpm_1lj3s31o9hjcw._.js +3 -0
  628. package/.next/server/chunks/ssr/node_modules__pnpm_1lzazpib88m-5._.js +3 -0
  629. package/.next/server/chunks/ssr/node_modules__pnpm_1mbuq0ndrczy9._.js +3 -0
  630. package/.next/server/chunks/ssr/node_modules__pnpm_1mope7nm-vw3x._.js +3 -0
  631. package/.next/server/chunks/ssr/node_modules__pnpm_1nf_30rpi0apn._.js +3 -0
  632. package/.next/server/chunks/ssr/node_modules__pnpm_1on1ng4zsath3._.js +3 -0
  633. package/.next/server/chunks/ssr/node_modules__pnpm_1outxk3s9h6yk._.js +3 -0
  634. package/.next/server/chunks/ssr/node_modules__pnpm_1sd1boa0gva3j._.js +3 -0
  635. package/.next/server/chunks/ssr/node_modules__pnpm_1ttl5tf3m8_tz._.js +3 -0
  636. package/.next/server/chunks/ssr/node_modules__pnpm_1tun34xzr03al._.js +3 -0
  637. package/.next/server/chunks/ssr/node_modules__pnpm_1urf-ofg1l8_e._.js +17 -0
  638. package/.next/server/chunks/ssr/node_modules__pnpm_1uufggmla1ub1._.js +24 -0
  639. package/.next/server/chunks/ssr/node_modules__pnpm_1xtxbgt3wkk-s._.js +3 -0
  640. package/.next/server/chunks/ssr/node_modules__pnpm_1zgy286fn4qrs._.js +3 -0
  641. package/.next/server/chunks/ssr/node_modules__pnpm_1zsj85qtqqf2q._.js +3 -0
  642. package/.next/server/chunks/ssr/node_modules__pnpm_2079y8tr8si0s._.js +3 -0
  643. package/.next/server/chunks/ssr/node_modules__pnpm_20vxwm6_5m24x._.js +289 -0
  644. package/.next/server/chunks/ssr/packages_app__next-internal_server_app__global-error_page_actions_1oiuh5-h2b6uk.js +3 -0
  645. package/.next/server/chunks/ssr/packages_app__next-internal_server_app__not-found_page_actions_1wk8z-3cym6gh.js +3 -0
  646. package/.next/server/chunks/ssr/packages_app_src_19fv2qm5lpxq1._.js +3 -0
  647. package/.next/server/chunks/ssr/packages_app_src_1bnxm-8f8yt9f._.js +3 -0
  648. package/.next/server/chunks/ssr/packages_app_src_client_0pwh_vrm-wymc._.js +3 -0
  649. package/.next/server/chunks/ssr/packages_app_src_client_0r-n14ighyx-y._.js +3 -0
  650. package/.next/server/chunks/ssr/packages_app_src_client_1938frqd2y9i8._.js +3 -0
  651. package/.next/server/chunks/ssr/packages_app_src_client_1al1sum_4am90._.js +3 -0
  652. package/.next/server/chunks/ssr/packages_app_src_client_1z17i_fpf0hcf._.js +3 -0
  653. package/.next/server/chunks/ssr/packages_app_src_client_ui_1ty1yi51yl_mx._.js +5 -0
  654. package/.next/server/chunks/ssr/packages_app_src_client_ui_designSystem_16yt2l4h_k0xz._.js +3 -0
  655. package/.next/server/chunks/ssr/packages_app_src_client_ui_issues_IssueTable_tsx_1451_aayfauch._.js +3 -0
  656. package/.next/server/chunks/ssr/packages_app_src_client_ui_issues_NewIssueDialog_tsx_1_lt839dbbegv._.js +3 -0
  657. package/.next/server/chunks/ssr/packages_app_src_client_ui_screens_board_BoardScreen_tsx_0s58uy_mft-qa._.js +3 -0
  658. package/.next/server/chunks/ssr/packages_app_src_client_ui_screens_decisions_DecisionsScreen_tsx_1splyy_8-x3pj._.js +3 -0
  659. package/.next/server/chunks/ssr/packages_app_src_client_ui_screens_epics_EpicsScreen_tsx_10koyjd4-sokd._.js +3 -0
  660. package/.next/server/chunks/ssr/packages_app_src_client_ui_screens_hygiene_HygieneScreen_tsx_0xm43-zl8kmfv._.js +3 -0
  661. package/.next/server/chunks/ssr/packages_app_src_client_ui_screens_issues_IssuesScreen_tsx_1hjq50yb745mo._.js +3 -0
  662. package/.next/server/edge/chunks/1_n6_next_dist_esm_build_templates_edge-wrapper_139ztfeu83dtf.js +3 -0
  663. package/.next/server/edge/chunks/_0h7un2lf5xhnc._.js +3 -0
  664. package/.next/server/functions-config-manifest.json +14 -0
  665. package/.next/server/instrumentation/middleware-manifest.json +12 -0
  666. package/.next/server/instrumentation.js +4 -0
  667. package/.next/server/instrumentation.js.nft.json +1 -0
  668. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  669. package/.next/server/middleware/middleware-manifest.json +6 -0
  670. package/.next/server/middleware-build-manifest.js +134 -0
  671. package/.next/server/middleware-manifest.json +6 -0
  672. package/.next/server/middleware.js +5 -0
  673. package/.next/server/middleware.js.nft.json +1 -0
  674. package/.next/server/next-font-manifest.js +1 -0
  675. package/.next/server/next-font-manifest.json +6 -0
  676. package/.next/server/pages/404.html +1 -0
  677. package/.next/server/pages/500.html +1 -0
  678. package/.next/server/pages-manifest.json +4 -0
  679. package/.next/server/prefetch-hints.json +25 -0
  680. package/.next/server/preview-props.json +5 -0
  681. package/.next/server/server-reference-manifest.js +1 -0
  682. package/.next/server/server-reference-manifest.json +678 -0
  683. package/.next/static/chunks/0-cidjogxoeyl.js +1 -0
  684. package/.next/static/chunks/0-keif622u80r.js +92 -0
  685. package/.next/static/chunks/0-p7idf7969x8.js +1 -0
  686. package/.next/static/chunks/0-qh6sky9d9ws.js +122 -0
  687. package/.next/static/chunks/01ysl30dotpc5.js +1 -0
  688. package/.next/static/chunks/044ya20hr6lpq.js +1 -0
  689. package/.next/static/chunks/05a3_si0myv11.js +1 -0
  690. package/.next/static/chunks/05o27c5bf2jgn.js +1 -0
  691. package/.next/static/chunks/05wgnamj_k23b.js +1 -0
  692. package/.next/static/chunks/060kz5o7abmkz.js +1 -0
  693. package/.next/static/chunks/06g0p6xxlncl6.js +1 -0
  694. package/.next/static/chunks/06rk8g_9vlhx7.js +1 -0
  695. package/.next/static/chunks/084ej6i9qw54j.js +1 -0
  696. package/.next/static/chunks/08e-n-dvxwrgk.js +1 -0
  697. package/.next/static/chunks/08zb47r13fhsf.js +1 -0
  698. package/.next/static/chunks/09lvusoibo8hl.js +1 -0
  699. package/.next/static/chunks/0_3-9amqbhxho.js +1 -0
  700. package/.next/static/chunks/0_cm4qm2cf33r.js +4 -0
  701. package/.next/static/chunks/0_i_z3u_cfe4d.js +148 -0
  702. package/.next/static/chunks/0al3fs2bst7bo.js +1 -0
  703. package/.next/static/chunks/0b7p8gbp5fbdw.js +212 -0
  704. package/.next/static/chunks/0c4208c14935v.js +1 -0
  705. package/.next/static/chunks/0cabbhqjiz224.js +1 -0
  706. package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  707. package/.next/static/chunks/0ebutbhmwa_-z.js +1 -0
  708. package/.next/static/chunks/0elrnj--45x-p.js +1 -0
  709. package/.next/static/chunks/0emna04wrrip8.js +1 -0
  710. package/.next/static/chunks/0f566xz77pun-.js +1 -0
  711. package/.next/static/chunks/0f9tul-8l65cs.js +1 -0
  712. package/.next/static/chunks/0fh5_0r0nvnu6.js +1 -0
  713. package/.next/static/chunks/0g0c067f__x-n.js +1 -0
  714. package/.next/static/chunks/0g6u4w4zogx4z.js +1 -0
  715. package/.next/static/chunks/0h58qnhh95uzh.js +1 -0
  716. package/.next/static/chunks/0kv5ww351ao3w.js +203 -0
  717. package/.next/static/chunks/0kzahs2dbu_eg.js +115 -0
  718. package/.next/static/chunks/0l7zvgys9lqe0.js +1 -0
  719. package/.next/static/chunks/0lhbxb-hxh-9z.js +1 -0
  720. package/.next/static/chunks/0ltapvndq90mm.js +1 -0
  721. package/.next/static/chunks/0m32_r9nwu9od.js +1 -0
  722. package/.next/static/chunks/0m673ey220fls.js +1 -0
  723. package/.next/static/chunks/0nn5wn77jg2dg.js +1 -0
  724. package/.next/static/chunks/0on9azsug3puk.js +74 -0
  725. package/.next/static/chunks/0oxszt8wg7dl-.js +1 -0
  726. package/.next/static/chunks/0plazo62im6bg.js +1 -0
  727. package/.next/static/chunks/0pq8sr42dhs36.js +1 -0
  728. package/.next/static/chunks/0q-l88ob07l2k.js +1 -0
  729. package/.next/static/chunks/0q1xx0nday1cp.js +77 -0
  730. package/.next/static/chunks/0q4kl3djf7tt8.js +1 -0
  731. package/.next/static/chunks/0qi0redww7dj1.js +1 -0
  732. package/.next/static/chunks/0qz60578fkr7_.js +1 -0
  733. package/.next/static/chunks/0r4wbot3_u3ga.js +1 -0
  734. package/.next/static/chunks/0rjw-ub0ud9dz.js +1 -0
  735. package/.next/static/chunks/0rpo6w3h_v3w7.js +1 -0
  736. package/.next/static/chunks/0rx-14bmud73d.js +1 -0
  737. package/.next/static/chunks/0t5vj_w7rsy25.js +1 -0
  738. package/.next/static/chunks/0upta5gyni625.js +1 -0
  739. package/.next/static/chunks/0w12by1gms55l.js +1 -0
  740. package/.next/static/chunks/0xl7pewcerwle.js +1 -0
  741. package/.next/static/chunks/0z4qyqmkae32l.js +1 -0
  742. package/.next/static/chunks/0z5gqxt_7rduc.js +1 -0
  743. package/.next/static/chunks/0zws50biy6jig.js +15 -0
  744. package/.next/static/chunks/10j1c5di1axxx.js +1 -0
  745. package/.next/static/chunks/10t6ia9_ngdxt.js +1 -0
  746. package/.next/static/chunks/11exvk7wzcas5.js +1 -0
  747. package/.next/static/chunks/1246tqvp16zb4.css +9 -0
  748. package/.next/static/chunks/12w7t4077jp4i.js +1 -0
  749. package/.next/static/chunks/13w5phmhy53ys.js +1 -0
  750. package/.next/static/chunks/14ja9s6rmllxk.js +1 -0
  751. package/.next/static/chunks/14r9tx1ylqkdd.js +1 -0
  752. package/.next/static/chunks/14tw0c0_i8jux.js +1 -0
  753. package/.next/static/chunks/15ajhna3p_jbl.js +1 -0
  754. package/.next/static/chunks/15sikm_2cgb_a.js +160 -0
  755. package/.next/static/chunks/16916kf17f8ye.js +1 -0
  756. package/.next/static/chunks/16ui8oocwxjv_.js +1 -0
  757. package/.next/static/chunks/178zb3brj3los.js +286 -0
  758. package/.next/static/chunks/17lxbkw4flxsa.js +1 -0
  759. package/.next/static/chunks/18vfk2p3xqb23.js +1 -0
  760. package/.next/static/chunks/1_f4lkplomkro.js +27 -0
  761. package/.next/static/chunks/1_k0ygi4ax3ko.js +1 -0
  762. package/.next/static/chunks/1azbbcxtw5uoa.js +1 -0
  763. package/.next/static/chunks/1bgr-fpr_ty9x.js +10 -0
  764. package/.next/static/chunks/1c32f_mrokg0q.js +1 -0
  765. package/.next/static/chunks/1e589kopu3g__.js +1 -0
  766. package/.next/static/chunks/1f13dqbtyk0r1.js +1 -0
  767. package/.next/static/chunks/1hjs4aldnqrmt.js +86 -0
  768. package/.next/static/chunks/1i1hn8j833icp.js +1 -0
  769. package/.next/static/chunks/1ix59xuhq-q14.css +1 -0
  770. package/.next/static/chunks/1k3rpvq1044oh.js +1 -0
  771. package/.next/static/chunks/1kj4wnnvxqes7.js +1 -0
  772. package/.next/static/chunks/1kwdc0y1-nlh0.js +1 -0
  773. package/.next/static/chunks/1lxcepuuf4d2u.js +1 -0
  774. package/.next/static/chunks/1mc2vzrhkpajn.js +1 -0
  775. package/.next/static/chunks/1n8o5-ppz_z6l.js +1 -0
  776. package/.next/static/chunks/1ndfyo2whdo_w.js +1 -0
  777. package/.next/static/chunks/1nk8xt06wfi9d.js +1 -0
  778. package/.next/static/chunks/1nl-__ine-f54.js +1 -0
  779. package/.next/static/chunks/1nsr1hutuvg-2.js +1 -0
  780. package/.next/static/chunks/1ob06-65jncy2.js +1 -0
  781. package/.next/static/chunks/1oi3p01ljvxe_.js +1 -0
  782. package/.next/static/chunks/1oxogv1tfv20_.js +1 -0
  783. package/.next/static/chunks/1p93o2jvb5khm.js +1 -0
  784. package/.next/static/chunks/1rbvjmcgjcdoy.js +1 -0
  785. package/.next/static/chunks/1rk9__vlzwgm3.js +1 -0
  786. package/.next/static/chunks/1rzoyrkghg37d.js +1 -0
  787. package/.next/static/chunks/1t6-jihk3mqys.js +1 -0
  788. package/.next/static/chunks/1tb4let5_5zz5.js +1 -0
  789. package/.next/static/chunks/1u6ndk4bpvh2a.js +38 -0
  790. package/.next/static/chunks/1vhaucwwb3f45.js +1 -0
  791. package/.next/static/chunks/1wjhxz6x2t_vy.js +1 -0
  792. package/.next/static/chunks/1x93tny9dbgs9.js +1 -0
  793. package/.next/static/chunks/1z0nk9yl-k0-g.js +1 -0
  794. package/.next/static/chunks/1zku-vndxccdi.js +36 -0
  795. package/.next/static/chunks/2-l1z5aeby1di.js +1 -0
  796. package/.next/static/chunks/20atsxy3rjjrd.js +1 -0
  797. package/.next/static/chunks/212bl3le86sf0.js +90 -0
  798. package/.next/static/chunks/22--ki1hf-kpd.js +1 -0
  799. package/.next/static/chunks/2253v3ys-hc2s.js +1 -0
  800. package/.next/static/chunks/227mhvflnjadl.js +1 -0
  801. package/.next/static/chunks/236pzboinev0p.js +9 -0
  802. package/.next/static/chunks/23doox_9si9xh.js +1 -0
  803. package/.next/static/chunks/25r3zj2p68xq5.js +1 -0
  804. package/.next/static/chunks/26-um9q3ah4q1.js +1 -0
  805. package/.next/static/chunks/26ugs-zp1ihuu.js +287 -0
  806. package/.next/static/chunks/2791u8c6ps7ll.js +15 -0
  807. package/.next/static/chunks/27g26aparxch9.js +1 -0
  808. package/.next/static/chunks/27h34lj_m12xh.js +309 -0
  809. package/.next/static/chunks/27lvlrh6---yl.js +1 -0
  810. package/.next/static/chunks/27r2jkmlc66fx.js +1 -0
  811. package/.next/static/chunks/27xanm5ovrpt4.js +1 -0
  812. package/.next/static/chunks/28467g2j8_z52.js +31 -0
  813. package/.next/static/chunks/2863d6hg7_88-.js +1 -0
  814. package/.next/static/chunks/287vat3v7f581.js +15 -0
  815. package/.next/static/chunks/298_yzw6h8c-5.js +1 -0
  816. package/.next/static/chunks/29je8hy4hk4ff.js +1 -0
  817. package/.next/static/chunks/29w24izqy5m3x.js +1 -0
  818. package/.next/static/chunks/2_l5b7gflm_22.js +1 -0
  819. package/.next/static/chunks/2as_c91_gmzu7.js +1 -0
  820. package/.next/static/chunks/2b1pq50uw8yqw.js +1 -0
  821. package/.next/static/chunks/2bqpr_0tn5a05.js +1 -0
  822. package/.next/static/chunks/2e5c8psb0_qt3.js +1 -0
  823. package/.next/static/chunks/2ejaecoye9ub2.js +1 -0
  824. package/.next/static/chunks/2eko91wr3johd.js +1 -0
  825. package/.next/static/chunks/2f-3vekhxwtee.js +15 -0
  826. package/.next/static/chunks/2fw0bbm27xe7u.js +1 -0
  827. package/.next/static/chunks/2g0tc3lx9b_h5.js +1 -0
  828. package/.next/static/chunks/2gnjq7fwwgo57.css +1 -0
  829. package/.next/static/chunks/2i0ut30lng9m5.js +1 -0
  830. package/.next/static/chunks/2i7v15-sfv7j3.js +1 -0
  831. package/.next/static/chunks/2i8pc2o3bcjfy.js +1 -0
  832. package/.next/static/chunks/2id-3sibvh9an.js +1 -0
  833. package/.next/static/chunks/2j419hstfu-b8.js +1 -0
  834. package/.next/static/chunks/2jb6-a4b7_j7n.js +1 -0
  835. package/.next/static/chunks/2l4j_87dswys4.js +1 -0
  836. package/.next/static/chunks/2lo2di_9jv7g0.js +1 -0
  837. package/.next/static/chunks/2lu1_r-7ufue1.js +1 -0
  838. package/.next/static/chunks/2m01dlxmog_4j.js +1 -0
  839. package/.next/static/chunks/2m89crsp-tdll.js +1 -0
  840. package/.next/static/chunks/2mhm24_0r17hq.js +3 -0
  841. package/.next/static/chunks/2mupuvu05sf4k.js +1 -0
  842. package/.next/static/chunks/2n401bd59i_1f.js +1 -0
  843. package/.next/static/chunks/2ne1-hmxai-bf.js +62 -0
  844. package/.next/static/chunks/2nkykzl82r598.js +15 -0
  845. package/.next/static/chunks/2o20ljpke-8d4.js +1 -0
  846. package/.next/static/chunks/2o2qw89h_1y8k.js +24 -0
  847. package/.next/static/chunks/2o7wbe_4s1fsl.js +93 -0
  848. package/.next/static/chunks/2o_n5jsyhhh1j.js +1 -0
  849. package/.next/static/chunks/2p94jexcgfnsw.js +1 -0
  850. package/.next/static/chunks/2pivg9ftzief7.js +1 -0
  851. package/.next/static/chunks/2rmbv-g8mfw2d.js +1 -0
  852. package/.next/static/chunks/2snq00cyrzph3.js +179 -0
  853. package/.next/static/chunks/2t5alre41v4fa.js +1 -0
  854. package/.next/static/chunks/2u14kb6bakl6u.js +1 -0
  855. package/.next/static/chunks/2v_g8oup0_km-.js +1 -0
  856. package/.next/static/chunks/2vij08rsl0kah.js +1 -0
  857. package/.next/static/chunks/2vv925e3ulg36.js +1 -0
  858. package/.next/static/chunks/2w9ml274q-3-2.js +79 -0
  859. package/.next/static/chunks/2x2m2jftixw6v.js +1 -0
  860. package/.next/static/chunks/2y15jhcretd-b.js +1 -0
  861. package/.next/static/chunks/2yk_zqozh4fmm.js +1 -0
  862. package/.next/static/chunks/2zal-wfk1fsdo.js +1 -0
  863. package/.next/static/chunks/2zcpmlaureuyc.js +1 -0
  864. package/.next/static/chunks/3-iazt5z_5l0v.js +1 -0
  865. package/.next/static/chunks/3-w21-v3xw7xl.js +1 -0
  866. package/.next/static/chunks/30b1f7z6m_g2o.js +1 -0
  867. package/.next/static/chunks/30ihuc_p1sfbq.js +1 -0
  868. package/.next/static/chunks/31xhyhxssim_y.js +1 -0
  869. package/.next/static/chunks/320d47lydxw4c.js +1 -0
  870. package/.next/static/chunks/322qb_kay6_dh.js +62 -0
  871. package/.next/static/chunks/324f-g7rkq8sh.js +1 -0
  872. package/.next/static/chunks/32k_tipl5eadn.js +1 -0
  873. package/.next/static/chunks/33g403p6483nz.js +1 -0
  874. package/.next/static/chunks/33swkxqq98hj-.js +53 -0
  875. package/.next/static/chunks/345-lv7asgqfe.js +1 -0
  876. package/.next/static/chunks/34m04hreh4-as.js +62 -0
  877. package/.next/static/chunks/35_4sgqi2k84t.js +32 -0
  878. package/.next/static/chunks/36r4gytf33yif.js +23 -0
  879. package/.next/static/chunks/37txadqg25ths.js +1 -0
  880. package/.next/static/chunks/38_owsclvyxjn.js +1 -0
  881. package/.next/static/chunks/38fisypdveb9r.js +1 -0
  882. package/.next/static/chunks/38h8tauy9qn50.js +1 -0
  883. package/.next/static/chunks/38u5i4hnj9yoc.js +1 -0
  884. package/.next/static/chunks/396u5n3j51__b.js +135 -0
  885. package/.next/static/chunks/39fr1zu27u207.js +1 -0
  886. package/.next/static/chunks/39xl3kfvsmuuo.js +34 -0
  887. package/.next/static/chunks/39y8fnm-y94wv.js +1 -0
  888. package/.next/static/chunks/3_5ia8hgmtt60.js +1 -0
  889. package/.next/static/chunks/3_oal960-2m3e.js +1 -0
  890. package/.next/static/chunks/3ag_d1w8ai1dy.js +1 -0
  891. package/.next/static/chunks/3azreqwheey4q.js +1 -0
  892. package/.next/static/chunks/3boqstcignblb.js +1 -0
  893. package/.next/static/chunks/3cjgaa1w-3wo2.js +1 -0
  894. package/.next/static/chunks/3ecfeqjbabub5.js +66 -0
  895. package/.next/static/chunks/3f1cs3zxfb10l.js +1 -0
  896. package/.next/static/chunks/3f_o2gsy76qv8.js +61 -0
  897. package/.next/static/chunks/3gaptf_l1v4pk.js +22 -0
  898. package/.next/static/chunks/3gioxrj6lhe-_.js +1 -0
  899. package/.next/static/chunks/3gogi06rt5ndf.js +1 -0
  900. package/.next/static/chunks/3h67a7wnffq23.js +1 -0
  901. package/.next/static/chunks/3hjzhphua7cgd.js +1 -0
  902. package/.next/static/chunks/3ig77t41vb63g.js +1 -0
  903. package/.next/static/chunks/3ikr78lifl1et.js +1 -0
  904. package/.next/static/chunks/3j8hy0m9t_mr-.js +1 -0
  905. package/.next/static/chunks/3krt8tifpoi3t.js +1 -0
  906. package/.next/static/chunks/3l0wfpq_kkgel.js +1 -0
  907. package/.next/static/chunks/3lnn07_tmc-ch.js +94 -0
  908. package/.next/static/chunks/3mev4ibamrv17.js +1 -0
  909. package/.next/static/chunks/3mjtba5cz5f6w.js +88 -0
  910. package/.next/static/chunks/3mtl2380-ef0s.js +41 -0
  911. package/.next/static/chunks/3n39xv9py1mem.js +1 -0
  912. package/.next/static/chunks/3ng_0glv99chu.js +1 -0
  913. package/.next/static/chunks/3nijkknol8-6g.js +1 -0
  914. package/.next/static/chunks/3okkx6x0nwh0f.js +64 -0
  915. package/.next/static/chunks/3p0hqtk4y8fju.js +22 -0
  916. package/.next/static/chunks/3q28z3fh3zubh.js +24 -0
  917. package/.next/static/chunks/3r2_hei9uscv-.js +1 -0
  918. package/.next/static/chunks/3re1mqaptk5ui.js +1 -0
  919. package/.next/static/chunks/3rla-_pd16abk.js +1 -0
  920. package/.next/static/chunks/3u46lp7lgj10z.js +1 -0
  921. package/.next/static/chunks/3ugxxt4s7x_dl.js +1 -0
  922. package/.next/static/chunks/3w5ojvpnl_uxn.js +1 -0
  923. package/.next/static/chunks/3wd99wqzxt_fn.js +104 -0
  924. package/.next/static/chunks/3xkn55zbxtzwn.js +1 -0
  925. package/.next/static/chunks/3yryf54lryr3c.js +1 -0
  926. package/.next/static/chunks/3ze99karhk1gf.js +1 -0
  927. package/.next/static/chunks/400ei-a_3uefx.js +1 -0
  928. package/.next/static/chunks/4077ex4r8vivm.js +1 -0
  929. package/.next/static/chunks/40ivfkkx5sv9u.js +2 -0
  930. package/.next/static/chunks/425sfk9bz8ujf.js +1 -0
  931. package/.next/static/chunks/42nzhy1j3hc14.js +1 -0
  932. package/.next/static/chunks/43ad12uk74dyb.js +1 -0
  933. package/.next/static/chunks/44vzi0dgxpa20.js +1 -0
  934. package/.next/static/chunks/turbopack-3-ry682tkyiqk.js +1 -0
  935. package/.next/static/oT6EetPge6HLETyoQIk-j/_buildManifest.js +11 -0
  936. package/.next/static/oT6EetPge6HLETyoQIk-j/_clientMiddlewareManifest.js +6 -0
  937. package/.next/static/oT6EetPge6HLETyoQIk-j/_ssgManifest.js +1 -0
  938. package/LICENSE +23 -0
  939. package/README.ko.md +88 -0
  940. package/README.md +88 -0
  941. package/bin/bd-desk.js +114 -0
  942. package/bin/daemon.js +376 -0
  943. package/bin/workspaceRoot.js +62 -0
  944. package/next.config.ts +9 -0
  945. package/package.json +61 -0
@@ -0,0 +1,309 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,682240,e=>{"use strict";var t,s,i,n,a,r,o,l,h=e.i(873050),c=e.i(691521),d=e.i(863181);e.i(501340),e.i(76374),e.i(568147),e.i(29983),e.i(937714),e.i(615087);var u=e.i(630841);e.i(556934);var p=e.i(153181),f=e.i(696039),m=e.i(77509),T=e.i(697301),E=e.i(488151);function g(e){function t(){}t.prototype=e;let s=new t;function i(){return typeof s.bar}return i(),i(),e}class y{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class A extends y{constructor(e){super([]),this.idx=1,Object.assign(this,v(e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class S extends y{constructor(e){super(e.definition),this.orgText="",Object.assign(this,v(e))}}class L extends y{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,v(e))}}class O extends y{constructor(e){super(e.definition),this.idx=1,Object.assign(this,v(e))}}class R extends y{constructor(e){super(e.definition),this.idx=1,Object.assign(this,v(e))}}class k extends y{constructor(e){super(e.definition),this.idx=1,Object.assign(this,v(e))}}class N extends y{constructor(e){super(e.definition),this.idx=1,Object.assign(this,v(e))}}class I extends y{constructor(e){super(e.definition),this.idx=1,Object.assign(this,v(e))}}class b extends y{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,v(e))}}class C{constructor(e){this.idx=1,Object.assign(this,v(e))}accept(e){e.visit(this)}}function v(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}class _{walk(e,t=[]){e.definition.forEach((s,i)=>{let n=e.definition.slice(i+1);if(s instanceof A)this.walkProdRef(s,n,t);else if(s instanceof C)this.walkTerminal(s,n,t);else if(s instanceof L)this.walkFlat(s,n,t);else if(s instanceof O)this.walkOption(s,n,t);else if(s instanceof R)this.walkAtLeastOne(s,n,t);else if(s instanceof k)this.walkAtLeastOneSep(s,n,t);else if(s instanceof I)this.walkManySep(s,n,t);else if(s instanceof N)this.walkMany(s,n,t);else if(s instanceof b)this.walkOr(s,n,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,s){}walkProdRef(e,t,s){}walkFlat(e,t,s){let i=t.concat(s);this.walk(e,i)}walkOption(e,t,s){let i=t.concat(s);this.walk(e,i)}walkAtLeastOne(e,t,s){let i=[new O({definition:e.definition})].concat(t,s);this.walk(e,i)}walkAtLeastOneSep(e,t,s){let i=x(e,t,s);this.walk(e,i)}walkMany(e,t,s){let i=[new O({definition:e.definition})].concat(t,s);this.walk(e,i)}walkManySep(e,t,s){let i=x(e,t,s);this.walk(e,i)}walkOr(e,t,s){let i=t.concat(s);e.definition.forEach(e=>{let t=new L({definition:[e]});this.walk(t,i)})}}function x(e,t,s){return[new O({definition:[new C({terminalType:e.separator})].concat(e.definition)})].concat(t,s)}function U(e,t=[]){return e instanceof O||e instanceof N||e instanceof I||(e instanceof b?e.definition.some(e=>U(e,t)):!(e instanceof A&&t.includes(e))&&e instanceof y&&(e instanceof A&&t.push(e),e.definition.every(e=>U(e,t))))}function M(e){if(e instanceof A)return"SUBRULE";if(e instanceof O)return"OPTION";if(e instanceof b)return"OR";if(e instanceof R)return"AT_LEAST_ONE";if(e instanceof k)return"AT_LEAST_ONE_SEP";else if(e instanceof I)return"MANY_SEP";else if(e instanceof N)return"MANY";else if(e instanceof C)return"CONSUME";else throw Error("non exhaustive match")}function w(e){if(e instanceof A)return w(e.referencedRule);if(e instanceof C)return[e.terminalType];if(e instanceof L||e instanceof O||e instanceof N||e instanceof R||e instanceof k||e instanceof I||e instanceof C||e instanceof S)return function(e){let t,s=[],i=e.definition,n=0,a=i.length>n,r=!0;for(;a&&r;)r=U(t=i[n]),s=s.concat(w(t)),n+=1,a=i.length>n;return[...new Set(s)]}(e);if(e instanceof b)return[...new Set(e.definition.map(e=>w(e)).flat())];throw Error("non exhaustive match")}let P="_~IN~_";class D extends _{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,s){}walkProdRef(e,t,s){var i,n;let a=(i=e.referencedRule,n=e.idx,i.name+n+P+this.topProd.name),r=w(new L({definition:t.concat(s)}));this.follows[a]=r}}function $(e){return e.charCodeAt(0)}function F(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function B(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function j(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function G(){throw Error("Internal Error - Should never get here!")}function K(e){return"Character"===e.type}let W=[];for(let e=$("0");e<=$("9");e++)W.push(e);let z=[$("_")].concat(W);for(let e=$("a");e<=$("z");e++)z.push(e);for(let e=$("A");e<=$("Z");e++)z.push(e);let H=[$(" "),$("\f"),$("\n"),$("\r"),$(" "),$("\v"),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$(" "),$("\u2028"),$("\u2029"),$(" "),$(" "),$(" "),$("\uFEFF")],V=/[0-9a-fA-F]/,Y=/[0-9]/,X=/[1-9]/;class J{visitChildren(e){for(let t in e){let s=e[t];e.hasOwnProperty(t)&&(void 0!==s.type?this.visit(s):Array.isArray(s)&&s.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}function q(e){console&&console.error&&console.error(`Error: ${e}`)}function Z(e){console&&console.warn&&console.warn(`Warning: ${e}`)}let Q={},ee=new class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let s={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":B(s,"global");break;case"i":B(s,"ignoreCase");break;case"m":B(s,"multiLine");break;case"u":B(s,"unicode");break;case"y":B(s,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:s,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}}j(t);let s=this.disjunction();return this.consumeChar(")"),{type:t,value:s,loc:this.loc(e)}}return G()}quantifier(e=!1){let t,s=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":t=this.isDigit()?{atLeast:i,atMost:this.integerIncludingZero()}:{atLeast:i,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;j(t)}if((!0!==e||void 0!==t)&&j(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(s),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),j(e))?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):G()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[$("\n"),$("\r"),$("\u2028"),$("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=W;break;case"D":e=W,t=!0;break;case"s":e=H;break;case"S":e=H,t=!0;break;case"w":e=z;break;case"W":e=z,t=!0}return j(e)?{type:"Set",value:e,complement:t}:G()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=$("\f");break;case"n":e=$("\n");break;case"r":e=$("\r");break;case"t":e=$(" ");break;case"v":e=$("\v")}return j(e)?{type:"Character",value:e}:G()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:$("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:$(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:$(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,K(t)&&this.isRangeDash()){this.consumeChar("-");let s=this.classAtom();if(s.type,K(s)){if(s.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:s.value})}else F(t.value,e),e.push($("-")),F(s.value,e)}else F(t.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:$("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;let t=this.disjunction();this.consumeChar(")");let s={type:"Group",capturing:e,value:t};return e&&(s.idx=this.groupIdx),s}positiveInteger(){let e=this.popChar();if(!1===X.test(e))throw Error("Expecting a positive integer");for(;Y.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===Y.test(e))throw Error("Expecting an integer");for(;Y.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:$(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return Y.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2)||"<"===this.peekChar(2)&&("="===this.peekChar(3)||"!"===this.peekChar(3)));default:return!1}}isQuantifier(){let e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let s=0;s<e;s++){let e=this.popChar();if(!1===V.test(e))throw Error("Expecting a HexDecimal digits");t+=e}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}};function et(e){let t=e.toString();if(Q.hasOwnProperty(t))return Q[t];{let e=ee.pattern(t);return Q[t]=e,e}}let es="Complement Sets are not supported for first char optimization",ei='Unable to use "first char" lexer optimizations:\n';function en(e,t,s){let i=eS(e);t[i]=i,!0===s&&function(e,t){let s=String.fromCharCode(e),i=s.toUpperCase();if(i!==s){let e=eS(i.charCodeAt(0));t[e]=e}else{let e=s.toLowerCase();if(e!==s){let s=eS(e.charCodeAt(0));t[s]=s}}}(e,t)}function ea(e,t){return e.value.find(e=>"number"==typeof e?t.includes(e):void 0!==t.find(t=>e.from<=t&&t<=e.to))}class er extends J{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===ea(e,this.targetCharCodes)&&(this.found=!0):void 0!==ea(e,this.targetCharCodes)&&(this.found=!0)}}function eo(e,t){if(t instanceof RegExp){let s=et(t),i=new er(e);return i.visit(s),i.found}for(let s of t){let t=s.charCodeAt(0);if(e.includes(t))return!0}return!1}let el="PATTERN",eh="defaultMode",ec="modes",ed=/[^\\][$]/,eu=/[^\\[][\^]|^\^/;function ep(e){let t=e.ignoreCase?"iy":"y";return RegExp(`${e.source}`,t)}function ef(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if("function"==typeof t)return!0;if(Object.hasOwn(t,"exec"))return!0;if("string"==typeof t)return!1;throw Error("non exhaustive match")}function em(e){return"string"==typeof e&&1===e.length&&e.charCodeAt(0)}let eT={test:function(e){let t=e.length;for(let s=this.lastIndex;s<t;s++){let t=e.charCodeAt(s);if(10===t)return this.lastIndex=s+1,!0;if(13===t)return 10===e.charCodeAt(s+1)?this.lastIndex=s+2:this.lastIndex=s+1,!0}return!1},lastIndex:0};function eE(e,t){if(Object.hasOwn(e,"LINE_BREAKS"))return!1;if(e.PATTERN instanceof RegExp){try{eo(t,e.PATTERN)}catch(e){return{issue:a.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if("string"==typeof e.PATTERN)return!1;if(ef(e))return{issue:a.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function eg(e){return e.map(e=>"string"==typeof e?e.charCodeAt(0):e)}function ey(e,t,s){void 0===e[t]?e[t]=[s]:e[t].push(s)}let eA=[];function eS(e){return e<256?e:eA[e]}function eL(e){let t=new Date().getTime(),s=e();return{time:new Date().getTime()-t,value:s}}function eO(e,t){let s=e.tokenTypeIdx;return s===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[s]}function eR(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let ek=1,eN={};function eI(e){let t=function(e){let t=[...e],s=e,i=!0;for(;i;){let e=(s=s.map(e=>e.CATEGORIES).flat().filter(Boolean)).filter(e=>!t.includes(e));t=t.concat(e),0===e.length?i=!1:s=e}return t}(e);t.forEach(e=>{var t,s;eb(e)||(eN[ek]=e,e.tokenTypeIdx=ek++),eC(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),eC(e)||(e.CATEGORIES=[]),Object.hasOwn(null!=(t=e)?t:{},"categoryMatches")||(e.categoryMatches=[]),Object.hasOwn(null!=(s=e)?s:{},"categoryMatchesMap")||(e.categoryMatchesMap={})}),t.forEach(e=>{!function e(t,s){t.forEach(e=>{s.categoryMatchesMap[e.tokenTypeIdx]=!0}),s.CATEGORIES.forEach(i=>{let n=t.concat(s);n.includes(i)||e(n,i)})}([],e)}),t.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(eN[t].tokenTypeIdx)})}),t.forEach(e=>{e.isParent=e.categoryMatches.length>0})}function eb(e){return Object.hasOwn(null!=e?e:{},"tokenTypeIdx")}function eC(e){return Object.hasOwn(null!=e?e:{},"CATEGORIES")}function ev(e){return Object.hasOwn(null!=e?e:{},"tokenTypeIdx")}(t=a||(a={}))[t.MISSING_PATTERN=0]="MISSING_PATTERN",t[t.INVALID_PATTERN=1]="INVALID_PATTERN",t[t.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",t[t.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",t[t.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",t[t.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",t[t.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",t[t.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",t[t.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",t[t.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",t[t.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",t[t.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",t[t.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",t[t.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",t[t.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",t[t.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",t[t.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",t[t.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";let e_={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:{buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,s,i,n,a)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${s} characters.`},traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(e_);class ex{constructor(e,t=e_){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let s=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${e}>`);let{time:i,value:n}=eL(t),a=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${s}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,n}},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=Object.assign({},e_,t);let s=this.config.traceInitPerf;!0===s?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof s&&(this.traceInitMaxIdent=s,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let s,i=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===e_.lineTerminatorsPattern)this.config.lineTerminatorsPattern=eT;else if(this.config.lineTerminatorCharacters===e_.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e)?s={modes:{defaultMode:[...e]},defaultMode:eh}:(i=!1,s=Object.assign({},e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{var e;let t;this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat((e=s,this.trackStartLines,this.config.lineTerminatorCharacters,t=[],Object.hasOwn(e,eh)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+eh+"> property in its definition\n",type:a.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,ec)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+ec+"> property in its definition\n",type:a.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,ec)&&Object.hasOwn(e,eh)&&!Object.hasOwn(e.modes,e.defaultMode)&&t.push({message:`A MultiMode Lexer cannot be initialized with a ${eh}: <${e.defaultMode}>which does not exist
2
+ `,type:a.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,ec)&&Object.keys(e.modes).forEach(s=>{let i=e.modes[s];i.forEach((e,n)=>{void 0===e?t.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${s}> at index: <${n}>
3
+ `,type:a.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,"LONGER_ALT")&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(n=>{void 0===n||i.includes(n)||t.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${n.name}> on token <${e.name}> outside of mode <${s}>
4
+ `,type:a.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),t))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{var e,t,i;let n,r,o,l;this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat((e=s,t=this.trackStartLines,i=this.config.lineTerminatorCharacters,n=[],r=!1,o=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[el]!==ex.NA),l=eg(i),t&&o.forEach(e=>{let t=eE(e,l);if(!1!==t){let s={message:function(e,t){if(t.issue===a.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
5
+ The problem is in the <${e.name}> Token Type
6
+ Root cause: ${t.errMsg}.
7
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===a.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
8
+ The problem is in the <${e.name}> Token Type
9
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}(e,t),type:t.issue,tokenType:e};n.push(s)}else Object.hasOwn(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(r=!0):eo(l,e.PATTERN)&&(r=!0)}),t&&!r&&n.push({message:"Warning: No LINE_BREAKS Found.\n This Lexer has been defined to track line and column information,\n But none of the Token Types can be identified as matching a line terminator.\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n for details.",type:a.NO_LINE_BREAKS_FLAGS}),n))})),s.modes=s.modes?s.modes:{},Object.entries(s.modes).forEach(([e,t])=>{s.modes[e]=t.filter(e=>void 0!==e)});let n=Object.keys(s.modes);if(Object.entries(s.modes).forEach(([e,s])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{var e,t,i,r,o,l;let h,c,d,u,p,f,m,T,E,g,y,A;this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat((h=[],c={errors:(p=(e=s).filter(e=>!Object.hasOwn(e,el))).map(e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:a.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!p.includes(e))},h=h.concat(c.errors),u=(d={errors:(f=(t=c.valid).filter(e=>{let t=e[el];return!(t instanceof RegExp)&&"function"!=typeof t&&!Object.hasOwn(t,"exec")&&"string"!=typeof t})).map(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:a.INVALID_PATTERN,tokenTypes:[e]})),valid:t.filter(e=>!f.includes(e))}).valid,h=(h=(h=(h=(h=h.concat(d.errors)).concat((m=[],T=u.filter(e=>e[el]instanceof RegExp),(m=(m=(m=(m=m.concat(function(e){class t extends J{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let s=e.PATTERN;try{let e=et(s),i=new t;return i.visit(e),i.found}catch(e){return ed.test(s.source)}}).map(e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:a.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}(T))).concat(function(e){class t extends J{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let s=e.PATTERN;try{let e=et(s),i=new t;return i.visit(e),i.found}catch(e){return eu.test(s.source)}}).map(e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:a.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}(T))).concat(T.filter(e=>{let t=e[el];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:a.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]})))).concat((E=[],(g=(g=(i=T).map(e=>i.reduce((t,s)=>(e.PATTERN.source!==s.PATTERN.source||E.includes(s)||s.PATTERN===ex.NA||(E.push(s),t.push(s)),t),[]))).filter(Boolean)).filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name),s=e[0].PATTERN;return{message:`The same RegExp pattern ->${s}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:a.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})))).concat(T.filter(e=>e.PATTERN.test("")).map(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:a.EMPTY_MATCH_PATTERN,tokenTypes:[e]})))))).concat(u.filter(e=>{if(!Object.hasOwn(e,"GROUP"))return!1;let t=e.GROUP;return t!==ex.SKIPPED&&t!==ex.NA&&"string"!=typeof t}).map(e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:a.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]})))).concat((r=u,o=n,r.filter(e=>void 0!==e.PUSH_MODE&&!o.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:a.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))))).concat((y=[],A=(l=u).reduce((e,t,s)=>{var i;let n=t.PATTERN;return n===ex.NA||("string"==typeof n?e.push({str:n,idx:s,tokenType:t}):n instanceof RegExp&&(i=n,void 0===[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find(e=>-1!==i.source.indexOf(e)))&&e.push({str:n.source,idx:s,tokenType:t})),e},[]),l.forEach((e,t)=>{A.forEach(({str:s,idx:i,tokenType:n})=>{if(t<i&&function(e,t){if(t instanceof RegExp){var s;if(s=t,/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(s.source))return!1;let i=t.exec(e);return null!==i&&0===i.index}if("function"==typeof t)return t(e,0,[],{});if(Object.hasOwn(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(s,e.PATTERN)){let t=`Token: ->${n.name}<- can never be matched.
10
+ Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.
11
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;y.push({message:t,type:a.UNREACHABLE_PATTERN,tokenTypes:[e,n]})}})}),y))))}),0===this.lexerDefinitionErrors.length){let i;eI(s),this.TRACE_INIT("analyzeTokenTypes",()=>{var e;let n,a,r,o,l,h,c,d,u,p,f,m,T,E,g,y;(T=(e=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:(e,t)=>t()},e={lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})).tracer)("initCharCodeToOptimizedIndexMap",()=>{if(0===eA.length){eA=Array(65536);for(let e=0;e<65536;e++)eA[e]=e>255?255+~~(e/255):e}}),T("Reject Lexer.NA",()=>{n=s.filter(e=>e[el]!==ex.NA)}),E=!1,T("Transform Patterns",()=>{E=!1,a=n.map(e=>{let t=e[el];if(t instanceof RegExp){let e=t.source;return 1!==e.length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(e[1])?ep(t):e[1]:e}if("function"==typeof t)return E=!0,{exec:t};if("object"==typeof t)return E=!0,t;if("string"==typeof t)if(1===t.length)return t;else return ep(new RegExp(t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")));throw Error("non exhaustive match")})}),T("misc mapping",()=>{r=n.map(e=>e.tokenTypeIdx),o=n.map(e=>{let t=e.GROUP;if(t!==ex.SKIPPED){if("string"==typeof t)return t;if(void 0===t)return!1;throw Error("non exhaustive match")}}),l=n.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>n.indexOf(e)):[n.indexOf(t)]}),h=n.map(e=>e.PUSH_MODE),c=n.map(e=>Object.hasOwn(e,"POP_MODE"))}),T("Line Terminator Handling",()=>{let t=eg(e.lineTerminatorCharacters);d=n.map(e=>!1),"onlyOffset"!==e.positionTracking&&(d=n.map(e=>Object.hasOwn(e,"LINE_BREAKS")?!!e.LINE_BREAKS:!1===eE(e,t)&&eo(t,e.PATTERN)))}),T("Misc Mapping #2",()=>{u=n.map(ef),p=a.map(em),f=n.reduce((e,t)=>{let s=t.GROUP;return"string"==typeof s&&s!==ex.SKIPPED&&(e[s]=[]),e},{}),m=a.map((e,t)=>{let s=void 0===o[t]&&void 0===l[t]?function(e){var t,s;let i,n;if(!(e instanceof RegExp)||""!==e.flags)return;try{i=et(e)}catch(e){return}if(1!==i.value.value.length||1!==i.value.value[0].value.length)return;let a=i.value.value[0].value[0];for(;"Group"===a.type;){if(a.capturing||void 0!==a.quantifier&&void 0!==n||1!==a.value.value.length||1!==a.value.value[0].value.length)return;n=null!=(t=a.quantifier)?t:n,a=a.value.value[0].value[0]}if("Set"!==a.type||a.complement||void 0!==a.quantifier&&void 0!==n||(null==(n=null!=(s=a.quantifier)?s:n)?void 0:n.atLeast)!==1||1/0!==n.atMost||!n.greedy)return;let r=new Uint8Array(128);for(let e of a.value){let t="number"==typeof e?e:e.from,s="number"==typeof e?e:e.to;if(t<0||s>=r.length)return;r.fill(1,t,s+1)}return r}(n[t].PATTERN):void 0;return{pattern:a[t],asciiClass:s,longerAlt:l[t],canLineTerminator:d[t],matchType:void 0!==s?3:!1!==p[t]?0:u[t]?1:2,short:p[t],group:o[t],push:h[t],pop:c[t],tokenTypeIdx:r[t],tokenType:n[t]}})}),g=!0,y=[],e.safeMode||T("First Char Optimization",()=>{y=n.reduce((t,s,i)=>{if("string"==typeof s.PATTERN)ey(t,eS(s.PATTERN.charCodeAt(0)),m[i]);else if(Array.isArray(s.START_CHARS_HINT)){let e;s.START_CHARS_HINT.forEach(s=>{let n=eS("string"==typeof s?s.charCodeAt(0):s);e!==n&&(e=n,ey(t,n,m[i]))})}else if(s.PATTERN instanceof RegExp)if(s.PATTERN.unicode)g=!1,e.ensureOptimizations&&q(`${ei} Unable to analyze < ${s.PATTERN.toString()} > pattern.
12
+ The regexp unicode flag is not currently supported by the regexp-to-ast library.
13
+ This will disable the lexer's first char optimizations.
14
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let n=function(e,t=!1){try{let t=et(e);return function e(t,s,i){switch(t.type){case"Disjunction":for(let n=0;n<t.value.length;n++)e(t.value[n],s,i);break;case"Alternative":let n=t.value;for(let t=0;t<n.length;t++){let a=n[t];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}switch(a.type){case"Character":en(a.value,s,i);break;case"Set":if(!0===a.complement)throw Error(es);a.value.forEach(e=>{if("number"==typeof e)en(e,s,i);else if(!0===i)for(let t=e.from;t<=e.to;t++)en(t,s,i);else{for(let t=e.from;t<=e.to&&t<256;t++)en(t,s,i);if(e.to>=256){let t=e.from>=256?e.from:256,i=e.to,n=eS(t),a=eS(i);for(let e=n;e<=a;e++)s[e]=e}}});break;case"Group":e(a.value,s,i);break;default:throw Error("Non Exhaustive Match")}let r=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===function e(t){let s=t.quantifier;return!!s&&0===s.atLeast||!!t.value&&(Array.isArray(t.value)?t.value.every(e):e(t.value))}(a)||"Group"!==a.type&&!1===r)break}break;default:throw Error("non exhaustive match!")}return Object.values(s)}(t.value,{},t.flags.ignoreCase)}catch(s){if(s.message===es)t&&Z(`${ei} Unable to optimize: < ${e.toString()} >
15
+ Complement Sets cannot be automatically optimized.
16
+ This will disable the lexer's first char optimizations.
17
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let s="";t&&(s="\n This will disable the lexer's first char optimizations.\n See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),q(`${ei}
18
+ Failed parsing: < ${e.toString()} >
19
+ Using the @chevrotain/regexp-to-ast library
20
+ Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+s)}}return[]}(s.PATTERN,e.ensureOptimizations);0===n.length&&(g=!1),n.forEach(e=>{ey(t,e,m[i])})}else e.ensureOptimizations&&q(`${ei} TokenType: <${s.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
21
+ This will disable the lexer's first char optimizations.
22
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),g=!1;return t},[])}),i={emptyGroups:f,patternIdxToConfig:m,charCodeToPatternIdxToConfig:y,hasCustom:E,canBeOptimized:g}}),this.patternIdxToConfig[e]=i.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=i.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,i.emptyGroups),this.hasCustom=i.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=i.canBeOptimized}})}),this.defaultMode=s.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling)throw Error("Errors detected in definition of Lexer:\n"+this.lexerDefinitionErrors.map(e=>e.message).join("-----------------------\n"));this.lexerDefinitionWarning.forEach(e=>{Z(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(i&&(this.handleModes=()=>{}),!1===this.trackStartLines&&(this.computeNewColumn=e=>e),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=()=>{}),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,s])=>(!1===s&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
23
+ Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
24
+ Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Q={}}),this.TRACE_INIT("toFastProperties",()=>{g(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0)throw Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+this.lexerDefinitionErrors.map(e=>e.message).join("-----------------------\n"));return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let s,i,n,a,r,o,l,h,c,d,u,p,f,m,T,E,g=e.length,y=0,A=0,S=Array(this.hasCustom?0:Math.floor(e.length/10)),L=[],O=this.trackStartLines?1:void 0,R=this.trackStartLines?1:void 0,k={};for(let e=0;e<this.cachedGroupKeys.length;e++)k[this.cachedGroupKeys[e]]=[];let N=this.trackStartLines,I=this.config.lineTerminatorsPattern,b=0,C=[],v=[],_=[],x=[];Object.freeze(x);let U=!1,M=e=>{if(1===_.length&&void 0===e.tokenType.PUSH_MODE){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);L.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{_.pop();let e=_.at(-1);C=this.patternIdxToConfig[e],v=this.charCodeToPatternIdxToConfig[e],b=C.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;U=!!v&&!!t}};function w(e){_.push(e),v=this.charCodeToPatternIdxToConfig[e],b=(C=this.patternIdxToConfig[e]).length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;U=!!v&&!!t}w.call(this,t);let P=this.config.recoveryEnabled;for(;y<g;){let t;o=null,c=-1;let D=e.charCodeAt(y);if(U){let e=v[eS(D)];t=void 0!==e?e:x}else t=C;let $=t.length;for(s=0;s<$;s++){let i=(E=t[s]).pattern;switch(l=null,E.matchType){case 0:D===E.short&&(c=1,o=i);break;case 1:null!==(T=i.exec(e,y,S,k))?(c=(o=T[0]).length,void 0!==T.payload&&(l=T.payload)):o=null;break;case 3:{let t=E.asciiClass;if(1!==t[D]){i.lastIndex=0;break}let s=y+1;for(;1===t[e.charCodeAt(s)];)s++;c=s-y,i.lastIndex=s;break}case 2:i.lastIndex=y,c=this.matchLength(i,e,y)}if(-1!==c){if(void 0!==(r=E.longerAlt)){o=e.substring(y,y+c);let t=r.length;for(n=0;n<t;n++){let t=C[r[n]],s=t.pattern;if(h=null,1===t.matchType?null!==(T=s.exec(e,y,S,k))?(a=T[0],void 0!==T.payload&&(h=T.payload)):a=null:(s.lastIndex=y,a=this.match(s,e,y)),a&&a.length>o.length){o=a,c=a.length,l=h,E=t;break}}}break}}if(-1!==c){if(void 0!==(d=E.group)&&(o=null!==o?o:e.substring(y,y+c),u=E.tokenTypeIdx,p=this.createTokenInstance(o,y,u,E.tokenType,O,R,c),this.handlePayload(p,l),!1===d?A=this.addToken(S,A,p):k[d].push(p)),!0===N&&!0===E.canLineTerminator){let t,s,i=0;I.lastIndex=0;do o=null!==o?o:e.substring(y,y+c),!0===(t=I.test(o))&&(s=I.lastIndex-1,i++);while(!0===t)0!==i?(O+=i,R=c-s,this.updateTokenEndLineColumnLocation(p,d,s,i,O,R,c)):R=this.computeNewColumn(R,c)}else R=this.computeNewColumn(R,c);y+=c,this.handleModes(E,M,w,p)}else{let t=y,s=O,n=R,a=!1===P;for(;!1===a&&y<g;)for(y++,i=0;i<b;i++){let t=C[i],s=t.pattern;switch(t.matchType){case 0:e.charCodeAt(y)===t.short&&(a=!0);break;case 1:a=null!==s.exec(e,y,S,k);break;case 3:case 2:s.lastIndex=y,a=null!==s.exec(e)}if(!0===a)break}if(f=y-t,R=this.computeNewColumn(R,f),m=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(e,t,f,s,n,_.at(-1)),L.push({offset:t,line:s,column:n,length:f,message:m}),!1===P)break}}return this.hasCustom||(S.length=A),{tokens:S,groups:k,errors:L}}handleModes(e,t,s,i){if(!0===e.pop){let n=e.push;t(i),void 0!==n&&s.call(this,n)}else void 0!==e.push&&s.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,s,i,n,a,r){let o,l;void 0!==t&&(l=(o=s===r-1)?-1:0,(1!==i||!0!==o)&&(e.endLine=n+l,e.endColumn=a-1+-l))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,s,i){return{image:e,startOffset:t,tokenTypeIdx:s,tokenType:i}}createStartOnlyToken(e,t,s,i,n,a){return{image:e,startOffset:t,startLine:n,startColumn:a,tokenTypeIdx:s,tokenType:i}}createFullToken(e,t,s,i,n,a,r){return{image:e,startOffset:t,endOffset:t+r-1,startLine:n,endLine:n,startColumn:a,endColumn:a+r-1,tokenTypeIdx:s,tokenType:i}}addTokenUsingPush(e,t,s){return e.push(s),t}addTokenUsingMemberAccess(e,t,s){return e[t]=s,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}match(e,t,s){return!0===e.test(t)?t.substring(s,e.lastIndex):null}matchLength(e,t,s){return!0===e.test(t)?e.lastIndex-s:-1}}function eU(e){return eM(e)?e.LABEL:e.name}function eM(e){return"string"==typeof e.LABEL&&""!==e.LABEL}ex.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",ex.NA=/NOT_APPLICABLE/;let ew="categories",eP="label",eD="group",e$="push_mode",eF="pop_mode",eB="longer_alt",ej="line_breaks",eG="start_chars_hint";function eK(e){let t=e.pattern,s={};if(s.name=e.name,void 0!==t&&(s.PATTERN=t),Object.hasOwn(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return Object.hasOwn(e,ew)&&(s.CATEGORIES=e[ew]),eI([s]),Object.hasOwn(e,eP)&&(s.LABEL=e[eP]),Object.hasOwn(e,eD)&&(s.GROUP=e[eD]),Object.hasOwn(e,eF)&&(s.POP_MODE=e[eF]),Object.hasOwn(e,e$)&&(s.PUSH_MODE=e[e$]),Object.hasOwn(e,eB)&&(s.LONGER_ALT=e[eB]),Object.hasOwn(e,ej)&&(s.LINE_BREAKS=e[ej]),Object.hasOwn(e,eG)&&(s.START_CHARS_HINT=e[eG]),s}let eW=eK({name:"EOF",pattern:ex.NA});function ez(e,t,s,i,n,a,r,o){return{image:t,startOffset:s,endOffset:i,startLine:n,endLine:a,startColumn:r,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}eI([eW]);let eH={buildMismatchTokenMessage({expected:e,actual:t,previous:s,ruleName:i}){let n=eM(e)?`--> ${eU(e)} <--`:`token of type --> ${e.name} <--`;return`Expecting ${n} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:s,customUserDescription:i,ruleName:n}){let a="Expecting: ",r="\nbut found: '"+t[0].image+"'";if(i)return a+i+r;{let t=e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>eU(e)).join(", ")}]`).map((e,t)=>` ${t+1}. ${e}`);return a+`one of these possible Token sequences:
25
+ ${t.join("\n")}`+r}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:s,ruleName:i}){let n="Expecting: ",a="\nbut found: '"+t[0].image+"'";if(s)return n+s+a;{let t=e.map(e=>`[${e.map(e=>eU(e)).join(",")}]`);return n+`expecting at least one iteration which starts with one of these possible Token sequences::
26
+ <${t.join(" ,")}>`+a}}};Object.freeze(eH);let eV={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},eY={buildDuplicateFoundError(e,t){let s=e.name,i=t[0],n=i.idx,a=M(i),r=i instanceof C?i.terminalType.name:i instanceof A?i.nonTerminalName:"",o=`->${a}${n>0?n:""}<- ${r?`with argument: ->${r}<-`:""}
27
+ appears more than once (${t.length} times) in the top level rule: ->${s}<-.
28
+ For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
29
+ `;return(o=o.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.
30
+ The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
31
+ To resolve this make sure each Terminal and Non-Terminal names are unique
32
+ This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
33
+ and Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>eU(e)).join(", "),s=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
34
+ in <OR${s}> inside <${e.topLevelRule.name}> Rule,
35
+ <${t}> may appears as a prefix path in all these alternatives.
36
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
37
+ For Further details.`},buildAlternationAmbiguityError(e){let t=0===e.alternation.idx?"":e.alternation.idx,s=0===e.prefixPath.length,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,
38
+ `;if(s)i+=`These alternatives are all empty (match no tokens), making them indistinguishable.
39
+ Only the last alternative may be empty.
40
+ `;else{let t=e.prefixPath.map(e=>eU(e)).join(", ");i+=`<${t}> may appears as a prefix path in all these alternatives.
41
+ `}return i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
42
+ For Further details.`},buildEmptyRepetitionError(e){let t=M(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
43
+ This could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
44
+ Only the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:
45
+ <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
46
+ has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){let t=e.topLevelRule.name,s=e.leftRecursionPath.map(e=>e.name),i=`${t} --> ${s.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
47
+ rule: <${t}> can be invoked from itself (directly or indirectly)
48
+ without consuming any Tokens. The grammar path that causes this is:
49
+ ${i}
50
+ To fix this refactor your grammar to remove the left recursion.
51
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof S?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};class eX{visit(e){switch(e.constructor){case A:return this.visitNonTerminal(e);case L:return this.visitAlternative(e);case O:return this.visitOption(e);case R:return this.visitRepetitionMandatory(e);case k:return this.visitRepetitionMandatoryWithSeparator(e);case I:return this.visitRepetitionWithSeparator(e);case N:return this.visitRepetition(e);case b:return this.visitAlternation(e);case C:return this.visitTerminal(e);case S:return this.visitRule(e);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}class eJ extends eX{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:l.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}class eq extends _{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,s){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let i=t.concat(s);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){0===this.ruleStack.length?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class eZ extends eq{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,s){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new L({definition:t.concat(s)});this.possibleTokTypes=w(e),this.found=!0}}}class eQ extends _{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class e0 extends eQ{walkMany(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof C&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,s)}}class e1 extends eQ{walkManySep(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof C&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,s)}}class e2 extends eQ{walkAtLeastOne(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof C&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,s)}}class e5 extends eQ{walkAtLeastOneSep(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof C&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,s)}}function e6(e,t,s=[]){s=[...s];let i=[],n=0;function a(a){let r=e6(a.concat(e.slice(n+1)),t,s);return i.concat(r)}for(;s.length<t&&n<e.length;){let t=e[n];if(t instanceof L)return a(t.definition);if(t instanceof A)return a(t.definition);if(t instanceof O)i=a(t.definition);else if(t instanceof R)return a(t.definition.concat([new N({definition:t.definition})]));else if(t instanceof k)return a([new L({definition:t.definition}),new N({definition:[new C({terminalType:t.separator})].concat(t.definition)})]);else if(t instanceof I)i=a(t.definition.concat([new N({definition:[new C({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof N)i=a(t.definition.concat([new N({definition:t.definition})]));else if(t instanceof b)return t.definition.forEach(e=>{0!==e.definition.length&&(i=a(e.definition))}),i;else if(t instanceof C)s.push(t.terminalType);else throw Error("non exhaustive match");n++}return i.push({partialPath:s,suffixDef:e.slice(n)}),i}function e3(e){if(e instanceof O||"Option"===e)return r.OPTION;if(e instanceof N||"Repetition"===e)return r.REPETITION;if(e instanceof R||"RepetitionMandatory"===e)return r.REPETITION_MANDATORY;if(e instanceof k||"RepetitionMandatoryWithSeparator"===e)return r.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof I||"RepetitionWithSeparator"===e)return r.REPETITION_WITH_SEPARATOR;else if(e instanceof b||"Alternation"===e)return r.ALTERNATION;else throw Error("non exhaustive match")}function e4(e,t,s,i){let n=e.length,a=e.every(e=>e.every(e=>1===e.length));if(t)return function(t){let i=t.map(e=>e.GATE);for(let t=0;t<n;t++){let n=e[t],a=n.length,r=i[t];if(void 0===r||!1!==r.call(this))e:for(let e=0;e<a;e++){let i=n[e],a=i.length;for(let e=0;e<a;e++)if(!1===s(this.LA_FAST(e+1),i[e]))continue e;return t}}};if(!a||i)return function(){for(let t=0;t<n;t++){let i=e[t],n=i.length;e:for(let e=0;e<n;e++){let n=i[e],a=n.length;for(let e=0;e<a;e++)if(!1===s(this.LA_FAST(e+1),n[e]))continue e;return t}}};{let t=e.map(e=>e.flat()).reduce((e,t,s)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=s),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=s)})}),e),{});return function(){return t[this.LA_FAST(1).tokenTypeIdx]}}}function e9(e,t,s){let i=e.every(e=>1===e.length),n=e.length;if(!i||s)return function(){e:for(let s=0;s<n;s++){let i=e[s],n=i.length;for(let e=0;e<n;e++)if(!1===t(this.LA_FAST(e+1),i[e]))continue e;return!0}return!1};{let t=e.flat();if(1===t.length&&0===t[0].categoryMatches.length){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,s)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){return!0===e[this.LA_FAST(1).tokenTypeIdx]}}}}(s=r||(r={}))[s.OPTION=0]="OPTION",s[s.REPETITION=1]="REPETITION",s[s.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",s[s.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",s[s.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",s[s.ALTERNATION=5]="ALTERNATION";class e8 extends _{constructor(e,t,s){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=s}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,s,i){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=s.concat(i),!0)}walkOption(e,t,s){this.checkIsTarget(e,r.OPTION,t,s)||super.walkOption(e,t,s)}walkAtLeastOne(e,t,s){this.checkIsTarget(e,r.REPETITION_MANDATORY,t,s)||super.walkOption(e,t,s)}walkAtLeastOneSep(e,t,s){this.checkIsTarget(e,r.REPETITION_MANDATORY_WITH_SEPARATOR,t,s)||super.walkOption(e,t,s)}walkMany(e,t,s){this.checkIsTarget(e,r.REPETITION,t,s)||super.walkOption(e,t,s)}walkManySep(e,t,s){this.checkIsTarget(e,r.REPETITION_WITH_SEPARATOR,t,s)||super.walkOption(e,t,s)}}class e7 extends eX{constructor(e,t,s){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=s,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(void 0===this.targetRef||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,r.OPTION)}visitRepetition(e){this.checkIsTarget(e,r.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,r.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,r.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,r.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,r.ALTERNATION)}}function te(e){let t=Array(e);for(let s=0;s<e;s++)t[s]=[];return t}function tt(e){let t=[""];for(let s=0;s<e.length;s++){let i=e[s],n=[];for(let e=0;e<t.length;e++){let s=t[e];n.push(s+"_"+i.tokenTypeIdx);for(let e=0;e<i.categoryMatches.length;e++){let t="_"+i.categoryMatches[e];n.push(s+t)}}t=n}return t}function ts(e,t){let s=e.map(e=>e6([e],1)),i=te(s.length),n=s.map(e=>{let t={};return e.forEach(e=>{tt(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=s;for(let e=1;e<=t;e++){let s=a;a=te(s.length);for(let r=0;r<s.length;r++){let o=s[r];for(let s=0;s<o.length;s++){let l=o[s].partialPath,h=o[s].suffixDef,c=tt(l);if(function(e,t,s){for(let i=0;i<e.length;i++){if(i===s)continue;let n=e[i];for(let e=0;e<t.length;e++)if(!0===n[t[e]])return!1}return!0}(n,c,r)||0===h.length||l.length===t){let e=i[r];if(!1===ta(e,l)){e.push(l);for(let e=0;e<c.length;e++){let t=c[e];n[r][t]=!0}}}else{let t=e6(h,e+1,l);a[r]=a[r].concat(t),t.forEach(e=>{tt(e.partialPath).forEach(e=>{n[r][e]=!0})})}}}}return i}function ti(e,t,s,i){let n=new e7(e,r.ALTERNATION,i);return t.accept(n),ts(n.result,s)}function tn(e,t,s,i){let n=new e7(e,s);t.accept(n);let a=n.result,r=new e8(t,e,s).startWalking();return ts([new L({definition:a}),new L({definition:r})],i)}function ta(e,t){t:for(let s=0;s<e.length;s++){let i=e[s];if(i.length===t.length){for(let e=0;e<i.length;e++){let s=t[e],n=i[e];if(!1==(s===n||void 0!==n.categoryMatchesMap[s.tokenTypeIdx]))continue t}return!0}}return!1}function tr(e){return e.every(e=>e.every(e=>e.every(e=>0===e.categoryMatches.length)))}function to(e){return`${M(e)}_#_${e.idx}_#_${tl(e)}`}function tl(e){return e instanceof C?e.terminalType.name:e instanceof A?e.nonTerminalName:""}class th extends eX{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}}class tc extends eX{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}class td extends eX{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}let tu="MismatchedTokenException",tp="NoViableAltException",tf="EarlyExitException",tm="NotAllInputParsedException",tT=[tu,tp,tf,tm];function tE(e){return tT.includes(e.name)}Object.freeze(tT);class tg extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class ty extends tg{constructor(e,t,s){super(e,t),this.previousToken=s,this.name=tu}}class tA extends tg{constructor(e,t,s){super(e,t),this.previousToken=s,this.name=tp}}class tS extends tg{constructor(e,t){super(e,t),this.name=tm}}class tL extends tg{constructor(e,t,s){super(e,t),this.previousToken=s,this.name=tf}}let tO={},tR="InRuleRecoveryException";class tk extends Error{constructor(e){super(e),this.name=tR}}function tN(e,t,s,i,n,a,r){var o,l,h;let c=i|n,d=null!=(o=(l=this.firstAfterRepMap)[h=this.currRuleShortName])?o:l[h]=[],u=d[c];if(void 0===u){let e=this.getCurrRuleFullName();u=new a(this.getGAstProductions()[e],n).startWalking(),d[c]=u}let p=u.token,f=u.occurrence,m=u.isEndOfRule;0===this.RULE_STACK_IDX&&m&&void 0===p&&(p=eW,f=1),void 0!==p&&void 0!==f&&this.shouldInRepetitionRecoveryBeTried(p,f,r)&&this.tryInRepetitionRecovery(e,t,s,p)}class tI{constructor(e){var t;this.maxLookahead=null!=(t=null==e?void 0:e.maxLookahead)?t:tG.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);return 0===t.length?[...t,...this.validateEmptyOrAlternatives(e.rules),...this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),...this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead)]:t}validateNoLeftRecursion(e){return e.flatMap(e=>(function e(t,s,i,n=[]){let a=[],r=function e(t){let s=[];if(0===t.length)return s;let i=t[0];if(i instanceof A)s.push(i.referencedRule);else if(i instanceof L||i instanceof O||i instanceof R||i instanceof k||i instanceof I||i instanceof N)s=s.concat(e(i.definition));else if(i instanceof b)s=i.definition.map(t=>e(t.definition)).flat();else if(i instanceof C);else throw Error("non exhaustive match");let n=U(i),a=t.length>1;if(!n||!a)return s;{let i=t.slice(1);return s.concat(e(i))}}(s.definition);if(0===r.length)return[];{let s=t.name;r.includes(t)&&a.push({message:i.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:l.LEFT_RECURSION,ruleName:s});let o=n.concat([t]),h=r.filter(e=>!o.includes(e)).flatMap(s=>{let a=[...n];return a.push(s),e(t,s,i,a)});return a.concat(h)}})(e,e,eY))}validateEmptyOrAlternatives(e){return e.flatMap(e=>{let t;return t=new tc,e.accept(t),t.alternations.flatMap(t=>t.definition.slice(0,-1).flatMap((s,i)=>0===function(e,t,s){let i="EXIT_NONE_TERMINAL",n=[i],a="EXIT_ALTERNATIVE",r=!1,o=t.length,l=o-1-1,h=[],c=[];for(c.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});0!==c.length;){let e=c.pop();if(e===a){r&&c.at(-1).idx<=l&&c.pop();continue}let d=e.def,u=e.idx,p=e.ruleStack,f=e.occurrenceStack;if(0===d.length)continue;let m=d[0];if(m===i){let e={idx:u,def:d.slice(1),ruleStack:p.slice(0,-1),occurrenceStack:f.slice(0,-1)};c.push(e)}else if(m instanceof C)if(u<o-1){let e=u+1;if(s(t[e],m.terminalType)){let t={idx:e,def:d.slice(1),ruleStack:p,occurrenceStack:f};c.push(t)}}else if(u===o-1)h.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:p,occurrenceStack:f}),r=!0;else throw Error("non exhaustive match");else if(m instanceof A){let e=[...p];e.push(m.nonTerminalName);let t=[...f];t.push(m.idx);let s={idx:u,def:m.definition.concat(n,d.slice(1)),ruleStack:e,occurrenceStack:t};c.push(s)}else if(m instanceof O){let e={idx:u,def:d.slice(1),ruleStack:p,occurrenceStack:f};c.push(e),c.push(a);let t={idx:u,def:m.definition.concat(d.slice(1)),ruleStack:p,occurrenceStack:f};c.push(t)}else if(m instanceof R){let e=new N({definition:m.definition,idx:m.idx}),t={idx:u,def:m.definition.concat([e],d.slice(1)),ruleStack:p,occurrenceStack:f};c.push(t)}else if(m instanceof k){let e=new N({definition:[new C({terminalType:m.separator})].concat(m.definition),idx:m.idx}),t={idx:u,def:m.definition.concat([e],d.slice(1)),ruleStack:p,occurrenceStack:f};c.push(t)}else if(m instanceof I){let e={idx:u,def:d.slice(1),ruleStack:p,occurrenceStack:f};c.push(e),c.push(a);let t=new N({definition:[new C({terminalType:m.separator})].concat(m.definition),idx:m.idx}),s={idx:u,def:m.definition.concat([t],d.slice(1)),ruleStack:p,occurrenceStack:f};c.push(s)}else if(m instanceof N){let e={idx:u,def:d.slice(1),ruleStack:p,occurrenceStack:f};c.push(e),c.push(a);let t=new N({definition:m.definition,idx:m.idx}),s={idx:u,def:m.definition.concat([t],d.slice(1)),ruleStack:p,occurrenceStack:f};c.push(s)}else if(m instanceof b)for(let e=m.definition.length-1;e>=0;e--){let t={idx:u,def:m.definition[e].definition.concat(d.slice(1)),ruleStack:p,occurrenceStack:f};c.push(t),c.push(a)}else if(m instanceof L)c.push({idx:u,def:m.definition.concat(d.slice(1)),ruleStack:p,occurrenceStack:f});else if(m instanceof S)c.push(function(e,t,s,i){let n=[...s];n.push(e.name);let a=[...i];return a.push(1),{idx:t,def:e.definition,ruleStack:n,occurrenceStack:a}}(m,u,p,f));else throw Error("non exhaustive match")}return h}([s],[],eO).length?[{message:eY.buildEmptyAlternationError({topLevelRule:e,alternation:t,emptyChoiceIdx:i}),type:l.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:t.idx,alternative:i+1}]:[]))})}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>{let s;return s=new tc,e.accept(s),s.alternations.filter(e=>!0!==e.ignoreAmbiguities).flatMap(s=>{var i,n,a,r,o,h,c,d;let u,p,f=ti(s.idx,e,s.maxLookahead||t,s),m=(i=f,n=s,a=e,r=eY,u=[],i.reduce((e,t,s)=>(!0===n.definition[s].ignoreAmbiguities||t.forEach(t=>{let a=[s];i.forEach((e,i)=>{s!==i&&ta(e,t)&&!0!==n.definition[i].ignoreAmbiguities&&a.push(i)}),a.length>1&&!ta(u,t)&&(u.push(t),e.push({alts:a,path:t}))}),e),[]).map(e=>{let t=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:a,alternation:n,ambiguityIndices:t,prefixPath:e.path}),type:l.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:n.idx,alternatives:e.alts}})),T=(o=f,h=s,c=e,d=eY,(p=o.reduce((e,t,s)=>{let i=t.map(e=>({idx:s,path:e}));return e.concat(i)},[])).flatMap(e=>{if(!0===h.definition[e.idx].ignoreAmbiguities)return[];let t=e.idx,s=e.path;return p.filter(e=>{var i;return!0!==h.definition[e.idx].ignoreAmbiguities&&e.idx<t&&(i=e.path,i.length<s.length&&i.every((e,t)=>{let i=s[t];return e===i||i.categoryMatchesMap[e.tokenTypeIdx]}))}).map(e=>{let s=[e.idx+1,t+1],i=0===h.idx?"":h.idx;return{message:d.buildAlternationPrefixAmbiguityError({topLevelRule:c,alternation:h,ambiguityIndices:s,prefixPath:e.path}),type:l.AMBIGUOUS_PREFIX_ALTS,ruleName:c.name,occurrence:i,alternatives:s}})}));return m.concat(T)})})}validateSomeNonEmptyLookaheadPath(e,t){let s;return s=[],e.forEach(e=>{let i=new td;e.accept(i),i.allProductions.forEach(i=>{let n=e3(i),a=i.maxLookahead||t;if(0===tn(i.idx,e,n,a)[0].flat().length){let t=eY.buildEmptyRepetitionError({topLevelRule:e,repetition:i});s.push({message:t,type:l.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),s}buildLookaheadForAlternation(e){var t,s,i,n,a;let r,o;return t=e.prodOccurrence,s=e.rule,i=e.maxLookahead,n=e.hasPredicates,a=e.dynamicTokensEnabled,o=tr(r=ti(t,s,i))?eR:eO,e4(r,n,o,a)}buildLookaheadForOptional(e){var t,s,i,n,a;let r,o;return t=e.prodOccurrence,s=e.rule,i=e.maxLookahead,n=e.dynamicTokensEnabled,a=e3(e.prodType),o=tr(r=tn(t,s,a,i))?eR:eO,e9(r[0],o,n)}}let tb=new class extends eX{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function tC(e,t){-1===e.startOffset?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function tv(e,t){-1===e.startOffset?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function t_(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function tx(e,t){let s=Object.keys(e),i=s.length;for(let n=0;n<i;n++){let i=e[s[n]],a=i.length;for(let e=0;e<a;e++){let s=i[e];void 0===s.tokenTypeIdx&&this[s.name](s.children,t)}}}(i=o||(o={}))[i.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",i[i.MISSING_METHOD=1]="MISSING_METHOD";let tU={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(tU);let tM=eK({name:"RECORDING_PHASE_TOKEN",pattern:ex.NA});eI([tM]);let tw=ez(tM,"This IToken indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(tw);let tP={name:"This CSTNode indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}};function tD(e,t,s,i=!1){tB(s);let n=this.recordingProdStack.at(-1),a="function"==typeof t?t:t.DEF,r=new e({definition:[],idx:s});return i&&(r.separator=t.SEP),Object.hasOwn(t,"MAX_LOOKAHEAD")&&(r.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(r),a.call(this),n.definition.push(r),this.recordingProdStack.pop(),tU}function t$(e,t){tB(t);let s=this.recordingProdStack.at(-1),i=!1===Array.isArray(e),n=!1===i?e:e.DEF,a=new b({definition:[],idx:t,ignoreAmbiguities:i&&!0===e.IGNORE_AMBIGUITIES});return Object.hasOwn(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=n.some(e=>"function"==typeof e.GATE),s.definition.push(a),n.forEach(e=>{let t=new L({definition:[]});a.definition.push(t),Object.hasOwn(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),tU}function tF(e){return 0===e?"":`${e}`}function tB(e){if(e<0||e>255){let t=Error(`Invalid DSL Method idx value: <${e}>
52
+ Idx value must be a none negative value smaller than 256`);throw t.KNOWN_RECORDER_ERROR=!0,t}}let tj=ez(eW,"",-1,-1,-1,-1,-1,-1);Object.freeze(tj);let tG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:eH,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),tK=Object.freeze({recoveryValueFunc:()=>void 0,resyncEnabled:!0});(n=l||(l={}))[n.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",n[n.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",n[n.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",n[n.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",n[n.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",n[n.LEFT_RECURSION=5]="LEFT_RECURSION",n[n.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",n[n.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",n[n.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",n[n.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",n[n.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",n[n.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",n[n.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",n[n.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION";class tW{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let t=this.className;this.TRACE_INIT("toFastProps",()=>{g(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t,s=this[e].originalGrammarAction;this.TRACE_INIT(`${e} Rule`,()=>{t=this.topLevelRuleRecord(e,s)}),this.gastProductionsCache[e]=t})}finally{this.disableRecording()}});let s=[];if(this.TRACE_INIT("Grammar Resolving",()=>{var e;let t,i,n;i=Object.assign({errMsgProvider:eV},e={rules:Object.values(this.gastProductionsCache)}),n={},e.rules.forEach(e=>{n[e.name]=e}),(t=new eJ(n,i.errMsgProvider)).resolveRefs(),s=t.errors,this.definitionErrors=this.definitionErrors.concat(s)}),this.TRACE_INIT("Grammar Validations",()=>{if(0===s.length&&!1===this.skipValidations){var e,i,n,a,r,o,h,c,d;let s,u,p,f,m,T,E,g=(p=null!=(i=(e={rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:eY,grammarName:t}).errMsgProvider)?i:eY,n=e.rules,a=e.tokenTypes,r=e.grammarName,f=n.flatMap(e=>{var t,s;let i;return t=e,s=p,i=new th,t.accept(i),Object.values(Object.fromEntries(Object.entries(Object.groupBy(i.allProductions,to)).filter(([e,t])=>t.length>1))).map(e=>{let i=e[0],n=s.buildDuplicateFoundError(t,e),a=M(i),r={message:n,type:l.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:a,occurrence:i.idx},o=tl(i);return o&&(r.parameter=o),r})}),h=n,c=a,d=p,s=[],u=c.map(e=>e.name),h.forEach(e=>{let t=e.name;if(u.includes(t)){let i=d.buildNamespaceConflictError(e);s.push({message:i,type:l.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),m=s,T=n.flatMap(e=>{var t,s;let i;return t=e,s=p,i=new tc,t.accept(i),i.alternations.flatMap(e=>e.definition.length>255?[{message:s.buildTooManyAlternativesError({topLevelRule:t,alternation:e}),type:l.TOO_MANY_ALTS,ruleName:t.name,occurrence:e.idx}]:[])}),E=n.flatMap(e=>(function(e,t,s,i){let n=[];if(t.reduce((t,s)=>s.name===e.name?t+1:t,0)>1){let t=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:s});n.push({message:t,type:l.DUPLICATE_RULE_NAME,ruleName:e.name})}return n})(e,n,r,p)),f.concat(m,T,E)),y=(o={lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:t}).lookaheadStrategy.validate({rules:o.rules,tokenTypes:o.tokenTypes,grammarName:o.grammarName}).map(e=>Object.assign({type:l.CUSTOM_LOOKAHEAD_VALIDATION},e));this.definitionErrors=this.definitionErrors.concat(g,y)}}),0===this.definitionErrors.length&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{var e;let t,s=(e=Object.values(this.gastProductionsCache),t={},e.forEach(e=>{Object.assign(t,new D(e).startWalking())}),t);this.resyncFollows=s}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null==(t=(e=this.lookaheadStrategy).initialize)||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!tW.DEFER_DEFINITION_ERRORS_HANDLING&&0!==this.definitionErrors.length)throw e=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected:
53
+ ${e.join("\n-------------------------------\n")}`)})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initGastRecorder(t),this.initPerformanceTracer(t),Object.hasOwn(t,"ignoredIssues"))throw Error("The <ignoredIssues> IParserConfig property has been deprecated.\n Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n For further details.");this.skipValidations=Object.hasOwn(t,"skipValidations")?t.skipValidations:tG.skipValidations}}tW.DEFER_DEFINITION_ERRORS_HANDLING=!1,[class{initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,"recoveryEnabled")?e.recoveryEnabled:tG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=tN)}getTokenToInsert(e){let t=ez(e,"",-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,s,i){let n=this.findReSyncTokenType(),a=this.exportLexerState(),r=[],o=!1,l=this.LA_FAST(1),h=this.LA_FAST(1),c=()=>{let e=this.LA(0),t=new ty(this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=r.slice(0,-1),this.SAVE_ERROR(t)};for(;!o;)if(this.tokenMatcher(h,i))return void c();else if(s.call(this)){c(),e.apply(this,t);return}else this.tokenMatcher(h,n)?o=!0:(h=this.SKIP_TOKEN(),this.addToResyncTokens(h,r));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,s){return!(!1===s||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0];return new eZ(this.getGAstProductions()[t],e).startWalking()}getFollowsForInRuleRecovery(e,t){let s=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(s)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new tk("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||0===t.length)return!1;let s=this.LA_FAST(1);return void 0!==t.find(e=>this.tokenMatcher(s,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),s=2;for(;;){let i=e.find(e=>eO(t,e));if(void 0!==i)return i;t=this.LA(s),s++}}getCurrFollowKey(){if(0===this.RULE_STACK_IDX)return tO;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),s=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(s)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,s=this.RULE_STACK_IDX+1,i=Array(s);for(let n=0;n<s;n++)0===n?i[n]=tO:i[n]={ruleName:this.shortRuleNameToFullName(e[n]),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])};return i}flattenFollowSet(){return this.buildFullFollowKeyStack().map(e=>this.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===tO)return[eW];let t=e.ruleName+e.idxInCallingRule+P+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,eW)||t.push(e),t}reSyncTo(e){let t=[],s=this.LA_FAST(1);for(;!1===this.tokenMatcher(s,e);)s=this.SKIP_TOKEN(),this.addToResyncTokens(s,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,s,i,n,a,r){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let s=0;s<e;s++)t[s]=this.shortRuleNameToFullName(this.RULE_STACK[s]);return t}},class{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:tG.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,"maxLookahead")?e.maxLookahead:tG.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,"lookaheadStrategy")?e.lookaheadStrategy:new tI({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{var t;let s,{alternation:i,repetition:n,option:a,repetitionMandatory:r,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=(t=e,tb.reset(),t.accept(tb),s=tb.dslMethods,tb.reset(),s);i.forEach(t=>{let s=0===t.idx?"":t.idx;this.TRACE_INIT(`${M(t)}${s}`,()=>{let s=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],256|t.idx,s)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,M(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,M(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,1024,"RepetitionMandatory",t.maxLookahead,M(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,1536,"RepetitionMandatoryWithSeparator",t.maxLookahead,M(t))}),l.forEach(t=>{this.computeLookaheadFunc(e,t.idx,1280,"RepetitionWithSeparator",t.maxLookahead,M(t))})})})}computeLookaheadFunc(e,t,s,i,n,a){this.TRACE_INIT(`${a}${0===t?"":t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:n||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i});this.setLaFuncCache(this.fullRuleNameToShort[e.name],s|t,a)})}setLaFuncCache(e,t,s){let i=this.lookAheadFuncsCache[e];void 0===i&&(i=[],this.lookAheadFuncsCache[e]=i),i[t]=s}},class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,"nodeLocationTracking")?e.nodeLocationTracking:tG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=tv,this.setNodeLocationFromNode=tv,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=tC,this.setNodeLocationFromNode=tC,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);else this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{}}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),s=e.location;-1!==s.startOffset&&s.startOffset<=t.startOffset==!0?(s.endOffset=t.endOffset,s.endLine=t.endLine,s.endColumn=t.endColumn):(s.startOffset=-1,s.startLine=-1,s.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),s=e.location;-1!==s.startOffset&&s.startOffset<=t.startOffset==!0?s.endOffset=t.endOffset:s.startOffset=-1}cstPostTerminal(e,t){let s=this.CST_STACK[this.CST_STACK.length-1];void 0===s.children[e]?s.children[e]=[t]:s.children[e].push(t),this.setNodeLocationFromToken(s.location,t)}cstPostNonTerminal(e,t){let s=this.CST_STACK[this.CST_STACK.length-1];void 0===s.children[t]?s.children[t]=[e]:s.children[t].push(e),this.setNodeLocationFromNode(s.location,e.location)}get currCSTNode(){return this.CST_STACK[this.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(void 0===this.baseCstVisitorConstructor){var e,t;let s,i=(e=this.className,t=Object.keys(this.gastProductionsCache),t_(s=function(){},e+"BaseSemantics"),s.prototype={visit:function(e,t){if(Array.isArray(e)&&(e=e[0]),void 0!==e)return this[e.name](e.children,t)},validateVisitor:function(){var e,s,i;let n=(e=this,s=t,i=e,s.filter(e=>"function"==typeof i[e]==!1).map(e=>({msg:`Missing visitor method: <${e}> on ${i.constructor.name} CST Visitor.`,type:o.MISSING_METHOD,methodName:e})).filter(Boolean));if(0!==n.length){let e=n.map(e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
54
+ ${e.join("\n\n").replace(/\n/g,"\n ")}`)}}},s.prototype.constructor=s,s._RULE_NAMES=t,s);return this.baseCstVisitorConstructor=i,i}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(void 0===this.baseCstVisitorWithDefaultsConstructor){var e,t,s;let i,n,a=(e=this.className,t=Object.keys(this.gastProductionsCache),s=this.getBaseCstVisitorConstructor(),t_(i=function(){},e+"BaseSemanticsWithDefaults"),n=Object.create(s.prototype),t.forEach(e=>{n[e]=tx}),i.prototype=n,i.prototype.constructor=i,i);return this.baseCstVisitorWithDefaultsConstructor=a,a}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):tj}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?tj:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=eR,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n For Further details.");if(Array.isArray(e)){if(0===e.length)throw Error("A Token Vocabulary cannot be empty.\n Note that the first argument for the parser constructor\n is no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.")}if(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,"modes")&&Object.values(e.modes).flat().every(ev)){let t=[...new Set(Object.values(e.modes).flat())];this.tokensMap=t.reduce((e,t)=>(e[t.name]=t,e),{})}else if("object"==typeof e&&null!==e)this.tokensMap=Object.assign({},e);else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=eW;let s=(Object.hasOwn(e,"modes")?Object.values(e.modes).flat():Object.values(e)).every(e=>{var t;return(null==(t=e.categoryMatches)?void 0:t.length)==0});this.tokenMatcher=s?eR:eO,eI(Object.values(this.tokensMap))}defineRule(e,t,s){let i;if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
55
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=Object.hasOwn(s,"resyncEnabled")?s.resyncEnabled:tK.resyncEnabled,a=Object.hasOwn(s,"recoveryValueFunc")?s.recoveryValueFunc:tK.recoveryValueFunc,r=this.ruleShortNameIdx++;return this.shortRuleNameToFull[r]=e,this.fullRuleNameToShort[e]=r,i=!0===this.outputCst?function(...s){try{this.ruleInvocationStateUpdate(r,e,this.subruleIdx),t.apply(this,s);let i=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(i),i}catch(e){return this.invokeRuleCatch(e,n,a)}finally{this.ruleFinallyStateUpdate()}}:function(...s){try{return this.ruleInvocationStateUpdate(r,e,this.subruleIdx),t.apply(this,s)}catch(e){return this.invokeRuleCatch(e,n,a)}finally{this.ruleFinallyStateUpdate()}},Object.assign(function(...t){this.onBeforeParse(e);try{return i.apply(this,t)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:t,coreRule:i})}invokeRuleCatch(e,t,s){let i=0===this.RULE_STACK_IDX,n=t&&!this.isBackTracking()&&this.recoveryEnabled;if(tE(e)){if(n){let t=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(t)){if(e.resyncedTokens=this.reSyncTo(t),!this.outputCst)return s(e);{let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}}if(this.outputCst){let t=this.CST_STACK[this.CST_STACK.length-1];t.recoveredNode=!0,e.partialCstResult=t}throw e}if(i)return this.moveToTerminatedState(),s(e)}throw e}optionInternal(e,t){return this.optionInternalLogic(e,t,512|t)}optionInternalLogic(e,t,s){let i,n=this.currRuleLookaheadFuncs[s];if("function"!=typeof e){i=e.DEF;let t=e.GATE;if(void 0!==t){let e=n;n=()=>t.call(this)&&e.call(this)}}else i=e;if(!0===n.call(this))return i.call(this)}atLeastOneInternal(e,t){return this.atLeastOneInternalLogic(e,t,1024|e)}atLeastOneInternalLogic(e,t,s){let i,n=this.currRuleLookaheadFuncs[s];if("function"!=typeof t){i=t.DEF;let e=t.GATE;if(void 0!==e){let t=n;n=()=>e.call(this)&&t.call(this)}}else i=t;if(!0===n.call(this)){let e=this.doSingleRepetition(i);for(;!0===n.call(this)&&!0===e;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,r.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],n,1024,e,e2)}atLeastOneSepFirstInternal(e,t){this.atLeastOneSepFirstInternalLogic(e,t,1536|e)}atLeastOneSepFirstInternalLogic(e,t,s){let i=t.DEF,n=t.SEP;if(!0===this.currRuleLookaheadFuncs[s].call(this)){i.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),n);for(;!0===this.tokenMatcher(this.LA_FAST(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,n,t,i,e5],t,1536,e,e5)}else throw this.raiseEarlyExitException(e,r.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){return this.manyInternalLogic(e,t,768|e)}manyInternalLogic(e,t,s){let i,n=this.currRuleLookaheadFuncs[s];if("function"!=typeof t){i=t.DEF;let e=t.GATE;if(void 0!==e){let t=n;n=()=>e.call(this)&&t.call(this)}}else i=t;let a=!0;for(;!0===n.call(this)&&!0===a;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],n,768,e,e0,a)}manySepFirstInternal(e,t){this.manySepFirstInternalLogic(e,t,1280|e)}manySepFirstInternalLogic(e,t,s){let i=t.DEF,n=t.SEP;if(!0===this.currRuleLookaheadFuncs[s].call(this)){i.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),n);for(;!0===this.tokenMatcher(this.LA_FAST(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,n,t,i,e1],t,1280,e,e1)}}repetitionSepSecondInternal(e,t,s,i,n){for(;s();)this.CONSUME(t),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,s,i,n],s,1536,e,n)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let s=256|t,i=Array.isArray(e)?e:e.DEF,n=this.currRuleLookaheadFuncs[s].call(this,i);if(void 0!==n)return i[n].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,s){let i;try{let n=void 0!==s?s.ARGS:void 0;return this.subruleIdx=t,i=e.coreRule.apply(this,n),this.cstPostNonTerminal(i,void 0!==s&&void 0!==s.LABEL?s.LABEL:e.ruleName),i}catch(t){throw this.subruleInternalError(t,s,e.ruleName)}}subruleInternalError(e,t,s){throw tE(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:s),delete e.partialCstResult),e}consumeInternal(e,t,s){let i;try{let t=this.LA_FAST(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),i=t):this.consumeInternalError(e,t,s)}catch(s){i=this.consumeInternalRecovery(e,t,s)}return this.cstPostTerminal(void 0!==s&&void 0!==s.LABEL?s.LABEL:e.name,i),i}consumeInternalError(e,t,s){let i,n=this.LA(0);throw i=void 0!==s&&s.ERR_MSG?s.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:n,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ty(i,t,n))}consumeInternalRecovery(e,t,s){if(this.recoveryEnabled&&"MismatchedTokenException"===s.name&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,i)}catch(e){if(e.name===tR)throw s;throw e}}throw s}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e<t.length;e++)this.RULE_STACK[e]=t[e];this.RULE_STACK_IDX=t.length-1,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,s){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=s,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),eW)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e<this.maxLookahead+1;e++)this.tokVector.push(tj)}onAfterParse(e){if(!1===this.isAtEndOfInput()){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new tS(t,e))}for(;this.tokVector.at(-1)===tj;)this.tokVector.pop()}},class{ACTION(e){return e.call(this)}consume(e,t,s){return this.consumeInternal(t,e,s)}subrule(e,t,s){return this.subruleInternal(t,e,s)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,s=tK){if(this.definedRulesNames.includes(e)){let t={message:eY.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:l.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let i=this.defineRule(e,t,s);return this[e]=i,i}OVERRIDE_RULE(e,t,s=tK){var i,n;let a,r,o=(i=this.definedRulesNames,n=this.className,r=[],i.includes(e)||(a=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:a,type:l.INVALID_RULE_OVERRIDE,ruleName:e})),r);this.definitionErrors=this.definitionErrors.concat(o);let h=this.defineRule(e,t,s);return this[e]=h,h}BACKTRACK(e,t){var s;let i=null!=(s=e.coreRule)?s:e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return i.apply(this,t),!0}catch(e){if(tE(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Object.values(this.gastProductionsCache).map(function e(t){function s(t){return t.map(e)}if(t instanceof A){let e={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return"string"==typeof t.label&&(e.label=t.label),e}if(t instanceof L)return{type:"Alternative",definition:s(t.definition)};if(t instanceof O)return{type:"Option",idx:t.idx,definition:s(t.definition)};if(t instanceof R)return{type:"RepetitionMandatory",idx:t.idx,definition:s(t.definition)};if(t instanceof k)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:e(new C({terminalType:t.separator})),definition:s(t.definition)};else if(t instanceof I)return{type:"RepetitionWithSeparator",idx:t.idx,separator:e(new C({terminalType:t.separator})),definition:s(t.definition)};else if(t instanceof N)return{type:"Repetition",idx:t.idx,definition:s(t.definition)};else if(t instanceof b)return{type:"Alternation",idx:t.idx,definition:s(t.definition)};else if(t instanceof C){var i,n;let e={type:"Terminal",name:t.terminalType.name,label:"string"==typeof(n=i=t.terminalType).LABEL&&""!==n.LABEL?i.LABEL:i.name,idx:t.idx};"string"==typeof t.label&&(e.terminalLabel=t.label);let s=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(e.pattern=s instanceof RegExp?s.source:s),e}else if(t instanceof S)return{type:"Rule",name:t.name,orgText:t.orgText,definition:s(t.definition)};else throw Error("non exhaustive match")})}},class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,"errorMessageProvider")?e.errorMessageProvider:tG.errorMessageProvider}SAVE_ERROR(e){if(tE(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,t,s){let i=this.getCurrRuleFullName(),n=tn(e,this.getGAstProductions()[i],t,this.maxLookahead)[0],a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let r=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:n,actual:a,previous:this.LA(0),customUserDescription:s,ruleName:i});throw this.SAVE_ERROR(new tL(r,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let s=this.getCurrRuleFullName(),i=ti(e,this.getGAstProductions()[s],this.maxLookahead),n=[];for(let e=1;e<=this.maxLookahead;e++)n.push(this.LA(e));let a=this.LA(0),r=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:n,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new tA(r,this.LA(1),a))}},class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(t,s){return this.consumeInternalRecord(t,e,s)},this[`SUBRULE${t}`]=function(t,s){return this.subruleInternalRecord(t,e,s)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,s){return this.consumeInternalRecord(t,e,s)},this.subrule=function(e,t,s){return this.subruleInternalRecord(t,e,s)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";delete this[`CONSUME${t}`],delete this[`SUBRULE${t}`],delete this[`OPTION${t}`],delete this[`OR${t}`],delete this[`MANY${t}`],delete this[`MANY_SEP${t}`],delete this[`AT_LEAST_ONE${t}`],delete this[`AT_LEAST_ONE_SEP${t}`]}delete this.consume,delete this.subrule,delete this.option,delete this.or,delete this.many,delete this.atLeastOne,delete this.ACTION,delete this.BACKTRACK,delete this.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return tj}topLevelRuleRecord(e,t){try{let s=new S({definition:[],name:e});return s.name=e,this.recordingProdStack.push(s),t.call(this),this.recordingProdStack.pop(),s}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n This error was thrown during the "grammar recording phase" For more info see:\n https://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}}optionInternalRecord(e,t){return tD.call(this,O,e,t)}atLeastOneInternalRecord(e,t){tD.call(this,R,t,e)}atLeastOneSepFirstInternalRecord(e,t){tD.call(this,k,t,e,!0)}manyInternalRecord(e,t){tD.call(this,N,t,e)}manySepFirstInternalRecord(e,t){tD.call(this,I,t,e,!0)}orInternalRecord(e,t){return t$.call(this,e,t)}subruleInternalRecord(e,t,s){if(tB(t),!e||!Object.hasOwn(e,"ruleName")){let s=Error(`<SUBRULE${tF(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
56
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=this.recordingProdStack.at(-1),n=new A({idx:t,nonTerminalName:e.ruleName,label:null==s?void 0:s.LABEL,referencedRule:void 0});return i.definition.push(n),this.outputCst?tP:tU}consumeInternalRecord(e,t,s){if(tB(t),!eb(e)){let s=Error(`<CONSUME${tF(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
57
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=this.recordingProdStack.at(-1),n=new C({idx:t,terminalType:e,label:null==s?void 0:s.LABEL});return i.definition.push(n),tw}},class{initPerformanceTracer(e){if(Object.hasOwn(e,"traceInitPerf")){let t=e.traceInitPerf,s="number"==typeof t;this.traceInitMaxIdent=s?t:1/0,this.traceInitPerf=s?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=tG.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let s=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${e}>`);let{time:i,value:n}=eL(t),a=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${s}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,n}}}].forEach(e=>{let t=e.prototype;Object.getOwnPropertyNames(t).forEach(s=>{if("constructor"===s)return;let i=Object.getOwnPropertyDescriptor(t,s);i&&(i.get||i.set)?Object.defineProperty(tW.prototype,s,i):tW.prototype[s]=e.prototype[s]})});class tz extends tW{constructor(e,t=tG){let s=Object.assign({},t);s.outputCst=!0,super(e,s)}}e.i(991577);var tH=e.i(692423),tV=(0,E.p)(e=>void 0!==e&&e>=0,"isKnownLocation");function tY(e,t){let s=e.lexer.tokenize(t);if(s.errors.length>0){let i=s.errors[0],n=tV(i.offset)?i.offset:t.length,a=n+(tV(i.length)?i.length:0);throw Error(`Error lexing ${e.diagramType} diagram: ${i.message} at line ${i.line??1}, column ${i.column??1} [${n},${a})`)}e.parser.input=s.tokens;let i=e.entry();if(e.parser.errors.length>0)throw Error(`Error parsing ${e.diagramType} diagram: ${e.parser.errors[0].message}`);e.visit(i)}(0,E.p)(tY,"runChevrotainParse");var tX=m.f.usecase,tJ=(0,E.p)(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:"LR",relationshipCounter:0,noteCounter:0,accTitle:"",accDescription:"",ast:void 0,config:structuredClone(tX)}),"createModel"),tq=(0,E.p)(e=>{if(!(e.actors instanceof Map)||!(e.useCases instanceof Map)||!(e.systemBoundaries instanceof Map)||!Array.isArray(e.relationships)||!(e.notes instanceof Map)||!(e.jsonNodes instanceof Map)||!(e.classDefs instanceof Map)||!(e.symbols instanceof Map)||!["TB","TD","BT","RL","LR"].includes(e.direction)||!Number.isSafeInteger(e.relationshipCounter)||e.relationshipCounter<0||!Number.isSafeInteger(e.noteCounter)||e.noteCounter<0||"string"!=typeof e.accTitle||"string"!=typeof e.accDescription||!e.config)throw Error("Cannot commit an incomplete usecase model")},"assertCompleteModel"),tZ=tJ(),tQ=(0,E.p)(()=>structuredClone(tZ.config),"getConfig"),t0=(0,E.p)(()=>tZ.ast,"getAST"),t1=(0,E.p)(e=>{let t=structuredClone(e);tq(t);let s=(0,m.c)(),i=(0,m.j)();try{(0,m.b)(t.accTitle),(0,m.B)(t.accDescription),tZ=t}catch(e){throw(0,m.b)(s),(0,m.B)(i),e}},"commit"),t2=(0,E.p)(()=>{tZ=tJ(),(0,m.M)()},"clear"),t5=(0,E.p)(()=>tZ.actors,"getActors"),t6=(0,E.p)(e=>tZ.actors.get(e),"getActor"),t3=(0,E.p)(()=>tZ.useCases,"getUseCases"),t4=(0,E.p)(e=>tZ.useCases.get(e),"getUseCase"),t9=(0,E.p)(()=>tZ.systemBoundaries,"getSystemBoundaries"),t8=(0,E.p)(e=>tZ.systemBoundaries.get(e),"getSystemBoundary"),t7=(0,E.p)(()=>tZ.relationships,"getRelationships"),se=(0,E.p)(()=>tZ.notes,"getNotes"),st=(0,E.p)(e=>tZ.notes.get(e),"getNote"),ss=(0,E.p)(()=>tZ.jsonNodes,"getJsonNodes"),si=(0,E.p)(e=>tZ.jsonNodes.get(e),"getJsonNode"),sn=(0,E.p)(()=>tZ.classDefs,"getClassDefs"),sa=(0,E.p)(e=>tZ.classDefs.get(e),"getClassDef"),sr=(0,E.p)(()=>tZ.direction,"getDirection"),so=(0,E.p)(e=>{let t=new Map;for(let s of["default",...e]){let e=tZ.classDefs.get(s);if(e)for(let s of e.styles){let e=s.trim(),i=e.indexOf(":"),n=(-1===i?e:e.slice(0,i)).trim();n&&t.set(n,e)}}return[...t.values()]},"getCompiledStyles"),sl=(0,E.p)(e=>e.replaceAll("~","~0").replaceAll("/","~1"),"escapeJsonPointerPart"),sh=(0,E.p)(e=>"string"==typeof e?e:null===e?"null":String(e),"displayJsonScalar"),sc=(0,E.p)((e,t,s=e=>e)=>{let i=[],n=(0,E.p)((e,t,n)=>{i.push({key:s(e),accessibleKey:s(t),value:s(n)})},"append"),a=(0,E.p)((e,s,i)=>{if(Array.isArray(e)){if(0===e.length)return void n(s,s,"[]");if(e.every(e=>null===e||["string","number","boolean"].includes(typeof e))){for(let[t,i]of e.entries())n(0===t?s:"",s,sh(i));return}for(let[t,n]of e.entries())a(n,`${s}[${t}]`,`${i}/${t}`);return}if(null!==e&&"object"==typeof e){let r=t[i]??Object.keys(e);if(0===r.length)return void n(s,s,"{}");for(let t of r){let n=s?`${s}.${t}`:t;a(e[t],n,`${i}/${sl(t)}`)}return}n(s,s,sh(e))},"visit");return a(e,"",""),i},"flattenJsonRows"),sd=(0,E.p)(e=>{switch(e.type){case"hollow":return"usecaseActorHollow";case"awesome":return"usecaseActorAwesome";case"icon":return"usecaseActorIcon";case"normal":return"usecaseActor"}},"actorShape"),su=(0,E.p)(e=>"ellipse"===e.shape?e.business?"usecaseBusiness":"usecaseEllipse":e.shape,"useCaseShape"),sp=(0,E.p)(e=>{switch(e){case 0:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point"};case 1:return{arrowTypeStart:"arrow_point",arrowTypeEnd:"none"};case 3:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_circle"};case 4:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_cross"};case 5:return{arrowTypeStart:"arrow_circle",arrowTypeEnd:"none"};case 6:return{arrowTypeStart:"arrow_cross",arrowTypeEnd:"none"};case 2:return{arrowTypeStart:"none",arrowTypeEnd:"none"}}},"associationMarkers"),sf=(0,E.p)(e=>{switch(e.type){case"include":case"extend":return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point",pattern:"dotted",label:e.type,labelType:"text"};case"generalization":return{arrowTypeStart:"none",arrowTypeEnd:"extension",pattern:"solid"};case"association":return{...sp(e.arrowType),pattern:"solid",...e.label?{label:e.label}:{},...e.labelType?{labelType:e.labelType}:{}}}},"relationshipVisuals"),sm=(0,E.p)(e=>e.animate||e.animation?[`edge-animation-${e.animation??"fast"}`]:[],"animationClasses"),sT=(0,E.p)((...e)=>e.filter(e=>!!e).join(" "),"classNames"),sE=(0,E.p)(()=>{let e=(0,m.z)(),t={...tZ.config,...e.usecase},s=(0,E.p)(t=>(0,m.g)(t,e),"sanitize"),i=(0,E.p)(e=>s(tZ.actors.get(e)?.label??tZ.useCases.get(e)?.label??tZ.jsonNodes.get(e)?.id??tZ.notes.get(e)?.label??e),"endpointLabel"),n=[],a=[],r=0,o=0;for(let t of tZ.actors.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:sd(t),isGroup:!1,padding:10,look:e.look,colorIndex:r++,cssClasses:sT("default","usecase-actor",`usecase-actor-${t.type}`,t.business&&"usecase-business",...t.classes),cssStyles:[...t.styles],cssCompiledStyles:so(t.classes),actorType:t.type,business:t.business,...t.icon?{icon:t.icon}:{},...t.stereotype?{stereotype:s(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of tZ.useCases.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:su(t),isGroup:!1,padding:"ellipse"===t.shape?20:10,look:e.look,colorIndex:r++,cssClasses:sT("default","usecase-element",`usecase-${t.shape}`,t.business&&"usecase-business",...t.classes),cssStyles:[...t.styles],cssCompiledStyles:so(t.classes),business:t.business,...t.stereotype?{stereotype:s(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of tZ.notes.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:"note",isGroup:!1,padding:10,look:e.look,cssClasses:"default usecase-note",cssStyles:[],cssCompiledStyles:so([]),noteTarget:t.target,noteTargetLabel:s(tZ.actors.get(t.target)?.label??tZ.useCases.get(t.target)?.label??tZ.jsonNodes.get(t.target)?.id??t.target)});for(let t of tZ.jsonNodes.values())n.push({id:t.id,label:s(t.id),labelType:"text",shape:"usecaseJsonTable",isGroup:!1,padding:10,look:e.look,cssClasses:sT("default","usecase-json-table",...t.classes),cssStyles:[...t.styles],cssCompiledStyles:so(t.classes),jsonRows:sc(t.value,t.propertyOrder,s)});for(let t of tZ.systemBoundaries.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:"usecaseSystemBoundary",isGroup:!0,padding:20,look:e.look,colorIndex:o++,cssClasses:sT("default","system-boundary",`system-boundary-${t.type}`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:so(t.classes),boundaryType:t.type});for(let t of tZ.relationships){let{label:n,...r}=sf(t);a.push({id:t.id,start:t.source,end:t.target,source:t.source,target:t.target,sourceLabel:i(t.source),targetLabel:i(t.target),type:"edge",relationshipType:t.type,internal:!1,...r,...void 0!==n?{label:s(n)}:{},labelpos:"c",classes:sT("default","relationship",`relationship-${t.type}`,...t.classes,...sm(t)),style:[...t.styles],cssCompiledStyles:so(t.classes),animate:t.animate,...t.animation?{animation:t.animation}:{},look:e.look,thickness:"normal",minlen:t.minlen,isUserDefinedId:t.explicitId})}for(let t of tZ.notes.values())a.push({id:`${t.id}-edge`,start:t.id,end:t.target,source:t.id,target:t.target,type:"edge",relationshipType:"note",sourceLabel:i(t.id),targetLabel:i(t.target),internal:!0,pattern:"dotted",arrowTypeStart:"none",arrowTypeEnd:"none",labelpos:"c",classes:"default relationship relationship-note",style:[],cssCompiledStyles:so([]),animate:!1,look:e.look,thickness:"normal",minlen:1,isUserDefinedId:!1});for(let e of n)e.wrappingWidth??=t.wrappingWidth,e.isGroup||e.shape.startsWith("usecaseActor")||(e.minWidth??=t.minNodeWidth),("usecaseEllipse"===e.shape||"usecaseBusiness"===e.shape)&&(e.spreadPorts=!0);return{nodes:n,edges:a,config:e,type:"usecase",layoutAlgorithm:"dagre",direction:sr(),nodeSpacing:t.nodeSpacing,rankSpacing:t.rankSpacing,actorFontSize:t.actorFontSize,actorFontFamily:t.actorFontFamily,actorFontWeight:t.actorFontWeight,usecaseFontSize:t.usecaseFontSize,usecaseFontFamily:t.usecaseFontFamily,usecaseFontWeight:t.usecaseFontWeight,diagramPadding:t.diagramPadding,useMaxWidth:t.useMaxWidth,markers:["point","circle","cross","extension"]}},"getData"),sg={getConfig:tQ,createModel:tJ,commit:t1,getAST:t0,clear:t2,setDiagramTitle:m.a,getDiagramTitle:m.F,setAccTitle:m.b,getAccTitle:m.c,setAccDescription:m.B,getAccDescription:m.j,getActors:t5,getActor:t6,getUseCases:t3,getUseCase:t4,getSystemBoundaries:t9,getSystemBoundary:t8,getRelationships:t7,getNotes:se,getNote:st,getJsonNodes:ss,getJsonNode:si,getClassDefs:sn,getClassDef:sa,getDirection:sr,getData:sE};function sy(e,t,s){let i=[s];return i.index=t,i.input=e,i}(0,E.p)(sy,"customMatch");var sA=(0,E.p)((e,t)=>{if('"'!==e[t]||"`"!==e[t+1])return null;for(let s=t+2;s<e.length-1;s++)if("`"===e[s]&&'"'===e[s+1])return sy(e,t,e.slice(t,s+2));return null},"matchMarkdownString"),sS=(0,E.p)((e,t)=>{if("%"!==e[t]||"%"!==e[t+1])return null;for(let s=t-1;s>=0;s--){let t=e[s];if("\n"===t||"\r"===t)break;if(" "!==t&&" "!==t)return null}let s=t+2;for(;s<e.length&&"\n"!==e[s]&&"\r"!==e[s];)s++;return sy(e,t,e.slice(t,s))},"matchComment"),sL=(0,E.p)((e,t)=>{for(let s=t-1;s>=0;s--){let t=e[s];if("\n"===t||"\r"===t)break;if(" "!==t&&" "!==t)return!1}return!0},"isIndentedLineStart"),sO=(0,E.p)((e,t,s)=>{if(!sL(e,t))return null;let i=s.exec(e.slice(t));return i?sy(e,t,i[0]):null},"matchAccessibilityLine"),sR=(0,E.p)((e,t)=>{if(!sL(e,t))return null;let s=/^accDescr[\t ]*{/.exec(e.slice(t));if(!s)return null;let i=e.indexOf("}",t+s[0].length);return -1===i?null:sy(e,t,e.slice(t,i+1))},"matchAccDescrBlock"),sk=(0,E.p)((e,t)=>{if("{"!==e[t])return null;let s=0,i=!1,n=!1;for(let a=t;a<e.length;a++){let r=e[a];if(i){n?n=!1:"\\"===r?n=!0:'"'===r&&(i=!1);continue}if('"'===r)i=!0;else if("{"===r)s++;else if("}"===r&&0==--s)return sy(e,t,e.slice(t,a+1))}return null},"matchJsonObject"),sN=(0,E.p)((e,t)=>{let s=e.indexOf(">>",t);if(-1===s||/[\n\r]/.test(e.slice(t,s)))return null;let i=e.slice(t,s);return i.trim()?sy(e,t,i):null},"matchStereotypeText"),sI=eK({name:"LABEL_TEXT",pattern:ex.NA}),sb=eK({name:"WORD",pattern:ex.NA,categories:sI}),sC=eK({name:"NUMBER",pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:sI}),sv=eK({name:"IDENTIFIER",pattern:/\w+/,longer_alt:sC,categories:sb}),s_=eK({name:"HWS",pattern:/[\t ]+/,group:ex.SKIPPED}),sx=eK({name:"MARKDOWN_STRING",pattern:sA,start_chars_hint:['"'],line_breaks:!0}),sU=eK({name:"UNCLOSED_MARKDOWN_STRING",pattern:/"`[^]*/,line_breaks:!0}),sM=eK({name:"COMMENT",pattern:sS,start_chars_hint:["%"],line_breaks:!1}),sw=eK({name:"NEWLINE",pattern:/\r\n|\n|\r/,line_breaks:!0}),sP=eK({name:"ACC_DESCR_BLOCK",pattern:sR,start_chars_hint:["a"],line_breaks:!0}),sD=/^accTitle[\t ]*:[^\n\r]*/,s$=/^accDescr[\t ]*:[^\n\r]*/,sF=eK({name:"ACC_TITLE_LINE",pattern:(0,E.p)((e,t)=>sO(e,t,sD),"pattern"),start_chars_hint:["a"],line_breaks:!1}),sB=eK({name:"ACC_DESCR_LINE",pattern:(0,E.p)((e,t)=>sO(e,t,s$),"pattern"),start_chars_hint:["a"],line_breaks:!1}),sj=eK({name:"JSON_DECLARATION_START",pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:"jsonBody"}),sG=eK({name:"JSON_OBJECT_LITERAL",pattern:sk,start_chars_hint:["{"],line_breaks:!0,pop_mode:!0}),sK=eK({name:"UNCLOSED_JSON_OBJECT_LITERAL",pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),sW=(0,E.p)((e,t)=>eK({name:e,pattern:t,longer_alt:sv,categories:sb}),"keyword"),sz=sW("USECASE",/usecase-beta/),sH=sW("ACTOR",/actor/),sV=sW("SYSTEM_BOUNDARY",/systemBoundary/),sY=sW("END",/end/),sX=sW("DIRECTION",/direction/),sJ=sW("TD",/TD/),sq=sW("TB",/TB/),sZ=sW("BT",/BT/),sQ=sW("LR",/LR/),s0=sW("RL",/RL/),s1=sW("NOTE",/note/),s2=sW("FOR",/for/),s5=sW("JSON",/json/),s6=sW("CLASS_DEF",/classDef/),s3=sW("CLASS",/class/),s4=sW("STYLE",/style/),s9=sW("INCLUDE",/include/i),s8=sW("EXTEND",/extend/i),s7=sW("TRUE",/true/),ie=sW("FALSE",/false/),it=eK({name:"GENERALIZATION",pattern:/--\|>/}),is=eK({name:"DEPENDENCY_ARROW",pattern:/\.\.>/}),ii=eK({name:"STEREOTYPE_START",pattern:/<</,push_mode:"stereotype"}),ia=eK({name:"STEREOTYPE_END",pattern:/>>/,pop_mode:!0}),ir=eK({name:"STEREOTYPE_TEXT",pattern:sN,line_breaks:!1}),io=eK({name:"UNCLOSED_STEREOTYPE_TEXT",pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),il=eK({name:"CLASS_SEPARATOR",pattern:/:::/}),ih=eK({name:"FORWARD_SOLID",pattern:/--+>/}),ic=eK({name:"BACKWARD_SOLID",pattern:/<--+/}),id=eK({name:"FORWARD_CIRCLE",pattern:/--o/}),iu=eK({name:"BACKWARD_CIRCLE",pattern:/o--/}),ip=eK({name:"FORWARD_CROSS",pattern:/--x/}),im=eK({name:"BACKWARD_CROSS",pattern:/x--/}),iT=eK({name:"MARKERLESS_SOLID",pattern:/--+/}),iE=eK({name:"METADATA_START",pattern:/@{/}),ig=eK({name:"AT",pattern:/@/,categories:sI}),iy=eK({name:"LBRACE",pattern:/{/}),iA=eK({name:"RBRACE",pattern:/}/}),iS=eK({name:"LBRACKET",pattern:/\[/}),iL=eK({name:"RBRACKET",pattern:/]/}),iO=eK({name:"LPAREN",pattern:/\(/}),iR=eK({name:"RPAREN",pattern:/\)/}),ik=eK({name:"COMMA",pattern:/,/,categories:sI}),iN=eK({name:"COLON",pattern:/:/,categories:sI}),iI=eK({name:"HASH_COLOR",pattern:/#[\dA-Fa-f]+/,categories:sI}),ib=eK({name:"PLAIN_STRING",pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),iC=eK({name:"CSS_IDENTIFIER",pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:sI}),iv=eK({name:"CSS_ESCAPED_COMMA",pattern:/\\,/,categories:sI}),i_=eK({name:"DASH",pattern:/-/,categories:sI}),ix=eK({name:"DOT",pattern:/\./,categories:sI}),iU=eK({name:"PERCENT",pattern:/%/,categories:sI}),iM=eK({name:"CSS_PUNCTUATION",pattern:/[!#$&*+/=?^_|~]/,categories:sI}),iw=eK({name:"LABEL_PUNCTUATION",pattern:/[;<>\\`]/,categories:sI}),iP=eK({name:"LABEL_SYMBOL",pattern:/[^\t\n\r !-~]+/,categories:sI}),iD=[sI,sb,s_,sx,sU,sM,sw,sP,sF,sB,sj,sz,sH,sV,sY,sX,sJ,sq,sZ,sQ,s0,s1,s2,s5,s6,s3,s4,s9,s8,s7,ie,it,is,ii,il,ih,ic,id,iu,ip,im,iT,iE,ig,iy,iA,iS,iL,iO,iR,ik,iN,iI,ib,iC,sv,sC,iv,i_,ix,iU,iM,iw,iP],i$={defaultMode:"defaultMode",modes:{defaultMode:[...iD],jsonBody:[sG,sK],stereotype:[ia,ir,io]}},iF=[...iD,sG,sK,ia,ir,io],iB=new ex(i$),ij=(0,E.p)(e=>eO(e,sI)||e.tokenType===ib||e.tokenType===sx,"isLabelToken"),iG={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},iK=new class extends tz{static{(0,E.p)(this,"UsecaseParser")}constructor(){super(iF,{nodeLocationTracking:"full"}),this.RULE("start",()=>{this.CONSUME(sz),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE("line",()=>{this.OR([{ALT:(0,E.p)(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.commentLine),"ALT")},{GATE:(0,E.p)(()=>this.isStatementStart(),"GATE"),ALT:(0,E.p)(()=>this.SUBRULE(this.statement),"ALT")}])}),this.RULE("statement",()=>{this.OR([{ALT:(0,E.p)(()=>this.SUBRULE(this.accTitleStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.accDescrStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.directionStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.actorStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.systemBoundaryStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.noteStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.jsonStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.classDefStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.classStatement),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.styleStatement),"ALT")},{GATE:(0,E.p)(()=>this.isMetadataAssignment(),"GATE"),ALT:(0,E.p)(()=>this.SUBRULE(this.metadataAssignmentStatement),"ALT")},{GATE:(0,E.p)(()=>!this.isForbiddenPlantUmlStatement(),"GATE"),ALT:(0,E.p)(()=>this.SUBRULE(this.entityStatement),"ALT")}])}),this.RULE("lineEnd",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sw),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(eW),"ALT")}])}),this.RULE("blankLine",()=>{this.CONSUME(sw)}),this.RULE("commentLine",()=>{this.CONSUME(sM),this.SUBRULE(this.lineEnd)}),this.RULE("accTitleStatement",()=>{this.CONSUME(sF),this.SUBRULE(this.lineEnd)}),this.RULE("accDescrStatement",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sB),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sP),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("actorStatement",()=>{this.CONSUME(sH),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:(0,E.p)(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(ik),this.SUBRULE2(this.actorItem)}),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.relationTail),"ALT")}])}),this.SUBRULE(this.lineEnd)}),this.RULE("actorItem",()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE("actorName",()=>{this.OR([{ALT:(0,E.p)(()=>{this.CONSUME(sv),this.OPTION(()=>{this.CONSUME(iO),this.SUBRULE(this.nodeLabel),this.CONSUME(iR)})},"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sx),"ALT")}])}),this.RULE("actorDeclarationOnly",()=>{this.CONSUME(sH),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(ik),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE("entityStatement",()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE("entityName",()=>{this.OR([{ALT:(0,E.p)(()=>{this.CONSUME(sv),this.OPTION(()=>{this.OR2([{ALT:(0,E.p)(()=>{this.CONSUME(iO),this.SUBRULE(this.nodeLabel),this.CONSUME(iR)},"ALT")},{ALT:(0,E.p)(()=>{this.CONSUME(iS),this.SUBRULE2(this.nodeLabel),this.CONSUME(iL)},"ALT")}])})},"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sx),"ALT")}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE("nodeLabel",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sx),"ALT")},{ALT:(0,E.p)(()=>this.AT_LEAST_ONE(()=>this.CONSUME(sI)),"ALT")}])}),this.RULE("useCaseMetadata",()=>{this.SUBRULE(this.metadata)}),this.RULE("relationTail",()=>{this.OPTION({GATE:(0,E.p)(()=>this.LA(1).tokenType===sv&&this.LA(2).tokenType===ig,"GATE"),DEF:(0,E.p)(()=>{this.CONSUME(sv),this.CONSUME(ig)},"DEF")}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE("arrow",()=>{this.OR([{ALT:(0,E.p)(()=>this.SUBRULE(this.semanticRelation),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.forwardSolidOperator),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.backwardSolidOperator),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.markerlessSolidOperator),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.forwardCircleOperator),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.backwardCircleOperator),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.forwardCrossOperator),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.backwardCrossOperator),"ALT")}])}),this.RULE("forwardSolidOperator",()=>{this.CONSUME(ih)}),this.RULE("backwardSolidOperator",()=>{this.CONSUME(ic),this.OPTION({GATE:(0,E.p)(()=>"<--"===this.LA(0).image&&this.hasLabeledRight([iT]),"GATE"),DEF:(0,E.p)(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(iT)},"DEF")})}),this.RULE("markerlessSolidOperator",()=>{this.CONSUME(iT),this.OPTION({GATE:(0,E.p)(()=>"--"===this.LA(0).image&&this.hasLabeledRight([ih,iT,id,ip]),"GATE"),DEF:(0,E.p)(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:(0,E.p)(()=>this.CONSUME(ih),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME2(iT),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(id),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ip),"ALT")}])},"DEF")})}),this.RULE("forwardCircleOperator",()=>{this.CONSUME(id)}),this.RULE("backwardCircleOperator",()=>{this.CONSUME(iu),this.OPTION({GATE:(0,E.p)(()=>this.hasLabeledRight([iT]),"GATE"),DEF:(0,E.p)(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(iT)},"DEF")})}),this.RULE("forwardCrossOperator",()=>{this.CONSUME(ip)}),this.RULE("backwardCrossOperator",()=>{this.CONSUME(im),this.OPTION({GATE:(0,E.p)(()=>this.hasLabeledRight([iT]),"GATE"),DEF:(0,E.p)(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(iT)},"DEF")})}),this.RULE("edgeLabel",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sx),"ALT")},{ALT:(0,E.p)(()=>this.AT_LEAST_ONE(()=>this.CONSUME(sI)),"ALT")}])}),this.RULE("semanticRelation",()=>{this.OR([{ALT:(0,E.p)(()=>{this.CONSUME(is),this.CONSUME(iN),this.OR2([{ALT:(0,E.p)(()=>this.CONSUME(s9),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(s8),"ALT")}])},"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(it),"ALT")}])}),this.RULE("metadata",()=>{this.CONSUME(iE),this.MANY(()=>this.CONSUME(sw)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(ik)),this.MANY3(()=>this.CONSUME2(sw))}),this.CONSUME(iA)}),this.RULE("metadataProperty",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sv),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")}]),this.CONSUME(iN),this.OR2([{ALT:(0,E.p)(()=>this.CONSUME2(sv),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME2(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(s7),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ie),"ALT")}])}),this.RULE("metadataSeparator",()=>{this.OR([{ALT:(0,E.p)(()=>{this.CONSUME(ik),this.MANY(()=>this.CONSUME(sw))},"ALT")},{ALT:(0,E.p)(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(sw)),this.OPTION(()=>this.CONSUME2(ik)),this.MANY2(()=>this.CONSUME3(sw))},"ALT")}])}),this.RULE("systemBoundaryStatement",()=>{this.CONSUME(sV),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(sY),this.SUBRULE2(this.lineEnd)}),this.RULE("systemBoundaryName",()=>{this.OR([{ALT:(0,E.p)(()=>{this.CONSUME(sv),this.OPTION(()=>{this.OR2([{ALT:(0,E.p)(()=>{this.CONSUME(iO),this.SUBRULE(this.nodeLabel),this.CONSUME(iR)},"ALT")},{ALT:(0,E.p)(()=>{this.CONSUME(iS),this.SUBRULE2(this.nodeLabel),this.CONSUME(iL)},"ALT")}])})},"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sx),"ALT")}])}),this.RULE("systemBoundaryContent",()=>{this.MANY(()=>{this.OR([{ALT:(0,E.p)(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.commentLine),"ALT")},{ALT:(0,E.p)(()=>this.SUBRULE(this.boundaryElement),"ALT")}])})}),this.RULE("boundaryElement",()=>{this.OR([{ALT:(0,E.p)(()=>this.SUBRULE(this.actorDeclarationOnly),"ALT")},{ALT:(0,E.p)(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},"ALT")}])}),this.RULE("metadataAssignmentStatement",()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE("metadataAssignmentTarget",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sv),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sx),"ALT")}])}),this.RULE("noteStatement",()=>{this.CONSUME(s1),this.CONSUME(s2),this.CONSUME(sv),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE("stereotype",()=>{this.CONSUME(ii),this.CONSUME(ir),this.CONSUME(ia)}),this.RULE("classSuffix",()=>{this.CONSUME(il),this.CONSUME(sv),this.MANY(()=>{this.CONSUME(ik),this.CONSUME2(sv)})}),this.RULE("jsonStatement",()=>{this.CONSUME(sj),this.CONSUME(sG),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE("directionStatement",()=>{this.CONSUME(sX),this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sJ),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sq),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sZ),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sQ),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(s0),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("classDefStatement",()=>{this.CONSUME(s6),this.CONSUME(sv),this.MANY(()=>{this.CONSUME(ik),this.CONSUME2(sv)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("classStatement",()=>{this.CONSUME(s3),this.CONSUME(sv),this.MANY(()=>{this.CONSUME(ik),this.CONSUME2(sv)}),this.CONSUME3(sv),this.MANY2(()=>{this.CONSUME2(ik),this.CONSUME4(sv)}),this.SUBRULE(this.lineEnd)}),this.RULE("styleStatement",()=>{this.CONSUME(s4),this.CONSUME(sv),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("styles",()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(ik),this.SUBRULE2(this.styleValue)})}),this.RULE("styleValue",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sb),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iC),"ALT")},{ALT:(0,E.p)(()=>{this.CONSUME(iT),this.CONSUME2(sb)},"ALT")}]),this.CONSUME(iN),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE("styleComponent",()=>{this.OR([{ALT:(0,E.p)(()=>this.CONSUME(sb),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(sC),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iI),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iC),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iv),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(i_),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ix),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iU),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iM),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iN),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iO),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iR),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iS),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iL),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iy),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iA),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(ig),"ALT")},{ALT:(0,E.p)(()=>this.CONSUME(iT),"ALT")}])}),this.performSelfAnalysis()}isMetadataAssignment(){let e=this.LA(1).tokenType;return(e===sv||e===ib||e===sx)&&this.LA(2).tokenType===iE}isStatementStart(){let e=this.LA(1).tokenType;return e!==eW&&e!==sw&&e!==sM}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===sv&&!0===iG[this.LA(1).image.toLowerCase()]}hasLabeledRight(e){if(!ij(this.LA(1)))return!1;for(let t=2;;t++){let s=this.LA(t);if(e.includes(s.tokenType))return!0;if(!ij(s))return!1}}},iW=class extends Error{constructor(e,t,s){super(`${e} (line ${t}, column ${s})`),this.line=t,this.column=s,this.name="UsecaseJsonError"}static{(0,E.p)(this,"UsecaseJsonError")}},iz=(0,E.p)((e,t,s,i)=>{let n=s,a=i,r=Math.min(Math.max(t,0),e.length);for(let t=0;t<r;t++){let s=e[t];"\r"===s?(n++,a=1):"\n"===s?(0===t||"\r"!==e[t-1])&&(n++,a=1):a++}return{line:n,column:a}},"locationAtOffset"),iH=(0,E.p)((e,t,s,i)=>{let n=/\bposition (\d+)\b/u.exec(e);if(n)return iz(t,Number.parseInt(n[1],10),s,i);let a=/\bline (\d+) column (\d+)\b/u.exec(e);if(a){let e=Number.parseInt(a[1],10),t=Number.parseInt(a[2],10);return{line:s+e-1,column:1===e?i+t-1:t}}if(/unexpected end|end of json input/iu.test(e))return iz(t,t.length,s,i)},"locationFromErrorMessage"),iV=class extends Error{constructor(e){super("Invalid JSON token"),this.offset=e}static{(0,E.p)(this,"JsonWalkError")}},iY=class{constructor(e){this.text=e,this.offset=0,this.propertyOrder={}}static{(0,E.p)(this,"PropertyOrderCollector")}collect(){if(this.skipWhitespace(),this.collectValue(""),this.skipWhitespace(),this.offset!==this.text.length)throw new iV(this.offset);return this.propertyOrder}collectValue(e){this.skipWhitespace();let t=this.text[this.offset];if("{"===t)this.collectObject(e);else if("["===t)this.collectArray(e);else if('"'===t)this.readString(!1);else if("t"===t)this.consumeLiteral("true");else if("f"===t)this.consumeLiteral("false");else if("n"===t)this.consumeLiteral("null");else if("-"===t||t>="0"&&t<="9")this.consumeNumber();else throw new iV(this.offset)}collectObject(e){this.offset++;let t=[],s=new Set;if(this.propertyOrder[e]=t,this.skipWhitespace(),"}"===this.text[this.offset])return void this.offset++;for(;this.offset<this.text.length&&'"'===this.text[this.offset];){let i=this.readString(!0),n=`${e}/${i.replaceAll("~","~0").replaceAll("/","~1")}`;if(s.has(i)?this.deletePointerSubtree(n):(s.add(i),t.push(i)),this.skipWhitespace(),":"!==this.text[this.offset])break;if(this.offset++,this.collectValue(n),this.skipWhitespace(),"}"===this.text[this.offset])return void this.offset++;if(","!==this.text[this.offset])break;this.offset++,this.skipWhitespace()}throw new iV(this.offset)}collectArray(e){if(this.offset++,this.skipWhitespace(),"]"===this.text[this.offset])return void this.offset++;let t=0;for(;this.offset<this.text.length;){if(this.collectValue(`${e}/${t}`),t++,this.skipWhitespace(),"]"===this.text[this.offset])return void this.offset++;if(","!==this.text[this.offset])break;this.offset++,this.skipWhitespace()}throw new iV(this.offset)}readString(e){this.offset++;let t="";for(;this.offset<this.text.length;){let s=this.offset,i=this.text[this.offset++];if('"'===i)return t;if(32>i.charCodeAt(0))throw new iV(s);if("\\"!==i){e&&(t+=i);continue}let n=this.offset,a=this.text[this.offset++];switch(a){case'"':case"\\":case"/":e&&(t+=a);break;case"b":e&&(t+="\b");break;case"f":e&&(t+="\f");break;case"n":e&&(t+="\n");break;case"r":e&&(t+="\r");break;case"t":e&&(t+=" ");break;case"u":{let s=this.text.slice(this.offset,this.offset+4);if(!/^[\dA-Fa-f]{4}$/u.test(s))throw new iV(this.offset);e&&(t+=String.fromCharCode(Number.parseInt(s,16))),this.offset+=4;break}default:throw new iV(n)}}throw new iV(this.offset)}consumeLiteral(e){let t=0;for(let s of e){if(this.text[this.offset+t]!==s)throw new iV(this.offset+t);t++}this.offset+=e.length}consumeNumber(){if("-"===this.text[this.offset]&&this.offset++,"0"===this.text[this.offset])this.offset++;else if(this.text[this.offset]>="1"&&this.text[this.offset]<="9")for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++;else throw new iV(this.offset);if("."===this.text[this.offset]){if(this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new iV(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}if("e"===this.text[this.offset]||"E"===this.text[this.offset]){if(this.offset++,("+"===this.text[this.offset]||"-"===this.text[this.offset])&&this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new iV(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}}skipWhitespace(){for(;this.offset<this.text.length;){let e=this.text[this.offset];if(" "!==e&&" "!==e&&"\n"!==e&&"\r"!==e)return;this.offset++}}deletePointerSubtree(e){let t=`${e}/`;for(let s of Object.keys(this.propertyOrder))(s===e||s.startsWith(t))&&delete this.propertyOrder[s]}};function iX(e,t,s){let i;try{i=JSON.parse(e)}catch(a){let i=a instanceof Error?a.message:String(a),n=iH(i,e,t,s);if(!n){let i=0;try{new iY(e).collect()}catch(e){e instanceof iV&&(i=e.offset)}n=iz(e,i,t,s)}throw new iW(`Invalid JSON: ${i}`,n.line,n.column)}if("object"!=typeof i||null===i||Array.isArray(i))throw new iW("JSON value must have an object root",t,s);return{value:i,propertyOrder:new iY(e).collect()}}(0,E.p)(iX,"parseOrderedJsonObject");var iJ=(0,E.p)(e=>({shape:"normal"===e.type?"actor":"hollow"===e.type?"actor-hollow":"awesome"===e.type?"actor-awesome":"actor-icon",...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"actor",actorType:e.type,business:e.business,labelType:e.labelType,...e.icon?{icon:e.icon}:{},...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"actorNode"),iq=(0,E.p)(e=>({shape:e.shape,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"usecase",useCaseShape:e.shape,business:e.business,labelType:e.labelType,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"useCaseNode"),iZ=(0,E.p)(e=>({label:e.label,shape:"note",attrs:{kind:"note",target:e.target,labelType:e.labelType}}),"noteNode"),iQ=(0,E.p)(e=>({label:e.id,shape:"json-table",...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"json",value:e.value,propertyOrder:e.propertyOrder,labelType:"text"}}),"jsonNode"),i0=(0,E.p)(e=>({id:e.id,source:e.source,target:e.target,...e.label?{label:e.label}:{},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{relationshipType:e.type,arrowType:e.arrowType,minlen:e.minlen,explicitId:e.explicitId,animate:e.animate,...e.animation?{animation:e.animation}:{},...e.labelType?{labelType:e.labelType}:{}}}),"relationshipEdge"),i1=(0,E.p)(e=>({id:`${e.id}-edge`,source:e.id,target:e.target,attrs:{relationshipType:"note",arrowType:2,pattern:"dotted",minlen:1,explicitId:!1,animate:!1,internal:!0}}),"noteEdge"),i2=(0,E.p)((e,t,s,i)=>{let n={};for(let t of e.getActors().values())n[t.id]=iJ(t);for(let t of e.getUseCases().values())n[t.id]=iq(t);for(let t of e.getNotes().values())n[t.id]=iZ(t);for(let t of e.getJsonNodes().values())n[t.id]=iQ(t);let a={};for(let t of e.getSystemBoundaries().values())a[t.id]={...t.label===t.id?{}:{title:t.label},nodes:[...t.members],...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:"systemBoundary",boundaryType:t.type,labelType:t.labelType}};let r={};for(let t of e.getClassDefs().values())r[t.id]={styles:[...t.styles]};let o=e.getDirection();return{version:1,diagramType:"usecase",source:t,header:{keyword:"usecase",direction:"TD"===o?"TB":o,span:s},...e.getAccTitle()?{accTitle:e.getAccTitle()}:{},...e.getAccDescription()?{accDescr:e.getAccDescription()}:{},nodes:n,edges:[...e.getRelationships().map(i0),...[...e.getNotes().values()].map(i1)],groups:a,classDefs:r,statements:i}},"buildUsecaseGraphAST"),i5=(0,E.p)(e=>`line ${e.line}, column ${e.column} [${e.span[0]},${e.span[1]})`,"locationText"),i6=(0,E.p)(e=>void 0===e?"":` (label "${e}")`,"labelSuffix"),i3=(0,E.p)(e=>e.generated?e.label:void 0,"generatedFrom"),i4=(0,E.p)((e,t)=>{for(let s of t)e.includes(s)||e.push(s)},"pushUnique"),i9=class{constructor(e){this.db=e,this.source="",this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=e.createModel()}static{(0,E.p)(this,"UsecaseModelBuilder")}reset(e){this.model=this.db.createModel(),this.source=e,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(e){this.elements.push(e)}addBoundary(e){this.boundaries.push(e)}addJson(e){this.jsonDrafts.push(e)}addRelationship(e){this.relationshipDrafts.push(e)}addNote(e){this.noteDrafts.push(e)}addMetadataAssignment(e,t,s,i){this.metadataAssignments.push({target:e,targetLocation:t,metadata:s,statement:i})}addClassDef(e,t){this.classDefinitions.push({ids:e,styles:t})}addClassAssignment(e,t){this.classAssignments.push({targets:e,classes:t})}addStyleAssignment(e,t,s){this.styleAssignments.push({target:e,location:t,styles:s})}setDirection(e){this.directions.push("TD"===e?"TB":e)}setAccTitle(e){this.model.accTitle=e}setAccDescription(e){this.model.accDescription=e}setStatements(e){this.statements=e}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(e){let t=new Map,s=new Map,i=new Map,n=new Map;for(let e of this.relationshipDrafts)this.recordFirst(n,e.source.id,e.source.location.span[0]),this.recordFirst(n,e.target.id,e.target.location.span[0]);for(let e of this.elements)this.recordFirst(n,e.id,e.location.span[0]);for(let e of this.boundaries)this.recordFirst(n,e.id,e.location.span[0]);for(let e of this.jsonDrafts)this.recordFirst(n,e.id,e.location.span[0]);for(let e of[...this.elements.map(e=>({offset:e.location.span[0],type:"element",value:e})),...this.boundaries.map(e=>({offset:e.location.span[0],type:"boundary",value:e})),...this.jsonDrafts.map(e=>({offset:e.location.span[0],type:"json",value:e})),...this.relationshipDrafts.filter(e=>e.explicitId).map(e=>({offset:e.explicitIdLocation.span[0],type:"edge",value:e}))].sort((e,t)=>e.offset-t.offset))"element"===e.type?this.collectElement(e.value,t,s):"boundary"===e.type?this.collectBoundary(e.value,t,i):"json"===e.type?this.registerUnique(t,e.value.id,"json",e.value.location,!1):this.registerUnique(t,e.value.explicitId,"edge",e.value.explicitIdLocation,!1);this.materializeElements(s,n),this.materializeBoundaries(i,n),this.materializeJson(n);let a=this.materializeRelationships(t,s,n);this.reorderElements(s,n),this.applyMetadataAssignments(t,s,i,a),this.validateAndRefreshElements(s),this.refreshBoundaries(i,s),this.materializeNotes(t),this.applyClassDefinitions(),this.applyClassesAndStyles(t,a),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...t].map(([e,t])=>[e,t.kind]));let r=i2(this,this.source,e,this.statements);return this.model.ast=r,this.db.commit(this.model),r}collectElement(e,t,s){let i=t.get(e.id),n=i3({generated:e.generated,label:e.label.text});i&&i.kind!==e.kind&&this.conflict(`ID '${e.id}' is declared as both ${i.kind} and ${e.kind}`,e.location,i.location,n,i3(i)),i&&(i.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,i.location,n,i3(i));let a=s.get(e.id);if(!a){let i={kind:e.kind,id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],...e.parentId?{parentId:e.parentId,parentLocation:e.parentLocation}:{},...e.shape?{shape:e.shape}:{},...e.stereotype?{stereotype:e.stereotype,stereotypeLocation:e.location}:{}};this.applyDeclarationMetadata(i,e.metadata),s.set(e.id,i),t.set(e.id,{kind:e.kind,location:e.location,generated:e.generated,label:e.label.text});return}(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`ID '${e.id}' has conflicting labels`,e.location,a.location),e.shape&&a.shape&&e.shape!==a.shape&&this.conflict(`Use case '${e.id}' has conflicting shapes`,e.location,a.location),e.parentId&&a.parentId&&e.parentId!==a.parentId&&this.conflict(`Element '${e.id}' belongs to more than one system boundary`,e.parentLocation??e.location,a.parentLocation??a.location),e.stereotype&&a.stereotype&&e.stereotype!==a.stereotype&&this.conflict(`Element '${e.id}' has conflicting stereotypes`,e.location,a.stereotypeLocation??a.location),a.shape??=e.shape,a.parentId??=e.parentId,a.parentLocation??=e.parentLocation,a.stereotype??=e.stereotype,a.stereotypeLocation??=e.stereotype?e.location:void 0,i4(a.classes,e.classes),this.applyDeclarationMetadata(a,e.metadata)}collectBoundary(e,t,s){let i=t.get(e.id),n=i3({generated:e.generated,label:e.label.text});i&&"boundary"!==i.kind&&this.conflict(`ID '${e.id}' is declared as both ${i.kind} and boundary`,e.location,i.location,n,i3(i)),i&&(i.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,i.location,n,i3(i));let a=s.get(e.id);if(a){(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`Boundary '${e.id}' has conflicting titles`,e.location,a.location),i4(a.classes,e.classes);return}s.set(e.id,{id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],styles:[],members:[]}),t.set(e.id,{kind:"boundary",location:e.location,generated:e.generated,label:e.label.text})}materializeElements(e,t){for(let s of[...e.values()].sort((e,s)=>(t.get(e.id)??0)-(t.get(s.id)??0)))this.setElementModel(s)}materializeBoundaries(e,t){for(let s of[...e.values()].sort((e,s)=>(t.get(e.id)??0)-(t.get(s.id)??0)))this.model.systemBoundaries.set(s.id,{id:s.id,label:s.label.text,labelType:s.label.type,type:s.type??"rect",members:[],classes:[...s.classes],styles:[...s.styles]})}materializeJson(e){for(let t of[...this.jsonDrafts].sort((t,s)=>(e.get(t.id)??0)-(e.get(s.id)??0)))this.model.jsonNodes.set(t.id,{id:t.id,value:t.value,propertyOrder:t.propertyOrder,classes:[...t.classes],styles:[]})}materializeRelationships(e,t,s){let i=new Map,n=0;for(let a of this.relationshipDrafts){let r=this.resolveEndpoint(a.source,e,t,s),o=this.resolveEndpoint(a.target,e,t,s);this.validateRelationship(a,r,o,e);let l=a.explicitId??`edge-${n++}`,h={id:l,explicitId:!!a.explicitId,source:a.source.id,target:a.target.id,type:a.type,arrowType:a.arrowType,...a.label?{label:a.label.text,labelType:a.label.type}:{},minlen:a.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(h),i.set(l,{draft:a,relationship:h})}return this.model.relationshipCounter=n,i}resolveEndpoint(e,t,s,i){if(e.classesOnReference&&!e.declaration)throw Error(`Relationship endpoint '${e.id}' uses ::: without declaring the node at ${i5(e.location)}`);let n=t.get(e.id);return n?n.kind:(s.set(e.id,{kind:"usecase",id:e.id,label:e.label,location:e.location,generated:e.generated,shape:"ellipse",classes:[]}),t.set(e.id,{kind:"usecase",location:e.location,generated:e.generated,label:e.label.text}),this.recordFirst(i,e.id,e.location.span[0]),"usecase")}reorderElements(e,t){let s=new Map(this.model.actors),i=new Map(this.model.useCases);for(let n of(this.model.actors.clear(),this.model.useCases.clear(),[...e.values()].sort((e,s)=>(t.get(e.id)??0)-(t.get(s.id)??0)))){s.has(n.id)||i.has(n.id)||this.setElementModel(n);let e=s.get(n.id)??this.model.actors.get(n.id),t=i.get(n.id)??this.model.useCases.get(n.id);e?this.model.actors.set(n.id,e):t&&this.model.useCases.set(n.id,t)}}applyMetadataAssignments(e,t,s,i){for(let n of this.metadataAssignments){let a=e.get(n.target);if(!a){let e=this.inferMetadataKind(n.metadata);throw Error(`Metadata target '${n.target}' is unresolved${e?` (metadata implies ${e})`:""} at ${i5(n.targetLocation)}`)}if("actor"===a.kind||"usecase"===a.kind)this.applyStandaloneElementMetadata(t.get(n.target),n.metadata);else if("boundary"===a.kind){let e=s.get(n.target);for(let t of n.metadata.properties)("type"!==t.key||"rect"!==t.value&&"package"!==t.value)&&this.invalidMetadata(n.target,a.kind,t),e.type=t.value}else if("edge"===a.kind){let e=i.get(n.target);if(!e)throw Error(`Metadata target '${n.target}' is not an explicit edge at ${i5(n.targetLocation)}`);for(let t of(n.statement.kind="edgeMetadata",n.statement.edges=[{id:n.target,span:n.statement.span,idSpan:n.targetLocation.span,...n.statement.metadata?{metadata:n.statement.metadata}:{}}],delete n.statement.nodes,n.metadata.properties))"animate"===t.key&&"boolean"==typeof t.value?e.relationship.animate=t.value:"animation"===t.key&&("fast"===t.value||"slow"===t.value)?(e.relationship.animation=t.value,e.relationship.animate=!0):this.invalidMetadata(n.target,a.kind,t)}else for(let e of n.metadata.properties)this.invalidMetadata(n.target,a.kind,e)}for(let{relationship:e}of i.values())e.animation&&(e.animate=!0)}applyStandaloneElementMetadata(e,t){for(let s of t.properties)"actor"===e.kind?this.applyActorProperty(e,s,!0):"business"===s.key&&"boolean"==typeof s.value?e.business=s.value:this.invalidMetadata(e.id,e.kind,s)}applyDeclarationMetadata(e,t){if(t)for(let s of t.properties)"actor"===e.kind?this.applyActorProperty(e,s,!1):"business"===s.key&&"boolean"==typeof s.value?(void 0!==e.business&&e.business!==s.value&&this.conflict(`Use case '${e.id}' has conflicting business metadata`,s.location,e.location),e.business=s.value):this.invalidMetadata(e.id,e.kind,s)}applyActorProperty(e,t,s){"type"===t.key&&("normal"===t.value||"hollow"===t.value||"awesome"===t.value)?(s||void 0===e.actorType||e.actorType===t.value||this.conflict(`Actor '${e.id}' has conflicting type metadata`,t.location,e.location),e.actorType=t.value):"icon"===t.key&&"string"==typeof t.value?(s||void 0===e.icon||e.icon===t.value||this.conflict(`Actor '${e.id}' has conflicting icon metadata`,t.location,e.location),e.icon=t.value):"business"===t.key&&"boolean"==typeof t.value?(s||void 0===e.business||e.business===t.value||this.conflict(`Actor '${e.id}' has conflicting business metadata`,t.location,e.location),e.business=t.value):this.invalidMetadata(e.id,e.kind,t)}validateAndRefreshElements(e){for(let t of e.values()){let e=t.icon?"icon":t.actorType??"normal";if("actor"===t.kind){if(t.icon&&t.actorType&&"normal"!==t.actorType)throw Error(`Actor '${t.id}' cannot combine icon with type '${t.actorType}' at ${i5(t.location)}`);if(t.business&&("icon"===e||"awesome"===e))throw Error(`Business actor '${t.id}' must use normal or hollow geometry at ${i5(t.location)}`)}else if((t.shape??"ellipse")==="rect"&&t.business)throw Error(`Rectangular use case '${t.id}' cannot be a business use case at ${i5(t.location)}`);this.setElementModel(t)}}refreshBoundaries(e,t){for(let t of e.values())t.members.length=0;for(let t of[...this.elements].sort((e,t)=>e.location.span[0]-t.location.span[0])){if(!t.parentId)continue;let s=e.get(t.parentId);if(!s)throw Error(`Parent boundary '${t.parentId}' for '${t.id}' is unresolved at ${i5(t.parentLocation??t.location)}`);s.members.includes(t.id)||s.members.push(t.id)}for(let s of t.values())if(s.parentId&&!e.has(s.parentId))throw Error(`Parent boundary '${s.parentId}' for '${s.id}' is unresolved at ${i5(s.parentLocation??s.location)}`);for(let t of e.values()){let e=this.model.systemBoundaries.get(t.id);e.type=t.type??"rect",e.members=[...t.members],e.classes=[...t.classes],e.styles=[...t.styles]}}materializeNotes(e){let t=0;for(let s of this.noteDrafts){let i=e.get(s.target);if(!i)throw Error(`Note target '${s.target}' is unresolved at ${i5(s.targetLocation)}`);"actor"!==i.kind&&"usecase"!==i.kind&&this.conflict(`Note target '${s.target}' must be an actor or use case, not ${i.kind}`,s.targetLocation,i.location);let n=`note-${t++}`;this.model.notes.set(n,{id:n,target:s.target,label:s.label.text,labelType:s.label.type})}this.model.noteCounter=t}applyClassDefinitions(){for(let e of this.classDefinitions)for(let t of e.ids)this.model.classDefs.set(t,{id:t,styles:[...e.styles]})}applyClassesAndStyles(e,t){for(let s of this.classAssignments)for(let i of s.targets)i4(this.getStylable(i.id,e,t,i.location).classes,s.classes);for(let s of this.styleAssignments)this.getStylable(s.target,e,t,s.location).styles.push(...s.styles)}getStylable(e,t,s,i){let n=t.get(e)?.kind,a="actor"===n?this.model.actors.get(e):"usecase"===n?this.model.useCases.get(e):"boundary"===n?this.model.systemBoundaries.get(e):"json"===n?this.model.jsonNodes.get(e):"edge"===n?s.get(e)?.relationship:void 0;if(!a)throw Error(`Class/style target '${e}' is unresolved or anonymous at ${i5(i)}`);return a}validateRelationship(e,t,s,i){let n=(0,E.p)(e=>"actor"===e||"usecase"===e||"json"===e,"allowed");if(n(t)||this.conflict(`Relationship source '${e.source.id}' cannot be ${t}`,e.source.location,i.get(e.source.id).location),n(s)||this.conflict(`Relationship target '${e.target.id}' cannot be ${s}`,e.target.location,i.get(e.target.id).location),("include"===e.type||"extend"===e.type)&&("usecase"!==t||"usecase"!==s))throw Error(`${e.type} relationship requires use-case endpoints at ${i5(e.location)}`);if("generalization"===e.type&&("actor"!==t&&"usecase"!==t||t!==s))throw Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${i5(e.location)}`);if("association"===e.type&&("json"===t||"json"===s)&&![0,1,2].includes(e.arrowType))throw Error(`JSON relationship '${e.source.id}' to '${e.target.id}' permits only point, reversed-point, or markerless solid association at ${i5(e.location)}`)}setElementModel(e){if("actor"===e.kind){let t=e.icon?"icon":e.actorType??"normal";this.model.useCases.delete(e.id),this.model.actors.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,type:t,...e.icon?{icon:e.icon}:{},business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.actors.get(e.id)?.styles??[]})}else this.model.actors.delete(e.id),this.model.useCases.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,shape:e.shape??"ellipse",business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.useCases.get(e.id)?.styles??[]})}inferMetadataKind(e){let t=new Set(["actor","usecase","boundary","edge"]);for(let s of e.properties)if("icon"===s.key)t.clear(),t.add("actor");else if("animate"===s.key||"animation"===s.key)t.clear(),t.add("edge");else if("type"===s.key)t.clear(),"rect"===s.value||"package"===s.value?t.add("boundary"):("normal"===s.value||"hollow"===s.value||"awesome"===s.value)&&t.add("actor");else{if("business"!==s.key)return;t.delete("boundary"),t.delete("edge")}return 1===t.size?[...t][0]:void 0}invalidMetadata(e,t,s){throw Error(`Metadata property '${s.key}' is invalid for ${t} '${e}' at ${i5(s.location)}`)}registerUnique(e,t,s,i,n){let a=e.get(t);a&&this.conflict(`ID '${t}' is declared more than once (${a.kind} and ${s})`,i,a.location,void 0,i3(a)),e.set(t,{kind:s,location:i,generated:n})}recordFirst(e,t,s){let i=e.get(t);(void 0===i||s<i)&&e.set(t,s)}conflict(e,t,s,i,n){throw Error(`${e} at ${i5(t)}${i6(i)}; previous declaration at ${i5(s)}${i6(n)}`)}},i8=iK.getBaseCstVisitorConstructor(),i7=new class extends i8{constructor(){super(),this.builder=new i9(sg),this.source="",this.anonymousEdge=0,this.anonymousNote=0,this.validateVisitor()}static{(0,E.p)(this,"UsecaseVisitor")}build(e,t){this.source=t,this.parentBoundary=void 0,this.anonymousEdge=0,this.anonymousNote=0,this.builder.reset(t),this.visit(e)}start(e){let t=this.tokens(e,"USECASE")[0],s=[];for(let t of this.nodes(e,"line"))s.push(this.visit(t));this.builder.setStatements(s),this.builder.finalize(this.tokenSpan(t))}line(e){let t=this.firstNode(e,"blankLine","commentLine","statement");return this.wrap(t,this.visit(t))}statement(e){return this.visit(this.firstNode(e,"accTitleStatement","accDescrStatement","directionStatement","actorStatement","systemBoundaryStatement","noteStatement","jsonStatement","classDefStatement","classStatement","styleStatement","metadataAssignmentStatement","entityStatement"))}lineEnd(e){}blankLine(e){return{kind:"blank",span:this.tokenSpan(this.tokens(e,"NEWLINE")[0])}}commentLine(e){return{kind:"comment",span:this.tokenSpan(this.tokens(e,"COMMENT")[0])}}accTitleStatement(e){let t=this.tokens(e,"ACC_TITLE_LINE")[0].image;return this.builder.setAccTitle(t.slice(t.indexOf(":")+1).trim()),{kind:"accTitle",span:[0,0]}}accDescrStatement(e){let t=this.tokens(e,"ACC_DESCR_LINE")[0],s=this.tokens(e,"ACC_DESCR_BLOCK")[0],i=t?t.image.slice(t.image.indexOf(":")+1).trim():s.image.slice(s.image.indexOf("{")+1,s.image.lastIndexOf("}")).trim();return this.builder.setAccDescription(i),{kind:"accDescr",span:[0,0]}}actorStatement(e){let t=this.nodes(e,"actorItem"),s=t.map(e=>this.visit(e)),i=this.nodes(e,"relationTail")[0],n=s.map((e,s)=>this.actorOccurrence(t[s],e,!0));for(let e of s)this.builder.addElement(this.actorDraft(e));if(!i)return{kind:"node",span:[0,0],nodes:n};let a=this.visit(i);a.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(a.target));let r=this.relationshipDraft(s[0],a,this.nodeLocation(i));this.builder.addRelationship(r);let o=r.explicitId??`edge-${this.anonymousEdge++}`;return n.push(this.entityOccurrence(this.nodes(i.children,"entityName")[0],a.target,a.target.explicitDeclaration)),{kind:"edge",span:[0,0],nodes:n,edges:[{id:o,span:[0,0],...r.explicitIdLocation?{idSpan:r.explicitIdLocation.span}:{},...r.label?{labelSpan:r.label.span}:{}}]}}actorItem(e){let t=this.visit(this.nodes(e,"actorName")[0]),s=this.nodes(e,"metadata")[0],i=this.nodes(e,"stereotype")[0],n=this.nodes(e,"classSuffix")[0],a=n?this.visit(n):{classes:[],spans:[]};return{...t,...s?{metadata:this.visit(s)}:{},...i?{stereotype:this.visit(i)}:{},classes:a.classes,classSpans:a.spans}}actorName(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0];if(t){let s=this.nodes(e,"nodeLabel")[0],i=s?this.visit(s):this.tokenLabel(t);return{id:t.image,label:i,location:this.tokenLocation(t),generated:!1,classes:[],classSpans:[]}}let i=this.tokenLabel(s);return{id:this.generateId(i.text),label:i,location:this.tokenLocation(s),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(e){let t=this.nodes(e,"actorItem"),s=t.map(e=>this.visit(e));for(let e of s)this.builder.addElement(this.actorDraft(e));return{kind:"node",span:[0,0],nodes:s.map((e,s)=>this.actorOccurrence(t[s],e,!0))}}entityStatement(e){let t=this.nodes(e,"entityName"),s=this.visit(t[0]),i=this.nodes(e,"relationTail")[0];if(!i)return s.explicitDeclaration=!0,s.shape??="ellipse",this.builder.addElement(this.entityDraft(s)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(t[0],s,!0)]};s.explicitDeclaration&&this.builder.addElement(this.entityDraft(s));let n=this.visit(i);n.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(n.target));let a={source:this.endpoint(s),target:this.endpoint(n.target),location:this.nodeLocation(i),...n.explicitId?{explicitId:n.explicitId,explicitIdLocation:n.explicitIdLocation}:{},...n.arrow};this.builder.addRelationship(a);let r=a.explicitId??`edge-${this.anonymousEdge++}`;return{kind:"edge",span:[0,0],nodes:[this.entityOccurrence(t[0],s,s.explicitDeclaration),this.entityOccurrence(this.nodes(i.children,"entityName")[0],n.target,n.target.explicitDeclaration)],edges:[{id:r,span:[0,0],...a.explicitIdLocation?{idSpan:a.explicitIdLocation.span}:{},...a.label?{labelSpan:a.label.span}:{}}]}}entityName(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],i=this.nodes(e,"nodeLabel")[0],n=this.nodes(e,"useCaseMetadata")[0],a=this.nodes(e,"stereotype")[0],r=this.nodes(e,"classSuffix")[0],o=r?this.visit(r):{classes:[],spans:[]};if(t){let s=i?this.visit(i):this.tokenLabel(t),r=i?this.tokens(e,"LBRACKET").length?"rect":"ellipse":void 0;return{id:t.image,label:s,location:this.tokenLocation(t),generated:!1,...r?{shape:r}:{},...n?{metadata:this.visit(n)}:{},...a?{stereotype:this.visit(a)}:{},classes:o.classes,classSpans:o.spans,explicitDeclaration:!!(r||n||a)}}let l=this.tokenLabel(s);return{id:this.generateId(l.text),label:l,location:this.tokenLocation(s),generated:!0,...n?{metadata:this.visit(n)}:{},...a?{stereotype:this.visit(a)}:{},classes:o.classes,classSpans:o.spans,explicitDeclaration:!!(n||a)}}nodeLabel(e){let t=this.allTokens(e);if(1===t.length&&("PLAIN_STRING"===t[0].tokenType.name||"MARKDOWN_STRING"===t[0].tokenType.name))return this.tokenLabel(t[0]);let s=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return{text:this.source.slice(s[0],s[1]),type:"text",span:s}}useCaseMetadata(e){return this.visit(this.nodes(e,"metadata")[0])}relationTail(e){let t=this.tokens(e,"IDENTIFIER")[0];return{...t?{explicitId:t.image,explicitIdLocation:this.tokenLocation(t)}:{},arrow:this.visit(this.nodes(e,"arrow")[0]),target:this.visit(this.nodes(e,"entityName")[0])}}arrow(e){return this.visit(this.firstNode(e,"semanticRelation","forwardSolidOperator","backwardSolidOperator","markerlessSolidOperator","forwardCircleOperator","backwardCircleOperator","forwardCrossOperator","backwardCrossOperator"))}edgeLabel(e){return this.nodeLabel(e)}semanticRelation(e){if(this.tokens(e,"GENERALIZATION").length)return{type:"generalization",arrowType:0,minlen:1};let t=this.tokens(e,"INCLUDE").length?"include":"extend",s=this.tokens(e,"include"===t?"INCLUDE":"EXTEND")[0];return{type:t,arrowType:0,label:{text:t,type:"text",span:this.tokenSpan(s)},minlen:1}}metadata(e){return{properties:this.nodes(e,"metadataProperty").map(e=>this.visit(e)),location:this.ctxLocation(e)}}metadataProperty(e){let t=this.allTokens(e).filter(e=>"COLON"!==e.tokenType.name),s=t[0],i=t[1],n="TRUE"===i.tokenType.name||"FALSE"!==i.tokenType.name&&this.decodePlain(i),a=[s.startOffset,(i.endOffset??i.startOffset)+1];return{key:this.decodePlain(s),value:n,span:a,keySpan:this.contentSpan(s),valueSpan:this.contentSpan(i),location:this.tokenLocation(s)}}metadataSeparator(e){}systemBoundaryStatement(e){let t=this.visit(this.nodes(e,"systemBoundaryName")[0]),s=this.nodes(e,"classSuffix")[0],i=s?this.visit(s):{classes:[],spans:[]};t.classes=i.classes,this.builder.addBoundary(t);let n=this.parentBoundary;this.parentBoundary={id:t.id,location:t.location};let a=this.nodes(e,"systemBoundaryContent")[0],r=a?this.visit(a):[];this.parentBoundary=n;let o=this.tokens(e,"END")[0],l=this.nodes(e,"metadata")[0],h=l?this.visit(l):void 0,c={kind:"group",span:[0,0],group:t.id,idSpan:t.location.span,titleSpan:t.label.span,endSpan:this.tokenSpan(o),classSpans:i.spans,...h?{metadata:h.properties.map(({key:e,span:t,keySpan:s,valueSpan:i})=>({key:e,span:t,keySpan:s,valueSpan:i}))}:{},...r.length?{children:r}:{}};return h&&this.builder.addMetadataAssignment(t.id,t.location,h,c),c}systemBoundaryName(e){let t=this.tokens(e,"IDENTIFIER")[0];if(t){let s=this.nodes(e,"nodeLabel")[0];return{id:t.image,label:s?this.visit(s):this.tokenLabel(t),location:this.tokenLocation(t),generated:!1,classes:[]}}let s=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],i=this.tokenLabel(s);return{id:this.generateId(i.text),label:i,location:this.tokenLocation(s),generated:!0,classes:[]}}systemBoundaryContent(e){return[...this.nodes(e,"blankLine"),...this.nodes(e,"commentLine"),...this.nodes(e,"boundaryElement")].sort((e,t)=>(e.location?.startOffset??0)-(t.location?.startOffset??0)).map(e=>this.wrap(e,this.visit(e)))}boundaryElement(e){let t=this.nodes(e,"actorDeclarationOnly")[0];if(t)return this.visit(t);let s=this.nodes(e,"entityName")[0],i=this.visit(s);return i.explicitDeclaration=!0,i.shape??="ellipse",this.builder.addElement(this.entityDraft(i)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(s,i,!0)]}}metadataAssignmentStatement(e){let t=this.visit(this.nodes(e,"metadataAssignmentTarget")[0]),s=this.visit(this.nodes(e,"metadata")[0]),i={kind:"metadata",span:[0,0],nodes:[{id:t.id,span:t.location.span,idSpan:t.location.span}],metadata:s.properties.map(({key:e,span:t,keySpan:s,valueSpan:i})=>({key:e,span:t,keySpan:s,valueSpan:i}))};return this.builder.addMetadataAssignment(t.id,t.location,s,i),i}metadataAssignmentTarget(e){let t=this.allTokens(e)[0],s=this.tokenLabel(t);return{id:"IDENTIFIER"===t.tokenType.name?t.image:this.generateId(s.text),location:this.tokenLocation(t)}}noteStatement(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.visit(this.nodes(e,"nodeLabel")[0]);return this.builder.addNote({target:t.image,targetLocation:this.tokenLocation(t),label:s,location:this.ctxLocation(e)}),{kind:"note",span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:s.span,nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}stereotype(e){let t=this.tokens(e,"STEREOTYPE_TEXT")[0];return{value:t.image.trim(),span:this.tokenSpan(t)}}classSuffix(e){let t=this.tokens(e,"IDENTIFIER");return{classes:t.map(e=>e.image),spans:t.map(e=>this.tokenSpan(e))}}jsonStatement(e){let t=this.tokens(e,"JSON_DECLARATION_START")[0],s=this.tokens(e,"JSON_OBJECT_LITERAL")[0],i=/^json[\t ]+(\w+)/.exec(t.image),n=i[1],a=i[0].length-n.length,r={span:[t.startOffset+a,t.startOffset+a+n.length],line:t.startLine??1,column:(t.startColumn??1)+a},o=iX(s.image,s.startLine??1,s.startColumn??1),l=this.nodes(e,"classSuffix")[0],h=l?this.visit(l):{classes:[],spans:[]},c={id:n,value:o.value,propertyOrder:o.propertyOrder,location:r,classes:h.classes};return this.builder.addJson(c),{kind:"json",span:[0,0],nodes:[{id:n,span:r.span,idSpan:r.span,defines:!0,classSpans:h.spans}],classSpans:h.spans}}directionStatement(e){let t=this.allTokens(e).find(e=>["TD","TB","BT","RL","LR"].includes(e.tokenType.name));return this.builder.setDirection(t.image),{kind:"direction",span:[0,0]}}classDefStatement(e){let t=this.tokens(e,"IDENTIFIER"),s=this.visit(this.nodes(e,"styles")[0]);return this.builder.addClassDef(t.map(e=>e.image),s),{kind:"classDef",span:[0,0],ref:t[0].image,refSpan:this.tokenSpan(t[0])}}classStatement(e){let t=this.tokens(e,"IDENTIFIER"),s=1;for(;s<t.length&&this.source.slice((t[s-1].endOffset??t[s-1].startOffset)+1,t[s].startOffset).includes(",");s++);let i=t.slice(0,s).map(e=>({id:e.image,location:this.tokenLocation(e)})),n=t.slice(s).map(e=>e.image);return this.builder.addClassAssignment(i,n),{kind:"classAssign",span:[0,0],ref:n[0],refSpan:this.tokenSpan(t[s]),nodes:i.map(({id:e,location:t})=>({id:e,span:t.span,idSpan:t.span}))}}styleStatement(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.visit(this.nodes(e,"styles")[0]);return this.builder.addStyleAssignment(t.image,this.tokenLocation(t),s),{kind:"style",span:[0,0],nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}styles(e){return this.nodes(e,"styleValue").map(e=>this.visit(e))}styleValue(e){let t=this.allTokens(e),s=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return this.source.slice(s[0],s[1]).replaceAll("\\,",",")}styleComponent(e){return this.allTokens(e).map(e=>e.image).join("")}forwardSolidOperator(e){let t=this.tokens(e,"FORWARD_SOLID")[0];return{type:"association",arrowType:0,minlen:this.solidMinlen(t)}}backwardSolidOperator(e){let t=this.tokens(e,"BACKWARD_SOLID")[0],s=this.nodes(e,"edgeLabel")[0],i=s?this.tokens(e,"MARKERLESS_SOLID").at(-1):t;return{type:"association",arrowType:1,minlen:this.solidMinlen(i),...s?{label:this.visit(s)}:{}}}markerlessSolidOperator(e){let t=this.nodes(e,"edgeLabel")[0],s=this.allTokens(e);if(!t)return{type:"association",arrowType:2,minlen:this.solidMinlen(this.tokens(e,"MARKERLESS_SOLID")[0])};let i=s.at(-1),n="FORWARD_SOLID"===i.tokenType.name?0:"FORWARD_CIRCLE"===i.tokenType.name?3:"FORWARD_CROSS"===i.tokenType.name?4:2;return{type:"association",arrowType:n,label:this.visit(t),minlen:0===n||2===n?this.solidMinlen(i):1}}forwardCircleOperator(e){return{type:"association",arrowType:3,minlen:1}}backwardCircleOperator(e){let t=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:5,minlen:1,...t?{label:this.visit(t)}:{}}}forwardCrossOperator(e){return{type:"association",arrowType:4,minlen:1}}backwardCrossOperator(e){let t=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:6,minlen:1,...t?{label:this.visit(t)}:{}}}actorDraft(e){return{id:e.id,kind:"actor",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}entityDraft(e){return{id:e.id,kind:"usecase",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.shape?{shape:e.shape}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}endpoint(e,t=e.explicitDeclaration??!0){return{id:e.id,label:e.label,location:e.location,generated:e.generated,declaration:t,classesOnReference:e.classes.length>0}}relationshipDraft(e,t,s){return{source:this.endpoint(e,!0),target:this.endpoint(t.target),location:s,...t.explicitId?{explicitId:t.explicitId,explicitIdLocation:t.explicitIdLocation}:{},...t.arrow}}actorOccurrence(e,t,s){return{id:t.id,span:this.nodeSpan(e),idSpan:t.location.span,labelSpan:t.label.span,...s?{defines:!0}:{},...t.stereotype?{stereotypeSpan:t.stereotype.span}:{},...t.metadata?{metadata:t.metadata.properties.map(({key:e,span:t,keySpan:s,valueSpan:i})=>({key:e,span:t,keySpan:s,valueSpan:i}))}:{},...t.classSpans.length?{classSpans:t.classSpans}:{}}}entityOccurrence(e,t,s){return this.actorOccurrence(e,t,s)}wrap(e,t){if("blank"===t.kind||"comment"===t.kind)return t;for(let s of(t.span=this.nodeSpan(e),t.edges??[]))s.span=t.span;return t}tokenLabel(e){let t="MARKDOWN_STRING"===e.tokenType.name?"markdown":"text",s="markdown"===t?2:+("PLAIN_STRING"===e.tokenType.name),i=this.tokenSpan(e,s);return{text:this.source.slice(i[0],i[1]),type:t,span:i}}decodePlain(e){return"PLAIN_STRING"===e.tokenType.name?e.image.slice(1,-1):e.image}contentSpan(e){return this.tokenSpan(e,"PLAIN_STRING"===e.tokenType.name?1:2*("MARKDOWN_STRING"===e.tokenType.name))}generateId(e){return e.replace(/\W/g,"_")}solidMinlen(e){return Math.max(1,(e.image.match(/-/g)?.length??2)-1)}nodeLocation(e){let t=this.allTokens(e.children)[0];return{span:this.nodeSpan(e),line:t.startLine??1,column:t.startColumn??1}}ctxLocation(e){let t=this.allTokens(e).filter(e=>"NEWLINE"!==e.tokenType.name&&"EOF"!==e.tokenType.name),s=t[0],i=t.at(-1);return{span:[s.startOffset,Math.min(this.source.length,(i.endOffset??i.startOffset+i.image.length-1)+1)],line:s.startLine??1,column:s.startColumn??1}}tokenLocation(e){let t="PLAIN_STRING"===e.tokenType.name?1:2*("MARKDOWN_STRING"===e.tokenType.name);return{span:this.tokenSpan(e,t),line:e.startLine??1,column:(e.startColumn??1)+t}}nodeSpan(e){let t=this.allTokens(e.children).filter(e=>"NEWLINE"!==e.tokenType.name&&"EOF"!==e.tokenType.name),s=t[0],i=t.at(-1);if(!s||!i)throw Error("Usecase CST node has no source token");return[s.startOffset,Math.min(this.source.length,(i.endOffset??i.startOffset+i.image.length-1)+1)]}tokenSpan(e,t=0){return[e.startOffset+t,Math.min(this.source.length,(e.endOffset??e.startOffset+e.image.length-1)+1-t)]}nodes(e,t){return(e[t]??[]).filter(e=>"children"in e)}tokens(e,t){return(e[t]??[]).filter(e=>"tokenTypeIdx"in e)}firstNode(e,...t){for(let s of t){let t=this.nodes(e,s)[0];if(t)return t}throw Error(`Usecase CST is missing one of: ${t.join(", ")}`)}allTokens(e){let t=[];for(let s of Object.values(e))for(let e of s)"tokenTypeIdx"in e?t.push(e):t.push(...this.allTokens(e.children));return t.sort((e,t)=>e.startOffset-t.startOffset)}},ne={parse:(0,E.p)(async e=>{sg.clear(),iK.input=[];try{tY({diagramType:"usecase",lexer:iB,parser:iK,entry:(0,E.p)(()=>iK.start(),"entry"),visit:(0,E.p)(t=>i7.build(t,e),"visit")},e)}catch(s){sg.clear();let t=iK.errors[0];if(t){let{token:i}=t,n=tV(i.startOffset)?i.startOffset:e.length,a=tV(i.endOffset)?i.endOffset+1:n,r=tV(i.startLine)?i.startLine:e.slice(0,n).split(/\r\n|\r|\n/).length,o=Math.max(e.lastIndexOf("\n",n-1),e.lastIndexOf("\r",n-1)),l=tV(i.startColumn)?i.startColumn:n-o,h=s instanceof Error?s.message:String(s);throw Error(`${h} at line ${r}, column ${l} [${n},${a})`)}throw s}},"parse")},nt=["point","circle","cross","extension"],ns={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},ni=(0,E.p)((e,t)=>{let[s,i]=[e,t].map(e=>e.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element");return`usecase-${s}-${i}`},"usecaseDomId"),nn=(0,E.p)(e=>`usecase-${e.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element"}`,"usecaseNodeDomId"),na=(0,E.p)((e,t)=>"markdown"!==t?e:(0,u.W)(e).map(e=>e.map(e=>e.content).join(" ")).join("\n"),"getAccessibleLabel"),nr=(0,E.p)(e=>{let t=na(e.label??e.id,e.labelType);if(ns[e.shape]){let s=e.actorType&&"normal"!==e.actorType?`${e.actorType} `:"",i=e.business?"business ":"",n=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${i}${s}actor ${t}${n}`}if("note"===e.shape)return`Note for ${e.noteTargetLabel??e.noteTarget??""}: ${t}`;if("usecaseJsonTable"===e.shape){let s=(e.jsonRows??[]).map(e=>`${e.accessibleKey}: ${e.value}`).join("; ");return s?`${t}: ${s}`:t}let s=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${e.business?"business ":""}use case ${t}${s}`},"getUsecaseNodeAccessibleName"),no=(0,E.p)(e=>`${e.boundaryType} system boundary ${na(e.label??e.id,e.labelType)}`,"getUsecaseBoundaryAccessibleName"),nl=(0,E.p)(e=>{if("note"===e.relationshipType)return"";let t="association"===e.relationshipType&&e.label?`association ${na(e.label,e.labelType)}`:e.relationshipType;return`${t} from ${e.sourceLabel} to ${e.targetLabel}`},"getUsecaseEdgeAccessibleName"),nh=(0,E.p)(e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"escapePlainLabel"),nc=(0,E.p)(e=>e.replace(/([*[\\\]_`])/g,"\\$1"),"escapeMarkdownMarkers"),nd=(0,E.p)((e,t)=>{for(let s of(e.diagramId=t,e.markers=[...nt],e.nodes))if(s.domId=nn(s.id),void 0!==s.label&&"text"===s.labelType&&(s.label=nh(s.label)),s.stereotype&&(s.stereotype=nh(s.stereotype)),s.isGroup||"usecaseJsonTable"!==s.shape||(s.jsonRows=s.jsonRows?.map(e=>({...e,key:nh(e.key),value:nh(e.value)}))),!s.isGroup&&("usecaseEllipse"===s.shape||"rect"===s.shape)&&s.stereotype){let e=s.label??nh(s.id);s.label=`\xab${nc(s.stereotype)}\xbb<br/>${"text"===s.labelType?nc(e):e}`,s.labelType="markdown",s.hasFoldedStereotype=!0,delete s.stereotype}for(let t of e.edges)void 0!==t.label&&"text"===t.labelType&&(t.label=nh(t.label));return e},"prepareUsecaseLayoutData"),nu=(0,E.p)((e,t,s)=>{for(let i of t.nodes){let n="string"==typeof i.domId?i.domId:ni(t.diagramId,i.id),a=e.select(`#${n}`),r=i.isGroup?"boundary":ns[i.shape]?"actor":"note"===i.shape?"note":"usecaseJsonTable"===i.shape?"json":"usecase",o=s.nodes.get(i.id)??i.id;if(a.attr("data-usecase-id",i.id).attr("data-usecase-kind",r).attr("role","img").attr("aria-label",o),!i.isGroup&&("usecaseEllipse"===i.shape||"rect"===i.shape)&&"hasFoldedStereotype"in i&&!0===i.hasFoldedStereotype){let e=a.node(),t=e?.querySelector(".nodeLabel"),s=t?.querySelector("p")??t,i=s?.firstChild;if(s&&i?.nodeType===3){let e=s.ownerDocument.createElement("span");e.className="usecase-stereotype",s.insertBefore(e,i),e.appendChild(i)}else e?.querySelector(".label tspan tspan, .label tspan")?.classList.add("usecase-stereotype")}}let i=new Map(t.edges.map(e=>[e.id,e]));e.selectAll('path[data-et="edge"]').each(function(){let e=i.get(this.getAttribute("data-id")??"");if(!e)return;let n=(0,tH.f)(this);n.attr("id",ni(t.diagramId,e.id)).attr("data-usecase-id",e.id).attr("data-usecase-kind",e.internal?"note-connector":"relationship"),e.internal?n.attr("aria-hidden","true"):n.attr("role","img").attr("aria-label",s.edges.get(e.id)??e.id)})},"annotateUsecaseElements"),np=(0,E.p)((e,t)=>{e.style("--mermaid-usecase-actor-font-size",`${t.actorFontSize}px`).style("--mermaid-usecase-actor-font-family",t.actorFontFamily).style("--mermaid-usecase-actor-font-weight",t.actorFontWeight).style("--mermaid-usecase-font-size",`${t.usecaseFontSize}px`).style("--mermaid-usecase-font-family",t.usecaseFontFamily).style("--mermaid-usecase-font-weight",t.usecaseFontWeight)},"applyUsecaseFonts"),nf=(0,E.p)(async(e,t,s,i)=>{T.d.info("Drawing usecase diagram (unified)",t);let{layout:n}=(0,m.z)(),a=i.db,r=a.getData(),o=new Map(r.nodes.map(e=>[e.id,na(e.label??e.id,e.labelType)])),l={nodes:new Map(r.nodes.map(e=>[e.id,e.isGroup?no(e):nr("note"===e.shape?{...e,noteTargetLabel:o.get(e.noteTarget??"")}:e)])),edges:new Map(r.edges.map(e=>[e.id,nl({...e,sourceLabel:o.get(e.source)??e.sourceLabel,targetLabel:o.get(e.target)??e.targetLabel})]))},u=(0,h.f)(t,r.config.securityLevel);r.layoutAlgorithm=(0,d.G)(n),nd(r,t),np(u,r),await (0,d.a)(r,u),nu(u,r,l);let p=r.diagramPadding;f.u.insertTitle(u,"usecaseDiagramTitleText",0,a.getDiagramTitle?.()??""),(0,c.f)(u,p,"usecaseDiagram",r.useMaxWidth),np(u,r)},"draw"),nm=(0,E.p)(e=>({actorBkg:e.usecaseActorBkg??e.actorBkg??e.mainBkg,actorBorder:e.usecaseActorBorder??e.actorBorder??e.primaryColor,bkg:e.usecaseBkg??e.mainBkg,border:e.usecaseBorder??e.nodeBorder??e.primaryColor,boundaryBkg:e.usecaseBoundaryBkg??e.clusterBkg,boundaryBorder:e.usecaseBoundaryBorder??e.clusterBorder,includeLine:e.usecaseIncludeLine??e.lineColor,extendLine:e.usecaseExtendLine??e.lineColor}),"roleColors"),nT=(0,E.p)(e=>{let{theme:t,bkgColorArray:s,borderColorArray:i}=e;if(!(0,p.d)(t,i))return"";let n=(0,m.N)().usecase?.colorScheme==="rotate",a=(0,p.o)(e.look),r="handDrawn"===a,o=(0,p.f)(s),l="";for(let e=0;e<(0,p.L)(i);e++){let t=i[e],h=o?`fill: ${s[e%s.length]};`:"",c=`[data-look="${a}"][data-color-id="color-${e}"]`;l+=`
58
+
59
+ & ${c}.system-boundary rect.boundary-body,
60
+ & ${c}.system-boundary rect.boundary-tab,
61
+ & ${c}.system-boundary .boundary-body path,
62
+ & ${c}.system-boundary .boundary-tab path {
63
+ stroke: ${t};
64
+ ${h}
65
+ }
66
+ `,n&&(l+=`
67
+
68
+ /* Use case bodies -- \`.usecase-element\` covers the ellipse form, the \`[Rect]\` form and
69
+ the business variant.
70
+
71
+ Element selectors only, never a bare \`path\`. Under the handDrawn look roughjs draws
72
+ the body as a *pair* of paths, an outline stroked in the border colour and a hachure
73
+ fill stroked in the background colour, with no class to tell them apart. Stroking
74
+ both repaints the fill lines as border colour and the shape collapses into a solid
75
+ block -- which is what \`.usecase-element path\` did. So handDrawn bodies keep the
76
+ theme's uniform colours, exactly as handDrawn flowchart nodes do. */
77
+ & ${c}.usecase-element ellipse,
78
+ & ${c}.usecase-element rect {
79
+ stroke: ${t};
80
+ ${h}
81
+ }
82
+
83
+ /* The business marker is a single classed path, so it can be reached safely by name --
84
+ without it the marker keeps the uniform border beside a palette-coloured body. No
85
+ \`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */
86
+ & ${c}.usecase-element .usecase-business-marker {
87
+ stroke: ${t};
88
+ }
89
+
90
+ /* Actor glyphs, mirroring the uniform rule further down. The fill goes on the glyph
91
+ group, never on its children, so the hollow variant's own \`fill="none"\` keeps
92
+ winning and a hollow actor stays hollow. Same reason as above for not descending
93
+ into the handDrawn paths. */
94
+ & ${c}.usecase-actor .usecase-actor-shape,
95
+ & ${c}.usecase-actor .usecase-actor-hollow,
96
+ & ${c}.usecase-actor .usecase-actor-awesome,
97
+ & ${c}.usecase-actor .usecase-actor-icon {
98
+ stroke: ${t};
99
+ ${h}
100
+ }
101
+ ${r?"":`
102
+ /* The group rule above reaches the glyph by inheritance, which the neo look breaks: it
103
+ ships a \`[data-look="neo"].node path { stroke }\` rule that hits the glyph's own paths,
104
+ and a value set directly on the child always beats one inherited from the parent,
105
+ whatever the parent rule's specificity. So name the children too.
106
+
107
+ Emitted for every look *except* handDrawn, where roughjs draws the glyph as an
108
+ outline path plus a hachure fill path stroked in the fill colour, indistinguishable
109
+ in CSS -- stroking both turns a hollow actor into a solid disc. Deliberately no
110
+ \`fill\` either way, so the hollow variant's own \`fill="none"\` keeps winning. */
111
+ & ${c}.usecase-actor .usecase-actor-glyph path,
112
+ & ${c}.usecase-actor .usecase-actor-glyph circle {
113
+ stroke: ${t};
114
+ }
115
+ `}
116
+ `)}return l},"genColor"),nE=(0,E.p)(e=>{let t=nm(e),s="handDrawn"===(0,p.o)(e.look);return`
117
+ ${nT(e)}
118
+ & .usecase-actor {
119
+ color: ${e.actorTextColor??e.primaryTextColor};
120
+ }
121
+
122
+ & .usecase-actor-shape,
123
+ & .usecase-actor-hollow,
124
+ & .usecase-actor-awesome,
125
+ & .usecase-actor-icon {
126
+ fill: ${t.actorBkg};
127
+ stroke: ${t.actorBorder};
128
+ stroke-width: 2px;
129
+ }
130
+ ${s?"":`
131
+ /* The rule above colours the glyph group and lets its children inherit, which the neo
132
+ look breaks: it ships a \`[data-look="neo"].node path { stroke }\` rule that lands on
133
+ the glyph's own paths, and a value set directly on a child always beats one inherited
134
+ from its parent, whatever the parent rule's specificity. Since neo is the default look,
135
+ without this every actor renders in the node border colour rather than the actor
136
+ colour the rule above asks for.
137
+
138
+ \`.node\` is in the selector to outrank that neo rule rather than tie with it: both
139
+ would otherwise be one attribute plus one class plus one element, leaving the winner to
140
+ depend on which stylesheet is concatenated last.
141
+
142
+ Stroke only: the hollow variant's own \`fill="none"\` has to keep winning. */
143
+ & .node.usecase-actor .usecase-actor-glyph path,
144
+ & .node.usecase-actor .usecase-actor-glyph circle {
145
+ stroke: ${t.actorBorder};
146
+ }
147
+ `}
148
+ & .usecase-actor .nodeLabel,
149
+ & .actor-label {
150
+ color: ${e.actorTextColor??e.primaryTextColor};
151
+ fill: ${e.actorTextColor??e.primaryTextColor};
152
+ font-family: var(--mermaid-usecase-actor-font-family, ${e.fontFamily});
153
+ font-size: var(--mermaid-usecase-actor-font-size, 14px);
154
+ font-weight: var(--mermaid-usecase-actor-font-weight, normal);
155
+ }
156
+
157
+ & .usecase-element ellipse,
158
+ & .usecase-element rect,
159
+ & .usecase-business ellipse,
160
+ & .usecase-business rect {
161
+ fill: ${t.bkg};
162
+ stroke: ${t.border};
163
+ stroke-width: 2px;
164
+ }
165
+ ${s?"":`
166
+ /* The same interception the actor glyph hits, one element down: neo ships
167
+ \`[data-look="neo"].node rect { stroke: nodeBorder }\`, which outranks the plain
168
+ \`.usecase-element rect\` above, so a use case written in the \`[Rect]\` form kept the node
169
+ border colour while its ellipse siblings took the role colour. An \`<ellipse>\` has no
170
+ equivalent neo rule and is already correct; restating it here costs nothing and means
171
+ the two forms cannot drift apart again.
172
+
173
+ Qualified with \`[data-look]\` *and* \`.node\` to land strictly above that rule rather than
174
+ tie with it -- on a tie the later stylesheet would win, which is how neo took this in
175
+ the first place. Skipped under handDrawn, where roughjs draws paths and neither element
176
+ exists. */
177
+ & [data-look="${(0,p.o)(e.look)}"].node.usecase-element ellipse,
178
+ & [data-look="${(0,p.o)(e.look)}"].node.usecase-element rect {
179
+ fill: ${t.bkg};
180
+ stroke: ${t.border};
181
+ }
182
+
183
+ /* The business marker is a \`<path>\`, so it loses to \`[data-look="neo"].node path\` the same
184
+ way. No \`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */
185
+ & [data-look="${(0,p.o)(e.look)}"].node.usecase-element .usecase-business-marker {
186
+ stroke: ${t.border};
187
+ }
188
+ `}
189
+ & .usecase-element .nodeLabel,
190
+ & .usecase-label {
191
+ color: ${e.primaryTextColor};
192
+ fill: ${e.primaryTextColor};
193
+ font-family: var(--mermaid-usecase-font-family, ${e.fontFamily});
194
+ font-size: var(--mermaid-usecase-font-size, 12px);
195
+ font-weight: var(--mermaid-usecase-font-weight, normal);
196
+ }
197
+
198
+ & .usecase-stereotype,
199
+ & .usecase-business-marker {
200
+ color: ${e.primaryTextColor};
201
+ fill: ${e.primaryTextColor};
202
+ stroke: ${t.border};
203
+ }
204
+
205
+ & .system-boundary rect.boundary-body,
206
+ & .system-boundary rect.boundary-tab,
207
+ & .system-boundary-package-tab {
208
+ fill: ${t.boundaryBkg};
209
+ stroke: ${t.boundaryBorder};
210
+ stroke-width: 1px;
211
+ }
212
+
213
+ & .system-boundary-title text {
214
+ fill: ${e.titleColor??e.primaryTextColor};
215
+ }
216
+
217
+ /* Only the span, never the <p> inside it: the renderer puts a user-supplied
218
+ 'color' on the span, and that has to stay inheritable by its children. */
219
+ & .system-boundary-title span {
220
+ color: ${e.titleColor??e.primaryTextColor};
221
+ }
222
+
223
+ & .usecase-note {
224
+ fill: ${e.noteBkgColor};
225
+ stroke: ${e.noteBorderColor};
226
+ color: ${e.noteTextColor};
227
+ }
228
+
229
+ & .usecase-note .nodeLabel {
230
+ color: ${e.noteTextColor};
231
+ fill: ${e.noteTextColor};
232
+ }
233
+
234
+ & .usecase-json-table,
235
+ & .usecase-json-table rect,
236
+ & .usecase-json-cell {
237
+ fill: ${e.mainBkg};
238
+ stroke: ${e.nodeBorder??e.primaryColor};
239
+ }
240
+
241
+ & .usecase-json-title,
242
+ & .usecase-json-key,
243
+ & .usecase-json-value {
244
+ color: ${e.primaryTextColor};
245
+ fill: ${e.primaryTextColor};
246
+ }
247
+
248
+ & .relationship {
249
+ fill: none;
250
+ stroke: ${e.lineColor};
251
+ }
252
+
253
+ & .relationship-include,
254
+ & .relationship-extend,
255
+ & .relationship-note {
256
+ stroke-dasharray: 3;
257
+ }
258
+
259
+ /* Include and extend are both dashed, which is a weak distinction at small sizes. The
260
+ tokens default to \`lineColor\`, so a theme that does not set them is unchanged. */
261
+ & .relationship-include {
262
+ stroke: ${t.includeLine};
263
+ }
264
+
265
+ & .relationship-extend {
266
+ stroke: ${t.extendLine};
267
+ }
268
+
269
+ & .relationship.edge-animation-fast,
270
+ & .relationship.edge-animation-slow {
271
+ stroke-linecap: round;
272
+ }
273
+
274
+ & .edgeLabel,
275
+ & .edgeLabel p {
276
+ background-color: ${e.edgeLabelBackground};
277
+ }
278
+
279
+ & .labelBkg {
280
+ background-color: ${e.edgeLabelBackground};
281
+ padding: 0 2px;
282
+ }
283
+
284
+ & .edgeLabel .label rect {
285
+ fill: ${e.edgeLabelBackground};
286
+ }
287
+
288
+ & .relationship-label,
289
+ & .edgeLabel {
290
+ color: ${e.primaryTextColor};
291
+ fill: ${e.primaryTextColor};
292
+ font-family: ${e.fontFamily};
293
+ font-size: 10px;
294
+ font-weight: normal;
295
+ }
296
+
297
+ & .marker,
298
+ & .marker.point,
299
+ & .marker.circle,
300
+ & .marker.cross {
301
+ fill: ${e.lineColor};
302
+ stroke: ${e.lineColor};
303
+ }
304
+
305
+ & .marker.extension {
306
+ fill: ${e.mainBkg};
307
+ stroke: ${e.lineColor};
308
+ }
309
+ `},"getStyles");e.s(["diagram",0,{parser:ne,db:sg,renderer:{draw:nf},styles:nE}],682240)}]);