thursday-agent 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +5 -2
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +5 -5
  5. package/.next/routes-manifest.json +24 -6
  6. package/.next/server/app/_global-error/page.js +2 -2
  7. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +2 -2
  11. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page.js +2 -2
  15. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/_not-found.html +1 -1
  18. package/.next/server/app/_not-found.rsc +14 -14
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +12 -12
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/.next/server/app/api/artifact/route.js +3 -3
  23. package/.next/server/app/api/artifact/route.js.nft.json +1 -1
  24. package/.next/server/app/api/bot/memory/files/route/app-paths-manifest.json +3 -0
  25. package/.next/server/app/api/bot/memory/files/route.js +10 -0
  26. package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -0
  27. package/.next/server/app/api/bot/memory/files/route_client-reference-manifest.js +3 -0
  28. package/.next/server/app/api/bot/memory/route/app-paths-manifest.json +3 -0
  29. package/.next/server/app/api/bot/memory/route.js +14 -0
  30. package/.next/server/app/api/bot/{notes → memory}/route.js.nft.json +1 -1
  31. package/.next/server/app/api/bot/memory/route_client-reference-manifest.js +3 -0
  32. package/.next/server/app/api/bot/route.js +6 -6
  33. package/.next/server/app/api/bot/route.js.nft.json +1 -1
  34. package/.next/server/app/api/bot/task/[id]/route.js +8 -8
  35. package/.next/server/app/api/bot/task/[id]/route.js.nft.json +1 -1
  36. package/.next/server/app/api/bot/task/route.js +8 -8
  37. package/.next/server/app/api/bot/task/route.js.nft.json +1 -1
  38. package/.next/server/app/api/config/route.js +5 -5
  39. package/.next/server/app/api/config/route.js.nft.json +1 -1
  40. package/.next/server/app/api/events/route.js +4 -5
  41. package/.next/server/app/api/events/route.js.nft.json +1 -1
  42. package/.next/server/app/api/file/[...path]/route.js +3 -3
  43. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  44. package/.next/server/app/api/llm-model/catalog/route.js +9 -8
  45. package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
  46. package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +3 -0
  47. package/.next/server/app/api/llm-model/credits/route/build-manifest.json +12 -0
  48. package/.next/server/app/api/llm-model/credits/route/server-reference-manifest.json +4 -0
  49. package/.next/server/app/api/llm-model/credits/route.js +16 -0
  50. package/.next/server/app/api/llm-model/credits/route.js.map +5 -0
  51. package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -0
  52. package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +3 -0
  53. package/.next/server/app/api/llm-model/route.js +10 -8
  54. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  55. package/.next/server/app/api/llm-model/subscription/route/app-paths-manifest.json +3 -0
  56. package/.next/server/app/api/llm-model/subscription/route/build-manifest.json +12 -0
  57. package/.next/server/app/api/llm-model/subscription/route/server-reference-manifest.json +4 -0
  58. package/.next/server/app/api/llm-model/subscription/route.js +15 -0
  59. package/.next/server/app/api/llm-model/subscription/route.js.map +5 -0
  60. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -0
  61. package/.next/server/app/api/llm-model/subscription/route_client-reference-manifest.js +3 -0
  62. package/.next/server/app/api/mcp/[name]/route.js +4 -4
  63. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  64. package/.next/server/app/api/mcp/oauth/callback/route.js +5 -5
  65. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  66. package/.next/server/app/api/mcp/route.js +4 -4
  67. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  68. package/.next/server/app/api/mcp/tools/route.js +4 -4
  69. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  70. package/.next/server/app/api/memory/edit/route/app-paths-manifest.json +3 -0
  71. package/.next/server/app/api/memory/edit/route/build-manifest.json +12 -0
  72. package/.next/server/app/api/memory/edit/route/server-reference-manifest.json +4 -0
  73. package/.next/server/app/api/memory/edit/route.js +24 -0
  74. package/.next/server/app/api/memory/edit/route.js.map +5 -0
  75. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -0
  76. package/.next/server/app/api/memory/{tidy → edit}/route_client-reference-manifest.js +1 -1
  77. package/.next/server/app/api/memory/route.js +6 -7
  78. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  79. package/.next/server/app/api/skills/[source]/[name]/route.js +3 -3
  80. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  81. package/.next/server/app/api/skills/route.js +3 -3
  82. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  83. package/.next/server/app/api/thursday/call/route.js +9 -7
  84. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  85. package/.next/server/app/api/thursday/skills/route.js +9 -7
  86. package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
  87. package/.next/server/app/api/thursday/tool-call/route.js +17 -15
  88. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  89. package/.next/server/app/api/workspace/route.js +4 -5
  90. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  91. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
  92. package/.next/server/app/artifact/[...path]/page.js +5 -6
  93. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  94. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/favicon.ico/route.js +3 -4
  96. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  97. package/.next/server/app/favicon.ico.body +0 -0
  98. package/.next/server/app/page/server-reference-manifest.json +57 -90
  99. package/.next/server/app/page.js +10 -10
  100. package/.next/server/app/page.js.nft.json +1 -1
  101. package/.next/server/app/page_client-reference-manifest.js +1 -1
  102. package/.next/server/app-paths-manifest.json +5 -2
  103. package/.next/server/chunks/[externals]__0dzuk6_._.js +3 -0
  104. package/.next/server/chunks/[root-of-the-server]__01dkp4a._.js +3 -0
  105. package/.next/server/chunks/[root-of-the-server]__02va5wz._.js +1 -1
  106. package/.next/server/chunks/[root-of-the-server]__02xjoto._.js +3 -0
  107. package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +8 -0
  108. package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +3 -0
  109. package/.next/server/chunks/[root-of-the-server]__0ce8nf8._.js +5 -0
  110. package/.next/server/chunks/[root-of-the-server]__0ffbg85._.js +3 -0
  111. package/.next/server/chunks/[root-of-the-server]__0j7z0r3._.js +12 -0
  112. package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +8 -0
  113. package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +8 -0
  114. package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +3 -0
  115. package/.next/server/chunks/[root-of-the-server]__0pa2n68._.js +3 -0
  116. package/.next/server/chunks/[root-of-the-server]__0q0vvt2._.js +5 -0
  117. package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +5 -0
  118. package/.next/server/chunks/[root-of-the-server]__11n256_._.js +5 -0
  119. package/.next/server/chunks/[root-of-the-server]__12cabg9._.js +3 -0
  120. package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +8 -0
  121. package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +5 -0
  122. package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +8 -0
  123. package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +5 -0
  124. package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +3 -0
  125. package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +5 -5
  126. package/.next/server/chunks/[root-of-the-server]__1fizn31._.js +3 -0
  127. package/.next/server/chunks/[root-of-the-server]__1llj3-b._.js +3 -0
  128. package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +11 -0
  129. package/.next/server/chunks/[root-of-the-server]__1p8m3f4._.js +3 -0
  130. package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +8 -0
  131. package/.next/server/chunks/_0-73of8._.js +5 -5
  132. package/.next/server/chunks/_0-fjql4._.js +26 -0
  133. package/.next/server/chunks/_00xh_q0._.js +27 -0
  134. package/.next/server/chunks/{_0pppbb5._.js → _03kp0jp._.js} +163 -36
  135. package/.next/server/chunks/_051qh8u._.js +3 -0
  136. package/.next/server/chunks/{node_modules_next_04q-o58._.js → _05dla15._.js} +2 -2
  137. package/.next/server/chunks/_05h2cii._.js +1 -1
  138. package/.next/server/chunks/_0c9j6rb._.js +49 -0
  139. package/.next/server/chunks/_0fzqt2y._.js +130 -0
  140. package/.next/server/chunks/{_0vnutv9._.js → _0ioz3nd._.js} +1 -1
  141. package/.next/server/chunks/_0iwfby5._.js +3 -0
  142. package/.next/server/chunks/_0mecv0f._.js +26 -0
  143. package/.next/server/chunks/_0mh8j4m._.js +3 -0
  144. package/.next/server/chunks/_0n74zsf._.js +4 -4
  145. package/.next/server/chunks/_0obojvv._.js +3 -0
  146. package/.next/server/chunks/_0recufk._.js +49 -0
  147. package/.next/server/chunks/_0rnf-6n._.js +4 -4
  148. package/.next/server/chunks/_0sb7tlz._.js +3 -0
  149. package/.next/server/chunks/_0u10wmw._.js +5 -5
  150. package/.next/server/chunks/_0u4aiy2._.js +3 -0
  151. package/.next/server/chunks/_0wp4le3._.js +1 -1
  152. package/.next/server/chunks/_0y5fg-x._.js +1 -1
  153. package/.next/server/chunks/_1230wbx._.js +10 -0
  154. package/.next/server/chunks/_12nheja._.js +3 -0
  155. package/.next/server/chunks/_13510xh._.js +3 -0
  156. package/.next/server/chunks/_15hq89o._.js +1 -1
  157. package/.next/server/chunks/_17l5ygt._.js +49 -0
  158. package/.next/server/chunks/_18-1wcc._.js +5 -5
  159. package/.next/server/chunks/_1_5mnq4._.js +4 -4
  160. package/.next/server/chunks/_1_9mjx-._.js +3 -0
  161. package/.next/server/chunks/_1d0j961._.js +6 -0
  162. package/.next/server/chunks/_1d5zmy8._.js +1 -1
  163. package/.next/server/chunks/_1drgfx4._.js +4 -4
  164. package/.next/server/chunks/_1f46eie._.js +3 -0
  165. package/.next/server/chunks/_1h5_8sk._.js +3 -0
  166. package/.next/server/chunks/_1hdnxb7._.js +3 -0
  167. package/.next/server/chunks/_1j8k_j5._.js +3 -0
  168. package/.next/server/chunks/_1krd9rf._.js +3 -0
  169. package/.next/server/chunks/_1nc0eui._.js +11 -0
  170. package/.next/server/chunks/_1nula3v._.js +3 -0
  171. package/.next/server/chunks/_1pf4qe-._.js +3 -0
  172. package/.next/server/chunks/_1php4eq._.js +1 -1
  173. package/.next/server/chunks/_1qxheoa._.js +3 -0
  174. package/.next/server/chunks/_1x6kd1r._.js +3 -0
  175. package/.next/server/chunks/_1yuv4vp._.js +1 -1
  176. package/.next/server/chunks/_1zjrdag._.js +3 -0
  177. package/.next/server/chunks/_next-internal_server_app_api_bot_memory_files_route_actions_1_xd_8f.js +3 -0
  178. package/.next/server/chunks/_next-internal_server_app_api_bot_memory_route_actions_1a8xfr7.js +3 -0
  179. package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +3 -0
  180. package/.next/server/chunks/_next-internal_server_app_api_llm-model_subscription_route_actions_0-udcm5.js +3 -0
  181. package/.next/server/chunks/_next-internal_server_app_api_memory_edit_route_actions_02sfnmr.js +3 -0
  182. package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
  183. package/.next/server/chunks/features_0rpfxbk._.js +3 -0
  184. package/.next/server/chunks/features_1qf3cei._.js +3 -0
  185. package/.next/server/chunks/features_bot_0zt92oh._.js +3 -0
  186. package/.next/server/chunks/features_bot_bot_query_ts_12mgkl2._.js +3 -0
  187. package/.next/server/chunks/features_memory_1uqvksn._.js +6 -0
  188. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0a1rd09._.js → node_modules_consola_dist_chunks_prompt_mjs_0i7cvml._.js} +1 -1
  189. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_06067w6._.js → node_modules_consola_dist_chunks_prompt_mjs_0icqaqw._.js} +1 -1
  190. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_096ais_._.js → node_modules_consola_dist_chunks_prompt_mjs_0r28-sm._.js} +1 -1
  191. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_02s3hjt._.js → node_modules_consola_dist_chunks_prompt_mjs_0v_7drq._.js} +1 -1
  192. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js +3 -0
  193. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0tvkfgh._.js → node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js} +1 -1
  194. package/.next/server/chunks/ssr/[root-of-the-server]__09q9med._.js +1 -1
  195. package/.next/server/chunks/ssr/{[root-of-the-server]__1qfqvmg._.js → [root-of-the-server]__0_69wqr._.js} +2 -2
  196. package/.next/server/chunks/ssr/[root-of-the-server]__0hg5gib._.js +1 -1
  197. package/.next/server/chunks/ssr/[root-of-the-server]__0i8ie7f._.js +3 -0
  198. package/.next/server/chunks/ssr/{[root-of-the-server]__0jsmmb-._.js → [root-of-the-server]__0mz33a7._.js} +1 -1
  199. package/.next/server/chunks/ssr/[root-of-the-server]__0tbkdlx._.js +3 -0
  200. package/.next/server/chunks/ssr/[root-of-the-server]__0vnmv-s._.js +3 -0
  201. package/.next/server/chunks/ssr/{[root-of-the-server]__0f6s48x._.js → [root-of-the-server]__0xpcv9w._.js} +3 -3
  202. package/.next/server/chunks/ssr/[root-of-the-server]__0xtssj3._.js +1 -1
  203. package/.next/server/chunks/ssr/[root-of-the-server]__0zkv7z_._.js +3 -0
  204. package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +57 -0
  205. package/.next/server/chunks/ssr/[root-of-the-server]__15_uhip._.js +3 -0
  206. package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
  207. package/.next/server/chunks/ssr/{[root-of-the-server]__0m1b5ky._.js → [root-of-the-server]__1cyjywu._.js} +1 -1
  208. package/.next/server/chunks/ssr/[root-of-the-server]__1eh7hid._.js +3 -0
  209. package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +43 -0
  210. package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +1 -1
  211. package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +4 -0
  212. package/.next/server/chunks/ssr/[root-of-the-server]__1pduf5n._.js +3 -0
  213. package/.next/server/chunks/ssr/{_1mznrxk._.js → _001_ms1._.js} +3 -3
  214. package/.next/server/chunks/ssr/_01_6m32._.js +3 -0
  215. package/.next/server/chunks/ssr/_01n3o0m._.js +3 -0
  216. package/.next/server/chunks/ssr/_07uchnc._.js +3 -0
  217. package/.next/server/chunks/ssr/_0ap2fzn._.js +3 -0
  218. package/.next/server/chunks/ssr/_0c-ql2m._.js +3 -0
  219. package/.next/server/chunks/ssr/_0h42fze._.js +3 -0
  220. package/.next/server/chunks/ssr/_0h7zdni._.js +1 -1
  221. package/.next/server/chunks/ssr/_0i_6q1w._.js +41 -0
  222. package/.next/server/chunks/ssr/_0kbkmar._.js +3 -0
  223. package/.next/server/chunks/ssr/{_077-g6s._.js → _0mb8zc8._.js} +3 -3
  224. package/.next/server/chunks/ssr/_0mo2w06._.js +3 -0
  225. package/.next/server/chunks/ssr/{_13punpm._.js → _0q0zan6._.js} +2 -2
  226. package/.next/server/chunks/ssr/{_040sk32._.js → _0u2jv_x._.js} +76 -82
  227. package/.next/server/chunks/ssr/_0y0tiht._.js +4 -0
  228. package/.next/server/chunks/ssr/_0zhoc3r._.js +3 -0
  229. package/.next/server/chunks/ssr/_1-teee5._.js +3 -3
  230. package/.next/server/chunks/ssr/_13fke0x._.js +3 -0
  231. package/.next/server/chunks/ssr/{_1lip4th._.js → _13z3f85._.js} +2 -2
  232. package/.next/server/chunks/ssr/_14_lw10._.js +3 -0
  233. package/.next/server/chunks/ssr/_15j2_8f._.js +3 -0
  234. package/.next/server/chunks/ssr/{_09ja_w1._.js → _1eoqg_g._.js} +2 -2
  235. package/.next/server/chunks/ssr/_1sji22n._.js +3 -0
  236. package/.next/server/chunks/ssr/_1spzm8z._.js +3 -0
  237. package/.next/server/chunks/ssr/{_0x_nu5e._.js → _1vi_uo7._.js} +2 -2
  238. package/.next/server/chunks/ssr/_1vyd1ji._.js +1 -1
  239. package/.next/server/chunks/ssr/{_1m3bsfr._.js → _1xvgn77._.js} +2 -2
  240. package/.next/server/chunks/ssr/_20kd_n0._.js +42 -0
  241. package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +3 -0
  242. package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
  243. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
  244. package/.next/server/chunks/ssr/lib_date-like_ts_02is0pw._.js +3 -0
  245. package/.next/server/chunks/ssr/{node_modules_18_dk7_._.js → node_modules_063xwpp._.js} +1 -1
  246. package/.next/server/chunks/ssr/{node_modules_01qnv-a._.js → node_modules_0bvraul._.js} +1 -1
  247. package/.next/server/chunks/ssr/{node_modules_0n1kj4p._.js → node_modules_0eu1va6._.js} +1 -1
  248. package/.next/server/chunks/ssr/{node_modules_0kl7-tn._.js → node_modules_0h50b8n._.js} +1 -1
  249. package/.next/server/chunks/ssr/{node_modules_0_n241r._.js → node_modules_0h5hnr1._.js} +1 -1
  250. package/.next/server/chunks/ssr/{node_modules_0lrjk5t._.js → node_modules_0h7u60n._.js} +1 -1
  251. package/.next/server/chunks/ssr/{node_modules_0ndvxub._.js → node_modules_0lm7_vm._.js} +1 -1
  252. package/.next/server/chunks/ssr/{node_modules_13r44jq._.js → node_modules_0mwym0g._.js} +1 -1
  253. package/.next/server/chunks/ssr/{node_modules_17lrt3y._.js → node_modules_0rjg6t1._.js} +1 -1
  254. package/.next/server/chunks/ssr/node_modules_0x3-ply._.js +3 -0
  255. package/.next/server/chunks/ssr/{node_modules_004qlr4._.js → node_modules_0y_cded._.js} +1 -1
  256. package/.next/server/chunks/ssr/{node_modules_0kxz4gt._.js → node_modules_0z5tsu8._.js} +1 -1
  257. package/.next/server/chunks/ssr/{node_modules_0iz1rzd._.js → node_modules_0zp9r92._.js} +1 -1
  258. package/.next/server/chunks/ssr/{node_modules_19dp7ko._.js → node_modules_1-hc6uv._.js} +1 -1
  259. package/.next/server/chunks/ssr/{node_modules_1q0p85z._.js → node_modules_113tz0l._.js} +1 -1
  260. package/.next/server/chunks/ssr/{node_modules_1toafc-._.js → node_modules_124bue5._.js} +1 -1
  261. package/.next/server/chunks/ssr/node_modules_17bwo43._.js +55 -0
  262. package/.next/server/chunks/ssr/{node_modules_08d8bke._.js → node_modules_1_n3ztw._.js} +1 -1
  263. package/.next/server/chunks/ssr/{node_modules_1dwguw_._.js → node_modules_1bc7gu8._.js} +1 -1
  264. package/.next/server/chunks/ssr/{node_modules_20yebtj._.js → node_modules_1bgb6-f._.js} +1 -1
  265. package/.next/server/chunks/ssr/{node_modules_1n5ygqe._.js → node_modules_1h4a4pp._.js} +1 -1
  266. package/.next/server/chunks/ssr/{node_modules_04n7mjs._.js → node_modules_1i7u1ia._.js} +1 -1
  267. package/.next/server/chunks/ssr/{node_modules_1hn8z1f._.js → node_modules_1juq3hs._.js} +1 -1
  268. package/.next/server/chunks/ssr/{node_modules_1xyd7ov._.js → node_modules_1l0qtdu._.js} +1 -1
  269. package/.next/server/chunks/ssr/{node_modules_0m93zeg._.js → node_modules_1t9cyee._.js} +1 -1
  270. package/.next/server/chunks/ssr/{node_modules_09xhur7._.js → node_modules_1uuj9x1._.js} +1 -1
  271. package/.next/server/chunks/ssr/{node_modules_1hd-5tv._.js → node_modules_1vqb6po._.js} +1 -1
  272. package/.next/server/chunks/ssr/{node_modules_1zu988w._.js → node_modules_1xx28h1._.js} +1 -1
  273. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0m9a4y0._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d3skpl._.js} +1 -1
  274. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_13w_wy9._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0i44kk5._.js} +1 -1
  275. package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_0qe30a_._.js +3 -0
  276. package/.next/server/chunks/ssr/{node_modules_next_dist_0w6mzq5._.js → node_modules_next_dist_0drixxt._.js} +4 -4
  277. package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js +2 -2
  278. package/.next/server/instrumentation.js +1 -1
  279. package/.next/server/middleware-build-manifest.js +3 -3
  280. package/.next/server/pages/404.html +1 -1
  281. package/.next/server/pages/500.html +1 -1
  282. package/.next/server/server-reference-manifest.js +1 -1
  283. package/.next/server/server-reference-manifest.json +58 -91
  284. package/.next/static/chunks/{31ttnjt6g35a0.js → 0ev4hyghq0mbb.js} +1 -1
  285. package/.next/static/chunks/0r5qcctujhxli.js +1 -0
  286. package/.next/static/chunks/0tmgrnlje14-s.js +3 -0
  287. package/.next/static/chunks/0x79tx04dxbpp.js +1 -0
  288. package/.next/static/chunks/0xzgvc0fkdb6t.js +1 -0
  289. package/.next/static/chunks/10teww7wt-f6h.js +1 -0
  290. package/.next/static/chunks/14hgtsjg-kael.css +1 -0
  291. package/.next/static/chunks/17donp69y4do7.js +40 -0
  292. package/.next/static/chunks/{3_h9txt3tq8t8.js → 1dkjg87pxk0n9.js} +1 -1
  293. package/.next/static/chunks/1ekc7ul556kbl.js +1 -0
  294. package/.next/static/chunks/{3ard_noqapnw1.js → 1grhjo7a5a0_-.js} +1 -1
  295. package/.next/static/chunks/1kq8h8wi_e0bc.js +53 -0
  296. package/.next/static/chunks/1okqiww3pnwka.js +1 -0
  297. package/.next/static/chunks/26-pr2c9ro222.js +1 -0
  298. package/.next/static/chunks/{18vhba44l1fc9.js → 280t0_e99i276.js} +1 -1
  299. package/.next/static/chunks/28cizcdaabd4h.js +1 -0
  300. package/.next/static/chunks/2a0k6jlq0_v1u.js +2 -0
  301. package/.next/static/chunks/2fzs9fm8yarvq.js +1 -0
  302. package/.next/static/chunks/2h0sd2vumhb15.js +1 -0
  303. package/.next/static/chunks/2hw2f6zmt7fmt.js +1 -0
  304. package/.next/static/chunks/2t4vhi3m8ahya.js +1 -0
  305. package/.next/static/chunks/2tigdtz3dpcy8.js +1 -0
  306. package/.next/static/chunks/3111pj5wnjgos.js +1 -0
  307. package/.next/static/chunks/{07kl352c-lvcz.js → 3agpgkwaa321p.js} +1 -1
  308. package/.next/static/chunks/3cfi_q6d_wtci.js +1 -0
  309. package/.next/static/chunks/3ok9_x74rip3v.js +1 -0
  310. package/.next/static/chunks/3xk7yqgomx7yq.js +1 -0
  311. package/.next/static/chunks/3xpbkl66ssib5.js +38 -0
  312. package/.next/static/media/favicon.37o1pjldwi2uc.ico +0 -0
  313. package/README.md +6 -4
  314. package/app/api/bot/memory/files/route.ts +14 -0
  315. package/app/api/bot/memory/route.ts +5 -0
  316. package/app/api/events/app-event.ts +3 -5
  317. package/app/api/llm-model/credits/route.ts +11 -0
  318. package/app/api/llm-model/route.ts +6 -1
  319. package/app/api/llm-model/subscription/route.ts +11 -0
  320. package/app/api/memory/edit/route.ts +7 -0
  321. package/app/api/memory/route.ts +21 -0
  322. package/app/api/query-key.ts +19 -4
  323. package/bin/thursday.mjs +3 -0
  324. package/components/ui/shiny-text.tsx +48 -134
  325. package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/migration.sql +24 -34
  326. package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/snapshot.json +71 -145
  327. package/database/migrations/20260911030320_opposite_jack_power/migration.sql +1 -0
  328. package/database/migrations/{20260909063821_bitter_tenebrous → 20260911030320_opposite_jack_power}/snapshot.json +57 -184
  329. package/features/ai/chatgpt.ts +617 -0
  330. package/features/ai/components/chatgpt-sign-in.tsx +66 -0
  331. package/features/ai/components/model-picker.tsx +17 -1
  332. package/features/ai/components/provider-icon.tsx +1 -0
  333. package/features/ai/load-tools.ts +58 -42
  334. package/features/ai/model.schema.ts +232 -34
  335. package/features/ai/model.ts +169 -24
  336. package/features/ai/prompts/bot.prompt.ts +156 -65
  337. package/features/ai/prompts/memory-edit.prompt.ts +33 -0
  338. package/features/ai/prompts/prompt-helper.ts +45 -26
  339. package/features/ai/prompts/thursday.prompt.ts +40 -17
  340. package/features/ai/tools/bot.tool.ts +35 -52
  341. package/features/ai/tools/connected.ts +17 -4
  342. package/features/ai/tools/memory.tool.ts +133 -72
  343. package/features/ai/tools/search.tool.ts +136 -47
  344. package/features/ai/tools/tool-name.ts +2 -5
  345. package/features/ai/tools/workspace.tool.ts +2 -1
  346. package/features/bot/bot.action.ts +8 -18
  347. package/features/bot/bot.memory.ts +89 -0
  348. package/features/bot/bot.query.ts +37 -57
  349. package/features/bot/bot.run.ts +507 -241
  350. package/features/bot/bot.runner.ts +410 -114
  351. package/features/bot/bot.schema.ts +79 -19
  352. package/features/bot/bot.seed.ts +89 -16
  353. package/features/bot/components/bot-mark.tsx +122 -20
  354. package/features/bot/components/bot-room.tsx +159 -130
  355. package/features/bot/components/bot-setting.tsx +790 -402
  356. package/features/bot/components/bot-tool.tsx +2 -6
  357. package/features/bot/components/mark-palette.tsx +54 -0
  358. package/features/bot/components/path-chips.tsx +1 -1
  359. package/features/bot/components/task-badge.tsx +26 -6
  360. package/features/bot/components/task-reply.tsx +22 -33
  361. package/features/bot/components/task-setting.tsx +20 -17
  362. package/features/bot/task.query.ts +215 -28
  363. package/features/bot/task.store.ts +53 -9
  364. package/features/config/components/config-setting.tsx +265 -34
  365. package/features/config/components/models-badge.tsx +42 -0
  366. package/features/config/config.action.ts +12 -0
  367. package/features/config/config.const.ts +38 -2
  368. package/features/connectors/mcp.manager.ts +10 -2
  369. package/features/intro/components/intro.tsx +47 -46
  370. package/features/memory/components/memory-edit.tsx +338 -0
  371. package/features/memory/components/memory-setting.tsx +75 -77
  372. package/features/memory/memory.action.ts +3 -43
  373. package/features/memory/memory.edit.ts +87 -0
  374. package/features/memory/memory.query.ts +24 -42
  375. package/features/memory/memory.schema.ts +29 -106
  376. package/features/settings/components/settings.tsx +2 -0
  377. package/features/settings/settings.alert.ts +3 -1
  378. package/features/thursday/components/ascii-orb.tsx +106 -90
  379. package/features/thursday/components/boot.tsx +7 -0
  380. package/features/thursday/components/call-log.tsx +219 -92
  381. package/features/thursday/components/face.tsx +6 -4
  382. package/features/thursday/components/tab-state.tsx +97 -0
  383. package/features/thursday/components/thursday-mark.tsx +4 -1
  384. package/features/thursday/components/thursday-setting.tsx +17 -47
  385. package/features/thursday/components/thursday.tsx +208 -95
  386. package/features/thursday/thursday.action.ts +12 -17
  387. package/features/thursday/thursday.query.ts +61 -70
  388. package/features/thursday/thursday.schema.ts +20 -7
  389. package/features/thursday/tool-line.ts +85 -11
  390. package/features/thursday/use-thursday.ts +86 -59
  391. package/features/workspace/components/file-view.tsx +4 -2
  392. package/features/workspace/workspace.ts +110 -26
  393. package/lib/limits.ts +1 -1
  394. package/lib/oauth-page.ts +27 -0
  395. package/lib/realtime/openai.ts +2 -2
  396. package/lib/realtime/realtime.protocol.ts +1 -1
  397. package/lib/realtime/realtime.tap.ts +122 -0
  398. package/lib/sandbox.ts +59 -36
  399. package/package.json +1 -1
  400. package/skills/browser/SKILL.md +55 -34
  401. package/.next/server/app/api/bot/notes/route/app-paths-manifest.json +0 -3
  402. package/.next/server/app/api/bot/notes/route.js +0 -14
  403. package/.next/server/app/api/bot/notes/route_client-reference-manifest.js +0 -3
  404. package/.next/server/app/api/memory/tidy/route/app-paths-manifest.json +0 -3
  405. package/.next/server/app/api/memory/tidy/route.js +0 -22
  406. package/.next/server/app/api/memory/tidy/route.js.nft.json +0 -1
  407. package/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +0 -3
  408. package/.next/server/chunks/[root-of-the-server]__0-npkh_._.js +0 -3
  409. package/.next/server/chunks/[root-of-the-server]__005var5._.js +0 -3
  410. package/.next/server/chunks/[root-of-the-server]__019dx9f._.js +0 -5
  411. package/.next/server/chunks/[root-of-the-server]__02_2sm-._.js +0 -5
  412. package/.next/server/chunks/[root-of-the-server]__04_8spk._.js +0 -3
  413. package/.next/server/chunks/[root-of-the-server]__05luceg._.js +0 -3
  414. package/.next/server/chunks/[root-of-the-server]__06t77t4._.js +0 -11
  415. package/.next/server/chunks/[root-of-the-server]__0bed6hu._.js +0 -8
  416. package/.next/server/chunks/[root-of-the-server]__0cro2dz._.js +0 -5
  417. package/.next/server/chunks/[root-of-the-server]__0dupqt7._.js +0 -5
  418. package/.next/server/chunks/[root-of-the-server]__0emr6go._.js +0 -3
  419. package/.next/server/chunks/[root-of-the-server]__0le4d-p._.js +0 -3
  420. package/.next/server/chunks/[root-of-the-server]__0m8ywyo._.js +0 -10
  421. package/.next/server/chunks/[root-of-the-server]__0nfuugi._.js +0 -5
  422. package/.next/server/chunks/[root-of-the-server]__0p32jfz._.js +0 -12
  423. package/.next/server/chunks/[root-of-the-server]__0phdgco._.js +0 -8
  424. package/.next/server/chunks/[root-of-the-server]__0wvgrsl._.js +0 -3
  425. package/.next/server/chunks/[root-of-the-server]__10qshki._.js +0 -3
  426. package/.next/server/chunks/[root-of-the-server]__11j52t0._.js +0 -5
  427. package/.next/server/chunks/[root-of-the-server]__1692zrv._.js +0 -3
  428. package/.next/server/chunks/[root-of-the-server]__16thabu._.js +0 -3
  429. package/.next/server/chunks/[root-of-the-server]__173nhwf._.js +0 -8
  430. package/.next/server/chunks/[root-of-the-server]__1_aoyr9._.js +0 -3
  431. package/.next/server/chunks/[root-of-the-server]__1bn73ih._.js +0 -10
  432. package/.next/server/chunks/[root-of-the-server]__1bqhuh9._.js +0 -8
  433. package/.next/server/chunks/[root-of-the-server]__1cqizfq._.js +0 -5
  434. package/.next/server/chunks/[root-of-the-server]__1e-ci13._.js +0 -3
  435. package/.next/server/chunks/[root-of-the-server]__1fboj2j._.js +0 -3
  436. package/.next/server/chunks/[root-of-the-server]__1lr7j9t._.js +0 -5
  437. package/.next/server/chunks/[root-of-the-server]__1oli73c._.js +0 -3
  438. package/.next/server/chunks/[root-of-the-server]__1txedx6._.js +0 -8
  439. package/.next/server/chunks/[root-of-the-server]__1untqv8._.js +0 -5
  440. package/.next/server/chunks/[root-of-the-server]__1zgpz1w._.js +0 -3
  441. package/.next/server/chunks/_00_584r._.js +0 -293
  442. package/.next/server/chunks/_012yhfm._.js +0 -39
  443. package/.next/server/chunks/_06mxlgn._.js +0 -3
  444. package/.next/server/chunks/_07rtlxv._.js +0 -3
  445. package/.next/server/chunks/_0a351g7._.js +0 -6
  446. package/.next/server/chunks/_0kjjmag._.js +0 -3
  447. package/.next/server/chunks/_0nn99o2._.js +0 -3
  448. package/.next/server/chunks/_0zuzmt_._.js +0 -39
  449. package/.next/server/chunks/_106co2o._.js +0 -3
  450. package/.next/server/chunks/_12bbv5i._.js +0 -100
  451. package/.next/server/chunks/_15q1pig._.js +0 -3
  452. package/.next/server/chunks/_19wg5yn._.js +0 -138
  453. package/.next/server/chunks/_1bt95p9._.js +0 -55
  454. package/.next/server/chunks/_1cbk7ms._.js +0 -26
  455. package/.next/server/chunks/_1drv2et._.js +0 -40
  456. package/.next/server/chunks/_1ic3bew._.js +0 -5
  457. package/.next/server/chunks/_1mxn_lb._.js +0 -3
  458. package/.next/server/chunks/_1rysr-r._.js +0 -10
  459. package/.next/server/chunks/_1u3rwbr._.js +0 -3
  460. package/.next/server/chunks/_1x7p319._.js +0 -6
  461. package/.next/server/chunks/_next-internal_server_app_api_bot_notes_route_actions_0qcsyu7.js +0 -3
  462. package/.next/server/chunks/_next-internal_server_app_api_memory_tidy_route_actions_0_cfuom.js +0 -3
  463. package/.next/server/chunks/features_bot_task_query_ts_11xuzl3._.js +0 -3
  464. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0gzvgfv._.js +0 -3
  465. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0vorg6w._.js +0 -3
  466. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1tpvamf._.js +0 -3
  467. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1vmaq9f._.js +0 -3
  468. package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y9-wcr._.js +0 -3
  469. package/.next/server/chunks/ssr/[externals]_node_crypto_1kn79-7._.js +0 -3
  470. package/.next/server/chunks/ssr/[root-of-the-server]__0iuoa-r._.js +0 -3
  471. package/.next/server/chunks/ssr/[root-of-the-server]__0un-erv._.js +0 -4
  472. package/.next/server/chunks/ssr/[root-of-the-server]__1-mnhyd._.js +0 -92
  473. package/.next/server/chunks/ssr/[root-of-the-server]__1bww500._.js +0 -3
  474. package/.next/server/chunks/ssr/[root-of-the-server]__1vcdast._.js +0 -3
  475. package/.next/server/chunks/ssr/[root-of-the-server]__1xwnu-h._.js +0 -3
  476. package/.next/server/chunks/ssr/_0-mc7ro._.js +0 -3
  477. package/.next/server/chunks/ssr/_01p5r6-._.js +0 -3
  478. package/.next/server/chunks/ssr/_03webdr._.js +0 -3
  479. package/.next/server/chunks/ssr/_09-0k3z._.js +0 -3
  480. package/.next/server/chunks/ssr/_0f_b_9s._.js +0 -3
  481. package/.next/server/chunks/ssr/_0fafgvl._.js +0 -3
  482. package/.next/server/chunks/ssr/_0sf1isi._.js +0 -3
  483. package/.next/server/chunks/ssr/_0su6_08._.js +0 -3
  484. package/.next/server/chunks/ssr/_0ti51xc._.js +0 -3
  485. package/.next/server/chunks/ssr/_0w5bgak._.js +0 -3
  486. package/.next/server/chunks/ssr/_0y84qo6._.js +0 -3
  487. package/.next/server/chunks/ssr/_1ciyoo3._.js +0 -3
  488. package/.next/server/chunks/ssr/_1e-dgz0._.js +0 -4
  489. package/.next/server/chunks/ssr/_1fq7zgb._.js +0 -3
  490. package/.next/server/chunks/ssr/_1g6l4uj._.js +0 -3
  491. package/.next/server/chunks/ssr/_1ruzehw._.js +0 -3
  492. package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +0 -4
  493. package/.next/server/chunks/ssr/features_config_components_14jqgy4._.js +0 -3
  494. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +0 -4
  495. package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +0 -55
  496. package/.next/static/chunks/05b6nx_o3_f_n.js +0 -1
  497. package/.next/static/chunks/0dmns-gi0raa4.js +0 -1
  498. package/.next/static/chunks/0f9sq-7q_yxyl.js +0 -1
  499. package/.next/static/chunks/0oc4_xoia77dg.css +0 -1
  500. package/.next/static/chunks/0pheo8m3a-rzi.js +0 -1
  501. package/.next/static/chunks/19i8h2t-5evjx.js +0 -1
  502. package/.next/static/chunks/1c5fcj473025q.js +0 -1
  503. package/.next/static/chunks/1pi_hbmjw-f-z.js +0 -1
  504. package/.next/static/chunks/1twt6k09vg4np.js +0 -1
  505. package/.next/static/chunks/1ytnip8wdng93.js +0 -1
  506. package/.next/static/chunks/28gotuisldmom.js +0 -1
  507. package/.next/static/chunks/2998p0y7k1c8z.js +0 -3
  508. package/.next/static/chunks/29gyb3nubj51j.js +0 -53
  509. package/.next/static/chunks/2l233xfycjpd8.js +0 -1
  510. package/.next/static/chunks/2p5n7pa3c40t-.js +0 -2
  511. package/.next/static/chunks/2ru1q132af7h7.js +0 -1
  512. package/.next/static/chunks/2t8wqycwg3y04.js +0 -2
  513. package/.next/static/chunks/2uxum7qbyeyxd.js +0 -1
  514. package/.next/static/chunks/32z_ypgtchw48.js +0 -1
  515. package/.next/static/chunks/33pyjb3xd1iez.js +0 -1
  516. package/.next/static/chunks/3omud5xunrk1f.js +0 -1
  517. package/.next/static/chunks/42dnrkbph9e-1.js +0 -1
  518. package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  519. package/database/migrations/20260909063821_bitter_tenebrous/migration.sql +0 -1
  520. package/features/ai/prompts/memory-tidy.prompt.ts +0 -129
  521. package/features/ai/tools/tidy.tool.ts +0 -22
  522. package/features/bot/bot.notes.ts +0 -120
  523. package/features/memory/components/memory-tidy.tsx +0 -395
  524. package/features/memory/memory.tidy.ts +0 -332
  525. package/features/memory/tidy.query.ts +0 -135
  526. package/features/thursday/use-call-title.ts +0 -31
  527. /package/.next/server/app/api/bot/{notes → memory/files}/route/build-manifest.json +0 -0
  528. /package/.next/server/app/api/bot/{notes → memory/files}/route/server-reference-manifest.json +0 -0
  529. /package/.next/server/app/api/bot/{notes → memory/files}/route.js.map +0 -0
  530. /package/.next/server/app/api/{memory/tidy → bot/memory}/route/build-manifest.json +0 -0
  531. /package/.next/server/app/api/{memory/tidy → bot/memory}/route/server-reference-manifest.json +0 -0
  532. /package/.next/server/app/api/{memory/tidy → bot/memory}/route.js.map +0 -0
  533. /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_buildManifest.js +0 -0
  534. /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_clientMiddlewareManifest.js +0 -0
  535. /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_ssgManifest.js +0 -0
