@colinxu/pi-web-classic 0.0.0-stage → 0.12.3

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 (691) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +75 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/diagnostics/build-diagnostics.json +6 -0
  5. package/.next/diagnostics/framework.json +1 -0
  6. package/.next/export-marker.json +6 -0
  7. package/.next/images-manifest.json +68 -0
  8. package/.next/next-minimal-server.js.nft.json +1 -0
  9. package/.next/next-server.js.nft.json +1 -0
  10. package/.next/package.json +1 -0
  11. package/.next/prerender-manifest.json +157 -0
  12. package/.next/react-loadable-manifest.json +401 -0
  13. package/.next/required-server-files.js +398 -0
  14. package/.next/required-server-files.json +398 -0
  15. package/.next/routes-manifest.json +561 -0
  16. package/.next/server/app/_global-error/page.js +31 -0
  17. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  18. package/.next/server/app/_global-error.html +1 -0
  19. package/.next/server/app/_global-error.meta +35 -0
  20. package/.next/server/app/_global-error.rsc +14 -0
  21. package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  22. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -0
  23. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  24. package/.next/server/app/_not-found/page.js +1 -0
  25. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  26. package/.next/server/app/_not-found.html +1 -0
  27. package/.next/server/app/_not-found.meta +35 -0
  28. package/.next/server/app/_not-found.rsc +22 -0
  29. package/.next/server/app/_not-found.segments/_full.segment.rsc +22 -0
  30. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +28 -0
  31. package/.next/server/app/_not-found.segments/_tree.segment.rsc +7 -0
  32. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -0
  33. package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -0
  34. package/.next/server/app/api/agent/[id]/events/route.js +3 -0
  35. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
  36. package/.next/server/app/api/agent/[id]/lease/route.js +1 -0
  37. package/.next/server/app/api/agent/[id]/lease/route_client-reference-manifest.js +1 -0
  38. package/.next/server/app/api/agent/[id]/route.js +1 -0
  39. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  40. package/.next/server/app/api/agent/new/route.js +1 -0
  41. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
  42. package/.next/server/app/api/agent/running/route.js +1 -0
  43. package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -0
  44. package/.next/server/app/api/app-update/route.js +1 -0
  45. package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -0
  46. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
  47. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
  48. package/.next/server/app/api/auth/login/[provider]/route.js +3 -0
  49. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
  50. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
  51. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/auth/providers/route.js +1 -0
  53. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
  54. package/.next/server/app/api/cache-miss-notices/route.js +1 -0
  55. package/.next/server/app/api/cache-miss-notices/route_client-reference-manifest.js +1 -0
  56. package/.next/server/app/api/cwd/browse/route.js +1 -0
  57. package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/cwd/validate/route.js +1 -0
  59. package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -0
  60. package/.next/server/app/api/default-cwd/route.js +1 -0
  61. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
  62. package/.next/server/app/api/file-index/route.js +1 -0
  63. package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/files/[...path]/route.js +49 -0
  65. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
  66. package/.next/server/app/api/git/diff/route.js +6 -0
  67. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -0
  68. package/.next/server/app/api/git/status/route.js +6 -0
  69. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -0
  70. package/.next/server/app/api/home/route.js +1 -0
  71. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
  72. package/.next/server/app/api/mcp/route.js +2 -0
  73. package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -0
  74. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -0
  75. package/.next/server/app/api/mcp/sign-in/[flowId]/route_client-reference-manifest.js +1 -0
  76. package/.next/server/app/api/mcp/sign-in/route.js +1 -0
  77. package/.next/server/app/api/mcp/sign-in/route_client-reference-manifest.js +1 -0
  78. package/.next/server/app/api/mcp/test/route.js +1 -0
  79. package/.next/server/app/api/mcp/test/route_client-reference-manifest.js +1 -0
  80. package/.next/server/app/api/models/default/route.js +1 -0
  81. package/.next/server/app/api/models/default/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/models/enabled/route.js +1 -0
  83. package/.next/server/app/api/models/enabled/route_client-reference-manifest.js +1 -0
  84. package/.next/server/app/api/models/refresh/route.js +1 -0
  85. package/.next/server/app/api/models/refresh/route_client-reference-manifest.js +1 -0
  86. package/.next/server/app/api/models/route.js +1 -0
  87. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/models-config/catalog/route.js +1 -0
  89. package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -0
  90. package/.next/server/app/api/models-config/discover/route.js +1 -0
  91. package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -0
  92. package/.next/server/app/api/models-config/route.js +1 -0
  93. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/models-config/test/route.js +1 -0
  95. package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
  96. package/.next/server/app/api/open-in-explorer/route.js +1 -0
  97. package/.next/server/app/api/open-in-explorer/route_client-reference-manifest.js +1 -0
  98. package/.next/server/app/api/plugins/check/route.js +1 -0
  99. package/.next/server/app/api/plugins/check/route_client-reference-manifest.js +1 -0
  100. package/.next/server/app/api/plugins/route.js +1 -0
  101. package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
  102. package/.next/server/app/api/project-trust/route.js +1 -0
  103. package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
  104. package/.next/server/app/api/provider-usage/query/route.js +1 -0
  105. package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -0
  106. package/.next/server/app/api/push/config/route.js +1 -0
  107. package/.next/server/app/api/push/config/route_client-reference-manifest.js +1 -0
  108. package/.next/server/app/api/push/subscribe/route.js +1 -0
  109. package/.next/server/app/api/push/subscribe/route_client-reference-manifest.js +1 -0
  110. package/.next/server/app/api/sessions/[id]/auto-name/route.js +11 -0
  111. package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -0
  112. package/.next/server/app/api/sessions/[id]/context/route.js +1 -0
  113. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
  114. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -0
  115. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -0
  116. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -0
  117. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/sessions/[id]/export/route.js +54 -0
  119. package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
  120. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -0
  121. package/.next/server/app/api/sessions/[id]/fork/route_client-reference-manifest.js +1 -0
  122. package/.next/server/app/api/sessions/[id]/route.js +1 -0
  123. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
  124. package/.next/server/app/api/sessions/[id]/state/route.js +1 -0
  125. package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -0
  126. package/.next/server/app/api/sessions/delete/route.js +1 -0
  127. package/.next/server/app/api/sessions/delete/route_client-reference-manifest.js +1 -0
  128. package/.next/server/app/api/sessions/route.js +1 -0
  129. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  130. package/.next/server/app/api/sessions/search/route.js +1 -0
  131. package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -0
  132. package/.next/server/app/api/sessions/stats/route.js +1 -0
  133. package/.next/server/app/api/sessions/stats/route_client-reference-manifest.js +1 -0
  134. package/.next/server/app/api/sessions/ui-state/route.js +1 -0
  135. package/.next/server/app/api/sessions/ui-state/route_client-reference-manifest.js +1 -0
  136. package/.next/server/app/api/skills/check/route.js +1 -0
  137. package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
  138. package/.next/server/app/api/skills/content/route.js +1 -0
  139. package/.next/server/app/api/skills/content/route_client-reference-manifest.js +1 -0
  140. package/.next/server/app/api/skills/install/route.js +1 -0
  141. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
  142. package/.next/server/app/api/skills/route.js +4 -0
  143. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  144. package/.next/server/app/api/skills/search/route.js +1 -0
  145. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
  146. package/.next/server/app/api/skills/update/route.js +1 -0
  147. package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
  148. package/.next/server/app/api/subagents/[id]/route.js +1 -0
  149. package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -0
  150. package/.next/server/app/api/subagents/profiles/route.js +1 -0
  151. package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -0
  152. package/.next/server/app/api/subagents/settings/route.js +1 -0
  153. package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -0
  154. package/.next/server/app/api/terminal/[id]/events/route.js +4 -0
  155. package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -0
  156. package/.next/server/app/api/terminal/[id]/route.js +1 -0
  157. package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -0
  158. package/.next/server/app/api/terminal/route.js +1 -0
  159. package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -0
  160. package/.next/server/app/api/tools/settings/route.js +1 -0
  161. package/.next/server/app/api/tools/settings/route_client-reference-manifest.js +1 -0
  162. package/.next/server/app/api/web-auth/route.js +1 -0
  163. package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -0
  164. package/.next/server/app/api/worktrees/route.js +1 -0
  165. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -0
  166. package/.next/server/app/favicon.ico/route.js +1 -0
  167. package/.next/server/app/favicon.ico.body +0 -0
  168. package/.next/server/app/favicon.ico.meta +1 -0
  169. package/.next/server/app/index.html +1 -0
  170. package/.next/server/app/index.meta +29 -0
  171. package/.next/server/app/index.rsc +23 -0
  172. package/.next/server/app/index.segments/__PAGE__.segment.rsc +27 -0
  173. package/.next/server/app/index.segments/_full.segment.rsc +23 -0
  174. package/.next/server/app/index.segments/_tree.segment.rsc +8 -0
  175. package/.next/server/app/login/page.js +1 -0
  176. package/.next/server/app/login/page_client-reference-manifest.js +1 -0
  177. package/.next/server/app/login.html +1 -0
  178. package/.next/server/app/login.meta +34 -0
  179. package/.next/server/app/login.rsc +26 -0
  180. package/.next/server/app/login.segments/_full.segment.rsc +26 -0
  181. package/.next/server/app/login.segments/_tree.segment.rsc +7 -0
  182. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +32 -0
  183. package/.next/server/app/manifest.webmanifest/route.js +17 -0
  184. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -0
  185. package/.next/server/app/page.js +309 -0
  186. package/.next/server/app/page_client-reference-manifest.js +1 -0
  187. package/.next/server/app-paths-manifest.json +75 -0
  188. package/.next/server/chunks/11.js +1 -0
  189. package/.next/server/chunks/1207.js +1 -0
  190. package/.next/server/chunks/1286.js +1 -0
  191. package/.next/server/chunks/1412.js +38 -0
  192. package/.next/server/chunks/1605.js +1 -0
  193. package/.next/server/chunks/169.js +1 -0
  194. package/.next/server/chunks/18.js +86 -0
  195. package/.next/server/chunks/1813.js +1 -0
  196. package/.next/server/chunks/1906.js +1 -0
  197. package/.next/server/chunks/2022.js +1 -0
  198. package/.next/server/chunks/2069.js +1 -0
  199. package/.next/server/chunks/2156.js +1 -0
  200. package/.next/server/chunks/2157.js +1 -0
  201. package/.next/server/chunks/2243.js +1 -0
  202. package/.next/server/chunks/2325.js +82 -0
  203. package/.next/server/chunks/2430.js +193 -0
  204. package/.next/server/chunks/2498.js +1 -0
  205. package/.next/server/chunks/27.js +1 -0
  206. package/.next/server/chunks/2838.js +1 -0
  207. package/.next/server/chunks/2897.js +79 -0
  208. package/.next/server/chunks/2970.js +165 -0
  209. package/.next/server/chunks/3227.js +1 -0
  210. package/.next/server/chunks/3266.js +1 -0
  211. package/.next/server/chunks/3379.js +1 -0
  212. package/.next/server/chunks/3428.js +32 -0
  213. package/.next/server/chunks/3479.js +1 -0
  214. package/.next/server/chunks/3618.js +1 -0
  215. package/.next/server/chunks/367.js +115 -0
  216. package/.next/server/chunks/3698.js +93 -0
  217. package/.next/server/chunks/3709.js +148 -0
  218. package/.next/server/chunks/3757.js +1 -0
  219. package/.next/server/chunks/3824.js +1 -0
  220. package/.next/server/chunks/4107.js +62 -0
  221. package/.next/server/chunks/426.js +14 -0
  222. package/.next/server/chunks/4569.js +34 -0
  223. package/.next/server/chunks/4698.js +1 -0
  224. package/.next/server/chunks/4755.js +153 -0
  225. package/.next/server/chunks/4815.js +3 -0
  226. package/.next/server/chunks/5002.js +1 -0
  227. package/.next/server/chunks/5112.js +1 -0
  228. package/.next/server/chunks/5289.js +8 -0
  229. package/.next/server/chunks/5318.js +1 -0
  230. package/.next/server/chunks/5452.js +23 -0
  231. package/.next/server/chunks/5453.js +1 -0
  232. package/.next/server/chunks/5582.js +8 -0
  233. package/.next/server/chunks/5749.js +27 -0
  234. package/.next/server/chunks/5782.js +36 -0
  235. package/.next/server/chunks/6163.js +104 -0
  236. package/.next/server/chunks/6169.js +64 -0
  237. package/.next/server/chunks/6208.js +172 -0
  238. package/.next/server/chunks/6399.js +24 -0
  239. package/.next/server/chunks/6429.js +32 -0
  240. package/.next/server/chunks/6496.js +1 -0
  241. package/.next/server/chunks/6686.js +1 -0
  242. package/.next/server/chunks/6823.js +215 -0
  243. package/.next/server/chunks/6888.js +1 -0
  244. package/.next/server/chunks/6953.js +1 -0
  245. package/.next/server/chunks/7245.js +77 -0
  246. package/.next/server/chunks/7307.js +1 -0
  247. package/.next/server/chunks/7372.js +287 -0
  248. package/.next/server/chunks/7384.js +226 -0
  249. package/.next/server/chunks/7492.js +1 -0
  250. package/.next/server/chunks/7516.js +1 -0
  251. package/.next/server/chunks/7531.js +24 -0
  252. package/.next/server/chunks/7591.js +1 -0
  253. package/.next/server/chunks/7755.js +138 -0
  254. package/.next/server/chunks/7916.js +1 -0
  255. package/.next/server/chunks/8078.js +94 -0
  256. package/.next/server/chunks/8253.js +41 -0
  257. package/.next/server/chunks/8635.js +1 -0
  258. package/.next/server/chunks/8637.js +1 -0
  259. package/.next/server/chunks/8688.js +1 -0
  260. package/.next/server/chunks/8872.js +1 -0
  261. package/.next/server/chunks/9006.js +1 -0
  262. package/.next/server/chunks/9018.js +1 -0
  263. package/.next/server/chunks/9047.js +1 -0
  264. package/.next/server/chunks/9108.js +1 -0
  265. package/.next/server/chunks/9165.js +1 -0
  266. package/.next/server/chunks/9280.js +256 -0
  267. package/.next/server/chunks/9419.js +1 -0
  268. package/.next/server/chunks/9430.js +1 -0
  269. package/.next/server/chunks/9586.js +1 -0
  270. package/.next/server/chunks/9690.js +90 -0
  271. package/.next/server/chunks/974.js +1 -0
  272. package/.next/server/chunks/9775.js +1 -0
  273. package/.next/server/chunks/992.js +1 -0
  274. package/.next/server/chunks/9926.js +1 -0
  275. package/.next/server/functions-config-manifest.json +27 -0
  276. package/.next/server/instrumentation.js +1 -0
  277. package/.next/server/instrumentation.js.nft.json +1 -0
  278. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  279. package/.next/server/middleware-build-manifest.js +1 -0
  280. package/.next/server/middleware-manifest.json +6 -0
  281. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  282. package/.next/server/middleware.js +163 -0
  283. package/.next/server/middleware.js.nft.json +1 -0
  284. package/.next/server/next-font-manifest.js +1 -0
  285. package/.next/server/next-font-manifest.json +1 -0
  286. package/.next/server/pages/404.html +1 -0
  287. package/.next/server/pages/500.html +1 -0
  288. package/.next/server/pages-manifest.json +4 -0
  289. package/.next/server/prefetch-hints.json +53 -0
  290. package/.next/server/server-reference-manifest.js +1 -0
  291. package/.next/server/server-reference-manifest.json +1 -0
  292. package/.next/server/webpack-runtime.js +1 -0
  293. package/.next/static/2ftfKxA2Tk6WrtjeFq3pC/_buildManifest.js +1 -0
  294. package/.next/static/2ftfKxA2Tk6WrtjeFq3pC/_ssgManifest.js +1 -0
  295. package/.next/static/chunks/1213.4848a5579bece837.js +24 -0
  296. package/.next/static/chunks/1278-902e48c12cf60065.js +1 -0
  297. package/.next/static/chunks/1326.72decfb808c97abe.js +1 -0
  298. package/.next/static/chunks/1519.2f596e5f5af9ef57.js +62 -0
  299. package/.next/static/chunks/2280.e03ab3748922284c.js +1 -0
  300. package/.next/static/chunks/2521.2ba812532f472610.js +77 -0
  301. package/.next/static/chunks/2585.4d6aa847c780c666.js +1 -0
  302. package/.next/static/chunks/2589.e456c324416f9615.js +1 -0
  303. package/.next/static/chunks/2600.45ba17a0f756fc31.js +1 -0
  304. package/.next/static/chunks/2619.9431a3f48da8eef4.js +1 -0
  305. package/.next/static/chunks/26d302b2.cd19dc0940cb3e75.js +122 -0
  306. package/.next/static/chunks/2768.1a75ba9e2be767cf.js +1 -0
  307. package/.next/static/chunks/2931.c5527c92f7264e9a.js +41 -0
  308. package/.next/static/chunks/3016.406e568aa95ff867.js +1 -0
  309. package/.next/static/chunks/3052.5da5bde6a131930a.js +90 -0
  310. package/.next/static/chunks/3064.3a2a1e7cd4fdca5f.js +1 -0
  311. package/.next/static/chunks/3174.03fbed7b7d7a8256.js +1 -0
  312. package/.next/static/chunks/3189.b048866768087750.js +1 -0
  313. package/.next/static/chunks/3217.457eee26edea225c.js +24 -0
  314. package/.next/static/chunks/3308.935f7625e681e15a.js +74 -0
  315. package/.next/static/chunks/331.fc5d78e1e91daf43.js +1 -0
  316. package/.next/static/chunks/3510.5d4d1c79533e080c.js +1 -0
  317. package/.next/static/chunks/364.ce5400a9dd70b9dc.js +1 -0
  318. package/.next/static/chunks/370.a485dd5092c76362.js +1 -0
  319. package/.next/static/chunks/3789.c418b69121761983.js +1 -0
  320. package/.next/static/chunks/3794-6f271a1eb27dfa20.js +52 -0
  321. package/.next/static/chunks/3831.25ae62d10dccc27a.js +1 -0
  322. package/.next/static/chunks/3a7aa434.9780f397da64eb81.js +82 -0
  323. package/.next/static/chunks/4020.3cc19c463c49f969.js +23 -0
  324. package/.next/static/chunks/4035.f5bcc2e4f0beee2b.js +1 -0
  325. package/.next/static/chunks/405.7027b68fbb48582a.js +215 -0
  326. package/.next/static/chunks/4159.8f53338a07b26845.js +138 -0
  327. package/.next/static/chunks/4208.e3c7f2d5c26dcf2e.js +287 -0
  328. package/.next/static/chunks/4263.ffa8d9bd8a0faaae.js +1 -0
  329. package/.next/static/chunks/4561.70303588b0cd3621.js +34 -0
  330. package/.next/static/chunks/4592.507c41f345e21bee.js +93 -0
  331. package/.next/static/chunks/4799.1d3f2e30954503b8.js +1 -0
  332. package/.next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js +1 -0
  333. package/.next/static/chunks/514.b804c51b26f5e126.js +1 -0
  334. package/.next/static/chunks/5270.2b9a21b6ce8fd8d2.js +1 -0
  335. package/.next/static/chunks/52733464.74fafefbfa340fc8.js +1 -0
  336. package/.next/static/chunks/5354.b559c717a607dc5c.js +1 -0
  337. package/.next/static/chunks/5448.23a76c3983fec0f6.js +38 -0
  338. package/.next/static/chunks/5772-c8175d2fabf63b95.js +3 -0
  339. package/.next/static/chunks/587.d52737d7288c11b4.js +1 -0
  340. package/.next/static/chunks/5909.172aa3edf289b590.js +115 -0
  341. package/.next/static/chunks/5949.54e8a766895688d7.js +104 -0
  342. package/.next/static/chunks/60c48509.2ba44b5cbe52c6e7.js +158 -0
  343. package/.next/static/chunks/6361.4b1fa56fca9b6356.js +148 -0
  344. package/.next/static/chunks/6774.07517a60a602aadd.js +86 -0
  345. package/.next/static/chunks/6968.b80277c724dbc96e.js +1 -0
  346. package/.next/static/chunks/7236.55a9728d35f5b8a6.js +1 -0
  347. package/.next/static/chunks/7390.bc7f4ed9f76fe9e1.js +1 -0
  348. package/.next/static/chunks/7806.a903780fcfa3a30e.js +1 -0
  349. package/.next/static/chunks/790.45f73b5eb2e089eb.js +1 -0
  350. package/.next/static/chunks/8216.64a72d4d35ea7be0.js +1 -0
  351. package/.next/static/chunks/830.a6da04c322e3204a.js +1 -0
  352. package/.next/static/chunks/8378.6acf715f56997572.js +226 -0
  353. package/.next/static/chunks/8501.3b0a97ac3e782a0f.js +79 -0
  354. package/.next/static/chunks/8663.7deb45d41d190483.js +27 -0
  355. package/.next/static/chunks/872.96937e758ddce860.js +1 -0
  356. package/.next/static/chunks/8803.75bde095fe3613f5.js +1 -0
  357. package/.next/static/chunks/8863.582d77dad0e1cc29.js +1 -0
  358. package/.next/static/chunks/90542734.90283a0c0c838d51.js +1 -0
  359. package/.next/static/chunks/9379.979bec4531e0611a.js +64 -0
  360. package/.next/static/chunks/9389.906fe7aa9cd6a170.js +1 -0
  361. package/.next/static/chunks/9472.08db7006e4a030a4.js +94 -0
  362. package/.next/static/chunks/9647.29c5a9819b36fcda.js +15 -0
  363. package/.next/static/chunks/966.7ab226a15142fae2.js +1 -0
  364. package/.next/static/chunks/975.710b5962d34d4598.js +22 -0
  365. package/.next/static/chunks/9884.fca67f18c0fb2808.js +36 -0
  366. package/.next/static/chunks/9932-60e21347ba9f8664.js +7 -0
  367. package/.next/static/chunks/a339c874.7657a67d1b0d46c1.js +32 -0
  368. package/.next/static/chunks/app/_global-error/page-cbe4231fb889bdce.js +1 -0
  369. package/.next/static/chunks/app/_not-found/page-1e1cf8cba5576cd4.js +1 -0
  370. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-cbe4231fb889bdce.js +1 -0
  371. package/.next/static/chunks/app/api/agent/[id]/events/route-cbe4231fb889bdce.js +1 -0
  372. package/.next/static/chunks/app/api/agent/[id]/lease/route-cbe4231fb889bdce.js +1 -0
  373. package/.next/static/chunks/app/api/agent/[id]/route-cbe4231fb889bdce.js +1 -0
  374. package/.next/static/chunks/app/api/agent/new/route-cbe4231fb889bdce.js +1 -0
  375. package/.next/static/chunks/app/api/agent/running/route-cbe4231fb889bdce.js +1 -0
  376. package/.next/static/chunks/app/api/app-update/route-cbe4231fb889bdce.js +1 -0
  377. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-cbe4231fb889bdce.js +1 -0
  378. package/.next/static/chunks/app/api/auth/login/[provider]/route-cbe4231fb889bdce.js +1 -0
  379. package/.next/static/chunks/app/api/auth/logout/[provider]/route-cbe4231fb889bdce.js +1 -0
  380. package/.next/static/chunks/app/api/auth/providers/route-cbe4231fb889bdce.js +1 -0
  381. package/.next/static/chunks/app/api/cache-miss-notices/route-cbe4231fb889bdce.js +1 -0
  382. package/.next/static/chunks/app/api/cwd/browse/route-cbe4231fb889bdce.js +1 -0
  383. package/.next/static/chunks/app/api/cwd/validate/route-cbe4231fb889bdce.js +1 -0
  384. package/.next/static/chunks/app/api/default-cwd/route-cbe4231fb889bdce.js +1 -0
  385. package/.next/static/chunks/app/api/file-index/route-cbe4231fb889bdce.js +1 -0
  386. package/.next/static/chunks/app/api/files/[...path]/route-cbe4231fb889bdce.js +1 -0
  387. package/.next/static/chunks/app/api/git/diff/route-cbe4231fb889bdce.js +1 -0
  388. package/.next/static/chunks/app/api/git/status/route-cbe4231fb889bdce.js +1 -0
  389. package/.next/static/chunks/app/api/home/route-cbe4231fb889bdce.js +1 -0
  390. package/.next/static/chunks/app/api/mcp/route-cbe4231fb889bdce.js +1 -0
  391. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-cbe4231fb889bdce.js +1 -0
  392. package/.next/static/chunks/app/api/mcp/sign-in/route-cbe4231fb889bdce.js +1 -0
  393. package/.next/static/chunks/app/api/mcp/test/route-cbe4231fb889bdce.js +1 -0
  394. package/.next/static/chunks/app/api/models/default/route-cbe4231fb889bdce.js +1 -0
  395. package/.next/static/chunks/app/api/models/enabled/route-cbe4231fb889bdce.js +1 -0
  396. package/.next/static/chunks/app/api/models/refresh/route-cbe4231fb889bdce.js +1 -0
  397. package/.next/static/chunks/app/api/models/route-cbe4231fb889bdce.js +1 -0
  398. package/.next/static/chunks/app/api/models-config/catalog/route-cbe4231fb889bdce.js +1 -0
  399. package/.next/static/chunks/app/api/models-config/discover/route-cbe4231fb889bdce.js +1 -0
  400. package/.next/static/chunks/app/api/models-config/route-cbe4231fb889bdce.js +1 -0
  401. package/.next/static/chunks/app/api/models-config/test/route-cbe4231fb889bdce.js +1 -0
  402. package/.next/static/chunks/app/api/open-in-explorer/route-cbe4231fb889bdce.js +1 -0
  403. package/.next/static/chunks/app/api/plugins/check/route-cbe4231fb889bdce.js +1 -0
  404. package/.next/static/chunks/app/api/plugins/route-cbe4231fb889bdce.js +1 -0
  405. package/.next/static/chunks/app/api/project-trust/route-cbe4231fb889bdce.js +1 -0
  406. package/.next/static/chunks/app/api/provider-usage/query/route-cbe4231fb889bdce.js +1 -0
  407. package/.next/static/chunks/app/api/push/config/route-cbe4231fb889bdce.js +1 -0
  408. package/.next/static/chunks/app/api/push/subscribe/route-cbe4231fb889bdce.js +1 -0
  409. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-cbe4231fb889bdce.js +1 -0
  410. package/.next/static/chunks/app/api/sessions/[id]/context/route-cbe4231fb889bdce.js +1 -0
  411. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-cbe4231fb889bdce.js +1 -0
  412. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-cbe4231fb889bdce.js +1 -0
  413. package/.next/static/chunks/app/api/sessions/[id]/export/route-cbe4231fb889bdce.js +1 -0
  414. package/.next/static/chunks/app/api/sessions/[id]/fork/route-cbe4231fb889bdce.js +1 -0
  415. package/.next/static/chunks/app/api/sessions/[id]/route-cbe4231fb889bdce.js +1 -0
  416. package/.next/static/chunks/app/api/sessions/[id]/state/route-cbe4231fb889bdce.js +1 -0
  417. package/.next/static/chunks/app/api/sessions/delete/route-cbe4231fb889bdce.js +1 -0
  418. package/.next/static/chunks/app/api/sessions/route-cbe4231fb889bdce.js +1 -0
  419. package/.next/static/chunks/app/api/sessions/search/route-cbe4231fb889bdce.js +1 -0
  420. package/.next/static/chunks/app/api/sessions/stats/route-cbe4231fb889bdce.js +1 -0
  421. package/.next/static/chunks/app/api/sessions/ui-state/route-cbe4231fb889bdce.js +1 -0
  422. package/.next/static/chunks/app/api/skills/check/route-cbe4231fb889bdce.js +1 -0
  423. package/.next/static/chunks/app/api/skills/content/route-cbe4231fb889bdce.js +1 -0
  424. package/.next/static/chunks/app/api/skills/install/route-cbe4231fb889bdce.js +1 -0
  425. package/.next/static/chunks/app/api/skills/route-cbe4231fb889bdce.js +1 -0
  426. package/.next/static/chunks/app/api/skills/search/route-cbe4231fb889bdce.js +1 -0
  427. package/.next/static/chunks/app/api/skills/update/route-cbe4231fb889bdce.js +1 -0
  428. package/.next/static/chunks/app/api/subagents/[id]/route-cbe4231fb889bdce.js +1 -0
  429. package/.next/static/chunks/app/api/subagents/profiles/route-cbe4231fb889bdce.js +1 -0
  430. package/.next/static/chunks/app/api/subagents/settings/route-cbe4231fb889bdce.js +1 -0
  431. package/.next/static/chunks/app/api/terminal/[id]/events/route-cbe4231fb889bdce.js +1 -0
  432. package/.next/static/chunks/app/api/terminal/[id]/route-cbe4231fb889bdce.js +1 -0
  433. package/.next/static/chunks/app/api/terminal/route-cbe4231fb889bdce.js +1 -0
  434. package/.next/static/chunks/app/api/tools/settings/route-cbe4231fb889bdce.js +1 -0
  435. package/.next/static/chunks/app/api/web-auth/route-cbe4231fb889bdce.js +1 -0
  436. package/.next/static/chunks/app/api/worktrees/route-cbe4231fb889bdce.js +1 -0
  437. package/.next/static/chunks/app/layout-3339966738755d72.js +1 -0
  438. package/.next/static/chunks/app/login/page-3a355df23c47aa56.js +1 -0
  439. package/.next/static/chunks/app/manifest.webmanifest/route-cbe4231fb889bdce.js +1 -0
  440. package/.next/static/chunks/app/page-c6eefaf480702550.js +287 -0
  441. package/.next/static/chunks/d3ac728e-7964f816a1ca64e5.js +1 -0
  442. package/.next/static/chunks/e413bedd.1332b3d1558778d6.js +153 -0
  443. package/.next/static/chunks/e868780c-1584512c612787d7.js +18 -0
  444. package/.next/static/chunks/ea233666.528d9a11a2c6fe2f.js +62 -0
  445. package/.next/static/chunks/framework-b33a8f5d57cd8d87.js +1 -0
  446. package/.next/static/chunks/main-63ddef04e98b28f4.js +5 -0
  447. package/.next/static/chunks/main-app-a98576891fdd8f60.js +1 -0
  448. package/.next/static/chunks/next/dist/client/components/builtin/app-error-cbe4231fb889bdce.js +1 -0
  449. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-cbe4231fb889bdce.js +1 -0
  450. package/.next/static/chunks/next/dist/client/components/builtin/global-error-30078bc26a2476fc.js +1 -0
  451. package/.next/static/chunks/next/dist/client/components/builtin/not-found-cbe4231fb889bdce.js +1 -0
  452. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-cbe4231fb889bdce.js +1 -0
  453. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  454. package/.next/static/chunks/webpack-b6c37de25f933bc6.js +1 -0
  455. package/.next/static/css/49692dbfa6f26eeb.css +1 -0
  456. package/.next/static/css/6d897e2692233627.css +1 -0
  457. package/.next/static/css/9bcd6051db4f8890.css +1 -0
  458. package/.next/static/css/b944d46e6fd6c54d.css +1 -0
  459. package/.next/static/css/c82f0c18392f486f.css +1 -0
  460. package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
  461. package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
  462. package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
  463. package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
  464. package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
  465. package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
  466. package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  467. package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  468. package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  469. package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  470. package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  471. package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  472. package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  473. package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  474. package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  475. package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  476. package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  477. package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  478. package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  479. package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  480. package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  481. package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  482. package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  483. package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  484. package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  485. package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  486. package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  487. package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  488. package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  489. package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  490. package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  491. package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  492. package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  493. package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  494. package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  495. package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  496. package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  497. package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  498. package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  499. package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  500. package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  501. package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  502. package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  503. package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  504. package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  505. package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  506. package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  507. package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  508. package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  509. package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  510. package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  511. package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  512. package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  513. package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  514. package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  515. package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  516. package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  517. package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  518. package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  519. package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  520. package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  521. package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  522. package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  523. package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  524. package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  525. package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  526. package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
  527. package/.next/trace +83 -0
  528. package/.next/trace-build +1 -0
  529. package/.next/types/app/api/agent/[id]/bash-output/route.ts +353 -0
  530. package/.next/types/app/api/agent/[id]/events/route.ts +353 -0
  531. package/.next/types/app/api/agent/[id]/lease/route.ts +353 -0
  532. package/.next/types/app/api/agent/[id]/route.ts +353 -0
  533. package/.next/types/app/api/agent/new/route.ts +353 -0
  534. package/.next/types/app/api/agent/running/route.ts +353 -0
  535. package/.next/types/app/api/app-update/route.ts +353 -0
  536. package/.next/types/app/api/auth/api-key/[provider]/route.ts +353 -0
  537. package/.next/types/app/api/auth/login/[provider]/route.ts +353 -0
  538. package/.next/types/app/api/auth/logout/[provider]/route.ts +353 -0
  539. package/.next/types/app/api/auth/providers/route.ts +353 -0
  540. package/.next/types/app/api/cache-miss-notices/route.ts +353 -0
  541. package/.next/types/app/api/cwd/browse/route.ts +353 -0
  542. package/.next/types/app/api/cwd/validate/route.ts +353 -0
  543. package/.next/types/app/api/default-cwd/route.ts +353 -0
  544. package/.next/types/app/api/file-index/route.ts +353 -0
  545. package/.next/types/app/api/files/[...path]/route.ts +353 -0
  546. package/.next/types/app/api/git/diff/route.ts +353 -0
  547. package/.next/types/app/api/git/status/route.ts +353 -0
  548. package/.next/types/app/api/home/route.ts +353 -0
  549. package/.next/types/app/api/mcp/route.ts +353 -0
  550. package/.next/types/app/api/mcp/sign-in/[flowId]/route.ts +353 -0
  551. package/.next/types/app/api/mcp/sign-in/route.ts +353 -0
  552. package/.next/types/app/api/mcp/test/route.ts +353 -0
  553. package/.next/types/app/api/models/default/route.ts +353 -0
  554. package/.next/types/app/api/models/enabled/route.ts +353 -0
  555. package/.next/types/app/api/models/refresh/route.ts +353 -0
  556. package/.next/types/app/api/models/route.ts +353 -0
  557. package/.next/types/app/api/models-config/catalog/route.ts +353 -0
  558. package/.next/types/app/api/models-config/discover/route.ts +353 -0
  559. package/.next/types/app/api/models-config/route.ts +353 -0
  560. package/.next/types/app/api/models-config/test/route.ts +353 -0
  561. package/.next/types/app/api/open-in-explorer/route.ts +353 -0
  562. package/.next/types/app/api/plugins/check/route.ts +353 -0
  563. package/.next/types/app/api/plugins/route.ts +353 -0
  564. package/.next/types/app/api/project-trust/route.ts +353 -0
  565. package/.next/types/app/api/provider-usage/query/route.ts +353 -0
  566. package/.next/types/app/api/push/config/route.ts +353 -0
  567. package/.next/types/app/api/push/subscribe/route.ts +353 -0
  568. package/.next/types/app/api/sessions/[id]/auto-name/route.ts +353 -0
  569. package/.next/types/app/api/sessions/[id]/context/route.ts +353 -0
  570. package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +353 -0
  571. package/.next/types/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.ts +353 -0
  572. package/.next/types/app/api/sessions/[id]/export/route.ts +353 -0
  573. package/.next/types/app/api/sessions/[id]/fork/route.ts +353 -0
  574. package/.next/types/app/api/sessions/[id]/route.ts +353 -0
  575. package/.next/types/app/api/sessions/[id]/state/route.ts +353 -0
  576. package/.next/types/app/api/sessions/delete/route.ts +353 -0
  577. package/.next/types/app/api/sessions/route.ts +353 -0
  578. package/.next/types/app/api/sessions/search/route.ts +353 -0
  579. package/.next/types/app/api/sessions/stats/route.ts +353 -0
  580. package/.next/types/app/api/sessions/ui-state/route.ts +353 -0
  581. package/.next/types/app/api/skills/check/route.ts +353 -0
  582. package/.next/types/app/api/skills/content/route.ts +353 -0
  583. package/.next/types/app/api/skills/install/route.ts +353 -0
  584. package/.next/types/app/api/skills/route.ts +353 -0
  585. package/.next/types/app/api/skills/search/route.ts +353 -0
  586. package/.next/types/app/api/skills/update/route.ts +353 -0
  587. package/.next/types/app/api/subagents/[id]/route.ts +353 -0
  588. package/.next/types/app/api/subagents/profiles/route.ts +353 -0
  589. package/.next/types/app/api/subagents/settings/route.ts +353 -0
  590. package/.next/types/app/api/terminal/[id]/events/route.ts +353 -0
  591. package/.next/types/app/api/terminal/[id]/route.ts +353 -0
  592. package/.next/types/app/api/terminal/route.ts +353 -0
  593. package/.next/types/app/api/tools/settings/route.ts +353 -0
  594. package/.next/types/app/api/web-auth/route.ts +353 -0
  595. package/.next/types/app/api/worktrees/route.ts +353 -0
  596. package/.next/types/app/layout.ts +89 -0
  597. package/.next/types/app/login/page.ts +89 -0
  598. package/.next/types/app/page.ts +89 -0
  599. package/.next/types/cache-life.d.ts +146 -0
  600. package/.next/types/package.json +1 -0
  601. package/.next/types/root-params.d.ts +3 -0
  602. package/.next/types/routes.d.ts +140 -0
  603. package/.next/types/validator.ts +682 -0
  604. package/LICENSE +22 -0
  605. package/README.md +208 -2
  606. package/bin/browser-opener.js +34 -0
  607. package/bin/node-version.js +35 -0
  608. package/bin/pi-web-commands.js +118 -0
  609. package/bin/pi-web-node-args.js +11 -0
  610. package/bin/pi-web-options.js +141 -0
  611. package/bin/pi-web-update.js +148 -0
  612. package/bin/pi-web.js +157 -0
  613. package/bin/prepare-terminal.js +14 -0
  614. package/bin/process-lifecycle.js +81 -0
  615. package/bin/rotate-preview-secrets.js +105 -0
  616. package/bin/run-records.js +212 -0
  617. package/next.config.ts +110 -0
  618. package/package.json +105 -4
  619. package/public/icons/apple-touch-icon.png +0 -0
  620. package/public/icons/catppuccin/LICENSE +22 -0
  621. package/public/icons/catppuccin/README.md +10 -0
  622. package/public/icons/catppuccin/latte/_file.svg +3 -0
  623. package/public/icons/catppuccin/latte/_folder.svg +3 -0
  624. package/public/icons/catppuccin/latte/_folder_open.svg +3 -0
  625. package/public/icons/catppuccin/latte/bash.svg +7 -0
  626. package/public/icons/catppuccin/latte/bun-lock.svg +8 -0
  627. package/public/icons/catppuccin/latte/config.svg +3 -0
  628. package/public/icons/catppuccin/latte/css.svg +6 -0
  629. package/public/icons/catppuccin/latte/database.svg +3 -0
  630. package/public/icons/catppuccin/latte/docker.svg +3 -0
  631. package/public/icons/catppuccin/latte/env.svg +3 -0
  632. package/public/icons/catppuccin/latte/eslint.svg +6 -0
  633. package/public/icons/catppuccin/latte/git.svg +6 -0
  634. package/public/icons/catppuccin/latte/go.svg +3 -0
  635. package/public/icons/catppuccin/latte/graphql.svg +3 -0
  636. package/public/icons/catppuccin/latte/html.svg +6 -0
  637. package/public/icons/catppuccin/latte/javascript-react.svg +8 -0
  638. package/public/icons/catppuccin/latte/javascript.svg +6 -0
  639. package/public/icons/catppuccin/latte/json.svg +3 -0
  640. package/public/icons/catppuccin/latte/lock.svg +3 -0
  641. package/public/icons/catppuccin/latte/markdown.svg +3 -0
  642. package/public/icons/catppuccin/latte/ms-word.svg +6 -0
  643. package/public/icons/catppuccin/latte/next.svg +6 -0
  644. package/public/icons/catppuccin/latte/npm-lock.svg +7 -0
  645. package/public/icons/catppuccin/latte/pdf.svg +3 -0
  646. package/public/icons/catppuccin/latte/python.svg +8 -0
  647. package/public/icons/catppuccin/latte/rust.svg +6 -0
  648. package/public/icons/catppuccin/latte/sass.svg +3 -0
  649. package/public/icons/catppuccin/latte/terraform.svg +3 -0
  650. package/public/icons/catppuccin/latte/toml.svg +3 -0
  651. package/public/icons/catppuccin/latte/typescript-react.svg +8 -0
  652. package/public/icons/catppuccin/latte/typescript.svg +6 -0
  653. package/public/icons/catppuccin/latte/yaml.svg +3 -0
  654. package/public/icons/catppuccin/mocha/_file.svg +3 -0
  655. package/public/icons/catppuccin/mocha/_folder.svg +3 -0
  656. package/public/icons/catppuccin/mocha/_folder_open.svg +3 -0
  657. package/public/icons/catppuccin/mocha/bash.svg +7 -0
  658. package/public/icons/catppuccin/mocha/bun-lock.svg +8 -0
  659. package/public/icons/catppuccin/mocha/config.svg +3 -0
  660. package/public/icons/catppuccin/mocha/css.svg +6 -0
  661. package/public/icons/catppuccin/mocha/database.svg +3 -0
  662. package/public/icons/catppuccin/mocha/docker.svg +3 -0
  663. package/public/icons/catppuccin/mocha/env.svg +3 -0
  664. package/public/icons/catppuccin/mocha/eslint.svg +6 -0
  665. package/public/icons/catppuccin/mocha/git.svg +6 -0
  666. package/public/icons/catppuccin/mocha/go.svg +3 -0
  667. package/public/icons/catppuccin/mocha/graphql.svg +3 -0
  668. package/public/icons/catppuccin/mocha/html.svg +6 -0
  669. package/public/icons/catppuccin/mocha/javascript-react.svg +8 -0
  670. package/public/icons/catppuccin/mocha/javascript.svg +6 -0
  671. package/public/icons/catppuccin/mocha/json.svg +3 -0
  672. package/public/icons/catppuccin/mocha/lock.svg +3 -0
  673. package/public/icons/catppuccin/mocha/markdown.svg +3 -0
  674. package/public/icons/catppuccin/mocha/ms-word.svg +6 -0
  675. package/public/icons/catppuccin/mocha/next.svg +6 -0
  676. package/public/icons/catppuccin/mocha/npm-lock.svg +7 -0
  677. package/public/icons/catppuccin/mocha/pdf.svg +3 -0
  678. package/public/icons/catppuccin/mocha/python.svg +8 -0
  679. package/public/icons/catppuccin/mocha/rust.svg +6 -0
  680. package/public/icons/catppuccin/mocha/sass.svg +3 -0
  681. package/public/icons/catppuccin/mocha/terraform.svg +3 -0
  682. package/public/icons/catppuccin/mocha/toml.svg +3 -0
  683. package/public/icons/catppuccin/mocha/typescript-react.svg +8 -0
  684. package/public/icons/catppuccin/mocha/typescript.svg +6 -0
  685. package/public/icons/catppuccin/mocha/yaml.svg +3 -0
  686. package/public/icons/icon-192.png +0 -0
  687. package/public/icons/icon-512.png +0 -0
  688. package/public/offline.html +83 -0
  689. package/public/provider-icons.svg +54 -0
  690. package/public/sw.js +183 -0
  691. package/public/sw.test.mjs +339 -0
