thursday-agent 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  11. package/.next/server/app/_not-found.html +1 -1
  12. package/.next/server/app/_not-found.rsc +1 -1
  13. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/api/artifact/route.js +9 -9
  17. package/.next/server/app/api/artifact/route.js.nft.json +1 -1
  18. package/.next/server/app/api/bot/memory/files/route.js +3 -3
  19. package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
  20. package/.next/server/app/api/bot/memory/route.js +8 -8
  21. package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
  22. package/.next/server/app/api/bot/route.js +8 -8
  23. package/.next/server/app/api/bot/route.js.nft.json +1 -1
  24. package/.next/server/app/api/bot/thread/[id]/route.js +3 -3
  25. package/.next/server/app/api/bot/thread/[id]/route.js.nft.json +1 -1
  26. package/.next/server/app/api/bot/thread/route.js +3 -3
  27. package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
  28. package/.next/server/app/api/config/route.js.nft.json +1 -1
  29. package/.next/server/app/api/events/route.js.nft.json +1 -1
  30. package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
  31. package/.next/server/app/api/file/[...path]/route.js +4 -4
  32. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  33. package/.next/server/app/api/llm-model/catalog/route.js.nft.json +1 -1
  34. package/.next/server/app/api/llm-model/credits/route.js.nft.json +1 -1
  35. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  36. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
  37. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  38. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  39. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  40. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  41. package/.next/server/app/api/memory/edit/route.js +11 -11
  42. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
  43. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  44. package/.next/server/app/api/reach/route.js +11 -11
  45. package/.next/server/app/api/reach/route.js.nft.json +1 -1
  46. package/.next/server/app/api/routine/route.js +7 -7
  47. package/.next/server/app/api/routine/route.js.nft.json +1 -1
  48. package/.next/server/app/api/signins/route.js +5 -5
  49. package/.next/server/app/api/signins/route.js.nft.json +1 -1
  50. package/.next/server/app/api/skills/[source]/[name]/route.js +7 -7
  51. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  52. package/.next/server/app/api/skills/route.js +7 -7
  53. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  54. package/.next/server/app/api/thursday/call/route.js +5 -5
  55. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  56. package/.next/server/app/api/thursday/settings/route.js +5 -5
  57. package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
  58. package/.next/server/app/api/thursday/text/route.js +13 -13
  59. package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
  60. package/.next/server/app/api/thursday/tool-call/route.js +12 -12
  61. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  62. package/.next/server/app/api/workspace/files/route.js +8 -8
  63. package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
  64. package/.next/server/app/api/workspace/route.js +9 -9
  65. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  66. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +3 -3
  67. package/.next/server/app/artifact/[...path]/page.js +4 -4
  68. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  69. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  71. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  72. package/.next/server/app/page/server-reference-manifest.json +60 -60
  73. package/.next/server/app/page.js +5 -5
  74. package/.next/server/app/page.js.nft.json +1 -1
  75. package/.next/server/app/page_client-reference-manifest.js +1 -1
  76. package/.next/server/chunks/[root-of-the-server]__00qyw01._.js +1 -1
  77. package/.next/server/chunks/[root-of-the-server]__01ypm_z._.js +3 -0
  78. package/.next/server/chunks/[root-of-the-server]__021dkui._.js +3 -0
  79. package/.next/server/chunks/{[root-of-the-server]__18e65_-._.js → [root-of-the-server]__03xamry._.js} +2 -2
  80. package/.next/server/chunks/[root-of-the-server]__05dp5tr._.js +1 -1
  81. package/.next/server/chunks/[root-of-the-server]__09gdscj._.js +7 -0
  82. package/.next/server/chunks/{[root-of-the-server]__10_7vqz._.js → [root-of-the-server]__0b36yfw._.js} +1 -1
  83. package/.next/server/chunks/{[root-of-the-server]__1gamvcz._.js → [root-of-the-server]__0jzwdg-._.js} +2 -2
  84. package/.next/server/chunks/[root-of-the-server]__0mrk2it._.js +1 -1
  85. package/.next/server/chunks/[root-of-the-server]__0nmust6._.js +5 -0
  86. package/.next/server/chunks/[root-of-the-server]__0svzjwa._.js +7 -0
  87. package/.next/server/chunks/{[root-of-the-server]__16yw3mb._.js → [root-of-the-server]__12m24xl._.js} +1 -1
  88. package/.next/server/chunks/{[root-of-the-server]__1zrwxis._.js → [root-of-the-server]__12tahb4._.js} +1 -1
  89. package/.next/server/chunks/{[root-of-the-server]__1ep-pao._.js → [root-of-the-server]__1_h4hf9._.js} +4 -4
  90. package/.next/server/chunks/{[root-of-the-server]__1-tdj60._.js → [root-of-the-server]__1de1o6m._.js} +2 -2
  91. package/.next/server/chunks/{[root-of-the-server]__1voqqyc._.js → [root-of-the-server]__1ignh6-._.js} +1 -1
  92. package/.next/server/chunks/[root-of-the-server]__1t02-1p._.js +3 -0
  93. package/.next/server/chunks/[root-of-the-server]__1ygplx1._.js +1 -1
  94. package/.next/server/chunks/{[root-of-the-server]__11g20j-._.js → [root-of-the-server]__1yl5l25._.js} +1 -1
  95. package/.next/server/chunks/{[root-of-the-server]__1mbd2w_._.js → [root-of-the-server]__208vmyf._.js} +1 -1
  96. package/.next/server/chunks/{_1mfu9a3._.js → _02lipqs._.js} +1 -1
  97. package/.next/server/chunks/_05sa7xl._.js +1 -1
  98. package/.next/server/chunks/{_1rg5bfd._.js → _074f2ts._.js} +1 -1
  99. package/.next/server/chunks/_07nxi75._.js +37 -37
  100. package/.next/server/chunks/_08354bn._.js +12 -12
  101. package/.next/server/chunks/_08btiir._.js +7 -0
  102. package/.next/server/chunks/_0caua_s._.js +1 -1
  103. package/.next/server/chunks/{_0qoush_._.js → _0gt6cbj._.js} +1 -1
  104. package/.next/server/chunks/_0xygcxs._.js +37 -37
  105. package/.next/server/chunks/{_09c4we8._.js → _17i1lt2._.js} +1 -1
  106. package/.next/server/chunks/_19kea1l._.js +9 -9
  107. package/.next/server/chunks/_1gn2r2q._.js +3 -3
  108. package/.next/server/chunks/{_03niwml._.js → _1ntwp1s._.js} +1 -1
  109. package/.next/server/chunks/_1q6e56i._.js +3 -3
  110. package/.next/server/chunks/{_02fn1o3._.js → _1tkzgtm._.js} +1 -1
  111. package/.next/server/chunks/_1wl2g8_._.js +2 -2
  112. package/.next/server/chunks/{_1w6uf9k._.js → _1y3mnz4._.js} +1 -1
  113. package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +4 -4
  114. package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +4 -4
  115. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0cux6zt._.js → node_modules_consola_dist_chunks_prompt_mjs_04oxl25._.js} +1 -1
  116. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_0w32bqh._.js → node_modules_consola_dist_chunks_prompt_mjs_0g87zst._.js} +1 -1
  117. package/.next/server/chunks/{node_modules_consola_dist_chunks_prompt_mjs_1clmnaj._.js → node_modules_consola_dist_chunks_prompt_mjs_1341cnf._.js} +1 -1
  118. package/.next/server/chunks/ssr/{[root-of-the-server]__02jdtqa._.js → [root-of-the-server]__07660xu._.js} +3 -3
  119. package/.next/server/chunks/ssr/[root-of-the-server]__07iyl1_._.js +3 -0
  120. package/.next/server/chunks/ssr/{[root-of-the-server]__0rnjkw2._.js → [root-of-the-server]__0g__u45._.js} +2 -2
  121. package/.next/server/chunks/ssr/[root-of-the-server]__17h1ggo._.js +1 -1
  122. package/.next/server/chunks/ssr/[root-of-the-server]__1jyeu61._.js +1 -1
  123. package/.next/server/chunks/ssr/_0-i6wdi._.js +3 -0
  124. package/.next/server/chunks/ssr/{_1k0efi3._.js → _00g5sq-._.js} +2 -2
  125. package/.next/server/chunks/ssr/{_0ncuqct._.js → _03akcjz._.js} +2 -2
  126. package/.next/server/chunks/ssr/{_0l1-xc6._.js → _06xy39t._.js} +2 -2
  127. package/.next/server/chunks/ssr/_088vzgn._.js +3 -0
  128. package/.next/server/chunks/ssr/_0fo4552._.js +7 -7
  129. package/.next/server/chunks/ssr/_0r0g9ki._.js +1 -1
  130. package/.next/server/chunks/ssr/{_1dqaksc._.js → _0sefgiu._.js} +2 -2
  131. package/.next/server/chunks/ssr/_0v9r8g2._.js +3 -0
  132. package/.next/server/chunks/ssr/_0x8ophf._.js +1 -1
  133. package/.next/server/chunks/ssr/{_0w8r7o7._.js → _1-41lck._.js} +2 -2
  134. package/.next/server/chunks/ssr/{_11pnnvd._.js → _113ukfo._.js} +3 -3
  135. package/.next/server/chunks/ssr/_12p8f9_._.js +3 -0
  136. package/.next/server/chunks/ssr/{_10fwcz_._.js → _14dfh7a._.js} +2 -2
  137. package/.next/server/chunks/ssr/{_1f6s34p._.js → _1_gwau0._.js} +2 -2
  138. package/.next/server/chunks/ssr/{_0wupyvd._.js → _1hn3szq._.js} +2 -2
  139. package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
  140. package/.next/server/chunks/ssr/{_17ble8k._.js → _1o7a11b._.js} +3 -3
  141. package/.next/server/chunks/ssr/{_0y28gl3._.js → _1swhm5m._.js} +3 -3
  142. package/.next/server/chunks/ssr/_1uij_rj._.js +1 -1
  143. package/.next/server/chunks/ssr/_1umbr78._.js +1 -1
  144. package/.next/server/chunks/ssr/_1w9w1ok._.js +1 -1
  145. package/.next/server/chunks/ssr/_1wac78_._.js +3 -0
  146. package/.next/server/chunks/ssr/{_1z586yw._.js → _20ywznt._.js} +2 -2
  147. package/.next/server/chunks/ssr/features_0796o8r._.js +1 -1
  148. package/.next/server/chunks/ssr/{features_bot_1k25jdg._.js → features_bot_0j4h9qu._.js} +2 -2
  149. package/.next/server/chunks/ssr/features_bot_1knyan7._.js +3 -0
  150. package/.next/server/chunks/ssr/{features_config_11dpa7r._.js → features_config_1xrlh3l._.js} +3 -3
  151. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
  152. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +1 -1
  153. package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
  154. package/.next/server/chunks/ssr/features_workspace_workspace_ts_1wc7_u_._.js +4 -4
  155. package/.next/server/chunks/ssr/{node_modules_1r5o-bo._.js → node_modules_00kqq8n._.js} +1 -1
  156. package/.next/server/chunks/ssr/{node_modules_0u24mg0._.js → node_modules_04o9dd2._.js} +1 -1
  157. package/.next/server/chunks/ssr/{node_modules_0mark4f._.js → node_modules_05jatne._.js} +1 -1
  158. package/.next/server/chunks/ssr/{node_modules_0bas34k._.js → node_modules_06rkzq5._.js} +1 -1
  159. package/.next/server/chunks/ssr/{node_modules_0y5uubt._.js → node_modules_07w6r9n._.js} +1 -1
  160. package/.next/server/chunks/ssr/{node_modules_0ka8te1._.js → node_modules_08ld3lm._.js} +1 -1
  161. package/.next/server/chunks/ssr/{node_modules_0n1js5k._.js → node_modules_0ft86sp._.js} +1 -1
  162. package/.next/server/chunks/ssr/{node_modules_156m1qh._.js → node_modules_0g0lr19._.js} +1 -1
  163. package/.next/server/chunks/ssr/{node_modules_0bbwe-u._.js → node_modules_0kg-vd-._.js} +1 -1
  164. package/.next/server/chunks/ssr/{node_modules_0x_2io2._.js → node_modules_0nl9i29._.js} +1 -1
  165. package/.next/server/chunks/ssr/{node_modules_18yn_bs._.js → node_modules_0p0xf5f._.js} +1 -1
  166. package/.next/server/chunks/ssr/{node_modules_0-8r9yw._.js → node_modules_0pyepmf._.js} +1 -1
  167. package/.next/server/chunks/ssr/{node_modules_1dzye0n._.js → node_modules_0vg-4fo._.js} +1 -1
  168. package/.next/server/chunks/ssr/{node_modules_1xua-g1._.js → node_modules_0y5upun._.js} +1 -1
  169. package/.next/server/chunks/ssr/{node_modules_1o9n7_n._.js → node_modules_13seln7._.js} +1 -1
  170. package/.next/server/chunks/ssr/{node_modules_1ozyial._.js → node_modules_15vsfpv._.js} +1 -1
  171. package/.next/server/chunks/ssr/{node_modules_0sdjzae._.js → node_modules_17azpeb._.js} +1 -1
  172. package/.next/server/chunks/ssr/{node_modules_1zkzksd._.js → node_modules_1_il5l7._.js} +1 -1
  173. package/.next/server/chunks/ssr/{node_modules_0-ew8f8._.js → node_modules_1aeg65a._.js} +1 -1
  174. package/.next/server/chunks/ssr/{node_modules_0etz1i0._.js → node_modules_1d73q89._.js} +1 -1
  175. package/.next/server/chunks/ssr/{node_modules_0ld7p-1._.js → node_modules_1iq8zjs._.js} +1 -1
  176. package/.next/server/chunks/ssr/{node_modules_138kcrz._.js → node_modules_1mcsva4._.js} +1 -1
  177. package/.next/server/chunks/ssr/{node_modules_0uibk9z._.js → node_modules_1mhg5br._.js} +1 -1
  178. package/.next/server/chunks/ssr/{node_modules_1tj7_9z._.js → node_modules_1mqisle._.js} +1 -1
  179. package/.next/server/chunks/ssr/{node_modules_02uwbwp._.js → node_modules_1va4lz9._.js} +1 -1
  180. package/.next/server/chunks/ssr/{node_modules_097cl9f._.js → node_modules_207ay1p._.js} +1 -1
  181. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_133hjui._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_0hefprb._.js} +1 -1
  182. package/.next/server/chunks/ssr/{node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1b3vwd3._.js → node_modules_@mermaid-js_parser_dist_chunks_mermaid-parser_core_1uuvrfp._.js} +1 -1
  183. package/.next/server/middleware-build-manifest.js +3 -3
  184. package/.next/server/pages/404.html +1 -1
  185. package/.next/server/pages/500.html +1 -1
  186. package/.next/server/server-reference-manifest.js +1 -1
  187. package/.next/server/server-reference-manifest.json +61 -61
  188. package/.next/static/chunks/04toe_3nqfjqt.js +1 -0
  189. package/.next/static/chunks/{245_cp14iz637.js → 0780wmy0_rva8.js} +1 -1
  190. package/.next/static/chunks/{314szf8yer-3n.js → 09opsnra7k4k0.js} +2 -2
  191. package/.next/static/chunks/{42m371fn687r5.js → 0if7xqoj3ysfj.js} +1 -1
  192. package/.next/static/chunks/{0609ejkwuy4sf.js → 1-q6so9vze75d.js} +2 -2
  193. package/.next/static/chunks/{23tx-2paw9qa6.js → 106jbz6qd0c5l.js} +1 -1
  194. package/.next/static/chunks/19wkcgzetkh6-.js +1 -0
  195. package/.next/static/chunks/{39miwvg4k-b2d.js → 1_me_-lnpwdfd.js} +1 -1
  196. package/.next/static/chunks/{2oa4gpkzjtpni.js → 1mkw_05uc8_ft.js} +1 -1
  197. package/.next/static/chunks/1njjf8bfkg4_v.js +1 -0
  198. package/.next/static/chunks/{1ub9obhgfm4jl.js → 25ciqm-ee14nf.js} +1 -1
  199. package/.next/static/chunks/{2xjr5b-yk_h3o.js → 29laj9_xhx0d1.js} +1 -1
  200. package/.next/static/chunks/{2jbjyazqfqyoh.js → 2b306ek_blfp1.js} +1 -1
  201. package/.next/static/chunks/2mpqmpf8wcst1.js +15 -0
  202. package/.next/static/chunks/{3ro66d9dc70bc.js → 2rpyc6mevfhu6.js} +1 -1
  203. package/.next/static/chunks/{0cl_fgkphk1oz.js → 2wj77vx62ng3n.js} +1 -1
  204. package/.next/static/chunks/{3j-l8un0d77v7.js → 2y2v3bk65fdle.js} +3 -3
  205. package/.next/static/chunks/{3vwjs5kq11417.js → 32oho7re_n3dq.js} +1 -1
  206. package/.next/static/chunks/388l-zszwa_jf.js +1 -0
  207. package/.next/static/chunks/{0q4ws7qd21chx.js → 3_s5svfgu9kl_.js} +3 -3
  208. package/.next/static/chunks/3bwrvpjk95_x4.js +1 -0
  209. package/.next/static/chunks/{07vcuxousbmy1.js → 3suz18umxycuk.js} +1 -1
  210. package/.next/static/chunks/{0unonxbajyknw.js → 44n-w1bs83ejz.js} +1 -1
  211. package/README.md +12 -12
  212. package/guide/bots.md +48 -8
  213. package/guide/calls.md +13 -12
  214. package/guide/setup.md +4 -2
  215. package/package.json +1 -1
  216. package/public/sounds/NOTICE +3 -0
  217. package/public/sounds/opening-land.ogg +0 -0
  218. package/public/sounds/opening-rise.ogg +0 -0
  219. package/public/sounds/opening-step-1.ogg +0 -0
  220. package/public/sounds/opening-step-2.ogg +0 -0
  221. package/public/sounds/opening-step-3.ogg +0 -0
  222. package/skills/README.md +3 -0
  223. package/skills/artifact/SKILL.md +6 -5
  224. package/skills/artifact/references/book.md +23 -8
  225. package/skills/artifact/references/deck.md +4 -2
  226. package/skills/artifact/references/document.md +9 -0
  227. package/skills/artifact/references/sheet.md +113 -0
  228. package/skills/artifact/runtime/book/book.css +75 -0
  229. package/skills/artifact/runtime/book/book.html +6 -3
  230. package/skills/artifact/runtime/book/book.js +21 -0
  231. package/skills/artifact/runtime/canvas/canvas.css +1 -1
  232. package/skills/artifact/runtime/canvas/canvas.js +11 -1
  233. package/skills/artifact/runtime/deck/deck.css +164 -1
  234. package/skills/artifact/runtime/deck/deck.js +76 -1
  235. package/skills/artifact/runtime/document/docx.js +631 -0
  236. package/skills/artifact/runtime/document/markdown.mjs +58 -2
  237. package/skills/artifact/runtime/document/quick.css +66 -0
  238. package/skills/artifact/runtime/document/quick.html +1 -0
  239. package/skills/artifact/runtime/document/quick.js +154 -0
  240. package/skills/artifact/runtime/document/word.mjs +65 -0
  241. package/skills/artifact/runtime/sheet/format.mjs +392 -0
  242. package/skills/artifact/runtime/sheet/formula.mjs +755 -0
  243. package/skills/artifact/runtime/sheet/sheet.css +499 -0
  244. package/skills/artifact/runtime/sheet/sheet.html +102 -0
  245. package/skills/artifact/runtime/sheet/sheet.js +1361 -0
  246. package/skills/artifact/runtime/sheet/xlsx.mjs +320 -0
  247. package/skills/artifact/runtime/shell/head.html +1 -1
  248. package/skills/artifact/runtime/shell/shell.css +3 -0
  249. package/skills/artifact/runtime/shell/wear.mjs +47 -1
  250. package/skills/artifact/runtime/vendor/fflate.LICENSE.md +23 -0
  251. package/skills/artifact/runtime/vendor/fflate.mjs +2710 -0
  252. package/skills/artifact/scripts/book.mjs +160 -11
  253. package/skills/artifact/scripts/chart.mjs +229 -11
  254. package/skills/artifact/scripts/document.mjs +29 -2
  255. package/skills/artifact/scripts/spreadsheet.mjs +1165 -0
  256. package/skills/data-report/SKILL.md +8 -1
  257. package/.next/server/chunks/[root-of-the-server]__0aijj66._.js +0 -3
  258. package/.next/server/chunks/[root-of-the-server]__0tvoct-._.js +0 -3
  259. package/.next/server/chunks/[root-of-the-server]__118qjk_._.js +0 -7
  260. package/.next/server/chunks/[root-of-the-server]__1b8tp42._.js +0 -5
  261. package/.next/server/chunks/[root-of-the-server]__1gzcbda._.js +0 -3
  262. package/.next/server/chunks/[root-of-the-server]__1qcn1ti._.js +0 -7
  263. package/.next/server/chunks/_0xx3ryc._.js +0 -7
  264. package/.next/server/chunks/ssr/[root-of-the-server]__1y5_1cv._.js +0 -3
  265. package/.next/server/chunks/ssr/_0-ou1b0._.js +0 -3
  266. package/.next/server/chunks/ssr/_1g48r6t._.js +0 -3
  267. package/.next/server/chunks/ssr/_1u5vsy-._.js +0 -3
  268. package/.next/server/chunks/ssr/features_bot_1s_-2vj._.js +0 -3
  269. package/.next/server/chunks/ssr/lib_utils_ts_0_f1xvm._.js +0 -3
  270. package/.next/static/chunks/00d54fcfm-lko.js +0 -1
  271. package/.next/static/chunks/0gjlsu6vrfzod.js +0 -1
  272. package/.next/static/chunks/17yqt1p_svv13.js +0 -1
  273. package/.next/static/chunks/203pbwecfs3tm.js +0 -1
  274. package/.next/static/chunks/3ghvoe_mlljzs.js +0 -15
  275. package/.next/static/chunks/3gn7dubb4-pwy.js +0 -1
  276. /package/.next/static/{RtLRT9EEaGn-OqwpMFdYg → SNCDmWKeIrXB6yqnwzClS}/_buildManifest.js +0 -0
  277. /package/.next/static/{RtLRT9EEaGn-OqwpMFdYg → SNCDmWKeIrXB6yqnwzClS}/_clientMiddlewareManifest.js +0 -0
  278. /package/.next/static/{RtLRT9EEaGn-OqwpMFdYg → SNCDmWKeIrXB6yqnwzClS}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[852307,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(340695),e=a.i(864037),f=a.i(287702),g=a.i(405050);let h=(0,g.createServerReference)("7fdbec52fca9779bc3d86f8f86380eaa20640783cd",g.callServer,void 0,g.findSourceMapURL,"startChatGptSignInAction");var i=a.i(313237);a.s(["ChatGptSignIn",0,function({variant:a}){let[g,j]=(0,c.useState)(!1),k=(0,c.useRef)(null),l=()=>{k.current&&clearInterval(k.current),k.current=null};(0,c.useEffect)(()=>l,[]);let[m,n]=(0,i.useServerAction)(h,{onOk:a=>{let b=window.open(a,"thursday-chatgpt","popup,width=520,height=720");if(!b)return void e.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"});j(!0),l();let c=Date.now()+f.CHATGPT_SIGN_IN.waitMs;k.current=setInterval(()=>{!b.closed&&Date.now()<c||(l(),j(!1))},700)}});return(0,b.jsx)(d.Button,{variant:a,loading:n||g,onClick:()=>m(),children:"Sign in with ChatGPT"})}],852307)},608902,a=>{"use strict";var b=a.i(187924),c=a.i(752562),d=a.i(340345),e=a.i(256987),f=a.i(126766),g=a.i(572131),h=a.i(767561),i=a.i(340695),j=a.i(205522),k=a.i(630342),l=a.i(287702),m=a.i(251939),n=a.i(313237),o=a.i(759497),p=a.i(497895),q=a.i(61876),r=a.i(852307),s=a.i(158983),t=a.i(233540),u=a.i(270390),v=a.i(965733),w=a.i(777794),x=a.i(379630);let y={alibaba:[{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"}],amazon:[{d:"M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z"}],"arcee-ai":[{d:"M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z"}],bfl:[{d:"M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z"},{d:"M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z"}],bytedance:[{d:"M14.944 18.587l-1.704-.445V10.01l1.824-.462c1-.254 1.84-.461 1.88-.453.032 0 .056 2.235.056 4.972v4.973l-.176-.008c-.104 0-.952-.207-1.88-.446z"},{d:"M7 16.542c0-2.736.024-4.98.064-4.98.032-.008.872.2 1.88.454l1.816.461-.016 4.05-.024 4.049-1.632.422c-.896.23-1.736.445-1.856.469L7 21.523v-4.98z"},{d:"M19.24 12.477c0-9.03.008-9.515.144-9.475.072.024.784.207 1.576.406.792.207 1.576.405 1.744.445l.296.08-.016 8.56-.024 8.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z"},{d:"M1 12.509c0-4.678.024-8.505.064-8.505.032 0 .872.207 1.872.454l1.824.461v7.582c0 4.16-.016 7.574-.032 7.574-.024 0-.872.215-1.88.47L1 21.013v-8.505z"}],"fish-audio":[{d:"M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31"}],inception:[{d:"M14.767 1H7.884L1 7.883v6.884h6.884V7.883h6.883V1zM9.234 23h6.882L23 16.116V9.233h-6.884v6.883H9.234V23z"}],klingai:[{d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"}],kwaipilot:[{d:"M11.765.03C5.327.03.108 5.25.108 11.686c0 3.514 1.556 6.665 4.015 8.804L9.89 8.665h6.451L9.31 23.083c.807.173 1.63.26 2.455.26 6.438 0 11.657-5.22 11.657-11.658S18.202.028 11.765.028V.03z"}],meta:[{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"}],minimax:[{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"}],moonshotai:[{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"}],morph:[{d:"M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"}],nvidia:[{d:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z"}],perplexity:[{d:"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"}],recraft:[{d:"M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z"},{d:"M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z"}],stepfun:[{d:"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"}],tencent:[{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"}],voyage:[{d:"M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z"}],xiaomi:[{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"}],zai:[{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"}]};function z({owner:a,className:c}){let d=q.GATEWAY_OWNERS[a];if(d)return(0,b.jsx)(x.ProviderIcon,{provider:d,className:c});let e=y[a];return e?(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:c,"aria-hidden":"true",children:e.map(a=>(0,b.jsx)("path",{d:a.d,opacity:a.opacity},a.d))}):null}function A({models:a,kind:c,value:d,loading:e,onPick:f}){let[h,k]=(0,g.useState)(!1),[l,m]=(0,g.useState)(""),[n,o]=(0,g.useState)("cheap"),[r,x]=(0,g.useState)(d),y=a.filter(a=>a.type===(c??q.GATEWAY_TEXT)),z=c?y:y.filter(a=>a.tags.includes(q.GATEWAY_TOOL_USE)),E=l.trim().toLowerCase(),G=(E?z.filter(a=>`${a.id} ${a.label}`.toLowerCase().includes(E)):z).slice().sort(C[n].compare);return(0,b.jsxs)(v.Dialog,{open:h,onOpenChange:a=>{k(a),a?x(d):m("")},children:[(0,b.jsxs)(v.DialogTrigger,{render:(0,b.jsx)("button",{type:"button","aria-label":"Model",className:(0,p.cn)(j.inputClassName,"relative flex items-center pr-8 text-left font-mono text-sm")}),children:[(0,b.jsx)("span",{className:(0,p.cn)("min-w-0 flex-1 truncate",!d&&"font-sans text-muted-foreground"),children:d||"Pick a model"}),(0,b.jsx)("span",{className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground",children:e&&0===z.length?(0,b.jsx)(s.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,b.jsx)(t.Search,{className:"size-3.5"})})]}),(0,b.jsx)(v.DialogContent,{className:"h-[min(40rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-2xl",children:(0,b.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,b.jsxs)("div",{className:"shrink-0 space-y-1 px-6 pt-5 pb-4",children:[(0,b.jsxs)(v.DialogTitle,{className:"flex items-center gap-2.5 text-xl font-semibold",children:[(0,b.jsx)(u.VercelIcon,{className:"size-3.5"}),c?B[c]:"Text"," models"]}),(0,b.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:E?`${G.length} matching “${l.trim()}”`:c?`${z.length} on the gateway`:`${z.length} of ${y.length} on the gateway can call tools`})]}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-6 py-3",children:[(0,b.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,b.jsx)(t.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,b.jsx)(j.Input,{autoFocus:!0,"aria-label":"Search models",placeholder:"name, id or provider",spellCheck:!1,value:l,onChange:a=>m(a.target.value),className:"h-8 pl-8 font-mono text-xs"})]}),(0,b.jsx)(w.Segmented,{"aria-label":"Sort",options:D,value:n,onChange:o})]}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-4 px-6 pb-1.5 font-mono text-[10px] tracking-wide text-muted-foreground/60",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1",children:"model"}),(0,b.jsx)("span",{className:"w-28 text-right",children:"per 1M in / out"})]}),(0,b.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border/60",children:[G.map(a=>(0,b.jsx)(F,{model:a,picked:a.id===r,onPick:()=>x(a.id)},a.id)),0===G.length&&(0,b.jsxs)("div",{className:"flex flex-col items-start gap-2.5 p-10",children:[(0,b.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:E?`Nothing matches “${l.trim()}”.`:"Nothing on the shelf — search for an id."}),E&&(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsxs)(i.Button,{size:"sm",onClick:()=>x(l.trim()),children:["Use “",l.trim(),"” as the id"]}),(0,b.jsx)(i.Button,{variant:"outline",size:"sm",onClick:()=>m(""),children:"Clear search"})]})]})]}),(0,b.jsxs)("div",{className:"flex h-14 shrink-0 items-center gap-3 border-t border-border/60 px-6",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:r||"Nothing picked — the field keeps what it has"}),(0,b.jsx)(i.Button,{variant:"outline",onClick:()=>k(!1),children:"Cancel"}),(0,b.jsx)(i.Button,{disabled:!r,onClick:()=>{f(r),k(!1)},children:"Use this model"})]})]})})]})}let B={image:"Image",video:"Video",speech:"Speech",transcription:"Transcription"},C={cheap:{label:"$↑",title:"Cheapest first",compare:(a,b)=>(a.price.in??1/0)-(b.price.in??1/0)},dear:{label:"$↓",title:"Dearest first",compare:(a,b)=>(b.price.in??-1)-(a.price.in??-1)},name:{label:"a–z",title:"By name",compare:(a,b)=>a.label.localeCompare(b.label)}},D=Object.keys(C).map(a=>({value:a,label:C[a].label,title:C[a].title})),E=a=>a>=1?a.toFixed(2):String(Number(a.toFixed(4)));function F({model:a,picked:d,onPick:e}){let{price:f}=a,g=null!==f.in||null!==f.out;return(0,b.jsxs)("button",{type:"button",onClick:e,className:(0,p.cn)("flex w-full items-center gap-4 border-b border-border/60 px-6 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",d?"bg-muted/40":"hover:bg-muted/50"),children:[(0,b.jsx)("span",{className:"grid size-[18px] shrink-0 place-items-center",children:(0,b.jsx)(z,{owner:a.owner,className:"size-[15px]"})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,b.jsx)("span",{className:(0,p.cn)("truncate text-[13px]",d&&"font-medium"),children:a.label}),d&&(0,b.jsx)(c.Check,{className:"size-3.5 shrink-0"}),a.retiring&&(0,b.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"retiring"})]}),(0,b.jsx)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:a.id})]}),(0,b.jsxs)("span",{className:"flex w-28 shrink-0 flex-col items-end",children:[(0,b.jsx)("span",{className:(0,p.cn)("font-mono text-xs",g||f.free?"text-foreground":"text-muted-foreground"),children:f.free?"free":null===f.in&&null===f.out?f.note??"—":`${null===f.in?"—":E(f.in)} / ${null===f.out?"—":E(f.out)}`}),g&&f.note&&(0,b.jsx)("span",{className:"font-mono text-[9px] text-muted-foreground/70",children:f.note})]})]})}function G({tier:a}){return(0,b.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:a})}function H({provider:a,onSaved:c}){let[d,e]=(0,g.useState)(""),[f,k]=(0,n.useServerAction)(m.setConfigAction,{onOk:()=>{(0,o.revalidate)(h.queryKey.llmModel),(0,o.revalidate)(h.queryKey.config),c()}});return a.signIn?(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:"Runs on your plan once you sign in"}),(0,b.jsx)(r.ChatGptSignIn,{variant:"outline"})]}):(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(j.Input,{value:d,onChange:a=>e(a.target.value),placeholder:q.TEXT_MODEL_PROVIDERS[a.id].keyLooks??"Paste the key",spellCheck:!1,type:"password"}),(0,b.jsx)(i.Button,{variant:"outline",loading:k,disabled:d.trim().length<l.KEY_MIN,onClick:()=>f(a.apiKeyName,d),children:"Save key"})]})}a.s(["ModelPicker",0,function({provider:a,model:l,kind:m,unset:n,onChange:r,onUnset:s,compact:t=!1}){let{data:u=[],mutate:v}=(0,o.useServerRoute)(h.queryKey.llmModel),w=m?u.filter(a=>(0,q.canMakeKind)(a.id,m)):u,y=w.find(b=>b.id===a),[z,B]=(0,g.useState)(!1),[C,D]=(0,g.useState)(null),[E,F]=(0,g.useState)(""),I=w.find(b=>b.id===(C??a))??w[0],J=I?.id==="vercel-ai-gateway",K=(0,o.useServerRoute)(z&&J&&h.queryKey.modelCatalog),L=a=>m&&a?q.MEDIA_MODEL_PROVIDERS[a.id]?.models[m]??[]:a?.suggestModels??[],M=L(y).find(a=>a.id===l),N=a=>{I&&a.trim()&&(r({provider:I.id,model:a.trim()}),F(""),B(!1))};return(0,b.jsxs)(k.Popover,{open:z,onOpenChange:a=>{B(a),a||D(null)},children:[(0,b.jsxs)(k.PopoverTrigger,{render:t?(0,b.jsx)("button",{type:"button",className:"inline-flex h-5 max-w-64 items-center gap-1.5 rounded-full px-2 text-foreground/80 ring-1 ring-border outline-none ring-inset transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"}):(0,b.jsx)(i.Button,{variant:"outline",className:"w-full min-w-0 justify-start gap-2 font-normal"}),children:[y?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.ProviderIcon,{provider:y.id,className:(0,p.cn)("shrink-0",t?"size-3":"size-4")}),!t&&(0,b.jsxs)("span",{className:"min-w-0 max-w-fit grow basis-0 truncate text-muted-foreground",children:[y.label,(0,b.jsx)("span",{className:"ml-2 text-muted-foreground/40",children:"·"})]}),(0,b.jsx)("span",{className:(0,p.cn)("truncate",!t&&"font-medium"),children:M?.label??(l||"Pick a model")})]}):(0,b.jsx)("span",{className:"truncate text-muted-foreground",children:n??(m?"Not picked":"App default")}),(0,b.jsx)(d.ChevronsUpDown,{className:(0,p.cn)("ml-auto shrink-0 text-muted-foreground",t?"size-2.5":"size-3.5")})]}),(0,b.jsxs)(k.PopoverContent,{align:"start",className:"flex w-[min(34rem,calc(100vw-2rem))] flex-row gap-0 overflow-hidden rounded-2xl p-0",children:[(0,b.jsxs)("div",{className:"flex max-h-80 w-48 shrink-0 flex-col gap-px overflow-y-auto border-r border-border/60 bg-muted/40 p-1.5",children:[s&&(0,b.jsxs)("button",{type:"button",onClick:()=>{s(),B(!1)},className:(0,p.cn)("mb-1 flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",y?"hover:bg-muted/60":"bg-muted font-medium"),children:[(0,b.jsx)(e.CircleDashed,{className:"size-4 shrink-0 text-muted-foreground"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate",children:n??(m?"Not picked":"App default")}),!y&&(0,b.jsx)(c.Check,{className:"size-3.5 shrink-0"})]}),w.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>D(a.id),className:(0,p.cn)("flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",a.id===I?.id?"bg-muted font-medium":"hover:bg-muted/60",!a.hasKey&&"text-muted-foreground"),children:[(0,b.jsx)(x.ProviderIcon,{provider:a.id,className:"size-4 shrink-0"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a.label}),!a.hasKey&&(0,b.jsx)(f.KeyRound,{className:"size-3 shrink-0"})]},a.id))]}),(0,b.jsx)("div",{className:"flex max-h-80 min-w-0 flex-1 flex-col gap-px overflow-y-auto p-1.5",children:I?I.hasKey?J&&!K.error?(0,b.jsxs)("div",{className:"space-y-2 p-2",children:[(0,b.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"Every model the gateway carries, with what each costs."}),(0,b.jsx)(A,{models:K.data??[],kind:m,value:I.id===a?l:"",loading:K.isLoading,onPick:N})]}):(0,b.jsxs)(b.Fragment,{children:[L(I).map(d=>{let e=I.id===a&&d.id===l;return(0,b.jsxs)("button",{type:"button",onClick:()=>N(d.id),className:(0,p.cn)("flex shrink-0 items-center gap-2 rounded-lg px-2.5 py-1.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e?"bg-muted":"hover:bg-muted/60"),children:[(0,b.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,b.jsx)("span",{className:"truncate",children:d.label}),(0,b.jsx)(G,{tier:d.tier})]}),(0,b.jsx)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:d.id})]}),e&&(0,b.jsx)(c.Check,{className:"size-3.5 shrink-0"})]},d.id)}),(0,b.jsx)("form",{onSubmit:a=>{a.preventDefault(),N(E)},className:"mt-1 px-1 pb-1",children:(0,b.jsx)(j.Input,{value:E,onChange:a=>F(a.target.value),spellCheck:!1,"aria-label":"Model id",placeholder:K.error?"Could not read the catalog — type an id":"or type a model id",className:"h-8 font-mono text-xs"})})]}):(0,b.jsxs)("div",{className:"space-y-2 p-2",children:[(0,b.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:[I.label," has no key yet."]}),(0,b.jsx)(H,{provider:I,onSaved:()=>v()})]}):null})]})]})}],608902)},256987,a=>{"use strict";var b=a.i(164831);let c={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};c.node;let d=(0,b.default)(c);a.s(["CircleDashed",0,d],256987)}];
1
+ module.exports=[852307,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(340695),e=a.i(864037),f=a.i(287702),g=a.i(405050);let h=(0,g.createServerReference)("7f7f88ce6deb3795ddd76c2998c3c207fce6bd5048",g.callServer,void 0,g.findSourceMapURL,"startChatGptSignInAction");var i=a.i(313237);a.s(["ChatGptSignIn",0,function({variant:a}){let[g,j]=(0,c.useState)(!1),k=(0,c.useRef)(null),l=()=>{k.current&&clearInterval(k.current),k.current=null};(0,c.useEffect)(()=>l,[]);let[m,n]=(0,i.useServerAction)(h,{onOk:a=>{let b=window.open(a,"thursday-chatgpt","popup,width=520,height=720");if(!b)return void e.toast.add({type:"error",title:"The sign-in window was blocked",description:"Allow pop-ups for this page, then try again"});j(!0),l();let c=Date.now()+f.CHATGPT_SIGN_IN.waitMs;k.current=setInterval(()=>{!b.closed&&Date.now()<c||(l(),j(!1))},700)}});return(0,b.jsx)(d.Button,{variant:a,loading:n||g,onClick:()=>m(),children:"Sign in with ChatGPT"})}],852307)},608902,a=>{"use strict";var b=a.i(187924),c=a.i(752562),d=a.i(340345),e=a.i(256987),f=a.i(126766),g=a.i(572131),h=a.i(767561),i=a.i(340695),j=a.i(205522),k=a.i(630342),l=a.i(287702),m=a.i(76004),n=a.i(313237),o=a.i(759497),p=a.i(497895),q=a.i(61876),r=a.i(852307),s=a.i(158983),t=a.i(233540),u=a.i(270390),v=a.i(965733),w=a.i(777794),x=a.i(379630);let y={alibaba:[{d:"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z"}],amazon:[{d:"M13.05 15.513h3.08c.214 0 .389.177.389.394v1.82a1.704 1.704 0 011.296 1.661c0 .943-.755 1.708-1.685 1.708-.931 0-1.686-.765-1.686-1.708 0-.807.554-1.484 1.297-1.662v-1.425h-2.69v4.663a.395.395 0 01-.188.338l-2.69 1.641a.385.385 0 01-.405-.002l-4.926-3.086a.395.395 0 01-.185-.336V16.3L2.196 14.87A.395.395 0 012 14.555L2 14.528V9.406c0-.14.073-.27.192-.34l2.465-1.462V4.448c0-.129.062-.249.165-.322l.021-.014L9.77 1.058a.385.385 0 01.407 0l2.69 1.675a.395.395 0 01.185.336V7.6h3.856V5.683a1.704 1.704 0 01-1.296-1.662c0-.943.755-1.708 1.685-1.708.931 0 1.685.765 1.685 1.708 0 .807-.553 1.484-1.296 1.662v2.311a.391.391 0 01-.389.394h-4.245v1.806h6.624a1.69 1.69 0 011.64-1.313c.93 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708a1.69 1.69 0 01-1.64-1.314H13.05v1.937h4.953l.915 1.18a1.66 1.66 0 01.84-.227c.931 0 1.685.764 1.685 1.707 0 .943-.754 1.708-1.685 1.708-.93 0-1.685-.765-1.685-1.708 0-.346.102-.668.276-.937l-.724-.935H13.05v1.806zM9.973 1.856L7.93 3.122V6.09h-.778V3.604L5.435 4.669v2.945l2.11 1.36L9.712 7.61V5.334h.778V7.83c0 .136-.07.263-.184.335L7.963 9.638v2.081l1.422 1.009-.446.646-1.406-.998-1.53 1.005-.423-.66 1.605-1.055v-1.99L5.038 8.29l-2.26 1.34v1.676l1.972-1.189.398.677-2.37 1.429V14.3l2.166 1.258 2.27-1.368.397.677-2.176 1.311V19.3l1.876 1.175 2.365-1.426.398.678-2.017 1.216 1.918 1.201 2.298-1.403v-5.78l-4.758 2.893-.4-.675 5.158-3.136V3.289L9.972 1.856zM16.13 18.47a.913.913 0 00-.908.92c0 .507.406.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zm3.63-3.81a.913.913 0 00-.908.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92zm1.555-4.99a.913.913 0 00-.908.92c0 .507.407.918.908.918a.913.913 0 00.907-.919.913.913 0 00-.907-.92zM17.296 3.1a.913.913 0 00-.907.92c0 .508.406.92.907.92a.913.913 0 00.908-.92.913.913 0 00-.908-.92z"}],"arcee-ai":[{d:"M13.236 2.377L2.751 20.493H0L11.863 0l1.373 2.377zm3.554 6.156l-9.606 11.96H4.13L15.511 6.32l1.279 2.212zm6.908 11.96H14.05l8.406-2.151 1.242 2.15zm-3.42-5.922l-7.843 5.92H8.482l10.597-7.997 1.2 2.077z"}],bfl:[{d:"M0 20.683L12.01 2.5 24 20.683h-2.233L12.009 5.878 3.471 18.806h12.122l1.239 1.877H0z"},{d:"M8.069 16.724l2.073-3.115 2.074 3.115H8.069zM18.24 20.683l-5.668-8.707h2.177l5.686 8.707h-2.196zM19.74 11.676l2.13-3.19 2.13 3.19h-4.26z"}],bytedance:[{d:"M14.944 18.587l-1.704-.445V10.01l1.824-.462c1-.254 1.84-.461 1.88-.453.032 0 .056 2.235.056 4.972v4.973l-.176-.008c-.104 0-.952-.207-1.88-.446z"},{d:"M7 16.542c0-2.736.024-4.98.064-4.98.032-.008.872.2 1.88.454l1.816.461-.016 4.05-.024 4.049-1.632.422c-.896.23-1.736.445-1.856.469L7 21.523v-4.98z"},{d:"M19.24 12.477c0-9.03.008-9.515.144-9.475.072.024.784.207 1.576.406.792.207 1.576.405 1.744.445l.296.08-.016 8.56-.024 8.568-1.624.414c-.888.23-1.728.437-1.856.47l-.24.055v-9.523z"},{d:"M1 12.509c0-4.678.024-8.505.064-8.505.032 0 .872.207 1.872.454l1.824.461v7.582c0 4.16-.016 7.574-.032 7.574-.024 0-.872.215-1.88.47L1 21.013v-8.505z"}],"fish-audio":[{d:"M23.12 12.13v.62c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.62c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.37v1.74c0 .24.2.44.44.44.25 0 .44-.2.44-.44V12.5c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76.43v1.99q0 .09.03.17.04.08.1.14.07.07.15.1t.17.03c.24 0 .44-.19.44-.44v-1.99c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17m-1.76.35v1.97c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-1.97c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m-1.77.32v1.65c0 .25.2.45.44.45s.44-.2.44-.45V13.6c0-.25-.2-.45-.44-.45s-.44.2-.44.45m-1.76 1.26v.3q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-.3q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M0 9.38v.19c0 .24.2.44.44.44.25 0 .44-.2.44-.44v-.19c0-.25-.19-.44-.44-.44-.24 0-.44.19-.44.44m1.82.15v.81c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.81q0-.18-.13-.31t-.31-.13-.31.13-.13.31m1.81-.24v3.39q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V9.29q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3m1.83-.35v.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-.22q0-.18-.13-.31T5.9 8.5t-.31.13-.13.31m0 2.94v2.34c0 .25.19.44.44.44.24 0 .44-.19.44-.44v-2.34c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44m15.89-3.32V11c0 .25.2.44.44.44.25 0 .44-.19.44-.44V8.56c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.76-.39v3.28q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.17c0-.25-.2-.44-.44-.44q-.09 0-.17.03t-.15.1q-.06.06-.1.14-.03.08-.03.17M17.83 8v3.9c0 .24.19.44.44.44.24 0 .44-.2.44-.44V8c0-.25-.2-.44-.44-.44-.25 0-.44.19-.44.44m-1.77.11v3.96c0 .25.2.44.44.44s.44-.19.44-.44V8.11c0-.25-.2-.44-.44-.44s-.44.19-.44.44m-1.76.27v5.03q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.38c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.8.46v5.75q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3V8.84c0-.25-.2-.44-.45-.44-.24 0-.44.19-.44.44m-1.76.76v5.52c0 .24.2.44.44.44.25 0 .44-.2.44-.44V9.6c0-.24-.19-.44-.44-.44-.24 0-.44.2-.44.44m-1.77 1.01v4.77q.01.17.14.3.13.11.3.12.18-.01.31-.12.13-.13.14-.3v-4.77q-.01-.17-.14-.3-.13-.11-.31-.12-.17.01-.3.12-.13.13-.14.3M23.12 9.6v1.22c0 .24.19.44.44.44.24 0 .44-.2.44-.44V9.6c0-.24-.2-.44-.44-.44-.25 0-.44.2-.44.44M7.21 11.32V16c0 .24.19.44.44.44.24 0 .44-.2.44-.44v-4.68q0-.18-.13-.31t-.31-.13-.31.13-.13.31"}],inception:[{d:"M14.767 1H7.884L1 7.883v6.884h6.884V7.883h6.883V1zM9.234 23h6.882L23 16.116V9.233h-6.884v6.883H9.234V23z"}],klingai:[{d:"M5.493 21.234c-1.112-1.451-1.109-4.263-.081-7.459l-4.557-2.63a1.683 1.683 0 01-.85-1.304 1.505 1.505 0 01.08-.622 13.18 13.18 0 011.037-2.255c3.476-6.02 10.916-8.23 16.619-4.938.46.266.82.67 1.081 1.184.785 1.545.685 4.096-.234 6.954l4.557 2.631c.339.196.596.492.736.832a1.53 1.53 0 01.034 1.093 13.146 13.146 0 01-1.037 2.255c-3.476 6.02-10.916 8.23-16.619 4.938a2.6 2.6 0 01-.766-.68zm11.096-6.615c-2.073 3.591-5.808 5.316-8.343 3.852-1.267-.731-1.994-2.122-2.145-3.778-.095-1.035.036-2.173.4-3.32.217-.684.517-1.37.902-2.039l.008-.014c2.073-3.59 5.808-5.315 8.343-3.852.633.366 1.13.895 1.49 1.54.986 1.772.922 4.415-.285 6.914-.111.23-.232.457-.362.683l-.008.014z"}],kwaipilot:[{d:"M11.765.03C5.327.03.108 5.25.108 11.686c0 3.514 1.556 6.665 4.015 8.804L9.89 8.665h6.451L9.31 23.083c.807.173 1.63.26 2.455.26 6.438 0 11.657-5.22 11.657-11.658S18.202.028 11.765.028V.03z"}],meta:[{d:"M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z"}],minimax:[{d:"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z"}],moonshotai:[{d:"M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z"}],morph:[{d:"M7.941 2c.23 0 .452.073.638.21.186.136.325.328.397.55l.593 1.814c.073.221.212.413.397.55.186.136.409.21.638.21h2.791c.23 0 .452-.074.638-.21a1.11 1.11 0 00.397-.55l.594-1.815a1.11 1.11 0 01.397-.55c.185-.136.408-.209.637-.209h1.7c.23 0 .453.073.639.21.185.136.324.328.397.55l.652 1.994c.118.361.41.635.77.728l2.957.752c.236.06.446.199.596.394.15.195.23.436.231.684v9.376c0 .248-.081.488-.231.684a1.09 1.09 0 01-.595.394l-2.957.752a1.086 1.086 0 00-.477.263 1.114 1.114 0 00-.293.465l-.653 1.994a1.11 1.11 0 01-.396.55c-.186.136-.41.21-.638.21h-1.702c-.229 0-.452-.073-.637-.21a1.11 1.11 0 01-.397-.55l-.364-1.11a1.131 1.131 0 01.15-1.002 1.074 1.074 0 01.885-.462h2.85c.29 0 .567-.116.772-.325.204-.208.32-.49.32-.785V6.444c0-.294-.116-.577-.32-.785a1.08 1.08 0 00-.771-.326h-3.273c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v7.778c0 .295-.114.578-.319.786a1.08 1.08 0 01-.771.325h-2.182a1.08 1.08 0 01-.771-.325 1.122 1.122 0 01-.32-.786V6.444c0-.294-.115-.577-.32-.785a1.081 1.081 0 00-.77-.326H5.454c-.29 0-.567.117-.772.326-.204.208-.32.49-.32.785v11.112c0 .294.116.577.32.785.205.209.482.326.772.326h2.85a1.075 1.075 0 01.885.461 1.122 1.122 0 01.15 1.001l-.364 1.112a1.11 1.11 0 01-.397.55c-.185.136-.408.209-.637.209H6.24c-.229 0-.452-.073-.638-.21a1.11 1.11 0 01-.397-.55l-.652-1.994a1.114 1.114 0 00-.294-.465 1.086 1.086 0 00-.477-.263l-2.956-.752a1.09 1.09 0 01-.595-.394A1.124 1.124 0 010 16.688V7.312c0-.248.081-.489.231-.684.15-.195.36-.334.595-.394l2.957-.753c.178-.045.342-.136.477-.263.134-.127.235-.287.293-.464l.653-1.995a1.11 1.11 0 01.397-.55C5.788 2.075 6.01 2 6.24 2h1.701z"}],nvidia:[{d:"M10.212 8.976V7.62c.127-.01.256-.017.388-.021 3.596-.117 5.957 3.184 5.957 3.184s-2.548 3.647-5.282 3.647a3.227 3.227 0 01-1.063-.175v-4.109c1.4.174 1.681.812 2.523 2.258l1.873-1.627a4.905 4.905 0 00-3.67-1.846 6.594 6.594 0 00-.729.044m0-4.476v2.025c.13-.01.259-.019.388-.024 5.002-.174 8.261 4.226 8.261 4.226s-3.743 4.69-7.643 4.69c-.338 0-.675-.031-1.007-.092v1.25c.278.038.558.057.838.057 3.629 0 6.253-1.91 8.794-4.169.421.347 2.146 1.193 2.501 1.564-2.416 2.083-8.048 3.763-11.24 3.763-.308 0-.603-.02-.894-.048V19.5H24v-15H10.21zm0 9.756v1.068c-3.356-.616-4.287-4.21-4.287-4.21a7.173 7.173 0 014.287-2.138v1.172h-.005a3.182 3.182 0 00-2.502 1.178s.615 2.276 2.507 2.931m-5.961-3.3c1.436-1.935 3.604-3.148 5.961-3.336V6.523C5.81 6.887 2 10.723 2 10.723s2.158 6.427 8.21 7.015v-1.166C5.77 16 4.25 10.958 4.25 10.958h-.002z"}],perplexity:[{d:"M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"}],recraft:[{d:"M19.667 8.275c0-4.57-4.15-8.275-9.27-8.275-1.774 0-3.213 3.705-3.213 8.275 0 1.143.09 2.233.253 3.224H4.29L1 23h9.4v-6.447c5.117 0 9.266-3.707 9.266-8.275l.001-.002zm-9.27-6.76c.93 0 1.682 3.028 1.682 6.76 0 3.733-.752 6.76-1.681 6.76-.93 0-1.681-3.027-1.681-6.76 0-3.732.752-6.76 1.68-6.76z"},{d:"M19.848 16.552h-9.44L14.028 23h9.438l-3.618-6.448z"}],stepfun:[{d:"M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zM8.762 19.614H4.376v-4.386h4.386v4.386zm5.423 0H9.798v-4.386h4.387v4.386zm0-5.42H9.798V9.81h4.387v4.386zm0-5.418H9.798V4.39h4.387v4.386zm5.422-.004h-4.386V4.386h4.386v4.386z"}],tencent:[{d:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zm1.652 1.123l-.01-.001c.533.097 1.023.233 1.41.404 6.084 2.683 7.396 9.214 1.601 14.338a3.781 3.781 0 01-5.337-.328 3.654 3.654 0 01-.884-3.044c-1.934.6-3.295 2.305-3.524 4.45-.204 1.912.324 4.044 2.056 5.634l.245.067C10.1 22.876 11.036 23 12 23c6.075 0 11-4.925 11-11 0-5.513-4.056-10.08-9.348-10.877zM2.748 6.21c-.178.269-.348.536-.51.803l-.235.394.078-.167A10.957 10.957 0 001 12c0 4.919 3.228 9.083 7.682 10.49l.214.065C3.523 18.528 2.84 14.149 6.47 8.68A2.234 2.234 0 102.748 6.21zm10.157-5.172c4.408 1.33 3.61 5.41 2.447 6.924-.86 1.117-2.922 1.46-3.708 2.238-.666.657-1.077 1.462-1.212 2.291A5.303 5.303 0 0112 12.258a5.672 5.672 0 001.404-11.169 10.51 10.51 0 00-.5-.052z"}],voyage:[{d:"M5.407 0v.066a.974.974 0 00-.048.245c-.011.11-.016.208-.016.295 0 .339.043.715.128 1.13.097.405.274.912.531 1.524l7.125 16.366L20.011 3.39c.161-.404.333-.846.515-1.327.182-.48.273-.966.273-1.458a1.406 1.406 0 00-.096-.54V0H24v.066c-.204.207-.45.578-.74 1.114-.29.535-.606 1.195-.949 1.982L13.095 24h-1.287L3.075 3.965c-.204-.47-.418-.923-.644-1.36-.214-.437-.418-.83-.61-1.18-.194-.36-.365-.66-.515-.9A5.666 5.666 0 001 .064V0h4.407z"}],xiaomi:[{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"}],zai:[{d:"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"}]};function z({owner:a,className:c}){let d=q.GATEWAY_OWNERS[a];if(d)return(0,b.jsx)(x.ProviderIcon,{provider:d,className:c});let e=y[a];return e?(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",className:c,"aria-hidden":"true",children:e.map(a=>(0,b.jsx)("path",{d:a.d,opacity:a.opacity},a.d))}):null}function A({models:a,kind:c,value:d,loading:e,onPick:f}){let[h,k]=(0,g.useState)(!1),[l,m]=(0,g.useState)(""),[n,o]=(0,g.useState)("cheap"),[r,x]=(0,g.useState)(d),y=a.filter(a=>a.type===(c??q.GATEWAY_TEXT)),z=c?y:y.filter(a=>a.tags.includes(q.GATEWAY_TOOL_USE)),E=l.trim().toLowerCase(),G=(E?z.filter(a=>`${a.id} ${a.label}`.toLowerCase().includes(E)):z).slice().sort(C[n].compare);return(0,b.jsxs)(v.Dialog,{open:h,onOpenChange:a=>{k(a),a?x(d):m("")},children:[(0,b.jsxs)(v.DialogTrigger,{render:(0,b.jsx)("button",{type:"button","aria-label":"Model",className:(0,p.cn)(j.inputClassName,"relative flex items-center pr-8 text-left font-mono text-sm")}),children:[(0,b.jsx)("span",{className:(0,p.cn)("min-w-0 flex-1 truncate",!d&&"font-sans text-muted-foreground"),children:d||"Pick a model"}),(0,b.jsx)("span",{className:"absolute inset-y-0 right-0 flex w-8 items-center justify-center text-muted-foreground",children:e&&0===z.length?(0,b.jsx)(s.LoaderCircle,{className:"size-3.5 animate-spin"}):(0,b.jsx)(t.Search,{className:"size-3.5"})})]}),(0,b.jsx)(v.DialogContent,{className:"h-[min(40rem,calc(100vh-3rem))] gap-0 overflow-hidden p-0 sm:max-w-2xl",children:(0,b.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col",children:[(0,b.jsxs)("div",{className:"shrink-0 space-y-1 px-6 pt-5 pb-4",children:[(0,b.jsxs)(v.DialogTitle,{className:"flex items-center gap-2.5 text-xl font-semibold",children:[(0,b.jsx)(u.VercelIcon,{className:"size-3.5"}),c?B[c]:"Text"," models"]}),(0,b.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:E?`${G.length} matching “${l.trim()}”`:c?`${z.length} on the gateway`:`${z.length} of ${y.length} on the gateway can call tools`})]}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-3 border-t border-border/60 px-6 py-3",children:[(0,b.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,b.jsx)(t.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground"}),(0,b.jsx)(j.Input,{autoFocus:!0,"aria-label":"Search models",placeholder:"name, id or provider",spellCheck:!1,value:l,onChange:a=>m(a.target.value),className:"h-8 pl-8 font-mono text-xs"})]}),(0,b.jsx)(w.Segmented,{"aria-label":"Sort",options:D,value:n,onChange:o})]}),(0,b.jsxs)("div",{className:"flex shrink-0 items-center gap-4 px-6 pb-1.5 font-mono text-[10px] tracking-wide text-muted-foreground/60",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1",children:"model"}),(0,b.jsx)("span",{className:"w-28 text-right",children:"per 1M in / out"})]}),(0,b.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto border-t border-border/60",children:[G.map(a=>(0,b.jsx)(F,{model:a,picked:a.id===r,onPick:()=>x(a.id)},a.id)),0===G.length&&(0,b.jsxs)("div",{className:"flex flex-col items-start gap-2.5 p-10",children:[(0,b.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:E?`Nothing matches “${l.trim()}”.`:"Nothing on the shelf — search for an id."}),E&&(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsxs)(i.Button,{size:"sm",onClick:()=>x(l.trim()),children:["Use “",l.trim(),"” as the id"]}),(0,b.jsx)(i.Button,{variant:"outline",size:"sm",onClick:()=>m(""),children:"Clear search"})]})]})]}),(0,b.jsxs)("div",{className:"flex h-14 shrink-0 items-center gap-3 border-t border-border/60 px-6",children:[(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-muted-foreground",children:r||"Nothing picked — the field keeps what it has"}),(0,b.jsx)(i.Button,{variant:"outline",onClick:()=>k(!1),children:"Cancel"}),(0,b.jsx)(i.Button,{disabled:!r,onClick:()=>{f(r),k(!1)},children:"Use this model"})]})]})})]})}let B={image:"Image",video:"Video",speech:"Speech",transcription:"Transcription"},C={cheap:{label:"$↑",title:"Cheapest first",compare:(a,b)=>(a.price.in??1/0)-(b.price.in??1/0)},dear:{label:"$↓",title:"Dearest first",compare:(a,b)=>(b.price.in??-1)-(a.price.in??-1)},name:{label:"a–z",title:"By name",compare:(a,b)=>a.label.localeCompare(b.label)}},D=Object.keys(C).map(a=>({value:a,label:C[a].label,title:C[a].title})),E=a=>a>=1?a.toFixed(2):String(Number(a.toFixed(4)));function F({model:a,picked:d,onPick:e}){let{price:f}=a,g=null!==f.in||null!==f.out;return(0,b.jsxs)("button",{type:"button",onClick:e,className:(0,p.cn)("flex w-full items-center gap-4 border-b border-border/60 px-6 py-2.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",d?"bg-muted/40":"hover:bg-muted/50"),children:[(0,b.jsx)("span",{className:"grid size-[18px] shrink-0 place-items-center",children:(0,b.jsx)(z,{owner:a.owner,className:"size-[15px]"})}),(0,b.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,b.jsx)("span",{className:(0,p.cn)("truncate text-[13px]",d&&"font-medium"),children:a.label}),d&&(0,b.jsx)(c.Check,{className:"size-3.5 shrink-0"}),a.retiring&&(0,b.jsx)("span",{className:"shrink-0 font-mono text-[10px] text-muted-foreground",children:"retiring"})]}),(0,b.jsx)("span",{className:"block truncate font-mono text-[11px] text-muted-foreground",children:a.id})]}),(0,b.jsxs)("span",{className:"flex w-28 shrink-0 flex-col items-end",children:[(0,b.jsx)("span",{className:(0,p.cn)("font-mono text-xs",g||f.free?"text-foreground":"text-muted-foreground"),children:f.free?"free":null===f.in&&null===f.out?f.note??"—":`${null===f.in?"—":E(f.in)} / ${null===f.out?"—":E(f.out)}`}),g&&f.note&&(0,b.jsx)("span",{className:"font-mono text-[9px] text-muted-foreground/70",children:f.note})]})]})}function G({tier:a}){return(0,b.jsx)("span",{className:"shrink-0 rounded-full px-1.5 font-mono text-[9.5px] leading-4 font-normal text-muted-foreground ring-1 ring-border ring-inset",children:a})}function H({provider:a,onSaved:c}){let[d,e]=(0,g.useState)(""),[f,k]=(0,n.useServerAction)(m.setConfigAction,{onOk:()=>{(0,o.revalidate)(h.queryKey.llmModel),(0,o.revalidate)(h.queryKey.config),c()}});return a.signIn?(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,b.jsx)("p",{className:"px-1 font-mono text-[11px] text-muted-foreground",children:"Runs on your plan once you sign in"}),(0,b.jsx)(r.ChatGptSignIn,{variant:"outline"})]}):(0,b.jsxs)("div",{className:"flex gap-2",children:[(0,b.jsx)(j.Input,{value:d,onChange:a=>e(a.target.value),placeholder:q.TEXT_MODEL_PROVIDERS[a.id].keyLooks??"Paste the key",spellCheck:!1,type:"password"}),(0,b.jsx)(i.Button,{variant:"outline",loading:k,disabled:d.trim().length<l.KEY_MIN,onClick:()=>f(a.apiKeyName,d),children:"Save key"})]})}a.s(["ModelPicker",0,function({provider:a,model:l,kind:m,unset:n,onChange:r,onUnset:s,compact:t=!1}){let{data:u=[],mutate:v}=(0,o.useServerRoute)(h.queryKey.llmModel),w=m?u.filter(a=>(0,q.canMakeKind)(a.id,m)):u,y=w.find(b=>b.id===a),[z,B]=(0,g.useState)(!1),[C,D]=(0,g.useState)(null),[E,F]=(0,g.useState)(""),I=w.find(b=>b.id===(C??a))??w[0],J=I?.id==="vercel-ai-gateway",K=(0,o.useServerRoute)(z&&J&&h.queryKey.modelCatalog),L=a=>m&&a?q.MEDIA_MODEL_PROVIDERS[a.id]?.models[m]??[]:a?.suggestModels??[],M=L(y).find(a=>a.id===l),N=a=>{I&&a.trim()&&(r({provider:I.id,model:a.trim()}),F(""),B(!1))};return(0,b.jsxs)(k.Popover,{open:z,onOpenChange:a=>{B(a),a||D(null)},children:[(0,b.jsxs)(k.PopoverTrigger,{render:t?(0,b.jsx)("button",{type:"button",className:"inline-flex h-5 max-w-64 items-center gap-1.5 rounded-full px-2 text-foreground/80 ring-1 ring-border outline-none ring-inset transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50"}):(0,b.jsx)(i.Button,{variant:"outline",className:"w-full min-w-0 justify-start gap-2 font-normal"}),children:[y?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.ProviderIcon,{provider:y.id,className:(0,p.cn)("shrink-0",t?"size-3":"size-4")}),!t&&(0,b.jsxs)("span",{className:"min-w-0 max-w-fit grow basis-0 truncate text-muted-foreground",children:[y.label,(0,b.jsx)("span",{className:"ml-2 text-muted-foreground/40",children:"·"})]}),(0,b.jsx)("span",{className:(0,p.cn)("truncate",!t&&"font-medium"),children:M?.label??(l||"Pick a model")})]}):(0,b.jsx)("span",{className:"truncate text-muted-foreground",children:n??(m?"Not picked":"App default")}),(0,b.jsx)(d.ChevronsUpDown,{className:(0,p.cn)("ml-auto shrink-0 text-muted-foreground",t?"size-2.5":"size-3.5")})]}),(0,b.jsxs)(k.PopoverContent,{align:"start",className:"flex w-[min(34rem,calc(100vw-2rem))] flex-row gap-0 overflow-hidden rounded-2xl p-0",children:[(0,b.jsxs)("div",{className:"flex max-h-80 w-48 shrink-0 flex-col gap-px overflow-y-auto border-r border-border/60 bg-muted/40 p-1.5",children:[s&&(0,b.jsxs)("button",{type:"button",onClick:()=>{s(),B(!1)},className:(0,p.cn)("mb-1 flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",y?"hover:bg-muted/60":"bg-muted font-medium"),children:[(0,b.jsx)(e.CircleDashed,{className:"size-4 shrink-0 text-muted-foreground"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate",children:n??(m?"Not picked":"App default")}),!y&&(0,b.jsx)(c.Check,{className:"size-3.5 shrink-0"})]}),w.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>D(a.id),className:(0,p.cn)("flex h-8.5 shrink-0 items-center gap-2 rounded-lg px-2 text-left text-[13px] outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",a.id===I?.id?"bg-muted font-medium":"hover:bg-muted/60",!a.hasKey&&"text-muted-foreground"),children:[(0,b.jsx)(x.ProviderIcon,{provider:a.id,className:"size-4 shrink-0"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a.label}),!a.hasKey&&(0,b.jsx)(f.KeyRound,{className:"size-3 shrink-0"})]},a.id))]}),(0,b.jsx)("div",{className:"flex max-h-80 min-w-0 flex-1 flex-col gap-px overflow-y-auto p-1.5",children:I?I.hasKey?J&&!K.error?(0,b.jsxs)("div",{className:"space-y-2 p-2",children:[(0,b.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"Every model the gateway carries, with what each costs."}),(0,b.jsx)(A,{models:K.data??[],kind:m,value:I.id===a?l:"",loading:K.isLoading,onPick:N})]}):(0,b.jsxs)(b.Fragment,{children:[L(I).map(d=>{let e=I.id===a&&d.id===l;return(0,b.jsxs)("button",{type:"button",onClick:()=>N(d.id),className:(0,p.cn)("flex shrink-0 items-center gap-2 rounded-lg px-2.5 py-1.5 text-left outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",e?"bg-muted":"hover:bg-muted/60"),children:[(0,b.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,b.jsx)("span",{className:"truncate",children:d.label}),(0,b.jsx)(G,{tier:d.tier})]}),(0,b.jsx)("span",{className:"block truncate font-mono text-[10.5px] text-muted-foreground",children:d.id})]}),e&&(0,b.jsx)(c.Check,{className:"size-3.5 shrink-0"})]},d.id)}),(0,b.jsx)("form",{onSubmit:a=>{a.preventDefault(),N(E)},className:"mt-1 px-1 pb-1",children:(0,b.jsx)(j.Input,{value:E,onChange:a=>F(a.target.value),spellCheck:!1,"aria-label":"Model id",placeholder:K.error?"Could not read the catalog — type an id":"or type a model id",className:"h-8 font-mono text-xs"})})]}):(0,b.jsxs)("div",{className:"space-y-2 p-2",children:[(0,b.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:[I.label," has no key yet."]}),(0,b.jsx)(H,{provider:I,onSaved:()=>v()})]}):null})]})]})}],608902)},256987,a=>{"use strict";var b=a.i(164831);let c={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};c.node;let d=(0,b.default)(c);a.s(["CircleDashed",0,d],256987)}];
2
2
 