@@ -0,0 +1,42 @@
1
+ module.exports=[411509,702080,a=>{"use strict";var b=a.i(57441);a.s(["default",0,b],702080);var b=b,c=a.i(287702),d=a.i(61876),e=a.i(199169),f=a.i(616682),g=a.i(324835);let h=b.object({color:b.string().regex(/^(#[0-9a-fA-F]{6}|currentColor)$/,"Hex color").optional(),shape:b.enum(g.MARK_SHAPES).optional(),outline:b.boolean().optional()}),i=b.string().max(f.COMMON_VALIDATE.prompt.max),j=b.object({id:b.number(),name:b.string(),serverName:b.string()}),k=b.string().trim().transform(a=>a.replace(/\s+/g," ")).pipe(b.string().min(1,"A name is required").max(f.COMMON_VALIDATE.name.max)),l=b.object({input:b.number(),output:b.number()});b.object({name:b.string(),description:b.string(),systemPrompt:b.string().nullish(),icon:h.nullish(),provider:d.textModelProviderSchema.nullish(),model:b.string().nullish(),compactAt:b.number().nullish(),disabled:b.boolean(),createdAt:e.DateLikeSchema,tools:j.array().default([]),tokens:l,lastJobAt:e.DateLikeSchema.nullish()}),b.object({name:k,description:b.string().trim().min(1,"Say what this bot is for").max(f.COMMON_VALIDATE.description.max),systemPrompt:i.optional(),icon:h.optional(),provider:d.textModelProviderSchema.nullish(),model:b.string().trim().max(80).nullish(),compactAt:b.coerce.number().int().min(8e3,"At least 8k").nullish(),disabled:b.boolean().optional(),toolIds:b.number().int().array().max(10).default([])}),b.object({file:b.string(),path:b.string(),line:b.string(),at:e.DateLikeSchema,bytes:b.number()});let m=c.PAGE_SIZE,n="Continue",o=b.discriminatedUnion("type",[b.object({type:b.literal("text"),text:b.string()}),b.object({type:b.literal("image"),src:b.string()})]),p=b.object({id:b.string(),seq:b.number(),bot:b.string().nullable(),parent:b.string().nullable(),at:e.DateLikeSchema}),q=b.discriminatedUnion("kind",[p.extend({kind:b.literal("user"),text:b.string()}),p.extend({kind:b.literal("text"),text:b.string()}),p.extend({kind:b.literal("note"),text:b.string()}),p.extend({kind:b.literal("tool"),callId:b.string(),name:b.string(),input:b.string(),note:b.string().nullish(),path:b.string().nullish()}),p.extend({kind:b.literal("tool-result"),callId:b.string(),name:b.string(),results:o.array(),more:b.boolean()}),p.extend({kind:b.literal("ask"),callId:b.string(),to:b.string(),text:b.string()}),p.extend({kind:b.literal("ask-result"),callId:b.string(),text:b.string()}),p.extend({kind:b.literal("waiting"),callId:b.string(),question:b.string(),options:b.string().array()})]),r=b.object({question:b.string(),options:b.string().array(),auto:b.boolean()});b.object({id:b.string(),bot:b.string(),label:b.string(),request:b.string(),status:b.enum(["running","waiting","done","failed"]),outcome:b.string().nullable(),ask:r.nullable(),seen:b.boolean(),tokens:l,contextTokens:b.number(),contextBudget:b.number(),createdAt:e.DateLikeSchema,updatedAt:e.DateLikeSchema,lines:q.array()}),a.s(["DEFAULT_BOT",0,{name:"Jarvis",description:"Anything — this computer, a browser, the web, files, services",systemPrompt:null,icon:{color:"#14B8A6",shape:"squircle"},provider:null,model:null,disabled:!1,compactAt:null},"MAX_PINNED_TOOLS",0,10,"TASK_CONTINUE",0,n,"TASK_HISTORY_PAGE",0,m,"botIconSchema",0,h,"isAppStop",0,a=>{let b=a?.options??[];return 1===b.length&&b[0]===n},"randomBotIcon",0,function(){return{color:(0,g.randomMarkColors)(1)[0],shape:g.MARK_SHAPES[Math.floor(Math.random()*g.MARK_SHAPES.length)]}}],411509)},398026,a=>{"use strict";var b=a.i(287702),c=a.i(421042),d=a.i(324835);let e=[{name:"Jarvis",description:"Any job — turns it into a plan, hands each part to whoever it belongs to, does the rest, answers with one result",hint:"Plans a job and hands out the parts",icon:{shape:"squircle"},recommended:!0,systemPrompt:"You are Jarvis. A job reaches you as a sentence and leaves as a plan: what it actually needs, in what order, and who does each part. Settle what is still open in one round rather than guessing at it, then send for what the job is made of before you build — a part another bot exists for is theirs, and everything nobody else is for is yours. You hold the whole while they hold pieces: the order the parts run in, the seams where what comes back has to fit together, and the single thing that is handed over at the end. The plan is how the job gets done, not what gets handed back."},{name:"Navigator",description:"The web through a real browser — opens the page itself, signs in, brings back prices, images and links as they stand now",hint:"Opens the page itself and reads what is on it",icon:{shape:"poly"},recommended:!0,systemPrompt:`You are Navigator. Every browser job is yours: load the \`${b.BROWSER_SKILL}\` skill first and work through it. A search result says a page exists; you say what is on it right now — so open it, sign in where it asks you to, and keep going past the first screen until you have the thing itself: exact figures, the links that open them, the images off the page. Nothing you did not see goes in what you hand back, and a page that refused you is a fact with a url on it, not a gap to fill in from memory. Whoever asked should never need to open the site after you.`},{name:"Scribe",description:"Writing that gets read — finds out what it is for, researches it, then picks the form: prose, table, or a page",hint:"Writes what gets read, in the form that fits",icon:{shape:"blob"},recommended:!0,systemPrompt:"You are Scribe. Who reads it and what they do next decides everything else, so learn that first, then research before you claim: every number and name you write traces back to something you actually read. Pick the form by the reading — a `.md` for something read once, a `.csv` for what gets sorted, a page (the `interactive-page` skill) for something used or something whose pictures are the point. When the request does not settle which it is — something read once or something used — ask before you write rather than committing a whole draft to a guess. Cut what the reader would skip, and never spend a paragraph where a table or a picture answers in one glance. One page they finish beats five they abandon."},{name:"Insta",description:"Instagram end to end — settles what the post is, draws it, writes it, and puts it up once approved",hint:"Draws the pictures, writes the caption, posts it",icon:{shape:"poly"},requires:["image"],systemPrompt:`You are Insta. One job takes a post from nothing to live on instagram.com — settle what it is, sign in, draw it, write it, put it up. Load the \`${b.BROWSER_SKILL}\` skill before any browser step.
2
+
3
+ Settle it in one question. Ask only for what the request leaves open, in a single \`${c.TOOL_NAMES.ask_thursday}\`: the topic, how many pictures, whether to build a cover, and whether they name the music or you pick. A request that already says its topic is not asked for it again. Told to decide yourself: \`${c.TOOL_NAMES.web_search}\` for what is current on that topic, three pictures, a cover, and a recent track from Instagram's own list. Never ask twice for one round.
4
+
5
+ Then check the tools are there. \`${c.TOOL_NAMES.tool_search}\` with \`server: "${b.STUDIO_SERVER}"\` and \`tools: ["${c.STUDIO_TOOLS.generate_image}", "${c.STUDIO_TOOLS.generate_video}"]\` — one call returns both schemas, and a name that does not come back means nobody picked that model, so the tool does not exist. Missing what the job needs: \`${c.TOOL_NAMES.ask_thursday}\` saying to pick an image (or video) model in Settings › Models, and stop. Never work around a tool that is not there.
6
+
7
+ Sign in once, and into an account made for this rather than their own — the session is kept and every later job posts as whoever it is. Your file is \`bots/Insta/.auth/instagram.json\`, the login page is \`https://www.instagram.com/accounts/login/\`, and the skill carries the rest.
8
+
9
+ Anything covering the screen is closed before you read what is under it. It is in the way, not a sign-in problem.
10
+
11
+ Pictures come from two places. Draw them when the post is an idea or a mood; take the real one off the web when it is about something that happened, since a drawn picture passed off as the event is a lie. To take one: open the page and \`curl -o\` its image url into your folder. What is on someone's page is theirs — name the source, or draw one instead.
12
+ Draw. \`${c.TOOL_NAMES.tool_call}\` with \`server: "${b.STUDIO_SERVER}"\`, the tool, its \`args\`, and a \`description\` line saying what the call is for. \`aspectRatio\` is \`"1:1"\` for feed, \`"3:4"\` portrait, \`"9:16"\` story or reel. Put the whole picture in \`prompt\` — subject, framing, light, palette — the image model sees nothing of this job. Issue every picture in one step and repeat the same look in each prompt, or the slides come back in different hands. Keep what you use under \`artifacts/\`.
13
+
14
+ The cover is built, not drawn: image models mangle text. Write one HTML file over the first picture — a transparent-to-black gradient darkening one end, and a single bold headline over it, placed where the picture is empty rather than over its subject: bottom-left, bottom, or bottom-right. Then \`resize 1080 1350\`, serve it and open it the way the skill does, \`screenshot\`. That is slide one.
15
+
16
+ Write the caption to be read: what this is, in the user's voice, no invented facts, no wall of tags.
17
+
18
+ The composer is the one part not to memorise. Its refs change on every snapshot, so take a fresh one at each step and read what is actually there: Create, the files, crop and edit, music, caption — and stop on the last screen, before Share. Music: search the name they gave, or take a current one that fits the topic. No music step on this format means there is none.
19
+
20
+ Ask before it goes up. \`${c.TOOL_NAMES.ask_thursday}\` with the caption as written, the picture paths and the track you picked; options \`Post it\` / \`Change something\`. Share only on the first. Nothing is published on your own judgement, whatever the request said.
21
+
22
+ Answer with the post's url once it is up, and the file paths either way.`},{name:"Voyage",description:"Plans a trip — the days in walking order, a map for each one, and a page with the pictures",hint:"Plans the days, maps them, builds the page",icon:{shape:"blob"},systemPrompt:`You are Voyage. A trip leaves you as a plan someone can walk: what to see, in what order, on which day, with the map and the pictures. Load the \`${b.BROWSER_SKILL}\` skill before any browser step.
23
+
24
+ Settle it in one question. Ask only what the request leaves open, in a single \`${c.TOOL_NAMES.ask_thursday}\`: where, which dates, how many nights, who is going, roughly what budget, and what they care about — food, museums, walking, quiet. Never ask twice for one round.
25
+
26
+ Research in one step, not six. Send every \`${c.TOOL_NAMES.web_search}\` at once: the weather those dates usually bring, entry rules, currency and what things cost, plugs, how transit works there, and what is on or shut while they are there. A festival or a Monday closure changes the plan, so it is research, not colour.
27
+
28
+ Then open the pages for the places you shortlist — hours, closing days and prices are what search results get wrong. While you are on a page, take its pictures with \`--raw eval "JSON.stringify([...document.images].filter(i => i.naturalWidth > 200).map(i => i.currentSrc))"\` and keep whose page they came from.
29
+
30
+ A day is a walkable cluster, not a wishlist. Group by where things are, then order them by when they open; a day scattered across the city is a list, not a plan. Leave one thing per day loose — arriving, weather and a long lunch all happen.
31
+
32
+ The map is written, not clicked. One directions url per day, built by hand: \`https://www.google.com/maps/dir/?api=1&origin=A&destination=D&waypoints=B|C&travelmode=walking&hl=en\` (\`transit\` where that is how the city moves). Then one \`bash\` line, chained with &&: \`resize 1280 800\`, \`goto\`, \`sleep 4\`, \`click "getByRole('button', { name: 'Collapse side panel' })"\`, \`sleep 2\`, \`screenshot\`. The window is small, so without the resize the map is unreadable; the tiles come back black if you shoot the moment it loads; and the route panel covers a third of the map until it is collapsed.
33
+
34
+ Nobody has to sign in to anything: the day urls open in their own Maps app on a tap, and the trip is finished without them. Putting the pins on their own map is an extra you offer once the plan is done, never a gate in front of it — \`https://www.google.com/maps/d/\` wants a Google sign-in, so hand over the finished trip first and ask afterwards. If they say yes, it is their own account and never a bot one, because the point is that it is on their phone: write one csv of name, address and day with \`bash\` and \`upload\` it into a new map, so every pin lands in one import instead of one click each. Read the import screens rather than remembering them.
35
+
36
+ Photos in one step too: every \`curl -o\` in a single \`bash\` call, into the trip folder.
37
+
38
+ The page is the deliverable: the days in order, the map under each, the photos with whose page they came from, and the facts that decide what to pack. If someone on your roster writes pages, it is theirs and they get steps of their own — send the days as written, the paths of every shot and photo, and each fact with its source, because they cannot see your thread. If nobody does, write it yourself with the \`interactive-page\` skill.
39
+
40
+ Answer with the folder under \`artifacts/\` and what is in it: the page, a map per day, the pictures.`}],f=e.filter(a=>a.recommended);a.s(["BOT_SEEDS",0,e,"RECOMMENDED_SEEDS",0,f,"rollSeedColors",0,()=>(0,d.randomMarkColors)(e.length)])},905129,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f146977640e230a08d980d2d2ec28e7dcf4438f21",b.callServer,void 0,b.findSourceMapURL,"createSeedBotsAction");a.s(["createSeedBotsAction",0,c])},478978,a=>{"use strict";var b=a.i(61876);let c=[...new Set(Object.values(b.SPEACH_MODEL_PROVIDERS).map(a=>a.apiKeyName))],d={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},e={image:{label:"Image model",hint:"What bots draw with"},video:{label:"Video model",hint:"What bots film with — minutes a clip"},speech:{label:"Speech model",hint:"What reads text aloud into a file"},transcription:{label:"Transcription model",hint:"What turns a recording into text"}},f="EXA_API_KEY",g={key:"DEFAULT_MODEL",label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:b.TEXT_MODEL_PROVIDER_LIST.flatMap(a=>a.suggestModels.map(b=>({value:`${a.id}/${b.id}`,label:`${a.label} \xb7 ${b.label}`,needs:a.apiKeyName})))},h=a=>c.includes(a.apiKeyName),i=a=>({key:a.apiKeyName,label:a.label,provider:a.id,signIn:a.signIn}),j=[{id:"voice",title:"voice",hint:"calls run on one of these",section:"keys",require:"any",note:"one is required",entries:b.TEXT_MODEL_PROVIDER_LIST.filter(h).map(i)},{id:"text",title:"models",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:b.TEXT_MODEL_PROVIDER_LIST.filter(a=>!h(a)).map(i)},{id:"search",title:"search",hint:"how bots look things up — one key, or their own model's",section:"keys",require:"none",entries:[{key:f,label:"Exa",hint:"web search in one call — dashboard.exa.ai"}]},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own",section:"models",require:"none",entries:[g]},{id:"studio",title:"Studio",hint:"what a bot draws, films and speaks with — off until you pick one",section:"models",require:"none",entries:Object.keys(d).map(a=>({key:d[a],...e[a],kind:a,choices:b.MEDIA_MODEL_PROVIDER_LIST.flatMap(b=>b.models[a].map(a=>({value:`${b.id}/${a.id}`,label:`${b.label} \xb7 ${a.label}`,needs:b.apiKeyName})))}))}];Object.fromEntries(j.flatMap(a=>a.entries).map(a=>[a.key,a])),j.flatMap(a=>a.entries.map(a=>a.key)),Object.fromEntries(j.flatMap(a=>a.entries).filter(a=>a.choices?.length).map(a=>[a.key,a.choices])),a.s(["CONFIG_GROUPS",0,j,"EXA_API_KEY",0,f,"MEDIA_MODEL_KEYS",0,d,"groupSatisfied",0,function(a,b){return"none"===a.require||(a.requireKeys??a.entries.map(a=>a.key)).some(b)},"isConfigSet",0,function(a,b){return a?.some(a=>a.key===b&&a.set)??!1},"mediaModelWords",0,a=>`${"image"===a?"an":"a"} ${a} model`])},28996,a=>{"use strict";let b=(0,a.i(920226).create)()(a=>({open:!1,section:"thursday",show:b=>a(a=>({open:!0,section:b??a.section})),hide:()=>a({open:!1}),pick:b=>a({section:b})}));a.s(["openSettings",0,a=>b.getState().show(a),"useSettingsStore",0,b])},616682,a=>{"use strict";a.s(["COMMON_VALIDATE",0,{name:{max:16},shortDescription:{max:60},description:{max:100},prompt:{max:4e3}}])},425256,a=>{"use strict";var b=a.i(164831);let c={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};c.node;let d=(0,b.default)(c);a.s(["History",0,d],425256)},924613,a=>{"use strict";var b=a.i(164831);let c={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};c.node;let d=(0,b.default)(c);a.s(["Wrench",0,d],924613)},920226,a=>{"use strict";var b=a.i(572131);let c=a=>{let b,c=new Set,d=(a,d)=>{let e="function"==typeof a?a(b):a;if(!Object.is(e,b)){let a=b;b=(null!=d?d:"object"!=typeof e||null===e)?e:Object.assign({},b,e),c.forEach(c=>c(b,a))}},e=()=>b,f={setState:d,getState:e,getInitialState:()=>g,subscribe:a=>(c.add(a),()=>c.delete(a))},g=b=a(d,e,f);return f},d=a=>{let d=a?c(a):c,e=a=>(function(a,c=a=>a){let d=b.default.useSyncExternalStore(a.subscribe,b.default.useCallback(()=>c(a.getState()),[a,c]),b.default.useCallback(()=>c(a.getInitialState()),[a,c]));return b.default.useDebugValue(d),d})(d,a);return Object.assign(e,d),e};a.s(["create",0,a=>a?d(a):d],920226)}];
41
+
42
+ //# sourceMappingURL=_20kd_n0._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[913834,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(396398),e=a.i(324835);let f=2*Math.PI,g="-18 -18 276 276",h=a=>Math.round(100*a)/100,i=(a,b,c)=>Math.min(c,Math.max(b,a));function j(a){let b=a>>>0;return()=>{let a=Math.imul((b=b+0x6d2b79f5>>>0)^b>>>15,1|b);return(((a=a+Math.imul(a^a>>>7,61|a)^a)^a>>>14)>>>0)/0x100000000}}function k(a,b){return[a[0]-b[0],a[1]-b[1]]}function l(a){let b=Math.hypot(a[0],a[1])||1;return[a[0]/b,a[1]/b]}function m(a){let b=a.map((a,b)=>{let c=b/128*f;return[120+Math.cos(c)*a,120+Math.sin(c)*a]}),c=`M${h(b[0][0])} ${h(b[0][1])}`;for(let a=0;a<128;a++){let d=b[(a-1+128)%128],e=b[a],f=b[(a+1)%128],g=b[(a+2)%128],i=e[0]+(f[0]-d[0])/6,j=e[1]+(f[1]-d[1])/6,k=f[0]-(g[0]-e[0])/6,l=f[1]-(g[1]-e[1])/6;c+=`C${h(i)} ${h(j)} ${h(k)} ${h(l)} ${h(f[0])} ${h(f[1])}`}return`${c}Z`}function n(a){let b=a.tilt*Math.PI/180,c=Math.cos(b),d=Math.sin(b),e=(b,e)=>[a.cx+b*c-e*d,a.cy+b*d+e*c],f=-a.len/2,g=a.len/2,i=[],j=[];for(let b=0;b<=30;b++){let c=b/30,d=1-c,h=d*d*f+c*c*g,k=-(2*d*c*a.bend),l=-(2*d*f)+2*c*g,m=-(2*d*a.bend)+2*c*a.bend,n=Math.hypot(l,m)||1,o=-m/n,p=l/n,q=a.width/2*Math.sin(Math.PI*c)**a.taper;i.push(e(h+o*q,k+p*q)),j.push(e(h-o*q,k-p*q))}let k=`M${h(i[0][0])} ${h(i[0][1])}`;for(let a=1;a<=30;a++)k+=`L${h(i[a][0])} ${h(i[a][1])}`;for(let a=29;a>=0;a--)k+=`L${h(j[a][0])} ${h(j[a][1])}`;return`${k}Z`}let o={shape:"blob",sides:3,corner:.74,rotation:-180,squircle:4.6,wobble:.2,seed:113,autofit:!0,color:"currentColor",fill:!0,strokeWidth:14,eyeLen:51,eyeWidth:38,eyeBend:-1,eyeTaper:.35,eyeTilt:-90,eyeSkew:0,eyeGap:88,eyeY:100,gazeRange:7,follow:!0,ripple:9,pulse:7,punch:.05,bandEase:.019,bobRate:1,stretch:15,idle:!0,liveliness:55,glance:22,float:7,breathe:3.7,speed:1.7,blink:!0,shadow:16,glow:0,glowColor:null,glowStrength:55,rim:0,rimColor:"currentColor",notify:!1,notifyAngle:41,notifyDist:109,notifyR:25,notifyRing:11,notifyColor:"#FF3B30"},p=[.8,1.35],q=[.45,.77],r=[-180,180],s=[4,12],t=new Map;function u(a,b,c){var d,e,g;let h,m,n,o,p=`${"poly"===b?`poly|${a.sides}|${a.corner}|${a.rotation}|${c}`:"squircle"===b?`squircle|${a.squircle}|${c}`:`blob|${a.wobble}|${c}`}|${a.autofit}`,q=t.get(p);if(q)return q;let r=function(a){let b=Array(128);for(let c=0;c<128;c++){let d=c/128*f,e=Math.cos(d),g=Math.sin(d),h=0;for(let b=0;b<a.length;b++){let c=a[b],d=a[(b+1)%a.length],f=d[0]-c[0],i=d[1]-c[1],j=e*i-g*f;if(1e-9>Math.abs(j))continue;let k=c[0]-120,l=c[1]-120,m=(k*i-l*f)/j,n=(k*g-l*e)/j;m>h&&n>=-1e-9&&n<=1+1e-9&&(h=m)}b[c]=h||112}return b}((d=a,e=b,g=c,"squircle"===e?function(a){let b=[],c=2/a;for(let a=0;a<360;a++){let d=a/360*f,e=Math.cos(d),g=Math.sin(d);b.push([120+Math.sign(e)*Math.abs(e)**c*112,120+Math.sign(g)*Math.abs(g)**c*112])}return b}(d.squircle):"poly"===e?function(a,b,c){let d=c*Math.PI/180-Math.PI/2,e=[];for(let b=0;b<a;b++){let c=d+b/a*f;e.push([120+112*Math.cos(c),120+112*Math.sin(c)])}let g=(Math.PI-f/a)/2,h=224*Math.sin(Math.PI/a)/2*Math.tan(g)*i(b,.001,1),j=h/Math.tan(g),m=[];for(let b=0;b<a;b++){let c=e[b],d=e[(b-1+a)%a],i=e[(b+1)%a],n=l(k(d,c)),o=l(k(i,c)),p=[c[0]+n[0]*j,c[1]+n[1]*j],q=l([n[0]+o[0],n[1]+o[1]]),r=[c[0]+q[0]*h/Math.sin(g),c[1]+q[1]*h/Math.sin(g)],s=Math.atan2(p[1]-r[1],p[0]-r[0]),t=[c[0]+o[0]*j,c[1]+o[1]*j],u=Math.atan2(t[1]-r[1],t[0]-r[0])-s;for(;u>Math.PI;)u-=f;for(;u<-Math.PI;)u+=f;for(let a=0;a<=20;a++){let b=s+a/20*u;m.push([r[0]+Math.cos(b)*h,r[1]+Math.sin(b)*h])}}return m}(d.sides,d.corner,d.rotation):function(a,b){let c=j(a),d=[1,2,3,4,5].map(a=>({k:a,a:(2*c()-1)/a,p:c()*f})),e=[],g=0;for(let a=0;a<360;a++){let b=a/360*f,c=0;for(let a of d)c+=a.a*Math.sin(a.k*b+a.p);e.push(c),g=Math.max(g,Math.abs(c))}let h=g>0?b/g:0;return e.map((a,b)=>{let c=b/360*f,d=112*(1+a*h);return[120+Math.cos(c)*d,120+Math.sin(c)*d]})}(g,d.wobble))),s="blob"===b?r:(h=j(12139^c),m=[2,3,5].map(a=>({k:a,a:(2*h()-1)/a,p:h()*f})),o=Math.max(...(n=r.map((a,b)=>{let c=b/128*f,d=0;for(let a of m)d+=a.a*Math.sin(a.k*c+a.p);return d})).map(Math.abs))||1,r.map((a,b)=>a*(1+.035*n[b]/o))),u=a.autofit?function(a){let b=f/128,c=0,d=0;for(let e of a)c+=.5*e*e*b,e>d&&(d=e);if(c<=0)return a;let e=Math.min(Math.sqrt(112*Math.PI*112/c),130/d);return a.map(a=>a*e)}(s):s;return t.size>400&&t.clear(),t.set(p,u),u}let v={eyeLen:1,eyeWid:1,eyeX:0,eyeY:0,bodyX:0,bodyY:0,rot:0,scale:1,blinkIn:0},w=a=>a*a*(3-2*a),x=a=>Math.sin(Math.PI*a);function y(a,b,c){return a<=0||a>=1?0:a<b?w(a/b):a>1-c?w((1-a)/c):1}let z={glance:{weight:26,dur:[900,1400],play:(a,b,c)=>{let d=y(a,.12,.34);return{eyeX:22*b*d,eyeY:22*c*d,rot:.9*b*d,blinkIn:40*!!(a<.02&&.4>Math.random())}}},lookAway:{weight:12,dur:[1800,2600],play:(a,b,c)=>{let d=y(a,.1,.46);return{eyeX:30*b*d,eyeY:(.5*c+.35)*22*d,rot:1.6*b*d}}},widen:{weight:8,dur:[700,950],play:(a,b)=>{let c=y(a,.22,.5);return{eyeLen:1+.16*c,eyeWid:1+.2*c,rot:-(.5*b)*c}}},squint:{weight:8,dur:[800,1050],play:a=>{let b=y(a,.25,.45);return{eyeLen:1-.3*b,eyeWid:1-.12*b}}},double:{weight:7,dur:[420,420],play:a=>({blinkIn:+(a<.02)})},nod:{weight:11,dur:[1150,1400],play:a=>({bodyY:10*Math.sin(2*f*a)*x(a),rot:2.2*Math.sin(2*f*a+.5)*x(a),eyeY:3.2*Math.sin(2*f*a-.7)*x(a)})},sink:{weight:7,dur:[1800,2300],play:a=>{let b=x(a)**.7;return{eyeLen:1-.26*b,eyeY:4*b,bodyY:8*b,scale:1-.03*b,rot:1.8*b}}},wave:{weight:7,dur:[1300,1700],play:(a,b)=>{let c=y(a,.24,.34);return{bodyX:b*Math.sin(1.5*f*a)*9*c,rot:b*Math.sin(1.5*f*a+.5)*4.5*c,eyeX:b*Math.sin(1.5*f*a)*5*c,eyeLen:1-.2*c}}},reach:{weight:7,dur:[1800,2300],play:a=>{let b=y(a,.28,.34);return{scale:1+.045*b,bodyY:-4*b,eyeLen:1-.28*b,eyeY:3*b,rot:1.8*b}}},tilt:{weight:11,dur:[1500,1900],play:(a,b)=>{let c=y(a,.22,.4);return{rot:9*b*c,bodyX:-3*b*c,eyeY:-1.5*c}}},sweep:{weight:9,dur:[1600,2200],play:(a,b,c)=>{let d=y(a,.12,.18),e=Math.cos(Math.PI*i((a-.15)/.7,0,1));return{eyeX:24*b*d*e,eyeY:24*c*d*e,rot:1.2*b*d*e}}},roll:{weight:5,dur:[900,1200],play:(a,b)=>{let c=x(a)**.5,d=f*a*(b>=0?1:-1);return{eyeX:20*Math.cos(d)*c,eyeY:14*Math.sin(d)*c,rot:1.5*Math.sin(d)*c,blinkIn:+(a>.9&&a<.93)}}},shake:{weight:8,dur:[650,900],play:(a,b)=>{let c=x(a),d=Math.sin(2*f*a);return{rot:b*d*5*c,bodyX:b*d*4*c,eyeX:-b*d*4*c}}},bounce:{weight:6,dur:[850,1100],play:a=>{let b=1-.45*a,c=Math.abs(Math.sin(f*a))*b;return{bodyY:-14*c,eyeY:2.5*c,scale:1-Math.max(0,-Math.cos(f*a))*b*.04}}},slowBlink:{weight:6,dur:[900,1200],play:a=>({eyeWid:1-.88*x(a)**.6,eyeY:1.5*x(a)})},perk:{weight:5,dur:[700,950],play:(a,b)=>{let c=y(a,.09,.62);return{bodyY:-7*c,scale:1+.035*c,eyeLen:1+.14*c,eyeWid:1+.1*c,rot:.8*b*c}}}},A=Object.keys(z),B={idle:{},connecting:{nod:0,wave:0,bounce:0,sweep:1.6,roll:1.4},listening:{glance:.3,lookAway:.15,sweep:.2,roll:0,wave:0,shake:0,bounce:0,sink:.3,widen:2.2,perk:1.8,nod:1.6,slowBlink:1.4},thinking:{lookAway:2.2,squint:2,tilt:1.8,roll:2,sweep:1.4,sink:1.6,glance:.8,slowBlink:1.2,nod:.3,wave:0,bounce:.2,perk:.5},delegating:{wave:2.6,nod:1.8,perk:1.6,glance:1.4,tilt:1.2,lookAway:.4,squint:.4,sink:0,roll:0},speaking:{nod:2,glance:1.2,widen:1.2,sink:0,roll:.3,wave:.4,slowBlink:.4,bounce:.6}},C={idle:{eyes:1,body:1,churn:0,churnSpeed:0,dwell:1,breathe:1,float:1,blink:1,shadow:0,lean:0,aspect:1,gazeX:0,gazeY:0},connecting:{eyes:.75,body:.91,churn:2.5,churnSpeed:3,dwell:.8,breathe:2.2,float:.6,blink:.6,shadow:0,lean:0,aspect:1.03,gazeX:0,gazeY:4},listening:{eyes:1.3,body:1.04,churn:0,churnSpeed:0,dwell:2.6,breathe:.45,float:.35,blink:1.8,shadow:0,lean:0,aspect:.97,gazeX:0,gazeY:-3},thinking:{eyes:.66,body:.96,churn:5,churnSpeed:.6,dwell:.5,breathe:1.3,float:1.4,blink:.8,shadow:1,lean:7,aspect:1.04,gazeX:-9,gazeY:-8},delegating:{eyes:.9,body:.98,churn:0,churnSpeed:0,dwell:2.2,breathe:.6,float:.5,blink:1.3,shadow:0,lean:-6,aspect:1,gazeX:15,gazeY:2},speaking:{eyes:.95,body:1,churn:2.5,churnSpeed:3,dwell:4,breathe:.4,float:.5,blink:1.2,shadow:0,lean:0,aspect:1,gazeX:0,gazeY:0}},D=Array(e.MARK_BANDS).fill(0);function E(){let a=Math.random();return a<.15?180+320*Math.random():a<.8?1200+2300*Math.random():3500+2800*Math.random()}function F(a){if("number"==typeof a)return a;let b=0x811c9dc5;for(let c=0;c<a.length;c++)b=Math.imul(b^a.charCodeAt(c),0x1000193);return(b>>>0)%1e4}function G({size:a=32,seed:k,color:l,shape:t,vary:w,outline:x,notify:y,state:H="idle",getLevel:I,getSpectrum:J,options:K,className:L,svgRef:M}){let N=(0,c.useId)(),O=(0,c.useMemo)(()=>void 0===w||!1===w?0:F(!0===w?N:w)||1,[w,N]),P=(0,c.useMemo)(()=>(function(a,b){if(!b)return a;let c=j(b),d=([a,b])=>a+c()*(b-a);return{...a,wobble:a.wobble*d(p),corner:d(q),rotation:d(r),squircle:d(s)}})({...o,...K,...void 0===x?{}:{fill:!x}},O),[K,x,O]),Q=`${N}-glow`,R=`${N}-halo`,S=`${N}-mask`,T=`${N}-shadow`,U=(0,c.useRef)(null),V=(0,c.useRef)(null),W=(0,c.useRef)(null),X=(0,c.useRef)(null),Y=(0,c.useRef)(null),Z=(0,c.useRef)(null),$=(0,c.useRef)(null),_=(0,c.useRef)(null),aa=(0,c.useRef)(null),ab=(0,c.useRef)(null),ac=(0,c.useRef)(null),ad=(0,c.useRef)(null),ae=M??ad,af=void 0===k?P.seed:F(k),ag=O?((af^Math.imul(O,0x9e3779b1))>>>0)%1e4:af,ah=t??P.shape,ai=l??P.color,aj=y??P.notify,ak=(0,c.useMemo)(()=>u(P,ah,ag),[P,ah,ag]),al=(0,c.useMemo)(()=>m(ak),[ak]),am=(0,c.useMemo)(()=>n({len:P.eyeLen,width:P.eyeWidth,bend:P.eyeBend,taper:P.eyeTaper,tilt:P.eyeTilt,cx:120-P.eyeGap/2,cy:P.eyeY}),[P]),an=(0,c.useMemo)(()=>n({len:P.eyeLen,width:P.eyeWidth,bend:P.eyeBend,taper:P.eyeTaper,tilt:P.eyeTilt+P.eyeSkew,cx:120+P.eyeGap/2,cy:P.eyeY}),[P]),ao=(0,c.useRef)({cfg:P,state:H,getLevel:I,getSpectrum:J,radii:ak,shapeSeed:ag});ao.current={cfg:P,state:H,getLevel:I,getSpectrum:J,radii:ak,shapeSeed:ag},(0,c.useEffect)(()=>{let a=0,b=ao.current.shapeSeed%17*.91,c=0,g=0,j=performance.now()+600+E(),k=0,l=130,n=0,o=(0,d.createVoiceFollower)(),p={...C.idle},q=Object.keys(p),r=0,s=0,t=0,u=.5,w=0,x=0,y=0,F=Array(e.MARK_BANDS).fill(0),G=Array.from({length:e.MARK_BANDS},(a,b)=>1.7*b),H=0,I=performance.now(),J=null,K=performance.now()+1500+3e3*Math.random(),L=d=>{a=requestAnimationFrame(L);let{cfg:M,state:N}=ao.current,O=d/1e3*M.speed,P=Math.min(.05,(d-I)/1e3);I=d;let Q=C[N];for(let a of q)p[a]+=(Q[a]-p[a])*.06;H+=P*p.churnSpeed*M.speed;let R="speaking"===N?ao.current.getSpectrum?.():void 0,S=o.read(R??D,P),T=0;for(let a=0;a<e.MARK_BANDS;a++){let b=S.bands[a];F[a]+=(b-F[a])*M.bandEase,G[a]+=P*(.05+.018*a)*(a%2?-1:1),T+=b}let ad=ao.current.getLevel?.(),ae="speaking"===N?i(ad??S.level,0,1):0;r+=(ae-r)*.3,s+=(ae-s)*.055,t+=(ae-t)*.016,(void 0===ad?S.onset>0:r>1.25*s+.03&&r>.09)&&d-y>340&&(y=d,x-=M.punch*Math.min(1,1.6*r)*M.bobRate);let af=.01*M.bobRate*M.bobRate;if(x+=-w*af-.085*x*M.bobRate,w+=x,T>.04){let a=0;for(let b=0;b<e.MARK_BANDS;b++)a+=F[b]*b;u+=(a/T/(e.MARK_BANDS-1)-u)*.04}else u+=(.5-u)*.03;let ag=p.dwell;if(M.idle&&!J&&d>=K){let a=function(a){let b=B[a],c=a=>z[a].weight*(b[a]??1),d=0;for(let a of A)d+=c(a);let e=Math.random()*d;for(let a of A)if((e-=c(a))<=0)return a;return A[0]}(N),b=z[a],c=Math.PI/4*Math.floor(8*Math.random());J={key:a,start:d,dur:b.dur[0]+Math.random()*(b.dur[1]-b.dur[0]),dx:Math.cos(c),dy:.7*Math.sin(c)-.5*("thinking"===N)}}let ah=v;if(J){let a=(d-J.start)/J.dur;a>=1?(J=null,K=d+(9e3-74*M.liveliness)*ag*(.6+.8*Math.random())):(ah={...v,...z[J.key].play(a,J.dx,J.dy)}).blinkIn>0&&0===n&&(n=d+ah.blinkIn)}if(aa.current){let a=.5-.5*Math.cos(.55*O);aa.current.setAttribute("opacity",h(p.shadow*a*M.shadow/100).toString())}if(U.current){let a=M.breathe*p.breathe/100,c=t*M.pulse/300-.05*w,d=(.45-u)/.45*t*(M.stretch/100),e=(1+a*Math.sin(1.6*O+b)-.75*c+d)*p.body*ah.scale/p.aspect,f=(1+c-.8*d)*p.body*ah.scale*p.aspect,g=25*a*Math.sin(1.1*O+1.7*b)+ah.rot+p.lean,i=120+90*a*Math.sin(.7*O+.6*b)+ah.bodyX,j=120+120*a*Math.sin(1.3*O+2.3*b)+ah.bodyY+w*M.pulse*2;U.current.setAttribute("transform",`translate(${h(i)} ${h(j)}) rotate(${h(g)}) scale(${f.toFixed(4)} ${e.toFixed(4)}) translate(${-120} ${-120})`)}let ai=(F[0]+F[1]+F[2])/3,aj=(F[3]+F[4])/2,ak=(F[5]+F[6]+F[7])/3,al=ai+aj+ak>.03&&M.ripple>0,am=p.churn>0;if(W.current&&(al||am)){let a=H,c=m(ao.current.radii.map((c,d)=>{let e=d/128*f,g=c;return al&&(g+=M.ripple*(ai*Math.sin(2*e+G[0])+.7*aj*Math.sin(3*e+G[1])+.5*ak*Math.sin(4*e+G[2]))),am&&(g+=p.churn*(.65*Math.sin(2*e+a)+.35*Math.sin(3*e-1.4*a+b))),g}));W.current.setAttribute("d",c),X.current?.setAttribute("d",c),$.current?.setAttribute("d",c),_.current?.setAttribute("d",c),aa.current?.setAttribute("d",c),ac.current?.setAttribute("d",c),ab.current?.setAttribute("d",c)}if(V.current){let a=0,e=0;M.follow&&0;c+=(a-c)*.12,g+=(e-g)*.12;let f=M.float*p.float*(.62*Math.sin(1.15*O+b)+.38*Math.sin(.47*O+2.1*b)),i=1;if(0===k&&(n>0&&d>=n?(k=d,n=0):M.blink&&d>=j&&(k=d),k>0&&(l=110+60*Math.random())),k>0){let a=(d-k)/l;a>=1?(k=0,j=d+E()*p.blink):i=1-.94*Math.sin(Math.PI*a)}V.current.setAttribute("transform",`translate(${h(c+ah.eyeX+p.gazeX)} ${h(g+f+ah.eyeY+p.gazeY)}) translate(120 ${M.eyeY}) scale(1 ${i.toFixed(3)}) translate(${-120} ${-M.eyeY})`);let m=ah.eyeWid*(1-.13*t)*p.eyes,o=ah.eyeLen*(1+.04*t)*p.eyes,q=M.eyeGap/2;for(let[a,b]of[Y,Z].entries()){if(!b.current)continue;let c=120+(0===a?-q:q),d=0===a?M.eyeTilt:M.eyeTilt+M.eyeSkew,e=o.toFixed(3),f=m.toFixed(3);b.current.setAttribute("transform",`translate(${h(c)} ${M.eyeY}) rotate(${h(d)}) scale(${e} ${f}) rotate(${h(-d)}) translate(${h(-c)} ${-M.eyeY})`)}}};return a=requestAnimationFrame(L),()=>cancelAnimationFrame(a)},[ae]);let ap=P.notifyAngle*Math.PI/180;return(0,b.jsxs)("svg",{ref:ae,"data-slot":"bot-mark","aria-hidden":"true",className:L,viewBox:g,width:a,height:a,style:{overflow:"visible","--fg":ai},children:[(0,b.jsxs)("defs",{children:[(0,b.jsx)("clipPath",{id:N,children:(0,b.jsx)("path",{ref:X,d:al})}),P.fill&&(0,b.jsxs)("mask",{id:S,maskUnits:"userSpaceOnUse",children:[(0,b.jsx)("path",{ref:ab,d:al,fill:"#fff"}),(0,b.jsx)("g",{clipPath:`url(#${N})`,children:(0,b.jsxs)("g",{ref:V,children:[(0,b.jsx)("g",{ref:Y,children:(0,b.jsx)("path",{d:am,fill:"#000"})}),(0,b.jsx)("g",{ref:Z,children:(0,b.jsx)("path",{d:an,fill:"#000"})})]})}),aj&&(0,b.jsx)("circle",{cx:h(120+Math.cos(ap)*P.notifyDist),cy:h(120+Math.sin(ap)*P.notifyDist),r:P.notifyR+P.notifyRing,fill:"#000"})]}),P.shadow>0&&(0,b.jsx)("filter",{id:T,x:"-60%",y:"-60%",width:"220%",height:"220%",colorInterpolationFilters:"sRGB",children:(0,b.jsx)("feGaussianBlur",{stdDeviation:9})}),P.glow>0&&(0,b.jsxs)("mask",{id:R,maskUnits:"userSpaceOnUse",x:-72,y:-72,width:384,height:384,children:[(0,b.jsx)("rect",{x:-72,y:-72,width:384,height:384,fill:"#fff"}),(0,b.jsx)("path",{ref:_,d:al,fill:"#000"})]}),P.glow>0&&(0,b.jsx)("filter",{id:Q,x:"-60%",y:"-60%",width:"220%",height:"220%",colorInterpolationFilters:"sRGB",children:(0,b.jsx)("feGaussianBlur",{stdDeviation:P.glow})})]}),(0,b.jsxs)("g",{ref:U,children:[P.shadow>0&&(0,b.jsx)("path",{ref:aa,d:al,fill:"var(--fg)",filter:`url(#${T})`,transform:"translate(0 12)",opacity:0}),P.glow>0&&(0,b.jsx)("path",{ref:$,d:al,fill:P.glowColor??"var(--fg)",filter:`url(#${Q})`,mask:`url(#${R})`,opacity:P.glowStrength/100}),P.rim>0&&(0,b.jsx)("path",{ref:ac,d:al,fill:"none",stroke:P.rimColor,strokeWidth:2*P.rim,strokeLinejoin:"round"}),(0,b.jsx)("path",{ref:W,d:al,fill:P.fill?"var(--fg)":"none",stroke:P.fill?"none":"var(--fg)",strokeWidth:P.fill?0:P.strokeWidth,strokeLinejoin:"round",mask:P.fill?`url(#${S})`:void 0}),!P.fill&&(0,b.jsx)("g",{clipPath:`url(#${N})`,children:(0,b.jsxs)("g",{ref:V,children:[(0,b.jsx)("g",{ref:Y,children:(0,b.jsx)("path",{d:am,fill:"var(--fg)"})}),(0,b.jsx)("g",{ref:Z,children:(0,b.jsx)("path",{d:an,fill:"var(--fg)"})})]})}),aj&&(0,b.jsx)("circle",{cx:h(120+Math.cos(ap)*P.notifyDist),cy:h(120+Math.sin(ap)*P.notifyDist),r:P.notifyR,fill:P.notifyColor})]})]})}a.s(["BotMark",0,G,"BotsMark",0,function({size:a=16,className:c}){return(0,b.jsx)(G,{size:a,seed:"bots",className:c})},"markAtRest",0,function(a){let b=(a,b)=>n({len:o.eyeLen,width:o.eyeWidth,bend:o.eyeBend,taper:o.eyeTaper,tilt:b,cx:a,cy:o.eyeY});return{head:m(u(o,o.shape,F(a))),eyes:[b(120-o.eyeGap/2,o.eyeTilt),b(120+o.eyeGap/2,o.eyeTilt+o.eyeSkew)]}}])},324835,396398,a=>{"use strict";let b=[1,3,5,8,13,21,34,55,90],c=[1,1.1,1.25,1.45,1.7,2,2.4,2.9],d=c.length,e=Array(d).fill(0);function f(a,e,f){a.getByteFrequencyData(e);for(let a=0;a<d;a++){let d=0,g=b[a],h=Math.min(b[a+1],e.length);for(let a=g;a<h;a++)d+=e[a];let i=h>g?d/(h-g)/255:0;f[a]=Math.min(1,i*c[a])}return f}a.s(["SPECTRUM_BANDS",0,d,"createAudioTap",0,function(){let a=new Audio;a.autoplay=!0;let b=null,c=null,g=new Uint8Array(0),h=null,i=Array(d).fill(0),j=null,k=new Uint8Array(0),l=null,m=Array(d).fill(0);function n(){if(b&&c)return{context:b,analyser:c};let a=new AudioContext,d=a.createAnalyser();return d.fftSize=512,d.smoothingTimeConstant=.55,g=new Uint8Array(d.frequencyBinCount),a.resume().catch(()=>{}),b=a,c=d,{context:a,analyser:d}}return{element:a,open:n,listen(a){if(h?.mediaStream===a)return;h?.disconnect();let b=n();(h=b.context.createMediaStreamSource(a)).connect(b.analyser),b.context.resume()},speaker(){let a=n();return a.analyser.connect(a.context.destination),a},hear(a){if(l?.mediaStream===a)return;l?.disconnect();let b=n();j||((j=b.context.createAnalyser()).fftSize=512,j.smoothingTimeConstant=.6,k=new Uint8Array(j.frequencyBinCount)),(l=b.context.createMediaStreamSource(a)).connect(j),b.context.resume()},read:()=>c?f(c,g,i):e,readMic:()=>j?f(j,k,m):e}},"createVoiceFollower",0,function(){let a=Array(d).fill(0),b=Array(d).fill(0),c={level:0,phrase:0,onset:0,bands:Array(d).fill(0)},e=0,f=0,g=1/0,h=(a,b,c,d)=>a+(b-a)*Math.min(1,d/c);return{read(i,j){let k=0,l=0,m=0;for(let e=0;e<d;e++){let d=i[e]??0;k+=d,a[e]=h(a[e],d,d>a[e]?.03:2.5,j),b[e]=h(b[e],d,d<b[e]?.12:3,j);let f=a[e]-b[e],g=f>.12?Math.min(1,Math.max(0,(d-b[e])/f)):0;c.bands[e]=g,f>.12&&(l+=g,m++)}let n=Math.min(1,Math.max(0,(k/d-.03)/.09)),o=n*n*(3-2*n);for(let a=0;a<d;a++)c.bands[a]*=o;return c.level=(m?l/m:0)*o,e=h(e,c.level,.05,j),f=h(f,c.level,.22,j),c.phrase=h(c.phrase,c.level,.45,j),g+=j,c.onset=0,e>f+.1&&e>.3&&g>.12&&(g=0,c.onset=Math.min(1,e)),c}}}],396398);let g="currentColor",h=[{id:"system",label:"System",value:g},{id:"slate",label:"Slate",value:"#64748B"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"cyan",label:"Cyan",value:"#06B6D4"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"green",label:"Green",value:"#22C55E"},{id:"lime",label:"Lime",value:"#84CC16"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"orange",label:"Orange",value:"#F97316"},{id:"red",label:"Red",value:"#EF4444"},{id:"pink",label:"Pink",value:"#EC4899"},{id:"violet",label:"Violet",value:"#8B5CF6"},{id:"fuchsia",label:"Fuchsia",value:"#D946EF"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"sky",label:"Sky",value:"#0EA5E9"},{id:"emerald",label:"Emerald",value:"#10B981"},{id:"yellow",label:"Yellow",value:"#EAB308"},{id:"stone",label:"Stone",value:"#78716C"},{id:"navy",label:"Navy",value:"#1E3A8A",dark:!0},{id:"ocean",label:"Ocean",value:"#155E75",dark:!0},{id:"pine",label:"Pine",value:"#166534",dark:!0},{id:"moss",label:"Moss",value:"#3F6212",dark:!0},{id:"olive",label:"Olive",value:"#854D0E",dark:!0},{id:"rust",label:"Rust",value:"#9A3412",dark:!0},{id:"wine",label:"Wine",value:"#9F1239",dark:!0},{id:"plum",label:"Plum",value:"#6B21A8",dark:!0},{id:"grape",label:"Grape",value:"#5B21B6",dark:!0},{id:"iron",label:"Iron",value:"#334155",dark:!0}],i=Object.fromEntries(h.map(a=>[a.id,a.value])),j=h.filter(a=>a.value!==g).map(a=>a.value),k=[i.amber,i.red],l=[h.filter(a=>a.value!==g&&!("dark"in a)).map(a=>a.value),h.filter(a=>"dark"in a).map(a=>a.value)];a.s(["MARK_BANDS",0,d,"MARK_PALETTE",0,j,"MARK_PALETTE_ROWS",0,l,"MARK_SHAPES",0,["blob","poly","squircle"],"MARK_SYSTEM",0,g,"randomMarkColors",0,function(a){let b=j.filter(a=>!k.includes(a));for(let a=b.length-1;a>0;a--){let c=Math.floor(Math.random()*(a+1));[b[a],b[c]]=[b[c],b[a]]}return b.slice(0,a)}],324835)}];
2
+
3
+ //# sourceMappingURL=features_bot_1s_-2vj._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[405593,a=>{"use strict";var b=a.i(187924),c=a.i(164831);let d={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};d.node;let e=(0,c.default)(d),f={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};f.node;let g=(0,c.default)(f);var h=a.i(752562),i=a.i(141146);let j={name:"clapperboard",size:24,node:[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]};j.node;let k=(0,c.default)(j);var l=a.i(71215),m=a.i(26268),n=a.i(572131),o=a.i(767561),p=a.i(340695),q=a.i(205522),r=a.i(446181),s=a.i(608902),t=a.i(379630),u=a.i(61876),v=a.i(913834),w=a.i(405050);let x=(0,w.createServerReference)("7f250a5798c865a049782fe8ddb8318b44778fc093",w.callServer,void 0,w.findSourceMapURL,"removeConfigAction");var y=a.i(429619),z=a.i(478978),A=a.i(619477),B=a.i(313237),C=a.i(759497),D=a.i(497895);let E={image:l.Image,video:k,speech:e,transcription:g};function F({section:a}){let{data:c,isLoading:d,error:e}=(0,C.useServerRoute)(o.queryKey.config);if(d)return(0,b.jsx)(A.SettingSkeleton,{rows:4});if(e)return(0,b.jsx)(A.SettingError,{message:e.message});let f=a=>(0,z.isConfigSet)(c,a),g=a=>c?.find(b=>b.key===a)?.value,h=z.CONFIG_GROUPS.filter(b=>b.section===a),i=h.flatMap(a=>a.entries);return(0,b.jsx)(A.SettingScreen,{footer:(0,b.jsx)(A.SettingRailNote,{children:"keys"===a?(0,b.jsxs)(b.Fragment,{children:[i.filter(a=>f(a.key)).length," of"," ",i.length," set",h.some(a=>!(0,z.groupSatisfied)(a,f))?" · a call needs one voice key":" · your keys stay on this machine"]}):(0,b.jsxs)(b.Fragment,{children:[i.length," of ",i.length," resolved ·"," ",i.filter(a=>g(a.key)).length," pinned"]})}),children:h.map(a=>(0,b.jsx)(A.SettingGroup,{label:a.title,hint:a.hint,right:(0,b.jsx)(G,{group:a,isSet:f}),children:(0,b.jsx)(A.SettingItems,{children:a.entries.map(c=>c.choices?(0,b.jsx)(I,{entry:c,choices:c.choices,value:g(c.key),isSet:f},c.key):(0,b.jsx)(H,{entry:c,set:f(c.key),needed:!(0,z.groupSatisfied)(a,f)},c.key))})},a.id))})}function G({group:a,isSet:c}){return"none"===a.require?null:(0,z.groupSatisfied)(a,c)?(0,b.jsxs)("span",{className:"flex items-center gap-1 font-mono text-[11px] text-muted-foreground",children:[(0,b.jsx)(h.Check,{className:"size-3"}),"ready"]}):(0,b.jsxs)("span",{className:(0,D.cn)("flex items-center gap-1 font-mono text-[11px]",D.WAITING_INK),children:[(0,b.jsx)(m.TriangleAlert,{className:"size-3"}),a.note??"Required"]})}function H({entry:a,set:c,needed:d}){return(0,b.jsxs)("button",{type:"button",onClick:()=>{var d,e;return d=a,e=c,r.notify.component({className:"sm:max-w-md",renderer:({close:a})=>(0,b.jsx)(L,{entry:d,set:e,onDone:a})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[a.provider&&(0,b.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,b.jsx)(t.ProviderIcon,{provider:a.provider,className:"size-4"})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,b.jsx)("span",{className:"block truncate text-sm font-medium",children:a.label}),(0,b.jsx)("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:a.key})]}),(0,b.jsxs)("span",{className:(0,D.cn)("flex shrink-0 items-center gap-1.5 font-mono text-xs",c?"text-muted-foreground":d?D.WAITING_INK:"text-muted-foreground/60"),children:[c&&(0,b.jsx)(h.Check,{className:"size-3"}),!c&&d&&(0,b.jsx)(m.TriangleAlert,{className:"size-3"}),c?"Set":d?"Needed":"Not set"]}),(0,b.jsx)(i.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function I({entry:a,choices:c,value:d,isSet:e}){let f=c.find(a=>a.value===d),g=c.filter(a=>e(a.needs)),h=d&&!f?d:null,j=a.kind?E[a.kind]:v.BotsMark;return(0,b.jsxs)("button",{type:"button",onClick:()=>{var d,e,f;return a.kind||a.text?(d=a,r.notify.component({className:"sm:max-w-lg",renderer:({close:a})=>(0,b.jsx)(J,{entry:d,onDone:a})})):(e=a,f=c,r.notify.component({className:"sm:max-w-md",renderer:({close:a})=>(0,b.jsx)(K,{entry:e,choices:f,onDone:a})}))},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,b.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,b.jsx)(j,{className:"size-4 text-muted-foreground"})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsx)("span",{className:"block truncate text-sm font-medium",children:a.label}),(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[!f&&!h&&(0,b.jsx)("span",{className:(0,D.cn)("shrink-0 rounded-[5px] border border-border/60 px-1 font-mono text-[10px]",a.kind?D.WAITING_INK:"text-muted-foreground"),children:a.kind?"off":"auto"}),(0,b.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground",children:f?.label??h??(a.kind?"Not offered to bots until you pick one":g[0]?.label??"No key for any of these yet")})]})]}),(0,b.jsx)(i.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function J({entry:a,onDone:c}){let{data:d}=(0,C.useServerRoute)(o.queryKey.config),e=d?.find(b=>b.key===a.key)?.value,[f,g]=(0,n.useState)(()=>{let b=a.text?(0,u.parseTextModel)(e):(0,u.parseMediaModel)(e);return{provider:b?.provider??null,model:b?.model??""}}),h=()=>{(0,C.revalidate)(o.queryKey.config),c()},[i]=(0,B.useServerAction)(y.setConfigAction,{okMessage:`${a.label} saved`,onOk:h}),[j,k]=(0,B.useServerAction)(x,{okMessage:a.kind?`${a.label} switched off`:`${a.label} back to automatic`,onOk:h});return(0,b.jsx)(A.SettingDialogContent,{title:a.label,description:a.hint,footer:(0,b.jsxs)(b.Fragment,{children:[e&&(0,b.jsx)(p.Button,{variant:"ghost",loading:k,onClick:()=>j(a.key),children:a.kind?"Turn off":"Automatic"}),(0,b.jsx)(p.Button,{variant:"ghost",onClick:c,children:"Close"})]}),children:(0,b.jsx)(s.ModelPicker,{kind:a.kind,provider:f.provider,model:f.model,onChange:b=>{g(b),b.model.trim()&&i(a.key,`${b.provider}/${b.model.trim()}`)}})})}function K({entry:a,choices:c,onDone:d}){let{data:e}=(0,C.useServerRoute)(o.queryKey.config),f=e?.find(b=>b.key===a.key)?.value,g=()=>{(0,C.revalidate)(o.queryKey.config),d()},[h,i]=(0,B.useServerAction)(y.setConfigAction,{okMessage:`${a.label} saved`,onOk:g}),[j,k]=(0,B.useServerAction)(x,{okMessage:a.kind?`${a.label} switched off`:`${a.label} back to automatic`,onOk:g});return(0,b.jsx)(A.SettingDialogContent,{title:a.label,description:a.hint,footer:(0,b.jsxs)(b.Fragment,{children:[f&&(0,b.jsx)(p.Button,{variant:"ghost",loading:k,onClick:()=>j(a.key),children:a.kind?"Turn off":"Automatic"}),(0,b.jsx)(p.Button,{variant:"ghost",onClick:d,children:"Close"})]}),children:(0,b.jsx)(A.SettingChoiceRows,{options:c.map(a=>({value:a.value,label:a.label,disabled:!(0,z.isConfigSet)(e,a.needs)&&`needs ${a.needs}`})),value:f,onChange:b=>h(a.key,b),disabled:i})})}function L({entry:a,set:c,onDone:d}){let[e,f]=(0,n.useState)(""),g=()=>{(0,C.revalidate)(o.queryKey.config),(0,C.revalidate)(o.queryKey.llmModel)},[h,i]=(0,B.useServerAction)(y.setConfigAction,{okMessage:`${a.label} key saved`,onOk:()=>{g(),d()}}),[j,k]=(0,B.useServerAction)(x,{okMessage:`${a.label} key removed`,onOk:()=>{g(),d()}});return(0,b.jsx)(A.SettingDialogContent,{title:a.label,description:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"font-mono",children:a.key}),a.hint&&(0,b.jsxs)(b.Fragment,{children:[" · ",a.hint]})]}),footer:(0,b.jsxs)(b.Fragment,{children:[c&&(0,b.jsx)(p.Button,{variant:"ghost",loading:k,onClick:()=>j(a.key),children:"Remove"}),(0,b.jsx)(p.Button,{variant:"ghost",onClick:d,children:"Cancel"}),(0,b.jsx)(p.Button,{loading:i,disabled:e.trim().length<8,onClick:()=>h(a.key,e),children:c?"Replace":"Save"})]}),children:(0,b.jsx)(q.Input,{value:e,onChange:a=>f(a.target.value),onKeyDown:b=>{"Enter"===b.key&&e.trim().length>=8&&h(a.key,e)},placeholder:c?"New value — replaces the current key":a.key,spellCheck:!1,type:"password",autoFocus:!0})})}a.s(["ConfigGroups",0,F,"ConfigSetting",0,function(){return(0,b.jsx)(F,{section:"keys"})}],405593)}];
1
+ module.exports=[405593,a=>{"use strict";var b=a.i(187924),c=a.i(987234),d=a.i(164831);let e={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};e.node;let f=(0,d.default)(e),g={name:"captions",size:24,node:[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],aliases:["subtitles"]};g.node;let h=(0,d.default)(g);var i=a.i(752562),j=a.i(141146);let k={name:"clapperboard",size:24,node:[["path",{d:"m12.296 3.464 3.02 3.956",key:"qash78"}],["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z",key:"1h7j8b"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"4lm6w1"}],["path",{d:"m6.18 5.276 3.1 3.899",key:"zjj9t3"}]]};k.node;let l=(0,d.default)(k);var m=a.i(71215),n=a.i(126766),o=a.i(233540),p=a.i(26268),q=a.i(572131),r=a.i(767561),s=a.i(340695),t=a.i(205522),u=a.i(446181),v=a.i(950463),w=a.i(852307),x=a.i(608902),y=a.i(379630),z=a.i(61876),A=a.i(913834),B=a.i(405050);let C=(0,B.createServerReference)("7f9bc624b9c7f137e24cde3bf2bd49ab2a3d39404c",B.callServer,void 0,B.findSourceMapURL,"removeConfigAction");var D=a.i(86776),E=a.i(478978),F=a.i(619477),G=a.i(313237),H=a.i(759497),I=a.i(497895);let J={[E.EXA_API_KEY]:o.Search},K={image:m.Image,video:l,speech:f,transcription:h};function L({section:a}){let{data:c,isLoading:d,error:e}=(0,H.useServerRoute)(r.queryKey.config);if(d)return(0,b.jsx)(F.SettingSkeleton,{rows:4});if(e)return(0,b.jsx)(F.SettingError,{message:e.message});let f=a=>(0,E.isConfigSet)(c,a),g=a=>c?.find(b=>b.key===a)?.value,h=E.CONFIG_GROUPS.filter(b=>b.section===a),i=h.flatMap(a=>a.entries);return(0,b.jsx)(F.SettingScreen,{footer:(0,b.jsx)(F.SettingRailNote,{children:"keys"===a?(0,b.jsxs)(b.Fragment,{children:[i.filter(a=>f(a.key)).length," of"," ",i.length," set",h.some(a=>!(0,E.groupSatisfied)(a,f))?" · a call needs one voice key":" · your keys stay on this machine"]}):(0,b.jsxs)(b.Fragment,{children:[i.length," of ",i.length," resolved ·"," ",i.filter(a=>g(a.key)).length," pinned"]})}),children:h.map(a=>(0,b.jsx)(F.SettingGroup,{label:a.title,hint:a.hint,right:(0,b.jsx)(M,{group:a,isSet:f}),children:(0,b.jsx)(F.SettingItems,{children:a.entries.map(c=>c.choices?(0,b.jsx)(W,{entry:c,choices:c.choices,value:g(c.key),isSet:f},c.key):(0,b.jsx)(N,{entry:c,set:f(c.key),needed:!(0,E.groupSatisfied)(a,f)},c.key))})},a.id))})}function M({group:a,isSet:c}){return"none"===a.require?null:(0,E.groupSatisfied)(a,c)?(0,b.jsxs)("span",{className:"flex items-center gap-1 font-mono text-[11px] text-muted-foreground",children:[(0,b.jsx)(i.Check,{className:"size-3"}),"ready"]}):(0,b.jsxs)("span",{className:(0,I.cn)("flex items-center gap-1 font-mono text-[11px]",I.WAITING_INK),children:[(0,b.jsx)(p.TriangleAlert,{className:"size-3"}),a.note??"Required"]})}function N({entry:a,set:c,needed:d}){let e=Q(a,c),f=S(a,c),g=R(a,c),h=f.data?T(f.data):P(c,d,e.data,a.signIn);return(0,b.jsxs)("button",{type:"button",onClick:()=>{var d,e,f;return a.signIn?(d=a,u.notify.component({className:"sm:max-w-md",renderer:({close:a})=>(0,b.jsx)(Z,{entry:d,onDone:a})})):(e=a,f=c,u.notify.component({className:"sm:max-w-md",renderer:({close:a})=>(0,b.jsx)($,{entry:e,set:f,onDone:a})}))},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,b.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,b.jsx)(V,{entry:a})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,b.jsx)("span",{className:"block truncate text-sm font-medium",children:a.label}),(0,b.jsx)("span",{className:"block truncate font-mono text-xs text-muted-foreground",children:a.signIn?c?U(f.data,g):"sign in with your account":a.key})]}),e.isLoading||f.isLoading?(0,b.jsx)(v.Skeleton,{className:"h-3 w-20 shrink-0"}):(0,b.jsxs)("span",{className:(0,I.cn)("flex shrink-0 items-center gap-1.5 font-mono text-xs",h.ink),children:[h.warn?(0,b.jsx)(p.TriangleAlert,{className:"size-3"}):c&&(0,b.jsx)(i.Check,{className:"size-3"}),h.text]}),(0,b.jsx)(j.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}let O=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function P(a,b,c,d){return a?c?"refused"in c?{text:"Key refused",ink:"text-destructive",warn:!0}:{text:`${O.format(c.balance)} left`,ink:c.low?I.WAITING_INK:"text-muted-foreground",warn:c.low}:{text:d?"Signed in":"Set",ink:"text-muted-foreground",warn:!1}:b?{text:"Needed",ink:I.WAITING_INK,warn:!0}:{text:d?"Signed out":"Not set",ink:"text-muted-foreground/60",warn:!1}}function Q(a,b){return(0,H.useServerRoute)(b&&"vercel-ai-gateway"===a.provider?r.queryKey.gatewayCredits:null)}function R(a,b){let{data:c}=(0,H.useServerRoute)(b&&a.signIn?r.queryKey.llmModel:null);return c?.find(b=>b.id===a.provider)?.plan??null}function S(a,b){return(0,H.useServerRoute)(b&&a.signIn?r.queryKey.subscriptionUsage:null)}function T(a){return"refused"in a?{text:"Sign-in refused",ink:"text-destructive",warn:!0}:{text:a.spent?"Limit reached":`${a.usedPercent}% used`,ink:a.high?I.WAITING_INK:"text-muted-foreground",warn:a.high}}function U(a,b){let d=!a||"refused"in a?null:a,e=`${d?.plan??b??"unknown"} plan`;return d?.resetsAt?`${e} \xb7 resets in ${(0,c.formatDistanceToNowStrict)(new Date(d.resetsAt))}`:e}function V({entry:a}){if(a.provider)return(0,b.jsx)(y.ProviderIcon,{provider:a.provider,className:"size-4"});let c=J[a.key]??n.KeyRound;return(0,b.jsx)(c,{className:"size-4 text-muted-foreground"})}function W({entry:a,choices:c,value:d,isSet:e}){let f=c.find(a=>a.value===d),g=c.filter(a=>e(a.needs)),h=d&&!f?d:null,i=a.kind?K[a.kind]:A.BotsMark;return(0,b.jsxs)("button",{type:"button",onClick:()=>{var d,e,f;return a.kind||a.text?(d=a,u.notify.component({className:"sm:max-w-lg",renderer:({close:a})=>(0,b.jsx)(X,{entry:d,onDone:a})})):(e=a,f=c,u.notify.component({className:"sm:max-w-md",renderer:({close:a})=>(0,b.jsx)(Y,{entry:e,choices:f,onDone:a})}))},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,b.jsx)("span",{className:"grid size-8 shrink-0 place-items-center rounded-lg bg-muted/60",children:(0,b.jsx)(i,{className:"size-4 text-muted-foreground"})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsx)("span",{className:"block truncate text-sm font-medium",children:a.label}),(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[!f&&!h&&(0,b.jsx)("span",{className:(0,I.cn)("shrink-0 rounded-[5px] border border-border/60 px-1 font-mono text-[10px]",a.kind?I.WAITING_INK:"text-muted-foreground"),children:a.kind?"off":"auto"}),(0,b.jsx)("span",{className:"truncate font-mono text-xs text-muted-foreground",children:f?.label??h??(a.kind?"Not offered to bots until you pick one":g[0]?.label??"No key for any of these yet")})]})]}),(0,b.jsx)(j.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function X({entry:a,onDone:c}){let{data:d}=(0,H.useServerRoute)(r.queryKey.config),e=d?.find(b=>b.key===a.key)?.value,[f,g]=(0,q.useState)(()=>{let b=a.text?(0,z.parseTextModel)(e):(0,z.parseMediaModel)(e);return{provider:b?.provider??null,model:b?.model??""}}),h=()=>{(0,H.revalidate)(r.queryKey.config),c()},[i]=(0,G.useServerAction)(D.setConfigAction,{okMessage:`${a.label} saved`,onOk:h}),[j,k]=(0,G.useServerAction)(C,{okMessage:a.kind?`${a.label} switched off`:`${a.label} back to automatic`,onOk:h});return(0,b.jsx)(F.SettingDialogContent,{title:a.label,description:a.hint,footer:(0,b.jsxs)(b.Fragment,{children:[e&&(0,b.jsx)(s.Button,{variant:"ghost",loading:k,onClick:()=>j(a.key),children:a.kind?"Turn off":"Automatic"}),(0,b.jsx)(s.Button,{variant:"ghost",onClick:c,children:"Close"})]}),children:(0,b.jsx)(x.ModelPicker,{kind:a.kind,provider:f.provider,model:f.model,onChange:b=>{g(b),b.model.trim()&&i(a.key,`${b.provider}/${b.model.trim()}`)}})})}function Y({entry:a,choices:c,onDone:d}){let{data:e}=(0,H.useServerRoute)(r.queryKey.config),f=e?.find(b=>b.key===a.key)?.value,g=()=>{(0,H.revalidate)(r.queryKey.config),d()},[h,i]=(0,G.useServerAction)(D.setConfigAction,{okMessage:`${a.label} saved`,onOk:g}),[j,k]=(0,G.useServerAction)(C,{okMessage:a.kind?`${a.label} switched off`:`${a.label} back to automatic`,onOk:g});return(0,b.jsx)(F.SettingDialogContent,{title:a.label,description:a.hint,footer:(0,b.jsxs)(b.Fragment,{children:[f&&(0,b.jsx)(s.Button,{variant:"ghost",loading:k,onClick:()=>j(a.key),children:a.kind?"Turn off":"Automatic"}),(0,b.jsx)(s.Button,{variant:"ghost",onClick:d,children:"Close"})]}),children:(0,b.jsx)(F.SettingChoiceRows,{options:c.map(a=>({value:a.value,label:a.label,disabled:!(0,E.isConfigSet)(e,a.needs)&&`needs ${a.needs}`})),value:f,onChange:b=>h(a.key,b),disabled:i})})}function Z({entry:a,onDone:c}){let{data:d}=(0,H.useServerRoute)(r.queryKey.config),e=(0,E.isConfigSet)(d,a.key),f=R(a,e),g=S(a,e),h=g.data?T(g.data):null,[i,j]=(0,G.useServerAction)(C,{okMessage:`Signed out of ${a.label}`,onOk:()=>{(0,H.revalidate)(r.queryKey.config),(0,H.revalidate)(r.queryKey.llmModel),c()}});return(0,b.jsx)(F.SettingDialogContent,{title:a.label,description:e?(0,b.jsxs)(b.Fragment,{children:["Signed in ·"," ",(0,b.jsx)("span",{className:"font-mono",children:U(g.data,f)}),h&&(0,b.jsxs)(b.Fragment,{children:[" · ",(0,b.jsx)("span",{className:(0,I.cn)("font-mono",h.ink),children:h.text})]})]}):"Sign in with your ChatGPT account instead of a key",footer:(0,b.jsxs)(b.Fragment,{children:[e&&(0,b.jsx)(s.Button,{variant:"ghost",loading:j,onClick:()=>i(a.key),children:"Sign out"}),(0,b.jsx)(s.Button,{variant:"ghost",onClick:c,children:e?"Close":"Cancel"}),!e&&(0,b.jsx)(w.ChatGptSignIn,{})]}),children:(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(F.SettingNote,{children:e?"Bots on this subscription spend your plan's usage, not a key. When it runs out, the job stops and says when it resets.":"The sign-in opens in its own window. Approve it there, and this turns to signed in by itself."}),g.data&&"refused"in g.data&&(0,b.jsx)(F.SettingNote,{className:"wrap-break-word text-destructive",children:g.data.refused})]})})}function $({entry:a,set:c,onDone:d}){let[e,f]=(0,q.useState)(""),{data:g}=Q(a,c),h=g?P(c,!1,g):null,i=()=>{(0,H.revalidate)(r.queryKey.config),(0,H.revalidate)(r.queryKey.llmModel)},[j,k]=(0,G.useServerAction)(D.setConfigAction,{okMessage:`${a.label} key saved`,onOk:()=>{i(),d()}}),[l,m]=(0,G.useServerAction)(C,{okMessage:`${a.label} key removed`,onOk:()=>{i(),d()}});return(0,b.jsx)(F.SettingDialogContent,{title:a.label,description:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"font-mono",children:a.key}),a.hint&&(0,b.jsxs)(b.Fragment,{children:[" · ",a.hint]}),h&&(0,b.jsxs)(b.Fragment,{children:[" · ",(0,b.jsx)("span",{className:(0,I.cn)("font-mono",h.ink),children:h.text})]})]}),footer:(0,b.jsxs)(b.Fragment,{children:[c&&(0,b.jsx)(s.Button,{variant:"ghost",loading:m,onClick:()=>l(a.key),children:"Remove"}),(0,b.jsx)(s.Button,{variant:"ghost",onClick:d,children:"Cancel"}),(0,b.jsx)(s.Button,{loading:k,disabled:e.trim().length<8,onClick:()=>j(a.key,e),children:c?"Replace":"Save"})]}),children:(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(t.Input,{value:e,onChange:a=>f(a.target.value),onKeyDown:b=>{"Enter"===b.key&&e.trim().length>=8&&j(a.key,e)},placeholder:c?"New value — replaces the current key":a.key,spellCheck:!1,type:"password",autoFocus:!0}),g&&"refused"in g&&(0,b.jsx)(F.SettingNote,{className:"wrap-break-word text-destructive",children:g.refused})]})})}a.s(["ConfigGroups",0,L,"ConfigSetting",0,function(){return(0,b.jsx)(L,{section:"keys"})}],405593)}];
2
2
 
