thursday-agent 0.2.0 → 0.4.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 +12 -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 +25 -0
- 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 +134 -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/{_0pppbb5._.js → _1c78vw5._.js} +166 -37
- 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]__092knlj._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__09q9med._.js +1 -1
- 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]__0s9dq5u._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__0m1b5ky._.js → [root-of-the-server]__0s9l2sv._.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]__0xsog8n._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xtssj3._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__10-dz5o._.js +61 -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]__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]__1qfqvmg._.js → [root-of-the-server]__202p40z._.js} +2 -2
- package/.next/server/chunks/ssr/{_1mznrxk._.js → _001_ms1._.js} +3 -3
- package/.next/server/chunks/ssr/_01n3o0m._.js +3 -0
- package/.next/server/chunks/ssr/_0ap2fzn._.js +3 -0
- package/.next/server/chunks/ssr/_0fz4mf_._.js +3 -0
- package/.next/server/chunks/ssr/_0gb4gmf._.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/_0ilna52._.js +42 -0
- package/.next/server/chunks/ssr/_0n3toaw._.js +3 -0
- package/.next/server/chunks/ssr/{_13punpm._.js → _0q0zan6._.js} +2 -2
- package/.next/server/chunks/ssr/{_077-g6s._.js → _0s99bgb._.js} +3 -3
- package/.next/server/chunks/ssr/_0zcjrbg._.js +3 -0
- package/.next/server/chunks/ssr/_0zhoc3r._.js +3 -0
- package/.next/server/chunks/ssr/{_1lip4th._.js → _1-_etts._.js} +2 -2
- package/.next/server/chunks/ssr/_1-teee5._.js +3 -3
- package/.next/server/chunks/ssr/_13fke0x._.js +3 -0
- package/.next/server/chunks/ssr/_15j2_8f._.js +3 -0
- package/.next/server/chunks/ssr/_1b2mjwr._.js +3 -0
- package/.next/server/chunks/ssr/{_09ja_w1._.js → _1f-dg-6._.js} +2 -2
- package/.next/server/chunks/ssr/_1fojd41._.js +4 -0
- package/.next/server/chunks/ssr/_1gd8q8l._.js +3 -0
- package/.next/server/chunks/ssr/{_1m3bsfr._.js → _1h0rw11._.js} +2 -2
- package/.next/server/chunks/ssr/_1jhd09t._.js +3 -0
- package/.next/server/chunks/ssr/{_040sk32._.js → _1lz_cq2._.js} +84 -88
- package/.next/server/chunks/ssr/_1nnsk7z._.js +3 -0
- package/.next/server/chunks/ssr/_1sji22n._.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/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/{node_modules_0kxz4gt._.js → node_modules_00etblx._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_18_dk7_._.js → node_modules_04jf_m8._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0_n241r._.js → node_modules_08dhkiq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0n1kj4p._.js → node_modules_0940ns5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_17lrt3y._.js → node_modules_09q35v_._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1toafc-._.js → node_modules_0_-_a--._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0lrjk5t._.js → node_modules_0arus10._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_04n7mjs._.js → node_modules_0b__sgl._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0iz1rzd._.js → node_modules_0cxaxk9._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0ndvxub._.js → node_modules_0g7fzk3._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0kl7-tn._.js → node_modules_0had7xd._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_19dp7ko._.js → node_modules_0pvd7q-._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_0x3-ply._.js +3 -0
- package/.next/server/chunks/ssr/{node_modules_1dwguw_._.js → node_modules_0yugy6m._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_004qlr4._.js → node_modules_14om4ar._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1q0p85z._.js → node_modules_14q6g4n._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_17bwo43._.js +55 -0
- package/.next/server/chunks/ssr/{node_modules_1hd-5tv._.js → node_modules_198nmll._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_0m93zeg._.js → node_modules_1_pc9kq._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1n5ygqe._.js → node_modules_1aaxuef._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_01qnv-a._.js → node_modules_1cx_ql6._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1zu988w._.js → node_modules_1cz2hle._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1xyd7ov._.js → node_modules_1efrqxi._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_13r44jq._.js → node_modules_1eg7m6c._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_08d8bke._.js → node_modules_1gdh31p._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_1hn8z1f._.js → node_modules_1hpopmo._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_20yebtj._.js → node_modules_1qpjvy5._.js} +1 -1
- package/.next/server/chunks/ssr/{node_modules_09xhur7._.js → node_modules_1vh5ntv._.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_1b748ic._.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_1z4hm5e._.js} +1 -1
- package/.next/server/chunks/ssr/node_modules_@vercel_oidc_dist_06mk8id._.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/00rd4-v8r7axp.js +1 -0
- package/.next/static/chunks/08qe4as2q428z.js +3 -0
- package/.next/static/chunks/{31ttnjt6g35a0.js → 0ev4hyghq0mbb.js} +1 -1
- package/.next/static/chunks/0fl3gwe4-l6tz.js +1 -0
- package/.next/static/chunks/0gnqdjn2lvdad.js +2 -0
- package/.next/static/chunks/0hwap1-p0m5sa.js +1 -0
- package/.next/static/chunks/0r5qcctujhxli.js +1 -0
- package/.next/static/chunks/0w52rrrmuj9r9.js +1 -0
- package/.next/static/chunks/{07kl352c-lvcz.js → 0wcprt5ot5she.js} +1 -1
- package/.next/static/chunks/10teww7wt-f6h.js +1 -0
- package/.next/static/chunks/15m575979un5f.js +38 -0
- package/.next/static/chunks/17p6tk6k88dq6.js +1 -0
- package/.next/static/chunks/{3_h9txt3tq8t8.js → 1dkjg87pxk0n9.js} +1 -1
- package/.next/static/chunks/1jd09sxcjddu1.js +1 -0
- package/.next/static/chunks/1kq8h8wi_e0bc.js +53 -0
- package/.next/static/chunks/{18vhba44l1fc9.js → 1w73ece_6bheu.js} +1 -1
- package/.next/static/chunks/{3ard_noqapnw1.js → 214ya3n5gxeih.js} +1 -1
- package/.next/static/chunks/22_zkas21rpna.js +1 -0
- package/.next/static/chunks/2h0sd2vumhb15.js +1 -0
- package/.next/static/chunks/2t4vhi3m8ahya.js +1 -0
- package/.next/static/chunks/2tigdtz3dpcy8.js +1 -0
- package/.next/static/chunks/2u7xt6mxg44lf.js +1 -0
- package/.next/static/chunks/39j0fvpybzabl.js +40 -0
- package/.next/static/chunks/3akmqm77muj4-.js +1 -0
- package/.next/static/chunks/3cq5g494yuke8.css +1 -0
- package/.next/static/chunks/3woj-xd7ki5_i.js +1 -0
- package/.next/static/chunks/3xk7yqgomx7yq.js +1 -0
- package/.next/static/chunks/3zmcsnuo25zvq.js +1 -0
- package/.next/static/media/favicon.37o1pjldwi2uc.ico +0 -0
- package/README.md +47 -22
- 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 -7
- 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/port.mjs +65 -0
- package/bin/thursday.mjs +5 -33
- 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/docs/how-it-works.md +11 -7
- package/docs/images/face-dark.png +0 -0
- package/docs/images/face-light.png +0 -0
- package/docs/images/keeps-going.png +0 -0
- package/features/ai/chatgpt.ts +639 -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 +78 -56
- package/features/ai/model.schema.ts +232 -34
- package/features/ai/model.ts +169 -24
- package/features/ai/prompts/bot.prompt.ts +207 -114
- 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 +57 -27
- package/features/ai/tools/bot.tool.ts +35 -52
- package/features/ai/tools/connected.ts +17 -4
- package/features/ai/tools/memory.tool.ts +181 -117
- package/features/ai/tools/search.tool.ts +136 -47
- package/features/ai/tools/tool-name.ts +2 -6
- package/features/ai/tools/workspace.tool.ts +5 -1
- package/features/bot/bot.action.ts +14 -19
- package/features/bot/bot.memory.ts +89 -0
- package/features/bot/bot.query.ts +37 -57
- package/features/bot/bot.run.ts +512 -242
- package/features/bot/bot.runner.ts +434 -120
- package/features/bot/bot.schema.ts +104 -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 +214 -132
- package/features/bot/components/bot-setting.tsx +790 -402
- package/features/bot/components/bot-tool.tsx +2 -7
- 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 +240 -34
- package/features/bot/task.store.ts +76 -13
- 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 +340 -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 -98
- 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 -12
- package/features/thursday/use-thursday.ts +87 -60
- 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/components/memory-view.tsx +0 -84
- 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 → kaTO0UHqF1bMnWgCDik2f}/_buildManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → kaTO0UHqF1bMnWgCDik2f}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{YR4NWcDDuzwLbTTU7U7Vr → kaTO0UHqF1bMnWgCDik2f}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,798120,e=>{"use strict";let t=e=>e.split("/").map(encodeURIComponent).join("/");e.s(["queryKey",0,{memory:"/api/memory",memoryPage:e=>({url:"/api/memory",query:{offset:e||null}}),notePath:e=>({url:"/api/memory",query:{path:e}}),mcp:"/api/mcp",mcpServer:e=>({url:"/api/mcp",pathVariable:[e]}),mcpTools:"/api/mcp/tools",skills:"/api/skills",skillNode:(e,t,n)=>({url:"/api/skills",pathVariable:[e,t],query:{path:n}}),bot:"/api/bot",botMemory:"/api/bot/memory",botMemoryFiles:e=>({url:"/api/bot/memory/files",query:{bot:e}}),tasks:"/api/bot/task",taskHistory:e=>({url:"/api/bot/task",query:{history:1,before:e}}),toolResult:(e,t)=>({url:"/api/bot/task",pathVariable:[e],query:{call:t}}),workspace:"/api/workspace",workspaceFolder:(e,t)=>({url:"/api/workspace",query:{path:e||null,rows:t}}),artifacts:"/api/artifact",artifactShelf:e=>({url:"/api/artifact",query:{rows:e}}),artifactSet:(e,t)=>({url:"/api/artifact",query:{set:e,rows:t}}),file:e=>`/api/file/${t(e)}`,fileView:e=>`/artifact/${t(e)}`,events:"/api/events",config:"/api/config",callHistory:e=>({url:"/api/thursday/call",query:{before:e}}),callSkills:"/api/thursday/skills",toolCall:"/api/thursday/tool-call",memoryEdit:"/api/memory/edit",llmModel:"/api/llm-model",modelCatalog:"/api/llm-model/catalog",gatewayCredits:"/api/llm-model/credits",subscriptionUsage:"/api/llm-model/subscription"}])},167881,e=>{"use strict";var t=e.i(843476),n=e.i(527930),i=e.i(225913),r=e.i(534281),s=e.i(647163);let o=(0,i.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive text-background hover:bg-destructive/85 focus-visible:border-destructive focus-visible:ring-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:i="default",size:a="default",loading:l=!1,disabled:u,children:c,...d}){return(0,t.jsxs)(n.Button,{"data-slot":"button",className:(0,s.cn)(o({variant:i,size:a,className:e})),disabled:u||l,...d,children:[l&&(0,t.jsx)(r.Loader2Icon,{className:"animate-spin"}),c]})}])},6799,e=>{"use strict";var t=e.i(843476),n=e.i(76572),i=e.i(931250),r=e.i(121309),s=e.i(534281),o=e.i(228146),a=e.i(168754),l=e.i(560964),u=e.i(167881),c=e.i(647163);let d=n.Toast.createToastManager();function f({...e}){return(0,t.jsx)(n.Toast.Provider,{...e})}function p({...e}){return(0,t.jsx)(n.Toast.Portal,{"data-slot":"toast-portal",...e})}function m({className:e,...i}){return(0,t.jsx)(n.Toast.Viewport,{"data-slot":"toast-viewport",className:(0,c.cn)("pointer-events-none fixed inset-x-4 top-4 z-100 mx-auto w-auto max-w-sm outline-none sm:inset-x-0 sm:w-full",e),...i})}function g({className:e,swipeDirection:i=["up","right"],...r}){return(0,t.jsx)(n.Toast.Root,{"data-slot":"toast",swipeDirection:i,className:(0,c.cn)("group/toast pointer-events-auto absolute inset-x-0 top-0 z-[calc(1000-var(--toast-index))] w-full origin-top rounded-2xl border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)+calc(var(--toast-index)*var(--gap))+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]","h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--peek))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]","after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']","data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]","data-limited:opacity-0 data-starting-style:[transform:translateY(-150%)]","[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(-150%)]","data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]","data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]","data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]","data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]",e),...r})}function h({className:e,...i}){return(0,t.jsx)(n.Toast.Content,{"data-slot":"toast-content",className:(0,c.cn)("flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100",e),...i})}function v({className:e,...i}){return(0,t.jsx)(n.Toast.Title,{"data-slot":"toast-title",className:(0,c.cn)("text-sm font-medium",e),...i})}function y({className:e,...i}){return(0,t.jsx)(n.Toast.Description,{"data-slot":"toast-description",className:(0,c.cn)("text-sm text-muted-foreground",e),...i})}function b({className:e,render:i=(0,t.jsx)(u.Button,{variant:"outline",size:"sm"}),...r}){return(0,t.jsx)(n.Toast.Action,{"data-slot":"toast-action",render:i,className:(0,c.cn)("shrink-0",e),...r})}function x({className:e,children:i,render:r=(0,t.jsx)(u.Button,{variant:"ghost",size:"icon-sm"}),...s}){return(0,t.jsx)(n.Toast.Close,{"data-slot":"toast-close","aria-label":"Close toast",render:r,className:(0,c.cn)("relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground",e),...s,children:i??(0,t.jsx)(l.XIcon,{"aria-hidden":"true"})})}function w({type:e}){let n=null;return("success"===e&&(n=(0,t.jsx)(i.CircleCheckIcon,{"aria-hidden":"true"})),"info"===e&&(n=(0,t.jsx)(r.InfoIcon,{"aria-hidden":"true"})),"warning"===e&&(n=(0,t.jsx)(a.TriangleAlertIcon,{"aria-hidden":"true"})),"error"===e&&(n=(0,t.jsx)(o.OctagonXIcon,{className:"text-destructive","aria-hidden":"true"})),"loading"===e&&(n=(0,t.jsx)(s.Loader2Icon,{className:"animate-spin","aria-hidden":"true"})),n)?(0,t.jsx)("span",{"data-slot":"toast-icon",className:"shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",children:n}):null}function E(){let{toasts:e,close:i}=n.Toast.useToastManager();return e.map(e=>(0,t.jsx)(g,{toast:e,children:(0,t.jsxs)(h,{children:[(0,t.jsx)(w,{type:e.type}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)(v,{}),(0,t.jsx)(y,{})]}),(0,t.jsx)(b,{onClick:()=>i(e.id)}),(0,t.jsx)(x,{})]})},e.id))}let T=n.Toast.createToastManager,S=n.Toast.useToastManager;e.s(["Toast",0,g,"ToastAction",0,b,"ToastClose",0,x,"ToastContent",0,h,"ToastDescription",0,y,"ToastPortal",0,p,"ToastProvider",0,f,"ToastTitle",0,v,"ToastViewport",0,m,"Toaster",0,function({children:e,toastManager:n=d,...i}){return(0,t.jsxs)(f,{toastManager:n,...i,children:[e,(0,t.jsx)(p,{children:(0,t.jsx)(m,{children:(0,t.jsx)(E,{})})})]})},"createToastManager",0,T,"toast",0,d,"useToastManager",0,S])},527930,225913,e=>{"use strict";var t=e.i(271645),n=e.i(540886),i=e.i(552245);let r=t.forwardRef(function(e,t){let{render:r,className:s,disabled:o=!1,focusableWhenDisabled:a=!1,nativeButton:l=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:f}=(0,n.useButton)({disabled:o,focusableWhenDisabled:a,native:l});return(0,i.useRenderElement)("button",e,{state:{disabled:o},ref:[t,f],props:[c,d]})});e.s(["Button",0,r],527930);var s=e.i(207670);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=s.clsx;e.s(["cva",0,(e,t)=>n=>{var i;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:r,defaultVariants:s}=t,l=Object.keys(r).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let a=o(t)||o(i);return r[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,i]=t;return void 0===i||(e[n]=i),e},{});return a(e,l,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:n,className:i,...r}=t;return Object.entries(r).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}],225913)},726674,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(174080),i=e.i(229315),r=e.i(574735),s=e.i(365420),o=e.i(883977),a=e.i(146376),l=e.i(667865),u=e.i(956789),c=e.i(152535),d=e.i(383976),f=e.i(675606),p=e.i(56434),m=e.i(451321),g=e.i(552245),h=e.i(638396),v=e.i(843476);let y=t.createContext(null),b=()=>t.useContext(y),x=(0,m.createAttribute)("portal");function w(e={}){let{ref:r,container:s,componentProps:c=u.EMPTY_OBJECT,elementProps:d}=e,f=(0,o.useId)(),p=b(),m=p?.portalNode,[h,v]=t.useState(null),[y,E]=t.useState(null),T=(0,l.useStableCallback)(e=>{null!==e&&E(e)}),S=t.useRef(null);(0,a.useIsoLayoutEffect)(()=>{if(null===s){S.current&&(S.current=null,E(null),v(null));return}let e=(s&&((0,i.isNode)(s)?s:s.current))??m??document.body;if(null==e){S.current&&(S.current=null,E(null),v(null));return}S.current!==e&&(S.current=e,E(null),v(e))},[s,m]);let R=(0,g.useRenderElement)("div",c,{ref:[r,T],props:[{id:f,[x]:""},d]}),C=h&&R?n.createPortal(R,h):null;return{node:y,nodeId:t.isValidElement(R)?R.props.id:void 0,subtree:C}}let E=t.forwardRef(function(e,i){let{render:o,className:l,style:u,children:m,container:g,portalOwnerRole:b,...x}=e,{node:E,nodeId:T,subtree:S}=w({container:g,ref:i,componentProps:e,elementProps:x}),R=t.useRef(null),C=t.useRef(null),A=t.useRef(null),P=t.useRef(null),[O,k]=t.useState(null),I=t.useRef(!1),L=O?.modal,M=O?.open,N=!!O&&!O.modal&&O.open&&!!E;t.useEffect(()=>{if(E&&!L)return(0,s.mergeCleanups)((0,r.addEventListener)(E,"focusin",e,!0),(0,r.addEventListener)(E,"focusout",e,!0));function e(e){E&&e.relatedTarget&&(0,d.isOutsideEvent)(e)&&("focusin"===e.type?I.current&&((0,d.enableFocusInside)(E),I.current=!1):((0,d.disableFocusInside)(E),I.current=!0))}},[E,L]),(0,a.useIsoLayoutEffect)(()=>{E&&!0===M&&I.current&&((0,d.enableFocusInside)(E),I.current=!1)},[M,E]);let D=t.useMemo(()=>({beforeOutsideRef:R,afterOutsideRef:C,beforeInsideRef:A,afterInsideRef:P,portalNode:E,setFocusManagerState:k}),[E]);return(0,v.jsxs)(t.Fragment,{children:[S,(0,v.jsxs)(y.Provider,{value:D,children:[N&&E&&(0,v.jsx)(c.FocusGuard,{"data-type":"outside",ref:R,onFocus:e=>{if((0,d.isOutsideEvent)(e,E))A.current?.focus();else{let e=O?O.domReference:null,t=(0,d.getPreviousTabbable)(e);t?.focus()}}}),N&&E&&(0,v.jsx)("span",{role:b,"aria-owns":T,style:h.ownerVisuallyHidden}),E&&n.createPortal(m,E),N&&E&&(0,v.jsx)(c.FocusGuard,{"data-type":"outside",ref:C,onFocus:e=>{if((0,d.isOutsideEvent)(e,E))P.current?.focus();else{let t=O?O.domReference:null,n=(0,d.getNextTabbable)(t);n?.focus(),O?.closeOnFocusOut&&O?.onOpenChange(!1,(0,f.createChangeEventDetails)(p.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,E,"useFloatingPortalNode",0,w,"usePortalContext",0,b])},156341,e=>{"use strict";var t=e.i(301252),n=e.i(661286),i=e.i(157940);let r={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class s extends t.ReactStore{constructor(e){const{syncOnly:t,nested:i,onOpenChange:s,triggerElements:o,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:(0,n.createEventEmitter)(),nested:i,triggerElements:o},r),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,i.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}e.s(["FloatingRootStore",0,s])},46420,661286,379248,e=>{"use strict";var t=e.i(271645),n=e.i(883977),i=e.i(146376),r=e.i(388940);function s(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["createEventEmitter",0,s],661286);class o{nodesRef={current:[]};events=s();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["FloatingTreeStore",0,o],379248);var a=e.i(843476);let l=t.createContext(null),u=t.createContext(null),c=()=>t.useContext(l)?.id||null,d=e=>{let n=t.useContext(u);return e??n};e.s(["FloatingNode",0,function(e){let{children:n,id:i}=e,r=c();return(0,a.jsx)(l.Provider,{value:t.useMemo(()=>({id:i,parentId:r}),[i,r]),children:n})},"FloatingTree",0,function(e){let{children:t,externalTree:n}=e,i=(0,r.useRefWithInit)(()=>n??new o).current;return(0,a.jsx)(u.Provider,{value:i,children:t})},"useFloatingNodeId",0,function(e){let t=(0,n.useId)(),r=d(e),s=c();return(0,i.useIsoLayoutEffect)(()=>{if(!t)return;let e={id:t,parentId:s};return r?.addNode(e),()=>{r?.removeNode(e)}},[r,t,s]),t},"useFloatingParentNodeId",0,c,"useFloatingTree",0,d],46420)},988643,e=>{"use strict";var t=e.i(271645),n=e.i(146376),i=e.i(258950),r=e.i(229315),s=e.i(46420);e.s(["useBaseUIFloating",0,function(e){return function(e,o){let{nodeId:a,externalTree:l}=e,u=o.useState("referenceElement"),c=o.useState("floatingElement"),d=o.useState("domReferenceElement"),f=o.useState("open"),p=o.useState("floatingId"),[m,g]=t.useState(null),[h,v]=t.useState(void 0),[y,b]=t.useState(void 0),x=t.useRef(null),w=(0,s.useFloatingTree)(l),E=t.useMemo(()=>({reference:u,floating:c,domReference:d}),[u,c,d]),T=(0,i.useFloating)({...e,elements:{...E,...m&&{reference:m}}}),S=(0,r.isElement)(h)?h:null,R=void 0===y?o.state.floatingElement:y;o.useSyncedValue("referenceElement",h??null),o.useSyncedValue("domReferenceElement",void 0===h?d:S),o.useSyncedValue("floatingElement",R);let C=t.useCallback(e=>{let t=(0,r.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;g(t),T.refs.setReference(t)},[T.refs]),A=t.useCallback(e=>{((0,r.isElement)(e)||null===e)&&(x.current=e,v(e)),((0,r.isElement)(T.refs.reference.current)||null===T.refs.reference.current||null!==e&&!(0,r.isElement)(e))&&T.refs.setReference(e)},[T.refs,v]),P=t.useCallback(e=>{b(e),T.refs.setFloating(e)},[T.refs]),O=t.useMemo(()=>({...T.refs,setReference:A,setFloating:P,setPositionReference:C,domReference:x}),[T.refs,A,P,C]),k=t.useMemo(()=>({...T.elements,domReference:d}),[T.elements,d]),I=t.useMemo(()=>({...T,dataRef:o.context.dataRef,open:f,onOpenChange:o.setOpen,events:o.context.events,floatingId:p,refs:O,elements:k,nodeId:a,rootStore:o}),[T,O,k,a,o,f,p]);return(0,n.useIsoLayoutEffect)(()=>{d&&(x.current=d)},[d]),(0,n.useIsoLayoutEffect)(()=>{o.context.dataRef.current.floatingContext=I;let e=w?.nodesRef.current.find(e=>e.id===a);e&&(e.context=I)}),t.useMemo(()=>({...T,context:I,refs:O,elements:k,rootStore:o}),[T,O,k,I,o])}(e,e.rootContext)}])},265858,e=>{"use strict";e.i(247167);var t=e.i(229315),n=e.i(883977),i=e.i(146376),r=e.i(388940),s=e.i(990627),o=e.i(46420),a=e.i(156341);e.s(["useFloatingRootContext",0,function(e){let{open:l=!1,onOpenChange:u,elements:c={}}=e,d=(0,n.useId)(),f=null!=(0,o.useFloatingParentNodeId)(),p=(0,r.useRefWithInit)(()=>new a.FloatingRootStore({open:l,transitionStatus:void 0,onOpenChange:u,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new s.PopupTriggerMap,floatingId:d,syncOnly:!1,nested:f})).current;return(0,i.useIsoLayoutEffect)(()=>{let e={open:l,floatingId:d};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,t.isElement)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),p.update(e)},[l,d,c.reference,c.floating,p]),p.context.onOpenChange=u,p.context.nested=f,p}])},621082,e=>{"use strict";e.i(247167);var t=e.i(343084),n=e.i(229315),i=e.i(157940),r=e.i(449055);function s(e,t,n){return Math.floor(e/t)!==n}function o(e,t){return t<0||t>=e.length}function a(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:i,amount:r=1}={}){let s=t;do s+=n?-r:r;while(s>=0&&s<=e.length-1&&l(e,s,i))return s}function l(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let i=e[t];return!!i&&(!!(!u(i)||i.matches(":disabled"))||!n&&(i.hasAttribute("disabled")||"true"===i.getAttribute("aria-disabled")))}function u(e,t=e?(0,n.getComputedStyle)(e):null){var i;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(i=t).visibility&&"collapse"!==i.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}e.s(["findNonDisabledListIndex",0,a,"getGridNavigatedIndex",0,function(e,{event:n,orientation:u,loopFocus:c,onLoop:d,rtl:f,cols:p,disabledIndices:m,minIndex:g,maxIndex:h,prevIndex:v,stopEvent:y=!1}){let b,x=v;if(n.key===r.ARROW_UP?b="up":n.key===r.ARROW_DOWN&&(b="down"),b){let r=[],s=[],u=!1,f=0;{let t=null,n=-1;e.forEach((e,i)=>{if(null==e)return;f+=1;let o=e.closest('[role="row"]');o&&(u=!0),(o!==t||-1===n)&&(t=o,r[n+=1]=[]),r[n].push(i),s[i]=n})}let w=!1,E=0;if(u)for(let e of r){let t=e.length;t>E&&(E=t),t!==p&&(w=!0)}let T=w&&f<e.length,S=E||p;y&&(0,i.stopEvent)(n);let R=(t=>{if(!w||-1===v)return;let i=s[v];if(null==i)return;let o=r[i].indexOf(v),a="up"===t?-1:1;for(let t=i+a,u=0;u<r.length;u+=1,t+=a){if(t<0||t>=r.length){if(!c||T)return;if(t=t<0?r.length-1:0,d){let e=Math.min(o,r[t].length-1);t=s[d(n,v,r[t][e]??r[t][0])]??t}}let i=r[t];for(let t=Math.min(o,i.length-1);t>=0;t-=1){let n=i[t];if(!l(e,n,m))return n}}})(b)??(n=>{if(!T||-1===v)return;let i=v%S,r="up"===n?-S:S,s=h-h%S,o=(0,t.floor)(h/S)+1;for(let t=v-i+r,n=0;n<o;n+=1,t+=r){if(t<0||t>h){if(!c)return;t=t<0?s:0}let n=Math.min(t+S-1,h);for(let r=Math.min(t+i,n);r>=t;r-=1)if(!l(e,r,m))return r}})(b);if(void 0!==R)x=R;else if(-1===v)x="up"===b?h:g;else if(x=a(e,{startingIndex:v,amount:S,decrement:"up"===b,disabledIndices:m}),c){if("up"===b&&(v-S<g||x<0)){let e=v%S,t=h%S,i=h-(t-e);x=t===e?h:t>e?i:i-S,d&&(x=d(n,v,x))}"down"===b&&v+S>h&&(x=a(e,{startingIndex:v%S-S,amount:S,disabledIndices:m}),d&&(x=d(n,v,x)))}o(e,x)&&(x=v)}if("both"===u){let l=(0,t.floor)(v/p);n.key===(f?r.ARROW_LEFT:r.ARROW_RIGHT)&&(y&&(0,i.stopEvent)(n),v%p!=p-1?(x=a(e,{startingIndex:v,disabledIndices:m}),c&&s(x,p,l)&&(x=a(e,{startingIndex:v-v%p-1,disabledIndices:m}),d&&(x=d(n,v,x)))):c&&(x=a(e,{startingIndex:v-v%p-1,disabledIndices:m}),d&&(x=d(n,v,x))),s(x,p,l)&&(x=v)),n.key===(f?r.ARROW_RIGHT:r.ARROW_LEFT)&&(y&&(0,i.stopEvent)(n),v%p!=0?(x=a(e,{startingIndex:v,decrement:!0,disabledIndices:m}),c&&s(x,p,l)&&(x=a(e,{startingIndex:v+(p-v%p),decrement:!0,disabledIndices:m}),d&&(x=d(n,v,x)))):c&&(x=a(e,{startingIndex:v+(p-v%p),decrement:!0,disabledIndices:m}),d&&(x=d(n,v,x))),s(x,p,l)&&(x=v));let u=(0,t.floor)(h/p)===l;o(e,x)&&(c&&u?(x=n.key===(f?r.ARROW_RIGHT:r.ARROW_LEFT)?h:a(e,{startingIndex:v-v%p-1,disabledIndices:m}),d&&(x=d(n,v,x))):x=v)}return x},"getMaxListIndex",0,function(e,t){return a(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return a(e.current,{disabledIndices:t})},"isElementVisible",0,u,"isIndexOutOfListBounds",0,o,"isListIndexDisabled",0,l])},449055,e=>{"use strict";e.s(["ARROW_DOWN",0,"ArrowDown","ARROW_LEFT",0,"ArrowLeft","ARROW_RIGHT",0,"ArrowRight","ARROW_UP",0,"ArrowUp","FOCUSABLE_ATTRIBUTE",0,"data-base-ui-focusable","TYPEABLE_SELECTOR",0,"input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"])},451321,e=>{"use strict";e.s(["createAttribute",0,function(e){return`data-base-ui-${e}`}])},596296,145147,322846,e=>{"use strict";var t=e.i(229315),n=e.i(328744),i=e.i(584446),r=e.i(449055),s=e.i(415618);e.s(["CommonTriggerDataAttributes",0,s],145147);var s=s;s.popupOpen;let o="data-trigger-disabled";function a(e){return(0,t.isHTMLElement)(e)&&e.matches(r.TYPEABLE_SELECTOR)}e.s(["triggerDisabled",0,o],322846),e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(r.FOCUSABLE_ATTRIBUTE)?e:e.querySelector(`[${r.FOCUSABLE_ATTRIBUTE}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${r.TYPEABLE_SELECTOR}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTargetInsideEnabledTrigger",0,function(e,n){if(!(0,t.isElement)(e))return!1;if(n.hasElement(e))return!e.hasAttribute(o);for(let[,t]of n.entries())if((0,i.contains)(t,e))return!t.hasAttribute(o);return!1},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&a(e)},"isTypeableElement",0,a,"matchesFocusVisible",0,function(e){if(!e||n.platform.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],596296)},157940,e=>{"use strict";var t=e.i(328744);e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,function(e){return""===e.pointerType&&!!e.isTrusted||(t.platform.os.android&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!t.platform.env.jsdom&&(!t.platform.os.android&&0===e.width&&0===e.height||t.platform.os.android&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"stopEvent",0,function(e){e.preventDefault(),e.stopPropagation()}])},383976,e=>{"use strict";var t=e.i(229315),n=e.i(108868),i=e.i(584446),r=e.i(621082);function s(e){for(let n of Array.from(e.children))if("summary"===(0,t.getNodeName)(n))return n;return null}function o(e){let n=e?(0,t.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==n||null!=e.parentElement&&"details"===(0,t.getNodeName)(e.parentElement)&&s(e.parentElement)===e)&&("details"!==n||null==s(e))&&("input"!==n||"hidden"!==e.type)}function a(e){if(!o(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let n=e;n;n=function(e){let n=e.assignedSlot;if(n)return n;if(e.parentElement)return e.parentElement;let i=e.getRootNode();return(0,t.isShadowRoot)(i)?i.host:null}(n)){let o=n!==e,a="slot"===(0,t.getNodeName)(n);if(n.hasAttribute("inert")||o&&"details"===(0,t.getNodeName)(n)&&!n.open&&!function(e,t){let n=s(t);return!!n&&(e===n||(0,i.contains)(n,e))}(e,n)||n.hasAttribute("hidden")||!a&&!function(e,n){let i=(0,t.getComputedStyle)(e);return n?"none"!==i.display:(0,r.isElementVisible)(e,i)}(n,o))return!1}return!0}function l(e){let n=e.tabIndex;if(n<0){let n=(0,t.getNodeName)(e);if("details"===n||"audio"===n||"video"===n||(0,t.isHTMLElement)(e)&&e.isContentEditable)return 0}return n}function u(e){return"input"!==(0,t.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function c(e){if((0,t.isHTMLElement)(e)&&"slot"===(0,t.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,t.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function d(e){let t=[];return!function e(t,n){c(t).forEach(t=>{o(t)&&n.push(t),e(t,n)})}(e,t),t.filter(a)}function f(e){let t=d(e);return t.filter(e=>l(e)>=0&&function(e,t){let n=u(e);if(!n)return!0;let i=t.find(e=>{let t=u(e);return t?.name===n.name&&t.form===n.form&&t.checked});return i?i===n:t.find(e=>{let t=u(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function p(e,t){let r=f(e),s=r.length;if(0===s)return;let o=(0,i.activeElement)((0,n.ownerDocument)(e)),a=r.indexOf(o);return r[-1===a?1===t?0:s-1:a+t]}function m(e,t){if(!e)return null;let i=f((0,n.ownerDocument)(e).body),r=i.length;if(0===r)return null;let s=i.indexOf(e);return -1===s?null:i[(s+t+r)%r]}e.s(["disableFocusInside",0,function(e){f(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"enableFocusInside",0,function(e){let n=[];!function e(n,i,r){c(n).forEach(n=>{(0,t.isHTMLElement)(n)&&n.matches(i)&&r.push(n),e(n,i,r)})}(e,"[data-tabindex]",n),n.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"focusable",0,d,"getNextTabbable",0,function(e){return p((0,n.ownerDocument)(e).body,1)||e},"getPreviousTabbable",0,function(e){return p((0,n.ownerDocument)(e).body,-1)||e},"getTabbableAfterElement",0,function(e){return m(e,1)},"getTabbableBeforeElement",0,function(e){return m(e,-1)},"isOutsideEvent",0,function(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,i.contains)(n,r)},"isTabbable",0,function(e){return a(e)&&l(e)>=0},"tabbable",0,f])},180862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},253335,e=>{"use strict";var t=e.i(180862);e.s(["TransitionStatusDataAttributes",0,t])},838452,690325,e=>{"use strict";var t=e.i(733332),n=e.i(271645);let i=n.createContext(void 0);e.s(["CompositeRootContext",0,i,"useCompositeRootContext",0,function(e=!1){let r=n.useContext(i);if(void 0===r&&!e)throw Error((0,t.default)(16));return r}],838452),e.s(["useFocusableWhenDisabled",0,function(e){let{focusableWhenDisabled:t,disabled:i,composite:r=!1,tabIndex:s=0,isNativeButton:o}=e,a=r&&!1!==t,l=r&&!1===t;return{props:n.useMemo(()=>{let e={onKeyDown(e){i&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=s,!o&&i&&(e.tabIndex=t?s:-1)),(o&&(t||a)||!o&&i)&&(e["aria-disabled"]=i),o&&(!t||l)&&(e.disabled=i),e},[r,i,t,a,l,o,s])}}],690325)},638396,e=>{"use strict";e.s(["BASE_UI_SWIPE_IGNORE_SELECTOR",0,"[data-base-ui-swipe-ignore]","CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"LEGACY_SWIPE_IGNORE_SELECTOR",0,"[data-swipe-ignore]","PATIENT_CLICK_THRESHOLD",0,500,"POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"TYPEAHEAD_RESET_MS",0,500,"ownerVisuallyHidden",0,{clipPath:"inset(50%)",position:"fixed",top:0,left:0}])},675606,e=>{"use strict";var t=e.i(956789);e.s(["createChangeEventDetails",0,function(e,n,i,r){let s=!1,o=!1,a=r??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),cancel(){s=!0},allowPropagation(){o=!0},get isCanceled(){return s},get isPropagationAllowed(){return o},trigger:i,...a}},"createGenericEventDetails",0,function(e,n,i){let r=i??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),...r}}])},872855,e=>{"use strict";e.i(247167);var t=e.i(271645);let n=t.createContext(void 0);e.s(["useDirection",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},253984,e=>{"use strict";var t=e.i(956789),n=e.i(638396);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?n.DISABLED_TRANSITIONS_STYLE:t.EMPTY_OBJECT}])},416919,809835,377570,e=>{"use strict";e.s(["getStateAttributesProps",0,function(e,t){let n={};for(let i in e){let r=e[i];if(t?.hasOwnProperty(i)){let e=t[i](r);null!=e&&Object.assign(n,e);continue}!0===r?n[`data-${i.toLowerCase()}`]="":r&&(n[`data-${i.toLowerCase()}`]=r.toString())}return n}],416919),e.s(["resolveClassName",0,function(e,t){return"function"==typeof e?e(t):e}],809835),e.s(["resolveStyle",0,function(e,t){return"function"==typeof e?e(t):e}],377570)},56434,e=>{"use strict";e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","initial",0,"initial","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],216856);var t=e.i(216856);e.s(["REASONS",0,t],56434)},474354,e=>{"use strict";var t=e.i(180862);let n={[t.startingStyle]:""},i={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?n:"ending"===e?i:null}])},540886,64350,e=>{"use strict";var t=e.i(271645),n=e.i(229315),i=e.i(667865),r=e.i(146376),s=e.i(176782),o=e.i(838452),a=e.i(690325),l=e.i(333848);function u(e,t,{detail:n=0}={}){e.dispatchEvent(new((0,l.ownerWindow)(e)).PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function c(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["dispatchClickWithModifiers",0,u],64350),e.s(["useButton",0,function(e={}){let{disabled:l=!1,focusableWhenDisabled:d,tabIndex:f=0,native:p=!0,composite:m}=e,g=t.useRef(null),h=(0,o.useCompositeRootContext)(!0),v=m??void 0!==h,{props:y}=(0,a.useFocusableWhenDisabled)({focusableWhenDisabled:d,disabled:l,composite:v,tabIndex:f,isNativeButton:p}),b=t.useCallback(()=>{let e=g.current;c(e)&&v&&l&&void 0===y.disabled&&e.disabled&&(e.disabled=!1)},[l,y.disabled,v]);return(0,r.useIsoLayoutEffect)(b,[b]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:i,onKeyUp:r,onKeyDown:o,onPointerDown:a,...d}=e;return(0,s.mergeProps)({onClick(e){l?e.preventDefault():t?.(e)},onMouseDown(e){l||i?.(e)},onKeyDown(e){var t;if(l||((0,s.makeEventPreventable)(e),o?.(e),e.baseUIHandlerPrevented))return;let i=e.target===e.currentTarget,r=e.currentTarget,a=c(r),d=!p&&(t=r,(0,n.isHTMLElement)(t)&&"A"===t.tagName&&!!t.href),f=i&&(p?a:!d),m="Enter"===e.key,g=" "===e.key,h=r.getAttribute("role"),y=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(i&&v&&g){if(e.defaultPrevented&&y)return;e.preventDefault(),(!p||a)&&(e.preventBaseUIHandler(),u(r,e));return}if(!f||p||!g&&!m){i&&d&&g&&e.preventDefault();return}!e.defaultPrevented&&(e.preventDefault(),m&&(e.preventBaseUIHandler(),u(r,e)))},onKeyUp(e){l||(((0,s.makeEventPreventable)(e),r?.(e),e.target===e.currentTarget&&p&&v&&c(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||p||v||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),u(e.currentTarget,e))))},onPointerDown(e){l?e.preventDefault():a?.(e)}},p?{type:"button"}:{role:"button"},y,d)},[l,y,v,p]),buttonRef:(0,i.useStableCallback)(e=>{g.current=e,b()})}}],540886)},923706,909091,667387,e=>{"use strict";var t=e.i(271645),n=e.i(343084),i=e.i(108868),r=e.i(333848),s=e.i(146376),o=e.i(446265),a=e.i(667865),l=e.i(953760),u=e.i(258950),c=e.i(988643),d=e.i(872855);let f={name:"hide",async fn(e){let{width:t,height:n,x:i,y:r}=e.rects.reference,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-n>=0||s.right-t>=0||s.bottom-n>=0||s.left-t>=0||0===t&&0===n&&0===i&&0===r}}}},p={sideX:"left",sideY:"top"};e.s(["DEFAULT_SIDES",0,p],909091);let m="--available-width",g="--available-height",h="--anchor-width",v="--anchor-height",y="--transform-origin";function b(e,t,n){let i="inline-start"===e||"inline-end"===e;return({top:"top",right:i?n?"inline-start":"inline-end":"right",bottom:"bottom",left:i?n?"inline-end":"inline-start":"left"})[t]}function x(e,t,i){let{rects:r,placement:s}=e;return{side:b(t,(0,n.getSide)(s),i),align:(0,n.getAlignment)(s)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function w(e){return null!=e&&"current"in e}e.s(["anchorHeight",0,v,"anchorWidth",0,h,"availableHeight",0,g,"availableWidth",0,m,"positionerHeight",0,"--positioner-height","positionerWidth",0,"--positioner-width","transformOrigin",0,y],667387),e.s(["useAnchorPositioning",0,function(e){return function(e,c){let{anchor:E,positionMethod:T="absolute",side:S="bottom",sideOffset:R=0,align:C="center",alignOffset:A=0,collisionBoundary:P,collisionPadding:O=5,sticky:k=!1,arrowPadding:I=5,disableAnchorTracking:L=!1,inline:M,keepMounted:N=!1,floatingRootContext:D,mounted:F,collisionAvoidance:j,shift:_,nodeId:W,adaptiveOrigin:V,lazyFlip:H=!1,externalTree:z}=e,[B,$]=t.useState(null);F||null===B||$(null);let Y=j.side||"flip",U=j.align||"flip",q=j.fallbackAxisSide||"end",K=_?.crossAxis??!1,G=_?.rootBoundary,X="function"==typeof E?E:void 0,J=(0,a.useStableCallback)(X),Q=X?J:E,Z=(0,o.useValueAsRef)(E),ee=(0,o.useValueAsRef)(F),et="rtl"===(0,d.useDirection)(),en=B||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":et?"left":"right","inline-start":et?"right":"left"})[S],ei="center"===C?en:`${en}-${C}`,er=O;"number"==typeof er?er={top:er,right:er,bottom:er,left:er}:er&&(er={top:er.top||0,right:er.right||0,bottom:er.bottom||0,left:er.left||0});let es=+("bottom"===S),eo=+("top"===S),ea=+("right"===S),el=+("left"===S),eu={boundary:"clipping-ancestors"===P?"clippingAncestors":P,padding:er},ec=t.useRef(null),ed=(0,o.useValueAsRef)(R),ef=(0,o.useValueAsRef)(A),ep="function"!=typeof R?R:0,em="function"!=typeof A?A:0,eg=[];M&&eg.push(M),eg.push((0,u.offset)(e=>{let t=x(e,S,et),n="function"==typeof ed.current?ed.current(t):ed.current,i="function"==typeof ef.current?ef.current(t):ef.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[ep,em,et,S]));let eh="none"===U&&"shift"!==Y,ev=!eh&&(k||K||"shift"===Y),ey="none"===Y?null:(0,u.flip)({...eu,padding:{top:er.top+1+es,right:er.right+1+el,bottom:er.bottom+1+eo,left:er.left+1+ea},mainAxis:!K&&"flip"===Y,crossAxis:"flip"===U&&"alignment",fallbackAxisSideDirection:q}),eb=eh?null:(0,u.shift)({...eu,rootBoundary:G,mainAxis:"none"!==U,crossAxis:ev,limiter:k||K?void 0:(0,u.limitShift)(e=>{if(!ec.current)return{};let{width:t,height:i}=ec.current.getBoundingClientRect(),r=(0,n.getSideAxis)((0,n.getSide)(e.placement)),s="y"===r?er.left+er.right:er.top+er.bottom;return{offset:("y"===r?t:i)/2+s/2}})},[eu,k,K,G,er,U]);"shift"===Y||"shift"===U||"center"===C?eg.push(eb,ey):eg.push(ey,eb),eg.push((0,u.size)({...eu,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:i}){if(!ee.current)return;let s=e.style;s.setProperty(m,`${t}px`),s.setProperty(g,`${n}px`);let o=(0,r.ownerWindow)(e).devicePixelRatio||1,{x:a,y:l,width:u,height:c}=i.reference,d=(Math.round((a+u)*o)-Math.round(a*o))/o,f=(Math.round((l+c)*o)-Math.round(l*o))/o;s.setProperty(h,`${d}px`),s.setProperty(v,`${f}px`)}}),((e,t)=>{let{name:i,fn:r}={name:"arrow",options:e,async fn(t){let{x:i,y:r,placement:s,rects:o,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:d=0,offsetParent:f="real"}=(0,n.evaluate)(e,t)||{};if(null==c)return{};let p=(0,n.getPaddingObject)(d),m={x:i,y:r},g=(0,n.getAlignmentAxis)(s),h=(0,n.getAxisLength)(g),v=await a.getDimensions(c),y="y"===g,b=y?"clientHeight":"clientWidth",x=o.reference[h]+o.reference[g]-m[g]-o.floating[h],w=m[g]-o.reference[g],E="real"===f?await a.getOffsetParent?.(c):l.floating,T=l.floating[b]||o.floating[h];T&&await a.isElement?.(E)||(T=l.floating[b]||o.floating[h]);let S=T/2-v[h]/2-1,R=Math.min(p[y?"top":"left"],S),C=Math.min(p[y?"bottom":"right"],S),A=T-v[h]-C,P=T/2-v[h]/2+(x/2-w/2),O=(0,n.clamp)(R,P,A),k=!u.arrow&&null!=(0,n.getAlignment)(s)&&P!==O&&o.reference[h]/2-(P<R?R:C)-v[h]/2<0,I=k?P<R?P-R:P-A:0;return{[g]:m[g]+I,data:{[g]:O,centerOffset:P-O-I,...k&&{alignmentOffset:I}},reset:k}}};return{name:i,fn:r,options:[e,t]}})(e=>({element:ec.current||(0,i.ownerDocument)(e.elements.floating).createElement("div"),padding:ec.current?I:0,offsetParent:"floating"}),[I]),{name:"transformOrigin",fn(e){let t,{elements:{floating:i},middlewareData:r,placement:s,platform:o,rects:a,y:l}=e,u=(0,n.getSide)(s),c=(0,n.getAlignment)(s),d="y"===(0,n.getSideAxis)(u),f=ec.current,p="function"==typeof R?R(x(e,S,et)):R;if(!f&&c&&1>=Math.abs(d?r.shift?.x||0:r.shift?.y||0))t="start"===c===(d&&o.isRTL?.(i)===!0)?"100%":"0%";else{let e=d?r.arrow?.x||0:r.arrow?.y||0,n=d?f?.clientWidth||0:f?.clientHeight||0;t=`${e+n/2}px`}let m="top"===u||"left"===u?`calc(100% + ${p}px)`:`${-p}px`;return ev&&d&&Math.abs(r.shift?.y||0)>p&&(m=`${a.reference.y+a.reference.height/2-l}px`),i.style.setProperty(y,d?`${t} ${m}`:`${m} ${t}`),{}}},f,V),(0,s.useIsoLayoutEffect)(()=>{!F&&D&&D.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[F,D]);let ex=t.useMemo(()=>({ancestorScroll:!L,elementResize:!L&&"u">typeof ResizeObserver,layoutShift:!L&&"u">typeof IntersectionObserver}),[L]),{refs:ew,elements:eE,x:eT,y:eS,middlewareData:eR,update:eC,placement:eA,context:eP,isPositioned:eO,floatingStyles:ek}=c({rootContext:D,open:N?F:void 0,placement:ei,middleware:eg,strategy:T,whileElementsMounted:N?void 0:(...e)=>(0,l.autoUpdate)(...e,ex),nodeId:W,externalTree:z}),{sideX:eI,sideY:eL}=eR.adaptiveOrigin||p,eM=eO?T:"fixed",eN=t.useMemo(()=>{let e;return(e=eO?V?{position:eM,[eI]:eT,[eL]:eS}:{...ek,position:eM}:{position:eM,top:0,left:0})[m]="100vw",e[g]="100vh",eO||(e.opacity=0),e},[V,eM,eI,eT,eL,eS,ek,eO]),eD=t.useRef(null);(0,s.useIsoLayoutEffect)(()=>{if(!F)return;let e=Z.current,t="function"==typeof e?e():e,n=(w(t)?t.current:t)||null;n!==eD.current&&(ew.setPositionReference(n),eD.current=n)},[F,ew,Q,Z]),t.useEffect(()=>{if(!F)return;let e=Z.current;"function"!=typeof e&&w(e)&&e.current!==eD.current&&(ew.setPositionReference(e.current),eD.current=e.current)},[F,ew,Q,Z]),t.useEffect(()=>{if(N&&F&&eE.reference&&eE.floating)return(0,l.autoUpdate)(eE.reference,eE.floating,eC,ex)},[N,F,eE,eC,ex]);let eF=(0,n.getSide)(eA),ej=b(S,eF,et),e_=(0,n.getAlignment)(eA)||"center",eW=!!eR.hide?.referenceHidden;(0,s.useIsoLayoutEffect)(()=>{H&&F&&eO&&eF!==en&&$(eF)},[H,F,eO,eF,en]);let eV=t.useMemo(()=>({position:"absolute",top:eR.arrow?.y,left:eR.arrow?.x}),[eR.arrow]),eH=eR.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eN,arrowStyles:eV,arrowRef:ec,arrowUncentered:eH,side:ej,align:e_,physicalSide:eF,anchorHidden:eW,refs:ew,context:eP,isPositioned:eO,update:eC}),[eN,eV,ec,eH,ej,e_,eF,eW,ew,eP,eO,eC])}(e,c.useBaseUIFloating)}],923706)},137584,222640,e=>{"use strict";var t=e.i(271645),n=e.i(667865),i=e.i(174080),r=e.i(708445),s=e.i(594603),o=e.i(180862);let a=null;function l(e,t=!1,u=!1){let c=(0,r.useAnimationFrame)();return(0,n.useStableCallback)((n,r=null)=>{c.cancel();let l=(0,s.resolveRef)(e);if(null==l)return;let d=()=>{if(!u)return void i.flushSync(n);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,i.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{r?.aborted||n()})};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function f(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{r?.aborted||d()},()=>{r?.aborted||(l.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!l.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),f())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void r?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,l],222640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:i=!0,open:r,ref:s,batch:o=!1,onComplete:a}=e,u=(0,n.useStableCallback)(a),c=l(s,r,o);t.useEffect(()=>{if(!i)return;let e=new AbortController;return c(u,e.signal),()=>{e.abort()}},[i,r,u,c])}],137584)},552245,e=>{"use strict";e.i(247167);var t=e.i(733332),n=e.i(271645),i=e.i(828918),r=e.i(978554),s=e.i(435241);e.i(69415);var o=e.i(956789),a=e.i(416919),l=e.i(809835),u=e.i(377570),c=e.i(176782);let d=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,f,p={}){let m=f.render;!1!==p.enabled&&(m=function(e){if(e?.$$typeof!==d)return e;let t=n.Children.toArray(e)[0];return n.isValidElement(t)?t:e}(m));let g=function(e,t,n){var d;let{className:f,style:p}=e,{state:m=o.EMPTY_OBJECT,ref:g,props:h,stateAttributesMapping:v,enabled:y=!0}=t,b=y?(0,l.resolveClassName)(f,m):void 0,x=y?(0,u.resolveStyle)(p,m):void 0,w=y?(0,a.getStateAttributesProps)(m,v):o.EMPTY_OBJECT,E=y&&h?Array.isArray(d=h)?(0,c.mergePropsN)(d):(0,c.mergeProps)(void 0,d):void 0,T=y?(0,s.mergeObjects)(w,E)??{}:o.EMPTY_OBJECT;return("u">typeof document&&(y?Array.isArray(g)?T.ref=(0,i.useMergedRefsN)([T.ref,(0,r.getReactElementRef)(n),...g]):T.ref=(0,i.useMergedRefs)(T.ref,(0,r.getReactElementRef)(n),g):(0,i.useMergedRefs)(null,null)),y)?(void 0!==b&&(T.className=(0,c.mergeClassNames)(T.className,b)),void 0!==x&&(T.style=(0,s.mergeObjects)(T.style,x)),T):o.EMPTY_OBJECT}(f,p,m);return!1===p.enabled?null:function(e,i,r,s){if(i){if("function"==typeof i)return i(r,s);let e=(0,c.mergeProps)(r,i.props);return e.ref=r.ref,n.cloneElement(i,e)}if(e&&"string"==typeof e){var o,a;return o=e,a=r,"button"===o?(0,n.createElement)("button",{type:"button",...a,key:a.key}):"img"===o?(0,n.createElement)("img",{alt:"",...a,key:a.key}):n.createElement(o,a)}throw Error((0,t.default)(8))}(e,m,g,p.state??o.EMPTY_OBJECT)}])},176782,e=>{"use strict";var t=e.i(435241);let n={};function i(e){return o(e)?{...a(e,n)}:function(e){let t={...e};for(let e in t){let n=t[e];s(e,n)&&(t[e]=l(n))}return t}(e)}function r(e,n){return o(n)?a(n,e):function(e,n){if(!n)return e;for(let i in n){let r=n[i];switch(i){case"style":e[i]=(0,t.mergeObjects)(e.style,r);break;case"className":e[i]=c(e.className,r);break;default:s(i,r)?e[i]=function(e,t){return t?e?(...n)=>{let i=n[0];if(d(i)){u(i);let r=t(...n);return i.baseUIHandlerPrevented||e?.(...n),r}let r=t(...n);return e?.(...n),r}:l(t):e}(e[i],r):e[i]=r}}return e}(e,n)}function s(e,t){let n=e.charCodeAt(0),i=e.charCodeAt(1),r=e.charCodeAt(2);return 111===n&&110===i&&r>=65&&r<=90&&("function"==typeof t||void 0===t)}function o(e){return"function"==typeof e}function a(e,t){return o(e)?e(t):e??n}function l(e){return e?(...t)=>{let n=t[0];return d(n)&&u(n),e(...t)}:e}function u(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function c(e,t){return t?e?t+" "+e:t:e}function d(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,u,"mergeClassNames",0,c,"mergeProps",0,function(e,t,n,s,o){if(!n&&!s&&!o&&!e)return i(t);let a=i(e);return t&&(a=r(a,t)),n&&(a=r(a,n)),s&&(a=r(a,s)),o&&(a=r(a,o)),a},"mergePropsN",0,function(e){if(0===e.length)return n;if(1===e.length)return i(e[0]);let t=i(e[0]);for(let n=1;n<e.length;n+=1)t=r(t,e[n]);return t}])},9957,68875,e=>{"use strict";var t=e.i(271645),n=e.i(847391),i=e.i(182531),r=e.i(540886),s=e.i(552245);let o=t.forwardRef(function(e,o){let{render:a,className:l,style:u,disabled:c,nativeButton:d=!0,...f}=e,p=(0,i.useToastProviderContext)(),{toast:m,expanded:g}=(0,n.useToastRootContext)(),[h,v]=t.useState(!1),{getButtonProps:y,buttonRef:b}=(0,r.useButton)({disabled:c,native:d}),x={type:m.type};return(0,s.useRenderElement)("button",e,{ref:[o,b],state:x,props:[{"aria-hidden":!g&&!h,onClick(){p.closeToast(m.id)},onFocus(){v(!0)},onBlur(){v(!1)}},f,y]})});e.s(["ToastClose",0,o],9957);var a=e.i(54348);let l=t.forwardRef(function(e,t){let{render:i,className:o,style:l,disabled:u,nativeButton:c=!0,...d}=e,{toast:f}=(0,n.useToastRootContext)(),p=f.actionProps?.children??d.children,{getButtonProps:m,buttonRef:g}=(0,r.useButton)({disabled:u,native:c}),h={type:f.type},v=(0,s.useRenderElement)("button",e,{ref:[t,g],state:h,props:[d,f.actionProps,m,{children:p}]});return(0,a.hasRenderableChildren)(v)?v:null});e.s(["ToastAction",0,l],68875)},966669,54348,871707,e=>{"use strict";var t=e.i(271645),n=e.i(552245),i=e.i(883977),r=e.i(146376),s=e.i(847391);function o(e){return t.isValidElement(e)&&function e(t){return null!=t&&"boolean"!=typeof t&&""!==t&&(!Array.isArray(t)||t.some(e))}(e.props.children)}function a(e,t,n){let{toast:r,setTitleId:o,setDescriptionId:a}=(0,s.useToastRootContext)(),l=t??("title"===n?r.title:r.description);return{id:(0,i.useId)(e),children:l,type:r.type,setId:"title"===n?o:a}}function l(e,t,n){let i=o(e);return(0,r.useIsoLayoutEffect)(()=>{if(i)return n(t),()=>{n(e=>e===t?void 0:e)}},[i,t,n]),i?e:null}e.s(["hasRenderableChildren",0,o],54348);let u=t.forwardRef(function(e,t){let{render:i,className:r,style:s,id:o,children:u,...c}=e,{id:d,children:f,type:p,setId:m}=a(o,u,"description");return l((0,n.useRenderElement)("p",e,{ref:t,state:{type:p},props:{...c,id:d,children:f}}),d,m)});e.s(["ToastDescription",0,u],966669);let c=t.forwardRef(function(e,t){let{render:i,className:r,style:s,id:o,children:u,...c}=e,{id:d,children:f,type:p,setId:m}=a(o,u,"title");return l((0,n.useRenderElement)("h2",e,{ref:t,state:{type:p},props:{...c,id:d,children:f}}),d,m)});e.s(["ToastTitle",0,c],871707)},76572,e=>{"use strict";e.i(653226);var t=e.i(493276),n=e.i(660872),i=e.i(29551),r=e.i(128376),s=e.i(966669),o=e.i(871707),a=e.i(9957),l=e.i(68875),u=e.i(571660),c=e.i(271645),d=e.i(229315),f=e.i(956789),p=e.i(923706),m=e.i(638396),g=e.i(605083),h=e.i(265858),v=e.i(182531),y=e.i(789579),b=e.i(665458),x=e.i(843476);let w=c.forwardRef(function(e,t){let{toast:n,...i}=e,r=(0,v.useToastProviderContext)(),s=n.positionerProps??f.EMPTY_OBJECT,{render:o,className:a,anchor:l=s.anchor,positionMethod:u=s.positionMethod??"absolute",side:w=s.side??"top",align:E=s.align??"center",sideOffset:T=s.sideOffset??0,alignOffset:S=s.alignOffset??0,collisionBoundary:R=s.collisionBoundary??"clipping-ancestors",collisionPadding:C=s.collisionPadding??5,arrowPadding:A=s.arrowPadding??5,sticky:P=s.sticky??!1,disableAnchorTracking:O=s.disableAnchorTracking??!1,collisionAvoidance:k=s.collisionAvoidance??m.POPUP_COLLISION_AVOIDANCE,style:I,...L}=i,[M,N]=c.useState(null),D=r.useState("toastIndex",n.id),F=r.useState("toastVisibleIndex",n.id),j=(0,d.isElement)(l)?l:null,_=(0,h.useFloatingRootContext)({open:!0,onOpenChange:f.NOOP,elements:{floating:M,reference:j}}),W=(0,p.useAnchorPositioning)({anchor:j,positionMethod:u,floatingRootContext:_,mounted:!0,side:w,sideOffset:T,align:E,alignOffset:S,collisionBoundary:R,collisionPadding:C,sticky:P,arrowPadding:A,disableAnchorTracking:O,keepMounted:!0,collisionAvoidance:k}),V={side:W.side,align:W.align,anchorHidden:W.anchorHidden},H=(0,y.usePositioner)(e,V,{styles:{...W.positionerStyles,[b.index]:"ending"===n.transitionStatus?D:F},transitionStatus:n.transitionStatus,props:L,refs:[t,N]});return(0,x.jsx)(g.ToastPositionerContext.Provider,{value:W,children:H})});var E=e.i(552245);let T=c.forwardRef(function(e,t){let{className:n,render:i,style:r,...s}=e,{arrowRef:o,side:a,align:l,arrowUncentered:u,arrowStyles:c}=(0,g.useToastPositionerContext)();return(0,E.useRenderElement)("div",e,{state:{side:a,align:l,uncentered:u},ref:[t,o],props:[{style:c,"aria-hidden":!0},s]})});var S=e.i(40222);e.s(["Action",()=>l.ToastAction,"Arrow",0,T,"Close",()=>a.ToastClose,"Content",()=>r.ToastContent,"Description",()=>s.ToastDescription,"Portal",()=>u.ToastPortal,"Positioner",0,w,"Provider",()=>t.ToastProvider,"Root",()=>i.ToastRoot,"Title",()=>o.ToastTitle,"Viewport",()=>n.ToastViewport,"createToastManager",0,function(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||(0,S.generateId)("toast");return t({action:"add",options:{...e,id:n,transitionStatus:"starting"}}),n},close(e){t({action:"close",options:{id:e}})},update(e,n){t({action:"update",options:{id:e,updates:n}})},promise(e,n){let i=e;return t({action:"promise",options:{...n,promise:e,setPromise(e){i=e}}}),i}}},"useToastManager",0,function(){let e=(0,v.useToastProviderContext)(),t=e.useState("toasts");return c.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}],402860);var R=e.i(402860);e.s(["Toast",0,R],76572)},653226,e=>{"use strict";e.s([])},571660,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(378680),i=e.i(843476);let r=t.forwardRef(function(e,t){return(0,i.jsx)(n.FloatingPortalLite,{ref:t,...e})});e.s(["ToastPortal",0,r])},605083,e=>{"use strict";e.i(247167);var t=e.i(733332),n=e.i(271645);let i=n.createContext(void 0);e.s(["ToastPositionerContext",0,i,"useToastPositionerContext",0,function(){let e=n.useContext(i);if(void 0===e)throw Error((0,t.default)(84));return e}])},493276,406189,e=>{"use strict";var t=e.i(271645),n=e.i(626300),i=e.i(388940),r=e.i(146376),s=e.i(182531),o=e.i(301252),a=e.i(40222),l=e.i(108868),u=e.i(439957),c=e.i(171009),d=e.i(584446),f=e.i(596296);e.s(["isFocusVisible",()=>f.matchesFocusVisible],406189);var f=f;function p(e){let t=new Map,n=0,i=0;return e.forEach((e,r)=>{let s="ending"===e.transitionStatus;t.set(e.id,{value:e,domIndex:r,visibleIndex:s?-1:n,offsetY:i}),i+=e.height||0,s||(n+=1)}),t}function m(e,t){let n=0;return e.map(e=>{if("ending"===e.transitionStatus)return e;let i=n>=t;return n+=1,e.limited===i?e:{...e,limited:i}})}let g={toasts:e=>e.toasts,isEmpty:e=>0===e.toasts.length,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement};class h extends o.ReactStore{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:p(e.toasts)},{},g)}setViewport=e=>{this.set("viewport",e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let i={timeout:e,limit:t};if(n){let e=m(this.state.toasts,t);i.toasts=e,i.toastMetadata=p(e)}this.update(i)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=g.toastIndex(this.state,e);if(-1===n)return;let i=this.state.toasts[n];t||i?.onRemove?.();let r=[...this.state.toasts];r.splice(n,1),this.setToasts(r)}addToast=e=>{let{timeout:t,limit:n}=this.state,i=e.id||(0,a.generateId)("toast");if(e.id){let t=g.toast(this.state,e.id);if(t)if("ending"===t.transitionStatus)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...i}=e;return this.updateToastInternal(e.id,i,!0,!0),e.id}}let r={...e,id:i,updateKey:0,transitionStatus:"starting"},s=[r,...this.state.toasts];this.setToasts(m(s,n));let o=r.timeout??t;return"loading"!==r.type&&o>0&&this.scheduleTimer(i,o,()=>this.closeToast(i)),g.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),i};updateToast=(e,t)=>{let n=g.toast(this.state,e);n&&"ending"!==n.transitionStatus&&this.updateToastInternal(e,"function"==typeof t?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,i=!1)=>{let{timeout:r,toasts:s}=this.state,o=g.toast(this.state,e);if(!o||"ending"===o.transitionStatus)return;let a={...o,...t,...i&&{updateKey:o.updateKey+1}};this.setToasts(s.map(t=>t.id===e?a:t));let l=a.timeout??r,u=o.timeout??r,c=Object.hasOwn(t,"timeout"),d="ending"!==a.transitionStatus&&"loading"!==a.type&&l>0,f=this.timers.has(e),p=u!==l,m="loading"===o.type;!d&&f?this.clearTimer(e):d&&(!f||p||c||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,l,()=>this.closeToast(e)),g.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t,n=void 0===e,{limit:i,toasts:r}=this.state;if(n)t=r,this.clearTimers();else{let n=g.toast(this.state,e);if(!n)return;t=[n],this.clearTimer(e)}let s=m(r.map(t=>n||t.id===e?{...t,transitionStatus:"ending",height:0}:t),i);this.setToasts(s,!s.some(e=>"ending"!==e.transitionStatus)),t.forEach(e=>{"ending"!==e.transitionStatus&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=(0,c.resolvePromiseOptions)(t.loading),i=this.addToast({...n,type:"loading"}),r=e.then(e=>{let n=(0,c.resolvePromiseOptions)(t.success,e);return this.updateToast(i,{...n,type:"success",timeout:n.timeout}),e}).catch(e=>{let n=(0,c.resolvePromiseOptions)(t.error,e);return this.updateToast(i,{...n,type:"error",timeout:n.timeout}),Promise.reject(e)});return({}).hasOwnProperty.call(t,"setPromise")&&t.setPromise(r),r};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=u.Timeout.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if("touch"!==e.pointerType)return;let t=(0,d.getTarget)(e);(0,d.contains)(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let i=Date.now(),r=g.expandedOrOutOfFocus(this.state)?void 0:u.Timeout.create();r?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:r,start:i,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){let t=this.timers.get(e);t?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){0===this.timers.size&&(this.areTimersPaused=!1)}setToasts(e,t=0===e.length){let n={toasts:e,toastMetadata:p(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=(0,d.activeElement)((0,l.ownerDocument)(this.state.viewport));if(!this.state.viewport||!(0,d.contains)(this.state.viewport,t)||!(0,f.matchesFocusVisible)(t))return;if(void 0===e)return void this.restoreFocusToPrevElement();let n=g.toasts(this.state),i=g.toastIndex(this.state,e),r=(e,t)=>{for(let i=e;i>=0&&i<n.length;i+=t)if("ending"!==n[i].transitionStatus)return n[i];return null},s=r(i+1,1)??r(i-1,-1);s?s.ref?.current?.focus():this.restoreFocusToPrevElement()}}var v=e.i(843476);function y(e){let{store:t,timeout:n,limit:i}=e;return(0,r.useIsoLayoutEffect)(()=>{t.syncProviderProps(n,i)},[t,n,i]),null}e.s(["ToastProvider",0,function(e){let{children:r,timeout:o=5e3,limit:a=3,toastManager:l}=e,u=(0,i.useRefWithInit)(()=>new h({timeout:o,limit:a,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return(0,n.useOnMount)(u.disposeEffect),t.useEffect(function(){if(l)return l[" subscribe"](({action:e,options:t})=>{let n=t.id;"promise"===e&&t.promise?u.promiseToast(t.promise,t):"update"===e&&n?u.updateToast(n,t.updates):"close"===e?u.closeToast(n):u.addToast(t)})},[u,l]),(0,v.jsxs)(s.ToastContext.Provider,{value:u,children:[(0,v.jsx)(y,{store:u,timeout:o,limit:a}),r]})}],493276)},182531,e=>{"use strict";e.i(247167);var t=e.i(733332),n=e.i(271645);let i=n.createContext(void 0);e.s(["ToastContext",0,i,"useToastProviderContext",0,function(){let e=n.useContext(i);if(!e)throw Error((0,t.default)(73));return e}])},29551,128376,e=>{"use strict";var t=e.i(271645),n=e.i(174080),i=e.i(574735),r=e.i(108868),s=e.i(144394),o=e.i(146376),a=e.i(667865),l=e.i(584446),u=e.i(847391),c=e.i(474354),d=e.i(182531),f=e.i(552245),p=e.i(137584),m=e.i(638396),g=e.i(308760),h=e.i(49072),v=e.i(665458),y=e.i(253335);y.TransitionStatusDataAttributes.startingStyle,y.TransitionStatusDataAttributes.endingStyle;var b=e.i(843476);let x={...c.transitionStatusMapping,swipeDirection:e=>e?{"data-swipe-direction":e}:null},w=`${m.BASE_UI_SWIPE_IGNORE_SELECTOR},${m.LEGACY_SWIPE_IGNORE_SELECTOR}`,E=t.forwardRef(function(e,c){let m,y,{toast:E,render:T,className:S,swipeDirection:R=["down","right"],style:C,...A}=e,P=E.positionerProps?.anchor!==void 0,O=[];P||(O=Array.isArray(R)?R:[R]);let k=O.length>0,I=(0,d.useToastProviderContext)(),[L,M]=t.useState(void 0),[N,D]=t.useState(!1),[F,j]=t.useState(!1),[_,W]=t.useState({x:0,y:0}),[V,H]=t.useState({x:0,y:0,scale:1}),[z,B]=t.useState(),[$,Y]=t.useState(),[U,q]=t.useState(null),K=t.useRef(null),G=t.useRef(void 0),X=t.useRef({x:0,y:0}),J=t.useRef({x:0,y:0,scale:1}),Q=t.useRef(void 0),Z=t.useRef(0),ee=t.useRef(!1),et=t.useRef({x:0,y:0}),en=t.useRef(!1),ei=t.useRef({x:0,y:0}),er=t.useRef(null),es=t.useRef(null),eo=I.useState("toastIndex",E.id),ea=I.useState("toastVisibleIndex",E.id),el=I.useState("toastOffsetY",E.id),eu=I.useState("focused"),ec=I.useState("expanded");(0,p.useOpenChangeComplete)({open:"ending"!==E.transitionStatus,ref:K,onComplete(){"ending"===E.transitionStatus&&I.removeToast(E.id)}});let ed=(0,a.useStableCallback)((e=!1)=>{let t=K.current;if(!t)return;let i=t.style.height;t.style.height="auto";let r=t.offsetHeight;function s(){I.updateToastInternal(E.id,{ref:K,height:r,transitionStatus:void 0})}t.style.height=i,e?n.flushSync(s):s()});function ef(e){ei.current=e,W(e)}(0,o.useIsoLayoutEffect)(()=>{let e=G.current;("starting"===E.transitionStatus||e!==E.id)&&(void 0!==e&&(M(void 0),H({x:0,y:0,scale:1}),ef({x:0,y:0})),G.current=E.id,ed())},[ed,E.id,E.transitionStatus]),(0,o.useIsoLayoutEffect)(()=>()=>{es.current?.abort()},[]);let ep=(0,a.useStableCallback)(e=>{let t;if(e.pointerId!==er.current)return;er.current=null,es.current?.abort(),es.current=null,D(!1),j(!1),q(null);let n=J.current;if("pointercancel"===e.type||ee.current){ef({x:n.x,y:n.y}),M(void 0);return}let i=ei.current,r=i.x-n.x,s=i.y-n.y;for(let e of O)if((0,g.getDisplacement)(e,r,s)>40){t=e;break}t?(M(t),I.closeToast(E.id)):(ef({x:n.x,y:n.y}),M(void 0))});t.useEffect(()=>{let e=K.current;if(k&&e)return(0,i.addEventListener)(e,"touchmove",function(t){null!==er.current&&(0,l.contains)(e,(0,l.getTarget)(t))&&t.preventDefault()},{passive:!1})},[k]);let em="high"===E.priority,eg={role:em?"alertdialog":"dialog",tabIndex:0,"aria-modal":!1,"aria-labelledby":z,"aria-describedby":$,"aria-hidden":!!em&&!eu||void 0,onPointerDown:k?function(e){if(0!==e.button)return;"touch"===e.pointerType&&I.pauseTimers();let t=(0,l.getTarget)(e.nativeEvent);if(t?.closest(`button,a,input,textarea,[role="button"],${w}`))return;ee.current=!1,Q.current=void 0,Z.current=0,er.current=e.pointerId,X.current={x:e.clientX,y:e.clientY},et.current=X.current;let n=e.currentTarget,i=(0,h.getElementTransform)(n);J.current=i,H(i),ef({x:i.x,y:i.y}),I.set("hovering",!0),D(!0),j(!1),q(null),en.current=!0,es.current?.abort();let s=new AbortController;es.current=s;let o=(0,r.ownerDocument)(n);o.addEventListener("pointerup",ep,{signal:s.signal}),o.addEventListener("pointercancel",ep,{signal:s.signal}),n.setPointerCapture?.(e.pointerId)}:void 0,onPointerMove:k?function(e){let t,n,i,r;if(e.pointerId!==er.current)return;e.preventDefault(),en.current&&(X.current={x:e.clientX,y:e.clientY},en.current=!1);let{clientY:s,clientX:o,movementX:a,movementY:l}=e;(l<0&&s>et.current.y||l>0&&s<et.current.y)&&(et.current={x:et.current.x,y:s}),(a<0&&o>et.current.x||a>0&&o<et.current.x)&&(et.current={x:o,y:et.current.y});let u=o-X.current.x,c=s-X.current.y,d=s-et.current.y,f=o-et.current.x,p=U;if(!F&&Math.sqrt(u*u+c*c)>=1){j(!0);let e=O.includes("left")||O.includes("right"),t=O.includes("up")||O.includes("down");e&&t&&q(p=Math.abs(u)>Math.abs(c)?"horizontal":"vertical")}if(Q.current){let e=Q.current,t=(0,g.getDisplacement)(e,f,d);t>40?(ee.current=!1,M(e)):O.includes("left")&&O.includes("right")||O.includes("up")&&O.includes("down")||!(Z.current-t>=10)||(ee.current=!0)}else"vertical"===p?c>0?t="down":c<0&&(t="up"):"horizontal"===p?u>0?t="right":u<0&&(t="left"):t=Math.abs(u)>=Math.abs(c)?u>0?"right":"left":c>0?"down":"up",t&&O.includes(t)&&(Q.current=t,Z.current=(0,g.getDisplacement)(t,u,c),M(t));let m=(n=e=>e>0?e**.5:-(Math.abs(e)**.5),i=u>0&&!O.includes("right")||u<0&&!O.includes("left"),r=c>0&&!O.includes("down")||c<0&&!O.includes("up"),{x:i?n(u):u,y:r?n(c):c}),h=J.current.x,v=J.current.y,y=O.includes("left")||O.includes("right"),b=O.includes("up")||O.includes("down");"vertical"!==p&&y&&(h+=m.x),"horizontal"!==p&&b&&(v+=m.y),ef({x:h,y:v})}:void 0,onPointerUp:k?ep:void 0,onPointerCancel:k?ep:void 0,onKeyDown:function(e){"Escape"===e.key&&K.current&&(0,l.contains)(K.current,(0,l.activeElement)((0,r.ownerDocument)(K.current)))&&I.closeToast(E.id)},inert:(0,s.inertValue)(E.limited),style:{...(m=_.x-V.x,y=_.y-V.y,{transition:N?"none":void 0,transform:N?`translateX(${_.x}px) translateY(${_.y}px) scale(${V.scale})`:void 0,[v.swipeMovementX]:`${m}px`,[v.swipeMovementY]:`${y}px`}),[v.index]:"ending"===E.transitionStatus?eo:ea,[v.offsetY]:`${el}px`,[v.height]:E.height?`${E.height}px`:void 0}},eh=t.useMemo(()=>({toast:E,setTitleId:B,setDescriptionId:Y,recalculateHeight:ed,visibleIndex:ea,expanded:ec}),[E,B,Y,ed,ea,ec]),ev={transitionStatus:E.transitionStatus,expanded:ec,limited:E.limited||!1,type:E.type,swiping:N,swipeDirection:L},ey=(0,f.useRenderElement)("div",e,{ref:[c,K],state:ev,stateAttributesMapping:x,props:[eg,A]});return(0,b.jsx)(u.ToastRootContext.Provider,{value:eh,children:ey})});e.s(["ToastRoot",0,E],29551);let T=t.forwardRef(function(e,n){let{render:i,className:r,style:s,...a}=e,{visibleIndex:l,expanded:c,recalculateHeight:d}=(0,u.useToastRootContext)(),p=t.useRef(null);return(0,o.useIsoLayoutEffect)(()=>{d();let e=p.current;if(!e||"function"!=typeof ResizeObserver||"function"!=typeof MutationObserver)return;let t=new ResizeObserver(()=>d(!0)),n=new MutationObserver(()=>d(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[d]),(0,f.useRenderElement)("div",e,{ref:[n,p],state:{expanded:c,behind:l>0},props:a})});e.s(["ToastContent",0,T],128376)},847391,e=>{"use strict";e.i(247167);var t=e.i(733332),n=e.i(271645);let i=n.createContext(void 0);e.s(["ToastRootContext",0,i,"useToastRootContext",0,function(){let e=n.useContext(i);if(!e)throw Error((0,t.default)(66));return e}])},665458,e=>{"use strict";e.s(["height",0,"--toast-height","index",0,"--toast-index","offsetY",0,"--toast-offset-y","swipeMovementX",0,"--toast-swipe-movement-x","swipeMovementY",0,"--toast-swipe-movement-y"])},171009,e=>{"use strict";e.s(["resolvePromiseOptions",0,function(e,t){if("string"==typeof e)return{description:e};if("function"==typeof e){let n=e(t);return"string"==typeof n?{description:n}:n}return e}])},660872,e=>{"use strict";var t=e.i(271645),n=e.i(574735),i=e.i(365420),r=e.i(108868),s=e.i(333848),o=e.i(502077),a=e.i(439957),l=e.i(584446),u=e.i(152535),c=e.i(182531),d=e.i(552245),f=e.i(406189),p=e.i(843476);let m=t.forwardRef(function(e,m){let{render:g,className:h,style:v,children:y,...b}=e,x=(0,c.useToastProviderContext)(),w=(0,a.useTimeout)(),E=t.useRef(!1),T=t.useRef(!1),S=t.useRef(!1),R=x.useState("isEmpty"),C=x.useState("toasts"),A=x.useState("focused"),P=x.useState("expanded"),O=x.useState("prevFocusElement"),k=C[0]?.height,I=C.some(e=>"ending"===e.transitionStatus),L=C.filter(e=>"high"===e.priority);function M(){x.state.toasts.some(e=>"ending"===e.transitionStatus)||S.current||!T.current||(x.state.isWindowFocused&&x.resumeTimers(),x.set("hovering",!1),T.current=!1)}function N(){x.pauseTimers(),x.set("hovering",!0),T.current=!1}function D(e){"touch"===e.pointerType&&(S.current=!1,M())}function F(){if(E.current){E.current=!1;return}!A&&(0,f.isFocusVisible)((0,l.activeElement)((0,r.ownerDocument)(x.state.viewport)))&&(x.set("focused",!0),x.pauseTimers())}t.useEffect(()=>{let e=x.state.viewport;if(!e||R)return;let t=(0,s.ownerWindow)(e),o=(0,r.ownerDocument)(e);return(0,i.mergeCleanups)((0,n.addEventListener)(t,"keydown",function(t){"F6"===t.key&&(0,l.getTarget)(t)!==e&&(t.preventDefault(),x.set("prevFocusElement",(0,l.activeElement)(o)),e?.focus({preventScroll:!0}),x.pauseTimers(),x.set("focused",!0))}),(0,n.addEventListener)(t,"blur",function(e){(0,l.getTarget)(e)===t&&(x.set("isWindowFocused",!1),x.pauseTimers())},!0),(0,n.addEventListener)(t,"focus",function(n){if(n.relatedTarget)return;let i=(0,l.getTarget)(n),s=(0,l.activeElement)((0,r.ownerDocument)(e));i!==t&&(0,l.contains)(e,i)&&(0,f.isFocusVisible)(s)||x.resumeTimers(),w.start(0,()=>x.set("isWindowFocused",!0))},!0),(0,n.addEventListener)(o,"pointerdown",x.handleDocumentPointerDown,!0))},[x,w,R]),t.useEffect(M,[I,x]);let j={tabIndex:-1,role:"region","aria-live":"polite","aria-atomic":!1,"aria-relevant":"additions text","aria-label":"Notifications",onMouseEnter:N,onMouseMove:N,onMouseLeave:function(){T.current=!0,M()},onFocus:F,onBlur:function(e){!(!A||(0,l.contains)(x.state.viewport,e.relatedTarget))&&(x.set("focused",!1),x.state.isWindowFocused&&x.resumeTimers())},onKeyDown:function(e){"Tab"===e.key&&e.shiftKey&&(0,l.getTarget)(e.nativeEvent)===x.state.viewport&&(e.preventDefault(),x.restoreFocusToPrevElement())},onClick:F,onPointerDown:function(e){"touch"===e.pointerType&&(S.current=!0)},onPointerUp:D,onPointerCancel:D,style:{"--toast-frontmost-height":k?`${k}px`:void 0}},_=!R&&O&&(0,p.jsx)(u.FocusGuard,{onFocus:function(e){E.current=!0;let t=e.relatedTarget===x.state.viewport?C.find(e=>"ending"!==e.transitionStatus&&!e.limited):void 0;t?t.ref?.current?.focus():x.restoreFocusToPrevElement()}}),W=(0,d.useRenderElement)("div",e,{ref:[m,x.setViewport],state:{expanded:P},props:[j,b,{children:(0,p.jsxs)(t.Fragment,{children:[_,y,_]})}]});return(0,p.jsxs)(t.Fragment,{children:[_,W,!A&&L.length>0&&(0,p.jsx)("div",{style:o.visuallyHidden,children:L.map(e=>(0,p.jsxs)("div",{role:"alert","aria-atomic":!0,children:[(0,p.jsx)("div",{children:e.title}),(0,p.jsx)("div",{children:e.description})]},e.id))})]})});e.s(["ToastViewport",0,m],660872)},38380,e=>{"use strict";var t=e.i(180862);let n=t.startingStyle,i=t.endingStyle;e.s(["align",0,"data-align","anchorHidden",0,"data-anchor-hidden","closed",0,"data-closed","endingStyle",0,i,"open",0,"data-open","side",0,"data-side","startingStyle",0,n])},415618,e=>{"use strict";e.s(["popupOpen",0,"data-popup-open","pressed",0,"data-pressed"])},378680,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(174080),i=e.i(726674),r=e.i(843476);let s=t.forwardRef(function(e,s){let{children:o,container:a,className:l,render:u,style:c,...d}=e,{node:f,subtree:p}=(0,i.useFloatingPortalNode)({container:a,ref:s,componentProps:e,elementProps:d});return p||f?(0,r.jsxs)(t.Fragment,{children:[p,f&&n.createPortal(o,f)]}):null});e.s(["FloatingPortalLite",0,s])},152535,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(146376),i=e.i(328744),r=e.i(502077),s=e.i(843476);let o=t.forwardRef(function(e,o){let[a,l]=t.useState();return(0,n.useIsoLayoutEffect)(()=>{i.platform.screenReader.voiceOver&&i.platform.engine.webkit&&l("button")},[]),(0,s.jsx)("span",{...e,ref:o,style:r.visuallyHidden,"aria-hidden":!a||void 0,...{tabIndex:0,role:a},"data-base-ui-focus-guard":""})});e.s(["FocusGuard",0,o])},49072,e=>{"use strict";var t=e.i(333848);e.s(["getElementTransform",0,function(e,n){let i=(n??(0,t.ownerWindow)(e).getComputedStyle(e)).transform,r=0,s=0,o=1;if(i&&"none"!==i){let e=i.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],s=t[5],o=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],s=t[13],o=t[0])}}return{x:r,y:s,scale:o}}])},879938,e=>{"use strict";var t=e.i(474354),n=e.i(38380),i=e.i(415618);let r={[i.popupOpen]:""},s={[i.popupOpen]:"",[i.pressed]:""},o={[n.open]:""},a={[n.closed]:""},l={[n.anchorHidden]:""},u={open:e=>e?o:a,anchorHidden:e=>e?l:null},c={...u,...t.transitionStatusMapping};e.s(["popupStateMapping",0,u,"popupTransitionStateMapping",0,c,"pressableTriggerOpenStateMapping",0,{open:e=>e?s:null},"triggerOpenStateMapping",0,{open:e=>e?r:null}])},990627,e=>{"use strict";e.i(247167),e.s(["PopupTriggerMap",0,class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}])},594603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},789579,e=>{"use strict";var t=e.i(879938),n=e.i(552245),i=e.i(253984);e.s(["usePositioner",0,function(e,r,{styles:s,transitionStatus:o,props:a,refs:l,hidden:u,inert:c=!1}){let d={...s};return c&&(d.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:r,ref:l,props:[{role:"presentation",hidden:u,style:d},(0,i.getDisabledMountTransitionStyles)(o),a],stateAttributesMapping:t.popupStateMapping})}])},308760,e=>{"use strict";e.i(271645),e.s(["getDisplacement",0,function(e,t,n){switch(e){case"up":return-n;case"down":return n;case"left":return-t;case"right":return t;default:return 0}}])},574735,e=>{"use strict";e.s(["addEventListener",0,function(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}])},956789,e=>{"use strict";let t=Object.freeze([]),n=Object.freeze({});e.s(["EMPTY_ARRAY",0,t,"EMPTY_OBJECT",0,n,"NOOP",0,function(){}])},896499,e=>{"use strict";let t;var n=e.i(271645),i=e.i(388940);let r=[];function s(e){let n=(n,s)=>{let a,l=(0,i.useRefWithInit)(o).current;try{for(let e of(t=l,r))e.before(l);for(let t of(a=e(n,s),r))t.after(l);l.didInitialize=!0}finally{t=void 0}return a};return n.displayName=e.displayName||e.name,n}function o(){return{didInitialize:!1}}e.s(["fastComponent",0,s,"fastComponentRef",0,function(e){return n.forwardRef(s(e))},"getInstance",0,function(){return t},"register",0,function(e){r.push(e)}])},733332,e=>{"use strict";let t=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["default",0,t])},40222,e=>{"use strict";let t=0;e.s(["generateId",0,function(e){return t+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${t}`}])},978554,e=>{"use strict";var t=e.i(271645),n=e.i(958321);e.s(["getReactElementRef",0,function(e){if(!t.isValidElement(e))return null;let i=e.props;return((0,n.isReactVersionAtLeast)(19)?i?.ref:e.ref)??null}])},144394,e=>{"use strict";var t=e.i(958321);e.s(["inertValue",0,function(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}])},365420,e=>{"use strict";e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}])},435241,e=>{"use strict";e.s(["mergeObjects",0,function(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}])},108868,e=>{"use strict";e.s(["ownerDocument",0,function(e){return e?.ownerDocument||document}])},328744,e=>{"use strict";e.s([],564949),e.i(564949);let{userAgent:t,platform:n,maxTouchPoints:i}="u"<typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},r=t.toLowerCase(),s=n.toLowerCase(),o=/^i(os$|p)/.test(s)||"macintel"===s&&i>1,a="android",l=s===a||r.includes(a),u=!o&&s.startsWith("mac"),c=s.startsWith("win"),d=!l&&/^(linux|chrome os)/.test(s),f=u||o;e.s(["android",0,l,"apple",0,f,"ios",0,o,"linux",0,d,"mac",0,u,"windows",0,c],503720);var p=e.i(503720);let m="u">typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none"),g=!m&&r.includes("firefox"),h=!m&&r.includes("chrom");e.s(["blink",0,h,"gecko",0,g,"webkit",0,m],879850);var v=e.i(879850);e.s(["voiceOver",0,f],999170);var y=e.i(999170);let b=/jsdom|happydom/.test(r);e.s(["jsdom",0,b],736174);var x=e.i(736174);e.s(["iOS",0,"@supports (-webkit-touch-callout: none)"],971351);var w=e.i(971351);e.s(["engine",0,v,"env",0,x,"mediaQuery",0,w,"os",0,p,"screenReader",0,y],179214);var E=e.i(179214);e.s(["platform",0,E],328744)},958321,e=>{"use strict";let t=parseInt(e.i(271645).version,10);e.s(["isReactVersionAtLeast",0,function(e){return t>=e}])},214553,e=>{"use strict";let t={...e.i(271645)};e.s(["SafeReact",0,t])},584446,e=>{"use strict";var t=e.i(229315);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,n){if(!e||!n)return!1;let i=n.getRootNode?.();if(e.contains(n))return!0;if(i&&(0,t.isShadowRoot)(i)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}])},301252,e=>{"use strict";e.i(247167);var t=e.i(271645),n=e.i(714935),i=e.i(334346),r=e.i(667865),s=e.i(146376),o=e.i(956789);class a extends n.Store{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,n){t.useDebugValue(e);let i=this;(0,s.useIsoLayoutEffect)(()=>{i.state[e]!==n&&i.set(e,n)},[i,e,n])}useSyncedValueWithCleanup(e,t){let n=this;(0,s.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,s.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,n){t.useDebugValue(e);let i=this,r=void 0!==n;(0,s.useIsoLayoutEffect)(()=>{r&&!Object.is(i.state[e],n)&&i.setState({...i.state,[e]:n})},[i,e,n,r])}select(e,t,n,i){return(0,this.selectors[e])(this.state,t,n,i)}useState(e,n,r,s){return t.useDebugValue(e),(0,i.useStore)(this,this.selectors[e],n,r,s)}useContextCallback(e,n){t.useDebugValue(e);let i=(0,r.useStableCallback)(n??o.NOOP);this.context[e]=i}useStateSetter(e){let n=t.useRef(void 0);return void 0===n.current&&(n.current=t=>{this.set(e,t)}),n.current}observe(e,t){let n,i=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(i,i,this),this.subscribe(e=>{let r=n(e);if(!Object.is(i,r)){let e=i;i=r,t(r,e,this)}})}}e.s(["ReactStore",0,a])},714935,334346,e=>{"use strict";var t=e.i(271645),n=e.i(802239),i=e.i(430224),r=e.i(958321),s=e.i(896499);let o=(0,r.isReactVersionAtLeast)(19)?function(e,i,r,o,a){let l,u=(0,s.getInstance)();if(!u){let s;return s=t.useCallback(()=>i(e.getSnapshot(),r,o,a),[e,i,r,o,a]),(0,n.useSyncExternalStore)(e.subscribe,s,s)}let c=u.syncIndex;return u.syncIndex+=1,u.didInitialize?(l=u.syncHooks[c]).store===e&&l.selector===i&&Object.is(l.a1,r)&&Object.is(l.a2,o)&&Object.is(l.a3,a)||(l.store!==e&&(u.didChangeStore=!0),l.store=e,l.selector=i,l.a1=r,l.a2=o,l.a3=a,l.value=i(e.getSnapshot(),r,o,a)):(l={store:e,selector:i,a1:r,a2:o,a3:a,value:i(e.getSnapshot(),r,o,a)},u.syncHooks.push(l)),l.value}:function(e,t,n,r,s){return(0,i.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,s))};function a(e,t,n,i,r){return o(e,t,n,i,r)}(0,s.register)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let i=e.syncHooks[n],r=i.selector(i.store.state,i.a1,i.a2,i.a3);Object.is(i.value,r)||(t=!0,i.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let i=[];for(let e of n)i.push(e.subscribe(t));return()=>{for(let e of i)e()}}),(0,n.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["useStore",0,a],334346),e.s(["Store",0,class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,i){return a(this,e,t,n,i)}}],714935)},708445,e=>{"use strict";e.i(247167);var t=e.i(388940),n=e.i(626300);let i=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class r{static create(){return new r}static request(e){return i.request(e)}static cancel(e){return i.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=i.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(i.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,r,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},883977,e=>{"use strict";var t=e.i(271645),n=e.i(214553);let i=0,r=n.SafeReact.useId;e.s(["useId",0,function(e,n){if(void 0!==r){let t=r();return e??(n?`${n}-${t}`:t)}return function(e,n="mui"){let[r,s]=t.useState(e),o=e||r;return t.useEffect(()=>{null==r&&(i+=1,s(`${n}-${i}`))},[r,n]),o}(e,n)}])},146376,e=>{"use strict";var t=e.i(271645);let n="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,n])},828918,e=>{"use strict";var t=e.i(388940);function n(){return{callback:null,cleanup:null,refs:[]}}function i(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let i=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let r=t[e];if(null!=r)switch(typeof r){case"function":{let t=r(n);"function"==typeof t&&(i[e]=t);break}case"object":r.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=i[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}e.s(["useMergedRefs",0,function(e,r,s,o){var a,l,u,c,d;let f=(0,t.useRefWithInit)(n).current;return a=f,l=e,u=r,c=s,d=o,(a.refs[0]!==l||a.refs[1]!==u||a.refs[2]!==c||a.refs[3]!==d)&&i(f,[e,r,s,o]),f.callback},"useMergedRefsN",0,function(e){var r,s;let o=(0,t.useRefWithInit)(n).current;return r=o,s=e,(r.refs.length!==s.length||r.refs.some((e,t)=>e!==s[t]))&&i(o,e),o.callback}])},626300,e=>{"use strict";var t=e.i(271645),n=e.i(956789);e.s(["useOnMount",0,function(e){t.useEffect(e,n.EMPTY_ARRAY)}])},388940,e=>{"use strict";var t=e.i(271645);let n={};e.s(["useRefWithInit",0,function(e,i){let r=t.useRef(n);return r.current===n&&(r.current=e(i)),r}])},667865,e=>{"use strict";e.i(247167);var t=e.i(214553),n=e.i(388940);let i=t.SafeReact.useInsertionEffect,r=i&&i!==t.SafeReact.useLayoutEffect?i:e=>e();function s(){let e={next:void 0,callback:o,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function o(){}e.s(["useStableCallback",0,function(e){let t=(0,n.useRefWithInit)(s).current;return t.next=e,r(t.effect),t.trampoline}])},439957,e=>{"use strict";var t=e.i(388940),n=e.i(626300);class i{static create(){return new i}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,i,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(i.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},446265,e=>{"use strict";var t=e.i(146376),n=e.i(388940);function i(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let r=(0,n.useRefWithInit)(i,e).current;return r.next=e,(0,t.useIsoLayoutEffect)(r.effect),r}])},502077,e=>{"use strict";let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},i={...t,position:"absolute"};e.s(["visuallyHidden",0,n,"visuallyHiddenInput",0,i])},69415,e=>{"use strict";e.s(["warn",0,function(){}],69415)},953760,258950,e=>{"use strict";var t=e.i(343084);function n(e,n,i){let r,{reference:s,floating:o}=e,a=(0,t.getSideAxis)(n),l=(0,t.getAlignmentAxis)(n),u=(0,t.getAxisLength)(l),c=(0,t.getSide)(n),d=s.x+s.width/2-o.width/2,f=s.y+s.height/2-o.height/2,p=s[u]/2-o[u]/2;switch(c){case"top":r={x:d,y:s.y-o.height};break;case"bottom":r={x:d,y:s.y+s.height};break;case"right":r={x:s.x+s.width,y:f};break;case"left":r={x:s.x-o.width,y:f};break;default:r={x:s.x,y:s.y}}let m=(0,t.getAlignment)(n);return m&&(r[l]+=p*("end"===m?1:-1)*(i&&"y"===a?-1:1)),r}async function i(e,n){var i;void 0===n&&(n={});let{x:r,y:s,platform:o,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=(0,t.evaluate)(n,e),g=(0,t.getPaddingObject)(m),h=l[p?"floating"===f?"reference":"floating":f],v=(0,t.rectToClientRect)(await o.getClippingRect({element:null==(i=await (null==o.isElement?void 0:o.isElement(h)))||i?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===f?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),x=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=(0,t.rectToClientRect)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}let r=async(e,t,r)=>{let{placement:s="bottom",strategy:o="absolute",middleware:a=[],platform:l}=r,u=l.detectOverflow?l:{...l,detectOverflow:i},c=await (null==l.isRTL?void 0:l.isRTL(t)),d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=n(d,s,c),m=s,g=0,h={};for(let i=0;i<a.length;i++){let r=a[i];if(!r)continue;let{name:v,fn:y}=r,{x:b,y:x,data:w,reset:E}=await y({x:f,y:p,initialPlacement:s,placement:m,strategy:o,middlewareData:h,rects:d,platform:u,elements:{reference:e,floating:t}});f=null!=b?b:f,p=null!=x?x:p,h[v]={...h[v],...w},E&&g<50&&(g++,"object"==typeof E&&(E.placement&&(m=E.placement),E.rects&&(d=!0===E.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=n(d,m,c)),i=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:h}};function s(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function o(e){return t.sides.some(t=>e[t]>=0)}function a(e){let n=(0,t.min)(...e.map(e=>e.left)),i=(0,t.min)(...e.map(e=>e.top));return{x:n,y:i,width:(0,t.max)(...e.map(e=>e.right))-n,height:(0,t.max)(...e.map(e=>e.bottom))-i}}let l=new Set(["left","top"]);async function u(e,n){let{placement:i,platform:r,elements:s}=e,o=await (null==r.isRTL?void 0:r.isRTL(s.floating)),a=(0,t.getSide)(i),u=(0,t.getAlignment)(i),c="y"===(0,t.getSideAxis)(i),d=l.has(a)?-1:1,f=o&&c?-1:1,p=(0,t.evaluate)(n,e),{mainAxis:m,crossAxis:g,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof h&&(g="end"===u?-1*h:h),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}var c=e.i(229315);function d(e){let n=(0,c.getComputedStyle)(e),i=parseFloat(n.width)||0,r=parseFloat(n.height)||0,s=(0,c.isHTMLElement)(e),o=s?e.offsetWidth:i,a=s?e.offsetHeight:r,l=(0,t.round)(i)!==o||(0,t.round)(r)!==a;return l&&(i=o,r=a),{width:i,height:r,$:l}}function f(e){return(0,c.isElement)(e)?e:e.contextElement}function p(e){let n=f(e);if(!(0,c.isHTMLElement)(n))return(0,t.createCoords)(1);let i=n.getBoundingClientRect(),{width:r,height:s,$:o}=d(n),a=(o?(0,t.round)(i.width):i.width)/r,l=(o?(0,t.round)(i.height):i.height)/s;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let m=(0,t.createCoords)(0);function g(e){let t=(0,c.getWindow)(e);return(0,c.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function h(e,n,i,r){var s;void 0===n&&(n=!1),void 0===i&&(i=!1);let o=e.getBoundingClientRect(),a=f(e),l=(0,t.createCoords)(1);n&&(r?(0,c.isElement)(r)&&(l=p(r)):l=p(e));let u=(void 0===(s=i)&&(s=!1),r&&s&&r===(0,c.getWindow)(a))?g(a):(0,t.createCoords)(0),d=(o.left+u.x)/l.x,m=(o.top+u.y)/l.y,h=o.width/l.x,v=o.height/l.y;if(a&&r){let e=(0,c.getWindow)(a),t=(0,c.isElement)(r)?(0,c.getWindow)(r):r,n=e,i=(0,c.getFrameElement)(n);for(;i&&t!==n;){let e=p(i),t=i.getBoundingClientRect(),r=(0,c.getComputedStyle)(i),s=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;d*=e.x,m*=e.y,h*=e.x,v*=e.y,d+=s,m+=o,n=(0,c.getWindow)(i),i=(0,c.getFrameElement)(n)}}return(0,t.rectToClientRect)({width:h,height:v,x:d,y:m})}function v(e,t){let n=(0,c.getNodeScroll)(e).scrollLeft;return t?t.left+n:h((0,c.getDocumentElement)(e)).left+n}function y(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-v(e,n),y:n.top+t.scrollTop}}function b(e,n,i){var r;let s;if("viewport"===n||"layoutViewport"===n)s=function(e,t,n){void 0===n&&(n="viewport");let i="layoutViewport"===n,r=(0,c.getWindow)(e),s=(0,c.getDocumentElement)(e),o=r.visualViewport,a=s.clientWidth,l=s.clientHeight,u=0,d=0;if(o){let e=!(0,c.isWebKit)()||"fixed"===t;i?e||(u=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,e&&(u=o.offsetLeft,d=o.offsetTop))}if(0>=v(s)){let e=s.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(s.clientWidth-t.clientWidth-i),o="stable both-edges"===getComputedStyle(s).scrollbarGutter?r/2:r;o<=25&&(a-=o)}return{width:a,height:l,x:u,y:d}}(e,i,n);else if("document"===n){let n,i,o,a,l,u;r=(0,c.getDocumentElement)(e),n=(0,c.getNodeScroll)(r),i=r.ownerDocument.body,o=(0,t.max)(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),a=(0,t.max)(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight),l=-n.scrollLeft+v(r),u=-n.scrollTop,"rtl"===(0,c.getComputedStyle)(i).direction&&(l+=(0,t.max)(r.clientWidth,i.clientWidth)-o),s={width:o,height:a,x:l,y:u}}else if((0,c.isElement)(n)){let e,t,r,o,a,l;t=(e=h(n,!0,"fixed"===i)).top+n.clientTop,r=e.left+n.clientLeft,o=p(n),a=n.clientWidth*o.x,l=n.clientHeight*o.y,s={width:a,height:l,x:r*o.x,y:t*o.y}}else{let t=g(e);s={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return(0,t.rectToClientRect)(s)}function x(e){return"static"===(0,c.getComputedStyle)(e).position}function w(e,t){if(!(0,c.isHTMLElement)(e)||"fixed"===(0,c.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,c.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function E(e,t){let n=(0,c.getWindow)(e);if((0,c.isTopLayer)(e))return n;if(!(0,c.isHTMLElement)(e)){let t=(0,c.getParentNode)(e);for(;t&&!(0,c.isLastTraversableNode)(t);){if((0,c.isElement)(t)&&!x(t))return t;t=(0,c.getParentNode)(t)}return n}let i=w(e,t);for(;i&&(0,c.isTableElement)(i)&&x(i);)i=w(i,t);return i&&(0,c.isLastTraversableNode)(i)&&x(i)&&!(0,c.isContainingBlock)(i)?n:i||(0,c.getContainingBlock)(e)||n}let T=async function(e){let n=this.getOffsetParent||E,i=this.getDimensions,r=await i(e.floating);return{reference:function(e,n,i){let r=(0,c.isHTMLElement)(n),s=(0,c.getDocumentElement)(n),o="fixed"===i,a=h(e,!0,o,n),l={scrollLeft:0,scrollTop:0},u=(0,t.createCoords)(0);if((r||!o)&&(("body"!==(0,c.getNodeName)(n)||(0,c.isOverflowElement)(s))&&(l=(0,c.getNodeScroll)(n)),r)){let e=h(n,!0,o,n);u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}!r&&s&&(u.x=v(s));let d=!s||r||o?(0,t.createCoords)(0):y(s,l);return{x:a.left+l.scrollLeft-u.x-d.x,y:a.top+l.scrollTop-u.y-d.y,width:a.width,height:a.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},S={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:i,offsetParent:r,strategy:s}=e,o="fixed"===s,a=(0,c.getDocumentElement)(r),l=!!n&&(0,c.isTopLayer)(n.floating);if(r===a||l&&o)return i;let u={scrollLeft:0,scrollTop:0},d=(0,t.createCoords)(1),f=(0,t.createCoords)(0),m=(0,c.isHTMLElement)(r);if((m||!o)&&(("body"!==(0,c.getNodeName)(r)||(0,c.isOverflowElement)(a))&&(u=(0,c.getNodeScroll)(r)),m)){let e=h(r);d=p(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let g=!a||m||o?(0,t.createCoords)(0):y(a,u);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:i.y*d.y-u.scrollTop*d.y+f.y+g.y}},getDocumentElement:c.getDocumentElement,getClippingRect:function(e){let{element:n,boundary:i,rootBoundary:r,strategy:s}=e,o=[..."clippingAncestors"===i?(0,c.isTopLayer)(n)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=(0,c.getOverflowAncestors)(e,[],!1).filter(e=>(0,c.isElement)(e)&&"body"!==(0,c.getNodeName)(e)),r=null,s="fixed"===(0,c.getComputedStyle)(e).position,o=s?(0,c.getParentNode)(e):e;for(;(0,c.isElement)(o)&&!(0,c.isLastTraversableNode)(o);){let e=(0,c.getComputedStyle)(o),t=(0,c.isContainingBlock)(o),n=r?r.position:s?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?r=e:i=i.filter(e=>e!==o),o=(0,c.getParentNode)(o)}return t.set(e,i),i}(n,this._c):[].concat(i),r],a=b(n,o[0],s),l=a.top,u=a.right,d=a.bottom,f=a.left;for(let e=1;e<o.length;e++){let i=b(n,o[e],s);l=(0,t.max)(i.top,l),u=(0,t.min)(i.right,u),d=(0,t.min)(i.bottom,d),f=(0,t.max)(i.left,f)}return{width:u-f,height:d-l,x:f,y:l}},getOffsetParent:E,getElementRects:T,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=d(e);return{width:t,height:n}},getScale:p,isElement:c.isElement,isRTL:function(e){return"rtl"===(0,c.getComputedStyle)(e).direction}};function R(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let C=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;let{x:r,y:s,placement:o,middlewareData:a}=t,l=await u(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:o}}}}},A=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){let{x:i,y:r,placement:s,platform:o}=n,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,t.evaluate)(e,n),d={x:i,y:r},f=await o.detectOverflow(n,c),p=(0,t.getSideAxis)(s),m=(0,t.getOppositeAxis)(p),g=d[m],h=d[p],v=(e,n)=>(0,t.clamp)(n+f["y"===e?"top":"left"],n,n-f["y"===e?"bottom":"right"]);a&&(g=v(m,g)),l&&(h=v(p,h));let y=u.fn({...n,[m]:g,[p]:h});return{...y,data:{x:y.x-i,y:y.y-r,enabled:{[m]:a,[p]:l}}}}}},P=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var i,r,s,o,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=n,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...x}=(0,t.evaluate)(e,n);if(null!=(i=u.arrow)&&i.alignmentOffset)return{};let w=(0,t.getSide)(l),E=(0,t.getSideAxis)(d),T=(0,t.getSide)(d)===d,S=await (null==f.isRTL?void 0:f.isRTL(p.floating)),R=h||(T||!b?[(0,t.getOppositePlacement)(d)]:(0,t.getExpandedPlacements)(d)),C="none"!==y;!h&&C&&R.push(...(0,t.getOppositeAxisPlacements)(d,b,y,S));let A=[d,...R],P=await f.detectOverflow(n,x),O=[],k=(null==(r=u.flip)?void 0:r.overflows)||[];if(m&&O.push(P[w]),g){let e=(0,t.getAlignmentSides)(l,c,S);O.push(P[e[0]],P[e[1]])}if(k=[...k,{placement:l,overflows:O}],!O.every(e=>e<=0)){let e=((null==(s=u.flip)?void 0:s.index)||0)+1,n=A[e];if(n&&("alignment"!==g||E===(0,t.getSideAxis)(n)||k.every(e=>(0,t.getSideAxis)(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:n}};let i=null==(o=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!i)switch(v){case"bestFit":{let e=null==(a=k.filter(e=>{if(C){let n=(0,t.getSideAxis)(e.placement);return n===E||"y"===n}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(i=e);break}case"initialPlacement":i=d}if(l!==i)return{reset:{placement:i}}}return{}}}},O=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(n){let i,r,{placement:s,rects:o,platform:a,elements:l}=n,{apply:u=()=>{},...c}=(0,t.evaluate)(e,n),d=await a.detectOverflow(n,c),f=(0,t.getSide)(s),p=(0,t.getAlignment)(s),m="y"===(0,t.getSideAxis)(s),{width:g,height:h}=o.floating;"top"===f||"bottom"===f?(i=f,r=p===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(r=f,i="end"===p?"top":"bottom");let v=h-d.top-d.bottom,y=g-d.left-d.right,b=(0,t.min)(h-d[i],v),x=(0,t.min)(g-d[r],y),w=n.middlewareData.shift,E=!w,T=b,S=x;null!=w&&w.enabled.x&&(S=y),null!=w&&w.enabled.y&&(T=v),E&&!p&&(m?S=g-2*(0,t.max)(d.left,d.right):T=h-2*(0,t.max)(d.top,d.bottom)),await u({...n,availableWidth:S,availableHeight:T});let R=await a.getDimensions(l.floating);return g!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}},k=function(e){return void 0===e&&(e={}),{options:e,fn(n){var i,r,s,o;let{x:a,y:u,placement:c,rects:d,middlewareData:f}=n,{offset:p=0,mainAxis:m=!0,crossAxis:g=!0}=(0,t.evaluate)(e,n),h={x:a,y:u},v=(0,t.getSideAxis)(c),y=(0,t.getOppositeAxis)(v),b=h[y],x=h[v],w=(0,t.evaluate)(p,n),E="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(i=w.mainAxis)?i:0,crossAxis:null!=(r=w.crossAxis)?r:0};if(m){let e="y"===y?"height":"width",t=d.reference[y]-d.floating[e]+E.mainAxis,n=d.reference[y]+d.reference[e]-E.mainAxis;b<t?b=t:b>n&&(b=n)}if(g){let e="y"===y?"width":"height",n=l.has((0,t.getSide)(c)),i=d.reference[v]-d.floating[e]+(n&&(null==(s=f.offset)?void 0:s[v])||0)+(n?0:E.crossAxis),r=d.reference[v]+d.reference[e]+(n?0:(null==(o=f.offset)?void 0:o[v])||0)-(n?E.crossAxis:0);x<i?x=i:x>r&&(x=r)}return{[y]:b,[v]:x}}}},I=(e,t,n)=>{let i=new Map,s=null!=n?n:{},o={...S,...s.platform,_c:i};return r(e,t,{...s,platform:o})};e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(n){let{x:i,y:r,placement:s,rects:o,platform:a,elements:l,middlewareData:u}=n,{element:c,padding:d=0}=(0,t.evaluate)(e,n)||{};if(null==c)return{};let f=(0,t.getPaddingObject)(d),p={x:i,y:r},m=(0,t.getAlignmentAxis)(s),g=(0,t.getAxisLength)(m),h=await a.getDimensions(c),v="y"===m,y=v?"clientHeight":"clientWidth",b=o.reference[g]+o.reference[m]-p[m]-o.floating[g],x=p[m]-o.reference[m],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),E=w?w[y]:0;E&&await (null==a.isElement?void 0:a.isElement(w))||(E=l.floating[y]||o.floating[g]);let T=E/2-h[g]/2-1,S=(0,t.min)(f[v?"top":"left"],T),R=(0,t.min)(f[v?"bottom":"right"],T),C=E-h[g]-R,A=E/2-h[g]/2+(b/2-x/2),P=(0,t.clamp)(S,A,C),O=!u.arrow&&null!=(0,t.getAlignment)(s)&&A!==P&&o.reference[g]/2-(A<S?S:R)-h[g]/2<0,k=O?A<S?A-S:A-C:0;return{[m]:p[m]+k,data:{[m]:P,centerOffset:A-P-k,...O&&{alignmentOffset:k}},reset:O}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(n){var i,r,s,o;let{rects:a,middlewareData:l,placement:u,platform:c,elements:d}=n,{crossAxis:f=!1,alignment:p,allowedPlacements:m=t.placements,autoAlignment:g=!0,...h}=(0,t.evaluate)(e,n),v=void 0!==p||m===t.placements?((o=p||null)?[...m.filter(e=>(0,t.getAlignment)(e)===o),...m.filter(e=>(0,t.getAlignment)(e)!==o)]:m.filter(e=>(0,t.getSide)(e)===e)).filter(e=>!o||(0,t.getAlignment)(e)===o||!!g&&(0,t.getOppositeAlignmentPlacement)(e)!==e):m,y=(null==(i=l.autoPlacement)?void 0:i.index)||0,b=v[y];if(null==b)return{};if(u!==b)return{reset:{placement:v[0]}};let x=await c.detectOverflow(n,h),w=(0,t.getAlignmentSides)(b,a,await (null==c.isRTL?void 0:c.isRTL(d.floating))),E=[x[(0,t.getSide)(b)],x[w[0]],x[w[1]]],T=[...(null==(r=l.autoPlacement)?void 0:r.overflows)||[],{placement:b,overflows:E}],S=v[y+1];if(S)return{data:{index:y+1,overflows:T},reset:{placement:S}};let R=T.map(e=>{let n=(0,t.getAlignment)(e.placement);return[e.placement,n&&f?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(s=R.filter(e=>e[2].slice(0,(0,t.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:s[0])||R[0][0];return C!==u?{data:{index:y+1,overflows:T},reset:{placement:C}}:{}}}},"autoUpdate",0,function(e,n,i,r){let s;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=f(e),m=o||a?[...p?(0,c.getOverflowAncestors)(p):[],...n?(0,c.getOverflowAncestors)(n):[]]:[];m.forEach(e=>{o&&e.addEventListener("scroll",i),a&&e.addEventListener("resize",i)});let g=p&&u?function(e,n,i){let r,s=null,o=(0,c.getDocumentElement)(e);function a(){var e;clearTimeout(r),null==(e=s)||e.disconnect(),s=null}function l(i,u){void 0===i&&(i=!1),void 0===u&&(u=1),a();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(i||n(),!p||!m)return;let g={rootMargin:-(0,t.floor)(f)+"px "+-(0,t.floor)(o.clientWidth-(d+p))+"px "+-(0,t.floor)(o.clientHeight-(f+m))+"px "+-(0,t.floor)(d)+"px",threshold:(0,t.max)(0,(0,t.min)(1,u))||1},h=!0;function v(t){let n=t[0].intersectionRatio;if(!R(c,e.getBoundingClientRect()))return l();if(n!==u){if(!h)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}h=!1}try{s=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){s=new IntersectionObserver(v,g)}s.observe(e)}let u=(0,c.getWindow)(e),d=()=>l(i);return u.addEventListener("resize",d),l(!0),()=>{u.removeEventListener("resize",d),a()}}(p,i,a):null,v=-1,y=null;l&&(y=new ResizeObserver(e=>{let[t]=e;t&&t.target===p&&y&&n&&(y.unobserve(n),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(n)})),i()}),p&&!d&&y.observe(p),n&&y.observe(n));let b=d?h(e):null;return d&&function t(){let n=h(e);b&&!R(b,n)&&i(),b=n,s=requestAnimationFrame(t)}(),i(),()=>{var e;m.forEach(e=>{o&&e.removeEventListener("scroll",i),a&&e.removeEventListener("resize",i)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(s)}},"computePosition",0,I,"flip",0,P,"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(n){let{rects:i,platform:r}=n,{strategy:a="referenceHidden",...l}=(0,t.evaluate)(e,n);switch(a){case"referenceHidden":{let e=s(await r.detectOverflow(n,{...l,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:o(e)}}}case"escaped":{let e=s(await r.detectOverflow(n,{...l,altBoundary:!0}),i.floating);return{data:{escapedOffsets:e,escaped:o(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(n){let{placement:i,elements:r,rects:s,platform:o,strategy:l}=n,{padding:u=2,x:c,y:d}=(0,t.evaluate)(e,n),f=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(r.reference))||[]);if(!f.length)return{};let p=function(e){let n=e.slice().sort((e,t)=>e.y-t.y),i=[],r=null;for(let e=0;e<n.length;e++){let t=n[e];!r||t.y-r.y>r.height/2?i.push([t]):i[i.length-1].push(t),r=t}return i.map(e=>(0,t.rectToClientRect)(a(e)))}(f),m=(0,t.rectToClientRect)(a(f)),g=(0,t.getPaddingObject)(u),h=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=c&&null!=d)return p.find(e=>c>e.left-g.left&&c<e.right+g.right&&d>e.top-g.top&&d<e.bottom+g.bottom)||m;if(p.length>=2){if("y"===(0,t.getSideAxis)(i)){let e=p[0],n=p[p.length-1],r="top"===(0,t.getSide)(i),s=e.top,o=n.bottom,a=r?e.left:n.left,l=r?e.right:n.right;return(0,t.rectToClientRect)({x:a,y:s,width:l-a,height:o-s})}let e="left"===(0,t.getSide)(i),n=(0,t.max)(...p.map(e=>e.right)),r=(0,t.min)(...p.map(e=>e.left)),s=p.filter(t=>e?t.left===r:t.right===n),o=s[0].top,a=s[s.length-1].bottom;return(0,t.rectToClientRect)({x:r,y:o,width:n-r,height:a-o})}return m}},floating:r.floating,strategy:l});return s.reference.x!==h.reference.x||s.reference.y!==h.reference.y||s.reference.width!==h.reference.width||s.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},"limitShift",0,k,"offset",0,C,"shift",0,A,"size",0,O],953760);var L=e.i(271645),M=e.i(174080),N="u">typeof document?L.useLayoutEffect:function(){};function D(e,t){let n,i,r;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(i=n;0!=i--;)if(!D(e[i],t[i]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!e.$$typeof)&&!D(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function F(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function j(e,t){let n=F(e);return Math.round(t*n)/n}function _(e){let t=L.useRef(e);return N(()=>{t.current=e}),t}e.s(["flip",0,(e,t)=>{let n=P(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:k(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=C(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=A(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=O(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=L.useState(i);D(f,i)||p(i);let[m,g]=L.useState(null),[h,v]=L.useState(null),y=L.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),b=L.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),x=s||m,w=o||h,E=L.useRef(null),T=L.useRef(null),S=L.useRef(c),R=null!=l,C=_(l),A=_(r),P=_(u),O=L.useCallback(()=>{if(!E.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),I(E.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};k.current&&!D(S.current,t)&&(S.current=t,M.flushSync(()=>{d(t)}))})},[f,t,n,A,P]);N(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let k=L.useRef(!1);N(()=>(k.current=!0,()=>{k.current=!1}),[]),N(()=>{if(x&&(E.current=x),w&&(T.current=w),x&&w){if(C.current)return C.current(x,w,O);O()}},[x,w,O,C,R]);let W=L.useMemo(()=>({reference:E,floating:T,setReference:y,setFloating:b}),[y,b]),V=L.useMemo(()=>({reference:x,floating:w}),[x,w]),H=L.useMemo(()=>{let e={position:n,left:0,top:0};if(!V.floating)return e;let t=j(V.floating,c.x),i=j(V.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+i+"px)",...F(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,a,V.floating,c.x,c.y]);return L.useMemo(()=>({...c,update:O,refs:W,elements:V,floatingStyles:H}),[c,O,W,V,H])}],258950)},229315,e=>{"use strict";let t;function n(){return"u">typeof window}function i(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function r(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return!!n()&&(e instanceof Node||e instanceof r(e).Node)}function a(e){return!!n()&&(e instanceof Element||e instanceof r(e).Element)}function l(e){return!!n()&&(e instanceof HTMLElement||e instanceof r(e).HTMLElement)}function u(e){return!(!n()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof r(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:i,display:r}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&"inline"!==r&&"contents"!==r}function d(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let f=/transform|translate|scale|rotate|perspective|filter/,p=/paint|layout|strict|content/,m=e=>!!e&&"none"!==e;function g(e){let t=a(e)?y(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!h()&&(m(t.backdropFilter)||m(t.filter))||f.test(t.willChange||"")||p.test(t.contain||"")}function h(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function v(e){return/^(html|body|#document)$/.test(i(e))}function y(e){return r(e).getComputedStyle(e)}function b(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||s(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,y,"getContainingBlock",0,function(e){let t=b(e);for(;l(t)&&!v(t);){if(g(t))return t;if(d(t))break;t=b(t)}return null},"getDocumentElement",0,s,"getFrameElement",0,x,"getNodeName",0,i,"getNodeScroll",0,function(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,n,i){var s;void 0===n&&(n=[]),void 0===i&&(i=!0);let o=function e(t){let n=b(t);return v(n)?(t.ownerDocument||t).body:l(n)&&c(n)?n:e(n)}(t),a=o===(null==(s=t.ownerDocument)?void 0:s.body),u=r(o);if(!a)return n.concat(o,e(o,[],i));{let t=x(u);return n.concat(u,u.visualViewport||[],c(o)?o:[],t&&i?e(t):[])}},"getParentNode",0,b,"getWindow",0,r,"isContainingBlock",0,g,"isElement",0,a,"isHTMLElement",0,l,"isLastTraversableNode",0,v,"isNode",0,o,"isOverflowElement",0,c,"isShadowRoot",0,u,"isTableElement",0,function(e){return/^(table|td|th)$/.test(i(e))},"isTopLayer",0,d,"isWebKit",0,h])},333848,e=>{"use strict";var t=e.i(229315);e.s(["ownerWindow",()=>t.getWindow])},343084,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,r=Math.max,s=Math.round,o=Math.floor,a={left:"right",right:"left",bottom:"top",top:"bottom"};function l(e){return e.split("-")[0]}function u(e){return e.split("-")[1]}function c(e){return"x"===e?"y":"x"}function d(e){return"y"===e?"height":"width"}function f(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function p(e){return c(f(e))}function m(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let g=["left","right"],h=["right","left"],v=["top","bottom"],y=["bottom","top"];function b(e){let t=l(e);return a[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,n){return r(e,i(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,o,"getAlignment",0,u,"getAlignmentAxis",0,p,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let i=u(e),r=p(e),s=d(r),o="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=b(o)),[o,b(o)]},"getAxisLength",0,d,"getExpandedPlacements",0,function(e){let t=b(e);return[m(e),t,m(t)]},"getOppositeAlignmentPlacement",0,m,"getOppositeAxis",0,c,"getOppositeAxisPlacements",0,function(e,t,n,i){let r=u(e),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?h:g;return t?g:h;case"left":case"right":return t?v:y;default:return[]}}(l(e),"start"===n,i);return r&&(s=s.map(e=>e+"-"+r),t&&(s=s.concat(s.map(m)))),s},"getOppositePlacement",0,b,"getPaddingObject",0,function(e){var t,n,i,r;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(i=e.bottom)?i:0,left:null!=(r=e.left)?r:0}:{top:e,right:e,bottom:e,left:e}},"getSide",0,l,"getSideAxis",0,f,"max",0,r,"min",0,i,"placements",0,n,"rectToClientRect",0,function(e){let{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}},"round",0,s,"sides",0,t])},456420,e=>{"use strict";var t=e.i(271645);let n=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},r=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:s,width:o,height:a,strokeWidth:l,absoluteStrokeWidth:u,nonScalingStroke:c,className:d="",children:f,iconNode:p=[],icon:m={node:p,aliases:[],size:24},...g},h)=>{let{size:v=24,strokeWidth:y=2,absoluteStrokeWidth:b=!1,nonScalingStroke:x=!1,color:w="currentColor",className:E=""}=(0,t.useContext)(r)??{},T=!!f||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(g),[S,R,C=[]]=function(e,t={}){return function(e,t={}){let r=t.attributeNames??{},s=e=>r[e]??e,o=e.size??e.width??i.width,a=e.size??e.height??i.height,l=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],u=[...e.name?[`lucide-${e.name}`]:[],...l],c=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?n(...c):n("lucide",...u,...c),f=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,n])=>(e[s(t)]=n,e),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&null!=t.size&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&null!=t.width&&{[s("width")]:t.width},..."height"in t&&null!=t.height&&{[s("height")]:t.height},[s("stroke-width")]:f,...d&&{[s("class")]:d},[s("viewBox")]:`0 0 ${o} ${a}`,...!1===t.hasA11yProp?{[s("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[n,i,r]=e,o=t.nonScalingStroke?{[s("vector-effect")]:"non-scaling-stroke",...i}:i;return r?[n,o,r]:[n,o]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(m,{color:e??w,width:o??s??v,height:a??s??v,strokeWidth:l??y,absoluteStrokeWidth:u??b,nonScalingStroke:c??x,className:n(E,d),hasA11yProp:T,attributes:g});return(0,t.createElement)(S,{ref:h,...R},[...C.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(f)?f:[f]])});e.s(["default",0,function(e,n=[],i=[]){let r,o="string"==typeof e?function(e,t,n=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...n.length>0?{aliases:n}:{}}}(e,n,i):e,a=(0,t.forwardRef)(({className:e,...n},i)=>(0,t.createElement)(s,{ref:i,icon:o,className:e,...n}));return o.name&&(a.displayName=(r=(e=>{let t="",n=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){n=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=n?i.toUpperCase():i,n=!1}return t})(o.name)).charAt(0).toUpperCase()+r.slice(1)),a}],456420)},931250,121309,e=>{"use strict";var t=e.i(456420);let n={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};n.node;let i=(0,t.default)(n);e.s(["CircleCheckIcon",0,i],931250);let r={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};r.node;let s=(0,t.default)(r);e.s(["InfoIcon",0,s],121309)},758379,e=>{"use strict";var t=e.i(456420);let n={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};n.node;let i=(0,t.default)(n);e.s(["default",0,i])},534281,e=>{"use strict";var t=e.i(758379);e.s(["Loader2Icon",()=>t.default])},228146,e=>{"use strict";var t=e.i(456420);let n={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};n.node;let i=(0,t.default)(n);e.s(["OctagonXIcon",0,i],228146)},755566,e=>{"use strict";var t=e.i(456420);let n={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};n.node;let i=(0,t.default)(n);e.s(["default",0,i])},168754,e=>{"use strict";var t=e.i(755566);e.s(["TriangleAlertIcon",()=>t.default])},814387,e=>{"use strict";var t=e.i(456420);let n={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};n.node;let i=(0,t.default)(n);e.s(["default",0,i])},560964,e=>{"use strict";var t=e.i(814387);e.s(["XIcon",()=>t.default])},755838,(e,t,n)=>{"use strict";var i=e.r(271645),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useState,o=i.useEffect,a=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),i=s({inst:{value:n,getSnapshot:t}}),r=i[0].inst,c=i[1];return a(function(){r.value=n,r.getSnapshot=t,u(r)&&c({inst:r})},[e,n,t]),o(function(){return u(r)&&c({inst:r}),e(function(){u(r)&&c({inst:r})})},[e]),l(n),n};n.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},802239,(e,t,n)=>{"use strict";e.i(247167),t.exports=e.r(755838)},752822,(e,t,n)=>{"use strict";var i=e.r(271645),r=e.r(802239),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=i.useRef,l=i.useEffect,u=i.useMemo,c=i.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,i,r){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=u(function(){function e(e){if(!l){if(l=!0,o=e,e=i(e),void 0!==r&&f.hasValue){var t=f.value;if(r(t,e))return a=t}return a=e}if(t=a,s(o,e))return t;var n=i(e);return void 0!==r&&r(t,n)?(o=e,t):(o=e,a=n)}var o,a,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,i,r]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},430224,(e,t,n)=>{"use strict";e.i(247167),t.exports=e.r(752822)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,621285,616172,177373,t=>{"use strict";var e=t.i(843476),r=t.i(271645),a=t.i(798120),n=t.i(167881),i=t.i(630374),l=t.i(683408),s=t.i(671428),o=t.i(647163);function d({className:t,...r}){return(0,e.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:(0,e.jsx)("table",{"data-slot":"table",className:(0,o.cn)("w-full caption-bottom text-sm",t),...r})})}function c({className:t,...r}){return(0,e.jsx)("thead",{"data-slot":"table-header",className:(0,o.cn)("[&_tr]:border-b",t),...r})}function u({className:t,...r}){return(0,e.jsx)("tbody",{"data-slot":"table-body",className:(0,o.cn)("[&_tr:last-child]:border-0",t),...r})}function h({className:t,...r}){return(0,e.jsx)("tr",{"data-slot":"table-row",className:(0,o.cn)("border-b border-border/60 transition-colors data-[state=selected]:bg-muted hover:bg-muted/40",t),...r})}function f({className:t,...r}){return(0,e.jsx)("th",{"data-slot":"table-head",className:(0,o.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),...r})}function g({className:t,...r}){return(0,e.jsx)("td",{"data-slot":"table-cell",className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",t),...r})}var m=t.i(41533);let w=t=>`text/${t}; charset=utf-8`,p={md:{kind:"markdown",mime:w("markdown")},markdown:{kind:"markdown",mime:w("markdown")},csv:{kind:"csv",mime:w("csv")},json:{kind:"json",mime:"application/json; charset=utf-8"},txt:{kind:"text",mime:w("plain")},log:{kind:"text",mime:w("plain")},html:{kind:"frame",mime:w("html")},htm:{kind:"frame",mime:w("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:w("css")},js:{kind:"none",mime:w("javascript")},woff2:{kind:"none",mime:"font/woff2"}},x=t=>p[t.split(".").pop()?.toLowerCase()??""]?.kind??"none",b=Object.entries(p).filter(([,t])=>"none"!==t.kind).map(([t])=>t),y=RegExp(String.raw`(?<![\p{L}\p{N}_/:@%-])(?:[\p{L}\p{N}_.@%-]+/)*[\p{L}\p{N}_@%-]+(?:\.[\p{L}\p{N}_-]+)*\.(?:${b.join("|")})\b`,"giu"),k=`${m.PATHS.workspace}/`;function v(t){let e=t.trim(),r=e.indexOf(k);return r>=0?e.slice(r+k.length)||null:e.startsWith("/")||/^[A-Za-z]:/.test(e)||e.split("/").includes("..")?null:e||null}t.s(["pathsIn",0,function(t){let e=t.replace(/\b[a-z][\w+.-]*:\/\/\S+/gi," "),r=new Set;for(let t of e.match(y)??[]){let e=function(t){let e=v(t);if(!e)return null;let[r,...a]=e.split("/");return a.length&&r.includes(".")?null:e}(t);e&&r.add(e)}return[...r].slice(0,6)},"viewKindOf",0,x,"workspaceRelative",0,v],616172);var N=t.i(95187);let j=(0,N.createServerReference)("7f4957e151a50cd41ee138dc20323d2118d625a8e9",N.callServer,void 0,N.findSourceMapURL,"openFileAction");t.s(["openFileAction",0,j],177373);var S=t.i(609856);let D=new Set(["frame","image","audio","video"]);function M(t){let e=v(t);if(!e)return{how:"os"};let r=x(e);return D.has(r)?{how:"tab",path:e,href:a.queryKey.fileView(e)}:"none"===r?{how:"os"}:{how:"dialog",path:e}}let _=(0,r.createContext)(null),C={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"},inline:{prose:"pb-3",block:"pb-3"}};function B({kind:t,content:r,truncated:a,where:n="dialog"}){return(0,e.jsxs)(e.Fragment,{children:[null!=a&&(0,e.jsx)(T,{of:a}),(0,e.jsx)(O,{kind:t,content:r,where:n})]})}function T({of:t}){return(0,e.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,o.formatBytes)(m.WORKSPACE_VIEW.textMax)} of ${(0,o.formatBytes)(t)}. `,"Open the file itself for the rest."]})}function O({kind:t,content:r,where:a}){let n=C[a];switch(t){case"markdown":return(0,e.jsx)("div",{className:(0,o.cn)("min-w-0 text-sm leading-relaxed",n.prose),children:(0,e.jsx)(l.Markdown,{children:r})});case"csv":return(0,e.jsx)(P,{content:r,className:n.block});case"json":return(0,e.jsx)(F,{text:function(t){try{return JSON.stringify(JSON.parse(t),null,2)}catch{return t}}(r),className:n.block});default:return(0,e.jsx)(F,{text:r,className:n.block})}}function $(t){let[e,n]=(0,r.useState)(null),[i,l]=(0,r.useState)(null),[s,d]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(!t)return;n(null),l(null),d(null);let e=!1;return fetch(a.queryKey.file(t),{headers:{range:`bytes=0-${m.WORKSPACE_VIEW.textMax-1}`}}).then(async t=>{if(!t.ok)throw Error(await t.text());return{text:await t.text(),of:function(t){let e=t.headers.get("content-range")?.match(/^bytes \d+-(\d+)\/(\d+)$/);if(!e)return null;let[,r,a]=e.map(Number);return r+1<a?a:null}(t)}}).then(({text:t,of:r})=>{e||(n(null===r?t:t.slice(0,t.lastIndexOf("\n")+1||void 0)),d(r))}).catch(t=>!e&&l((0,o.errorToString)(t))),()=>{e=!0}},[t]),{content:e,failure:i,truncated:s}}function L({path:t,bytes:r}){let[a,i]=(0,S.useServerAction)(j);return(0,e.jsxs)("div",{className:"space-y-4 p-8",children:[(0,e.jsxs)("p",{className:"max-w-lg text-sm leading-relaxed text-muted-foreground",children:[`This file is ${(0,o.formatBytes)(r)} — too big to draw here without `,"taking the window with it. Open it where it is instead."]}),(0,e.jsx)(n.Button,{variant:"outline",loading:i,onClick:()=>a(t),children:"Reveal in the file manager"})]})}function E({path:t,kind:r,onClose:a}){let{content:n,failure:l,truncated:o}=$(t),d=t?.split("/").pop()??"";return(0,e.jsx)(i.Dialog,{open:null!==t,onOpenChange:t=>!t&&a(),children:(0,e.jsxs)(i.DialogContent,{className:"flex max-h-[calc(100vh-3rem)] flex-col gap-0 overflow-hidden p-0 sm:max-w-4xl",children:[(0,e.jsx)(i.DialogTitle,{className:"sr-only",children:d}),(0,e.jsx)("div",{className:"flex shrink-0 items-center gap-2 border-b border-border/60 px-4 py-2.5 pr-12",children:(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",children:t})}),(0,e.jsx)("div",{className:"min-h-0 flex-1 overflow-auto",children:l?(0,e.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:l}):null===n?(0,e.jsxs)("div",{className:"space-y-3 p-5",children:[(0,e.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,e.jsx)(B,{kind:r,content:n,truncated:o})})]})})}function F({text:t,className:r}){return(0,e.jsx)("pre",{className:(0,o.cn)("overflow-x-auto font-mono text-[12px] leading-relaxed whitespace-pre-wrap text-foreground/90",r),children:t})}function P({content:t,className:a}){let[n,...i]=(0,r.useMemo)(()=>(function(t){let e=[],r=[],a="",n=!1;for(let i=0;i<t.length;i++){let l=t[i];n?'"'===l&&'"'===t[i+1]?(a+='"',i++):'"'===l?n=!1:a+=l:'"'===l?n=!0:","===l?(r.push(a),a=""):"\n"===l||"\r"===l?("\r"===l&&"\n"===t[i+1]&&i++,r.push(a),e.push(r),r=[],a=""):a+=l}return(a.length||r.length)&&(r.push(a),e.push(r)),e.filter(t=>t.some(t=>t.trim()))})(t),[t]);return n?(0,e.jsx)("div",{className:(0,o.cn)("overflow-x-auto",a),children:(0,e.jsxs)(d,{children:[(0,e.jsx)(c,{children:(0,e.jsx)(h,{children:n.map((t,r)=>(0,e.jsx)(f,{className:"whitespace-nowrap",children:t},`${r}-${t}`))})}),(0,e.jsx)(u,{children:i.map((t,r)=>(0,e.jsx)(h,{children:n.map((a,n)=>(0,e.jsx)(g,{className:"whitespace-nowrap",children:t[n]??""},`${r}-${n}`))},`${r}-${t[0]??""}`))})]})}):(0,e.jsx)(F,{text:t,className:a})}t.s(["FileBody",0,B,"FileDialog",0,E,"FileLink",0,function({path:t,className:n,title:i,label:l,children:s}){let o=M(t),d=(0,r.useContext)(_),[c,u]=(0,S.useServerAction)(j);return"tab"===o.how?(0,e.jsx)("a",{href:o.href,target:"_blank",rel:"noreferrer",title:i??t,"aria-label":l,className:n,children:s}):(0,e.jsx)("button",{type:"button",disabled:u,title:i??t,"aria-label":l,className:n,onClick:()=>{"dialog"===o.how?d?d(o.path):window.open(a.queryKey.fileView(o.path),"_blank"):c(t)},children:s})},"FilePreview",0,function({path:t,bytes:r}){let n=x(t),{content:i,failure:l,truncated:o}=$(D.has(n)?null:t);return("frame"===n||"image"===n)&&r>m.WORKSPACE_VIEW.elementMax?(0,e.jsx)(L,{path:t,bytes:r}):"frame"===n?(0,e.jsx)("iframe",{title:t,src:a.queryKey.file(t),allow:"clipboard-read; clipboard-write; fullscreen; autoplay",className:"h-full w-full bg-white"}):"image"===n?(0,e.jsx)("img",{src:a.queryKey.file(t),alt:t,className:"mx-auto max-w-full p-6"}):"audio"===n||"video"===n?"audio"===n?(0,e.jsx)("audio",{controls:!0,src:a.queryKey.file(t),className:"w-full p-6",children:(0,e.jsx)("track",{kind:"captions"})}):(0,e.jsx)("video",{controls:!0,src:a.queryKey.file(t),className:"max-w-full p-6",children:(0,e.jsx)("track",{kind:"captions"})}):l?(0,e.jsx)("p",{className:"p-5 font-mono text-xs text-destructive",children:l}):null===i?(0,e.jsxs)("div",{className:"space-y-3 p-5",children:[(0,e.jsx)(s.Skeleton,{className:"h-5 w-2/3"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-full"}),(0,e.jsx)(s.Skeleton,{className:"h-4 w-5/6"})]}):(0,e.jsx)(B,{kind:n,content:i,truncated:o})},"FileViewer",0,function({children:t}){let[a,n]=(0,r.useState)(null);return(0,e.jsxs)(_,{value:n,children:[t,(0,e.jsx)(E,{path:a,kind:a?x(a):"text",onClose:()=>n(null)})]})},"fileTarget",0,M,"useFileText",0,$,"useOpenFile",0,function(){let t=(0,r.useContext)(_);return(0,r.useCallback)(e=>{let r=M(e);if("os"===r.how)return!1;if("dialog"===r.how&&t)return t(r.path),!0;let n="tab"===r.how?r.href:a.queryKey.fileView(r.path);return null!==window.open(n,"_blank")},[t])}],621285)},245629,401851,t=>{"use strict";var e=t.i(55545),r=t.i(455024),a=t.i(99151),n=t.i(845110),i=t.i(234662),l=t.i(281092);function s(t,e){let r=(0,l.toDate)(t,e?.in);return r.setHours(0,0,0,0),r}function o(t,e){let a=(0,r.getDefaultOptions)(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,i=(0,l.toDate)(t,e?.in),s=i.getDay();return i.setDate(i.getDate()-(7*(s<n)+s-n)),i.setHours(0,0,0,0),i}function d(t,e){return o(t,{...e,weekStartsOn:1})}var c=t.i(677241);function u(t,e){let r=(0,l.toDate)(t,e?.in),a=r.getFullYear(),n=(0,c.constructFrom)(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);let i=d(n),s=(0,c.constructFrom)(r,0);s.setFullYear(a,0,4),s.setHours(0,0,0,0);let o=d(s);return r.getTime()>=i.getTime()?a+1:r.getTime()>=o.getTime()?a:a-1}function h(t,e){let a=(0,l.toDate)(t,e?.in),n=a.getFullYear(),i=(0,r.getDefaultOptions)(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=(0,c.constructFrom)(e?.in||t,0);d.setFullYear(n+1,0,s),d.setHours(0,0,0,0);let u=o(d,e),h=(0,c.constructFrom)(e?.in||t,0);h.setFullYear(n,0,s),h.setHours(0,0,0,0);let f=o(h,e);return+a>=+u?n+1:+a>=+f?n:n-1}function f(t,e){let r=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+r}let g={y(t,e){let r=t.getFullYear(),a=r>0?r:1-r;return f("yy"===e?a%100:a,e.length)},M(t,e){let r=t.getMonth();return"M"===e?String(r+1):f(r+1,2)},d:(t,e)=>f(t.getDate(),e.length),a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(t,e)=>f(t.getHours()%12||12,e.length),H:(t,e)=>f(t.getHours(),e.length),m:(t,e)=>f(t.getMinutes(),e.length),s:(t,e)=>f(t.getSeconds(),e.length),S(t,e){let r=e.length;return f(Math.trunc(t.getMilliseconds()*Math.pow(10,r-3)),e.length)}},m={G:function(t,e,r){let a=+(t.getFullYear()>0);switch(e){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});default:return r.era(a,{width:"wide"})}},y:function(t,e,r){if("yo"===e){let e=t.getFullYear();return r.ordinalNumber(e>0?e:1-e,{unit:"year"})}return g.y(t,e)},Y:function(t,e,r,a){let n=h(t,a),i=n>0?n:1-n;return"YY"===e?f(i%100,2):"Yo"===e?r.ordinalNumber(i,{unit:"year"}):f(i,e.length)},R:function(t,e){return f(u(t),e.length)},u:function(t,e){return f(t.getFullYear(),e.length)},Q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return f(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,r){let a=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return f(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,r){let a=t.getMonth();switch(e){case"M":case"MM":return g.M(t,e);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,r){let a=t.getMonth();switch(e){case"L":return String(a+1);case"LL":return f(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,a,n){let s,d,u,g,m,w=Math.round((o(s=(0,l.toDate)(t,n?.in),n)-(d=(0,r.getDefaultOptions)(),u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,g=h(s,n),(m=(0,c.constructFrom)(n?.in||s,0)).setFullYear(g,0,u),m.setHours(0,0,0,0),o(m,n)))/i.millisecondsInWeek)+1;return"wo"===e?a.ordinalNumber(w,{unit:"week"}):f(w,e.length)},I:function(t,e,r){let a,n,s,o=Math.round((d(a=(0,l.toDate)(t,void 0))-(n=u(a,void 0),(s=(0,c.constructFrom)(a,0)).setFullYear(n,0,4),s.setHours(0,0,0,0),d(s)))/i.millisecondsInWeek)+1;return"Io"===e?r.ordinalNumber(o,{unit:"week"}):f(o,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getDate(),{unit:"date"}):g.d(t,e)},D:function(t,e,r){let o,d,c=function(t,e){let[r,l]=(0,n.normalizeDates)(void 0,t,e),o=s(r),d=s(l);return Math.round((o-(0,a.getTimezoneOffsetInMilliseconds)(o)-(d-(0,a.getTimezoneOffsetInMilliseconds)(d)))/i.millisecondsInDay)}(o=(0,l.toDate)(t,void 0),((d=(0,l.toDate)(o,void 0)).setFullYear(d.getFullYear(),0,1),d.setHours(0,0,0,0),d))+1;return"Do"===e?r.ordinalNumber(c,{unit:"dayOfYear"}):f(c,e.length)},E:function(t,e,r){let a=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,r,a){let n=t.getDay(),i=(n-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return f(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,a){let n=t.getDay(),i=(n-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return f(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let a=t.getDay(),n=0===a?7:a;switch(e){case"i":return String(n);case"ii":return f(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,r){let a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,r){let a,n=t.getHours();switch(a=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,r){let a,n=t.getHours();switch(a=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",e){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return g.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getHours(),{unit:"hour"}):g.H(t,e)},K:function(t,e,r){let a=t.getHours()%12;return"Ko"===e?r.ordinalNumber(a,{unit:"hour"}):f(a,e.length)},k:function(t,e,r){let a=t.getHours();return(0===a&&(a=24),"ko"===e)?r.ordinalNumber(a,{unit:"hour"}):f(a,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):g.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getSeconds(),{unit:"second"}):g.s(t,e)},S:function(t,e){return g.S(t,e)},X:function(t,e,r){let a=t.getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return p(a);case"XXXX":case"XX":return x(a);default:return x(a,":")}},x:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"x":return p(a);case"xxxx":case"xx":return x(a);default:return x(a,":")}},O:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+w(a,":");default:return"GMT"+x(a,":")}},z:function(t,e,r){let a=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+w(a,":");default:return"GMT"+x(a,":")}},t:function(t,e,r){return f(Math.trunc(t/1e3),e.length)},T:function(t,e,r){return f(+t,e.length)}};function w(t,e=""){let r=t>0?"-":"+",a=Math.abs(t),n=Math.trunc(a/60),i=a%60;return 0===i?r+String(n):r+String(n)+e+f(i,2)}function p(t,e){return t%60==0?(t>0?"-":"+")+f(Math.abs(t)/60,2):x(t,e)}function x(t,e=""){let r=Math.abs(t);return(t>0?"-":"+")+f(Math.trunc(r/60),2)+e+f(r%60,2)}let b=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},y=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},k={p:y,P:(t,e)=>{let r,a=t.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return b(t,e);switch(n){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",b(n,e)).replace("{{time}}",y(i,e))}},v=/^D+$/,N=/^Y+$/,j=["D","DD","YY","YYYY"],S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,_=/''/g,C=/[a-zA-Z]/;function B(t,a,n){let i=(0,r.getDefaultOptions)(),s=n?.locale??i.locale??e.defaultLocale,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,c=(0,l.toDate)(t,n?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,l.toDate)(c)))throw RangeError("Invalid time value");let u=a.match(D).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,k[e])(t,s.formatLong):t}).join("").match(S).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e){var r;let e;return{isToken:!1,value:(e=(r=t).match(M))?e[1].replace(_,"'"):r}}if(m[e])return{isToken:!0,value:t};if(e.match(C))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));let h={firstWeekContainsDate:o,weekStartsOn:d,locale:s};return u.map(e=>{if(!e.isToken)return e.value;let r=e.value;return(!n?.useAdditionalWeekYearTokens&&N.test(r)||!n?.useAdditionalDayOfYearTokens&&v.test(r))&&function(t,e,r){var a,n,i;let l,s=(a=t,n=e,i=r,l="Y"===a[0]?"years":"days of the month",`Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${n}\`) for formatting ${l} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),j.includes(t))throw RangeError(s)}(r,a,String(t)),(0,m[r[0]])(c,r,s.localize,h)}).join("")}t.s(["format",0,B],401851);var T=t.i(24708);function O(t,e,r){let[a,i]=(0,n.normalizeDates)(r?.in,t,e);return+s(a)==+s(i)}var $=t.i(681307);let L=$.z.union([$.z.date(),$.z.iso.datetime()]),E=t=>new Date(t);t.s(["DateLikeSchema",0,L,"shortAgo",0,function(t,e=Date.now()){let r=Math.max(0,Math.round((e-E(t).getTime())/1e3));if(r<60)return"now";let a=Math.round(r/60);if(a<60)return`${a}m`;let n=Math.round(a/60);return n<24?`${n}h`:`${Math.round(n/24)}d`},"toDate",0,E,"whenOf",0,function(t){let e=E(t),r=B(e,"HH:mm");return O((0,c.constructFrom)(e,e),(0,T.constructNow)(e))?r:!function(t){var e,r;let a;return O((0,c.constructFrom)(t,t),(e=(0,T.constructNow)(t),r=void 0,a=(0,l.toDate)(e,r?.in),isNaN(-1)?(0,c.constructFrom)(r?.in||e,NaN):(a.setDate(a.getDate()+-1),a)))}(e)?`${B(e,"MMM d")} \xb7 ${r}`:`Yesterday ${r}`}],245629)},696017,t=>{"use strict";var e=t.i(60231),r=t.i(419524);t.i(947716);var a=t.i(723685),n=(0,r.__name)(t=>{let{securityLevel:r}=(0,e.getConfig2)(),n=(0,a.select)("body");if("sandbox"===r){let e=(0,a.select)(`#i${t}`),r=e.node()?.contentDocument??document;n=(0,a.select)(r.body)}return n.select(`#${t}`)},"selectSvgElement");t.s(["selectSvgElement",0,n])},502056,t=>{"use strict";var e=t.i(217248),r=t.i(447804),a=t.i(508324),n=t.i(419524),i=(0,n.__name)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function s(t,a,n){let i,s;"rect"===a.shape&&(a.rx&&a.ry?a.shape="roundedRect":a.shape="squareRect");let o=a.shape?e.shapes[a.shape]:void 0;if(!o)throw Error(`No such shape: ${a.shape}. Please check your syntax.`);if(a.link){let e;"sandbox"===n.config.securityLevel?e="_top":a.linkTarget&&(e=a.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",a.link).attr("target",e??null),s=await o(i,a,n)}else i=s=await o(t,a,n);return i.attr("data-look",(0,r.handleUndefinedAttr)(a.look)),a.tooltip&&s.attr("title",a.tooltip),l.set(a.id,i),a.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}(0,n.__name)(s,"insertNode");var o=(0,n.__name)((t,e)=>{l.set(e.id,t)},"setNodeElem"),d=(0,n.__name)(()=>{l.clear()},"clear"),c=(0,n.__name)(t=>{let e=l.get(t.id);a.log.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode");t.s(["clear",0,d,"getSubGraphTitleMargins",0,i,"insertNode",0,s,"positionNode",0,c,"setNodeElem",0,o])},369110,t=>{"use strict";var e=t.i(502056),r=t.i(217248),a=t.i(224797),n=t.i(836333),i=t.i(60231),l=t.i(508324),s=t.i(419524);t.i(947716);var o=t.i(723685),d=t.i(883272),c=(0,s.__name)(async(t,e)=>{let s,c,u=(0,i.getConfig2)(),{themeVariables:h,handDrawnSeed:f}=u,{clusterBkg:g,clusterBorder:m}=h,{labelStyles:w,nodeStyles:p,borderStyles:x,backgroundStyles:b}=(0,a.styles2String)(e),y=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),k=(0,i.evaluate)(u.flowchart.htmlLabels),v="LR"===e.direction,N=y.insert("g").attr("class","cluster-label swimlane-label"),j=await (0,n.createText)(N,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}),S=j.getBBox();if(k){let t=j.children[0],e=(0,o.select)(j);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}let D=e.padding??0,M=e.width<=S.width+D?S.width+D:e.width;e.width<=S.width+D?e.diff=(M-e.width)/2-D:e.diff=-D;let _=e.height,C=e.y-_/2,B=e.y+_/2,T=e.x-M/2,O=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:C+_/3,$=4*!!v,L=S.height+2*$;if(v){let t=Math.max(L,S.height+2*$),r=T+t,n=Math.max(0,M-t);if("handDrawn"===e.look){let i=d.default.svg(y),l=(0,a.userNodeOverrides)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:f}),o=(0,a.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:m,seed:f}),u=i.rectangle(T,C,t,_,l);s=y.insert(()=>u,":first-child");let h=i.rectangle(r,C,n,_,o);c=y.insert(()=>h,":first-child"),s.select("path:nth-child(2)").attr("style",x.join(";")),s.select("path").attr("style",b.join(";").replace("fill","stroke"))}else s=y.insert("rect",":first-child"),c=y.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",p).attr("x",T).attr("y",C).attr("width",t).attr("height",_).attr("fill",g).attr("stroke",m),c.attr("class","swimlane-body").attr("style",p).attr("x",r).attr("y",C).attr("width",n).attr("height",_).attr("fill","none").attr("stroke",m);let i=T+t/2,l=e.y;N.attr("transform",`translate(${i}, ${l}) rotate(-90) translate(${-S.width/2}, ${-S.height/2})`)}else{let t=Math.min(L,Math.max(0,O-C)),r=C+t,n=Math.max(0,B-r),i=e.x-M/2;if("handDrawn"===e.look){let l=d.default.svg(y),o=(0,a.userNodeOverrides)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:f}),u=(0,a.userNodeOverrides)(e,{roughness:.7,fill:"none",stroke:m,seed:f}),h=l.rectangle(i,C,M,t,o);s=y.insert(()=>h,":first-child");let w=l.rectangle(i,r,M,n,u);c=y.insert(()=>w,":first-child"),s.select("path:nth-child(2)").attr("style",x.join(";")),s.select("path").attr("style",b.join(";").replace("fill","stroke"))}else s=y.insert("rect",":first-child"),c=y.insert("rect",":first-child"),s.attr("class","swimlane-title").attr("style",p).attr("x",i).attr("y",C).attr("width",M).attr("height",t).attr("fill",g).attr("stroke",m),c.attr("class","swimlane-body").attr("style",p).attr("x",i).attr("y",r).attr("width",M).attr("height",n).attr("fill","none").attr("stroke",m);let l=e.x-S.width/2,o=C+(t-S.height)/2;N.attr("transform",`translate(${l}, ${o})`)}if(l.log.trace("Swimlane data ",e,JSON.stringify(e)),w){let t=N.select("span");t&&t.attr("style",w)}return e.offsetX=0,e.width=M,e.height=_,e.offsetY=S.height-D/2,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:y,labelBBox:S}},"swimlane"),u=(0,s.__name)(async(t,s)=>{let c,u;l.log.info("Creating subgraph rect for ",s.id,s);let h=(0,i.getConfig2)(),{themeVariables:f,handDrawnSeed:g}=h,{clusterBkg:m,clusterBorder:w}=f,{labelStyles:p,nodeStyles:x,borderStyles:b,backgroundStyles:y}=(0,a.styles2String)(s),k=t.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),v=(0,i.getEffectiveHtmlLabels)(h),N=k.insert("g").attr("class","cluster-label "),j=(c="markdown"===s.labelType?await (0,n.createText)(N,s.label,{style:s.labelStyle,useHtmlLabels:v,isNode:!0,width:s.width}):await (0,r.createLabel_default)(N,s.label,s.labelStyle||"",!1,!0)).getBBox();if((0,i.getEffectiveHtmlLabels)(h)){let t=c.children[0],e=(0,o.select)(c);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let S=s.width<=j.width+s.padding?j.width+s.padding:s.width;s.width<=j.width+s.padding?s.diff=(S-s.width)/2-s.padding:s.diff=-s.padding;let D=s.height,M=s.x-S/2,_=s.y-D/2;if(l.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let t=d.default.svg(k),e=(0,a.userNodeOverrides)(s,{roughness:.7,fill:m,stroke:w,fillWeight:3,seed:g}),n=t.path((0,r.createRoundedRectPathD)(M,_,S,D,0),e);(u=k.insert(()=>(l.log.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),u.select("path").attr("style",y.join(";").replace("fill","stroke"))}else(u=k.insert("rect",":first-child")).attr("style",x).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",_).attr("width",S).attr("height",D);let{subGraphTitleTopMargin:C}=(0,e.getSubGraphTitleMargins)(h);if(N.attr("transform",`translate(${s.x-j.width/2}, ${s.y-s.height/2+C})`),p){let t=N.select("span");t&&t.attr("style",p)}let B=u.node().getBBox();return s.offsetX=0,s.width=B.width,s.height=B.height,s.offsetY=j.height-s.padding/2,s.intersect=function(t){return(0,r.intersect_rect_default)(s,t)},{cluster:k,labelBBox:j}},"rect"),h=(0,s.__name)((t,e)=>{let a=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=a.insert("rect",":first-child"),i=0*e.padding,l=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-l).attr("y",e.y-e.height/2-l).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:a,labelBBox:{width:0,height:0}}},"noteGroup"),f=(0,s.__name)(async(t,e)=>{let a,n=(0,i.getConfig2)(),{themeVariables:l,handDrawnSeed:s}=n,{altBackground:c,compositeBackground:u,compositeTitleBackground:h,nodeBorder:f}=l,g=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),m=g.insert("g",":first-child"),w=g.insert("g").attr("class","cluster-label"),p=g.append("rect"),x=await (0,r.createLabel_default)(w,e.label,e.labelStyle,void 0,!0),b=x.getBBox();if((0,i.getEffectiveHtmlLabels)(n)){let t=x.children[0],e=(0,o.select)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}let y=0*e.padding,k=(e.width<=b.width+e.padding?b.width+e.padding:e.width)+y;e.width<=b.width+e.padding?e.diff=(k-e.width)/2-e.padding:e.diff=-e.padding;let v=e.height+y,N=e.height+y-b.height-6,j=e.x-k/2,S=e.y-v/2;e.width=k;let D=e.y-e.height/2-y/2+b.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=d.default.svg(g),i=e.rx||e.ry?n.path((0,r.createRoundedRectPathD)(j,S,k,v,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:f,seed:s}):n.rectangle(j,S,k,v,{seed:s});a=g.insert(()=>i,":first-child");let l=n.rectangle(j,D,k,N,{fill:t?c:u,fillStyle:t?"hachure":"solid",stroke:f,seed:s});a=g.insert(()=>i,":first-child"),p=g.insert(()=>l)}else(a=m.insert("rect",":first-child")).attr("class","outer").attr("x",j).attr("y",S).attr("width",k).attr("height",v).attr("data-look",e.look),p.attr("class","inner").attr("x",j).attr("y",D).attr("width",k).attr("height",N);return w.attr("transform",`translate(${e.x-b.width/2}, ${S+1-3*!(0,i.getEffectiveHtmlLabels)(n)})`),e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=b.height-e.padding/2,e.labelBBox=b,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:g,labelBBox:b}},"roundedWithTitle"),g=(0,s.__name)(async(t,s)=>{let c;l.log.info("Creating subgraph rect for ",s.id,s);let u=(0,i.getConfig2)(),{themeVariables:h,handDrawnSeed:f}=u,{clusterBkg:g,clusterBorder:m}=h,{labelStyles:w,nodeStyles:p,borderStyles:x,backgroundStyles:b}=(0,a.styles2String)(s),y=t.insert("g").attr("class","cluster "+s.cssClasses).attr("id",s.domId).attr("data-look",s.look),k=(0,i.getEffectiveHtmlLabels)(u),v=y.insert("g").attr("class","cluster-label "),N=await (0,n.createText)(v,s.label,{style:s.labelStyle,useHtmlLabels:k,isNode:!0,width:s.width}),j=N.getBBox();if((0,i.getEffectiveHtmlLabels)(u)){let t=N.children[0],e=(0,o.select)(N);j=t.getBoundingClientRect(),e.attr("width",j.width),e.attr("height",j.height)}let S=s.width<=j.width+s.padding?j.width+s.padding:s.width;s.width<=j.width+s.padding?s.diff=(S-s.width)/2-s.padding:s.diff=-s.padding;let D=s.height,M=s.x-S/2,_=s.y-D/2;if(l.log.trace("Data ",s,JSON.stringify(s)),"handDrawn"===s.look){let t=d.default.svg(y),e=(0,a.userNodeOverrides)(s,{roughness:.7,fill:g,stroke:m,fillWeight:4,seed:f}),n=t.path((0,r.createRoundedRectPathD)(M,_,S,D,s.rx),e);(c=y.insert(()=>(l.log.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),c.select("path").attr("style",b.join(";").replace("fill","stroke"))}else(c=y.insert("rect",":first-child")).attr("style",p).attr("rx",s.rx).attr("ry",s.ry).attr("x",M).attr("y",_).attr("width",S).attr("height",D);let{subGraphTitleTopMargin:C}=(0,e.getSubGraphTitleMargins)(u);if(v.attr("transform",`translate(${s.x-j.width/2}, ${s.y-s.height/2+C})`),w){let t=v.select("span");t&&t.attr("style",w)}let B=c.node().getBBox();return s.offsetX=0,s.width=B.width,s.height=B.height,s.offsetY=j.height-s.padding/2,s.intersect=function(t){return(0,r.intersect_rect_default)(s,t)},{cluster:y,labelBBox:j}},"kanbanSection"),m={rect:u,squareRect:u,roundedWithTitle:f,noteGroup:h,divider:(0,s.__name)((t,e)=>{let a,{themeVariables:n,handDrawnSeed:l}=(0,i.getConfig2)(),{nodeBorder:s}=n,o=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=o.insert("g",":first-child"),u=0*e.padding,h=e.width+u;e.diff=-e.padding;let f=e.height+u,g=e.x-h/2,m=e.y-f/2;if(e.width=h,"handDrawn"===e.look){let t=d.default.svg(o).rectangle(g,m,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:l});a=o.insert(()=>t,":first-child")}else{a=c.insert("rect",":first-child");let t="outer";e.look,t="divider",a.attr("class",t).attr("x",g).attr("y",m).attr("width",h).attr("height",f).attr("data-look",e.look)}return e.height=a.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,r.intersect_rect_default)(e,t)},{cluster:o,labelBBox:{}}},"divider"),kanbanSection:g,swimlane:c},w=new Map,p=(0,s.__name)(async(t,e)=>{let r=e.shape||"rect",a=await m[r](t,e);return w.set(e.id,a),a},"insertCluster"),x=(0,s.__name)(()=>{w=new Map},"clear");t.s(["clear",0,x,"insertCluster",0,p])},121292,t=>{"use strict";var e=t.i(369110),r=t.i(382793),a=t.i(502056),n=t.i(217248),i=t.i(447804),l=t.i(60231),s=t.i(508324),o=t.i(419524),d={common:l.common_default,getConfig:l.getConfig,insertCluster:e.insertCluster,insertEdge:r.insertEdge,insertEdgeLabel:r.insertEdgeLabel,insertMarkers:r.markers_default,insertNode:a.insertNode,interpolateToCurve:i.interpolateToCurve,labelHelper:n.labelHelper,log:s.log,positionEdgeLabel:r.positionEdgeLabel},c={},u=(0,o.__name)(t=>{for(let e of t)c[e.name]=e},"registerLayoutLoaders");(0,o.__name)(()=>{u([{name:"dagre",loader:(0,o.__name)(async()=>await t.A(555153),"loader")},{name:"swimlane",loader:(0,o.__name)(async()=>await t.A(12782),"loader")},{name:"cose-bilkent",loader:(0,o.__name)(async()=>await t.A(208503),"loader")}])},"registerDefaultLayoutLoaders")();var h=(0,o.__name)(async(t,e)=>{if(!(t.layoutAlgorithm in c))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=c[t.layoutAlgorithm],a=await r.loader(),{theme:n,themeVariables:i}=t.config,{useGradient:l,gradientStart:s,gradientStop:o}=i,u=e.attr("id");if(e.append("defs").append("filter").attr("id",`${u}-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",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${u}-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",`${n?.includes("dark")?"#FFFFFF":"#000000"}`),l){let t=e.append("linearGradient").attr("id",e.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",s).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}return a.render(t,e,d,{algorithm:r.algorithm})},"render"),f=(0,o.__name)((t="",{fallback:e="dagre"}={})=>{if(t in c)return t;if(e in c)return s.log.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");t.s(["getRegisteredLayoutAlgorithm",0,f,"registerLayoutLoaders",0,u,"render",0,h])}]);
|
|
Binary file
|