3
3
  //# sourceMappingURL=_0x8ophf._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[446334,a=>{"use strict";var b=a.i(187924),c=a.i(341889),d=a.i(497895);a.s(["SourceChips",0,function({sources:a,limit:e,className:f}){let g=a.flatMap(a=>{let b=(0,d.hostOf)(a.url);return b?[{...a,host:b}]:[]}),h=e?g.slice(0,e):g,i=g.length-h.length;return(0,b.jsxs)("span",{className:(0,d.cn)("flex min-w-0 flex-wrap items-center gap-1",f),children:[h.map(a=>(0,b.jsxs)("a",{href:a.url,target:"_blank",rel:"noreferrer",title:a.title??a.url,className:"flex h-[22px] min-w-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11.5px] leading-4 text-foreground/80 outline-none transition-colors hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)(c.SiteIcon,{host:a.host}),(0,b.jsx)("span",{className:"truncate",children:a.host})]},a.url)),i>0&&(0,b.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:["+",i]})]})}])},321799,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(452020),f=a.i(571987),g=a.i(572131),h=a.i(767561),i=a.i(287702),j=a.i(38793),k=a.i(369768),l=a.i(559553),m=a.i(759497),n=a.i(497895),o=b([j,k]);[j,k]=o.then?(await o)():o;let p=a=>a.split(".").pop()?.toLowerCase()??"file",q=a=>a.split("/").pop()??a;a.s(["Attachments",0,function({text:a,className:b,onBubble:c=!1}){let o=(0,g.useMemo)(()=>(0,l.pathsIn)(a),[a]),{data:r}=(0,m.useServerRoute)(o.length?h.queryKey.workspaceFiles(o):null),s=(0,g.useMemo)(()=>r??[],[r]),t=(0,g.useMemo)(()=>s.filter(a=>"image"===(0,l.viewKindOf)(a.path)),[s]),u=(0,g.useMemo)(()=>{let a=0;return s.filter(b=>{let c=(0,j.faceOf)(b.path,b.bytes);return"text"===c||"page"===c&&(a+=1)<=i.FILE_THUMB.pages})},[s]),v=s.filter(a=>!t.includes(a)&&!u.includes(a)),w=new Set(s.map(a=>q(a.path))),x=o.filter(a=>!s.some(b=>b.path===a)&&!w.has(q(a)));if(!o.length||!r||!s.length&&!x.length)return null;let y=t.map(a=>a.path),z=t.slice(0,4),A=t.length-z.length,B=t.length+u.length<=2,C=B?"h-40 w-32":"h-26.25 w-21";return(0,d.jsxs)("div",{className:(0,n.cn)("flex min-w-0 flex-col gap-1.5",b),children:[(z.length>0||u.length>0)&&(0,d.jsxs)("div",{className:"flex flex-wrap items-start gap-1.5",children:[u.map(a=>(0,d.jsxs)(k.FileLink,{path:a.path,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("flex shrink-0 flex-col gap-1 rounded-xl outline-none transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",B?"w-32":"w-21"),children:[(0,d.jsx)(j.FileThumb,{path:a.path,bytes:a.bytes,className:(0,n.cn)("w-full rounded-xl ring-1 ring-foreground/5 ring-inset",C)}),(0,d.jsxs)("span",{className:"flex flex-col items-start px-0.5",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11.5px] leading-4",children:q(a.path)}),(0,d.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[p(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)),z.map((a,b)=>(0,d.jsxs)(k.FileLink,{path:a.path,group:y,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("relative shrink-0 overflow-hidden rounded-xl bg-muted outline-none ring-1 ring-foreground/5 ring-inset transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",C),children:[(0,d.jsx)(f.default,{src:h.queryKey.file(a.path),alt:q(a.path),fill:!0,sizes:`${i.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",className:"object-cover"}),A>0&&b===z.length-1&&(0,d.jsxs)("span",{className:"absolute inset-0 grid place-items-center bg-black/45 text-[14px] font-medium text-white",children:["+",A]})]},a.path))]}),v.map(a=>{let b=(0,j.fileIcon)(a.path);return(0,d.jsxs)(k.FileLink,{path:a.path,title:a.path,className:(0,n.cn)("flex w-fit max-w-full items-center gap-2.5 rounded-xl py-1.5 pr-3 pl-1.5 outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",c?"bg-background/70 hover:bg-background":"bg-muted/70 hover:bg-muted"),children:[(0,d.jsx)("span",{className:(0,n.cn)("grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground",c?"bg-muted":"bg-background"),children:(0,d.jsx)(b,{className:"size-3.5"})}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-col items-start",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[12.5px] leading-4.25",children:q(a.path)}),(0,d.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[p(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)}),x.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:x.map(a=>(0,d.jsxs)("span",{title:`${a} — not on disk`,className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted/70 py-1 pr-2.5 pl-2 font-mono text-[11px] text-muted-foreground",children:[(0,d.jsx)(e.FileX,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"truncate line-through",children:q(a)})]},a))})]})},"imagePathsIn",0,function(a){return(0,l.pathsIn)(a).filter(a=>"image"===(0,l.viewKindOf)(a))},"shortenPaths",0,function(a){return a.split(/(```[\s\S]*?```)/).map((a,b)=>b%2==1?a:a.replace(/`([^`\n]+)`/g,(a,b)=>{let c=b.trim();if(!c.includes("/"))return a;let[d]=(0,l.pathsIn)(c),e=d?.split("/").pop();return d&&e&&c.endsWith(e)?`\`${e}\``:a})).join("")}]),c()}catch(a){c(a)}},!1),8468,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(692867),f=a.i(795304),g=a.i(626335),h=a.i(752562),i=a.i(589027),j=a.i(168370),k=a.i(755681),l=a.i(847799),m=a.i(483138),n=a.i(696732),o=a.i(149596),p=a.i(71215),q=a.i(126766),r=a.i(62140),s=a.i(875160),t=a.i(328423),u=a.i(488540),v=a.i(204719),w=a.i(674746),x=a.i(357307),y=a.i(586446),z=a.i(924613),A=a.i(571987),B=a.i(572131),C=a.i(767561),D=a.i(545097),E=a.i(341889),F=a.i(950463),G=a.i(446334),H=a.i(287702),I=a.i(421042),J=a.i(321799),K=a.i(107340),L=a.i(86922),M=a.i(156819),N=a.i(600154),O=a.i(38793),P=a.i(369768),Q=a.i(759497),R=a.i(497895),S=b([J,O,P]);[J,O,P]=S.then?(await S)():S;let ad={[I.TOOL_NAMES.web_search]:function({tool:a,threadId:b,collapsed:c}){let e=U(a),f=e.length?[]:am(a.results);return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[(0,d.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",a.input,"”"]}),e.length>0&&(0,d.jsx)(G.SourceChips,{sources:e,className:"px-3 pb-2"}),f.length>0&&(0,d.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:f.map((a,b)=>(0,d.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,d.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,d.jsx)("span",{className:"truncate",children:a})]},`${b}-${a}`))})]})},[I.TOOL_NAMES.bash]:function({tool:a,threadId:b,collapsed:c}){let e=am(a.results);return(0,d.jsx)($,{tool:a,threadId:b,collapsed:c,children:(0,d.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,d.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),a.input,e.length>0&&(0,d.jsx)("span",{className:"block text-muted-foreground",children:e.join("\n")})]})})},[I.TOOL_NAMES.write_file]:function({tool:a,threadId:b,collapsed:c}){let e=a.path??a.input;return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:a.input}),(0,d.jsxs)(P.FileLink,{path:e,label:`Open ${e}`,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50",children:[(0,d.jsx)(j.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,d.jsx)(ac,{lines:am(a.results),mono:!0})]})}},ae=Object.values(I.STUDIO_TOOLS);function T(a){if(a.name!==I.TOOL_NAMES.tool_call)return null;let[b,c,...d]=a.input.split(" ");if(b!==H.STUDIO_SERVER)return null;let e=ae.find(a=>a===c);return e?{name:e,words:d.join(" ")}:null}let af={[I.STUDIO_TOOLS.generate_image]:p.Image,[I.STUDIO_TOOLS.generate_video]:y.Video,[I.STUDIO_TOOLS.generate_speech]:e.AudioLines,[I.STUDIO_TOOLS.transcribe]:g.Captions},ag={[I.TOOL_NAMES.web_search]:n.Globe,[I.TOOL_NAMES.bash]:x.Terminal,[I.TOOL_NAMES.write_file]:l.FilePen,[I.TOOL_NAMES.memory_recall]:L.MemoryMark,[I.TOOL_NAMES.memory_create]:L.MemoryMark,[I.TOOL_NAMES.memory_remember]:L.MemoryMark,[I.TOOL_NAMES.memory_describe]:L.MemoryMark,[I.TOOL_NAMES.memory_forget]:L.MemoryMark,[I.TOOL_NAMES.load_skill]:N.SkillsMark,[I.TOOL_NAMES.tool_search]:K.McpMark,[I.TOOL_NAMES.tool_call]:K.McpMark,[I.TOOL_NAMES.thread_start]:w.Send,[I.TOOL_NAMES.thread_tell]:w.Send,[I.TOOL_NAMES.thread_answer]:w.Send,[I.TOOL_NAMES.thread_status]:r.ListChecks,[I.TOOL_NAMES.thread_cancel]:r.ListChecks,[I.TOOL_NAMES.thread_show]:r.ListChecks,[I.TOOL_NAMES.thread_seen]:r.ListChecks,[I.TOOL_NAMES.send_message]:t.MessageSquare,[I.TOOL_NAMES.look_at]:k.Eye,[I.TOOL_NAMES.make_deck]:v.Presentation,[I.TOOL_NAMES.describe_self]:o.IdCard,[I.TOOL_NAMES.sign_in_use]:q.KeyRound,[I.TOOL_NAMES.sign_in_keep]:q.KeyRound,[I.TOOL_NAMES.end_call]:u.PhoneOff,[I.TOOL_NAMES.routine]:M.RoutineMark},ah=a=>ag[a]??z.Wrench,ai=new Set(["cat","sed","head","tail","grep","rg","ls","find","wc","awk","jq"]),aj=a=>a.split("/").pop()??a;function U(a){return am(a.results).flatMap(a=>{let b=/https?:\/\/\S+/.exec(a)?.[0];if(!b)return[];let c=a.slice(0,a.indexOf(b)).replace(/[\s—-]+$/,"");return[{url:b,...c?{title:c}:{}}]})}function V(a){return(0,J.imagePathsIn)([a.path??"",a.input,...am(a.results)].join("\n"))}function W(a){let b=V(a)[0],c=T(a);if(c)return{icon:af[c.name]??z.Wrench,image:b,makes:c.name===I.STUDIO_TOOLS.generate_image};if(a.name===I.TOOL_NAMES.web_search)return{icon:n.Globe,pages:U(a)};if(a.name===I.TOOL_NAMES.write_file)return{icon:l.FilePen,image:b,target:aj(a.path??a.input)};if(a.name!==I.TOOL_NAMES.bash)return{icon:ah(a.name),image:b};let d=a.input.replace(/^\s*cd\s+\S+\s*&&\s*/,"").trim(),[e=""]=d.split(/\s+/),g=/(?:^|[\s;&|(])playwright-cli((?:\s+-\S+)*)\s+([a-z-]+)/.exec(d);if(g){if("screenshot"===g[2])return{icon:f.Camera,image:b};let a=/https?:\/\/[^\s'"]+/.exec(d)?.[0];return{icon:n.Globe,host:a&&(0,R.hostOf)(a)||void 0,image:b}}return ai.has(e)?{icon:m.FileText,image:b,target:a.path?aj(a.path):void 0}:{icon:x.Terminal,image:b,target:e||void 0}}function X({face:a}){if(a.pages?.length){let b=[...new Set(a.pages.flatMap(a=>(0,R.hostOf)(a.url)??[]))].slice(0,3);return(0,d.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:b.map(a=>(0,d.jsx)(E.SiteIcon,{host:a},a))})}return a.host?(0,d.jsxs)("span",{className:"flex h-5 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11px] text-foreground/80",children:[(0,d.jsx)(E.SiteIcon,{host:a.host}),a.host]}):a.target&&!a.image?(0,d.jsx)("span",{className:"max-w-40 shrink truncate font-mono text-[10.5px] text-muted-foreground",children:a.target}):null}let ak="size-36 rounded-xl";function Y({tool:a,threadId:b,collapsed:c}){let e=T(a),[f]=V(a),g=void 0===a.results&&e?.name===I.STUDIO_TOOLS.generate_image;return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[e?.words&&(0,d.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",e.words,"”"]}),f?(0,d.jsx)(P.FileLink,{path:f,title:f,className:"mx-3 mb-1.5 block w-fit overflow-hidden rounded-xl outline-none ring-1 ring-foreground/5 transition-opacity ring-inset hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,d.jsx)(O.FileThumb,{path:f,className:ak})}):g?(0,d.jsx)(F.Skeleton,{className:(0,R.cn)("mx-3 mb-1.5",ak)}):(0,d.jsx)(ac,{lines:am(a.results)})]})}function Z({tool:a,threadId:b,collapsed:c}){return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[(0,d.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep wrap-anywhere",children:a.input}),(0,d.jsx)(ac,{lines:am(a.results)})]})}function $({tool:a,threadId:b,collapsed:c=!1,children:e}){let f=void 0===a.results,g=W(a),j=g.icon,[k,l]=(0,B.useState)(!c),m=k||f,n=b&&a.callId&&((a.results?.length??0)>0||a.more);return(0,d.jsxs)("div",{className:(0,R.cn)("@container w-full overflow-hidden rounded-xl transition-colors",m?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>l(a=>!a),"aria-expanded":m,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,d.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:f?(0,d.jsx)(s.Loader2,{className:"size-3 animate-spin"}):(0,d.jsx)(j,{className:"size-3"})}),a.note?(0,d.jsxs)(d.Fragment,{children:[f?(0,d.jsx)(D.ShinyText,{text:a.note,speed:2.4,className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:a.note}),(0,d.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground/85 @lg:block",children:a.input})]}):f?(0,d.jsx)(D.ShinyText,{text:a.input,speed:2.4,className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:a.input}),(0,d.jsx)(_,{paths:V(a),waiting:f&&g.makes}),(0,d.jsx)(X,{face:g}),!f&&(0,d.jsx)(h.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,d.jsx)(i.ChevronDown,{className:(0,R.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",m&&"rotate-180")})]}),m&&(0,d.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[e,n&&(0,d.jsx)(aa,{threadId:b,callId:a.callId})]})]})}function _({paths:a,waiting:b}){let[c,e]=(0,B.useState)([]),f=a.filter(a=>!c.includes(a)).slice(0,al);return f.length?(0,d.jsx)("span",{className:"flex shrink-0 items-center",children:f.map((a,b)=>(0,d.jsx)(A.default,{src:C.queryKey.file(a),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>e(b=>[...b,a]),className:(0,R.cn)("size-6 rounded-md bg-muted object-cover ring-2 ring-background",b>0&&"-ml-1.5")},a))}):b?(0,d.jsx)(F.Skeleton,{className:"size-6 shrink-0 rounded-md"}):null}let al=3;function aa({threadId:a,callId:b}){let[c,e]=(0,B.useState)(!1),{data:f,isLoading:g}=(0,Q.useServerRoute)(c?C.queryKey.toolResult(a,b):null);return(0,d.jsxs)("div",{className:"px-3 pb-1",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>e(a=>!a),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,d.jsx)(i.ChevronDown,{className:(0,R.cn)("size-3",c&&"rotate-180")}),c?"Less":"Everything"]}),c&&(g||!f?(0,d.jsx)(F.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,d.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[an(f).map((a,b)=>(0,d.jsx)(ab,{src:a},`${b}-${a.length}`)),am(f).length>0&&(0,d.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:am(f).join("\n")})]}))]})}function ab({src:a}){let[b,c]=(0,B.useState)(!1);return b?null:(0,d.jsx)("img",{src:a,alt:"",onError:()=>c(!0),className:"block w-full rounded-lg bg-muted object-contain"})}function ac({lines:a,mono:b}){return 0===a.length?null:(0,d.jsx)("ul",{className:"px-3 pb-1.5",children:a.map((a,c)=>(0,d.jsx)("li",{className:(0,R.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",b&&"font-mono"),children:a},`${c}-${a}`))})}let am=a=>a?.flatMap(a=>"text"===a.type?[a.text]:[])??[],an=a=>a?.flatMap(a=>"image"===a.type?[a.src]:[])??[];a.s(["BotTool",0,function(a){let b=T(a.tool)?Y:ad[a.tool.name]??Z;return(0,d.jsx)(b,{...a})},"StepTile",0,function({tool:a,onOpen:b}){let c=W(a),[e,f]=(0,B.useState)(!1),g=c.icon;return(0,d.jsx)("button",{type:"button",onClick:b,title:a.note??a.input,"aria-label":a.note??a.input,className:"grid size-6 shrink-0 place-items-center overflow-hidden rounded-full bg-background text-muted-foreground outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",children:c.image&&!e?(0,d.jsx)(A.default,{src:C.queryKey.file(c.image),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>f(!0),className:"size-full object-cover"}):c.host?(0,d.jsx)(E.SiteIcon,{host:c.host,className:"size-3.5 rounded-full",fallback:(0,d.jsx)(g,{className:"size-3"})}):(0,d.jsx)(g,{className:"size-3"})})},"toolIcon",0,ah]),c()}catch(a){c(a)}},!1),107340,a=>{"use strict";var b=a.i(164831);let c={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};c.node;let d=(0,b.default)(c);a.s(["McpMark",0,d],107340)},86922,a=>{"use strict";var b=a.i(164831);let c={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};c.node;let d=(0,b.default)(c);a.s(["MemoryMark",0,d],86922)},600154,a=>{"use strict";let b=a.i(444080).BookMarked;a.s(["SkillsMark",0,b])},647509,a=>{"use strict";function b(a,b){return d(.05,.42,a/b)}let c={A:[".##.","#..#","####","#..#","#..#"],B:["###.","#..#","###.","#..#","###."],C:[".###","#...","#...","#...",".###"],D:["###.","#..#","#..#","#..#","###."],E:["####","#...","###.","#...","####"],F:["####","#...","###.","#...","#..."],G:[".###","#...","#.##","#..#",".###"],H:["#..#","#..#","####","#..#","#..#"],I:["###",".#.",".#.",".#.","###"],J:["..##","...#","...#","#..#",".##."],K:["#..#","#.#.","##..","#.#.","#..#"],L:["#...","#...","#...","#...","####"],M:["#...#","##.##","#.#.#","#...#","#...#"],N:["#..#","##.#","#.##","#..#","#..#"],O:[".##.","#..#","#..#","#..#",".##."],P:["###.","#..#","###.","#...","#..."],Q:[".##.","#..#","#..#","#.#.",".#.#"],R:["###.","#..#","###.","#.#.","#..#"],S:[".###","#...",".##.","...#","###."],T:["###",".#.",".#.",".#.",".#."],U:["#..#","#..#","#..#","#..#",".##."],V:["#...#","#...#",".#.#.",".#.#.","..#.."],W:["#...#","#...#","#.#.#","##.##","#...#"],X:["#..#","#..#",".##.","#..#","#..#"],Y:["#.#","#.#",".#.",".#.",".#."],Z:["####","...#",".##.","#...","####"],0:[".##.","#.##","#..#","##.#",".##."],1:[".#.","##.",".#.",".#.","###"],2:["###.","...#",".##.","#...","####"],3:["###.","...#",".##.","...#","###."],4:["#..#","#..#","####","...#","...#"],5:["####","#...","###.","...#","###."],6:[".##.","#...","###.","#..#",".##."],7:["####","...#","..#.",".#..",".#.."],8:[".##.","#..#",".##.","#..#",".##."],9:[".##.","#..#",".###","...#",".##."],"!":["#","#","#",".","#"],"?":["###.","...#",".##.","....",".#.."],".":[".",".",".",".","#"],",":["..","..","..",".#","#."],"'":["#","#",".",".","."],"-":["...","...","###","...","..."],"+":["...",".#.","###",".#.","..."],":":[".","#",".","#","."],"(":[".#","#.","#.","#.",".#"],")":["#.",".#",".#",".#","#."],"<":["..#",".#.","#..",".#.","..#"],">":["#..",".#.","..#",".#.","#.."],"^":[".#.","#.#","...","...","..."],"~":["....",".#.#","#.#.","....","...."],"♥":[".#.#.","#####","#####",".###.","..#.."]," ":["..","..","..","..",".."]};function d(a,b,c){let d=Math.min(1,Math.max(0,(c-a)/(b-a)));return d*d*(3-2*d)}Object.keys(c).filter(a=>!/^[A-Z0-9 ]$/.test(a)),a.s(["ALPHA_TOP",0,.82,"CHAR_RATE",0,2.2,"EMOJI_CHAR_RATE",0,.6,"EMOJI_MIN_LEVEL",0,6,"EMOJI_POOL",0,["🍎","🌹","🍓","❤️","🎈","🧨","🔴","🍊","🔥","🦊","🏀","🧡","🍑","⭐","🍋","🌻","💛","🐥","🌟","🍌","🍀","🌿","🐸","🥝","💚","🌵","🥑","💧","🌊","🫐","🐳","💙","🔵","🧊","🍇","💜","🔮","🟣","🪻","🍆","🌸","🌷","💗","🦩","🩷","🍫","🐻","🌰","🥐","🤍","☁️","🖤","⚪","⚫","🦢","🌈","🦜","🎨","🪩","🦄","✨","🍬","🎡"],"EMOJI_RATIO",0,.11,"FACE_WORD_MAX",0,8,"LETTERS",0,c,"RAMP",0,[[" "],[" ",".","`"],[".",",","·","'"],[":",";","-","^"],["=","+","~",'"'],["*","?","◦","j"],["c","v","○","7"],["o","x","◇","い"],["s","y","t","あ"],["e","a","u","な"],["k","w","z","や"],["q","h","n","米"]],"emojiAlpha",0,function(a,c,d){return d?.06+.94*b(a,c):.35+a/c*.65},"emojiWeight",0,b,"hash",0,function(a,b){let c=43758.5453*Math.sin(127.1*a+311.7*b);return c-Math.floor(c)},"smoothstep",0,d,"undrawable",0,function(a){return Array.from(a.toUpperCase()).find(a=>!(a in c))??null}])},346075,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(287702),e=a.i(647509);let f=240/276,g=d.ASCII_FACE.charset,h=new Map,i=new Set,j=null;a.s(["THURSDAY_SEED",0,"thursday","ThursdayMark",0,function({size:a=16,className:d}){let k="ascii"!==g,{cells:l,font:m}=function(a){let b=h.get(a);if(b)return b;let c=a*f,d=(a-c)/2,g=Math.max(2,Math.round(c/4)),i=c/g,j=.98*i,k=[];for(let a=0;a<g;a++)for(let b=0;b<g;b++){let f=3===g&&1!==a&&1!==b?.72:1,h=c/2+i*(b+.5-g/2)*f,l=c/2+i*(a+.5-g/2)*f,m=Math.hypot(h-c/2,l-c/2)/(c/2),n=977*g+a*g+b;!(m+(g>=5?((0,e.hash)(n,1)-.5)*.24:0)>.98)&&(g>=8&&(0,e.hash)(n,2)<.02+.24*m**3||k.push({seed:n,x:d+h,y:d+l+.36*j,r:m}))}let l={cells:k,font:j};return h.set(a,l),l}(a),[n,o]=(0,c.useState)(0);return(0,c.useEffect)(()=>{if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){if(i.add(o),!j){let a=Date.now();j=setInterval(()=>{let b=Date.now()-a;for(let a of i)a(b)},155)}return()=>{i.delete(o),0===i.size&&j&&(clearInterval(j),j=null)}}},[]),(0,b.jsx)("svg",{viewBox:`0 0 ${a} ${a}`,width:a,height:a,className:d,fill:"currentColor","aria-hidden":!0,children:l.map(a=>(0,b.jsx)("text",{x:a.x,y:a.y,textAnchor:"middle",fontFamily:k?'"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif':"ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:k?void 0:700,fontSize:m,children:function(a,b,c){let d=Math.floor((b+620*(0,e.hash)(a.seed,11)*3)/620);if(c){let b=Math.floor((0,e.hash)(a.seed,17)*e.EMOJI_POOL.length);return e.EMOJI_POOL[(b+9*d)%e.EMOJI_POOL.length]}let f=Math.round(5+4*Math.max(0,1-a.r**2)**.6),g=e.RAMP[Math.min(e.RAMP.length-1,f)];return g[Math.floor((0,e.hash)(a.seed,d)*g.length)]??" "}(a,n,k)},a.seed))})}])},795304,a=>{"use strict";var b=a.i(164831);let c={name:"camera",size:24,node:[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]};c.node;let d=(0,b.default)(c);a.s(["Camera",0,d],795304)},755681,a=>{"use strict";var b=a.i(164831);let c={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};c.node;let d=(0,b.default)(c);a.s(["Eye",0,d],755681)},847799,a=>{"use strict";var b=a.i(164831);let c={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};c.node;let d=(0,b.default)(c);a.s(["FilePen",0,d],847799)},452020,a=>{"use strict";var b=a.i(164831);let c={name:"file-x",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]};c.node;let d=(0,b.default)(c);a.s(["FileX",0,d],452020)},149596,a=>{"use strict";var b=a.i(164831);let c={name:"id-card",size:24,node:[["path",{d:"M13 19a4 4 0 00-8 0",key:"cugzd5"}],["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]};c.node;let d=(0,b.default)(c);a.s(["IdCard",0,d],149596)},62140,a=>{"use strict";var b=a.i(164831);let c={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};c.node;let d=(0,b.default)(c);a.s(["ListChecks",0,d],62140)},328423,a=>{"use strict";var b=a.i(164831);let c={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};c.node;let d=(0,b.default)(c);a.s(["MessageSquare",0,d],328423)},488540,a=>{"use strict";var b=a.i(164831);let c={name:"phone-off",size:24,node:[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]};c.node;let d=(0,b.default)(c);a.s(["PhoneOff",0,d],488540)},674746,a=>{"use strict";var b=a.i(164831);let c={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};c.node;let d=(0,b.default)(c);a.s(["Send",0,d],674746)},357307,a=>{"use strict";var b=a.i(164831);let c={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};c.node;let d=(0,b.default)(c);a.s(["Terminal",0,d],357307)}];