3
3
  //# sourceMappingURL=features_config_components_config-setting_tsx_0xfwqdg._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[26444,a=>{"use strict";var b=a.i(187924),c=a.i(752562),d=a.i(589027),e=a.i(141146),f=a.i(164831);let g={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};g.node;let h=(0,f.default)(g);var i=a.i(403512);let j={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};j.node;let k=(0,f.default)(j),l={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};l.node;let m=(0,f.default)(l);var n=a.i(951675),o=a.i(474215),p=a.i(572131),q=a.i(767561),r=a.i(340695),s=a.i(316474),t=a.i(205522),u=a.i(497895);let v=(0,p.memo)(({data:a,name:c,initialExpandDepth:d=2})=>{let e=(0,p.useMemo)(()=>"string"==typeof a?function(a){let b=a.trim();if(!(b.startsWith("{")&&b.endsWith("}"))&&!(b.startsWith("[")&&b.endsWith("]")))return{success:!1,data:a};try{return{success:!0,data:JSON.parse(a)}}catch{return{success:!1,data:a}}}(a).data:a,[a]);return(0,b.jsx)("div",{className:" text-sm transition-all duration-300",children:(0,b.jsx)(w,{data:e,name:c,depth:0,initialExpandDepth:d})})});v.displayName="JsonView";let w=(0,p.memo)(({data:a,name:c,depth:d=0,initialExpandDepth:e})=>{var f;let g=void 0===a?"undefined":Array.isArray(a)?"array":null===a?"null":typeof a,[h,i]=(0,p.useState)("string"!==g&&d<e),j={number:"text-blue-500",boolean:"text-amber-500",null:"text-purple-500",undefined:"text-gray-500",string:"text-foreground break-all whitespace-pre-wrap",default:"text-muted-foreground"};switch(g){case"object":case"array":let k,l,m;return l=(k=(f="array"===g)?a:Object.entries(a)).length,m={open:f?"[":"{",close:f?"]":"}",collapsed:f?"[ ... ]":"{ ... }",empty:f?"[]":"{}"},0===l?(0,b.jsxs)("div",{className:"flex items-center",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsx)("span",{className:"text-muted-foreground",children:m.empty})]}):(0,b.jsxs)("div",{className:"flex flex-col",children:[(0,b.jsxs)("div",{className:"flex items-center mr-1 rounded cursor-pointer group hover:bg-input/30",onClick:()=>i(!h),children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[c,":"]}),h?(0,b.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:m.open}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:m.collapsed}),(0,b.jsxs)("span",{className:"ml-1 text-muted-foreground group-hover:text-foreground",children:[l," ",1===l?"item":"items"]})]})]}),h&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"pl-2 ml-4 border-l border-border",children:f?k.map((a,c)=>(0,b.jsx)("div",{className:"my-1",children:(0,b.jsx)(w,{data:a,name:`${c}`,depth:d+1,initialExpandDepth:e})},c)):k.map(([a,c])=>(0,b.jsx)("div",{className:"my-1",children:(0,b.jsx)(w,{data:c,name:a,depth:d+1,initialExpandDepth:e})},a))}),(0,b.jsx)("div",{className:"text-muted-foreground",children:m.close})]})]});case"string":return a.length>100?(0,b.jsxs)("div",{className:"flex mr-1 rounded group hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[c,":"]}),(0,b.jsx)("pre",{className:(0,u.cn)(j.string,"cursor-pointer group-hover:text-foreground"),onClick:()=>i(!h),title:h?"Click to collapse":"Click to expand",children:h?`"${a}"`:`"${a.slice(0,100)}..."`})]}):(0,b.jsxs)("div",{className:"flex mr-1 rounded hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsxs)("pre",{className:j.string,children:['"',a,'"']})]});case"undefined":return(0,b.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsx)("span",{className:j.undefined,children:"undefined"})]});default:return(0,b.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsx)("span",{className:j[g]||j.default,children:null===a?"null":String(a)})]})}});w.displayName="JsonNode";var x=a.i(446181),y=a.i(280281),z=a.i(621958),A=a.i(546893),B=a.i(864037),C=a.i(405050);let D=(0,C.createServerReference)("7fab1dd91d615032cf1deeda259f7b758bb7276c70",C.callServer,void 0,C.findSourceMapURL,"callToolAction"),E=(0,C.createServerReference)("7ff20864cdea076900a776fbaca0f394664cf1fc26",C.callServer,void 0,C.findSourceMapURL,"deleteServerAction"),F=(0,C.createServerReference)("7f51ee4209873ffb16ed0bf786dee13dd0ea5a776e",C.callServer,void 0,C.findSourceMapURL,"refreshServerAction"),G=(0,C.createServerReference)("7fc8bdee6fb9b42daee324c78238a8cc8c8f5316b9",C.callServer,void 0,C.findSourceMapURL,"registerServerAction");var H=a.i(156757),I=a.i(199169);let J=H.z.object({url:H.z.url(),headers:H.z.record(H.z.string(),H.z.string()).optional(),oauthClient:H.z.object({clientId:H.z.string().min(1),clientSecret:H.z.string().optional()}).optional()}),K=H.z.object({command:H.z.string().min(1),args:H.z.array(H.z.string()).optional(),env:H.z.record(H.z.string(),H.z.string()).optional()}),L=H.z.union([J,K]),M=H.z.object({name:H.z.string(),description:H.z.string().optional(),inputSchema:H.z.looseObject({}).optional(),outputSchema:H.z.looseObject({}).optional()});function N(a){return"url"in a}H.z.object({clientInformation:H.z.looseObject({}).optional(),tokens:H.z.looseObject({}).optional(),authorizationServer:H.z.looseObject({}).optional(),codeVerifier:H.z.string().optional(),state:H.z.string().optional()});let O=H.z.object({name:H.z.string().min(1).max(40),config:L,toolCount:H.z.number().int(),lastError:H.z.string().nullish()}),P=M.extend({id:H.z.number().int(),description:H.z.string().nullish()});O.omit({toolCount:!0}).extend({tools:P.array().default([]),toolsSyncedAt:I.DateLikeSchema});let Q=H.z.object({name:H.z.string().min(1,"Name is required").max(40).regex(/^[a-zA-Z0-9_-]+$/,"Only letters, numbers, - and _ are allowed"),config:L}),R=H.z.union([H.z.object({mcpServers:H.z.record(H.z.string(),L)}),H.z.record(H.z.string(),L)]),S=[{name:"notion",icon:"notion.so",description:"Pages, databases, and search",config:{url:"https://mcp.notion.com/mcp"}},{name:"github",icon:"github.com",description:"Repos, issues, PRs — paste a personal access token",config:{url:"https://api.githubcopilot.com/mcp/",headers:{Authorization:"Bearer <your-github-pat>"}}},{name:"linear",icon:"linear.app",description:"Issues, projects, and cycles",config:{url:"https://mcp.linear.app/mcp"}},{name:"slack",icon:"slack.com",description:"Channels, messages, and search",config:{url:"https://mcp.slack.com/mcp"}},{name:"atlassian",icon:"atlassian.com",description:"Jira and Confluence",config:{url:"https://mcp.atlassian.com/v1/mcp"}},{name:"asana",icon:"asana.com",description:"Tasks, projects, and portfolios",config:{url:"https://mcp.asana.com/mcp"}},{name:"monday",icon:"monday.com",description:"Boards, items, and updates",config:{url:"https://mcp.monday.com/mcp"}},{name:"clickup",icon:"clickup.com",description:"Tasks, docs, and spaces",config:{url:"https://mcp.clickup.com/mcp"}},{name:"airtable",icon:"airtable.com",description:"Bases, tables, and records",config:{url:"https://mcp.airtable.com/mcp"}},{name:"box",icon:"box.com",description:"Files, folders, and content search",config:{url:"https://mcp.box.com/mcp"}},{name:"figma",icon:"figma.com",description:"Design files and components",config:{url:"https://mcp.figma.com/mcp"}},{name:"canva",icon:"canva.com",description:"Create and manage designs",config:{url:"https://mcp.canva.com/mcp"}},{name:"sanity",icon:"sanity.io",description:"Structured content and datasets",config:{url:"https://mcp.sanity.io/mcp"}},{name:"webflow",icon:"webflow.com",description:"Sites, pages, and CMS collections",config:{url:"https://mcp.webflow.com/mcp"}},{name:"wix",icon:"wix.com",description:"Sites, stores, and bookings",config:{url:"https://mcp.wix.com/mcp"}},{name:"hubspot",icon:"hubspot.com",description:"Contacts, deals, and companies",config:{url:"https://app.hubspot.com/mcp/v1/http"}},{name:"attio",icon:"attio.com",description:"CRM records and lists",config:{url:"https://mcp.attio.com/mcp"}},{name:"intercom",icon:"intercom.com",description:"Conversations and support tickets",config:{url:"https://mcp.intercom.com/mcp"}},{name:"fireflies",icon:"fireflies.ai",description:"Meeting transcripts and summaries",config:{url:"https://mcp.fireflies.ai/mcp"}},{name:"stripe",icon:"stripe.com",description:"Payments, invoices, and customers",config:{url:"https://mcp.stripe.com"}},{name:"paypal",icon:"paypal.com",description:"Payments and orders",config:{url:"https://mcp.paypal.com/mcp"}},{name:"square",icon:"squareup.com",description:"Payments, catalog, and orders",config:{url:"https://mcp.squareup.com/mcp"}},{name:"ramp",icon:"ramp.com",description:"Spend, cards, and transactions",config:{url:"https://mcp.ramp.com/mcp"}},{name:"vercel",icon:"vercel.com",description:"Deployments and projects",config:{url:"https://mcp.vercel.com"}},{name:"netlify",icon:"netlify.com",description:"Sites, builds, and deploys",config:{url:"https://mcp.netlify.com/mcp"}},{name:"cloudflare",icon:"cloudflare.com",description:"Workers bindings — D1, R2, KV",config:{url:"https://bindings.mcp.cloudflare.com/mcp"}},{name:"supabase",icon:"supabase.com",description:"Projects, tables, and SQL",config:{url:"https://mcp.supabase.com/mcp"}},{name:"neon",icon:"neon.tech",description:"Postgres branches and queries",config:{url:"https://mcp.neon.tech/mcp"}},{name:"prisma",icon:"prisma.io",description:"Postgres databases and schema",config:{url:"https://mcp.prisma.io/mcp"}},{name:"sentry",icon:"sentry.io",description:"Errors and performance issues",config:{url:"https://mcp.sentry.dev/mcp"}},{name:"grafana",icon:"grafana.com",description:"Dashboards, metrics, and alerts",config:{url:"https://mcp.grafana.com/mcp"}},{name:"semgrep",icon:"semgrep.dev",description:"Scan code for security findings",config:{url:"https://mcp.semgrep.ai/mcp"}},{name:"postman",icon:"postman.com",description:"Collections, environments, and requests",config:{url:"https://mcp.postman.com/mcp"}},{name:"resend",icon:"resend.com",description:"Send email and manage audiences",config:{url:"https://mcp.resend.com/mcp"}},{name:"hugging-face",icon:"huggingface.co",description:"Models, datasets, and Spaces",config:{url:"https://huggingface.co/mcp"}},{name:"apify",icon:"apify.com",description:"Run scrapers and automation actors",config:{url:"https://mcp.apify.com"}},{name:"exa",icon:"exa.ai",description:"Web search for agents",config:{url:"https://mcp.exa.ai/mcp"}},{name:"kagi",icon:"kagi.com",description:"Search, summarize, and answer",config:{url:"https://mcp.kagi.com/mcp"}},{name:"context7",icon:"context7.com",description:"Up-to-date library docs",config:{url:"https://mcp.context7.com/mcp"}},{name:"deepwiki",icon:"deepwiki.com",description:"Ask questions about any GitHub repo",config:{url:"https://mcp.deepwiki.com/mcp"}},{name:"microsoft-learn",icon:"learn.microsoft.com",description:"Microsoft and Azure docs — no account",config:{url:"https://learn.microsoft.com/api/mcp"}},{name:"aws-knowledge",icon:"aws.amazon.com",description:"AWS docs and API references — no account",config:{url:"https://knowledge-mcp.global.api.aws"}},{name:"cloudflare-docs",icon:"developers.cloudflare.com",description:"Cloudflare docs — no account",config:{url:"https://docs.mcp.cloudflare.com/mcp"}},{name:"stack-overflow",icon:"stackoverflow.com",description:"Questions, answers, and teams",config:{url:"https://mcp.stackoverflow.com"}},{name:"playwright",icon:"playwright.dev",description:"Drive a real browser",config:{command:"npx",args:["@playwright/mcp@latest"]}},{name:"chrome-devtools",icon:"developer.chrome.com",description:"Inspect and debug Chrome",config:{command:"npx",args:["chrome-devtools-mcp@latest"]}}];var T=a.i(619477),U=a.i(30681),V=a.i(313237),W=a.i(759497);function X({name:a,onDone:c}){let{data:d,isLoading:e}=(0,W.useServerRoute)(q.queryKey.mcpServer(a)),[f,g]=(0,V.useServerAction)(F,{...ai,onOk:b=>{ai.onOk(b),(0,W.revalidate)(q.queryKey.mcpServer(a))}}),[h,i]=(0,V.useServerAction)(E,{okMessage:"Server deleted",onOk:()=>{c(),(0,W.revalidate)(q.queryKey.mcp)}}),j=async()=>{await x.notify.confirm({title:`Delete ${a}?`,description:"Its connection and saved authorization go with it.",okText:"Delete",destructive:!0})&&h(a)};if(e)return(0,b.jsx)(T.SettingSkeleton,{rows:4});if(!d)return null;let l=d.tools.length,m=N(d.config)?"HTTP":"STDIO";return(0,b.jsxs)(T.SettingDialogContent,{title:d.name,description:(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,b.jsx)("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:m}),(0,b.jsx)("span",{className:"truncate font-mono",children:ak(d.config)})]}),footer:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(r.Button,{variant:"ghost",loading:i,onClick:j,children:[(0,b.jsx)(n.Trash2,{}),"Delete"]}),(0,b.jsxs)(r.Button,{variant:"outline",loading:g,onClick:()=>f(d.name),children:[(0,b.jsx)(k,{}),"Reconnect"]})]}),children:[d.lastError&&(0,b.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:d.lastError}),(0,b.jsxs)("p",{className:"text-right font-mono text-xs text-muted-foreground",children:[l," ",1===l?"tool":"tools"]}),d.tools.map(a=>(0,b.jsx)($,{tool:a,serverName:d.name},a.name))]})}function Y({server:a}){let d=a.toolCount,f=a.lastError?"error":d>0?"connected":"idle";return(0,b.jsxs)("button",{type:"button",onClick:()=>{x.notify.component({className:"sm:max-w-3xl",renderer:({close:c})=>(0,b.jsx)(X,{name:a.name,onDone:c})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,b.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,b.jsx)(Z,{server:a})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,b.jsx)("span",{className:"truncate text-sm font-medium",children:a.name}),"connected"===f&&(0,b.jsx)(c.Check,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,b.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"error"===f?(0,b.jsx)("span",{className:"text-destructive",children:a.lastError}):(0,b.jsxs)(b.Fragment,{children:[d>0?`${d} ${1===d?"tool":"tools"}`:"No tools yet",(0,b.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground/70",children:[" · ",ak(a.config)]})]})})]}),(0,b.jsx)(e.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function Z({server:a}){let c,d=(c=S.find(b=>N(b.config)?N(a.config)&&b.config.url.replace(/\/+$/,"")===a.config.url.replace(/\/+$/,""):!N(a.config)&&b.config.command===a.config.command&&(b.config.args??[]).join(" ")===(a.config.args??[]).join(" "))??S.find(b=>b.name===a.name),c?.icon);return d?(0,b.jsx)("img",{src:(0,u.faviconUrl)(d),alt:"",className:"size-5"}):(0,b.jsx)(m,{className:"size-4"})}function $({tool:a,serverName:c}){let[f,g]=(0,p.useState)(!1),[h,i]=(0,p.useState)(!1),[j,k]=(0,p.useState)(!1),l=[["inputSchema",a.inputSchema],["outputSchema",a.outputSchema]].filter(([,a])=>a);return(0,b.jsxs)("div",{className:"rounded-xl border border-border/60 bg-background p-4",children:[(0,b.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,b.jsx)("span",{className:"block truncate font-mono text-sm",children:a.name}),a.description?(0,b.jsx)("p",{className:(0,u.cn)("text-xs text-muted-foreground",!j&&"line-clamp-2",a.description.length>140&&"cursor-pointer"),onClick:()=>k(!j),children:a.description}):null]}),(0,b.jsxs)("div",{className:"mt-2 flex justify-end gap-1",children:[l.length>0&&(0,b.jsxs)(r.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>g(!f),children:[f?(0,b.jsx)(d.ChevronDown,{}):(0,b.jsx)(e.ChevronRight,{}),"Schema"]}),(0,b.jsxs)(r.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>i(!h),children:[h?(0,b.jsx)(d.ChevronDown,{}):(0,b.jsx)(e.ChevronRight,{}),"Test"]})]}),f?(0,b.jsx)("div",{className:"mt-2 space-y-3 overflow-x-auto rounded-lg border border-input p-3",children:l.map(([a,c])=>(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("span",{className:"block font-mono text-xs text-muted-foreground",children:"inputSchema"===a?"in":"out"}),(0,b.jsx)("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre",children:function a(b,c=0){if(!b||"object"!=typeof b)return"unknown";let d=" ".repeat(c+1),e=" ".repeat(c);if(Array.isArray(b.enum))return b.enum.map(a=>JSON.stringify(a)).join(" | ");let f=b.anyOf??b.oneOf;if(Array.isArray(f))return f.map(b=>a(b,c)).join(" | ");if("array"===b.type){let d=a(b.items,c);return/[|{]/.test(d)?`(${d})[]`:`${d}[]`}if("object"===b.type||b.properties){let f=b.properties;if(!f||0===Object.keys(f).length)return"{}";let g=b.required??[],h=Object.entries(f).map(([b,e])=>{let f=g.includes(b)?"":"?",h=e?.description,i="string"==typeof h&&h.length<=60?` // ${h}`:"";return`${d}${b}${f}: ${a(e,c+1)}${i}`});return`{