@@ -0,0 +1,158 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2960],{83022:(e,t,s)=>{s.d(t,{AC:()=>x,tM:()=>D,ur:()=>T});var i=s(71662),r=s(16443),a=s(16640),u=s(27041),n=s(41185),o=s(30790),l=s(60703),c=s(52691),h=s(31775),d=s(56037),p=s(89851),g=s(33948),A=s(91992),b=s(72555),k=s(13222),f=class{constructor(){this.vertexCounter=0,this.config=(0,h.D7)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=h.SV,this.setAccDescription=h.EI,this.setDiagramTitle=h.ke,this.getAccTitle=h.iN,this.getAccDescription=h.m7,this.getDiagramTitle=h.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static #e=(0,p.K)(this,"FlowDB");sanitizeText(e){return h.Y2.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,s,i,r,a){let n,o,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},p=arguments.length>7?arguments[7]:void 0;if(!e||0===e.trim().length)return;if(void 0!==p){let e;e=p.includes("\n")?p+"\n":"{\n"+p+"\n}",n=(0,u.H)(e,{schema:u.r})}let g=this.subGraphLookup.get(e);if(g&&n){g.metadata={...g.metadata,...n};return}let A=this.edges.find(t=>t.id===e);if(A){let e=n;e?.animate!==void 0&&(A.animate=e.animate),e?.animation!==void 0&&(A.animation=e.animation),e?.curve!==void 0&&(A.interpolate=e.curve);return}let b=this.vertices.get(e);if(void 0===b&&(void 0===t&&void 0===s&&null!=i&&d.R.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),b={id:e,labelType:"text",domId:"flowchart-"+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,b)),this.vertexCounter++,void 0!==t?(this.config=(0,h.D7)(),o=this.sanitizeText(t.text.trim()),b.labelType=t.type,o.startsWith('"')&&o.endsWith('"')&&(o=o.substring(1,o.length-1)),b.text=o):void 0===b.text&&(b.text=e),void 0!==s&&(b.type=s),null!=i&&i.forEach(e=>{b.styles.push(e)}),null!=r&&r.forEach(e=>{b.classes.push(e)}),void 0!==a&&(b.dir=a),void 0===b.props?b.props=c:void 0!==c&&Object.assign(b.props,c),void 0!==n){if(n.shape){if(n.shape!==n.shape.toLowerCase()||n.shape.includes("_"))throw Error(`No such shape: ${n.shape}. Shape names should be lowercase.`);if(!(0,l.aP)(n.shape))throw Error(`No such shape: ${n.shape}.`);b.type=n?.shape}n?.label&&(b.text=n?.label,b.labelType=this.sanitizeNodeLabelType(n?.labelType)),n?.icon&&(b.icon=n?.icon,n.label?.trim()||b.text!==e||(b.text="")),n?.form&&(b.form=n?.form),n?.pos&&(b.pos=n?.pos),n?.img&&(b.img=n?.img,n.label?.trim()||b.text!==e||(b.text="")),n?.constraint&&(b.constraint=n.constraint),n.w&&(b.assetWidth=Number(n.w)),n.h&&(b.assetHeight=Number(n.h))}}addSingleLink(e,t,s,i){let r={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};d.R.info("abc78 Got edge...",r);let a=s.text;if(void 0!==a&&(r.text=this.sanitizeText(a.text.trim()),r.text.startsWith('"')&&r.text.endsWith('"')&&(r.text=r.text.substring(1,r.text.length-1)),r.labelType=this.sanitizeNodeLabelType(a.type)),void 0!==s&&(r.type=s.type,r.stroke=s.stroke,r.length=s.length>10?10:s.length),i&&!this.edges.some(e=>e.id===i))r.id=i,r.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===r.start&&e.end===r.end);0===e.length?r.id=(0,c.rY)(r.start,r.end,{counter:0,prefix:"L"}):r.id=(0,c.rY)(r.start,r.end,{counter:e.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))d.R.info("Pushing edge..."),this.edges.push(r);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
2
+
3
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
4
+ You cannot set this config via configuration inside the diagram as it is a secure config.
5
+ You have to call mermaid.initialize.`)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,s){let i=this.isLinkData(s)?s.id.replace("@",""):void 0;for(let r of(d.R.info("addLink",e,t,i),e))for(let a of t){let u=r===e[e.length-1],n=a===t[0];u&&n?this.addSingleLink(r,a,s,i):this.addSingleLink(r,a,s,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{"default"===e?this.edges.defaultInterpolate=t:this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if("number"==typeof e&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith("fill"))&&this.edges[e]?.style?.push("fill:none"))})}addClass(e,t){let s=t.join().replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let t=this.classes.get(e);void 0===t&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),null!=s&&s.forEach(e=>{if(/color/.exec(e)){let s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(e,t){for(let s of e.split(",")){let e=this.vertices.get(s);e&&e.classes.push(t);let i=this.edges.find(e=>e.id===s);i&&i.classes.push(t);let r=this.subGraphLookup.get(s);r&&r.classes.push(t)}}setTooltip(e,t){if(void 0!==t)for(let s of(t=this.sanitizeText(t),e.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,t)}setClickFun(e,t,s){if("loose"!==(0,h.D7)().securityLevel||void 0===t)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),i[e]=t}}0===i.length&&i.push(e);let r=this.vertices.get(e);r&&(r.haveCallback=!0,this.funs.push(()=>{let s=this.lookUpDomId(e),r=document.querySelector(`[id="${s}"]`);null!==r&&r.addEventListener("click",()=>{c._K.runFunc(t,...i)},!1)}))}setLink(e,t,s){e.split(",").forEach(e=>{let i=this.vertices.get(e);void 0!==i&&(i.link=c._K.formatUrl(t,this.config),i.linkTarget=s)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,s){e.split(",").forEach(e=>{this.setClickFun(e,t,s)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=(0,o.Ck)();(0,g.Ltv)(e).select("svg").selectAll("g.node").on("mouseover",e=>{let s=(0,g.Ltv)(e.currentTarget),i=s.attr("title");if(null===i)return;let r=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px"),t.html(A.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0),(0,g.Ltv)(e.currentTarget).classed("hover",!1)})}clear(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gen-2";this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=(0,h.D7)(),(0,h.IU)()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,s){let i=e.text.trim(),r=s.text;e===s&&/\s/.exec(s.text)&&(i=void 0);let a=(0,p.K)(e=>{let t,s={boolean:{},number:{},string:{}},i=[];return{nodeList:e.filter(function(e){let r=typeof e;return e.stmt&&"dir"===e.stmt?(t=e.value,!1):""!==e.trim()&&(r in s?!s[r].hasOwnProperty(e)&&(s[r][e]=!0):!i.includes(e)&&i.push(e))}),dir:t}},"uniq")(t.flat()),u=a.nodeList,n=a.dir,o=(0,h.D7)().flowchart??{};if(n=n??(o.inheritDir?this.getDirection()??(0,h.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let e=0;e<u.length;e++)u[e]=this.lookUpDomId(u[e]);i=i??"subGraph"+this.subCount,r=r||"",r=this.sanitizeText(r),this.subCount=this.subCount+1;let l={id:i,nodes:u,title:r.trim(),classes:[],dir:n,labelType:this.sanitizeNodeLabelType(s?.type)};return d.R.info("Adding",l.id,l.nodes,l.dir),l.nodes=this.makeUniq(l,this.subGraphs).nodes,this.subGraphs.push(l),this.subGraphLookup.set(i,l),i}getPosForId(e){for(let[t,s]of this.subGraphs.entries())if(s.id===e)return t;return -1}indexNodes2(e,t){let s=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let i=0,r=1;for(;i<s.length;){let t=this.getPosForId(s[i]);if(t>=0){let s=this.indexNodes2(e,t);if(s.result)return{result:!0,count:r+s.count};r+=s.count}i+=1}return{result:!1,count:r}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(e){let t=e.trim(),s="arrow_open";switch(t[0]){case"<":s="arrow_point",t=t.slice(1);break;case"x":s="arrow_cross",t=t.slice(1);break;case"o":s="arrow_circle",t=t.slice(1)}let i="normal";return t.includes("=")&&(i="thick"),t.includes(".")&&(i="dotted"),{type:s,stroke:i}}countChar(e,t){let s=t.length,i=0;for(let r=0;r<s;++r)t[r]===e&&++i;return i}destructEndLink(e){let t=e.trim(),s=t.slice(0,-1),i="arrow_open";switch(t.slice(-1)){case"x":i="arrow_cross",t.startsWith("x")&&(i="double_"+i,s=s.slice(1));break;case">":i="arrow_point",t.startsWith("<")&&(i="double_"+i,s=s.slice(1));break;case"o":i="arrow_circle",t.startsWith("o")&&(i="double_"+i,s=s.slice(1))}let r="normal",a=s.length-1;s.startsWith("=")&&(r="thick"),s.startsWith("~")&&(r="invisible");let u=this.countChar(".",s);return u&&(r="dotted",a=u),{type:i,stroke:r,length:a}}destructLink(e,t){let s,i=this.destructEndLink(e);if(t){if((s=this.destructStartLink(t)).stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===s.type)s.type=i.type;else{if(s.type!==i.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return"double_arrow"===s.type&&(s.type="double_arrow_point"),s.length=i.length,s}return i}exists(e,t){for(let s of e)if(s.nodes.includes(t))return!0;return!1}makeUniq(e,t){let s=[];return e.nodes.forEach((i,r)=>{this.exists(t,i)||s.push(e.nodes[r])}),{nodes:s}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return"circle"===e.form?"iconCircle":"square"===e.form?"iconSquare":"rounded"===e.form?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t="none",s="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":s=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":s=t=e.replace("double_","")}return{arrowTypeStart:t,arrowTypeEnd:s}}addNodeFromVertex(e,t,s,i,r,a){let u=s.get(e.id),n=i.get(e.id)??!1,o=this.findNode(t,e.id);if(o)o.cssStyles=e.styles,o.cssCompiledStyles=this.getCompiledStyles(e.classes),o.cssClasses=e.classes.join(" ");else{let s={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:u,padding:r.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};n?t.push({...s,isGroup:!0,shape:"rect"}):t.push({...s,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let t=[];for(let s of e){let e=this.classes.get(s);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}getData(){let e=(0,h.D7)(),t=[],s=[],i=this.getSubGraphs(),r=new Map,a=new Map,u=new Map;for(let e of i)for(let t of e.nodes)this.subGraphLookup.has(t)&&u.set(t,e.id);let n=(0,p.K)(e=>this.subGraphLookup.get(e)?.metadata?.view==="collapsed","isCollapsed"),o=(0,p.K)(e=>{let t,s=new Set,i=e;for(;void 0!==i&&!s.has(i);)s.add(i),n(i)&&(t=i),i=u.get(i);return t},"outermostCollapsed"),l=new Set,d=new Map;for(let e of i){let t=o(e.id);if(void 0!==t)for(let s of(e.id!==t&&(l.add(e.id),d.set(e.id,t)),e.nodes))s!==t&&(l.add(s),d.set(s,t))}for(let e=i.length-1;e>=0;e--){let t=i[e];if(!l.has(t.id))for(let e of(t.nodes.length>0&&a.set(t.id,!0),t.nodes))r.set(e,t.id)}for(let s=i.length-1;s>=0;s--){let a=i[s];l.has(a.id)||(a.metadata?.view==="collapsed"?t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"collapsedGroup",dir:a.dir,isGroup:!1,look:e.look}):t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"rect",dir:a.dir,isGroup:!0,look:e.look}))}this.getVertices().forEach(s=>{l.has(s.id)||this.addNodeFromVertex(s,t,r,a,e,e.look||"classic")});let g=this.getEdges();return g.forEach((t,i)=>{let{arrowTypeStart:r,arrowTypeEnd:a}=this.destructEdgeType(t.type),u=[...g.defaultStyle??[]],n=d.get(t.start)??t.start,o=d.get(t.end)??t.end;if(n===o&&(d.has(t.start)||d.has(t.end)))return;t.style&&u.push(...t.style);let l={id:(0,c.rY)(n,o,{counter:i,prefix:"L"},t.id),isUserDefinedId:t.isUserDefinedId,start:n,end:o,type:t.type??"normal",label:t.text,labelType:t.labelType,labelpos:"c",thickness:t.stroke,minlen:t.length,classes:t?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":r,arrowTypeEnd:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":a,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:u,style:u,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};s.push(l)}),{nodes:t,edges:s,other:{},config:e}}defaultConfig(){return h.ME.flowchart}},y={getClasses:(0,p.K)(function(e,t){return t.db.getClasses()},"getClasses"),draw:(0,p.K)(async function(e,t,s,i){d.R.info("REF0:"),d.R.info("Drawing state diagram (v2)",t);let{securityLevel:u,flowchart:o,layout:l}=(0,h.D7)();i.db.setDiagramId(t),d.R.debug("Before getData: ");let p=i.db.getData();d.R.debug("Data: ",p);let g=(0,r.A)(t,u),A=i.db.getDirection();p.type=i.type,p.layoutAlgorithm=(0,n.q7)(l),"dagre"===p.layoutAlgorithm&&"elk"===l&&d.R.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),p.direction=A,p.nodeSpacing=o?.nodeSpacing||50,p.rankSpacing=o?.rankSpacing||50,p.markers=["point","circle","cross"],p.diagramId=t,d.R.debug("REF1:",p),await (0,n.XX)(p,g);let b=p.config.flowchart?.diagramPadding??8;c._K.insertTitle(g,"flowchartTitleText",o?.titleTopMargin||0,i.db.getDiagramTitle()),(0,a.P)(g,b,"flowchart",o?.useMaxWidth||!1)},"draw")},m=function(){var e=(0,p.K)(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,4],s=[1,3],i=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],u=[1,13],n=[1,14],o=[1,15],l=[1,16],c=[1,23],h=[1,25],d=[1,26],g=[1,27],A=[1,50],b=[1,49],k=[1,29],f=[1,30],y=[1,31],m=[1,32],E=[1,33],C=[1,45],D=[1,47],T=[1,43],x=[1,48],F=[1,44],S=[1,51],_=[1,46],B=[1,52],v=[1,53],L=[1,34],$=[1,35],w=[1,36],I=[1,37],R=[1,38],N=[1,58],P=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],G=[1,62],K=[1,61],O=[1,63],M=[8,9,11,75,77,78],U=[1,79],V=[1,92],W=[1,97],z=[1,96],j=[1,93],Y=[1,89],X=[1,95],H=[1,91],q=[1,98],Q=[1,94],Z=[1,99],J=[1,90],ee=[8,9,10,11,40,75,77,78],et=[8,9,10,11,40,46,75,77,78],es=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ei=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],er=[44,60,89,102,105,106,109,111,114,115,116],ea=[1,122],eu=[1,123],en=[1,125],eo=[1,124],el=[44,60,62,74,89,102,105,106,109,111,114,115,116],ec=[1,134],eh=[1,148],ed=[1,149],ep=[1,150],eg=[1,151],eA=[1,136],eb=[1,138],ek=[1,142],ef=[1,143],ey=[1,144],em=[1,145],eE=[1,146],eC=[1,147],eD=[1,152],eT=[1,153],ex=[1,132],eF=[1,133],eS=[1,140],e_=[1,135],eB=[1,139],ev=[1,137],eL=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],e$=[1,155],ew=[1,157],eI=[8,9,11],eR=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],eN=[1,177],eP=[1,173],eG=[1,174],eK=[1,178],eO=[1,175],eM=[1,176],eU=[77,116,119],eV=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],eW=[10,106],ez=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ej=[1,248],eY=[1,246],eX=[1,250],eH=[1,244],eq=[1,245],eQ=[1,247],eZ=[1,249],eJ=[1,251],e1=[1,269],e0=[8,9,11,106],e2=[8,9,10,11,60,84,105,106,109,110,111,112],e8={trace:(0,p.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,p.K)(function(e,t,s,i,r,a,u){var n=a.length-1;switch(r){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(a[n])||a[n].length>0)&&a[n-1].push(a[n]),this.$=a[n-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=a[n];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(a[n-1]),this.$=a[n-1];break;case 27:this.$=a[n-1].nodes;break;case 33:this.$=i.addSubGraph(a[n-6],a[n-1],a[n-4]);break;case 34:this.$=i.addSubGraph(a[n-3],a[n-1],a[n-3]);break;case 35:this.$=i.addSubGraph(void 0,a[n-1],void 0);break;case 37:this.$=a[n].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=a[n].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=a[n-1]+a[n];break;case 45:i.addVertex(a[n-1][a[n-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[n]),i.addLink(a[n-3].stmt,a[n-1],a[n-2]),this.$={stmt:a[n-1],nodes:a[n-1].concat(a[n-3].nodes)};break;case 46:i.addLink(a[n-2].stmt,a[n],a[n-1]),this.$={stmt:a[n],nodes:a[n].concat(a[n-2].nodes)};break;case 47:i.addLink(a[n-3].stmt,a[n-1],a[n-2]),this.$={stmt:a[n-1],nodes:a[n-1].concat(a[n-3].nodes)};break;case 48:this.$={stmt:a[n-1],nodes:a[n-1]};break;case 49:i.addVertex(a[n-1][a[n-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[n]),this.$={stmt:a[n-1],nodes:a[n-1],shapeData:a[n]};break;case 50:this.$={stmt:a[n],nodes:a[n]};break;case 51:case 128:case 130:this.$=[a[n]];break;case 52:i.addVertex(a[n-5][a[n-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[n-4]),this.$=a[n-5].concat(a[n]);break;case 53:this.$=a[n-4].concat(a[n]);break;case 55:this.$=a[n-2],i.setClass(a[n-2],a[n]);break;case 56:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"square");break;case 57:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"doublecircle");break;case 58:this.$=a[n-5],i.addVertex(a[n-5],a[n-2],"circle");break;case 59:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"ellipse");break;case 60:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"stadium");break;case 61:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"subroutine");break;case 62:this.$=a[n-7],i.addVertex(a[n-7],a[n-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[n-5],a[n-3]]]));break;case 63:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"cylinder");break;case 64:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"round");break;case 65:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"diamond");break;case 66:this.$=a[n-5],i.addVertex(a[n-5],a[n-2],"hexagon");break;case 67:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"odd");break;case 68:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"trapezoid");break;case 69:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"inv_trapezoid");break;case 70:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"lean_right");break;case 71:this.$=a[n-3],i.addVertex(a[n-3],a[n-1],"lean_left");break;case 72:this.$=a[n],i.addVertex(a[n]);break;case 73:a[n-1].text=a[n],this.$=a[n-1];break;case 74:case 75:a[n-2].text=a[n-1],this.$=a[n-2];break;case 77:var o=i.destructLink(a[n],a[n-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:a[n-1]};break;case 78:var o=i.destructLink(a[n],a[n-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:a[n-1],id:a[n-3]};break;case 79:case 86:case 101:case 103:this.$={text:a[n],type:"text"};break;case 80:case 87:case 102:this.$={text:a[n-1].text+""+a[n],type:a[n-1].type};break;case 81:case 88:this.$={text:a[n],type:"string"};break;case 82:case 89:case 104:this.$={text:a[n],type:"markdown"};break;case 83:var o=i.destructLink(a[n]);this.$={type:o.type,stroke:o.stroke,length:o.length};break;case 84:var o=i.destructLink(a[n]);this.$={type:o.type,stroke:o.stroke,length:o.length,id:a[n-1]};break;case 85:this.$=a[n-1];break;case 105:this.$=a[n-4],i.addClass(a[n-2],a[n]);break;case 106:this.$=a[n-4],i.setClass(a[n-2],a[n]);break;case 107:case 115:this.$=a[n-1],i.setClickEvent(a[n-1],a[n]);break;case 108:case 116:this.$=a[n-3],i.setClickEvent(a[n-3],a[n-2]),i.setTooltip(a[n-3],a[n]);break;case 109:this.$=a[n-2],i.setClickEvent(a[n-2],a[n-1],a[n]);break;case 110:this.$=a[n-4],i.setClickEvent(a[n-4],a[n-3],a[n-2]),i.setTooltip(a[n-4],a[n]);break;case 111:this.$=a[n-2],i.setLink(a[n-2],a[n]);break;case 112:this.$=a[n-4],i.setLink(a[n-4],a[n-2]),i.setTooltip(a[n-4],a[n]);break;case 113:this.$=a[n-4],i.setLink(a[n-4],a[n-2],a[n]);break;case 114:this.$=a[n-6],i.setLink(a[n-6],a[n-4],a[n]),i.setTooltip(a[n-6],a[n-2]);break;case 117:this.$=a[n-1],i.setLink(a[n-1],a[n]);break;case 118:this.$=a[n-3],i.setLink(a[n-3],a[n-2]),i.setTooltip(a[n-3],a[n]);break;case 119:this.$=a[n-3],i.setLink(a[n-3],a[n-2],a[n]);break;case 120:this.$=a[n-5],i.setLink(a[n-5],a[n-4],a[n]),i.setTooltip(a[n-5],a[n-2]);break;case 121:this.$=a[n-4],i.addVertex(a[n-2],void 0,void 0,a[n]);break;case 122:this.$=a[n-4],i.updateLink([a[n-2]],a[n]);break;case 123:this.$=a[n-4],i.updateLink(a[n-2],a[n]);break;case 124:this.$=a[n-8],i.updateLinkInterpolate([a[n-6]],a[n-2]),i.updateLink([a[n-6]],a[n]);break;case 125:this.$=a[n-8],i.updateLinkInterpolate(a[n-6],a[n-2]),i.updateLink(a[n-6],a[n]);break;case 126:this.$=a[n-6],i.updateLinkInterpolate([a[n-4]],a[n]);break;case 127:this.$=a[n-6],i.updateLinkInterpolate(a[n-4],a[n]);break;case 129:case 131:a[n-2].push(a[n]),this.$=a[n-2];break;case 182:case 184:this.$=a[n-1]+""+a[n];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:t,10:s,12:i},{1:[3]},e(r,a,{5:6}),{4:7,9:t,10:s,12:i},{4:8,9:t,10:s,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:n,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:k,85:f,86:y,87:m,88:E,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v,121:L,122:$,123:w,124:I,125:R},e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),{8:[1,55],9:[1,56],10:N,15:54,18:57},e(P,[2,3]),e(P,[2,4]),e(P,[2,5]),e(P,[2,6]),e(P,[2,7]),e(P,[2,8]),{8:G,9:K,11:O,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:G,9:K,11:O,21:68},{8:G,9:K,11:O,21:69},{8:G,9:K,11:O,21:70},{8:G,9:K,11:O,21:71},{8:G,9:K,11:O,21:72},{8:G,9:K,10:[1,73],11:O,21:74},e(P,[2,36]),{35:[1,75]},{37:[1,76]},e(P,[2,39]),e(M,[2,50],{18:77,39:78,10:N,40:U}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:V,44:W,60:z,80:[1,87],89:j,95:[1,84],97:[1,85],101:86,105:Y,106:X,109:H,111:q,114:Q,115:Z,116:J,120:88},e(P,[2,185]),e(P,[2,186]),e(P,[2,187]),e(P,[2,188]),e(P,[2,189]),e(ee,[2,51]),e(ee,[2,54],{46:[1,100]}),e(et,[2,72],{113:113,29:[1,101],44:A,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:b,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:C,102:D,105:T,106:x,109:F,111:S,114:_,115:B,116:v}),e(es,[2,181]),e(es,[2,142]),e(es,[2,143]),e(es,[2,144]),e(es,[2,145]),e(es,[2,146]),e(es,[2,147]),e(es,[2,148]),e(es,[2,149]),e(es,[2,150]),e(es,[2,151]),e(es,[2,152]),e(r,[2,12]),e(r,[2,18]),e(r,[2,19]),{9:[1,114]},e(ei,[2,26],{18:115,10:N}),e(P,[2,27]),{42:116,43:39,44:A,45:40,47:41,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},e(P,[2,40]),e(P,[2,41]),e(P,[2,42]),e(er,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ea,81:eu,116:en,119:eo},{75:[1,126],77:[1,127]},e(el,[2,83]),e(P,[2,28]),e(P,[2,29]),e(P,[2,30]),e(P,[2,31]),e(P,[2,32]),{10:ec,12:eh,14:ed,27:ep,28:128,32:eg,44:eA,60:eb,75:ek,80:[1,130],81:[1,131],83:141,84:ef,85:ey,86:em,87:eE,88:eC,89:eD,90:eT,91:129,105:ex,109:eF,111:eS,114:e_,115:eB,116:ev},e(eL,a,{5:154}),e(P,[2,37]),e(P,[2,38]),e(M,[2,48],{44:e$}),e(M,[2,49],{18:156,10:N,40:ew}),e(ee,[2,44]),{44:A,47:158,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},{102:[1,159],103:160,105:[1,161]},{44:A,47:162,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},{44:A,47:163,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},e(eI,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(eI,[2,115],{120:168,10:[1,167],14:V,44:W,60:z,89:j,105:Y,106:X,109:H,111:q,114:Q,115:Z,116:J}),e(eI,[2,117],{10:[1,169]}),e(eR,[2,183]),e(eR,[2,170]),e(eR,[2,171]),e(eR,[2,172]),e(eR,[2,173]),e(eR,[2,174]),e(eR,[2,175]),e(eR,[2,176]),e(eR,[2,177]),e(eR,[2,178]),e(eR,[2,179]),e(eR,[2,180]),{44:A,47:170,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},{30:171,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:179,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:181,50:[1,180],67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:182,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:183,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:184,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{109:[1,185]},{30:186,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:187,65:[1,188],67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:189,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:190,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{30:191,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},e(es,[2,182]),e(r,[2,20]),e(ei,[2,25]),e(M,[2,46],{39:192,18:193,10:N,40:U}),e(er,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{77:[1,197],79:198,116:en,119:eo},e(eU,[2,79]),e(eU,[2,81]),e(eU,[2,82]),e(eU,[2,168]),e(eU,[2,169]),{76:199,79:121,80:ea,81:eu,116:en,119:eo},e(el,[2,84]),{8:G,9:K,10:ec,11:O,12:eh,14:ed,21:201,27:ep,29:[1,200],32:eg,44:eA,60:eb,75:ek,83:141,84:ef,85:ey,86:em,87:eE,88:eC,89:eD,90:eT,91:202,105:ex,109:eF,111:eS,114:e_,115:eB,116:ev},e(eV,[2,101]),e(eV,[2,103]),e(eV,[2,104]),e(eV,[2,157]),e(eV,[2,158]),e(eV,[2,159]),e(eV,[2,160]),e(eV,[2,161]),e(eV,[2,162]),e(eV,[2,163]),e(eV,[2,164]),e(eV,[2,165]),e(eV,[2,166]),e(eV,[2,167]),e(eV,[2,90]),e(eV,[2,91]),e(eV,[2,92]),e(eV,[2,93]),e(eV,[2,94]),e(eV,[2,95]),e(eV,[2,96]),e(eV,[2,97]),e(eV,[2,98]),e(eV,[2,99]),e(eV,[2,100]),{6:11,7:12,8:u,9:n,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,203],33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:k,85:f,86:y,87:m,88:E,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v,121:L,122:$,123:w,124:I,125:R},{10:N,18:204},{44:[1,205]},e(ee,[2,43]),{10:[1,206],44:A,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:113,114:_,115:B,116:v},{10:[1,207]},{10:[1,208],106:[1,209]},e(eW,[2,128]),{10:[1,210],44:A,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:113,114:_,115:B,116:v},{10:[1,211],44:A,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:113,114:_,115:B,116:v},{80:[1,212]},e(eI,[2,109],{10:[1,213]}),e(eI,[2,111],{10:[1,214]}),{80:[1,215]},e(eR,[2,184]),{80:[1,216],98:[1,217]},e(ee,[2,55],{113:113,44:A,60:b,89:C,102:D,105:T,106:x,109:F,111:S,114:_,115:B,116:v}),{31:[1,218],67:eN,82:219,116:eK,117:eO,118:eM},e(ez,[2,86]),e(ez,[2,88]),e(ez,[2,89]),e(ez,[2,153]),e(ez,[2,154]),e(ez,[2,155]),e(ez,[2,156]),{49:[1,220],67:eN,82:219,116:eK,117:eO,118:eM},{30:221,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{51:[1,222],67:eN,82:219,116:eK,117:eO,118:eM},{53:[1,223],67:eN,82:219,116:eK,117:eO,118:eM},{55:[1,224],67:eN,82:219,116:eK,117:eO,118:eM},{57:[1,225],67:eN,82:219,116:eK,117:eO,118:eM},{60:[1,226]},{64:[1,227],67:eN,82:219,116:eK,117:eO,118:eM},{66:[1,228],67:eN,82:219,116:eK,117:eO,118:eM},{30:229,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},{31:[1,230],67:eN,82:219,116:eK,117:eO,118:eM},{67:eN,69:[1,231],71:[1,232],82:219,116:eK,117:eO,118:eM},{67:eN,69:[1,234],71:[1,233],82:219,116:eK,117:eO,118:eM},e(M,[2,45],{18:156,10:N,40:ew}),e(M,[2,47],{44:e$}),e(er,[2,75]),e(er,[2,74]),{62:[1,235],67:eN,82:219,116:eK,117:eO,118:eM},e(er,[2,77]),e(eU,[2,80]),{77:[1,236],79:198,116:en,119:eo},{30:237,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},e(eL,a,{5:238}),e(eV,[2,102]),e(P,[2,35]),{43:239,44:A,45:40,47:41,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},{10:N,18:240},{10:ej,60:eY,84:eX,92:241,105:eH,107:242,108:243,109:eq,110:eQ,111:eZ,112:eJ},{10:ej,60:eY,84:eX,92:252,104:[1,253],105:eH,107:242,108:243,109:eq,110:eQ,111:eZ,112:eJ},{10:ej,60:eY,84:eX,92:254,104:[1,255],105:eH,107:242,108:243,109:eq,110:eQ,111:eZ,112:eJ},{105:[1,256]},{10:ej,60:eY,84:eX,92:257,105:eH,107:242,108:243,109:eq,110:eQ,111:eZ,112:eJ},{44:A,47:258,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},e(eI,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(eI,[2,116]),e(eI,[2,118],{10:[1,262]}),e(eI,[2,119]),e(et,[2,56]),e(ez,[2,87]),e(et,[2,57]),{51:[1,263],67:eN,82:219,116:eK,117:eO,118:eM},e(et,[2,64]),e(et,[2,59]),e(et,[2,60]),e(et,[2,61]),{109:[1,264]},e(et,[2,63]),e(et,[2,65]),{66:[1,265],67:eN,82:219,116:eK,117:eO,118:eM},e(et,[2,67]),e(et,[2,68]),e(et,[2,70]),e(et,[2,69]),e(et,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(er,[2,78]),{31:[1,266],67:eN,82:219,116:eK,117:eO,118:eM},{6:11,7:12,8:u,9:n,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,267],33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:k,85:f,86:y,87:m,88:E,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v,121:L,122:$,123:w,124:I,125:R},e(ee,[2,53]),{43:268,44:A,45:40,47:41,60:b,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v},e(eI,[2,121],{106:e1}),e(e0,[2,130],{108:270,10:ej,60:eY,84:eX,105:eH,109:eq,110:eQ,111:eZ,112:eJ}),e(e2,[2,132]),e(e2,[2,134]),e(e2,[2,135]),e(e2,[2,136]),e(e2,[2,137]),e(e2,[2,138]),e(e2,[2,139]),e(e2,[2,140]),e(e2,[2,141]),e(eI,[2,122],{106:e1}),{10:[1,271]},e(eI,[2,123],{106:e1}),{10:[1,272]},e(eW,[2,129]),e(eI,[2,105],{106:e1}),e(eI,[2,106],{113:113,44:A,60:b,89:C,102:D,105:T,106:x,109:F,111:S,114:_,115:B,116:v}),e(eI,[2,110]),e(eI,[2,112],{10:[1,273]}),e(eI,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:G,9:K,11:O,21:278},e(P,[2,34]),e(ee,[2,52]),{10:ej,60:eY,84:eX,105:eH,107:279,108:243,109:eq,110:eQ,111:eZ,112:eJ},e(e2,[2,133]),{14:V,44:W,60:z,89:j,101:280,105:Y,106:X,109:H,111:q,114:Q,115:Z,116:J,120:88},{14:V,44:W,60:z,89:j,101:281,105:Y,106:X,109:H,111:q,114:Q,115:Z,116:J,120:88},{98:[1,282]},e(eI,[2,120]),e(et,[2,58]),{30:283,67:eN,80:eP,81:eG,82:172,116:eK,117:eO,118:eM},e(et,[2,66]),e(eL,a,{5:284}),e(e0,[2,131],{108:270,10:ej,60:eY,84:eX,105:eH,109:eq,110:eQ,111:eZ,112:eJ}),e(eI,[2,126],{120:168,10:[1,285],14:V,44:W,60:z,89:j,105:Y,106:X,109:H,111:q,114:Q,115:Z,116:J}),e(eI,[2,127],{120:168,10:[1,286],14:V,44:W,60:z,89:j,105:Y,106:X,109:H,111:q,114:Q,115:Z,116:J}),e(eI,[2,114]),{31:[1,287],67:eN,82:219,116:eK,117:eO,118:eM},{6:11,7:12,8:u,9:n,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,288],33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:k,85:f,86:y,87:m,88:E,89:C,102:D,105:T,106:x,109:F,111:S,113:42,114:_,115:B,116:v,121:L,122:$,123:w,124:I,125:R},{10:ej,60:eY,84:eX,92:289,105:eH,107:242,108:243,109:eq,110:eQ,111:eZ,112:eJ},{10:ej,60:eY,84:eX,92:290,105:eH,107:242,108:243,109:eq,110:eQ,111:eZ,112:eJ},e(et,[2,62]),e(P,[2,33]),e(eI,[2,124],{106:e1}),e(eI,[2,125],{106:e1})],defaultActions:{},parseError:(0,p.K)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,p.K)(function(e){var t=this,s=[0],i=[],r=[null],a=[],u=this.table,n="",o=0,l=0,c=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),g={};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(g[A]=this.yy[A]);d.setInput(e,g),g.lexer=d,g.parser=this,void 0===d.yylloc&&(d.yylloc={});var b=d.yylloc;a.push(b);var k=d.options&&d.options.ranges;function f(){var e;return"number"!=typeof(e=i.pop()||d.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,p.K)(function(e){s.length=s.length-2*e,r.length=r.length-e,a.length=a.length-e},"popStack"),(0,p.K)(f,"lex");for(var y,m,E,C,D,T,x,F,S,_={};;){if(E=s[s.length-1],this.defaultActions[E]?C=this.defaultActions[E]:(null==y&&(y=f()),C=u[E]&&u[E][y]),void 0===C||!C.length||!C[0]){var B="";for(T in S=[],u[E])this.terminals_[T]&&T>2&&S.push("'"+this.terminals_[T]+"'");B=d.showPosition?"Parse error on line "+(o+1)+":\n"+d.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(B,{text:d.match,token:this.terminals_[y]||y,line:d.yylineno,loc:b,expected:S})}if(C[0]instanceof Array&&C.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+y);switch(C[0]){case 1:s.push(y),r.push(d.yytext),a.push(d.yylloc),s.push(C[1]),y=null,m?(y=m,m=null):(l=d.yyleng,n=d.yytext,o=d.yylineno,b=d.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[C[1]][1],_.$=r[r.length-x],_._$={first_line:a[a.length-(x||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(x||1)].first_column,last_column:a[a.length-1].last_column},k&&(_._$.range=[a[a.length-(x||1)].range[0],a[a.length-1].range[1]]),void 0!==(D=this.performAction.apply(_,[n,l,o,g,C[1],r,a].concat(h))))return D;x&&(s=s.slice(0,-1*x*2),r=r.slice(0,-1*x),a=a.slice(0,-1*x)),s.push(this.productions_[C[1]][0]),r.push(_.$),a.push(_._$),F=u[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")};function e6(){this.yy={}}return e8.lexer={EOF:1,parseError:(0,p.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,p.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,p.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,p.K)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,p.K)(function(){return this._more=!0,this},"more"),reject:(0,p.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,p.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,p.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,p.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,p.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,p.K)(function(e,t){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,p.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,i,r=this._currentRules(),a=0;a<r.length;a++)if((s=this._input.match(this.rules[r[a]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[a])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,p.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,p.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,p.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,p.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,p.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,p.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,p.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,p.K)(function(e,t,s,i){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),t.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:case 38:return e.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 98;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:case 104:return 111;case 64:return 46;case 65:return 60;case 66:case 105:return 44;case 67:return 8;case 68:return 106;case 69:case 103:return 115;case 70:case 73:case 76:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:case 75:case 78:return 119;case 74:return this.pushState("thickEdgeText"),75;case 77:return this.pushState("dottedEdgeText"),75;case 79:return 77;case 80:return this.popState(),53;case 81:case 117:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}},(0,p.K)(e6,"Parser"),e6.prototype=e8,e8.Parser=e6,new e6}();m.parser=m;var E=Object.assign({},m);E.parse=e=>{let t=e.replace(/}\s*\n/g,"}\n");return m.parse(t)};var C=(0,p.K)((e,t)=>{let s=b.A,i=s(e,"r"),r=s(e,"g"),a=s(e,"b");return k.A(i,r,a,t)},"fade"),D=(0,p.K)(e=>`.label {
6
+ font-family: ${e.fontFamily};
7
+ color: ${e.nodeTextColor||e.textColor};
8
+ }
9
+ .cluster-label text {
10
+ fill: ${e.titleColor};
11
+ }
12
+ .cluster-label span {
13
+ color: ${e.titleColor};
14
+ }
15
+ .cluster-label span p {
16
+ background-color: transparent;
17
+ }
18
+
19
+ .label text,span {
20
+ fill: ${e.nodeTextColor||e.textColor};
21
+ color: ${e.nodeTextColor||e.textColor};
22
+ }
23
+
24
+ .node rect,
25
+ .node circle,
26
+ .node ellipse,
27
+ .node polygon,
28
+ .node path {
29
+ fill: ${e.mainBkg};
30
+ stroke: ${e.nodeBorder};
31
+ stroke-width: ${e.strokeWidth??1}px;
32
+ }
33
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
34
+ text-anchor: middle;
35
+ }
36
+
37
+ .node .katex path {
38
+ fill: #000;
39
+ stroke: #000;
40
+ stroke-width: 1px;
41
+ }
42
+
43
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
44
+ text-align: center;
45
+ }
46
+ .node.clickable {
47
+ cursor: pointer;
48
+ }
49
+
50
+
51
+ .root .anchor path {
52
+ fill: ${e.lineColor} !important;
53
+ stroke-width: 0;
54
+ stroke: ${e.lineColor};
55
+ }
56
+
57
+ .arrowheadPath {
58
+ fill: ${e.arrowheadColor};
59
+ }
60
+
61
+ .edgePaths .path {
62
+ stroke: ${e.lineColor};
63
+ stroke-width: ${e.strokeWidth??2}px;
64
+ }
65
+
66
+ .flowchart-link {
67
+ stroke: ${e.lineColor};
68
+ fill: none;
69
+ }
70
+
71
+ .edgeLabel {
72
+ background-color: ${e.edgeLabelBackground};
73
+ p {
74
+ background-color: ${e.edgeLabelBackground};
75
+ }
76
+ rect {
77
+ opacity: 0.5;
78
+ background-color: ${e.edgeLabelBackground};
79
+ fill: ${e.edgeLabelBackground};
80
+ }
81
+ text-align: center;
82
+ }
83
+
84
+ /* For html labels only */
85
+ .labelBkg {
86
+ background-color: ${C(e.edgeLabelBackground,.5)};
87
+ // background-color:
88
+ }
89
+
90
+ .cluster rect {
91
+ fill: ${e.clusterBkg};
92
+ stroke: ${e.clusterBorder};
93
+ stroke-width: 1px;
94
+ }
95
+
96
+ .cluster text {
97
+ fill: ${e.titleColor};
98
+ }
99
+
100
+ .cluster span {
101
+ color: ${e.titleColor};
102
+ }
103
+ /* .cluster div {
104
+ color: ${e.titleColor};
105
+ } */
106
+
107
+ /* Collapsed subgraph node (@{ view: collapsed }) */
108
+ .node .collapsed-indicator {
109
+ fill: ${e.clusterBorder};
110
+ stroke: none;
111
+ opacity: 0.6;
112
+ }
113
+
114
+ .node .collapsed-separator {
115
+ stroke: ${e.clusterBorder};
116
+ stroke-width: 0.75px;
117
+ }
118
+
119
+ div.mermaidTooltip {
120
+ position: absolute;
121
+ text-align: center;
122
+ max-width: 200px;
123
+ padding: 2px;
124
+ font-family: ${e.fontFamily};
125
+ font-size: 12px;
126
+ background: ${e.tertiaryColor};
127
+ border: 1px solid ${e.border2};
128
+ border-radius: 2px;
129
+ pointer-events: none;
130
+ z-index: 100;
131
+ }
132
+
133
+ .flowchartTitleText {
134
+ text-anchor: middle;
135
+ font-size: 18px;
136
+ fill: ${e.textColor};
137
+ }
138
+
139
+ rect.text {
140
+ fill: none;
141
+ stroke-width: 0;
142
+ }
143
+
144
+ .icon-shape, .image-shape {
145
+ background-color: ${e.edgeLabelBackground};
146
+ p {
147
+ background-color: ${e.edgeLabelBackground};
148
+ padding: 2px;
149
+ }
150
+ .label rect {
151
+ opacity: 0.5;
152
+ background-color: ${e.edgeLabelBackground};
153
+ fill: ${e.edgeLabelBackground};
154
+ }
155
+ text-align: center;
156
+ }
157
+ ${(0,i.o)()}
158
+ `,"getStyles"),T=(0,p.K)(function(){let{defaultLayout:e,styles:t=D}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{parser:E,get db(){return new f},renderer:y,styles:t,init:(0,p.K)(t=>{t.flowchart||(t.flowchart={});let s=(0,h.TM)().layout??e??t.layout;s&&(0,h.XV)({layout:s}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,(0,h.XV)({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}},"createFlowDiagram"),x=T()}}]);
@@ -0,0 +1,148 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[790,6361],{30790:(t,e,i)=>{i.d(e,{CP:()=>u,Ck:()=>d,HT:()=>y,PB:()=>p,aC:()=>h,lC:()=>o,m:()=>c,tk:()=>l});var n=i(31775),r=i(89851),a=i(84485),s=i(33948),l=(0,r.K)((t,e)=>{let i=t.append("rect");if(i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),e.name&&i.attr("name",e.name),e.rx&&i.attr("rx",e.rx),e.ry&&i.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)i.attr(t,e.attrs[t]);return e.class&&i.attr("class",e.class),i},"drawRect"),o=(0,r.K)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),c=(0,r.K)((t,e)=>{let i=e.text.replace(n.H1," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class&&r.attr("class",e.class);let a=r.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(i),r},"drawText"),h=(0,r.K)((t,e,i,n)=>{let r=t.append("image");r.attr("x",e),r.attr("y",i);let s=(0,a.J)(n);r.attr("xlink:href",s)},"drawImage"),u=(0,r.K)((t,e,i,n)=>{let r=t.append("use");r.attr("x",e),r.attr("y",i);let s=(0,a.J)(n);r.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),d=(0,r.K)(()=>{let t=(0,s.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,s.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},56361:(t,e,i)=>{i.d(e,{diagram:()=>Y});var n=i(71662),r=i(30790),a=i(31775);i(56037);var s=i(89851),l=i(33948),o=function(){var t=(0,s.K)(function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},"o"),e=[6,8,10,11,12,14,16,17,18],i=[1,9],n=[1,10],r=[1,11],a=[1,12],l=[1,13],o=[1,14],c={trace:(0,s.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,s.K)(function(t,e,i,n,r,a,s){var l=a.length-1;switch(r){case 1:return a[l-1];case 2:case 6:case 7:this.$=[];break;case 3:a[l-1].push(a[l]),this.$=a[l-1];break;case 4:case 5:this.$=a[l];break;case 8:n.setDiagramTitle(a[l].substr(6)),this.$=a[l].substr(6);break;case 9:this.$=a[l].trim(),n.setAccTitle(this.$);break;case 10:case 11:this.$=a[l].trim(),n.setAccDescription(this.$);break;case 12:n.addSection(a[l].substr(8)),this.$=a[l].substr(8);break;case 13:n.addTask(a[l-1],a[l]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:n,14:r,16:a,17:l,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:n,14:r,16:a,17:l,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,s.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,s.K)(function(t){var e=this,i=[0],n=[],r=[null],a=[],l=this.table,o="",c=0,h=0,u=0,p=a.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(d[f]=this.yy[f]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;a.push(g);var x=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||y.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.K)(function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,s.K)(m,"lex");for(var k,_,b,v,w,K,$,M,T,E={};;){if(b=i[i.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=m()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var S="";for(K in T=[],l[b])this.terminals_[K]&&K>2&&T.push("'"+this.terminals_[K]+"'");S=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:T})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:i.push(k),r.push(y.yytext),a.push(y.yylloc),i.push(v[1]),k=null,_?(k=_,_=null):(h=y.yyleng,o=y.yytext,c=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if($=this.productions_[v[1]][1],E.$=r[r.length-$],E._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},x&&(E._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[o,h,c,d,v[1],r,a].concat(p))))return w;$&&(i=i.slice(0,-1*$*2),r=r.slice(0,-1*$),a=a.slice(0,-1*$)),i.push(this.productions_[v[1]][0]),r.push(E.$),a.push(E._$),M=l[i[i.length-2]][i[i.length-1]],i.push(M);break;case 3:return!0}}return!0},"parse")};function h(){this.yy={}}return c.lexer={EOF:1,parseError:(0,s.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,s.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,s.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,s.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,s.K)(function(){return this._more=!0,this},"more"),reject:(0,s.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,s.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,s.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,s.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,s.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,s.K)(function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,s.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,r=this._currentRules(),a=0;a<r.length;a++)if((i=this._input.match(this.rules[r[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,s.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,s.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,s.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,s.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,s.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,s.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,s.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.K)(function(t,e,i,n){switch(i){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}},(0,s.K)(h,"Parser"),h.prototype=c,c.Parser=h,new h}();o.parser=o;var c="",h=[],u=[],p=[],y=(0,s.K)(function(){h.length=0,u.length=0,c="",p.length=0,(0,a.IU)()},"clear"),d=(0,s.K)(function(t){c=t,h.push(t)},"addSection"),f=(0,s.K)(function(){return h},"getSections"),g=(0,s.K)(function(){let t=_(),e=0;for(;!t&&e<100;)t=_(),e++;return u.push(...p),u},"getTasks"),x=(0,s.K)(function(){let t=[];return u.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),m=(0,s.K)(function(t,e){let i=e.substr(1).split(":"),n=0,r=[];1===i.length?(n=Number(i[0]),r=[]):(n=Number(i[0]),r=i[1].split(","));let a=r.map(t=>t.trim()),s={section:c,type:c,people:a,task:t,score:n};p.push(s)},"addTask"),k=(0,s.K)(function(t){let e={section:c,type:c,description:t,task:t,classes:[]};u.push(e)},"addTaskOrg"),_=(0,s.K)(function(){let t=(0,s.K)(function(t){return p[t].processed},"compileTask"),e=!0;for(let[i,n]of p.entries())t(i),e=e&&n.processed;return e},"compileTasks"),b=(0,s.K)(function(){return x()},"getActors"),v={getConfig:(0,s.K)(()=>(0,a.D7)().journey,"getConfig"),clear:y,setDiagramTitle:a.ke,getDiagramTitle:a.ab,setAccTitle:a.SV,getAccTitle:a.iN,setAccDescription:a.EI,getAccDescription:a.m7,addSection:d,getSections:f,getTasks:g,addTask:m,addTaskOrg:k,getActors:b},w=(0,s.K)(t=>`.label {
2
+ font-family: ${t.fontFamily};
3
+ color: ${t.textColor};
4
+ }
5
+ .mouth {
6
+ stroke: #666;
7
+ }
8
+
9
+ line {
10
+ stroke: ${t.textColor}
11
+ }
12
+
13
+ .legend {
14
+ fill: ${t.textColor};
15
+ font-family: ${t.fontFamily};
16
+ }
17
+
18
+ .label text {
19
+ fill: #333;
20
+ }
21
+ .label {
22
+ color: ${t.textColor}
23
+ }
24
+
25
+ .face {
26
+ ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
27
+ stroke: #999;
28
+ }
29
+
30
+ .node rect,
31
+ .node circle,
32
+ .node ellipse,
33
+ .node polygon,
34
+ .node path {
35
+ fill: ${t.mainBkg};
36
+ stroke: ${t.nodeBorder};
37
+ stroke-width: 1px;
38
+ }
39
+
40
+ .node .label {
41
+ text-align: center;
42
+ }
43
+ .node.clickable {
44
+ cursor: pointer;
45
+ }
46
+
47
+ .arrowheadPath {
48
+ fill: ${t.arrowheadColor};
49
+ }
50
+
51
+ .edgePaths .path {
52
+ stroke: ${t.lineColor};
53
+ stroke-width: 1.5px;
54
+ }
55
+
56
+ .flowchart-link {
57
+ stroke: ${t.lineColor};
58
+ fill: none;
59
+ }
60
+
61
+ .edgeLabel {
62
+ background-color: ${t.edgeLabelBackground};
63
+ rect {
64
+ opacity: 0.5;
65
+ }
66
+ text-align: center;
67
+ }
68
+
69
+ .cluster rect {
70
+ }
71
+
72
+ .cluster text {
73
+ fill: ${t.titleColor};
74
+ }
75
+
76
+ div.mermaidTooltip {
77
+ position: absolute;
78
+ text-align: center;
79
+ max-width: 200px;
80
+ padding: 2px;
81
+ font-family: ${t.fontFamily};
82
+ font-size: 12px;
83
+ background: ${t.tertiaryColor};
84
+ border: 1px solid ${t.border2};
85
+ border-radius: 2px;
86
+ pointer-events: none;
87
+ z-index: 100;
88
+ }
89
+
90
+ .task-type-0, .section-type-0 {
91
+ ${t.fillType0?`fill: ${t.fillType0}`:""};
92
+ }
93
+ .task-type-1, .section-type-1 {
94
+ ${t.fillType0?`fill: ${t.fillType1}`:""};
95
+ }
96
+ .task-type-2, .section-type-2 {
97
+ ${t.fillType0?`fill: ${t.fillType2}`:""};
98
+ }
99
+ .task-type-3, .section-type-3 {
100
+ ${t.fillType0?`fill: ${t.fillType3}`:""};
101
+ }
102
+ .task-type-4, .section-type-4 {
103
+ ${t.fillType0?`fill: ${t.fillType4}`:""};
104
+ }
105
+ .task-type-5, .section-type-5 {
106
+ ${t.fillType0?`fill: ${t.fillType5}`:""};
107
+ }
108
+ .task-type-6, .section-type-6 {
109
+ ${t.fillType0?`fill: ${t.fillType6}`:""};
110
+ }
111
+ .task-type-7, .section-type-7 {
112
+ ${t.fillType0?`fill: ${t.fillType7}`:""};
113
+ }
114
+
115
+ .actor-0 {
116
+ ${t.actor0?`fill: ${t.actor0}`:""};
117
+ }
118
+ .actor-1 {
119
+ ${t.actor1?`fill: ${t.actor1}`:""};
120
+ }
121
+ .actor-2 {
122
+ ${t.actor2?`fill: ${t.actor2}`:""};
123
+ }
124
+ .actor-3 {
125
+ ${t.actor3?`fill: ${t.actor3}`:""};
126
+ }
127
+ .actor-4 {
128
+ ${t.actor4?`fill: ${t.actor4}`:""};
129
+ }
130
+ .actor-5 {
131
+ ${t.actor5?`fill: ${t.actor5}`:""};
132
+ }
133
+ ${(0,n.o)()}
134
+ `,"getStyles"),K=(0,s.K)(function(t,e){return(0,r.tk)(t,e)},"drawRect"),$=(0,s.K)(function(t,e){let i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");function r(t){let i=(0,l.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(t){let i=(0,l.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,s.K)(r,"smile"),(0,s.K)(a,"sad"),(0,s.K)(o,"ambivalent"),e.score>3?r(n):e.score<3?a(n):o(n),i},"drawFace"),M=(0,s.K)(function(t,e){let i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),void 0!==i.class&&i.attr("class",i.class),void 0!==e.title&&i.append("title").text(e.title),i},"drawCircle"),T=(0,s.K)(function(t,e){return(0,r.m)(t,e)},"drawText"),E=(0,s.K)(function(t,e,i){let n=t.append("g"),a=(0,r.PB)();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),a.height=i.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,K(n,a),I(i)(e.text,n,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},i,e.colour)},"drawSection"),S=-1,C=(0,s.K)(function(t,e,i,n){let a=e.x+i.width/2,s=t.append("g");S++,s.append("line").attr("id",n+"-task"+S).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),$(s,{cx:a,cy:300+(5-e.score)*30,score:e.score});let l=(0,r.PB)();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=i.width,l.height=i.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,K(s,l);let o=e.x+14;e.people.forEach(t=>{let i=e.actors[t].color;M(s,{cx:o,cy:e.y,r:7,fill:i,stroke:"#000",title:t,pos:e.actors[t].position}),o+=10}),I(i)(e.task,s,l.x,l.y,l.width,l.height,{class:"task"},i,e.colour)},"drawTask"),I=function(){function t(t,e,i,r,a,s,l,o){n(e.append("text").attr("x",i+a/2).attr("y",r+s/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,i,r,a,s,l,o,c){let{taskFontSize:h,taskFontFamily:u}=o,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){let o=t*h-h*(p.length-1)/2,y=e.append("text").attr("x",i+a/2).attr("y",r).attr("fill",c).style("text-anchor","middle").style("font-size",h).style("font-family",u);y.append("tspan").attr("x",i+a/2).attr("dy",o).text(p[t]),y.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(y,l)}}function i(t,i,r,a,s,l,o,c){let h=i.append("switch"),u=h.append("foreignObject").attr("x",r).attr("y",a).attr("width",s).attr("height",l).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,h,r,a,s,l,o,c),n(u,o)}function n(t,e){for(let i in e)i in e&&t.attr(i,e[i])}return(0,s.K)(t,"byText"),(0,s.K)(e,"byTspan"),(0,s.K)(i,"byFo"),(0,s.K)(n,"_setTextAttrs"),function(n){return"fo"===n.textPlacement?i:"old"===n.textPlacement?t:e}}(),P=(0,s.K)(function(t,e){S=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),A=(0,s.K)(function(t){Object.keys(t).forEach(function(e){V[e]=t[e]})},"setConf"),j={},L=0;function D(t){let e=(0,a.D7)().journey,i=e.maxLabelWidth;L=0;let n=60;Object.keys(j).forEach(r=>{let a=j[r].color;M(t,{cx:20,cy:n,r:7,fill:a,stroke:"#000",pos:j[r].position});let s=t.append("text").attr("visibility","hidden").text(r),l=s.node().getBoundingClientRect().width;s.remove();let o=[];if(l<=i)o=[r];else{let e=r.split(" "),n="";s=t.append("text").attr("visibility","hidden"),e.forEach(t=>{let e=n?`${n} ${t}`:t;if(s.text(e),s.node().getBoundingClientRect().width>i){if(n&&o.push(n),n=t,s.text(t),s.node().getBoundingClientRect().width>i){let e="";for(let n of t)e+=n,s.text(e+"-"),s.node().getBoundingClientRect().width>i&&(o.push(e.slice(0,-1)+"-"),e=n);n=e}}else n=e}),n&&o.push(n),s.remove()}o.forEach((i,r)=>{let a=T(t,{x:40,y:n+7+20*r,fill:"#666",text:i,textMargin:e.boxTextMargin??5}).node().getBoundingClientRect().width;a>L&&a>e.leftMargin-a&&(L=a)}),n+=Math.max(20,20*o.length)})}(0,s.K)(D,"drawActorLegend");var V=(0,a.D7)().journey,B=0,F=(0,s.K)(function(t,e,i,n){let r,s=(0,a.D7)(),o=s.journey.titleColor,c=s.journey.titleFontSize,h=s.journey.titleFontFamily,u=s.securityLevel;"sandbox"===u&&(r=(0,l.Ltv)("#i"+e));let p="sandbox"===u?(0,l.Ltv)(r.nodes()[0].contentDocument.body):(0,l.Ltv)("body");N.init();let y=p.select("#"+e);P(y,e);let d=n.db.getTasks(),f=n.db.getDiagramTitle(),g=n.db.getActors();for(let t in j)delete j[t];let x=0;g.forEach(t=>{j[t]={color:V.actorColours[x%V.actorColours.length],position:x},x++}),D(y),B=V.leftMargin+L,N.insert(0,0,B,50*Object.keys(j).length),z(y,d,0,e);let m=N.getBounds();f&&y.append("text").text(f).attr("x",B).attr("font-size",c).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",h);let k=m.stopy-m.starty+2*V.diagramMarginY,_=B+m.stopx+2*V.diagramMarginX;(0,a.a$)(y,k,_,V.useMaxWidth),y.append("line").attr("x1",B).attr("y1",4*V.height).attr("x2",_-B-4).attr("y2",4*V.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");let b=70*!!f;y.attr("viewBox",`${m.startx} -25 ${_} ${k+b}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",k+b+25)},"draw"),N={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,s.K)(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:(0,s.K)(function(t,e,i,n){void 0===t[e]?t[e]=i:t[e]=n(i,t[e])},"updateVal"),updateBounds:(0,s.K)(function(t,e,i,n){let r=(0,a.D7)().journey,l=this,o=0;function c(a){return(0,s.K)(function(s){o++;let c=l.sequenceItems.length-o+1;l.updateVal(s,"starty",e-c*r.boxMargin,Math.min),l.updateVal(s,"stopy",n+c*r.boxMargin,Math.max),l.updateVal(N.data,"startx",t-c*r.boxMargin,Math.min),l.updateVal(N.data,"stopx",i+c*r.boxMargin,Math.max),"activation"!==a&&(l.updateVal(s,"startx",t-c*r.boxMargin,Math.min),l.updateVal(s,"stopx",i+c*r.boxMargin,Math.max),l.updateVal(N.data,"starty",e-c*r.boxMargin,Math.min),l.updateVal(N.data,"stopy",n+c*r.boxMargin,Math.max))},"updateItemBounds")}(0,s.K)(c,"updateFn"),this.sequenceItems.forEach(c())},"updateBounds"),insert:(0,s.K)(function(t,e,i,n){let r=Math.min(t,i),a=Math.max(t,i),s=Math.min(e,n),l=Math.max(e,n);this.updateVal(N.data,"startx",r,Math.min),this.updateVal(N.data,"starty",s,Math.min),this.updateVal(N.data,"stopx",a,Math.max),this.updateVal(N.data,"stopy",l,Math.max),this.updateBounds(r,s,a,l)},"insert"),bumpVerticalPos:(0,s.K)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:(0,s.K)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,s.K)(function(){return this.data},"getBounds")},R=V.sectionFills,O=V.sectionColours,z=(0,s.K)(function(t,e,i,n){let r=(0,a.D7)().journey,s="",l=i+(2*r.height+r.diagramMarginY),o=0,c="#CCC",h="black",u=0;for(let[i,a]of e.entries()){if(s!==a.section){c=R[o%R.length],u=o%R.length,h=O[o%O.length];let n=0,l=a.section;for(let t=i;t<e.length;t++)if(e[t].section==l)n+=1;else break;E(t,{x:i*r.taskMargin+i*r.width+B,y:50,text:a.section,fill:c,num:u,colour:h,taskCount:n},r),s=a.section,o++}let p=a.people.reduce((t,e)=>(j[e]&&(t[e]=j[e]),t),{});a.x=i*r.taskMargin+i*r.width+B,a.y=l,a.width=r.diagramMarginX,a.height=r.diagramMarginY,a.colour=h,a.fill=c,a.num=u,a.actors=p,C(t,a,r,n),N.insert(a.x,a.y,a.x+a.width+r.taskMargin,450)}},"drawTasks"),W={setConf:A,draw:F},Y={parser:o,db:v,renderer:W,styles:w,init:(0,s.K)(t=>{W.setConf(t.journey),v.clear()},"init")}},71662:(t,e,i)=>{i.d(e,{o:()=>n});var n=(0,i(89851).K)(()=>`
135
+ /* Font Awesome icon styling - consolidated */
136
+ .label-icon {
137
+ display: inline-block;
138
+ height: 1em;
139
+ overflow: visible;
140
+ vertical-align: -0.125em;
141
+ }
142
+
143
+ .node .label-icon path {
144
+ fill: currentColor;
145
+ stroke: revert;
146
+ stroke-width: revert;
147
+ }
148
+ `,"getIconStyles")}}]);
@@ -0,0 +1,86 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6774],{80650:(e,t,r)=>{function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}r.d(t,{S:()=>i}),(0,r(89851).K)(i,"populateCommonDb")},86279:(e,t,r)=>{r.d(t,{$:()=>O,U:()=>V,db:()=>S});var i=r(9797),a=r(31775),n=r(56037),o=r(89851),l="",s="",d="",m=[],c=new Map,h=(0,o.K)(e=>(0,a.jZ)(e,(0,a.D7)()),"sanitizeText"),p=(0,o.K)(e=>{switch(e.type){case"terminal":return{...e,value:h(e.value)};case"nonterminal":return{...e,name:h(e.name)};case"sequence":return{...e,elements:e.elements.map(p)};case"choice":return{...e,alternatives:e.alternatives.map(p)};case"optional":return{...e,element:p(e.element)};case"repetition":return{...e,element:p(e.element),separator:e.separator?p(e.separator):void 0};case"special":return{...e,text:h(e.text)}}},"sanitizeAstNode"),u=(0,o.K)(()=>{l="",s="",d="",m.length=0,c.clear(),(0,a.IU)(),n.R.debug("[Railroad] Database cleared")},"clear"),g=(0,o.K)(e=>{l=h(e),n.R.debug("[Railroad] Title set:",e)},"setTitle"),T=(0,o.K)(()=>l,"getTitle"),f=(0,o.K)(e=>{let t={...e,name:h(e.name),definition:p(e.definition),comment:e.comment?h(e.comment):void 0};n.R.debug("[Railroad] Adding rule:",t.name),c.has(t.name)&&n.R.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),m.push(t),c.set(t.name,t)},"addRule"),x=(0,o.K)(()=>m,"getRules"),w=(0,o.K)(e=>c.get(e),"getRule"),k=(0,o.K)(e=>{s=h(e).replace(/^\s+/g,""),n.R.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),C=(0,o.K)(()=>s,"getAccTitle"),$=(0,o.K)(e=>{d=h(e).replace(/\n\s+/g,"\n"),n.R.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),S={clear:u,setTitle:g,getTitle:T,addRule:f,getRules:x,getRule:w,setAccTitle:k,getAccTitle:C,setAccDescription:$,getAccDescription:(0,o.K)(()=>d,"getAccDescription"),setDiagramTitle:g,getDiagramTitle:T},F={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},y=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,R=/^[\w "',.-]+$/,b=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),v=(0,o.K)(e=>!!e&&Object.keys(e).every(e=>"railroad"===e||b.has(e)),"isRailroadStyleOptions"),z=(0,o.K)(e=>e?"railroad"in e&&e.railroad?e.railroad:v(e)?e:{}:{},"extractRailroadOverrides"),K=(0,o.K)(e=>{if(!e||v(e))return{};let{railroad:t,svgId:r,theme:i,look:a,...n}=e;return n},"extractThemeOverrides"),N=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;let r=e.trim();return y.test(r)?r:t},"sanitizeColorValue"),M=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;let r=e.trim();return R.test(r)?r:t},"sanitizeFontFamilyValue"),A=(0,o.K)((e,t)=>{let r="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):NaN;return Number.isFinite(r)&&r>=0?r:t},"sanitizeNumberValue"),D=(0,o.K)(e=>{let t="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),E=(0,o.K)(e=>{let t=M(e.fontFamily,F.fontFamily),r=D(e.fontSize)??F.fontSize;return{...F,fontFamily:t,fontSize:r,terminalFill:N(e.secondBkg??e.secondaryColor,F.terminalFill),terminalStroke:N(e.secondaryBorderColor??e.lineColor,F.terminalStroke),terminalTextColor:N(e.secondaryTextColor??e.textColor,F.terminalTextColor),nonTerminalFill:N(e.mainBkg??e.background,F.nonTerminalFill),nonTerminalStroke:N(e.primaryBorderColor??e.lineColor,F.nonTerminalStroke),nonTerminalTextColor:N(e.primaryTextColor??e.textColor,F.nonTerminalTextColor),lineColor:N(e.lineColor,F.lineColor),markerFill:N(e.lineColor,F.markerFill),commentFill:N(e.labelBackground??e.tertiaryColor,F.commentFill),commentStroke:N(e.tertiaryBorderColor??e.lineColor,F.commentStroke),commentTextColor:N(e.tertiaryTextColor??e.textColor,F.commentTextColor),specialFill:N(e.tertiaryColor??e.secondaryColor,F.specialFill),specialStroke:N(e.tertiaryBorderColor??e.secondaryBorderColor,F.specialStroke),ruleNameColor:N(e.titleColor??e.textColor,F.ruleNameColor)}},"buildThemeDefaults"),B=(0,o.K)(e=>{let t=(0,a.zj)(),r=E({...(0,a.P$)(),...t.themeVariables??{},...K(e)}),i={...t.railroad??{},...z(e)};return{compactMode:i.compactMode??r.compactMode,padding:A(i.padding,r.padding),verticalSeparation:A(i.verticalSeparation,r.verticalSeparation),horizontalSeparation:A(i.horizontalSeparation,r.horizontalSeparation),arcRadius:A(i.arcRadius,r.arcRadius),fontSize:A(i.fontSize,r.fontSize),fontFamily:M(i.fontFamily,r.fontFamily),terminalFill:N(i.terminalFill,r.terminalFill),terminalStroke:N(i.terminalStroke,r.terminalStroke),terminalTextColor:N(i.terminalTextColor,r.terminalTextColor),nonTerminalFill:N(i.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:N(i.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:N(i.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:N(i.lineColor,r.lineColor),strokeWidth:A(i.strokeWidth,r.strokeWidth),markerFill:N(i.markerFill,r.markerFill),commentFill:N(i.commentFill,r.commentFill),commentStroke:N(i.commentStroke,r.commentStroke),commentTextColor:N(i.commentTextColor,r.commentTextColor),specialFill:N(i.specialFill,r.specialFill),specialStroke:N(i.specialStroke,r.specialStroke),ruleNameColor:N(i.ruleNameColor,r.ruleNameColor),showMarkers:i.showMarkers??r.showMarkers,markerRadius:A(i.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),O=(0,o.K)(e=>{let{fontFamily:t,fontSize:r,terminalFill:i,terminalStroke:a,terminalTextColor:n,nonTerminalFill:o,nonTerminalStroke:l,nonTerminalTextColor:s,lineColor:d,strokeWidth:m,markerFill:c,commentFill:h,commentStroke:p,commentTextColor:u,specialFill:g,specialStroke:T,ruleNameColor:f}=B(e);return`
2
+ .railroad-diagram {
3
+ font-family: ${t};
4
+ font-size: ${r}px;
5
+ }
6
+
7
+ .railroad-terminal rect {
8
+ fill: ${i};
9
+ stroke: ${a};
10
+ stroke-width: ${m}px;
11
+ }
12
+
13
+ .railroad-terminal text {
14
+ fill: ${n};
15
+ font-family: ${t};
16
+ font-size: ${r}px;
17
+ text-anchor: middle;
18
+ dominant-baseline: middle;
19
+ }
20
+
21
+ .railroad-nonterminal rect {
22
+ fill: ${o};
23
+ stroke: ${l};
24
+ stroke-width: ${m}px;
25
+ }
26
+
27
+ .railroad-nonterminal text {
28
+ fill: ${s};
29
+ font-family: ${t};
30
+ font-size: ${r}px;
31
+ text-anchor: middle;
32
+ dominant-baseline: middle;
33
+ }
34
+
35
+ .railroad-line {
36
+ stroke: ${d};
37
+ stroke-width: ${m}px;
38
+ fill: none;
39
+ }
40
+
41
+ .railroad-start circle,
42
+ .railroad-end circle {
43
+ fill: ${c};
44
+ }
45
+
46
+ .railroad-comment ellipse {
47
+ fill: ${h};
48
+ stroke: ${p};
49
+ stroke-width: ${m}px;
50
+ }
51
+
52
+ .railroad-comment text {
53
+ fill: ${u};
54
+ font-style: italic;
55
+ font-family: ${t};
56
+ font-size: ${r}px;
57
+ text-anchor: middle;
58
+ dominant-baseline: middle;
59
+ }
60
+
61
+ .railroad-special rect {
62
+ fill: ${g};
63
+ stroke: ${T};
64
+ stroke-width: ${m}px;
65
+ stroke-dasharray: 5,3;
66
+ }
67
+
68
+ .railroad-special text {
69
+ fill: ${s};
70
+ font-family: ${t};
71
+ font-size: ${r}px;
72
+ text-anchor: middle;
73
+ dominant-baseline: middle;
74
+ }
75
+
76
+ .railroad-rule-name {
77
+ font-weight: bold;
78
+ fill: ${f};
79
+ font-family: ${t};
80
+ font-size: ${r}px;
81
+ }
82
+
83
+ .railroad-group {
84
+ /* Grouping container, no specific styles */
85
+ }
86
+ `},"getStyles"),W=class{constructor(){this.d=""}static #e=(0,o.K)(this,"PathBuilder");moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,r,i,a,n,o){return this.d+=`A ${e} ${t} ${r} ${+!!i} ${+!!a} ${n} ${o} `,this}build(){return this.d.trim()}},_=class{constructor(e,t=B()){this.textCache=new Map,this.svg=e,this.config=t}static #e=(0,o.K)(this,"RailroadRenderer");measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),r=t.node().getBBox(),i={width:r.width,height:r.height};return t.remove(),this.textCache.set(e,i),i}renderTerminal(e,t){let r=this.measureText(t),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a).attr("rx",10).attr("ry",10),n.append("text").attr("x",i/2).attr("y",a/2).text(t),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderNonTerminal(e,t){let r=this.measureText(t),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a),n.append("text").attr("x",i/2).attr("y",a/2).text(t),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderSequence(e,t){let r=t.map(t=>this.renderExpression(e,t)),i=0,a=0,n=0;for(let e of r)i+=e.dimensions.width,a=Math.max(a,e.dimensions.up),n=Math.max(n,e.dimensions.down);i+=(r.length-1)*this.config.horizontalSeparation;let o=e.append("g").attr("class","railroad-sequence"),l=0;for(let e=0;e<r.length;e++){let t=r[e],i=a-t.dimensions.up;if(o.node().appendChild(t.element).setAttribute("transform",`translate(${l}, ${i})`),e<r.length-1){let e=l+t.dimensions.width,r=e+this.config.horizontalSeparation,i=a;o.append("path").attr("class","railroad-line").attr("d",new W().moveTo(e,i).lineTo(r,i).build())}l+=t.dimensions.width+this.config.horizontalSeparation}return{element:o.node(),dimensions:{width:i,height:a+n,up:a,down:n}}}renderChoice(e,t){let r=t.map(t=>this.renderExpression(e,t)),i=0,a=0;for(let e of r)i=Math.max(i,e.dimensions.width),a+=e.dimensions.height;a+=(r.length-1)*this.config.verticalSeparation;let n=this.config.arcRadius,o=i+4*n,l=e.append("g").attr("class","railroad-choice"),s=0,d=a/2;for(let e of r){let t=s,r=t+e.dimensions.up,a=2*n+(i-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute("transform",`translate(${a}, ${t})`);let m=new W,c=r>d;r===d?m.moveTo(0,d).lineTo(a,r):m.moveTo(0,d).arcTo(n,n,0,!1,c,n,d+(c?n:-n)).lineTo(n,r-(c?n:-n)).arcTo(n,n,0,!1,!c,2*n,r).lineTo(a,r),l.append("path").attr("class","railroad-line").attr("d",m.build());let h=new W,p=a+e.dimensions.width,u=o-2*n;r===d?h.moveTo(p,r).lineTo(o,d):h.moveTo(p,r).lineTo(u,r).arcTo(n,n,0,!1,!c,o-n,r+(c?-n:n)).lineTo(o-n,d+(c?n:-n)).arcTo(n,n,0,!1,c,o,d),l.append("path").attr("class","railroad-line").attr("d",h.build()),s+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:o,height:a,up:d,down:a-d}}}renderOptional(e,t){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=2*i,n=r.dimensions.width+4*i,o=r.dimensions.height+a,l=e.append("g").attr("class","railroad-optional"),s=2*i;l.node().appendChild(r.element).setAttribute("transform",`translate(${s}, ${a})`);let d=a+r.dimensions.up,m=new W().moveTo(0,d).lineTo(2*i,d);l.append("path").attr("class","railroad-line").attr("d",m.build());let c=new W().moveTo(s+r.dimensions.width,d).lineTo(n,d);l.append("path").attr("class","railroad-line").attr("d",c.build());let h=new W().moveTo(0,d).arcTo(i,i,0,!1,!1,i,d-i).lineTo(i,i).arcTo(i,i,0,!1,!0,2*i,0).lineTo(n-2*i,0).arcTo(i,i,0,!1,!0,n-i,i).lineTo(n-i,d-i).arcTo(i,i,0,!1,!1,n,d);return l.append("path").attr("class","railroad-line").attr("d",h.build()),{element:l.node(),dimensions:{width:n,height:o,up:d,down:o-d}}}renderRepetition(e,t,r){let i=this.renderExpression(e,t),a=this.config.arcRadius,n=2*a,o=i.dimensions.width+4*a,l=0===r,s=i.dimensions.height+n+(l?n:0),d=e.append("g").attr("class","railroad-repetition"),m=2*a,c=l?n:0;d.node().appendChild(i.element).setAttribute("transform",`translate(${m}, ${c})`);let h=c+i.dimensions.up;d.append("path").attr("class","railroad-line").attr("d",new W().moveTo(0,h).lineTo(2*a,h).build()),d.append("path").attr("class","railroad-line").attr("d",new W().moveTo(m+i.dimensions.width,h).lineTo(o,h).build());let p=c+i.dimensions.height+a,u=new W().moveTo(m+i.dimensions.width,h).arcTo(a,a,0,!1,!0,m+i.dimensions.width+a,h+a).lineTo(m+i.dimensions.width+a,p).arcTo(a,a,0,!1,!0,m+i.dimensions.width,p+a).lineTo(2*a,p+a).arcTo(a,a,0,!1,!0,a,p).lineTo(a,h+a).arcTo(a,a,0,!1,!0,2*a,h);if(d.append("path").attr("class","railroad-line").attr("d",u.build()),l){let e=new W().moveTo(0,h).arcTo(a,a,0,!1,!1,a,h-a).lineTo(a,a).arcTo(a,a,0,!1,!0,2*a,0).lineTo(o-2*a,0).arcTo(a,a,0,!1,!0,o-a,a).lineTo(o-a,h-a).arcTo(a,a,0,!1,!1,o,h);d.append("path").attr("class","railroad-line").attr("d",e.build())}return{element:d.node(),dimensions:{width:o,height:s,up:h,down:s-h}}}renderSpecial(e,t){let r=this.measureText("? "+t+" ?"),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a),n.append("text").attr("x",i/2).attr("y",a/2).text("? "+t+" ?"),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderExpression(e,t){switch(t.type){case"terminal":return this.renderTerminal(e,t.value);case"nonterminal":return this.renderNonTerminal(e,t.name);case"sequence":return this.renderSequence(e,t.elements);case"choice":return this.renderChoice(e,t.alternatives);case"optional":return this.renderOptional(e,t.element);case"repetition":return this.renderRepetition(e,t.element,t.min);case"special":return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let r=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${t})`),i=e.name+" =",a=this.measureText(i).width+20,n=a+20,o=r.append("g"),l=this.renderExpression(o,e.definition),s=Math.max(20,l.dimensions.up),d=s-l.dimensions.up;return o.attr("transform",`translate(${n}, ${d})`),r.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(i),r.append("g").attr("class","railroad-start").append("circle").attr("cx",a).attr("cy",s).attr("r",this.config.markerRadius),r.append("g").attr("class","railroad-end").append("circle").attr("cx",n+l.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),r.append("path").attr("class","railroad-line").attr("d",new W().moveTo(a+this.config.markerRadius,s).lineTo(n,s).build()),r.append("path").attr("class","railroad-line").attr("d",new W().moveTo(n+l.dimensions.width,s).lineTo(n+l.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,d+l.dimensions.height+2*this.config.padding),width:n+l.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,r=0;for(let i of e){let e=this.renderRule(i,t);t+=e.height+this.config.verticalSeparation,r=Math.max(r,e.width)}return{width:r+2*this.config.padding,height:t+this.config.padding}}},q=(0,o.K)((e,t,r)=>{(0,a.a$)(e,t.height,t.width,r),e.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),V={draw:(0,o.K)((e,t,r)=>{n.R.debug("[Railroad] Rendering diagram\n"+e);try{let e=(0,i.D)(t);e.attr("class","railroad-diagram");let r=(0,a.zj)().railroad,o=r?.useMaxWidth??!0,l=S.getRules();if(n.R.debug(`[Railroad] Rendering ${l.length} rules`),0===l.length){n.R.warn("[Railroad] No rules to render"),q(e,{height:100,width:200},o);return}let s=new _(e,B()).renderDiagram(l);q(e,s,o),n.R.debug("[Railroad] Render complete")}catch(e){throw n.R.error("[Railroad] Render error:",e),e}},"draw")}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6968],{26968:(e,r,a)=>{a.d(r,{diagram:()=>m});var t=a(86279),l=a(80650);a(9797),a(31775);var n=a(56037),i=a(89851),s=a(88863),p=(0,s.lz)().Railroad.parser.LangiumParser,o=(0,i.K)(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(o);return 1===r.length?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(o);return 1===r.length?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:o(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:o(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),d=(0,i.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),u=(0,i.K)(e=>{(0,l.S)(e,t.db),e.title&&t.db.setTitle(e.title),e.rules.map(e=>t.db.addRule(d(e)))},"populateDb"),m={parser:{parse:(0,i.K)(e=>{t.db.clear(),n.R.debug("[Railroad Parser] Starting Langium parse");let r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new s.zg(r);let a=r.value;n.R.debug("[Railroad Parser] Parsed rules:",a.rules.length),u(a),n.R.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t.db}},db:t.db,renderer:t.U,styles:t.$}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7236],{57236:(e,r,t)=>{t.d(r,{diagram:()=>g});var a=t(86279),n=t(80650);t(9797),t(31775);var s=t(56037),l=t(89851),p=t(88863),i=(0,p.Pz)().RailroadPeg.parser.LangiumParser,o=(0,l.K)(e=>{let r=e.alternatives.map(u);return 1===r.length?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),u=(0,l.K)(e=>{let r=e.elements.map(m);return 1===r.length?r[0]:{type:"sequence",elements:r}},"transformSequence"),m=(0,l.K)(e=>{let r=c(e.suffix);return e.operator?{type:"special",text:"&"===e.operator?`&${d(r)}`:`!${d(r)}`}:r},"transformPrefix"),d=(0,l.K)(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),c=(0,l.K)(e=>{let r=f(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),f=(0,l.K)(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return o(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=(0,l.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),P=(0,l.K)(e=>{(0,n.S)(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(e=>a.db.addRule(y(e)))},"populateDb"),g={parser:{parse:(0,l.K)(e=>{a.db.clear(),s.R.debug("[PEG Parser] Starting Langium parse");let r=i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p.zg(r);let t=r.value;s.R.debug("[PEG Parser] Parsed rules:",t.rules.length),P(t),s.R.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a.db}},db:a.db,renderer:a.U,styles:a.$}}}]);