@aeolus-fleet/console 0.24.1 → 0.25.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 (254) hide show
  1. package/.next/standalone/packages/console/.next/BUILD_ID +1 -1
  2. package/.next/standalone/packages/console/.next/build-manifest.json +3 -3
  3. package/.next/standalone/packages/console/.next/prerender-manifest.json +3 -3
  4. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page/server-reference-manifest.json +16 -16
  5. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page.js.nft.json +1 -1
  6. package/.next/standalone/packages/console/.next/server/app/(console)/inbox/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page/server-reference-manifest.json +16 -16
  8. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page.js.nft.json +1 -1
  9. package/.next/standalone/packages/console/.next/server/app/(console)/labels/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page/server-reference-manifest.json +16 -16
  11. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page.js.nft.json +1 -1
  12. package/.next/standalone/packages/console/.next/server/app/(console)/needs-attention/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page/server-reference-manifest.json +16 -16
  14. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page.js.nft.json +1 -1
  15. package/.next/standalone/packages/console/.next/server/app/(console)/needs-crew/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/packages/console/.next/server/app/(console)/network/page/server-reference-manifest.json +16 -16
  17. package/.next/standalone/packages/console/.next/server/app/(console)/network/page.js.nft.json +1 -1
  18. package/.next/standalone/packages/console/.next/server/app/(console)/network/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/packages/console/.next/server/app/(console)/page/server-reference-manifest.json +16 -16
  20. package/.next/standalone/packages/console/.next/server/app/(console)/page.js.nft.json +1 -1
  21. package/.next/standalone/packages/console/.next/server/app/(console)/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/packages/console/.next/server/app/(console)/questions/page/server-reference-manifest.json +16 -16
  23. package/.next/standalone/packages/console/.next/server/app/(console)/questions/page.js.nft.json +1 -1
  24. package/.next/standalone/packages/console/.next/server/app/(console)/questions/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page/server-reference-manifest.json +16 -16
  26. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page.js.nft.json +1 -1
  27. package/.next/standalone/packages/console/.next/server/app/(console)/settings/page_client-reference-manifest.js +1 -1
  28. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page/server-reference-manifest.json +16 -16
  29. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page.js.nft.json +1 -1
  30. package/.next/standalone/packages/console/.next/server/app/(console)/ships/[shipId]/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page/server-reference-manifest.json +16 -16
  32. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page.js.nft.json +1 -1
  33. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page/server-reference-manifest.json +16 -16
  35. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page.js.nft.json +1 -1
  36. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page/server-reference-manifest.json +16 -16
  38. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page.js.nft.json +1 -1
  39. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page/server-reference-manifest.json +16 -16
  41. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page.js.nft.json +1 -1
  42. package/.next/standalone/packages/console/.next/server/app/(console)/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page/server-reference-manifest.json +16 -16
  44. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page.js.nft.json +1 -1
  45. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page/server-reference-manifest.json +16 -16
  47. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page.js.nft.json +1 -1
  48. package/.next/standalone/packages/console/.next/server/app/(console)/trierarchs/page_client-reference-manifest.js +1 -1
  49. package/.next/standalone/packages/console/.next/server/app/_global-error/page.js.nft.json +1 -1
  50. package/.next/standalone/packages/console/.next/server/app/_global-error.html +1 -1
  51. package/.next/standalone/packages/console/.next/server/app/_global-error.rsc +1 -1
  52. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  53. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  54. package/.next/standalone/packages/console/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  55. package/.next/standalone/packages/console/.next/server/app/_not-found/page.js.nft.json +1 -1
  56. package/.next/standalone/packages/console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  57. package/.next/standalone/packages/console/.next/server/app/api/reads/[read]/route.js.nft.json +1 -1
  58. package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
  59. package/.next/standalone/packages/console/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
  60. package/.next/standalone/packages/console/.next/server/app/sign-in/page.js.nft.json +1 -1
  61. package/.next/standalone/packages/console/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
  62. package/.next/standalone/packages/console/.next/server/app/version/route.js.nft.json +1 -1
  63. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__06f_104._.js +1 -1
  64. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__14r_nz7._.js +1 -1
  65. package/.next/standalone/packages/console/.next/server/chunks/[root-of-the-server]__1cfwaji._.js +1 -1
  66. package/.next/standalone/packages/console/.next/server/chunks/_1uqphll._.js +1 -1
  67. package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_blueprints_[name]_page_actions_170owr_.js +1 -1
  68. package/.next/standalone/packages/console/.next/server/chunks/ssr/0mxb_server_app_(console)_squadrons_templates_[name]_page_actions_09abrr0.js +1 -1
  69. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_needs-crew_page_actions_08gu8-f.js +1 -1
  70. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_network_page_actions_1muuv-j.js +1 -1
  71. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_questions_page_actions_12d6yd2.js +1 -1
  72. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_settings_page_actions_0b6qztr.js +1 -1
  73. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_ships_[shipId]_page_actions_0g2nd1p.js +1 -1
  74. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_squadrons_page_actions_1x3afts.js +1 -1
  75. package/.next/standalone/packages/console/.next/server/chunks/ssr/0ysl_console__next-internal_server_app_(console)_trierarchs_page_actions_1ow37mz.js +1 -1
  76. package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_needs-attention_page_actions_1jfgclw.js +1 -1
  77. package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_squadrons_[squadronId]_page_actions_1lzqlye.js +1 -1
  78. package/.next/standalone/packages/console/.next/server/chunks/ssr/1eui__next-internal_server_app_(console)_trierarchs_[shipId]_page_actions_0l7bxva.js +1 -1
  79. package/.next/standalone/packages/console/.next/server/chunks/ssr/{[root-of-the-server]__0-cdyrs._.js → [root-of-the-server]__0_jpfes._.js} +2 -2
  80. package/.next/standalone/packages/console/.next/server/chunks/ssr/[root-of-the-server]__197gd9r._.js +1 -1
  81. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0-xdh8c._.js +3 -0
  82. package/.next/standalone/packages/console/.next/server/chunks/ssr/_00in26l._.js +1 -1
  83. package/.next/standalone/packages/console/.next/server/chunks/ssr/_01eyvjo._.js +3 -0
  84. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0584-vx._.js +3 -0
  85. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0-xv1jc._.js → _07bnv77._.js} +1 -1
  86. package/.next/standalone/packages/console/.next/server/chunks/ssr/_09_ui2l._.js +1 -1
  87. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_1_6-t9y._.js → _09we890._.js} +2 -2
  88. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0cak8i7._.js +1 -1
  89. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0i1lwyh._.js +3 -0
  90. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ie3s47._.js +3 -0
  91. package/.next/standalone/packages/console/.next/server/chunks/ssr/{_0j64h07._.js → _0jmht-i._.js} +1 -1
  92. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0ll55v1._.js +1 -1
  93. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0nelrz_._.js +3 -0
  94. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0q2azsd._.js +3 -0
  95. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0qrugya._.js +3 -0
  96. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0r-y7ty._.js +3 -0
  97. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0tree1w._.js +1 -1
  98. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0u0wzbz._.js +3 -0
  99. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vw1jgi._.js +3 -0
  100. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wy-ep_._.js +1 -1
  101. package/.next/standalone/packages/console/.next/server/chunks/ssr/_11s1izd._.js +1 -1
  102. package/.next/standalone/packages/console/.next/server/chunks/ssr/_127j_99._.js +3 -0
  103. package/.next/standalone/packages/console/.next/server/chunks/ssr/_130xl-e._.js +1 -1
  104. package/.next/standalone/packages/console/.next/server/chunks/ssr/_13q51ov._.js +1 -1
  105. package/.next/standalone/packages/console/.next/server/chunks/ssr/_15_xzod._.js +1 -1
  106. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1615ei-._.js +3 -0
  107. package/.next/standalone/packages/console/.next/server/chunks/ssr/_18ym0gp._.js +3 -0
  108. package/.next/standalone/packages/console/.next/server/chunks/ssr/_195z53h._.js +1 -1
  109. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1adtjss._.js +3 -0
  110. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1buuyye._.js +1 -1
  111. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1cgq4el._.js +3 -0
  112. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1geqwzr._.js +3 -0
  113. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1hs5dvz._.js +3 -0
  114. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1lbotqi._.js +3 -0
  115. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1lr2spu._.js +1 -1
  116. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1mk5_2i._.js +3 -0
  117. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1or2awi._.js +1 -1
  118. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1p-k4-7._.js +3 -0
  119. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1qdwv0j._.js +1 -1
  120. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1u0h4gj._.js +1 -1
  121. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1vwkopd._.js +3 -0
  122. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1wmq3ah._.js +1 -1
  123. package/.next/standalone/packages/console/.next/server/chunks/ssr/_207-ta6._.js +3 -0
  124. package/.next/standalone/packages/console/.next/server/chunks/ssr/node_modules_next_dist_1v8aef8._.js +1 -1
  125. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_common_dist_1_gq_cl._.js +1 -1
  126. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0ra01-g._.js → packages_console_0ogk6t7._.js} +1 -1
  127. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_0udiuzu._.js → packages_console_0sqk26-._.js} +1 -1
  128. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1ey0_d3._.js +3 -0
  129. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_inbox_page_actions_0q9_xye.js +1 -1
  130. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_labels_page_actions_0tk7mqs.js +1 -1
  131. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console__next-internal_server_app_(console)_page_actions_1ftjjyq.js +1 -1
  132. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_needs-attention_page_tsx_03s6y-o._.js +1 -1
  133. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_overview-page_tsx_15siba6._.js +1 -1
  134. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_ships_[shipId]_ship-page_tsx_0oahz0r._.js +1 -1
  135. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_[squadronId]_page_tsx_0f8nmsh._.js +1 -1
  136. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_app_(console)_squadrons_page_tsx_1xpvx8n._.js +1 -1
  137. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1_88pm4._.js +1 -1
  138. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1cwibut._.js +1 -1
  139. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_components_1s1xs87._.js +1 -1
  140. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_02isbga._.js → packages_console_features_0tur713._.js} +2 -2
  141. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_1ndu25i._.js +60 -0
  142. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_features_ship_organisms_message-sheet_tsx_0quy9k0._.js +1 -1
  143. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_0u86bst._.js → packages_console_features_squadrons_organisms_form-squadron-dialog_tsx_0la8z4f._.js} +1 -1
  144. package/.next/standalone/packages/console/.next/server/chunks/ssr/{packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_14icmo7._.js → packages_console_features_trierarchs_organisms_clear-worktree-dialog_tsx_01eb-00._.js} +1 -1
  145. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_lib_11xnux-._.js +1 -1
  146. package/.next/standalone/packages/console/.next/server/functions-config-manifest.json +2 -2
  147. package/.next/standalone/packages/console/.next/server/middleware-build-manifest.js +3 -3
  148. package/.next/standalone/packages/console/.next/server/pages/500.html +1 -1
  149. package/.next/standalone/packages/console/.next/server/server-reference-manifest.js +1 -1
  150. package/.next/standalone/packages/console/.next/server/server-reference-manifest.json +17 -17
  151. package/.next/standalone/packages/console/.next/static/bXH06v_D0kt92IaQZhnO3/_clientMiddlewareManifest.js +6 -0
  152. package/.next/standalone/packages/console/.next/static/chunks/024gtos6941vd.js +1 -0
  153. package/.next/standalone/packages/console/.next/static/chunks/0bb19hfyc42kn.js +1 -0
  154. package/.next/standalone/packages/console/.next/static/chunks/{2livhrlemepl2.js → 0hdn93y7e5xwj.js} +1 -1
  155. package/.next/standalone/packages/console/.next/static/chunks/{05bfzj94tyl8h.js → 0jla970vmpygy.js} +1 -1
  156. package/.next/standalone/packages/console/.next/static/chunks/{1m-y884h34ihx.js → 0jvnv44qtww0y.js} +1 -1
  157. package/.next/standalone/packages/console/.next/static/chunks/{272z35i6ulqd6.js → 0rr9rjc_bc3gf.js} +1 -1
  158. package/.next/standalone/packages/console/.next/static/chunks/{2ys91r118pnlx.js → 0t6-mtlfuonvu.js} +1 -1
  159. package/.next/standalone/packages/console/.next/static/chunks/0yi6kd19bc8bq.js +1 -0
  160. package/.next/standalone/packages/console/.next/static/chunks/{1gzb5gjzdx1fj.js → 13adqemu7o09r.js} +1 -1
  161. package/.next/standalone/packages/console/.next/static/chunks/14gq9h4bre4zl.js +1 -0
  162. package/.next/standalone/packages/console/.next/static/chunks/1bh-eec4wo6y4.css +3 -0
  163. package/.next/standalone/packages/console/.next/static/chunks/1cg31hv7ug_rw.js +1 -0
  164. package/.next/standalone/packages/console/.next/static/chunks/1d60j998mgxed.js +1 -0
  165. package/.next/standalone/packages/console/.next/static/chunks/{22vsj-fp7lwfm.js → 1ek70m0owmcgq.js} +1 -1
  166. package/.next/standalone/packages/console/.next/static/chunks/1jz4bf7w_acy8.js +1 -0
  167. package/.next/standalone/packages/console/.next/static/chunks/{0pxkg9fqe7c2a.js → 1kzen4nzgfhzx.js} +1 -1
  168. package/.next/standalone/packages/console/.next/static/chunks/1s_391feiypzt.js +1 -0
  169. package/.next/standalone/packages/console/.next/static/chunks/1z5kuqw6npyei.js +1 -0
  170. package/.next/standalone/packages/console/.next/static/chunks/26b3un_8lel5h.js +1 -0
  171. package/.next/standalone/packages/console/.next/static/chunks/{2olrngonwovg1.js → 2euphq2qdtm42.js} +1 -1
  172. package/.next/standalone/packages/console/.next/static/chunks/2ghnwtwxugay1.js +1 -0
  173. package/.next/standalone/packages/console/.next/static/chunks/2iwxdddbd25in.js +1 -0
  174. package/.next/standalone/packages/console/.next/static/chunks/2jf-hefdqyy1k.js +1 -0
  175. package/.next/standalone/packages/console/.next/static/chunks/2kx4hg-vr3v9r.js +1 -0
  176. package/.next/standalone/packages/console/.next/static/chunks/{2y1ychuj013ho.js → 2mlx4u2m3gj4n.js} +1 -1
  177. package/.next/standalone/packages/console/.next/static/chunks/{440cmkngdnwjl.js → 2otflfbehbza4.js} +1 -1
  178. package/.next/standalone/packages/console/.next/static/chunks/2umcallzycy-l.js +1 -0
  179. package/.next/standalone/packages/console/.next/static/chunks/2vjnc-m734xfm.js +1 -0
  180. package/.next/standalone/packages/console/.next/static/chunks/{3xerv7zkfjj5f.js → 2vnmap15_4ik5.js} +1 -1
  181. package/.next/standalone/packages/console/.next/static/chunks/2w9atwkwe6d4r.js +1 -0
  182. package/.next/standalone/packages/console/.next/static/chunks/2zu0p9hjzqg_-.js +1 -0
  183. package/.next/standalone/packages/console/.next/static/chunks/3-d52kayngqrj.js +1 -0
  184. package/.next/standalone/packages/console/.next/static/chunks/31e5y4a7udpwd.js +58 -0
  185. package/.next/standalone/packages/console/.next/static/chunks/38apellmoht8h.js +1 -0
  186. package/.next/standalone/packages/console/.next/static/chunks/3cajv70h_jwc3.js +1 -0
  187. package/.next/standalone/packages/console/.next/static/chunks/3dmesrmg4eee9.js +1 -0
  188. package/.next/standalone/packages/console/.next/static/chunks/3dok--efprx9e.js +1 -0
  189. package/.next/standalone/packages/console/.next/static/chunks/3faqga4wbve_5.js +1 -0
  190. package/.next/standalone/packages/console/.next/static/chunks/3fz2o2p_07f9u.js +1 -0
  191. package/.next/standalone/packages/console/.next/static/chunks/3nkqw06zkp9-v.js +1 -0
  192. package/.next/standalone/packages/console/.next/static/chunks/3sgvr4qucbnoq.js +1 -0
  193. package/.next/standalone/packages/console/.next/static/chunks/3xpa57z5k1j9u.js +1 -0
  194. package/.next/standalone/packages/console/.next/static/chunks/41sjts3oeho4o.js +1 -0
  195. package/.next/standalone/packages/console/.next/static/chunks/4415nlj5ho-d-.js +1 -0
  196. package/.next/standalone/packages/console/package.json +3 -3
  197. package/package.json +3 -3
  198. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0002gxt._.js +0 -3
  199. package/.next/standalone/packages/console/.next/server/chunks/ssr/_02c2pnv._.js +0 -3
  200. package/.next/standalone/packages/console/.next/server/chunks/ssr/_03-jvct._.js +0 -3
  201. package/.next/standalone/packages/console/.next/server/chunks/ssr/_035_swl._.js +0 -3
  202. package/.next/standalone/packages/console/.next/server/chunks/ssr/_05dxqcz._.js +0 -3
  203. package/.next/standalone/packages/console/.next/server/chunks/ssr/_07efnzg._.js +0 -3
  204. package/.next/standalone/packages/console/.next/server/chunks/ssr/_07l5_l3._.js +0 -3
  205. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c8r4ic._.js +0 -3
  206. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0c_dtjp._.js +0 -3
  207. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0gfonj-._.js +0 -3
  208. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0mjh8m_._.js +0 -3
  209. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0vz062m._.js +0 -3
  210. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0wv-tvp._.js +0 -3
  211. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0xokkhj._.js +0 -3
  212. package/.next/standalone/packages/console/.next/server/chunks/ssr/_0z4io62._.js +0 -3
  213. package/.next/standalone/packages/console/.next/server/chunks/ssr/_109o83b._.js +0 -3
  214. package/.next/standalone/packages/console/.next/server/chunks/ssr/_10j98zy._.js +0 -3
  215. package/.next/standalone/packages/console/.next/server/chunks/ssr/_17tqcfc._.js +0 -3
  216. package/.next/standalone/packages/console/.next/server/chunks/ssr/_18-oreb._.js +0 -3
  217. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1ufgm_3._.js +0 -3
  218. package/.next/standalone/packages/console/.next/server/chunks/ssr/_1yexojo._.js +0 -3
  219. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_0v_tqts._.js +0 -3
  220. package/.next/standalone/packages/console/.next/server/chunks/ssr/packages_console_1-pfly6._.js +0 -3
  221. package/.next/standalone/packages/console/.next/static/chunks/07obh07hyi82g.js +0 -1
  222. package/.next/standalone/packages/console/.next/static/chunks/09gltimtd_1jl.js +0 -1
  223. package/.next/standalone/packages/console/.next/static/chunks/0_r81qz0t6xsb.js +0 -1
  224. package/.next/standalone/packages/console/.next/static/chunks/0ejh40p__h8t0.js +0 -1
  225. package/.next/standalone/packages/console/.next/static/chunks/0n7_dj8kftk93.js +0 -1
  226. package/.next/standalone/packages/console/.next/static/chunks/0nxdhjyy-zyni.js +0 -1
  227. package/.next/standalone/packages/console/.next/static/chunks/0pzres1skm0vd.js +0 -1
  228. package/.next/standalone/packages/console/.next/static/chunks/0y-anncq_7ras.js +0 -1
  229. package/.next/standalone/packages/console/.next/static/chunks/1-im18syfc51b.js +0 -1
  230. package/.next/standalone/packages/console/.next/static/chunks/11eajkv31amlr.js +0 -1
  231. package/.next/standalone/packages/console/.next/static/chunks/1232gyv4_vuub.js +0 -1
  232. package/.next/standalone/packages/console/.next/static/chunks/18sc7_9xzyla2.js +0 -1
  233. package/.next/standalone/packages/console/.next/static/chunks/1awzsmwjij89c.js +0 -1
  234. package/.next/standalone/packages/console/.next/static/chunks/1cq5tafbz355h.js +0 -1
  235. package/.next/standalone/packages/console/.next/static/chunks/1m0eh_ikmo5ic.js +0 -1
  236. package/.next/standalone/packages/console/.next/static/chunks/23yi1fmk4otyc.js +0 -1
  237. package/.next/standalone/packages/console/.next/static/chunks/2c9rf46r9v6zt.js +0 -1
  238. package/.next/standalone/packages/console/.next/static/chunks/2iwt_mra-l0br.css +0 -3
  239. package/.next/standalone/packages/console/.next/static/chunks/2l7o37ff43udf.js +0 -1
  240. package/.next/standalone/packages/console/.next/static/chunks/2ncq4nhbwsdgs.js +0 -1
  241. package/.next/standalone/packages/console/.next/static/chunks/2nijjozl4ghek.js +0 -1
  242. package/.next/standalone/packages/console/.next/static/chunks/2xfw5mgj7ik9t.js +0 -1
  243. package/.next/standalone/packages/console/.next/static/chunks/2zx0k65lh804w.js +0 -1
  244. package/.next/standalone/packages/console/.next/static/chunks/339os1nkzjvc6.js +0 -1
  245. package/.next/standalone/packages/console/.next/static/chunks/39rzz1f2t8dal.js +0 -1
  246. package/.next/standalone/packages/console/.next/static/chunks/3b6yqiji78oyk.js +0 -1
  247. package/.next/standalone/packages/console/.next/static/chunks/3ee04cqroz80b.js +0 -1
  248. package/.next/standalone/packages/console/.next/static/chunks/3ltpx0tfiz0nk.js +0 -1
  249. package/.next/standalone/packages/console/.next/static/chunks/3n_6jrpcjyg8-.js +0 -1
  250. package/.next/standalone/packages/console/.next/static/chunks/3vuchf-sh4562.js +0 -1
  251. package/.next/standalone/packages/console/.next/static/chunks/43-fwug3m1u53.js +0 -1
  252. package/.next/standalone/packages/console/.next/static/yg_hh1BH0519FZsmnyKJX/_clientMiddlewareManifest.js +0 -6
  253. /package/.next/standalone/packages/console/.next/static/{yg_hh1BH0519FZsmnyKJX → bXH06v_D0kt92IaQZhnO3}/_buildManifest.js +0 -0
  254. /package/.next/standalone/packages/console/.next/static/{yg_hh1BH0519FZsmnyKJX → bXH06v_D0kt92IaQZhnO3}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22212,e=>{"use strict";var a=e.i(43476),s=e.i(53753),i=e.i(90063),o=e.i(94945);e.s(["Dialog",0,function(e){return(0,a.jsx)(s.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,a.jsx)(s.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:t,children:n,...l}){return(0,a.jsxs)(s.Dialog.Portal,{children:[(0,a.jsx)(s.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:o.dialogSurface.overlay}),(0,a.jsx)(s.Dialog.Popup,{"data-slot":"dialog-content",className:(0,i.classNames)(o.dialogSurface.popup({size:t}),e),...l,children:n})]})},"DialogDescription",0,function({className:e,...t}){return(0,a.jsx)(s.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.classNames)(o.dialogSurface.description,e),...t})},"DialogFooter",0,function({className:e,...s}){return(0,a.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.classNames)(o.dialogSurface.footer,e),...s})},"DialogHeader",0,function({className:e,...s}){return(0,a.jsx)("div",{"data-slot":"dialog-header",className:(0,i.classNames)(o.dialogSurface.header,e),...s})},"DialogTitle",0,function({className:e,...t}){return(0,a.jsx)(s.Dialog.Title,{"data-slot":"dialog-title",className:(0,i.classNames)(o.dialogSurface.title,e),...t})}])},42211,e=>{"use strict";var a=e.i(43476),s=e.i(10818),i=e.i(25398),o=e.i(15905),t=e.i(22212),n=e.i(94945),l=e.i(19321),r=e.i(82880),c=e.i(17981),d=e.i(3067);function u({memberName:e,template:i,launchNote:o,model:t,crewLines:n}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.LaunchNote,{note:o,model:t,template:i,testId:"crew-line-launch-note"}),(0,a.jsx)(r.CompactCrewLine,{crewLines:n,subject:e,testIdPrefix:"crew-line-text"}),(0,a.jsxs)("p",{className:"flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,a.jsx)(s.Info,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"font-medium",children:"Shown once."})," Paste the crew line into Claude Code or Codex started where the launch note says, or the Chat one, the ship’s crew instructions for a chat, into a chat app. A new crew line stops it working."]})]})]})}e.s(["CrewLineDialog",0,function({memberName:e,state:s,template:r,launchNote:d=null,model:h=null,crewLines:g,error:x,isOpen:m,onOpenChange:p,onConfirm:j}){let w="issuing"===s;return(0,a.jsx)(t.Dialog,{open:m,onOpenChange:e=>{w||p(e)},children:(0,a.jsxs)(t.DialogContent,{size:"md","data-testid":"crew-line-dialog",className:n.dialogSurface.phoneFullScreen,children:[(0,a.jsxs)(t.DialogHeader,{children:[(0,a.jsxs)(t.DialogTitle,{children:["Crew line for ",e]}),(0,a.jsx)(t.DialogDescription,{children:"Start Claude Code or Codex where the launch note says, or open a chat app, then paste its crew line or the ship’s crew instructions for a chat. The member is on station once its session checks in."})]}),w&&(0,a.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,a.jsx)("span",{className:"sr-only",children:"Issuing a crew line..."}),(0,a.jsx)(l.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,a.jsx)(l.Skeleton,{className:"h-28 w-full rounded-lg"})]}),"shown"===s&&void 0!==g&&(0,a.jsx)(u,{memberName:e,template:r,launchNote:d,model:h,crewLines:g}),"error"===s&&(0,a.jsx)(c.InlineError,{title:"Couldn’t issue a crew line",description:`${x??"The squadron manager did not answer."} No new secret was created; an earlier crew line still works.`}),(0,a.jsxs)(t.DialogFooter,{children:[("shown"===s||w)&&(0,a.jsx)(t.DialogClose,{render:(0,a.jsx)(o.Button,{variant:"primary","data-testid":"crew-line-done",disabled:w}),children:"Done"}),"error"===s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.DialogClose,{render:(0,a.jsx)(o.Button,{}),children:"Close"}),(0,a.jsx)(o.Button,{variant:"primary",icon:(0,a.jsx)(i.RotateCw,{"aria-hidden":!0}),"data-testid":"crew-line-retry",onClick:j,children:"Try again"})]})]})]})})}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95530,e=>{"use strict";var t=e.i(71645),r=e.i(28918),s=e.i(38452),n=e.i(73553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:i,highlightedIndex:a,onHighlightedIndexChange:o}=(0,s.useCompositeRootContext)(),{ref:u,index:l}=(0,n.useCompositeListItem)(e),c=a===l,d=t.useRef(null),h=(0,r.useMergedRefs)(u,d);return{compositeProps:{tabIndex:c?0:-1,onFocus(){o(l)},onMouseMove(){let e=d.current;if(!i||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;c||t||e.focus()}},compositeRef:h,index:l}}])},59657,1634,81524,41840,70359,e=>{"use strict";e.s([],59657);var t=e.i(71645),r=e.i(51437),s=e.i(46376),n=e.i(67865),i=e.i(52245),a=e.i(53687),o=e.i(33332);let u=t.createContext(void 0);e.s(["TabsRootContext",0,u,"useTabsRootContext",0,function(){let e=t.useContext(u);if(void 0===e)throw Error((0,o.default)(64));return e}],1634);let l={tabActivationDirection:e=>({"data-activation-direction":e})};e.s(["tabsStateAttributesMapping",0,l],81524);var c=e.i(75606),d=e.i(56434),h=e.i(43476);let f=t.forwardRef(function(e,o){let{className:f,defaultValue:v=0,onValueChange:b,orientation:g="horizontal",render:y,value:R,style:x,...S}=e,C=void 0!==e.defaultValue,E=t.useRef([]),[I,T]=t.useState(()=>new Map),[O,Q]=(0,r.useControlled)({controlled:R,default:v,name:"Tabs",state:"value"}),w=void 0!==R,[M,D]=t.useState(()=>new Map),N=t.useRef(void 0),k=t.useCallback(e=>p(M,e),[M]),[A,L]=t.useState(()=>({previousValue:O,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:j}=A,V=j,_=!1;P!==O&&(V=m(P,O,g,M),_=null!=P&&null!=O&&null==k(O));let F=_?P:O,U=P!==F||j!==V;(0,s.useIsoLayoutEffect)(()=>{U&&L({previousValue:F,tabActivationDirection:V})},[F,U,V]);let W=(0,n.useStableCallback)((e,t)=>{t.activationDirection=m(O,e,g,M),b?.(e,t),t.isCanceled||Q(e)}),H=(0,n.useStableCallback)((e,t)=>{b?.(e,(0,c.createChangeEventDetails)(t,void 0,void 0,{activationDirection:"none"}))}),B=(0,n.useStableCallback)((e,t)=>(T(r=>{let s=new Map(r);return s.set(e,t),s}),()=>{T(r=>{if(r.get(e)!==t)return r;let s=new Map(r);return s.delete(e),s})})),z=t.useCallback(e=>I.get(e),[I]),q=t.useCallback(e=>{for(let t of M.values())if(e===t.value)return t.id},[M]),Y=t.useMemo(()=>({getTabElementBySelectedValue:k,getTabIdByPanelValue:q,getTabPanelIdByValue:z,onValueChange:W,orientation:g,registerMountedTabPanel:B,setTabMap:D,tabActivationDirection:V,value:O}),[k,q,z,W,g,B,D,V,O]),$=t.useMemo(()=>{for(let e of M.values())if(e.value===O)return e},[M,O]),K=t.useMemo(()=>{for(let e of M.values())if(!e.disabled)return e.value},[M]),G=t.useRef(!C),J=t.useRef(v),Z=t.useRef(C),X=t.useRef(!1);(0,s.useIsoLayoutEffect)(()=>{if(w)return;function e(e,t){Q(e),L({previousValue:e,tabActivationDirection:"none"}),H(e,t),G.current=!1}if(0===M.size){X.current&&null!==O&&!N.current?.isConnected&&e(null,d.REASONS.missing);return}X.current=!0,N.current=M.keys().next().value;let t=$?.disabled,r=null==$&&null!==O;if(t||O!==J.current||(Z.current=!1),Z.current&&t&&O===J.current)return;let s=G.current;if(t||r){let r=K??null;if(O===r){G.current=!1;return}let n=d.REASONS.missing;s?n=d.REASONS.initial:t&&(n=d.REASONS.disabled),e(r,n);return}s&&null!=$&&(H(O,d.REASONS.initial),G.current=!1)},[K,w,H,$,Q,M,O]);let ee={orientation:g,tabActivationDirection:V},et=(0,i.useRenderElement)("div",e,{state:ee,ref:o,props:S,stateAttributesMapping:l});return(0,h.jsx)(u.Provider,{value:Y,children:(0,h.jsx)(a.CompositeList,{elementsRef:E,children:et})})});function p(e,t){for(let[r,s]of e.entries())if(t===s.value)return r;return null}function m(e,t,r,s){if(null==e||null==t)return"none";let[n,i,a]="horizontal"===r?["left","left","right"]:["top","up","down"],o=p(s,e),u=p(s,t);if(null==o||null==u)return o!==u&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?t>e?a:i:"none";let l=o.getBoundingClientRect()[n],c=u.getBoundingClientRect()[n];return c<l?i:c>l?a:"none"}e.s(["TabsRoot",0,f],41840),e.s(["ACTIVE_COMPOSITE_ITEM",0,"data-composite-item-active"],70359)},66027,81384,73664,27001,54440,69230,e=>{"use strict";let t;var r=e.i(12598),s=e.i(71645);let n=s.createContext(!1),i=()=>s.useContext(n);n.Provider,e.s(["useIsRestoring",0,i],81384),e.i(43476);let a=s.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),o=()=>s.useContext(a);e.s(["useQueryErrorResetBoundary",0,o],73664);var u=e.i(19273);let l=(e,t,r)=>{let s=r?.state.error&&"function"==typeof e.throwOnError?(0,u.shouldThrowError)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||s)&&!t.isReset()&&(e.retryOnMount=!1)},c=e=>{s.useEffect(()=>{e.clearReset()},[e])},d=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(n&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s]));e.s(["ensurePreventErrorBoundaryRetry",0,l,"getHasError",0,d,"useClearResetErrorBoundary",0,c],27001);let h=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},f=(e,t)=>e?.suspense&&t.isPending,p=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["ensureSuspenseTimers",0,h,"fetchOptimistic",0,p,"shouldSuspend",0,f],54440);var m=e.i(40143),v=e.i(80166),b=e.i(73911),g=e.i(15823),y=e.i(75555),R=e.i(86491),x=class extends g.Subscribable{#e;#t=void 0;#r=void 0;#s=void 0;#n;#i;#a;#o;#u;#l;#c;#d;#h;#f=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#t.addObserver(this),S(this.#t,this.options)?this.#p():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return C(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return C(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#b(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveQueryValue)(this.options.enabled,this.#t))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#t.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});let s=this.hasListeners();s&&E(this.#t,r,this.options,t)&&this.#p(),this.updateResult(),s&&(this.#t!==r||(0,u.resolveQueryValue)(this.options.enabled,this.#t)!==(0,u.resolveQueryValue)(t.enabled,this.#t)||(0,u.resolveQueryValue)(this.options.staleTime,this.#t)!==(0,u.resolveQueryValue)(t.staleTime,this.#t))&&this.#y();let n=this.#R();s&&(this.#t!==r||(0,u.resolveQueryValue)(this.options.enabled,this.#t)!==(0,u.resolveQueryValue)(t.enabled,this.#t)||n!==this.#h)&&this.#x(n)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return(0,u.shallowEqualObjects)(this.getCurrentResult(),r)||(this.#s=r,this.#i=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t,r=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,r),n=()=>{},i=new Promise(e=>{t=e,n=this.#e.getQueryCache().subscribe(t=>{"updated"===t.type&&t.query.queryHash===s.queryHash&&void 0!==s.state.data&&(n(),e(this.createResult(s,r)))})});return Promise.race([s.fetch().then(()=>{let e=this.createResult(s,r);return t?.(e),e}).finally(()=>{n()}),i])}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#p(e){this.#g();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#S(e){return!(0,b.isServer)()&&!1!==(0,u.resolveQueryValue)(this.options.enabled,this.#t)&&(0,u.isValidTimeout)(e)}#y(){this.#v();let e=(0,u.resolveQueryValue)(this.options.staleTime,this.#t);if(this.#s.isStale||!this.#S(e))return;let t=(0,u.timeUntilStale)(this.#s.dataUpdatedAt,e)+1;this.#c=v.timeoutManager.setTimeout(()=>{this.#s.isStale||this.updateResult()},t)}#R(){return(0,u.resolveQueryValue)(this.options.refetchInterval,this.#t)??!1}#x(e){this.#b(),this.#h=e,0!==this.#h&&this.#S(this.#h)&&(this.#d=v.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||y.focusManager.isFocused())&&this.#p()},this.#h))}#m(){this.#y(),this.#x(this.#R())}#v(){void 0!==this.#c&&(v.timeoutManager.clearTimeout(this.#c),this.#c=void 0)}#b(){void 0!==this.#d&&(v.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#t,n=this.options,i=this.#s,a=this.#n,o=this.#i,l=e!==s?e.state:this.#r,{state:c}=e,d={...c},h=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&S(e,t),a=r&&E(e,s,t,n);(i||a)&&(d={...d,...(0,R.fetchState)(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:m}=d;r=d.data;let v=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===m){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,v=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,void 0!==e&&(m="success",r=(0,u.replaceData)(i?.data,e,t),h=!0)}if(t.select&&void 0!==r&&!v)if(i&&r===a?.data&&t.select===this.#o)r=this.#u;else try{this.#o=t.select,r=t.select(r),r=(0,u.replaceData)(i?.data,r,t),this.#u=r,this.#a=null}catch(e){this.#a=e}else void 0===r&&(this.#a=null);this.#a&&(f=this.#a,r=this.#u,p=Date.now(),m="error",h=!1);let b="fetching"===d.fetchStatus,g="pending"===m,y="error"===m,x=g&&b,C=void 0!==r;return{status:m,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===m,isError:y,isInitialLoading:x,isLoading:x,data:r,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!g,isLoadingError:y&&!C,isPaused:"paused"===d.fetchStatus,isPlaceholderData:h,isRefetchError:y&&C,isStale:I(e,t),refetch:this.refetch,isEnabled:!1!==(0,u.resolveQueryValue)(t.enabled,e)}}updateResult(){let e=this.#s,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#i=this.options,void 0!==this.#n.data&&(this.#l=this.#t),(0,u.shallowEqualObjects)(t,e))return;this.#s=t;let r=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#s).some(t=>this.#s[t]!==e[t]&&s.has(t))})();m.notifyManager.batch(()=>{r&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}};function S(e,t){return!1!==(0,u.resolveQueryValue)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,u.resolveQueryValue)(t.retryOnMount,e))||void 0!==e.state.data&&C(e,t,t.refetchOnMount)}function C(e,t,r){if(!1!==(0,u.resolveQueryValue)(t.enabled,e)&&"static"!==(0,u.resolveQueryValue)(t.staleTime,e)){let s=(0,u.resolveQueryValue)(r,e);return"always"===s||!1!==s&&I(e,t)}return!1}function E(e,t,r,s){return(e!==t||!1===(0,u.resolveQueryValue)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&I(e,r)}function I(e,t){return!1!==(0,u.resolveQueryValue)(t.enabled,e)&&e.isStaleByTime((0,u.resolveQueryValue)(t.staleTime,e))}e.s(["QueryObserver",0,x],69230),e.s(["useQuery",0,function(e,t){return function(e,t,n){let a=i(),v=o(),b=(0,r.useQueryClient)(n),g=b.defaultQueryOptions(e),y=b.getQueryCache().get(g.queryHash),R=!1!==e.subscribed;g._optimisticResults=a?"isRestoring":R?"optimistic":void 0,h(g),l(g,v,y),c(v);let[x]=s.useState(()=>new t(b,g)),S=x.getOptimisticResult(g),C=!a&&R;if(s.useSyncExternalStore(s.useCallback(e=>{let t=C?x.subscribe(m.notifyManager.batchCalls(e)):u.noop;return x.updateResult(),t},[x,C]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),s.useEffect(()=>{x.setOptions(g)},[g,x]),f(g,S))throw p(g,x,v);if(d({result:S,errorResetBoundary:v,throwOnError:g.throwOnError,query:y,suspense:g.suspense}))throw S.error;return g.notifyOnChangeProps?S:x.trackResult(S)}(e,x,t)}],66027)},46513,e=>{"use strict";var t=e.i(56420);let r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};r.node;let s=(0,t.default)(r);e.s(["Monitor",0,s],46513)},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={callServer:function(){return i.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var n in s)Object.defineProperty(r,n,{enumerable:!0,get:s[n]});let i=e.r(32120),a=e.r(92245),o=e.r(35326)},75305,e=>{"use strict";var t=e.i(43476),r=e.i(53753),s=e.i(25913),n=e.i(60964),i=e.i(90063),a=e.i(15905);let o=(0,s.cva)("fixed z-50 flex flex-col bg-popover text-body text-popover-foreground shadow-lg outline-none duration-(--duration-slow) ease-(--ease-standard) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",{variants:{side:{right:"inset-y-0 right-0 h-full w-full border-l border-border sm:max-w-(--size-sheet) motion-safe:data-open:slide-in-from-right motion-safe:data-closed:slide-out-to-right",bottom:"inset-x-0 bottom-0 max-h-[90dvh] rounded-t-2xl border-t border-border px-4 pt-2 pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] motion-safe:data-open:slide-in-from-bottom motion-safe:data-closed:slide-out-to-bottom"}},defaultVariants:{side:"right"}});e.s(["Sheet",0,function(e){return(0,t.jsx)(r.Dialog.Root,{"data-slot":"sheet",...e})},"SheetBody",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sheet-body",className:(0,i.classNames)("min-h-0 flex-1 overflow-y-auto in-data-[side=right]:p-6",e),...r})},"SheetClose",0,function(e){return(0,t.jsx)(r.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:s,side:u="right",...l}){return(0,t.jsxs)(r.Dialog.Portal,{children:[(0,t.jsx)(r.Dialog.Backdrop,{"data-slot":"sheet-overlay",className:"fixed inset-0 z-50 bg-overlay duration-(--duration-slow) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0"}),(0,t.jsxs)(r.Dialog.Popup,{"data-slot":"sheet-content","data-side":u,className:(0,i.classNames)(o({side:u}),e),...l,children:["bottom"===u?(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto mb-3 h-1 w-9 shrink-0 rounded-full bg-border"}):(0,t.jsx)(r.Dialog.Close,{"data-slot":"sheet-close",render:(0,t.jsx)(a.Button,{variant:"ghost",size:"sm",isIconOnly:!0,className:"absolute top-4 right-4","aria-label":"Close"}),children:(0,t.jsx)(n.XIcon,{})}),s]})]})},"SheetDescription",0,function({className:e,...s}){return(0,t.jsx)(r.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.classNames)("text-meta text-muted-foreground",e),...s})},"SheetHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.classNames)("flex flex-col gap-0.5 in-data-[side=right]:border-b in-data-[side=right]:px-6 in-data-[side=right]:py-5 in-data-[side=right]:pr-14",e),...r})},"SheetTitle",0,function({className:e,...s}){return(0,t.jsx)(r.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.classNames)("text-heading font-semibold text-foreground in-data-[side=bottom]:py-2 in-data-[side=bottom]:text-section",e),...s})},"SheetTrigger",0,function(e){return(0,t.jsx)(r.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},60592,5934,e=>{"use strict";var t,r=e.i(43476);e.i(59657);var s=e.i(41840),n=e.i(71645),i=e.i(8868),a=e.i(46376),o=e.i(67865),u=e.i(88015),l=e.i(52245),c=e.i(40886),d=e.i(70359),h=e.i(95530),f=e.i(38452),p=e.i(1634),m=e.i(81524),v=e.i(33332);let b=n.createContext(void 0);function g(){let e=n.useContext(b);if(void 0===e)throw Error((0,v.default)(65));return e}var y=e.i(75606),R=e.i(56434),x=e.i(84446);let S=n.forwardRef(function(e,t){let{className:r,disabled:s=!1,render:v,value:b,id:S,nativeButton:C=!0,style:E,...I}=e,{value:T,getTabPanelIdByValue:O,onValueChange:Q,orientation:w,tabActivationDirection:M}=(0,p.useTabsRootContext)(),{activateOnFocus:D,registerTabResizeObserverElement:N,tabsListElement:k}=g(),{highlightedIndex:A,onHighlightedIndexChange:L}=(0,f.useCompositeRootContext)(),P=(0,u.useBaseUiId)(S),j=n.useMemo(()=>({disabled:s,id:P,value:b}),[s,P,b]),{compositeProps:V,compositeRef:_,index:F}=(0,h.useCompositeItem)({metadata:j}),U=b===T,W=n.useRef(!1),H=n.useRef(null),B=(0,o.useStableCallback)(e=>{H.current?.(),H.current=e?N(e):null});(0,a.useIsoLayoutEffect)(()=>{if(W.current){W.current=!1;return}if(U&&F>-1&&A!==F){if(null!=k){let e=(0,x.activeElement)((0,i.ownerDocument)(k));if(e&&(0,x.contains)(k,e))return}s||L(F)}},[U,F,A,L,s,k]);let{getButtonProps:z,buttonRef:q}=(0,c.useButton)({disabled:s,native:C,focusableWhenDisabled:!0}),Y=O(b),$=n.useRef(!1),K=n.useRef(!1);function G(e){Q(b,(0,y.createChangeEventDetails)(R.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))}return(0,l.useRenderElement)("button",e,{state:{disabled:s,active:U,orientation:w,tabActivationDirection:M},ref:[t,q,_,B],props:[V,{role:"tab","aria-controls":Y,"aria-selected":U,id:P,onClick:function(e){U||s||G(e)},onFocus:function(e){U||s||D&&(!$.current||K.current)&&G(e)},onPointerDown:function(e){if(U||s)return;$.current=!0,K.current=0===e.button;let t=(0,i.ownerDocument)(e.currentTarget);function r(){$.current=!1,K.current=!1,t.removeEventListener("pointerup",r),t.removeEventListener("pointercancel",r)}t.addEventListener("pointerup",r),t.addEventListener("pointercancel",r)},[d.ACTIVE_COMPOSITE_ITEM]:U?"":void 0,onKeyDownCapture(){W.current=!0}},I,z],stateAttributesMapping:m.tabsStateAttributesMapping})});var C=e.i(29315),E=e.i(33848),I=e.i(2239),T=e.i(56789);function O(){return T.NOOP}function Q(){return!1}function w(){return!0}var M=e.i(72410);function D(e){let{script:t}=e,{nonce:s}=(0,M.useCSPContext)();return(0,I.useSyncExternalStore)(O,Q,w)?(0,r.jsx)("script",{nonce:s,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var N=e.i(73364);let k={...m.tabsStateAttributesMapping,activeTabPosition:()=>null,activeTabSize:()=>null},A=n.forwardRef(function(e,s){let{className:i,render:a,renderBeforeHydration:o=!1,style:u,...c}=e,{getTabElementBySelectedValue:d,orientation:h,tabActivationDirection:f,value:m}=(0,p.useTabsRootContext)(),{tabsListElement:v,registerIndicatorUpdateListener:b}=g(),y=function(){let[,e]=n.useState({});return n.useCallback(()=>{e({})},[])}();n.useEffect(()=>b(y),[b,y]);let R=0,x=0,S=0,I=0,T=0,O=0,Q=!1;if(null!=m&&null!=v){let e=d(m);if(null!=e){Q=!0;let{width:t,height:r}=(0,N.getCssDimensions)(e),{width:s,height:n}=(0,N.getCssDimensions)(v),i=e.getBoundingClientRect(),a=v.getBoundingClientRect(),o=s>0?a.width/s:1,u=n>0?a.height/n:1,l=function(e,t){let r=L(e),s=L(t),n=r.left-s.left-t.clientLeft,i=r.top-s.top-t.clientTop,a=(0,C.getParentNode)(e);for(;(0,C.isHTMLElement)(a)&&a!==t&&!(0,C.isLastTraversableNode)(a);)n-=a.scrollLeft,i-=a.scrollTop,a=(0,C.getParentNode)(a);return{left:n,top:i}}(e,v);R=l.left,S=l.top;let c=(i.left-a.left)/o+v.scrollLeft-v.clientLeft,d=(i.top-a.top)/u+v.scrollTop-v.clientTop,h=function(e){let t=(0,E.ownerWindow)(e).getComputedStyle(e),{x:r,y:s}=function(e,t){let r=(t??(0,E.ownerWindow)(e).getComputedStyle(e)).transform,s=0,n=0,i=1;if(r&&"none"!==r){let e=r.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(", ").map(parseFloat);6===t.length?(s=t[4],n=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(s=t[12],n=t[13],i=t[0])}}return{x:s,y:n,scale:i}}(e,t),n=r,i=s,{translate:a}=t;if(a&&"none"!==a){let t=a.split(" ");n+=P(t[0],e.offsetWidth),i+=P(t[1],e.offsetHeight)}return{x:n,y:i}}(e);2>=Math.abs(c-h.x-R)&&2>=Math.abs(d-h.y-S)&&(R=c,S=d),T=t,O=r,x=v.scrollWidth-R-T,I=v.scrollHeight-S-O}}let w=Q?{left:R,right:x,top:S,bottom:I}:null,M=Q?{width:T,height:O}:null,A=Q?{"--active-tab-left":`${R}px`,"--active-tab-right":`${x}px`,"--active-tab-top":`${S}px`,"--active-tab-bottom":`${I}px`,"--active-tab-width":`${T}px`,"--active-tab-height":`${O}px`}:void 0,j=Q&&T>0&&O>0,V=(0,l.useRenderElement)("span",e,{state:{orientation:h,activeTabPosition:w,activeTabSize:M,tabActivationDirection:f},ref:s,props:[{role:"presentation",style:A,hidden:!j},c,{suppressHydrationWarning:!0}],stateAttributesMapping:k});return null==m?null:(0,r.jsxs)(n.Fragment,{children:[V,o&&(t||(t=(0,r.jsx)(D,{script:""})))]})});function L(e){let t=0,r=0,s=e;for(;null!=s;){t+=s.offsetLeft,r+=s.offsetTop;let e=s.offsetParent;null!=e&&(t+=e.clientLeft,r+=e.clientTop),s=e}return{left:t,top:r}}function P(e,t){if(!e)return 0;let r=parseFloat(e);return Number.isFinite(r)?e.endsWith("%")?r/100*t:r:0}var j=e.i(44394),V=e.i(74354),_=e.i(37584),F=e.i(23910),U=e.i(73553),W=e.i(80862),W=W;W.startingStyle,W.endingStyle;let H={...m.tabsStateAttributesMapping,...V.transitionStatusMapping},B=n.forwardRef(function(e,t){let{className:r,value:s,render:i,keepMounted:o=!1,style:c,...d}=e,{value:h,getTabIdByPanelValue:f,orientation:m,tabActivationDirection:v,registerMountedTabPanel:b}=(0,p.useTabsRootContext)(),g=(0,u.useBaseUiId)(),{ref:y,index:R}=(0,U.useCompositeListItem)(),x=s===h,{mounted:S,transitionStatus:C,setMounted:E}=(0,F.useTransitionStatus)(x),I=!S,T=f(s),O=n.useRef(null),Q=(0,l.useRenderElement)("div",e,{state:{hidden:I,orientation:m,tabActivationDirection:v,transitionStatus:C},ref:[t,y,O],props:[{"aria-labelledby":T,hidden:I,id:g,role:"tabpanel",tabIndex:x?0:-1,inert:(0,j.inertValue)(!x),"data-index":R},d],stateAttributesMapping:H});return((0,_.useOpenChangeComplete)({open:x,ref:O,onComplete(){x||E(!1)}}),(0,a.useIsoLayoutEffect)(()=>{if(null!=g&&(!I||o))return b(s,g)},[I,o,s,g,b]),o||S)?Q:null});var z=e.i(53687),q=e.i(90803),Y=e.i(28918),$=e.i(73327),K=e.i(21082),G=e.i(72855);function J(e){let{render:t,className:s,style:i,refs:u=T.EMPTY_ARRAY,props:c=T.EMPTY_ARRAY,state:h=T.EMPTY_OBJECT,stateAttributesMapping:p,highlightedIndex:m,onHighlightedIndexChange:v,orientation:b,grid:g,loopFocus:y,onLoop:R,enableHomeAndEndKeys:S,onMapChange:C,stopEventPropagation:E=!0,rootRef:I,disabledIndices:O,modifierKeys:Q,highlightItemOnHover:w=!1,tag:M="div",...D}=e,{props:N,highlightedIndex:k,onHighlightedIndexChange:A,elementsRef:L,onMapChange:P,relayKeyboardEvent:j}=function(e){let{loopFocus:t=!0,orientation:r="both",grid:s,onLoop:i,direction:u,highlightedIndex:l,onHighlightedIndexChange:c,rootRef:h,enableHomeAndEndKeys:f=!1,stopEventPropagation:p,disabledIndices:m,modifierKeys:v=T.EMPTY_ARRAY}=e,[b,g]=n.useState(0),y=null!=s,R=n.useRef(null),S=(0,Y.useMergedRefs)(R,h),C=n.useRef([]),E=n.useRef(!1),I=n.useRef(null),O=l??b,Q=(0,o.useStableCallback)((e,t=!1)=>{if(I.current=C.current[e]??null,(c??g)(e),t){let t=C.current[e];(0,$.scrollIntoViewIfNeeded)(R.current,t,u,r)}}),w=(0,o.useStableCallback)(e=>{if(0===e.size)return;if(E.current){let e=C.current,t=e.indexOf(I.current);if(-1===t){let t=e[O];!t||(0,K.isListIndexDisabled)(e,O,m)?Q(function(e,t){let r=-1;for(let s=0;s<e.length;s+=1){let n=e[s];if(!(!n||(0,K.isListIndexDisabled)(e,s,t))){if(n.hasAttribute(d.ACTIVE_COMPOSITE_ITEM))return s;-1===r&&(r=s)}}return Math.max(r,0)}(e,m)):I.current=t}else t!==O&&Q(t);return}E.current=!0;let t=Array.from(e.keys()),s=t.find(e=>e?.hasAttribute(d.ACTIVE_COMPOSITE_ITEM))??null,n=s?e.get(s)?.index??-1:-1;if(-1!==n)Q(n);else if((0,K.isListIndexDisabled)(t,O,m)){let e=(0,K.findNonDisabledListIndex)(t,{disabledIndices:m});(0,K.isIndexOutOfListBounds)(t,e)||Q(e)}(0,$.scrollIntoViewIfNeeded)(R.current,s,u,r)});(0,a.useIsoLayoutEffect)(()=>{if(null==m||null!=l||!E.current)return;let e=C.current;if((0,K.isListIndexDisabled)(e,O,m)){let t=(0,K.findNonDisabledListIndex)(e,{disabledIndices:m});(0,K.isIndexOutOfListBounds)(e,t)||Q(t)}},[m,l,O,C,Q]);let M=(0,o.useStableCallback)((e,t,r)=>i?i(e,t,r,C):r),D=(0,o.useStableCallback)(e=>{let n=e.key===$.HOME||e.key===$.END;if(!$.COMPOSITE_KEYS.has(e.key)||!f&&n||function(e,t){for(let r of $.MODIFIER_KEYS)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}(e,v)||!R.current)return;let a="rtl"===u,o=a?$.ARROW_LEFT:$.ARROW_RIGHT,l=a?$.ARROW_RIGHT:$.ARROW_LEFT,c="vertical"===r?$.ARROW_DOWN:o,d="vertical"===r?$.ARROW_UP:l,h=(0,x.getTarget)(e.nativeEvent);if(null!=h&&(0,$.isNativeInput)(h)&&!(0,q.isElementDisabled)(h)){let t=h.selectionStart,r=h.selectionEnd,s=h.value;if(null==t||e.shiftKey||t!==r||e.key!==d&&t<s.length||e.key!==c&&t>0)return}let b=O,g=(0,K.getMinListIndex)(C,m),S=(0,K.getMaxListIndex)(C,m);null!=s&&(b=s({disabledIndices:m,elementsRef:C,event:e,highlightedIndex:O,loopFocus:t,maxIndex:S,minIndex:g,onLoop:M,orientation:r,rtl:a}));let E="vertical"!==r&&e.key===o||"horizontal"!==r&&e.key===$.ARROW_DOWN,I="vertical"!==r&&e.key===l||"horizontal"!==r&&e.key===$.ARROW_UP;f&&(e.key===$.HOME?b=g:e.key===$.END&&(b=S)),b===O&&(E||I)&&(t&&b===S&&E?(b=g,i&&(b=i(e,O,b,C))):t&&b===g&&I?(b=S,i&&(b=i(e,O,b,C))):b=(0,K.findNonDisabledListIndex)(C.current,{startingIndex:b,decrement:I,disabledIndices:m})),b===O||(0,K.isIndexOutOfListBounds)(C.current,b)||(p&&e.stopPropagation(),(y||n||E||I)&&e.preventDefault(),Q(b,!0),queueMicrotask(()=>{C.current[b]?.focus()}))});return{props:{ref:S,onFocus(e){let t=R.current,r=(0,x.getTarget)(e.nativeEvent);t&&null!=r&&(0,$.isNativeInput)(r)&&r.setSelectionRange(0,r.value.length)},onKeyDown:D},highlightedIndex:O,onHighlightedIndexChange:Q,elementsRef:C,onMapChange:w,relayKeyboardEvent:D}}({grid:g,loopFocus:y,onLoop:R,orientation:b,highlightedIndex:m,onHighlightedIndexChange:v,rootRef:I,stopEventPropagation:E,enableHomeAndEndKeys:S,direction:(0,G.useDirection)(),disabledIndices:O,modifierKeys:Q}),V=(0,l.useRenderElement)(M,e,{state:h,ref:u,props:[N,...c,D],stateAttributesMapping:p}),_=n.useMemo(()=>({highlightedIndex:k,onHighlightedIndexChange:A,highlightItemOnHover:w,relayKeyboardEvent:j}),[k,A,w,j]);return(0,r.jsx)(f.CompositeRootContext.Provider,{value:_,children:(0,r.jsx)(z.CompositeList,{elementsRef:L,onMapChange:e=>{C?.(e),P(e)},children:V})})}e.s(["CompositeRoot",0,J],5934);let Z=n.forwardRef(function(e,t){let{activateOnFocus:s=!1,className:i,loopFocus:u=!0,render:l,style:c,...d}=e,{orientation:h,setTabMap:f,tabActivationDirection:v}=(0,p.useTabsRootContext)(),[g,y]=n.useState(0),[R,x]=n.useState(null),S=n.useRef(new Set),C=n.useRef(new Set),E=n.useRef(null);(0,a.useIsoLayoutEffect)(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{S.current.forEach(e=>{e()})});return E.current=e,R&&e.observe(R),C.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),E.current=null}},[R]);let I=(0,o.useStableCallback)(e=>(S.current.add(e),()=>{S.current.delete(e)})),O=(0,o.useStableCallback)(e=>(C.current.add(e),E.current?.observe(e),()=>{C.current.delete(e),E.current?.unobserve(e)})),Q=n.useMemo(()=>({activateOnFocus:s,registerIndicatorUpdateListener:I,registerTabResizeObserverElement:O,tabsListElement:R}),[s,I,O,R]);return(0,r.jsx)(b.Provider,{value:Q,children:(0,r.jsx)(J,{render:l,className:i,style:c,state:{orientation:h,tabActivationDirection:v},refs:[t,x],props:[{"aria-orientation":"vertical"===h?"vertical":void 0,role:"tablist"},d],stateAttributesMapping:m.tabsStateAttributesMapping,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:u,orientation:h,onHighlightedIndexChange:y,onMapChange:f,disabledIndices:T.EMPTY_ARRAY})})});e.s(["Indicator",0,A,"List",0,Z,"Panel",0,B,"Root",()=>s.TabsRoot,"Tab",0,S],69281);var X=e.i(69281),X=X,ee=e.i(25913),et=e.i(90063);let er=(0,ee.cva)("",{variants:{variant:{segmented:"inline-flex items-center gap-0.5 rounded-md border border-border bg-muted p-0.75",line:"flex items-center gap-6 border-b border-border"}},defaultVariants:{variant:"segmented"}}),es=(0,ee.cva)("group/tab inline-flex items-center justify-center gap-2 font-medium whitespace-nowrap text-muted-foreground transition-colors duration-(--duration-fast) outline-none hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-active:text-foreground data-disabled:pointer-events-none data-disabled:opacity-45",{variants:{variant:{segmented:"h-7 gap-1.5 rounded-sm px-2.5 text-meta data-active:bg-card data-active:shadow-sm",line:"mb-[-1px] h-10 border-b-2 border-transparent px-0.5 text-body data-active:border-foreground"}},defaultVariants:{variant:"segmented"}});e.s(["Tabs",0,function({className:e,...t}){return(0,r.jsx)(X.Root,{"data-slot":"tabs",className:(0,et.classNames)("flex flex-col gap-4",e),...t})},"TabsContent",0,function({className:e,...t}){return(0,r.jsx)(X.Panel,{"data-slot":"tabs-content",className:(0,et.classNames)("outline-none",e),...t})},"TabsCount",0,function({className:e,...t}){return(0,r.jsx)("span",{"data-slot":"tabs-count",className:(0,et.classNames)("text-muted-foreground tabular-nums group-data-active/tab:text-foreground in-data-[variant=line]:inline-flex in-data-[variant=line]:size-5 in-data-[variant=line]:items-center in-data-[variant=line]:justify-center in-data-[variant=line]:rounded-full in-data-[variant=line]:bg-secondary in-data-[variant=line]:text-micro",e),...t})},"TabsList",0,function({className:e,variant:t="segmented",...s}){return(0,r.jsx)(X.List,{"data-slot":"tabs-list","data-variant":t,className:(0,et.classNames)(er({variant:t}),"max-sm:flex max-sm:w-full max-sm:gap-0.5 max-sm:rounded-lg max-sm:border max-sm:border-border max-sm:bg-muted max-sm:p-1",e),...s})},"TabsTrigger",0,function({className:e,variant:t="segmented",...s}){return(0,r.jsx)(X.Tab,{"data-slot":"tabs-trigger",className:(0,et.classNames)(es({variant:t}),"max-sm:h-(--size-control-touch) max-sm:flex-1 max-sm:rounded-md max-sm:border-0 max-sm:px-3 max-sm:text-body-touch max-sm:data-active:bg-card max-sm:data-active:shadow-sm",e),...s})}],60592)},76580,2660,94070,e=>{"use strict";var t=e.i(66027),r=e.i(78485);function s(e){if("refused"===e.kind)throw Error(e.message);return e.data}e.s(["useConsoleRead",0,function(e){let s=(0,t.useQuery)(e);return(0,r.useSignInWhenSessionEnds)([s.error]),s}],76580),e.s(["dataOf",0,s],2660);let n="The console did not answer: try again in a moment";class i extends Error{data;constructor(e,t){super(e),this.data=t?{code:"UNAUTHORIZED",refusal:"SIGNED_IN_ELSEWHERE"}:{code:"UNAUTHORIZED"}}}async function a(e,t=fetch){var r;let o,u,l=void 0===e.input?"":`?input=${encodeURIComponent(JSON.stringify(e.input))}`;try{let r=await t(`/api/reads/${e.read}${l}`,{cache:"no-store"});u=r.status,o=await r.json()}catch{throw Error(n)}if(!("object"==typeof(r=o)&&null!==r&&"kind"in r&&("answered"===r.kind||"refused"===r.kind)))throw Error(n);if(401===u&&"refused"===o.kind)throw new i(o.message,"refusal"in o&&"SIGNED_IN_ELSEWHERE"===o.refusal);return s(o)}e.s(["fetchConsoleRead",0,a],94070)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},31034,e=>{"use strict";var t=e.i(43476),s=e.i(18566),a=e.i(71645),n=e.i(41880),i=e.i(67927),l=e.i(85595),r=e.i(25398),d=e.i(90063),o=e.i(28459),c=e.i(69693),m=e.i(49635),u=e.i(46150),x=e.i(15905),h=e.i(14732),f=e.i(67874),p=e.i(17981),g=e.i(88393),b=e.i(39448),v=e.i(78865);function j({party:e}){let s=e.name===u.OPERATOR_NAME;return(0,t.jsx)(b.ShipName,{name:e.name,shipId:e.id,size:"meta",isOperator:s,isSuffixShown:!s})}function y({delivery:e}){let{sender:s,recipient:a}=e.message;return(0,t.jsxs)("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(j,{party:s}),(0,t.jsx)("span",{"aria-hidden":!0,children:"→"}),(0,t.jsx)("span",{className:"sr-only",children:"to"}),"ship"===a.kind?(0,t.jsx)(j,{party:a.ship}):(0,t.jsxs)("span",{children:["any ship of type ",a.type]})]})}function N({delivery:e}){let{payload:s,contentType:a}=e.message;return(0,t.jsx)("span",{className:(0,d.classNames)("block min-w-0 truncate text-foreground",(0,c.isJson)(a)?"font-mono text-id":"text-body max-sm:text-body-touch"),title:s,children:s.split("\n")[0]})}function w(e){return(0,o.attentionReason)(e)}function k(e){var t;return`the message from ${e.message.sender.name} to ${"ship"===(t=e.message.recipient).kind?t.ship.name:`any ship of type ${t.type}`}`}function S({delivery:e,onResend:s,onDismiss:a,pendingIds:n,layout:i}){let l=n.has(e.deliveryId),d="phone"===i;if(void 0===s&&void 0===a)return null;let c=void 0!==s&&(0,o.canResend)(e)?(0,t.jsx)(x.Button,{size:d?"touch":"sm",variant:d?"primary":"secondary",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),isLoading:l,"data-testid":"attention-resend","aria-label":`Resend ${k(e)}`,onClick:()=>{s(e.deliveryId)},className:d?"flex-1":void 0,children:"Resend"}):null,m=void 0===a?null:(0,t.jsx)(x.Button,{size:d?"touch":"sm",variant:d?"secondary":"ghost",disabled:l,"data-testid":"attention-dismiss","aria-label":`Dismiss ${k(e)}`,onClick:()=>{a(e.deliveryId)},className:d?"flex-1":void 0,children:"Dismiss"});return d?(0,t.jsxs)("div",{className:"flex gap-2 pt-1",children:[m,c]}):(0,t.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[c,m]})}function T({deliveries:e,onOpen:s,now:a,...n}){return(0,t.jsxs)("div",{className:"flex flex-col gap-2 max-sm:hidden",children:[(0,t.jsxs)(h.Table,{"aria-label":"Undeliverable deliveries",children:[(0,t.jsx)(h.TableHeader,{children:(0,t.jsxs)(h.TableRow,{children:[(0,t.jsx)(h.TableHead,{children:"State"}),(0,t.jsx)(h.TableHead,{children:"Message"}),(0,t.jsx)(h.TableHead,{children:"Reason"}),(0,t.jsx)(h.TableHead,{children:"Since"}),(0,t.jsx)(h.TableHead,{children:"Actions"})]})}),(0,t.jsx)(h.TableBody,{children:e.map(e=>{let i=new Date(e.since);return(0,t.jsxs)(h.TableRow,{"data-testid":"attention-row","data-delivery-id":e.deliveryId,children:[(0,t.jsx)(h.TableCell,{className:"align-top",children:(0,t.jsx)(v.StatusBadge,{status:e.state})}),(0,t.jsx)(h.TableCell,{className:"max-w-96 align-top",children:(0,t.jsxs)("button",{type:"button","aria-label":`Open ${k(e)}`,onClick:()=>{s(e)},className:"flex w-full min-w-0 flex-col gap-0.5 rounded-xs text-left focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",children:[(0,t.jsx)(N,{delivery:e}),(0,t.jsx)(y,{delivery:e})]})}),(0,t.jsx)(h.TableCell,{className:"max-w-48 align-top text-meta whitespace-normal text-muted-foreground",children:w(e)}),(0,t.jsx)(h.TableCell,{className:"align-top",children:(0,t.jsxs)("span",{className:"flex flex-col gap-0.5 tabular-nums",children:[(0,t.jsx)("time",{dateTime:e.since,title:(0,m.fullDateTime)(i),className:"text-body text-foreground",children:(0,m.shortDateTime)(i)}),(0,t.jsxs)("span",{className:"text-meta text-muted-foreground",children:[(0,m.duration)(i,a)," ago"]})]})}),(0,t.jsx)(h.TableCell,{className:"align-top",children:(0,t.jsx)(S,{delivery:e,layout:"table",...n})})]},e.deliveryId)})})]}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Resend creates a new message with the same payload, linked to the original. Dismiss marks the delivery resolved. Abandoned deliveries are not listed here."})]})}function C({deliveries:e,onOpen:s,now:a,...n}){return(0,t.jsx)("ul",{"aria-label":"Undeliverable deliveries",className:"flex flex-col gap-3 sm:hidden",children:e.map(e=>{let l=new Date(e.since),r=a.getTime()-l.getTime()<864e5?(0,m.clockTime)(l):(0,m.shortDateTime)(l);return(0,t.jsxs)("li",{"data-testid":"attention-row","data-delivery-id":e.deliveryId,className:"flex flex-col gap-1.5 rounded-lg border border-border bg-card px-3.5 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)(v.StatusBadge,{status:e.state}),(0,t.jsxs)("button",{type:"button","aria-label":`Open ${k(e)}`,onClick:()=>{s(e)},className:"inline-flex items-center gap-1 rounded-xs text-meta text-muted-foreground tabular-nums focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon-sm)",children:[(0,m.duration)(l,a),(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0})]})]}),(0,t.jsx)(N,{delivery:e}),(0,t.jsx)(y,{delivery:e}),(0,t.jsxs)("p",{className:"text-meta text-muted-foreground",children:[w(e)," Since"," ",(0,t.jsx)("time",{dateTime:e.since,title:(0,m.fullDateTime)(l),className:"tabular-nums",children:r}),"."]}),(0,t.jsx)(S,{delivery:e,layout:"phone",...n})]},e.deliveryId)})})}function z({deliveries:e,state:s,onRetry:a,...n}){return"loading"===s?(0,t.jsxs)("div",{"data-slot":"needs-attention-list","data-state":"loading",children:[(0,t.jsx)(g.LoadingSkeleton,{variant:"table",rows:2,label:"Loading Needs attention",className:"max-sm:hidden"}),(0,t.jsx)(g.LoadingSkeleton,{variant:"list",rows:2,label:"Loading Needs attention",className:"sm:hidden"})]}):"error"===s?(0,t.jsx)("div",{"data-slot":"needs-attention-list","data-state":"error","data-testid":"attention-error",children:(0,t.jsx)(p.InlineError,{variant:"page",title:"Couldn’t load Needs attention",description:"This page couldn’t reach the fleet server. Undeliverable deliveries are kept on the server, so nothing is lost.",onRetry:a})}):0===e.length?(0,t.jsx)("div",{"data-slot":"needs-attention-list","data-state":"empty","data-testid":"attention-empty",children:(0,t.jsx)(f.EmptyState,{icon:(0,t.jsx)(l.CircleCheck,{className:"text-tone-ok-fg"}),title:"Nothing needs your attention",description:"Undeliverable deliveries show up here as soon as they happen."})}):(0,t.jsxs)("div",{"data-slot":"needs-attention-list","data-state":"ready",className:"flex flex-col gap-3",children:[(0,t.jsx)(T,{deliveries:e,...n}),(0,t.jsx)(C,{deliveries:e,...n})]})}var I=e.i(66390);function R({deliveries:e,onOpen:s,now:a}){return(0,t.jsx)("ul",{"data-testid":"no-ship-can-take","aria-label":"Deliveries no ship can take",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(e=>{let{sender:n,payload:l,contentType:r}=e.message,o=new Date(e.message.sentAt),x=n.name===u.OPERATOR_NAME;return(0,t.jsxs)("li",{"data-testid":"no-ship-can-take-row","data-delivery-id":e.deliveryId,className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsx)(I.Badge,{variant:"type",children:e.type}),(0,t.jsxs)("span",{className:"flex min-w-0 grow basis-48 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:(0,d.classNames)("block min-w-0 truncate text-foreground",(0,c.isJson)(r)?"font-mono text-id":"text-body max-sm:text-body-touch"),title:l,children:l.split("\n")[0]}),(0,t.jsxs)("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-meta text-muted-foreground",children:["from ",(0,t.jsx)(b.ShipName,{name:n.name,shipId:n.id,size:"meta",isOperator:x,isSuffixShown:!x})]})]}),(0,t.jsxs)("span",{className:"text-meta text-muted-foreground tabular-nums",children:["waiting"," ",(0,t.jsx)("time",{dateTime:e.message.sentAt,title:(0,m.fullDateTime)(o),children:(0,m.duration)(o,a)})]}),(0,t.jsxs)("button",{type:"button","data-testid":"no-ship-can-take-open","aria-label":`Open the message from ${n.name} to any ship of type ${e.type}`,onClick:()=>{s(e)},className:"inline-flex items-center gap-1 rounded-xs text-meta font-medium hover:underline focus-visible:outline-2 focus-visible:outline-ring",children:["Open",(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},e.deliveryId)})})}var O=e.i(49655);function L({deliveries:e,onOpen:s,now:a}){return(0,t.jsx)("ul",{"data-testid":"overdue-deliveries","aria-label":"Overdue deliveries",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(e=>{let{payload:n,contentType:l}=e.message,r=new Date(e.toldAt);return(0,t.jsxs)("li",{"data-testid":"overdue-row","data-delivery-id":e.deliveryId,className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsx)(v.StatusBadge,{status:"overdue"}),(0,t.jsxs)("span",{className:"flex min-w-0 grow basis-48 flex-col gap-0.5",children:[(0,t.jsxs)("span",{className:"flex flex-wrap items-baseline gap-x-1.5 text-body text-foreground max-sm:text-body-touch",children:[(0,t.jsx)(b.ShipName,{name:e.ship.name,shipId:e.ship.id,size:"meta"}),(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:(0,o.overdueReason)(e)})]}),(0,t.jsx)("span",{className:(0,d.classNames)("block min-w-0 truncate text-muted-foreground",(0,c.isJson)(l)?"font-mono text-id":"text-meta"),title:n,children:n.split("\n")[0]})]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta text-tone-attention-fg tabular-nums",children:[(0,t.jsx)(O.AlarmClock,{"aria-hidden":!0,className:"size-3.5 shrink-0"}),(0,t.jsxs)("span",{children:["argo told at ",String(e.minutes)," min ·"," ",(0,t.jsx)("time",{dateTime:e.toldAt,title:(0,m.fullDateTime)(r),children:(0,m.relativeTime)(r,a).toLowerCase()})]})]}),(0,t.jsxs)("button",{type:"button","data-testid":"overdue-open","aria-label":`Open the message overdue on ${e.ship.name}`,onClick:()=>{s(e)},className:"inline-flex items-center gap-1 rounded-xs text-meta font-medium hover:underline focus-visible:outline-2 focus-visible:outline-ring",children:["Open",(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},e.deliveryId)})})}var q=e.i(15327),D=e.i(22016),A=e.i(84294),K=e.i(19249),B=e.i(81830),E=e.i(1935);function H({members:e,ships:s,now:a,renderAction:n}){return(0,t.jsx)("ul",{"data-testid":"silent-members",className:"divide-y divide-border overflow-hidden rounded-lg border border-border",children:e.map(({squadronId:e,member:l})=>{let{lastSeenAt:r}=l.crew;return(0,t.jsxs)("li",{"data-testid":"silent-member",className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 px-3 py-2.5",children:[(0,t.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(K.HealthIndicator,{health:"silent"}),(0,t.jsx)("span",{className:"font-medium",children:l.name})]}),(0,t.jsx)(E.SquadronTag,{squadronId:e,role:l.role,size:"sm"})]}),(0,t.jsxs)("span",{className:"flex flex-col text-meta",children:[(0,t.jsx)("span",{children:null===r?"never seen":`not seen for ${(0,m.duration)(new Date(r),a)}`}),(0,t.jsxs)("span",{className:"text-muted-foreground",children:["checks in ",(0,A.checkInText)(l.checkInMinutes)]})]}),(0,t.jsx)("span",{className:"grow",children:(0,t.jsx)(B.ReportLine,{report:s.get(l.shipId)?.report??null,now:a,variant:"row",testId:"silent-member-report"})}),n?.({squadronId:e,member:l}),(0,t.jsxs)(D.default,{href:`/squadrons/${e}`,className:"inline-flex items-center gap-1 text-meta font-medium hover:underline",children:["Open",(0,t.jsx)(i.ChevronRight,{"aria-hidden":!0,className:"size-(--size-icon-sm)"})]})]},l.shipId)})})}var M=e.i(77821),P=e.i(87964),$=e.i(90262),U=e.i(18423),_=e.i(96676),F=e.i(78485),J=e.i(5387),W=e.i(53573),Q=e.i(48695);function V(e){return e instanceof Error?e.message:"Try again in a moment."}e.s(["default",0,function(){let e=(0,s.useRouter)(),i=(0,_.useNow)(),l=(0,o.useNeedsAttention)(),r=(0,o.useNoShipCanTake)().data??[],d=(0,o.useOverdue)().data??[],c=(0,o.useResendDelivery)(),m=(0,o.useDismissDelivery)(),u=(0,U.useLiveFleet)(),x=(0,P.useConsoleFrame)(),h=(0,Q.useSquadrons)(),f=(0,A.silentMembers)(h.data??[]),p=(0,W.useShips)(f.map(({member:e})=>e.shipId)),g=new Map(((0,J.useFleetSnapshot)().data??[]).map(e=>[e.id,e])),b=(0,$.useAccess)();(0,F.useSignInWhenSessionEnds)([l.error,u.error]);let[v,j]=(0,a.useState)(new Set),y=(e,t)=>{j(t=>new Set([...t,e])),t().finally(()=>{j(t=>new Set([...t].filter(t=>t!==e)))})},N=(0,t.jsx)(z,{deliveries:l.data??[],state:l.isError?"error":l.data?"ready":"loading",onRetry:()=>{l.refetch()},onResend:b.canManage?e=>{let t=(0,o.deliveryWithId)(l.data,e);y(e,async()=>{try{await c.mutateAsync({deliveryId:e}),t&&(0,n.showToast)({...(0,o.resentToast)(t),tone:"success"})}catch(e){(0,n.showToast)({title:"Couldn’t resend the message",description:V(e),tone:"error"})}})}:void 0,onDismiss:b.canManage?e=>{y(e,async()=>{try{await m.mutateAsync({deliveryId:e}),(0,n.showToast)({...o.DISMISSED_TOAST,tone:"success"})}catch(e){(0,n.showToast)({title:"Couldn’t dismiss the delivery",description:V(e),tone:"error"})}})}:void 0,onOpen:t=>{e.push((0,o.messagePathOf)(t))},pendingIds:v,now:i});return(0,t.jsx)(M.ListPage,{...x,title:"Needs attention",description:"Deliveries no ship acknowledged after five tries, or not handled, oldest first. Resend or dismiss each one.",live:u.live,children:f.length>0||d.length>0||r.length>0?(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("section",{"aria-labelledby":"attention-undeliverable",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"attention-undeliverable",className:"text-body font-semibold",children:["Undeliverable deliveries (",l.data?.length??0,")"]}),l.data?.length===0?(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"None."}):N]}),d.length>0?(0,t.jsxs)("section",{"aria-labelledby":"attention-overdue",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"attention-overdue",className:"text-body font-semibold",children:["Overdue (",d.length,")"]}),(0,t.jsx)(L,{deliveries:d,onOpen:t=>{e.push((0,o.overduePathOf)(t))},now:i}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Handed and not confirmed for 10 min, or waiting 10 min while the session is idle or 60 while it is busy. They clear by themselves once they move on."})]}):null,r.length>0?(0,t.jsxs)("section",{"aria-labelledby":"attention-no-ship-can-take",className:"flex flex-col gap-2",children:[(0,t.jsxs)("h2",{id:"attention-no-ship-can-take",className:"text-body font-semibold",children:["No ship can take it (",r.length,")"]}),(0,t.jsx)(R,{deliveries:r,onOpen:t=>{e.push((0,o.messagePathOf)(t))},now:i}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"Sent to a type no active ship has, or none its sender may reach. Commission a ship of the type and it takes them; they clear by themselves."})]}):null,f.length>0?(0,t.jsxs)("section",{"aria-labelledby":"attention-silent",className:"flex flex-col gap-2 max-sm:order-first",children:[(0,t.jsxs)("h2",{id:"attention-silent",className:"text-body font-semibold",children:["Silent members (",f.length,")"]}),(0,t.jsx)(H,{members:f,ships:g,now:i,renderAction:b.canManage?({squadronId:e,member:s})=>(0,t.jsx)(q.GetNewCrewLine,{squadronId:e,member:s,ship:p.get(s.shipId),isPrimary:!0,testId:"silent-member-new-crew-line"}):void 0}),(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:"A member is silent after 3 missed check-ins; only you can start its new session. Late members and blocked reports stay on their squadron page."})]}):null]}):N})}],31034)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},14732,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};a.node;let n=(0,s.default)(a),i={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};i.node;let l=(0,s.default)(i);var r=e.i(63707),d=e.i(90063);function o({className:e,...s}){return(0,t.jsx)("th",{"data-slot":"table-head",className:(0,d.classNames)("px-4 text-left align-middle text-caption font-medium whitespace-nowrap text-muted-foreground",e),...s})}e.s(["Table",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto rounded-lg border border-border bg-card shadow-sm",children:(0,t.jsx)("table",{"data-slot":"table",className:(0,d.classNames)("w-full caption-bottom text-body",e),...s})})},"TableBody",0,function({className:e,...s}){return(0,t.jsx)("tbody",{"data-slot":"table-body",className:(0,d.classNames)("[&_tr:last-child]:border-0",e),...s})},"TableCell",0,function({className:e,...s}){return(0,t.jsx)("td",{"data-slot":"table-cell",className:(0,d.classNames)("px-4 align-middle",e),...s})},"TableHead",0,o,"TableHeader",0,function({className:e,...s}){return(0,t.jsx)("thead",{"data-slot":"table-header",className:(0,d.classNames)("bg-muted [&_tr]:border-b",e),...s})},"TableRow",0,function({className:e,...s}){return(0,t.jsx)("tr",{"data-slot":"table-row",className:(0,d.classNames)("h-(--size-row) border-b border-border transition-colors duration-(--duration-fast) hover:bg-muted has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-ring data-new:animate-highlight [thead_&]:h-(--size-row-header) [thead_&]:hover:bg-transparent",e),...s})},"TableSortHead",0,function({direction:e,onSort:s,children:a,className:i,...c}){let m="ascending"===e?l:"descending"===e?n:r.ChevronsUpDown;return(0,t.jsx)(o,{"aria-sort":e??"none",className:(0,d.classNames)("px-2",i),...c,children:(0,t.jsxs)("button",{type:"button",onClick:s,className:"inline-flex h-7 items-center gap-1 rounded-sm px-2 font-medium hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring data-sorted:text-foreground","data-sorted":null===e?void 0:"",children:[a,(0,t.jsx)(m,{"aria-hidden":!0,className:(0,d.classNames)("size-3.5 shrink-0",null===e?"opacity-50":void 0)})]})})}],14732)},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:n,action:i,variant:l="page",className:r}){return"section"===l?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":l,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",r),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===l?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",r),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":l,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",r),children:[n?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:n}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},19249,e=>{"use strict";var t=e.i(43476),s=e.i(90063);let a={"on-time":{label:"On time",dot:"bg-tone-ok-fg",text:"text-tone-ok-fg"},late:{label:"Late",dot:"bg-tone-waiting-fg",text:"text-tone-waiting-fg"},silent:{label:"Silent",dot:"bg-tone-attention-fg",text:"text-tone-attention-fg"},"standing-down":{label:"Standing down",dot:"bg-tone-active-fg",text:"text-tone-active-fg"},"not-on-station":{label:"Not on station",dot:"border border-dashed border-muted-foreground",text:"text-foreground"}};function n({health:e}){return(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.classNames)("size-2 shrink-0 rounded-full",a[e].dot)})}e.s(["HealthIndicator",0,function({health:e,detail:i,className:l}){return(0,t.jsxs)("span",{"data-slot":"health-indicator","data-health":e,className:(0,s.classNames)("inline-flex items-center gap-1.5 text-meta",l),children:[(0,t.jsx)(n,{health:e}),(0,t.jsx)("span",{className:(0,s.classNames)("font-medium",a[e].text),children:a[e].label}),void 0!==i&&(0,t.jsx)("span",{className:"text-muted-foreground",children:i})]})},"HealthSummary",0,function({counts:e,className:i}){return(0,t.jsx)("span",{"data-slot":"health-summary",className:(0,s.classNames)("inline-flex flex-wrap items-center gap-x-3 gap-y-1 text-meta",i),children:e.map(({health:e,count:s})=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(n,{health:e}),(0,t.jsxs)("span",{children:[s," ",a[e].label.toLowerCase()]})]},e))})}])},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function n(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:l="Loading",className:r}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",r),children:[(0,t.jsx)("span",{className:"sr-only",children:l}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),n(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:n(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:n(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},39448,e=>{"use strict";var t=e.i(43476),s=e.i(25913),a=e.i(22016),n=e.i(90063);let i=(0,s.cva)("min-w-0 truncate font-sans font-medium",{variants:{size:{body:"text-body text-foreground",meta:"text-meta text-muted-foreground",title:"text-title font-semibold tracking-tight text-foreground max-sm:text-title-touch"}},defaultVariants:{size:"body"}});e.s(["ShipName",0,function({name:e,shipId:s,size:l,isSuffixShown:r=!1,isOperator:d=!1,href:o,className:c}){let m=o?(0,t.jsx)(a.default,{href:o,className:(0,n.classNames)(i({size:l}),"rounded-xs underline-offset-3 hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring"),title:e,children:e}):(0,t.jsx)("span",{className:i({size:l}),title:e,children:e});return(0,t.jsxs)("span",{"data-slot":"ship-name",className:(0,n.classNames)("inline-flex min-w-0 items-baseline gap-1.5",c),children:[m,d?(0,t.jsx)("span",{className:"shrink-0 font-normal text-muted-foreground",children:"(you)"}):null,r&&!d?(0,t.jsxs)("span",{className:"shrink-0 font-mono text-id text-muted-foreground uppercase",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"· "}),s.slice(-4)]}):null]})}])},1935,e=>{"use strict";var t=e.i(43476),s=e.i(60011),a=e.i(22016),n=e.i(90063);e.s(["SquadronTag",0,function({squadronId:e,role:i,size:l="md",className:r}){return(0,t.jsxs)(a.default,{href:`/squadrons/${e}`,"data-slot":"squadron-tag",className:(0,n.classNames)("inline-flex max-w-full items-center gap-1 rounded-sm bg-secondary px-1.5 text-secondary-foreground hover:underline [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0","sm"===l?"h-5.5 text-meta":"h-6 text-body",r),children:[(0,t.jsx)(s.Shapes,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate font-medium",children:e}),void 0!==i&&(0,t.jsxs)("span",{className:"shrink-0 text-muted-foreground",children:["· ",i]})]})}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),n=e.i(19759),i=e.i(22016),l=e.i(15905),r=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:n}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",n)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,onCompose:m,onSearch:u}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[d.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),u?(0,t.jsxs)(l.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:u,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(r.Kbd,{children:"⌘K"})]}):null,m?(0,t.jsx)(l.Button,{size:"sm",icon:(0,t.jsx)(n.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:m,children:"Compose"}):null]})]})}],77880);var m=e.i(24071),u=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:n,back:r,account:d,onSearch:o}){let x=o&&!r?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":r?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:r.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(m.ChevronLeft,{"aria-hidden":!0}),r.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),n||x||d&&!r?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[x?(0,t.jsx)(l.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:x,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,n,d&&!r?(0,t.jsx)(u.AccountMenuSheet,{...d}):null]}):null]})}],85538)},77821,e=>{"use strict";var t=e.i(43476),s=e.i(19759),a=e.i(15905),n=e.i(77880),i=e.i(85538);e.s(["ListPage",0,function({title:e,description:l,titleMeta:r,primaryAction:d,toolbar:o,live:c,onCompose:m,onSearch:u,account:x,banner:h,children:f}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:c,onCompose:m,onSearch:u}),h,(0,t.jsx)(i.TopBar,{title:e,live:c,account:x,onSearch:u,actions:m?(0,t.jsx)(a.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:m,children:(0,t.jsx)(s.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),r]}),l?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null]}),d?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:d}):null]}),o,f]})]})}])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),n=e.i(42454),i=e.i(27702);let l=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function r(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),o=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[m,u]=(0,a.useState)(new Set),x=e=>{r(c,e)},h=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i;if("resync"===t.kind)return void x(e.fleet.pathKey());let{event:r}=t;for(let t of new Set([r.shipId,r.actorShipId]))null!==t&&(x(e.fleet.ship.queryKey({shipId:t})),x(e.fleet.shipTimeline.queryKey({shipId:t})),x(e.fleet.shipWay.queryKey({shipId:t})));if(null!==r.messageId&&(x(e.fleet.shipMessages.pathKey()),x(e.fleet.shipWay.pathKey()),x(e.fleet.overdue.queryKey()),x(e.fleet.message.queryKey({messageId:r.messageId})),x(e.fleet.inbox.pathKey()),x(n.QUESTIONS_KEY),x(e.fleet.noShipCanTake.queryKey())),s=r.type,o.has(s)&&x(e.fleet.needsAttention.queryKey()),a=r.type,d.has(a)&&x(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===r.type&&x(e.fleet.declaredNetworkRules.queryKey()),i=r.type,!l.has(i))return;x(e.fleet.list.queryKey()),x(e.fleet.noShipCanTake.queryKey());let{shipId:c}=r;"ShipCommissioned"===r.type&&null!==c&&u(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(h.status),newShipIds:m,error:h.error}}])},69693,e=>{"use strict";var t=e.i(46150);function s(e){let t=e.split(";")[0]?.trim().toLowerCase()??"";return"application/json"===t||t.endsWith("+json")}e.s(["formattedPayload",0,function(e,t){if(s(t))try{return JSON.stringify(JSON.parse(e),null,2)}catch{return}},"isJson",0,s,"payloadLabel",0,function(e,a){let n=s(a)?"JSON":a.split(";")[0]?.trim()??a,i=new TextEncoder().encode(e).byteLength;return`${n} \xb7 ${(0,t.counted)(i,{one:"byte",many:"bytes"})}`}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49655,87255,50092,36604,32297,26391,19647,10001,95925,85627,e=>{"use strict";var t=e.i(56420);let i={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};i.node;let s=(0,t.default)(i);e.s(["AlarmClock",0,s],49655);let a={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};a.node;let n=(0,t.default)(a);e.s(["Anchor",0,n],87255);let r={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};r.node;let o=(0,t.default)(r);e.s(["CircleArrowRight",0,o],50092);let l={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};l.node;let d=(0,t.default)(l);e.s(["CircleCheckBig",0,d],36604);let c={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};c.node;let u=(0,t.default)(c);e.s(["CirclePlay",0,u],32297);let h={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};h.node;let p=(0,t.default)(h);e.s(["CircleDotDashed",0,p],26391);let m={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};m.node;let g=(0,t.default)(m);e.s(["CircleMinus",0,g],19647);let y={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};y.node;let f=(0,t.default)(y);e.s(["FlagOff",0,f],10001);let x={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};x.node;let b=(0,t.default)(x);e.s(["RotateCcw",0,b],95925);let v={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};v.node;let w=(0,t.default)(v);e.s(["Sailboat",0,w],85627)},76561,e=>{"use strict";var t=e.i(56420);let i={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};i.node;let s=(0,t.default)(i);e.s(["Archive",0,s],76561)},47211,e=>{"use strict";var t=e.i(56420);let i={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};i.node;let s=(0,t.default)(i);e.s(["Ban",0,s],47211)},52886,e=>{"use strict";var t=e.i(56420);let i={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"}]]};i.node;let s=(0,t.default)(i);e.s(["CircleDashed",0,s],52886)},16984,e=>{"use strict";var t=e.i(56420);let i={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};i.node;let s=(0,t.default)(i);e.s(["CircleX",0,s],16984)},74544,e=>{"use strict";var t=e.i(56420);let i={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};i.node;let s=(0,t.default)(i);e.s(["Clock",0,s],74544)},36518,e=>{"use strict";var t=e.i(56420);let i={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};i.node;let s=(0,t.default)(i);e.s(["CloudOff",0,s],36518)},8734,e=>{"use strict";var t=e.i(56420);let i={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};i.node;let s=(0,t.default)(i);e.s(["Copy",0,s],8734)},86247,e=>{"use strict";var t=e.i(56420);let i={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};i.node;let s=(0,t.default)(i);e.s(["Ellipsis",0,s],86247)},71028,e=>{"use strict";var t=e.i(56420);let i={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};i.node;let s=(0,t.default)(i);e.s(["Gauge",0,s],71028)},81658,e=>{"use strict";var t=e.i(56420);let i={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};i.node;let s=(0,t.default)(i);e.s(["Hourglass",0,s],81658)},58925,e=>{"use strict";var t=e.i(56420);let i={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};i.node;let s=(0,t.default)(i);e.s(["KeyRound",0,s],58925)},68997,73330,e=>{"use strict";var t=e.i(56420);let i={name:"pen",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],aliases:["edit-2"]};i.node;let s=(0,t.default)(i);e.s(["Pen",0,s],68997);var a=e.i(49635);e.s(["canPing",0,function(e){return"agent"===e.kind&&"crewed"===e.status},"pingLine",0,function(e,t){let i=new Date(e.sentAt);switch(e.state){case"waiting":{let e=(0,a.relativeTime)(i,t);return`Pinged ${"Just now"===e?"just now":e}, no answer yet`}case"answered":var s;let n;return null===e.answeredAt?"Answered ping":`Answered ping in ${(n=Math.max(0,(s=new Date(e.answeredAt)).getTime()-i.getTime()))<6e4?`${String(Math.round(n/1e3))} s`:(0,a.duration)(i,s)}`;case"acknowledged":return"Received, not answered with pong";case"undeliverable":return"Ping not answered: undeliverable"}}],73330)},57665,e=>{"use strict";var t=e.i(56420);let i={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};i.node;let s=(0,t.default)(i);e.s(["Power",0,s],57665)},15331,e=>{"use strict";var t=e.i(56420);let i={name:"radio",size:24,node:[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};i.node;let s=(0,t.default)(i);e.s(["Radio",0,s],15331)},25398,e=>{"use strict";var t=e.i(56420);let i={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};i.node;let s=(0,t.default)(i);e.s(["RotateCw",0,s],25398)},92870,e=>{"use strict";var t=e.i(56420);let i={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};i.node;let s=(0,t.default)(i);e.s(["UserCheck",0,s],92870)},49319,e=>{"use strict";var t=e.i(56420);let i={name:"user-minus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};i.node;let s=(0,t.default)(i);e.s(["UserMinus",0,s],49319)},57443,e=>{"use strict";var t=e.i(56420);let i={name:"user-plus",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]};i.node;let s=(0,t.default)(i);e.s(["UserPlus",0,s],57443)},71139,e=>{"use strict";var t=e.i(56420);let i={name:"user-x",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]};i.node;let s=(0,t.default)(i);e.s(["UserX",0,s],71139)},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var i=e.i(66250),s=e.i(2820),a=e.i(56736),n=e.i(9793),r=e.i(84324),o=e.i(64951),l=e.i(77173);let d=e.i(13488).DialogTrigger;var c=e.i(74217),u=e.i(25326);class h extends u.DialogHandle{}e.s(["Backdrop",()=>s.DialogBackdrop,"Close",()=>a.DialogClose,"Description",()=>n.DialogDescription,"Handle",0,h,"Popup",()=>r.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,i.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,d,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new h}],34604);var p=e.i(34604),p=p,m=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(p.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(p.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:i,children:s,...a}){return(0,t.jsxs)(p.Portal,{children:[(0,t.jsx)(p.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(p.Popup,{"data-slot":"alert-dialog-content",className:(0,m.classNames)(g.dialogSurface.popup({size:i}),e),...a,children:s})]})},"AlertDialogDescription",0,function({className:e,...i}){return(0,t.jsx)(p.Description,{"data-slot":"alert-dialog-description",className:(0,m.classNames)(g.dialogSurface.description,e),...i})},"AlertDialogFooter",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,m.classNames)(g.dialogSurface.footer,e),...i})},"AlertDialogHeader",0,function({className:e,...i}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,m.classNames)(g.dialogSurface.header,e),...i})},"AlertDialogTitle",0,function({className:e,...i}){return(0,t.jsx)(p.Title,{"data-slot":"alert-dialog-title",className:(0,m.classNames)(g.dialogSurface.title,e),...i})}],24010)},94945,e=>{"use strict";let t={overlay:"fixed inset-0 isolate z-50 bg-overlay duration-(--duration-base) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",popup:(0,e.i(25913).cva)("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-var(--spacing)*8)] w-full max-w-[calc(100%-var(--spacing)*8)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-popover p-6 text-body text-popover-foreground shadow-lg duration-(--duration-base) outline-none 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 motion-reduce:data-open:zoom-in-100 motion-reduce:data-closed:zoom-out-100",{variants:{size:{sm:"sm:max-w-(--size-dialog-sm)",md:"sm:max-w-(--size-dialog-md)"}},defaultVariants:{size:"sm"}}),header:"flex flex-col gap-2",footer:"flex flex-col-reverse gap-2 pt-1 sm:flex-row sm:justify-end",title:"text-heading font-semibold text-foreground",description:"text-body text-muted-foreground",phoneSheet:"max-sm:top-auto max-sm:bottom-0 max-sm:left-0 max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:rounded-none max-sm:rounded-t-2xl max-sm:border-x-0 max-sm:border-b-0 max-sm:px-4 max-sm:pb-[max(calc(var(--spacing)*4),env(safe-area-inset-bottom))] max-sm:[&_[data-slot=button]]:h-(--size-control-touch) max-sm:[&_[data-slot=button]]:w-full",phoneFullScreen:"max-sm:top-0 max-sm:left-0 max-sm:h-dvh max-sm:max-w-full max-sm:translate-x-0 max-sm:translate-y-0 max-sm:content-start max-sm:overflow-y-auto max-sm:rounded-none max-sm:border-0"};e.s(["dialogSurface",0,t])},17981,e=>{"use strict";var t=e.i(43476),i=e.i(22768),s=e.i(36518),a=e.i(25398),n=e.i(90063),r=e.i(15905);e.s(["InlineError",0,function({title:e,description:o,detail:l,onRetry:d,retryNote:c,variant:u="section",id:h,className:p}){return"field"===u?(0,t.jsxs)("p",{id:h,"data-slot":"inline-error","data-variant":u,className:(0,n.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",p),children:[(0,t.jsx)(i.CircleAlert,{"aria-hidden":!0}),e]}):"section"===u?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":u,className:(0,n.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",p),children:[(0,t.jsx)(i.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),o?(0,t.jsx)("p",{className:"text-meta text-foreground",children:o}):null,d?(0,t.jsx)(r.Button,{size:"xs",icon:(0,t.jsx)(a.RotateCw,{"aria-hidden":!0}),onClick:d,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":u,className:(0,n.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",p),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(s.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),o?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:o}):null,l?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:l}):null,d?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(r.Button,{size:"sm",icon:(0,t.jsx)(a.RotateCw,{"aria-hidden":!0}),onClick:d,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},78865,e=>{"use strict";var t=e.i(43476),i=e.i(49655),s=e.i(87255),a=e.i(76561),n=e.i(47211),r=e.i(22768),o=e.i(50092),l=e.i(36604),d=e.i(32297),c=e.i(74544),u=e.i(85595),h=e.i(52886),p=e.i(26391),m=e.i(19647),g=e.i(16984),y=e.i(10001),f=e.i(71028),x=e.i(81658),b=e.i(44594),v=e.i(11568),w=e.i(57665),k=e.i(95925),C=e.i(85627),M=e.i(66787),j=e.i(92870),S=e.i(90063),R=e.i(66390);let z={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},I={awaitingCrew:{tone:"waiting",Icon:h.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:j.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:a.Archive,label:"Retired"},pending:{tone:"waiting",Icon:x.Hourglass,label:"Pending"},received:{tone:"active",Icon:b.Inbox,label:"Received"},handed:{tone:"active",Icon:o.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:o.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:i.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:u.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:l.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:r.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:g.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:m.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:n.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:p.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:C.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:s.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:y.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:f.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:M.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:c.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:j.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:v.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:d.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:k.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:g.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:w.Power,label:"Releasing"}};e.s(["StatusBadge",0,function({status:e,className:i}){let{tone:s,Icon:a,label:n}=I[e];return(0,t.jsxs)(R.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,S.classNames)(z[s],"abandoned"===e?"border-dashed":void 0,i),children:[(0,t.jsx)(a,{"aria-hidden":!0}),n]})},"statusLabel",0,function(e){return I[e].label}])},21959,e=>{"use strict";var t=e.i(43476),i=e.i(76561),s=e.i(8734),a=e.i(86247),n=e.i(44594),r=e.i(58925),o=e.i(68997),l=e.i(15331),d=e.i(60011),c=e.i(19759),u=e.i(49319),h=e.i(57443),p=e.i(71139),m=e.i(22016),g=e.i(71645),y=e.i(5387),f=e.i(17540),x=e.i(90262),b=e.i(80581),v=e.i(73330),w=e.i(53573),k=e.i(86165),C=e.i(48695),M=e.i(84294),j=e.i(84156),S=e.i(15905),R=e.i(57334),z=e.i(75305),I=e.i(41880);let O=(0,f.lazyDialog)(()=>e.A(26403).then(e=>e.ReleaseDialog),e=>e.isOpen),D=(0,f.lazyDialog)(()=>e.A(88138).then(e=>e.RemoveMemberDialog),e=>e.isOpen),A=(0,f.lazyDialog)(()=>e.A(57993).then(e=>e.RenameDialog),e=>e.isOpen),P=(0,f.lazyDialog)(()=>e.A(41585).then(e=>e.RetireDialog),e=>e.isOpen),N=(0,f.lazyDialog)(()=>e.A(95953).then(e=>e.StartingPromptDialog),e=>e.isOpen);function q({ship:e,layout:a,compose:m,squadron:f,member:k,isMembershipPending:S,crewLine:R}){var z,L;let T=(0,x.useAccess)(),[H,B]=(0,g.useState)(),[Q,F]=(0,g.useState)(!1),[U,$]=(0,g.useState)(void 0),_=(0,y.useGetStartingPrompt)(),G=(0,y.useReleaseShip)(),V=(0,y.useRetireShip)(),X=(0,y.useRecrewShip)(),K=(0,y.useRenameShip)(),W=(0,y.usePingShip)(),J=(0,y.useFleetSnapshot)(),Y=(0,y.useLabelContext)(),Z=(0,w.useShip)("release"===H||"recrew"===H||"retire"===H||"remove"===H?e.id:void 0),ee=(0,C.useRemoveMember)(),et=()=>{B(void 0)},ei=_.data??X.data,es=ei?"shown":_.isError?"error":"issuing",ea=e=>()=>{G.reset(),V.reset(),X.reset(),K.reset(),ee.reset(),B(e)},en=async()=>{try{await navigator.clipboard.writeText(e.id),(0,I.showToast)({title:"Ship id copied",description:e.id,tone:"success"})}catch{(0,I.showToast)({title:"Couldn’t copy the ship id",description:e.id,tone:"error"})}},er=f?.flagship.shipId===e.id,eo={key:"message",label:"Message",menuLabel:"Message this ship…",icon:c.SquarePen,testId:"fleet-ship-message",onSelect:()=>{F(!0)},isMenuOnly:!0,needs:"canSend"},el={key:"copy",label:"Copy ship id",menuLabel:"Copy ship id",icon:s.Copy,testId:"fleet-ship-copy-id",onSelect:()=>{en()},isMenuOnly:!0},ed=(0,v.canPing)(e)?[{key:"ping",label:"Ping",menuLabel:"Ping",icon:l.Radio,testId:"fleet-ship-ping",onSelect:()=>{W.mutate({shipId:e.id},{onSuccess:({isNew:t})=>{(0,I.showToast)(t?{title:`Pinged ${e.name}`,description:"Its session answers with pong on its next turn.",tone:"success"}:{title:`A ping already waits for ${e.name}`,description:"Pings never stack: this is the one shown.",tone:"info"})},onError:t=>{(0,I.showToast)({title:`Couldn’t ping ${e.name}`,description:t.message,tone:"error"})}})},isLoading:W.isPending,needs:"canManage"}]:[],ec=[];return"operator"===e.kind?ec.push({key:"inbox",label:"Open inbox",menuLabel:"Open inbox",icon:n.Inbox,testId:"fleet-ship-open-inbox",href:"/inbox",isMenuOnly:!0},el):"retired"===e.status||"viewer"===e.kind?ec.push(el):er?ec.push({key:"squadron",label:"Open squadron",menuLabel:"Open squadron",icon:d.Shapes,testId:"fleet-ship-open-squadron",href:`/squadrons/${f.id}`}):S?ec.push(eo,el,...ed):k&&f?(ec.push(eo,el,...ed,{key:"crew-line",label:"Get new crew line",menuLabel:"Get new crew line…",icon:r.KeyRound,testId:"fleet-ship-new-crew-line",onSelect:R.start,needs:"canManage",isDisabled:!R.isReady,isPrimary:"silent"===k.health}),"crewed"===e.status&&ec.push({key:"release",label:"Release",menuLabel:"Release ship…",icon:p.UserX,testId:"fleet-ship-release",onSelect:ea("release"),needs:"canManage"}),("sailing"===f.state||"standing-down"===f.state)&&ec.push({key:"remove",label:"Remove from squadron",menuLabel:"Remove from squadron…",icon:u.UserMinus,testId:"fleet-ship-remove",onSelect:ea("remove"),isDestructive:!0,needs:"canManage"})):(ec.push(eo,el),"awaitingCrew"===e.status?ec.push({key:"prompt",label:"Get starting prompt",menuLabel:"Get starting prompt…",icon:r.KeyRound,testId:"fleet-ship-prompt",onSelect:()=>{_.reset(),X.reset(),$((0,j.isUnclaimedPromptOut)(e)&&e.startingPrompt?{issuedAt:e.startingPrompt.issuedAt}:void 0),B("prompt"),_.mutate({shipId:e.id})},needs:"canManage"}):ec.push(...ed,{key:"recrew",label:"Re-crew",menuLabel:"Re-crew…",icon:h.UserPlus,testId:"fleet-ship-recrew",onSelect:ea("recrew"),needs:"canManage"},{key:"release",label:"Release",menuLabel:"Release ship…",icon:p.UserX,testId:"fleet-ship-release",onSelect:ea("release"),needs:"canManage"}),ec.push({key:"rename",label:"Rename",menuLabel:"Rename…",icon:o.Pen,testId:"fleet-ship-rename",onSelect:ea("rename"),needs:"canManage"},{key:"retire",label:"Retire",menuLabel:"Retire ship…",icon:i.Archive,testId:"fleet-ship-retire",onSelect:ea("retire"),isDestructive:!0,needs:"canManage"})),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(E,{layout:a,ship:e,actions:(z=ec,L=T,z.filter(e=>void 0===e.needs||L[e.needs]))}),(0,t.jsx)(O,{shipName:e.name,sessionLocation:null===e.location?null:e.location.description??e.location.kind.toLowerCase(),inFlightCount:Z.data?.inFlightDeliveries??0,mode:"recrew"===H?"recrew":"release",isOpen:("release"===H||"recrew"===H)&&void 0!==Z.data,onOpenChange:e=>{e||et()},isPending:G.isPending||X.isPending,error:("recrew"===H?X.error:G.error)?.message,onConfirm:()=>{"recrew"===H?X.mutate({shipId:e.id},{onSuccess:()=>{$(void 0),B("prompt")}}):G.mutate({shipId:e.id},{onSuccess:et})}}),(0,t.jsx)(P,{shipName:e.name,openDeliveries:Z.data?.openDeliveries??0,isCrewed:"crewed"===e.status,isOpen:"retire"===H&&void 0!==Z.data,onOpenChange:e=>{e||et()},isPending:V.isPending,error:V.error?.message,onConfirm:()=>{V.mutate({shipId:e.id},{onSuccess:et})},labelLines:void 0===Y?void 0:(0,b.retireLabelLines)((0,b.retiredLabelsOf)(e,Y))}),f&&k&&(0,t.jsx)(D,{squadronId:f.id,member:k,othersOfRole:(0,M.otherMembersOfRole)(f,k.shipId),openDeliveries:Z.data?.openDeliveries??0,inFlightDeliveries:Z.data?.inFlightDeliveries??0,isOpen:"remove"===H&&void 0!==Z.data,onOpenChange:e=>{e||et()},isPending:ee.isPending,error:ee.error?.message,onConfirm:()=>{ee.mutate({squadronId:f.id,shipId:k.shipId},{onSuccess:et})}}),(0,t.jsx)(A,{shipName:e.name,activeNames:(J.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:"rename"===H,onOpenChange:e=>{e||et()},isPending:K.isPending,error:K.error?.message,onSubmit:t=>{K.mutate({shipId:e.id,name:t},{onSuccess:et})}}),(0,t.jsx)(N,{shipName:e.name,state:es,prompt:ei?.prompt,crewLines:ei?.crewLines,replacesUnclaimed:U,error:_.error?.message,isOpen:"prompt"===H,onOpenChange:e=>{e||(_.reset(),X.reset(),et())},onConfirm:()=>{X.reset(),_.mutate({shipId:e.id})}}),R.dialog,Q&&(0,t.jsx)(m,{isOpen:!0,onOpenChange:F,toShipId:e.id})]})}function L({action:e,className:i}){let s=e.isPrimary?"primary":e.isDestructive||"rename"===e.key?"ghost":"secondary";return void 0!==e.href?(0,t.jsx)(S.Button,{size:"xs",variant:s,nativeButton:!1,"data-testid":e.testId,className:i,render:(0,t.jsx)(m.default,{href:e.href}),children:e.label}):(0,t.jsx)(S.Button,{size:"xs",variant:s,"data-testid":e.testId,disabled:e.isDisabled,isLoading:e.isLoading,className:i,onClick:e.onSelect,children:e.label})}function T(e,t){let i=e[t-1],s=e[t];return void 0!==i&&void 0!==s&&(!0===i.isMenuOnly&&!0!==s.isMenuOnly||!0===s.isDestructive&&!0!==i.isDestructive)}function E({layout:e,ship:i,actions:s}){if("next"===e){let e=s.find(e=>"prompt"===e.key||"crew-line"===e.key&&!0===e.isPrimary);return e?(0,t.jsx)(L,{action:{...e,isPrimary:!1},className:"max-sm:h-(--size-control-touch) max-sm:w-full max-sm:text-body-touch"}):null}if("buttons"===e){let e=s.filter(e=>!0!==e.isMenuOnly);return 0===e.length?null:(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2 max-sm:justify-start",children:e.map(e=>(0,t.jsx)(L,{action:e},e.key))})}let n=(0,t.jsx)(S.Button,{size:"sheet"===e?"touch":"xs",variant:"ghost",isIconOnly:!0,"aria-label":`Actions for ${i.name}`,icon:(0,t.jsx)(a.Ellipsis,{}),"data-testid":"fleet-actions"});return"sheet"===e?(0,t.jsxs)(z.Sheet,{children:[(0,t.jsx)(z.SheetTrigger,{render:n}),(0,t.jsxs)(z.SheetContent,{side:"bottom","data-testid":"fleet-row-sheet",children:[(0,t.jsx)(z.SheetHeader,{children:(0,t.jsx)(z.SheetTitle,{children:i.name})}),(0,t.jsx)("ul",{className:"flex flex-col pb-2",children:s.map((e,i)=>(0,t.jsx)("li",{className:T(s,i)?"mt-1 border-t border-border pt-1":void 0,children:(0,t.jsxs)(z.SheetClose,{render:void 0===e.href?(0,t.jsx)("button",{type:"button",disabled:e.isDisabled,onClick:e.onSelect}):(0,t.jsx)(m.default,{href:e.href}),"data-testid":e.testId,className:`flex h-(--size-control-touch) w-full items-center gap-3 px-4 text-left text-body-touch disabled:opacity-45 [&_svg]:size-(--size-icon) [&_svg]:shrink-0 ${e.isDestructive?"text-destructive-text":"text-foreground"}`,children:[(0,t.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel.replace(/…$/,"")]})},e.key))}),(0,t.jsx)("div",{className:"px-4 pb-4",children:(0,t.jsx)(z.SheetClose,{render:(0,t.jsx)(S.Button,{size:"touch",className:"w-full"}),children:"Cancel"})})]})]}):(0,t.jsxs)(R.DropdownMenu,{children:[(0,t.jsx)(R.DropdownMenuTrigger,{render:n}),(0,t.jsx)(R.DropdownMenuContent,{children:s.map((e,i)=>(0,t.jsxs)(g.Fragment,{children:[T(s,i)?(0,t.jsx)(R.DropdownMenuSeparator,{}):null,void 0===e.href?(0,t.jsxs)(R.DropdownMenuItem,{"data-testid":e.testId,disabled:e.isDisabled,variant:e.isDestructive?"destructive":"default",onClick:e.onSelect,children:[(0,t.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel]}):(0,t.jsxs)(R.DropdownMenuItem,{"data-testid":e.testId,render:(0,t.jsx)(m.default,{href:e.href}),children:[(0,t.jsx)(e.icon,{"aria-hidden":!0}),e.menuLabel]})]},e.key))})]})}e.s(["ShipActions",0,function({ship:e,layout:i="buttons",compose:s,crewLineFlow:a}){let n=(0,k.useSquadronsConnection)(),r=(0,C.useSquadrons)(),o=r.data?.find(t=>"disbanded"!==t.state&&(t.flagship.shipId===e.id||t.members.some(t=>t.shipId===e.id))),l=void 0!==o&&o.flagship.shipId!==e.id,d=(0,w.useShip)(l&&"retired"!==e.status?e.id:void 0),c=o?.members.find(t=>t.shipId===e.id),u="unknown"===n||"connected"===n&&!r.isFetched;return(0,t.jsx)(a,{of:o&&c?{squadronId:o.id,member:c,ship:d.data}:void 0,children:a=>(0,t.jsx)(q,{ship:e,layout:i,compose:s,squadron:o,member:c,isMembershipPending:u,crewLine:a})})}])},15327,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(17540),a=e.i(26808),n=e.i(48695),r=e.i(15905),o=e.i(24010),l=e.i(94945);function d({memberName:e,replacedText:i,isOpen:s,onOpenChange:a,onConfirm:n}){return(0,t.jsx)(o.AlertDialog,{open:s,onOpenChange:a,children:(0,t.jsxs)(o.AlertDialogContent,{"data-testid":"new-crew-line-confirm",className:l.dialogSurface.phoneSheet,children:[(0,t.jsxs)(o.AlertDialogHeader,{children:[(0,t.jsxs)(o.AlertDialogTitle,{children:["Get a new crew line for ",e,"?"]}),(0,t.jsx)(o.AlertDialogDescription,{children:i??"Its new secret is shown once, with its launch note."})]}),(0,t.jsxs)(o.AlertDialogFooter,{children:[(0,t.jsx)(o.AlertDialogClose,{render:(0,t.jsx)(r.Button,{}),children:"Cancel"}),(0,t.jsx)(r.Button,{variant:"primary","data-testid":"new-crew-line-confirm-submit",onClick:n,children:"Get new crew line"})]})]})})}let c=(0,s.lazyDialog)(()=>e.A(88207).then(e=>e.CrewLineDialog),e=>e.isOpen);function u(e){let s=(0,n.useNewCrewLine)(),[r,o]=(0,i.useState)(!1),[l,u]=(0,i.useState)(!1),[h,p]=(0,i.useState)(void 0),m=()=>{e&&s.mutate({squadronId:e.squadronId,shipId:e.member.shipId})},g=s.data?"shown":s.isError?"error":"issuing";return{isReady:e?.ship!==void 0,start:()=>{e?.ship&&(s.reset(),p((0,a.newCrewLineReplaced)(e.ship)),u(!0))},dialog:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{memberName:e.member.name,replacedText:h,isOpen:l,onOpenChange:u,onConfirm:()=>{u(!1),o(!0),m()}}),(0,t.jsx)(c,{memberName:e.member.name,state:g,template:e.template,launchNote:s.data?.launchNote,model:s.data?.model,crewLines:s.data?.crewLines,error:s.error?.message,isOpen:r,onOpenChange:e=>{o(e),e||s.reset()},onConfirm:m})]}):null}}e.s(["GetNewCrewLine",0,function({isPrimary:e=!1,testId:i,...s}){let a=u(s);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{size:"xs",variant:e?"primary":"secondary",disabled:!a.isReady,"data-testid":i,onClick:a.start,children:"Get new crew line"}),a.dialog]})},"NewCrewLineFlow",0,function({of:e,children:t}){return t(u(e))},"useNewCrewLineFlow",0,u],15327)},46150,e=>{"use strict";e.s(["OPERATOR_NAME",0,"argo","capitalised",0,function(e){return e.charAt(0).toUpperCase()+e.slice(1)},"counted",0,function(e,t){return`${String(e)} ${1===e?t.one:t.many}`},"ship",0,function(e){return{kind:"ship",party:e}},"text",0,function(e){return{kind:"text",text:e}}])},26808,e=>{"use strict";var t=e.i(46150);let i={one:"delivery",many:"deliveries"};function s(e){if(0===e)return"Nothing is in flight, so no delivery moves.";let i=1===e?"returns":"return";return`${(0,t.counted)(e,{one:"in-flight delivery",many:"in-flight deliveries"})} ${i} to pending. Nothing is lost.`}e.s(["abandonedLine",0,function(e){return`${(0,t.counted)(e,i)} will be abandoned`},"inFlightLine",0,s,"isTypedMatch",0,function(e,t){return t===e},"newCrewLineReplaced",0,function(e){if("crewed"===e.status){let t=null===e.location?"the session crewing it":`the session on ${e.location.description??e.location.kind.toLowerCase()}`;return`This ends ${t}. ${s(e.inFlightDeliveries)}`}if(null!==e.startingPrompt&&!e.startingPrompt.isClaimed)return"The crew line issued earlier, not claimed yet, stops working."},"retireButtonLabel",0,function(e){return 0===e?"Retire ship":`Retire and abandon ${(0,t.counted)(e,i)}`}])},53573,e=>{"use strict";var t=e.i(19273),i=e.i(12598),s=e.i(81384),a=e.i(73664),n=e.i(27001),r=e.i(54440),o=e.i(71645),l=e.i(15823),d=e.i(40143),c=e.i(69230);function u(e,t){let i=new Set(t);return e.filter(e=>!i.has(e))}var h=class extends l.Subscribable{#e;#t;#i;#s;#a;#n;#r;#o;#l;#d=[];constructor(e,t,i){super(),this.#e=e,this.#s=i,this.#i=[],this.#a=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#a.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,i){this.#i=e,this.#s=i,d.notifyManager.batch(()=>{let e=this.#a,i=this.#u(this.#i);i.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let s=i.map(e=>e.observer),a=s.map(e=>e.getCurrentResult()),n=e.length!==s.length,r=s.some((t,i)=>t!==e[i]),o=n||r,l=!!o||a.some((e,i)=>{let s=this.#t[i];return!s||!(0,t.shallowEqualObjects)(e,s)});(o||l)&&(o&&(this.#d=i,this.#a=s),this.#t=a,this.hasListeners()&&(o&&(u(e,s).forEach(e=>{e.destroy()}),u(s,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){let i=this.#u(e),s=i.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),a=i.map(e=>e.defaultedQueryOptions.queryHash);return[s,e=>this.#p(e??s,t,a),()=>this.#m(s,i)]}#m(e,t){let i=new Set;return t.map((s,a)=>{let n=e[a];return s.defaultedQueryOptions.notifyOnChangeProps?n:s.observer.trackResult(n,e=>{i.has(e)||(i.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#p(e,i,s){if(i){let a=this.#l,n=void 0!==s&&void 0!==a&&(a.length!==s.length||s.some((e,t)=>e!==a[t]));return(this.#t!==this.#o||n||i!==this.#r)&&(this.#r=i,this.#o=this.#t,void 0!==s&&(this.#l=s),this.#n=(0,t.replaceEqualDeep)(this.#n,i(e))),this.#n}return e}#g(){return!this.#s?.combine||this.#a.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#u(e){let t=new Map;this.#a.forEach(e=>{let i=e.options.queryHash;if(!i)return;let s=t.get(i);s?s.push(e):t.set(i,[e])});let i=[];return e.forEach(e=>{let s=this.#e.defaultQueryOptions(e),a=t.get(s.queryHash)?.shift()??new c.QueryObserver(this.#e,s);i.push({defaultedQueryOptions:s,observer:a})}),i}#c(e,t){let i=this.#a.indexOf(e);-1!==i&&(this.#t=this.#t.slice(),this.#t[i]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#g(),t=this.#n,i=e?t:this.#p(this.#m(this.#t,this.#d),this.#s?.combine);(e||t!==i)&&d.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),m=e.i(5387),g=e.i(27702);e.s(["useMessage",0,function(e){let i=(0,g.useTRPC)();return(0,p.useQuery)(i.fleet.message.queryOptions(void 0===e?t.skipToken:{messageId:e}))},"useShip",0,function(e){let i=(0,g.useTRPC)();return(0,p.useQuery)(i.fleet.ship.queryOptions(void 0===e?t.skipToken:{shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShipWay",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let l=(0,g.useTRPC)(),u=function({queries:e,...l}){let u=(0,i.useQueryClient)(void 0),p=(0,s.useIsRestoring)(),m=(0,a.useQueryErrorResetBoundary)(),g=!1!==l.subscribed,y=o.useMemo(()=>e.map(e=>{let t=u.defaultQueryOptions(e);return t._optimisticResults=p?"isRestoring":g?"optimistic":void 0,t}),[e,u,p,g]);y.forEach(e=>{(0,r.ensureSuspenseTimers)(e);let t=u.getQueryCache().get(e.queryHash);(0,n.ensurePreventErrorBoundaryRetry)(e,m,t)}),(0,n.useClearResetErrorBoundary)(m);let[f]=o.useState(()=>new h(u,y,l)),[x,b,v]=f.getOptimisticResult(y,l.combine),w=!p&&g;o.useSyncExternalStore(o.useCallback(e=>w?f.subscribe(d.notifyManager.batchCalls(e)):t.noop,[f,w]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),o.useEffect(()=>{f.setQueries(y,l)},[y,l,f]);let k=x.some((e,t)=>(0,r.shouldSuspend)(y[t],e))?x.flatMap((e,t)=>{let i=y[t];if(i&&(0,r.shouldSuspend)(i,e)){let e=new c.QueryObserver(u,i);return(0,r.fetchOptimistic)(i,e,m)}return[]}):[];if(k.length>0)throw Promise.all(k);let C=x.find((e,t)=>{let i=y[t];return i&&(0,n.getHasError)({result:e,errorResetBoundary:m,throwOnError:i.throwOnError,query:u.getQueryCache().get(i.queryHash),suspense:i.suspense})});if(C)throw C.error;return b(v())}({queries:e.map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of u)e.data&&p.set(e.data.id,e.data);return p}],53573)},84156,e=>{"use strict";e.s(["isUnclaimedPromptOut",0,function(e){return null!==e.startingPrompt&&!e.startingPrompt.isClaimed}])}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75043,e=>{"use strict";var t=e.i(56420);let n={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};n.node;let i=(0,t.default)(n);e.s(["default",0,i])},35056,e=>{"use strict";var t=e.i(75043);e.s(["CircleHelp",()=>t.default])},44594,e=>{"use strict";var t=e.i(56420);let n={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};n.node;let i=(0,t.default)(n);e.s(["Inbox",0,i],44594)},18964,e=>{"use strict";var t=e.i(56420);let n={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"}]]};n.node;let i=(0,t.default)(n);e.s(["ListChecks",0,i],18964)},60011,e=>{"use strict";var t=e.i(56420);let n={name:"shapes",size:24,node:[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]};n.node;let i=(0,t.default)(n);e.s(["Shapes",0,i],60011)},86875,e=>{"use strict";var t=e.i(56420);let n={name:"ship-wheel",size:24,node:[["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}],["path",{d:"M12 2v7.5",key:"1e5rl5"}],["path",{d:"m19 5-5.23 5.23",key:"1ezxxf"}],["path",{d:"M22 12h-7.5",key:"le1719"}],["path",{d:"m19 19-5.23-5.23",key:"p3fmgn"}],["path",{d:"M12 14.5V22",key:"dgcmos"}],["path",{d:"M10.23 13.77 5 19",key:"qwopd4"}],["path",{d:"M9.5 12H2",key:"r7bup8"}],["path",{d:"M10.23 10.23 5 5",key:"k2y7lj"}],["circle",{cx:"12",cy:"12",r:"2.5",key:"ix0uyj"}]]};n.node;let i=(0,t.default)(n);e.s(["ShipWheel",0,i],86875)},66787,e=>{"use strict";var t=e.i(56420);let n={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};n.node;let i=(0,t.default)(n);e.s(["TriangleAlert",0,i],66787)},63676,e=>{"use strict";var t=e.i(14387);e.s(["X",()=>t.default])},36135,e=>{"use strict";var t=e.i(43476),n=e.i(18566),i=e.i(71645),s=e.i(35056),r=e.i(83140),a=e.i(44594),o=e.i(18964),u=e.i(7921),l=e.i(66794),d=e.i(60011),c=e.i(49287),p=e.i(86875),f=e.i(66787),h=e.i(22016),g=e.i(94859),m=e.i(66390),v=e.i(31513),x=e.i(57957);let y="relative flex h-(--size-control) items-center gap-2.5 rounded-md px-2.5 text-body text-muted-foreground transition-colors duration-(--duration-fast) hover:bg-accent hover:text-foreground aria-[current=page]:bg-accent aria-[current=page]:font-medium aria-[current=page]:text-foreground max-lg:justify-center max-lg:px-0 [&_svg]:size-(--size-icon) [&_svg]:shrink-0";function b({href:e,label:n,icon:i,isActive:s,testId:r,count:a}){return(0,t.jsxs)(h.default,{href:e,"aria-current":s?"page":void 0,"data-testid":r,className:y,children:[i,(0,t.jsx)("span",{className:"grow max-lg:sr-only",children:n}),a]})}function w({count:e,testId:n="nav-inbox-count"}){return void 0===e||0===e?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.Badge,{variant:"count","data-testid":n,className:"max-lg:sr-only",children:[e,(0,t.jsx)("span",{className:"sr-only",children:" open"})]}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-1.5 right-4 size-1.5 rounded-full bg-primary lg:hidden"})]})}function S({count:e}){return void 0===e||0===e?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.Badge,{variant:"count-neutral","data-testid":"nav-needs-crew-count",className:"max-lg:sr-only",children:[e,(0,t.jsx)("span",{className:"sr-only",children:" need crew"})]}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-1.5 right-4 size-1.5 rounded-full bg-muted-foreground lg:hidden"})]})}function C({count:e,testId:n="nav-attention-count"}){return void 0===e||0===e?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(m.Badge,{variant:"count-attention","data-testid":n,className:"max-lg:sr-only",children:[e,(0,t.jsx)("span",{className:"sr-only",children:" need attention"})]}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-1.5 right-4 size-1.5 rounded-full bg-tone-attention-fg lg:hidden"})]})}function k({active:e,questionsCount:n,inboxCount:i,attentionCount:h,needsCrewCount:m,hasSquadrons:j=!1,hasTrierarchs:R=!1,trierarchsCount:O,hasNetwork:T=!1,hasSettings:q=!1,...N}){return(0,t.jsxs)("aside",{"data-slot":"sidebar",className:"sticky top-0 hidden h-dvh w-(--size-rail) shrink-0 flex-col border-r border-border bg-sidebar text-sidebar-foreground sm:flex lg:w-(--size-sidebar)",children:[(0,t.jsxs)("div",{className:"flex h-(--size-header) items-center gap-2.5 px-4 max-lg:justify-center max-lg:px-0",children:[(0,t.jsx)(g.Avatar,{kind:"app",size:28}),(0,t.jsxs)("div",{className:"flex flex-col max-lg:sr-only",children:[(0,t.jsx)("span",{className:"text-body font-semibold text-foreground",children:"Aeolus"}),(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:"Operator console"})]})]}),(0,t.jsxs)("nav",{"aria-label":"Console",className:"flex grow flex-col gap-0.5 px-2.5 py-2",children:[(0,t.jsx)(b,{href:"/",label:"Fleet overview",icon:(0,t.jsx)(c.Ship,{"aria-hidden":!0}),isActive:"overview"===e,testId:"nav-overview"}),(0,t.jsx)(b,{href:"/needs-crew",label:"Needs crew",icon:(0,t.jsx)(o.ListChecks,{"aria-hidden":!0}),isActive:"needs-crew"===e,testId:"nav-needs-crew",count:(0,t.jsx)(S,{count:m})}),j&&(0,t.jsx)(b,{href:"/squadrons",label:"Squadrons",icon:(0,t.jsx)(d.Shapes,{"aria-hidden":!0}),isActive:"squadrons"===e,testId:"nav-squadrons"}),R&&(0,t.jsx)(b,{href:"/trierarchs",label:"Trierarchs",icon:(0,t.jsx)(p.ShipWheel,{"aria-hidden":!0}),isActive:"trierarchs"===e,testId:"nav-trierarchs",count:(0,t.jsx)(C,{count:O,testId:"nav-trierarchs-count"})}),(0,t.jsx)(b,{href:"/questions",label:"Questions",icon:(0,t.jsx)(s.CircleHelp,{"aria-hidden":!0}),isActive:"questions"===e,testId:"nav-questions",count:(0,t.jsx)(w,{count:n,testId:"nav-questions-count"})}),(0,t.jsx)(b,{href:"/inbox",label:"Operator inbox",icon:(0,t.jsx)(a.Inbox,{"aria-hidden":!0}),isActive:"inbox"===e,testId:"nav-inbox",count:(0,t.jsx)(w,{count:i})}),(0,t.jsx)(b,{href:"/needs-attention",label:"Needs attention",icon:(0,t.jsx)(f.TriangleAlert,{"aria-hidden":!0}),isActive:"attention"===e,testId:"nav-attention",count:(0,t.jsx)(C,{count:h})})]}),(0,t.jsxs)("div",{className:"px-2.5 pb-2",children:[T&&(0,t.jsx)(b,{href:"/network",label:"Network",icon:(0,t.jsx)(u.Network,{"aria-hidden":!0}),isActive:"network"===e,testId:"nav-network"}),q&&(0,t.jsx)(b,{href:"/settings",label:"Settings",icon:(0,t.jsx)(l.Settings,{"aria-hidden":!0}),isActive:"settings"===e,testId:"nav-settings"}),(0,t.jsxs)("a",{href:v.SOURCE_URL,target:"_blank",rel:"noreferrer","data-testid":"nav-source",className:y,children:[(0,t.jsx)(r.CodeXml,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"grow max-lg:sr-only",children:"Source on GitHub"}),(0,t.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]})]}),(0,t.jsx)("div",{className:"border-t border-border p-2.5",children:(0,t.jsx)(x.AccountMenu,{...N})})]})}var j=e.i(90063);function R({href:e,label:n,icon:i,isActive:s,testId:r,count:a}){let o=a?.value!==void 0&&a.value>0;return(0,t.jsxs)(h.default,{href:e,"aria-current":s?"page":void 0,"data-testid":r,className:"flex grow flex-col items-center justify-center gap-1 text-micro text-muted-foreground outline-none focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring aria-[current=page]:font-medium aria-[current=page]:text-primary [&_svg]:size-(--size-icon-tab)",children:[(0,t.jsxs)("span",{className:"relative",children:[i,o?(0,t.jsxs)("span",{"data-testid":`${r}-count`,className:(0,j.classNames)("absolute -top-1.5 -right-2 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-micro font-semibold tabular-nums","primary"===a.tone?"bg-primary text-primary-foreground":"bg-destructive text-destructive-foreground"),children:[a.value,(0,t.jsxs)("span",{className:"sr-only",children:[" ",a.words]})]}):null]}),n]})}function O({active:e,questionsCount:n,inboxCount:i,attentionCount:r,hasSquadrons:o=!1,hasTrierarchs:u=!1,trierarchsCount:l}){return(0,t.jsxs)("nav",{"aria-label":"Console","data-slot":"tab-bar",className:"fixed inset-x-0 bottom-0 z-40 flex min-h-(--size-tabbar) border-t border-border bg-background pb-[env(safe-area-inset-bottom)] sm:hidden",children:[(0,t.jsx)(R,{href:"/",label:"Fleet",icon:(0,t.jsx)(c.Ship,{"aria-hidden":!0}),isActive:"fleet"===e,testId:"tab-fleet"}),o&&(0,t.jsx)(R,{href:"/squadrons",label:"Squadrons",icon:(0,t.jsx)(d.Shapes,{"aria-hidden":!0}),isActive:"squadrons"===e,testId:"tab-squadrons"}),u&&(0,t.jsx)(R,{href:"/trierarchs",label:"Trierarchs",icon:(0,t.jsx)(p.ShipWheel,{"aria-hidden":!0}),isActive:"trierarchs"===e,testId:"tab-trierarchs",count:{value:l,tone:"attention",words:"silent"}}),(0,t.jsx)(R,{href:"/questions",label:"Questions",icon:(0,t.jsx)(s.CircleHelp,{"aria-hidden":!0}),isActive:"questions"===e,testId:"tab-questions",count:{value:n,tone:"primary",words:"open"}}),(0,t.jsx)(R,{href:"/inbox",label:"Inbox",icon:(0,t.jsx)(a.Inbox,{"aria-hidden":!0}),isActive:"inbox"===e,testId:"tab-inbox",count:{value:i,tone:"primary",words:"open"}}),(0,t.jsx)(R,{href:"/needs-attention",label:"Attention",icon:(0,t.jsx)(f.TriangleAlert,{"aria-hidden":!0}),isActive:"attention"===e,testId:"tab-attention",count:{value:r,tone:"attention",words:"need attention"}})]})}function T({nav:e,account:n,children:i}){return(0,t.jsxs)("div",{className:"flex min-h-dvh bg-background",children:[(0,t.jsx)(k,{active:e.active,questionsCount:e.questionsCount,inboxCount:e.inboxCount,attentionCount:e.attentionCount,needsCrewCount:e.needsCrewCount,hasSquadrons:e.hasSquadrons,hasTrierarchs:e.hasTrierarchs,trierarchsCount:e.trierarchsCount,hasNetwork:e.hasNetwork,hasSettings:e.hasSettings,...n}),(0,t.jsx)("div",{className:"flex min-w-0 grow flex-col",children:i}),(0,t.jsx)(O,{active:"overview"===e.active||"needs-crew"===e.active?"fleet":"settings"===e.active||"network"===e.active?void 0:e.active,hasSquadrons:e.hasSquadrons,hasTrierarchs:e.hasTrierarchs,trierarchsCount:e.trierarchsCount,questionsCount:e.questionsCount,inboxCount:e.inboxCount,attentionCount:e.attentionCount})]})}var q=e.i(17540),N=e.i(90262),I=e.i(93903),P=e.i(5387),M=e.i(86165),A=e.i(48695),E=e.i(84294);let F=(0,q.lazyDialog)(()=>e.A(83204).then(e=>e.CommandPalette),e=>e.isOpen);function D({isOpen:e,onOpenChange:s,onCompose:r}){let a=(0,n.useRouter)(),o=(0,P.useFleetSnapshot)(),u=(0,M.useHasSquadrons)(),l=(0,A.useSquadrons)(),d=(0,A.useCatalogue)(),c=(0,N.useAccess)();return(0,i.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),s(!0))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[s]),(0,t.jsx)(F,{isOpen:e,onOpenChange:s,items:(0,I.allowedPaletteItems)((0,I.paletteItemsOf)(o.data??[],u?{squadrons:l.data??[],blueprints:(0,E.blueprintChoices)(d.data??{blueprints:[]})}:void 0),c),onSelect:e=>{switch(e.kind){case"ship":case"page":case"squadron":case"squadron-action":case"blueprint":a.push(e.href);return;case"action":"compose"===e.id?r():"form-squadron"===e.id?a.push("/squadrons?form=new"):a.push("/?commission=new")}}})}var L=e.i(65041),z=e.i(54616),H=e.i(66027),B=e.i(12598),Q=e.i(41880),K=e.i(32150),$=e.i(27702);function U(e){return e.split(/[?#]/)[0]??e}function _(e){let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","hidden","style"]}),window.addEventListener("resize",e),()=>{t.disconnect(),window.removeEventListener("resize",e)}}let V="(width < 40rem)";function G(e){let t=window.matchMedia(V);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}function W(){let e=(0,$.useTRPC)(),t=(0,n.useRouter)(),i=(0,n.usePathname)(),s=(0,B.useQueryClient)(),r=(0,H.useQuery)(e.console.guide.queryOptions()),a=e.console.guide.queryKey(),o=(0,z.useMutation)(e.console.recordGuideProgress.mutationOptions({onMutate:e=>{s.setQueryData(a,t=>t?{...t,progress:e}:t)},onError:()=>{(0,Q.showToast)({title:"Couldn’t keep your place in the tour",description:"The server did not answer. Try again.",tone:"error"})},onSettled:()=>s.invalidateQueries({queryKey:a})})),{track:u}=(0,K.useAnalytics)(),l=r.data?.steps??[],d=r.data?.progress.step??0,c=function(e){if(e?.progress.state!=="open")return;let t=e.steps[e.progress.step];return void 0===t?void 0:{step:t,index:e.progress.step,total:e.steps.length}}(r.data??void 0),p=e=>{o.mutate(e);let n=l[e.step];"open"===e.state&&void 0!==n&&U(n.path)!==i&&t.push(n.path)},f=e=>{p({step:e,state:"open"}),u({name:"tour_step_reached",step:e+1,total:l.length})};return{view:c,onBack:()=>{f(Math.max(d-1,0))},onNext:()=>{f(Math.min(d+1,l.length-1))},onSkip:()=>{p({step:d,state:"skipped"}),u({name:"tour_skipped",step:d+1})},onFinish:()=>{p({step:d,state:"finished"}),u({name:"tour_finished"})},onTakeTour:0===l.length?void 0:()=>{p({step:0,state:"open"})}}}var Y=e.i(15905),X=e.i(6734);function J({index:e,total:n,onBack:i,onNext:s,onSkip:r,onFinish:a,children:o}){let u=e===n-1;return(0,t.jsxs)("div",{className:"flex w-80 max-w-[calc(100vw-2rem)] flex-col gap-2 p-4",children:[(0,t.jsxs)("p",{className:"text-caption text-muted-foreground","data-testid":"tour-step-count",children:[e+1," of ",n]}),o,(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[u?null:(0,t.jsx)(Y.Button,{size:"sm",variant:"ghost","data-testid":"tour-step-skip",onClick:r,children:"Skip"}),(0,t.jsx)("span",{className:"grow"}),0===e?null:(0,t.jsx)(Y.Button,{size:"sm","data-testid":"tour-step-back",onClick:i,children:"Back"}),u?(0,t.jsx)(Y.Button,{size:"sm",variant:"primary","data-testid":"tour-step-finish",onClick:a,children:"Finish"}):(0,t.jsx)(Y.Button,{size:"sm",variant:"primary","data-testid":"tour-step-next",onClick:s,children:"Next"})]})]})}function Z(e){let{title:n,text:i,anchor:s,side:r}=e;return null===s?(0,t.jsx)("div",{role:"dialog","aria-labelledby":"tour-step-title","aria-describedby":"tour-step-text","data-testid":"tour-step","data-placement":"centred",className:"fixed top-1/2 left-1/2 z-50 -translate-1/2 rounded-xl border border-border bg-popover text-popover-foreground shadow-lg",children:(0,t.jsxs)(J,{...e,children:[(0,t.jsx)("h2",{id:"tour-step-title",className:"text-body font-semibold text-foreground",children:n}),(0,t.jsx)("p",{id:"tour-step-text",className:"text-body text-muted-foreground",children:i})]})}):(0,t.jsx)(X.Popover,{open:!0,modal:!1,children:(0,t.jsx)(X.PopoverContent,{anchor:s,side:r,"data-testid":"tour-step","data-placement":"anchored",children:(0,t.jsxs)(J,{...e,children:[(0,t.jsx)(X.PopoverTitle,{className:"text-body font-semibold text-foreground",children:n}),(0,t.jsx)(X.PopoverDescription,{className:"text-body text-muted-foreground",children:i})]})})})}function ee(){var e;let s,r,{view:a,onBack:o,onNext:u,onSkip:l,onFinish:d}=W(),c=(e=a?.step,s=(0,n.usePathname)(),r=e?void 0!==e.anchor&&U(e.path)===s?`[data-testid="${e.anchor}"]`:void 0:void 0,(0,i.useSyncExternalStore)(_,()=>void 0===r?null:[...document.querySelectorAll(r)].find(e=>e.getClientRects().length>0)??null,()=>null));(0,i.useLayoutEffect)(()=>{c?.scrollIntoView({block:"center",inline:"nearest"})},[c]);let p=(0,i.useSyncExternalStore)(G,()=>window.matchMedia(V).matches?"top":"bottom",()=>"bottom");return(!function(e){let{track:t}=(0,K.useAnalytics)(),n=(0,i.useRef)(!1),s=void 0!==e,r=e?.index===0;(0,i.useEffect)(()=>{s&&!n.current&&r&&t({name:"tour_started"}),n.current=s},[s,r,t])}(a),a)?(0,t.jsx)(Z,{title:a.step.title,text:a.step.text,index:a.index,total:a.total,anchor:c,side:p,onBack:o,onNext:u,onSkip:l,onFinish:d}):null}var et=e.i(10818),en=e.i(63676);function ei({notice:e,onDismiss:n,onSignOut:i}){return(0,t.jsxs)("div",{role:"status","data-testid":"notice","data-notice-id":e.id,className:"flex items-start gap-2 border-b border-border bg-muted px-8 py-2.5 max-sm:px-4",children:[(0,t.jsx)(et.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0 text-muted-foreground"}),(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-wrap items-baseline gap-x-3 gap-y-1",children:[(0,t.jsx)("p",{className:"text-meta text-foreground",children:e.text}),e.links.map(e=>!0===e.isSignOut?(0,t.jsx)("button",{type:"button","data-testid":"notice-link",className:"text-meta font-medium text-foreground underline underline-offset-2",onClick:()=>i?.(e),children:e.label},e.label):(0,t.jsx)("a",{href:e.url,"data-testid":"notice-link",className:"text-meta font-medium text-foreground underline underline-offset-2",children:e.label},e.label))]}),e.isDismissible&&n?(0,t.jsx)(Y.Button,{variant:"ghost",size:"xs",isIconOnly:!0,"aria-label":"Dismiss","data-testid":"notice-dismiss",onClick:n,children:(0,t.jsx)(en.X,{"aria-hidden":!0})}):null]})}var es=e.i(78485);function er(){let{notices:e,onDismiss:n,onSignOut:i}=function(){let e=(0,$.useTRPC)(),t=(0,B.useQueryClient)(),n=(0,H.useQuery)(e.console.notices.queryOptions()),i=(0,z.useMutation)(e.console.dismissNotice.mutationOptions({onSuccess:()=>t.invalidateQueries({queryKey:e.console.notices.queryKey()}),onError:()=>{(0,Q.showToast)({title:"Couldn’t dismiss the notice",description:"The server did not answer. Try again.",tone:"error"})}})),{signOut:s}=(0,es.useSignOut)();return{notices:n.data??[],onDismiss:e=>{i.mutate({noticeId:e})},onSignOut:e=>{s(e.url??"/sign-in",()=>{(0,Q.showToast)({title:"Couldn’t sign out",description:"The server did not answer. You are still signed in.",tone:"error"})})}}}();return 0===e.length?null:(0,t.jsx)("div",{"data-testid":"notices",children:e.map(e=>(0,t.jsx)(ei,{notice:e,onDismiss:()=>{n(e.id)},onSignOut:i},e.id))})}var ea=e.i(87600),eo=e.i(95014),eu=e.i(25242),el=e.i(3979),ed=e.i(87964),ec=e.i(86413),ep=e.i(28459),ef=e.i(96676),eh=e.i(42454);e.s(["SignedInLayout",0,function({children:e}){let s=function(e){let t=(0,$.useTRPC)(),n=(0,B.useQueryClient)(),i=(0,H.useQuery)(t.console.account.queryOptions()),s=(0,ea.useHostedAccountUrl)(),{themes:r}=(0,eu.useConsoleConstants)(),a=W(),o=(0,el.usePluginNav)(),u=(0,z.useMutation)(t.console.setTheme.mutationOptions({onMutate:({theme:e})=>{(0,eo.applyTheme)(e),n.setQueryData(t.console.account.queryKey(),t=>t?.kind!=="operator"?t:{...t,theme:e})},onError:()=>{(0,Q.showToast)({title:"Couldn’t save the theme",description:"It applies here until the page reloads.",tone:"error"})}})),{signOut:l,isSigningOut:d}=(0,es.useSignOut)(),c=()=>{l("/sign-in",()=>{(0,Q.showToast)({title:"Couldn’t sign out",description:"The server did not answer. You are still signed in.",tone:"error",action:{label:"Try again",onClick:c}})})};return{...o.hasSettings?{settingsHref:"/settings"}:{},...o.hasNetwork?{networkHref:"/network"}:{},account:i.data,themes:r,onThemeChange:e=>{u.mutate({theme:e})},onSignOut:c,isSigningOut:d,now:e,...void 0===s?{}:{accountUrl:s},...void 0===a.onTakeTour?{}:{onTakeTour:a.onTakeTour}}}((0,ef.useNow)()),r=(0,N.useAccess)(),a=(0,eh.useOpenQuestionCount)(),o=(0,ec.useOpenInboxCount)(),u=(0,ep.useAttentionCount)(),l=(0,el.usePluginNav)(),d=(0,ed.destinationOf)((0,n.usePathname)()),[c,p]=(0,i.useState)(!1),[f,h]=(0,i.useState)(!1),g=()=>{p(!0)};return(0,t.jsxs)(ed.ConsoleFrameContext,{value:{account:s,onCompose:r.canSend?g:void 0,onSearch:()=>{h(!0)},banner:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(er,{}),(0,t.jsx)(ee,{})]})},children:[(0,t.jsx)(T,{nav:{active:d,questionsCount:a,inboxCount:o,attentionCount:u,...l},account:s,children:e}),(0,t.jsx)(L.ComposeMessage,{isOpen:c,onOpenChange:p}),(0,t.jsx)(D,{isOpen:f,onOpenChange:h,onCompose:g})]})}],36135)},66390,e=>{"use strict";var t=e.i(76782),n=e.i(52245),i=e.i(25913),s=e.i(90063);let r=(0,i.cva)("inline-flex w-fit shrink-0 items-center justify-center gap-1.5 border font-medium whitespace-nowrap [&>svg]:pointer-events-none [&>svg]:size-(--size-icon-sm)",{variants:{variant:{secondary:"h-5.5 rounded-sm border-transparent bg-secondary px-1.5 text-caption text-secondary-foreground",outline:"h-5.5 rounded-sm border-border bg-transparent px-1.5 text-caption text-foreground",type:"h-5.5 rounded-sm border-transparent bg-secondary px-1.5 font-mono text-id text-foreground",kind:"h-5.5 rounded-sm border-transparent bg-highlight px-1.5 font-mono text-id text-primary",count:"h-5 min-w-5 rounded-full border-transparent bg-primary px-1.5 text-micro font-semibold text-primary-foreground tabular-nums","count-neutral":"h-5 min-w-5 rounded-full border-transparent bg-secondary px-1.5 text-micro font-semibold text-foreground tabular-nums","count-attention":"h-5 min-w-5 rounded-full border-tone-attention-border bg-tone-attention-bg px-1.5 text-micro font-semibold text-tone-attention-fg tabular-nums"}},defaultVariants:{variant:"secondary"}});e.s(["Badge",0,function({className:e,variant:i,render:a,...o}){var u;return u={defaultTagName:"span",props:(0,t.mergeProps)({className:(0,s.classNames)(r({variant:i}),e)},o),render:a,state:{slot:"badge",variant:i}},(0,n.useRenderElement)(u.defaultTagName??"div",u,u)}],66390)},6734,e=>{"use strict";var t=e.i(43476);e.s([],58421),e.i(58421);var n=e.i(71645),i=e.i(96499),s=e.i(17989),r=e.i(46420),a=e.i(33332);let o=n.createContext(void 0);function u(e){let t=n.useContext(o);if(void 0===t&&!e)throw Error((0,a.default)(47));return t}var l=e.i(74080),d=e.i(26352),c=e.i(39957),p=e.i(56789),f=e.i(56434),h=e.i(18478),g=e.i(64111),m=e.i(16786),v=e.i(90627),x=e.i(38396);let y={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class b extends d.ReactStore{constructor(e,t,n){const i=new v.PopupTriggerMap;super(w(e,i,t,n),S(i),y)}setOpen=(e,t)=>{let n,i=t.reason===f.REASONS.triggerHover,s=t.reason===f.REASONS.triggerPress&&0===t.event.detail,r=!e&&(t.reason===f.REASONS.escapeKey||null==t.reason),a=(0,g.attachPreventUnmountOnClose)(t),o=this.select("activeTriggerId");if(e||t.reason!==f.REASONS.closePress||null!=t.trigger||null==o||(t.trigger=this.context.triggerElements.getById(o)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let u=()=>{let n=(0,g.createPopupOpenState)(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};i?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(x.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),l.flushSync(u)):u(),s?n="click":r?n="dismiss":t.reason===f.REASONS.focusOut&&(n="focus"),this.set("instantType",n)}}function w(e,t,n,i=!1){let s={...(0,m.createInitialPopupStoreState)(t,n,i),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return s.open&&e?.mounted===void 0&&(s.mounted=!0),s}function S(e){return{popupRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:n.createRef(),beforeContentFocusGuardRef:n.createRef(),stickIfOpenTimeout:new c.Timeout,triggerElements:e}}var C=e.i(75606);let k=(0,i.fastComponent)(function({props:e}){var i;let s,{children:r,open:a,defaultOpen:u=!1,onOpenChange:l,onOpenChangeComplete:d,modal:c=!1,handle:p,triggerId:h,defaultTriggerId:m=null}=e,v=(i={modal:c,open:u,openProp:a,activeTriggerId:m,triggerIdProp:h},s=(0,g.usePopupRootStore)((e,t)=>new b(i,e,t)),n.useEffect(()=>s.context.stickIfOpenTimeout.disposeEffect(),[s]),s);v.useControlledProp("openProp",a),v.useControlledProp("triggerIdProp",h);let x=v.useState("open"),y=v.useState("mounted"),w=v.useState("payload");v.useContextCallback("onOpenChange",l),v.useContextCallback("onOpenChangeComplete",d),(0,g.usePopupRootSync)(v,x),(0,g.useImplicitActiveTrigger)(v);let{forceUnmount:S}=(0,g.useOpenStateTransitions)(x,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:c}),n.useEffect(()=>{x||v.context.stickIfOpenTimeout.clear()},[v,x]),n.useImperativeHandle(e.actionsRef,()=>({unmount:S,close:()=>v.setOpen(!1,(0,C.createChangeEventDetails)(f.REASONS.imperativeAction))}),[S,v]);let k=x||y;return(0,t.jsxs)(o.Provider,{value:v,children:[p&&(0,t.jsx)(g.PopupHandleAttachment,{handle:p,store:v}),k&&(0,t.jsx)(j,{store:v,modal:c}),"function"==typeof r?r({payload:w}):r]})});function j({store:e,modal:t}){let n=e.useState("floatingRootContext"),i=(0,s.useDismiss)(n,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),r=i.reference,a=i.floating;return(0,g.usePopupInteractionProps)(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:a}),null}var R=e.i(40886),O=e.i(79938),T=e.i(52245),q=e.i(50316),N=e.i(85689),I=e.i(72135),P=e.i(88015),M=e.i(52535),A=e.i(59636),E=e.i(46570),F=e.i(32199);let D=(0,i.fastComponentRef)(function(e,i){let{render:s,className:r,style:o,disabled:l=!1,nativeButton:d=!0,handle:c,payload:p,openOnHover:h=!1,delay:m=300,closeDelay:v=0,id:y,...b}=e,w=u(!0),S=(0,A.usePopupHandleStore)(c)??w;if(!S)throw Error((0,a.default)(74));let C=(0,P.useBaseUiId)(y),k=S.useState("isTriggerActive",C),j=S.useState("floatingRootContext"),D=S.useState("isOpenedByTrigger",C),L=S.useState("triggerPopupId",C),z=n.useRef(null),{registerTrigger:H,isMountedByThisTrigger:B}=(0,g.useTriggerDataForwarding)(C,z,S,{payload:p,disabled:l,openOnHover:h,closeDelay:v}),Q=S.useState("openChangeReason"),K=S.useState("stickIfOpen"),$=S.useState("openMethod"),U=S.useState("focusManagerModal"),_=(0,I.useHoverReferenceInteraction)(j,{enabled:!l&&h&&("touch"!==$||Q!==f.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,q.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:z,isActiveTrigger:k,isClosing:()=>"ending"===S.select("transitionStatus")}),V=(0,N.useClick)(j,{stickIfOpen:K}),G=(0,F.useOpenMethodTriggerProps)(()=>S.select("open"),e=>{S.set("openMethod",e)}),W=S.useState("triggerProps",B),{getButtonProps:Y,buttonRef:X}=(0,R.useButton)({disabled:l,native:d}),{preFocusGuardRef:J,handlePreFocusGuardFocus:Z,handleFocusTargetFocus:ee}=(0,E.useTriggerFocusGuards)(S,z),et=(0,T.useRenderElement)("button",e,{state:{disabled:l,open:D},ref:[X,i,H,z],props:[V.reference,_,W,G,{[x.CLICK_TRIGGER_IDENTIFIER]:"",id:C,"aria-haspopup":"dialog","aria-expanded":D,"aria-controls":L},b,Y],stateAttributesMapping:{open:e=>e&&Q===f.REASONS.triggerPress?O.pressableTriggerOpenStateMapping.open(e):O.triggerOpenStateMapping.open(e)}}),en=(0,t.jsx)(n.Fragment,{children:et},C);return B&&!U?(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)(M.FocusGuard,{ref:J,onFocus:Z}),en,(0,t.jsx)(M.FocusGuard,{ref:S.context.triggerFocusTargetRef,onFocus:ee})]}):en});var L=e.i(26674);let z=n.createContext(void 0),H=n.forwardRef(function(e,n){let{keepMounted:i=!1,...s}=e;return u().useState("mounted")||i?(0,t.jsx)(z.Provider,{value:i,children:(0,t.jsx)(L.FloatingPortal,{ref:n,...s})}):null});var B=e.i(44394),Q=e.i(46376);let K=n.createContext(void 0);function $(){let e=n.useContext(K);if(!e)throw Error((0,a.default)(46));return e}var U=e.i(23706),_=e.i(426),V=e.i(22640),G=e.i(89579),W=e.i(33383);let Y=n.forwardRef(function(e,i){let{render:s,className:o,style:l,anchor:d,positionMethod:c,side:p,align:h,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:y,arrowPadding:b,sticky:w,disableAnchorTracking:S=!1,collisionAvoidance:C=x.POPUP_COLLISION_AVOIDANCE,...k}=e,j=u(),R=function(){let e=n.useContext(z);if(void 0===e)throw Error((0,a.default)(45));return e}(),O=(0,r.useFloatingNodeId)(),T=j.useState("floatingRootContext"),q=j.useState("mounted"),N=j.useState("open"),I=j.useState("openChangeReason"),P=j.useState("activeTriggerElement"),M=j.useState("modal"),A=j.useState("openMethod"),E=j.useState("positionerElement"),F=j.useState("instantType"),D=j.useState("transitionStatus"),L=j.useState("adaptiveOrigin"),H=n.useRef(null),$=(0,V.useAnimationsFinished)(E),Y=(0,U.useAnchorPositioning)({anchor:d,floatingRootContext:T,positionMethod:c,mounted:q,side:p,sideOffset:g,align:h,alignOffset:m,arrowPadding:b,collisionBoundary:v,collisionPadding:y,sticky:w,disableAnchorTracking:S,keepMounted:R,nodeId:O,collisionAvoidance:C,adaptiveOrigin:L}),X=T.useState("domReferenceElement");(0,Q.useIsoLayoutEffect)(()=>{let e=H.current;if(X&&(H.current=X),e&&X&&X!==e){j.set("instantType",void 0);let e=new AbortController;return $(()=>{j.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[X,$,j]);let J=!0===M&&I!==f.REASONS.triggerHover;(0,W.useAnchoredPopupScrollLock)(N&&J,"touch"===A,E,P);let Z=j.useStateSetter("positionerElement"),ee={open:N,side:Y.side,align:Y.align,anchorHidden:Y.anchorHidden,instant:F},et=(0,G.usePositioner)(e,ee,{styles:Y.positionerStyles,transitionStatus:D,props:k,refs:[i,Z],hidden:!q,inert:!N});return(0,t.jsxs)(K.Provider,{value:Y,children:[q&&J&&(0,t.jsx)(_.InternalBackdrop,{inert:(0,B.inertValue)(!N),cutout:P}),(0,t.jsx)(r.FloatingNode,{id:O,children:et})]})});var X=e.i(29315),J=e.i(61487),Z=e.i(31157),ee=e.i(37584),et=e.i(73327),en=e.i(96533),ei=e.i(53984),es=e.i(67865);let er=n.createContext(void 0),ea=n.forwardRef(function(e,i){let{render:s,className:r,style:a,initialFocus:o,finalFocus:l,...d}=e,c=u(),p=$(),h=null!=(0,en.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=n.useState(0),i=(0,es.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:n.useMemo(()=>({register:i}),[i]),hasClosePart:e>0}}(),x=c.useState("open"),y=c.useState("openMethod"),b=c.useState("instantType"),w=c.useState("transitionStatus"),S=c.useState("popupProps"),C=c.useState("titleElementId"),k=c.useState("descriptionElementId"),j=c.useState("modal"),R=c.useState("mounted"),q=c.useState("openChangeReason"),N=c.useState("activeTriggerElement"),I=c.useState("floatingRootContext"),P=I.useState("floatingId"),M=c.useState("disabled"),A=c.useState("openOnHover"),E=c.useState("closeDelay");(0,ee.useOpenChangeComplete)({open:x,ref:c.context.popupRef,onComplete(){x&&c.context.onOpenChangeComplete?.(!0)}}),(0,Z.useHoverFloatingInteraction)(I,{enabled:A&&!M,closeDelay:E});let F=void 0===o?(0,g.createDefaultInitialFocus)(c.context.popupRef):o,D=!1!==j&&v;c.useSyncedValue("focusManagerModal",D);let L=c.useStateSetter("popupElement"),z={open:x,side:p.side,align:p.align,instant:b,transitionStatus:w},H=(0,T.useRenderElement)("div",e,{state:z,ref:[i,c.context.popupRef,L],props:[S,{id:P,role:"dialog",...g.FOCUSABLE_POPUP_PROPS,"aria-labelledby":C,"aria-describedby":k,onKeyDown(e){h&&et.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,ei.getDisabledMountTransitionStyles)(w),d],stateAttributesMapping:O.popupTransitionStateMapping});return(0,t.jsx)(J.FloatingFocusManager,{context:I,openInteractionType:y,modal:D,disabled:!R||q===f.REASONS.triggerHover,initialFocus:F,returnFocus:l,restoreFocus:"popup",previousFocusableElement:(0,X.isHTMLElement)(N)?N:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,t.jsx)(er.Provider,{value:m,children:H})})}),eo=n.forwardRef(function(e,t){let{render:n,className:i,style:s,...r}=e,a=u().useState("open"),{arrowRef:o,side:l,align:d,arrowUncentered:c,arrowStyles:p}=$();return(0,T.useRenderElement)("div",e,{state:{open:a,side:l,align:d,uncentered:c},ref:[t,o],props:[{style:p,"aria-hidden":!0},r],stateAttributesMapping:O.popupStateMapping})}),eu=n.forwardRef(function(e,t){let{render:n,className:i,style:s,...r}=e,a=u(),o=a.useState("open"),l=a.useState("mounted"),d=a.useState("transitionStatus"),c=a.useState("openChangeReason");return(0,T.useRenderElement)("div",e,{state:{open:o,transitionStatus:d},ref:t,props:[{role:"presentation",hidden:!l,style:{pointerEvents:c===f.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},r],stateAttributesMapping:O.popupTransitionStateMapping})}),el=n.forwardRef(function(e,t){let{render:n,className:i,style:s,...r}=e,a=u(),o=(0,P.useBaseUiId)(r.id);return a.useSyncedValueWithCleanup("titleElementId",o),(0,T.useRenderElement)("h2",e,{ref:t,props:[{id:o},r]})}),ed=n.forwardRef(function(e,t){let{render:n,className:i,style:s,...r}=e,a=u(),o=(0,P.useBaseUiId)(r.id);return a.useSyncedValueWithCleanup("descriptionElementId",o),(0,T.useRenderElement)("p",e,{ref:t,props:[{id:o},r]})}),ec=n.forwardRef(function(e,t){let i,{render:s,className:r,style:a,disabled:o=!1,nativeButton:l=!0,...d}=e,{buttonRef:c,getButtonProps:p}=(0,R.useButton)({disabled:o,focusableWhenDisabled:!1,native:l}),h=u();return i=n.useContext(er),(0,Q.useIsoLayoutEffect)(()=>i?.register(),[i]),(0,T.useRenderElement)("button",e,{ref:[t,c],props:[{onClick(e){h.setOpen(!1,(0,C.createChangeEventDetails)(f.REASONS.closePress,e.nativeEvent))}},d,p]})});var ep=e.i(18390);let ef=n.forwardRef(function(e,t){let{render:n,className:i,style:s,children:r,...a}=e,o=u(),{side:l}=$(),d=o.useState("instantType"),{children:c,state:p}=(0,ep.usePopupViewport)({store:o,side:l,children:r}),f={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:d};return(0,T.useRenderElement)("div",e,{state:f,ref:t,props:[a,{children:c}],stateAttributesMapping:ep.popupViewportStateMapping})});var eh=e.i(64170);class eg extends eh.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new h.NullStore(Object.freeze(w(void 0,e)),Object.freeze(S(e)),y),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}e.s(["Arrow",0,eo,"Backdrop",0,eu,"Close",0,ec,"Description",0,ed,"Handle",0,eg,"Popup",0,ea,"Portal",0,H,"Positioner",0,Y,"Root",0,function(e){return u(!0)?(0,t.jsx)(k,{props:e}):(0,t.jsx)(r.FloatingTree,{children:(0,t.jsx)(k,{props:e})})},"Title",0,el,"Trigger",0,D,"Viewport",0,ef,"createHandle",0,function(){return new eg}],66914);var em=e.i(66914),em=em,ev=e.i(90063);let ex=em.Trigger,ey=em.Title,eb=em.Description;e.s(["Popover",0,function(e){return(0,t.jsx)(em.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,children:n,anchor:i,side:s="bottom",sideOffset:r=10,align:a="center",...o}){return(0,t.jsx)(em.Portal,{children:(0,t.jsx)(em.Positioner,{anchor:i,align:a,side:s,sideOffset:r,className:"isolate z-50",children:(0,t.jsxs)(em.Popup,{"data-slot":"popover-content",className:(0,ev.classNames)("origin-(--transform-origin) rounded-xl border border-border bg-popover text-popover-foreground shadow-lg duration-(--duration-fast) outline-none data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...o,children:[(0,t.jsx)(em.Arrow,{className:"data-[side=bottom]:-top-1.5 data-[side=left]:-right-1.5 data-[side=right]:-left-1.5 data-[side=top]:-bottom-1.5",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"block size-3 rotate-45 border-t border-l border-border bg-popover in-data-[side=left]:rotate-135 in-data-[side=right]:-rotate-45 in-data-[side=top]:-rotate-135"})}),n]})})})},"PopoverDescription",0,eb,"PopoverTitle",0,ey,"PopoverTrigger",0,ex],6734)},93903,e=>{"use strict";var t=e.i(84294);let n={compose:"canSend",commission:"canManage","form-squadron":"canManage"};e.s(["allowedPaletteItems",0,function(e,t){return e.filter(e=>"action"===e.kind?t[n[e.id]]:"squadron-action"!==e.kind||t.canManage)},"paletteGroups",0,function(e,t){let n=t.trim().toLowerCase(),i=e.filter(e=>""===n?"squadron-action"!==e.kind:("ship"===e.kind?[e.name,e.type]:"squadron"===e.kind?[e.id,e.blueprint]:"squadron-action"===e.kind?[e.squadronId]:"blueprint"===e.kind?[e.name]:[e.label]).some(e=>e.toLowerCase().includes(n))),s=i.filter(e=>"ship"===e.kind);return[{key:"actions",label:"Actions",items:i.filter(e=>"action"===e.kind||"squadron-action"===e.kind)},{key:"ships",label:"Ships",items:""===n?s.slice(0,8):s},{key:"squadrons",label:"Squadrons",items:i.filter(e=>"squadron"===e.kind)},{key:"blueprints",label:"Blueprints",items:i.filter(e=>"blueprint"===e.kind)},{key:"pages",label:"Go to",items:i.filter(e=>"page"===e.kind)}].filter(e=>e.items.length>0)},"paletteItemsOf",0,function(e,n){return[{kind:"action",id:"commission",label:"Commission ship"},...n?[{kind:"action",id:"form-squadron",label:"Form squadron"}]:[],{kind:"action",id:"compose",label:"Compose a message"},...e.filter(e=>"agent"===e.kind&&"retired"!==e.status).map(e=>({kind:"ship",id:e.id,name:e.name,type:e.type,status:e.status,href:`/ships/${e.id}`})),...(n?.squadrons??[]).filter(e=>"disbanded"!==e.state).map(e=>({kind:"squadron",id:e.id,blueprint:e.blueprint.name,state:e.state,href:`/squadrons/${e.id}`})),...(n?.squadrons??[]).filter(e=>"sailing"===e.state).flatMap(e=>[{kind:"squadron-action",id:`add-member:${e.id}`,squadronId:e.id,action:"add-member",label:`Add member to ${e.id}…`,href:`/squadrons/${e.id}?action=add-member`},{kind:"squadron-action",id:`stand-down:${e.id}`,squadronId:e.id,action:"stand-down",label:`Stand down ${e.id}…`,href:`/squadrons/${e.id}?action=stand-down`}]),...(n?.blueprints??[]).map(e=>({kind:"blueprint",id:e.key,name:e.name,version:e.versions[0]?.version??0,href:(0,t.blueprintPath)(e)})),{kind:"page",id:"overview",label:"Fleet overview",href:"/"},...n?[{kind:"page",id:"squadrons",label:"Squadrons",href:"/squadrons"}]:[],{kind:"page",id:"inbox",label:"Operator inbox",href:"/inbox"},{kind:"page",id:"attention",label:"Needs attention",href:"/needs-attention"}]},"paletteKeyOf",0,function(e){return`${e.kind}:${e.id}`}])},65041,49092,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(17540),s=e.i(54616),r=e.i(12598),a=e.i(27702),o=e.i(5387),u=e.i(41880),l=e.i(66027);function d(){let e=(0,a.useTRPC)();return(0,l.useQuery)(e.fleet.limits.queryOptions(void 0,{refetchInterval:6e4}))}e.s(["useFleetLimits",0,d],49092);var c=e.i(87600),p=e.i(16752);let f=(0,i.lazyDialog)(()=>e.A(81489).then(e=>e.ComposeDialog),e=>e.isOpen);e.s(["ComposeMessage",0,function({isOpen:e,onOpenChange:i,replyTo:l,toShipId:h}){let g,m,v,x=(0,o.useFleetSnapshot)(),y=(g=(0,a.useTRPC)(),m=(0,r.useQueryClient)(),(0,s.useMutation)(g.ship.send.mutationOptions({onSuccess:()=>m.invalidateQueries({queryKey:g.fleet.pathKey()})}))),b=d(),w=(0,c.useHostedAccountUrl)(),[S,C]=(0,n.useState)(()=>crypto.randomUUID()),{ships:k,types:j}={ships:v=(x.data??[]).filter(e=>"agent"===e.kind&&"retired"!==e.status),types:[...new Set(v.map(e=>e.type))].sort()};return(0,t.jsx)(f,{isOpen:e,onOpenChange:e=>{e||y.reset(),i(e)},ships:k,types:j,state:y.isPending?"sending":y.isError?"failed":"editing",error:y.error?.message,messageLimit:y.isError?(0,p.messageLimitReached)(b.data):void 0,accountUrl:w,draft:l?{selector:{kind:"ship",shipId:l.sender.id},payload:""}:h&&{selector:{kind:"ship",shipId:h},payload:""},onSend:e=>{y.mutate(function(e,t){let{selector:n,payload:i,inReplyTo:s}=e;return{selector:n,payload:i,contentType:"text/plain",idempotencyKey:t,...void 0===s?{}:{inReplyTo:s}}}({...e,inReplyTo:l?.messageId},S),{onSuccess:()=>{C(crypto.randomUUID()),y.reset(),i(!1),(0,u.showToast)({title:"Message sent",description:"It waits in the inbox until a ship receives it.",tone:"success"})},onError:()=>{b.refetch()}})}})}],65041)},54492,e=>{"use strict";e.s(["crewRequestAction",0,function(e){switch(e.kind){case"none":return;case"needsCrew":return"remove";case"crewedByHand":return"release";case"assigned":return"releasing"===e.status?void 0:"release"}},"crewRequestStage",0,function(e){let t=e.crewRequest;return null===t?{kind:"none"}:null!==t.assignedTo?{kind:"assigned",requestedAt:t.requestedAt,trierarch:t.assignedTo,status:t.status??"crewing",attempt:t.attempt,startedAt:t.startedAt}:null!==t.crewedBy?{kind:"crewedByHand",requestedAt:t.requestedAt,crewedBy:t.crewedBy,since:e.crewedSince??null}:{kind:"needsCrew",requestedAt:t.requestedAt,reason:t.reason}},"isRestartable",0,function(e){return"assigned"===e.kind&&"crashed"===e.status},"releaseSteps",0,function(e){return"crewedByHand"===e.kind?["removeCrewRequest","release"]:["removeCrewRequest"]},"requestedBy",0,function(e){return e.find(e=>"CrewRequested"===e.type)?.actor??null},"restartWords",0,function({status:e,attempt:t}){let n=`${String(t)} ${1===t?"restart":"restarts"}`;switch(e){case"restarting":return`attempt ${String(t)}`;case"crashed":return n;case"running":return 0===t?void 0:n;case"crewing":case"releasing":return}},"statusChangedAt",0,function(e){return e.find(e=>"CrewStatusChanged"===e.type)?.occurredAt}])},86413,e=>{"use strict";var t=e.i(54616),n=e.i(66027),i=e.i(12598),s=e.i(42454),r=e.i(27702);function a(){let e=(0,r.useTRPC)();return(0,n.useQuery)(e.fleet.inbox.queryOptions({filter:"all"}))}function o(e,t){return e.filter(e=>!t.has(e.deliveryId))}function u(e){return"pending"===e.state||"handed"===e.state}function l(e,t){switch(t){case"open":return e.filter(u);case"done":return e.filter(e=>"acknowledged"===e.state);case"all":return[...e]}}function d(){let e=(0,r.useTRPC)(),t=(0,i.useQueryClient)();return()=>t.invalidateQueries({queryKey:e.fleet.pathKey()})}e.s(["filterCounts",0,function(e){return{open:l(e,"open").length,done:l(e,"done").length,all:e.length}},"inboxPathOf",0,function(e){let t=new URLSearchParams;"open"!==e.filter&&t.set("filter",e.filter),void 0!==e.deliveryId&&t.set("message",e.deliveryId);let n=t.toString();return""===n?"/inbox":`/inbox?${n}`},"messagesFor",0,l,"plainMessagesOf",0,o,"readInboxFilter",0,function(e){return"done"===e||"all"===e?e:"open"},"useInbox",0,a,"useMarkDone",0,function(){let e=(0,r.useTRPC)(),n=d();return(0,t.useMutation)(e.fleet.markDone.mutationOptions({onSuccess:n}))},"useMarkRead",0,function(){let e=(0,r.useTRPC)(),n=d();return(0,t.useMutation)(e.fleet.markRead.mutationOptions({onSuccess:n}))},"useOpenInboxCount",0,function(){let e=a().data,t=(0,s.useQuestionDeliveryIds)();return void 0===e||void 0===t?void 0:o(e,t).filter(u).length},"useReply",0,function(){let e=(0,r.useTRPC)(),n=d();return(0,t.useMutation)(e.fleet.reply.mutationOptions({onSuccess:n}))}])},16752,e=>{"use strict";let t=new Intl.NumberFormat("en-US");function n(e){return t.format(e)}function i(e){return`${new Date(e).toISOString().slice(11,16)} UTC`}function s({count:e,limit:t}){return null===t?"none":e<t?"below":e===t?"at":"over"}e.s(["composeRefusedNotice",0,function(e){return{title:"This message wasn’t sent",description:`Your fleet reached its limit of ${n(e.limit)} messages today. Sending works again after the limit resets at ${i(e.resetsAt)}.`}},"hasLimits",0,function(e){return void 0!==e&&(null!==e.ships.limit||null!==e.dailyMessages.limit)},"messageLimitNotice",0,function(e){return{title:"Your fleet reached today’s message limit",description:`It sent ${n(e.limit)} messages today, its daily limit. New messages are refused until the limit resets at ${i(e.resetsAt)}.`}},"messageLimitReached",0,function(e){let t=e?.dailyMessages;return t?.limit!=null&&t.count>=t.limit?{limit:t.limit,resetsAt:t.resetsAt}:void 0},"meterCaption",0,function(e){let{count:t,limit:i}=e;if(null===i)return;let r=s(e);return"below"===r?`${n(i-t)} left`:"at"===r?"Limit reached":`${n(t-i)} over the limit`},"meterCount",0,function(e){return n(e)},"meterState",0,s,"resetTime",0,i,"shipLimitNotice",0,function(e){return{title:"Your fleet is at its ship limit",description:`This fleet can have ${n(e)} ships, so it can’t take a new one. Limits are listed on your account.`}},"shipLimitReached",0,function(e){let t=e?.ships;return t?.limit!=null&&t.count>=t.limit?t.limit:void 0}])},14695,e=>{"use strict";let t=["running","crashed","restarting","crewing","releasing"];e.s(["capacityLine",0,function(e,n){if(void 0===n)return;let i=t=>e.filter(e=>e.status===t).length,s=t.slice(1).flatMap(e=>0===i(e)?[]:[`${String(i(e))} ${e}`]),r=e.length>=n.ships;return[`${String(i("running"))} of ${String(n.ships)} running`,...s,...r?["full"]:[]].join(" · ")},"harnessOptions",0,function(e){let t=e.properties;return"object"!=typeof t||null===t?[]:Object.entries(t).flatMap(([e,t])=>{if("object"!=typeof t||null===t||!("enum"in t)||!Array.isArray(t.enum))return[];let n=t.enum.filter(e=>"string"==typeof e),i="default"in t&&"string"==typeof t.default?t.default:void 0;return[{name:e,values:n,...void 0===i?{}:{defaultValue:i}}]})},"machineLiveness",0,function(e){return"awaitingCrew"===e.status&&null===e.lastSeenAt?"not-started":e.isSilent?"silent":"alive"},"silentCount",0,function(e){return e.filter(e=>e.isSilent).length},"spotsOf",0,function(e,n){return n.flatMap(t=>t.crewRequest?.assignedTo?.id===e.shipId?[{shipId:t.id,name:t.name,status:t.crewRequest.status??"crewing",attempt:t.crewRequest.attempt,startedAt:t.crewRequest.startedAt}]:[]).toSorted((e,n)=>t.indexOf(e.status)-t.indexOf(n.status)||e.name.localeCompare(n.name))},"withWorkspaces",0,function(e,t){return e.map(e=>{let n=t.get(e.shipId);if(null==n)return e;let{workspace:i}=n;return{...e,workspace:"worktree"===i.kind?{name:i.repository,kind:"worktree"}:{name:i.name,kind:"folder"}}})}])},46806,e=>{"use strict";var t=e.i(54616),n=e.i(12598),i=e.i(90262),s=e.i(76580),r=e.i(94070),a=e.i(95187);let o=(0,a.createServerReference)("0053ff3584a9017f773a75c38e21466b0c83412e4b",a.callServer,void 0,a.findSourceMapURL,"connectNetworkingPlugin"),u=(0,a.createServerReference)("4038355680acd8833fe5c7e074dffd8393c5fa17ce",a.callServer,void 0,a.findSourceMapURL,"saveNetworkDeclaration"),l=(0,a.createServerReference)("408840f91a83b0f13aec53677e530887aac4e09d68",a.callServer,void 0,a.findSourceMapURL,"saveNetworkRules");var d=e.i(2660),c=e.i(27702);let p=["networking-plugin","connection"],f=["networking-plugin","network"];function h(){return(0,s.useConsoleRead)({queryKey:p,queryFn:()=>(0,r.fetchConsoleRead)({read:"networking-plugin-connection"})})}function g(){let e=(0,i.useAccess)(),t=h();return e.canEditNetwork&&t.data?.state==="connected"}e.s(["useConnectNetworkingPlugin",0,function(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:async()=>(0,d.dataOf)(await o()),onSuccess:t=>{e.setQueryData(p,t)}})},"useHasNetwork",0,g,"useHasNetworkingPlugin",0,function(){let e=h();return void 0!==e.data&&"none"!==e.data.state},"useNetwork",0,function(){let e=g();return(0,s.useConsoleRead)({queryKey:f,queryFn:()=>(0,r.fetchConsoleRead)({read:"network"}),enabled:e})},"useNetworkingPluginSettings",0,h,"useSaveNetworkDeclaration",0,function(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:async e=>(0,d.dataOf)(await u(e)),onSuccess:t=>{e.setQueryData(f,e=>void 0===e?void 0:{...e,declaration:t.declaration})}})},"useSaveNetworkRules",0,function(){let e=(0,c.useTRPC)(),i=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:async e=>(0,d.dataOf)(await l(e)),onSuccess:async t=>{i.setQueryData(f,e=>void 0===e?void 0:{...e,rules:t.rules}),await i.invalidateQueries({queryKey:e.fleet.explainReach.pathKey()})}})}],46806)},96676,e=>{"use strict";let t;var n=e.i(71645);let i=Date.now(),s=new Set;function r(e){return s.add(e),t??=setInterval(()=>{for(let e of(i=Date.now(),s))e()},1e4),()=>{s.delete(e),0===s.size&&(clearInterval(t),t=void 0)}}function a(){return i}e.s(["useNow",0,function(){return new Date((0,n.useSyncExternalStore)(r,a,a))}])},3979,49841,e=>{"use strict";var t=e.i(90262),n=e.i(5387),i=e.i(54492);function s(e,t){return e.filter(e=>(function(e,t){if("retired"===e.status)return!1;let n=(0,i.crewRequestStage)(e);return t.hasTrierarchs?"needsCrew"===n.kind||"assigned"===n.kind&&"running"!==n.status&&"releasing"!==n.status:"needsCrew"===n.kind&&"awaitingCrew"===e.status})(e,t)).toSorted((e,t)=>(e.crewRequest?.requestedAt??"").localeCompare(t.crewRequest?.requestedAt??""))}let r={crewing:{tone:"active",word:"Crewing"},running:{tone:"ok",word:"Running"},restarting:{tone:"waiting",word:"Restarting"},crashed:{tone:"attention",word:"Crashed"},releasing:{tone:"active",word:"Releasing"}};e.s(["crewRequestKey",0,function(e){return"assigned"===e.kind?e.status:e.kind},"crewRequestKeyWord",0,function(e){return"none"===e?"No request":"needsCrew"===e?"Needs crew":"crewedByHand"===e?"Crewed by hand":r[e].word},"crewRequestKeysOf",0,function(e){return["none","needsCrew","crewedByHand",...e]},"handCrewOf",0,function(e){return null===e.startingPrompt?{kind:"no-prompt"}:e.startingPrompt.isClaimed?{kind:"crew-ended",endedAt:e.awaitingCrewSince}:{kind:"prompt-unclaimed",issuedAt:e.startingPrompt.issuedAt}},"needsCrew",0,s],49841);var a=e.i(46806),o=e.i(86165),u=e.i(14695),l=e.i(265);e.s(["usePluginNav",0,function(){let e=(0,t.useAccess)(),i=(0,o.useHasSquadrons)(),r=(0,l.useHasTrierarchPlugin)(),d=(0,a.useHasNetworkingPlugin)(),c=(0,a.useHasNetwork)(),p=(0,l.useMachines)(),f=(0,n.useFleetSnapshot)();return{...void 0===f.data?{}:{needsCrewCount:s(f.data,{hasTrierarchs:r}).length},hasSquadrons:i,hasTrierarchs:r,...void 0===p.data?{}:{trierarchsCount:(0,u.silentCount)(p.data)},hasNetwork:c,hasSettings:e.canManage&&(i||r||d)}}],3979)},265,e=>{"use strict";var t=e.i(54616),n=e.i(12598),i=e.i(76580),s=e.i(94070),r=e.i(2660),a=e.i(95187);let o=(0,a.createServerReference)("00c56341a319e7ccfc7cac02420676928f09a2fe4f",a.callServer,void 0,a.findSourceMapURL,"connectTrierarchPlugin"),u=(0,a.createServerReference)("40455db84fd0d7a2276ef2c53818a6fc9480002a38",a.callServer,void 0,a.findSourceMapURL,"joinMachine"),l=["trierarch-plugin","connection"];function d(){return(0,i.useConsoleRead)({queryKey:l,queryFn:()=>(0,s.fetchConsoleRead)({read:"trierarch-plugin-connection"})})}function c(){let e=d();return void 0===e.data?e.isError?"not-connected":"unknown":e.data.state}function p(){let e=d();return void 0!==e.data&&"none"!==e.data.state}let f=["trierarch-plugin","machines"],h=e=>["trierarch-plugin","check",JSON.stringify(e)];e.s(["useConnectTrierarchPlugin",0,function(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:async()=>(0,r.dataOf)(await o()),onSuccess:t=>{e.setQueryData(l,t)}})},"useCrewSettingsCheck",0,function(e){let t=(0,n.useQueryClient)(),r=()=>(0,s.fetchConsoleRead)({read:"crew-settings-check",input:{settings:e}});return{...(0,i.useConsoleRead)({queryKey:h(e),queryFn:r,enabled:void 0!==e}),checkNow:()=>t.query({queryKey:h(e),queryFn:r,staleTime:0})}},"useHasTrierarchPlugin",0,p,"useJoinMachine",0,function(){let e=(0,n.useQueryClient)();return(0,t.useMutation)({mutationFn:async e=>(0,r.dataOf)(await u(e)),onSuccess:async()=>{await e.invalidateQueries({queryKey:f})}})},"useMachines",0,function(){let e="connected"===c();return(0,i.useConsoleRead)({queryKey:f,queryFn:()=>(0,s.fetchConsoleRead)({read:"machines"}),refetchInterval:1e4,enabled:e})},"useTrierarchPluginConnection",0,c,"useTrierarchPluginSettings",0,d,"useTrierarchPluginVersion",0,function(){let e=p();return(0,i.useConsoleRead)({queryKey:["console-version","trierarch-plugin"],queryFn:()=>(0,s.fetchConsoleRead)({read:"trierarch-plugin-version"}),enabled:e}).data??void 0}],265)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49655,87255,50092,36604,32297,26391,19647,10001,95925,85627,e=>{"use strict";var t=e.i(56420);let s={name:"alarm-clock",size:24,node:[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]};s.node;let a=(0,t.default)(s);e.s(["AlarmClock",0,a],49655);let r={name:"anchor",size:24,node:[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]]};r.node;let i=(0,t.default)(r);e.s(["Anchor",0,i],87255);let n={name:"circle-arrow-right",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["arrow-right-circle"]};n.node;let l=(0,t.default)(n);e.s(["CircleArrowRight",0,l],50092);let d={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};d.node;let o=(0,t.default)(d);e.s(["CircleCheckBig",0,o],36604);let c={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};c.node;let u=(0,t.default)(c);e.s(["CirclePlay",0,u],32297);let h={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};h.node;let m=(0,t.default)(h);e.s(["CircleDotDashed",0,m],26391);let p={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};p.node;let f=(0,t.default)(p);e.s(["CircleMinus",0,f],19647);let x={name:"flag-off",size:24,node:[["path",{d:"M16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1q158e"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 22V4",key:"1plyxx"}],["path",{d:"M7.656 2H8c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10.347",key:"xj1b71"}]]};x.node;let y=(0,t.default)(x);e.s(["FlagOff",0,y],10001);let g={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};g.node;let b=(0,t.default)(g);e.s(["RotateCcw",0,b],95925);let v={name:"sailboat",size:24,node:[["path",{d:"M10 2v15",key:"1qf71f"}],["path",{d:"M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z",key:"1pxcvx"}],["path",{d:"M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z",key:"5oog16"}]]};v.node;let k=(0,t.default)(v);e.s(["Sailboat",0,k],85627)},76561,e=>{"use strict";var t=e.i(56420);let s={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};s.node;let a=(0,t.default)(s);e.s(["Archive",0,a],76561)},47211,e=>{"use strict";var t=e.i(56420);let s={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};s.node;let a=(0,t.default)(s);e.s(["Ban",0,a],47211)},71567,41220,e=>{"use strict";var t=e.i(56420);let s={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};s.node;let a=(0,t.default)(s);e.s(["Bot",0,a],71567);let r={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};r.node;let i=(0,t.default)(r);e.s(["Server",0,i],41220)},92150,e=>{"use strict";var t=e.i(56420);let s={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};s.node;let a=(0,t.default)(s);e.s(["Boxes",0,a],92150)},24071,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronLeft",0,a],24071)},67927,e=>{"use strict";var t=e.i(56420);let s={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};s.node;let a=(0,t.default)(s);e.s(["ChevronRight",0,a],67927)},52886,e=>{"use strict";var t=e.i(56420);let s={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"}]]};s.node;let a=(0,t.default)(s);e.s(["CircleDashed",0,a],52886)},16984,e=>{"use strict";var t=e.i(56420);let s={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};s.node;let a=(0,t.default)(s);e.s(["CircleX",0,a],16984)},74544,e=>{"use strict";var t=e.i(56420);let s={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};s.node;let a=(0,t.default)(s);e.s(["Clock",0,a],74544)},36518,e=>{"use strict";var t=e.i(56420);let s={name:"cloud-off",size:24,node:[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};s.node;let a=(0,t.default)(s);e.s(["CloudOff",0,a],36518)},71028,e=>{"use strict";var t=e.i(56420);let s={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};s.node;let a=(0,t.default)(s);e.s(["Gauge",0,a],71028)},81658,e=>{"use strict";var t=e.i(56420);let s={name:"hourglass",size:24,node:[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]};s.node;let a=(0,t.default)(s);e.s(["Hourglass",0,a],81658)},77071,e=>{"use strict";var t=e.i(56420);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,t.default)(s);e.s(["Plus",0,a],77071)},57665,e=>{"use strict";var t=e.i(56420);let s={name:"power",size:24,node:[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]};s.node;let a=(0,t.default)(s);e.s(["Power",0,a],57665)},25398,e=>{"use strict";var t=e.i(56420);let s={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};s.node;let a=(0,t.default)(s);e.s(["RotateCw",0,a],25398)},66595,e=>{"use strict";var t=e.i(56420);let s={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};s.node;let a=(0,t.default)(s);e.s(["Search",0,a],66595)},19759,e=>{"use strict";var t=e.i(56420);let s={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"]};s.node;let a=(0,t.default)(s);e.s(["SquarePen",0,a],19759)},94831,e=>{"use strict";var t=e.i(56420);let s={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};s.node;let a=(0,t.default)(s);e.s(["Unplug",0,a],94831)},92870,e=>{"use strict";var t=e.i(56420);let s={name:"user-check",size:24,node:[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};s.node;let a=(0,t.default)(s);e.s(["UserCheck",0,a],92870)},36651,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Kbd",0,function({className:e,...a}){return(0,t.jsx)("kbd",{"data-slot":"kbd",className:(0,s.classNames)("inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-xs border border-border bg-muted px-1.25 font-sans text-micro font-medium text-muted-foreground max-sm:hidden",e),...a})}])},19321,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["Skeleton",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"skeleton","aria-hidden":!0,className:(0,s.classNames)("animate-pulse rounded-sm bg-secondary [animation-duration:var(--duration-pulse)] motion-reduce:animate-none",e),...a})}])},67874,e=>{"use strict";var t=e.i(43476),s=e.i(90063);e.s(["EmptyState",0,function({title:e,description:a,icon:r,action:i,variant:n="page",className:l}){return"section"===n?(0,t.jsxs)("p",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("rounded-lg border border-border px-4 py-3 text-center text-meta text-muted-foreground",l),children:[e,a?(0,t.jsxs)(t.Fragment,{children:[" ",a]}):null]}):"no-results"===n?(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("flex flex-col items-center gap-2.5 rounded-lg border border-border bg-card px-4 py-6 text-center",l),children:[(0,t.jsx)("p",{className:"text-meta text-muted-foreground",children:e}),i]}):(0,t.jsxs)("div",{"data-slot":"empty-state","data-variant":n,className:(0,s.classNames)("flex flex-col items-center gap-3 rounded-lg border border-dashed border-border bg-card px-6 py-10 text-center",l),children:[r?(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-border bg-muted text-muted-foreground [&_svg]:size-(--size-icon-xl)",children:r}):null,(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),a?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:a}):null,i?(0,t.jsx)("div",{className:"mt-1 max-sm:w-full max-sm:[&>*]:w-full",children:i}):null]})}])},17981,e=>{"use strict";var t=e.i(43476),s=e.i(22768),a=e.i(36518),r=e.i(25398),i=e.i(90063),n=e.i(15905);e.s(["InlineError",0,function({title:e,description:l,detail:d,onRetry:o,retryNote:c,variant:u="section",id:h,className:m}){return"field"===u?(0,t.jsxs)("p",{id:h,"data-slot":"inline-error","data-variant":u,className:(0,i.classNames)("flex items-center gap-1.5 text-meta text-destructive-text [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",m),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0}),e]}):"section"===u?(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":u,className:(0,i.classNames)("flex gap-2 rounded-lg border border-tone-attention-border bg-tone-attention-bg p-3 text-tone-attention-fg",m),children:[(0,t.jsx)(s.CircleAlert,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon) shrink-0"}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-body font-medium",children:e}),l?(0,t.jsx)("p",{className:"text-meta text-foreground",children:l}):null,o?(0,t.jsx)(n.Button,{size:"xs",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:o,className:"self-start",children:"Try again"}):null]})]}):(0,t.jsxs)("div",{role:"alert","data-slot":"inline-error","data-variant":u,className:(0,i.classNames)("flex flex-col items-center gap-3 rounded-lg border border-border bg-card px-6 py-10 text-center",m),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-10 items-center justify-center rounded-lg border border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg [&_svg]:size-(--size-icon-xl)",children:(0,t.jsx)(a.CloudOff,{})}),(0,t.jsx)("h2",{className:"text-heading font-semibold text-foreground max-sm:text-heading-touch",children:e}),l?(0,t.jsx)("p",{className:"max-w-96 text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null,d?(0,t.jsx)("code",{className:"rounded-sm border border-border bg-muted px-2 py-0.5 font-mono text-id text-muted-foreground",children:d}):null,o?(0,t.jsxs)("div",{className:"flex items-center gap-2 max-sm:w-full max-sm:flex-col",children:[(0,t.jsx)(n.Button,{size:"sm",icon:(0,t.jsx)(r.RotateCw,{"aria-hidden":!0}),onClick:o,className:"max-sm:w-full",children:"Try again"}),c?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:c}):null]}):null]})}])},95960,e=>{"use strict";var t=e.i(43476),s=e.i(92150),a=e.i(49287),r=e.i(86875),i=e.i(56420);let n={name:"tag-x",size:24,node:[["path",{d:"m16.5 6.5-3.914-3.914A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.43 2.43 0 0 0 3.42 0l1.79-1.79",key:"hu94c9"}],["path",{d:"m16.5 10.5 5 5",key:"1jo8bf"}],["path",{d:"m21.5 10.5-5 5",key:"jzei60"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]};n.node;let l=(0,i.default)(n);var d=e.i(63676),o=e.i(90063),c=e.i(80581);let u={"trierarch-plugin":r.ShipWheel,squadrons:s.Boxes,ship:a.Ship,gone:l};e.s(["LabelChip",0,function({chip:e,onRemove:s,testId:a,className:r,trailing:i,meaning:n}){let l="none"===e.mark?null:u[e.mark],h=`${e.key}=${e.value}`,m=void 0===n?(0,c.chipTitleOf)(e):`${(0,c.chipTitleOf)(e)}. ${n}`;return(0,t.jsxs)("span",{role:"group","aria-label":m,"data-slot":"label-chip","data-testid":a,title:m,className:(0,o.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground","gone"===e.mark?"border-dashed":null,r),children:[null===l?null:(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),i,void 0===s?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${h}`,onClick:s,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(d.X,{"aria-hidden":!0})})]})}],95960)},88393,e=>{"use strict";var t=e.i(43476),s=e.i(90063),a=e.i(19321);function r(e){return Array.from({length:e},(e,t)=>`row-${String(t)}`)}e.s(["LoadingSkeleton",0,function({variant:e,rows:i=4,label:n="Loading",className:l}){return(0,t.jsxs)("div",{role:"status","data-slot":"loading-skeleton","data-variant":e,className:(0,s.classNames)("w-full",l),children:[(0,t.jsx)("span",{className:"sr-only",children:n}),"table"===e?(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-border bg-card shadow-sm",children:[(0,t.jsx)("div",{className:"h-(--size-row-header) border-b border-border bg-muted"}),r(i).map(e=>(0,t.jsxs)("div",{className:"flex h-(--size-row) items-center gap-8 border-b border-border px-4 last:border-0",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-24"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))]}):null,"cards"===e?(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:r(4).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-4",children:[(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-6 w-10"}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-28"})]},e))}):null,"detail"===e?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(a.Skeleton,{className:"h-7 w-48"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(a.Skeleton,{className:"h-5 w-20"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-16 w-full rounded-lg"})]}):null,"list"===e?(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:r(i).map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 border-b border-border px-3.5 py-3 last:border-0",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)(a.Skeleton,{className:"h-3 w-28"}),(0,t.jsx)(a.Skeleton,{className:"h-5 w-16"})]}),(0,t.jsx)(a.Skeleton,{className:"h-2.5 w-44"})]},e))}):null]})}])},63481,e=>{"use strict";var t=e.i(43476),s=e.i(56420);let a={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};a.node;let r=(0,s.default)(a);var i=e.i(71567);let n={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};n.node;let l=(0,s.default)(n),d={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};d.node;let o=(0,s.default)(d),c={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};c.node;let u=(0,s.default)(c),h={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};h.node;let m=(0,s.default)(h);var p=e.i(41220),f=e.i(83035),x=e.i(94831),y=e.i(90063),g=e.i(66616),b=e.i(40798);let v={DEVICE:o,CLOUD:l,SERVER:p.Server,OTHER:u},k={coding:f.SquareTerminal,chat:m,bot:i.Bot,console:r},w={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:s=null,harness:a=null,isCompact:r=!1,size:i="md",className:n}){let l=(0,y.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",w[i],n);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(x.Unplug,{"aria-hidden":!0}),"No session"]});let d=v[e],o=(0,b.locationKindWord)(e),c=null===s?o:`${o} \xb7 ${s}`;if(null!==a){let e=(0,g.harnessKind)(a),r=void 0===e?void 0:k[e],i=(0,g.harnessWord)(a);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:null===s?`${i} \xb7 ${o}`:`${i} \xb7 ${o}: ${s}`,children:[void 0===r?null:(0,t.jsx)(r,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:i}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:o}),null===s?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",s]})]})}return r?(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,title:c,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[o,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:s??o})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:l,children:[(0,t.jsx)(d,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[o,null===s?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:s})]})]})]})}],63481)},78865,e=>{"use strict";var t=e.i(43476),s=e.i(49655),a=e.i(87255),r=e.i(76561),i=e.i(47211),n=e.i(22768),l=e.i(50092),d=e.i(36604),o=e.i(32297),c=e.i(74544),u=e.i(85595),h=e.i(52886),m=e.i(26391),p=e.i(19647),f=e.i(16984),x=e.i(10001),y=e.i(71028),g=e.i(81658),b=e.i(44594),v=e.i(11568),k=e.i(57665),w=e.i(95925),j=e.i(85627),C=e.i(66787),N=e.i(92870),M=e.i(90063),z=e.i(66390);let S={waiting:"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg",active:"border-tone-active-border bg-tone-active-bg text-tone-active-fg",ok:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",attention:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg",ended:"border-tone-ended-border bg-tone-ended-bg text-tone-ended-fg"},R={awaitingCrew:{tone:"waiting",Icon:h.CircleDashed,label:"Awaiting crew"},crewed:{tone:"ok",Icon:N.UserCheck,label:"Crewed"},retired:{tone:"ended",Icon:r.Archive,label:"Retired"},pending:{tone:"waiting",Icon:g.Hourglass,label:"Pending"},received:{tone:"active",Icon:b.Inbox,label:"Received"},handed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed (pulled)"},handedPushed:{tone:"active",Icon:l.CircleArrowRight,label:"Handed"},overdue:{tone:"attention",Icon:s.AlarmClock,label:"Overdue"},acknowledged:{tone:"ok",Icon:u.CircleCheck,label:"Acknowledged"},handled:{tone:"ok",Icon:d.CircleCheckBig,label:"Handled"},notHandled:{tone:"attention",Icon:n.CircleAlert,label:"Not handled"},undeliverable:{tone:"attention",Icon:f.CircleX,label:"Undeliverable"},dismissed:{tone:"ended",Icon:p.CircleMinus,label:"Dismissed"},abandoned:{tone:"ended",Icon:i.Ban,label:"Abandoned"},forming:{tone:"waiting",Icon:m.CircleDotDashed,label:"Forming"},sailing:{tone:"ok",Icon:j.Sailboat,label:"Sailing"},"standing-down":{tone:"active",Icon:a.Anchor,label:"Standing down"},disbanded:{tone:"ended",Icon:x.FlagOff,label:"Disbanded"},"at-limit":{tone:"waiting",Icon:y.Gauge,label:"At limit"},"over-limit":{tone:"attention",Icon:C.TriangleAlert,label:"Over limit"},needsCrew:{tone:"waiting",Icon:c.Clock,label:"Needs crew"},crewedByHand:{tone:"ok",Icon:N.UserCheck,label:"Crewed by hand"},crewing:{tone:"active",Icon:v.LoaderCircle,label:"Crewing"},running:{tone:"ok",Icon:o.CirclePlay,label:"Running"},restarting:{tone:"waiting",Icon:w.RotateCcw,label:"Restarting"},crashed:{tone:"attention",Icon:f.CircleX,label:"Crashed"},releasing:{tone:"active",Icon:k.Power,label:"Releasing"}};e.s(["StatusBadge",0,function({status:e,className:s}){let{tone:a,Icon:r,label:i}=R[e];return(0,t.jsxs)(z.Badge,{variant:"outline","data-slot":"status-badge","data-status":e,className:(0,M.classNames)(S[a],"abandoned"===e?"border-dashed":void 0,s),children:[(0,t.jsx)(r,{"aria-hidden":!0}),i]})},"statusLabel",0,function(e){return R[e].label}])},77880,85538,e=>{"use strict";var t=e.i(43476),s=e.i(67927),a=e.i(66595),r=e.i(19759),i=e.i(22016),n=e.i(15905),l=e.i(36651),d=e.i(90063);let o={live:{label:"Live",dot:"bg-tone-ok-fg"},reconnecting:{label:"Reconnecting",dot:"bg-tone-waiting-fg"},offline:{label:"Offline",dot:"bg-tone-attention-fg"}};function c({state:e,className:s}){let{label:a,dot:r}=o[e];return(0,t.jsxs)("span",{"data-slot":"live-status","data-state":e,"aria-live":"polite",className:(0,d.classNames)("inline-flex items-center gap-1.5 text-meta text-muted-foreground",s),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,d.classNames)("size-2 shrink-0 rounded-full",r)}),a]})}e.s(["Header",0,function({breadcrumb:e,parents:d=[],live:o,onCompose:u,onSearch:h}){return(0,t.jsxs)("header",{"data-slot":"header",className:"sticky top-0 z-30 hidden h-(--size-header) shrink-0 items-center justify-between gap-4 border-b border-border bg-background px-6 sm:flex",children:[(0,t.jsx)("nav",{"aria-label":"Breadcrumb","data-testid":"header-breadcrumb",className:"min-w-0 text-body",children:(0,t.jsxs)("ol",{className:"flex min-w-0 items-center gap-1.5",children:[d.map(e=>(0,t.jsxs)("li",{className:"flex shrink-0 items-center gap-1.5",children:[(0,t.jsx)(i.default,{href:e.href,className:"text-muted-foreground hover:text-foreground hover:underline",children:e.label}),(0,t.jsx)(s.ChevronRight,{"aria-hidden":!0,className:"size-3.5 text-muted-foreground"})]},e.href)),(0,t.jsx)("li",{"aria-current":"page",className:"truncate font-medium text-foreground",children:e})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(c,{state:o}),h?(0,t.jsxs)(n.Button,{size:"sm",icon:(0,t.jsx)(a.Search,{"aria-hidden":!0}),"data-testid":"header-search",className:"w-60 justify-start font-normal text-muted-foreground",onClick:h,children:[(0,t.jsx)("span",{className:"grow text-left",children:"Search ships or jump to"}),(0,t.jsx)(l.Kbd,{children:"⌘K"})]}):null,u?(0,t.jsx)(n.Button,{size:"sm",icon:(0,t.jsx)(r.SquarePen,{"aria-hidden":!0}),"data-testid":"header-compose",onClick:u,children:"Compose"}):null]})]})}],77880);var u=e.i(24071),h=e.i(57957);e.s(["TopBar",0,function({title:e,live:s,actions:r,back:l,account:d,onSearch:o}){let m=o&&!l?o:void 0;return(0,t.jsxs)("header",{"data-slot":"top-bar","data-mode":l?"detail":"root",className:"sticky top-0 z-30 flex h-(--size-header) items-center gap-2.5 border-b border-border bg-background px-4 sm:hidden",children:[l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.default,{href:l.href,className:"-ml-1.5 inline-flex h-(--size-control-touch) shrink-0 items-center gap-0.5 rounded-md pr-2 text-body-touch text-foreground focus-visible:outline-2 focus-visible:outline-ring [&_svg]:size-(--size-icon)",children:[(0,t.jsx)(u.ChevronLeft,{"aria-hidden":!0}),l.label]}),(0,t.jsx)("p",{className:"min-w-0 flex-1 truncate text-center text-body-touch font-semibold text-foreground",children:e})]}):(0,t.jsx)("h1",{className:"truncate text-title-touch font-semibold tracking-tight text-foreground",children:e}),(0,t.jsx)(c,{state:s}),r||m||d&&!l?(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[m?(0,t.jsx)(n.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Search ships or jump to","data-testid":"top-bar-search",onClick:m,children:(0,t.jsx)(a.Search,{"aria-hidden":!0})}):null,r,d&&!l?(0,t.jsx)(h.AccountMenuSheet,{...d}):null]}):null]})}],85538)},66616,e=>{"use strict";var t=e.i(49635);let s={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function a(e){return s[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":a(e)},"harnessDetection",0,function(e,s){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let a=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),s);return`${e.version} \xb7 models confirmed ${"Just now"===a?"just now":a}`},"harnessKind",0,function(e){return s[e]?.kind},"harnessWord",0,a])},18423,e=>{"use strict";var t=e.i(12598),s=e.i(5861),a=e.i(71645),r=e.i(42454),i=e.i(27702);let n=new Set(["FleetInitialised","ShipCommissioned","ShipClaimed","LeaseRevoked","CredentialRevoked","StartingPromptIssued","ShipRetired","DeliveryAcknowledged","DeliveryUndeliverable","ShipReported","CrewRequested","CrewRequestRemoved","CrewAssigned","CrewStatusChanged","CrewRequestExplained","CrewRequestGivenBack","LabelAssigned","LabelUnassigned","LabelRetired"]);async function l(e,t){await e.cancelQueries({queryKey:t,predicate:e=>void 0===e.state.data&&"fetching"===e.state.fetchStatus}),await e.invalidateQueries({queryKey:t})}let d=new Set(["LabelDefined","LabelValuesChanged","LabelRetired","LabelAssigned","LabelUnassigned","LabelDeleted"]),o=new Set(["DeliveryUndeliverable","DeliveryDismissed"]);e.s(["useLiveFleet",0,function(){let e=(0,i.useTRPC)(),c=(0,t.useQueryClient)(),[u,h]=(0,a.useState)(new Set),m=e=>{l(c,e)},p=(0,s.useSubscription)(e.fleet.events.subscriptionOptions({lastEventId:null},{onData:({data:t})=>{var s,a,i;if("resync"===t.kind)return void m(e.fleet.pathKey());let{event:l}=t;for(let t of new Set([l.shipId,l.actorShipId]))null!==t&&(m(e.fleet.ship.queryKey({shipId:t})),m(e.fleet.shipTimeline.queryKey({shipId:t})),m(e.fleet.shipWay.queryKey({shipId:t})));if(null!==l.messageId&&(m(e.fleet.shipMessages.pathKey()),m(e.fleet.shipWay.pathKey()),m(e.fleet.overdue.queryKey()),m(e.fleet.message.queryKey({messageId:l.messageId})),m(e.fleet.inbox.pathKey()),m(r.QUESTIONS_KEY),m(e.fleet.noShipCanTake.queryKey())),s=l.type,o.has(s)&&m(e.fleet.needsAttention.queryKey()),a=l.type,d.has(a)&&m(e.fleet.labels.queryKey()),"NetworkRulesDeclared"===l.type&&m(e.fleet.declaredNetworkRules.queryKey()),i=l.type,!n.has(i))return;m(e.fleet.list.queryKey()),m(e.fleet.noShipCanTake.queryKey());let{shipId:c}=l;"ShipCommissioned"===l.type&&null!==c&&h(e=>new Set([...e,c]))}}));return{live:function(e){switch(e){case"pending":return"live";case"connecting":return"reconnecting";case"idle":case"error":return"offline"}}(p.status),newShipIds:u,error:p.error}}])},40798,e=>{"use strict";let t={DEVICE:"Device",CLOUD:"Cloud",SERVER:"Server",OTHER:"Other"};e.s(["locationKindWord",0,function(e){return t[e]}])},53573,e=>{"use strict";var t=e.i(19273),s=e.i(12598),a=e.i(81384),r=e.i(73664),i=e.i(27001),n=e.i(54440),l=e.i(71645),d=e.i(15823),o=e.i(40143),c=e.i(69230);function u(e,t){let s=new Set(t);return e.filter(e=>!s.has(e))}var h=class extends d.Subscribable{#e;#t;#s;#a;#r;#i;#n;#l;#d;#o=[];constructor(e,t,s){super(),this.#e=e,this.#a=s,this.#s=[],this.#r=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#r.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,s){this.#s=e,this.#a=s,o.notifyManager.batch(()=>{let e=this.#r,s=this.#u(this.#s);s.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let a=s.map(e=>e.observer),r=a.map(e=>e.getCurrentResult()),i=e.length!==a.length,n=a.some((t,s)=>t!==e[s]),l=i||n,d=!!l||r.some((e,s)=>{let a=this.#t[s];return!a||!(0,t.shallowEqualObjects)(e,a)});(l||d)&&(l&&(this.#o=s,this.#r=a),this.#t=r,this.hasListeners()&&(l&&(u(e,a).forEach(e=>{e.destroy()}),u(a,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){let s=this.#u(e),a=s.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),r=s.map(e=>e.defaultedQueryOptions.queryHash);return[a,e=>this.#m(e??a,t,r),()=>this.#p(a,s)]}#p(e,t){let s=new Set;return t.map((a,r)=>{let i=e[r];return a.defaultedQueryOptions.notifyOnChangeProps?i:a.observer.trackResult(i,e=>{s.has(e)||(s.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#m(e,s,a){if(s){let r=this.#d,i=void 0!==a&&void 0!==r&&(r.length!==a.length||a.some((e,t)=>e!==r[t]));return(this.#t!==this.#l||i||s!==this.#n)&&(this.#n=s,this.#l=this.#t,void 0!==a&&(this.#d=a),this.#i=(0,t.replaceEqualDeep)(this.#i,s(e))),this.#i}return e}#f(){return!this.#a?.combine||this.#r.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#u(e){let t=new Map;this.#r.forEach(e=>{let s=e.options.queryHash;if(!s)return;let a=t.get(s);a?a.push(e):t.set(s,[e])});let s=[];return e.forEach(e=>{let a=this.#e.defaultQueryOptions(e),r=t.get(a.queryHash)?.shift()??new c.QueryObserver(this.#e,a);s.push({defaultedQueryOptions:a,observer:r})}),s}#c(e,t){let s=this.#r.indexOf(e);-1!==s&&(this.#t=this.#t.slice(),this.#t[s]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#i,s=e?t:this.#m(this.#p(this.#t,this.#o),this.#a?.combine);(e||t!==s)&&o.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},m=e.i(66027),p=e.i(5387),f=e.i(27702);e.s(["useMessage",0,function(e){let s=(0,f.useTRPC)();return(0,m.useQuery)(s.fleet.message.queryOptions(void 0===e?t.skipToken:{messageId:e}))},"useShip",0,function(e){let s=(0,f.useTRPC)();return(0,m.useQuery)(s.fleet.ship.queryOptions(void 0===e?t.skipToken:{shipId:e},{refetchInterval:p.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,f.useTRPC)();return(0,m.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,f.useTRPC)();return(0,m.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShipWay",0,function(e){let t=(0,f.useTRPC)();return(0,m.useQuery)(t.fleet.shipWay.queryOptions({shipId:e},{refetchInterval:p.LAST_SEEN_REFRESH_MS}))},"useShips",0,function(e){let d=(0,f.useTRPC)(),u=function({queries:e,...d}){let u=(0,s.useQueryClient)(void 0),m=(0,a.useIsRestoring)(),p=(0,r.useQueryErrorResetBoundary)(),f=!1!==d.subscribed,x=l.useMemo(()=>e.map(e=>{let t=u.defaultQueryOptions(e);return t._optimisticResults=m?"isRestoring":f?"optimistic":void 0,t}),[e,u,m,f]);x.forEach(e=>{(0,n.ensureSuspenseTimers)(e);let t=u.getQueryCache().get(e.queryHash);(0,i.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,i.useClearResetErrorBoundary)(p);let[y]=l.useState(()=>new h(u,x,d)),[g,b,v]=y.getOptimisticResult(x,d.combine),k=!m&&f;l.useSyncExternalStore(l.useCallback(e=>k?y.subscribe(o.notifyManager.batchCalls(e)):t.noop,[y,k]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),l.useEffect(()=>{y.setQueries(x,d)},[x,d,y]);let w=g.some((e,t)=>(0,n.shouldSuspend)(x[t],e))?g.flatMap((e,t)=>{let s=x[t];if(s&&(0,n.shouldSuspend)(s,e)){let e=new c.QueryObserver(u,s);return(0,n.fetchOptimistic)(s,e,p)}return[]}):[];if(w.length>0)throw Promise.all(w);let j=g.find((e,t)=>{let s=x[t];return s&&(0,i.getHasError)({result:e,errorResetBoundary:p,throwOnError:s.throwOnError,query:u.getQueryCache().get(s.queryHash),suspense:s.suspense})});if(j)throw j.error;return b(v())}({queries:e.map(e=>d.fleet.ship.queryOptions({shipId:e},{refetchInterval:p.LAST_SEEN_REFRESH_MS}))}),m=new Map;for(let e of u)e.data&&m.set(e.data.id,e.data);return m}],53573)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83035,e=>{"use strict";var t=e.i(56420);let o={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};o.node;let i=(0,t.default)(o);e.s(["SquareTerminal",0,i],83035)},91703,e=>{"use strict";var t=e.i(43476),o=e.i(83035),i=e.i(90063),s=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:r,isWrapped:a=!1,copyValue:n,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:u,copyTestId:p}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(o.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(s.CopyButton,{value:n??r,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":p})]}),(0,t.jsx)("pre",{"data-testid":u,className:(0,i.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",a?"break-all whitespace-pre-wrap":"whitespace-pre"),children:r})]})}])},61966,e=>{"use strict";var t=e.i(43476),o=e.i(89664),i=e.i(8734),s=e.i(71645),r=e.i(15905);e.s(["CopyButton",0,function({value:e,label:a,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:u,"data-testid":p}){let[h,g]=(0,s.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}g(!0),d?.(),setTimeout(()=>{g(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":a,title:l?void 0:a,icon:h?(0,t.jsx)(o.Check,{"aria-hidden":!0}):(0,t.jsx)(i.Copy,{"aria-hidden":!0}),className:u,"data-testid":p,onClick:()=>{m()},children:l?h?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}])},22212,e=>{"use strict";var t=e.i(43476),o=e.i(53753),i=e.i(90063),s=e.i(94945);e.s(["Dialog",0,function(e){return(0,t.jsx)(o.Dialog.Root,{"data-slot":"dialog",...e})},"DialogClose",0,function(e){return(0,t.jsx)(o.Dialog.Close,{"data-slot":"dialog-close",...e})},"DialogContent",0,function({className:e,size:r,children:a,...n}){return(0,t.jsxs)(o.Dialog.Portal,{children:[(0,t.jsx)(o.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:s.dialogSurface.overlay}),(0,t.jsx)(o.Dialog.Popup,{"data-slot":"dialog-content",className:(0,i.classNames)(s.dialogSurface.popup({size:r}),e),...n,children:a})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(o.Dialog.Description,{"data-slot":"dialog-description",className:(0,i.classNames)(s.dialogSurface.description,e),...r})},"DialogFooter",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.classNames)(s.dialogSurface.footer,e),...o})},"DialogHeader",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,i.classNames)(s.dialogSurface.header,e),...o})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(o.Dialog.Title,{"data-slot":"dialog-title",className:(0,i.classNames)(s.dialogSurface.title,e),...r})}])},56478,e=>{"use strict";var t=e.i(43476),o=e.i(66616),i=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:s,testIdPrefix:r,onCopied:a,onCopyFailed:n}){return e.map(({harness:e,line:l})=>(0,t.jsx)(i.CodeBlock,{label:`Crew line, ${(0,o.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,o.harnessWord)(e)} crew line for ${s}`,codeTestId:`${r}-${e}`,copyTestId:`${r}-${e}-copy`,onCopied:a,onCopyFailed:n},e))}])},82532,e=>{"use strict";var t=e.i(43476),o=e.i(22768),i=e.i(10818),s=e.i(25398),r=e.i(71645),a=e.i(49635),n=e.i(31513),l=e.i(15905),d=e.i(91703),c=e.i(22212),u=e.i(94945),p=e.i(19321),h=e.i(56478),g=e.i(17981);let m=`${n.SOURCE_URL}/blob/main/docs/guides/chatgpt.md`;function x({shipName:e,prompt:s,crewLines:a}){let[n,l]=(0,r.useState)(!1),c=()=>{l(!1)},u=()=>{l(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(i.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," If you lose it, get a new one; this one then stops working."]})]}),(0,t.jsx)(d.CodeBlock,{label:`Crew instructions for a chat, for ${e}`,code:s,isWrapped:!0,copyLabel:`Copy the crew instructions for a chat, for ${e}`,codeTestId:"starting-prompt-text",copyTestId:"starting-prompt-copy",onCopied:c,onCopyFailed:u}),(0,t.jsx)(h.CrewLines,{crewLines:a,subject:e,testIdPrefix:"starting-prompt-crew-line",onCopied:c,onCopyFailed:u}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null})]})}e.s(["StartingPromptDialog",0,function(e){let{shipName:o,state:i,prompt:r,crewLines:n,replacesUnclaimed:d,error:h,isOpen:f,onOpenChange:C,onConfirm:j}=e,w="issuing"===i;return(0,t.jsx)(c.Dialog,{open:f,onOpenChange:e=>{w||C(e)},children:(0,t.jsxs)(c.DialogContent,{size:"md","data-testid":"starting-prompt-dialog",className:u.dialogSurface.phoneFullScreen,children:[(0,t.jsxs)(c.DialogHeader,{children:[(0,t.jsxs)(c.DialogTitle,{children:["Starting prompt for ",o]}),(0,t.jsxs)(c.DialogDescription,{children:["Paste the crew instructions into a chat (ChatGPT, Claude chat), or a crew line into Claude Code or Codex with the aeolus plugin. Any earlier prompt for ",o," stops working now."," ",(0,t.jsx)("a",{href:m,target:"_blank",rel:"noreferrer","data-testid":"starting-prompt-chatgpt-guide",className:"underline underline-offset-2",children:"Connect a ChatGPT chat"}),"."]})]}),"error"!==i&&d?(0,t.jsxs)("p",{className:"rounded-lg border border-tone-waiting-border bg-tone-waiting-bg px-3 py-2 text-meta text-tone-waiting-fg",children:["This prompt stops the one issued"," ",(0,t.jsx)("time",{dateTime:d.issuedAt,children:(0,a.shortDateTime)(new Date(d.issuedAt))})," ","working."]}):null,w?(0,t.jsxs)("div",{"aria-busy":!0,className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"sr-only",children:"Issuing a starting prompt..."}),(0,t.jsx)(p.Skeleton,{className:"h-10 w-full rounded-lg"}),(0,t.jsx)(p.Skeleton,{className:"h-40 w-full rounded-lg"})]}):null,"shown"===i&&void 0!==r&&void 0!==n?(0,t.jsx)(x,{shipName:o,prompt:r,crewLines:n}):null,"error"===i?(0,t.jsx)(g.InlineError,{title:"Couldn’t issue a starting prompt",description:`${h??"The server did not answer."} No new secret was created; any earlier prompt still works.`}):null,(0,t.jsxs)(c.DialogFooter,{children:["issuing"===i||"shown"===i?(0,t.jsx)(c.DialogClose,{render:(0,t.jsx)(l.Button,{variant:"primary",disabled:w}),children:"Done"}):null,"error"===i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.DialogClose,{render:(0,t.jsx)(l.Button,{}),children:"Close"}),(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(s.RotateCw,{}),onClick:j,children:"Try again"})]}):null]})]})})}])},66616,e=>{"use strict";var t=e.i(49635);let o={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function i(e){return o[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":i(e)},"harnessDetection",0,function(e,o){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let i=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),o);return`${e.version} \xb7 models confirmed ${"Just now"===i?"just now":i}`},"harnessKind",0,function(e){return o[e]?.kind},"harnessWord",0,i])}]);