1
+ module.exports=[26444,a=>{"use strict";var b=a.i(187924),c=a.i(752562),d=a.i(589027),e=a.i(141146),f=a.i(164831);let g={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};g.node;let h=(0,f.default)(g);var i=a.i(403512);let j={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};j.node;let k=(0,f.default)(j),l={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};l.node;let m=(0,f.default)(l);var n=a.i(951675),o=a.i(474215),p=a.i(572131),q=a.i(767561),r=a.i(340695),s=a.i(316474),t=a.i(205522),u=a.i(497895);let v=(0,p.memo)(({data:a,name:c,initialExpandDepth:d=2})=>{let e=(0,p.useMemo)(()=>"string"==typeof a?function(a){let b=a.trim();if(!(b.startsWith("{")&&b.endsWith("}"))&&!(b.startsWith("[")&&b.endsWith("]")))return{success:!1,data:a};try{return{success:!0,data:JSON.parse(a)}}catch{return{success:!1,data:a}}}(a).data:a,[a]);return(0,b.jsx)("div",{className:" text-sm transition-all duration-300",children:(0,b.jsx)(w,{data:e,name:c,depth:0,initialExpandDepth:d})})});v.displayName="JsonView";let w=(0,p.memo)(({data:a,name:c,depth:d=0,initialExpandDepth:e})=>{var f;let g=void 0===a?"undefined":Array.isArray(a)?"array":null===a?"null":typeof a,[h,i]=(0,p.useState)("string"!==g&&d<e),j={number:"text-blue-500",boolean:"text-amber-500",null:"text-purple-500",undefined:"text-gray-500",string:"text-foreground break-all whitespace-pre-wrap",default:"text-muted-foreground"};switch(g){case"object":case"array":let k,l,m;return l=(k=(f="array"===g)?a:Object.entries(a)).length,m={open:f?"[":"{",close:f?"]":"}",collapsed:f?"[ ... ]":"{ ... }",empty:f?"[]":"{}"},0===l?(0,b.jsxs)("div",{className:"flex items-center",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsx)("span",{className:"text-muted-foreground",children:m.empty})]}):(0,b.jsxs)("div",{className:"flex flex-col",children:[(0,b.jsxs)("div",{className:"flex items-center mr-1 rounded cursor-pointer group hover:bg-input/30",onClick:()=>i(!h),children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[c,":"]}),h?(0,b.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:m.open}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground",children:m.collapsed}),(0,b.jsxs)("span",{className:"ml-1 text-muted-foreground group-hover:text-foreground",children:[l," ",1===l?"item":"items"]})]})]}),h&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"pl-2 ml-4 border-l border-border",children:f?k.map((a,c)=>(0,b.jsx)("div",{className:"my-1",children:(0,b.jsx)(w,{data:a,name:`${c}`,depth:d+1,initialExpandDepth:e})},c)):k.map(([a,c])=>(0,b.jsx)("div",{className:"my-1",children:(0,b.jsx)(w,{data:c,name:a,depth:d+1,initialExpandDepth:e})},a))}),(0,b.jsx)("div",{className:"text-muted-foreground",children:m.close})]})]});case"string":return a.length>100?(0,b.jsxs)("div",{className:"flex mr-1 rounded group hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground hover:text-foreground",children:[c,":"]}),(0,b.jsx)("pre",{className:(0,u.cn)(j.string,"cursor-pointer group-hover:text-foreground"),onClick:()=>i(!h),title:h?"Click to collapse":"Click to expand",children:h?`"${a}"`:`"${a.slice(0,100)}..."`})]}):(0,b.jsxs)("div",{className:"flex mr-1 rounded hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsxs)("pre",{className:j.string,children:['"',a,'"']})]});case"undefined":return(0,b.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsx)("span",{className:j.undefined,children:"undefined"})]});default:return(0,b.jsxs)("div",{className:"flex items-center mr-1 rounded hover:bg-input/30",children:[c&&(0,b.jsxs)("span",{className:"mr-1 text-muted-foreground",children:[c,":"]}),(0,b.jsx)("span",{className:j[g]||j.default,children:null===a?"null":String(a)})]})}});w.displayName="JsonNode";var x=a.i(446181),y=a.i(280281),z=a.i(621958),A=a.i(546893),B=a.i(864037),C=a.i(405050);let D=(0,C.createServerReference)("7f5794ac71620e44519ac5e4528c812ec673d30e36",C.callServer,void 0,C.findSourceMapURL,"callToolAction"),E=(0,C.createServerReference)("7f8b31e414a34ee8f44144711314836c2ef544e4d6",C.callServer,void 0,C.findSourceMapURL,"deleteServerAction"),F=(0,C.createServerReference)("7f01ea36e10e34b1bdd93e76c79733f6d9944ba5ab",C.callServer,void 0,C.findSourceMapURL,"refreshServerAction"),G=(0,C.createServerReference)("7f0f31e6c8be9bc825768389fc145a1b3446503296",C.callServer,void 0,C.findSourceMapURL,"registerServerAction");var H=a.i(156757),I=a.i(199169);let J=H.z.object({url:H.z.url(),headers:H.z.record(H.z.string(),H.z.string()).optional(),oauthClient:H.z.object({clientId:H.z.string().min(1),clientSecret:H.z.string().optional()}).optional()}),K=H.z.object({command:H.z.string().min(1),args:H.z.array(H.z.string()).optional(),env:H.z.record(H.z.string(),H.z.string()).optional()}),L=H.z.union([J,K]),M=H.z.object({name:H.z.string(),description:H.z.string().optional(),inputSchema:H.z.looseObject({}).optional(),outputSchema:H.z.looseObject({}).optional()});function N(a){return"url"in a}H.z.object({clientInformation:H.z.looseObject({}).optional(),tokens:H.z.looseObject({}).optional(),authorizationServer:H.z.looseObject({}).optional(),codeVerifier:H.z.string().optional(),state:H.z.string().optional()});let O=H.z.object({name:H.z.string().min(1).max(40),config:L,toolCount:H.z.number().int(),lastError:H.z.string().nullish()}),P=M.extend({id:H.z.number().int(),description:H.z.string().nullish()});O.omit({toolCount:!0}).extend({tools:P.array().default([]),toolsSyncedAt:I.DateLikeSchema});let Q=H.z.object({name:H.z.string().min(1,"Name is required").max(40).regex(/^[a-zA-Z0-9_-]+$/,"Only letters, numbers, - and _ are allowed"),config:L}),R=H.z.union([H.z.object({mcpServers:H.z.record(H.z.string(),L)}),H.z.record(H.z.string(),L)]),S=[{name:"notion",icon:"notion.so",description:"Pages, databases, and search",config:{url:"https://mcp.notion.com/mcp"}},{name:"github",icon:"github.com",description:"Repos, issues, PRs — paste a personal access token",config:{url:"https://api.githubcopilot.com/mcp/",headers:{Authorization:"Bearer <your-github-pat>"}}},{name:"linear",icon:"linear.app",description:"Issues, projects, and cycles",config:{url:"https://mcp.linear.app/mcp"}},{name:"slack",icon:"slack.com",description:"Channels, messages, and search",config:{url:"https://mcp.slack.com/mcp"}},{name:"atlassian",icon:"atlassian.com",description:"Jira and Confluence",config:{url:"https://mcp.atlassian.com/v1/mcp"}},{name:"asana",icon:"asana.com",description:"Tasks, projects, and portfolios",config:{url:"https://mcp.asana.com/mcp"}},{name:"monday",icon:"monday.com",description:"Boards, items, and updates",config:{url:"https://mcp.monday.com/mcp"}},{name:"clickup",icon:"clickup.com",description:"Tasks, docs, and spaces",config:{url:"https://mcp.clickup.com/mcp"}},{name:"airtable",icon:"airtable.com",description:"Bases, tables, and records",config:{url:"https://mcp.airtable.com/mcp"}},{name:"box",icon:"box.com",description:"Files, folders, and content search",config:{url:"https://mcp.box.com/mcp"}},{name:"figma",icon:"figma.com",description:"Design files and components",config:{url:"https://mcp.figma.com/mcp"}},{name:"canva",icon:"canva.com",description:"Create and manage designs",config:{url:"https://mcp.canva.com/mcp"}},{name:"sanity",icon:"sanity.io",description:"Structured content and datasets",config:{url:"https://mcp.sanity.io/mcp"}},{name:"webflow",icon:"webflow.com",description:"Sites, pages, and CMS collections",config:{url:"https://mcp.webflow.com/mcp"}},{name:"wix",icon:"wix.com",description:"Sites, stores, and bookings",config:{url:"https://mcp.wix.com/mcp"}},{name:"hubspot",icon:"hubspot.com",description:"Contacts, deals, and companies",config:{url:"https://app.hubspot.com/mcp/v1/http"}},{name:"attio",icon:"attio.com",description:"CRM records and lists",config:{url:"https://mcp.attio.com/mcp"}},{name:"intercom",icon:"intercom.com",description:"Conversations and support tickets",config:{url:"https://mcp.intercom.com/mcp"}},{name:"fireflies",icon:"fireflies.ai",description:"Meeting transcripts and summaries",config:{url:"https://mcp.fireflies.ai/mcp"}},{name:"stripe",icon:"stripe.com",description:"Payments, invoices, and customers",config:{url:"https://mcp.stripe.com"}},{name:"paypal",icon:"paypal.com",description:"Payments and orders",config:{url:"https://mcp.paypal.com/mcp"}},{name:"square",icon:"squareup.com",description:"Payments, catalog, and orders",config:{url:"https://mcp.squareup.com/mcp"}},{name:"ramp",icon:"ramp.com",description:"Spend, cards, and transactions",config:{url:"https://mcp.ramp.com/mcp"}},{name:"vercel",icon:"vercel.com",description:"Deployments and projects",config:{url:"https://mcp.vercel.com"}},{name:"netlify",icon:"netlify.com",description:"Sites, builds, and deploys",config:{url:"https://mcp.netlify.com/mcp"}},{name:"cloudflare",icon:"cloudflare.com",description:"Workers bindings — D1, R2, KV",config:{url:"https://bindings.mcp.cloudflare.com/mcp"}},{name:"supabase",icon:"supabase.com",description:"Projects, tables, and SQL",config:{url:"https://mcp.supabase.com/mcp"}},{name:"neon",icon:"neon.tech",description:"Postgres branches and queries",config:{url:"https://mcp.neon.tech/mcp"}},{name:"prisma",icon:"prisma.io",description:"Postgres databases and schema",config:{url:"https://mcp.prisma.io/mcp"}},{name:"sentry",icon:"sentry.io",description:"Errors and performance issues",config:{url:"https://mcp.sentry.dev/mcp"}},{name:"grafana",icon:"grafana.com",description:"Dashboards, metrics, and alerts",config:{url:"https://mcp.grafana.com/mcp"}},{name:"semgrep",icon:"semgrep.dev",description:"Scan code for security findings",config:{url:"https://mcp.semgrep.ai/mcp"}},{name:"postman",icon:"postman.com",description:"Collections, environments, and requests",config:{url:"https://mcp.postman.com/mcp"}},{name:"resend",icon:"resend.com",description:"Send email and manage audiences",config:{url:"https://mcp.resend.com/mcp"}},{name:"hugging-face",icon:"huggingface.co",description:"Models, datasets, and Spaces",config:{url:"https://huggingface.co/mcp"}},{name:"apify",icon:"apify.com",description:"Run scrapers and automation actors",config:{url:"https://mcp.apify.com"}},{name:"exa",icon:"exa.ai",description:"Web search for agents",config:{url:"https://mcp.exa.ai/mcp"}},{name:"kagi",icon:"kagi.com",description:"Search, summarize, and answer",config:{url:"https://mcp.kagi.com/mcp"}},{name:"context7",icon:"context7.com",description:"Up-to-date library docs",config:{url:"https://mcp.context7.com/mcp"}},{name:"deepwiki",icon:"deepwiki.com",description:"Ask questions about any GitHub repo",config:{url:"https://mcp.deepwiki.com/mcp"}},{name:"microsoft-learn",icon:"learn.microsoft.com",description:"Microsoft and Azure docs — no account",config:{url:"https://learn.microsoft.com/api/mcp"}},{name:"aws-knowledge",icon:"aws.amazon.com",description:"AWS docs and API references — no account",config:{url:"https://knowledge-mcp.global.api.aws"}},{name:"cloudflare-docs",icon:"developers.cloudflare.com",description:"Cloudflare docs — no account",config:{url:"https://docs.mcp.cloudflare.com/mcp"}},{name:"stack-overflow",icon:"stackoverflow.com",description:"Questions, answers, and teams",config:{url:"https://mcp.stackoverflow.com"}},{name:"playwright",icon:"playwright.dev",description:"Drive a real browser",config:{command:"npx",args:["@playwright/mcp@latest"]}},{name:"chrome-devtools",icon:"developer.chrome.com",description:"Inspect and debug Chrome",config:{command:"npx",args:["chrome-devtools-mcp@latest"]}}];var T=a.i(619477),U=a.i(30681),V=a.i(313237),W=a.i(759497);function X({name:a,onDone:c}){let{data:d,isLoading:e}=(0,W.useServerRoute)(q.queryKey.mcpServer(a)),[f,g]=(0,V.useServerAction)(F,{...ai,onOk:b=>{ai.onOk(b),(0,W.revalidate)(q.queryKey.mcpServer(a))}}),[h,i]=(0,V.useServerAction)(E,{okMessage:"Server deleted",onOk:()=>{c(),(0,W.revalidate)(q.queryKey.mcp)}}),j=async()=>{await x.notify.confirm({title:`Delete ${a}?`,description:"Its connection and saved authorization go with it.",okText:"Delete",destructive:!0})&&h(a)};if(e)return(0,b.jsx)(T.SettingSkeleton,{rows:4});if(!d)return null;let l=d.tools.length,m=N(d.config)?"HTTP":"STDIO";return(0,b.jsxs)(T.SettingDialogContent,{title:d.name,description:(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,b.jsx)("span",{className:"shrink-0 rounded-sm bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:m}),(0,b.jsx)("span",{className:"truncate font-mono",children:ak(d.config)})]}),footer:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(r.Button,{variant:"ghost",loading:i,onClick:j,children:[(0,b.jsx)(n.Trash2,{}),"Delete"]}),(0,b.jsxs)(r.Button,{variant:"outline",loading:g,onClick:()=>f(d.name),children:[(0,b.jsx)(k,{}),"Reconnect"]})]}),children:[d.lastError&&(0,b.jsx)("p",{className:"rounded-lg bg-destructive/10 px-3 py-2 font-mono text-xs text-destructive",children:d.lastError}),(0,b.jsxs)("p",{className:"text-right font-mono text-xs text-muted-foreground",children:[l," ",1===l?"tool":"tools"]}),d.tools.map(a=>(0,b.jsx)($,{tool:a,serverName:d.name},a.name))]})}function Y({server:a}){let d=a.toolCount,f=a.lastError?"error":d>0?"connected":"idle";return(0,b.jsxs)("button",{type:"button",onClick:()=>{x.notify.component({className:"sm:max-w-3xl",renderer:({close:c})=>(0,b.jsx)(X,{name:a.name,onDone:c})})},className:"group flex w-full items-center gap-3 p-4 text-left outline-none transition-colors hover:bg-muted/50 focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,b.jsx)("span",{className:"grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",children:(0,b.jsx)(Z,{server:a})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,b.jsx)("span",{className:"truncate text-sm font-medium",children:a.name}),"connected"===f&&(0,b.jsx)(c.Check,{className:"size-3 shrink-0 text-muted-foreground"})]}),(0,b.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:"error"===f?(0,b.jsx)("span",{className:"text-destructive",children:a.lastError}):(0,b.jsxs)(b.Fragment,{children:[d>0?`${d} ${1===d?"tool":"tools"}`:"No tools yet",(0,b.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground/70",children:[" · ",ak(a.config)]})]})})]}),(0,b.jsx)(e.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 transition-colors group-hover:text-foreground"})]})}function Z({server:a}){let c,d=(c=S.find(b=>N(b.config)?N(a.config)&&b.config.url.replace(/\/+$/,"")===a.config.url.replace(/\/+$/,""):!N(a.config)&&b.config.command===a.config.command&&(b.config.args??[]).join(" ")===(a.config.args??[]).join(" "))??S.find(b=>b.name===a.name),c?.icon);return d?(0,b.jsx)("img",{src:(0,u.faviconUrl)(d),alt:"",className:"size-5"}):(0,b.jsx)(m,{className:"size-4"})}function $({tool:a,serverName:c}){let[f,g]=(0,p.useState)(!1),[h,i]=(0,p.useState)(!1),[j,k]=(0,p.useState)(!1),l=[["inputSchema",a.inputSchema],["outputSchema",a.outputSchema]].filter(([,a])=>a);return(0,b.jsxs)("div",{className:"rounded-xl border border-border/60 bg-background p-4",children:[(0,b.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,b.jsx)("span",{className:"block truncate font-mono text-sm",children:a.name}),a.description?(0,b.jsx)("p",{className:(0,u.cn)("text-xs text-muted-foreground",!j&&"line-clamp-2",a.description.length>140&&"cursor-pointer"),onClick:()=>k(!j),children:a.description}):null]}),(0,b.jsxs)("div",{className:"mt-2 flex justify-end gap-1",children:[l.length>0&&(0,b.jsxs)(r.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>g(!f),children:[f?(0,b.jsx)(d.ChevronDown,{}):(0,b.jsx)(e.ChevronRight,{}),"Schema"]}),(0,b.jsxs)(r.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>i(!h),children:[h?(0,b.jsx)(d.ChevronDown,{}):(0,b.jsx)(e.ChevronRight,{}),"Test"]})]}),f?(0,b.jsx)("div",{className:"mt-2 space-y-3 overflow-x-auto rounded-lg border border-input p-3",children:l.map(([a,c])=>(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("span",{className:"block font-mono text-xs text-muted-foreground",children:"inputSchema"===a?"in":"out"}),(0,b.jsx)("pre",{className:"font-mono text-xs leading-relaxed whitespace-pre",children:function a(b,c=0){if(!b||"object"!=typeof b)return"unknown";let d=" ".repeat(c+1),e=" ".repeat(c);if(Array.isArray(b.enum))return b.enum.map(a=>JSON.stringify(a)).join(" | ");let f=b.anyOf??b.oneOf;if(Array.isArray(f))return f.map(b=>a(b,c)).join(" | ");if("array"===b.type){let d=a(b.items,c);return/[|{]/.test(d)?`(${d})[]`:`${d}[]`}if("object"===b.type||b.properties){let f=b.properties;if(!f||0===Object.keys(f).length)return"{}";let g=b.required??[],h=Object.entries(f).map(([b,e])=>{let f=g.includes(b)?"":"?",h=e?.description,i="string"==typeof h&&h.length<=60?` // ${h}`:"";return`${d}${b}${f}: ${a(e,c+1)}${i}`});return`{
2
2
  ${h.join("\n")}
3
3
  ${e}}`}return Array.isArray(b.type)?b.type.join(" | "):"string"==typeof b.type?b.type:"unknown"}(c)})]},a))}):null,h?(0,b.jsx)(_,{tool:a,serverName:c}):null]})}function _({tool:a,serverName:c}){let[d,e]=(0,p.useState)(()=>(function(a){let b=a.inputSchema?.properties;if(!b||"object"!=typeof b)return"{}";let c={};for(let[a,d]of Object.entries(b))c[a]=d?.type==="number"||d?.type==="integer"?0:d?.type!=="boolean"&&(d?.type==="array"?[]:d?.type==="object"?{}:"");return JSON.stringify(c,null,2)})(a)),[f,g]=(0,p.useState)(""),[i,j,k,l,m]=(0,V.useServerAction)(D,{errorMessage:!1});return(0,b.jsxs)("div",{className:"mt-2 space-y-2 rounded-lg border border-input p-3",children:[(0,b.jsx)(A.Textarea,{value:d,onChange:a=>e(a.target.value),spellCheck:!1,className:"min-h-24 resize-none font-mono text-xs"}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("span",{className:"font-mono text-xs text-destructive",children:f||l}),(0,b.jsxs)(r.Button,{size:"sm",loading:j,onClick:()=>{let b;try{b=d.trim()?JSON.parse(d):void 0}catch{g("Not valid JSON");return}g(""),m(),i(c,a.name,b)},children:[!j&&(0,b.jsx)(h,{}),"Run"]})]}),void 0!==k&&(0,b.jsx)("div",{className:"overflow-x-auto rounded-lg bg-muted/40 p-3",children:(0,b.jsx)(v,{data:k,initialExpandDepth:3})})]})}function aa(a){return x.notify.component({className:"sm:max-w-lg",renderer:({close:c})=>(0,b.jsx)(ab,{initial:a,onDone:c})})}function ab({initial:a,onDone:c}){let d=a&&N(a.config)?a.config:void 0,e=a&&!N(a.config)?a.config:void 0,[f,g]=(0,U.useObjectState)({mode:e?"stdio":"http",name:a?.name??"",url:d?.url??"",headers:ae(d?.headers),clientId:d?.oauthClient?.clientId??"",clientSecret:d?.oauthClient?.clientSecret??"",command:e?.command??"",args:(e?.args??[]).join(" "),env:ae(e?.env),raw:""}),{mode:h,name:i,url:j,headers:k,clientId:l,clientSecret:m,command:n,args:o,env:q,raw:u}=f,[v,w]=(0,V.useServerAction)(G,{...ai,onOk:a=>{ai.onOk(a),"error"!==a.status&&c()}}),x=(0,p.useMemo)(()=>{var a,b,c,d,e,f,g;let i,p;return"json"===h?function(a){let b,c=a.trim();if(!c)return{value:null,error:""};try{b=JSON.parse(c)}catch{return{value:null,error:"Not valid JSON"}}let d=L.safeParse(b);if(d.success)return{value:{name:null,config:d.data},error:""};let e=R.safeParse(b);if(!e.success)return{value:null,error:"Needs a url or a command"};let f=Object.entries("mcpServers"in e.data?e.data.mcpServers:e.data)[0];return f?{value:{name:f[0],config:f[1]},error:""}:{value:null,error:"No server in there"}}(u):"http"===h?(a=j,b=k,c=l,d=m,(i=J.safeParse({url:a.trim(),headers:af(b),oauthClient:c.trim()?{clientId:c.trim(),clientSecret:d.trim()}:void 0})).success?{value:{name:null,config:i.data},error:""}:{value:null,error:a.trim()?"Needs a valid url":""}):(e=n,f=o,g=q,(p=K.safeParse({command:e.trim(),args:f.split(/\s+/).filter(Boolean),env:af(g)})).success?{value:{name:null,config:p.data},error:""}:{value:null,error:e.trim()?"Needs a command":""})},[h,u,j,k,l,m,n,o,q]),B="json"===h?u:JSON.stringify([h,j,k,l,m,n,o,q]),[C,D]=(0,p.useState)(B);(0,p.useEffect)(()=>{let a=setTimeout(()=>D(B),700);return()=>clearTimeout(a)},[B]);let E=C===B?x.error:"",F=i||x.value?.name||"",H=Q.safeParse({name:F,config:x.value?.config});function I(a){let b=x.value?.config;return b?"json"===a?g({mode:a,raw:JSON.stringify(b,null,2)}):"http"===a&&N(b)?g({mode:a,url:b.url,headers:ae(b.headers),clientId:b.oauthClient?.clientId??"",clientSecret:b.oauthClient?.clientSecret??""}):"stdio"!==a||N(b)?void g({mode:a}):g({mode:a,command:b.command,args:(b.args??[]).join(" "),env:ae(b.env)}):g({mode:a})}let M=(0,b.jsxs)("span",{className:"flex items-center gap-2 font-mono text-xs text-muted-foreground",children:["JSON",(0,b.jsx)(y.Switch,{size:"sm",checked:"json"===h,onCheckedChange:a=>{let b;return a?I("json"):void I((b=x.value?.config)&&!N(b)?"stdio":"http")}})]});return(0,b.jsx)(T.SettingDialogContent,{title:"Add MCP server",description:"Its tools become available to Thursday and every sub-agent.",footer:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r.Button,{variant:"ghost",onClick:c,children:"Cancel"}),(0,b.jsx)(r.Button,{disabled:!H.success,loading:w,onClick:()=>{H.success&&!w&&v(H.data)},children:"Connect"})]}),children:(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsxs)(s.Field,{children:[(0,b.jsx)(s.FieldLabel,{children:"Name"}),(0,b.jsx)(t.Input,{value:F,onChange:a=>g({name:a.target.value}),placeholder:"notion",spellCheck:!1})]}),"json"===h?(0,b.jsxs)(s.Field,{children:[(0,b.jsxs)("div",{className:"flex min-h-6 items-center justify-between gap-2",children:[(0,b.jsx)(s.FieldLabel,{children:"JSON"}),M]}),(0,b.jsx)(A.Textarea,{value:u,onChange:a=>g({raw:a.target.value}),spellCheck:!1,placeholder:ag,className:"min-h-64 resize-none font-mono text-xs"})]}):(0,b.jsxs)(z.Tabs,{value:h,onValueChange:a=>I(a),className:"gap-6",children:[(0,b.jsxs)(s.Field,{children:[(0,b.jsxs)("div",{className:"flex min-h-6 items-center justify-between gap-2",children:[(0,b.jsx)(s.FieldLabel,{children:"Transport"}),M]}),(0,b.jsxs)(z.TabsList,{className:"w-full",children:[(0,b.jsx)(z.TabsTrigger,{value:"http",children:"HTTP"}),(0,b.jsx)(z.TabsTrigger,{value:"stdio",children:"STDIO"})]})]}),(0,b.jsxs)(z.TabsContent,{value:"http",className:"space-y-6",children:[(0,b.jsxs)(s.Field,{children:[(0,b.jsx)(s.FieldLabel,{children:"URL"}),(0,b.jsx)(t.Input,{value:j,onChange:a=>g({url:a.target.value}),placeholder:"https://mcp.notion.com/mcp",spellCheck:!1,className:"font-mono text-xs"})]}),(0,b.jsx)(ac,{label:"Headers",pairs:k,onChange:a=>g({headers:a}),keyPlaceholder:"Authorization",valuePlaceholder:"Bearer sk-..."}),(0,b.jsxs)(s.Field,{children:[(0,b.jsx)(s.FieldLabel,{children:"OAuth client"}),(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(t.Input,{value:l,onChange:a=>g({clientId:a.target.value}),placeholder:"Client ID",spellCheck:!1,className:"font-mono text-xs"}),(0,b.jsx)(t.Input,{value:m,onChange:a=>g({clientSecret:a.target.value}),placeholder:"Client secret",spellCheck:!1,type:"password",className:"font-mono text-xs"})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:"Only for servers that refuse to register clients on their own, like Figma. Leave empty and one is created during sign-in."})]})]}),(0,b.jsxs)(z.TabsContent,{value:"stdio",className:"space-y-6",children:[(0,b.jsxs)(s.Field,{children:[(0,b.jsx)(s.FieldLabel,{children:"Command"}),(0,b.jsx)(t.Input,{value:n,onChange:a=>g({command:a.target.value}),placeholder:"npx",spellCheck:!1,className:"font-mono text-xs"})]}),(0,b.jsxs)(s.Field,{children:[(0,b.jsx)(s.FieldLabel,{children:"Args"}),(0,b.jsx)(t.Input,{value:o,onChange:a=>g({args:a.target.value}),placeholder:"-y @notionhq/notion-mcp-server",spellCheck:!1,className:"font-mono text-xs"})]}),(0,b.jsx)(ac,{label:"Env",pairs:q,onChange:a=>g({env:a}),keyPlaceholder:"NOTION_TOKEN",valuePlaceholder:"ntn_..."})]})]}),E&&(0,b.jsx)("p",{className:"font-mono text-xs text-destructive",children:E})]})})}function ac({label:a,pairs:c,onChange:d,keyPlaceholder:e,valuePlaceholder:f}){let g=(a,b)=>d(c.map(c=>c.id===a?{...c,...b}:c));return(0,b.jsxs)(s.Field,{children:[(0,b.jsx)(s.FieldLabel,{children:a}),(0,b.jsxs)("div",{className:"space-y-2",children:[c.map(a=>(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(t.Input,{value:a.key,onChange:b=>g(a.id,{key:b.target.value}),placeholder:e,spellCheck:!1,className:"font-mono text-xs"}),(0,b.jsx)(t.Input,{value:a.value,onChange:b=>g(a.id,{value:b.target.value}),placeholder:f,spellCheck:!1,className:"font-mono text-xs"}),(0,b.jsx)(r.Button,{variant:"ghost",size:"icon",onClick:()=>d(c.filter(b=>b.id!==a.id)),children:(0,b.jsx)(o.X,{})})]},a.id)),(0,b.jsxs)(r.Button,{variant:"outline",size:"sm",onClick:()=>d([...c,ad()]),children:[(0,b.jsx)(i.Plus,{}),"Add"]})]})]})}let ad=(a="",b="")=>({id:crypto.randomUUID(),key:a,value:b}),ae=a=>Object.entries(a??{}).map(([a,b])=>ad(a,b)),af=a=>{let b=a.filter(a=>a.key.trim());if(b.length)return Object.fromEntries(b.map(a=>[a.key.trim(),a.value]))},ag=`/** STDIO Example */
4
4
  {
@@ -0,0 +1,3 @@
1
+ module.exports=[199169,256711,a=>{"use strict";var b=a.i(244513),c=a.i(852587),d=a.i(23464),e=a.i(57270),f=a.i(959296),g=a.i(774016);function h(a,b){let c=(0,g.toDate)(a,b?.in);return c.setHours(0,0,0,0),c}function i(a,b){let d=(0,c.getDefaultOptions)(),e=b?.weekStartsOn??b?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0,f=(0,g.toDate)(a,b?.in),h=f.getDay();return f.setDate(f.getDate()-(7*(h<e)+h-e)),f.setHours(0,0,0,0),f}function j(a,b){return i(a,{...b,weekStartsOn:1})}var k=a.i(42724);function l(a,b){let c=(0,g.toDate)(a,b?.in),d=c.getFullYear(),e=(0,k.constructFrom)(c,0);e.setFullYear(d+1,0,4),e.setHours(0,0,0,0);let f=j(e),h=(0,k.constructFrom)(c,0);h.setFullYear(d,0,4),h.setHours(0,0,0,0);let i=j(h);return c.getTime()>=f.getTime()?d+1:c.getTime()>=i.getTime()?d:d-1}function m(a,b){let d=(0,g.toDate)(a,b?.in),e=d.getFullYear(),f=(0,c.getDefaultOptions)(),h=b?.firstWeekContainsDate??b?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,j=(0,k.constructFrom)(b?.in||a,0);j.setFullYear(e+1,0,h),j.setHours(0,0,0,0);let l=i(j,b),m=(0,k.constructFrom)(b?.in||a,0);m.setFullYear(e,0,h),m.setHours(0,0,0,0);let n=i(m,b);return+d>=+l?e+1:+d>=+n?e:e-1}function n(a,b){let c=Math.abs(a).toString().padStart(b,"0");return(a<0?"-":"")+c}let o={y(a,b){let c=a.getFullYear(),d=c>0?c:1-c;return n("yy"===b?d%100:d,b.length)},M(a,b){let c=a.getMonth();return"M"===b?String(c+1):n(c+1,2)},d:(a,b)=>n(a.getDate(),b.length),a(a,b){let c=a.getHours()/12>=1?"pm":"am";switch(b){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];default:return"am"===c?"a.m.":"p.m."}},h:(a,b)=>n(a.getHours()%12||12,b.length),H:(a,b)=>n(a.getHours(),b.length),m:(a,b)=>n(a.getMinutes(),b.length),s:(a,b)=>n(a.getSeconds(),b.length),S(a,b){let c=b.length;return n(Math.trunc(a.getMilliseconds()*Math.pow(10,c-3)),b.length)}},p={G:function(a,b,c){let d=+(a.getFullYear()>0);switch(b){case"G":case"GG":case"GGG":return c.era(d,{width:"abbreviated"});case"GGGGG":return c.era(d,{width:"narrow"});default:return c.era(d,{width:"wide"})}},y:function(a,b,c){if("yo"===b){let b=a.getFullYear();return c.ordinalNumber(b>0?b:1-b,{unit:"year"})}return o.y(a,b)},Y:function(a,b,c,d){let e=m(a,d),f=e>0?e:1-e;return"YY"===b?n(f%100,2):"Yo"===b?c.ordinalNumber(f,{unit:"year"}):n(f,b.length)},R:function(a,b){return n(l(a),b.length)},u:function(a,b){return n(a.getFullYear(),b.length)},Q:function(a,b,c){let d=Math.ceil((a.getMonth()+1)/3);switch(b){case"Q":return String(d);case"QQ":return n(d,2);case"Qo":return c.ordinalNumber(d,{unit:"quarter"});case"QQQ":return c.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return c.quarter(d,{width:"narrow",context:"formatting"});default:return c.quarter(d,{width:"wide",context:"formatting"})}},q:function(a,b,c){let d=Math.ceil((a.getMonth()+1)/3);switch(b){case"q":return String(d);case"qq":return n(d,2);case"qo":return c.ordinalNumber(d,{unit:"quarter"});case"qqq":return c.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return c.quarter(d,{width:"narrow",context:"standalone"});default:return c.quarter(d,{width:"wide",context:"standalone"})}},M:function(a,b,c){let d=a.getMonth();switch(b){case"M":case"MM":return o.M(a,b);case"Mo":return c.ordinalNumber(d+1,{unit:"month"});case"MMM":return c.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return c.month(d,{width:"narrow",context:"formatting"});default:return c.month(d,{width:"wide",context:"formatting"})}},L:function(a,b,c){let d=a.getMonth();switch(b){case"L":return String(d+1);case"LL":return n(d+1,2);case"Lo":return c.ordinalNumber(d+1,{unit:"month"});case"LLL":return c.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return c.month(d,{width:"narrow",context:"standalone"});default:return c.month(d,{width:"wide",context:"standalone"})}},w:function(a,b,d,e){let h,j,l,o,p,q=Math.round((i(h=(0,g.toDate)(a,e?.in),e)-(j=(0,c.getDefaultOptions)(),l=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??j.firstWeekContainsDate??j.locale?.options?.firstWeekContainsDate??1,o=m(h,e),(p=(0,k.constructFrom)(e?.in||h,0)).setFullYear(o,0,l),p.setHours(0,0,0,0),i(p,e)))/f.millisecondsInWeek)+1;return"wo"===b?d.ordinalNumber(q,{unit:"week"}):n(q,b.length)},I:function(a,b,c){let d,e,h,i=Math.round((j(d=(0,g.toDate)(a,void 0))-(e=l(d,void 0),(h=(0,k.constructFrom)(d,0)).setFullYear(e,0,4),h.setHours(0,0,0,0),j(h)))/f.millisecondsInWeek)+1;return"Io"===b?c.ordinalNumber(i,{unit:"week"}):n(i,b.length)},d:function(a,b,c){return"do"===b?c.ordinalNumber(a.getDate(),{unit:"date"}):o.d(a,b)},D:function(a,b,c){let i,j,k=function(a,b){let[c,g]=(0,e.normalizeDates)(void 0,a,b),i=h(c),j=h(g);return Math.round((i-(0,d.getTimezoneOffsetInMilliseconds)(i)-(j-(0,d.getTimezoneOffsetInMilliseconds)(j)))/f.millisecondsInDay)}(i=(0,g.toDate)(a,void 0),((j=(0,g.toDate)(i,void 0)).setFullYear(j.getFullYear(),0,1),j.setHours(0,0,0,0),j))+1;return"Do"===b?c.ordinalNumber(k,{unit:"dayOfYear"}):n(k,b.length)},E:function(a,b,c){let d=a.getDay();switch(b){case"E":case"EE":case"EEE":return c.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return c.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(d,{width:"short",context:"formatting"});default:return c.day(d,{width:"wide",context:"formatting"})}},e:function(a,b,c,d){let e=a.getDay(),f=(e-d.weekStartsOn+8)%7||7;switch(b){case"e":return String(f);case"ee":return n(f,2);case"eo":return c.ordinalNumber(f,{unit:"day"});case"eee":return c.day(e,{width:"abbreviated",context:"formatting"});case"eeeee":return c.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(e,{width:"short",context:"formatting"});default:return c.day(e,{width:"wide",context:"formatting"})}},c:function(a,b,c,d){let e=a.getDay(),f=(e-d.weekStartsOn+8)%7||7;switch(b){case"c":return String(f);case"cc":return n(f,b.length);case"co":return c.ordinalNumber(f,{unit:"day"});case"ccc":return c.day(e,{width:"abbreviated",context:"standalone"});case"ccccc":return c.day(e,{width:"narrow",context:"standalone"});case"cccccc":return c.day(e,{width:"short",context:"standalone"});default:return c.day(e,{width:"wide",context:"standalone"})}},i:function(a,b,c){let d=a.getDay(),e=0===d?7:d;switch(b){case"i":return String(e);case"ii":return n(e,b.length);case"io":return c.ordinalNumber(e,{unit:"day"});case"iii":return c.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return c.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return c.day(d,{width:"short",context:"formatting"});default:return c.day(d,{width:"wide",context:"formatting"})}},a:function(a,b,c){let d=a.getHours()/12>=1?"pm":"am";switch(b){case"a":case"aa":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"aaa":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},b:function(a,b,c){let d,e=a.getHours();switch(d=12===e?"noon":0===e?"midnight":e/12>=1?"pm":"am",b){case"b":case"bb":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(a,b,c){let d,e=a.getHours();switch(d=e>=17?"evening":e>=12?"afternoon":e>=4?"morning":"night",b){case"B":case"BB":case"BBB":return c.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return c.dayPeriod(d,{width:"narrow",context:"formatting"});default:return c.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(a,b,c){if("ho"===b){let b=a.getHours()%12;return 0===b&&(b=12),c.ordinalNumber(b,{unit:"hour"})}return o.h(a,b)},H:function(a,b,c){return"Ho"===b?c.ordinalNumber(a.getHours(),{unit:"hour"}):o.H(a,b)},K:function(a,b,c){let d=a.getHours()%12;return"Ko"===b?c.ordinalNumber(d,{unit:"hour"}):n(d,b.length)},k:function(a,b,c){let d=a.getHours();return(0===d&&(d=24),"ko"===b)?c.ordinalNumber(d,{unit:"hour"}):n(d,b.length)},m:function(a,b,c){return"mo"===b?c.ordinalNumber(a.getMinutes(),{unit:"minute"}):o.m(a,b)},s:function(a,b,c){return"so"===b?c.ordinalNumber(a.getSeconds(),{unit:"second"}):o.s(a,b)},S:function(a,b){return o.S(a,b)},X:function(a,b,c){let d=a.getTimezoneOffset();if(0===d)return"Z";switch(b){case"X":return r(d);case"XXXX":case"XX":return s(d);default:return s(d,":")}},x:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"x":return r(d);case"xxxx":case"xx":return s(d);default:return s(d,":")}},O:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+q(d,":");default:return"GMT"+s(d,":")}},z:function(a,b,c){let d=a.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+q(d,":");default:return"GMT"+s(d,":")}},t:function(a,b,c){return n(Math.trunc(a/1e3),b.length)},T:function(a,b,c){return n(+a,b.length)}};function q(a,b=""){let c=a>0?"-":"+",d=Math.abs(a),e=Math.trunc(d/60),f=d%60;return 0===f?c+String(e):c+String(e)+b+n(f,2)}function r(a,b){return a%60==0?(a>0?"-":"+")+n(Math.abs(a)/60,2):s(a,b)}function s(a,b=""){let c=Math.abs(a);return(a>0?"-":"+")+n(Math.trunc(c/60),2)+b+n(c%60,2)}let t=(a,b)=>{switch(a){case"P":return b.date({width:"short"});case"PP":return b.date({width:"medium"});case"PPP":return b.date({width:"long"});default:return b.date({width:"full"})}},u=(a,b)=>{switch(a){case"p":return b.time({width:"short"});case"pp":return b.time({width:"medium"});case"ppp":return b.time({width:"long"});default:return b.time({width:"full"})}},v={p:u,P:(a,b)=>{let c,d=a.match(/(P+)(p+)?/)||[],e=d[1],f=d[2];if(!f)return t(a,b);switch(e){case"P":c=b.dateTime({width:"short"});break;case"PP":c=b.dateTime({width:"medium"});break;case"PPP":c=b.dateTime({width:"long"});break;default:c=b.dateTime({width:"full"})}return c.replace("{{date}}",t(e,b)).replace("{{time}}",u(f,b))}},w=/^D+$/,x=/^Y+$/,y=["D","DD","YY","YYYY"],z=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B=/^'([^]*?)'?$/,C=/''/g,D=/[a-zA-Z]/;function E(a,d,e){let f=(0,c.getDefaultOptions)(),h=e?.locale??f.locale??b.defaultLocale,i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,j=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0,k=(0,g.toDate)(a,e?.in);if(!(k instanceof Date||"object"==typeof k&&"[object Date]"===Object.prototype.toString.call(k))&&"number"!=typeof k||isNaN(+(0,g.toDate)(k)))throw RangeError("Invalid time value");let l=d.match(A).map(a=>{let b=a[0];return"p"===b||"P"===b?(0,v[b])(a,h.formatLong):a}).join("").match(z).map(a=>{if("''"===a)return{isToken:!1,value:"'"};let b=a[0];if("'"===b){var c;let b;return{isToken:!1,value:(b=(c=a).match(B))?b[1].replace(C,"'"):c}}if(p[b])return{isToken:!0,value:a};if(b.match(D))throw RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:a}});h.localize.preprocessor&&(l=h.localize.preprocessor(k,l));let m={firstWeekContainsDate:i,weekStartsOn:j,locale:h};return l.map(b=>{if(!b.isToken)return b.value;let c=b.value;return(!e?.useAdditionalWeekYearTokens&&x.test(c)||!e?.useAdditionalDayOfYearTokens&&w.test(c))&&function(a,b,c){var d,e,f;let g,h=(d=a,e=b,f=c,g="Y"===d[0]?"years":"days of the month",`Use \`${d.toLowerCase()}\` instead of \`${d}\` (in \`${e}\`) for formatting ${g} to the input \`${f}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(h),y.includes(a))throw RangeError(h)}(c,d,String(a)),(0,p[c[0]])(k,c,h.localize,m)}).join("")}a.s(["format",0,E],256711);var F=a.i(934754);function G(a,b,c){let[d,f]=(0,e.normalizeDates)(c?.in,a,b);return+h(d)==+h(f)}var H=a.i(156757);let I=H.z.union([H.z.date(),H.z.iso.datetime()]),J=a=>new Date(a);a.s(["DateLikeSchema",0,I,"shortAgo",0,function(a,b=Date.now()){let c=Math.max(0,Math.round((b-J(a).getTime())/1e3));if(c<60)return"now";let d=Math.round(c/60);if(d<60)return`${d}m`;let e=Math.round(d/60);return e<24?`${e}h`:`${Math.round(e/24)}d`},"toDate",0,J,"whenOf",0,function(a){let b=J(a),c=E(b,"HH:mm");return G((0,k.constructFrom)(b,b),(0,F.constructNow)(b))?c:!function(a){var b,c;let d;return G((0,k.constructFrom)(a,a),(b=(0,F.constructNow)(a),c=void 0,d=(0,g.toDate)(b,c?.in),isNaN(-1)?(0,k.constructFrom)(c?.in||b,NaN):(d.setDate(d.getDate()+-1),d)))}(b)?`${E(b,"MMM d")} \xb7 ${c}`:`Yesterday ${c}`}],199169)}];
2
+
3
+ //# sourceMappingURL=lib_date-like_ts_02is0pw._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])}];
2
2
 
3
- //# sourceMappingURL=node_modules_18_dk7_._.js.map
3
+ //# sourceMappingURL=node_modules_063xwpp._.js.map
@@ -40,4 +40,4 @@ module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@
40
40
  ${E(b,c)}
41
41
  `},"styles");a.s(["diagram",0,{parser:v,db:t,renderer:{draw:w},styles:G}])}];
