@seqyuan/annovibe 0.8.119 → 0.8.121

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 (319) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +14 -12
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/react-loadable-manifest.json +1 -1
  6. package/.next/required-server-files.js +1 -1
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +12 -0
  9. package/.next/server/app/_global-error/page.js +3 -3
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/.next/server/app/_not-found/page.js +2 -2
  20. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/_not-found.html +1 -1
  22. package/.next/server/app/_not-found.rsc +2 -2
  23. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  24. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  26. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  29. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  30. package/.next/server/app/api/agent/[id]/prepare/route.js +1 -1
  31. package/.next/server/app/api/agent/[id]/route.js +1 -1
  32. package/.next/server/app/api/agent/new/route.js +1 -1
  33. package/.next/server/app/api/agent/running/events/route.js +1 -1
  34. package/.next/server/app/api/agent/running/route.js +1 -0
  35. package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -0
  36. package/.next/server/app/api/agent/runtime/route.js +1 -1
  37. package/.next/server/app/api/apps/[id]/[[...path]]/route.js +2 -2
  38. package/.next/server/app/api/apps/route.js +1 -1
  39. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  40. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  41. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  42. package/.next/server/app/api/auth/login/route.js +1 -1
  43. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  44. package/.next/server/app/api/auth/providers/route.js +1 -1
  45. package/.next/server/app/api/auth/status/route.js +1 -1
  46. package/.next/server/app/api/auth/totp/route.js +1 -1
  47. package/.next/server/app/api/debug-models/route.js +1 -1
  48. package/.next/server/app/api/default-cwd/route.js +1 -1
  49. package/.next/server/app/api/file-tree/delete/route.js +1 -1
  50. package/.next/server/app/api/file-tree/mkdir/route.js +1 -1
  51. package/.next/server/app/api/file-tree/rename/route.js +1 -1
  52. package/.next/server/app/api/file-tree/reveal/route.js +1 -1
  53. package/.next/server/app/api/file-tree/write/route.js +1 -1
  54. package/.next/server/app/api/file-watch/route.js +2 -2
  55. package/.next/server/app/api/files/[...path]/route.js +1 -1
  56. package/.next/server/app/api/harness/route.js +1 -1
  57. package/.next/server/app/api/home/route.js +1 -1
  58. package/.next/server/app/api/im/cancel/route.js +1 -1
  59. package/.next/server/app/api/im/gateway-status/route.js +1 -1
  60. package/.next/server/app/api/im/gateway-token/route.js +1 -1
  61. package/.next/server/app/api/im/project/route.js +1 -1
  62. package/.next/server/app/api/im/projects/route.js +1 -1
  63. package/.next/server/app/api/im/session-ids/route.js +1 -1
  64. package/.next/server/app/api/im/turn/route.js +2 -2
  65. package/.next/server/app/api/images/upload/route.js +1 -1
  66. package/.next/server/app/api/internal/runtime/route.js +1 -1
  67. package/.next/server/app/api/memory/dismiss/route.js +2 -2
  68. package/.next/server/app/api/memory/promote/route.js +2 -2
  69. package/.next/server/app/api/models/route.js +1 -1
  70. package/.next/server/app/api/models-config/discover/route.js +1 -1
  71. package/.next/server/app/api/models-config/route.js +1 -1
  72. package/.next/server/app/api/models-config/test/route.js +1 -1
  73. package/.next/server/app/api/plot-kernels/route.js +1 -1
  74. package/.next/server/app/api/plot-kernels/save/route.js +1 -1
  75. package/.next/server/app/api/plot-kernels/status/route.js +1 -1
  76. package/.next/server/app/api/plot-kernels/stop/route.js +1 -1
  77. package/.next/server/app/api/projects/browse/route.js +1 -1
  78. package/.next/server/app/api/projects/route.js +1 -1
  79. package/.next/server/app/api/search/route.js +1 -1
  80. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  81. package/.next/server/app/api/sessions/[id]/kernel-state/route.js +1 -1
  82. package/.next/server/app/api/sessions/[id]/plan/route.js +1 -1
  83. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  84. package/.next/server/app/api/sessions/[id]/workbench-artifact/route.js +1 -1
  85. package/.next/server/app/api/sessions/[id]/workbench-review/route.js +1 -1
  86. package/.next/server/app/api/sessions/new/route.js +1 -1
  87. package/.next/server/app/api/sessions/route.js +1 -1
  88. package/.next/server/app/api/settings/route.js +1 -1
  89. package/.next/server/app/api/skills/install/route.js +2 -2
  90. package/.next/server/app/api/skills/route.js +2 -2
  91. package/.next/server/app/api/skills/search/route.js +1 -1
  92. package/.next/server/app/api/smoke/prompt-admission/route.js +1 -0
  93. package/.next/server/app/api/smoke/prompt-admission/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/soul/route.js +1 -1
  95. package/.next/server/app/api/subagents/status/route.js +1 -1
  96. package/.next/server/app/api/version/route.js +1 -1
  97. package/.next/server/app/favicon.ico/route.js +1 -1
  98. package/.next/server/app/icon.svg/route.js +1 -1
  99. package/.next/server/app/index.html +1 -1
  100. package/.next/server/app/index.rsc +3 -3
  101. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  102. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  103. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  104. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  105. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  106. package/.next/server/app/login/page.js +2 -2
  107. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  108. package/.next/server/app/login.html +1 -1
  109. package/.next/server/app/login.rsc +2 -2
  110. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  111. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  112. package/.next/server/app/login.segments/_index.segment.rsc +2 -2
  113. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  114. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  115. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  116. package/.next/server/app/page.js +6 -6
  117. package/.next/server/app/page_client-reference-manifest.js +1 -1
  118. package/.next/server/app/smoke/page.js +3 -3
  119. package/.next/server/app/smoke/page_client-reference-manifest.js +1 -1
  120. package/.next/server/app/smoke/session-stream/page.js +2 -2
  121. package/.next/server/app/smoke/session-stream/page_client-reference-manifest.js +1 -1
  122. package/.next/server/app/smoke/session-stream.html +1 -1
  123. package/.next/server/app/smoke/session-stream.rsc +3 -3
  124. package/.next/server/app/smoke/session-stream.segments/_full.segment.rsc +3 -3
  125. package/.next/server/app/smoke/session-stream.segments/_head.segment.rsc +1 -1
  126. package/.next/server/app/smoke/session-stream.segments/_index.segment.rsc +2 -2
  127. package/.next/server/app/smoke/session-stream.segments/_tree.segment.rsc +2 -2
  128. package/.next/server/app/smoke/session-stream.segments/smoke/session-stream/__PAGE__.segment.rsc +2 -2
  129. package/.next/server/app/smoke/session-stream.segments/smoke/session-stream.segment.rsc +1 -1
  130. package/.next/server/app/smoke/session-stream.segments/smoke.segment.rsc +1 -1
  131. package/.next/server/app/smoke.html +2 -2
  132. package/.next/server/app/smoke.rsc +3 -3
  133. package/.next/server/app/smoke.segments/_full.segment.rsc +3 -3
  134. package/.next/server/app/smoke.segments/_head.segment.rsc +1 -1
  135. package/.next/server/app/smoke.segments/_index.segment.rsc +2 -2
  136. package/.next/server/app/smoke.segments/_tree.segment.rsc +2 -2
  137. package/.next/server/app/smoke.segments/smoke/__PAGE__.segment.rsc +2 -2
  138. package/.next/server/app/smoke.segments/smoke.segment.rsc +1 -1
  139. package/.next/server/app-paths-manifest.json +14 -12
  140. package/.next/server/chunks/3041.js +22 -0
  141. package/.next/server/chunks/42.js +349 -0
  142. package/.next/server/chunks/4584.js +260 -0
  143. package/.next/server/chunks/6429.js +4 -4
  144. package/.next/server/chunks/707.js +22 -0
  145. package/.next/server/chunks/8363.js +1 -0
  146. package/.next/server/middleware-build-manifest.js +1 -1
  147. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  148. package/.next/server/middleware.js +3 -3
  149. package/.next/server/pages/404.html +1 -1
  150. package/.next/server/pages/500.html +1 -1
  151. package/.next/server/server-reference-manifest.json +1 -1
  152. package/.next/static/RGo27ZXaxOnz4AWGjVXXd/_buildManifest.js +1 -0
  153. package/.next/static/chunks/2254-fa3fcc88564ee18d.js +1 -0
  154. package/.next/static/chunks/2693-b831832202452107.js +173 -0
  155. package/.next/static/chunks/4456-2ebe94e87b59562c.js +260 -0
  156. package/.next/static/chunks/5377-8f8cd2e62855e613.js +22 -0
  157. package/.next/static/chunks/5618-3b8444e736e6ae4d.js +22 -0
  158. package/.next/static/chunks/8013.d099e26a71d06fa9.js +1 -0
  159. package/.next/static/chunks/app/_global-error/page-2ea89149f3a75cf0.js +1 -0
  160. package/.next/static/chunks/app/api/agent/[id]/events/route-2ea89149f3a75cf0.js +1 -0
  161. package/.next/static/chunks/app/api/agent/[id]/prepare/route-2ea89149f3a75cf0.js +1 -0
  162. package/.next/static/chunks/app/api/agent/[id]/route-2ea89149f3a75cf0.js +1 -0
  163. package/.next/static/chunks/app/api/agent/new/route-2ea89149f3a75cf0.js +1 -0
  164. package/.next/static/chunks/app/api/agent/running/events/route-2ea89149f3a75cf0.js +1 -0
  165. package/.next/static/chunks/app/api/agent/running/route-2ea89149f3a75cf0.js +1 -0
  166. package/.next/static/chunks/app/api/agent/runtime/route-2ea89149f3a75cf0.js +1 -0
  167. package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-2ea89149f3a75cf0.js +1 -0
  168. package/.next/static/chunks/app/api/apps/route-2ea89149f3a75cf0.js +1 -0
  169. package/.next/static/chunks/app/api/auth/all-providers/route-2ea89149f3a75cf0.js +1 -0
  170. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-2ea89149f3a75cf0.js +1 -0
  171. package/.next/static/chunks/app/api/auth/login/[provider]/route-2ea89149f3a75cf0.js +1 -0
  172. package/.next/static/chunks/app/api/auth/login/route-2ea89149f3a75cf0.js +1 -0
  173. package/.next/static/chunks/app/api/auth/logout/[provider]/route-2ea89149f3a75cf0.js +1 -0
  174. package/.next/static/chunks/app/api/auth/providers/route-2ea89149f3a75cf0.js +1 -0
  175. package/.next/static/chunks/app/api/auth/status/route-2ea89149f3a75cf0.js +1 -0
  176. package/.next/static/chunks/app/api/auth/totp/route-2ea89149f3a75cf0.js +1 -0
  177. package/.next/static/chunks/app/api/debug-models/route-2ea89149f3a75cf0.js +1 -0
  178. package/.next/static/chunks/app/api/default-cwd/route-2ea89149f3a75cf0.js +1 -0
  179. package/.next/static/chunks/app/api/file-tree/delete/route-2ea89149f3a75cf0.js +1 -0
  180. package/.next/static/chunks/app/api/file-tree/mkdir/route-2ea89149f3a75cf0.js +1 -0
  181. package/.next/static/chunks/app/api/file-tree/rename/route-2ea89149f3a75cf0.js +1 -0
  182. package/.next/static/chunks/app/api/file-tree/reveal/route-2ea89149f3a75cf0.js +1 -0
  183. package/.next/static/chunks/app/api/file-tree/write/route-2ea89149f3a75cf0.js +1 -0
  184. package/.next/static/chunks/app/api/file-watch/route-2ea89149f3a75cf0.js +1 -0
  185. package/.next/static/chunks/app/api/files/[...path]/route-2ea89149f3a75cf0.js +1 -0
  186. package/.next/static/chunks/app/api/harness/route-2ea89149f3a75cf0.js +1 -0
  187. package/.next/static/chunks/app/api/home/route-2ea89149f3a75cf0.js +1 -0
  188. package/.next/static/chunks/app/api/im/cancel/route-2ea89149f3a75cf0.js +1 -0
  189. package/.next/static/chunks/app/api/im/gateway-status/route-2ea89149f3a75cf0.js +1 -0
  190. package/.next/static/chunks/app/api/im/gateway-token/route-2ea89149f3a75cf0.js +1 -0
  191. package/.next/static/chunks/app/api/im/project/route-2ea89149f3a75cf0.js +1 -0
  192. package/.next/static/chunks/app/api/im/projects/route-2ea89149f3a75cf0.js +1 -0
  193. package/.next/static/chunks/app/api/im/session-ids/route-2ea89149f3a75cf0.js +1 -0
  194. package/.next/static/chunks/app/api/im/turn/route-2ea89149f3a75cf0.js +1 -0
  195. package/.next/static/chunks/app/api/images/upload/route-2ea89149f3a75cf0.js +1 -0
  196. package/.next/static/chunks/app/api/internal/runtime/route-2ea89149f3a75cf0.js +1 -0
  197. package/.next/static/chunks/app/api/memory/dismiss/route-2ea89149f3a75cf0.js +1 -0
  198. package/.next/static/chunks/app/api/memory/promote/route-2ea89149f3a75cf0.js +1 -0
  199. package/.next/static/chunks/app/api/models/route-2ea89149f3a75cf0.js +1 -0
  200. package/.next/static/chunks/app/api/models-config/discover/route-2ea89149f3a75cf0.js +1 -0
  201. package/.next/static/chunks/app/api/models-config/route-2ea89149f3a75cf0.js +1 -0
  202. package/.next/static/chunks/app/api/models-config/test/route-2ea89149f3a75cf0.js +1 -0
  203. package/.next/static/chunks/app/api/plot-kernels/route-2ea89149f3a75cf0.js +1 -0
  204. package/.next/static/chunks/app/api/plot-kernels/save/route-2ea89149f3a75cf0.js +1 -0
  205. package/.next/static/chunks/app/api/plot-kernels/status/route-2ea89149f3a75cf0.js +1 -0
  206. package/.next/static/chunks/app/api/plot-kernels/stop/route-2ea89149f3a75cf0.js +1 -0
  207. package/.next/static/chunks/app/api/projects/browse/route-2ea89149f3a75cf0.js +1 -0
  208. package/.next/static/chunks/app/api/projects/route-2ea89149f3a75cf0.js +1 -0
  209. package/.next/static/chunks/app/api/search/route-2ea89149f3a75cf0.js +1 -0
  210. package/.next/static/chunks/app/api/sessions/[id]/context/route-2ea89149f3a75cf0.js +1 -0
  211. package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-2ea89149f3a75cf0.js +1 -0
  212. package/.next/static/chunks/app/api/sessions/[id]/plan/route-2ea89149f3a75cf0.js +1 -0
  213. package/.next/static/chunks/app/api/sessions/[id]/route-2ea89149f3a75cf0.js +1 -0
  214. package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-2ea89149f3a75cf0.js +1 -0
  215. package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-2ea89149f3a75cf0.js +1 -0
  216. package/.next/static/chunks/app/api/sessions/new/route-2ea89149f3a75cf0.js +1 -0
  217. package/.next/static/chunks/app/api/sessions/route-2ea89149f3a75cf0.js +1 -0
  218. package/.next/static/chunks/app/api/settings/route-2ea89149f3a75cf0.js +1 -0
  219. package/.next/static/chunks/app/api/skills/install/route-2ea89149f3a75cf0.js +1 -0
  220. package/.next/static/chunks/app/api/skills/route-2ea89149f3a75cf0.js +1 -0
  221. package/.next/static/chunks/app/api/skills/search/route-2ea89149f3a75cf0.js +1 -0
  222. package/.next/static/chunks/app/api/smoke/prompt-admission/route-2ea89149f3a75cf0.js +1 -0
  223. package/.next/static/chunks/app/api/soul/route-2ea89149f3a75cf0.js +1 -0
  224. package/.next/static/chunks/app/api/subagents/status/route-2ea89149f3a75cf0.js +1 -0
  225. package/.next/static/chunks/app/api/version/route-2ea89149f3a75cf0.js +1 -0
  226. package/.next/static/chunks/app/favicon.ico/route-2ea89149f3a75cf0.js +1 -0
  227. package/.next/static/chunks/app/{page-61270b5b6e8b536e.js → page-7673f9b48c531a25.js} +18 -18
  228. package/.next/static/chunks/app/smoke/{page-06d3574061580f4b.js → page-35df723c803f35e1.js} +1 -1
  229. package/.next/static/chunks/app/smoke/session-stream/page-e4493b066a788be3.js +6 -0
  230. package/.next/static/chunks/next/dist/client/components/builtin/app-error-2ea89149f3a75cf0.js +1 -0
  231. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-2ea89149f3a75cf0.js +1 -0
  232. package/.next/static/chunks/next/dist/client/components/builtin/not-found-2ea89149f3a75cf0.js +1 -0
  233. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2ea89149f3a75cf0.js +1 -0
  234. package/.next/static/chunks/webpack-fb1763edb92ee346.js +1 -0
  235. package/.next/static/css/82991d37d91b75fd.css +1 -0
  236. package/package.json +1 -1
  237. package/public/running-session-worker.js +69 -0
  238. package/.next/server/chunks/1494.js +0 -281
  239. package/.next/server/chunks/6195.js +0 -22
  240. package/.next/server/chunks/9962.js +0 -349
  241. package/.next/static/chunks/394.91597771688df6d0.js +0 -1
  242. package/.next/static/chunks/6280-513d6c4ef41995b8.js +0 -173
  243. package/.next/static/chunks/9165-0ef91ee28d0cb634.js +0 -22
  244. package/.next/static/chunks/9901-e83ccdcdba85df74.js +0 -281
  245. package/.next/static/chunks/app/_global-error/page-d5e42dc2adae583c.js +0 -1
  246. package/.next/static/chunks/app/api/agent/[id]/events/route-d5e42dc2adae583c.js +0 -1
  247. package/.next/static/chunks/app/api/agent/[id]/prepare/route-d5e42dc2adae583c.js +0 -1
  248. package/.next/static/chunks/app/api/agent/[id]/route-d5e42dc2adae583c.js +0 -1
  249. package/.next/static/chunks/app/api/agent/new/route-d5e42dc2adae583c.js +0 -1
  250. package/.next/static/chunks/app/api/agent/running/events/route-d5e42dc2adae583c.js +0 -1
  251. package/.next/static/chunks/app/api/agent/runtime/route-d5e42dc2adae583c.js +0 -1
  252. package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-d5e42dc2adae583c.js +0 -1
  253. package/.next/static/chunks/app/api/apps/route-d5e42dc2adae583c.js +0 -1
  254. package/.next/static/chunks/app/api/auth/all-providers/route-d5e42dc2adae583c.js +0 -1
  255. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-d5e42dc2adae583c.js +0 -1
  256. package/.next/static/chunks/app/api/auth/login/[provider]/route-d5e42dc2adae583c.js +0 -1
  257. package/.next/static/chunks/app/api/auth/login/route-d5e42dc2adae583c.js +0 -1
  258. package/.next/static/chunks/app/api/auth/logout/[provider]/route-d5e42dc2adae583c.js +0 -1
  259. package/.next/static/chunks/app/api/auth/providers/route-d5e42dc2adae583c.js +0 -1
  260. package/.next/static/chunks/app/api/auth/status/route-d5e42dc2adae583c.js +0 -1
  261. package/.next/static/chunks/app/api/auth/totp/route-d5e42dc2adae583c.js +0 -1
  262. package/.next/static/chunks/app/api/debug-models/route-d5e42dc2adae583c.js +0 -1
  263. package/.next/static/chunks/app/api/default-cwd/route-d5e42dc2adae583c.js +0 -1
  264. package/.next/static/chunks/app/api/file-tree/delete/route-d5e42dc2adae583c.js +0 -1
  265. package/.next/static/chunks/app/api/file-tree/mkdir/route-d5e42dc2adae583c.js +0 -1
  266. package/.next/static/chunks/app/api/file-tree/rename/route-d5e42dc2adae583c.js +0 -1
  267. package/.next/static/chunks/app/api/file-tree/reveal/route-d5e42dc2adae583c.js +0 -1
  268. package/.next/static/chunks/app/api/file-tree/write/route-d5e42dc2adae583c.js +0 -1
  269. package/.next/static/chunks/app/api/file-watch/route-d5e42dc2adae583c.js +0 -1
  270. package/.next/static/chunks/app/api/files/[...path]/route-d5e42dc2adae583c.js +0 -1
  271. package/.next/static/chunks/app/api/harness/route-d5e42dc2adae583c.js +0 -1
  272. package/.next/static/chunks/app/api/home/route-d5e42dc2adae583c.js +0 -1
  273. package/.next/static/chunks/app/api/im/cancel/route-d5e42dc2adae583c.js +0 -1
  274. package/.next/static/chunks/app/api/im/gateway-status/route-d5e42dc2adae583c.js +0 -1
  275. package/.next/static/chunks/app/api/im/gateway-token/route-d5e42dc2adae583c.js +0 -1
  276. package/.next/static/chunks/app/api/im/project/route-d5e42dc2adae583c.js +0 -1
  277. package/.next/static/chunks/app/api/im/projects/route-d5e42dc2adae583c.js +0 -1
  278. package/.next/static/chunks/app/api/im/session-ids/route-d5e42dc2adae583c.js +0 -1
  279. package/.next/static/chunks/app/api/im/turn/route-d5e42dc2adae583c.js +0 -1
  280. package/.next/static/chunks/app/api/images/upload/route-d5e42dc2adae583c.js +0 -1
  281. package/.next/static/chunks/app/api/internal/runtime/route-d5e42dc2adae583c.js +0 -1
  282. package/.next/static/chunks/app/api/memory/dismiss/route-d5e42dc2adae583c.js +0 -1
  283. package/.next/static/chunks/app/api/memory/promote/route-d5e42dc2adae583c.js +0 -1
  284. package/.next/static/chunks/app/api/models/route-d5e42dc2adae583c.js +0 -1
  285. package/.next/static/chunks/app/api/models-config/discover/route-d5e42dc2adae583c.js +0 -1
  286. package/.next/static/chunks/app/api/models-config/route-d5e42dc2adae583c.js +0 -1
  287. package/.next/static/chunks/app/api/models-config/test/route-d5e42dc2adae583c.js +0 -1
  288. package/.next/static/chunks/app/api/plot-kernels/route-d5e42dc2adae583c.js +0 -1
  289. package/.next/static/chunks/app/api/plot-kernels/save/route-d5e42dc2adae583c.js +0 -1
  290. package/.next/static/chunks/app/api/plot-kernels/status/route-d5e42dc2adae583c.js +0 -1
  291. package/.next/static/chunks/app/api/plot-kernels/stop/route-d5e42dc2adae583c.js +0 -1
  292. package/.next/static/chunks/app/api/projects/browse/route-d5e42dc2adae583c.js +0 -1
  293. package/.next/static/chunks/app/api/projects/route-d5e42dc2adae583c.js +0 -1
  294. package/.next/static/chunks/app/api/search/route-d5e42dc2adae583c.js +0 -1
  295. package/.next/static/chunks/app/api/sessions/[id]/context/route-d5e42dc2adae583c.js +0 -1
  296. package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-d5e42dc2adae583c.js +0 -1
  297. package/.next/static/chunks/app/api/sessions/[id]/plan/route-d5e42dc2adae583c.js +0 -1
  298. package/.next/static/chunks/app/api/sessions/[id]/route-d5e42dc2adae583c.js +0 -1
  299. package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-d5e42dc2adae583c.js +0 -1
  300. package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-d5e42dc2adae583c.js +0 -1
  301. package/.next/static/chunks/app/api/sessions/new/route-d5e42dc2adae583c.js +0 -1
  302. package/.next/static/chunks/app/api/sessions/route-d5e42dc2adae583c.js +0 -1
  303. package/.next/static/chunks/app/api/settings/route-d5e42dc2adae583c.js +0 -1
  304. package/.next/static/chunks/app/api/skills/install/route-d5e42dc2adae583c.js +0 -1
  305. package/.next/static/chunks/app/api/skills/route-d5e42dc2adae583c.js +0 -1
  306. package/.next/static/chunks/app/api/skills/search/route-d5e42dc2adae583c.js +0 -1
  307. package/.next/static/chunks/app/api/soul/route-d5e42dc2adae583c.js +0 -1
  308. package/.next/static/chunks/app/api/subagents/status/route-d5e42dc2adae583c.js +0 -1
  309. package/.next/static/chunks/app/api/version/route-d5e42dc2adae583c.js +0 -1
  310. package/.next/static/chunks/app/favicon.ico/route-d5e42dc2adae583c.js +0 -1
  311. package/.next/static/chunks/app/smoke/session-stream/page-2ac078e0b43f898b.js +0 -6
  312. package/.next/static/chunks/next/dist/client/components/builtin/app-error-d5e42dc2adae583c.js +0 -1
  313. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-d5e42dc2adae583c.js +0 -1
  314. package/.next/static/chunks/next/dist/client/components/builtin/not-found-d5e42dc2adae583c.js +0 -1
  315. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d5e42dc2adae583c.js +0 -1
  316. package/.next/static/chunks/webpack-961560b05f7e7346.js +0 -1
  317. package/.next/static/css/c9f1fab452e74e95.css +0 -1
  318. package/.next/static/tobhDGatjzn_cJ3Pv_lo5/_buildManifest.js +0 -1
  319. /package/.next/static/{tobhDGatjzn_cJ3Pv_lo5 → RGo27ZXaxOnz4AWGjVXXd}/_ssgManifest.js +0 -0
