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.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +5 -2
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +5 -5
- package/.next/routes-manifest.json +24 -6
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +2 -2
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +14 -14
- package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +12 -12
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/artifact/route.js +3 -3
- package/.next/server/app/api/artifact/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/files/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/memory/files/route.js +10 -0
- package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -0
- package/.next/server/app/api/bot/memory/files/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/memory/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/bot/memory/route.js +14 -0
- package/.next/server/app/api/bot/{notes → memory}/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/memory/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/bot/route.js +6 -6
- package/.next/server/app/api/bot/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/[id]/route.js +8 -8
- package/.next/server/app/api/bot/task/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/bot/task/route.js +8 -8
- package/.next/server/app/api/bot/task/route.js.nft.json +1 -1
- package/.next/server/app/api/config/route.js +5 -5
- package/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/server/app/api/events/route.js +4 -5
- package/.next/server/app/api/events/route.js.nft.json +1 -1
- package/.next/server/app/api/file/[...path]/route.js +3 -3
- package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/catalog/route.js +9 -8
- package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/credits/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/credits/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/credits/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/credits/route.js +16 -0
- package/.next/server/app/api/llm-model/credits/route.js.map +5 -0
- package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/credits/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/llm-model/route.js +10 -8
- package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
- package/.next/server/app/api/llm-model/subscription/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/llm-model/subscription/route/build-manifest.json +12 -0
- package/.next/server/app/api/llm-model/subscription/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/llm-model/subscription/route.js +15 -0
- package/.next/server/app/api/llm-model/subscription/route.js.map +5 -0
- package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -0
- package/.next/server/app/api/llm-model/subscription/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/mcp/[name]/route.js +4 -4
- package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/oauth/callback/route.js +5 -5
- package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +4 -4
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/tools/route.js +4 -4
- package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
- package/.next/server/app/api/memory/edit/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/memory/edit/route/build-manifest.json +12 -0
- package/.next/server/app/api/memory/edit/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/memory/edit/route.js +24 -0
- package/.next/server/app/api/memory/edit/route.js.map +5 -0
- package/.next/server/app/api/memory/edit/route.js.nft.json +1 -0
- package/.next/server/app/api/memory/{tidy → edit}/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/memory/route.js +6 -7
- package/.next/server/app/api/memory/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/[source]/[name]/route.js +3 -3
- package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/skills/route.js +3 -3
- package/.next/server/app/api/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/call/route.js +9 -7
- package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/skills/route.js +9 -7
- package/.next/server/app/api/thursday/skills/route.js.nft.json +1 -1
- package/.next/server/app/api/thursday/tool-call/route.js +17 -15
- package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/route.js +4 -5
- package/.next/server/app/api/workspace/route.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +1 -1
- package/.next/server/app/artifact/[...path]/page.js +5 -6
- package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +3 -4
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/page/server-reference-manifest.json +57 -90
- package/.next/server/app/page.js +10 -10
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +5 -2
- package/.next/server/chunks/[externals]__0dzuk6_._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__01dkp4a._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__02va5wz._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__02xjoto._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__04q--0f._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0bl-e63._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0ce8nf8._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__0ffbg85._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0j7z0r3._.js +12 -0
- package/.next/server/chunks/[root-of-the-server]__0jq4ohy._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0ls6_8y._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0pa2n68._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0q0vvt2._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1-ga0kh._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__11n256_._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__12cabg9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1339jnv._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__18_teo8._.js +8 -0
- package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__1anc1p9._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1ccon1w._.js +5 -5
- package/.next/server/chunks/[root-of-the-server]__1fizn31._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1llj3-b._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1orn-5b._.js +11 -0
- package/.next/server/chunks/[root-of-the-server]__1p8m3f4._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1wa1k7r._.js +8 -0
- package/.next/server/chunks/_0-73of8._.js +5 -5
- package/.next/server/chunks/_0-fjql4._.js +26 -0
- package/.next/server/chunks/_00xh_q0._.js +27 -0
- package/.next/server/chunks/{_0pppbb5._.js → _03kp0jp._.js} +163 -36
- package/.next/server/chunks/_051qh8u._.js +3 -0
- package/.next/server/chunks/{node_modules_next_04q-o58._.js → _05dla15._.js} +2 -2
- package/.next/server/chunks/_05h2cii._.js +1 -1
- package/.next/server/chunks/_0c9j6rb._.js +49 -0
- package/.next/server/chunks/_0fzqt2y._.js +130 -0
- package/.next/server/chunks/{_0vnutv9._.js → _0ioz3nd._.js} +1 -1
- package/.next/server/chunks/_0iwfby5._.js +3 -0
- package/.next/server/chunks/_0mecv0f._.js +26 -0
- package/.next/server/chunks/_0mh8j4m._.js +3 -0
- package/.next/server/chunks/_0n74zsf._.js +4 -4
- package/.next/server/chunks/_0obojvv._.js +3 -0
- package/.next/server/chunks/_0recufk._.js +49 -0
- package/.next/server/chunks/_0rnf-6n._.js +4 -4
- package/.next/server/chunks/_0sb7tlz._.js +3 -0
- package/.next/server/chunks/_0u10wmw._.js +5 -5
- package/.next/server/chunks/_0u4aiy2._.js +3 -0
- package/.next/server/chunks/_0wp4le3._.js +1 -1
- package/.next/server/chunks/_0y5fg-x._.js +1 -1
- package/.next/server/chunks/_1230wbx._.js +10 -0
- package/.next/server/chunks/_12nheja._.js +3 -0
- package/.next/server/chunks/_13510xh._.js +3 -0
- package/.next/server/chunks/_15hq89o._.js +1 -1
- package/.next/server/chunks/_17l5ygt._.js +49 -0
- package/.next/server/chunks/_18-1wcc._.js +5 -5
- package/.next/server/chunks/_1_5mnq4._.js +4 -4
- package/.next/server/chunks/_1_9mjx-._.js +3 -0
- package/.next/server/chunks/_1d0j961._.js +6 -0
- package/.next/server/chunks/_1d5zmy8._.js +1 -1
- package/.next/server/chunks/_1drgfx4._.js +4 -4
- package/.next/server/chunks/_1f46eie._.js +3 -0
- package/.next/server/chunks/_1h5_8sk._.js +3 -0
- package/.next/server/chunks/_1hdnxb7._.js +3 -0
- package/.next/server/chunks/_1j8k_j5._.js +3 -0
- package/.next/server/chunks/_1krd9rf._.js +3 -0
- package/.next/server/chunks/_1nc0eui._.js +11 -0
- package/.next/server/chunks/_1nula3v._.js +3 -0
- package/.next/server/chunks/_1pf4qe-._.js +3 -0
- package/.next/server/chunks/_1php4eq._.js +1 -1
- package/.next/server/chunks/_1qxheoa._.js +3 -0
- package/.next/server/chunks/_1x6kd1r._.js +3 -0
- package/.next/server/chunks/_1yuv4vp._.js +1 -1
- package/.next/server/chunks/_1zjrdag._.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_memory_files_route_actions_1_xd_8f.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_bot_memory_route_actions_1a8xfr7.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_credits_route_actions_0v424pb.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_llm-model_subscription_route_actions_0-udcm5.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_memory_edit_route_actions_02sfnmr.js +3 -0
- package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
- package/.next/server/chunks/features_0rpfxbk._.js +3 -0
- package/.next/server/chunks/features_1qf3cei._.js +3 -0
- package/.next/server/chunks/features_bot_0zt92oh._.js +3 -0
- package/.next/server/chunks/features_bot_bot_query_ts_12mgkl2._.js +3 -0
- package/.next/server/chunks/features_memory_1uqvksn._.js +6 -0
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0a1rd09._.js → node_modules_consola_dist_chunks_prompt_mjs_0i7cvml._.js} +1 -1
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_06067w6._.js → node_modules_consola_dist_chunks_prompt_mjs_0icqaqw._.js} +1 -1
- 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
- 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
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1xoq2rl._.js +3 -0
- package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0tvkfgh._.js → node_modules_consola_dist_chunks_prompt_mjs_1y49572._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__09q9med._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qfqvmg._.js → [root-of-the-server]__0_69wqr._.js} +2 -2
- package/.next/server/chunks/ssr/[root-of-the-server]__0hg5gib._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0i8ie7f._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0jsmmb-._.js → [root-of-the-server]__0mz33a7._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0tbkdlx._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0vnmv-s._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0f6s48x._.js → [root-of-the-server]__0xpcv9w._.js} +3 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0xtssj3._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__0zkv7z_._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +57 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__15_uhip._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__16jc196._.js +1 -1
- package/.next/server/chunks/ssr/{[root-of-the-server]__0m1b5ky._.js → [root-of-the-server]__1cyjywu._.js} +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1eh7hid._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1gtlw6v._.js +43 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1mzi-ju._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1ox7hbk._.js +4 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1pduf5n._.js +3 -0
- package/.next/server/chunks/ssr/{_1mznrxk._.js → _001_ms1._.js} +3 -3
- package/.next/server/chunks/ssr/_01_6m32._.js +3 -0
- package/.next/server/chunks/ssr/_01n3o0m._.js +3 -0
- package/.next/server/chunks/ssr/_07uchnc._.js +3 -0
- package/.next/server/chunks/ssr/_0ap2fzn._.js +3 -0
- package/.next/server/chunks/ssr/_0c-ql2m._.js +3 -0
- package/.next/server/chunks/ssr/_0h42fze._.js +3 -0
- package/.next/server/chunks/ssr/_0h7zdni._.js +1 -1
- package/.next/server/chunks/ssr/_0i_6q1w._.js +41 -0
- package/.next/server/chunks/ssr/_0kbkmar._.js +3 -0
- package/.next/server/chunks/ssr/{_077-g6s._.js → _0mb8zc8._.js} +3 -3
- package/.next/server/chunks/ssr/_0mo2w06._.js +3 -0
- package/.next/server/chunks/ssr/{_13punpm._.js → _0q0zan6._.js} +2 -2
- package/.next/server/chunks/ssr/{_040sk32._.js → _0u2jv_x._.js} +76 -82
- package/.next/server/chunks/ssr/_0y0tiht._.js +4 -0
- package/.next/server/chunks/ssr/_0zhoc3r._.js +3 -0
- package/.next/server/chunks/ssr/_1-teee5._.js +3 -3
- package/.next/server/chunks/ssr/_13fke0x._.js +3 -0
- package/.next/server/chunks/ssr/{_1lip4th._.js → _13z3f85._.js} +2 -2
- package/.next/server/chunks/ssr/_14_lw10._.js +3 -0
- package/.next/server/chunks/ssr/_15j2_8f._.js +3 -0
- package/.next/server/chunks/ssr/{_09ja_w1._.js → _1eoqg_g._.js} +2 -2
- package/.next/server/chunks/ssr/_1sji22n._.js +3 -0
- package/.next/server/chunks/ssr/_1spzm8z._.js +3 -0
- package/.next/server/chunks/ssr/{_0x_nu5e._.js → _1vi_uo7._.js} +2 -2
- package/.next/server/chunks/ssr/_1vyd1ji._.js +1 -1
- package/.next/server/chunks/ssr/{_1m3bsfr._.js → _1xvgn77._.js} +2 -2
- package/.next/server/chunks/ssr/_20kd_n0._.js +42 -0
- package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +3 -0
- package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +1 -1
- package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
- package/.next/server/chunks/ssr/lib_date-like_ts_02is0pw._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_18_dk7_._.js → node_modules_063xwpp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01qnv-a._.js → node_modules_0bvraul._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0n1kj4p._.js → node_modules_0eu1va6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kl7-tn._.js → node_modules_0h50b8n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_n241r._.js → node_modules_0h5hnr1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lrjk5t._.js → node_modules_0h7u60n._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ndvxub._.js → node_modules_0lm7_vm._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13r44jq._.js → node_modules_0mwym0g._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17lrt3y._.js → node_modules_0rjg6t1._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0x3-ply._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_004qlr4._.js → node_modules_0y_cded._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kxz4gt._.js → node_modules_0z5tsu8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0iz1rzd._.js → node_modules_0zp9r92._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_19dp7ko._.js → node_modules_1-hc6uv._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1q0p85z._.js → node_modules_113tz0l._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1toafc-._.js → node_modules_124bue5._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_17bwo43._.js +55 -0
- package/.next/server/chunks/ssr/{node_modules_08d8bke._.js → node_modules_1_n3ztw._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1dwguw_._.js → node_modules_1bc7gu8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20yebtj._.js → node_modules_1bgb6-f._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n5ygqe._.js → node_modules_1h4a4pp._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04n7mjs._.js → node_modules_1i7u1ia._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hn8z1f._.js → node_modules_1juq3hs._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xyd7ov._.js → node_modules_1l0qtdu._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m93zeg._.js → node_modules_1t9cyee._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09xhur7._.js → node_modules_1uuj9x1._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hd-5tv._.js → node_modules_1vqb6po._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zu988w._.js → node_modules_1xx28h1._.js} +1 -1
- 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
- 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
- package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_0qe30a_._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_next_dist_0w6mzq5._.js → node_modules_next_dist_0drixxt._.js} +4 -4
- package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js +2 -2
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +58 -91
- package/.next/static/chunks/{31ttnjt6g35a0.js → 0ev4hyghq0mbb.js} +1 -1
- package/.next/static/chunks/0r5qcctujhxli.js +1 -0
- package/.next/static/chunks/0tmgrnlje14-s.js +3 -0
- package/.next/static/chunks/0x79tx04dxbpp.js +1 -0
- package/.next/static/chunks/0xzgvc0fkdb6t.js +1 -0
- package/.next/static/chunks/10teww7wt-f6h.js +1 -0
- package/.next/static/chunks/14hgtsjg-kael.css +1 -0
- package/.next/static/chunks/17donp69y4do7.js +40 -0
- package/.next/static/chunks/{3_h9txt3tq8t8.js → 1dkjg87pxk0n9.js} +1 -1
- package/.next/static/chunks/1ekc7ul556kbl.js +1 -0
- package/.next/static/chunks/{3ard_noqapnw1.js → 1grhjo7a5a0_-.js} +1 -1
- package/.next/static/chunks/1kq8h8wi_e0bc.js +53 -0
- package/.next/static/chunks/1okqiww3pnwka.js +1 -0
- package/.next/static/chunks/26-pr2c9ro222.js +1 -0
- package/.next/static/chunks/{18vhba44l1fc9.js → 280t0_e99i276.js} +1 -1
- package/.next/static/chunks/28cizcdaabd4h.js +1 -0
- package/.next/static/chunks/2a0k6jlq0_v1u.js +2 -0
- package/.next/static/chunks/2fzs9fm8yarvq.js +1 -0
- package/.next/static/chunks/2h0sd2vumhb15.js +1 -0
- package/.next/static/chunks/2hw2f6zmt7fmt.js +1 -0
- package/.next/static/chunks/2t4vhi3m8ahya.js +1 -0
- package/.next/static/chunks/2tigdtz3dpcy8.js +1 -0
- package/.next/static/chunks/3111pj5wnjgos.js +1 -0
- package/.next/static/chunks/{07kl352c-lvcz.js → 3agpgkwaa321p.js} +1 -1
- package/.next/static/chunks/3cfi_q6d_wtci.js +1 -0
- package/.next/static/chunks/3ok9_x74rip3v.js +1 -0
- package/.next/static/chunks/3xk7yqgomx7yq.js +1 -0
- package/.next/static/chunks/3xpbkl66ssib5.js +38 -0
- package/.next/static/media/favicon.37o1pjldwi2uc.ico +0 -0
- package/README.md +6 -4
- package/app/api/bot/memory/files/route.ts +14 -0
- package/app/api/bot/memory/route.ts +5 -0
- package/app/api/events/app-event.ts +3 -5
- package/app/api/llm-model/credits/route.ts +11 -0
- package/app/api/llm-model/route.ts +6 -1
- package/app/api/llm-model/subscription/route.ts +11 -0
- package/app/api/memory/edit/route.ts +7 -0
- package/app/api/memory/route.ts +21 -0
- package/app/api/query-key.ts +19 -4
- package/bin/thursday.mjs +3 -0
- package/components/ui/shiny-text.tsx +48 -134
- package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/migration.sql +24 -34
- package/database/migrations/{20260909060813_optimal_sabretooth → 20260910173049_numerous_spirit}/snapshot.json +71 -145
- package/database/migrations/20260911030320_opposite_jack_power/migration.sql +1 -0
- package/database/migrations/{20260909063821_bitter_tenebrous → 20260911030320_opposite_jack_power}/snapshot.json +57 -184
- package/features/ai/chatgpt.ts +617 -0
- package/features/ai/components/chatgpt-sign-in.tsx +66 -0
- package/features/ai/components/model-picker.tsx +17 -1
- package/features/ai/components/provider-icon.tsx +1 -0
- package/features/ai/load-tools.ts +58 -42
- package/features/ai/model.schema.ts +232 -34
- package/features/ai/model.ts +169 -24
- package/features/ai/prompts/bot.prompt.ts +156 -65
- package/features/ai/prompts/memory-edit.prompt.ts +33 -0
- package/features/ai/prompts/prompt-helper.ts +45 -26
- package/features/ai/prompts/thursday.prompt.ts +40 -17
- package/features/ai/tools/bot.tool.ts +35 -52
- package/features/ai/tools/connected.ts +17 -4
- package/features/ai/tools/memory.tool.ts +133 -72
- package/features/ai/tools/search.tool.ts +136 -47
- package/features/ai/tools/tool-name.ts +2 -5
- package/features/ai/tools/workspace.tool.ts +2 -1
- package/features/bot/bot.action.ts +8 -18
- package/features/bot/bot.memory.ts +89 -0
- package/features/bot/bot.query.ts +37 -57
- package/features/bot/bot.run.ts +507 -241
- package/features/bot/bot.runner.ts +410 -114
- package/features/bot/bot.schema.ts +79 -19
- package/features/bot/bot.seed.ts +89 -16
- package/features/bot/components/bot-mark.tsx +122 -20
- package/features/bot/components/bot-room.tsx +159 -130
- package/features/bot/components/bot-setting.tsx +790 -402
- package/features/bot/components/bot-tool.tsx +2 -6
- package/features/bot/components/mark-palette.tsx +54 -0
- package/features/bot/components/path-chips.tsx +1 -1
- package/features/bot/components/task-badge.tsx +26 -6
- package/features/bot/components/task-reply.tsx +22 -33
- package/features/bot/components/task-setting.tsx +20 -17
- package/features/bot/task.query.ts +215 -28
- package/features/bot/task.store.ts +53 -9
- package/features/config/components/config-setting.tsx +265 -34
- package/features/config/components/models-badge.tsx +42 -0
- package/features/config/config.action.ts +12 -0
- package/features/config/config.const.ts +38 -2
- package/features/connectors/mcp.manager.ts +10 -2
- package/features/intro/components/intro.tsx +47 -46
- package/features/memory/components/memory-edit.tsx +338 -0
- package/features/memory/components/memory-setting.tsx +75 -77
- package/features/memory/memory.action.ts +3 -43
- package/features/memory/memory.edit.ts +87 -0
- package/features/memory/memory.query.ts +24 -42
- package/features/memory/memory.schema.ts +29 -106
- package/features/settings/components/settings.tsx +2 -0
- package/features/settings/settings.alert.ts +3 -1
- package/features/thursday/components/ascii-orb.tsx +106 -90
- package/features/thursday/components/boot.tsx +7 -0
- package/features/thursday/components/call-log.tsx +219 -92
- package/features/thursday/components/face.tsx +6 -4
- package/features/thursday/components/tab-state.tsx +97 -0
- package/features/thursday/components/thursday-mark.tsx +4 -1
- package/features/thursday/components/thursday-setting.tsx +17 -47
- package/features/thursday/components/thursday.tsx +208 -95
- package/features/thursday/thursday.action.ts +12 -17
- package/features/thursday/thursday.query.ts +61 -70
- package/features/thursday/thursday.schema.ts +20 -7
- package/features/thursday/tool-line.ts +85 -11
- package/features/thursday/use-thursday.ts +86 -59
- package/features/workspace/components/file-view.tsx +4 -2
- package/features/workspace/workspace.ts +110 -26
- package/lib/limits.ts +1 -1
- package/lib/oauth-page.ts +27 -0
- package/lib/realtime/openai.ts +2 -2
- package/lib/realtime/realtime.protocol.ts +1 -1
- package/lib/realtime/realtime.tap.ts +122 -0
- package/lib/sandbox.ts +59 -36
- package/package.json +1 -1
- package/skills/browser/SKILL.md +55 -34
- package/.next/server/app/api/bot/notes/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/bot/notes/route.js +0 -14
- package/.next/server/app/api/bot/notes/route_client-reference-manifest.js +0 -3
- package/.next/server/app/api/memory/tidy/route/app-paths-manifest.json +0 -3
- package/.next/server/app/api/memory/tidy/route.js +0 -22
- package/.next/server/app/api/memory/tidy/route.js.nft.json +0 -1
- package/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0-npkh_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__005var5._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__019dx9f._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__02_2sm-._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__04_8spk._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__05luceg._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__06t77t4._.js +0 -11
- package/.next/server/chunks/[root-of-the-server]__0bed6hu._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0cro2dz._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0dupqt7._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0emr6go._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0le4d-p._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0m8ywyo._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__0nfuugi._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__0p32jfz._.js +0 -12
- package/.next/server/chunks/[root-of-the-server]__0phdgco._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__0wvgrsl._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__10qshki._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__11j52t0._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1692zrv._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__16thabu._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__173nhwf._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1_aoyr9._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1bn73ih._.js +0 -10
- package/.next/server/chunks/[root-of-the-server]__1bqhuh9._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1cqizfq._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1e-ci13._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1fboj2j._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1lr7j9t._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1oli73c._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1txedx6._.js +0 -8
- package/.next/server/chunks/[root-of-the-server]__1untqv8._.js +0 -5
- package/.next/server/chunks/[root-of-the-server]__1zgpz1w._.js +0 -3
- package/.next/server/chunks/_00_584r._.js +0 -293
- package/.next/server/chunks/_012yhfm._.js +0 -39
- package/.next/server/chunks/_06mxlgn._.js +0 -3
- package/.next/server/chunks/_07rtlxv._.js +0 -3
- package/.next/server/chunks/_0a351g7._.js +0 -6
- package/.next/server/chunks/_0kjjmag._.js +0 -3
- package/.next/server/chunks/_0nn99o2._.js +0 -3
- package/.next/server/chunks/_0zuzmt_._.js +0 -39
- package/.next/server/chunks/_106co2o._.js +0 -3
- package/.next/server/chunks/_12bbv5i._.js +0 -100
- package/.next/server/chunks/_15q1pig._.js +0 -3
- package/.next/server/chunks/_19wg5yn._.js +0 -138
- package/.next/server/chunks/_1bt95p9._.js +0 -55
- package/.next/server/chunks/_1cbk7ms._.js +0 -26
- package/.next/server/chunks/_1drv2et._.js +0 -40
- package/.next/server/chunks/_1ic3bew._.js +0 -5
- package/.next/server/chunks/_1mxn_lb._.js +0 -3
- package/.next/server/chunks/_1rysr-r._.js +0 -10
- package/.next/server/chunks/_1u3rwbr._.js +0 -3
- package/.next/server/chunks/_1x7p319._.js +0 -6
- package/.next/server/chunks/_next-internal_server_app_api_bot_notes_route_actions_0qcsyu7.js +0 -3
- package/.next/server/chunks/_next-internal_server_app_api_memory_tidy_route_actions_0_cfuom.js +0 -3
- package/.next/server/chunks/features_bot_task_query_ts_11xuzl3._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0gzvgfv._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_0vorg6w._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1tpvamf._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1vmaq9f._.js +0 -3
- package/.next/server/chunks/node_modules_consola_dist_chunks_prompt_mjs_1y9-wcr._.js +0 -3
- package/.next/server/chunks/ssr/[externals]_node_crypto_1kn79-7._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0iuoa-r._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__0un-erv._.js +0 -4
- package/.next/server/chunks/ssr/[root-of-the-server]__1-mnhyd._.js +0 -92
- package/.next/server/chunks/ssr/[root-of-the-server]__1bww500._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1vcdast._.js +0 -3
- package/.next/server/chunks/ssr/[root-of-the-server]__1xwnu-h._.js +0 -3
- package/.next/server/chunks/ssr/_0-mc7ro._.js +0 -3
- package/.next/server/chunks/ssr/_01p5r6-._.js +0 -3
- package/.next/server/chunks/ssr/_03webdr._.js +0 -3
- package/.next/server/chunks/ssr/_09-0k3z._.js +0 -3
- package/.next/server/chunks/ssr/_0f_b_9s._.js +0 -3
- package/.next/server/chunks/ssr/_0fafgvl._.js +0 -3
- package/.next/server/chunks/ssr/_0sf1isi._.js +0 -3
- package/.next/server/chunks/ssr/_0su6_08._.js +0 -3
- package/.next/server/chunks/ssr/_0ti51xc._.js +0 -3
- package/.next/server/chunks/ssr/_0w5bgak._.js +0 -3
- package/.next/server/chunks/ssr/_0y84qo6._.js +0 -3
- package/.next/server/chunks/ssr/_1ciyoo3._.js +0 -3
- package/.next/server/chunks/ssr/_1e-dgz0._.js +0 -4
- package/.next/server/chunks/ssr/_1fq7zgb._.js +0 -3
- package/.next/server/chunks/ssr/_1g6l4uj._.js +0 -3
- package/.next/server/chunks/ssr/_1ruzehw._.js +0 -3
- package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +0 -4
- package/.next/server/chunks/ssr/features_config_components_14jqgy4._.js +0 -3
- package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +0 -4
- package/.next/server/chunks/ssr/node_modules_zod_v4_classic_external_15fmmz3.js +0 -55
- package/.next/static/chunks/05b6nx_o3_f_n.js +0 -1
- package/.next/static/chunks/0dmns-gi0raa4.js +0 -1
- package/.next/static/chunks/0f9sq-7q_yxyl.js +0 -1
- package/.next/static/chunks/0oc4_xoia77dg.css +0 -1
- package/.next/static/chunks/0pheo8m3a-rzi.js +0 -1
- package/.next/static/chunks/19i8h2t-5evjx.js +0 -1
- package/.next/static/chunks/1c5fcj473025q.js +0 -1
- package/.next/static/chunks/1pi_hbmjw-f-z.js +0 -1
- package/.next/static/chunks/1twt6k09vg4np.js +0 -1
- package/.next/static/chunks/1ytnip8wdng93.js +0 -1
- package/.next/static/chunks/28gotuisldmom.js +0 -1
- package/.next/static/chunks/2998p0y7k1c8z.js +0 -3
- package/.next/static/chunks/29gyb3nubj51j.js +0 -53
- package/.next/static/chunks/2l233xfycjpd8.js +0 -1
- package/.next/static/chunks/2p5n7pa3c40t-.js +0 -2
- package/.next/static/chunks/2ru1q132af7h7.js +0 -1
- package/.next/static/chunks/2t8wqycwg3y04.js +0 -2
- package/.next/static/chunks/2uxum7qbyeyxd.js +0 -1
- package/.next/static/chunks/32z_ypgtchw48.js +0 -1
- package/.next/static/chunks/33pyjb3xd1iez.js +0 -1
- package/.next/static/chunks/3omud5xunrk1f.js +0 -1
- package/.next/static/chunks/42dnrkbph9e-1.js +0 -1
- package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- package/database/migrations/20260909063821_bitter_tenebrous/migration.sql +0 -1
- package/features/ai/prompts/memory-tidy.prompt.ts +0 -129
- package/features/ai/tools/tidy.tool.ts +0 -22
- package/features/bot/bot.notes.ts +0 -120
- package/features/memory/components/memory-tidy.tsx +0 -395
- package/features/memory/memory.tidy.ts +0 -332
- package/features/memory/tidy.query.ts +0 -135
- package/features/thursday/use-call-title.ts +0 -31
- /package/.next/server/app/api/bot/{notes → memory/files}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/bot/{notes → memory/files}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/bot/{notes → memory/files}/route.js.map +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route/build-manifest.json +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route/server-reference-manifest.json +0 -0
- /package/.next/server/app/api/{memory/tidy → bot/memory}/route.js.map +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_buildManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → x1cCqY0kWpR_VcYx_lWO5}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41533,t=>{"use strict";var s=t.i(247167);s.default.env.THURSDAY_APP_DIR?.trim()||s.default.cwd(),s.default.env.THURSDAY_HOME?.trim()||s.default.cwd(),s.default.env.THURSDAY_URL?.trim()||s.default.env.PORT?.trim();let a=".ai-workspace",e={workspace:a,artifacts:"artifacts",projects:"projects",scratch:"scratch",bots:"bots",output:".output",skills:{default:"skills",custom:`${a}/.agents/skills`}};t.s(["APP_NAME",0,"Thursday","ARTIFACT_VIEW",0,{rows:200,setFiles:120},"BOT_NOTES",0,{chars:400},"BOT_RUN",0,{steps:25,compactAt:12e4,summaryWords:{min:600,max:3e3,perTokens:200},resumeMessages:20},"BROWSER_SKILL",0,"browser","IS_DEV",0,!1,"PAGE_SIZE",0,50,"PATHS",0,e,"PROMPT_CROWDED",0,{bots:10,skills:20},"WORKSPACE_VIEW",0,{rows:200,textMax:524288,elementMax:0x3200000}])},621285,616172,706951,t=>{"use strict";var s=t.i(843476),a=t.i(271645),e=t.i(798120),l=t.i(167881),i=t.i(630374),n=t.i(683408),c=t.i(671428),r=t.i(647163);function h({className:t,...a}){return(0,s.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,s.jsx)("table",{"data-slot":"table",className:(0,r.cn)("w-full caption-bottom text-sm",t),...a})})}function o({className:t,...a}){return(0,s.jsx)("thead",{"data-slot":"table-header",className:(0,r.cn)("[&_tr]:border-b",t),...a})}function m({className:t,...a}){return(0,s.jsx)("tbody",{"data-slot":"table-body",className:(0,r.cn)("[&_tr:last-child]:border-0",t),...a})}function u({className:t,...a}){return(0,s.jsx)("tr",{"data-slot":"table-row",className:(0,r.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",t),...a})}function d({className:t,...a}){return(0,s.jsx)("th",{"data-slot":"table-head",className:(0,r.cn)("h-9 px-2 text-left align-middle font-mono text-[11px] font-normal tracking-[0.1em] whitespace-nowrap text-muted-foreground uppercase [&:has([role=checkbox])]:pr-0",t),...a})}function k({className:t,...a}){return(0,s.jsx)("td",{"data-slot":"table-cell",className:(0,r.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",t),...a})}var p=t.i(41533);let j=t=>`text/${t}; charset=utf-8`,v={md:{kind:"markdown",mime:j("markdown")},markdown:{kind:"markdown",mime:j("markdown")},csv:{kind:"csv",mime:j("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:j("plain")},log:{kind:"text",mime:j("plain")},html:{kind:"frame",mime:j("html")},htm:{kind:"frame",mime:j("html")},pdf:{kind:"frame",mime:"application/pdf"},png:{kind:"image",mime:"image/png"},jpg:{kind:"image",mime:"image/jpeg"},jpeg:{kind:"image",mime:"image/jpeg"},gif:{kind:"image",mime:"image/gif"},webp:{kind:"image",mime:"image/webp"},svg:{kind:"image",mime:"image/svg+xml"},mp3:{kind:"audio",mime:"audio/mpeg"},wav:{kind:"audio",mime:"audio/wav"},mp4:{kind:"video",mime:"video/mp4"},webm:{kind:"video",mime:"video/webm"},css:{kind:"none",mime:j("css")},js:{kind:"none",mime:j("javascript")},woff2:{kind:"none",mime:"font/woff2"}},g=t=>v[t.split(".").pop()?.toLowerCase()??""]?.kind??"none",w=Object.entries(v).filter(([,t])=>"none"!==t.kind).map(([t])=>t),f=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${w.join("|")})\b`,"giu"),P=`${p.PATHS.workspace}/`;function y(t){let s=t.trim(),a=s.indexOf(P);return a>=0?s.slice(a+P.length)||null:s.startsWith("/")||/^[A-Za-z]:/.test(s)||s.split("/").includes("..")?null:s||null}t.s(["pathsIn",0,function(t){let s=t.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),a=new Set;for(let t of s.match(f)??[]){let s=function(t){let s=y(t);if(!s)return null;let[a,...e]=s.split("/");return e.length&&a.includes(".")?null:s}(t);s&&a.add(s)}return[...a].slice(0,6)},"viewKindOf",0,g,"workspaceRelative",0,y],616172);var x=t.i(95187);let b=(0,x.createServerReference)("7fe8b3afbc975a1ad4e4d7f319af758baa5a9d2c2c",x.callServer,void 0,x.findSourceMapURL,"openFileAction");t.s(["openFileAction",0,b],706951);var z=t.i(609856);let _=new Set(["frame","image","audio","video"]);function q(t){let s=y(t);if(!s)return{how:"os"};let a=g(s);return _.has(a)?{how:"tab",path:s,href:e.queryKey.fileView(s)}:"none"===a?{how:"os"}:{how:"dialog",path:s}}let N=(0,a.createContext)(null),S={dialog:{prose:"px-5 py-4",block:"px-4 py-3"},page:{prose:"px-5 py-6 sm:px-8",block:"px-5 py-5"}};function C({kind:t,content:a,truncated:e,where:l="dialog"}){return(0,s.jsxs)(s.Fragment,{children:[null!=e&&(0,s.jsx)(B,{of:e}),(0,s.jsx)(T,{kind:t,content:a,where:l})]})}function B({of:t}){return(0,s.jsxs)("p",{className:"border-b border-border/60 px-5 py-2.5 font-mono text-[11px] text-muted-foreground",children:[`Showing the first ${(0,r.formatBytes)(p.WORKSPACE_VIEW.textMax)} of ${(0,r.formatBytes)(t)}. `,"Open the file itself for the rest."]})}function T({kind:t,content:a,where:e}){let l=S[e];switch(t){case"markdown":return(0,s.jsx)("div",{className:(0,r.cn)("min-w-0 text-sm leading-relaxed",l.prose),children:(0,s.jsx)(n.Markdown,{children:a})});case"csv":return(0,s.jsx)(O,{content:a,className:l.block});case"json":return(0,s.jsx)(L,{text:function(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}(a),className:l.block});default:return(0,s.jsx)(L,{text:a,className:l.block})}}function R(t){let[s,l]=(0,a.useState)(null),[i,n]=(0,a.useState)(null),[c,h]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(!t)return;l(null),n(null),h(null);let s=!1;return fetch(e.queryKey.file(t),{headers:{range:`bytes=0-${p.WORKSPACE_VIEW.textMax-1}`}}).then(async t=>{if(!t.ok)throw Error(await t.text());return{text:await t.text(),of:function(t){let s=t.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!s)return null;let[,a,e]=s.map(Number);return a+1<e?e:null}(t)}}).then(({text:t,of:a})=>{s||(l(null===a?t:t.slice(0,t.lastIndexOf("\n")+1||void 0)),h(a))}).catch(t=>!s&&n((0,r.errorToString)(t))),()=>{s=!0}},[t]),{content:s,failure:i,truncated:c}}function $({path:t,bytes:a}){let[e,i]=(0,z.useServerAction)(b);return(0,s.jsxs)("div",{className:"space-y-4 p-8",children:[(0,s.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,r.formatBytes)(a)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,s.jsx)(l.Button,{variant:"outline",loading:i,onClick:()=>e(t),children:"Reveal in the file manager"})]})}function E({path:t,kind:a,onClose:e}){let{content:l,failure:n,truncated:r}=R(t),h=t?.split("/").pop()??"";return(0,s.jsx)(i.Dialog,{open:null!==t,onOpenChange:t=>!t&&e(),children:(0,s.jsxs)(i.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,s.jsx)(i.DialogTitle,{className:"sr-only",children:h}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:t})}),(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:n?(0,s.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===l?(0,s.jsxs)("div",{className:"space-y-3 p-5",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-2/3"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-full"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-5/6"})]}):(0,s.jsx)(C,{kind:a,content:l,truncated:r})})]})})}function L({text:t,className:a}){return(0,s.jsx)("pre",{className:(0,r.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",a),children:t})}function O({content:t,className:e}){let[l,...i]=(0,a.useMemo)(()=>(function(t){let s=[],a=[],e="",l=!1;for(let i=0;i<t.length;i++){let n=t[i];l?'"'===n&&'"'===t[i+1]?(e+='"',i++):'"'===n?l=!1:e+=n:'"'===n?l=!0:","===n?(a.push(e),e=""):"\n"===n||"\r"===n?("\r"===n&&"\n"===t[i+1]&&i++,a.push(e),s.push(a),a=[],e=""):e+=n}return(e.length||a.length)&&(a.push(e),s.push(a)),s.filter(t=>t.some(t=>t.trim()))})(t),[t]);return l?(0,s.jsx)("div",{className:(0,r.cn)("overflow-x-auto",e),children:(0,s.jsxs)(h,{children:[(0,s.jsx)(o,{children:(0,s.jsx)(u,{children:l.map((t,a)=>(0,s.jsx)(d,{className:"whitespace-nowrap",children:t},`${a}-${t}`))})}),(0,s.jsx)(m,{children:i.map((t,a)=>(0,s.jsx)(u,{children:l.map((e,l)=>(0,s.jsx)(k,{className:"whitespace-nowrap",children:t[l]??""},`${a}-${l}`))},`${a}-${t[0]??""}`))})]})}):(0,s.jsx)(L,{text:t,className:e})}t.s(["FileBody",0,C,"FileDialog",0,E,"FileLink",0,function({path:t,className:l,title:i,label:n,children:c}){let r=q(t),h=(0,a.useContext)(N),[o,m]=(0,z.useServerAction)(b);return"tab"===r.how?(0,s.jsx)("a",{href:r.href,target:"_blank",rel:"noreferrer",title:i??t,"aria-label":n,className:l,children:c}):(0,s.jsx)("button",{type:"button",disabled:m,title:i??t,"aria-label":n,className:l,onClick:()=>{"dialog"===r.how?h?h(r.path):window.open(e.queryKey.fileView(r.path),"_blank"):o(t)},children:c})},"FilePreview",0,function({path:t,bytes:a}){let l=g(t),{content:i,failure:n,truncated:r}=R(_.has(l)?null:t);return("frame"===l||"image"===l)&&a>p.WORKSPACE_VIEW.elementMax?(0,s.jsx)($,{path:t,bytes:a}):"frame"===l?(0,s.jsx)("iframe",{title:t,src:e.queryKey.file(t),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===l?(0,s.jsx)("img",{src:e.queryKey.file(t),alt:t,className:"mx-auto max-w-full p-6"}):"audio"===l||"video"===l?"audio"===l?(0,s.jsx)("audio",{controls:!0,src:e.queryKey.file(t),className:"w-full p-6",children:(0,s.jsx)("track",{kind:"captions"})}):(0,s.jsx)("video",{controls:!0,src:e.queryKey.file(t),className:"max-w-full p-6",children:(0,s.jsx)("track",{kind:"captions"})}):n?(0,s.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:n}):null===i?(0,s.jsxs)("div",{className:"space-y-3 p-5",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-2/3"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-full"}),(0,s.jsx)(c.Skeleton,{className:"h-4 w-5/6"})]}):(0,s.jsx)(C,{kind:l,content:i,truncated:r})},"FileViewer",0,function({children:t}){let[e,l]=(0,a.useState)(null);return(0,s.jsxs)(N,{value:l,children:[t,(0,s.jsx)(E,{path:e,kind:e?g(e):"text",onClose:()=>l(null)})]})},"fileTarget",0,q,"useFileText",0,R,"useOpenFile",0,function(){let t=(0,a.useContext)(N);return(0,a.useCallback)(s=>{let a=q(s);if("os"===a.how)return!1;if("dialog"===a.how&&t)return t(a.path),!0;let l="tab"===a.how?a.href:e.queryKey.fileView(a.path);return null!==window.open(l,"_blank")},[t])}],621285)},516690,t=>{t.v(s=>Promise.all(["static/chunks/0teeo9xl5wnnq.js"].map(s=>t.l(s))).then(()=>s(395360)))},274435,t=>{t.v(s=>Promise.all(["static/chunks/1wiw0gk7-qp8i.js"].map(s=>t.l(s))).then(()=>s(249740)))},796339,t=>{t.v(s=>Promise.all(["static/chunks/0w_ja4ciemrbk.js"].map(s=>t.l(s))).then(()=>s(948115)))},196546,t=>{t.v(s=>Promise.all(["static/chunks/3zx2nr3-vl_eh.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(365711)))},60308,t=>{t.v(s=>Promise.all(["static/chunks/18ov-ugtitlq2.js","static/chunks/1ozmtvibzzync.js","static/chunks/0iowzpfymsgpq.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(148707)))},608734,t=>{t.v(s=>Promise.all(["static/chunks/0p3bmx6ek0qp8.js"].map(s=>t.l(s))).then(()=>s(398778)))},902952,t=>{t.v(s=>Promise.all(["static/chunks/0q82iw85zo1m8.js"].map(s=>t.l(s))).then(()=>s(262053)))},814026,t=>{t.v(s=>Promise.all(["static/chunks/1txgr9-t0s4je.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(922608)))},210042,t=>{t.v(s=>Promise.all(["static/chunks/1qwswx0hjsw00.js"].map(s=>t.l(s))).then(()=>s(894523)))},327701,t=>{t.v(s=>Promise.all(["static/chunks/0r5gq9qo4arwu.js"].map(s=>t.l(s))).then(()=>s(641837)))},864940,t=>{t.v(s=>Promise.all(["static/chunks/0r3z95rc2ypfx.js"].map(s=>t.l(s))).then(()=>s(730184)))},581996,t=>{t.v(s=>Promise.all(["static/chunks/0t5b3chki_9fl.js"].map(s=>t.l(s))).then(()=>s(625004)))},185223,t=>{t.v(s=>Promise.all(["static/chunks/2g-myvn_f_a_4.js","static/chunks/16vtcomz233wa.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(484803)))},577689,t=>{t.v(s=>Promise.all(["static/chunks/0-mnxu8ow6er0.js"].map(s=>t.l(s))).then(()=>s(401885)))},887861,t=>{t.v(s=>Promise.all(["static/chunks/05m1q2yic6i_6.js"].map(s=>t.l(s))).then(()=>s(545199)))},769047,t=>{t.v(s=>Promise.all(["static/chunks/0n7sj9xm17ln0.js"].map(s=>t.l(s))).then(()=>s(135626)))},566005,t=>{t.v(s=>Promise.all(["static/chunks/20p5cex0-ilx3.js"].map(s=>t.l(s))).then(()=>s(532400)))},64129,t=>{t.v(s=>Promise.all(["static/chunks/1hoe492g5-o2q.js"].map(s=>t.l(s))).then(()=>s(770767)))},686785,t=>{t.v(s=>Promise.all(["static/chunks/40epaf180rm_o.js"].map(s=>t.l(s))).then(()=>s(770913)))},234475,t=>{t.v(s=>Promise.all(["static/chunks/3v2r9tkahr03c.js"].map(s=>t.l(s))).then(()=>s(427540)))},273197,t=>{t.v(s=>Promise.all(["static/chunks/26elp1iu9_rfo.js"].map(s=>t.l(s))).then(()=>s(574536)))},184291,t=>{t.v(s=>Promise.all(["static/chunks/3y2yeb8hqhgma.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2-ohkulfwwqkp.js"].map(s=>t.l(s))).then(()=>s(294139)))},254810,t=>{t.v(s=>Promise.all(["static/chunks/31srg3-v_-3ex.js"].map(s=>t.l(s))).then(()=>s(124527)))},715630,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(39516)))},721406,t=>{t.v(s=>Promise.all(["static/chunks/251ctc7y-p1x6.js"].map(s=>t.l(s))).then(()=>s(55582)))},928418,t=>{t.v(s=>Promise.all(["static/chunks/3svu996x25pgh.js"].map(s=>t.l(s))).then(()=>s(324330)))},496018,t=>{t.v(s=>Promise.all(["static/chunks/10a6xv-y_2nwl.js","static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(944027)))},268805,t=>{t.v(s=>Promise.all(["static/chunks/3xpdaet8dw9x9.js"].map(s=>t.l(s))).then(()=>s(732548)))},885670,t=>{t.v(s=>Promise.all(["static/chunks/1ctnkqxh0n4u3.js"].map(s=>t.l(s))).then(()=>s(218663)))},850277,t=>{t.v(s=>Promise.all(["static/chunks/28t2bvti86a67.js"].map(s=>t.l(s))).then(()=>s(774228)))},608435,t=>{t.v(s=>Promise.all(["static/chunks/2urfmi-h-efgc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(183824)))},677655,t=>{t.v(s=>Promise.all(["static/chunks/07o4ns4nqda4i.js"].map(s=>t.l(s))).then(()=>s(773966)))},393919,t=>{t.v(s=>Promise.all(["static/chunks/1-vnisuyudqdj.js"].map(s=>t.l(s))).then(()=>s(135921)))},499510,t=>{t.v(s=>Promise.all(["static/chunks/34asi35tmks9s.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(694693)))},314583,t=>{t.v(s=>Promise.all(["static/chunks/368hf3scqy9et.js"].map(s=>t.l(s))).then(()=>s(694899)))},138305,t=>{t.v(s=>Promise.all(["static/chunks/02cmf-0vz-j0l.js"].map(s=>t.l(s))).then(()=>s(98254)))},162895,t=>{t.v(s=>Promise.all(["static/chunks/446dwbh9a1brd.js","static/chunks/2ro2w2784zwl0.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(750497)))},715822,t=>{t.v(s=>Promise.all(["static/chunks/45c7xyr85-p84.js","static/chunks/1vpp0zxc5amhf.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(276426)))},156548,t=>{t.v(s=>Promise.all(["static/chunks/1px0m_9u11val.js"].map(s=>t.l(s))).then(()=>s(804440)))},68853,t=>{t.v(s=>Promise.all(["static/chunks/04kziyzzvkmhl.js"].map(s=>t.l(s))).then(()=>s(174708)))},508072,t=>{t.v(s=>Promise.all(["static/chunks/1fw3www6hshi2.js"].map(s=>t.l(s))).then(()=>s(717147)))},379420,t=>{t.v(s=>Promise.all(["static/chunks/07fixed86aya_.js"].map(s=>t.l(s))).then(()=>s(517328)))},901081,t=>{t.v(s=>Promise.all(["static/chunks/2sj3ymj88_zus.js"].map(s=>t.l(s))).then(()=>s(820123)))},732086,t=>{t.v(s=>Promise.all(["static/chunks/0n0bzpsdtg893.js"].map(s=>t.l(s))).then(()=>s(293222)))},8814,t=>{t.v(s=>Promise.all(["static/chunks/16zbzmvpg2ww4.js"].map(s=>t.l(s))).then(()=>s(333824)))},706010,t=>{t.v(s=>Promise.all(["static/chunks/0s54dho0z8p6j.js"].map(s=>t.l(s))).then(()=>s(258271)))},611671,t=>{t.v(s=>Promise.all(["static/chunks/2_jhl4ez3w5lm.js"].map(s=>t.l(s))).then(()=>s(612944)))},499264,t=>{t.v(s=>Promise.all(["static/chunks/0f4x882qymosc.js"].map(s=>t.l(s))).then(()=>s(289460)))},964927,t=>{t.v(s=>Promise.all(["static/chunks/09k-wbu71lfrt.js"].map(s=>t.l(s))).then(()=>s(551327)))},86855,t=>{t.v(s=>Promise.all(["static/chunks/1dd6qzaoby04o.js"].map(s=>t.l(s))).then(()=>s(12522)))},955357,t=>{t.v(s=>Promise.all(["static/chunks/34678qecnnj_h.js"].map(s=>t.l(s))).then(()=>s(217285)))},40814,t=>{t.v(s=>Promise.all(["static/chunks/3paqvl_z7hv3n.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(164704)))},534593,t=>{t.v(s=>Promise.all(["static/chunks/0_lh4_g7vdhq1.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(805100)))},80402,t=>{t.v(s=>Promise.all(["static/chunks/3qum31hte42y1.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(709757)))},659962,t=>{t.v(s=>Promise.all(["static/chunks/1u8j3eb8for0y.js"].map(s=>t.l(s))).then(()=>s(563571)))},655306,t=>{t.v(s=>Promise.all(["static/chunks/3qlz6dwx-4wpg.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/2ro2w2784zwl0.js"].map(s=>t.l(s))).then(()=>s(24609)))},379291,t=>{t.v(s=>Promise.all(["static/chunks/16ya3783k-z1s.js"].map(s=>t.l(s))).then(()=>s(329263)))},56334,t=>{t.v(s=>Promise.all(["static/chunks/0u__wtz-jozok.js"].map(s=>t.l(s))).then(()=>s(970013)))},955953,t=>{t.v(s=>Promise.all(["static/chunks/1jz5jakghqd9v.js"].map(s=>t.l(s))).then(()=>s(274265)))},372286,t=>{t.v(s=>Promise.all(["static/chunks/2jhadmpmcpdrj.js"].map(s=>t.l(s))).then(()=>s(146027)))},709599,t=>{t.v(s=>Promise.all(["static/chunks/2tfc-naqg7z-u.js","static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(774293)))},417187,t=>{t.v(s=>Promise.all(["static/chunks/319502xf-tnxv.js"].map(s=>t.l(s))).then(()=>s(363400)))},106583,t=>{t.v(s=>Promise.all(["static/chunks/28-z_wt6ndz-b.js"].map(s=>t.l(s))).then(()=>s(576577)))},600350,t=>{t.v(s=>Promise.all(["static/chunks/3hwj-0h-0-lla.js"].map(s=>t.l(s))).then(()=>s(823068)))},718592,t=>{t.v(s=>Promise.all(["static/chunks/00uuedu6-4dre.js"].map(s=>t.l(s))).then(()=>s(129659)))},964292,t=>{t.v(s=>Promise.all(["static/chunks/10jgwafb21-7w.js"].map(s=>t.l(s))).then(()=>s(961451)))},251227,t=>{t.v(s=>Promise.all(["static/chunks/3_8v942h1s07y.js"].map(s=>t.l(s))).then(()=>s(869943)))},781674,t=>{t.v(s=>Promise.all(["static/chunks/0uud_z0v566uf.js"].map(s=>t.l(s))).then(()=>s(143691)))},765886,t=>{t.v(s=>Promise.all(["static/chunks/3mk3dcnt98mri.js"].map(s=>t.l(s))).then(()=>s(640067)))},643635,t=>{t.v(s=>Promise.all(["static/chunks/0ftzs9_34hr49.js"].map(s=>t.l(s))).then(()=>s(118337)))},469752,t=>{t.v(s=>Promise.all(["static/chunks/0qo6w-wynmd7q.js"].map(s=>t.l(s))).then(()=>s(598277)))},220210,t=>{t.v(s=>Promise.all(["static/chunks/43x-wo-t6g20f.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(872516)))},952204,t=>{t.v(s=>Promise.all(["static/chunks/2qqx13x1_na_q.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(405817)))},615932,t=>{t.v(s=>Promise.all(["static/chunks/2nuuq6y_mebd9.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(238102)))},846517,t=>{t.v(s=>Promise.all(["static/chunks/22e7k4k061g55.js"].map(s=>t.l(s))).then(()=>s(289319)))},334810,t=>{t.v(s=>Promise.all(["static/chunks/17pegra88jm_q.js"].map(s=>t.l(s))).then(()=>s(466502)))},518233,t=>{t.v(s=>Promise.all(["static/chunks/2e7ddq5vayqre.js"].map(s=>t.l(s))).then(()=>s(902077)))},527502,t=>{t.v(s=>Promise.all(["static/chunks/0vuwq9sa14vne.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(564011)))},783131,t=>{t.v(s=>Promise.all(["static/chunks/324t9a-cp4u8q.js"].map(s=>t.l(s))).then(()=>s(394796)))},866363,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js","static/chunks/3v4h-8da4l5p7.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(416128)))},936482,t=>{t.v(s=>Promise.all(["static/chunks/38lhx55kr9dl6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(23141)))},219104,t=>{t.v(s=>Promise.all(["static/chunks/1jbxee7jz6bbc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(892708)))},982274,t=>{t.v(s=>Promise.all(["static/chunks/0_9ky7_0gqp29.js"].map(s=>t.l(s))).then(()=>s(375491)))},843593,t=>{t.v(s=>Promise.all(["static/chunks/1niiwgkyydxzm.js"].map(s=>t.l(s))).then(()=>s(462002)))},392582,t=>{t.v(s=>Promise.all(["static/chunks/21xei27jfzp7x.js"].map(s=>t.l(s))).then(()=>s(40781)))},32395,t=>{t.v(s=>Promise.all(["static/chunks/16hinmy0f-glt.js"].map(s=>t.l(s))).then(()=>s(609979)))},336975,t=>{t.v(s=>Promise.all(["static/chunks/0zgg9c0-wj935.js"].map(s=>t.l(s))).then(()=>s(563498)))},736812,t=>{t.v(s=>Promise.all(["static/chunks/3uf4bpnwlk9hu.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(662407)))},615475,t=>{t.v(s=>Promise.all(["static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(346619)))},722332,t=>{t.v(s=>Promise.all(["static/chunks/1zse9_sq278z3.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1ebo_riinwqq8.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(679394)))},77996,t=>{t.v(s=>Promise.all(["static/chunks/1u06mkqc8lt5y.js","static/chunks/31rpioh8q87-5.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(546754)))},412671,t=>{t.v(s=>Promise.all(["static/chunks/2id4c69a8l7tw.js"].map(s=>t.l(s))).then(()=>s(788619)))},98975,t=>{t.v(s=>Promise.all(["static/chunks/1k3nt_5za2_5v.js"].map(s=>t.l(s))).then(()=>s(894666)))},221794,t=>{t.v(s=>Promise.all(["static/chunks/0ju2q95btugv1.js"].map(s=>t.l(s))).then(()=>s(904077)))},712237,t=>{t.v(s=>Promise.all(["static/chunks/1oyr1d-wo_dr-.js"].map(s=>t.l(s))).then(()=>s(251070)))},25004,t=>{t.v(s=>Promise.all(["static/chunks/1ggeg-sqe8ngu.js"].map(s=>t.l(s))).then(()=>s(388943)))},792799,t=>{t.v(s=>Promise.all(["static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(122952)))},300535,t=>{t.v(s=>Promise.all(["static/chunks/1xlbhszlykr4p.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(776627)))},299868,t=>{t.v(s=>Promise.all(["static/chunks/335-38r54vx4c.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(313300)))},692658,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js"].map(s=>t.l(s))).then(()=>s(866695)))},145390,t=>{t.v(s=>Promise.all(["static/chunks/0kmw809wgqjkq.js"].map(s=>t.l(s))).then(()=>s(948742)))},459901,t=>{t.v(s=>Promise.all(["static/chunks/0z36xjjyl3kid.js"].map(s=>t.l(s))).then(()=>s(75400)))},844018,t=>{t.v(s=>Promise.all(["static/chunks/2t-fmsms_i3sr.js"].map(s=>t.l(s))).then(()=>s(380021)))},932597,t=>{t.v(s=>Promise.all(["static/chunks/3a7qna12wpg2h.js"].map(s=>t.l(s))).then(()=>s(45900)))},386493,t=>{t.v(s=>Promise.all(["static/chunks/3xcqoeizdjzn2.js"].map(s=>t.l(s))).then(()=>s(398160)))},287672,t=>{t.v(s=>Promise.all(["static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(823760)))},148045,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3_ue_94qji2lm.js"].map(s=>t.l(s))).then(()=>s(134812)))},704538,t=>{t.v(s=>Promise.all(["static/chunks/1crpy7f655-f-.js","static/chunks/29kou1oqg257y.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/36oxg-33dy_jz.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/1ozmtvibzzync.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(398122)))},522051,t=>{t.v(s=>Promise.all(["static/chunks/1t8ujmkza6s35.js"].map(s=>t.l(s))).then(()=>s(281694)))},278014,t=>{t.v(s=>Promise.all(["static/chunks/1c0t4bkzgxkho.js"].map(s=>t.l(s))).then(()=>s(376175)))},511938,t=>{t.v(s=>Promise.all(["static/chunks/2n0e6pbzr1vhc.js"].map(s=>t.l(s))).then(()=>s(251031)))},382697,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js","static/chunks/0w75738j7k0f7.js"].map(s=>t.l(s))).then(()=>s(906106)))},106774,t=>{t.v(s=>Promise.all(["static/chunks/2-0-eka22mzly.js"].map(s=>t.l(s))).then(()=>s(548052)))},657069,t=>{t.v(s=>Promise.all(["static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(315754)))},133954,t=>{t.v(s=>Promise.all(["static/chunks/35w79dw14-r51.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(411335)))},969445,t=>{t.v(s=>Promise.all(["static/chunks/3ma22p0pjm53-.js"].map(s=>t.l(s))).then(()=>s(233218)))},532210,t=>{t.v(s=>Promise.all(["static/chunks/1t4tz6qnsit4z.js"].map(s=>t.l(s))).then(()=>s(127844)))},917136,t=>{t.v(s=>Promise.all(["static/chunks/20i3ov2af4zvh.js"].map(s=>t.l(s))).then(()=>s(499412)))},147287,t=>{t.v(s=>Promise.all(["static/chunks/3oyixq96_fa_z.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(950510)))},298173,t=>{t.v(s=>Promise.all(["static/chunks/38rdxmvrwtp57.js"].map(s=>t.l(s))).then(()=>s(372302)))},418877,t=>{t.v(s=>Promise.all(["static/chunks/3pzxtzd-vdn2f.js"].map(s=>t.l(s))).then(()=>s(377217)))},159142,t=>{t.v(s=>Promise.all(["static/chunks/2bk7wc4-ptm-c.js"].map(s=>t.l(s))).then(()=>s(274754)))},644609,t=>{t.v(s=>Promise.all(["static/chunks/13qtfpmkarvmt.js","static/chunks/0bp3uew85t0ry.js","static/chunks/3ia1uy-ta-wwx.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(76277)))},323845,t=>{t.v(s=>Promise.all(["static/chunks/29hqqnd781kvs.js"].map(s=>t.l(s))).then(()=>s(744344)))},367535,t=>{t.v(s=>Promise.all(["static/chunks/1j_bjoxgu91mc.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(635473)))},659189,t=>{t.v(s=>Promise.all(["static/chunks/1q28ddzt1afnq.js"].map(s=>t.l(s))).then(()=>s(857397)))},457619,t=>{t.v(s=>Promise.all(["static/chunks/3-06o0suuf1y4.js"].map(s=>t.l(s))).then(()=>s(368643)))},401626,t=>{t.v(s=>Promise.all(["static/chunks/151lx87jseoly.js"].map(s=>t.l(s))).then(()=>s(321142)))},524176,t=>{t.v(s=>Promise.all(["static/chunks/2asmzjaah8m8z.js"].map(s=>t.l(s))).then(()=>s(747044)))},205353,t=>{t.v(s=>Promise.all(["static/chunks/0hyz-d49g6v3x.js"].map(s=>t.l(s))).then(()=>s(518227)))},847969,t=>{t.v(s=>Promise.all(["static/chunks/1u6au-494n78m.js"].map(s=>t.l(s))).then(()=>s(990800)))},755902,t=>{t.v(s=>Promise.all(["static/chunks/2e150n34zc8g9.js"].map(s=>t.l(s))).then(()=>s(731026)))},272194,t=>{t.v(s=>Promise.all(["static/chunks/05-_p9k102i_g.js"].map(s=>t.l(s))).then(()=>s(874353)))},557638,t=>{t.v(s=>Promise.all(["static/chunks/0v_3gh96z3jaa.js"].map(s=>t.l(s))).then(()=>s(400936)))},47723,t=>{t.v(s=>Promise.all(["static/chunks/3dur64hdd_v7c.js","static/chunks/2v-fuc1wwaulc.js"].map(s=>t.l(s))).then(()=>s(337476)))},446820,t=>{t.v(s=>Promise.all(["static/chunks/2v-fuc1wwaulc.js","static/chunks/2zxe_jdp_h7n8.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(181320)))},565220,t=>{t.v(s=>Promise.all(["static/chunks/2800ji7zpl6a7.js"].map(s=>t.l(s))).then(()=>s(775253)))},821908,t=>{t.v(s=>Promise.all(["static/chunks/0-a6206-r3j_8.js"].map(s=>t.l(s))).then(()=>s(265932)))},798543,t=>{t.v(s=>Promise.all(["static/chunks/2ovlkdbar4cl8.js"].map(s=>t.l(s))).then(()=>s(873456)))},953213,t=>{t.v(s=>Promise.all(["static/chunks/39upf2vnyk-xq.js"].map(s=>t.l(s))).then(()=>s(573095)))},357016,t=>{t.v(s=>Promise.all(["static/chunks/0jrnpgq-_qp2f.js"].map(s=>t.l(s))).then(()=>s(739360)))},144,t=>{t.v(s=>Promise.all(["static/chunks/273azq8ya_70t.js"].map(s=>t.l(s))).then(()=>s(834527)))},389188,t=>{t.v(s=>Promise.all(["static/chunks/1tcwgfbes5bur.js"].map(s=>t.l(s))).then(()=>s(292052)))},494584,t=>{t.v(s=>Promise.all(["static/chunks/2mgfqtimlpa2_.js"].map(s=>t.l(s))).then(()=>s(386104)))},590087,t=>{t.v(s=>Promise.all(["static/chunks/3rnj3hwd2gpl1.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(362833)))},753525,t=>{t.v(s=>Promise.all(["static/chunks/39sp7w7wcwxjl.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3rudiphv22_sj.js"].map(s=>t.l(s))).then(()=>s(235865)))},506695,t=>{t.v(s=>Promise.all(["static/chunks/16j4idsrg5cyn.js"].map(s=>t.l(s))).then(()=>s(528594)))},985641,t=>{t.v(s=>Promise.all(["static/chunks/1y1vu9-4l76_e.js"].map(s=>t.l(s))).then(()=>s(762570)))},215520,t=>{t.v(s=>Promise.all(["static/chunks/0o66-rbdl-bpr.js"].map(s=>t.l(s))).then(()=>s(767399)))},579736,t=>{t.v(s=>Promise.all(["static/chunks/3bnhh87m-vba3.js"].map(s=>t.l(s))).then(()=>s(793940)))},344743,t=>{t.v(s=>Promise.all(["static/chunks/0lmkqj5bnn1tx.js"].map(s=>t.l(s))).then(()=>s(478163)))},69901,t=>{t.v(s=>Promise.all(["static/chunks/2fx1t7nywz-zx.js"].map(s=>t.l(s))).then(()=>s(293157)))},849765,t=>{t.v(s=>Promise.all(["static/chunks/0uw1nhbzgcr4z.js"].map(s=>t.l(s))).then(()=>s(65260)))},925840,t=>{t.v(s=>Promise.all(["static/chunks/2htbqsoc2bojb.js"].map(s=>t.l(s))).then(()=>s(620602)))},678110,t=>{t.v(s=>Promise.all(["static/chunks/028oldt2v0xyz.js"].map(s=>t.l(s))).then(()=>s(121139)))},710002,t=>{t.v(s=>Promise.all(["static/chunks/3b13ywcpwn31z.js"].map(s=>t.l(s))).then(()=>s(236865)))},753456,t=>{t.v(s=>Promise.all(["static/chunks/1wxrfgphp_7tx.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(487420)))},328116,t=>{t.v(s=>Promise.all(["static/chunks/1eyi5me_bl5mq.js"].map(s=>t.l(s))).then(()=>s(303348)))},762792,t=>{t.v(s=>Promise.all(["static/chunks/012oo6xzblu6s.js"].map(s=>t.l(s))).then(()=>s(122362)))},548436,t=>{t.v(s=>Promise.all(["static/chunks/36oxg-33dy_jz.js"].map(s=>t.l(s))).then(()=>s(265525)))},985774,t=>{t.v(s=>Promise.all(["static/chunks/0xnzoirqkfqgi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(979978)))},822682,t=>{t.v(s=>Promise.all(["static/chunks/1xcq4o53ccqj-.js"].map(s=>t.l(s))).then(()=>s(777438)))},29273,t=>{t.v(s=>Promise.all(["static/chunks/3wssn6tbdvadr.js"].map(s=>t.l(s))).then(()=>s(12899)))},917431,t=>{t.v(s=>Promise.all(["static/chunks/2w0jipt45km-n.js"].map(s=>t.l(s))).then(()=>s(426182)))},127184,t=>{t.v(s=>Promise.all(["static/chunks/1kkj4dqqizj1g.js"].map(s=>t.l(s))).then(()=>s(569590)))},402999,t=>{t.v(s=>Promise.all(["static/chunks/1abc3xfswhk36.js"].map(s=>t.l(s))).then(()=>s(389508)))},22510,t=>{t.v(s=>Promise.all(["static/chunks/3p-mvzd69i8m_.js","static/chunks/1px0m_9u11val.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(792808)))},392914,t=>{t.v(s=>Promise.all(["static/chunks/3qa8z7ahjfjda.js"].map(s=>t.l(s))).then(()=>s(270093)))},864980,t=>{t.v(s=>Promise.all(["static/chunks/0unfsbpxtuicd.js"].map(s=>t.l(s))).then(()=>s(221610)))},362249,t=>{t.v(s=>Promise.all(["static/chunks/2pma0utbxjpx3.js"].map(s=>t.l(s))).then(()=>s(292310)))},919686,t=>{t.v(s=>Promise.all(["static/chunks/418b-iezadyqk.js"].map(s=>t.l(s))).then(()=>s(513929)))},123169,t=>{t.v(s=>Promise.all(["static/chunks/0-e41flx3-6kr.js"].map(s=>t.l(s))).then(()=>s(495422)))},866973,t=>{t.v(s=>Promise.all(["static/chunks/3trm7ge6o-yl3.js"].map(s=>t.l(s))).then(()=>s(381082)))},580357,t=>{t.v(s=>Promise.all(["static/chunks/0l8oeumi7zreb.js","static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2ro2w2784zwl0.js","static/chunks/31rpioh8q87-5.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(428855)))},660137,t=>{t.v(s=>Promise.all(["static/chunks/29kou1oqg257y.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/2ro2w2784zwl0.js","static/chunks/3tq8wpaa3ie4_.js","static/chunks/31rpioh8q87-5.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/2six92-4e054u.js"].map(s=>t.l(s))).then(()=>s(259585)))},225837,t=>{t.v(s=>Promise.all(["static/chunks/409byf0ixcxxo.js"].map(s=>t.l(s))).then(()=>s(98542)))},559154,t=>{t.v(s=>Promise.all(["static/chunks/2e7zn6goip-16.js"].map(s=>t.l(s))).then(()=>s(672283)))},428160,t=>{t.v(s=>Promise.all(["static/chunks/2np1b-o9o9lxe.js"].map(s=>t.l(s))).then(()=>s(428978)))},679226,t=>{t.v(s=>Promise.all(["static/chunks/1zexcknv1j-z7.js"].map(s=>t.l(s))).then(()=>s(351908)))},95554,t=>{t.v(s=>Promise.all(["static/chunks/1zch7s-d9ym1d.js"].map(s=>t.l(s))).then(()=>s(843805)))},256229,t=>{t.v(s=>Promise.all(["static/chunks/0bp3uew85t0ry.js"].map(s=>t.l(s))).then(()=>s(455496)))},257294,t=>{t.v(s=>Promise.all(["static/chunks/34vbgf3h6aynb.js"].map(s=>t.l(s))).then(()=>s(763343)))},287646,t=>{t.v(s=>Promise.all(["static/chunks/3py7aam1ahr8d.js"].map(s=>t.l(s))).then(()=>s(470313)))},77876,t=>{t.v(s=>Promise.all(["static/chunks/10ur2oml6p9x4.js"].map(s=>t.l(s))).then(()=>s(883808)))},702789,t=>{t.v(s=>Promise.all(["static/chunks/11b9yf9dfuujx.js"].map(s=>t.l(s))).then(()=>s(713367)))},105404,t=>{t.v(s=>Promise.all(["static/chunks/2dnh5lwhlmqjo.js"].map(s=>t.l(s))).then(()=>s(503988)))},664050,t=>{t.v(s=>Promise.all(["static/chunks/40ei945lllr9w.js"].map(s=>t.l(s))).then(()=>s(80464)))},423766,t=>{t.v(s=>Promise.all(["static/chunks/0ra7vu-67oxip.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js"].map(s=>t.l(s))).then(()=>s(34684)))},471095,t=>{t.v(s=>Promise.all(["static/chunks/2evctkklgum84.js"].map(s=>t.l(s))).then(()=>s(259514)))},713125,t=>{t.v(s=>Promise.all(["static/chunks/2_59ceoqu2j9o.js"].map(s=>t.l(s))).then(()=>s(435493)))},347760,t=>{t.v(s=>Promise.all(["static/chunks/17tgaro217rkw.js"].map(s=>t.l(s))).then(()=>s(588587)))},525380,t=>{t.v(s=>Promise.all(["static/chunks/0txq63lra1gy5.js"].map(s=>t.l(s))).then(()=>s(843156)))},927772,t=>{t.v(s=>Promise.all(["static/chunks/38b2vebizod3f.js"].map(s=>t.l(s))).then(()=>s(286144)))},131592,t=>{t.v(s=>Promise.all(["static/chunks/1-pex3noy3abf.js"].map(s=>t.l(s))).then(()=>s(568096)))},942509,t=>{t.v(s=>Promise.all(["static/chunks/208d1-7kvefg6.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(809240)))},209551,t=>{t.v(s=>Promise.all(["static/chunks/1asjpdf763drn.js","static/chunks/4469hynu4qc3x.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(361218)))},174099,t=>{t.v(s=>Promise.all(["static/chunks/3l445yien52wx.js"].map(s=>t.l(s))).then(()=>s(42)))},401250,t=>{t.v(s=>Promise.all(["static/chunks/2qbs5ja7xij_y.js"].map(s=>t.l(s))).then(()=>s(921955)))},944475,t=>{t.v(s=>Promise.all(["static/chunks/3agxmq5t1fgcm.js"].map(s=>t.l(s))).then(()=>s(775193)))},600538,t=>{t.v(s=>Promise.all(["static/chunks/2osmatdeuj3s-.js"].map(s=>t.l(s))).then(()=>s(705623)))},336651,t=>{t.v(s=>Promise.all(["static/chunks/0obkw0gs46t63.js"].map(s=>t.l(s))).then(()=>s(605927)))},709948,t=>{t.v(s=>Promise.all(["static/chunks/1nax-hzuha2nt.js"].map(s=>t.l(s))).then(()=>s(596338)))},340336,t=>{t.v(s=>Promise.all(["static/chunks/1caj6_s4hafz8.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(461138)))},508436,t=>{t.v(s=>Promise.all(["static/chunks/1flk5q9pa7qsp.js"].map(s=>t.l(s))).then(()=>s(318633)))},155636,t=>{t.v(s=>Promise.all(["static/chunks/3_3mt55_s_8nf.js"].map(s=>t.l(s))).then(()=>s(107395)))},351979,t=>{t.v(s=>Promise.all(["static/chunks/0rc3dvh91j2qq.js"].map(s=>t.l(s))).then(()=>s(40899)))},65678,t=>{t.v(s=>Promise.all(["static/chunks/0n-9icasrt3tr.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/1ozmtvibzzync.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(352763)))},841727,t=>{t.v(s=>Promise.all(["static/chunks/1t71kx4hckhdg.js"].map(s=>t.l(s))).then(()=>s(526893)))},557754,t=>{t.v(s=>Promise.all(["static/chunks/31rpioh8q87-5.js"].map(s=>t.l(s))).then(()=>s(578270)))},670454,t=>{t.v(s=>Promise.all(["static/chunks/42lcx54bokm4l.js"].map(s=>t.l(s))).then(()=>s(891579)))},670515,t=>{t.v(s=>Promise.all(["static/chunks/2fkhtkfyegbfl.js","static/chunks/2v-fuc1wwaulc.js","static/chunks/29kou1oqg257y.js","static/chunks/1ozmtvibzzync.js","static/chunks/36oxg-33dy_jz.js","static/chunks/3rudiphv22_sj.js","static/chunks/2ro2w2784zwl0.js","static/chunks/0agnc6vlr5bvi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/31rpioh8q87-5.js","static/chunks/2six92-4e054u.js","static/chunks/3tq8wpaa3ie4_.js"].map(s=>t.l(s))).then(()=>s(259443)))},48460,t=>{t.v(s=>Promise.all(["static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(3737)))},744538,t=>{t.v(s=>Promise.all(["static/chunks/38f2w40jfofcx.js"].map(s=>t.l(s))).then(()=>s(610648)))},963321,t=>{t.v(s=>Promise.all(["static/chunks/2keoa22_a2i05.js"].map(s=>t.l(s))).then(()=>s(717620)))},43837,t=>{t.v(s=>Promise.all(["static/chunks/3iufy6ir2ow_s.js"].map(s=>t.l(s))).then(()=>s(476205)))},830536,t=>{t.v(s=>Promise.all(["static/chunks/0dum5lyb1kgdu.js"].map(s=>t.l(s))).then(()=>s(18661)))},785051,t=>{t.v(s=>Promise.all(["static/chunks/3iooxhh1ig5bw.js"].map(s=>t.l(s))).then(()=>s(938702)))},586017,t=>{t.v(s=>Promise.all(["static/chunks/17z996osqxkqt.js"].map(s=>t.l(s))).then(()=>s(588430)))},495694,t=>{t.v(s=>Promise.all(["static/chunks/0h-2v5t5yj2f3.js"].map(s=>t.l(s))).then(()=>s(562973)))},404547,t=>{t.v(s=>Promise.all(["static/chunks/1idh9y3ry9ztt.js"].map(s=>t.l(s))).then(()=>s(44445)))},160550,t=>{t.v(s=>Promise.all(["static/chunks/2tslt-7b091nm.js","static/chunks/1dy9mwr1pcdwo.js"].map(s=>t.l(s))).then(()=>s(338022)))},109,t=>{t.v(s=>Promise.all(["static/chunks/1mi-5-8zn56-m.js","static/chunks/0bp3uew85t0ry.js","static/chunks/1qil2ska-_5gi.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/3ia1uy-ta-wwx.js"].map(s=>t.l(s))).then(()=>s(534365)))},934329,t=>{t.v(s=>Promise.all(["static/chunks/2cl_2bjqc1lsc.js","static/chunks/1ozmtvibzzync.js","static/chunks/1dy9mwr1pcdwo.js","static/chunks/0agnc6vlr5bvi.js"].map(s=>t.l(s))).then(()=>s(532041)))},834235,t=>{t.v(s=>Promise.all(["static/chunks/3c5h1ejnae2s_.js"].map(s=>t.l(s))).then(()=>s(288188)))},879931,t=>{t.v(s=>Promise.all(["static/chunks/0tbmf55xnq95w.js"].map(s=>t.l(s))).then(()=>s(997855)))},738463,t=>{t.v(s=>Promise.all(["static/chunks/41klrxz2-ykw3.js"].map(s=>t.l(s))).then(()=>s(786105)))},464547,t=>{t.v(s=>Promise.all(["static/chunks/1g4yzqc8g06o2.js"].map(s=>t.l(s))).then(()=>s(995255)))},74196,t=>{t.v(s=>Promise.all(["static/chunks/1pgom6axjfimi.js"].map(s=>t.l(s))).then(()=>s(786142)))},926245,t=>{t.v(s=>Promise.all(["static/chunks/00f7egm3k9vam.js"].map(s=>t.l(s))).then(()=>s(829634)))},998654,t=>{t.v(s=>Promise.all(["static/chunks/0gklkn8q2umf3.js"].map(s=>t.l(s))).then(()=>s(121147)))},160115,t=>{t.v(s=>Promise.all(["static/chunks/0-rd1xjzbrve6.js"].map(s=>t.l(s))).then(()=>s(244703)))},656841,t=>{t.v(s=>Promise.all(["static/chunks/3vdfjhigz-c80.js"].map(s=>t.l(s))).then(()=>s(33176)))},291412,t=>{t.v(s=>Promise.all(["static/chunks/2rbi0f59-vmf9.js"].map(s=>t.l(s))).then(()=>s(620584)))},441270,t=>{t.v(s=>Promise.all(["static/chunks/088x63_2l0zc9.js"].map(s=>t.l(s))).then(()=>s(675022)))},332344,t=>{t.v(s=>Promise.all(["static/chunks/3ve5sdpvgjpbu.js"].map(s=>t.l(s))).then(()=>s(642400)))},252913,t=>{t.v(s=>Promise.all(["static/chunks/2i6moah6rdm25.js"].map(s=>t.l(s))).then(()=>s(202714)))},695208,t=>{t.v(s=>Promise.all(["static/chunks/3_gqqu4iritf3.js"].map(s=>t.l(s))).then(()=>s(40379)))},952844,t=>{t.v(s=>Promise.all(["static/chunks/0wdb6hvovrzpj.js"].map(s=>t.l(s))).then(()=>s(48975)))},776488,t=>{t.v(s=>Promise.all(["static/chunks/07ciqblogdtfg.js"].map(s=>t.l(s))).then(()=>s(938096)))},536002,t=>{t.v(s=>Promise.all(["static/chunks/0n254r0xtp5py.js"].map(s=>t.l(s))).then(()=>s(340767)))},872934,t=>{t.v(s=>Promise.all(["static/chunks/3qx8r_111vbcq.js"].map(s=>t.l(s))).then(()=>s(216129)))},831036,t=>{t.v(s=>Promise.all(["static/chunks/0b7u4oyc-4h1f.js"].map(s=>t.l(s))).then(()=>s(188870)))},423803,t=>{t.v(s=>Promise.all(["static/chunks/1464ilzyzd67x.js"].map(s=>t.l(s))).then(()=>s(9753)))},486330,t=>{t.v(s=>Promise.all(["static/chunks/0akc8wpmmqk3w.js"].map(s=>t.l(s))).then(()=>s(611191)))},381001,t=>{t.v(s=>Promise.all(["static/chunks/0db0pjco5lunx.js"].map(s=>t.l(s))).then(()=>s(297569)))},902100,t=>{t.v(s=>Promise.all(["static/chunks/3cayxge-4bh_2.js"].map(s=>t.l(s))).then(()=>s(899637)))},295735,t=>{t.v(s=>Promise.all(["static/chunks/1_dzz-lgnak2h.js"].map(s=>t.l(s))).then(()=>s(504007)))},358172,t=>{t.v(s=>Promise.all(["static/chunks/2cbug7-1qys8e.js"].map(s=>t.l(s))).then(()=>s(824395)))},775274,t=>{t.v(s=>Promise.all(["static/chunks/16_2z7zojg3g3.js"].map(s=>t.l(s))).then(()=>s(760511)))},514214,t=>{t.v(s=>Promise.all(["static/chunks/0cmf43-qvwr5g.js"].map(s=>t.l(s))).then(()=>s(815758)))},948353,t=>{t.v(s=>Promise.all(["static/chunks/210l205kz5g3q.js"].map(s=>t.l(s))).then(()=>s(365094)))},640920,t=>{t.v(s=>Promise.all(["static/chunks/3skrxw7zfkqzf.js"].map(s=>t.l(s))).then(()=>s(363976)))},157811,t=>{t.v(s=>Promise.all(["static/chunks/17brxt738o00g.js"].map(s=>t.l(s))).then(()=>s(805755)))},805550,t=>{t.v(s=>Promise.all(["static/chunks/0cg7tv-i19f6n.js"].map(s=>t.l(s))).then(()=>s(7419)))},360233,t=>{t.v(s=>Promise.all(["static/chunks/2tsbrs7m-0f65.js"].map(s=>t.l(s))).then(()=>s(797673)))},579755,t=>{t.v(s=>Promise.all(["static/chunks/01bd73-hm8457.js"].map(s=>t.l(s))).then(()=>s(525522)))},980721,t=>{t.v(s=>Promise.all(["static/chunks/458hu9cfcc3s_.js"].map(s=>t.l(s))).then(()=>s(560616)))},27266,t=>{t.v(s=>Promise.all(["static/chunks/01i1qitd_8rtz.js"].map(s=>t.l(s))).then(()=>s(134497)))},231214,t=>{t.v(s=>Promise.all(["static/chunks/1fviz3qosnq__.js"].map(s=>t.l(s))).then(()=>s(770771)))},881110,t=>{t.v(s=>Promise.all(["static/chunks/037scab0ici8w.js"].map(s=>t.l(s))).then(()=>s(764248)))},337683,t=>{t.v(s=>Promise.all(["static/chunks/1yj-z4gstw2xu.js"].map(s=>t.l(s))).then(()=>s(581666)))},28130,t=>{t.v(s=>Promise.all(["static/chunks/0p3vq3l43725n.js"].map(s=>t.l(s))).then(()=>s(365013)))},487165,t=>{t.v(s=>Promise.all(["static/chunks/3xes-pn_ri2cj.js"].map(s=>t.l(s))).then(()=>s(7363)))},470579,t=>{t.v(s=>Promise.all(["static/chunks/12z0zeu7lvha7.js"].map(s=>t.l(s))).then(()=>s(791178)))},677856,t=>{t.v(s=>Promise.all(["static/chunks/3v0b10wj4wq9y.js"].map(s=>t.l(s))).then(()=>s(182360)))},194363,t=>{t.v(s=>Promise.all(["static/chunks/3pa4udctptdhb.js"].map(s=>t.l(s))).then(()=>s(720465)))},448953,t=>{t.v(s=>Promise.all(["static/chunks/3473zud7njrud.js"].map(s=>t.l(s))).then(()=>s(951566)))},711812,t=>{t.v(s=>Promise.all(["static/chunks/1xdsthrspgqid.js"].map(s=>t.l(s))).then(()=>s(935992)))},409732,t=>{t.v(s=>Promise.all(["static/chunks/3t3e6rkuocks5.js"].map(s=>t.l(s))).then(()=>s(553497)))},930788,t=>{t.v(s=>Promise.all(["static/chunks/0r8pu9o18-9be.js"].map(s=>t.l(s))).then(()=>s(94790)))},769460,t=>{t.v(s=>Promise.all(["static/chunks/2wewgtk8lsm47.js"].map(s=>t.l(s))).then(()=>s(258941)))},774478,t=>{t.v(s=>Promise.all(["static/chunks/2l6fe0r1d_q6v.js"].map(s=>t.l(s))).then(()=>s(899054)))},49008,t=>{t.v(s=>Promise.all(["static/chunks/14_d5b8v93ic0.js"].map(s=>t.l(s))).then(()=>s(645619)))},377952,t=>{t.v(s=>Promise.all(["static/chunks/1ji12pypkyvd6.js"].map(s=>t.l(s))).then(()=>s(464754)))},411374,t=>{t.v(s=>Promise.all(["static/chunks/0j6p1caglumb5.js"].map(s=>t.l(s))).then(()=>s(669891)))},820463,t=>{t.v(s=>Promise.all(["static/chunks/3oj0ck1e2y0rg.js"].map(s=>t.l(s))).then(()=>s(966937)))},630169,t=>{t.v(s=>Promise.all(["static/chunks/21bsne5xprg9x.js"].map(s=>t.l(s))).then(()=>s(412397)))},777035,t=>{t.v(s=>Promise.all(["static/chunks/2nz_jsjkeh_3n.js"].map(s=>t.l(s))).then(()=>s(323854)))},28589,t=>{t.v(s=>Promise.all(["static/chunks/3bl5nolxelhoh.js"].map(s=>t.l(s))).then(()=>s(299023)))},161439,t=>{t.v(s=>Promise.all(["static/chunks/2qvx9cvdob30_.js"].map(s=>t.l(s))).then(()=>s(83923)))},467304,t=>{t.v(s=>Promise.all(["static/chunks/2r50d8i8nzafy.js"].map(s=>t.l(s))).then(()=>s(620576)))},794497,t=>{t.v(s=>Promise.all(["static/chunks/2-q2d_mg8eewn.js"].map(s=>t.l(s))).then(()=>s(383983)))},353619,t=>{t.v(s=>Promise.all(["static/chunks/00133qbkud_a1.js"].map(s=>t.l(s))).then(()=>s(311461)))},841717,t=>{t.v(s=>Promise.all(["static/chunks/3wyndekp6gs1e.js"].map(s=>t.l(s))).then(()=>s(905139)))},703232,t=>{t.v(s=>Promise.all(["static/chunks/0a5uw59rid6rr.js"].map(s=>t.l(s))).then(()=>s(7846)))},469411,t=>{t.v(s=>Promise.all(["static/chunks/1tdg7-4y92ae5.js"].map(s=>t.l(s))).then(()=>s(135966)))},81356,t=>{t.v(s=>Promise.all(["static/chunks/27679aiblwt7d.js"].map(s=>t.l(s))).then(()=>s(920400)))},291336,t=>{t.v(s=>Promise.all(["static/chunks/2-r_2y3shm5dp.js"].map(s=>t.l(s))).then(()=>s(154629)))},753065,t=>{t.v(s=>Promise.all(["static/chunks/3zru906admgda.js"].map(s=>t.l(s))).then(()=>s(792599)))},758732,t=>{t.v(s=>Promise.all(["static/chunks/1m_1wucqbm0dk.js"].map(s=>t.l(s))).then(()=>s(341854)))},505358,t=>{t.v(s=>Promise.all(["static/chunks/3n91b_r3lsocx.js"].map(s=>t.l(s))).then(()=>s(273427)))},953493,t=>{t.v(s=>Promise.all(["static/chunks/0ppunhtgdiybw.js"].map(s=>t.l(s))).then(()=>s(468746)))},767374,t=>{t.v(s=>Promise.all(["static/chunks/2e77rof1d6aab.js"].map(s=>t.l(s))).then(()=>s(948350)))},461630,t=>{t.v(s=>Promise.all(["static/chunks/1ua4os8wtpq3w.js"].map(s=>t.l(s))).then(()=>s(200388)))},135353,t=>{t.v(s=>Promise.all(["static/chunks/3_rh0kun_htkr.js"].map(s=>t.l(s))).then(()=>s(720692)))},129817,t=>{t.v(s=>Promise.all(["static/chunks/2wgde6wz3k5s5.js"].map(s=>t.l(s))).then(()=>s(832876)))},666144,t=>{t.v(s=>Promise.all(["static/chunks/2wm8p15qdp-ng.js"].map(s=>t.l(s))).then(()=>s(942760)))},496740,t=>{t.v(s=>Promise.all(["static/chunks/365l-wyhfm_-p.js"].map(s=>t.l(s))).then(()=>s(436913)))},896290,t=>{t.v(s=>Promise.all(["static/chunks/0_81-tq3u4vi9.js"].map(s=>t.l(s))).then(()=>s(67631)))},161379,t=>{t.v(s=>Promise.all(["static/chunks/2ktgnhn-0j381.js"].map(s=>t.l(s))).then(()=>s(397216)))},839484,t=>{t.v(t=>Promise.resolve().then(()=>t(716400)))},350117,t=>{t.v(s=>Promise.all(["static/chunks/0mkmxdnpoteey.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(36245)))},382528,t=>{t.v(s=>Promise.all(["static/chunks/00h58csdfefay.js","static/chunks/1-2_pusn4n8oh.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(868938)))},705108,t=>{t.v(s=>Promise.all(["static/chunks/0kdfzi54utgbh.js","static/chunks/42kilhgqayez4.js"].map(s=>t.l(s))).then(()=>s(121437)))},143904,t=>{t.v(s=>Promise.all(["static/chunks/0u3ktztrzu1fa.js","static/chunks/1ebh7wwf-wzqn.js"].map(s=>t.l(s))).then(()=>s(482661)))},696017,t=>{"use strict";var s=t.i(60231),a=t.i(419524);t.i(947716);var e=t.i(723685),l=(0,a.__name)(t=>{let{securityLevel:a}=(0,s.getConfig2)(),l=(0,e.select)("body");if("sandbox"===a){let s=(0,e.select)(`#i${t}`),a=s.node()?.contentDocument??document;l=(0,e.select)(a.body)}return l.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,l])},502056,t=>{"use strict";var s=t.i(217248),a=t.i(447804),e=t.i(508324),l=t.i(419524),i=(0,l.__name)(({flowchart:t})=>{let s=t?.subGraphTitleMargin?.top??0,a=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:s,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:s+a}},"getSubGraphTitleMargins"),n=new Map;async function c(t,e,l){let i,c;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let r=e.shape?s.shapes[e.shape]:void 0;if(!r)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;"sandbox"===l.config.securityLevel?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),c=await r(i,e,l)}else i=c=await r(t,e,l);return i.attr("data-look",(0,a.handleUndefinedAttr)(e.look)),e.tooltip&&c.attr("title",e.tooltip),n.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,l.__name)(c,"insertNode");var r=(0,l.__name)((t,s)=>{n.set(s.id,t)},"setNodeElem"),h=(0,l.__name)(()=>{n.clear()},"clear"),o=(0,l.__name)(t=>{let s=n.get(t.id);e.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let a=t.diff||0;return t.clusterNode?s.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-8)+")"):s.attr("transform","translate("+t.x+", "+t.y+")"),a},"positionNode");t.s(["clear",0,h,"getSubGraphTitleMargins",0,i,"insertNode",0,c,"positionNode",0,o,"setNodeElem",0,r])},369110,t=>{"use strict";var s=t.i(502056),a=t.i(217248),e=t.i(224797),l=t.i(836333),i=t.i(60231),n=t.i(508324),c=t.i(419524);t.i(947716);var r=t.i(723685),h=t.i(883272),o=(0,c.__name)(async(t,s)=>{let c,o,m=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:d}=m,{clusterBkg:k,clusterBorder:p}=u,{labelStyles:j,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(s),f=t.insert("g").attr("class","cluster swimlane "+(s.cssClasses||"")).attr("id",s.id).attr("data-id",s.id).attr("data-et","cluster").attr("data-look",s.look),P=(0,i.evaluate)(m.flowchart.htmlLabels),y="LR"===s.direction,x=f.insert("g").attr("class","cluster-label swimlane-label"),b=await (0,l.createText)(x,s.label,{style:s.labelStyle,useHtmlLabels:P,isNode:!0,width:s.width}),z=b.getBBox();if(P){let t=b.children[0],s=(0,r.select)(b);z=t.getBoundingClientRect(),s.attr("width",z.width),s.attr("height",z.height)}let _=s.padding??0,q=s.width<=z.width+_?z.width+_:s.width;s.width<=z.width+_?s.diff=(q-s.width)/2-_:s.diff=-_;let N=s.height,S=s.y-N/2,C=s.y+N/2,B=s.x-q/2,T=void 0!==s.swimlaneContentTop?s.swimlaneContentTop:S+N/3,R=4*!!y,$=z.height+2*R;if(y){let t=Math.max($,z.height+2*R),a=B+t,l=Math.max(0,q-t);if("handDrawn"===s.look){let i=h.default.svg(f),n=(0,e.userNodeOverrides)(s,{roughness:.7,fill:k,stroke:p,fillWeight:3,seed:d}),r=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:p,seed:d}),m=i.rectangle(B,S,t,N,n);c=f.insert(()=>m,":first-child");let u=i.rectangle(a,S,l,N,r);o=f.insert(()=>u,":first-child"),c.select("path:nth-child(2)").attr("style",g.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else c=f.insert("rect",":first-child"),o=f.insert("rect",":first-child"),c.attr("class","swimlane-title").attr("style",v).attr("x",B).attr("y",S).attr("width",t).attr("height",N).attr("fill",k).attr("stroke",p),o.attr("class","swimlane-body").attr("style",v).attr("x",a).attr("y",S).attr("width",l).attr("height",N).attr("fill","none").attr("stroke",p);let i=B+t/2,n=s.y;x.attr("transform",`translate(${i}, ${n}) rotate(-90) translate(${-z.width/2}, ${-z.height/2})`)}else{let t=Math.min($,Math.max(0,T-S)),a=S+t,l=Math.max(0,C-a),i=s.x-q/2;if("handDrawn"===s.look){let n=h.default.svg(f),r=(0,e.userNodeOverrides)(s,{roughness:.7,fill:k,stroke:p,fillWeight:3,seed:d}),m=(0,e.userNodeOverrides)(s,{roughness:.7,fill:"none",stroke:p,seed:d}),u=n.rectangle(i,S,q,t,r);c=f.insert(()=>u,":first-child");let j=n.rectangle(i,a,q,l,m);o=f.insert(()=>j,":first-child"),c.select("path:nth-child(2)").attr("style",g.join(";")),c.select("path").attr("style",w.join(";").replace("fill","stroke"))}else c=f.insert("rect",":first-child"),o=f.insert("rect",":first-child"),c.attr("class","swimlane-title").attr("style",v).attr("x",i).attr("y",S).attr("width",q).attr("height",t).attr("fill",k).attr("stroke",p),o.attr("class","swimlane-body").attr("style",v).attr("x",i).attr("y",a).attr("width",q).attr("height",l).attr("fill","none").attr("stroke",p);let n=s.x-z.width/2,r=S+(t-z.height)/2;x.attr("transform",`translate(${n}, ${r})`)}if(n.log.trace("Swimlane data ",s,JSON.stringify(s)),j){let t=x.select("span");t&&t.attr("style",j)}return s.offsetX=0,s.width=q,s.height=N,s.offsetY=z.height-_/2,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:f,labelBBox:z}},"swimlane"),m=(0,c.__name)(async(t,c)=>{let o,m;n.log.info("Creating subgraph rect for ",c.id,c);let u=(0,i.getConfig2)(),{themeVariables:d,handDrawnSeed:k}=u,{clusterBkg:p,clusterBorder:j}=d,{labelStyles:v,nodeStyles:g,borderStyles:w,backgroundStyles:f}=(0,e.styles2String)(c),P=t.insert("g").attr("class","cluster "+c.cssClasses).attr("id",c.domId).attr("data-look",c.look),y=(0,i.getEffectiveHtmlLabels)(u),x=P.insert("g").attr("class","cluster-label "),b=(o="markdown"===c.labelType?await (0,l.createText)(x,c.label,{style:c.labelStyle,useHtmlLabels:y,isNode:!0,width:c.width}):await (0,a.createLabel_default)(x,c.label,c.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=o.children[0],s=(0,r.select)(o);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let z=c.width<=b.width+c.padding?b.width+c.padding:c.width;c.width<=b.width+c.padding?c.diff=(z-c.width)/2-c.padding:c.diff=-c.padding;let _=c.height,q=c.x-z/2,N=c.y-_/2;if(n.log.trace("Data ",c,JSON.stringify(c)),"handDrawn"===c.look){let t=h.default.svg(P),s=(0,e.userNodeOverrides)(c,{roughness:.7,fill:p,stroke:j,fillWeight:3,seed:k}),l=t.path((0,a.createRoundedRectPathD)(q,N,z,_,0),s);(m=P.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",w.join(";")),m.select("path").attr("style",f.join(";").replace("fill","stroke"))}else(m=P.insert("rect",":first-child")).attr("style",g).attr("rx",c.rx).attr("ry",c.ry).attr("x",q).attr("y",N).attr("width",z).attr("height",_);let{subGraphTitleTopMargin:S}=(0,s.getSubGraphTitleMargins)(u);if(x.attr("transform",`translate(${c.x-b.width/2}, ${c.y-c.height/2+S})`),v){let t=x.select("span");t&&t.attr("style",v)}let C=m.node().getBBox();return c.offsetX=0,c.width=C.width,c.height=C.height,c.offsetY=b.height-c.padding/2,c.intersect=function(t){return(0,a.intersect_rect_default)(c,t)},{cluster:P,labelBBox:b}},"rect"),u=(0,c.__name)((t,s)=>{let e=t.insert("g").attr("class","note-cluster").attr("id",s.domId),l=e.insert("rect",":first-child"),i=0*s.padding,n=i/2;l.attr("rx",s.rx).attr("ry",s.ry).attr("x",s.x-s.width/2-n).attr("y",s.y-s.height/2-n).attr("width",s.width+i).attr("height",s.height+i).attr("fill","none");let c=l.node().getBBox();return s.width=c.width,s.height=c.height,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:e,labelBBox:{width:0,height:0}}},"noteGroup"),d=(0,c.__name)(async(t,s)=>{let e,l=(0,i.getConfig2)(),{themeVariables:n,handDrawnSeed:c}=l,{altBackground:o,compositeBackground:m,compositeTitleBackground:u,nodeBorder:d}=n,k=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-id",s.id).attr("data-look",s.look),p=k.insert("g",":first-child"),j=k.insert("g").attr("class","cluster-label"),v=k.append("rect"),g=await (0,a.createLabel_default)(j,s.label,s.labelStyle,void 0,!0),w=g.getBBox();if((0,i.getEffectiveHtmlLabels)(l)){let t=g.children[0],s=(0,r.select)(g);w=t.getBoundingClientRect(),s.attr("width",w.width),s.attr("height",w.height)}let f=0*s.padding,P=(s.width<=w.width+s.padding?w.width+s.padding:s.width)+f;s.width<=w.width+s.padding?s.diff=(P-s.width)/2-s.padding:s.diff=-s.padding;let y=s.height+f,x=s.height+f-w.height-6,b=s.x-P/2,z=s.y-y/2;s.width=P;let _=s.y-s.height/2-f/2+w.height+2;if("handDrawn"===s.look){let t=s.cssClasses.includes("statediagram-cluster-alt"),l=h.default.svg(k),i=s.rx||s.ry?l.path((0,a.createRoundedRectPathD)(b,z,P,y,10),{roughness:.7,fill:u,fillStyle:"solid",stroke:d,seed:c}):l.rectangle(b,z,P,y,{seed:c});e=k.insert(()=>i,":first-child");let n=l.rectangle(b,_,P,x,{fill:t?o:m,fillStyle:t?"hachure":"solid",stroke:d,seed:c});e=k.insert(()=>i,":first-child"),v=k.insert(()=>n)}else(e=p.insert("rect",":first-child")).attr("class","outer").attr("x",b).attr("y",z).attr("width",P).attr("height",y).attr("data-look",s.look),v.attr("class","inner").attr("x",b).attr("y",_).attr("width",P).attr("height",x);return j.attr("transform",`translate(${s.x-w.width/2}, ${z+1-3*!(0,i.getEffectiveHtmlLabels)(l)})`),s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=w.height-s.padding/2,s.labelBBox=w,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:k,labelBBox:w}},"roundedWithTitle"),k=(0,c.__name)(async(t,c)=>{let o;n.log.info("Creating subgraph rect for ",c.id,c);let m=(0,i.getConfig2)(),{themeVariables:u,handDrawnSeed:d}=m,{clusterBkg:k,clusterBorder:p}=u,{labelStyles:j,nodeStyles:v,borderStyles:g,backgroundStyles:w}=(0,e.styles2String)(c),f=t.insert("g").attr("class","cluster "+c.cssClasses).attr("id",c.domId).attr("data-look",c.look),P=(0,i.getEffectiveHtmlLabels)(m),y=f.insert("g").attr("class","cluster-label "),x=await (0,l.createText)(y,c.label,{style:c.labelStyle,useHtmlLabels:P,isNode:!0,width:c.width}),b=x.getBBox();if((0,i.getEffectiveHtmlLabels)(m)){let t=x.children[0],s=(0,r.select)(x);b=t.getBoundingClientRect(),s.attr("width",b.width),s.attr("height",b.height)}let z=c.width<=b.width+c.padding?b.width+c.padding:c.width;c.width<=b.width+c.padding?c.diff=(z-c.width)/2-c.padding:c.diff=-c.padding;let _=c.height,q=c.x-z/2,N=c.y-_/2;if(n.log.trace("Data ",c,JSON.stringify(c)),"handDrawn"===c.look){let t=h.default.svg(f),s=(0,e.userNodeOverrides)(c,{roughness:.7,fill:k,stroke:p,fillWeight:4,seed:d}),l=t.path((0,a.createRoundedRectPathD)(q,N,z,_,c.rx),s);(o=f.insert(()=>(n.log.debug("Rough node insert CXC",l),l),":first-child")).select("path:nth-child(2)").attr("style",g.join(";")),o.select("path").attr("style",w.join(";").replace("fill","stroke"))}else(o=f.insert("rect",":first-child")).attr("style",v).attr("rx",c.rx).attr("ry",c.ry).attr("x",q).attr("y",N).attr("width",z).attr("height",_);let{subGraphTitleTopMargin:S}=(0,s.getSubGraphTitleMargins)(m);if(y.attr("transform",`translate(${c.x-b.width/2}, ${c.y-c.height/2+S})`),j){let t=y.select("span");t&&t.attr("style",j)}let C=o.node().getBBox();return c.offsetX=0,c.width=C.width,c.height=C.height,c.offsetY=b.height-c.padding/2,c.intersect=function(t){return(0,a.intersect_rect_default)(c,t)},{cluster:f,labelBBox:b}},"kanbanSection"),p={rect:m,squareRect:m,roundedWithTitle:d,noteGroup:u,divider:(0,c.__name)((t,s)=>{let e,{themeVariables:l,handDrawnSeed:n}=(0,i.getConfig2)(),{nodeBorder:c}=l,r=t.insert("g").attr("class",s.cssClasses).attr("id",s.domId).attr("data-look",s.look),o=r.insert("g",":first-child"),m=0*s.padding,u=s.width+m;s.diff=-s.padding;let d=s.height+m,k=s.x-u/2,p=s.y-d/2;if(s.width=u,"handDrawn"===s.look){let t=h.default.svg(r).rectangle(k,p,u,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:c,seed:n});e=r.insert(()=>t,":first-child")}else{e=o.insert("rect",":first-child");let t="outer";s.look,t="divider",e.attr("class",t).attr("x",k).attr("y",p).attr("width",u).attr("height",d).attr("data-look",s.look)}return s.height=e.node().getBBox().height,s.offsetX=0,s.offsetY=0,s.intersect=function(t){return(0,a.intersect_rect_default)(s,t)},{cluster:r,labelBBox:{}}},"divider"),kanbanSection:k,swimlane:o},j=new Map,v=(0,c.__name)(async(t,s)=>{let a=s.shape||"rect",e=await p[a](t,s);return j.set(s.id,e),e},"insertCluster"),g=(0,c.__name)(()=>{j=new Map},"clear");t.s(["clear",0,g,"insertCluster",0,v])},121292,t=>{"use strict";var s=t.i(369110),a=t.i(382793),e=t.i(502056),l=t.i(217248),i=t.i(447804),n=t.i(60231),c=t.i(508324),r=t.i(419524),h={common:n.common_default,getConfig:n.getConfig,insertCluster:s.insertCluster,insertEdge:a.insertEdge,insertEdgeLabel:a.insertEdgeLabel,insertMarkers:a.markers_default,insertNode:e.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:l.labelHelper,log:c.log,positionEdgeLabel:a.positionEdgeLabel},o={},m=(0,r.__name)(t=>{for(let s of t)o[s.name]=s},"registerLayoutLoaders");(0,r.__name)(()=>{m([{name:"dagre",loader:(0,r.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,r.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,r.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,r.__name)(async(t,s)=>{if(!(t.layoutAlgorithm in o))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let s of t.nodes){let a=s.domId||s.id;s.domId=`${t.diagramId}-${a}`}let a=o[t.layoutAlgorithm],e=await a.loader(),{theme:l,themeVariables:i}=t.config,{useGradient:n,gradientStart:c,gradientStop:r}=i,m=s.attr("id");if(s.append("defs").append("filter").attr("id",`${m}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),s.append("defs").append("filter").attr("id",`${m}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${l?.includes("dark")?"#FFFFFF":"#000000"}`),n){let t=s.append("linearGradient").attr("id",s.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",c).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",r).attr("stop-opacity",1)}return e.render(t,s,h,{algorithm:a.algorithm})},"render"),d=(0,r.__name)((t="",{fallback:s="dagre"}={})=>{if(t in o)return t;if(s in o)return c.log.warn(`Layout algorithm ${t} is not registered. Using ${s} as fallback.`),s;throw Error(`Both layout algorithms ${t} and ${s} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,d,"registerLayoutLoaders",0,m,"render",0,u])},110338,t=>{t.v(s=>Promise.all(["static/chunks/2gocl3dq0_h1s.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(59618)))},4699,t=>{t.v(s=>Promise.all(["static/chunks/01xjer0i_e5z5.js","static/chunks/2itcfm_igcz5x.js"].map(s=>t.l(s))).then(()=>s(595016)))},208503,t=>{t.v(s=>Promise.all(["static/chunks/0vhltcpdssl3-.js","static/chunks/411-m6wb1xycs.js"].map(s=>t.l(s))).then(()=>s(752312)))},342649,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1g6hadfcoz4ag.js"].map(s=>t.l(s))).then(()=>s(447429)))},555153,t=>{t.v(s=>Promise.all(["static/chunks/16mzcd_gvdgbo.js","static/chunks/3lx-n8v_8u7og.js"].map(s=>t.l(s))).then(()=>s(921789)))},121563,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/221-n1wtpkus8.js"].map(s=>t.l(s))).then(()=>s(52278)))},775281,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3oif9bymgqjgd.js"].map(s=>t.l(s))).then(()=>s(75306)))},840094,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/3mjwob-a5hhwz.js"].map(s=>t.l(s))).then(()=>s(958133)))},806739,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/266qo7h19xz_m.js"].map(s=>t.l(s))).then(()=>s(486182)))},725135,t=>{t.v(s=>Promise.all(["static/chunks/25pfy8u3vc_bn.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(271981)))},257999,t=>{t.v(s=>Promise.all(["static/chunks/1kg8hnvdsweku.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(954776)))},126038,t=>{t.v(s=>Promise.all(["static/chunks/1wrwqqt23_cqy.js"].map(s=>t.l(s))).then(()=>s(868948)))},299022,t=>{t.v(s=>Promise.all(["static/chunks/025bmrgeukcb2.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(595502)))},216587,t=>{t.v(s=>Promise.all(["static/chunks/1ztlt8o8gnas8.js","static/chunks/04e-e--5lk26x.js"].map(s=>t.l(s))).then(()=>s(222024)))},405760,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1rh4z578p-h1a.js"].map(s=>t.l(s))).then(()=>s(896515)))},937084,t=>{t.v(s=>Promise.all(["static/chunks/09nk4rn1z6j8b.js","static/chunks/2qq7e47gpyc_e.js"].map(s=>t.l(s))).then(()=>s(722875)))},223045,t=>{t.v(s=>Promise.all(["static/chunks/0x7n81v2cw92f.js"].map(s=>t.l(s))).then(()=>s(239077)))},104423,t=>{t.v(s=>Promise.all(["static/chunks/0oyz95sujd2c7.js"].map(s=>t.l(s))).then(()=>s(547384)))},847615,t=>{t.v(s=>Promise.all(["static/chunks/3s-zbm7kxc46y.js"].map(s=>t.l(s))).then(()=>s(980953)))},265584,t=>{t.v(s=>Promise.all(["static/chunks/14b2ne-5dycww.js"].map(s=>t.l(s))).then(()=>s(582576)))},121612,t=>{t.v(s=>Promise.all(["static/chunks/1-axl1a1s8xi7.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(724854)))},761201,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/38h4_u_fq6ose.js"].map(s=>t.l(s))).then(()=>s(537834)))},480988,t=>{t.v(s=>Promise.all(["static/chunks/0dhmf6y59xjoo.js"].map(s=>t.l(s))).then(()=>s(713179)))},780947,t=>{t.v(s=>Promise.all(["static/chunks/3r7r2d2yc93-y.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/1kzq0rdlu1v0j.js"].map(s=>t.l(s))).then(()=>s(354077)))},775900,t=>{t.v(s=>Promise.all(["static/chunks/14osgsp3aiqpz.js"].map(s=>t.l(s))).then(()=>s(207851)))},650519,t=>{t.v(s=>Promise.all(["static/chunks/3peltyinql2qj.js"].map(s=>t.l(s))).then(()=>s(621500)))},654159,t=>{t.v(s=>Promise.all(["static/chunks/2o4dndk0d68do.js","static/chunks/1u5i-jti87jbo.js"].map(s=>t.l(s))).then(()=>s(801891)))},483976,t=>{t.v(s=>Promise.all(["static/chunks/0p54qye85am3w.js"].map(s=>t.l(s))).then(()=>s(122015)))},99530,t=>{t.v(s=>Promise.all(["static/chunks/0u9ae9k_2g7k3.js","static/chunks/3lx-n8v_8u7og.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(757018)))},633604,t=>{t.v(s=>Promise.all(["static/chunks/2sdwbfs1x5skp.js","static/chunks/3her9o9_qn46y.js"].map(s=>t.l(s))).then(()=>s(196572)))},12782,t=>{t.v(s=>Promise.all(["static/chunks/0_l0vn2teso0z.js"].map(s=>t.l(s))).then(()=>s(619325)))},868278,t=>{t.v(s=>Promise.all(["static/chunks/2m267diam_vib.js","static/chunks/2b4v6n9b8htrv.js"].map(s=>t.l(s))).then(()=>s(557786)))},9691,t=>{t.v(s=>Promise.all(["static/chunks/2udhdtq_z8488.js"].map(s=>t.l(s))).then(()=>s(254768)))},539575,t=>{t.v(s=>Promise.all(["static/chunks/0si45yj1su8y7.js"].map(s=>t.l(s))).then(()=>s(263487)))},85919,t=>{t.v(s=>Promise.all(["static/chunks/3n80kknp-eoi9.js","static/chunks/2qq7e47gpyc_e.js","static/chunks/02slxciv9jt1p.js"].map(s=>t.l(s))).then(()=>s(353883)))},437446,t=>{t.v(s=>Promise.all(["static/chunks/2v_t22-0u_seu.js","static/chunks/0m-pl93u72hp9.js"].map(s=>t.l(s))).then(()=>s(819125)))},514467,t=>{t.v(s=>Promise.all(["static/chunks/1zlldlu99uorc.js"].map(s=>t.l(s))).then(()=>s(477142)))},369582,t=>{t.v(s=>Promise.all(["static/chunks/2hugas7n-e13p.js"].map(s=>t.l(s))).then(()=>s(976823)))},558850,t=>{t.v(s=>Promise.all(["static/chunks/41s9cnvp51p5u.js"].map(s=>t.l(s))).then(()=>s(335871)))}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,507906,e=>{"use strict";var t,n,r,o,a,i,l,s,c=e.i(843476),u=e.i(689664),d=e.i(779266),f=e.i(456420);let m={name:"pencil-line",size:24,node:[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]};m.node;let p=(0,f.default)(m);var h=e.i(77071),v=e.i(759659),g=e.i(747925),x=e.i(263676),b=e.i(271645),y=e.i(798120),w=e.i(167881),E=/[\\\/_+.#"@\[\(\{&]/,k=/[\\\/_+.#"@\[\(\{&]/g,S=/[\s-]/,j=/[\s-]/g;function N(e){return e.toLowerCase().replace(j," ")}var C=Object.defineProperty,R=(e,t)=>C(e,"name",{value:t,configurable:!0}),O=!!("u">typeof window&&window.document&&window.document.createElement);function A(e,t,{checkForDefaultPrevented:n=!0}={}){return R(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function P(e){if(!O)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function M(e){return"IFRAME"===e.tagName}R(A,"composeEventHandlers"),R(function(e){if(!O)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),R(P,"getOwnerDocument"),R(function e(t,n=!1){let{activeElement:r}=P(t);if(!r?.nodeName)return null;if(M(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=P(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),R(M,"isFrame");var D=Object.defineProperty,I=(e,t)=>D(e,"name",{value:t,configurable:!0});function T(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function L(...e){return t=>{let n=!1,r=e.map(e=>{let r=T(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():T(e[t],null)}}}}function _(...e){return b.useCallback(L(...e),e)}I(T,"setRef"),I(L,"composeRefs"),I(_,"useComposedRefs");var F=Object.defineProperty,B=(e,t)=>F(e,"name",{value:t,configurable:!0});function $(e,t=[]){let n=[];function r(t,r){let o=b.createContext(r);o.displayName=t+"Context";let a=n.length;n=[...n,r];let i=B(t=>{let{scope:n,children:r,...i}=t,l=n?.[e]?.[a]||o,s=b.useMemo(()=>i,Object.values(i));return(0,c.jsx)(l.Provider,{value:s,children:r})},"Provider");function l(n,i,s={}){let{optional:c=!1}=s,u=i?.[e]?.[a]||o,d=b.useContext(u);if(d)return d;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return i.displayName=t+"Provider",B(l,"useContext"),[i,l]}B(r,"createContext");let o=B(()=>{let t=n.map(e=>b.createContext(e));return B(function(n){let r=n?.[e]||t;return b.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,z(o,...t)]}function z(...e){let t=e[0];if(1===e.length)return t;let n=B(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return B(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}B(function(e,t){let n=b.createContext(t);n.displayName=e+"Context";let r=B(e=>{let{children:t,...r}=e,o=b.useMemo(()=>r,Object.values(r));return(0,c.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,a={}){let{optional:i=!1}=a,l=b.useContext(n);if(l)return l;if(void 0!==t)return t;if(!i)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",B(o,"useContext"),[r,o]},"createContext"),B($,"createContextScope"),B(z,"composeContextScopes");var W=globalThis?.document?b.useLayoutEffect:()=>{},K=Object.defineProperty,U=b[" useId ".trim().toString()]||(()=>void 0),V=0;function q(e){let[t,n]=b.useState(U());return W(()=>{e||n(e=>e??String(V++))},[e]),e||(t?`radix-${t}`:"")}K(q,"name",{value:"useId",configurable:!0});var H=Object.defineProperty,X=b[" useEffectEvent ".trim().toString()],Y=b[" useInsertionEffect ".trim().toString()];function G(e){if("function"==typeof X)return X(e);let t=b.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof Y?Y(()=>{t.current=e}):W(()=>{t.current=e}),b.useMemo(()=>(...e)=>t.current?.(...e),[])}H(G,"name",{value:"useEffectEvent",configurable:!0});var Z=Object.defineProperty,J=(e,t)=>Z(e,"name",{value:t,configurable:!0}),Q=b[" useInsertionEffect ".trim().toString()]||W;function ee({prop:e,defaultProp:t,onChange:n=J(()=>{},"onChange"),caller:r}){let[o,a,i]=et({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:o;return[s,b.useCallback(t=>{if(l){let n=en(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[l,e,a,i])]}function et({defaultProp:e,onChange:t}){let[n,r]=b.useState(e),o=b.useRef(n),a=b.useRef(t);return Q(()=>{a.current=t},[t]),b.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function en(e){return"function"==typeof e}J(ee,"useControllableState"),J(et,"useUncontrolledState"),J(en,"isFunction");var er=Symbol("RADIX:SYNC_STATE");J(function(e,t,n,r){let{prop:o,defaultProp:a,onChange:i,caller:l}=t,s=void 0!==o,c=G(i),u=[{...n,state:a}];r&&u.push(r);let[d,f]=b.useReducer((t,n)=>{if(n.type===er)return{...t,state:n.state};let r=e(t,n);return s&&!Object.is(r.state,t.state)&&c(r.state),r},...u),m=d.state,p=b.useRef(m);b.useEffect(()=>{p.current!==m&&(p.current=m,s||c(m))},[m,p,s]);let h=b.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return b.useEffect(()=>{s&&!Object.is(o,d.state)&&f({type:er,state:o})},[o,d.state,s]),[h,f]},"useControllableStateReducer");var eo=e.i(174080),ea=Object.defineProperty,ei=(e,t)=>ea(e,"name",{value:t,configurable:!0});function el(e){let t=b.forwardRef((t,n)=>{let{children:r,...o}=t,a=null,i=!1,l=[];ep(r)&&"function"==typeof ex&&(r=ex(r._payload)),b.Children.forEach(r,e=>{if(ef(e)){i=!0;let t="child"in e.props?e.props.child:e.props.children;ep(t)&&"function"==typeof ex&&(t=ex(t._payload)),a=ec(e,t),l.push(a?.props?.children)}else l.push(e)}),a?a=b.cloneElement(a,void 0,l):!i&&1===b.Children.count(r)&&b.isValidElement(r)&&(a=r);let s=a?ed(a):void 0,c=_(n,s);if(!a){if(r||0===r)throw Error(i?eg(e):ev(e));return r}let u=eu(o,a.props??{});return a.type!==b.Fragment&&(u.ref=n?c:s),b.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}ei(el,"createSlot");var es=Symbol.for("radix.slottable");ei(function(e){let t=ei(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=es,t},"createSlottable");var ec=ei((e,t)=>{if("child"in e.props){let t=e.props.child;return b.isValidElement(t)?b.cloneElement(t,void 0,e.props.children(t.props.children)):null}return b.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function eu(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ed(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function ef(e){return b.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===es}ei(eu,"mergeProps"),ei(ed,"getElementRef"),ei(ef,"isSlottable");var em=Symbol.for("react.lazy");function ep(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===em&&"_payload"in e&&eh(e._payload)}function eh(e){return"object"==typeof e&&null!==e&&"then"in e}ei(ep,"isLazyComponent"),ei(eh,"isPromiseLike");var ev=ei(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),eg=ei(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ex=b[" use ".trim().toString()],eb=Object.defineProperty,ey=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=el(`Primitive.${t}`),r=b.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ew(e,t){e&&eo.flushSync(()=>e.dispatchEvent(t))}function eE(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...e)=>t.current?.(...e),[])}eb(ew,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(eE,"name",{value:"useCallbackRef",configurable:!0});var ek=Object.defineProperty,eS=(e,t)=>ek(e,"name",{value:t,configurable:!0}),ej="dismissableLayer.update",eN=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eC=b.forwardRef(eS(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...d}=e,f=b.useContext(eN),[m,p]=b.useState(null),h=m?.ownerDocument??globalThis?.document,[,v]=b.useState({}),g=_(t,p),x=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=y?x.indexOf(y):-1,E=m?x.indexOf(m):-1,k=f.layersWithOutsidePointerEventsDisabled.size>0,S=E>=w,j=b.useRef(!1),N=eA(e=>{a?.(e),s?.(e),e.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:j,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:b.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return S&&!t},[f.branches,S])}),C=eP(e=>{if(r&&j.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(i?.(e),s?.(e),e.defaultPrevented||u?.())},h),R=!!m&&E===x.length-1,O=eE(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return b.useEffect(()=>{if(R)return h.addEventListener("keydown",O,{capture:!0}),()=>h.removeEventListener("keydown",O,{capture:!0})},[h,R,O]),b.useEffect(()=>{if(m)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(l=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),eM(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(m),0===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=l))}},[m,h,n,f]),b.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),eM())},[m,f]),b.useEffect(()=>{let e=eS(()=>v({}),"handleUpdate");return document.addEventListener(ej,e),()=>document.removeEventListener(ej,e)},[]),(0,c.jsx)(ey.div,{...d,ref:g,style:{pointerEvents:k?S?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,C.onFocusCapture),onBlurCapture:A(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,N.onPointerDownCapture)})},"DismissableLayer"));function eR(){let e=b.useContext(eN),[t,n]=b.useState(null);return b.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}eS(eR,"useDismissableLayerSurface");var eO=eS(()=>!0,"IS_TRUE");function eA(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:i=eO}=t,l=eE(e),s=b.useRef(!1),c=b.useRef(!1),u=b.useRef(new Map),d=b.useRef(()=>{});return b.useEffect(()=>{function e(){c.current=!1,o.current=!1,u.current.clear()}function t(){return Array.from(u.current.values()).some(Boolean)}function f(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function m(e){c.current&&u.current.set(e.type,!1)}eS(e,"resetOutsideInteraction"),eS(t,"isOutsideInteractionIntercepted"),eS(f,"handleInteractionCapture"),eS(m,"handleInteractionBubble");let p=eS(a=>{if(a.target&&!s.current){let f=function(){n.removeEventListener("click",d.current);let r=t();e(),r||eD("dismissableLayer.pointerDownOutside",l,m,{discrete:!0})};if(eS(f,"handleAndDispatchPointerDownOutsideEvent"),!i(a.target)){n.removeEventListener("click",d.current),e(),s.current=!1;return}let m={originalEvent:a};c.current=!0,o.current=r&&0===a.button,u.current.clear(),r&&0===a.button?(n.removeEventListener("click",d.current),d.current=f,n.addEventListener("click",d.current,{once:!0})):f()}else n.removeEventListener("click",d.current),e();s.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,m);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",p),n.removeEventListener("click",d.current),h))n.removeEventListener(e,f,!0),n.removeEventListener(e,m)}},[n,l,r,o,a,i]),{onPointerDownCapture:eS(()=>s.current=!0,"onPointerDownCapture")}}function eP(e,t=globalThis?.document){let n=eE(e),r=b.useRef(!1);return b.useEffect(()=>{let e=eS(e=>{e.target&&!r.current&&eD("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eS(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eS(()=>r.current=!1,"onBlurCapture")}}function eM(){let e=new CustomEvent(ej);document.dispatchEvent(e)}function eD(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ew(o,a):o.dispatchEvent(a)}eS(eA,"usePointerDownOutside"),eS(eP,"useFocusOutside"),eS(eM,"dispatchUpdate"),eS(eD,"handleAndDispatchCustomEvent");var eI=Object.defineProperty,eT=(e,t)=>eI(e,"name",{value:t,configurable:!0}),eL="focusScope.autoFocusOnMount",e_="focusScope.autoFocusOnUnmount",eF={bubbles:!1,cancelable:!0},eB=b.forwardRef(eT(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=b.useState(null),u=eE(o),d=eE(a),f=b.useRef(null),m=_(t,s),p=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(r){let e=function(e){if(p.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:eq(f.current,{select:!0})},t=function(e){if(p.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||eq(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eq(l)};eT(e,"handleFocusIn"),eT(t,"handleFocusOut"),eT(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,l,p.paused]),b.useEffect(()=>{if(l){eH.add(p);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(eL,eF);l.addEventListener(eL,u),l.dispatchEvent(t),t.defaultPrevented||(e$(eG(eW(l)),{select:!0}),document.activeElement===e&&eq(l))}return()=>{l.removeEventListener(eL,u),setTimeout(()=>{let t=new CustomEvent(e_,eF);l.addEventListener(e_,d),l.dispatchEvent(t),t.defaultPrevented||eq(e??document.body,{select:!0}),l.removeEventListener(e_,d),eH.remove(p)},0)}}},[l,u,d,p]);let h=b.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=ez(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&eq(a,{select:!0})):(e.preventDefault(),n&&eq(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,c.jsx)(ey.div,{tabIndex:-1,...i,ref:m,onKeyDown:h})},"FocusScope"));function e$(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eq(r,{select:t}),document.activeElement!==n)return}function ez(e){let t=eW(e);return[eK(t,e),eK(t.reverse(),e)]}function eW(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:eT(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function eK(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eU(r,{upTo:t})))return r}function eU(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eV(e){return e instanceof HTMLInputElement&&"select"in e}function eq(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&eV(e)&&t&&e.select()}}eT(e$,"focusFirst"),eT(ez,"getTabbableEdges"),eT(eW,"getTabbableCandidates"),eT(eK,"findVisible"),eT(eU,"isHidden"),eT(eV,"isSelectableInput"),eT(eq,"focus");var eH=eX();function eX(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=eY(e,t)).unshift(t)},remove(t){e=eY(e,t),e[0]?.resume()}}}function eY(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eG(e){return e.filter(e=>"A"!==e.tagName)}eT(eX,"createFocusScopesStack"),eT(eY,"arrayRemove"),eT(eG,"removeLinks");var eZ=Object.defineProperty,eJ=b.forwardRef(eZ(function(e,t){let{container:n,...r}=e,[o,a]=b.useState(!1);W(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?eo.createPortal((0,c.jsx)(ey.div,{...r,ref:t}),i):null},"name",{value:"Portal",configurable:!0})),eQ=Object.defineProperty,e0=(e,t)=>eQ(e,"name",{value:t,configurable:!0});function e1(e,t){return b.useReducer((e,n)=>t[e][n]??e,e)}e0(e1,"useStateMachine");var e2=e0(e=>{let{present:t,children:n}=e,r=e5(t),o="function"==typeof n?n({present:r.isPresent}):b.Children.only(n),a=e6(r.ref,e9(o));return"function"==typeof n||r.isPresent?b.cloneElement(o,{ref:a}):null},"Presence");function e5(e){let[t,n]=b.useState(),r=b.useRef(null),o=b.useRef(e),a=b.useRef("none"),i=b.useRef(void 0),[l,s]=e1(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{"mounted"===l?(a.current=i.current??e4(r.current),i.current=void 0):a.current="none"},[l]),W(()=>{let t=r.current,n=o.current;if(n!==e){let r=a.current,l=e4(t);e?(i.current=l,s("MOUNT")):"none"===l||t?.display==="none"?s("UNMOUNT"):n&&r!==l?s("ANIMATION_OUT"):s("UNMOUNT"),o.current=e}},[e,s]),W(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=e0(a=>{let i=e4(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(s("ANIMATION_END"),!o.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),l=e0(e=>{e.target===t&&(a.current=e4(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,i.current=e4(t)}else r.current=null;n(e)},[])}}function e3(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function e6(...e){let t=b.useRef(e);return t.current=e,b.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=e3(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():e3(n[e],null)}}},[])}function e4(e){return e?.animationName||"none"}function e9(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}e0(e5,"usePresence"),e0(e3,"setRef"),e0(e6,"useStableComposedRefs"),e0(e4,"getAnimationName"),e0(e9,"getElementRef");var e7=Object.defineProperty,e8=(e,t)=>e7(e,"name",{value:t,configurable:!0}),te=0,tt=null;function tn(){b.useEffect(()=>{tt||(tt={start:tr(),end:tr()});let{start:e,end:t}=tt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),te++,()=>{1===te&&(tt?.start.remove(),tt?.end.remove(),tt=null),te=Math.max(0,te-1)}},[])}function tr(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e8(function(e){return tn(),e.children},"FocusGuards"),e8(tn,"useFocusGuards"),e8(tr,"createFocusGuard");var to=function(){return(to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ta(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var ti=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tl="width-before-scroll-bar";function ts(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tc="u">typeof window?b.useLayoutEffect:b.useEffect,tu=new WeakMap,td=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=to({async:!0,ssr:!1},t),a),tf=function(){},tm=b.forwardRef(function(e,t){var n,r,o,a,i=b.useRef(null),l=b.useState({onScrollCapture:tf,onWheelCapture:tf,onTouchMoveCapture:tf}),s=l[0],c=l[1],u=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,p=e.enabled,h=e.shards,v=e.sideCar,g=e.noRelative,x=e.noIsolation,y=e.inert,w=e.allowPinchZoom,E=e.as,k=e.gapMode,S=ta(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=(n=[i,t],r=function(e){return n.forEach(function(t){return ts(t,e)})},(o=(0,b.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,tc(function(){var e=tu.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||ts(e,null)}),r.forEach(function(e){t.has(e)||ts(e,o)})}tu.set(a,n)},[n]),a),N=to(to({},S),s);return b.createElement(b.Fragment,null,p&&b.createElement(v,{sideCar:td,removeScrollBar:m,shards:h,noRelative:g,noIsolation:x,inert:y,setCallbacks:c,allowPinchZoom:!!w,lockRef:i,gapMode:k}),u?b.cloneElement(b.Children.only(d),to(to({},N),{ref:j})):b.createElement(void 0===E?"div":E,to({},N,{className:f,ref:j}),d))});tm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tm.classNames={fullWidth:tl,zeroRight:ti};var tp=function(e){var t=e.sideCar,n=ta(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return b.createElement(r,to({},n))};tp.isSideCarExport=!0;var th=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tv=function(){var e=th();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tg=function(){var e=tv();return function(t){return e(t.styles,t.dynamic),null}},tx={left:0,top:0,right:0,gap:0},tb=function(e){return parseInt(e||"",10)||0},ty=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tb(n),tb(r),tb(o)]},tw=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return tx;var t=ty(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tE=tg(),tk="data-scroll-locked",tS=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(tk,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ti," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(tl," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(ti," .").concat(ti," {\n right: 0 ").concat(r,";\n }\n \n .").concat(tl," .").concat(tl," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tk,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},tj=function(){var e=parseInt(document.body.getAttribute(tk)||"0",10);return isFinite(e)?e:0},tN=function(){b.useEffect(function(){return document.body.setAttribute(tk,(tj()+1).toString()),function(){var e=tj()-1;e<=0?document.body.removeAttribute(tk):document.body.setAttribute(tk,e.toString())}},[])},tC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tN();var a=b.useMemo(function(){return tw(o)},[o]);return b.createElement(tE,{styles:tS(a,!t,o,n?"":"!important")})},tR=!1;if("u">typeof window)try{var tO=Object.defineProperty({},"passive",{get:function(){return tR=!0,!0}});window.addEventListener("test",tO,tO),window.removeEventListener("test",tO,tO)}catch(e){tR=!1}var tA=!!tR&&{passive:!1},tP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tM=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tD(e,r)){var o=tI(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},tD=function(e,t){return"v"===e?tP(t,"overflowY"):tP(t,"overflowX")},tI=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tT=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,c=t.contains(s),u=!1,d=l>0,f=0,m=0;do{if(!s)break;var p=tI(e,s),h=p[0],v=p[1]-p[2]-i*h;(h||v)&&tD(e,s)&&(f+=v,m+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?u=!0:!d&&(o&&1>Math.abs(m)||!o&&-l>m)&&(u=!0),u},tL=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t_=function(e){return[e.deltaX,e.deltaY]},tF=function(e){return e&&"current"in e?e.current:e},tB=0,t$=[];let tz=(i=function(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),o=b.useState(tB++)[0],a=b.useState(tg)[0],i=b.useRef(e);b.useEffect(function(){i.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tF),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=tL(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),m=f&&f.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var p=tM(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=tM(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var h=r.current||o;return tT(h,t,e,"h"===h?s:c,!0)},[]),s=b.useCallback(function(e){if(t$.length&&t$[t$.length-1]===a){var n="deltaY"in e?t_(e):tL(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(tF).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=b.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=b.useCallback(function(e){n.current=tL(e),r.current=void 0},[]),d=b.useCallback(function(t){c(t.type,t_(t),t.target,l(t,e.lockRef.current))},[]),f=b.useCallback(function(t){c(t.type,tL(t),t.target,l(t,e.lockRef.current))},[]);b.useEffect(function(){return t$.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,tA),document.addEventListener("touchmove",s,tA),document.addEventListener("touchstart",u,tA),function(){t$=t$.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,tA),document.removeEventListener("touchmove",s,tA),document.removeEventListener("touchstart",u,tA)}},[]);var m=e.removeScrollBar,p=e.inert;return b.createElement(b.Fragment,null,p?b.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?b.createElement(tC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},td.useMedium(i),tp);var tW=b.forwardRef(function(e,t){return b.createElement(tm,to({},e,{ref:t,sideCar:tz}))});tW.classNames=tm.classNames;var tK=new WeakMap,tU=new WeakMap,tV={},tq=0,tH=function(e){return e&&(e.host||tH(e.parentNode))},tX=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tH(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tV[n]||(tV[n]=new WeakMap);var a=tV[n],i=[],l=new Set,s=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(tK.get(e)||0)+1,c=(a.get(e)||0)+1;tK.set(e,s),a.set(e,c),i.push(e),1===s&&o&&tU.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),l.clear(),tq++,function(){i.forEach(function(e){var t=tK.get(e)-1,o=a.get(e)-1;tK.set(e,t),a.set(e,o),t||(tU.has(e)||e.removeAttribute(r),tU.delete(e)),o||e.removeAttribute(n)}),--tq||(tK=new WeakMap,tK=new WeakMap,tU=new WeakMap,tV={})}},tY=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tX(r,o,n,"aria-hidden")):function(){return null}},tG=Object.defineProperty,tZ=(e,t)=>tG(e,"name",{value:t,configurable:!0}),tJ="Dialog",[tQ,t0]=$(tJ),[t1,t2]=tQ(tJ),t5=tZ(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=b.useRef(null),s=b.useRef(null),[u,d]=ee({prop:r,defaultProp:o??!1,onChange:a,caller:tJ}),[f,m]=b.useState(0),[p,h]=b.useState(0);return(0,c.jsx)(t1,{scope:t,triggerRef:l,contentRef:s,contentId:q(),titleId:q(),descriptionId:q(),titlePresent:f>0,descriptionPresent:p>0,setTitleCount:m,setDescriptionCount:h,open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(e=>!e),[d]),modal:i,children:n})},"Dialog"),t3="DialogPortal",[t6,t4]=tQ(t3,{forceMount:void 0}),t9=tZ(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=t2(t3,t);return(0,c.jsx)(t6,{scope:t,forceMount:n,children:b.Children.map(r,e=>(0,c.jsx)(e2,{present:n||a.open,children:(0,c.jsx)(eJ,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),t7="DialogOverlay",t8=b.forwardRef(tZ(function(e,t){let n=t4(t7,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=t2(t7,e.__scopeDialog);return a.modal?(0,c.jsx)(e2,{present:r||a.open,children:(0,c.jsx)(nt,{...o,ref:t})}):null},"DialogOverlay")),ne=el("DialogOverlay.RemoveScroll"),nt=b.forwardRef(tZ(function(e,t){let{__scopeDialog:n,...r}=e,o=t2(t7,n),a=_(t,eR());return(0,c.jsx)(tW,{as:ne,allowPinchZoom:!0,shards:[o.contentRef],children:(0,c.jsx)(ey.div,{"data-state":nl(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),nn="DialogContent",nr=b.forwardRef(tZ(function(e,t){let n=t4(nn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=t2(nn,e.__scopeDialog);return(0,c.jsx)(e2,{present:r||a.open,children:a.modal?(0,c.jsx)(no,{...o,ref:t}):(0,c.jsx)(na,{...o,ref:t})})},"DialogContent")),no=b.forwardRef(tZ(function(e,t){let n=t2(nn,e.__scopeDialog),r=b.useRef(null),o=_(t,n.contentRef,r);return b.useEffect(()=>{let e=r.current;if(e)return tY(e)},[]),(0,c.jsx)(ni,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:A(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:A(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),na=b.forwardRef(tZ(function(e,t){let n=t2(nn,e.__scopeDialog),r=b.useRef(!1),o=b.useRef(!1);return(0,c.jsx)(ni,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"DialogContentNonModal")),ni=b.forwardRef(tZ(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=t2(nn,n);return tn(),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(eB,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,c.jsx)(eC,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":nl(l.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function nl(e){return e?"open":"closed"}tZ(nl,"getState");var ns='[cmdk-group=""]',nc='[cmdk-group-items=""]',nu='[cmdk-item=""]',nd=`${nu}:not([aria-disabled="true"])`,nf="cmdk-item-select",nm="data-value",np=(e,t,n)=>{var r;return r=e,function e(t,n,r,o,a,i,l){if(i===n.length)return a===t.length?1:.99;var s=`${a},${i}`;if(void 0!==l[s])return l[s];for(var c,u,d,f,m=o.charAt(i),p=r.indexOf(m,a),h=0;p>=0;)(c=e(t,n,r,o,p+1,i+1,l))>h&&(p===a?c*=1:E.test(t.charAt(p-1))?(c*=.8,(d=t.slice(a,p-1).match(k))&&a>0&&(c*=Math.pow(.999,d.length))):S.test(t.charAt(p-1))?(c*=.9,(f=t.slice(a,p-1).match(j))&&a>0&&(c*=Math.pow(.999,f.length))):(c*=.17,a>0&&(c*=Math.pow(.999,p-a))),t.charAt(p)!==n.charAt(i)&&(c*=.9999)),(c<.1&&r.charAt(p-1)===o.charAt(i+1)||o.charAt(i+1)===o.charAt(i)&&r.charAt(p-1)!==o.charAt(i))&&.1*(u=e(t,n,r,o,p+1,i+2,l))>c&&(c=.1*u),c>h&&(h=c),p=r.indexOf(m,p+1);return l[s]=h,h}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,N(r),N(t),0,0,{})},nh=b.createContext(void 0),nv=b.createContext(void 0),ng=b.createContext(void 0),nx=b.forwardRef((e,t)=>{let n=nR(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=nR(()=>new Set),o=nR(()=>new Map),a=nR(()=>new Map),i=nR(()=>new Set),l=nN(e),{label:s,children:c,value:u,onValueChange:d,filter:f,shouldFilter:m,loop:p,disablePointerSelection:h=!1,vimBindings:v=!0,...g}=e,x=q(),y=q(),w=q(),E=b.useRef(null),k=nP();nC(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,S.emit()}},[u]),nC(()=>{k(6,A)},[]);let S=b.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)O(),C(),k(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(x))||o.focus()}if(k(7,()=>{var e;n.current.selectedItemId=null==(e=P())?void 0:e.id,S.emit()}),r||k(5,A),(null==(a=l.current)?void 0:a.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}S.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),j=b.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,N(t,r)),k(2,()=>{C(),S.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),k(3,()=>{O(),C(),n.current.value||R(),S.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=P();k(4,()=>{O(),(null==t?void 0:t.getAttribute("id"))===e&&R(),S.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:x,inputId:w,labelId:y,listInnerRef:E}),[]);function N(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:np;return e?a(e,n.current.search,t):0}function C(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=E.current;M().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(nc);t?t.appendChild(e.parentElement===t?e:e.closest(`${nc} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${nc} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=E.current)?void 0:t.querySelector(`${ns}[${nm}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function R(){let e=M().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(nm);S.setState("value",t||void 0)}function O(){var e,t,i,s;if(!n.current.search||!1===l.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=N(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(i=a.current.get(o))?void 0:i.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function A(){var e,t,n;let r=P();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(ns))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function P(){var e;return null==(e=E.current)?void 0:e.querySelector(`${nu}[aria-selected="true"]`)}function M(){var e;return Array.from((null==(e=E.current)?void 0:e.querySelectorAll(nd))||[])}function D(e){let t=M()[e];t&&S.setState("value",t.getAttribute(nm))}function I(e){var t;let n=P(),r=M(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&S.setState("value",a.getAttribute(nm))}function T(e){let t=P(),n=null==t?void 0:t.closest(ns),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,ns):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,ns))?void 0:n.querySelector(nd);r?S.setState("value",r.getAttribute(nm)):I(e)}let L=()=>D(M().length-1),_=e=>{e.preventDefault(),e.metaKey?L():e.altKey?T(1):I(1)},F=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?T(-1):I(-1)};return b.createElement(ey.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=g.onKeyDown)||t.call(g,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":v&&e.ctrlKey&&_(e);break;case"ArrowDown":_(e);break;case"p":case"k":v&&e.ctrlKey&&F(e);break;case"ArrowUp":F(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),L();break;case"Enter":{e.preventDefault();let t=P();if(t){let e=new Event(nf);t.dispatchEvent(e)}}}}},b.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:nD},s),nM(e,e=>b.createElement(nv.Provider,{value:S},b.createElement(nh.Provider,{value:j},e))))}),nb=b.forwardRef((e,t)=>{var n,r;let o=q(),a=b.useRef(null),i=b.useContext(ng),l=b.useContext(nh),s=nN(e),c=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;nC(()=>{if(!c)return l.item(o,null==i?void 0:i.id)},[c]);let u=nA(o,a,[e.value,e.children,a],e.keywords),d=b.useContext(nv),f=nO(e=>e.value&&e.value===u.current),m=nO(e=>!!c||!1===l.filter()||!e.search||e.filtered.items.get(o)>0);function p(){var e,t;h(),null==(t=(e=s.current).onSelect)||t.call(e,u.current)}function h(){d.setState("value",u.current,!0)}if(b.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(nf,p),()=>t.removeEventListener(nf,p)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:v,value:g,onSelect:x,forceMount:y,keywords:w,...E}=e;return b.createElement(ey.div,{ref:L(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||l.getDisablePointerSelection()?void 0:h,onClick:v?void 0:p},e.children)}),ny=b.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=q(),l=b.useRef(null),s=b.useRef(null),c=q(),u=b.useContext(nh),d=nO(e=>!!o||!1===u.filter()||!e.search||e.filtered.groups.has(i));nC(()=>u.group(i),[]),nA(i,l,[e.value,e.heading,s]);let f=b.useMemo(()=>({id:i,forceMount:o}),[o]);return b.createElement(ey.div,{ref:L(l,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&b.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),nM(e,e=>b.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},b.createElement(ng.Provider,{value:f},e))))}),nw=b.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=b.useRef(null),a=nO(e=>!e.search);return n||a?b.createElement(ey.div,{ref:L(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),nE=b.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=b.useContext(nv),i=nO(e=>e.search),l=nO(e=>e.selectedItemId),s=b.useContext(nh);return b.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),b.createElement(ey.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),nk=b.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=b.useRef(null),i=b.useRef(null),l=nO(e=>e.selectedItemId),s=b.useContext(nh);return b.useEffect(()=>{if(i.current&&a.current){let e=i.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),b.createElement(ey.div,{ref:L(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:s.listId},nM(e,e=>b.createElement("div",{ref:L(i,s.listInnerRef),"cmdk-list-sizer":""},e)))}),nS=b.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...l}=e;return b.createElement(t5,{open:n,onOpenChange:r},b.createElement(t9,{container:i},b.createElement(t8,{"cmdk-overlay":"",className:o}),b.createElement(nr,{"aria-label":e.label,"cmdk-dialog":"",className:a},b.createElement(nx,{ref:t,...l}))))}),nj=Object.assign(nx,{List:nk,Item:nb,Input:nE,Group:ny,Separator:nw,Dialog:nS,Empty:b.forwardRef((e,t)=>nO(e=>0===e.filtered.count)?b.createElement(ey.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:b.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return b.createElement(ey.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},nM(e,e=>b.createElement("div",{"aria-hidden":!0},e)))})});function nN(e){let t=b.useRef(e);return nC(()=>{t.current=e}),t}var nC="u"<typeof window?b.useEffect:b.useLayoutEffect;function nR(e){let t=b.useRef();return void 0===t.current&&(t.current=e()),t}function nO(e){let t=b.useContext(nv),n=()=>e(t.snapshot());return b.useSyncExternalStore(t.subscribe,n,n)}function nA(e,t,n,r=[]){let o=b.useRef(),a=b.useContext(nh);return nC(()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map(e=>e.trim());a.value(e,l,s),null==(i=t.current)||i.setAttribute(nm,l),o.current=l}),o}var nP=()=>{let[e,t]=b.useState(),n=nR(()=>new Map);return nC(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function nM({asChild:e,children:t},n){let r;return e&&b.isValidElement(t)?b.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var nD={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},nI=e.i(593698),nT=e.i(630299),nT=nT;e.i(630374);var nL=e.i(225913),n_=e.i(23750),nF=e.i(184762),nB=e.i(647163);function n$({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,nB.cn)("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}let nz=(0,nL.cva)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function nW({className:e,align:t="inline-start",...n}){return(0,c.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:(0,nB.cn)(nz({align:t}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}function nK({className:e,...t}){return(0,c.jsx)(nj,{"data-slot":"command",className:(0,nB.cn)("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground",e),...t})}function nU({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"command-input-wrapper",className:"p-1 pb-0",children:(0,c.jsxs)(n$,{className:"h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,c.jsx)(nj.Input,{"data-slot":"command-input",className:(0,nB.cn)("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t}),(0,c.jsx)(nW,{children:(0,c.jsx)(nT.default,{className:"size-4 shrink-0 opacity-50"})})]})})}function nV({className:e,...t}){return(0,c.jsx)(nj.List,{"data-slot":"command-list",className:(0,nB.cn)("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",e),...t})}function nq({className:e,...t}){return(0,c.jsx)(nj.Empty,{"data-slot":"command-empty",className:(0,nB.cn)("py-6 text-center text-sm",e),...t})}function nH({className:e,...t}){return(0,c.jsx)(nj.Group,{"data-slot":"command-group",className:(0,nB.cn)("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",e),...t})}function nX({className:e,children:t,...n}){return(0,c.jsxs)(nj.Item,{"data-slot":"command-item",className:(0,nB.cn)("group/command-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",e),...n,children:[t,(0,c.jsx)(nI.CheckIcon,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})}(0,nL.cva)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});var nY=e.i(917162),nG=e.i(660302),nZ=e.i(161483),nJ=e.i(319036),nQ=e.i(41533),n0=e.i(146538),n1=e.i(95187);let n2=(0,n1.createServerReference)("7f05ba605622eb8b4b2163fc0f0655bc1b7ed1024e",n1.callServer,void 0,n1.findSourceMapURL,"clearBotNoteAction"),n5=(0,n1.createServerReference)("7faa7108c1a244c9682e3b4c351515a7f87958d173",n1.callServer,void 0,n1.findSourceMapURL,"createBotAction");var n3=e.i(144322);let n6=(0,n1.createServerReference)("7f69d7c95bf47377324c543fbadb5ce5bdd8af67b1",n1.callServer,void 0,n1.findSourceMapURL,"deleteBotAction"),n4=(0,n1.createServerReference)("7f070e9079781799dfcd47936d678a1145c3802d20",n1.callServer,void 0,n1.findSourceMapURL,"setBotNotesOnAction"),n9=(0,n1.createServerReference)("7f6ec11c62992232937976b0eb0a9fa55db31af082",n1.callServer,void 0,n1.findSourceMapURL,"updateBotAction");var n7=e.i(451888),n8=e.i(463625),re=e.i(635963),rt=e.i(895836),rn=e.i(989409),rr=e.i(333999),ro=e.i(245629),ra=e.i(981203),ri=e.i(609856),rl=e.i(283653),rs=e.i(864723);let rc=" new",ru=" seeds";function rd({bot:e,job:t,active:n,onPick:r}){var o,a;let i=(o=t,a=e.lastJobAt,o?"waiting"===o.status?(0,n7.isBudgetAsk)(o.ask)?{text:"out of steps"}:{text:"waiting on you",shine:!0,amber:!0}:"running"===o.status?{text:`working \xb7 ${o.label}`,shine:!0}:{text:`idle \xb7 last job ${rf(o.updatedAt)}`}:a?{text:`idle \xb7 last job ${rf(a)}`}:{text:"idle · no jobs yet"});return(0,c.jsxs)("button",{type:"button",onClick:r,className:(0,nB.cn)("mx-2 flex items-center gap-2.5 rounded-md px-2 py-2 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",n?"bg-secondary":"hover:bg-muted/60"),children:[(0,c.jsx)(re.BotMark,{size:32,...rh(e.name,e.icon),state:t?.status==="running"?"thinking":"idle",notify:t?.status==="waiting",className:"shrink-0"}),(0,c.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,c.jsx)("span",{className:(0,nB.cn)("block truncate text-[13px]",n?"font-medium":"text-foreground/90"),children:e.name}),i.shine?(0,c.jsx)("span",{className:(0,nB.cn)("block",i.amber?"[--rest:var(--color-amber-700)] [--shine:var(--color-amber-400)] dark:[--rest:var(--color-amber-400)] dark:[--shine:var(--color-amber-100)]":"[--rest:var(--muted-foreground)] [--shine:var(--foreground)]"),children:(0,c.jsx)(nG.default,{text:i.text,speed:2.4,color:"var(--rest)",shineColor:"var(--shine)",className:"truncate font-mono text-[11px] leading-4"})}):(0,c.jsx)("span",{className:"block truncate font-mono text-[11px] leading-4 text-muted-foreground",children:i.text})]})]})}function rf(e){let t=(0,ro.shortAgo)(e);return"now"===t?"just now":`${t} ago`}function rm({missing:e,active:t,onPick:n}){return(0,c.jsxs)("button",{type:"button",onClick:n,className:(0,nB.cn)("mx-2 mt-1 flex items-center gap-2.5 rounded-md px-2 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",t?"bg-secondary":"hover:bg-muted/60"),children:[(0,c.jsx)("span",{className:"flex shrink-0 items-center",children:e.map((e,t)=>(0,c.jsx)("span",{className:(0,nB.cn)("block",t>0&&"-ml-1.5"),children:(0,c.jsx)(re.BotMark,{size:22,...rh(e.name,e.icon)})},e.name))}),(0,c.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,c.jsx)("span",{className:(0,nB.cn)("block truncate text-[13px]",t?"font-medium":"text-foreground/90"),children:"Ready-made"}),(0,c.jsx)("span",{className:"block truncate font-mono text-[10px] leading-4 text-muted-foreground",children:e.length===n8.BOT_SEEDS.length?`${e.length} bots`:`${e.length} left`})]})]})}function rp({have:e,onDone:t}){let[n,r]=(0,b.useState)(new Set),[o,a]=(0,ri.useServerAction)(n3.createSeedBotsAction,{onOk:e=>{(0,rl.revalidate)(y.queryKey.bot),t(e.created[0]??null)}}),i=n8.BOT_SEEDS.filter(t=>!e.has(t.name)&&!n.has(t.name));return(0,c.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,c.jsx)("div",{className:"flex h-11 shrink-0 items-center border-b border-border/60 px-4 font-mono text-[11px] text-muted-foreground",children:"Ready-made"}),(0,c.jsxs)("div",{className:"px-8 pt-7 pb-1",children:[(0,c.jsx)("h3",{className:"text-[17px] font-medium tracking-tight",children:1===n8.BOT_SEEDS.length?"One bot comes with her":`${2===n8.BOT_SEEDS.length?"Two":n8.BOT_SEEDS.length} bots come with her`}),(0,c.jsx)("p",{className:"mt-1.5 max-w-lg text-[13px] leading-relaxed text-muted-foreground break-keep",children:"They take the work that would leave the call silent, and report back. Untick anything you would rather not have; each runs on the app default model until you give it one of its own."})]}),(0,c.jsx)("div",{className:"flex flex-col gap-2 px-8 pt-4",children:n8.BOT_SEEDS.map(t=>{let o=e.has(t.name),i=o||!n.has(t.name);return(0,c.jsx)("div",{className:(0,nB.cn)("rounded-2xl ring-1 transition-colors",o?"opacity-45 ring-border/60":i?"ring-foreground":"ring-border/60"),children:(0,c.jsxs)("button",{type:"button",disabled:o||a,"aria-pressed":i,onClick:()=>r(e=>{let n=new Set(e);return n.has(t.name)?n.delete(t.name):n.add(t.name),n}),className:"flex w-full items-center gap-3.5 rounded-2xl px-4 py-3 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default",children:[(0,c.jsx)(re.BotMark,{size:32,...rh(t.name,t.icon),className:(0,nB.cn)("shrink-0 transition-opacity",!i&&"opacity-35")}),(0,c.jsxs)("span",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,c.jsx)("span",{className:"block text-[14px] font-medium",children:t.name}),(0,c.jsx)("span",{className:"block text-[12px] leading-normal text-muted-foreground break-keep",children:t.description})]}),o&&(0,c.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"already added"}),(0,c.jsx)("span",{className:(0,nB.cn)("grid size-6 shrink-0 place-items-center rounded-full transition-colors",i?"bg-foreground text-background":"ring-1 ring-border/60 ring-inset"),children:i&&(0,c.jsx)(u.Check,{className:"size-3.5"})})]})},t.name)})}),(0,c.jsxs)("div",{className:"mt-auto flex items-center gap-3 border-t border-border/60 px-8 py-4",children:[(0,c.jsx)("span",{className:"flex-1 font-mono text-[11px] text-muted-foreground",children:0===i.length?"nothing ticked":`${i.length} of ${n8.BOT_SEEDS.length-e.size} ticked`}),(0,c.jsx)(w.Button,{variant:"ghost",onClick:()=>t(null),children:"Cancel"}),(0,c.jsx)(w.Button,{loading:a,disabled:0===i.length,onClick:()=>o(i.map(e=>({name:e.name}))),children:1===i.length?`Add ${i[0].name}`:`Add ${i.length} bots`})]})]})}function rh(e,t){return{seed:e||"bot",color:t?.color,shape:t?.shape,outline:t?.outline}}function rv({bot:e,jobs:t,onDone:n,onCancel:r}){let[o,a]=(0,rr.useObjectState)(()=>({name:e?.name??"",description:e?.description??"",systemPrompt:e?.systemPrompt??"",icon:e?.icon??(0,n7.randomBotIcon)(),provider:e?.provider??null,model:e?.model??"",toolIds:e?.tools.map(e=>e.id)??[]})),{name:i,description:l,systemPrompt:s,icon:u,provider:d,model:f,toolIds:m}=o,[h]=(0,ri.useServerAction)(n9,{onOk:()=>(0,rl.revalidate)(y.queryKey.bot)}),g=t=>{e&&h(e.name,t)},[x,b,,E]=(0,ri.useServerAction)(n5,{errorMessage:!1,okMessage:"Bot created",onOk:e=>{(0,rl.revalidate)(y.queryKey.bot),n(e.name)}}),[k,S]=(0,ri.useServerAction)(n6,{okMessage:"Bot deleted",onOk:()=>{(0,rl.revalidate)(y.queryKey.bot),n(null)}}),{data:j}=(0,rl.useServerRoute)(y.queryKey.botNotes),[N,C]=(0,ri.useServerAction)(n2,{okMessage:"Notes cleared",onOk:()=>(0,rl.revalidate)(y.queryKey.bot)}),R=i.trim()&&l.trim()&&d&&f.trim()&&!b,O=async()=>{!e||await nY.notify.confirm({title:`Clear ${e.name}'s own prompt?`,description:"What it worked out about doing jobs here is gone, and it starts the next one without it.",okText:"Clear",destructive:!0})&&N(e.name)},A=async()=>{!e||await nY.notify.confirm({title:`Delete ${e.name}?`,description:"The agent can no longer hand work to it.",okText:"Delete",destructive:!0})&&k(e.name)};return(0,c.jsxs)("div",{className:"flex min-h-full flex-col",children:[(0,c.jsxs)("div",{className:"flex h-11 shrink-0 items-center gap-2 border-b border-border/60 px-4",children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",children:e?e.name:"New bot"}),e&&(0,c.jsx)(w.Button,{size:"icon-sm",variant:"ghost",loading:S,"aria-label":"Delete this bot",onClick:A,className:"text-muted-foreground hover:text-destructive",children:(0,c.jsx)(v.Trash2,{})})]}),(0,c.jsxs)("div",{className:"flex-1 space-y-5 p-6",children:[(0,c.jsxs)("div",{className:"flex items-start gap-4",children:[(0,c.jsx)(re.BotMark,{size:72,...rh(i,u),className:"shrink-0"}),(0,c.jsxs)("div",{className:"min-w-0 flex-1 space-y-2.5",children:[e?(0,c.jsx)("p",{className:"truncate text-lg leading-8 font-medium",children:e.name}):(0,c.jsx)(n_.Input,{value:i,onChange:e=>a({name:e.target.value}),placeholder:"researcher",spellCheck:!1,maxLength:ra.COMMON_VALIDATE.name.max,autoFocus:!0}),(0,c.jsx)(n_.Input,{value:l,onChange:e=>a({description:e.target.value}),onBlur:()=>{let t=l.trim();e&&t&&t!==e.description&&g({description:t})},placeholder:"Searches the web and reports back",maxLength:ra.COMMON_VALIDATE.description.max})]})]}),e?.note&&(0,c.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border/60 bg-muted/25",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2.5 border-b border-border/60 px-4 py-3",children:[(0,c.jsx)(p,{className:"size-3.5 shrink-0 text-muted-foreground"}),(0,c.jsxs)("span",{className:"min-w-0 flex-1 truncate text-[13px] font-medium",children:["What ",e.name," has worked out"]}),(0,c.jsxs)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:[e.note.length,"/",nQ.BOT_NOTES.chars]})]}),(0,c.jsx)("p",{className:"px-4 py-3.5 text-[13px] leading-relaxed whitespace-pre-wrap",children:e.note}),(0,c.jsxs)("div",{className:"flex items-center gap-2 px-4 pb-3",children:[(0,c.jsxs)("span",{className:"min-w-0 flex-1 truncate font-mono text-[10px] text-muted-foreground",children:[!1===j?"Paused — bots are not keeping their own prompt":"It writes this itself when a job ends",e.noteAt&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"px-1.5 opacity-50",children:"·"}),(0,ro.shortAgo)(e.noteAt)]})]}),(0,c.jsx)(w.Button,{size:"sm",variant:"ghost",loading:C,onClick:O,className:"shrink-0 text-muted-foreground hover:text-destructive",children:"Clear"})]})]}),(0,c.jsx)(ry,{icon:u,onChange:e=>{a({icon:e}),g({icon:e})}}),(0,c.jsx)(rx,{label:"Runs on",children:(0,c.jsx)(n0.ModelPicker,{provider:d,model:f,onChange:e=>{a({provider:e.provider,model:e.model}),e.model&&g(e)}})}),(0,c.jsx)(rx,{label:"Tools",children:(0,c.jsx)(rw,{selected:m,onChange:e=>{a({toolIds:e}),g({toolIds:e})}})}),(0,c.jsxs)(rx,{label:"Prompt",children:[(0,c.jsx)(nF.Textarea,{value:s,onChange:e=>a({systemPrompt:e.target.value}),onBlur:()=>{let t=s.trim();e&&t!==(e.systemPrompt??"")&&g({systemPrompt:t})},placeholder:`How it should work (optional). e.g.
|
|
2
|
-
Search the web, answer with a short summary and links.`,maxLength:ra.COMMON_VALIDATE.prompt.max,className:"max-h-48 min-h-24 resize-none overflow-y-auto text-sm"}),s.length>0&&(0,c.jsxs)("p",{className:"text-right font-mono text-[10px] text-muted-foreground",children:[s.length,"/",ra.COMMON_VALIDATE.prompt.max]})]}),e&&(0,c.jsx)(rb,{jobs:t}),!e&&(0,c.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-1",children:[(0,c.jsx)(w.Button,{variant:"ghost",onClick:r,children:"Cancel"}),(0,c.jsx)(w.Button,{loading:b,disabled:!R,onClick:()=>{R&&d&&x({name:i.trim(),description:l.trim(),systemPrompt:s.trim()||void 0,icon:u,provider:d,model:f.trim(),toolIds:m})},children:"Create"})]}),E&&(0,c.jsx)("p",{className:"font-mono text-xs text-destructive",children:E})]})]})}function rg({bot:e}){let{data:t,mutate:n}=(0,rl.useServerRoute)(y.queryKey.botNotes),[r]=(0,ri.useServerAction)(n4,{onOk:()=>(0,rl.revalidate)(y.queryKey.botNotes)}),o=e?e.tokens.input+e.tokens.output:0;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rt.SettingRailNote,{children:e?(0,c.jsxs)("span",{className:"font-mono text-[11px]",children:[e.name,(0,c.jsx)("span",{className:"px-1.5 opacity-50",children:"·"}),(0,c.jsx)("span",{title:`in ${(0,nB.formatCount)(e.tokens.input)} \xb7 out ${(0,nB.formatCount)(e.tokens.output)}`,children:o>0?`${(0,nB.formatCount)(o)} tokens`:"no tokens yet"}),(0,c.jsx)("span",{className:"px-1.5 opacity-50",children:"·"}),"since ",(0,ro.whenOf)(e.createdAt)]}):"Becomes a bot once it has a name and a model"}),(0,c.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:"Bots keep their own prompt"}),(0,c.jsx)(nJ.Switch,{checked:t??!0,disabled:void 0===t,onCheckedChange:e=>{n(e,!1),r(e)},"aria-label":"Bots keep their own prompt"})]})}function rx({label:e,children:t}){return(0,c.jsxs)("div",{className:"flex gap-3",children:[(0,c.jsx)("span",{className:"w-20 shrink-0 pt-2 font-mono text-xs text-muted-foreground",children:e}),(0,c.jsx)("div",{className:"min-w-0 flex-1 space-y-1.5",children:t})]})}function rb({jobs:e}){return(0,c.jsxs)("div",{className:"pt-1",children:[(0,c.jsxs)("div",{className:"flex h-6 items-center",children:[(0,c.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"Recent"}),(0,c.jsx)("span",{className:"flex-1"}),(0,c.jsxs)("button",{type:"button",onClick:()=>(0,rn.openSettings)("tasks"),className:"flex items-center gap-1 rounded-md px-1.5 py-1 font-mono text-[11px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,c.jsx)(d.History,{className:"size-3"}),"History"]})]}),0===e.length?(0,c.jsx)("p",{className:"py-2 text-[13px] text-muted-foreground",children:"Nothing handed over yet."}):e.map(e=>{let t=function(e){switch(e.status){case"waiting":return(0,n7.isBudgetAsk)(e.ask)?{text:"out of steps",tone:"text-muted-foreground"}:{text:"waiting on you",tone:nB.WAITING_INK};case"running":return{text:"working",tone:"text-muted-foreground"};case"failed":return{text:"failed",tone:"text-destructive"};default:return{text:"done",tone:"text-muted-foreground"}}}(e);return(0,c.jsxs)("div",{className:"flex h-9 items-center gap-3 border-t border-border/60 text-[13px]",children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),(0,c.jsx)("span",{className:(0,nB.cn)("shrink-0 font-mono text-[11px]",t.tone),children:t.text}),(0,c.jsx)("span",{className:"w-28 shrink-0 text-right font-mono text-[11px] text-muted-foreground tabular-nums",children:(0,ro.whenOf)(e.updatedAt)})]},e.id)})]})}function ry({icon:e,onChange:t}){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(rx,{label:"Color",children:(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,c.jsx)(nZ.Swatch,{color:null,picked:e.color===rs.MARK_SYSTEM,onPick:()=>t({...e,color:rs.MARK_SYSTEM})}),rs.MARK_PALETTE.map(n=>(0,c.jsx)(nZ.Swatch,{color:n,picked:e.color===n,onPick:()=>t({...e,color:e.color===n?void 0:n})},n))]})}),(0,c.jsx)(rx,{label:"Face",children:(0,c.jsxs)("div",{className:"flex gap-1",children:[rs.MARK_SHAPES.map(n=>(0,c.jsx)("button",{type:"button",onClick:()=>t({...e,shape:e.shape===n?void 0:n}),className:(0,nB.cn)("rounded-md px-2 py-1 font-mono text-[11px] capitalize transition-colors",e.shape===n?"bg-foreground text-background":"bg-muted text-muted-foreground hover:text-foreground"),children:n},n)),(0,c.jsx)("span",{className:"mx-1 w-px self-stretch bg-border/60"}),(0,c.jsx)("button",{type:"button",onClick:()=>t({...e,outline:!e.outline||void 0}),className:(0,nB.cn)("rounded-md px-2 py-1 font-mono text-[11px] transition-colors",e.outline?"bg-foreground text-background":"bg-muted text-muted-foreground hover:text-foreground"),children:"outline"})]})})]})}function rw({selected:e,onChange:t}){let{data:n=[]}=(0,rl.useServerRoute)(y.queryKey.mcpTools),[r,o]=(0,b.useState)(!1),a=e.length>=n7.MAX_PINNED_TOOLS,i=[...new Set(n.map(e=>e.serverName))],l=e.map(e=>n.find(t=>t.id===e)).filter(e=>!!e),s=r?l:l.slice(0,4),d=l.length-s.length,f=n=>t(e.includes(n)?e.filter(e=>e!==n):[...e,n]);return 0===n.length?(0,c.jsx)("p",{className:"pt-1.5 text-xs text-muted-foreground",children:"Nothing to pin — connect an MCP server first (Settings › Connectors)."}):(0,c.jsxs)("div",{className:"space-y-2",children:[(0,c.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,c.jsx)(w.Button,{size:"icon-sm",variant:r?"secondary":"outline",onClick:()=>o(!r),"aria-label":"Pick tools",className:"border-dashed",children:(0,c.jsx)(g.Wrench,{})}),s.map(e=>(0,c.jsxs)("span",{className:"flex items-center gap-1 rounded-full bg-muted py-1 pr-1.5 pl-2.5 font-mono text-[11px]",children:[e.name,(0,c.jsx)("button",{type:"button","aria-label":`Unpin ${e.name}`,onClick:()=>f(e.id),className:"rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-foreground/10 hover:text-foreground",children:(0,c.jsx)(x.X,{className:"size-3"})})]},e.id)),d>0&&(0,c.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"rounded-full bg-muted px-2.5 py-1 font-mono text-[11px] text-muted-foreground transition-colors hover:text-foreground",children:["+",d]}),0===l.length&&(0,c.jsx)("span",{className:"text-xs text-muted-foreground",children:"Loaded from the start — everything else stays searchable"}),(0,c.jsx)("span",{className:"flex-1"}),(0,c.jsxs)("span",{className:(0,nB.cn)("font-mono text-[11px] text-muted-foreground",a&&"text-foreground"),children:[e.length,"/",n7.MAX_PINNED_TOOLS]})]}),r&&(0,c.jsxs)(nK,{className:"rounded-lg border border-input",children:[(0,c.jsx)(nU,{placeholder:"Search tools"}),(0,c.jsxs)(nV,{className:"max-h-44",children:[(0,c.jsx)(nq,{children:"Nothing matches"}),i.map(t=>(0,c.jsx)(nH,{heading:t,children:n.filter(e=>e.serverName===t).map(t=>{let n=e.includes(t.id);return(0,c.jsxs)(nX,{value:`${t.serverName}/${t.name}`,disabled:!n&&a,onSelect:()=>f(t.id),children:[(0,c.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:t.name}),n&&(0,c.jsx)(u.Check,{className:"size-3.5 shrink-0"})]},t.id)})},t))]})]})]})}e.s(["BotSetting",0,function(){let{data:e,isLoading:t,error:n}=(0,rl.useServerRoute)(y.queryKey.bot),r=e??[],{data:o}=(0,rl.useServerRoute)(y.queryKey.taskHistory(null)),a=o??[],[i,l]=(0,b.useState)(null);if(t)return(0,c.jsx)(rt.SettingPanesSkeleton,{});if(n)return(0,c.jsx)(rt.SettingError,{message:n.message});let s=i===rc,u=new Set(r.map(e=>e.name)),d=n8.BOT_SEEDS.filter(e=>!u.has(e.name)),f=s||i===ru?null:r.find(e=>e.name===i)??r[0]??null;return(0,c.jsx)(rt.SettingPanes,{footer:i===ru?null:(0,c.jsx)(rg,{bot:f}),left:(0,c.jsxs)("div",{className:"flex flex-col py-2",children:[(0,c.jsxs)("button",{type:"button",onClick:()=>l(rc),className:(0,nB.cn)("mx-2 mb-1 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",s?"bg-secondary text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[(0,c.jsx)(h.Plus,{className:"size-3.5 shrink-0"}),"New bot"]}),r.map(e=>(0,c.jsx)(rd,{bot:e,job:a.find(t=>t.bot===e.name)??null,active:!s&&e.name===f?.name,onPick:()=>l(e.name)},e.name)),d.length>0&&(0,c.jsx)(rm,{missing:d,active:i===ru,onPick:()=>l(ru)}),r.length>nQ.PROMPT_CROWDED.bots&&(0,c.jsxs)(rt.SettingNote,{className:"mx-3 mt-2 leading-relaxed",children:[r.length," bots. Each is a line in every prompt, and one more for Thursday to choose between."]})]}),right:i===ru?(0,c.jsx)(rp,{have:u,onDone:e=>l(e)}):s?(0,c.jsx)(rv,{jobs:[],onDone:e=>l(e),onCancel:()=>l(null)},"new"):f?(0,c.jsx)(rv,{bot:f,jobs:a.filter(e=>e.bot===f.name).slice(0,3),onDone:()=>l(null)},f.name):(0,c.jsxs)("div",{className:"space-y-4 p-8",children:[(0,c.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"The agent talks; bots do the rest — search the web, draft a reply, check a schedule. Give one a job and a model, and work gets handed over mid-call while the conversation keeps going."}),(0,c.jsxs)(w.Button,{variant:"outline",onClick:()=>l(rc),children:[(0,c.jsx)(h.Plus,{}),"New bot"]})]})})}],507906)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,222055,589128,e=>{"use strict";var t=e.i(843476),a=e.i(689664),n=e.i(716327),r=e.i(482022),s=e.i(60744),i=e.i(831458),o=e.i(91511),l=e.i(815170),d=e.i(218964),u=e.i(632781),c=e.i(468590),h=e.i(566595),m=e.i(730274),p=e.i(604139),f=e.i(747925),g=e.i(271645),x=e.i(798120),y=e.i(660302),b=e.i(671428),k=e.i(991322),v=e.i(852116);let w=e.i(328256).BookMarked;e.s(["SkillsMark",0,w],589128);var M=e.i(621285),j=e.i(283653),S=e.i(647163);let z={web_search:function({tool:e,taskId:a,collapsed:n}){let r=R(e.results);return(0,t.jsxs)(D,{tool:e,taskId:a,icon:h.Search,collapsed:n,children:[(0,t.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep",children:["“",e.input,"”"]}),r.length>0&&(0,t.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:r.map((e,a)=>(0,t.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,t.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,t.jsx)("span",{className:"truncate",children:e})]},`${a}-${e}`))})]})},bash:function({tool:e,taskId:a,collapsed:n}){let r=R(e.results);return(0,t.jsx)(D,{tool:e,taskId:a,icon:p.Terminal,collapsed:n,children:(0,t.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,t.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),e.input,r.length>0&&(0,t.jsx)("span",{className:"block text-muted-foreground",children:r.join("\n")})]})})},fetch:e=>(0,t.jsx)(C,{icon:o.Globe,...e}),write_file:e=>(0,t.jsx)(I,{icon:s.FilePen,...e}),generate_image:function({tool:e,taskId:a,collapsed:n}){let[s]=R(e.results);return(0,t.jsxs)(D,{tool:e,taskId:a,icon:l.Image,collapsed:n,children:[(0,t.jsx)("p",{className:"px-3 pt-1 text-[12px] leading-snug break-keep",children:e.input}),s&&(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground",children:s}),(0,t.jsxs)(M.FileLink,{path:s,label:`Open ${s}`,className:E,children:[(0,t.jsx)(r.ExternalLink,{className:"size-3"}),"Open"]})]})]})}},L={web_search:h.Search,bash:p.Terminal,fetch:o.Globe,write_file:s.FilePen,generate_image:l.Image,memory_recall:v.MemoryMark,memory_remember:v.MemoryMark,memory_forget:v.MemoryMark,memory_show:v.MemoryMark,load_skill:w,tool_search:k.McpMark,tool_call:k.McpMark,delegate:m.Send,task:d.ListChecks,ask_bot:c.MessageSquare,ask_back:c.MessageSquare,ask_thursday:c.MessageSquare,report:i.Flag},N=e=>L[e]??f.Wrench;function C({icon:e,tool:a,taskId:n,collapsed:r}){return(0,t.jsxs)(D,{tool:a,taskId:n,icon:e,collapsed:r,children:[(0,t.jsx)("p",{className:"truncate px-3 pt-1 pb-1.5 font-mono text-[11px]",children:a.input}),(0,t.jsx)(_,{lines:R(a.results),mono:!0})]})}let E="flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50";function I({icon:e,tool:a,taskId:n,collapsed:s}){let i=a.path??a.input;return(0,t.jsxs)(D,{tool:a,taskId:n,icon:e,collapsed:s,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:a.input}),(0,t.jsxs)(M.FileLink,{path:i,label:`Open ${i}`,className:E,children:[(0,t.jsx)(r.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,t.jsx)(_,{lines:R(a.results),mono:!0})]})}function A({tool:e,taskId:a,collapsed:n}){return(0,t.jsxs)(D,{tool:e,taskId:a,icon:N(e.name),collapsed:n,children:[(0,t.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep",children:e.input}),(0,t.jsx)(_,{lines:R(e.results)})]})}function D({tool:e,taskId:r,icon:s,collapsed:i=!1,children:o}){let l=void 0===e.results,[d,c]=(0,g.useState)(!i),h=d||l,m=e.more&&r&&e.callId;return(0,t.jsxs)("div",{className:(0,S.cn)("@container w-full overflow-hidden rounded-xl transition-colors",h?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,t.jsxs)("button",{type:"button",onClick:()=>c(e=>!e),"aria-expanded":h,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:l?(0,t.jsx)(u.Loader2,{className:"size-3 animate-spin"}):(0,t.jsx)(s,{className:"size-3"})}),e.note?(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)(y.default,{text:e.note,speed:2.4,color:"var(--muted-foreground)",shineColor:"var(--foreground)",className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:e.note}),(0,t.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground/85 @lg:block",children:e.input})]}):l?(0,t.jsx)(y.default,{text:e.input,speed:2.4,color:"var(--muted-foreground)",shineColor:"var(--foreground)",className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:e.input}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground/70",children:e.name}),!l&&(0,t.jsx)(a.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,t.jsx)(n.ChevronDown,{className:(0,S.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",h&&"rotate-180")})]}),h&&(0,t.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[o,m&&(0,t.jsx)(O,{taskId:r,callId:e.callId})]})]})}function O({taskId:e,callId:a}){let[r,s]=(0,g.useState)(!1),{data:i,isLoading:o}=(0,j.useServerRoute)(r?x.queryKey.toolResult(e,a):null);return(0,t.jsxs)("div",{className:"px-3 pb-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>s(e=>!e),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,t.jsx)(n.ChevronDown,{className:(0,S.cn)("size-3",r&&"rotate-180")}),r?"Less":"Everything"]}),r&&(o||!i?(0,t.jsx)(b.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,t.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[F(i).map((e,a)=>(0,t.jsx)(T,{src:e},`${a}-${e.length}`)),R(i).length>0&&(0,t.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:R(i).join("\n")})]}))]})}function T({src:e}){return(0,t.jsx)("img",{src:e,alt:"",className:"block w-full rounded-lg bg-muted object-contain"})}function _({lines:e,mono:a}){return 0===e.length?null:(0,t.jsx)("ul",{className:"px-3 pb-1.5",children:e.map((e,n)=>(0,t.jsx)("li",{className:(0,S.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",a&&"font-mono"),children:e},`${n}-${e}`))})}let R=e=>e?.flatMap(e=>"text"===e.type?[e.text]:[])??[],F=e=>e?.flatMap(e=>"image"===e.type?[e.src]:[])??[];e.s(["BotTool",0,function(e){let a=z[e.tool.name]??A;return(0,t.jsx)(a,{...e})},"toolIcon",0,N],222055)},144322,463625,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("7f1756723e53cd4bfc5aa2715712bb90f079d8bd4d",t.callServer,void 0,t.findSourceMapURL,"createSeedBotsAction");e.s(["createSeedBotsAction",0,a],144322);var n=e.i(41533);e.i(864723);let r=[{name:"Jarvis",description:"Any job — turns it into a plan, hands each part to whoever it belongs to, does the rest, reports one result",icon:{shape:"squircle"},recommended:!0,example:"Set up a Google account just for my bots to use",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",icon:{shape:"poly"},recommended:!0,example:"Find thirty wedding pose photos and put them on one page for me",systemPrompt:`You are Navigator. Every browser job is yours: load the \`${n.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",icon:{shape:"blob"},recommended:!0,example:"Write up what we decided today as a one-page brief",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."}];e.s(["BOT_SEEDS",0,r],463625)},992112,e=>{"use strict";var t=e.i(265402);let a=[...new Set(Object.values(t.SPEACH_MODEL_PROVIDERS).map(e=>e.apiKeyName))],n={image:"IMAGE_MODEL",video:"VIDEO_MODEL",speech:"SPEECH_MODEL",transcription:"TRANSCRIPTION_MODEL"},r={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"}},s={key:"DEFAULT_MODEL",label:"Default model",hint:"What a bot thinks with until it picks its own",text:!0,choices:t.TEXT_MODEL_PROVIDER_LIST.flatMap(e=>e.suggestModels.map(t=>({value:`${e.id}/${t.id}`,label:`${e.label} \xb7 ${t.label}`,needs:e.apiKeyName})))},i=e=>a.includes(e.apiKeyName),o=e=>({key:e.apiKeyName,label:e.label,provider:e.id}),l=[{id:"voice",title:"voice",hint:"calls run on one of these",section:"keys",require:"any",note:"one is required",entries:t.TEXT_MODEL_PROVIDER_LIST.filter(i).map(o)},{id:"text",title:"models",hint:"what bots think with — add any, or none",section:"keys",require:"none",entries:t.TEXT_MODEL_PROVIDER_LIST.filter(e=>!i(e)).map(o)},{id:"bots",title:"Bots",hint:"what a bot runs on when it has not picked its own",section:"models",require:"none",entries:[s]},{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(n).map(e=>({key:n[e],...r[e],kind:e,choices:t.MEDIA_MODEL_PROVIDER_LIST.flatMap(t=>t.models[e].map(e=>({value:`${t.id}/${e.id}`,label:`${t.label} \xb7 ${e.label}`,needs:t.apiKeyName})))}))}];Object.fromEntries(l.flatMap(e=>e.entries).map(e=>[e.key,e])),l.flatMap(e=>e.entries.map(e=>e.key)),Object.fromEntries(l.flatMap(e=>e.entries).filter(e=>e.choices?.length).map(e=>[e.key,e.choices])),e.s(["CONFIG_GROUPS",0,l,"groupSatisfied",0,function(e,t){return"none"===e.require||(e.requireKeys??e.entries.map(e=>e.key)).some(t)},"isConfigSet",0,function(e,t){return e?.some(e=>e.key===t&&e.set)??!1}])},852116,e=>{"use strict";var t=e.i(456420);let a={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};a.node;let n=(0,t.default)(a);e.s(["MemoryMark",0,n],852116)},256604,933916,671228,762074,e=>{"use strict";var t=e.i(843476),a=e.i(635963),n=e.i(271645),r=e.i(504565),s=e.i(265402),i=e.i(451888);let o=["mark","ascii"],l=["ascii","emoji","emojiOnly"];e.s(["ASCII_CHARSETS",0,l,"FACE_KINDS",0,o],933916);var d=e.i(981203);let u=r.default.object({systemPrompt:r.default.string().max(d.COMMON_VALIDATE.prompt.max).nullish(),model:s.speachModelRefSchema.nullish(),locale:r.default.string().max(35).nullish()}),c=i.botIconSchema.extend({kind:r.default.enum(o).default("ascii"),charset:r.default.enum(l).default("ascii"),fontSize:r.default.number().min(4).max(16).default(8),density:r.default.number().min(.6).max(2).default(1.4)}),h=c.parse({}),m={min:3,max:32},p=r.default.object({enabled:r.default.boolean(),phrase:r.default.string().trim().min(m.min).max(m.max)}),f=r.default.object({enabled:r.default.boolean(),combo:r.default.string().trim().min(1).max(64)}),g=["off","waiting","any"],x=r.default.enum(g),y=["center","sides"],b=r.default.enum(y);r.default.object({id:r.default.string().min(1),role:r.default.enum(["user","assistant","tool"]),tool:r.default.string().nullish(),text:r.default.string(),seq:r.default.number().int().min(0)}),e.s(["CALL_BACK_DEFAULT",0,"off","CALL_BACK_LABEL",0,{off:"Never",waiting:"When a job needs me",any:"Whenever a job ends"},"CALL_BACK_MODES",0,g,"CALL_HISTORY_PAGE",0,10,"CAPTION_VIEWS",0,y,"CallBackSchema",0,x,"CaptionViewSchema",0,b,"FACE_DEFAULT",0,h,"HOTKEY_DEFAULT",0,{enabled:!0,combo:"alt+shift+KeyT"},"HotkeySchema",0,f,"ThursdayFaceSchema",0,c,"ThursdaySettingsSchema",0,u,"WAKE_DEFAULT",0,{enabled:!0,phrase:"hey thursday"},"WAKE_PHRASE",0,m,"WakeSchema",0,p],671228);let k="thursday.icon";function v(){try{let e=window.localStorage.getItem(k);return c.parse(e?JSON.parse(e):{})}catch{return h}}let w=v(),M=new Set;function j(){for(let e of M)e()}function S(){return(0,n.useSyncExternalStore)(e=>{M.add(e);let t=e=>{e.key===k&&(w=v(),j())};return window.addEventListener("storage",t),()=>{M.delete(e),window.removeEventListener("storage",t)}},()=>w,()=>h)}e.s(["setThursdayFace",0,function(e){w=e;try{window.localStorage.setItem(k,JSON.stringify(e))}catch{}j()},"useThursdayFace",0,S],762074),e.s(["ThursdayMark",0,function({size:e=16,className:n}){let r=S();return(0,t.jsx)(a.BotMark,{size:e,seed:"thursday",color:r.color,shape:r.shape,outline:r.outline,notify:!1,className:n})}],256604)},395530,e=>{"use strict";var t=e.i(271645),a=e.i(828918),n=e.i(838452),r=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:s,highlightedIndex:i,onHighlightedIndexChange:o}=(0,n.useCompositeRootContext)(),{ref:l,index:d}=(0,r.useCompositeListItem)(e),u=i===d,c=t.useRef(null),h=(0,a.useMergedRefs)(l,c);return{compositeProps:{tabIndex:u?0:-1,onFocus(){o(d)},onMouseMove(){let e=c.current;if(!s||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;u||t||e.focus()}},compositeRef:h,index:d}}])},53687,e=>{"use strict";var t=e.i(271645),a=e.i(388940),n=e.i(667865),r=e.i(146376),s=e.i(545356),i=e.i(843476);function o(){return new Map}function l(){return new Set}function d(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["CompositeList",0,function(e){let{children:u,elementsRef:c,labelsRef:h,onMapChange:m}=e,p=(0,n.useStableCallback)(m),[,f]=t.useState(!1),g=(0,a.useRefWithInit)(l).current,x=(0,a.useRefWithInit)(o).current,y=t.useRef(0),b=t.useRef(!0),k=t.useRef(null),v=t.useRef(null),w=(0,n.useStableCallback)(()=>{b.current||(b.current=!0,f(e=>!e))}),M=(0,n.useStableCallback)((e,t)=>{x.set(e,t),w()}),j=(0,n.useStableCallback)(e=>{x.delete(e),w()}),S=(0,n.useStableCallback)(e=>{let t=new Map;return c.current.length=0,h&&(h.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),c.current[e.index]=e.element,h&&(h.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),y.current=c.current.length,t}),z=(0,n.useStableCallback)(()=>{var e;let t,a,n,r,[s,i]=(e=x,t=new Set,a=[],n=[],e.forEach((e,r)=>{if(!r.isConnected)return;let s=e.index,i={index:s??-1,element:r,registration:e};null===s?n.push(i):s>=0&&(t.add(s),a.push(i))}),r=0,n.sort((e,t)=>d(e.element,t.element)),n.forEach(e=>{for(;t.has(r);)r+=1;e.index=r,a.push(e),r+=1}),t.size>0&&a.sort((e,t)=>e.index-t.index),[a,n.map(e=>e.element)]),o=S(s),l=k.current,u=!l||l.length!==s.length||s.some((e,t)=>{let a=l[t];return e.index!==a.index||e.element!==a.element||e.registration.index!==a.registration.index||e.registration.metadata!==a.registration.metadata});!function(e){if(v.current?.disconnect(),v.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(a=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(a))return;let n=null;for(let a of e)if(a.isConnected){if(n&&d(n,a)>0){t.disconnect(),w();return}n=a}});v.current=t;let a=new Set;for(let t=1;t<e.length;t+=1){let n=function(e,t){let a=e.parentElement;for(;a&&!a.contains(t);)a=a.parentElement;return a}(e[t-1],e[t]);n&&a.add(n)}a.forEach(e=>t.observe(e,{childList:!0}))}(i),k.current=s,b.current=!1,u&&(g.forEach(e=>e(o)),p(o))});(0,r.useIsoLayoutEffect)(()=>(!b.current&&k.current&&S(k.current),()=>{c.current=[],h&&(h.current=[])}),[c,h,S]),(0,r.useIsoLayoutEffect)(()=>{b.current&&z()}),(0,r.useIsoLayoutEffect)(()=>()=>{v.current?.disconnect(),b.current=!0},[]);let L=(0,n.useStableCallback)(e=>(g.add(e),()=>{g.delete(e)})),N=t.useMemo(()=>({register:M,unregister:j,subscribeMapChange:L,nextIndexRef:y}),[M,j,L,y]);return(0,i.jsx)(s.CompositeListContext.Provider,{value:N,children:u})}])},545356,e=>{"use strict";e.i(247167);var t=e.i(271645);let a=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,a,"useCompositeListContext",0,function(){return t.useContext(a)}])},673553,e=>{"use strict";var t=e.i(271645),a=e.i(146376),n=e.i(545356);e.s(["useCompositeListItem",0,function(e={}){let{guess:r,label:s,metadata:i,textRef:o,index:l}=e,{register:d,unregister:u,subscribeMapChange:c,nextIndexRef:h}=(0,n.useCompositeListContext)(),m=t.useRef(-1),[p,f]=t.useState(null==l&&r?()=>{if(-1===m.current){let e=h.current;h.current+=1,m.current=e}return m.current}:-1),g=l??p,x=t.useRef(null),y=t.useCallback(e=>{let t=x.current;t&&u(t),x.current=e,e&&d(e,{metadata:i??null,index:l??null,label:s,textRef:o})},[l,d,u,i,s,o]);return(0,a.useIsoLayoutEffect)(()=>{if(null==l)return c(e=>{let t=x.current?e.get(x.current)?.index:null;null!=t&&f(t)})},[l,c]),{ref:y,index:g}}])},652225,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(552245);let n=t.forwardRef(function(e,t){let{className:n,render:r,orientation:s="horizontal",style:i,...o}=e;return(0,a.useRenderElement)("div",e,{state:{orientation:s},ref:t,props:[{role:"separator","aria-orientation":s},o]})});e.s(["Separator",0,n])},73364,e=>{"use strict";var t=e.i(343084),a=e.i(229315);e.s(["getCssDimensions",0,function(e){let n=(0,a.getComputedStyle)(e),r=parseFloat(n.width)||0,s=parseFloat(n.height)||0,i=(0,a.isHTMLElement)(e),o=i?e.offsetWidth:r,l=i?e.offsetHeight:s;return((0,t.round)(r)!==o||(0,t.round)(s)!==l)&&(r=o,s=l),{width:r,height:s}}])},493801,751898,536015,e=>{"use strict";var t=e.i(24708),a=e.i(55545),n=e.i(455024),r=e.i(99151),s=e.i(845110),i=e.i(281092),o=e.i(234662);e.s(["formatDistanceToNowStrict",0,function(e,l){return function(e,t,l){var d;let u,c,h=(0,n.getDefaultOptions)(),m=l?.locale??h.locale??a.defaultLocale,p=(c=(0,i.toDate)(e)-(0,i.toDate)(t))<0?-1:c>0?1:c;if(isNaN(p))throw RangeError("Invalid time value");let f=Object.assign({},l,{addSuffix:l?.addSuffix,comparison:p}),[g,x]=(0,s.normalizeDates)(l?.in,...p>0?[t,e]:[e,t]),y=(d=l?.roundingMethod??"round",e=>{let t=(d?Math[d]:Math.trunc)(e);return 0===t?0:t}),b=x.getTime()-g.getTime(),k=b/o.millisecondsInMinute,v=(b-((0,r.getTimezoneOffsetInMilliseconds)(x)-(0,r.getTimezoneOffsetInMilliseconds)(g)))/o.millisecondsInMinute,w=l?.unit;if("second"===(u=w||(k<1?"second":k<60?"minute":k<o.minutesInDay?"hour":v<o.minutesInMonth?"day":v<o.minutesInYear?"month":"year"))){let e=y(b/1e3);return m.formatDistance("xSeconds",e,f)}if("minute"===u){let e=y(k);return m.formatDistance("xMinutes",e,f)}if("hour"===u){let e=y(k/60);return m.formatDistance("xHours",e,f)}if("day"===u){let e=y(v/o.minutesInDay);return m.formatDistance("xDays",e,f)}if("month"===u){let e=y(v/o.minutesInMonth);return 12===e&&"month"!==w?m.formatDistance("xYears",1,f):m.formatDistance("xMonths",e,f)}else{let e=y(v/o.minutesInYear);return m.formatDistance("xYears",e,f)}}(e,(0,t.constructNow)(e),l)}],493801);var l=e.i(456420);let d={name:"pin",size:24,node:[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]};d.node;let u=(0,l.default)(d);e.s(["Pin",0,u],751898);var c=e.i(681307),h=e.i(245629);let m=c.z.enum(["user","call","bot","tidy"]),p=c.z.object({id:c.z.number(),text:c.z.string(),alwaysLoad:c.z.boolean(),source:m.nullish(),createdAt:h.DateLikeSchema});c.z.object({id:c.z.number(),path:c.z.string(),description:c.z.string(),aliases:c.z.string().array().nullish(),ownedByUser:c.z.boolean(),hits:c.z.number(),lastReadAt:h.DateLikeSchema.nullable(),createdAt:h.DateLikeSchema,updatedAt:h.DateLikeSchema,factCount:c.z.number(),facts:p.array()});let f=[{path:"profile",of:"The user themselves — who they are, what they do, where, how they live"},{path:"preferences",of:"How they like things done, and said"},{path:"people/",of:"Who someone is to them, and what matters about them"},{path:"projects/",of:"Something they are building or running"},{path:"plans/",of:"A trip, an appointment, a purchase, a deadline"},{path:"topics/",of:"Anything else worth its own note"},{path:"inbox",of:"Nowhere obvious to go"}],g=f.filter(e=>!e.path.endsWith("/")).map(e=>e.path),x=f.filter(e=>e.path.endsWith("/")).map(e=>e.path.slice(0,-1));RegExp(`^(?:${g.join("|")}|(?:${x.join("|")})/.+)$`);let y=["profile","preferences"],b=c.z.object({op:c.z.enum(["add","replace","forget","carry","uncarry"]),path:c.z.string(),text:c.z.string()});c.z.object({id:c.z.string(),status:c.z.enum(["running","done","stopped","failed"]),provider:c.z.string(),model:c.z.string(),callIds:c.z.string().array(),messages:c.z.number(),changes:b.array(),error:c.z.string().nullable(),inputTokens:c.z.number(),outputTokens:c.z.number(),startedAt:h.DateLikeSchema,endedAt:h.DateLikeSchema.nullable()}),e.s(["isFading",0,function(e){let t,a,n;return t=e.path,!y.includes(t)&&.15>(a=(0,h.toDate)(e.lastReadAt??e.createdAt),n=Math.max(0,(Date.now()-a.getTime())/864e5),(e.hits+1)/(1+n))},"memorySourceLabel",0,e=>"user"===e?"you":"call"===e?"on a call":"bot"===e?"a bot":"tidy"===e?"read back":"","noteTitle",0,function(e){let t=e.indexOf("/");return -1===t?e:e.slice(t+1)},"sectionOf",0,function(e){if("profile"===e||"preferences"===e)return"you";let t=e.slice(0,e.indexOf("/"));return x.includes(t)?t:"inbox"},"tidyTally",0,function(e){let t=t=>e.filter(e=>e.op===t).length,a=[[t("add"),"added"],[t("replace"),"revised"],[t("forget"),"dropped"],[t("carry"),"carried"],[t("uncarry"),"uncarried"]].filter(([e])=>e>0).map(([e,t])=>`${e} ${t}`);return a.length?a.join(", "):"nothing to change"}],536015)},328256,e=>{"use strict";var t=e.i(456420);let a={name:"book-marked",size:24,node:[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]};a.node;let n=(0,t.default)(a);e.s(["BookMarked",0,n],328256)},716327,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronDown",0,n],716327)},24071,829600,226091,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let n=(0,t.default)(a);e.s(["ChevronLeft",0,n],24071);let r={name:"file",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]};r.node;let s=(0,t.default)(r);e.s(["File",0,s],829600);let i={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};i.node;let o=(0,t.default)(i);e.s(["FileText",0,o],226091)},986253,e=>{"use strict";var t=e.i(456420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let n=(0,t.default)(a);e.s(["default",0,n])},867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},905015,e=>{"use strict";var t=e.i(456420);let a={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};a.node;let n=(0,t.default)(a);e.s(["FileJson",0,n],905015)},60744,e=>{"use strict";var t=e.i(456420);let a={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};a.node;let n=(0,t.default)(a);e.s(["FilePen",0,n],60744)},831458,e=>{"use strict";var t=e.i(456420);let a={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};a.node;let n=(0,t.default)(a);e.s(["Flag",0,n],831458)},569644,e=>{"use strict";var t=e.i(456420);let a={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};a.node;let n=(0,t.default)(a);e.s(["FolderOpen",0,n],569644)},91511,e=>{"use strict";var t=e.i(456420);let a={name:"globe",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]};a.node;let n=(0,t.default)(a);e.s(["Globe",0,n],91511)},815170,e=>{"use strict";var t=e.i(456420);let a={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};a.node;let n=(0,t.default)(a);e.s(["Image",0,n],815170)},218964,468590,730274,604139,991322,e=>{"use strict";var t=e.i(456420);let a={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};a.node;let n=(0,t.default)(a);e.s(["ListChecks",0,n],218964);let r={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};r.node;let s=(0,t.default)(r);e.s(["MessageSquare",0,s],468590);let i={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};i.node;let o=(0,t.default)(i);e.s(["Send",0,o],730274);let l={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};l.node;let d=(0,t.default)(l);e.s(["Terminal",0,d],604139);let u={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};u.node;let c=(0,t.default)(u);e.s(["McpMark",0,c],991322)},632781,e=>{"use strict";var t=e.i(758379);e.s(["Loader2",()=>t.default])},779266,e=>{"use strict";var t=e.i(456420);let a={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"]};a.node;let n=(0,t.default)(a);e.s(["History",0,n],779266)},466787,e=>{"use strict";var t=e.i(755566);e.s(["TriangleAlert",()=>t.default])},263676,e=>{"use strict";var t=e.i(814387);e.s(["X",()=>t.default])}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,556133,e=>{"use strict";var t=e.i(843476),a=e.i(401851),n=e.i(493801),r=e.i(689664),s=e.i(456420);let i={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};i.node;let l=(0,s.default)(i);var o=e.i(751898),c=e.i(77071),d=e.i(759659),u=e.i(263676),f=e.i(271645),m=e.i(798120),x=e.i(167881),h=e.i(986530),p=e.i(23750),g=e.i(917162),v=e.i(671428),y=e.i(127341),j=e.i(184762),b=e.i(41533),k=e.i(95187);let S=(0,k.createServerReference)("7f2b4a83def44c25e93d0d390130d70aaaf9c406fd",k.callServer,void 0,k.findSourceMapURL,"addFactsAction"),N=(0,k.createServerReference)("7fe080e0e12cab0dc160034ffd533baf59a3952991",k.callServer,void 0,k.findSourceMapURL,"createNoteAction"),w=(0,k.createServerReference)("7f1678f64fbc6194aaa99f379b3feb4c16e5deff76",k.callServer,void 0,k.findSourceMapURL,"deleteNoteAction"),C=(0,k.createServerReference)("7f5538ce7954520c5afc4d95ff06fd3f75b32021d0",k.callServer,void 0,k.findSourceMapURL,"forgetFactAction"),F=(0,k.createServerReference)("7f7cea0dd78b7202d9addb9d7d1af40102b49e8a52",k.callServer,void 0,k.findSourceMapURL,"reviseFactAction"),R=(0,k.createServerReference)("7fa417a8d3eef13073369dfdfc84be3e8a34ef631a",k.callServer,void 0,k.findSourceMapURL,"setFactAlwaysLoadAction"),P=(0,k.createServerReference)("7fbebeb1133ca9d4bde7b5febd4c0745cdf145c952",k.callServer,void 0,k.findSourceMapURL,"updateNoteAction");var A=e.i(536015),M=e.i(895836),L=e.i(698570),T=e.i(609856),E=e.i(661504),z=e.i(283653),D=e.i(647163);let _=[{key:"you",label:"You"},{key:"people",label:"People"},{key:"projects",label:"Projects"},{key:"plans",label:"Plans"},{key:"topics",label:"Topics"},{key:"inbox",label:"Inbox"}];function K({note:e}){let a=e.facts.filter(e=>e.alwaysLoad).length;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:[e.path," · ",e.hits," ",1===e.hits?"read":"reads"," ·"," ",e.lastReadAt?`last read ${(0,n.formatDistanceToNowStrict)(e.lastReadAt,{addSuffix:!0})}`:"never read back"]}),a>0&&(0,t.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:[a," carried into every call"]})]})}function I({note:e,active:a,onPick:n}){return(0,t.jsxs)("button",{type:"button",onClick:n,className:(0,D.cn)("mx-2 flex items-center gap-2 rounded-md px-2 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",a?"bg-secondary text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground",(0,A.isFading)(e)&&!a&&"opacity-55"),children:[(0,t.jsx)("span",{className:(0,D.cn)("min-w-0 flex-1 truncate text-[13px]",a&&"font-medium"),children:(0,A.noteTitle)(e.path)}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground/70",children:e.factCount})]})}function B({note:e}){let[n,s]=(0,f.useState)(!1),[i,u]=(0,f.useState)(""),h={onOk:()=>(0,z.revalidate)(m.queryKey.memory)},[p]=(0,T.useServerAction)(P,h),[v]=(0,T.useServerAction)(S,h),[y]=(0,T.useServerAction)(F,h),[b]=(0,T.useServerAction)(C,h),[k]=(0,T.useServerAction)(R,h),[N,M]=(0,T.useServerAction)(w,h),L=async()=>{let t=i.split("\n").map(e=>e.trim()).filter(Boolean);0!==t.length&&(await v(e.id,t),u(""))},E=async()=>{await g.notify.confirm({title:`Forget ${e.path}?`,description:"Every fact in this note is deleted for good.",okText:"Delete",destructive:!0})&&N(e.id)};return(0,t.jsxs)("div",{className:(0,D.cn)("flex min-h-full flex-col",(0,A.isFading)(e)&&"opacity-55"),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-border/60 px-6 py-2.5",children:[(0,t.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground",children:e.path}),(0,t.jsxs)("span",{className:"flex shrink-0 gap-1",children:[(0,t.jsx)(x.Button,{size:"icon-sm",variant:n?"secondary":"ghost","aria-label":n?"Done editing":"Edit this note",onClick:()=>s(!n),children:n?(0,t.jsx)(r.Check,{}):(0,t.jsx)(l,{})}),(0,t.jsx)(x.Button,{size:"icon-sm",variant:"ghost","aria-label":"Forget this note",loading:M,onClick:E,children:(0,t.jsx)(d.Trash2,{})})]})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-5 px-6 py-5",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"text-xl font-semibold",children:(0,A.noteTitle)(e.path)}),n?(0,t.jsx)(O,{text:e.description,onCommit:async t=>{await p(e.id,{description:t})}}):(0,t.jsx)("p",{className:"text-[13px] leading-relaxed text-muted-foreground",children:e.description})]}),n?(0,t.jsxs)("div",{className:"space-y-2",children:[e.facts.map(a=>(0,t.jsx)(U,{text:a.text,alwaysLoad:a.alwaysLoad,onRevise:async t=>{await y(e.id,a.id,t)},onCarry:async t=>{await k(e.id,a.id,t)},onForget:async()=>{await b(e.id,a.id)}},a.id)),(0,t.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,t.jsx)(j.Textarea,{value:i,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),L())},placeholder:"Add facts — one per line",className:"min-h-9 resize-none py-1.5 text-sm"}),(0,t.jsx)(x.Button,{size:"icon",variant:"outline",disabled:!i.trim(),onClick:L,children:(0,t.jsx)(c.Plus,{})})]})]}):0===e.facts.length?(0,t.jsx)("p",{className:"text-xs text-muted-foreground/70",children:"Nothing saved here yet — the agent adds facts during calls"}):(0,t.jsx)("ul",{className:"divide-y divide-border/60 border-y border-border/60",children:e.facts.map(e=>(0,t.jsxs)("li",{className:"flex gap-3 py-3",children:[(0,t.jsx)("span",{className:"flex w-3.5 shrink-0 justify-center pt-1",children:e.alwaysLoad?(0,t.jsx)(o.Pin,{className:"size-3 text-foreground"}):(0,t.jsx)("span",{className:"text-muted-foreground/50",children:"—"})}),(0,t.jsx)("span",{className:"flex-1 text-sm leading-relaxed text-foreground/90",children:e.text}),(0,t.jsxs)("span",{className:"shrink-0 pt-0.5 text-right text-[11px] text-muted-foreground/50",children:[(0,t.jsx)("span",{className:"block font-mono",children:(0,a.format)(e.createdAt,"yyyy.MM.dd")}),(0,A.memorySourceLabel)(e.source)&&(0,t.jsx)("span",{className:"block",children:(0,A.memorySourceLabel)(e.source)})]})]},e.id))})]})]})}function O({text:e,onCommit:a}){let n=(0,L.useDraft)(e,a);return(0,t.jsx)(p.Input,{value:n.value,onChange:e=>n.set(e.target.value),onBlur:n.commit,onKeyDown:n.onKeyDown,placeholder:"One-line summary",className:"text-sm text-muted-foreground"})}function U({text:e,alwaysLoad:a,onRevise:n,onCarry:r,onForget:s}){let i=(0,L.useDraft)(e,n);return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(p.Input,{value:i.value,onChange:e=>i.set(e.target.value),onBlur:i.commit,onKeyDown:i.onKeyDown,className:"text-sm"}),(0,t.jsx)(x.Button,{size:"icon",variant:a?"secondary":"ghost","aria-label":a?"Stop carrying into calls":"Carry into every call",title:"Carried into every call, without opening this note",onClick:()=>r(!a),children:(0,t.jsx)(o.Pin,{className:(0,D.cn)(!a&&"text-muted-foreground/60")})}),(0,t.jsx)(x.Button,{size:"icon",variant:"ghost",onClick:s,children:(0,t.jsx)(u.X,{})})]})}let $=[{key:"people",label:"Person",placeholder:"jihoon",fact:"Moved to the platform team in March"},{key:"projects",label:"Project",placeholder:"thursday",fact:"Ships behind a feature flag until April"},{key:"plans",label:"Plan",placeholder:"japan trip",fact:"Aug 28–31 with Yuri — wedding rings in Ginza"},{key:"topics",label:"Topic",placeholder:"scheduling",fact:"No meetings before 10am"}];function V(){return g.notify.component({className:"sm:max-w-lg",renderer:({close:e})=>(0,t.jsx)(q,{onDone:e})})}function q({onDone:e}){let[a,n]=(0,f.useState)("people"),[r,s]=(0,f.useState)(""),[i,l]=(0,f.useState)(""),[o,d]=(0,f.useState)(""),[u,g,,v]=(0,T.useServerAction)(N,{errorMessage:!1,onOk:()=>{(0,z.revalidate)(m.queryKey.memory),e()}}),b=$.find(e=>e.key===a),k=r.trim()&&i.trim()&&!g,S=()=>{k&&u(`${a}/${r.trim()}`,i.trim(),o.split("\n").map(e=>e.trim()).filter(Boolean))};return(0,t.jsxs)(M.SettingDialogContent,{title:"New note",description:"Where the agent files what it learns about this subject.",footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Button,{variant:"ghost",onClick:e,children:"Cancel"}),(0,t.jsxs)(x.Button,{disabled:!k,loading:g,onClick:S,children:[!g&&(0,t.jsx)(c.Plus,{}),"Create"]})]}),children:[(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)(h.Field,{children:[(0,t.jsx)(h.FieldLabel,{children:"Kind"}),(0,t.jsx)(y.Tabs,{value:a,onValueChange:e=>n(e),children:(0,t.jsx)(y.TabsList,{className:"w-full",children:$.map(e=>(0,t.jsx)(y.TabsTrigger,{value:e.key,children:e.label},e.key))})})]}),(0,t.jsxs)(h.Field,{children:[(0,t.jsx)(h.FieldLabel,{htmlFor:"note-name",children:"Name"}),(0,t.jsxs)(h.FieldContent,{children:[(0,t.jsx)(p.Input,{id:"note-name",value:r,onChange:e=>s(e.target.value),placeholder:b?.placeholder,spellCheck:!1,required:!0}),(0,t.jsxs)("p",{className:"font-mono text-[11px] text-muted-foreground",children:[a,"/",r.trim()||"…"]})]})]}),(0,t.jsxs)(h.Field,{children:[(0,t.jsx)(h.FieldLabel,{htmlFor:"note-summary",children:"Summary"}),(0,t.jsx)(h.FieldContent,{children:(0,t.jsx)(p.Input,{id:"note-summary",value:i,onChange:e=>l(e.target.value),onKeyDown:e=>"Enter"===e.key&&S(),placeholder:"One line the agent sees in its note list",required:!0})})]}),(0,t.jsxs)(h.Field,{children:[(0,t.jsx)(h.FieldLabel,{htmlFor:"note-facts",children:"Facts"}),(0,t.jsx)(j.Textarea,{id:"note-facts",value:o,onChange:e=>d(e.target.value),placeholder:`One per line
|
|
2
|
-
${b?.fact??""}`,className:"min-h-24 resize-none text-sm"})]})]}),v&&(0,t.jsx)("p",{className:"font-mono text-xs text-destructive",children:v})]})}e.s(["MemorySetting",0,function(){let{items:e,isLoading:a,isLoadingMore:n,error:r,hasMore:s,sentinelRef:i}=(0,E.useServerPages)({key:e=>m.queryKey.memoryPage(e*b.PAGE_SIZE)}),[l,o]=(0,f.useState)(null),d=e.find(e=>e.id===l)??e[0]??null;return a?(0,t.jsx)(M.SettingPanesSkeleton,{}):r?(0,t.jsx)(M.SettingError,{message:r.message}):(0,t.jsx)(M.SettingPanes,{footer:d&&(0,t.jsx)(K,{note:d}),left:(0,t.jsxs)("div",{className:"flex flex-col py-2",children:[(0,t.jsxs)("button",{type:"button",onClick:V,className:"mx-2 mb-1 flex items-center gap-2 rounded-md px-2 py-1.5 text-left text-[13px] text-muted-foreground outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,t.jsx)(c.Plus,{className:"size-3.5 shrink-0"}),"New note"]}),_.map(({key:a,label:n})=>{let r=e.filter(e=>(0,A.sectionOf)(e.path)===a);return 0===r.length?null:(0,t.jsxs)(f.Fragment,{children:[(0,t.jsxs)("span",{className:"px-3 pt-3 pb-1 font-mono text-[10px] text-muted-foreground/60",children:[n,"inbox"===a&&(0,t.jsx)("span",{className:"pl-1.5 text-muted-foreground/50",children:"waiting to be filed"})]}),r.map(e=>(0,t.jsx)(I,{note:e,active:e.id===d?.id,onPick:()=>o(e.id)},e.id))]},a)}),(0,t.jsx)(M.SettingMore,{hasMore:s,loading:n,sentinelRef:i,count:3,ghost:(0,t.jsxs)("div",{className:"mx-2 flex items-center gap-2 px-2 py-2",children:[(0,t.jsx)(v.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)(v.Skeleton,{className:"h-2.5 w-2.5"})]})})]}),right:d?(0,t.jsx)(B,{note:d},d.id):(0,t.jsxs)("div",{className:"space-y-4 p-8",children:[(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"During calls Thursday saves what it picks up — that a teammate moved teams, that you take meetings in the morning — and reads it back before answering. File the first note yourself and it starts the next call already knowing something."}),(0,t.jsxs)(x.Button,{variant:"outline",onClick:V,children:[(0,t.jsx)(c.Plus,{}),"Add note"]})]})})},"openMemoryCreate",0,V],556133)},698570,e=>{"use strict";var t=e.i(271645);e.s(["useDraft",0,function(e,a,{min:n=1}={}){let[r,s]=(0,t.useState)(e),[i,l]=(0,t.useState)(e);return e!==i&&(l(e),s(e)),{value:r,set:s,commit:()=>{let t=r.trim();if(t.length<n)return s(e);s(t),t!==e&&a(t)},onKeyDown:e=>{"Enter"!==e.key||e.nativeEvent.isComposing||e.currentTarget.blur()}}}])},661504,e=>{"use strict";var t=e.i(271645),a=e.i(699018),n=e.i(677309),r=e.i(271235),s=e.i(802239),i=e.i(646192);let l=Promise.resolve(),o=(0,r.withMiddleware)(a.u,e=>(a,r,o)=>{let c,d=(0,t.useRef)(!1),{cache:u,initialSize:f=1,revalidateAll:m=!1,persistSize:x=!1,revalidateFirstPage:h=!0,revalidateOnMount:p=!1,parallel:g=!1}=o,[,,,v]=n.a.get(n.o);try{(c=(0,n.s)(a?a(0,null):null)[0])&&(c=i.INFINITE_PREFIX+c)}catch(e){}let[y,j,b]=(0,n.c)(u,c),k=(0,t.useCallback)(()=>(0,n.i)(y()._l)?f:y()._l,[u,c,f]);(0,s.useSyncExternalStore)((0,t.useCallback)(e=>c?b(c,()=>{e()}):()=>{},[u,c]),k,k);let S=(0,t.useCallback)(()=>{let e=y()._l;return(0,n.i)(e)?f:e},[c,f]),N=(0,t.useRef)(S());(0,n.u)(()=>{if(!d.current){d.current=!0;return}c&&j({_l:x?N.current:S()})},[c,u]);let w=p&&!d.current,C=e(c,async e=>{let t=y()._i,s=y()._r,i=n.a.get(u),l=i[8],c=()=>i[8]!==l;j({_r:n.U});let d=[],f=S(),[x]=(0,n.c)(u,e),p=x().data,b=[],k=null;for(let e=0;e<f;++e){let[i,l]=(0,n.s)(a(e,g?null:k));if(!i)break;let[f,x]=(0,n.c)(u,i),y=f().data,j=m||t||(0,n.i)(y)||h&&!e&&!(0,n.i)(p)||w||p&&!(0,n.i)(p[e])&&!o.compare(p[e],y);if(r&&("function"==typeof s?s(y,l):j)){let t=async()=>{if(i in v){let e=v[i];delete v[i],y=await e}else y=await r(l);c()||x({data:y,_k:l}),d[e]=y};g?b.push(t):await t()}else d[e]=y;g||(k=y)}return g&&await Promise.all(b.map(e=>e())),c()||j({_i:n.U}),d},o),F=(0,t.useCallback)(function(e,t){let a="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==a.revalidate;return c?(r&&((0,n.i)(e)?j({_i:!0,_r:a.revalidate}):j({_i:!1,_r:a.revalidate})),arguments.length?C.mutate(e,{...a,revalidate:r}):C.mutate()):l},[c,u]),R=(0,t.useCallback)(e=>{let t;if(!c)return l;let[,r]=(0,n.c)(u,c);if((0,n.e)(e)?t=e(S()):"number"==typeof e&&(t=e),"number"!=typeof t)return l;r({_l:t}),N.current=t;let s=[],[i]=(0,n.c)(u,c),o=null;for(let e=0;e<t;++e){let[t]=(0,n.s)(a(e,o)),[r]=(0,n.c)(u,t),l=t?r().data:n.U;if((0,n.i)(l))return F(i().data);s.push(l),o=l}return F(s)},[c,u,F,S]);return{size:S(),setSize:R,mutate:F,get data(){return C.data},get error(){return C.error},get isValidating(){return C.isValidating},get isLoading(){return C.isLoading}}});var c=e.i(41533),d=e.i(283653);e.s(["useServerPages",0,function(e){let a=e.size??c.PAGE_SIZE,{key:n}=e,{data:r,error:s,isLoading:i,isValidating:l,setSize:u,mutate:f}=o((e,t)=>(0,d.resolveKey)(n(e,t)),d.fetchRoute,{dedupingInterval:500,revalidateOnMount:!0,revalidateOnFocus:!0,revalidateOnReconnect:!0,focusThrottleInterval:1e3,revalidateFirstPage:!1,...e.swr}),m=r??[],x=m.flat(),h=m.at(-1),p=void 0!==h&&h.length>=a,g=(0,t.useRef)(0),v=l&&m.length>0&&g.current>m.length,y=(0,t.useRef)({isValidating:l,setSize:u,pages:m.length});y.current={isValidating:l,setSize:u,pages:m.length};let j=(0,d.resolveKey)(n(0,null)),b="string"==typeof j?j:j?.url;(0,t.useEffect)(()=>{if(b)return(0,d.registerPagedReader)({url:b,refresh:()=>f()})},[b,f]);let k=function(e,a={}){let{enabled:n=!0,margin:r="600px",revision:s}=a,i=(0,t.useRef)(e);i.current=e;let l=(0,t.useRef)(null),o=(0,t.useRef)(null),c=(0,t.useCallback)(e=>{l.current=e},[]);return(0,t.useEffect)(()=>{o.current?.disconnect();let e=l.current;if(e&&n)return o.current=new IntersectionObserver(([e])=>{e.isIntersecting&&i.current()},{root:function(e){let t=e.parentElement;for(;t;){let{overflowY:e}=getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null}(e),rootMargin:r}),o.current.observe(e),()=>o.current?.disconnect()},[n,r,s]),c}(()=>{let e=y.current;e.isValidating||(g.current=e.pages+1,e.setSize(e.pages+1))},{enabled:p,revision:`${m.length}:${l}`});return{items:x,isLoading:i,isLoadingMore:v,error:s,hasMore:p,sentinelRef:k,refresh:()=>f()}}],661504)},759659,e=>{"use strict";var t=e.i(456420);let a={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};a.node;let n=(0,t.default)(a);e.s(["Trash2",0,n],759659)}]);
|