42
42
 
43
- //# sourceMappingURL=node_modules_01qnv-a._.js.map
43
+ //# sourceMappingURL=node_modules_0bvraul._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},474394,328939,782970,a=>{"use strict";function b(a,b){if(!isFinite(a)||0===a)return null;var c=(a=b?a.toExponential(b-1):a.toExponential()).indexOf("e"),d=a.slice(0,c);return[d.length>1?d[0]+d.slice(2):d,+a.slice(c+1)]}function c(a){return(a=b(Math.abs(a)))?a[1]:NaN}a.s(["default",0,c],328939);var d,e,f,g,h=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(a){var b;if(!(b=h.exec(a)))throw Error("invalid format: "+a);return new j({fill:b[1],align:b[2],sign:b[3],symbol:b[4],zero:b[5],width:b[6],comma:b[7],precision:b[8]&&b[8].slice(1),trim:b[9],type:b[10]})}function j(a){this.fill=void 0===a.fill?" ":a.fill+"",this.align=void 0===a.align?">":a.align+"",this.sign=void 0===a.sign?"-":a.sign+"",this.symbol=void 0===a.symbol?"":a.symbol+"",this.zero=!!a.zero,this.width=void 0===a.width?void 0:+a.width,this.comma=!!a.comma,this.precision=void 0===a.precision?void 0:+a.precision,this.trim=!!a.trim,this.type=void 0===a.type?"":a.type+""}function k(a,c){var d=b(a,c);if(!d)return a+"";var e=d[0],f=d[1];return f<0?"0."+Array(-f).join("0")+e:e.length>f+1?e.slice(0,f+1)+"."+e.slice(f+1):e+Array(f-e.length+2).join("0")}i.prototype=j.prototype,j.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},a.s(["default",0,i],782970);let l={"%":(a,b)=>(100*a).toFixed(b),b:a=>Math.round(a).toString(2),c:a=>a+"",d:function(a){return Math.abs(a=Math.round(a))>=1e21?a.toLocaleString("en").replace(/,/g,""):a.toString(10)},e:(a,b)=>a.toExponential(b),f:(a,b)=>a.toFixed(b),g:(a,b)=>a.toPrecision(b),o:a=>Math.round(a).toString(8),p:(a,b)=>k(100*a,b),r:k,s:function(a,c){var e=b(a,c);if(!e)return d=void 0,a.toPrecision(c);var f=e[0],g=e[1],h=g-(d=3*Math.max(-8,Math.min(8,Math.floor(g/3))))+1,i=f.length;return h===i?f:h>i?f+Array(h-i+1).join("0"):h>0?f.slice(0,h)+"."+f.slice(h):"0."+Array(1-h).join("0")+b(a,Math.max(0,c+h-1))[0]},X:a=>Math.round(a).toString(16).toUpperCase(),x:a=>Math.round(a).toString(16)};function m(a){return a}var n=Array.prototype.map,o=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];f=(e=function(a){var b,e,f,g=void 0===a.grouping||void 0===a.thousands?m:(b=n.call(a.grouping,Number),e=a.thousands+"",function(a,c){for(var d=a.length,f=[],g=0,h=b[0],i=0;d>0&&h>0&&(i+h+1>c&&(h=Math.max(1,c-i)),f.push(a.substring(d-=h,d+h)),!((i+=h+1)>c));)h=b[g=(g+1)%b.length];return f.reverse().join(e)}),h=void 0===a.currency?"":a.currency[0]+"",j=void 0===a.currency?"":a.currency[1]+"",k=void 0===a.decimal?".":a.decimal+"",p=void 0===a.numerals?m:(f=n.call(a.numerals,String),function(a){return a.replace(/[0-9]/g,function(a){return f[+a]})}),q=void 0===a.percent?"%":a.percent+"",r=void 0===a.minus?"−":a.minus+"",s=void 0===a.nan?"NaN":a.nan+"";function t(a,b){var c=(a=i(a)).fill,e=a.align,f=a.sign,m=a.symbol,n=a.zero,t=a.width,u=a.comma,v=a.precision,w=a.trim,x=a.type;"n"===x?(u=!0,x="g"):l[x]||(void 0===v&&(v=12),w=!0,x="g"),(n||"0"===c&&"="===e)&&(n=!0,c="0",e="=");var y=(b&&void 0!==b.prefix?b.prefix:"")+("$"===m?h:"#"===m&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),z=("$"===m?j:/[%p]/.test(x)?q:"")+(b&&void 0!==b.suffix?b.suffix:""),A=l[x],B=/[defgprs%]/.test(x);function C(a){var b,h,i,j=y,l=z;if("c"===x)l=A(a)+l,a="";else{var m=(a*=1)<0||1/a<0;if(a=isNaN(a)?s:A(Math.abs(a),v),w&&(a=function(a){a:for(var b,c=a.length,d=1,e=-1;d<c;++d)switch(a[d]){case".":e=b=d;break;case"0":0===e&&(e=d),b=d;break;default:if(!+a[d])break a;e>0&&(e=0)}return e>0?a.slice(0,e)+a.slice(b+1):a}(a)),m&&0==+a&&"+"!==f&&(m=!1),j=(m?"("===f?f:r:"-"===f||"("===f?"":f)+j,l=("s"!==x||isNaN(a)||void 0===d?"":o[8+d/3])+l+(m&&"("===f?")":""),B){for(b=-1,h=a.length;++b<h;)if(48>(i=a.charCodeAt(b))||i>57){l=(46===i?k+a.slice(b+1):a.slice(b))+l,a=a.slice(0,b);break}}}u&&!n&&(a=g(a,1/0));var q=j.length+a.length+l.length,C=q<t?Array(t-q+1).join(c):"";switch(u&&n&&(a=g(C+a,C.length?t-l.length:1/0),C=""),e){case"<":a=j+a+l+C;break;case"=":a=j+C+a+l;break;case"^":a=C.slice(0,q=C.length>>1)+j+a+l+C.slice(q);break;default:a=C+j+a+l}return p(a)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),C.toString=function(){return a+""},C}return{format:t,formatPrefix:function(a,b){var d=3*Math.max(-8,Math.min(8,Math.floor(c(b)/3))),e=Math.pow(10,-d),f=t(((a=i(a)).type="f",a),{suffix:o[8+d/3]});return function(a){return f(e*a)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,g=e.formatPrefix,a.s(["format",()=>f,"formatPrefix",()=>g],474394)},88935,a=>{"use strict";a.s(["initRange",0,function(a,b){switch(arguments.length){case 0:break;case 1:this.range(a);break;default:this.range(b).domain(a)}return this}])},482464,a=>{"use strict";class b extends Map{constructor(a,b=d){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:b}}),null!=a)for(const[b,c]of a)this.set(b,c)}get(a){return super.get(c(this,a))}has(a){return super.has(c(this,a))}set(a,b){return super.set(function({_intern:a,_key:b},c){let d=b(c);return a.has(d)?a.get(d):(a.set(d,c),c)}(this,a),b)}delete(a){return super.delete(function({_intern:a,_key:b},c){let d=b(c);return a.has(d)&&(c=a.get(d),a.delete(d)),c}(this,a))}}function c({_intern:a,_key:b},d){let e=b(d);return a.has(e)?a.get(e):d}function d(a){return null!==a&&"object"==typeof a?a.valueOf():a}var e=a.i(88935);let f=Symbol("implicit");a.s(["default",0,function a(){var c=new b,d=[],g=[],h=f;function i(a){let b=c.get(a);if(void 0===b){if(h!==f)return h;c.set(a,b=d.push(a)-1)}return g[b%g.length]}return i.domain=function(a){if(!arguments.length)return d.slice();for(let e of(d=[],c=new b,a))c.has(e)||c.set(e,d.push(e)-1);return i},i.range=function(a){return arguments.length?(g=Array.from(a),i):g.slice()},i.unknown=function(a){return arguments.length?(h=a,i):h},i.copy=function(){return a(d,g).unknown(h)},e.initRange.apply(i,arguments),i}],482464)},444668,a=>{"use strict";var b=a.i(482464);a.s(["scaleOrdinal",()=>b.default])},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])},671199,a=>{"use strict";var b=a.i(261234),c=a.i(875117),d=a.i(539110),e=(0,d.__name)((a,d,e,h)=>{a.attr("class",e);let{width:i,height:j,x:k,y:l}=f(a,d);(0,b.configureSvgSize)(a,j,i,h);let m=g(k,l,i,j,d);a.attr("viewBox",m),c.log.debug(`viewBox configured: ${m} with padding: ${d}`)},"setupViewPortForSVG"),f=(0,d.__name)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),g=(0,d.__name)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox");a.s(["setupViewPortForSVG",0,e])}];
2
2
 