1
+ module.exports=[446334,a=>{"use strict";var b=a.i(187924),c=a.i(341889),d=a.i(497895);a.s(["SourceChips",0,function({sources:a,limit:e,className:f}){let g=a.flatMap(a=>{let b=(0,d.hostOf)(a.url);return b?[{...a,host:b}]:[]}),h=e?g.slice(0,e):g,i=g.length-h.length;return(0,b.jsxs)("span",{className:(0,d.cn)("flex min-w-0 flex-wrap items-center gap-1",f),children:[h.map(a=>(0,b.jsxs)("a",{href:a.url,target:"_blank",rel:"noreferrer",title:a.title??a.url,className:"flex h-[22px] min-w-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11.5px] leading-4 text-foreground/80 outline-none transition-colors hover:bg-accent focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,b.jsx)(c.SiteIcon,{host:a.host}),(0,b.jsx)("span",{className:"truncate",children:a.host})]},a.url)),i>0&&(0,b.jsxs)("span",{className:"shrink-0 font-mono text-[11px] text-muted-foreground",children:["+",i]})]})}])},321799,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(452020),f=a.i(571987),g=a.i(572131),h=a.i(767561),i=a.i(287702),j=a.i(38793),k=a.i(369768),l=a.i(559553),m=a.i(759497),n=a.i(497895),o=b([j,k]);[j,k]=o.then?(await o)():o;let p=a=>a.split(".").pop()?.toLowerCase()??"file",q=a=>a.split("/").pop()??a;a.s(["Attachments",0,function({text:a,className:b,onBubble:c=!1}){let o=(0,g.useMemo)(()=>(0,l.pathsIn)(a),[a]),{data:r}=(0,m.useServerRoute)(o.length?h.queryKey.workspaceFiles(o):null),s=(0,g.useMemo)(()=>r??[],[r]),t=(0,g.useMemo)(()=>s.filter(a=>"image"===(0,l.viewKindOf)(a.path)),[s]),u=(0,g.useMemo)(()=>{let a=0;return s.filter(b=>{let c=(0,j.faceOf)(b.path,b.bytes);return"text"===c||"page"===c&&(a+=1)<=i.FILE_THUMB.pages})},[s]),v=s.filter(a=>!t.includes(a)&&!u.includes(a)),w=new Set(s.map(a=>q(a.path))),x=o.filter(a=>!s.some(b=>b.path===a)&&!w.has(q(a)));if(!o.length||!r||!s.length&&!x.length)return null;let y=t.map(a=>a.path),z=t.slice(0,4),A=t.length-z.length,B=t.length+u.length<=2,C=B?"h-40 w-32":"h-26.25 w-21";return(0,d.jsxs)("div",{className:(0,n.cn)("flex min-w-0 flex-col gap-1.5",b),children:[(z.length>0||u.length>0)&&(0,d.jsxs)("div",{className:"flex flex-wrap items-start gap-1.5",children:[u.map(a=>(0,d.jsxs)(k.FileLink,{path:a.path,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("flex shrink-0 flex-col gap-1 rounded-xl outline-none transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",B?"w-32":"w-21"),children:[(0,d.jsx)(j.FileThumb,{path:a.path,bytes:a.bytes,className:(0,n.cn)("w-full rounded-xl ring-1 ring-foreground/5 ring-inset",C)}),(0,d.jsxs)("span",{className:"flex flex-col items-start px-0.5",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[11.5px] leading-4",children:q(a.path)}),(0,d.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[p(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)),z.map((a,b)=>(0,d.jsxs)(k.FileLink,{path:a.path,group:y,title:`${a.path} — ${(0,n.formatBytes)(a.bytes)}`,className:(0,n.cn)("relative shrink-0 overflow-hidden rounded-xl bg-muted outline-none ring-1 ring-foreground/5 ring-inset transition-opacity hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",C),children:[(0,d.jsx)(f.default,{src:h.queryKey.file(a.path),alt:q(a.path),fill:!0,sizes:`${i.FILE_THUMB.imageWidth}px`,loading:"lazy",decoding:"async",className:"object-cover"}),A>0&&b===z.length-1&&(0,d.jsxs)("span",{className:"absolute inset-0 grid place-items-center bg-black/45 text-[14px] font-medium text-white",children:["+",A]})]},a.path))]}),v.map(a=>{let b=(0,j.fileIcon)(a.path);return(0,d.jsxs)(k.FileLink,{path:a.path,title:a.path,className:(0,n.cn)("flex w-fit max-w-full items-center gap-2.5 rounded-xl py-1.5 pr-3 pl-1.5 outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",c?"bg-background/70 hover:bg-background":"bg-muted/70 hover:bg-muted"),children:[(0,d.jsx)("span",{className:(0,n.cn)("grid size-8 shrink-0 place-items-center rounded-lg text-muted-foreground",c?"bg-muted":"bg-background"),children:(0,d.jsx)(b,{className:"size-3.5"})}),(0,d.jsxs)("span",{className:"flex min-w-0 flex-col items-start",children:[(0,d.jsx)("span",{className:"max-w-full truncate text-[12.5px] leading-4.25",children:q(a.path)}),(0,d.jsxs)("span",{className:"font-mono text-[10px] leading-3.5 text-muted-foreground",children:[p(a.path)," · ",(0,n.formatBytes)(a.bytes)]})]})]},a.path)}),x.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:x.map(a=>(0,d.jsxs)("span",{title:`${a} — not on disk`,className:"flex max-w-full items-center gap-1.5 rounded-full bg-muted/70 py-1 pr-2.5 pl-2 font-mono text-[11px] text-muted-foreground",children:[(0,d.jsx)(e.FileX,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"truncate line-through",children:q(a)})]},a))})]})},"imagePathsIn",0,function(a){return(0,l.pathsIn)(a).filter(a=>"image"===(0,l.viewKindOf)(a))},"shortenPaths",0,function(a){return a.split(/(```[\s\S]*?```)/).map((a,b)=>b%2==1?a:a.replace(/`([^`\n]+)`/g,(a,b)=>{let c=b.trim();if(!c.includes("/"))return a;let[d]=(0,l.pathsIn)(c),e=d?.split("/").pop();return d&&e&&c.endsWith(e)?`\`${e}\``:a})).join("")}]),c()}catch(a){c(a)}},!1),8468,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(692867),f=a.i(795304),g=a.i(626335),h=a.i(752562),i=a.i(589027),j=a.i(168370),k=a.i(755681),l=a.i(847799),m=a.i(483138),n=a.i(696732),o=a.i(149596),p=a.i(71215),q=a.i(126766),r=a.i(62140),s=a.i(875160),t=a.i(328423),u=a.i(488540),v=a.i(204719),w=a.i(674746),x=a.i(357307),y=a.i(586446),z=a.i(924613),A=a.i(571987),B=a.i(572131),C=a.i(767561),D=a.i(545097),E=a.i(341889),F=a.i(950463),G=a.i(446334),H=a.i(287702),I=a.i(421042),J=a.i(321799),K=a.i(107340),L=a.i(86922),M=a.i(156819),N=a.i(600154),O=a.i(38793),P=a.i(369768),Q=a.i(759497),R=a.i(497895),S=b([J,O,P]);[J,O,P]=S.then?(await S)():S;let ad={[I.TOOL_NAMES.web_search]:function({tool:a,threadId:b,collapsed:c}){let e=U(a),f=e.length?[]:am(a.results);return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[(0,d.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",a.input,"”"]}),e.length>0&&(0,d.jsx)(G.SourceChips,{sources:e,className:"px-3 pb-2"}),f.length>0&&(0,d.jsx)("ol",{className:"space-y-0.5 px-3 pb-2",children:f.map((a,b)=>(0,d.jsxs)("li",{className:"flex gap-2 text-[11.5px] leading-snug text-muted-foreground",children:[(0,d.jsx)("span",{className:"mt-1.25 size-1 shrink-0 rounded-full bg-muted-foreground/50"}),(0,d.jsx)("span",{className:"truncate",children:a})]},`${b}-${a}`))})]})},[I.TOOL_NAMES.bash]:function({tool:a,threadId:b,collapsed:c}){let e=am(a.results);return(0,d.jsx)($,{tool:a,threadId:b,collapsed:c,children:(0,d.jsxs)("pre",{className:"mx-3 overflow-x-auto rounded-lg bg-foreground/5 px-2.5 py-1.5 font-mono text-[11px] leading-relaxed scrollbar-none dark:bg-black/25",children:[(0,d.jsx)("span",{className:"text-muted-foreground/60",children:"$ "}),a.input,e.length>0&&(0,d.jsx)("span",{className:"block text-muted-foreground",children:e.join("\n")})]})})},[I.TOOL_NAMES.write_file]:function({tool:a,threadId:b,collapsed:c}){let e=a.path??a.input;return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-1 pb-1.5",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px]",children:a.input}),(0,d.jsxs)(P.FileLink,{path:e,label:`Open ${e}`,className:"flex shrink-0 items-center gap-1 rounded-md px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:bg-background hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 disabled:opacity-50",children:[(0,d.jsx)(j.ExternalLink,{className:"size-3"}),"Open"]})]}),(0,d.jsx)(ac,{lines:am(a.results),mono:!0})]})}},ae=Object.values(I.STUDIO_TOOLS);function T(a){if(a.name!==I.TOOL_NAMES.tool_call)return null;let[b,c,...d]=a.input.split(" ");if(b!==H.STUDIO_SERVER)return null;let e=ae.find(a=>a===c);return e?{name:e,words:d.join(" ")}:null}let af={[I.STUDIO_TOOLS.generate_image]:p.Image,[I.STUDIO_TOOLS.generate_video]:y.Video,[I.STUDIO_TOOLS.generate_speech]:e.AudioLines,[I.STUDIO_TOOLS.transcribe]:g.Captions},ag={[I.TOOL_NAMES.web_search]:n.Globe,[I.TOOL_NAMES.bash]:x.Terminal,[I.TOOL_NAMES.write_file]:l.FilePen,[I.TOOL_NAMES.memory_recall]:L.MemoryMark,[I.TOOL_NAMES.memory_create]:L.MemoryMark,[I.TOOL_NAMES.memory_remember]:L.MemoryMark,[I.TOOL_NAMES.memory_describe]:L.MemoryMark,[I.TOOL_NAMES.memory_forget]:L.MemoryMark,[I.TOOL_NAMES.load_skill]:N.SkillsMark,[I.TOOL_NAMES.tool_search]:K.McpMark,[I.TOOL_NAMES.tool_call]:K.McpMark,[I.TOOL_NAMES.thread_start]:w.Send,[I.TOOL_NAMES.thread_tell]:w.Send,[I.TOOL_NAMES.thread_answer]:w.Send,[I.TOOL_NAMES.thread_status]:r.ListChecks,[I.TOOL_NAMES.thread_cancel]:r.ListChecks,[I.TOOL_NAMES.thread_show]:r.ListChecks,[I.TOOL_NAMES.thread_seen]:r.ListChecks,[I.TOOL_NAMES.send_message]:t.MessageSquare,[I.TOOL_NAMES.look_at]:k.Eye,[I.TOOL_NAMES.make_deck]:v.Presentation,[I.TOOL_NAMES.describe_self]:o.IdCard,[I.TOOL_NAMES.sign_in_use]:q.KeyRound,[I.TOOL_NAMES.sign_in_keep]:q.KeyRound,[I.TOOL_NAMES.end_call]:u.PhoneOff,[I.TOOL_NAMES.routine]:M.RoutineMark},ah=a=>ag[a]??z.Wrench,ai=new Set(["cat","sed","head","tail","grep","rg","ls","find","wc","awk","jq"]),aj=a=>a.split("/").pop()??a;function U(a){return am(a.results).flatMap(a=>{let b=/https?:\/\/\S+/.exec(a)?.[0];if(!b)return[];let c=a.slice(0,a.indexOf(b)).replace(/[\s—-]+$/,"");return[{url:b,...c?{title:c}:{}}]})}function V(a){return(0,J.imagePathsIn)([a.path??"",a.input,...am(a.results)].join("\n"))}function W(a){let b=V(a)[0],c=T(a);if(c)return{icon:af[c.name]??z.Wrench,image:b,makes:c.name===I.STUDIO_TOOLS.generate_image};if(a.name===I.TOOL_NAMES.web_search)return{icon:n.Globe,pages:U(a)};if(a.name===I.TOOL_NAMES.write_file)return{icon:l.FilePen,image:b,target:aj(a.path??a.input)};if(a.name!==I.TOOL_NAMES.bash)return{icon:ah(a.name),image:b};let d=a.input.replace(/^\s*cd\s+\S+\s*&&\s*/,"").trim(),[e=""]=d.split(/\s+/),g=/(?:^|[\s;&|(])playwright-cli((?:\s+-\S+)*)\s+([a-z-]+)/.exec(d);if(g){if("screenshot"===g[2])return{icon:f.Camera,image:b};let a=/https?:\/\/[^\s'"]+/.exec(d)?.[0];return{icon:n.Globe,host:a&&(0,R.hostOf)(a)||void 0,image:b}}return ai.has(e)?{icon:m.FileText,image:b,target:a.path?aj(a.path):void 0}:{icon:x.Terminal,image:b,target:e||void 0}}function X({face:a}){if(a.pages?.length){let b=[...new Set(a.pages.flatMap(a=>(0,R.hostOf)(a.url)??[]))].slice(0,3);return(0,d.jsx)("span",{className:"flex shrink-0 items-center gap-1",children:b.map(a=>(0,d.jsx)(E.SiteIcon,{host:a},a))})}return a.host?(0,d.jsxs)("span",{className:"flex h-5 shrink-0 items-center gap-1.5 rounded-full bg-muted pr-2 pl-1 text-[11px] text-foreground/80",children:[(0,d.jsx)(E.SiteIcon,{host:a.host}),a.host]}):a.target&&!a.image?(0,d.jsx)("span",{className:"max-w-40 shrink truncate font-mono text-[10.5px] text-muted-foreground",children:a.target}):null}let ak="size-36 rounded-xl";function Y({tool:a,threadId:b,collapsed:c}){let e=T(a),[f]=V(a),g=void 0===a.results&&e?.name===I.STUDIO_TOOLS.generate_image;return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[e?.words&&(0,d.jsxs)("p",{className:"px-3 pt-1 pb-1.5 text-[13px] leading-snug break-keep wrap-anywhere",children:["“",e.words,"”"]}),f?(0,d.jsx)(P.FileLink,{path:f,title:f,className:"mx-3 mb-1.5 block w-fit overflow-hidden rounded-xl outline-none ring-1 ring-foreground/5 transition-opacity ring-inset hover:opacity-90 focus-visible:ring-3 focus-visible:ring-ring/50",children:(0,d.jsx)(O.FileThumb,{path:f,className:ak})}):g?(0,d.jsx)(F.Skeleton,{className:(0,R.cn)("mx-3 mb-1.5",ak)}):(0,d.jsx)(ac,{lines:am(a.results)})]})}function Z({tool:a,threadId:b,collapsed:c}){return(0,d.jsxs)($,{tool:a,threadId:b,collapsed:c,children:[(0,d.jsx)("p",{className:"px-3 pt-1 pb-1.5 text-[12px] leading-snug break-keep wrap-anywhere",children:a.input}),(0,d.jsx)(ac,{lines:am(a.results)})]})}function $({tool:a,threadId:b,collapsed:c=!1,children:e}){let f=void 0===a.results,g=W(a),j=g.icon,[k,l]=(0,B.useState)(!c),m=k||f,n=b&&a.callId&&((a.results?.length??0)>0||a.more);return(0,d.jsxs)("div",{className:(0,R.cn)("@container w-full overflow-hidden rounded-xl transition-colors",m?"bg-background/80 dark:bg-white/4":"hover:bg-foreground/4"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>l(a=>!a),"aria-expanded":m,className:"flex w-full items-center gap-2 rounded-xl px-2.5 py-1.5 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,d.jsx)("span",{className:"grid size-5 shrink-0 place-items-center rounded-[7px] bg-foreground/8 text-muted-foreground",children:f?(0,d.jsx)(s.Loader2,{className:"size-3 animate-spin"}):(0,d.jsx)(j,{className:"size-3"})}),a.note?(0,d.jsxs)(d.Fragment,{children:[f?(0,d.jsx)(D.ShinyText,{text:a.note,speed:2.4,className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep"}):(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12px] leading-4 break-keep",children:a.note}),(0,d.jsx)("span",{className:"hidden min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-muted-foreground/85 @lg:block",children:a.input})]}):f?(0,d.jsx)(D.ShinyText,{text:a.input,speed:2.4,className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4"}):(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] leading-4 text-foreground/80",children:a.input}),(0,d.jsx)(_,{paths:V(a),waiting:f&&g.makes}),(0,d.jsx)(X,{face:g}),!f&&(0,d.jsx)(h.Check,{className:"size-3 shrink-0 text-muted-foreground/50"}),(0,d.jsx)(i.ChevronDown,{className:(0,R.cn)("size-3 shrink-0 text-muted-foreground/50 transition-transform",m&&"rotate-180")})]}),m&&(0,d.jsxs)("div",{className:"pb-1.5 pl-[1.625rem]",children:[e,n&&(0,d.jsx)(aa,{threadId:b,callId:a.callId})]})]})}function _({paths:a,waiting:b}){let[c,e]=(0,B.useState)([]),f=a.filter(a=>!c.includes(a)).slice(0,al);return f.length?(0,d.jsx)("span",{className:"flex shrink-0 items-center",children:f.map((a,b)=>(0,d.jsx)(A.default,{src:C.queryKey.file(a),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>e(b=>[...b,a]),className:(0,R.cn)("size-6 rounded-md bg-muted object-cover ring-2 ring-background",b>0&&"-ml-1.5")},a))}):b?(0,d.jsx)(F.Skeleton,{className:"size-6 shrink-0 rounded-md"}):null}let al=3;function aa({threadId:a,callId:b}){let[c,e]=(0,B.useState)(!1),{data:f,isLoading:g}=(0,Q.useServerRoute)(c?C.queryKey.toolResult(a,b):null);return(0,d.jsxs)("div",{className:"px-3 pb-1",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>e(a=>!a),className:"flex items-center gap-1 rounded-md py-0.5 font-mono text-[10px] text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50",children:[(0,d.jsx)(i.ChevronDown,{className:(0,R.cn)("size-3",c&&"rotate-180")}),c?"Less":"Everything"]}),c&&(g||!f?(0,d.jsx)(F.Skeleton,{className:"mt-1.5 h-12 w-full rounded-lg"}):(0,d.jsxs)("div",{className:"mt-1.5 space-y-1.5",children:[an(f).map((a,b)=>(0,d.jsx)(ab,{src:a},`${b}-${a.length}`)),am(f).length>0&&(0,d.jsx)("pre",{className:"max-h-72 overflow-auto rounded-lg bg-foreground/5 px-2.5 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap dark:bg-black/25",children:am(f).join("\n")})]}))]})}function ab({src:a}){let[b,c]=(0,B.useState)(!1);return b?null:(0,d.jsx)("img",{src:a,alt:"",onError:()=>c(!0),className:"block w-full rounded-lg bg-muted object-contain"})}function ac({lines:a,mono:b}){return 0===a.length?null:(0,d.jsx)("ul",{className:"px-3 pb-1.5",children:a.map((a,c)=>(0,d.jsx)("li",{className:(0,R.cn)("truncate text-[11px] leading-relaxed text-muted-foreground",b&&"font-mono"),children:a},`${c}-${a}`))})}let am=a=>a?.flatMap(a=>"text"===a.type?[a.text]:[])??[],an=a=>a?.flatMap(a=>"image"===a.type?[a.src]:[])??[];a.s(["BotTool",0,function(a){let b=T(a.tool)?Y:ad[a.tool.name]??Z;return(0,d.jsx)(b,{...a})},"StepTile",0,function({tool:a,onOpen:b}){let c=W(a),[e,f]=(0,B.useState)(!1),g=c.icon;return(0,d.jsx)("button",{type:"button",onClick:b,title:a.note??a.input,"aria-label":a.note??a.input,className:"grid size-6 shrink-0 place-items-center overflow-hidden rounded-full bg-background text-muted-foreground outline-none transition-transform hover:scale-110 focus-visible:ring-3 focus-visible:ring-ring/50",children:c.image&&!e?(0,d.jsx)(A.default,{src:C.queryKey.file(c.image),alt:"",width:48,height:48,loading:"lazy",decoding:"async",onError:()=>f(!0),className:"size-full object-cover"}):c.host?(0,d.jsx)(E.SiteIcon,{host:c.host,className:"size-3.5 rounded-full",fallback:(0,d.jsx)(g,{className:"size-3"})}):(0,d.jsx)(g,{className:"size-3"})})},"toolIcon",0,ah]),c()}catch(a){c(a)}},!1),107340,a=>{"use strict";var b=a.i(164831);let c={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};c.node;let d=(0,b.default)(c);a.s(["McpMark",0,d],107340)},86922,a=>{"use strict";var b=a.i(164831);let c={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};c.node;let d=(0,b.default)(c);a.s(["MemoryMark",0,d],86922)},600154,a=>{"use strict";let b=a.i(444080).BookMarked;a.s(["SkillsMark",0,b])},647509,a=>{"use strict";let b=[[" "],[" ",".","`"],[".",",","·","'"],[":",";","-","^"],["=","+","~",'"'],["*","?","◦","j"],["c","v","○","7"],["o","x","◇","い"],["s","y","t","あ"],["e","a","u","な"],["k","w","z","や"],["q","h","n","米"]],c=b.length;function d(a,b){return f(.05,.42,a/b)}let e={A:[".##.","#..#","####","#..#","#..#"],B:["###.","#..#","###.","#..#","###."],C:[".###","#...","#...","#...",".###"],D:["###.","#..#","#..#","#..#","###."],E:["####","#...","###.","#...","####"],F:["####","#...","###.","#...","#..."],G:[".###","#...","#.##","#..#",".###"],H:["#..#","#..#","####","#..#","#..#"],I:["###",".#.",".#.",".#.","###"],J:["..##","...#","...#","#..#",".##."],K:["#..#","#.#.","##..","#.#.","#..#"],L:["#...","#...","#...","#...","####"],M:["#...#","##.##","#.#.#","#...#","#...#"],N:["#..#","##.#","#.##","#..#","#..#"],O:[".##.","#..#","#..#","#..#",".##."],P:["###.","#..#","###.","#...","#..."],Q:[".##.","#..#","#..#","#.#.",".#.#"],R:["###.","#..#","###.","#.#.","#..#"],S:[".###","#...",".##.","...#","###."],T:["###",".#.",".#.",".#.",".#."],U:["#..#","#..#","#..#","#..#",".##."],V:["#...#","#...#",".#.#.",".#.#.","..#.."],W:["#...#","#...#","#.#.#","##.##","#...#"],X:["#..#","#..#",".##.","#..#","#..#"],Y:["#.#","#.#",".#.",".#.",".#."],Z:["####","...#",".##.","#...","####"],0:[".##.","#.##","#..#","##.#",".##."],1:[".#.","##.",".#.",".#.","###"],2:["###.","...#",".##.","#...","####"],3:["###.","...#",".##.","...#","###."],4:["#..#","#..#","####","...#","...#"],5:["####","#...","###.","...#","###."],6:[".##.","#...","###.","#..#",".##."],7:["####","...#","..#.",".#..",".#.."],8:[".##.","#..#",".##.","#..#",".##."],9:[".##.","#..#",".###","...#",".##."],"!":["#","#","#",".","#"],"?":["###.","...#",".##.","....",".#.."],".":[".",".",".",".","#"],",":["..","..","..",".#","#."],"'":["#","#",".",".","."],"-":["...","...","###","...","..."],"+":["...",".#.","###",".#.","..."],":":[".","#",".","#","."],"(":[".#","#.","#.","#.",".#"],")":["#.",".#",".#",".#","#."],"<":["..#",".#.","#..",".#.","..#"],">":["#..",".#.","..#",".#.","#.."],"^":[".#.","#.#","...","...","..."],"~":["....",".#.#","#.#.","....","...."],"♥":[".#.#.","#####","#####",".###.","..#.."]," ":["..","..","..","..",".."]};function f(a,b,c){let d=Math.min(1,Math.max(0,(c-a)/(b-a)));return d*d*(3-2*d)}Object.keys(e).filter(a=>!/^[A-Z0-9 ]$/.test(a)),a.s(["ALPHA_TOP",0,.82,"CHAR_RATE",0,2.2,"EMOJI_CHAR_RATE",0,.6,"EMOJI_POOL",0,["🍎","🌹","🍓","❤️","🎈","🧨","🔴","🍊","🔥","🦊","🏀","🧡","🍑","⭐","🍋","🌻","💛","🐥","🌟","🍌","🍀","🌿","🐸","🥝","💚","🌵","🥑","💧","🌊","🫐","🐳","💙","🔵","🧊","🍇","💜","🔮","🟣","🪻","🍆","🌸","🌷","💗","🦩","🩷","🍫","🐻","🌰","🥐","🤍","☁️","🖤","⚪","⚫","🦢","🌈","🦜","🎨","🪩","🦄","✨","🍬","🎡"],"FACE_WORD_MAX",0,8,"LETTERS",0,e,"LEVELS",0,c,"RAMP",0,b,"emojiAlpha",0,function(a,b){return .06+.94*d(a,b)},"emojiWeight",0,d,"hash",0,function(a,b){let c=43758.5453*Math.sin(127.1*a+311.7*b);return c-Math.floor(c)},"smoothstep",0,f,"undrawable",0,function(a){return Array.from(a.toUpperCase()).find(a=>!(a in e))??null}])},346075,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(647509),e=a.i(663390);let f=240/276,g=new Map,h=new Set,i=null;a.s(["THURSDAY_SEED",0,"thursday","ThursdayMark",0,function({size:a=16,className:j}){let k="emoji"===(0,e.useFaceGlyphs)(),{cells:l,font:m}=function(a){let b=g.get(a);if(b)return b;let c=a*f,e=(a-c)/2,h=Math.max(2,Math.round(c/4)),i=c/h,j=.98*i,k=[];for(let a=0;a<h;a++)for(let b=0;b<h;b++){let f=3===h&&1!==a&&1!==b?.72:1,g=c/2+i*(b+.5-h/2)*f,l=c/2+i*(a+.5-h/2)*f,m=Math.hypot(g-c/2,l-c/2)/(c/2),n=977*h+a*h+b;!(m+(h>=5?((0,d.hash)(n,1)-.5)*.24:0)>.98)&&(h>=8&&(0,d.hash)(n,2)<.02+.24*m**3||k.push({seed:n,x:e+g,y:e+l+.36*j,r:m}))}let l={cells:k,font:j};return g.set(a,l),l}(a),[n,o]=(0,c.useState)(0);return(0,c.useEffect)(()=>{if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){if(h.add(o),!i){let a=Date.now();i=setInterval(()=>{let b=Date.now()-a;for(let a of h)a(b)},155)}return()=>{h.delete(o),0===h.size&&i&&(clearInterval(i),i=null)}}},[]),(0,b.jsx)("svg",{viewBox:`0 0 ${a} ${a}`,width:a,height:a,className:j,fill:"currentColor","aria-hidden":!0,children:l.map(a=>(0,b.jsx)("text",{x:a.x,y:a.y,textAnchor:"middle",fontFamily:k?'"Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif':"ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:k?void 0:700,fontSize:m,children:function(a,b,c){let e=Math.floor((b+620*(0,d.hash)(a.seed,11)*3)/620);if(c){let b=Math.floor((0,d.hash)(a.seed,17)*d.EMOJI_POOL.length);return d.EMOJI_POOL[(b+9*e)%d.EMOJI_POOL.length]}let f=Math.round(5+4*Math.max(0,1-a.r**2)**.6),g=d.RAMP[Math.min(d.RAMP.length-1,f)];return g[Math.floor((0,d.hash)(a.seed,e)*g.length)]??" "}(a,n,k)},a.seed))})}])},663390,a=>{"use strict";let b;var c=a.i(572131);function d(){if(b)return b;let a=navigator,c=a.userAgentData?.platform||a.platform||"";return b=/mac|iphone|ipad|ipod/i.test(c)?"emoji":"letters"}let e=()=>()=>{};a.s(["faceGlyphs",0,d,"useFaceGlyphs",0,function(){return(0,c.useSyncExternalStore)(e,d,()=>"emoji")}])},795304,a=>{"use strict";var b=a.i(164831);let c={name:"camera",size:24,node:[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]};c.node;let d=(0,b.default)(c);a.s(["Camera",0,d],795304)},755681,a=>{"use strict";var b=a.i(164831);let c={name:"eye",size:24,node:[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};c.node;let d=(0,b.default)(c);a.s(["Eye",0,d],755681)},847799,a=>{"use strict";var b=a.i(164831);let c={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],aliases:["file-edit"]};c.node;let d=(0,b.default)(c);a.s(["FilePen",0,d],847799)},452020,a=>{"use strict";var b=a.i(164831);let c={name:"file-x",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]]};c.node;let d=(0,b.default)(c);a.s(["FileX",0,d],452020)},149596,a=>{"use strict";var b=a.i(164831);let c={name:"id-card",size:24,node:[["path",{d:"M13 19a4 4 0 00-8 0",key:"cugzd5"}],["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]]};c.node;let d=(0,b.default)(c);a.s(["IdCard",0,d],149596)},62140,a=>{"use strict";var b=a.i(164831);let c={name:"list-checks",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]};c.node;let d=(0,b.default)(c);a.s(["ListChecks",0,d],62140)},328423,a=>{"use strict";var b=a.i(164831);let c={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};c.node;let d=(0,b.default)(c);a.s(["MessageSquare",0,d],328423)},488540,a=>{"use strict";var b=a.i(164831);let c={name:"phone-off",size:24,node:[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]};c.node;let d=(0,b.default)(c);a.s(["PhoneOff",0,d],488540)},674746,a=>{"use strict";var b=a.i(164831);let c={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};c.node;let d=(0,b.default)(c);a.s(["Send",0,d],674746)},357307,a=>{"use strict";var b=a.i(164831);let c={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};c.node;let d=(0,b.default)(c);a.s(["Terminal",0,d],357307)}];
2
2
 
3
- //# sourceMappingURL=_0w8r7o7._.js.map
3
+ //# sourceMappingURL=_1-41lck._.js.map
@@ -1,6 +1,6 @@
1
1
  module.exports=[654816,a=>{"use strict";var b=a.i(187924);a.s([],965156),a.i(965156);var c=a.i(572131),d=a.i(722050),e=a.i(524715),f=a.i(357738),g=a.i(854662);let h=c.createContext(void 0);function i(a){let b=c.useContext(h);if(void 0===b&&!a)throw Error((0,g.default)(72));return b}var j=a.i(168536),k=a.i(854401),l=a.i(426476),m=a.i(30116),n=a.i(614209);function o(a){return null!=a&&null!=a.clientX}var p=a.i(138939),q=a.i(394552),r=a.i(284204),s=a.i(676459),t=a.i(417498),u=a.i(307436),v=a.i(14239),w=a.i(717017),x=a.i(151943);let y={...w.popupStoreSelectors,disabled:a=>a.disabled,instantType:a=>a.instantType,isInstantPhase:a=>a.isInstantPhase,trackCursorAxis:a=>a.trackCursorAxis,disableHoverablePopup:a=>a.disableHoverablePopup,lastOpenChangeReason:a=>a.openChangeReason,closeOnClick:a=>a.closeOnClick,closeDelay:a=>a.closeDelay,adaptiveOrigin:a=>a.adaptiveOrigin};class z extends t.ReactStore{constructor(a,b,c){const d=new x.PopupTriggerMap;super(A(a,d,b,c),B(d),y)}setOpen=(a,b)=>{(0,r.applyPopupOpenChange)(this,a,b,{extraState:{openChangeReason:b.reason}})};cancelPendingOpen(a){this.state.floatingRootContext.dispatchOpenChange(!1,(0,q.createChangeEventDetails)(u.REASONS.triggerPress,a))}}function A(a,b,c,d=!1){return{...(0,w.createInitialPopupStoreState)(b,c,d),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...a}}function B(a){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:a}}let C=(0,d.fastComponent)(function(a){let{disabled:d=!1,defaultOpen:e=!1,open:g,disableHoverablePopup:i=!1,trackCursorAxis:j="none",actionsRef:k,onOpenChange:l,onOpenChangeComplete:m,handle:n,triggerId:o,defaultTriggerId:p=null,children:s}=a,t=(0,r.usePopupRootStore)((a,b)=>new z({open:e,openProp:g,activeTriggerId:p,triggerIdProp:o},a,b));t.useControlledProp("openProp",g),t.useControlledProp("triggerIdProp",o),t.useContextCallback("onOpenChange",l),t.useContextCallback("onOpenChangeComplete",m);let v=t.useState("open"),w=!d&&v,x=t.useState("activeTriggerId"),y=t.useState("mounted"),A=t.useState("payload");t.useSyncedValues({trackCursorAxis:j,disableHoverablePopup:i,disabled:d}),(0,r.useImplicitActiveTrigger)(t,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:B,transitionStatus:C}=(0,r.useOpenStateTransitions)(w,t),E=t.useState("isInstantPhase"),F=t.useState("instantType"),G=t.useState("lastOpenChangeReason"),H=c.useRef(null);(0,f.useIsoLayoutEffect)(()=>{v&&d&&t.setOpen(!1,(0,q.createChangeEventDetails)(u.REASONS.disabled))},[v,d,t]),(0,f.useIsoLayoutEffect)(()=>{"ending"===C&&G===u.REASONS.none||"ending"!==C&&E?("delay"!==F&&(H.current=F),t.set("instantType","delay")):null!==H.current&&(t.set("instantType",H.current),H.current=null)},[C,E,G,F,t]),(0,f.useIsoLayoutEffect)(()=>{w&&null==x&&t.set("payload",void 0)},[t,x,w]),c.useImperativeHandle(k,()=>({unmount:B,close:()=>t.setOpen(!1,(0,q.createChangeEventDetails)(u.REASONS.imperativeAction))}),[B,t]);let I=w||y||!d&&"none"!==j;return(0,b.jsxs)(h.Provider,{value:t,children:[n&&(0,b.jsx)(r.PopupHandleAttachment,{handle:n,store:t}),I&&(0,b.jsx)(D,{store:t,disabled:d,trackCursorAxis:j}),"function"==typeof s?s({payload:A}):s]})});function D({store:a,disabled:b,trackCursorAxis:d}){let f=a.useState("floatingRootContext"),g=(0,p.useDismiss)(f,{enabled:!b,referencePress:()=>a.select("closeOnClick")}),h=function(a,b={}){let{enabled:d=!0,axis:e="both"}=b,f="rootStore"in a?a.rootStore:a,g=f.useState("open"),h=f.useState("floatingElement"),i=f.useState("domReferenceElement"),p=f.context.dataRef,q=c.useRef(!1),r=c.useRef(null),[s,t]=c.useState(),[u,v]=c.useState([]),w=(0,k.useStableCallback)(a=>{f.set("positionReference",a)}),x=(0,k.useStableCallback)((a,b,c)=>{if(!q.current&&(!p.current.openEvent||o(p.current.openEvent))){var d,g;let h,j,k;f.set("positionReference",(d=c??i,g={x:a,y:b,axis:e,dataRef:p,pointerType:s},h=null,j=null,k=!1,{contextElement:d||void 0,getBoundingClientRect(){let a=d?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},b="x"===g.axis||"both"===g.axis,c="y"===g.axis||"both"===g.axis,e=["mouseenter","mousemove"].includes(g.dataRef.current.openEvent?.type||"")&&"touch"!==g.pointerType,f=a.width,i=a.height,l=a.x,m=a.y;return null==h&&g.x&&b&&(h=a.x-g.x),null==j&&g.y&&c&&(j=a.y-g.y),l-=h||0,m-=j||0,f=0,i=0,!k||e?(f="y"===g.axis?a.width:0,i="x"===g.axis?a.height:0,l=b&&null!=g.x?g.x:l,m=c&&null!=g.y?g.y:m):k&&!e&&(i="x"===g.axis?a.height:i,f="y"===g.axis?a.width:f),k=!0,{width:f,height:i,x:l,y:m,top:m,right:l+f,bottom:m+i,left:l}}}))}}),y=(0,k.useStableCallback)(a=>{g?r.current||(x(a.clientX,a.clientY,a.currentTarget),v([])):x(a.clientX,a.clientY,a.currentTarget)}),z=(0,n.isMouseLikePointerType)(s)?h:g;c.useEffect(()=>{if(!d)return void w(i);if(!z)return;function a(){r.current?.(),r.current=null}let b=(0,l.getWindow)(h);return!p.current.openEvent||o(p.current.openEvent)?r.current=(0,j.addEventListener)(b,"mousemove",function(b){let c=(0,m.getTarget)(b);(0,m.contains)(h,c)?a():x(b.clientX,b.clientY)}):w(i),a},[z,d,h,p,i,f,x,w,u]),c.useEffect(()=>()=>{f.set("positionReference",null)},[f]),c.useEffect(()=>{d&&!h&&(q.current=!1)},[d,h]),c.useEffect(()=>{!d&&g&&(q.current=!0)},[d,g]);let A=c.useMemo(()=>{function a(a){t(a.pointerType)}return{onPointerDown:a,onPointerEnter:a,onMouseMove:y,onMouseEnter:y}},[y]);return c.useMemo(()=>d?{reference:A,trigger:A}:{},[d,A])}(f,{enabled:!b&&"none"!==d,axis:"none"===d?void 0:d}),i=c.useMemo(()=>(0,s.mergeProps)(h.reference,g.reference),[h.reference,g.reference]);return(0,r.usePopupInteractionProps)(a,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:g.floating??e.EMPTY_OBJECT}),null}var E=a.i(736069),F=a.i(389862),G=a.i(304478),H=a.i(926184),I=a.i(497151),J=a.i(300557);let K=c.createContext(void 0);var L=a.i(25003),M=a.i(185252);let N=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new E.Timeout,currentIdRef:{current:null},currentContextRef:{current:null}});function O(a){let{children:d,delay:e,timeoutMs:g=0}=a,h=c.useRef(e),i=c.useRef(e),j=c.useRef(null),k=c.useRef(null),l=(0,E.useTimeout)();return(0,f.useIsoLayoutEffect)(()=>{if(i.current=e,!j.current){h.current=e;return}h.current={open:(0,M.getDelay)(h.current,"open"),close:(0,M.getDelay)(e,"close")}},[e,j,h,i]),(0,b.jsx)(N.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:h,initialDelayRef:i,currentIdRef:j,timeoutMs:g,currentContextRef:k,timeout:l}),[g,l]),children:d})}var P=a.i(184842),Q=a.i(705735),R=a.i(572077),S=a.i(363734);let T="data-base-ui-tooltip-trigger";function U(a){if("composedPath"in a){let b=a.composedPath();for(let a=0;a<b.length;a+=1){let c=b[a];if((0,l.isElement)(c))return c}}let b=a.target;return(0,l.isElement)(b)?b:null}let V=(0,d.fastComponentRef)(function(a,b){let{render:d,className:e,style:h,handle:j,payload:k,disabled:o,delay:p,closeOnClick:s=!0,closeDelay:t,id:v,...w}=a,x=i(!0),y=(0,I.usePopupHandleStore)(j)??x;if(!y)throw Error((0,g.default)(82));let z=(0,J.useBaseUiId)(v),A=y.useState("isTriggerActive",z),B=y.useState("isOpenedByTrigger",z),C=y.useState("floatingRootContext"),D=c.useRef(null),O=t??0,{registerTrigger:V,isMountedByThisTrigger:W}=(0,r.useTriggerDataForwarding)(z,D,y,{payload:k,closeOnClick:s,closeDelay:O}),X=c.useContext(K),{activeIdRef:Y,delayRef:Z,isInstantPhase:$,hasProvider:_}=function(a,b={open:!1}){let{open:d}=b,e="rootStore"in a?a.rootStore:a,g=e.useState("floatingId"),{currentIdRef:h,delayRef:i,timeoutMs:j,initialDelayRef:k,currentContextRef:l,hasProvider:m,timeout:n}=c.useContext(N),[o,p]=c.useState(!1),r=c.useRef(d);return(0,f.useIsoLayoutEffect)(()=>{r.current=d},[d]),(0,f.useIsoLayoutEffect)(()=>{function a(){l.current?.setIsInstantPhase(!1),h.current=null,l.current=null,i.current=k.current,n.clear()}if(h.current&&!d&&h.current===g){if(p(!1),j)return n.start(j,()=>{e.select("open")||h.current&&h.current!==g||a()}),()=>{(r.current||h.current!==g)&&n.clear()};a()}},[d,g,h,i,j,k,l,n,e]),(0,f.useIsoLayoutEffect)(()=>{if(!d)return;let a=l.current,b=h.current;n.clear(),l.current={onOpenChange:e.setOpen,setIsInstantPhase:p},h.current=g,i.current={open:0,close:(0,M.getDelay)(k.current,"close")},null!==b&&b!==g?(p(!0),a?.setIsInstantPhase(!0),a?.onOpenChange(!1,(0,q.createChangeEventDetails)(u.REASONS.none))):(p(!1),a?.setIsInstantPhase(!1))},[d,g,e,h,i,k,l,n]),(0,f.useIsoLayoutEffect)(()=>()=>{h.current===g&&(l.current=null,r.current)&&(h.current=null,i.current=k.current,n.clear())},[l,h,i,g,k,n]),c.useMemo(()=>({activeIdRef:h,hasProvider:m,delayRef:i,isInstantPhase:o}),[h,m,i,o])}(C,{open:B}),aa=(0,R.useHoverInteractionSharedState)(C);y.useSyncedValue("isInstantPhase",$);let ab=y.useState("disabled"),ac=o??ab,ad=(0,F.useValueAsRef)(ac),ae=y.useState("trackCursorAxis"),af=y.useState("disableHoverablePopup"),ag=c.useRef(!1),ah=(0,E.useTimeout)(),ai=c.useRef(void 0);function aj(){return _&&null!=Y.current?0:p??X??600}function ak(a){let b=D.current;if(!b||!a)return!1;let c=function(a){let b=a;for(;b;){let a=b.closest(`[${T}]`);if(a)return a;let c=b.getRootNode();b="host"in c&&(0,l.isElement)(c.host)?c.host:null}return null}(a);return null!==c&&c!==b&&(0,m.contains)(b,c)}let al=(0,Q.useHoverReferenceInteraction)(C,{enabled:!ac,mouseOnly:!0,move:!1,handleClose:af||"both"===ae?null:(0,L.safePolygon)(),restMs:aj,delay:()=>null==t&&_?{close:(0,M.getDelay)(Z.current,"close")}:{close:O},triggerElementRef:D,isActiveTrigger:A,isClosing:()=>"ending"===y.select("transitionStatus"),shouldOpen:()=>!ag.current}),am=(0,P.useFocus)(C,{enabled:!ac}).reference,an=y.useState("triggerProps",W),ao=W||"none"!==ae;return(0,H.useRenderElement)("button",a,{state:{open:B},ref:[b,V,D],props:[al,am,ao?an:void 0,{onMouseOver(a){(a=>{let b,c=ag.current,d=U(a),e=(ag.current=b=ak(d),b&&(aa.openChangeTimeout.clear(),aa.restTimeout.clear(),aa.restTimeoutPending=!1,ah.clear()),b),f=D.current,g=f&&d&&(0,m.contains)(f,d);if(e&&y.select("open")&&y.select("lastOpenChangeReason")===u.REASONS.triggerHover)return y.setOpen(!1,(0,q.createChangeEventDetails)(u.REASONS.triggerHover,a));if(c&&!e&&g&&!ad.current&&!y.select("open")&&f&&(0,n.isMouseLikePointerType)(ai.current)){let b=()=>{ag.current||ad.current||y.select("open")||y.setOpen(!0,(0,q.createChangeEventDetails)(u.REASONS.triggerHover,a,f))},c=aj();0===c?(ah.clear(),b()):ah.start(c,b)}})(a.nativeEvent)},onFocus(a){ak(U(a.nativeEvent))&&a.preventBaseUIHandler()},onMouseLeave(){ag.current=!1,ah.clear(),ai.current=void 0},onPointerEnter(a){ai.current=a.pointerType},onPointerDown(a){ai.current=a.pointerType,y.set("closeOnClick",s),s&&!y.select("open")&&y.cancelPendingOpen(a.nativeEvent)},onClick(a){s&&!y.select("open")&&y.cancelPendingOpen(a.nativeEvent)},id:z,[S.triggerDisabled]:ac?"":void 0,[T]:ac?void 0:""},w],stateAttributesMapping:G.triggerOpenStateMapping})}),W=c.createContext(void 0);var X=a.i(853116);let Y=c.forwardRef(function(a,c){let{keepMounted:d=!1,...e}=a;return i().useState("mounted")||d?(0,b.jsx)(W.Provider,{value:d,children:(0,b.jsx)(X.FloatingPortalLite,{ref:c,...e})}):null}),Z=c.createContext(void 0);function $(){let a=c.useContext(Z);if(void 0===a)throw Error((0,g.default)(71));return a}var _=a.i(844871),aa=a.i(82204),ab=a.i(456011);let ac=c.forwardRef(function(a,d){let{render:e,className:f,anchor:h,positionMethod:j="absolute",side:k="top",align:l="center",sideOffset:m=0,alignOffset:n=0,collisionBoundary:o="clipping-ancestors",collisionPadding:p=5,arrowPadding:q=5,sticky:r=!1,disableAnchorTracking:s=!1,collisionAvoidance:t=aa.POPUP_COLLISION_AVOIDANCE,style:u,...v}=a,w=i(),x=function(){let a=c.useContext(W);if(void 0===a)throw Error((0,g.default)(70));return a}(),y=w.useState("open"),z=w.useState("mounted"),A=w.useState("trackCursorAxis"),B=w.useState("disableHoverablePopup"),C=w.useState("floatingRootContext"),D=w.useState("instantType"),E=w.useState("transitionStatus"),F=w.useState("adaptiveOrigin"),G=(0,_.useAnchorPositioning)({anchor:h,positionMethod:j,floatingRootContext:C,mounted:z,side:k,sideOffset:m,align:l,alignOffset:n,collisionBoundary:o,collisionPadding:p,sticky:r,arrowPadding:q,disableAnchorTracking:s,keepMounted:x,collisionAvoidance:t,adaptiveOrigin:F}),H=c.useMemo(()=>({open:y,side:G.side,align:G.align,anchorHidden:G.anchorHidden,instant:"none"!==A?"tracking-cursor":D}),[y,G.side,G.align,G.anchorHidden,A,D]),I=(0,ab.usePositioner)(a,H,{styles:G.positionerStyles,transitionStatus:E,props:v,refs:[d,w.useStateSetter("positionerElement")],hidden:!z,inert:!y||"both"===A||B});return(0,b.jsx)(Z.Provider,{value:G,children:I})});var ad=a.i(305687),ae=a.i(3861),af=a.i(181673);let ag=c.forwardRef(function(a,b){let{render:c,className:d,style:e,...f}=a,g=i(),{side:h,align:j}=$(),k=g.useState("open"),l=g.useState("instantType"),m=g.useState("transitionStatus"),n=g.useState("popupProps"),o=g.useState("floatingRootContext"),p=g.useState("disabled"),q=g.useState("closeDelay");(0,ad.useOpenChangeComplete)({open:k,ref:g.context.popupRef,onComplete(){k&&g.context.onOpenChangeComplete?.(!0)}}),(0,af.useHoverFloatingInteraction)(o,{enabled:!p,closeDelay:q});let s=g.useStateSetter("popupElement");return(0,H.useRenderElement)("div",a,{state:{open:k,side:h,align:j,instant:l,transitionStatus:m},ref:[b,g.context.popupRef,s],props:[r.FOCUSABLE_POPUP_PROPS,n,(0,ae.getDisabledMountTransitionStyles)(m),f],stateAttributesMapping:G.popupTransitionStateMapping})}),ah=c.forwardRef(function(a,b){let{render:c,className:d,style:e,...f}=a,g=i(),{arrowRef:h,side:j,align:k,arrowUncentered:l,arrowStyles:m}=$(),n=g.useState("open"),o=g.useState("instantType");return(0,H.useRenderElement)("div",a,{state:{open:n,side:j,align:k,uncentered:l,instant:o},ref:[b,h],props:[{style:m,"aria-hidden":!0},f],stateAttributesMapping:G.popupStateMapping})});var ai=a.i(362092);let aj=c.forwardRef(function(a,b){let{render:c,className:d,style:e,children:f,...g}=a,h=i(),j=$(),k=h.useState("instantType"),{children:l,state:m}=(0,ai.usePopupViewport)({store:h,side:j.side,children:f}),n={activationDirection:m.activationDirection,transitioning:m.transitioning,instant:k};return(0,H.useRenderElement)("div",a,{state:n,ref:b,props:[g,{children:l}],stateAttributesMapping:ai.popupViewportStateMapping})});var ak=a.i(4675);class al extends ak.BasePopupHandle{constructor(){super(function(){let a=new x.PopupTriggerMap;return Object.assign(new v.NullStore(Object.freeze(A(void 0,a)),Object.freeze(B(a)),y),{setOpen:e.NOOP,cancelPendingOpen:e.NOOP})}(),"Tooltip")}open(a){this.openByTrigger(a)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}a.s(["Arrow",0,ah,"Handle",0,al,"Popup",0,ag,"Portal",0,Y,"Positioner",0,ac,"Provider",0,function(a){let{delay:d,closeDelay:e,timeout:f=400}=a,g=c.useMemo(()=>({open:d,close:e}),[d,e]);return(0,b.jsx)(K.Provider,{value:d,children:(0,b.jsx)(O,{delay:g,timeoutMs:f,children:a.children})})},"Root",0,C,"Trigger",0,V,"Viewport",0,aj,"createHandle",0,function(){return new al}],503191);var am=a.i(503191),am=am,an=a.i(497895);a.s(["Tooltip",0,function({...a}){return(0,b.jsx)(am.Root,{"data-slot":"tooltip",...a})},"TooltipContent",0,function({className:a,side:c="top",sideOffset:d=4,align:e="center",alignOffset:f=0,children:g,...h}){return(0,b.jsx)(am.Portal,{children:(0,b.jsx)(am.Positioner,{align:e,alignOffset:f,side:c,sideOffset:d,className:"isolate z-50",children:(0,b.jsxs)(am.Popup,{"data-slot":"tooltip-content",className:(0,an.cn)("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",a),...h,children:[g,(0,b.jsx)(am.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})},"TooltipProvider",0,function({delay:a=0,...c}){return(0,b.jsx)(am.Provider,{"data-slot":"tooltip-provider",delay:a,...c})},"TooltipTrigger",0,function({...a}){return(0,b.jsx)(am.Trigger,{"data-slot":"tooltip-trigger",...a})}],654816)},398026,a=>{"use strict";var b=a.i(287702),c=a.i(421042),d=a.i(411509);let e="Concierge",f=[{name:d.DEFAULT_BOT.name,description:d.DEFAULT_BOT.description,hint:"Takes whatever nobody else is for",systemPrompt:""},{name:"Analyst",description:"Finds out and answers with sources — what things cost, how numbers moved, which one to pick",hint:"Finds out, cites, and lays it out",systemPrompt:`Questions answered by finding out are yours — what something costs, how a figure moved and why, which to pick, whether to buy now or wait — and the answer is only as good as where it came from.