@@ -0,0 +1,22 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5377],{5377:(e,t,n)=>{n.d(t,{T:()=>W});var r=n(12115);function a(e){return e?.phase==="running_tools"?{kind:"running_tools",tools:(e.activeTools??[]).map(e=>({id:e.id,name:e.name}))}:e?.phase==="streaming"||e?.phase==="compacting"||e?.phase==="idle"?null:{kind:"waiting_model"}}function o(e){if("assistant"!==e.role)return e;let t=e.content;if(!Array.isArray(t))return e;let n=t.map(e=>("object"!=typeof e||null===e||Array.isArray(e)||"toolCall"!==e.type?null:{type:"toolCall",toolCallId:"string"==typeof e.toolCallId?e.toolCallId:"string"==typeof e.id?e.id:"",toolName:"string"==typeof e.toolName?e.toolName:"string"==typeof e.name?e.name:"",input:"object"!=typeof e.input||null===e.input||Array.isArray(e.input)?"object"!=typeof e.arguments||null===e.arguments||Array.isArray(e.arguments)?{}:e.arguments:e.input})??e);return{...e,content:n}}var s=n(32383),l=n(28999);async function i(e,t){if(!t.length)return[];let n=await fetch("/api/images/upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:e,images:t.map(e=>({data:e.data,mimeType:e.mimeType,name:e.name}))})}),r=await n.json().catch(()=>({}));if(!n.ok||r.error)throw Error(r.error??`Upload failed (HTTP ${n.status})`);return(r.uploaded??[]).map((e,n)=>({...e,previewUrl:t[n]?.previewUrl}))}async function u(e,t,n){let r,a=new TextDecoder,o="",s=e=>{if(e.startsWith("id: ")){r=e.slice(4);return}if(!e.startsWith("data: "))return;let n=e.slice(6);if("[DONE]"!==n)try{t(n,r)}catch{}finally{r=void 0}},l=new Promise(e=>{n?.aborted?e():n?.addEventListener("abort",()=>e(),{once:!0})});for(;;){let t=await Promise.race([e.read(),l.then(()=>({done:!0,value:void 0}))]);if(t.done)break;let n=(o+=a.decode(t.value,{stream:!0})).split("\n");for(let e of(o=n.pop()||"",n))s(e)}if(o.trim())for(let e of o.split("\n"))s(e)}var c=n(16865);let d="__annovibeStreamSessions__",p="__annovibeStreamListeners__",m="__annovibeStreamErrorCallbacks__";function f(){let e=globalThis;return e[d]||(e[d]=new Map),e[d]}function g(){let e=globalThis;return e[m]||(e[m]=new Map),e[m]}function h(e){return{sessionId:e,phase:"idle",startedAt:null,lastEventAt:null,lastHeartbeatAt:null,reconnectCount:0,lastSyncReason:null,accumulatedText:"",toolCalls:[],toolResults:[],statusText:null,streamingMessage:null,isStreaming:!1,error:null}}function y(e,t){let n;for(let r of(!(n=globalThis)[p]&&(n[p]=new Map),n[p]).get(e)??[])try{r(t)}catch{}}function w(e){e.textThrottleTimer&&(clearTimeout(e.textThrottleTimer),e.textThrottleTimer=null),e.textDirty&&(e.textDirty=!1,b(e))}function v(e,t=!1){let n=Date.now();if(e.snapshot.lastEventAt=n,!t){e.textDirty=!0,e.textThrottleTimer||(e.textThrottleTimer=setTimeout(()=>{e.textThrottleTimer=null,e.textDirty&&(e.textDirty=!1,b(e))},100));return}w(e),b(e)}function b(e,t){let n=Date.now(),r=function(e){let t=[];for(let n of e.toolCalls.values())t.push({type:"toolCall",toolCallId:n.toolCallId,toolName:n.toolName,input:n.input??{}});let n=e.accumulatedText.trim();return n&&t.push({type:"text",text:n}),t}(e),a=(t??e.snapshot.phase)==="active";e.snapshot={...e.snapshot,phase:t??e.snapshot.phase,lastEventAt:n,accumulatedText:e.accumulatedText,toolCalls:[...e.toolCalls.values()],toolResults:[...e.toolResults.values()],statusText:a?function(e){if(e.activeToolId){let t=e.toolCalls.get(e.activeToolId);if(t){let e=Math.max(0,Math.floor((Date.now()-t.startedAt)/1e3));return`Running ${t.toolName||"tool"}… (${e}s)`}}return e.accumulatedText.trim()?"Generating response…":e.toolCalls.size>0?"Finishing tool results…":null}(e):e.snapshot.statusText,streamingMessage:a&&r.length>0?{role:"assistant",content:r}:null,isStreaming:a},y(e.snapshot.sessionId,{type:"snapshot-updated",snapshot:e.snapshot})}function T(e){C(e),e.idleCheckTimer=setInterval(()=>{if("connected"!==e.connectionState)return;let t=Math.max(e.snapshot.lastEventAt??0,e.snapshot.lastHeartbeatAt??0);if(Date.now()-t>=18e4){k(e),w(e);let t="Stream idle timeout — no activity for 180s.";e.snapshot={...e.snapshot,phase:"error",isStreaming:!1,streamingMessage:null,statusText:null,error:t},C(e),y(e.snapshot.sessionId,{type:"error",snapshot:e.snapshot});let n=g().get(e.snapshot.sessionId);if(n)try{n(e.snapshot.sessionId,t)}catch{}}},1e4)}function C(e){e.idleCheckTimer&&(clearInterval(e.idleCheckTimer),e.idleCheckTimer=null)}function k(e){e.toolProgressTimer&&(clearInterval(e.toolProgressTimer),e.toolProgressTimer=null)}function I(e){let t=f(),n=t.get(e);return n||(n={snapshot:h(e),accumulatedText:"",toolCalls:new Map,toolResults:new Map,toolProgressTimer:null,activeToolId:null,textThrottleTimer:null,textDirty:!1,connectionState:"idle",idleCheckTimer:null},t.set(e,n)),n}function S(e,t){let n=g();return n.set(e,t),()=>{n.get(e)===t&&n.delete(e)}}function _(e){let t=f(),n=t.get(e);n&&(k(n),C(n),w(n)),t.delete(e)}function x(e){let t=f().get(e);t&&(t.snapshot={...t.snapshot,reconnectCount:t.snapshot.reconnectCount+1,lastSyncReason:"sse-reconnect",lastEventAt:Date.now()},v(t,!0))}let M="__annovibeSessionMessageCache__";function E(){let e=globalThis;if(!e[M]){var t;let n={entries:new Map,cleanupTimer:null};e[M]=n,(t=n).cleanupTimer||(t.cleanupTimer=setInterval(()=>{let e=Date.now();for(let[n,r]of t.entries)e-r.loadedAt>72e5&&t.entries.delete(n)},6e4))}return e[M]}function A(e){let t=E(),n=t.entries.get(e);return n?Date.now()-n.loadedAt>72e5?(t.entries.delete(e),null):(n.loadedAt=Date.now(),{...n,messages:[...n.messages],entryIds:[...n.entryIds]}):null}function $(e,t,n,r,a){let o=E(),s=o.entries.get(e);if(!s)return;let l=new Set(s.entryIds),i=[],u=[];for(let e=0;e<t.length;e++){let r=n[e];r&&!l.has(r)&&(i.push(t[e]),u.push(r))}0!==i.length&&o.entries.set(e,{...s,messages:[...i,...s.messages],entryIds:[...u,...s.entryIds],hasMore:r,loadedMessagesCount:a,loadedAt:Date.now()})}function R(e){E().entries.delete(e)}var D=n(14755);function L(e,t){switch(t.type){case"start":return{isStreaming:!0,streamingMessage:null};case"update":return{isStreaming:!0,streamingMessage:t.message};case"end":case"reset":return{isStreaming:!1,streamingMessage:null};default:return e}}function N(){return"u"<typeof document||"hidden"!==document.visibilityState}function P(e,t){return new DOMException(e,t)}function U(){return"u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}-${Math.random().toString(36).slice(2,11)}`}let j=["read","bash","grep","find","ls"];function O(e,t){return e.trim()||0!==t?`text:${e}|images:${t}`:null}function F(e){return"string"==typeof e?O(e,0):Array.isArray(e)?O(e.filter(e=>!!e&&"object"==typeof e&&"text"===e.type&&"string"==typeof e.text).map(e=>e.text).join("\n"),e.filter(e=>!!e&&"object"==typeof e&&"image"===e.type).length):null}function H(e){let t=new Map;for(let n of e){let e="user"!==n.role?null:F(n.content);e&&t.set(e,(t.get(e)??0)+1)}return t}function K(e,t,n){return e.sessionId===t&&(!e.leafId||n.includes(e.leafId))}function W(e){let{session:t,newSessionCwd:n,planMode:d=!1,onAgentEnd:p,onSessionCreated:m,onSessionForked:g,modelsRefreshKey:b,onBranchDataChange:M,onPlanModeState:W}=e,J=null===t&&null!==n,[B,q]=(0,r.useState)(null),[z,G]=(0,r.useState)(!J),[V,Y]=(0,r.useState)(null),[Q,X]=(0,r.useState)(null),[Z,ee]=(0,r.useState)([]),[et,en]=(0,r.useState)([]),[er,ea]=(0,r.useState)(0),[eo,es]=(0,r.useState)(!1),[el,ei]=(0,r.useState)(0),[eu,ec]=(0,r.useReducer)(L,{isStreaming:!1,streamingMessage:null}),[ed,ep]=(0,r.useState)(!1),[em,ef]=(0,r.useState)({}),[eg,eh]=(0,r.useState)([]),[ey,ew]=(0,r.useState)({}),[ev,eb]=(0,r.useState)({}),[eT,eC]=(0,r.useState)(null),[ek,eI]=(0,r.useState)("full"),[eS,e_]=(0,r.useState)([...D.SN]),[ex,eM]=(0,r.useState)("auto"),[eE,eA]=(0,r.useState)(null),[e$,eR]=(0,r.useState)(null),[eD,eL]=(0,r.useState)(null),[eN,eP]=(0,r.useState)(null),[eU,ej]=(0,r.useState)(null),[eO,eF]=(0,r.useState)(null),[eH,eK]=(0,r.useState)(!1),[eW,eJ]=(0,r.useState)(null),[eB,eq]=(0,r.useState)(null),[ez,eG]=(0,r.useState)(null),eV=(0,r.useRef)(null),eY=(0,r.useRef)(t?.id??null),eQ=(0,r.useRef)(!1),eX=(0,r.useRef)(null),eZ=(0,r.useRef)(null),e0=(0,r.useRef)(null),e1=(0,r.useRef)(!1),e3=(0,r.useRef)(null),e4=(0,r.useRef)(!1),e5=(0,r.useRef)(null),e2=(0,r.useRef)(null),e6=(0,r.useRef)(new Map),e7=(0,r.useRef)(new Map),e8=(0,r.useRef)(null),e9=(0,r.useRef)([]),te=(0,r.useRef)(null),tt=(0,r.useRef)(0),tn=(0,r.useRef)(!1),tr=(0,r.useRef)(0),ta=(0,r.useRef)(!1),to=(0,r.useRef)(!1),ts=(0,r.useRef)(0),tl=(0,r.useRef)(null),ti=(0,r.useRef)(null),tu=(0,r.useRef)(null),tc=(0,r.useRef)(!1);(0,r.useEffect)(()=>{e8.current=Q},[Q]);let td=e.setNewSessionModel??eC,tp=e.setToolPreset??eI,tm=e.setMemoryTools??e_,tf=eU??B?.context.model??eO??null,tg=J?eT:tf,th=(0,r.useCallback)(()=>d?j:(0,D.tE)(ek,eS),[eS,d,ek]),ty=(0,r.useCallback)(e=>e?.length?e.map((e,t)=>{let n=`Attachment ${t+1}: ${e.fileName} (${e.mimeType||"application/octet-stream"}, ${e.size} bytes)`;if(e.extractedText){let t=e.truncated?"\n[The extracted text was truncated before sending.]":"";return`${n}
2
+ ${t}
3
+ ${e.extractedText}`.trim()}return`${n}
4
+ [Text extraction unavailable: ${e.extractionError??"unsupported file type"}]`}).join("\n\n---\n\n"):"",[]),tw=(0,r.useCallback)(async e=>{let t=await fetch(`/api/agent/${encodeURIComponent(e)}/prepare`,{method:"POST"});if(!t.ok)throw Error((await t.json().catch(()=>({}))).error??`Failed to prepare session (HTTP ${t.status})`)},[]),tv=(()=>{let e={input:0,output:0,cacheRead:0,cacheWrite:0},t=0;for(let n of Z){if("assistant"!==n.role)continue;let r=n.usage;r&&(e.input+=r.input??0,e.output+=r.output??0,e.cacheRead+=r.cacheRead??0,e.cacheWrite+=r.cacheWrite??0,t+=r.cost?.total??0)}return e.input+e.output+e.cacheRead+e.cacheWrite>0?{tokens:e,cost:t}:null})(),tb=(0,r.useRef)(!1),tT=(0,r.useCallback)(async()=>{let e=eY.current;if(!e||tb.current||ta.current)return;tb.current=!0,tn.current=!0;let t=0,n=A(e);t=n?n.loadedMessagesCount:50;try{for(;;)try{let n=await fetch(`/api/sessions/${encodeURIComponent(e)}?limit=100&offset=${t}`);if(!n.ok)break;let r=await n.json();if(eY.current!==e)break;let a=r.context.messages,o=r.context.entryIds??[];if(0===a.length)break;ee(e=>[...a,...e]),en(e=>{let t=[...o,...e];return e9.current=t,t});let s=t+a.length;if(ei(s),tr.current=s,es(r.hasMore??!1),$(e,a,o,r.hasMore??!1,s),t=s,!r.hasMore)break;await new Promise(e=>setTimeout(e,800))}catch{break}}finally{tb.current=!1,ta.current=!0,tn.current=!1}},[]),tC=(0,r.useCallback)(async(e,t=!1,n=!1,r=!1)=>{var a;let o=null;try{if(t&&G(!0),!n&&!eQ.current&&!r){let n=A(e);if(n)return ea(n.totalMessages),es(n.hasMore),ei(n.loadedMessagesCount),ee(n.messages),e9.current=n.entryIds,en(n.entryIds),e8.current=n.leafId,X(n.leafId),tr.current=n.loadedMessagesCount,t&&G(!1),n.hasMore&&!ta.current&&setTimeout(()=>{tT()},1500),null}let s=n?`/api/sessions/${encodeURIComponent(e)}?includeState`:`/api/sessions/${encodeURIComponent(e)}?limit=50&offset=0`,l=ti.current;if(l?.sid===e&&!t)return null;l?.controller.abort(P("Session load superseded","AbortError"));let i=new AbortController;o=i,ti.current={sid:e,controller:i};let u=setTimeout(()=>{i.abort(P("Session load timed out after 30 seconds","TimeoutError"))},3e4),c=await fetch(s,{signal:i.signal}).finally(()=>clearTimeout(u));if(eY.current&&eY.current!==e)return null;if(404===c.status)return t&&(q(null),e8.current=null,X(null),ee([]),Y(null)),null;if(!c.ok)throw Error(`HTTP ${c.status}`);let d=await c.json();n?(ea(d.totalMessages??d.context.messages.length),es(!1)):(ea(d.totalMessages??d.context.messages.length),es(d.hasMore??!1)),ei(d.context.messages.length),q(d),e8.current=d.leafId,X(d.leafId);let p=d.context.messages,m=H(p),f=new Map,g=Date.now();for(let[t,n]of e6.current)if(n.sessionId===e){if(g-n.createdAt>12e4){e6.current.delete(t);continue}if(n.confirmKey){let e=m.get(n.confirmKey)??0,r=f.get(n.confirmKey)??0;e-r>n.confirmCountAtCreate&&(e6.current.delete(t),f.set(n.confirmKey,r+1))}}e7.current=m;let h=d.context.entryIds??[],y=[...e6.current.values()].filter(t=>K(t,e,h)).map(e=>e.message),w=y.length>0?[...p,...y]:p,v=w.length;return!n&&tr.current>v?(ea(d.totalMessages??d.context.messages.length),es(d.hasMore??!1)):(ee(w),e9.current=h,en(h),n?tr.current=v:tr.current=Math.max(tr.current,v),a={sessionId:e,leafId:d.leafId,messages:w,entryIds:h,totalMessages:d.totalMessages??d.context.messages.length,hasMore:!n&&(d.hasMore??!1),loadedMessagesCount:d.context.messages.length},E().entries.set(e,{...a,loadedAt:Date.now()})),ej(e=>{if(!e)return null;let t=d.context.model;return t?.provider===e.provider&&t.modelId===e.modelId?null:e}),Y(null),!d.agentState?.state?.thinkingLevel&&d.context.thinkingLevel&&"off"!==d.context.thinkingLevel&&eM(d.context.thinkingLevel),d.agentState?.state?.planMode&&W?.(d.agentState.state.planMode),d.agentState??null}catch(e){if(e instanceof DOMException&&("AbortError"===e.name||"TimeoutError"===e.name)||e instanceof Error&&/aborted without reason|AbortError|Session load (?:timed out|superseded)/i.test(e.message))return null;return Y(String(e)),null}finally{o&&ti.current?.controller===o&&(ti.current=null),t&&G(!1)}},[W,tT]),tk=(0,r.useRef)(!1),tI=(0,r.useCallback)(async()=>{if(tk.current)return;tk.current=!0;let e=eY.current;if(!e){tk.current=!1;return}try{let t=await fetch(`/api/sessions/${encodeURIComponent(e)}?limit=50&offset=${el}`);if(!t.ok)return;let n=await t.json(),r=n.context.messages,a=n.context.entryIds??[];ee(e=>[...r,...e]),en(e=>{let t=[...a,...e];return e9.current=t,t}),ei(e=>e+r.length),es(n.hasMore??!1),$(e,r,a,n.hasMore??!1,el+r.length)}catch{}finally{tk.current=!1}},[el]),tS=(0,r.useCallback)(async(e,t)=>{try{let n=t?`/api/sessions/${encodeURIComponent(e)}/context?leafId=${encodeURIComponent(t)}`:`/api/sessions/${encodeURIComponent(e)}/context`,r=await fetch(n);if(!r.ok)throw Error(`HTTP ${r.status}`);let a=await r.json(),o=a.context.messages,s=a.context.entryIds??[],l=H(o),i=new Map,u=Date.now();for(let[t,n]of e6.current)if(n.sessionId===e){if(u-n.createdAt>12e4){e6.current.delete(t);continue}if(n.confirmKey){let e=l.get(n.confirmKey)??0,r=i.get(n.confirmKey)??0;e-r>n.confirmCountAtCreate&&(e6.current.delete(t),i.set(n.confirmKey,r+1))}}e7.current=l;let c=[...e6.current.values()].filter(t=>K(t,e,s)).map(e=>e.message);ee(c.length>0?[...o,...c]:o),e9.current=s,en(s)}catch(e){console.error("Failed to load context:",e)}},[]),t_=(0,r.useCallback)(async e=>{try{let t=await (0,s.$)(e,{type:"get_tools"});t&&(tp((0,D.ES)(t)),tm((0,D.IB)(t)))}catch(e){console.error("Failed to load tools:",e)}},[tm,tp]),tx=(0,r.useCallback)((e,t={})=>{eV.current?.close(),eV.current=null;let n=`/api/agent/${encodeURIComponent(e)}/events${t.replay?"?replay=1":""}`;return!function(e){let t=I(e);if("active"===t.snapshot.phase)return v(t,!0),T(t),t.snapshot;let n=Date.now();t.snapshot={...h(e),phase:"active",startedAt:n,lastEventAt:n,isStreaming:!0,streamingMessage:{role:"assistant",content:[]}},T(t),v(t,!0),t.snapshot}(e),new Promise((r,a)=>{let o=!1,s=!1,l=null,i=e=>{if(!o){if(o=!0,clearTimeout(c),e){l?.close(),eV.current===l&&(eV.current=null),a(e);return}r()}},c=setTimeout(()=>{t.requireConnected?i(Error("Timed out waiting for event stream connection")):i()},t.timeoutMs??3e4);eV.current=l=function(e){let{url:t,onEvent:n,onStateChange:r,onFatalError:a,maxReconnectAttempts:o=1/0,reconnectBaseMs:s=1e3,reconnectMaxMs:l=3e4,autoReconnect:i=!0}=e,c="idle",d=new AbortController,p=0,m=null,f=null,g=!1,h=(e,t)=>{t&&(f=t),n(e,t)},y=e=>{c!==e&&(c=e,r?.(e))},w=()=>{null!==m&&(clearTimeout(m),m=null)},v=()=>{if(g)return;if(!i)return void y("error");if(p>=o){y("error"),a?.(Error(`Max reconnect attempts (${o}) reached`));return}let e=Math.min(l,s*2**p);p+=1,y("connecting"),m=setTimeout(()=>{m=null,b()},e)},b=async()=>{if(!g){w(),d=new AbortController,y("connecting");try{let e=await fetch(t,{signal:d.signal,headers:{Accept:"text/event-stream","Cache-Control":"no-cache",...f?{"Last-Event-ID":f}:{}}});if(!e.ok)throw Error(`HTTP ${e.status}: ${e.statusText}`);let n=e.body;if(!n)throw Error("Response has no readable body");let r=n.getReader();if(y("connected"),p=0,await u(r,h,d.signal),d.signal.aborted)try{await r.cancel()}catch{}r.releaseLock(),y("closed"),!g&&i&&v()}catch(e){if(g||e instanceof DOMException&&"AbortError"===e.name)return void y("closed");y("error"),i&&v()}}};return{get state(){return c},connect:()=>{g=!1,p=0,w(),b()},close:()=>{g=!0,w(),d.abort(),y("closed")},get abortController(){return d}}}({url:n,onEvent:t=>{try{let n=JSON.parse(t);if("connected"===n.type&&i(),eY.current!==e)return;eX.current?.(n)}catch{}},onStateChange:t=>{!function(e,t){let n=f().get(e);if(!n)return;let r=n.connectionState;n.connectionState=t,"connected"===t&&"connected"!==r&&(n.snapshot={...n.snapshot,lastEventAt:Date.now(),lastHeartbeatAt:Date.now()},T(n)),"connected"!==t&&"connected"===r&&C(n)}(e,t),"connected"===t&&(s&&(x(e),eZ.current?.(e,"sse_reconnected")),s=!0)},reconnectBaseMs:1e3,reconnectMaxMs:3e4}),l.connect()})},[]),tM=(0,r.useCallback)(async(e,t="manual")=>{if(!e||eY.current!==e)return;let n=tt.current;try{let t=await fetch(`/api/agent/${encodeURIComponent(e)}`),r=await t.json().catch(()=>({}));if(eY.current!==e||tt.current!==n)return;r.running?(eQ.current=!0,ep(!0),eq(a(r.state)),N()&&(!eV.current||"closed"===eV.current.state||"error"===eV.current.state)&&(x(e),tx(e,{replay:!0}))):(eQ.current=!1,eV.current?.close(),eV.current=null,_(e),ep(!1),eq(null),eA(null),ec({type:"end"}),R(e),await tC(e,!1,!1,!0)),r.state?.contextUsage!==void 0&&eR(r.state.contextUsage??null),r.state?.systemPrompt!==void 0&&eL(r.state.systemPrompt??null),r.state?.isCompacting!==void 0&&eK(r.state.isCompacting),r.state?.thinkingLevel!==void 0&&eM(r.state.thinkingLevel??"auto"),r.state?.planMode!==void 0&&W?.(r.state.planMode)}catch{}},[tx,tC,W]);(0,r.useEffect)(()=>{eZ.current=tM},[tM]),(0,r.useEffect)(()=>{eQ.current=ed},[ed]),eX.current=(0,r.useCallback)(e=>{let t=eY.current;switch(t&&function(e,t){let n=I(e),r=Date.now();switch(t.type){case"agent_start":if("active"===n.snapshot.phase)return v(n,!0),n.snapshot;return k(n),n.accumulatedText="",n.toolCalls.clear(),n.toolResults.clear(),n.activeToolId=null,n.snapshot={...h(e),phase:"active",startedAt:r,lastEventAt:r,isStreaming:!0,streamingMessage:{role:"assistant",content:[]}},T(n),v(n,!0),n.snapshot;case"message_update":{let e=t.message;if(!e||"assistant"!==e.role)return n.snapshot;let a=e.content;for(let e of Array.isArray(a)?a:[])"object"==typeof e&&null!==e&&"type"in e&&("text"===e.type?n.accumulatedText=e.text??"":"toolCall"===e.type&&e.toolCallId&&!n.toolCalls.has(e.toolCallId)&&n.toolCalls.set(e.toolCallId,{...e,startedAt:r}));return v(n,!1),n.snapshot}case"tool_execution_start":{let e="string"==typeof t.toolCallId?t.toolCallId:"",a="string"==typeof t.toolName?t.toolName:"tool",o=t.input??{};if(!e)return n.snapshot;let s=n.toolCalls.get(e);return n.toolCalls.set(e,{type:"toolCall",toolCallId:e,toolName:a,input:s?.input??o,startedAt:s?.startedAt??r}),n.activeToolId=e,k(n),n.activeToolId&&(n.toolProgressTimer=setInterval(()=>v(n,!0),1e3)),v(n,!0),n.snapshot}case"tool_execution_end":{let e="string"==typeof t.toolCallId?t.toolCallId:"",a="string"==typeof t.toolName?t.toolName:"tool",o="string"==typeof t.result?t.result:JSON.stringify(t.result??"");if(e){let s=n.toolCalls.get(e);s&&n.toolCalls.set(e,{...s,endedAt:r}),n.toolResults.set(e,{role:"toolResult",toolCallId:e,toolName:a,content:[{type:"text",text:o}],isError:!!t.isError,timestamp:r}),n.activeToolId===e&&(n.activeToolId=null,k(n))}return v(n,!0),n.snapshot}case"message_end":return w(n),v(n,!0),n.snapshot;case"agent_end":{if(w(n),k(n),n.activeToolId=null,!0===t.willRetry)return n.accumulatedText="",n.toolCalls.clear(),n.toolResults.clear(),n.snapshot={...n.snapshot,phase:"active",lastEventAt:r,accumulatedText:"",toolCalls:[],toolResults:[],statusText:null,streamingMessage:null,isStreaming:!0,error:null},T(n),y(e,{type:"snapshot-updated",snapshot:n.snapshot}),n.snapshot;C(n);let a="string"==typeof t.error?t.error:null;return n.snapshot={...n.snapshot,phase:a?"error":"completed",isStreaming:!1,streamingMessage:null,statusText:null,error:a},y(e,a?{type:"error",snapshot:n.snapshot}:{type:"completed",snapshot:n.snapshot}),n.snapshot}case"heartbeat":return n.snapshot={...n.snapshot,lastHeartbeatAt:r},n.snapshot;default:return n.snapshot}}(t,e),e.type){case"prompt_admitted":case"agent_start":eG(null),eQ.current=!0,ep(!0),eq({kind:"waiting_model"}),ec({type:"start"});break;case"agent_end":if(!0===e.willRetry){eQ.current=!0,ep(!0),eq({kind:"waiting_model"});break}eQ.current=!1,eV.current?.close(),eV.current=null,ep(!1),eq(null),eA(null),ec({type:"end"}),t&&(R(t),tC(t,!1,!1,!0),tl.current&&clearTimeout(tl.current),tl.current=setTimeout(()=>{eY.current!==t||eQ.current||(R(t),tC(t,!1,!1,!0))},500),fetch(`/api/agent/${encodeURIComponent(t)}`).then(e=>e.json()).then(e=>{e.state?.contextUsage!==void 0&&eR(e.state.contextUsage??null),e.state?.systemPrompt!==void 0&&eL(e.state.systemPrompt??null),e.state?.isCompacting!==void 0&&eK(e.state.isCompacting)}).catch(()=>{})),p?.();break;case"message_start":case"message_update":{if(!eQ.current)break;let t=e.message;if(t?.role==="user")break;t&&ec({type:"update",message:o(t)}),eq(null);break}case"message_end":{if(!eQ.current)break;let t=e.message,n="string"==typeof e.__entryId?e.__entryId:null;if(t&&"user"!==t.role){"assistant"===t.role&&"error"===t.stopReason&&t.errorMessage?.trim()&&eG(`Model response failed: ${t.errorMessage.trim()}`);let e=o(t);!(n&&e9.current.includes(n))&&(ee(t=>t.some(t=>(function(e,t){let n=e.timestamp,r=t.timestamp;if("number"!=typeof n||"number"!=typeof r||n!==r||e.role!==t.role)return!1;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}})(t,e))?t:[...t,e]),n&&en(e=>{if(e.includes(n))return e;let t=[...e,n];return e9.current=t,t}))}ec({type:"reset"}),eq({kind:"waiting_model"});break}case"replay_gap":t&&(R(t),tC(t,!1,!1,!0));break;case"prompt_done":if(!eQ.current)break;tM(eY.current??"","prompt_done");break;case"prompt_error":{let n="string"==typeof e.error&&e.error.trim()?e.error.trim():"The model request failed before producing a response.";if(eQ.current=!1,ep(!1),eq(null),eA(null),ec({type:"end"}),eV.current?.close(),eV.current=null,t){for(let[e,n]of(_(t),e6.current))n.sessionId===t&&"prompt"===n.kind&&e6.current.delete(e);R(t),tC(t,!1,!1,!0)}eG(`Model request failed: ${n}`),p?.();break}case"tool_execution_start":{let t=e.toolCallId,n=e.toolName,r=e.args,a="bash"===n&&"string"==typeof r?.command?r.command:void 0;eq(e=>{let r=e?.kind==="running_tools"?[...e.tools]:[];return r.some(e=>e.id===t)||r.push({id:t,name:n,args:a}),{kind:"running_tools",tools:r}});break}case"tool_execution_end":{let t=e.toolCallId;eq(e=>{if(e?.kind!=="running_tools")return e;let n=e.tools.filter(e=>e.id!==t);return 0===n.length?{kind:"waiting_model"}:{kind:"running_tools",tools:n}});break}case"auto_retry_start":eG(null),eQ.current=!0,ep(!0),eq({kind:"waiting_model"}),eA({attempt:e.attempt,maxAttempts:e.maxAttempts,errorMessage:e.errorMessage});break;case"auto_retry_end":eA(null),!1===e.success&&"string"==typeof e.finalError&&e.finalError.trim()?eG(`Model response failed after retries: ${e.finalError.trim()}`):!0===e.success&&eG(null);break;case"auto_compaction_start":case"compaction_start":eK(!0),eJ(null);break;case"auto_compaction_end":case"compaction_end":eK(!1),e.errorMessage?eJ(e.errorMessage):!e.aborted&&eY.current&&tC(eY.current)}},[tC,p,tM]);let tE=(0,r.useCallback)(async(e,r,a,o)=>{if(!e.trim()&&!r?.length&&!a?.length||ed)return;tt.current+=1;let u=ty(a),c=e.trim()?u?`${e}
5
+
6
+ Attached document text:
7
+
8
+ ${u}`:e:u?`Attached document text:
9
+
10
+ ${u}`:"",p=[],f=J?n:t?.cwd??B?.info?.cwd;if(r?.length&&f)try{p=await i(f,r)}catch(e){eG(e instanceof Error?e.message:String(e));return}let g=p.length?p.map(e=>{var t;return{type:"image",path:e.path,mimeType:e.mimeType,name:e.name,source:{type:"url",url:(t=e.path,`/api/files/${(0,l.HG)(t)}?type=read`),media_type:e.mimeType}}}):r?.map(e=>({type:"image",source:{type:"base64",media_type:e.mimeType,data:e.data}})),h={role:"user",content:g?.length?[...c.trim()?[{type:"text",text:c}]:[],...g]:c,timestamp:Date.now()},y=U(),w=J?null:t?.id??null;w&&R(w);let v=e8.current,b=F(h.content);e6.current.set(y,{localId:y,sessionId:w??"__new__",leafId:v,message:h,createdAt:Date.now(),kind:"prompt",confirmKey:b,confirmCountAtCreate:J?0:b?e7.current.get(b)??0:0}),ee(e=>[...e,h]),eG(null),eQ.current=!0,ep(!0),eq({kind:"waiting_model"}),ec({type:"start"}),e4.current=!0;let T=eg.find(e=>e.provider===tf?.provider&&e.id===tf?.modelId)?.input,C=!T||0===T.length||T.includes("image")?r?.map(e=>({type:"image",data:e.data,mimeType:e.mimeType})):void 0;tc.current=!0;try{if(J&&n){eT&&eF(eT);let t=o??th(),r=await fetch("/api/agent/new",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cwd:n,type:"prompt",message:c,toolNames:t,planMode:d,deferPrompt:!0,...C?.length?{images:C}:{},...eT?{provider:eT.provider,modelId:eT.modelId}:{},..."auto"!==ex?{thinkingLevel:ex}:{}})}),a=await r.json().catch(()=>({}));if(!r.ok||a.error||!a.sessionId)throw Error(a.error??`HTTP ${r.status}`);let l=a.sessionId;eY.current=l;let i=e6.current.get(y);i&&(i.sessionId=l),e0.current?.(),e0.current=S(l,()=>{eY.current===l&&(ep(!1),eq(null))}),te.current=l,await tx(l,{requireConnected:!0,timeoutMs:1e4}),await (0,s.$)(l,{type:"prompt",message:c,toolNames:t,planMode:d,...C?.length?{images:C}:{}}),m?.({id:l,path:"",cwd:n,name:void 0,created:new Date().toISOString(),modified:new Date().toISOString(),messageCount:1,firstMessage:e})}else if(t){let e=o??th();await tw(t.id),e0.current?.(),e0.current=S(t.id,()=>{eY.current===t.id&&(ep(!1),eq(null))}),await tx(t.id,{requireConnected:!0,timeoutMs:1e4}),await (0,s.$)(t.id,{type:"prompt",message:c,toolNames:e,planMode:d,leafId:v,...tf?{provider:tf.provider,modelId:tf.modelId}:{},..."auto"!==ex?{thinkingLevel:ex}:{},...C?.length?{images:C}:{}})}}catch(t){let e=eY.current;if(e6.current.delete(y),ee(e=>e.filter(e=>e!==h)),t instanceof s.H&&(409===t.status||"SESSION_BUSY"===t.code)){eG("This session is already running in another tab. Showing that active run instead."),eQ.current=!0,ep(!0),eq({kind:"waiting_model"}),ec({type:"start"}),e&&(eV.current?.close(),eV.current=null,x(e),tx(e,{replay:!0}),eZ.current?.(e,"prompt_conflict"));return}if(console.error("Failed to send message:",t),J&&eY.current){let e=eY.current;eY.current=null,te.current=null,fetch(`/api/sessions/${encodeURIComponent(e)}`,{method:"DELETE"}).catch(()=>{})}eG(t instanceof Error?t.message:String(t)),eV.current?.close(),eV.current=null,e&&_(e),eQ.current=!1,ep(!1),eq(null),ec({type:"end"})}finally{tc.current=!1,"u">typeof document&&"hidden"===document.visibilityState&&!tu.current&&(tu.current=setTimeout(()=>{tu.current=null,"hidden"!==document.visibilityState||tc.current||(eV.current?.close(),eV.current=null)},1e3))}},[J,n,eT,th,ex,t,B?.info?.cwd,ed,tx,m,ty,d,eg,tf,tw]),tA=(0,r.useCallback)(async()=>{let e=eY.current;if(e){eQ.current=!1,eG(null),ep(!1),eq(null),ec({type:"end"}),eV.current?.close(),eV.current=null,_(e),R(e);try{await (0,s.$)(e,{type:"abort"}),await tC(e,!1,!1,!0)}catch(t){console.error("Failed to abort:",t),await tC(e,!1,!1,!0)}}},[tC]),t$=(0,r.useCallback)(async e=>{let t=eY.current;if(t){eP(e);try{let{cancelled:n,newSessionId:r}=await (0,s.$)(t,{type:"fork",entryId:e})??{};!n&&r&&g?.(r)}catch(e){console.error("Fork failed:",e)}finally{eP(null)}}},[g]),tR=(0,r.useCallback)(async e=>{let t=eY.current;t&&(R(t),e8.current=e,X(e),await tS(t,e))},[tS]),tD=(0,r.useCallback)(async e=>{e8.current=e,X(e);let t=eY.current;t&&(R(t),await tS(t,e))},[tS]),tL=(0,r.useCallback)(async(e,t)=>{if(J)return void td({provider:e,modelId:t});let n=eY.current;if(n)try{var r;eG(null);let a=await (0,s.$)(n,{type:"set_model",provider:e,modelId:t}),o={provider:a.provider,modelId:a.id};a.thinkingLevel&&(r=a.thinkingLevel,"auto"===r||"off"===r||"minimal"===r||"low"===r||"medium"===r||"high"===r||"xhigh"===r)&&eM(a.thinkingLevel),ej(o),q(e=>e?{...e,context:{...e.context,model:o}}:e)}catch(t){let e=t instanceof Error?t.message:String(t);console.error("Failed to set model:",t),eG(e)}},[J,td]),tN=(0,r.useCallback)(async()=>{let e=eY.current;if(e&&!eH){eK(!0),eJ(null);try{await (0,s.$)(e,{type:"compact"}),await tC(e,!0)}catch(e){eJ(e instanceof Error?e.message:String(e))}finally{eK(!1)}}},[eH,tC]),tP=(0,r.useCallback)(async(e,t,n)=>{let r=eY.current;if(!r)return;R(r);let a=ty(n),o=e.trim()?a?`${e}
11
+
12
+ Attached document text:
13
+
14
+ ${a}`:e:a?`Attached document text:
15
+
16
+ ${a}`:"",l=eg.find(e=>e.provider===tf?.provider&&e.id===tf?.modelId)?.input,i=!l||0===l.length||l.includes("image")?t?.map(e=>({type:"image",data:e.data,mimeType:e.mimeType})):void 0,u={role:"user",content:`[steer] ${o}`,timestamp:Date.now()},c=U(),d=O(o,i?.length??0);e6.current.set(c,{localId:c,sessionId:r,leafId:e8.current,message:u,createdAt:Date.now(),kind:"steer",confirmKey:d,confirmCountAtCreate:d?e7.current.get(d)??0:0}),ee(e=>[...e,u]);try{await (0,s.$)(r,{type:"steer",message:o,...i?.length?{images:i}:{}})}catch(e){e6.current.delete(c),console.error("Failed to steer:",e)}},[ty,eg,tf]),tU=(0,r.useCallback)(async(e,t,n)=>{let r=eY.current;if(!r)return;R(r);let a=ty(n),o=e.trim()?a?`${e}
17
+
18
+ Attached document text:
19
+
20
+ ${a}`:e:a?`Attached document text:
21
+
22
+ ${a}`:"",l=eg.find(e=>e.provider===tf?.provider&&e.id===tf?.modelId)?.input,i=!l||0===l.length||l.includes("image")?t?.map(e=>({type:"image",data:e.data,mimeType:e.mimeType})):void 0,u={role:"user",content:o,timestamp:Date.now()},c=U(),d=O(o,i?.length??0);e6.current.set(c,{localId:c,sessionId:r,leafId:e8.current,message:u,createdAt:Date.now(),kind:"follow_up",confirmKey:d,confirmCountAtCreate:d?e7.current.get(d)??0:0}),ee(e=>[...e,u]);try{await (0,s.$)(r,{type:"follow_up",message:o,...i?.length?{images:i}:{}})}catch(e){e6.current.delete(c),console.error("Failed to follow up:",e)}},[ty,eg,tf]),tj=(0,r.useCallback)(async()=>{let e=eY.current;if(e)try{await (0,s.$)(e,{type:"abort_compaction"})}catch(e){console.error("Failed to abort compaction:",e)}},[]),tO=(0,r.useCallback)(async e=>{if(eM(e),"auto"===e)return;let t=eY.current;if(t)try{await (0,s.$)(t,{type:"set_thinking_level",level:e})}catch(e){console.error("Failed to set thinking level:",e)}},[]),tF=(0,r.useCallback)(async e=>{tp(e);let t=(0,D.tE)(e,eS),n=eY.current;if(n)try{await (0,s.$)(n,{type:"set_tools",toolNames:t})}catch(e){console.error("Failed to set tools:",e)}},[eS,tp]),tH=(0,r.useCallback)(async e=>{tm(e);let t=(0,D.tE)(ek,e),n=eY.current;if(n)try{await (0,s.$)(n,{type:"set_tools",toolNames:t})}catch(e){console.error("Failed to set memory tools:",e)}},[tm,ek]),tK=(0,r.useCallback)((e="smooth")=>{e5.current?.scrollIntoView({behavior:e})},[]),tW=(0,r.useCallback)(()=>{let e=e2.current,t=e3.current;if(!e||!t)return;let n=t.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;e.scrollTo({top:n-16,behavior:"smooth"})},[]);return(0,r.useEffect)(()=>{if(t){var e;let n;if(eY.current=t.id,t.id===te.current)return te.current=null,()=>{tl.current&&clearTimeout(tl.current),tl.current=null,eV.current?.close(),eV.current=null,e0.current?.(),e0.current=null};ta.current=!1,tr.current=0;let r=(e=t.id,(n=f().get(e))&&"idle"!==n.snapshot.phase?n.snapshot:null);r?.phase==="active"&&(eQ.current=!0,ep(!0),eq({kind:"waiting_model"}),ec({type:"start"})),(async()=>{let e=await tC(t.id,!0,!0,!0);eY.current===t.id&&(await t_(t.id),e?.running?(eQ.current=!0,ep(!0),eq(a(e.state)),ec({type:"start"}),N()&&tx(t.id,{replay:!0}),e0.current?.(),e0.current=S(t.id,()=>{eY.current===t.id&&eZ.current?.(t.id,"stream_watchdog")})):e&&r?.phase==="active"?(eQ.current=!1,ep(!1),eq(null),ec({type:"end"}),_(t.id)):e||r?.phase!=="active"||eZ.current?.(t.id,"mount_state_load_failed"),e?.state&&(void 0!==e.state.isCompacting&&eK(e.state.isCompacting),void 0!==e.state.contextUsage&&eR(e.state.contextUsage??null),void 0!==e.state.systemPrompt&&eL(e.state.systemPrompt??null),void 0!==e.state.thinkingLevel&&eM(e.state.thinkingLevel??"auto"),void 0!==e.state.planMode&&W?.(e.state.planMode)))})()}return()=>{te.current&&eY.current===te.current||(tl.current&&clearTimeout(tl.current),tl.current=null,ti.current?.controller.abort(P("Session changed","AbortError")),ti.current=null,eV.current?.close(),eV.current=null,e0.current?.(),e0.current=null)}},[tx,tC,t_,M,W,t]),(0,r.useEffect)(()=>{let e=()=>{tu.current&&(clearTimeout(tu.current),tu.current=null)},t=()=>{e();let t=eY.current;t&&tM(t,"foreground")},n=()=>{e(),tu.current=setTimeout(()=>{tu.current=null,"hidden"!==document.visibilityState||tc.current||(eV.current?.close(),eV.current=null)},1e3)},r=()=>{"visible"===document.visibilityState?t():n()};return document.addEventListener("visibilitychange",r),window.addEventListener("focus",t),window.addEventListener("online",t),"hidden"===document.visibilityState&&n(),()=>{e(),document.removeEventListener("visibilitychange",r),window.removeEventListener("focus",t),window.removeEventListener("online",t)}},[tM]),(0,r.useEffect)(()=>{let e=eY.current;if(e)return to.current=!1,(0,c.O)(t=>{let n=t.includes(e),r=to.current;to.current=n,n&&!eQ.current?(R(e),tM(e,"running_feed_start")):!n&&r&&(R(e),eQ.current?tM(e,"running_feed_stop"):tC(e,!1,!1,!0))})},[tC,tM,t?.id]),(0,r.useEffect)(()=>{let e=window.setInterval(()=>{let e=eY.current;e&&(eQ.current?tM(e,"interval"):Date.now()-ts.current>=3e4?(ts.current=Date.now(),R(e),tC(e,!1,!1,!0)):tC(e))},15e3);return()=>window.clearInterval(e)},[tC,tM]),(0,r.useEffect)(()=>{M&&M(B?.tree??[],Q,tD)},[B?.tree,Q,tD,M]),(0,r.useEffect)(()=>{Z.length>0&&!tn.current&&(e4.current?(e4.current=!1,e1.current=!0,tW()):e1.current?eQ.current||tK("smooth"):(e1.current=!0,tK("instant")))},[Z.length,ed,tK,tW]),(0,r.useEffect)(()=>{fetch("/api/models").then(e=>e.json()).then(e=>{if(ef(e.models),e.thinkingLevels&&ew(e.thinkingLevels),e.thinkingLevelMaps&&eb(e.thinkingLevelMaps),e.modelList&&(eh(e.modelList),J&&e.modelList.length>0)){let t=e.defaultModel,n=t&&e.modelList.find(e=>e.id===t.modelId&&e.provider===t.provider);td(n?{provider:n.provider,modelId:n.id}:{provider:e.modelList[0].provider,modelId:e.modelList[0].id})}}).catch(()=>{})},[J,b,td]),(0,r.useEffect)(()=>{if(!eW)return;let e=setTimeout(()=>eJ(null),3e3);return()=>clearTimeout(e)},[eW]),{data:B,loading:z,error:V,activeLeafId:Q,messages:Z,entryIds:et,streamState:eu,agentRunning:ed,modelNames:em,modelList:eg,modelThinkingLevels:ey,modelThinkingLevelMaps:ev,newSessionModel:eT,toolPreset:ek,memoryTools:eS,thinkingLevel:ex,retryInfo:eE,contextUsage:e$,systemPrompt:eD,forkingEntryId:eN,isCompacting:eH,compactError:eW,currentModel:tf,displayModel:tg,sessionStats:tv,agentPhase:eB,agentError:ez,isNew:J,sessionIdRef:eY,sseReaderRef:eV,messagesEndRef:e5,scrollContainerRef:e2,lastUserMsgRef:e3,pendingScrollToUserRef:e4,initialScrollDoneRef:e1,handleSend:tE,handleAbort:tA,handleFork:t$,handleNavigate:tR,handleModelChange:tL,handleCompact:tN,handleSteer:tP,handleFollowUp:tU,handleAbortCompaction:tj,handleToolPresetChange:tF,handleMemoryToolsChange:tH,handleThinkingLevelChange:tO,loadTools:t_,setActiveLeafId:X,setData:q,setMessages:ee,dispatch:ec,setAgentRunning:ep,setForkingEntryId:eP,loadMoreMessages:tI,hasMoreMessages:eo,totalMessages:er,loadedMessagesCount:el,handleAgentEventRef:eX}}},14755:(e,t,n)=>{n.d(t,{ES:()=>p,IB:()=>m,SN:()=>a,tE:()=>f,xG:()=>d});let r="subagent",a=["retain","recall","reflect"],o=[],s=["read","bash","edit","write"],l=["bash","read","edit","write","grep","find","ls"],i=[...l,"kernel_plot_run","kernel_plot_render","kernel_plot_inspect","kernel_plot_stop","kernel_plot_artifacts"],u=[...l,r];function c(e){return[...e].sort().join(",")}function d(e){switch(e){case"none":return o;case"default":return s;case"workbench":return i;case"agent":return u;default:return l}}function p(e){let t=e.filter(e=>e.active).map(e=>e.name),n=t.filter(e=>!a.includes(e)),o=c(t),d=c(n);return""===o?"none":o===c(s)?"default":o===c(l)?"full":o===c(i)?"workbench":o===c(u)?"agent":""===d?"none":d===c(s)?"default":d===c(l)?"full":d===c(i)?"workbench":d===c(u)||t.includes(r)?"agent":"default"}function m(e){return a.filter(t=>e.some(e=>e.active&&e.name===t))}function f(e,t){return[...new Set([...d(e),...t])]}},16865:(e,t,n)=>{n.d(t,{O:()=>w});let r=new Set,a=null,o=null,s=null,l=null,i=null,u=!1,c=!1;function d(e){for(let t of(a=[...new Set(e.filter(e=>"string"==typeof e))],r))try{t(a)}catch{}}async function p(){try{let e=await fetch("/api/agent/running",{cache:"no-store"});if(!e.ok)return;let t=await e.json();Array.isArray(t.runningSessionIds)&&d(t.runningSessionIds)}catch{}}function m(){s||0===r.size||(p(),s=setInterval(()=>{p()},5e3))}function f(){s&&(clearInterval(s),s=null)}function g(){if(!u){if(u=!0,window.__annovibeRunningSessionSubscribe){i=window.__annovibeRunningSessionSubscribe(d);return}if("u"<typeof SharedWorker)return void m();try{(o=new SharedWorker("/running-session-worker.js?v=1",{name:"annovibe-running-sessions-v1",type:"classic"})).port.onmessage=e=>{let t=e.data;"transport"===t.type?m():"running"===t.type&&Array.isArray(t.runningSessionIds)&&(l&&clearTimeout(l),l=null,f(),d(t.runningSessionIds.filter(e=>"string"==typeof e)))},o.onerror=()=>m(),o.port.start(),o.port.postMessage({type:"subscribe"}),l=setTimeout(()=>m(),3e3)}catch{o=null,m()}}}function h(){if(u){if(u=!1,l&&clearTimeout(l),l=null,f(),i?.(),i=null,o){try{o.port.postMessage({type:"disconnect"})}catch{}try{o.port.close()}catch{}}o=null,a=null}}function y(){r.size>0&&g()}function w(e){return r.add(e),a&&e(a),c||(c=!0,window.addEventListener("pagehide",h),window.addEventListener("pageshow",y)),g(),()=>{r.delete(e),0===r.size&&(h(),c&&(c=!1,window.removeEventListener("pagehide",h),window.removeEventListener("pageshow",y)))}}},32383:(e,t,n)=>{n.d(t,{$:()=>a,H:()=>r});class r extends Error{constructor(e,t,n){super(e),this.status=t,this.code=n,this.name="AgentCommandError"}}async function a(e,t){let n=await fetch(`/api/agent/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await n.json().catch(()=>({}));if(!n.ok||a.error)throw new r(a.error??`HTTP ${n.status}`,n.status,a.code);return a.data}}}]);
@@ -0,0 +1,22 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{6750:(e,t,r)=>{r.d(t,{OI:()=>o,PH:()=>a,QG:()=>l,ok:()=>i});var n=r(95155);function l({children:e,style:t}){return(0,n.jsx)("div",{"data-document-surface":"canvas-stage",style:{width:"100%",display:"flex",justifyContent:"center",alignItems:"flex-start",...t},children:e})}function i({children:e,style:t}){return(0,n.jsx)("div",{"data-document-surface":"canvas-card",style:{background:"#fff",border:"1px solid var(--border)",borderRadius:8,boxShadow:"0 2px 8px rgba(0,0,0,0.08)",overflow:"hidden",...t},children:e})}function a({children:e,style:t}){return(0,n.jsx)("div",{"data-document-surface":"canvas-header",style:{padding:"8px 16px",background:"var(--bg)",borderBottom:"1px solid var(--border)",fontSize:11,color:"var(--text-dim)",fontFamily:"var(--font-mono)",...t},children:e})}function o({children:e,style:t}){return(0,n.jsx)("div",{"data-document-surface":"canvas-body",style:{padding:"24px 32px 40px",...t},children:e})}},25618:(e,t,r)=>{r.d(t,{h:()=>_});var n=r(95155),l=r(12115),i=r(76577),a=r(27568);function o({dir:e}){return(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:"asc"===e?(0,n.jsx)("polyline",{points:"2 6 5 3 8 6"}):(0,n.jsx)("polyline",{points:"2 4 5 7 8 4"})})}function s(e,t,r){let n=new Blob([e],{type:r}),l=URL.createObjectURL(n),i=document.createElement("a");i.href=l,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),setTimeout(()=>URL.revokeObjectURL(l),1e3)}function d({content:e,delimiter:t,fileName:r="table"}){let[i,a]=(0,l.useState)(null),[c,u]=(0,l.useState)("asc"),{header:h,rows:p}=(0,l.useMemo)(()=>(function(e,t){let r=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),n=[],l=[],i="",a=!1;for(let e=0;e<r.length;e+=1){let o=r[e];if('"'===o){a&&'"'===r[e+1]?(i+='"',e+=1):a=!a;continue}if(o===t&&!a){l.push(i),i="";continue}if("\n"===o&&!a){l.push(i),l.some(e=>e.length>0)&&n.push(l),l=[],i="";continue}i+=o}l.push(i),l.some(e=>e.length>0)&&n.push(l);let o=n[0]??[],s=o.length;return{header:o,rows:n.slice(1).map(e=>{let t=[...e];for(;t.length<s;)t.push("");return t.slice(0,s)})}})(e,t),[e,t]),x=(0,l.useMemo)(()=>{if(null===i)return p;let e=[...p];return e.sort((e,t)=>{let r=e[i]??"",n=t[i]??"",l=Number(r),a=Number(n),o=""===r||""===n||Number.isNaN(l)||Number.isNaN(a)?r.localeCompare(n):l-a;return"asc"===c?o:-o}),e},[p,c,i]);return 0===h.length&&0===p.length?(0,n.jsx)("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--text-muted)",fontSize:13},children:"No tabular data to display"}):(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"8px 12px",borderBottom:"1px solid var(--border)",background:"var(--bg-panel)",flexShrink:0},children:[(0,n.jsxs)("div",{style:{fontSize:11,color:"var(--text-dim)"},children:[p.length," rows, ",h.length," columns"]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,n.jsxs)("button",{onClick:()=>{s(e,r," "===t?"text/tab-separated-values;charset=utf-8":"text/csv;charset=utf-8")},style:{padding:"2px 8px",fontSize:11,cursor:"pointer",background:"var(--bg-hover)",color:"var(--text-muted)",border:"1px solid var(--border)",borderRadius:5},children:["Export "," "===t?"TSV":"CSV"]}),(0,n.jsx)("button",{onClick:()=>{s(JSON.stringify(x.map(e=>Object.fromEntries(h.map((t,r)=>[t||`column_${r+1}`,e[r]??""]))),null,2),r.replace(/\.[^.]+$/,"")+".json","application/json;charset=utf-8")},style:{padding:"2px 8px",fontSize:11,cursor:"pointer",background:"var(--bg-hover)",color:"var(--text-muted)",border:"1px solid var(--border)",borderRadius:5},children:"Export JSON"})]})]}),(0,n.jsx)("div",{style:{minHeight:0,flex:1,overflow:"auto",background:"var(--bg)"},children:(0,n.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed",fontSize:12},children:[(0,n.jsx)("thead",{style:{position:"sticky",top:0,zIndex:1,background:"var(--bg-panel)"},children:(0,n.jsx)("tr",{children:h.map((e,t)=>(0,n.jsx)("th",{onClick:()=>{i===t?u(e=>"asc"===e?"desc":"asc"):(a(t),u("asc"))},title:e,style:{padding:"8px 10px",borderBottom:"1px solid var(--border)",textAlign:"left",color:"var(--text-muted)",fontWeight:600,cursor:"pointer",userSelect:"none",fontSize:11,whiteSpace:"nowrap"},children:(0,n.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,minWidth:0},children:[(0,n.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:e||`column_${t+1}`}),i===t&&(0,n.jsx)("span",{style:{color:"var(--accent)",display:"inline-flex",flexShrink:0},children:(0,n.jsx)(o,{dir:c})})]})},`${e}-${t}`))})}),(0,n.jsx)("tbody",{children:x.map((e,t)=>(0,n.jsx)("tr",{style:{borderBottom:"1px solid rgba(127,127,127,0.14)",background:t%2==1?"var(--bg-subtle)":"transparent"},children:h.map((r,l)=>(0,n.jsx)("td",{title:e[l]??"",style:{padding:"6px 10px",color:"var(--text)",fontFamily:"var(--font-mono)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:0},children:e[l]??""},`${r}-${t}-${l}`))},t))})]})})]})}var c=r(99947),u=r(7834),h=r(72518);let p={display:"inline-block",minWidth:"3em",paddingRight:"1em",textAlign:"right",color:"var(--text-dim)",fontStyle:"normal",userSelect:"none"};function x({code:e,language:t,isDark:r,wrapLines:i=!1,scrollToLine:a}){let o="text"===t||"csv"===t||"tsv"===t?"plaintext":t||"plaintext",s=e.split("\n").length,d=(0,l.useRef)(new Map),f=(0,l.useMemo)(()=>(0,h.Rd)(e,o,r),[e,r,o]),[g,m]=(0,l.useState)(()=>f?.tokens??null),y=(0,l.useRef)(""),b=(0,l.useMemo)(()=>(0,h.nS)(e).tokens,[e]);(0,l.useEffect)(()=>{let t=`${e}:${o}:${r?"dark":"light"}`;y.current=t;let n=!1;return f?(m(f.tokens),()=>{n=!0}):((0,h.wY)(e,o,r,e=>{n||y.current!==t||m(e.tokens)}),()=>{n=!0})},[f,e,r,o]);let v=g??f?.tokens??b;return(0,l.useEffect)(()=>{if(null==a||a<1)return;let e=d.current.get(Math.min(a,s));e?.scrollIntoView({block:"center"})},[s,a,v]),(0,n.jsxs)(c.NG,{style:{border:"none",borderRadius:0,minHeight:"100%"},children:[(0,n.jsx)(c.iO,{title:`${o} \xb7 ${s} lines`,actions:(0,n.jsx)(c.Mi,{onClick:()=>{(0,u.D)(e)},ariaLabel:"Copy file contents",title:"Copy file contents",label:"copy"}),style:{padding:"4px 16px",borderBottom:"1px solid var(--border)",background:"var(--bg)"}}),(0,n.jsx)("pre",{style:{margin:0,padding:"12px 0",background:"var(--bg)",fontSize:13,lineHeight:1.6,fontFamily:"var(--font-mono)",minHeight:"100%",overflow:"auto",whiteSpace:i?"pre-wrap":"pre",wordBreak:i?"break-word":void 0},children:(0,n.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:v.map((e,t)=>{let r=t+1,l=a===r;return(0,n.jsxs)("span",{ref:e=>{e?d.current.set(r,e):d.current.delete(r)},style:{display:"block",background:l?"color-mix(in srgb, var(--accent) 14%, transparent)":void 0},children:[(0,n.jsx)("span",{style:p,children:r}),0===e.length?"\n":e.map((e,t)=>{let r=(0,h.tG)(e.fontStyle);return(0,n.jsx)("span",{style:{color:e.color??"inherit",...r},children:e.content},t)})]},t)})})})]})}var f=r(8391),g=r(28999);function m(e){return`/api/files/${(0,g.HG)(e)}?type=read&raw=1`}async function y(e){let t=await fetch(m(e),{method:"HEAD"});if(!t.ok){let e=`HTTP ${t.status}`;try{let r=await t.json().catch(()=>null);r?.error&&(e=r.error)}catch{}throw Error(e)}let r=document.createElement("a");r.href=m(e),r.download=(0,g.WP)(e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}function b({filePath:e}){let[t,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(null);return(0,n.jsx)("button",{onClick:()=>{a(null),r(!0),y(e).catch(e=>a(e instanceof Error?e.message:String(e))).finally(()=>r(!1))},disabled:t,title:i??"Download original file",style:{padding:"2px 10px",fontSize:11,cursor:"pointer",background:"var(--bg-hover)",color:"var(--text-muted)",border:"1px solid var(--border)",borderRadius:5,fontWeight:600,opacity:t?.7:1,...i?{borderColor:"#ef4444",color:"#ef4444"}:{}},onMouseEnter:e=>{t||(e.currentTarget.style.background="var(--accent)",e.currentTarget.style.color="#fff",e.currentTarget.style.borderColor="var(--accent)")},onMouseLeave:e=>{i||(e.currentTarget.style.background="var(--bg-hover)",e.currentTarget.style.color="var(--text-muted)",e.currentTarget.style.borderColor="var(--border)")},children:t?"Downloading…":"Download"})}var v=r(96793);function j(e){let t=(0,g.WP)(e).toLowerCase().split(".").pop()??"";return"csv"===t?",":"tsv"===t?" ":null}function w(e){let t=e.includes("/")?e.slice(0,e.lastIndexOf("/")):".",r=(0,g.HG)(t);return`/api/files/${r}/?type=read&raw=1`}function k({oldContent:e,newContent:t,language:r}){let l=function(e,t){let r=e.length,n=t.length,l=r+n,i=Array(2*l+1).fill(0),a=[];for(let o=0;o<=l;o++){a.push([...i]);for(let s=-o;s<=o;s+=2){let d,c=(d=s===-o||s!==o&&i[s-1+l]<i[s+1+l]?i[s+1+l]:i[s-1+l]+1)-s;for(;d<r&&c<n&&e[d]===t[c];)d++,c++;if(i[s+l]=d,d>=r&&c>=n){let i=[],s=r,d=n;for(let r=o;r>0;r--){let n,o=a[r-1],c=s-d;n=c===-r||c!==r&&o[c-1+l]<o[c+1+l]?c+1:c-1;let u=o[n+l],h=u-n;for(;s>u&&d>h;)s--,d--,i.unshift({type:"unchanged",text:e[s],lineNo:s+1});r>0&&(s>u?(s--,i.unshift({type:"removed",text:e[s],lineNo:s+1})):(d--,i.unshift({type:"added",text:t[d],lineNo:d+1})))}for(;s>0&&d>0;)s--,d--,i.unshift({type:"unchanged",text:e[s],lineNo:s+1});return i}}}return[...e.map((e,t)=>({type:"removed",text:e,lineNo:t+1})),...t.map((e,t)=>({type:"added",text:e,lineNo:t+1}))]}(e.split("\n"),t.split("\n"));return(0,n.jsx)(i.pg,{diff:l})}function S({filePath:e,cwd:t,onOpenFile:r,scrollToLine:o}){let{isDark:s}=(0,v.D)(),[c,u]=(0,l.useState)(null),[h,p]=(0,l.useState)(null),[m,y]=(0,l.useState)(!0),[C,L]=(0,l.useState)(null),[P,$]=(0,l.useState)(null),[E,H]=(0,l.useState)(!1),[W,T]=(0,l.useState)("source"),[R,z]=(0,l.useState)(!1),[M,N]=(0,l.useState)(0),[B,F]=(0,l.useState)(!1),[I,G]=(0,l.useState)(0),[O,A]=(0,l.useState)(!1),[D,_]=(0,l.useState)(""),[U,K]=(0,l.useState)(!1),[q,Z]=(0,l.useState)(!1),[V,J]=(0,l.useState)(!1),[X,Q]=(0,l.useState)(null),Y=(0,l.useRef)(null),ee=(0,l.useRef)(!1);ee.current=O;let et=(0,l.useCallback)((e,t=!1)=>{let r=(0,g.HG)(e);return fetch(`/api/files/${r}?type=read`).then(e=>e.json()).then(e=>e.error?(L(e.error),null):(t?(u(t=>(t&&p(t.content),e)),G(e=>e+1)):u(e),L(null),e)).catch(e=>(L(String(e)),null))},[]);(0,l.useEffect)(()=>{y(!0),L(null),u(null),p(null),H(!1),T("source"),z(!1),N(0),G(0),F(!1),Y.current&&(Y.current.close(),Y.current=null),et(e).then(t=>{(t?.language==="markdown"||j(e))&&H(!0)}).finally(()=>y(!1)).catch(()=>{});let t=(0,g.HG)(e),r=new EventSource(`/api/files/${t}?type=watch`);return Y.current=r,r.addEventListener("connected",()=>{F(!0)}),r.addEventListener("change",()=>{ee.current?Z(!0):et(e,!0)}),r.addEventListener("error",()=>{F(!1),r.close()}),r.onerror=()=>{F(!1),r.close()},()=>{r.close(),Y.current=null}},[e,et]);let er=(0,l.useCallback)(()=>{c&&(A(!0),_(c.content),Q(c.mtime??null),J(!1),$(null),Z(!1),H(!1),T("source"))},[c]),en=(0,l.useCallback)(async(t=!1)=>{let r=(0,g.HG)(e);K(!0),J(!1),$(null);try{let n=await fetch(`/api/files/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:D,...t||!X?{}:{baseMtime:X}})});if(409===n.status){let e=await n.json().catch(()=>({error:"File changed on disk since it was opened"}));throw J(!0),Z(!0),Error(e.error??"File changed on disk since it was opened")}if(!n.ok){let e=await n.json().catch(()=>({error:String(n.status)}));throw Error(e.error??`HTTP ${n.status}`)}let l=await et(e,!0);Q(l?.mtime??null),A(!1),Z(!1),J(!1)}catch(e){$(e instanceof Error?e.message:String(e))}finally{K(!1)}},[X,D,et,e]),el=(0,l.useCallback)(()=>{A(!1),Z(!1),J(!1),$(null),Q(null)},[]),ei=(0,l.useCallback)(()=>{N(e=>e+1)},[]),ea=(0,l.useCallback)(async()=>{let t=await et(e,!0);t&&(_(t.content),Q(t.mtime??null),Z(!1),J(!1),$(null),L(null))},[et,e]),eo=c?.content??"",es=c?.language??"",ed="html"===es,ec="markdown"===es,eu=j(e),eh=null!==eu,ep=eo.split("\n"),ex=null!==c&&null!==h&&h!==eo,ef=(0,l.useMemo)(()=>{let t,r,n;return ed?(t=w(e),r=`<base href="${t}">`,n=eo,(n=/<head(\s[^>]*)?>/i.test(n)?n.replace(/<head(\s[^>]*)?>/i,e=>`${e}${r}`):/<html(\s[^>]*)?>/i.test(n)?n.replace(/<html(\s[^>]*)?>/i,e=>`${e}<head>${r}</head>`):`<!doctype html><html><head>${r}</head><body>${n}</body></html>`).replace(/<script\b/gi,'<script data-annovibe-disabled="true" type="application/json"').replace(/\s(?:on[a-z]+)\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,"")):""},[eo,e,ed]),eg=!ed&&!ec&&!eh&&ep.length>5e4,em=eh&&(ep.length>5e3||ep.slice(0,25).reduce((e,t)=>Math.max(e,t.split(eu??",").length),0)>100),ey=(0,l.useMemo)(()=>{if(!ed)return"";let t=w(e).includes("?")?"&":"?";return`${w(e)}${encodeURIComponent((0,g.WP)(e))}${t}v=${M}`},[e,M,ed]);return m?(0,n.jsx)(i.nG,{children:"Loading..."}):C?(0,n.jsx)(i.nG,{tone:"error",children:C}):c?(0,n.jsxs)(i.fj,{children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:e,trailing:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:c.language}),"source"===W&&(0,n.jsxs)("span",{children:[ep.length," lines"]}),(0,n.jsx)("span",{children:(0,i.v7)(c.size)}),(0,n.jsx)(b,{filePath:e}),(0,n.jsx)(i.mK,{watching:B}),O?(0,n.jsxs)(n.Fragment,{children:[(q||V||P)&&(0,n.jsxs)("span",{title:"File changed on disk while editing",style:{padding:"2px 8px",fontSize:11,background:"rgba(234,179,8,0.1)",color:"#b8860b",border:"1px solid rgba(234,179,8,0.3)",borderRadius:5,display:"flex",alignItems:"center",gap:4},children:[(0,n.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,n.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,n.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),P??"External change",(q||V)&&(0,n.jsx)(i.ml,{onClick:ea,style:{marginLeft:4,fontSize:10,background:"rgba(234,179,8,0.2)",color:"#b8860b",border:"1px solid rgba(234,179,8,0.3)",borderRadius:3,fontWeight:600},children:"Reload"}),V&&(0,n.jsx)(i.ml,{onClick:()=>void en(!0),disabled:U,emphasis:"danger",style:{marginLeft:4,fontSize:10,borderRadius:3,fontWeight:600},children:"Overwrite"})]}),(0,n.jsx)(i.ml,{onClick:()=>void en(),disabled:U,title:"Save file (Ctrl+S)",emphasis:"primary",style:{fontWeight:600},children:U?"Saving…":"Save"}),(0,n.jsx)(i.ml,{onClick:el,title:"Cancel editing",emphasis:"danger",style:{fontWeight:600},children:"Cancel"})]}):(0,n.jsx)(i.ml,{onClick:er,title:"Edit file",style:{fontWeight:600},children:"Edit"}),ex&&(0,n.jsx)(i.Tg,{options:[{key:"source",label:"Source",active:"source"===W,onClick:()=>T("source")},{key:"diff",label:(0,n.jsxs)(n.Fragment,{children:["Diff ",I>0&&(0,n.jsxs)("span",{style:{color:"#4ade80",marginLeft:2},children:["+",I]})]}),active:"diff"===W,onClick:()=>T("diff")}]}),"source"===W&&!E&&(0,n.jsx)(i.ml,{onClick:()=>z(e=>!e),title:R?"Disable word wrap":"Enable word wrap",active:R,children:"wrap"}),ed&&E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ml,{onClick:ei,title:"Reload the HTML preview",children:"Refresh preview"}),ey&&(0,n.jsx)(i.ml,{onClick:()=>window.open(ey,"_blank","noopener,noreferrer"),title:"Open HTML preview in a new tab",children:"Open in new tab"})]}),ed&&"source"===W&&(0,n.jsx)(i.Tg,{options:[{key:"code",label:"Code",active:!E,onClick:()=>H(!1)},{key:"preview",label:"Preview",active:E,onClick:()=>H(!0)}]}),ec&&"source"===W&&(0,n.jsx)(i.Tg,{options:[{key:"preview",label:"Preview",active:E,onClick:()=>H(!0)},{key:"raw",label:O?"Edit":"Raw",active:!E,onClick:()=>H(!1)}]}),eh&&"source"===W&&(0,n.jsx)(i.Tg,{options:[{key:"table",label:"Table",active:E,onClick:()=>H(!0)},{key:"raw",label:"Raw",active:!E,onClick:()=>H(!1)}]})]})}),(0,n.jsx)(i.Ph,{children:O&&!(ec&&E)?(0,n.jsx)(a.g,{initialContent:D,language:c.language,isDark:s,onChange:_,onSave:()=>void en(),scrollToLine:o}):O&&ec&&E?(0,n.jsx)(f.T,{content:D,className:"markdown-body markdown-file-preview",codeBlockVariant:"file",cwd:t,baseFilePath:e,onOpenLocalFile:r,style:{padding:"28px 36px",maxWidth:920,margin:"0 auto"}}):"diff"===W&&ex?(0,n.jsx)(k,{oldContent:h,newContent:c.content,language:c.language}):ed&&E?(0,n.jsx)("iframe",{srcDoc:ef,sandbox:"",style:{width:"100%",height:"100%",border:"none",background:"var(--bg)"},title:"HTML preview"},M):ec&&E?(0,n.jsx)(f.T,{content:c.content,className:"markdown-body markdown-file-preview",codeBlockVariant:"file",cwd:t,baseFilePath:e,onOpenLocalFile:r,style:{padding:"28px 36px",maxWidth:920,margin:"0 auto"}}):eh&&E&&eu?em?(0,n.jsx)(i.nG,{children:"Table preview disabled for very large files. Switch to Raw mode or export the file."}):(0,n.jsx)(d,{content:c.content,delimiter:eu,fileName:(0,g.WP)(e)}):eg?(0,n.jsx)(i.nG,{children:"Text preview is too large for the rich viewer. Use Edit/Raw workflows instead."}):(0,n.jsx)(x,{code:c.content,language:c.language,isDark:s,wrapLines:R,scrollToLine:o})})]}):null}var C=r(6750),L=r(63161);let P=null;function $({arrayBuffer:e,fileName:t,toolbarExtra:a}){let o=(0,l.useRef)(null),[s,d]=(0,l.useState)(!0),[c,u]=(0,l.useState)(null),[h,p]=(0,l.useState)(0),[x,f]=(0,l.useState)(1),[g,m]=(0,l.useState)(1),y=(0,l.useRef)(g);y.current=g;let b=(0,l.useRef)(null),v=(0,l.useRef)(null),j=(0,l.useCallback)(async e=>{if(!P||!b.current)return;let t=b.current;if(!(e<1)&&!(e>t.numPages)){v.current&&(v.current.cancel(),v.current=null);try{let r=await t.getPage(e),n=r.getViewport({scale:y.current*(window.devicePixelRatio||1)}),l=o.current;if(!l)return;let i=l.querySelector("canvas");if(i||((i=document.createElement("canvas")).style.display="block",i.style.margin="0 auto",l.innerHTML="",l.appendChild(i)),i.width=n.width,i.height=n.height,i.style.width=`${n.width/(window.devicePixelRatio||1)}px`,i.style.height=`${n.height/(window.devicePixelRatio||1)}px`,!i.getContext("2d"))return;let a=r.render({canvas:i,viewport:n});v.current=a,await a.promise,v.current=null}catch(e){"RenderingCancelledException"!==e.name&&console.error("PDF render error:",e)}}},[]);return(0,l.useEffect)(()=>{let t=!1;return async function(){d(!0),u(null);try{P||((P=await Promise.all([r.e(2213),r.e(2619)]).then(r.bind(r,12810))).GlobalWorkerOptions.workerSrc=new r.U(r(53228)).toString());let n=await P.getDocument({data:e}).promise;if(t)return;b.current=n,p(n.numPages),f(1),d(!1)}catch(e){t||(u(String(e)),d(!1))}}(),()=>{t=!0,v.current&&(v.current.cancel(),v.current=null)}},[e]),(0,l.useEffect)(()=>{!s&&h>0&&j(x)},[s,x,h,j]),(0,l.useEffect)(()=>{!s&&h>0&&j(x)},[g]),(0,n.jsx)(L.B,{fileName:t,pageInfo:h>0?`Page ${x} / ${h}`:void 0,zoom:g,onZoomIn:()=>m(e=>Math.min(e+.25,3)),onZoomOut:()=>m(e=>Math.max(e-.25,.25)),loading:s,loadingLabel:"Loading PDF...",error:c,bodyStyle:{background:"#525659",display:"flex",justifyContent:"center",padding:16},extra:(0,n.jsxs)(n.Fragment,{children:[a,h>1&&(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,n.jsx)(i.ml,{onClick:()=>f(e=>Math.max(e-1,1)),title:"Previous page",disabled:x<=1,style:{width:24,height:24,padding:0,lineHeight:1},children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",children:(0,n.jsx)("polyline",{points:"6 2 3 5 6 8"})})}),(0,n.jsxs)("span",{style:{fontSize:11,color:"var(--text-dim)",minWidth:28,textAlign:"center"},children:[x,"/",h]}),(0,n.jsx)(i.ml,{onClick:()=>f(e=>Math.min(e+1,h)),title:"Next page",disabled:x>=h,style:{width:24,height:24,padding:0,lineHeight:1},children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",children:(0,n.jsx)("polyline",{points:"4 2 7 5 4 8"})})})]})]}),children:!s&&!c&&(0,n.jsx)(C.QG,{style:{minWidth:"100%"},children:(0,n.jsx)("div",{ref:o})})})}function E({arrayBuffer:e,fileName:t,toolbarExtra:i}){let a=(0,l.useRef)(null),[o,s]=(0,l.useState)(!0),[d,c]=(0,l.useState)(null),[u,h]=(0,l.useState)(""),p=(0,l.useMemo)(()=>`<!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <base target="_blank" />
6
+ <style>
7
+ html, body { margin: 0; padding: 0; background: #e8e8e8; }
8
+ body { font-family: Arial, sans-serif; }
9
+ .docx-host { padding: 24px 0; }
10
+ .docx-host img, .docx-host canvas, .docx-host svg { max-width: 100%; }
11
+ </style>
12
+ </head>
13
+ <body>
14
+ <div class="docx-host">${u}</div>
15
+ </body>
16
+ </html>`,[u]);return(0,l.useEffect)(()=>{let t=!1;return async function(){s(!0),c(null),h("");try{let{renderAsync:n}=await Promise.all([r.e(2619),r.e(4453),r.e(2274)]).then(r.bind(r,52274)),l=a.current;if(!l||t||(l.innerHTML="",await n(e,l,void 0,{className:"docx-preview",inWrapper:!0,ignoreWidth:!1,ignoreHeight:!1,ignoreFonts:!1,breakPages:!0,ignoreLastRenderedPageBreak:!1,experimental:!1,trimXmlDeclaration:!0,useBase64URL:!1,renderChanges:!1,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0}),t))return;h(l.innerHTML.replace(/<script[\s\S]*?<\/script>/gi,"").replace(/<script\b[^>]*\/?>/gi,"").replace(/\s+on[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\s+(href|src|action)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gi,(e,t,r,n,l)=>{let i=String(r??n??l??"").trim();return/^\s*(javascript|data)\s*:/i.test(i)?"":e})),l.innerHTML="",s(!1)}catch(e){t||(console.error("DOCX render error:",e),c(String(e)),s(!1))}}(),()=>{t=!0}},[e]),(0,n.jsxs)(L.B,{fileName:t,loading:o,loadingLabel:"Loading document...",extra:i,error:d,bodyStyle:{background:"#e8e8e8",padding:"24px 0"},children:[(0,n.jsx)("div",{ref:a,style:{display:"none"},"aria-hidden":"true"}),!o&&!d&&(0,n.jsx)(C.QG,{children:(0,n.jsx)(C.ok,{style:{width:"100%",maxWidth:816,minHeight:100,visibility:o?"hidden":"visible",boxShadow:"0 1px 4px rgba(0,0,0,0.12)",overflow:"hidden"},children:(0,n.jsx)("iframe",{srcDoc:p,sandbox:"",title:t?`${t} preview`:"DOCX preview",style:{width:"100%",minHeight:720,border:"none",background:"transparent"}})})})]})}let H=/<(script|style|iframe|object|embed|form|meta|link)([\s\S]*?)>([\s\S]*?)<\/\1>|<(script|style|iframe|object|embed|form|meta|link)([^>]*)\/?>/gi,W=/\son[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi,T=/\s(href|src)\s*=\s*("\s*javascript:[^"]*"|'\s*javascript:[^']*'|javascript:[^\s>]+)/gi;function R({arrayBuffer:e,fileName:t,toolbarExtra:a}){let[o,s]=(0,l.useState)(!0),[d,c]=(0,l.useState)(null),[u,h]=(0,l.useState)([]),[p,x]=(0,l.useState)(0),f=(0,l.useMemo)(()=>{var e;return e=u[p]?.html??"",`<!doctype html><html><head><style>
17
+ body{margin:0;padding:16px;background:white;color:#111827;font:13px system-ui,sans-serif}
18
+ table{border-collapse:collapse;width:100%}
19
+ td,th{border:1px solid #d1d5db;padding:4px 6px;vertical-align:top}
20
+ th{background:#f3f4f6;font-weight:600}
21
+ img{max-width:100%;height:auto}
22
+ </style></head><body><div class="xlsx-preview">${e}</div></body></html>`},[p,u]);return(0,l.useEffect)(()=>{let t=!1;return async function(){s(!0),c(null);try{let n=await Promise.all([r.e(3524),r.e(8436)]).then(r.bind(r,15967)),l=n.read(e,{type:"array"}),i=l.SheetNames.map(e=>{let t=l.Sheets[e],r=n.utils.sheet_to_html(t,{editable:!1}).replace(H,"").replace(W,"").replace(T,"");return{name:e,html:r}});t||(h(i),x(0),s(!1))}catch(e){t||(console.error("XLSX parse error:",e),c(String(e)),s(!1))}}(),()=>{t=!0}},[e]),(0,n.jsx)(L.B,{fileName:t,loading:o,loadingLabel:"Loading spreadsheet...",error:d,bodyStyle:{background:"var(--bg-panel)"},extra:(0,n.jsxs)(n.Fragment,{children:[a,u.length>1&&(0,n.jsx)("div",{style:{display:"flex",alignItems:"center",maxWidth:"min(520px, 48vw)"},children:(0,n.jsx)(i.Tg,{options:u.map((e,t)=>({key:e.name,label:(0,n.jsx)("span",{title:e.name,style:{display:"block",maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name}),active:t===p,onClick:()=>x(t)}))})})]}),children:!o&&!d&&u.length>0&&(0,n.jsx)("iframe",{title:t?`${t} preview`:"Spreadsheet preview",sandbox:"",srcDoc:f,style:{width:"100%",height:"100%",minHeight:320,border:"none",background:"white"}})})}var z=r(53308);function M({arrayBuffer:e,fileName:t,toolbarExtra:a}){let[o,s]=(0,l.useState)(!0),[d,c]=(0,l.useState)(null),[u,h]=(0,l.useState)([]),[p,x]=(0,l.useState)(0);(0,l.useEffect)(()=>{let t=!1;return async function(){s(!0),c(null);try{let n=(await Promise.all([r.e(2619),r.e(4453)]).then(r.t.bind(r,54453,23))).default,l=await n.loadAsync(e),i=[];l.forEach(e=>{let t=/^ppt\/slides\/slide(\d+)\.xml$/i.exec(e);t&&i.push({name:e,index:parseInt(t[1],10)})}),i.sort((e,t)=>e.index-t.index);let a=[];for(let e of i){let r;if(t)return;let n=await l.file(e.name).async("string"),i=/<a:t[^>]*>([^<]*)<\/a:t>/g,o=[];for(;null!==(r=i.exec(n));){let e=r[1].trim();e&&o.push(e)}a.push({index:e.index,texts:o})}t||(h(a),s(!1))}catch(e){t||(console.error("PPTX parse error:",e),c(String(e)),s(!1))}}(),()=>{t=!0}},[e]);let f=u[p],g=u.length;return(0,n.jsx)(L.B,{fileName:t,pageInfo:g>0?`Slide ${p+1} / ${g}`:void 0,loading:o,loadingLabel:"Loading presentation...",error:d,bodyStyle:{background:"var(--bg-panel)",display:"flex",justifyContent:"center",alignItems:"flex-start",padding:24},extra:(0,n.jsxs)(n.Fragment,{children:[a,g>1&&(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,n.jsx)(i.ml,{onClick:()=>x(e=>Math.max(e-1,0)),title:"Previous slide",disabled:p<=0,style:{width:24,height:24,padding:0,lineHeight:1},children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",children:(0,n.jsx)("polyline",{points:"6 2 3 5 6 8"})})}),(0,n.jsxs)("span",{style:{fontSize:11,color:"var(--text-dim)",minWidth:28,textAlign:"center"},children:[p+1,"/",g]}),(0,n.jsx)(i.ml,{onClick:()=>x(e=>Math.min(e+1,g-1)),title:"Next slide",disabled:p>=g-1,style:{width:24,height:24,padding:0,lineHeight:1},children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",children:(0,n.jsx)("polyline",{points:"4 2 7 5 4 8"})})})]})]}),children:!o&&!d&&f&&(0,n.jsx)(C.QG,{children:(0,n.jsxs)("div",{style:{width:"100%",maxWidth:800},children:[(0,n.jsxs)(C.ok,{children:[(0,n.jsxs)(C.PH,{children:["Slide ",f.index]}),(0,n.jsx)(C.OI,{style:{minHeight:200},children:0===f.texts.length?(0,n.jsx)("div",{style:{color:"var(--text-dim)",fontStyle:"italic",fontSize:13},children:"(No text content)"}):(0,n.jsx)("ul",{style:{margin:0,padding:0,listStyle:"none"},children:f.texts.map((e,t)=>(0,n.jsx)("li",{style:{padding:"4px 0",fontSize:14,lineHeight:1.6,color:"var(--text)",borderBottom:t<f.texts.length-1?"1px solid var(--bg-panel)":"none"},children:e},t))})})]}),g>1&&(0,n.jsx)(z._t,{title:"All slides",children:(0,n.jsx)(z.S7,{children:u.map((e,t)=>(0,n.jsx)(z.HF,{title:`Slide ${e.index}`,summary:e.texts[0]||"(empty)",active:t===p,onClick:()=>x(t)},e.index))})})]})})})}function N(e){return Array.isArray(e)?e.join(""):e}function B({filePath:e,cwd:t}){let[r,a]=(0,l.useState)(null),[o,s]=(0,l.useState)(!0),[d,c]=(0,l.useState)(null),u=(0,l.useRef)(null);return((0,l.useEffect)(()=>{let t=(0,g.HG)(e);fetch(`/api/files/${t}?type=read`).then(async e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);let t=await e.json();if(t.error)throw Error(t.error);if(!t.content)throw Error("Empty file");let r=JSON.parse(t.content);if(!r.cells||!Array.isArray(r.cells))throw Error("Invalid notebook format");a(r.cells)}).catch(e=>c(e.message)).finally(()=>s(!1));let r=new EventSource(`/api/files/${t}?type=watch`);return u.current=r,()=>{r.close(),u.current=null}},[e]),o)?(0,n.jsxs)(i.fj,{children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:e}),(0,n.jsx)(i.nG,{children:"Loading notebook..."})]}):d||!r?(0,n.jsxs)(i.fj,{children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:e}),(0,n.jsx)(i.nG,{children:d??"Failed to load notebook"})]}):(0,n.jsxs)(i.fj,{style:{background:"var(--bg)",overflowY:"auto"},children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:`${(0,g.WP)(e)} \xb7 ${r.length} cells`,style:{padding:"9px 12px",fontSize:12,color:"var(--text-muted)"}}),(0,n.jsx)(i.Ph,{style:{padding:0},children:(0,n.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:r.map((e,t)=>(0,n.jsx)(F,{cell:e},t))})})]})}function F({cell:e}){if("markdown"===e.cell_type){let t=N(e.source).trim();return t?(0,n.jsx)("div",{style:{padding:"10px 16px",borderBottom:"1px solid var(--border)",background:"var(--bg)"},children:(0,n.jsx)(f.T,{content:t})}):null}if("code"===e.cell_type){let t=N(e.source),r=e.execution_count,l=e.outputs&&e.outputs.length>0;return(0,n.jsxs)("div",{style:{borderBottom:"1px solid var(--border)"},children:[(0,n.jsxs)("div",{style:{display:"flex",background:"var(--bg-panel)"},children:[(0,n.jsx)("div",{style:{width:48,flexShrink:0,padding:"6px 0",textAlign:"center",fontSize:10,fontFamily:"var(--font-mono)",color:"var(--text-dim)",userSelect:"none"},children:null!=r?`[${r}]`:"[ ]"}),(0,n.jsx)("div",{style:{flex:1,minWidth:0,padding:"6px 12px 6px 0",overflow:"auto"},children:(0,n.jsx)("pre",{style:{margin:0,fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1.6,color:"var(--text)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:(0,n.jsx)("code",{children:t})})})]}),l&&e.outputs.map((e,t)=>{let r=function(e){let t=[];if(!e.data)return t;for(let r of["image/png","image/jpeg","image/svg+xml","image/webp"])if(e.data[r]){let n=N(e.data[r]);t.push({data:n,mimeType:r})}return t}(e),l=function(e){if("stream"===e.output_type)return N(e.text??"").trim()||null;if(("execute_result"===e.output_type||"display_data"===e.output_type)&&e.data?.["text/plain"])return N(e.data["text/plain"]).trim()||null;if("error"===e.output_type){let t=e.ename??"Error",r=e.evalue??"";return`${t}: ${r}`}return null}(e);return"error"===e.output_type?(0,n.jsxs)("div",{style:{display:"flex",background:"rgba(248,113,113,0.04)",borderTop:"1px solid rgba(248,113,113,0.15)"},children:[(0,n.jsx)("div",{style:{width:48,flexShrink:0}}),(0,n.jsx)("div",{style:{flex:1,padding:"6px 12px 6px 0"},children:(0,n.jsx)("pre",{style:{margin:0,fontFamily:"var(--font-mono)",fontSize:11,lineHeight:1.5,color:"#f87171",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:l})})]},t):(0,n.jsxs)("div",{style:{borderTop:"1px solid rgba(34,197,94,0.08)",background:"var(--bg-subtle)"},children:[r.length>0&&(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)("div",{style:{width:48,flexShrink:0}}),(0,n.jsx)("div",{style:{flex:1,padding:"6px 0"},children:r.map((e,r)=>(0,n.jsx)("img",{src:`data:${e.mimeType};base64,${e.data}`,alt:`output ${t}`,style:{maxWidth:"100%",display:"block"}},r))})]}),l&&(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsx)("div",{style:{width:48,flexShrink:0}}),(0,n.jsx)("div",{style:{flex:1,padding:"4px 12px 4px 0"},children:(0,n.jsx)("pre",{style:{margin:0,fontFamily:"var(--font-mono)",fontSize:11,lineHeight:1.5,color:"var(--text-muted)",whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:300,overflow:"auto"},children:l})})]})]},t)})]})}return(0,n.jsx)("div",{style:{padding:"10px 16px",borderBottom:"1px solid var(--border)",background:"var(--bg-panel)"},children:(0,n.jsx)("pre",{style:{margin:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-dim)",whiteSpace:"pre-wrap"},children:N(e.source)})})}let I=new Set(["png","jpg","jpeg","gif","webp","svg","bmp","ico","avif"]),G=new Set(["mp3","wav","ogg","oga","opus","m4a","aac","flac","weba","webm"]),O=new Set(["pdf","docx","xlsx","pptx","doc","xls","ppt"]);function A({filePath:e,cwd:t,workbenchSessionId:r,onAskAboutArtifact:a,onEditArtifact:o}){let[s,d]=(0,l.useState)(!1),[c,u]=(0,l.useState)(0),[h,p]=(0,l.useState)(null),[x,f]=(0,l.useState)(null),[m,y]=(0,l.useState)(null),[v,j]=(0,l.useState)(100),[w,k]=(0,l.useState)(null),S=(0,l.useRef)(null),C=(0,g.WP)(e).toLowerCase().split(".").pop()??"";(0,l.useEffect)(()=>{u(0),p(null),f(null),y(null),d(!1),j(100),S.current&&(S.current.close(),S.current=null);let t=(0,g.HG)(e),r=new EventSource(`/api/files/${t}?type=watch`);return S.current=r,r.addEventListener("connected",()=>d(!0)),r.addEventListener("change",e=>{try{let t=JSON.parse(e.data);"number"==typeof t.size&&p(t.size)}catch{}u(e=>e+1)}),r.addEventListener("error",()=>d(!1)),r.onerror=()=>d(!1),()=>{r.close(),S.current=null}},[e]),(0,l.useEffect)(()=>{if(!r)return void k(null);let t=!1,n=new URLSearchParams({path:e});return fetch(`/api/sessions/${encodeURIComponent(r)}/workbench-artifact?${n}`).then(e=>e.ok?e.json():Promise.reject(Error(`HTTP ${e.status}`))).then(e=>{t||k(e.artifact??null)}).catch(()=>{t||k(null)}),()=>{t=!0}},[e,r]);let L=(0,g.HG)(e),P=`/api/files/${L}?type=read${c?`&v=${c}`:""}`,$=null!=h?(0,i.v7)(h):null,E=e=>j(Math.max(10,Math.min(500,e)));return(0,n.jsxs)(i.fj,{children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:e,trailing:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4,flexShrink:0},children:[(0,n.jsx)(i.ml,{onClick:()=>E(v-25),title:"Zoom out",style:{width:24,height:22,fontSize:13,lineHeight:1,padding:0},children:"-"}),(0,n.jsx)("select",{value:v,onChange:e=>E(Number(e.target.value)),title:"Image zoom",style:{height:22,border:"1px solid var(--border)",borderRadius:5,background:"var(--bg-panel)",color:"var(--text)",fontSize:11,fontFamily:"var(--font-mono)",outline:"none",cursor:"pointer"},children:[25,50,75,100,125,150,200,300].map(e=>(0,n.jsxs)("option",{value:e,children:[e,"%"]},e))}),(0,n.jsx)(i.ml,{onClick:()=>E(v+25),title:"Zoom in",style:{width:24,height:22,fontSize:13,lineHeight:1,padding:0},children:"+"})]}),w&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{title:w.provenance.title,children:["Cell #",w.provenance.cellIndex]}),(0,n.jsx)(i.ml,{onClick:()=>a?.(w),title:"Ask about this Workbench artifact",children:"Ask"}),(0,n.jsx)(i.ml,{onClick:()=>o?.(w),title:"Edit this Workbench artifact",children:"Edit"})]}),(0,n.jsx)("span",{style:{flexShrink:0},children:C||"image"}),x&&(0,n.jsxs)("span",{children:[x.w," \xd7 ",x.h]}),$&&(0,n.jsx)("span",{children:$}),(0,n.jsx)(b,{filePath:e}),(0,n.jsx)(i.mK,{watching:s})]})}),(0,n.jsx)(i.Ph,{style:{background:"var(--bg-panel)",WebkitOverflowScrolling:"touch",overscrollBehavior:"contain",backgroundImage:"linear-gradient(45deg, var(--bg) 25%, transparent 25%), linear-gradient(-45deg, var(--bg) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--bg) 75%), linear-gradient(-45deg, transparent 75%, var(--bg) 75%)",backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px"},children:m?(0,n.jsx)(i.nG,{tone:"error",style:{minWidth:"100%",minHeight:"100%"},children:m}):(0,n.jsx)("div",{style:{minWidth:"100%",minHeight:"100%",width:"max-content",height:"max-content",boxSizing:"border-box",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",padding:16},children:(0,n.jsx)("img",{src:P,alt:e,onLoad:e=>{let t=e.currentTarget;f({w:t.naturalWidth,h:t.naturalHeight})},onError:()=>y("Failed to load image"),style:{width:x?Math.max(1,Math.round(x.w*v/100)):"auto",height:x?Math.max(1,Math.round(x.h*v/100)):"auto",maxWidth:"none",maxHeight:"none",objectFit:"contain",boxShadow:"0 2px 8px rgba(0,0,0,0.15)"}})})})]})}function D({filePath:e,cwd:t}){let[r,a]=(0,l.useState)(!1),[o,s]=(0,l.useState)(0),[d,c]=(0,l.useState)(null),[u,h]=(0,l.useState)(null),[p,x]=(0,l.useState)(null),f=(0,l.useRef)(null),m=(0,g.WP)(e).toLowerCase().split(".").pop()??"";(0,l.useEffect)(()=>{s(0),c(null),h(null),x(null),a(!1),f.current&&(f.current.close(),f.current=null);let t=(0,g.HG)(e),r=new EventSource(`/api/files/${t}?type=watch`);return f.current=r,r.addEventListener("connected",()=>a(!0)),r.addEventListener("change",e=>{try{let t=JSON.parse(e.data);"number"==typeof t.size&&c(t.size)}catch{}h(null),x(null),s(e=>e+1)}),r.addEventListener("error",()=>a(!1)),r.onerror=()=>a(!1),()=>{r.close(),f.current=null}},[e]);let y=(0,g.HG)(e),v=`/api/files/${y}?type=read${o?`&v=${o}`:""}`;return(0,n.jsxs)(i.fj,{children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:e,trailing:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:m||"audio"}),null!=u&&(0,n.jsx)("span",{children:function(e){if(!Number.isFinite(e))return"";let t=Math.round(e),r=Math.floor(t/60);return`${r}:${String(t%60).padStart(2,"0")}`}(u)}),null!=d&&(0,n.jsx)("span",{children:(0,i.v7)(d)}),(0,n.jsx)(b,{filePath:e}),(0,n.jsx)(i.mK,{watching:r})]})}),(0,n.jsx)(i.Ph,{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:24,background:"var(--bg-panel)"},children:(0,n.jsxs)("div",{style:{width:"min(680px, 100%)"},children:[p&&(0,n.jsx)("div",{style:{color:"#f87171",fontSize:13,marginBottom:12,textAlign:"center"},children:p}),(0,n.jsx)("audio",{controls:!0,preload:"metadata",src:v,onLoadedMetadata:e=>h(e.currentTarget.duration),onError:()=>x("Failed to load audio"),style:{width:"100%"}},v)]})})]})}function _({filePath:e,cwd:t,onOpenFile:r,scrollToLine:l,workbenchSessionId:i,onAskAboutArtifact:a,onEditArtifact:o}){let s,d,c;return(0,g.WP)(e).toLowerCase().endsWith(".h5ad")?(0,n.jsx)(U,{filePath:e,cwd:t}):(0,g.WP)(e).toLowerCase().endsWith(".ipynb")?(0,n.jsx)(B,{filePath:e,cwd:t}):(s=(0,g.WP)(e).toLowerCase().split(".").pop()??"",I.has(s))?(0,n.jsx)(A,{filePath:e,cwd:t,workbenchSessionId:i,onAskAboutArtifact:a,onEditArtifact:o}):(d=(0,g.WP)(e).toLowerCase().split(".").pop()??"",G.has(d))?(0,n.jsx)(D,{filePath:e,cwd:t}):(c=(0,g.WP)(e).toLowerCase().split(".").pop()??"",O.has(c))?(0,n.jsx)(K,{filePath:e,cwd:t}):(0,n.jsx)(S,{filePath:e,cwd:t,onOpenFile:r,scrollToLine:l})}function U({filePath:e,cwd:t}){return(0,n.jsxs)(i.fj,{style:{background:"var(--bg)"},children:[(0,n.jsx)(i.K$,{pathLabel:(0,g.qP)(e,t),title:e,style:{padding:"9px 12px",fontSize:12,color:"var(--text-muted)"}}),(0,n.jsx)(i.nG,{children:"H5AD is a binary dataset. Use @explore from the file tree to open the interactive explorer."})]})}function K({filePath:e,cwd:t}){let r,[a,o]=(0,l.useState)(null),[s,d]=(0,l.useState)(!0),[c,u]=(0,l.useState)(null),h=(0,l.useRef)(null),p=(0,l.useRef)(0),x="pdf"===(r=(0,g.WP)(e).toLowerCase().split(".").pop()??"")?"pdf":"docx"===r||"doc"===r?"docx":"xlsx"===r||"xls"===r?"xlsx":"pptx"===r||"ppt"===r?"pptx":"other",f=(0,g.WP)(e).toLowerCase().split(".").pop()??"",m=(0,l.useCallback)(async e=>{try{let t=(0,g.HG)(e),r=p.current?`&v=${p.current}`:"",n=await fetch(`/api/files/${t}?type=read${r}`);if(!n.ok){let e=await n.json().catch(()=>({error:String(n.status)}));u(e.error??`HTTP ${n.status}`);return}let l=await n.arrayBuffer();o(l),u(null)}catch(e){u(String(e))}},[]);if((0,l.useEffect)(()=>{d(!0),u(null),o(null),p.current=0,h.current&&(h.current.close(),h.current=null),m(e).finally(()=>d(!1));let t=(0,g.HG)(e),r=new EventSource(`/api/files/${t}?type=watch`);return h.current=r,r.addEventListener("connected",()=>{}),r.addEventListener("change",()=>{p.current+=1,m(e)}),r.addEventListener("error",()=>{}),r.onerror=()=>{},()=>{r.close(),h.current=null}},[e,m]),s&&!a)return(0,n.jsx)(i.nG,{children:"Loading..."});if(c&&!a)return(0,n.jsx)(i.nG,{tone:"error",children:c});if(!a)return null;let y=(0,g.qP)(e,t),v=(0,n.jsx)(b,{filePath:e});return(0,n.jsxs)(i.fj,{children:["pdf"===x&&(0,n.jsx)($,{arrayBuffer:a,fileName:y,toolbarExtra:v}),"docx"===x&&(0,n.jsx)(E,{arrayBuffer:a,fileName:y,toolbarExtra:v}),"xlsx"===x&&(0,n.jsx)(R,{arrayBuffer:a,fileName:y,toolbarExtra:v}),"pptx"===x&&(0,n.jsx)(M,{arrayBuffer:a,fileName:y,toolbarExtra:v}),"other"===x&&(0,n.jsxs)(i.nG,{children:["Unsupported document format: .",f]})]})}},27568:(e,t,r)=>{r.d(t,{g:()=>f});var n=r(95155),l=r(12115),i=r(27071),a=r(89561),o=r(82228),s=r(46732),d=r(74059),c=r(4238),u=r(44542);let h={javascript:()=>Promise.all([r.e(2320),r.e(3307)]).then(r.bind(r,13307)).then(e=>e.javascript()),typescript:()=>Promise.all([r.e(2320),r.e(3307)]).then(r.bind(r,13307)).then(e=>e.javascript({typescript:!0})),python:()=>Promise.all([r.e(2320),r.e(3689)]).then(r.bind(r,53689)).then(e=>e.python()),sql:()=>Promise.all([r.e(2320),r.e(4097)]).then(r.bind(r,14097)).then(e=>e.sql()),json:()=>Promise.all([r.e(2320),r.e(5460)]).then(r.bind(r,25460)).then(e=>e.json()),html:()=>Promise.all([r.e(2320),r.e(3307),r.e(2774),r.e(144)]).then(r.bind(r,20144)).then(e=>e.html()),css:()=>Promise.all([r.e(2320),r.e(2774)]).then(r.bind(r,82774)).then(e=>e.css()),scss:()=>Promise.all([r.e(2320),r.e(2774)]).then(r.bind(r,82774)).then(e=>e.css()),less:()=>Promise.all([r.e(2320),r.e(2774)]).then(r.bind(r,82774)).then(e=>e.css()),markdown:()=>Promise.all([r.e(2320),r.e(3307),r.e(2774),r.e(144),r.e(2733)]).then(r.bind(r,62733)).then(e=>e.markdown()),xml:()=>Promise.all([r.e(2320),r.e(7482)]).then(r.bind(r,77482)).then(e=>e.xml()),yaml:()=>Promise.all([r.e(2320),r.e(7482)]).then(r.bind(r,77482)).then(e=>e.xml()),toml:()=>Promise.all([r.e(2320),r.e(7482)]).then(r.bind(r,77482)).then(e=>e.xml()),rust:()=>Promise.all([r.e(2320),r.e(5135)]).then(r.bind(r,55135)).then(e=>e.rust()),go:()=>Promise.all([r.e(2320),r.e(1209)]).then(r.bind(r,11209)).then(e=>e.go()),java:()=>Promise.all([r.e(2320),r.e(8198)]).then(r.bind(r,88198)).then(e=>e.java())},p=new Map;async function x(e){let t=h[e];if(!t)return null;let r=p.get(e);if(r)return r;let n=await t();return p.set(e,n),n}function f({initialContent:e,language:t,isDark:r,onChange:h,onSave:p,scrollToLine:g}){let m=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(h),v=(0,l.useRef)(p);return b.current=h,v.current=p,(0,l.useEffect)(()=>{let n=m.current;if(!n)return;let l=!1,h=y.current;return h&&(h.destroy(),y.current=null),(async()=>{let h=await x(t);if(l||!n)return;let p=v.current?a.w4.of([{key:"Mod-s",run:()=>(v.current?.(),!0),preventDefault:!0}]):[],f=i.$t.create({doc:e,extensions:[(0,a.$K)(),(0,a.dz)(),(0,o.b6)(),(0,s.y9)(s.Zt),a.w4.of([...o.pw,...o.cL,...u.OO,...c.Eo]),p,(0,u.yU)(),...r?[d.bM]:[],...h?[h]:[],a.Lz.updateListener.of(e=>{e.docChanged&&b.current?.(e.state.doc.toString())}),a.Lz.theme({"&":{height:"100%",fontSize:"13px"},".cm-scroller":{overflow:"auto",fontFamily:"var(--font-mono)"},".cm-content":{padding:"8px 0"},".cm-gutters":{borderRight:"1px solid var(--border)",background:"var(--bg)",color:"var(--text-dim)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{background:r?"#3a3d4e":"#b4d5fe"}})]});l||!n||(y.current&&y.current.destroy(),y.current=new a.Lz({state:f,parent:n}))})(),()=>{l=!0,y.current?.destroy(),y.current=null}},[t,r]),(0,l.useEffect)(()=>{let t=y.current;t&&t.state.doc.toString()!==e&&t.dispatch({changes:{from:0,to:t.state.doc.length,insert:e}})},[e]),(0,l.useEffect)(()=>{let e=y.current;if(!e||null==g||g<1)return;let t=e.state.doc.line(Math.min(g,e.state.doc.lines));e.dispatch({effects:a.Lz.scrollIntoView(t.from,{y:"center"})})},[g]),(0,n.jsx)("div",{ref:m,style:{height:"100%",overflow:"hidden"}})}},53308:(e,t,r)=>{r.d(t,{HF:()=>a,S7:()=>i,_t:()=>l});var n=r(95155);function l({title:e,children:t,style:r}){return(0,n.jsxs)("div",{"data-document-surface":"outline",style:{marginTop:24,...r},children:[e&&(0,n.jsx)("div",{"data-document-surface":"outline-title",style:{fontSize:12,color:"var(--text-dim)",marginBottom:8},children:e}),t]})}function i({children:e,minItemWidth:t=140,style:r}){return(0,n.jsx)("div",{"data-document-surface":"outline-grid",style:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${t}px, 1fr))`,gap:8,...r},children:e})}function a({title:e,summary:t,active:r=!1,onClick:l}){return(0,n.jsxs)("button",{"data-document-surface":"outline-item","data-document-active":r?"true":"false",onClick:l,style:{padding:"10px 12px",background:r?"var(--bg-selected)":"var(--bg)",border:r?"2px solid var(--accent)":"1px solid var(--border)",borderRadius:6,cursor:"pointer",textAlign:"left",fontSize:11,color:"var(--text-muted)",transition:"border-color 0.12s, background 0.12s"},onMouseEnter:e=>{r||(e.currentTarget.style.background="var(--bg-hover)")},onMouseLeave:e=>{r||(e.currentTarget.style.background="var(--bg)")},children:[(0,n.jsx)("div",{style:{fontWeight:600,marginBottom:2*!!t,color:"var(--text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),t&&(0,n.jsx)("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}},63161:(e,t,r)=>{r.d(t,{B:()=>a});var n=r(95155),l=r(76577);function i({fileName:e,pageInfo:t,onZoomIn:r,onZoomOut:a,zoom:o,extra:s}){let d=(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)("span",{children:t}),void 0!==o&&a&&r&&(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,n.jsx)(l.ml,{onClick:a,title:"Zoom out",style:{width:24,height:24,padding:0,lineHeight:1},children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",children:(0,n.jsx)("line",{x1:"2",y1:"5",x2:"8",y2:"5"})})}),(0,n.jsxs)("span",{style:{minWidth:36,textAlign:"center",fontVariantNumeric:"tabular-nums"},children:[Math.round(100*o),"%"]}),(0,n.jsx)(l.ml,{onClick:r,title:"Zoom in",style:{width:24,height:24,padding:0,lineHeight:1},children:(0,n.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",children:[(0,n.jsx)("line",{x1:"5",y1:"2",x2:"5",y2:"8"}),(0,n.jsx)("line",{x1:"2",y1:"5",x2:"8",y2:"5"})]})})]}),s]});return(0,n.jsx)(l.K$,{pathLabel:e??"document",title:e,trailing:d,style:{minHeight:32}})}function a({fileName:e,pageInfo:t,onZoomIn:r,onZoomOut:o,zoom:s,extra:d,bodyStyle:c,loading:u=!1,loadingLabel:h="Loading document...",error:p=null,children:x}){return(0,n.jsxs)(l.fj,{children:[(0,n.jsx)(i,{fileName:e,pageInfo:t,onZoomIn:r,onZoomOut:o,zoom:s,extra:d}),(0,n.jsx)(l.Ph,{style:c,children:u?(0,n.jsx)(l.nG,{children:h}):p?(0,n.jsx)(l.nG,{tone:"error",children:p}):x})]})}r(12115)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8013],{20394:(t,i,e)=>{e.d(i,{diagram:()=>ti});var s,a=e(21354),n=e(88774),h=e(32563),o=e(97096),r=e(32165),l=e(33948),c=function(){var t=(0,r.K2)(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],n=[1,6],h=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],l=[1,25],c=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],f=[1,33],m=[1,34],y=[1,35],b=[1,36],A=[1,37],w=[1,43],S=[1,42],C=[1,47],k=[1,50],_=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:(0,r.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:(0,r.K2)(function(t,i,e,s,a,n,h){var o=n.length-1;switch(a){case 5:s.setOrientation(n[o]);break;case 9:s.setDiagramTitle(n[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},n[o]);break;case 13:s.setLineData(n[o-1],n[o]);break;case 14:s.setBarData({text:"",type:"text"},n[o]);break;case 15:s.setBarData(n[o-1],n[o]);break;case 16:this.$=n[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=n[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=n[o-1];break;case 20:this.$=[Number(n[o-2]),...n[o]];break;case 21:this.$=[Number(n[o])];break;case 22:s.setXAxisTitle(n[o]);break;case 23:s.setXAxisTitle(n[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(n[o]);break;case 26:s.setXAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 28:this.$=[n[o-2],...n[o]];break;case 29:this.$=[n[o]];break;case 30:s.setYAxisTitle(n[o]);break;case 31:s.setYAxisTitle(n[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 37:case 38:this.$={text:n[o],type:"text"};break;case 39:this.$={text:n[o],type:"markdown"};break;case 40:this.$=n[o];break;case 41:this.$=n[o-1]+""+n[o]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:a,35:n,36:h}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:a,35:n,36:h}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:n,36:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,34]),t(o,[2,35]),t(o,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:a,35:n,36:h}),{1:[2,3]},t(o,[2,5]),t(i,[2,7],{4:22,34:a,35:n,36:h}),{11:23,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:39,13:38,24:w,27:S,29:40,30:41,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:45,15:44,27:C,33:46,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:49,17:48,24:k,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{11:52,17:51,24:k,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},{20:[1,53]},{22:[1,54]},t(_,[2,18]),{1:[2,2]},t(_,[2,8]),t(_,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(_,[2,10]),t(_,[2,22],{30:41,29:56,24:w,27:S}),t(_,[2,24]),t(_,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},t(_,[2,11]),t(_,[2,30],{33:60,27:C}),t(_,[2,32]),{31:[1,61]},t(_,[2,12]),{17:62,24:k},{25:63,27:D},t(_,[2,14]),{17:65,24:k},t(_,[2,16]),t(_,[2,17]),t(R,[2,41]),t(_,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(_,[2,31]),{27:[1,69]},t(_,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(_,[2,15]),t(_,[2,26]),t(_,[2,27]),{11:59,32:72,37:24,38:l,39:c,40:27,41:g,42:u,43:x,44:d,45:p,46:f,47:m,48:y,49:b,50:A},t(_,[2,33]),t(_,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:(0,r.K2)(function(t,i){if(i.recoverable)this.trace(t);else{var e=Error(t);throw e.hash=i,e}},"parseError"),parse:(0,r.K2)(function(t){var i=this,e=[0],s=[],a=[null],n=[],h=this.table,o="",l=0,c=0,g=0,u=n.slice.call(arguments,1),x=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);x.setInput(t,d),d.lexer=x,d.parser=this,void 0===x.yylloc&&(x.yylloc={});var f=x.yylloc;n.push(f);var m=x.options&&x.options.ranges;function y(){var t;return"number"!=typeof(t=s.pop()||x.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K2)(function(t){e.length=e.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),(0,r.K2)(y,"lex");for(var b,A,w,S,C,k,_,T,R,D={};;){if(w=e[e.length-1],this.defaultActions[w]?S=this.defaultActions[w]:(null==b&&(b=y()),S=h[w]&&h[w][b]),void 0===S||!S.length||!S[0]){var L="";for(k in R=[],h[w])this.terminals_[k]&&k>2&&R.push("'"+this.terminals_[k]+"'");L=x.showPosition?"Parse error on line "+(l+1)+":\n"+x.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(L,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:f,expected:R})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(S[0]){case 1:e.push(b),a.push(x.yytext),n.push(x.yylloc),e.push(S[1]),b=null,A?(b=A,A=null):(c=x.yyleng,o=x.yytext,l=x.yylineno,f=x.yylloc,g>0&&g--);break;case 2:if(_=this.productions_[S[1]][1],D.$=a[a.length-_],D._$={first_line:n[n.length-(_||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(_||1)].first_column,last_column:n[n.length-1].last_column},m&&(D._$.range=[n[n.length-(_||1)].range[0],n[n.length-1].range[1]]),void 0!==(C=this.performAction.apply(D,[o,c,l,d,S[1],a,n].concat(u))))return C;_&&(e=e.slice(0,-1*_*2),a=a.slice(0,-1*_),n=n.slice(0,-1*_)),e.push(this.productions_[S[1]][0]),a.push(D.$),n.push(D._$),T=h[e[e.length-2]][e[e.length-1]],e.push(T);break;case 3:return!0}}return!0},"parse")};function P(){this.yy={}}return L.lexer={EOF:1,parseError:(0,r.K2)(function(t,i){if(this.yy.parser)this.yy.parser.parseError(t,i);else throw Error(t)},"parseError"),setInput:(0,r.K2)(function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K2)(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,r.K2)(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K2)(function(){return this._more=!0,this},"more"),reject:(0,r.K2)(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,r.K2)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K2)(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,r.K2)(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,r.K2)(function(){var t=this.pastInput(),i=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:(0,r.K2)(function(t,i){var e,s,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:(0,r.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,i,e,s,a=this._currentRules(),n=0;n<a.length;n++)if((e=this._input.match(this.rules[a[n]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,a[n])))return t;if(!this._backtrack)return!1;i=!1;continue}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K2)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K2)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K2)(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,r.K2)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K2)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K2)(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}},(0,r.K2)(P,"Parser"),P.prototype=L,L.Parser=P,new P}();function g(t){return"bar"===t.type}function u(t){return"band"===t.type}function x(t){return"linear"===t.type}c.parser=c,(0,r.K2)(g,"isBarPlot"),(0,r.K2)(u,"isBandAxisData"),(0,r.K2)(x,"isLinearAxisData");var d=class{constructor(t){this.parentGroup=t}static{(0,r.K2)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};let e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let a of t){let t=(0,n.W6)(s,1,a),h=t?t.width:a.length*i,o=t?t.height:i;e.width=Math.max(e.width,h),e.height=Math.max(e.height,o)}return s.remove(),e}},p=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}static{(0,r.K2)(this,"BaseAxis")}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);let a=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);let a=e.width+2*this.axisConfig.labelPadding;a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},f=class extends p{static{(0,r.K2)(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.categories=e,this.scale=(0,l.WH)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,l.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),r.Rm.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},m=class extends p{static{(0,r.K2)(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.domain=e,this.scale=(0,l.m4Y)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,l.m4Y)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function y(t,i,e,s){let a=new d(s);return u(t)?new f(i,e,t.categories,t.title,a):new m(i,e,[t.min,t.max],t.title,a)}(0,r.K2)(y,"getAxis");var b=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{(0,r.K2)(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function A(t,i,e,s){return new b(new d(s),t,i,e)}(0,r.K2)(A,"getChartTitleComponent");var w=class{constructor(t,i,e,s,a){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=a}static{(0,r.K2)(this,"LinePlot")}getDrawableElement(){let t,i=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);return(t="horizontal"===this.orientation?(0,l.n8j)().y(t=>t[0]).x(t=>t[1])(i):(0,l.n8j)().x(t=>t[0]).y(t=>t[1])(i))?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},S=class{constructor(t,i,e,s,a,n){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=a,this.plotIndex=n}static{(0,r.K2)(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},C=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,r.K2)(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{let s=new w(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{let s=new S(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}};function k(t,i,e){return new C(t,i,e)}(0,r.K2)(k,"getPlotComponent");var _=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:A(t,i,e,s),plot:k(t,i,e),xAxis:y(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:y(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,r.K2)(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),n=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:a,height:n});t-=h.width,i-=h.height,s=(h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),e=(h=this.componentStore.yAxis.calculateSpace({width:t,height:i})).width,(t-=h.width)>0&&(a+=t,t=0),i>0&&(n+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:n}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+a]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+n}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>g(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:n,height:h});t-=o.width,i-=o.height,e=(o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=o.height,this.componentStore.xAxis.setAxisPosition("left"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=o.width,s=o.width,this.componentStore.yAxis.setAxisPosition("top"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=o.height,a=e+o.height,t>0&&(n+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.yAxis.setRange([s,s+n]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([a,a+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(t=>g(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];for(let i of(this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis),Object.values(this.componentStore)))t.push(...i.getDrawableElements());return t}},T=class{static{(0,r.K2)(this,"XYChartBuilder")}static build(t,i,e,s){return new _(t,i,e,s).getDrawableElement()}},R=0,D=$(),L=I(),P=M(),E=L.plotColorPalette.split(",").map(t=>t.trim()),K=!1,v=!1;function I(){let t=(0,o.P$)(),i=(0,o.zj)();return(0,h.$t)(t.xyChart,i.themeVariables.xyChart)}function $(){let t=(0,o.zj)();return(0,h.$t)(o.UI.xyChart,t.xyChart)}function M(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function z(t){let i=(0,o.zj)();return(0,o.jZ)(t.trim(),i)}function B(t){s=t}function W(t){"horizontal"===t?D.chartOrientation="horizontal":D.chartOrientation="vertical"}function O(t){P.xAxis.title=z(t.text)}function F(t,i){P.xAxis={type:"linear",title:P.xAxis.title,min:t,max:i},K=!0}function N(t){P.xAxis={type:"band",title:P.xAxis.title,categories:t.map(t=>z(t.text))},K=!0}function V(t){P.yAxis.title=z(t.text)}function X(t,i){P.yAxis={type:"linear",title:P.yAxis.title,min:t,max:i},v=!0}function Y(t){let i=Math.min(...t),e=Math.max(...t),s=x(P.yAxis)?P.yAxis.min:1/0,a=x(P.yAxis)?P.yAxis.max:-1/0;P.yAxis={type:"linear",title:P.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}function H(t){let i=[];if(0===t.length)return i;if(K||F(Math.min(x(P.xAxis)?P.xAxis.min:1/0,1),Math.max(x(P.xAxis)?P.xAxis.max:-1/0,t.length)),v||Y(t),u(P.xAxis)&&(i=P.xAxis.categories.map((i,e)=>[i,t[e]])),x(P.xAxis)){let e=P.xAxis.min,s=P.xAxis.max,a=(s-e)/(t.length-1),n=[];for(let t=e;t<=s;t+=a)n.push(`${t}`);i=n.map((i,e)=>[i,t[e]])}return i}function U(t){return E[0===t?0:t%E.length]}function j(t,i){let e=H(i);P.plots.push({type:"line",strokeFill:U(R),strokeWidth:2,data:e}),R++}function G(t,i){let e=H(i);P.plots.push({type:"bar",fill:U(R),data:e}),R++}function Q(){if(0===P.plots.length)throw Error("No Plot to render, please provide a plot with some data");return P.title=(0,o.ab)(),T.build(D,P,L,s)}function Z(){return L}function q(){return D}function J(){return P}(0,r.K2)(I,"getChartDefaultThemeConfig"),(0,r.K2)($,"getChartDefaultConfig"),(0,r.K2)(M,"getChartDefaultData"),(0,r.K2)(z,"textSanitizer"),(0,r.K2)(B,"setTmpSVGG"),(0,r.K2)(W,"setOrientation"),(0,r.K2)(O,"setXAxisTitle"),(0,r.K2)(F,"setXAxisRangeData"),(0,r.K2)(N,"setXAxisBand"),(0,r.K2)(V,"setYAxisTitle"),(0,r.K2)(X,"setYAxisRangeData"),(0,r.K2)(Y,"setYAxisRangeFromPlotData"),(0,r.K2)(H,"transformDataWithoutCategory"),(0,r.K2)(U,"getPlotColorFromPalette"),(0,r.K2)(j,"setLineData"),(0,r.K2)(G,"setBarData"),(0,r.K2)(Q,"getDrawableElem"),(0,r.K2)(Z,"getChartThemeConfig"),(0,r.K2)(q,"getChartConfig"),(0,r.K2)(J,"getXYChartData");var tt={getDrawableElem:Q,clear:(0,r.K2)(function(){(0,o.IU)(),R=0,D=$(),P=M(),E=(L=I()).plotColorPalette.split(",").map(t=>t.trim()),K=!1,v=!1},"clear"),setAccTitle:o.SV,getAccTitle:o.iN,setDiagramTitle:o.ke,getDiagramTitle:o.ab,getAccDescription:o.m7,setAccDescription:o.EI,setOrientation:W,setXAxisTitle:O,setXAxisRangeData:F,setXAxisBand:N,setYAxisTitle:V,setYAxisRangeData:X,setLineData:j,setBarData:G,setTmpSVGG:B,getChartThemeConfig:Z,getChartConfig:q,getXYChartData:J},ti={parser:c,db:tt,renderer:{draw:(0,r.K2)((t,i,e,s)=>{let n=s.db,h=n.getChartThemeConfig(),l=n.getChartConfig(),c=n.getXYChartData().plots[0].data.map(t=>t[1]);function g(t){return"top"===t?"text-before-edge":"middle"}function u(t){return"left"===t?"start":"right"===t?"end":"middle"}function x(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,r.K2)(g,"getDominantBaseLine"),(0,r.K2)(u,"getTextAnchor"),(0,r.K2)(x,"getTextTransformation"),r.Rm.debug("Rendering xychart chart\n"+t);let d=(0,a.D)(i),p=d.append("g").attr("class","main"),f=p.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");(0,o.a$)(d,l.height,l.width,!0),d.attr("viewBox",`0 0 ${l.width} ${l.height}`),f.attr("fill",h.backgroundColor),n.setTmpSVGG(d.append("g").attr("class","mermaid-tmp-group"));let m=n.getDrawableElem(),y={};function b(t){let i=p,e="";for(let[s]of t.entries()){let a=p;s>0&&y[e]&&(a=y[e]),e+=t[s],(i=y[e])||(i=y[e]=a.append("g").attr("class",t[s]))}return i}for(let t of((0,r.K2)(b,"getGroup"),m)){if(0===t.data.length)continue;let i=b(t.groupTexts);switch(t.type){case"rect":if(i.selectAll("rect").data(t.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),l.showDataLabel){let e=l.showDataLabelOutsideBar;if("horizontal"===l.chartOrientation){let s=function(t,i){let{data:e,label:s}=t;return i*s.length*a<=e.width-n};(0,r.K2)(s,"fitsHorizontally");let a=.7,n=10,o=t.data.map((t,i)=>({data:t,label:c[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),l=Math.floor(Math.min(...o.map(t=>{let{data:i}=t,e=.7*i.height;for(;!s(t,e)&&e>0;)e-=1;return e}))),g=(0,r.K2)(t=>e?t.data.x+t.data.width+n:t.data.x+t.data.width-n,"determineLabelXPosition");i.selectAll("text").data(o).enter().append("text").attr("x",g).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor",e?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${l}px`).text(t=>t.label)}else{let s=function(t,i,e){let{data:s,label:a}=t,n=i*a.length*.7,h=s.x+s.width/2,o=h-n/2,r=h+n/2,l=o>=s.x&&r<=s.x+s.width,c=s.y+e+i<=s.y+s.height;return l&&c};(0,r.K2)(s,"fitsInBar");let a=t.data.map((t,i)=>({data:t,label:c[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=Math.floor(Math.min(...a.map(t=>{let{data:i,label:e}=t,a=i.width/(.7*e.length);for(;!s(t,a,10)&&a>0;)a-=1;return a}))),o=(0,r.K2)(t=>e?t.data.y-10:t.data.y+10,"determineLabelYPosition");i.selectAll("text").data(a).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",o).attr("text-anchor","middle").attr("dominant-baseline",e?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${n}px`).text(t=>t.label)}}break;case"text":i.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>g(t.verticalPos)).attr("text-anchor",t=>u(t.horizontalPos)).attr("transform",t=>x(t)).text(t=>t.text);break;case"path":i.selectAll("path").data(t.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw")}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21,64,186,222,394,552,976,1004,1097,1327,1541,1921,1938,2007,2234,2314,2469,2752,2922,2929,2976,3098,3230,3374,3502,3679,3785,3851,3955,4037,4055,4368,4494,4721,4813,4896,5177,5218,5221,5907,5987,6202,6442,6450,6700,6709,6710,6780,6819,6849,6919,6988,7070,7253,7473,7483,7505,7758,7778,7812,7851,8167,8197,8658,8743,8933,9043,9240,9626,9787,9815,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);