3
- //# sourceMappingURL=node_modules_0n1kj4p._.js.map
3
+ //# sourceMappingURL=node_modules_0eu1va6._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])},137554,a=>{"use strict";var b=a.i(149213),c=a.i(361055);a.i(53467),a.i(261234);var d=a.i(875117),e=a.i(539110),f=a.i(838673),g=(0,a.i(1552).createRailroadEbnfServices)().RailroadEbnf.parser.LangiumParser,h=(0,e.__name)(a=>{let b=a.alternatives.map(i);return 1===b.length?b[0]:{type:"choice",alternatives:b}},"transformChoice"),i=(0,e.__name)(a=>{let b=a.elements.map(l);return 1===b.length?b[0]:{type:"sequence",elements:b}},"transformSequence"),j=(0,e.__name)(a=>{switch(a.$type){case"EbnfTerminal":return{type:"terminal",value:a.value};case"EbnfNonTerminal":return{type:"nonterminal",name:a.name};case"EbnfSpecial":return{type:"special",text:a.text};case"EbnfGroup":return h(a.element);case"EbnfOptional":return{type:"optional",element:h(a.element)};case"EbnfRepetition":return{type:"repetition",element:h(a.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${a.$type}`)}},"transformPrimary"),k=(0,e.__name)((a,b)=>{switch(b.$type){case"EbnfOptionalPostfix":return{type:"optional",element:a};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:a,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:a,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[a,{type:"terminal",value:"-"},j(b.except)]};default:throw Error(`Unsupported EBNF postfix node: ${b.$type}`)}},"transformPostfix"),l=(0,e.__name)(a=>a.postfixes.reduce((a,b)=>k(a,b),j(a.base)),"transformTerm"),m=(0,e.__name)(a=>({name:a.name,definition:h(a.definition)}),"transformRule"),n=(0,e.__name)(a=>{(0,c.populateCommonDb)(a,b.db),a.title&&b.db.setTitle(a.title),a.rules.map(a=>b.db.addRule(m(a)))},"populateDb"),o={parser:{parse:(0,e.__name)(a=>{b.db.clear(),d.log.debug("[EBNF Parser] Starting Langium parse");let c=g.parse(a);if(c.lexerErrors.length>0||c.parserErrors.length>0)throw new f.MermaidParseError(c);let e=c.value;d.log.debug("[EBNF Parser] Parsed rules:",e.rules.length),n(e),d.log.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:b.db}},db:b.db,renderer:b.renderer,styles:b.getStyles};a.s(["diagram",0,o])}];
2
2
 