2
2
 
3
- **Answer first.** Whoever asked reads your first lines and may stop there, so they hold the answer and the two or three facts behind it. A title says the finding, not the topic. A few facts are your final text and nothing more; more than that is one page in your folder under \`artifacts/\`, every figure with where it came from.
3
+ **Answer first.** Whoever asked reads your first lines and may stop there, so they hold the answer and the two or three facts behind it. A title says the finding, not the topic. A few facts are your final text and nothing more; more than that is one page in your folder under \`artifacts/\`, every figure with where it came from — or a sheet, when the figures are their own to keep and go on with.
4
4
 
5
5
  **From the source, never from memory.** A number comes from where it is published, a claim from the text that makes it, with the moment it is said; two sources that disagree, a figure you could not confirm, a page you could not read are said beside the answer, not smoothed over. A number you derive shows its arithmetic; an estimate is a range.
6
6
 
@@ -32,6 +32,6 @@ module.exports=[654816,a=>{"use strict";var b=a.i(187924);a.s([],965156),a.i(965
32
32
 
33
33
  **Ground every claim.** Competitors, prices, search terms and what people say about the problem come from pages you opened, with the link beside them. What you could not check is marked as a guess.
34
34
 
35
- **What you keep.** One brief per product — what it is, for whom, against what, in which voice — dated, and every later job starts from it.`}];a.s(["BOT_SEEDS",0,f,"ERRANDS_BOT",0,e,"rollSeedIcons",0,()=>{let a=(0,d.randomBotIcons)(f.length);return f.map((b,c)=>b.name===d.DEFAULT_BOT.name?d.DEFAULT_BOT_ICON:a[c])}])},574299,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fd051fe6a097a25ff0b473a85f79140baebb23bb3",b.callServer,void 0,b.findSourceMapURL,"createSeedBotsAction");a.s(["createSeedBotsAction",0,c])}];
35
+ **What you keep.** One brief per product — what it is, for whom, against what, in which voice — dated, and every later job starts from it.`}];a.s(["BOT_SEEDS",0,f,"ERRANDS_BOT",0,e,"rollSeedIcons",0,()=>{let a=(0,d.randomBotIcons)(f.length);return f.map((b,c)=>b.name===d.DEFAULT_BOT.name?d.DEFAULT_BOT_ICON:a[c])}])},395549,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7fa0bc49d2a8ce2603e97b50c77e2fb6f72f360cd8",b.callServer,void 0,b.findSourceMapURL,"createSeedBotsAction");a.s(["createSeedBotsAction",0,c])}];
36
36
 
37
- //# sourceMappingURL=_11pnnvd._.js.map
37
+ //# sourceMappingURL=_113ukfo._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[703228,a=>a.a(async(b,c)=>{try{var d=a.i(187924),e=a.i(263359),f=a.i(444080),g=a.i(707963),h=a.i(141146),i=a.i(998697),j=a.i(483138),k=a.i(69095),l=a.i(663741),m=a.i(696732),n=a.i(403512),o=a.i(233540),p=a.i(917256),q=a.i(951675),r=a.i(201661),s=a.i(572131),t=a.i(767561),u=a.i(340695),v=a.i(316474),w=a.i(205522),x=a.i(846991),y=a.i(446181),z=a.i(950463),A=a.i(280281),B=a.i(621958),C=a.i(546893),D=a.i(287702),E=a.i(619477),F=a.i(259305),G=a.i(78618),H=a.i(536177),I=a.i(684412),J=a.i(308911),K=a.i(102410),L=a.i(313237),M=a.i(759497),N=a.i(497895),O=b([x]);[x]=O.then?(await O)():O;let Y={artifact:l.Frame,browser:m.Globe,computer:e.AppWindow,"find-skills":o.Search,"skill-creator":p.SquarePen};function P({skill:a}){let[b,c]=(0,L.useServerAction)(G.deleteSkillAction,{onOk:()=>(0,M.revalidate)(t.queryKey.skills)}),[e]=(0,L.useServerAction)(H.setSkillDisabledAction,{onOk:()=>(0,M.revalidate)(t.queryKey.skills)}),g=async()=>{await y.notify.confirm({title:`Delete ${a.name}?`,description:"Every file in this skill is deleted for good.",okText:"Delete",destructive:!0})&&b(a.source,a.dir)},i="default"===a.source&&Y[a.dir]||f.BookMarked;return(0,d.jsxs)("div",{className:"group flex items-center transition-colors hover:bg-muted/50",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>{var b;return b=a,y.notify.component({className:"sm:max-w-4xl",renderer:()=>(0,d.jsx)(Q,{skill:b})})},className:"flex min-w-0 flex-1 items-center gap-3 py-4 pl-4 text-left outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,d.jsx)("span",{className:(0,N.cn)("grid size-10 shrink-0 place-items-center rounded-lg bg-muted text-muted-foreground",a.disabled&&"opacity-45"),children:(0,d.jsx)(i,{className:"size-4"})}),(0,d.jsxs)("span",{className:(0,N.cn)("min-w-0 flex-1 space-y-0.5",a.disabled&&"opacity-45"),children:[(0,d.jsx)("span",{className:"block truncate text-sm font-medium",children:a.name}),(0,d.jsx)("span",{className:"line-clamp-2 text-xs leading-relaxed text-muted-foreground",children:(0,K.firstSentence)(a.description)})]}),(0,d.jsx)(h.ChevronRight,{className:"size-4 shrink-0 text-muted-foreground/60 group-hover:text-foreground"})]}),(0,d.jsxs)("div",{className:"mr-4 ml-5 flex w-18 shrink-0 items-center justify-end gap-3",children:[(0,d.jsx)(A.Switch,{checked:!a.disabled,onCheckedChange:b=>e(a.source,a.dir,!b),"aria-label":`${a.name} on or off`,className:"shrink-0"}),(0,K.isEditableSource)(a.source)?(0,d.jsx)(u.Button,{size:"icon-sm",variant:"ghost",loading:c,onClick:g,"aria-label":`Delete ${a.name}`,className:"shrink-0 text-muted-foreground",children:(0,d.jsx)(q.Trash2,{})}):(0,d.jsx)("span",{className:"size-7 shrink-0"})]})]})}function Q({skill:a}){let[b,c]=(0,s.useState)(""),[e,f]=(0,s.useState)("SKILL.md"),h=(0,s.useRef)(!1),i=async a=>{let d=b?`${b}/${a.name}`:a.name;"dir"===a.kind?c(d):d===e||(!h.current||await y.notify.confirm({title:"Discard your changes?",description:`What you wrote in ${e?.split("/").pop()} is not saved.`,okText:"Discard",destructive:!0}))&&(h.current=!1,f(d))};return(0,d.jsx)(E.SettingDialogContent,{title:a.name,description:(0,d.jsx)(R,{skill:a,path:e??b}),children:(0,d.jsxs)("div",{className:"flex h-[36rem] divide-x divide-border/60 overflow-hidden rounded-xl border border-border/60 bg-background",children:[(0,d.jsxs)("div",{className:"flex w-44 shrink-0 flex-col overflow-y-auto bg-muted/20 py-1",children:[b&&(0,d.jsxs)("button",{type:"button",onClick:()=>c(b.split("/").slice(0,-1).join("/")),className:"mx-1 mb-1 flex items-center gap-1 rounded-md px-2 py-1 text-left font-mono text-[11px] text-muted-foreground outline-none hover:bg-muted/50 hover:text-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",children:[(0,d.jsx)(g.ChevronLeft,{className:"size-3 shrink-0"}),(0,d.jsx)("span",{className:"truncate",children:b.split("/").pop()})]}),(0,d.jsx)(T,{source:a.source,dir:a.dir,path:b,current:e,onPick:i})]}),(0,d.jsx)("div",{className:"min-w-0 flex-1 overflow-y-auto",children:e?(0,d.jsx)(V,{source:a.source,dir:a.dir,path:e,editable:(0,K.isEditableSource)(a.source),onUnsaved:a=>{h.current=a}},e):(0,d.jsx)("p",{className:"p-6 text-sm text-muted-foreground/60",children:"Pick a file"})})]})})}function R({skill:a,path:b}){if(!a)return(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-muted-foreground/60",children:"Pick a skill"});let c=[a.name,...b.split("/").filter(Boolean)];return(0,d.jsx)("span",{className:"flex min-w-0 items-center gap-1 font-mono text-[11px] text-muted-foreground",children:c.map((a,b)=>(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1",children:[b>0&&(0,d.jsx)(h.ChevronRight,{className:"size-3 shrink-0 opacity-50"}),(0,d.jsx)("span",{className:(0,N.cn)("truncate",b===c.length-1&&"text-foreground"),children:a})]},`${b}-${a}`))})}function S({icon:a,label:b,active:c,hasChildren:e,onClick:f}){return(0,d.jsxs)("button",{type:"button",onClick:f,className:(0,N.cn)("mx-1 flex items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset",c?E.PICKED_ROW:"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),children:[(0,d.jsx)("span",{className:"shrink-0 text-muted-foreground/70 [&>svg]:size-3",children:a}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate",children:b}),e&&(0,d.jsx)(h.ChevronRight,{className:"size-3 shrink-0 text-muted-foreground/50"})]})}function T({source:a,dir:b,path:c,current:e,onPick:f}){let{data:g,isLoading:h,error:l}=(0,M.useServerRoute)(t.queryKey.skillNode(a,b,c));return l?(0,d.jsx)("p",{className:"p-3 font-mono text-xs text-destructive",children:l.message}):h||!g?(0,d.jsxs)("div",{className:"space-y-2 p-2",children:[(0,d.jsx)(z.Skeleton,{className:"h-5 w-full"}),(0,d.jsx)(z.Skeleton,{className:"h-5 w-4/5"})]}):"dir"!==g.kind?null:(0,d.jsxs)(d.Fragment,{children:[g.entries.map(a=>(0,d.jsx)(S,{icon:"dir"===a.kind?(0,d.jsx)(k.Folder,{}):a.name.endsWith(".md")?(0,d.jsx)(j.FileText,{}):(0,d.jsx)(i.File,{}),label:a.name,hasChildren:"dir"===a.kind,active:(c?`${c}/${a.name}`:a.name)===e,onClick:()=>f(a)},a.name)),0===g.entries.length&&(0,d.jsx)("p",{className:"p-3 text-xs text-muted-foreground/60",children:"Empty folder"})]})}function U({content:a,description:b}){let c=/^---\r?\n([\s\S]*?)\r?\n---[ \t]*\r?\n?/.exec(a),e=b?.trim(),f=c?a.slice(c[0].length):a;return(0,d.jsxs)("div",{className:"min-w-0",children:[e&&(0,d.jsx)("p",{className:"border-b border-border/60 px-5 py-3 text-[13px] leading-relaxed text-muted-foreground",children:e}),(0,d.jsx)("div",{className:"px-5 py-4 text-sm leading-relaxed",children:(0,d.jsx)(x.Markdown,{children:f})})]})}function V({source:a,dir:b,path:c,editable:e,onUnsaved:f}){let[g,h]=(0,s.useState)(null),{data:i,isLoading:j,error:k}=(0,M.useServerRoute)(t.queryKey.skillNode(a,b,c)),l=null!==g&&(i?.kind!=="file"||g!==i.content);(0,s.useEffect)(()=>f?.(l),[l,f]);let[m,n]=(0,L.useServerAction)(J.writeSkillFileAction,{okMessage:"Saved",onOk:()=>{h(null),(0,M.revalidate)(t.queryKey.skills)}});if(k)return(0,d.jsx)("p",{className:"p-4 font-mono text-xs text-destructive",children:k.message});if(j||!i)return(0,d.jsxs)("div",{className:"space-y-3 p-5",children:[(0,d.jsx)(z.Skeleton,{className:"h-5 w-2/3"}),(0,d.jsx)(z.Skeleton,{className:"h-4 w-full"}),(0,d.jsx)(z.Skeleton,{className:"h-4 w-5/6"})]});if("file"!==i.kind)return null;let o=c.split("/").pop()??"";return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"sticky top-0 z-20 flex items-center justify-between gap-2 border-b border-border/60 bg-background/90 px-5 py-2 font-mono text-[11px] text-muted-foreground backdrop-blur",children:[(0,d.jsx)("span",{className:"truncate",children:o}),(0,d.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,d.jsx)("span",{children:(0,N.formatBytes)(i.size)}),e&&null!==i.content&&null===g&&(0,d.jsxs)(u.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>h(i.content??""),children:[(0,d.jsx)(p.SquarePen,{}),"Edit"]}),null!==g&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.Button,{size:"xs",variant:"ghost",className:"font-mono",onClick:()=>h(null),children:"Cancel"}),(0,d.jsx)(u.Button,{size:"xs",className:"font-mono",loading:n,disabled:g===i.content,onClick:()=>m(a,b,c,g),children:"Save"})]})]})]}),null!==g?(0,d.jsx)(C.Textarea,{value:g,onChange:a=>h(a.target.value),spellCheck:!1,"aria-label":`${o} contents`,className:"min-h-120 resize-none rounded-none border-0 font-mono text-[13px] leading-relaxed shadow-none focus-visible:ring-0"}):null===i.content?(0,d.jsx)("p",{className:"px-5 py-4 text-sm text-muted-foreground/60",children:i.size>D.SKILL_FILES.inlineBytes?"Too long to show here — a bot still reads it from disk.":"Not a text file — a bot can still read it from disk."}):o.toLowerCase().endsWith(".md")?(0,d.jsx)(U,{content:i.content,description:i.description}):(0,d.jsx)("pre",{className:"overflow-x-auto px-5 py-4 font-mono text-[13px] leading-relaxed whitespace-pre text-foreground/90",children:i.content})]})}function W(){return y.notify.component({className:"sm:max-w-lg",renderer:({close:a})=>(0,d.jsx)(X,{onDone:a})})}function X({onDone:a}){let[b,c]=(0,s.useState)("write"),[e,f]=(0,s.useState)(""),[g,h]=(0,s.useState)(""),[i,j]=(0,s.useState)(""),[k,l]=(0,s.useState)(null),[m,o]=(0,s.useState)(!1),p=(0,s.useRef)(null),q={errorMessage:!1,onOk:()=>{(0,M.revalidate)(t.queryKey.skills),a()}},[x,y,,z]=(0,L.useServerAction)(F.createSkillAction,q),[A,G,,H]=(0,L.useServerAction)(I.uploadSkillAction,q),J=y||G,K="write"===b?z:H,O=null!==k&&k.size>D.SKILL_FILES.uploadBytes,P=Math.round(D.SKILL_FILES.uploadBytes/1024/1024),Q=!J&&("write"===b?e.trim()&&g.trim()&&i.trim():null!==k&&!O),R=async()=>{if(!Q)return;if("write"===b)return void x({name:e.trim(),description:g.trim(),content:i});if(!k)return;let a=new FormData;a.append("file",k),A(a)},S=a=>{let b=a?.[0]??null;b&&l(b)};return(0,d.jsxs)(E.SettingDialogContent,{title:"New skill",description:"Instructions a bot reads when a job calls for them.",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.Button,{variant:"ghost",onClick:a,children:"Cancel"}),(0,d.jsxs)(u.Button,{disabled:!Q,loading:J,onClick:R,children:[!J&&("write"===b?(0,d.jsx)(n.Plus,{}):(0,d.jsx)(r.Upload,{})),"write"===b?"Create":"Upload"]})]}),children:[(0,d.jsxs)(B.Tabs,{value:b,onValueChange:a=>c(a),children:[(0,d.jsxs)(B.TabsList,{className:"w-full",children:[(0,d.jsx)(B.TabsTrigger,{value:"write",children:"Write"}),(0,d.jsx)(B.TabsTrigger,{value:"upload",children:"Upload"})]}),(0,d.jsxs)(B.TabsContent,{value:"write",className:"space-y-5 pt-4",children:[(0,d.jsxs)(v.Field,{children:[(0,d.jsx)(v.FieldLabel,{htmlFor:"skill-name",children:"Name"}),(0,d.jsxs)(v.FieldContent,{children:[(0,d.jsx)(w.Input,{id:"skill-name",value:e,onChange:a=>f(a.target.value),placeholder:"deploy-checklist",spellCheck:!1,autoFocus:!0}),(0,d.jsxs)("p",{className:"font-mono text-[11px] text-muted-foreground",children:[D.PATHS.skills.custom,"/",e.trim()||"…","/SKILL.md"]})]})]}),(0,d.jsxs)(v.Field,{children:[(0,d.jsx)(v.FieldLabel,{htmlFor:"skill-description",children:"Description"}),(0,d.jsx)(v.FieldContent,{children:(0,d.jsx)(w.Input,{id:"skill-description",value:g,onChange:a=>h(a.target.value),placeholder:"What it does, then when to use it — a bot reads this to decide"})})]}),(0,d.jsxs)(v.Field,{children:[(0,d.jsx)(v.FieldLabel,{htmlFor:"skill-content",children:"Content"}),(0,d.jsx)(C.Textarea,{id:"skill-content",value:i,onChange:a=>j(a.target.value),placeholder:"Markdown. The steps, the rules, the examples.",className:"min-h-40 resize-none font-mono text-xs"})]})]}),(0,d.jsxs)(B.TabsContent,{value:"upload",className:"space-y-4 pt-4",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>p.current?.click(),onDragOver:a=>{a.preventDefault(),o(!0)},onDragLeave:()=>o(!1),onDrop:a=>{a.preventDefault(),o(!1),S(a.dataTransfer.files)},className:(0,N.cn)("flex w-full flex-col items-center gap-2 rounded-xl border border-dashed px-6 py-10 text-center outline-none transition-colors focus-visible:ring-3 focus-visible:ring-ring/50",m?"border-foreground/60 bg-muted/60":"border-border hover:bg-muted/40"),children:[(0,d.jsx)(r.Upload,{className:"size-5 text-muted-foreground"}),k?(0,d.jsxs)("span",{className:"text-sm",children:[k.name,(0,d.jsxs)("span",{className:(0,N.cn)("ml-2 font-mono text-[11px]",O?"text-destructive":"text-muted-foreground"),children:[(0,N.formatBytes)(k.size),O&&` \xb7 over ${P} MB`]})]}):(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:"Drop a file here, or click to choose"})]}),(0,d.jsx)("input",{ref:p,type:"file",accept:".md,.zip,.skill",className:"hidden",onChange:a=>S(a.target.files)}),(0,d.jsxs)("div",{className:"space-y-1 text-xs text-muted-foreground",children:[(0,d.jsx)("p",{className:"font-medium text-foreground/80",children:"File requirements"}),(0,d.jsxs)("p",{children:["A ",(0,d.jsx)("span",{className:"font-mono",children:".md"})," file needs a YAML block with the skill's name and description."]}),(0,d.jsxs)("p",{children:["A ",(0,d.jsx)("span",{className:"font-mono",children:".zip"})," or"," ",(0,d.jsx)("span",{className:"font-mono",children:".skill"})," archive needs a SKILL.md inside — the rest of its folder comes along."]}),(0,d.jsxs)("p",{children:["Up to ",P," MB."]})]})]})]}),K&&(0,d.jsx)("p",{className:"font-mono text-xs text-destructive",children:K})]})}a.s(["SkillsSetting",0,function(){let[a,b]=(0,s.useState)(""),{data:c,isLoading:e,error:f}=(0,M.useServerRoute)(t.queryKey.skills),g=c??[];if(e)return(0,d.jsx)(E.SettingSkeleton,{rows:4});if(f)return(0,d.jsx)(E.SettingError,{message:f.message});let h=a.trim().toLowerCase(),i=g.filter(a=>!h||`${a.name} ${a.description}`.toLowerCase().includes(h)),j=g.filter(a=>!a.disabled).length,k=g.filter(a=>!a.disabled&&("default"===a.source||"custom"===a.source)).length,l=new Map;for(let a of i)a.bot&&l.set(a.bot,[...l.get(a.bot)??[],a]);return(0,d.jsxs)(E.SettingScreen,{footer:(0,d.jsxs)(E.SettingRailNote,{children:[g.filter(a=>!(0,K.isEditableSource)(a.source)).length," ","shipped ·"," ",g.filter(a=>(0,K.isEditableSource)(a.source)).length," ","installed"]}),children:[(0,d.jsx)(E.SettingToolbar,{count:`${j} on \xb7 ${g.length-j} off`,children:(0,d.jsx)(E.SettingFilter,{value:a,onChange:b,placeholder:"Filter skills"})}),(0,d.jsx)(E.SettingGroup,{label:"Custom",hint:"yours — added here · a Default skill of the same name wins",children:(0,d.jsx)(E.SettingItems,{addRow:{label:"Add skill",onClick:W},children:i.filter(a=>"custom"===a.source).map(a=>(0,d.jsx)(P,{skill:a},`custom/${a.dir}`))})}),[...l].map(([a,b])=>(0,d.jsx)(E.SettingGroup,{label:`${a}'s own`,hint:`only ${a} reads these \xb7 what it found or wrote can be edited or deleted`,children:(0,d.jsx)(E.SettingItems,{children:b.map(a=>(0,d.jsx)(P,{skill:a},`${a.source}/${a.dir}`))})},a)),(0,d.jsx)(E.SettingGroup,{label:"Default",hint:"ships with the app · switch off, can't edit or delete",children:(0,d.jsx)(E.SettingItems,{children:i.filter(a=>"default"===a.source).map(a=>(0,d.jsx)(P,{skill:a},`default/${a.dir}`))})}),k>D.PROMPT_CROWDED.skills&&(0,d.jsxs)(E.SettingNote,{children:[k," skills are on for every bot. Each is a line in every prompt a bot reads, and one more to look past when it picks."]})]})}]),c()}catch(a){c(a)}},!1),259305,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f8f2d6c3025b8c6f76cd2c67f9ce3691d32b2e4ce",b.callServer,void 0,b.findSourceMapURL,"createSkillAction");a.s(["createSkillAction",0,c])},78618,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f06e29cc2a873e1e2e6bbd9b5bed0d3f12f69aa79",b.callServer,void 0,b.findSourceMapURL,"deleteSkillAction");a.s(["deleteSkillAction",0,c])},536177,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f1ffa0f9bce50a9642bf7c0cc01e35fa5f76013ba",b.callServer,void 0,b.findSourceMapURL,"setSkillDisabledAction");a.s(["setSkillDisabledAction",0,c])},684412,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f05c1131518e59016869ee9b9401b74db110965ac",b.callServer,void 0,b.findSourceMapURL,"uploadSkillAction");a.s(["uploadSkillAction",0,c])},308911,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("7f6398c8e532d982455585d7057b82d4dad26c19c2",b.callServer,void 0,b.findSourceMapURL,"writeSkillFileAction");a.s(["writeSkillFileAction",0,c])},102410,a=>{"use strict";var b=a.i(156757);b.z.union([b.z.enum(["custom","default"]),b.z.templateLiteral(["kit:",b.z.string().regex(/^[\p{L}\p{N}_-]+$/u)]),b.z.templateLiteral(["own:",b.z.string().regex(/^[\p{L}\p{N}_-]+$/u)])]);let c=b.z.string().trim().min(1,"Skill name is required").max(64,"Skill name is too long").regex(/^[a-z0-9][a-z0-9_-]*$/i,"Use letters, numbers, dashes and underscores only"),d=b.z.string().trim().min(1,"Skill name is required").max(64,"Skill name is too long");b.z.object({name:d,description:b.z.string().trim().min(1,"Description is required"),metadata:b.z.record(b.z.string(),b.z.unknown()).optional(),disabled:b.z.boolean().optional(),platforms:b.z.array(b.z.string()).optional()}).extend({name:c,content:b.z.string().trim().min(1,"Content is required")}),a.s(["firstSentence",0,a=>a.trim().split(/(?<=[.。])\s|\n/)[0].trim(),"isEditableSource",0,a=>"custom"===a||a.startsWith("own:")])},663741,a=>{"use strict";var b=a.i(164831);let c={name:"frame",size:24,node:[["line",{x1:"22",x2:"2",y1:"6",y2:"6",key:"15w7dq"}],["line",{x1:"22",x2:"2",y1:"18",y2:"18",key:"1ip48p"}],["line",{x1:"6",x2:"6",y1:"2",y2:"22",key:"a2lnyx"}],["line",{x1:"18",x2:"18",y1:"2",y2:"22",key:"8vb6jd"}]]};c.node;let d=(0,b.default)(c);a.s(["Frame",0,d],663741)},917256,a=>{"use strict";var b=a.i(164831);let c={name:"square-pen",size:24,node:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],aliases:["pen-box","edit","pen-square"]};c.node;let d=(0,b.default)(c);a.s(["SquarePen",0,d],917256)},201661,a=>{"use strict";var b=a.i(164831);let c={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};c.node;let d=(0,b.default)(c);a.s(["Upload",0,d],201661)}];
2
+
3
+ //# sourceMappingURL=_12p8f9_._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[489277,a=>a.a(async(b,c)=>{try{var d=a.i(451208),e=b([d]);[d]=e.then?(await e)():e,a.s([]),c()}catch(a){c(a)}},!1),701876,a=>a.a(async(b,c)=>{try{var d=a.i(489277),e=a.i(451208),f=b([d,e]);[d,e]=f.then?(await f)():f,a.s(["7f3121fc646d0a75f62e314461151534a6388fac09",()=>e.openFileAction,"7fcd5a8bb2806bee334cec73e729c90e26ad83eb5f",()=>e.revealFileAction,"7fd1f6e08972507c65d599a7276b77ecf6e44aaf17",()=>e.savePageAction]),c()}catch(a){c(a)}},!1),451208,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(569572),f=a.i(821415),g=a.i(941981),h=a.i(225689),i=a.i(293480),j=a.i(201013),k=a.i(182248),l=a.i(713095),m=b([g]);[g]=m.then?(await m)():m;let o=(0,h.serverAction)(async a=>{let{target:b,full:c}=await n(a);try{await (0,j.openPath)(c)}catch(a){(0,i.publicError)(`Could not open ${b}: ${(0,k.errorToString)(a)}`)}}),p=(0,h.serverAction)(async a=>{let{target:b,full:c}=await n(a);try{await (0,j.revealPath)(c)}catch(a){(0,i.publicError)(`Could not show ${b}: ${(0,k.errorToString)(a)}`)}});async function n(a){let b=a.trim();b||(0,i.publicError)("Which file?");let c=await (0,f.openWorkspace)();return{target:b,full:c.resolve(b)}}let q=(0,h.serverAction)(async a=>{let b=a.trim();b||(0,i.publicError)("Which file?"),await (0,g.deleteWorkspaceFile)(b)}),r=(0,h.serverAction)(async(a,b,c)=>{let d=a.trim();return d||(0,i.publicError)("Which page?"),"string"!=typeof b&&(0,i.publicError)("Nothing to keep."),"string"!=typeof c&&(0,i.publicError)("Which revision?"),(0,g.savePage)(d,b,c)}),s=(0,h.serverAction)(async()=>(0,g.emptyScratch)()),t=(0,h.serverAction)(async a=>{a instanceof FormData||(0,i.publicError)("No files came with that.");let b=a.getAll("file").filter(a=>a instanceof File&&a.size>0);b.length||(0,i.publicError)("No files came with that."),b.length>e.GIVEN_FILES.perMessage&&(0,i.publicError)(`At most ${e.GIVEN_FILES.perMessage} files at a time.`);let c=b.find(a=>a.size>e.GIVEN_FILES.maxBytes);return c&&(0,i.publicError)(`${c.name} is larger than ${Math.round(e.GIVEN_FILES.maxBytes/1024/1024)} MB.`),(0,g.keepGivenFiles)(b)});(0,l.ensureServerEntryExports)([o,p,q,r,s,t]),(0,d.registerServerReference)(o,"7f3121fc646d0a75f62e314461151534a6388fac09",null),(0,d.registerServerReference)(p,"7fcd5a8bb2806bee334cec73e729c90e26ad83eb5f",null),(0,d.registerServerReference)(q,"7f4f94cde97efbe46f20e80c33d735bf4170ea99ed",null),(0,d.registerServerReference)(r,"7fd1f6e08972507c65d599a7276b77ecf6e44aaf17",null),(0,d.registerServerReference)(s,"7f9a1f3226e95837947346191e1c8c12461c088b1a",null),(0,d.registerServerReference)(t,"7f0362ac5f4ef10351a512c0ff3b70858aa27e0f46",null),a.s(["deleteWorkspaceFileAction",0,q,"emptyScratchAction",0,s,"giveFilesAction",0,t,"openFileAction",0,o,"revealFileAction",0,p,"savePageAction",0,r]),c()}catch(a){c(a)}},!1),225689,a=>{"use strict";var b=a.i(422842);a.s(["serverAction",0,a=>(...c)=>(0,b.toResult)(()=>a(...c))])},201013,a=>{"use strict";var b=a.i(874533),c=a.i(912714),d=a.i(750227),e=a.i(812057);let f={darwin:a=>["open",[a]],win32:a=>["cmd.exe",["/c","start","",a]],linux:a=>["xdg-open",[a]]},g={darwin:a=>["open",["-R",a]],win32:a=>["explorer.exe",[`/select,${a}`]],linux:a=>["xdg-open",[(0,d.dirname)(a)]]};async function h(a){await (0,c.access)(a),await j(f,a)}async function i(a){let b=await (0,c.stat)(a);await j(b.isDirectory()?f:g,a)}async function j(a,c){let d=a[process.platform]?.(c);if(!d)throw Error(`Opening files is not wired up on ${process.platform}.`);let[f,g]=d;await (0,e.promisify)(b.execFile)(f,g,{windowsHide:!0}).catch(a=>{if("explorer.exe"!==f)throw a})}a.s(["openPath",0,h,"revealPath",0,i])},832030,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_1j4x-_j._.js"].map(b=>a.l(b))).then(()=>b(322479)))},713095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
1
+ module.exports=[489277,a=>a.a(async(b,c)=>{try{var d=a.i(451208),e=b([d]);[d]=e.then?(await e)():e,a.s([]),c()}catch(a){c(a)}},!1),701876,a=>a.a(async(b,c)=>{try{var d=a.i(489277),e=a.i(451208),f=b([d,e]);[d,e]=f.then?(await f)():f,a.s(["7f61bf1735e166fe77b4dd3f611ba92a4b0ea8cf34",()=>e.revealFileAction,"7fb876adcee76a50de2d222db1aa2f80504195c3af",()=>e.savePageAction,"7ff2da640de89424d0eed26f1298731920b9a66e81",()=>e.openFileAction]),c()}catch(a){c(a)}},!1),451208,a=>a.a(async(b,c)=>{try{var d=a.i(137936),e=a.i(569572),f=a.i(821415),g=a.i(941981),h=a.i(225689),i=a.i(293480),j=a.i(201013),k=a.i(182248),l=a.i(713095),m=b([g]);[g]=m.then?(await m)():m;let o=(0,h.serverAction)(async a=>{let{target:b,full:c}=await n(a);try{await (0,j.openPath)(c)}catch(a){(0,i.publicError)(`Could not open ${b}: ${(0,k.errorToString)(a)}`)}}),p=(0,h.serverAction)(async a=>{let{target:b,full:c}=await n(a);try{await (0,j.revealPath)(c)}catch(a){(0,i.publicError)(`Could not show ${b}: ${(0,k.errorToString)(a)}`)}});async function n(a){let b=a.trim();b||(0,i.publicError)("Which file?");let c=await (0,f.openWorkspace)();return{target:b,full:c.resolve(b)}}let q=(0,h.serverAction)(async a=>{let b=a.trim();b||(0,i.publicError)("Which file?"),await (0,g.deleteWorkspaceFile)(b)}),r=(0,h.serverAction)(async(a,b,c)=>{let d=a.trim();return d||(0,i.publicError)("Which page?"),"string"!=typeof b&&(0,i.publicError)("Nothing to keep."),"string"!=typeof c&&(0,i.publicError)("Which revision?"),(0,g.savePage)(d,b,c)}),s=(0,h.serverAction)(async()=>(0,g.emptyScratch)()),t=(0,h.serverAction)(async a=>{a instanceof FormData||(0,i.publicError)("No files came with that.");let b=a.getAll("file").filter(a=>a instanceof File&&a.size>0);b.length||(0,i.publicError)("No files came with that."),b.length>e.GIVEN_FILES.perMessage&&(0,i.publicError)(`At most ${e.GIVEN_FILES.perMessage} files at a time.`);let c=b.find(a=>a.size>e.GIVEN_FILES.maxBytes);return c&&(0,i.publicError)(`${c.name} is larger than ${Math.round(e.GIVEN_FILES.maxBytes/1024/1024)} MB.`),(0,g.keepGivenFiles)(b)});(0,l.ensureServerEntryExports)([o,p,q,r,s,t]),(0,d.registerServerReference)(o,"7ff2da640de89424d0eed26f1298731920b9a66e81",null),(0,d.registerServerReference)(p,"7f61bf1735e166fe77b4dd3f611ba92a4b0ea8cf34",null),(0,d.registerServerReference)(q,"7fa9003abe0969a8da9b1b0f3049dc79cba7c10505",null),(0,d.registerServerReference)(r,"7fb876adcee76a50de2d222db1aa2f80504195c3af",null),(0,d.registerServerReference)(s,"7f854f98bf7b5259681d02af689ac341e4cade10b8",null),(0,d.registerServerReference)(t,"7fed114f2d90f6aa4d4abd2e2b14e227edce09a1f4",null),a.s(["deleteWorkspaceFileAction",0,q,"emptyScratchAction",0,s,"giveFilesAction",0,t,"openFileAction",0,o,"revealFileAction",0,p,"savePageAction",0,r]),c()}catch(a){c(a)}},!1),225689,a=>{"use strict";var b=a.i(422842);a.s(["serverAction",0,a=>(...c)=>(0,b.toResult)(()=>a(...c))])},201013,a=>{"use strict";var b=a.i(874533),c=a.i(912714),d=a.i(750227),e=a.i(812057);let f={darwin:a=>["open",[a]],win32:a=>["cmd.exe",["/c","start","",a]],linux:a=>["xdg-open",[a]]},g={darwin:a=>["open",["-R",a]],win32:a=>["explorer.exe",[`/select,${a}`]],linux:a=>["xdg-open",[(0,d.dirname)(a)]]};async function h(a){await (0,c.access)(a),await j(f,a)}async function i(a){let b=await (0,c.stat)(a);await j(b.isDirectory()?f:g,a)}async function j(a,c){let d=a[process.platform]?.(c);if(!d)throw Error(`Opening files is not wired up on ${process.platform}.`);let[f,g]=d;await (0,e.promisify)(b.execFile)(f,g,{windowsHide:!0}).catch(a=>{if("explorer.exe"!==f)throw a})}a.s(["openPath",0,h,"revealPath",0,i])},832030,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node_readline_1u65a-m._.js","server/chunks/ssr/node_modules_consola_dist_chunks_prompt_mjs_1j4x-_j._.js"].map(b=>a.l(b))).then(()=>b(322479)))},713095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
2
2
  Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},137936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(211857)}];
3
3
 
4
- //# sourceMappingURL=_10fwcz_._.js.map
4
+ //# sourceMappingURL=_14dfh7a._.js.map