3
- //# sourceMappingURL=node_modules_0kl7-tn._.js.map
3
+ //# sourceMappingURL=node_modules_0h50b8n._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])},846881,a=>{"use strict";var b=a.i(149213),c=a.i(361055);a.i(53467),a.i(261234);var d=a.i(875117),e=a.i(539110),f=a.i(838673),g=(0,a.i(898944).createRailroadServices)().Railroad.parser.LangiumParser,h=(0,e.__name)(a=>{switch(a.$type){case"RailroadTerminalExpr":return{type:"terminal",value:a.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:a.name};case"RailroadSpecialExpr":return{type:"special",text:a.text};case"RailroadSequenceExpr":{let b=a.elements.map(h);return 1===b.length?b[0]:{type:"sequence",elements:b}}case"RailroadChoiceExpr":{let b=a.alternatives.map(h);return 1===b.length?b[0]:{type:"choice",alternatives:b}}case"RailroadOptionalExpr":return{type:"optional",element:h(a.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:h(a.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:h(a.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${a.$type}`)}},"transformExpression"),i=(0,e.__name)(a=>({name:a.name,definition:h(a.definition)}),"transformRule"),j=(0,e.__name)(a=>{(0,c.populateCommonDb)(a,b.db),a.title&&b.db.setTitle(a.title),a.rules.map(a=>b.db.addRule(i(a)))},"populateDb"),k={parser:{parse:(0,e.__name)(a=>{b.db.clear(),d.log.debug("[Railroad Parser] Starting Langium parse");let c=g.parse(a);if(c.lexerErrors.length>0||c.parserErrors.length>0)throw new f.MermaidParseError(c);let e=c.value;d.log.debug("[Railroad Parser] Parsed rules:",e.rules.length),j(e),d.log.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:b.db}},db:b.db,renderer:b.renderer,styles:b.getStyles};a.s(["diagram",0,k])}];
2
2
 
3
- //# sourceMappingURL=node_modules_0_n241r._.js.map
3
+ //# sourceMappingURL=node_modules_0h5hnr1._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])},595628,a=>{"use strict";var b=a.i(149213),c=a.i(361055);a.i(53467),a.i(261234);var d=a.i(875117),e=a.i(539110),f=a.i(838673),g=(0,a.i(919303).createRailroadPegServices)().RailroadPeg.parser.LangiumParser,h=(0,e.__name)(a=>{let b=a.alternatives.map(i);return 1===b.length?b[0]:{type:"choice",alternatives:b}},"transformOrderedChoice"),i=(0,e.__name)(a=>{let b=a.elements.map(j);return 1===b.length?b[0]:{type:"sequence",elements:b}},"transformSequence"),j=(0,e.__name)(a=>{let b=l(a.suffix);return a.operator?{type:"special",text:"&"===a.operator?`&${k(b)}`:`!${k(b)}`}:b},"transformPrefix"),k=(0,e.__name)(a=>{switch(a.type){case"terminal":return`"${a.value}"`;case"nonterminal":return a.name;case"special":return a.text;default:return"(...)"}},"nodeToLabel"),l=(0,e.__name)(a=>{let b=m(a.primary);if(!a.operator)return b;switch(a.operator){case"?":return{type:"optional",element:b};case"*":return{type:"repetition",element:b,min:0,max:1/0};case"+":return{type:"repetition",element:b,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${a.operator}`)}},"transformSuffix"),m=(0,e.__name)(a=>{switch(a.$type){case"PegLiteral":return{type:"terminal",value:a.value};case"PegIdentifier":return{type:"nonterminal",name:a.name};case"PegGroup":return h(a.element);case"PegAny":return{type:"special",text:a.dot};default:throw Error(`Unsupported PEG primary node: ${a.$type}`)}},"transformPrimary"),n=(0,e.__name)(a=>({name:a.name,definition:h(a.definition)}),"transformRule"),o=(0,e.__name)(a=>{(0,c.populateCommonDb)(a,b.db),a.title&&b.db.setTitle(a.title),a.rules.map(a=>b.db.addRule(n(a)))},"populateDb"),p={parser:{parse:(0,e.__name)(a=>{b.db.clear(),d.log.debug("[PEG Parser] Starting Langium parse");let c=g.parse(a);if(c.lexerErrors.length>0||c.parserErrors.length>0)throw new f.MermaidParseError(c);let e=c.value;d.log.debug("[PEG Parser] Parsed rules:",e.rules.length),o(e),d.log.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:b.db}},db:b.db,renderer:b.renderer,styles:b.getStyles};a.s(["diagram",0,p])}];
2
2
 
3
- //# sourceMappingURL=node_modules_0lrjk5t._.js.map
3
+ //# sourceMappingURL=node_modules_0h7u60n._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])},617803,a=>{"use strict";var b=a.i(361055),c=a.i(887370),d=a.i(261234),e=a.i(875117),f=a.i(539110),g=a.i(838673),h=a.i(841243);a.i(975930);var i=a.i(671731),j="position frame",k="frame positioned",l="position relation",m="relation positioned",n=(0,f.__name)(function(a){e.log.debug("options str",a)},"setOptions"),o=(0,f.__name)(function(){return{}},"getOptions"),p=(0,f.__name)(function(){q(),(0,d.clear)()},"clear");function q(){t={}}(0,f.__name)(q,"reset");var r=d.defaultConfig_default.eventmodeling,s=(0,f.__name)(()=>(0,c.cleanAndMerge)({...r,...(0,d.getConfig)().eventmodeling}),"getConfig"),t={};function u(){let a=y,{ast:b}=t,c=x();if(!b)throw Error("No data for EventModel");return b.frames.forEach((d,f)=>{let g=F(d,b.dataEntities,c);a=V(a,{$kind:j,index:f,frame:d,textProps:g}),M(d)?(e.log.debug("source frame",d.sourceFrames),b.frames.filter(a=>d.sourceFrames.some(b=>b.$refText===a.name)).forEach(b=>{a=V(a,{$kind:l,index:f,frame:d,sourceFrame:b})})):a=V(a,{$kind:l,index:f,frame:d})}),a={...a,sortedSwimlanesArray:J(a.swimlanes)}}function v(a){t.ast=a}(0,f.__name)(u,"getState"),(0,f.__name)(v,"setAst");var w={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function x(){return w}(0,f.__name)(x,"getDiagramProps");var y={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function z(a){let b=a.split(".");if(2===b.length)return b[0]}function A(a){let b=a.split(".");return 2===b.length?b[1]:a}function B(a,b){if(b&&0!==b.length)return Object.values(a).find(a=>a.namespace===b)}function C(a,b,c){return Math.max(b,...Object.keys(a).filter(a=>{let d=Number.parseInt(a);return d>b&&d<c}).map(a=>Number.parseInt(a)))+1}function D(a,b){let c=z(a.entityIdentifier),d=B(b,c);switch(a.modelEntityType){case"ui":case"pcr":case"processor":if(d)return{index:d.index,label:d.namespace||w.labelUiAutomation};if(c)return{index:C(b,0,100),label:w.labelUiAutomationPrefix+c};return{index:0,label:w.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(d)return{index:d.index,label:d.namespace||w.labelCommandReadModel};if(c)return{index:C(b,100,200),label:w.labelCommandReadModelPrefix+c};return{index:100,label:w.labelCommandReadModel};default:if(d)return{index:d.index,label:d.namespace||w.labelEvents};if(c)return{index:C(b,200,300),label:w.labelEventsPrefix+c};return{index:200,label:w.labelEvents}}}function E(a){let{themeVariables:b}=(0,d.getConfig)();switch(a.modelEntityType){case"ui":return{fill:b.emUiFill??"white",stroke:b.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:b.emProcessorFill??"#edb3f6",stroke:b.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:b.emReadModelFill??"#d3f1a2",stroke:b.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:b.emCommandFill??"#bcd6fe",stroke:b.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:b.emEventFill??"#ffb778",stroke:b.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function F(a,b,f){let g,h=(0,d.getConfig)(),i=(0,d.sanitizeText)(A(a.entityIdentifier)??"",h),j={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"},k=(0,c.wrapLabel)(i,f.textMaxWidth,j),l=`<b>${k}</b>`;if(a.dataInlineValue&&(g=(g=(g=a.dataInlineValue).substring(g.indexOf("{")+1)).substring(0,g.lastIndexOf("}")-1),g=(0,d.sanitizeText)(g,h),g=(g=(0,c.wrapLabel)(g,f.textMaxWidth,j)).replaceAll(" ","&nbsp;")),a.dataReference){let e=b.find(b=>b.name===a.dataReference?.$refText);e&&(g=(g=(g=e.dataBlockValue).substring(g.indexOf("{\n")+2)).substring(0,g.lastIndexOf("}")-1),g=(0,d.sanitizeText)(g,h),g=(g=(0,c.wrapLabel)(g,f.textMaxWidth,j)).replaceAll(" ","&nbsp;")+"<br/>")}let m=void 0!==g;m&&(l+=`<br/><br/><code style="text-align: left; display: block;max-width:${f.textMaxWidth}px">${g}</code>`);let n={fontSize:j.fontSize,fontWeight:j.fontWeight,fontFamily:j.fontFamily},o=(0,c.calculateTextDimensions)(l,n),p={content:l,width:m?o.width/3:o.width,height:o.height};return e.log.debug(`[${a.name}] ${a.entityIdentifier} text`,p),p}function G(a,b){let c=E(b.frame),d={width:b.textProps.width+2*w.boxTextPadding,height:b.textProps.height+2*w.boxTextPadding};return[{$kind:k,frame:b.frame,index:b.index,visual:c,dimension:d,textProps:b.textProps}]}function H(a,b,c){return void 0===b?w.contentStartX:b.index===a.index&&a.r?a.r+w.boxPadding:void 0===c?w.contentStartX:c.r-w.boxOverlap+w.boxPadding}function I(a,b){return Math.max(...a.map(a=>a.r),b)}function J(a){return Object.values(a).sort((a,b)=>a.index-b.index)}function K(a,b){let c,d=D(b.frame,a.swimlanes);c=d.index in a.swimlanes?a.swimlanes[d.index]:{index:d.index,label:d.label,r:0,y:d.index*w.swimlaneMinHeight+w.swimlaneGap,height:w.swimlaneMinHeight,maxHeight:w.swimlaneMinHeight};let e=a.boxes.length>0?a.boxes[a.boxes.length-1]:void 0,f=void 0!==a.previousSwimlaneNumber?a.swimlanes[a.previousSwimlaneNumber]:void 0,g={width:Math.max(w.boxMinWidth,Math.min(w.boxMaxWidth,b.dimension.width))+2*w.boxPadding,height:Math.max(w.boxMinHeight,Math.min(w.boxMaxHeight,b.dimension.height))+2*w.boxPadding},h=H(c,f,e),i=h+g.width+w.boxPadding,j=I(Object.values(a.swimlanes),i);c.r=h+g.width,c.maxHeight=Math.max(c.maxHeight,g.height),c.height=Math.max(w.swimlaneMinHeight,c.maxHeight)+2*w.swimlanePadding;let k={x:h,y:w.swimlanePadding+c.y,r:i,dimension:g,leftSibling:!1,swimlane:c,visual:b.visual,text:b.textProps.content,frame:b.frame,index:b.index},l={...a,boxes:[...a.boxes,k],swimlanes:{...a.swimlanes,[`${c.index}`]:c},previousSwimlaneNumber:d.index,previousFrame:b.frame,maxR:j},m=J(l.swimlanes);m.length>0&&(m[0].y=0);for(let a=1;a<m.length;a++){let b=m[a],c=m[a-1];b.y=c.y+c.height+w.swimlaneGap}return l}function L(a,b){return 0===a&&0===b.sourceFrames.length}function M(a){return void 0!==a.sourceFrames&&null!==a.sourceFrames&&a.sourceFrames.length>0}function N(a,b){if(null!=b)return a.find(a=>a.frame.name===b.name)}function O(a,b,c){if(!(c<0))for(let d=c;d>=0;d--){let c=a[d];if(c.swimlane.index!==b)return c}}function P(a,b){let c;if((0,h.isEmResetFrame)(b.frame)||L(b.index,b.frame))return[];let d=N(a.boxes,b.frame);if(void 0===d)throw Error(`Target box not found for frame ${b.frame.name}`);return void 0===(c=b.sourceFrame?N(a.boxes,b.sourceFrame):O(a.boxes,d.swimlane.index,b.index-1))?[]:[{$kind:m,frame:b.frame,index:b.index,sourceBox:c,targetBox:d}]}function Q(a,b){let c={visual:{fill:"none",stroke:"#000"},source:{x:b.sourceBox.x,y:b.sourceBox.y},target:{x:b.targetBox.x,y:b.targetBox.y},sourceBox:b.sourceBox,targetBox:b.targetBox};return{...a,relations:[...a.relations,c]}}(0,f.__name)(z,"extractNamespace"),(0,f.__name)(A,"extractName"),(0,f.__name)(B,"findSwimlaneByNamespace"),(0,f.__name)(C,"findNextAvailableIndex"),(0,f.__name)(D,"calculateSwimlaneProps"),(0,f.__name)(E,"calculateEntityVisualProps"),(0,f.__name)(F,"calculateTextProps"),(0,f.__name)(G,"decidePositionFrame"),(0,f.__name)(H,"calculateX"),(0,f.__name)(I,"calculateMaxRight"),(0,f.__name)(J,"sortedSwimlanesArray"),(0,f.__name)(K,"evolveFramePositioned"),(0,f.__name)(L,"isFirstFrame"),(0,f.__name)(M,"hasSourceFrame"),(0,f.__name)(N,"findBoxByFrame"),(0,f.__name)(O,"findBoxByLineIndex"),(0,f.__name)(P,"decidePositionRelation"),(0,f.__name)(Q,"evolveRelationPositioned");var R={[j]:G,[l]:P},S={[k]:K,[m]:Q};function T(a,b){let c=R[b.$kind];if(null==c)return[];let d=c(a,b);return e.log.debug("decided events",d),d}function U(a,b){let c=b.reduce((a,b)=>{let c=S[b.$kind];return null==c?a:c(a,b)},a);return e.log.debug("evolve events",{state:a,newState:c,events:b}),c}function V(a,b){let c=T(a,b);return U(a,c)}(0,f.__name)(T,"decide"),(0,f.__name)(U,"evolve"),(0,f.__name)(V,"dispatch");var W={getConfig:s,setOptions:n,getOptions:o,clear:p,setAccTitle:d.setAccTitle,getAccTitle:d.getAccTitle,getAccDescription:d.getAccDescription,setAccDescription:d.setAccDescription,setDiagramTitle:d.setDiagramTitle,getDiagramTitle:d.getDiagramTitle,setAst:v,getDiagramProps:x,getState:u},X={parse:(0,f.__name)(async a=>{let c=await (0,g.parse)("eventmodeling",a);e.log.debug(c),W.setAst(c),(0,b.populateCommonDb)(c,W)},"parse")},Y=(0,d.getConfig2)(),Z=Y?.eventmodeling;function $(a,b){return c=>{let d=c.swimlane.y+b.swimlanePadding,e=a.append("g").attr("class","em-box");e.append("rect").attr("x",c.x).attr("y",d).attr("rx","3").attr("width",c.dimension.width).attr("height",c.dimension.height).attr("stroke",c.visual.stroke).attr("fill",c.visual.fill),e.append("foreignObject").attr("x",c.x+b.boxPadding).attr("y",d+10).attr("width",c.dimension.width-2*b.boxPadding).attr("height",c.dimension.height-2*b.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(c.text)}}function _(a,b){return a>b}function aa(a,b,c,d){return f=>{let g,h,i=f.sourceBox.swimlane.y+b.swimlanePadding,j=f.targetBox.swimlane.y+b.swimlanePadding,k=_(i,j),l=f.sourceBox.x+2*f.sourceBox.dimension.width/3,m=f.targetBox.x+f.targetBox.dimension.width/3;e.log.debug(`rendering relation up=${k} for `,{sourceBox:f.sourceBox,targetBox:f.targetBox}),k?(g=i,h=j+f.targetBox.dimension.height):(g=i+f.sourceBox.dimension.height,h=j);let n=d.emRelationStroke??f.visual.stroke;a.append("path").attr("class","em-relation").attr("fill",f.visual.fill).attr("stroke",n).attr("stroke-width","1").attr("marker-end",`url(#${c})`).attr("d",`M${l} ${g} L${m} ${h}`)}}function ab(a,b,c,d){return e=>{let f=a.append("g").attr("class","em-swimlane"),g=d.emSwimlaneBackgroundOdd??"rgb(250,250,250)",h=d.emSwimlaneBackgroundStroke??"rgb(240,240,240)";f.append("rect").attr("x",0).attr("y",e.y).attr("rx","3").attr("width",b+c.swimlanePadding).attr("height",e.height).attr("fill",g).attr("stroke",h),f.append("text").attr("font-weight",c.swimlaneTextFontWeight).attr("x",30).attr("y",e.y+30).text(e.label)}}(0,f.__name)($,"renderD3Box"),(0,f.__name)(_,"dirUpwards"),(0,f.__name)(aa,"renderD3Relation"),(0,f.__name)(ab,"renderD3Swimlane");var ac=(0,f.__name)(function(a,b,c,f){if(e.log.debug("in eventmodeling renderer",a+"\n","id:",b,c),!Z)throw Error("EventModeling config not found");let g=f.db,{themeVariables:h,eventmodeling:j}=(0,d.getConfig2)(),k=(0,i.select)(`[id="${b}"]`),l=g.getDiagramProps(),m=g.getState(),n=`em-arrowhead-${b}`,o=h.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ab(k,m.maxR,l,h)),m.boxes.forEach($(k,l)),m.relations.forEach(aa(k,l,n,h)),k.append("defs").append("marker").attr("id",n).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",o),(0,d.setupGraphViewbox2)(void 0,k,j?.padding??30,j?.useMaxWidth)},"draw"),ad=(0,f.__name)(a=>"","getStyles");a.s(["diagram",0,{parser:X,db:W,renderer:{draw:ac},styles:ad}])}];
2
2
 
3
- //# sourceMappingURL=node_modules_0ndvxub._.js.map
3
+ //# sourceMappingURL=node_modules_0lm7_vm._.js.map
@@ -61,4 +61,4 @@ module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@
61
61
  }
62
62
  `},"styles");a.s(["diagram",0,{parser:o,db:m,renderer:{draw:z},styles:B}])}];
63
63
 
64
- //# sourceMappingURL=node_modules_13r44jq._.js.map
64
+ //# sourceMappingURL=node_modules_0mwym0g._.js.map
@@ -1,3 +1,3 @@
1
1
  module.exports=[529285,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_00ptcss._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(726362)))},568773,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1p161c7._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(702288)))},409811,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0xbyurn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(33048)))},879004,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0mkvkrn._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(959346)))},240897,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_10l-aox._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(78860)))},979209,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_11iptmm._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(731813)))},265949,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0c6uq4c._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(995889)))},788089,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0d8brvh._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(580288)))},414059,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1lr-xqr._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(566552)))},158161,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1t9e3ef._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(931663)))},621173,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0_iovbk._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(493860)))},594722,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1_98arq._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(337649)))},685272,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_183vuvb._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(898437)))},219771,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0ha29gs._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(650794)))},510010,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0a2p_6-._.js","server/chunks/ssr/1daa_@mermaid-js_parser_dist_chunks_mermaid-parser_core_chunk-FOHPRMQF_mjs_0ybwfeq._.js"].map(b=>a.l(b))).then(()=>b(613650)))},161868,a=>{"use strict";var b=a.i(149213),c=a.i(361055);a.i(53467),a.i(261234);var d=a.i(875117),e=a.i(539110),f=a.i(838673),g=(0,a.i(644289).createRailroadAbnfServices)().RailroadAbnf.parser.LangiumParser,h=(0,e.__name)(a=>{let b=a.alternatives.map(i);return 1===b.length?b[0]:{type:"choice",alternatives:b}},"transformAlternation"),i=(0,e.__name)(a=>{let b=a.elements.map(k);return 1===b.length?b[0]:{type:"sequence",elements:b}},"transformConcatenation"),j=(0,e.__name)(a=>{if(a.includes("*")){let[b,c]=a.split("*");return{min:b?parseInt(b,10):0,max:c?parseInt(c,10):1/0}}let b=parseInt(a,10);return{min:b,max:b}},"parseRepeat"),k=(0,e.__name)(a=>{let b=l(a.primary);if(!a.repeat)return b;let{min:c,max:d}=j(a.repeat);return 0===c&&1===d?{type:"optional",element:b}:{type:"repetition",element:b,min:c,max:d}},"transformElement"),l=(0,e.__name)(a=>{switch(a.$type){case"AbnfStringLiteral":case"AbnfNumVal":return{type:"terminal",value:a.value};case"AbnfRuleName":return{type:"nonterminal",name:a.name};case"AbnfGroup":return h(a.element);case"AbnfOptionalGroup":return{type:"optional",element:h(a.element)};default:throw Error(`Unsupported ABNF primary node: ${a.$type}`)}},"transformPrimary"),m=(0,e.__name)(a=>({name:a.name,definition:h(a.definition)}),"transformRule"),n=(0,e.__name)(a=>{(0,c.populateCommonDb)(a,b.db),a.title&&b.db.setTitle(a.title),a.rules.map(a=>b.db.addRule(m(a)))},"populateDb"),o={parser:{parse:(0,e.__name)(a=>{b.db.clear(),d.log.debug("[ABNF Parser] Starting Langium parse");let c=g.parse(a);if(c.lexerErrors.length>0||c.parserErrors.length>0)throw new f.MermaidParseError(c);let e=c.value;d.log.debug("[ABNF Parser] Parsed rules:",e.rules.length),n(e),d.log.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:b.db}},db:b.db,renderer:b.renderer,styles:b.getStyles};a.s(["diagram",0,o])},361055,a=>{"use strict";function b(a,b){a.accDescr&&b.setAccDescription?.(a.accDescr),a.accTitle&&b.setAccTitle?.(a.accTitle),a.title&&b.setDiagramTitle?.(a.title)}(0,a.i(539110).__name)(b,"populateCommonDb"),a.s(["populateCommonDb",0,b])}];
2
2
 
3
- //# sourceMappingURL=node_modules_17lrt3y._.js.map
3
+ //# sourceMappingURL=node_modules_0rjg6t1._.js.map