@vellumai/web 0.10.11-dev.202607242127.a6bf2b2 → 0.10.11-staging.2

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 (602) hide show
  1. package/dist/assets/{AnimatePresence-3WpfAWHe.js → AnimatePresence-C8APSgIu.js} +3 -3
  2. package/dist/assets/{BundleConfirmPage-CWbsuzua.js → BundleConfirmPage-DU7kUOob.js} +1 -1
  3. package/dist/assets/{Combination-CkAMwkbS.js → Combination-CRZ7Bg3f.js} +1 -1
  4. package/dist/assets/{QueryClientProvider-CMu7CkQU.js → QueryClientProvider-DKhXIxGb.js} +1 -1
  5. package/dist/assets/{a2a-invite-52BziDFy.js → a2a-invite-DkyOrzlM.js} +1 -1
  6. package/dist/assets/{about-page-MVJWU3TB.js → about-page-XGv9RAQu.js} +1 -1
  7. package/dist/assets/account-page-baxQRPzp.js +1 -0
  8. package/dist/assets/{account-shell-BTW_VgZV.js → account-shell-z2p_MG9z.js} +1 -1
  9. package/dist/assets/acp-run-detail-panel-CrZYAG8F.js +5 -0
  10. package/dist/assets/activity-steps-panel-CNHBFP0M.js +1 -0
  11. package/dist/assets/add-credits-modal-C6ACa7dJ.js +1 -0
  12. package/dist/assets/ai-page-DWwijgkF.js +1 -0
  13. package/dist/assets/api-4X-X5R5M.js +1 -0
  14. package/dist/assets/{api-XwdNiVE9.js → api-DbnBa3dN.js} +1 -1
  15. package/dist/assets/api-key-screen-BEJ0jwQj.js +1 -0
  16. package/dist/assets/{app-info-CkOfr4nP.js → app-info-Clwt3pCt.js} +1 -1
  17. package/dist/assets/archive-redirect-page-Dka89xFg.js +1 -0
  18. package/dist/assets/arrow-left-C2re-gYj.js +1 -0
  19. package/dist/assets/{assistant-feature-flag-store-fyKSDJNN.js → assistant-feature-flag-store-aNAjw1qx.js} +1 -1
  20. package/dist/assets/assistant-identity-store-CgJwLRMd.js +1 -0
  21. package/dist/assets/{assistant-status-panel-BbgKKyz9.js → assistant-status-panel-09Vi2dxV.js} +1 -1
  22. package/dist/assets/auth-store-B8Es53B9.js +2 -0
  23. package/dist/assets/avatar-svg-compositor-D7Dy9s1k.js +1 -0
  24. package/dist/assets/background-task-detail-panel-be-t1c4C.js +1 -0
  25. package/dist/assets/ban-Bvfp1f1I.js +1 -0
  26. package/dist/assets/{bell-Ct4a9v6Y.js → bell-V9BYKY__.js} +1 -1
  27. package/dist/assets/billing-page-BcRCl8ly.js +3 -0
  28. package/dist/assets/billing-redirect-page-DDDmce7t.js +1 -0
  29. package/dist/assets/bookmark-CjHh36q4.js +1 -0
  30. package/dist/assets/bookmarks-page-Dit38fI8.js +1 -0
  31. package/dist/assets/{brain-BIzJCPA6.js → brain-Ci5ws6Wl.js} +1 -1
  32. package/dist/assets/browser-WF64N2wk.js +2 -0
  33. package/dist/assets/{bug-VUcJFHwN.js → bug-BMI_6ziD.js} +1 -1
  34. package/dist/assets/build-state-lkEFi2jD.js +1 -0
  35. package/dist/assets/button-BQVYX8n_.js +1 -0
  36. package/dist/assets/{capture-error-Bj8_eutd.js → capture-error-anSemq95.js} +1 -1
  37. package/dist/assets/card-D8zyWtZh.js +1 -0
  38. package/dist/assets/channels-page-route-BlSQtnuj.js +9 -0
  39. package/dist/assets/{chart-column-BLKW3sjY.js → chart-column-L6Nldm8M.js} +1 -1
  40. package/dist/assets/chat-BDhsGoUo.js +1 -0
  41. package/dist/assets/chat-markdown-message-CqG8Eq9L.js +2 -0
  42. package/dist/assets/check-wF3S-AV4.js +1 -0
  43. package/dist/assets/checkbox-1DytZ46G.js +1 -0
  44. package/dist/assets/{chevron-down-B5A-0g8A.js → chevron-down-DpYf9Gwq.js} +1 -1
  45. package/dist/assets/chevron-left-B_RAz34t.js +1 -0
  46. package/dist/assets/{chevron-up-2Qqarz0p.js → chevron-up-DHI-QRpz.js} +1 -1
  47. package/dist/assets/{chunk-5KNZJZUH-Bsoom5--.js → chunk-5KNZJZUH-SU6Q_tDT.js} +1 -1
  48. package/dist/assets/{circle-alert-DVCpoZrc.js → circle-alert-CTnM6GCb.js} +1 -1
  49. package/dist/assets/circle-check-DqvTjWle.js +1 -0
  50. package/dist/assets/{client-feature-flag-store-DKdCzO1h.js → client-feature-flag-store-D85jf9vW.js} +1 -1
  51. package/dist/assets/{client-identity-BS5mQsaQ.js → client-identity-B_r6IM_R.js} +1 -1
  52. package/dist/assets/{clipboard-copy-JwIceweN.js → clipboard-copy-DbekAYi3.js} +1 -1
  53. package/dist/assets/clock-LiCGqvyn.js +1 -0
  54. package/dist/assets/{cloud-off-BCBGTmt0.js → cloud-off-DT0KnUQ4.js} +1 -1
  55. package/dist/assets/code-B_ruRFrX.js +1 -0
  56. package/dist/assets/command-palette-BCipBcvn.js +1 -0
  57. package/dist/assets/command-palette-window-page-BqYv7VcH.js +1 -0
  58. package/dist/assets/community-page-Dv-ySbbM.js +1 -0
  59. package/dist/assets/{confirm-dialog-UYFm4osC.js → confirm-dialog-Zyfei9GV.js} +1 -1
  60. package/dist/assets/{connect-page-BcEMMLcB.js → connect-page-DZAWq2yF.js} +1 -1
  61. package/dist/assets/consent-C8XzlZzW.js +1 -0
  62. package/dist/assets/{consent-controls-gSkPdHxT.js → consent-controls-DS7GjOzc.js} +1 -1
  63. package/dist/assets/{contacts-gateway-CFNbQjfX.js → contacts-gateway-C1Oif2mf.js} +1 -1
  64. package/dist/assets/contacts-page-route-DgNLQnBu.js +1 -0
  65. package/dist/assets/{conversation-list-fetchers-D84gJs6f.js → conversation-list-fetchers-o20VEKwg.js} +1 -1
  66. package/dist/assets/{conversation-store-bshB7nDP.js → conversation-store-Ogn1aavZ.js} +1 -1
  67. package/dist/assets/{sliders-horizontal-slneqAyY.js → cpu-DuPtXZt_.js} +1 -1
  68. package/dist/assets/{create-selectors-Qo7kcikX.js → create-selectors-8NePGNlX.js} +1 -1
  69. package/dist/assets/{createLucideIcon-CAM1RhH8.js → createLucideIcon-Bjb-Kuq7.js} +1 -1
  70. package/dist/assets/{credential-entry-page-DPoarVF0.js → credential-entry-page-Bo9MyWJX.js} +1 -1
  71. package/dist/assets/credentials-page-Cc4tHUkB.js +1 -0
  72. package/dist/assets/danger-zone-redirect-page-DkKFJJZq.js +1 -0
  73. package/dist/assets/debug-page-BFWROcsz.js +4 -0
  74. package/dist/assets/deploy-dialogs-Cj-Aq_TC.js +1 -0
  75. package/dist/assets/detail-card-CIh4dCKt.js +1 -0
  76. package/dist/assets/{detail-panel-stop-button-DEV7MvVL.js → detail-panel-stop-button-39zLlSig.js} +1 -1
  77. package/dist/assets/developer-page-DuvYjoYj.js +1 -0
  78. package/dist/assets/devices-redirect-page-Blvhzm6X.js +1 -0
  79. package/dist/assets/{diagnostics-Dva51gYK.js → diagnostics-gOI79YBb.js} +1 -1
  80. package/dist/assets/dictation-overlay-page-DXgz4AQ6.js +1 -0
  81. package/dist/assets/dist-CO5a5--H.js +1 -0
  82. package/dist/assets/{dist-oCfq2a_n.js → dist-Cul7ysiV.js} +1 -1
  83. package/dist/assets/{dist-DC9QooLF.js → dist-Krx5xY9z.js} +1 -1
  84. package/dist/assets/{dist-CaYJ736y.js → dist-y8XVYHzD.js} +1 -1
  85. package/dist/assets/document-viewer-page-CZwiaFH_.js +1 -0
  86. package/dist/assets/domain-field-Bj9ReZlJ.js +1 -0
  87. package/dist/assets/{download-CywcQLB2.js → download-B6XjnEzx.js} +1 -1
  88. package/dist/assets/dropdown-BxYrCXBS.js +1 -0
  89. package/dist/assets/{edge-swipe-arbiter-store-DyemvsR-.js → edge-swipe-arbiter-store-a9LiewmS.js} +1 -1
  90. package/dist/assets/effective-timezone-Ct3PoWNH.js +1 -0
  91. package/dist/assets/emails-page-B-d8kujE.js +1 -0
  92. package/dist/assets/{environment-store-Dk9rAKWX.js → environment-store-R_3zZFKL.js} +1 -1
  93. package/dist/assets/esm-BGZHdoYP.js +2 -0
  94. package/dist/assets/esm-BNfE-1QY.js +1 -0
  95. package/dist/assets/esm-CZhfXk6a.js +2 -0
  96. package/dist/assets/esm-Da6ZHZYd.js +2 -0
  97. package/dist/assets/esm-DcTPJLRl.js +2 -0
  98. package/dist/assets/esm-LOX7qY3n.js +2 -0
  99. package/dist/assets/esm-hFTNI1fw.js +2 -0
  100. package/dist/assets/{external-link-CS0aVYGt.js → external-link-Cczz6xJ4.js} +1 -1
  101. package/dist/assets/{eye-BMVGQXHT.js → eye-C2rSrbD-.js} +1 -1
  102. package/dist/assets/{eye-off-Jdx8qkOK.js → eye-off-BQ9J3pF2.js} +1 -1
  103. package/dist/assets/feature-flag-catalog-DpiUkDzU.js +1 -0
  104. package/dist/assets/{file-Ddp9Dqgl.js → file-C8pjlmtk.js} +1 -1
  105. package/dist/assets/{file-editor-D1rWAuxR.js → file-editor-CmUOlTjl.js} +1 -1
  106. package/dist/assets/{file-markdown-CLmQTpqL.js → file-markdown-BXDlM5ry.js} +1 -1
  107. package/dist/assets/{file-text-Br730Q4B.js → file-text-DA128T4K.js} +1 -1
  108. package/dist/assets/{folder-open-Nlg0OphT.js → folder-open-7DKBH5WB.js} +1 -1
  109. package/dist/assets/general-page-CmA6p9An.js +1 -0
  110. package/dist/assets/get-memory-stats-CoEuUq7B.js +1 -0
  111. package/dist/assets/{globe-CMtjL_s_.js → globe-DgKSh933.js} +1 -1
  112. package/dist/assets/{haptics-Ba6v6c0g.js → haptics-izy3LPi2.js} +2 -2
  113. package/dist/assets/{hard-drive-DWFPKcXI.js → hard-drive-DVmyHlZR.js} +1 -1
  114. package/dist/assets/hatching-screen-XNHr8o2G.js +1 -0
  115. package/dist/assets/home-page-route-CuxIigyf.js +1 -0
  116. package/dist/assets/hosting-screen-DefYV0ge.js +1 -0
  117. package/dist/assets/identity-page-route-CiL_Zphi.js +7 -0
  118. package/dist/assets/index-2np2R8qP.js +211 -0
  119. package/dist/assets/index-B92kvb9E.css +2 -0
  120. package/dist/assets/{info-vgPTIsGI.js → info-CqgkBvyS.js} +1 -1
  121. package/dist/assets/{ingest-DGkxw0Go.js → ingest-EqEPbLa8.js} +1 -1
  122. package/dist/assets/input-ZpyYt_a0.js +1 -0
  123. package/dist/assets/{inspect-page-CzVBQcXy.js → inspect-page-kRK_xs6g.js} +4 -4
  124. package/dist/assets/integrations-page-CISSOSzb.js +1 -0
  125. package/dist/assets/intelligence-layout-DpgeQgJY.js +1 -0
  126. package/dist/assets/{key-round-0Zop_GsZ.js → key-round-CN4UKztQ.js} +1 -1
  127. package/dist/assets/keyboard-shortcuts-redirect-page-DkS3PElo.js +1 -0
  128. package/dist/assets/{latest-assistant-text-C4DnCZXH.js → latest-assistant-text-BihKVb5c.js} +1 -1
  129. package/dist/assets/library-detail-page-Bt9gp3QI.js +1 -0
  130. package/dist/assets/library-page-BlNKrPkk.js +1 -0
  131. package/dist/assets/{link-2-BKL8QWRX.js → link-2-B9c5ZsFq.js} +1 -1
  132. package/dist/assets/list-row-CFyYr-FU.js +1 -0
  133. package/dist/assets/loader-circle-Ck8fq3yv.js +1 -0
  134. package/dist/assets/{local-mode-Ckii2tmN.js → local-mode-Dydd46cS.js} +2 -2
  135. package/dist/assets/{log-in-CqVJRYe-.js → log-in-khREn0DP.js} +1 -1
  136. package/dist/assets/{login-flow--Y73rf2a.js → login-flow-DXwwcT6M.js} +1 -1
  137. package/dist/assets/login-page-DmbnYedE.js +1 -0
  138. package/dist/assets/logout-page-Iz2ybEnD.js +1 -0
  139. package/dist/assets/logs-layout-CxOA-Wc5.js +1 -0
  140. package/dist/assets/machine-sizes-bagopaDl.js +1 -0
  141. package/dist/assets/memory-page-route-CPsBSRih.js +2 -0
  142. package/dist/assets/{memory-router-playground-page-idAGtN72.js → memory-router-playground-page-B12rXqZf.js} +1 -1
  143. package/dist/assets/menu-C9SOvGlk.js +1 -0
  144. package/dist/assets/messages-BRpKmSFf.js +13 -0
  145. package/dist/assets/{metric-card-CkAD9RpC.js → metric-card-Cywp_yEB.js} +1 -1
  146. package/dist/assets/{mic-xmDFUbCL.js → mic-DEmgi4rh.js} +1 -1
  147. package/dist/assets/{minimize-2-CaXsUqSp.js → minimize-2-dsDfFPkN.js} +1 -1
  148. package/dist/assets/misc-D0u5tzSd.js +1 -0
  149. package/dist/assets/mobile-sidebar-drawer-ZUf-00kg.js +1 -0
  150. package/dist/assets/modal-BtcwNEBj.js +1 -0
  151. package/dist/assets/{monitor-B1y28fS1.js → monitor-BFX2ySFb.js} +1 -1
  152. package/dist/assets/{moon-BJzODLTY.js → moon-h3xmz34k.js} +1 -1
  153. package/dist/assets/mutation-error-C9sr8Rue.js +1 -0
  154. package/dist/assets/native-biometric-Bp5eYpXj.js +6 -0
  155. package/dist/assets/native-deep-link-CbHUZ2h_.js +1 -0
  156. package/dist/assets/native-file-B7iGLcmU.js +2 -0
  157. package/dist/assets/notice-DkAWz47A.js +1 -0
  158. package/dist/assets/notifications-page-CjYIVpTH.js +1 -0
  159. package/dist/assets/{oauth-complete-page-CN9l6ZcQ.js → oauth-complete-page-B2ewGhNS.js} +1 -1
  160. package/dist/assets/{oauth-popup-complete-page-CB1__MDX.js → oauth-popup-complete-page-DzBQF52z.js} +1 -1
  161. package/dist/assets/{onboarding-store-DutUn1E3.js → onboarding-store-Bxw_JVDh.js} +1 -1
  162. package/dist/assets/{page-empty-state-DMW0V3rW.js → page-empty-state-DZYd2PGe.js} +1 -1
  163. package/dist/assets/page-shell-DA4GGC-p.js +1 -0
  164. package/dist/assets/pairing-page-Cts5oIbb.js +1 -0
  165. package/dist/assets/panel-item-An-BBeyL.js +1 -0
  166. package/dist/assets/password-reset-page-DLAZBfaV.js +1 -0
  167. package/dist/assets/{pdf-BKBTXuUO.js → pdf-BFBTGjwO.js} +1 -1
  168. package/dist/assets/{pencil-D38YNe2r.js → pencil-CsnkG5VN.js} +1 -1
  169. package/dist/assets/personality-page-BIqqAa7v.js +1 -0
  170. package/dist/assets/plan-tier-meta-BIKAm_Ai.js +1 -0
  171. package/dist/assets/plans-page-SfiDHZ-V.js +1 -0
  172. package/dist/assets/platform-detection-BnBFKFxp.js +1 -0
  173. package/dist/assets/{platform-loopback-page-BghEIdqp.js → platform-loopback-page-CRs21wns.js} +1 -1
  174. package/dist/assets/plugin-detail-page-CldUqueG.js +1 -0
  175. package/dist/assets/plugins-page-DBVtY5EN.js +1 -0
  176. package/dist/assets/plus-DZZypDUF.js +1 -0
  177. package/dist/assets/popover-Bl6742nZ.js +1 -0
  178. package/dist/assets/{prefs-BZnS5vR_.js → prefs-Od3axSSC.js} +1 -1
  179. package/dist/assets/privacy-page-C0yyDdog.js +1 -0
  180. package/dist/assets/privacy-screen-Dy-ZmDGc.js +1 -0
  181. package/dist/assets/progress-bar-Bqv7D4mZ.js +1 -0
  182. package/dist/assets/provider-callback-page-Dl7F__Qu.js +1 -0
  183. package/dist/assets/provider-catalogs-BKJqQ5tB.js +1 -0
  184. package/dist/assets/{provider-key-DjpfM99U.js → provider-key-BvO1htuA.js} +1 -1
  185. package/dist/assets/provider-signup-page-DNEySJmv.js +1 -0
  186. package/dist/assets/{proxy-RtD8704m.js → proxy-BzlH_XAe.js} +1 -1
  187. package/dist/assets/{puzzle-BVC3TGko.js → puzzle-C894zd87.js} +1 -1
  188. package/dist/assets/quick-input-page-CBLwsr9x.js +1 -0
  189. package/dist/assets/react-query.gen-C0S0EYHV.js +1 -0
  190. package/dist/assets/{refresh-cw-DzPnoeCh.js → refresh-cw-cau3ebz1.js} +1 -1
  191. package/dist/assets/{remote-gateway-session-BHjZ9gQ6.js → remote-gateway-session-D-udmSfx.js} +1 -1
  192. package/dist/assets/{repeat-GCVYEp1h.js → repeat-BhXOPeQU.js} +1 -1
  193. package/dist/assets/research-mock-page-B6haRdv5.js +1 -0
  194. package/dist/assets/{research-onboarding-persistence-CceFfAqE.js → research-onboarding-persistence-C4LT0Ekr.js} +1 -1
  195. package/dist/assets/research-onboarding-route-ByXRk6ey.js +43 -0
  196. package/dist/assets/resize-errors-NWH12qGQ.js +1 -0
  197. package/dist/assets/{resolved-assistants-store-C-PdxK8f.js → resolved-assistants-store-DdHm-7v4.js} +1 -1
  198. package/dist/assets/return-to-ugSGJ0dm.js +1 -0
  199. package/dist/assets/review-terms-screen-CKDlmyVS.js +1 -0
  200. package/dist/assets/risk-CcEyZBGP.js +3 -0
  201. package/dist/assets/{routes-vE-2hncW.js → routes-Cwb-U9H-.js} +1 -1
  202. package/dist/assets/{schedules-CKGVEPqD.js → schedules-CVZg3_E6.js} +1 -1
  203. package/dist/assets/schedules-page-BHCnNRj0.js +1 -0
  204. package/dist/assets/sdk.gen-B3ej_AZQ.js +1 -0
  205. package/dist/assets/{sdk.gen-BVAVE6A_.js → sdk.gen-zsiNChRm.js} +1 -1
  206. package/dist/assets/security-redirect-page-VGVQozWv.js +1 -0
  207. package/dist/assets/select-assistant-screen-dLgg2FG5.js +1 -0
  208. package/dist/assets/{setting-row-Aw2e2F86.js → setting-row-BL-mNsNh.js} +1 -1
  209. package/dist/assets/settings-divider-qjjA_SZa.js +1 -0
  210. package/dist/assets/settings-layout-DwJxTai2.js +1 -0
  211. package/dist/assets/{settings-CfuLzwIw.js → settings-wSv59mkN.js} +1 -1
  212. package/dist/assets/share-feedback-modal-Di8E9iA6.js +1 -0
  213. package/dist/assets/{shield-check-22NwY9JM.js → shield-check-C3mmA0Pk.js} +1 -1
  214. package/dist/assets/sidebar-tree-CpqsN0in.js +1 -0
  215. package/dist/assets/signup-page-C0ErIgF3.js +1 -0
  216. package/dist/assets/{signup-shell-DJ7NaDbC.js → signup-shell-C--ZjbjA.js} +1 -1
  217. package/dist/assets/{site-favicon-CUJyUSe4.js → site-favicon-DFbjMYfe.js} +1 -1
  218. package/dist/assets/skill-detail-page-DF53ks-N.js +1 -0
  219. package/dist/assets/skill-detail-panel-D_eE-IN4.js +1 -0
  220. package/dist/assets/{skills-DCOl6WpG.js → skills-CqbxZ62G.js} +1 -1
  221. package/dist/assets/skills-page-zxdj8FFy.js +1 -0
  222. package/dist/assets/sliders-horizontal-MqeLCMh3.js +1 -0
  223. package/dist/assets/sounds-redirect-page-UZ0xMhrn.js +1 -0
  224. package/dist/assets/{sparkles-Ccrj7hxd.js → sparkles-BK3KXCjl.js} +1 -1
  225. package/dist/assets/{src-D89CNeuT.js → src-CheJrlfT.js} +3 -3
  226. package/dist/assets/start-screen-DKTECs_x.js +1 -0
  227. package/dist/assets/{status-badge-pill-CS_5zNS4.js → status-badge-pill-0N6rTEBg.js} +1 -1
  228. package/dist/assets/subagent-detail-panel-PimZMDhD.js +4 -0
  229. package/dist/assets/{subagent-store-D-GPthdC.js → subagent-store-BsdZwCd6.js} +2 -2
  230. package/dist/assets/superpowers-page-z-OIImRF.js +1 -0
  231. package/dist/assets/system-events-page-69I8yECA.js +1 -0
  232. package/dist/assets/system-events-redirect-page-I9g5qfGv.js +1 -0
  233. package/dist/assets/tag-B6WeUtBW.js +1 -0
  234. package/dist/assets/theme-stage-page-DbSjHaq5.js +1 -0
  235. package/dist/assets/{three-dot-indicator-SJcKW5cG.js → three-dot-indicator-DNuHHwtA.js} +1 -1
  236. package/dist/assets/{tiptap-document-editor-DwY7j24Y.js → tiptap-document-editor-Drkf4aZR.js} +2 -2
  237. package/dist/assets/toast-Be8FEQ-I.js +1 -0
  238. package/dist/assets/toggle-QSEiPr3k.js +1 -0
  239. package/dist/assets/{tool-detail-panel-cP8B6VrU.js → tool-detail-panel-B7WGaI0e.js} +2 -2
  240. package/dist/assets/{triangle-alert-CQfiAg_t.js → triangle-alert-CnjNKhNx.js} +1 -1
  241. package/dist/assets/{typed-storage-9Sn8tkE7.js → typed-storage-Cphlhvyu.js} +1 -1
  242. package/dist/assets/typography-Cqi8q9o7.js +1 -0
  243. package/dist/assets/upgrade-cancel-page-ouMju_xq.js +1 -0
  244. package/dist/assets/upgrade-success-page-tGHxARrq.js +1 -0
  245. package/dist/assets/usage-redirect-page-D9S66xjY.js +1 -0
  246. package/dist/assets/{use-active-assistant-id-CXhDyK7y.js → use-active-assistant-id-DwLFgABu.js} +1 -1
  247. package/dist/assets/use-assistant-identity-details-CT-IVkCa.js +1 -0
  248. package/dist/assets/use-bus-subscription-PbK6Fx9c.js +1 -0
  249. package/dist/assets/{use-copy-to-clipboard-O2AZwhGa.js → use-copy-to-clipboard-BCTXSMa-.js} +1 -1
  250. package/dist/assets/use-edge-swipe-back-BYWXReAH.js +1 -0
  251. package/dist/assets/use-invite-link-dialog-BsdPKDQ_.js +1 -0
  252. package/dist/assets/use-is-org-ready-DKJvP9Ky.js +1 -0
  253. package/dist/assets/{use-onboarding-login-Cn5WIGr7.js → use-onboarding-login-Db_0_ZZI.js} +1 -1
  254. package/dist/assets/use-reduced-motion-CcGT6CHV.js +1 -0
  255. package/dist/assets/use-skill-actions-7ZROdMpd.js +1 -0
  256. package/dist/assets/use-skill-detail-files-8L8VWCDM.js +1 -0
  257. package/dist/assets/{useMutation-CXGTrp4W.js → useMutation-Lj4VunQV.js} +1 -1
  258. package/dist/assets/{useQuery-Bz-fbQ-m.js → useQuery-B45lW1Kk.js} +1 -1
  259. package/dist/assets/{user-plus-oiIr9ey8.js → user-plus-KuzSTM_D.js} +1 -1
  260. package/dist/assets/{users-iLvfYFOP.js → users--1gWeHEq.js} +1 -1
  261. package/dist/assets/{utils-CnB60ZJN.js → utils-DvUW9GK8.js} +1 -1
  262. package/dist/assets/viewer-store-LvYOlYVM.js +1 -0
  263. package/dist/assets/voice-page-XqnVdjxN.js +1 -0
  264. package/dist/assets/weather-forecast-display-Bb6e1yNM.js +1 -0
  265. package/dist/assets/web-BgxqKmFT.js +1 -0
  266. package/dist/assets/web-Cfu1-OYV.js +1 -0
  267. package/dist/assets/web-CpMgd0X0.js +1 -0
  268. package/dist/assets/web-D5EBYCt2.js +1 -0
  269. package/dist/assets/web-DT7Uml3n.js +1 -0
  270. package/dist/assets/web-D_z4FjB0.js +1 -0
  271. package/dist/assets/web-F3CAps0-.js +1 -0
  272. package/dist/assets/web-TTULY5zV.js +1 -0
  273. package/dist/assets/welcome-screen-9POAvbd3.js +1 -0
  274. package/dist/assets/workflow-detail-panel-xU_g1_Ed.js +1 -0
  275. package/dist/assets/workspace-page-BuAzqfnV.js +1 -0
  276. package/dist/assets/x-CswtfvgS.js +1 -0
  277. package/dist/index.html +156 -281
  278. package/package.json +1 -1
  279. package/dist/assets/access-C_g7wV7U.js +0 -1
  280. package/dist/assets/account-page-LjfmzWdG.js +0 -1
  281. package/dist/assets/acp-run-actions-CAjb0Wcm.js +0 -1
  282. package/dist/assets/acp-run-detail-panel-BWFE8kSu.js +0 -5
  283. package/dist/assets/acp-run-store-C6n-XeY_.js +0 -1
  284. package/dist/assets/activity-steps-panel-BH-ZcpuL.js +0 -1
  285. package/dist/assets/add-credential-modal-CM98Fqkv.js +0 -1
  286. package/dist/assets/add-credits-modal-DPmRHHEk.js +0 -1
  287. package/dist/assets/ai-page-DyCdt-Lc.js +0 -1
  288. package/dist/assets/animated-avatar-DzfEDnTh.js +0 -1
  289. package/dist/assets/api-CJFoPWHm.js +0 -1
  290. package/dist/assets/api-key-screen-BwDiSnFw.js +0 -1
  291. package/dist/assets/app-card-DcDHCOOI.js +0 -1
  292. package/dist/assets/apple-logo-poQac1tY.js +0 -1
  293. package/dist/assets/archive-redirect-page-75Ak01mL.js +0 -1
  294. package/dist/assets/arrow-down-to-line-Bh_5sIPp.js +0 -1
  295. package/dist/assets/arrow-left-C2ylPLHq.js +0 -1
  296. package/dist/assets/arrow-right-B-jRJNWP.js +0 -1
  297. package/dist/assets/arrow-up-BNd4Gpy7.js +0 -1
  298. package/dist/assets/assistant-identity-store-DIyVo8LV.js +0 -1
  299. package/dist/assets/auth-store-DRSla1t1.js +0 -2
  300. package/dist/assets/avatar-renderer-DK54o2kQ.js +0 -1
  301. package/dist/assets/avatar-subagent-C9WTTUjI.js +0 -1
  302. package/dist/assets/avatar-svg-compositor-FtVPqzlC.js +0 -1
  303. package/dist/assets/avatar-tone-CMoWR2JX.js +0 -1
  304. package/dist/assets/background-task-actions-CKIAni_N.js +0 -1
  305. package/dist/assets/background-task-detail-panel-DWg4iKng.js +0 -1
  306. package/dist/assets/background-task-store-DFS8MP5D.js +0 -1
  307. package/dist/assets/ban-B__z3LwE.js +0 -1
  308. package/dist/assets/billing-page-DBiav4Gj.js +0 -3
  309. package/dist/assets/billing-redirect-page-AU0NSEIa.js +0 -1
  310. package/dist/assets/bookmarks-page-BeTSio8s.js +0 -1
  311. package/dist/assets/browser-yRpcPoTG.js +0 -2
  312. package/dist/assets/build-state-CS_jiM22.js +0 -1
  313. package/dist/assets/button-Dy5001j6.js +0 -1
  314. package/dist/assets/card-DRIctGVs.js +0 -1
  315. package/dist/assets/channels-page-route-DO5MFG68.js +0 -9
  316. package/dist/assets/chat-BrL0k2UY.js +0 -1
  317. package/dist/assets/chat-avatar-DIDq1Jt5.js +0 -1
  318. package/dist/assets/chat-layout-slots-store-C2IFeZFr.js +0 -1
  319. package/dist/assets/chat-markdown-message-iUJHMfdC.js +0 -2
  320. package/dist/assets/check-sC49_hjU.js +0 -1
  321. package/dist/assets/checkbox-BY0BDJjm.js +0 -1
  322. package/dist/assets/chevron-left-CytMddTB.js +0 -1
  323. package/dist/assets/chevron-right-HU6H84S0.js +0 -1
  324. package/dist/assets/circle-check-CjGnAahM.js +0 -1
  325. package/dist/assets/circle-check-big-DSsDH5_6.js +0 -1
  326. package/dist/assets/circle-minus-DNfBAj4g.js +0 -1
  327. package/dist/assets/circle-x-17dBxF06.js +0 -1
  328. package/dist/assets/clock-BYTc0Ds9.js +0 -1
  329. package/dist/assets/cloud-RlApB3rO.js +0 -1
  330. package/dist/assets/cn-CJf7MmLX.js +0 -1
  331. package/dist/assets/code-qafFA0_-.js +0 -1
  332. package/dist/assets/coins-Hrmb9tmj.js +0 -1
  333. package/dist/assets/command-palette-DcxNV4b9.js +0 -1
  334. package/dist/assets/command-palette-window-page-JeQWcFFN.js +0 -1
  335. package/dist/assets/community-page-C5ru8hk6.js +0 -1
  336. package/dist/assets/consent-DbD2Hcbf.js +0 -1
  337. package/dist/assets/contacts-page-route-Bk0t4yB2.js +0 -1
  338. package/dist/assets/conversation-cache-CqCkWHT6.js +0 -1
  339. package/dist/assets/conversation-navigation-nuG3yn67.js +0 -1
  340. package/dist/assets/conversation-queries-DP0qnXEB.js +0 -1
  341. package/dist/assets/conversation-selection-3EKkKt0G.js +0 -1
  342. package/dist/assets/credentials-page-rnLQmdGC.js +0 -1
  343. package/dist/assets/credit-card-C1RL73Rt.js +0 -1
  344. package/dist/assets/danger-zone-redirect-page-pt-OXcmG.js +0 -1
  345. package/dist/assets/debug-page-BULPFK5C.js +0 -4
  346. package/dist/assets/deploy-dialogs-BfuE4MZU.js +0 -1
  347. package/dist/assets/deploy-store-BTB-rXLv.js +0 -1
  348. package/dist/assets/detail-card-BMRGmkia.js +0 -1
  349. package/dist/assets/detail-shell-Bf76f1YA.js +0 -1
  350. package/dist/assets/developer-page-B6REUuGM.js +0 -1
  351. package/dist/assets/devices-redirect-page-DqA45vk2.js +0 -1
  352. package/dist/assets/dices-DcuIF52A.js +0 -1
  353. package/dist/assets/dictation-overlay-page-eFMqgby9.js +0 -1
  354. package/dist/assets/dictation-overlay-pePw7mLd.js +0 -1
  355. package/dist/assets/dist-jXSU-ejH.js +0 -1
  356. package/dist/assets/document-viewer-container-C9xsTewm.js +0 -2
  357. package/dist/assets/document-viewer-page-Dhf4grEu.js +0 -1
  358. package/dist/assets/dropdown-BCfnSdIZ.js +0 -1
  359. package/dist/assets/edit-chat-session-yPtopwB6.js +0 -1
  360. package/dist/assets/effective-timezone-qiooajmO.js +0 -1
  361. package/dist/assets/ellipsis-DnoqTkj4.js +0 -1
  362. package/dist/assets/emails-page-CIAh5wqc.js +0 -1
  363. package/dist/assets/esm-6G3FXPh2.js +0 -2
  364. package/dist/assets/esm-BaRYxNVr.js +0 -1
  365. package/dist/assets/esm-BiV8oFWh.js +0 -2
  366. package/dist/assets/esm-CaBW1XjX.js +0 -2
  367. package/dist/assets/esm-Dcm_7bKQ.js +0 -2
  368. package/dist/assets/esm-mpYdUBEm.js +0 -2
  369. package/dist/assets/esm-wMIp9z4L.js +0 -2
  370. package/dist/assets/external-urls-HAW1JmbX.js +0 -1
  371. package/dist/assets/eye-bbox-DXmmg9ML.js +0 -1
  372. package/dist/assets/feature-flag-catalog-BoDR0EWf.js +0 -1
  373. package/dist/assets/file-code-BDHws4Dk.js +0 -1
  374. package/dist/assets/file-plus-C3SBA8ll.js +0 -1
  375. package/dist/assets/first-run-scope-CLrGXYLa.js +0 -1
  376. package/dist/assets/folder-DF8nFp7N.js +0 -1
  377. package/dist/assets/format-date-C5pKGCAG.js +0 -1
  378. package/dist/assets/funnel-events-CK938pi2.js +0 -1
  379. package/dist/assets/general-page-DGyfiHs1.js +0 -1
  380. package/dist/assets/get-memory-stats-DmFcFUaS.js +0 -1
  381. package/dist/assets/hard-navigate-DZlpL1No.js +0 -1
  382. package/dist/assets/hatching-screen-CFpru_E0.js +0 -1
  383. package/dist/assets/heart-789ajxtB.js +0 -1
  384. package/dist/assets/home-page-route-BcdPBJ4a.js +0 -1
  385. package/dist/assets/hosting-screen-DL7BTbhk.js +0 -1
  386. package/dist/assets/identity-page-route-DWdf-aBP.js +0 -7
  387. package/dist/assets/inbox-B6TknLsk.js +0 -1
  388. package/dist/assets/index-BP8v2Ur0.js +0 -11
  389. package/dist/assets/index-BodzVWm8.css +0 -2
  390. package/dist/assets/input-hw3el2GJ.js +0 -1
  391. package/dist/assets/installed-plugins-query-C29LGAEV.js +0 -1
  392. package/dist/assets/integration-icon-Dvjn3ytY.js +0 -1
  393. package/dist/assets/integrations-page-Bm5hpRid.js +0 -1
  394. package/dist/assets/intelligence-layout-CwIAu94F.js +0 -1
  395. package/dist/assets/invalidate-plugin-queries-DamxiwYv.js +0 -1
  396. package/dist/assets/keyboard-shortcuts-redirect-page-ZEWjC9Mi.js +0 -1
  397. package/dist/assets/laptop-DSZhU52i.js +0 -1
  398. package/dist/assets/layout-grid-DA_CfD6d.js +0 -1
  399. package/dist/assets/library-detail-page-nafShc8O.js +0 -1
  400. package/dist/assets/library-page-ChwjU8K9.js +0 -1
  401. package/dist/assets/link-BfUb7cwC.js +0 -1
  402. package/dist/assets/list-DNbTcxAh.js +0 -1
  403. package/dist/assets/list-row-B1wPb2Au.js +0 -1
  404. package/dist/assets/loader-circle-XREx3i4W.js +0 -1
  405. package/dist/assets/local-runtime-upgrade-Beu0tEZm.js +0 -1
  406. package/dist/assets/log-out-B4hsBWnk.js +0 -1
  407. package/dist/assets/login-page-BDETWBgE.js +0 -1
  408. package/dist/assets/logout-page-D8IUzRXc.js +0 -1
  409. package/dist/assets/logs-layout-BgvNCtGS.js +0 -1
  410. package/dist/assets/machine-sizes-DEz3ocd0.js +0 -1
  411. package/dist/assets/mail-CMdPNysl.js +0 -1
  412. package/dist/assets/memory-page-route-Ba5QKzwU.js +0 -2
  413. package/dist/assets/menu-BvjhxZo7.js +0 -1
  414. package/dist/assets/message-circle-BsH7vHtN.js +0 -1
  415. package/dist/assets/message-square-CQGiY4zk.js +0 -1
  416. package/dist/assets/message-square-text-D0Q7W58R.js +0 -1
  417. package/dist/assets/messages-CKSejldF.js +0 -13
  418. package/dist/assets/middleware-HE0NLvPl.js +0 -1
  419. package/dist/assets/misc-DckBb5zz.js +0 -1
  420. package/dist/assets/mobile-sidebar-drawer-hLKPbhQ-.js +0 -1
  421. package/dist/assets/modal-BR4CUFBd.js +0 -1
  422. package/dist/assets/mutation-error-zQ6oi-va.js +0 -1
  423. package/dist/assets/native-anchor-D3kgLtWj.js +0 -1
  424. package/dist/assets/native-biometric-CntdlaL-.js +0 -6
  425. package/dist/assets/native-deep-link-PvbVHiPM.js +0 -1
  426. package/dist/assets/native-file--dOud3QN.js +0 -2
  427. package/dist/assets/not-found-DpZ9HUaf.js +0 -1
  428. package/dist/assets/notice-BMK7xqUw.js +0 -1
  429. package/dist/assets/notifications-page-VsiInjXK.js +0 -1
  430. package/dist/assets/oauth-connection-utils-DbcihBL8.js +0 -1
  431. package/dist/assets/oauth-popup-DZEqljdC.js +0 -1
  432. package/dist/assets/onboarding-layout-Dd5fPfE7.js +0 -1
  433. package/dist/assets/open-workspace-file-DMvD5OY7.js +0 -2
  434. package/dist/assets/page-shell-BslgfTlh.js +0 -1
  435. package/dist/assets/pairing-page-CD0lC4FZ.js +0 -1
  436. package/dist/assets/panel-item-CrtoJCrd.js +0 -1
  437. package/dist/assets/paperclip-c8Xlrnx4.js +0 -1
  438. package/dist/assets/password-reset-page-B5ZBuVy2.js +0 -1
  439. package/dist/assets/personality-page-DH8TL1bJ.js +0 -1
  440. package/dist/assets/plans-page-DAVYETn-.js +0 -1
  441. package/dist/assets/platform-detection-CMiRPRCq.js +0 -1
  442. package/dist/assets/platform-login-notice-D1DIqKAq.js +0 -1
  443. package/dist/assets/play-B0-JEtcm.js +0 -1
  444. package/dist/assets/plugin-detail-page-DBV6meUP.js +0 -1
  445. package/dist/assets/plugins-page-DS8PMhXA.js +0 -1
  446. package/dist/assets/plugins-surface-D4i2vqBz.js +0 -1
  447. package/dist/assets/plus-jH3kAliM.js +0 -1
  448. package/dist/assets/popover-BRpYVASI.js +0 -1
  449. package/dist/assets/privacy-page-D2zrVPK3.js +0 -1
  450. package/dist/assets/privacy-screen-CjxogZ3w.js +0 -1
  451. package/dist/assets/progress-bar-C_T5_pf2.js +0 -1
  452. package/dist/assets/provider-callback-page-Bt7OG9P7.js +0 -1
  453. package/dist/assets/provider-signup-page-DCuHQsgl.js +0 -1
  454. package/dist/assets/quick-input-page-BvXUQC9n.js +0 -1
  455. package/dist/assets/react-query.gen-Mwd5l-vZ.js +0 -1
  456. package/dist/assets/react-query.gen-r3I6j8-1.js +0 -1
  457. package/dist/assets/research-facts-UIXXE8D6.js +0 -1
  458. package/dist/assets/research-mock-page-C2VI-HRz.js +0 -1
  459. package/dist/assets/research-onboarding-route-CBYFEZ9c.js +0 -50
  460. package/dist/assets/research-results-view-CxhTn2J7.js +0 -3
  461. package/dist/assets/retire-confirm-dialog-JgboWoKi.js +0 -1
  462. package/dist/assets/review-terms-screen-BOVnKS4C.js +0 -1
  463. package/dist/assets/risk-CrERloGN.js +0 -3
  464. package/dist/assets/rotate-ccw-BjzeX7qz.js +0 -1
  465. package/dist/assets/routes-DYpqy6Q4.js +0 -23
  466. package/dist/assets/runtime-upgrade-banner-CyMEBdcR.js +0 -2
  467. package/dist/assets/sandbox-bridge-DgDrAWv3.js +0 -184
  468. package/dist/assets/schedules-page-DTeV8Znd.js +0 -1
  469. package/dist/assets/sdk.gen-BIu1DgTs.js +0 -1
  470. package/dist/assets/search-BVW-n8to.js +0 -1
  471. package/dist/assets/security-redirect-page-DDlBIegp.js +0 -1
  472. package/dist/assets/select-assistant-screen-DGsdhaNl.js +0 -1
  473. package/dist/assets/send-Q71Exj3z.js +0 -1
  474. package/dist/assets/settings-divider-DLdNQaGW.js +0 -1
  475. package/dist/assets/settings-layout-DJ_XVW6_.js +0 -1
  476. package/dist/assets/settings-navigation-_BYND514.js +0 -1
  477. package/dist/assets/share-feedback-modal-BKrf7Cvx.js +0 -1
  478. package/dist/assets/shield-fzs_emVe.js +0 -1
  479. package/dist/assets/sidebar-tree-TflTYR5q.js +0 -1
  480. package/dist/assets/signup-page-CXqWLaHK.js +0 -1
  481. package/dist/assets/skill-detail-page-Ba4htuli.js +0 -1
  482. package/dist/assets/skill-detail-panel-CuZuQ48U.js +0 -1
  483. package/dist/assets/skills-page-DgC77Rfl.js +0 -1
  484. package/dist/assets/slack-setup-wizard-Dbiw6QLI.js +0 -1
  485. package/dist/assets/smartphone-mDNwm_ss.js +0 -1
  486. package/dist/assets/sound-manager-xEbUgFv-.js +0 -1
  487. package/dist/assets/sounds-page-AtAB8eLo.js +0 -1
  488. package/dist/assets/square-D_e8nR-F.js +0 -1
  489. package/dist/assets/start-screen-fhIZmXxP.js +0 -1
  490. package/dist/assets/stream-watchdog-BafbDdX9.js +0 -1
  491. package/dist/assets/subagent-detail-panel-DhglwsOv.js +0 -4
  492. package/dist/assets/sun-Dw0t1n1O.js +0 -1
  493. package/dist/assets/superpowers-page-Bm2tyiA-.js +0 -1
  494. package/dist/assets/surface-parse-helpers-CEJ3tQ9Q.js +0 -1
  495. package/dist/assets/system-events-page-JWP58J6d.js +0 -1
  496. package/dist/assets/system-events-redirect-page-To5VLYZ0.js +0 -1
  497. package/dist/assets/tag-NXcyiTkK.js +0 -1
  498. package/dist/assets/terminal-CdCI6wMV.js +0 -1
  499. package/dist/assets/theme-stage-page-Cw_YWUFI.js +0 -1
  500. package/dist/assets/threshold-presets-BO8En2q0.js +0 -1
  501. package/dist/assets/toast-LgLp4obE.js +0 -1
  502. package/dist/assets/toggle-lfnhEAcN.js +0 -1
  503. package/dist/assets/transcript-message-body-shared-C9aiTouW.js +0 -1
  504. package/dist/assets/trash-2-L5LNgw9o.js +0 -1
  505. package/dist/assets/trust-rules-api-C0-hkXT2.js +0 -1
  506. package/dist/assets/typography-DEI9Ra9z.js +0 -1
  507. package/dist/assets/upgrade-cancel-page-zB6AoYQi.js +0 -1
  508. package/dist/assets/upgrade-success-page-BmOay_ww.js +0 -1
  509. package/dist/assets/upload-Bdbyo_ok.js +0 -1
  510. package/dist/assets/usage-redirect-page-BtYfXeKV.js +0 -1
  511. package/dist/assets/use-app-theme-BEeo2C5K.js +0 -1
  512. package/dist/assets/use-assistant-avatar-DSu2_Mzi.js +0 -1
  513. package/dist/assets/use-assistant-capability-gxe56K48.js +0 -1
  514. package/dist/assets/use-assistant-identity-details-2B-W-SVL.js +0 -1
  515. package/dist/assets/use-avatar-accent-var-PV9tsBJj.js +0 -1
  516. package/dist/assets/use-bookmarks-BbJtKyHe.js +0 -1
  517. package/dist/assets/use-bundled-avatar-components-Gp_YaD6o.js +0 -2
  518. package/dist/assets/use-bus-subscription-Cu4Y9DQi.js +0 -1
  519. package/dist/assets/use-checkout-dismiss-refresh-C9hM471m.js +0 -1
  520. package/dist/assets/use-command-palette-sections-BXfh84I7.js +0 -1
  521. package/dist/assets/use-discord-nudge-C_QdHIeX.js +0 -1
  522. package/dist/assets/use-edge-swipe-BSVP4eB_.js +0 -1
  523. package/dist/assets/use-edge-swipe-back-CabJo1ox.js +0 -1
  524. package/dist/assets/use-edit-app-DfFIonqZ.js +0 -1
  525. package/dist/assets/use-effective-timezone-LqzBqHBy.js +0 -1
  526. package/dist/assets/use-invite-link-dialog-sv9yVxhE.js +0 -1
  527. package/dist/assets/use-ios-app-nudge-D-XhASaI.js +0 -1
  528. package/dist/assets/use-is-mobile-Bz2l7wPL.js +0 -1
  529. package/dist/assets/use-is-org-ready-C6qqqqM7.js +0 -1
  530. package/dist/assets/use-platform-gate-CZiHg0SL.js +0 -1
  531. package/dist/assets/use-reduced-motion-Se97jRQ-.js +0 -1
  532. package/dist/assets/use-save-twilio-credentials-CUQ6gdIj.js +0 -1
  533. package/dist/assets/use-skill-actions-BdBrPOut.js +0 -1
  534. package/dist/assets/use-skill-detail-files-CxyUQqXK.js +0 -1
  535. package/dist/assets/use-sticky-profiles-C48qNyMs.js +0 -1
  536. package/dist/assets/use-subagent-card-data-3d0ZnzN3.js +0 -1
  537. package/dist/assets/use-supports-bookmarks-C3J7FtDn.js +0 -1
  538. package/dist/assets/use-swipe-engine-DRvffOuu.js +0 -1
  539. package/dist/assets/useInfiniteQuery-Dk8q0n49.js +0 -1
  540. package/dist/assets/user-_zNqL48O.js +0 -1
  541. package/dist/assets/utils-DpzXLTp_.js +0 -1
  542. package/dist/assets/video-BcgduiJ6.js +0 -1
  543. package/dist/assets/viewer-store-BDpZVbcr.js +0 -1
  544. package/dist/assets/voice-list-CLPuMIRe.js +0 -1
  545. package/dist/assets/voice-page-EIhtoTYz.js +0 -1
  546. package/dist/assets/voice-picker-modal-029xb1aA.js +0 -1
  547. package/dist/assets/volume-2-CvT-JEIl.js +0 -1
  548. package/dist/assets/weather-forecast-display-6mZbkl5I.js +0 -1
  549. package/dist/assets/web-B5Q3jcLK.js +0 -1
  550. package/dist/assets/web-CVaN3DW6.js +0 -1
  551. package/dist/assets/web-CkgmpfJp.js +0 -1
  552. package/dist/assets/web-CoGffhPT.js +0 -1
  553. package/dist/assets/web-DPhowWU1.js +0 -1
  554. package/dist/assets/web-DvFzYelg.js +0 -1
  555. package/dist/assets/web-WoN77zm1.js +0 -1
  556. package/dist/assets/web-Zn9HIgy2.js +0 -1
  557. package/dist/assets/welcome-screen-B4SUnPjd.js +0 -1
  558. package/dist/assets/workflow-cWWiPi3K.js +0 -1
  559. package/dist/assets/workflow-detail-panel-DorLAHXs.js +0 -1
  560. package/dist/assets/workflow-store-QV5aMjTt.js +0 -1
  561. package/dist/assets/workspace-page-BXTSzz8x.js +0 -1
  562. package/dist/assets/workspace-theme-tokens-J8dqkK9n.js +0 -1
  563. package/dist/assets/wrench-0WW0zkkG.js +0 -1
  564. package/dist/assets/x-JBAsSOmg.js +0 -1
  565. package/dist/assets/zoom-in-CaLYwni-.js +0 -1
  566. package/dist/skills/deepgram-voice/assets/icon.svg +0 -1
  567. /package/dist/assets/{api-errors-CFiCT7Ap.js → api-errors-CoE1wFl2.js} +0 -0
  568. /package/dist/assets/{app-types-BdeItYPq.js → app-types-XM5qKBD0.js} +0 -0
  569. /package/dist/assets/{avatar-bundled-components-CecbESCk.js → avatar-bundled-components-ELDcio1Z.js} +0 -0
  570. /package/dist/assets/{browser-timezone-C_0jBUid.js → browser-timezone-2SnmKDjM.js} +0 -0
  571. /package/dist/assets/{build.umd-uy-mRTuf.js → build.umd-CW7LiBLq.js} +0 -0
  572. /package/dist/assets/{bundle-mjs-BQxDdOEo.js → bundle-mjs-CK9sN9wG.js} +0 -0
  573. /package/dist/assets/{by-tool-use-id-index-aoRP6d51.js → by-tool-use-id-index-CBaMK-eh.js} +0 -0
  574. /package/dist/assets/{client.gen-CV05d-kw.js → client.gen-DVfIRXUZ.js} +0 -0
  575. /package/dist/assets/{definitions-BmpdZo3v.js → definitions-BUCExH-9.js} +0 -0
  576. /package/dist/assets/{definitions-D0IJIwPP.js → definitions-DpZNNWA7.js} +0 -0
  577. /package/dist/assets/{dist-BwAT3VYQ.js → dist-DyRKd0bN2.js} +0 -0
  578. /package/dist/assets/{domains-DWRzNRJy.js → domains-CIIVdIa8.js} +0 -0
  579. /package/dist/assets/{emoji-catalog-data-Cdr4oduq.js → emoji-catalog-data-D8lRMt3A.js} +0 -0
  580. /package/dist/assets/{event-bus-DSxmBYhD.js → event-bus-BNx4a0Ds.js} +0 -0
  581. /package/dist/assets/{format-file-size-hHSWqbUu.js → format-file-size-B9DWgk-8.js} +0 -0
  582. /package/dist/assets/{impersonate-version-flag-4Ki_3iKD.js → impersonate-version-flag-DRJTfKcP.js} +0 -0
  583. /package/dist/assets/{infiniteQueryOptions-CqLc14_4.js → infiniteQueryOptions-C6p49ZmI.js} +0 -0
  584. /package/dist/assets/{is-electron-m5eeGBnd.js → is-electron-y5bNUVyG.js} +0 -0
  585. /package/dist/assets/{jsx-runtime-D3ZM-ToX.js → jsx-runtime-CVSDxk6A.js} +0 -0
  586. /package/dist/assets/{link-click-kJxAxKHH.js → link-click-Cw5JZikw.js} +0 -0
  587. /package/dist/assets/{onboarding-step-layout-BIla66YX.js → onboarding-step-layout-2XcmxqFN.js} +0 -0
  588. /package/dist/assets/{optimistic-lifecycle-C2a6IJ7E.js → optimistic-lifecycle-BvfDBY8o.js} +0 -0
  589. /package/dist/assets/{plugin-attribution-BJldO0Fa.js → plugin-attribution-6W3_ulYk.js} +0 -0
  590. /package/dist/assets/{pointer-RLpjGG7A.js → pointer-DcD0Nt7Z.js} +0 -0
  591. /package/dist/assets/{prechat-DIuViPZk.js → prechat-mDxOfWth.js} +0 -0
  592. /package/dist/assets/{preload-helper-Cv2QeVDK.js → preload-helper-BewR0kVT.js} +0 -0
  593. /package/dist/assets/{profile-metadata-DgZjbPj8.js → profile-metadata-CMym5q9r.js} +0 -0
  594. /package/dist/assets/{public-asset-CbDDcomC.js → public-asset-Cr86Gucv.js} +0 -0
  595. /package/dist/assets/{queryOptions-CMSBCFOf.js → queryOptions-BtNi-_9H.js} +0 -0
  596. /package/dist/assets/{react-BFJW0bSv.js → react-DJZBPgpf.js} +0 -0
  597. /package/dist/assets/{sdk.gen-DPKrJeho.js → sdk.gen-BhtkuoSl.js} +0 -0
  598. /package/dist/assets/{semver-BpijV4FQ.js → semver-DIkpaM51.js} +0 -0
  599. /package/dist/assets/{theme-preferences-ln8xC5zH.js → theme-preferences-D58K1K0j.js} +0 -0
  600. /package/dist/assets/{workflow-status-DXdUkbSd.js → workflow-status-4RYJ-tdh.js} +0 -0
  601. /package/dist/assets/{xterm-DIkZ0IL1.js → xterm-BSc05cUt.js} +0 -0
  602. /package/dist/assets/{xterm-addon-fit-BnlhNUFn.js → xterm-addon-fit-CW_qH798.js} +0 -0
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CAM1RhH8.js";var t=e(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),n=e(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]);export{t as n,n as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t}from"./jsx-runtime-D3ZM-ToX.js";import{u as n}from"./routes-vE-2hncW.js";var r=t();function i(){return(0,r.jsx)(e,{to:n.account.login,replace:!0})}export{i as PasswordResetPage};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{u as n}from"./chunk-5KNZJZUH-Bsoom5--.js";import{n as r}from"./QueryClientProvider-CMu7CkQU.js";import{t as i}from"./useQuery-Bz-fbQ-m.js";import{t as a}from"./jsx-runtime-D3ZM-ToX.js";import{t as o}from"./arrow-left-C2ylPLHq.js";import{t as s}from"./sparkles-Ccrj7hxd.js";import"./src-D89CNeuT.js";import{i as c,r as l,t as u}from"./dist-oCfq2a_n.js";import{n as d}from"./toast-LgLp4obE.js";import{u as f}from"./routes-vE-2hncW.js";import{n as p}from"./use-assistant-avatar-DSu2_Mzi.js";import{t as m}from"./use-active-assistant-id-CXhDyK7y.js";import{a as h,c as g,i as _,o as v,s as y}from"./latest-assistant-text-C4DnCZXH.js";import{a as b,c as x,i as S,n as C,o as w,r as T,t as E}from"./use-assistant-identity-details-2B-W-SVL.js";var D=e(t(),1),O=a(),k=`rgba(36, 41, 46, 0.25)`,A=`#FDFDFC`;function j({axis:e,value:t,onValueChange:n,tone:r,disabled:i}){return(0,O.jsxs)(`div`,{className:`flex w-full shrink-0 flex-wrap items-center gap-x-5 gap-y-1.5 sm:flex-nowrap`,style:{opacity:i?.7:1},children:[(0,O.jsx)(`span`,{className:`order-1 flex-1 text-left text-sm sm:w-32 sm:flex-none sm:text-right sm:text-[17px]`,style:{color:r.fg},children:e.left}),(0,O.jsx)(`span`,{className:`order-2 flex-1 text-right text-sm sm:order-3 sm:w-32 sm:flex-none sm:text-left sm:text-[17px]`,style:{color:r.fg},children:e.right}),(0,O.jsxs)(u,{className:`relative order-3 flex h-6 w-full touch-none items-center select-none sm:order-2 sm:w-auto sm:flex-1`,value:[t],onValueChange:e=>n(e[0]??b),disabled:i,min:0,max:100,step:1,"aria-label":`${e.left} to ${e.right}`,children:[(0,O.jsx)(c,{className:`relative h-2 w-full grow rounded-full sm:h-3`,style:{backgroundColor:k}}),(0,O.jsx)(l,{className:`block h-5 w-5 cursor-grab rounded-full shadow-sm transition-transform active:scale-95 active:cursor-grabbing keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-white/70 data-[disabled]:cursor-not-allowed data-[disabled]:active:scale-100 sm:h-6 sm:w-6`,style:{backgroundColor:A}})]})]})}async function M({assistantId:e,values:t,assistantName:n}){return T({assistantId:e,content:g(t,void 0,n),title:`Updating personality`,context:`identity_personality_update`})}function N(){let e=m(),t=n(),a=r(),{components:o,traits:s,customImageUrl:c}=p(e),l=C(e),u=i({queryKey:v(e),queryFn:()=>h(e)}),[g,b]=(0,D.useState)(null),[x,S]=(0,D.useState)(!1),T=g??u.data??{},k=l.data?.identity?.name||`Assistant`;return(0,O.jsx)(w,{components:o,traits:s,customImageUrl:c,entrance:!0,children:(0,O.jsx)(P,{assistantName:k,values:T,onValueChange:(e,t)=>b({...T,[e]:t}),applying:x,onUpdate:()=>{S(!0);let n=_(T);M({assistantId:e,values:n,assistantName:l.data?.identity?.name}).then(async r=>{S(!1),r?(await y(e,n),a.invalidateQueries({queryKey:v(e)}),a.invalidateQueries({queryKey:E(e)}),d.success(`Personality updated — come say hi!`),t(f.identity)):d.error(`The personality update didn't go through. Please try again.`)})},onBack:()=>void t(f.identity)})})}function P({assistantName:e,values:t,onValueChange:n,applying:r,onUpdate:i,onBack:a}){let{tone:c,bottomReserve:l}=x();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(`button`,{type:`button`,onClick:a,className:`absolute top-4 left-4 z-20 flex cursor-pointer items-center gap-1.5 rounded-full py-2 pr-4 pl-3 text-body-medium-default backdrop-blur-sm transition-all duration-150 active:scale-[0.97] ${c.isLight?`bg-black/10 hover:bg-black/20`:`bg-white/10 hover:bg-white/20`}`,style:{color:c.fg},children:[(0,O.jsx)(o,{className:`h-4 w-4`,"aria-hidden":!0}),`Back`]}),(0,O.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center overflow-y-auto px-6`,style:{paddingBottom:l},children:[(0,O.jsx)(`div`,{className:`w-full min-h-14 shrink-[4]`,style:{flexBasis:`12%`}}),(0,O.jsxs)(`div`,{className:`flex shrink-0 flex-col items-center gap-2 text-center`,children:[(0,O.jsx)(`h1`,{className:`text-[2.6rem] leading-none max-sm:text-[2rem]`,style:{fontFamily:`var(--font-serif)`},children:`Shape my personality`}),(0,O.jsx)(`p`,{className:`max-w-md text-[15px]`,style:{color:c.fgMuted},children:`Slide the dials, then hit update — I’ll rewrite myself to match.`})]}),(0,O.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-10`}),(0,O.jsx)(`div`,{className:`flex w-full max-w-2xl shrink-0 flex-col`,children:S.map((e,i)=>(0,O.jsxs)(D.Fragment,{children:[i>0&&(0,O.jsx)(`div`,{className:`w-full min-h-2.5 shrink basis-8 sm:basis-11`}),(0,O.jsx)(j,{axis:e,value:t[e.id]??b,onValueChange:t=>n(e.id,t),tone:c,disabled:r})]},e.id))}),(0,O.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-12`}),(0,O.jsx)(`button`,{type:`button`,onClick:i,disabled:r,className:`flex min-h-11 min-w-[240px] max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[10px] px-6 py-2 text-body-medium-default transition-transform duration-150 active:scale-[0.97] disabled:cursor-default disabled:opacity-80 disabled:active:scale-100`,style:{backgroundColor:c.isLight?`#1A1A1A`:`#FFFFFF`,color:c.isLight?`#FFFFFF`:`#1A1A1A`},children:r?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(`div`,{className:`h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-transparent`,style:{borderTopColor:c.isLight?`#FFFFFF`:`#1A1A1A`,borderRightColor:c.isLight?`#FFFFFF`:`#1A1A1A`}}),(0,O.jsxs)(`span`,{className:`min-w-0 text-center`,children:[e,` is rewriting itself…`]})]}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(s,{className:`h-4 w-4`,"aria-hidden":!0}),`Update personality`]})})]})]})}export{N as PersonalityPage};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-Dy5001j6.js";import{u as r}from"./chunk-5KNZJZUH-Bsoom5--.js";import{n as i}from"./QueryClientProvider-CMu7CkQU.js";import{t as a}from"./useQuery-Bz-fbQ-m.js";import{t as o}from"./useMutation-CXGTrp4W.js";import{t as s}from"./jsx-runtime-D3ZM-ToX.js";import{t as c}from"./typography-DEI9Ra9z.js";import{t as l}from"./arrow-left-C2ylPLHq.js";import{t as u}from"./circle-check-CjGnAahM.js";import{A as d,C as f,F as p,L as m,N as h,O as ee,P as te,S as ne,a as g,b as _,c as v,d as re,k as y,l as ie,m as ae,n as b,o as oe,p as se,r as x,s as S,t as ce,u as le}from"./use-checkout-dismiss-refresh-C9hM471m.js";import{t as C}from"./sliders-horizontal-slneqAyY.js";import{t as ue}from"./loader-circle-XREx3i4W.js";import{t as w}from"./triangle-alert-CQfiAg_t.js";import{t as T}from"./tag-NXcyiTkK.js";import{t as E}from"./modal-BR4CUFBd.js";import{n as D}from"./toast-LgLp4obE.js";import{t as de}from"./is-electron-m5eeGBnd.js";import{u as O}from"./routes-vE-2hncW.js";import{i as fe,r as pe,t as me}from"./use-platform-gate-CZiHg0SL.js";import{n as he}from"./browser-yRpcPoTG.js";import{$ as ge,dt as _e,et as ve,lt as ye,ut as be}from"./react-query.gen-Mwd5l-vZ.js";import{t as k}from"./use-bundled-avatar-components-Gp_YaD6o.js";import{t as A}from"./machine-sizes-DEz3ocd0.js";var j=e(t(),1),M=s(),N=`Select custom CPU power, Ram and Storage. Or just throw in some tokens.`;function xe({className:e,onConfigure:t,configureDisabled:r,isCurrent:i=!1,currentSummary:a}){return(0,M.jsxs)(`div`,{className:`flex w-full flex-col items-center gap-8 ${e??``}`,children:[(0,M.jsx)(`p`,{className:`text-center text-[20px] font-medium text-[var(--content-tertiary)]`,children:`Need something more tailored to your needs?`}),(0,M.jsxs)(`div`,{className:`flex w-[840px] max-w-full flex-col items-start gap-4 rounded-2xl bg-[var(--surface-lift)] p-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[(0,M.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[(0,M.jsx)(`div`,{className:`flex shrink-0 items-center justify-center rounded-xl bg-[var(--content-disabled)] p-[14px]`,children:(0,M.jsx)(C,{className:`h-6 w-6 text-[var(--aux-white)]`,"aria-hidden":!0})}),(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,M.jsx)(`span`,{className:`text-[16px] font-medium text-[var(--content-emphasised)]`,children:`Custom Plan`}),i?(0,M.jsx)(T,{className:`bg-[var(--feed-digest-weak)] text-[var(--content-default)]`,children:`Your Current Plan`}):null]}),(0,M.jsx)(`span`,{className:`text-[14px] font-medium text-[var(--content-tertiary)]`,children:a??N})]})]}),(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-3`,children:[(0,M.jsx)(`span`,{className:`text-[11px] font-medium text-[var(--content-tertiary)]`,children:`Billed monthly`}),(0,M.jsx)(n,{variant:`outlined`,onClick:t,disabled:r,children:`Configure`})]})]})]})}function Se({open:e,lostFeatures:t,pending:r,onCancel:i,onConfirm:a}){let o=t.length>0;return(0,M.jsx)(E.Root,{open:e,onOpenChange:e=>{!e&&!r&&i()},children:(0,M.jsxs)(E.Content,{size:`md`,hideCloseButton:!0,children:[(0,M.jsx)(E.Header,{children:(0,M.jsx)(E.Title,{icon:w,children:`Downgrade to Free?`})}),(0,M.jsxs)(E.Body,{children:[(0,M.jsx)(c,{as:`p`,variant:`body-medium-default`,className:`text-(--content-secondary)`,children:o?`Downgrading removes the following Pro features. You'll be taken to Stripe to cancel your subscription.`:`You'll be taken to Stripe to cancel your subscription.`}),o?(0,M.jsx)(`ul`,{className:`mt-4 list-disc space-y-2 pl-5`,children:t.map(e=>(0,M.jsx)(`li`,{children:(0,M.jsx)(c,{as:`span`,variant:`body-medium-default`,children:e})},e))}):null]}),(0,M.jsxs)(E.Footer,{children:[(0,M.jsx)(n,{variant:`outlined`,onClick:i,disabled:r,children:`Cancel`}),(0,M.jsx)(n,{variant:`danger`,onClick:a,disabled:r,"data-testid":`confirm-free-downgrade-button`,children:`Downgrade to Free`})]})]})})}function P({tierKey:e,name:t,tagline:r,priceLabel:i,priceCaption:a,ctaLabel:o,features:s,recommended:c=!1,tone:l=`dark`,isCurrent:d,intent:f=`upgrade`,pending:p,onCta:m}){let h=f===`downgrade`&&!d;return(0,M.jsxs)(`div`,{"data-theme":l,className:`flex w-full flex-col gap-3 rounded-2xl bg-[var(--surface-lift)] p-3 sm:gap-4 sm:p-4`,children:[(0,M.jsx)(g,{tier:e,size:50}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,M.jsxs)(`div`,{className:`flex h-8 items-center gap-2`,children:[(0,M.jsx)(`span`,{className:`text-[20px] font-medium text-[var(--content-emphasised)]`,children:t}),c&&!h&&!d?(0,M.jsx)(T,{className:`bg-[var(--feed-digest-weak)] text-[12px] font-semibold uppercase text-[var(--credits-accent)]`,children:`Recommended`}):null]}),(0,M.jsx)(`p`,{className:`overflow-hidden text-[14px] font-medium leading-[18px] text-[var(--content-tertiary)] sm:h-9`,children:r})]}),(0,M.jsx)(`div`,{className:`h-px w-full bg-[var(--border-hover)]`}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,M.jsx)(`span`,{className:`text-[24px] font-medium text-[var(--content-default)]`,children:i}),(0,M.jsx)(`span`,{className:`text-[11px] font-medium text-[var(--content-tertiary)]`,children:a})]}),(0,M.jsx)(n,{variant:h?`outlined`:`primary`,fullWidth:!0,disabled:d||p,onClick:m,children:d?`Current Plan`:o}),(0,M.jsx)(`div`,{className:`h-px w-full bg-[var(--border-hover)]`}),(0,M.jsxs)(`div`,{className:`flex flex-col gap-2 sm:gap-4`,children:[(0,M.jsx)(`span`,{className:`text-[12px] font-medium text-[var(--content-tertiary)]`,children:`Includes:`}),(0,M.jsx)(`ul`,{className:`flex flex-col gap-2`,children:s.map(e=>(0,M.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,M.jsx)(u,{className:`mt-0.5 h-4 w-4 shrink-0 text-[var(--content-secondary)]`,"aria-hidden":!0}),(0,M.jsx)(`span`,{className:`text-[14px] font-medium text-[var(--content-secondary)]`,children:e})]},e))})]})]})}var Ce=`#0A0A0B`,we=`https://www.vellum.ai/docs/pricing`;k();var Te=[`Small Computer`,`4 GB Storage`,`Pay-as-you-go credits`];function Ee(e){return`${_(e)}/month`}function F(e){return`${x(e)} Computer`}function De(e,t){let n=e.credits_usd??0;return[F(e),`${e.storage_gib} GB Storage`,`${_(n*100)} in credits included`,...t]}function Oe(e,t){let n=[`${e.machineTier?A[e.machineTier]??e.machineTier:b} Machine`];if(e.storageGib!=null&&n.push(`${e.storageGib} GB`),e.creditTier!=null){let r=e.creditTier.match(/^credits_(\d+)$/)?.[1];n.push(p(t,e.creditTier)?.label??(r==null?`Credit bundle`:`${r} credits`))}return n.join(` · `)}function I(){let e=r(),t=i(),s=de(),c=fe({platformHostedOnly:!0}),u=me(),p=pe(),g=c===`full`&&u,_=c===`full`&&p,b=a({...ye(),enabled:g}),x=a({...ge(),enabled:g}),C=o(_e()),{changePackage:w,isPending:T}=re(),{changeTiers:E,isPending:k,current:A,currentReady:N}=le({enabled:g});ce();let[F,I]=(0,j.useState)(!1),[ke,L]=(0,j.useState)(!1),[Ae,R]=(0,j.useState)(!1),[z,B]=(0,j.useState)(null),[je,V]=(0,j.useState)(!1),[Me,H]=(0,j.useState)(void 0),U=b.data,W=x.data?.plans.find(e=>e.id===`pro`),G=W?.packages??[],K=G.length>0,q=U?.plan_id===`pro`,J=ee(f(U)),Ne=new Set(x.data?.plans.find(e=>e.id===`base`)?.included_features??[]),Pe=(W?.included_features??[]).filter(e=>!Ne.has(e)),Y=F||T||J.isPending,Fe=(0,j.useMemo)(()=>!q||A.storageTier==null?null:{machineTier:A.machineTier,storageTier:A.storageTier,creditTier:A.creditTier},[q,A.machineTier,A.storageTier,A.creditTier]),X=!g&&!_,Ie=g&&!x.isLoading&&!K,Z=X||b.isError||Ie;(0,j.useEffect)(()=>{Z&&e(X?O.settings.usageBilling:`${O.settings.usageBilling}&adjust_plan`,{replace:!0})},[Z,X,e]);let Le=()=>{(window.history.state?.idx??0)>0?e(-1):e(O.settings.usageBilling)},Q=async e=>{I(!0);try{let n=await C.mutateAsync({body:{...e,return_target:ne()}});n.status===`redirect`&&n.checkout_url?(m(e.package?{kind:`package`,packageKey:e.package}:{kind:`custom`,machineTier:e.machine_tier??null,storageTier:e.storage_tier??null,creditTier:e.credit_tier??null}),he(n.checkout_url)):(await t.invalidateQueries({queryKey:be()}),await t.invalidateQueries({queryKey:ve()}))}catch(e){D.error(se(e,`Failed to start the upgrade checkout. Please try again.`))}finally{I(!1)}},$;if(U&&W&&K){let t=U.plan_id===`base`?`free`:d(U.package)?U.package.key:null,n=q&&t===null&&N&&A.storageGib!=null,r=n?Oe(A,W):void 0,i=n=>{if(!Y){if(q){if(n===`free`){R(!0);return}let r=G.find(e=>e.key===n);if(!r||h(t,r.key)===`current`)return;if(!ae(U)){e(`${O.settings.usage}?tab=billing&adjust_plan`);return}B(r);return}n!==`free`&&Q({target_plan_id:`pro`,package:n,confirm:!0})}},a=()=>{R(!1),J.mutate({})},o=async()=>{if(!z)return;let e=z,n=h(t,e.key),r=await w(e.key);if(r){if(B(null),r.status===`no_op`){D.success(`You're already on this plan.`);return}n===`downgrade`?D.success(`Downgraded to ${e.name}.`):(H(void 0),V(!0))}},s=z?t===null?`switch`:h(t,z.key)===`downgrade`?`downgrade`:`upgrade`:`upgrade`,c=e=>Q({target_plan_id:`pro`,confirm:!0,machine_tier:e.machineTier,storage_tier:e.storageTier,credit_tier:e.creditTier}),l=async e=>{let t=await E(e);t&&(L(!1),t.needsResize||t.creditChanged?(H(t.creditChanged?e.creditTier:void 0),V(!0)):D.success(`Plan updated.`))},u=()=>{Y||q&&!N||L(!0)},f=[...G].sort((e,t)=>y.indexOf(e.key)-y.indexOf(t.key)),p=v(`free`),m=q?`downgrade`:h(t,`free`);$=(0,M.jsxs)(`div`,{className:`my-auto flex w-full flex-col items-center`,children:[(0,M.jsxs)(`header`,{className:`flex flex-col items-center gap-2 text-center`,children:[(0,M.jsx)(`h1`,{className:`text-[40px] text-[var(--content-emphasised)] sm:text-[60px]`,style:{fontFamily:`var(--font-serif)`,fontWeight:400,lineHeight:1.2,letterSpacing:`1.2px`},children:`Give your assistant more power`}),(0,M.jsx)(`p`,{className:`text-[20px] font-medium text-[var(--content-tertiary)]`,children:`Choose the level that matches how much you want it to take on.`})]}),(0,M.jsxs)(`div`,{className:`mt-6 grid w-full max-w-[1312px] grid-cols-1 items-start gap-4 sm:mt-10 sm:grid-cols-2 sm:gap-6 lg:grid-cols-4`,children:[(0,M.jsx)(P,{tierKey:`free`,name:`Free`,tagline:p?.tagline??``,priceLabel:`$0/month`,priceCaption:p?.priceCaption??`Forever`,ctaLabel:m===`downgrade`?S(`Free`):p?.cta??`Start Free`,features:Te,tone:`dark`,isCurrent:t===`free`,intent:m,pending:Y,onCta:()=>i(`free`)}),f.map(e=>{let n=v(e.key),r=h(t,e.key);return(0,M.jsx)(P,{tierKey:e.key,name:e.name,tagline:n?.tagline??``,priceLabel:Ee(e.total_price_cents),priceCaption:n?.priceCaption??`Billed monthly`,ctaLabel:r===`downgrade`?S(e.name):n?.cta??e.name,features:De(e,n?.extraFeatures??[]),recommended:n?.recommended,tone:n?.recommended?`light`:`dark`,isCurrent:t===e.key,intent:r,pending:Y,onCta:()=>i(e.key)},e.key)})]}),(0,M.jsx)(xe,{className:`mt-6 sm:mt-10`,onConfigure:u,configureDisabled:q&&!N||Y,isCurrent:n,currentSummary:r}),(0,M.jsx)(ie,{open:ke,proPlan:W,pending:F||k,currentStorageGib:q?A.storageGib:null,initialSelection:Fe,onClose:()=>L(!1),onContinue:e=>{q?l(e):c(e)}}),(0,M.jsx)(oe,{open:z!==null,relation:s,packageName:z?.name??``,pending:T,onCancel:()=>B(null),onConfirm:()=>void o()}),(0,M.jsx)(Se,{open:Ae,lostFeatures:Pe,pending:J.isPending,onCancel:()=>R(!1),onConfirm:a}),(0,M.jsx)(te,{mode:`resize`,open:je,onClose:()=>{V(!1),H(void 0)},resizeCredits:Me}),(0,M.jsxs)(`p`,{className:`mt-6 text-center text-[12px] font-medium text-[var(--content-tertiary)] sm:mt-10`,children:[`You can cancel or change your plan anytime you want. To learn more`,` `,(0,M.jsx)(`a`,{href:we,target:`_blank`,rel:`noopener noreferrer`,className:`text-[var(--content-default)] underline`,children:`Read our Docs.`})]})]})}else $=(0,M.jsx)(`div`,{className:`my-auto flex items-center justify-center`,children:(0,M.jsx)(ue,{className:`h-6 w-6 animate-spin text-[var(--content-tertiary)]`,"aria-label":`Loading plans`})});return(0,M.jsxs)(`div`,{"data-theme":`dark`,className:`plans-takeover-canvas-enter relative h-full w-full overflow-y-auto`,style:{backgroundColor:Ce},children:[(0,M.jsx)(`div`,{className:`absolute left-8 z-10 [-webkit-app-region:no-drag]`,style:{top:s?`3rem`:`2rem`},children:(0,M.jsx)(n,{variant:`outlined`,leftIcon:(0,M.jsx)(l,{className:`h-4 w-4`,"aria-hidden":!0}),onClick:Le,className:`[-webkit-app-region:no-drag]`,children:`Back`})}),(0,M.jsx)(`div`,{className:`plans-takeover-content-enter flex min-h-full flex-col items-center px-4 pb-8 sm:px-6`,style:{paddingTop:s?`5rem`:`4rem`},children:$})]})}export{I as PlansPage};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./is-electron-m5eeGBnd.js";import{u as r}from"./native-biometric-CntdlaL-.js";import{t as i}from"./dist-BwAT3VYQ.js";var a=e(t(),1);function o(){if(typeof navigator>`u`)return!1;let e=navigator.userAgent;if(/iPhone|iPod/.test(e)||/iPad/.test(e))return!0;let t=navigator.userAgentData;return(t?.platform?t.platform.toLowerCase().includes(`mac`):navigator.platform.toLowerCase().includes(`mac`))&&navigator.maxTouchPoints>1}function s(){if(typeof navigator>`u`)return!1;let e=navigator.userAgent;return/Safari/.test(e)&&!/CriOS|FxiOS|EdgiOS|OPiOS|Chrome|Chromium/.test(e)}function c(){if(typeof navigator>`u`||o())return!1;let e=navigator.userAgentData;return e?.platform?e.platform.toLowerCase().includes(`mac`):navigator.platform.toLowerCase().includes(`mac`)}function l(){return typeof navigator>`u`?!1:/Android/i.test(navigator.userAgent)}function u(){return n()?`macos`:r()?i.getPlatform()===`android`?`android`:`ios`:o()?`ios`:l()?`android`:`web`}function d(){return r()&&i.getPlatform()===`ios`}function f(e){if(!e||e.length===0)return null;for(let{family:t,pattern:n}of[{family:`edge`,pattern:/microsoft edge/i},{family:`chrome`,pattern:/google chrome|chromium/i}]){let r=e.find(e=>n.test(e.brand));if(r){let e=r.version.match(/^\d+/)?.[0];return{family:t,...e?{version:e}:{}}}}return null}function p(e){for(let{family:t,pattern:n}of[{family:`edge`,pattern:/(?:Edg|EdgiOS|EdgA)\/(\d+)/},{family:`chrome`,pattern:/(?:Chrome|CriOS|Chromium)\/(\d+)/},{family:`firefox`,pattern:/(?:Firefox|FxiOS)\/(\d+)/},{family:`safari`,pattern:/Version\/(\d+).*Safari\//}]){let r=e.match(n);if(r)return{family:t,version:r[1]}}return null}function m(){if(typeof navigator>`u`)return{};let e=navigator.userAgentData;return f(e?.brands)??p(navigator.userAgent)??{}}var h=()=>()=>{};function g(){return(0,a.useSyncExternalStore)(h,()=>o()&&!r()&&!s(),()=>!1)}function _(){return(0,a.useSyncExternalStore)(h,()=>c()&&!r()&&!n(),()=>!1)}export{d as a,c as i,u as n,g as o,o as r,_ as s,m as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./button-Dy5001j6.js";import{l as t}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./log-in-CqVJRYe-.js";import{t as i}from"./notice-BMK7xqUw.js";import{t as a}from"./use-onboarding-login-Cn5WIGr7.js";var o=n();function s({children:n,className:s}){let{pathname:c,search:l,hash:u}=t(),{loading:d,login:f,cancel:p}=a(`${c}${l}${u}`);return(0,o.jsx)(i,{tone:`info`,className:s,actions:(0,o.jsx)(e,{variant:`ghost`,leftIcon:d?void 0:(0,o.jsx)(r,{className:`h-4 w-4`}),onClick:d?p:()=>void f(),children:d?`Cancel`:`Log In`}),children:n})}export{s as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CAM1RhH8.js";var t=e(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{f as e,n as t}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./assistant-identity-store-DIyVo8LV.js";import{u as i}from"./routes-vE-2hncW.js";import{t as a}from"./plugins-surface-D4i2vqBz.js";var o=n();function s(){let n=r.use.version(),s=a(),{name:c}=e();return n===null?null:!s||!c?(0,o.jsx)(t,{to:i.superpowers,replace:!0}):(0,o.jsx)(t,{to:`${i.superpowers}?plugin=${encodeURIComponent(c)}`,replace:!0})}export{s as PluginDetailPage};
@@ -1 +0,0 @@
1
- import{m as e,n as t}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{u as r}from"./routes-vE-2hncW.js";var i=n();function a(){let[n]=e(),a=n.toString();return(0,i.jsx)(t,{to:`${r.superpowers}${a?`?${a}`:``}`,replace:!0})}export{a as PluginsPage};
@@ -1 +0,0 @@
1
- import{r as e}from"./utils-CnB60ZJN.js";var t=`0.10.3`;function n(){return e(t)}export{n as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CAM1RhH8.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{A as n,M as r,N as i,O as a,T as o,a as s,c,d as l,f as u,j as d,l as f,o as p,p as m,s as h,u as g,w as _}from"./button-Dy5001j6.js";import{t as v}from"./jsx-runtime-D3ZM-ToX.js";import{t as y}from"./cn-CJf7MmLX.js";import{i as b,n as x,r as S,t as C}from"./Combination-CkAMwkbS.js";var w=e(t(),1),T=v(),E=`Popover`,[D,ee]=d(E,[m]),O=m(),[k,A]=D(E),j=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=O(t),c=w.useRef(null),[l,d]=w.useState(!1),[f,m]=p({prop:r,defaultProp:i??!1,onChange:a,caller:E});return(0,T.jsx)(u,{...s,children:(0,T.jsx)(k,{scope:t,contentId:_(),triggerRef:c,open:f,onOpenChange:m,onOpenToggle:w.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:l,onCustomAnchorAdd:w.useCallback(()=>d(!0),[]),onCustomAnchorRemove:w.useCallback(()=>d(!1),[]),modal:o,children:n})})};j.displayName=E;var M=`PopoverAnchor`,N=w.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A(M,n),a=O(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return w.useEffect(()=>(o(),()=>s()),[o,s]),(0,T.jsx)(f,{...a,...r,ref:t})});N.displayName=M;var P=`PopoverTrigger`,F=w.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,s=A(P,n),c=O(n),l=r(t,s.triggerRef),u=(0,T.jsx)(a.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":X(s.open),...o,ref:l,onClick:i(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,T.jsx)(f,{asChild:!0,...c,children:u})});F.displayName=P;var I=`PopoverPortal`,[L,R]=D(I,{forceMount:void 0}),z=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=A(I,t);return(0,T.jsx)(L,{scope:t,forceMount:n,children:(0,T.jsx)(h,{present:n||a.open,children:(0,T.jsx)(c,{asChild:!0,container:i,children:r})})})};z.displayName=I;var B=`PopoverContent`,V=w.forwardRef((e,t)=>{let n=R(B,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=A(B,e.__scopePopover);return(0,T.jsx)(h,{present:r||a.open,children:a.modal?(0,T.jsx)(U,{...i,ref:t}):(0,T.jsx)(W,{...i,ref:t})})});V.displayName=B;var H=n(`PopoverContent.RemoveScroll`),U=w.forwardRef((e,t)=>{let n=A(B,e.__scopePopover),a=w.useRef(null),o=r(t,a),s=w.useRef(!1);return w.useEffect(()=>{let e=a.current;if(e)return x(e)},[]),(0,T.jsx)(C,{as:H,allowPinchZoom:!0,children:(0,T.jsx)(G,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:i(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;s.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:i(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=w.forwardRef((e,t)=>{let n=A(B,e.__scopePopover),r=w.useRef(!1),i=w.useRef(!1);return(0,T.jsx)(G,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),G=w.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=e,m=A(B,n),h=O(n);return b(),(0,T.jsx)(S,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,T.jsx)(o,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,T.jsx)(l,{"data-state":X(m.open),role:`dialog`,id:m.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),K=`PopoverClose`,q=w.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=A(K,n);return(0,T.jsx)(a.button,{type:`button`,...r,ref:t,onClick:i(e.onClick,()=>o.onOpenChange(!1))})});q.displayName=K;var J=`PopoverArrow`,Y=w.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=O(n);return(0,T.jsx)(g,{...i,...r,ref:t})});Y.displayName=J;function X(e){return e?`open`:`closed`}var Z=j,Q=N,$=F,te=z,ne=V,re=q,ie=Z;function ae(e){return(0,T.jsx)($,{"data-slot":`popover-trigger`,...e})}function oe(e){return(0,T.jsx)(re,{"data-slot":`popover-close`,...e})}function se(e){return(0,T.jsx)(Q,{"data-slot":`popover-anchor`,...e})}function ce({className:e,children:t,sideOffset:n=6,align:r=`center`,ref:i,...a}){let o=s();return(0,T.jsx)(te,{container:o??void 0,children:(0,T.jsx)(ne,{ref:i,"data-slot":`popover-content`,align:r,sideOffset:n,className:y(`z-50 rounded-lg bg-[var(--surface-lift)] p-2 shadow-[var(--shadow-popover)] outline-none`,`text-[color:var(--content-default)]`,`data-[state=open]:animate-[popoverIn_120ms_ease-out]`,e),...a,children:t})})}var le={Root:ie,Trigger:ae,Content:ce,Close:oe,Anchor:se};export{le as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{a as t,n,o as r,r as i,s as a}from"./device-settings-DXp9L4iB.js";import{t as o}from"./react-BFJW0bSv.js";import{F as s,t as c}from"./button-Dy5001j6.js";import{n as l}from"./QueryClientProvider-CMu7CkQU.js";import{t as u}from"./useQuery-Bz-fbQ-m.js";import{t as d}from"./useMutation-CXGTrp4W.js";import{t as f}from"./jsx-runtime-D3ZM-ToX.js";import{t as p}from"./cn-CJf7MmLX.js";import{t as m}from"./card-DRIctGVs.js";import{t as h}from"./chevron-down-B5A-0g8A.js";import{t as g}from"./chevron-right-HU6H84S0.js";import{t as _}from"./loader-circle-XREx3i4W.js";import{c as v,o as y,r as b,t as x}from"./threshold-presets-BO8En2q0.js";import{t as S}from"./pencil-D38YNe2r.js";import{t as C}from"./shield-check-22NwY9JM.js";import{t as w}from"./trash-2-L5LNgw9o.js";import{t as T}from"./x-JBAsSOmg.js";import{t as E}from"./notice-BMK7xqUw.js";import{t as D}from"./tag-NXcyiTkK.js";import{t as O}from"./input-hw3el2GJ.js";import{t as k}from"./toggle-lfnhEAcN.js";import{n as A}from"./toast-LgLp4obE.js";import{t as j}from"./confirm-dialog-UYFm4osC.js";import{t as M}from"./dropdown-BCfnSdIZ.js";import{n as N,p as P,r as F}from"./auth-store-DRSla1t1.js";import{t as ee}from"./sdk.gen-BIu1DgTs.js";import{c as te,i as ne,m as re,n as ie,o as I,r as ae,s as oe,t as se}from"./native-biometric-CntdlaL-.js";import{l as ce,u as le}from"./routes-vE-2hncW.js";import{i as L,r as ue,t as de}from"./use-platform-gate-CZiHg0SL.js";import{d as fe,f as pe}from"./prefs-BZnS5vR_.js";import{n as me,t as R}from"./react-query.gen-Mwd5l-vZ.js";import{a as z,c as he,n as ge,o as _e,r as B,s as ve,u as ye}from"./trust-rules-api-C0-hkXT2.js";import{t as be}from"./platform-login-notice-D1DIqKAq.js";import{t as V}from"./use-active-assistant-id-CXhDyK7y.js";import{t as H}from"./detail-card-BMRGmkia.js";import{t as U}from"./setting-row-Aw2e2F86.js";import{t as xe}from"./settings-divider-DLdNQaGW.js";var W=e(o(),1),G=f(),K=[{id:`accessibility`,type:`system`,sourceKind:`accessibility`,label:`Accessibility`,description:`Allows your assistant to click, type, and control apps on your behalf.`},{id:`screen`,type:`system`,sourceKind:`screen`,label:`Screen Recording`,description:`Allows your assistant to capture screen context during computer-use tasks.`},{id:`microphone`,type:`system`,sourceKind:`microphone`,label:`Microphone`,description:`Allows your assistant to capture audio for voice input and recordings.`},{id:`speechRecognition`,type:`system`,sourceKind:`speechRecognition`,label:`Speech Recognition`,description:`Allows your assistant to transcribe your speech into text on-device.`},{id:`notifications`,type:`system`,sourceKind:`notifications`,label:`Notifications`,description:`Allows your assistant to send macOS alerts for approvals, messages, and task updates.`}],Se=[{id:`notificationBadges`,type:`local`,label:`Notification Badges`,description:`Allows your assistant to show unseen conversation counts on the Dock icon.`}];function Ce(){let[e,t]=(0,W.useState)(null);return{pendingKind:e,run:async(e,n)=>{t(e);try{await n()}catch{}finally{t(t=>t===e?null:t)}}}}function we(){let[e,r]=(0,W.useState)(()=>n(`dockBadgesEnabled`,!0));return(0,W.useEffect)(()=>a(`dockBadgesEnabled`,()=>{r(n(`dockBadgesEnabled`,!0))}),[]),[e,e=>{r(e),t(`dockBadgesEnabled`,e),e||_e(0)}]}function Te({row:e,onToggle:t}){return(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(k,{checked:e.checked,disabled:e.disabled,"aria-label":e.label,onChange:()=>t(e.id)}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`button`,{type:`button`,disabled:e.disabled,onClick:()=>t(e.id),className:p(`block w-full text-left`,e.disabled?`cursor-not-allowed`:`cursor-pointer`),children:[(0,G.jsx)(`span`,{className:`block text-[14px] font-semibold leading-[18px] text-[var(--content-emphasised)]`,children:e.label}),(0,G.jsx)(`span`,{className:`mt-1 block text-[13px] font-medium leading-[18px] text-[var(--content-tertiary)]`,children:e.description})]}),e.error&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:e.error})]})]})}function Ee(){return(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`h-4 w-4 animate-spin rounded-full border-2 border-[var(--border-base)] border-t-[var(--content-tertiary)]`})}function De({compact:e=!1}){let{state:t,loading:n,error:r,supported:i,refresh:a}=ye(),{pendingKind:o,run:s}=Ce(),[c,l]=we(),u=(0,W.useMemo)(()=>{let e=new Map;if(!t)return e;for(let n of K){let r=t[n.sourceKind];r&&e.set(n.id,{meta:n,item:r})}return e},[t]),d=(0,W.useMemo)(()=>{let e=K.map(e=>{let t=u.get(e.id)?.item;return t?{id:e.id,label:e.label,description:e.description,checked:t.status===`granted`,disabled:o===e.id||t.status===`restricted`,...t.error?{error:t.error}:{}}:null}).filter(Boolean),t=Se.map(e=>({id:e.id,label:e.label,description:e.description,checked:c,disabled:o===e.id}));return[...e,...t]},[c,o,u]);if(!i)return null;let f=async(e,t)=>{t.status===`granted`||t.status===`denied`||!t.canRequest?await ve(e.sourceKind):await he(e.sourceKind),await a()},p=e=>{let t=u.get(e);if(t){s(e,()=>f(t.meta,t.item));return}e===`notificationBadges`&&s(e,async()=>{l(!c)})};return(0,G.jsxs)(`section`,{className:`w-full rounded-[20px] border border-[var(--border-hover)] bg-[var(--surface-lift)] px-4 pb-3 pt-5`,children:[(0,G.jsx)(`h2`,{className:`text-[18px] font-semibold leading-[22px] text-[var(--content-emphasised)]`,children:`System Permissions`}),n&&d.length===0?(0,G.jsxs)(`div`,{className:`mt-6 flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,G.jsx)(Ee,{}),`Checking permissions...`]}):(0,G.jsx)(`div`,{className:`mt-3 space-y-2`,children:d.map(e=>(0,G.jsx)(Te,{row:e,onToggle:p},e.id))}),r&&(0,G.jsx)(`div`,{role:`alert`,className:`mt-6 rounded-lg border border-[color-mix(in_srgb,var(--system-negative-strong)_25%,transparent)] bg-[var(--system-negative-weak)] p-3 text-body-medium-lighter text-[var(--content-secondary)]`,children:r})]})}function Oe(){let e=L({platformHostedOnly:!0}),t=de(),n=ue(),r=l(),{data:i,isLoading:a,isError:o}=u({...R(),enabled:e===`full`&&t}),s=d({mutationFn:async e=>{let{data:t}=await ee({body:{access_consented:e},throwOnError:!0});return t},onSuccess:e=>{me(r,void 0,e),A.success(e?.access_consented?`Admin data access enabled.`:`Admin data access disabled.`)},onError:()=>{A.error(`Failed to update log access consent.`)}});if(e===`gated`)return null;let c=e===`full`&&n,f=i?.access_consented??!1,p=e!==`full`||!t||a||o||s.isPending;return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Allow Staff Access`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:`When enabled, Vellum Staff will be able to access your assistant and its data for debugging purposes. It's suggested that you leave this off and only turn it on temporarily if you need Vellum Support's help in investigating an issue.`}),e===`full`&&o&&(0,G.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--system-negative-strong)]`,children:`Failed to load consent setting.`})]}),(0,G.jsx)(`div`,{className:`flex items-center gap-2`,children:e===`disabled`?null:(0,G.jsxs)(G.Fragment,{children:[(s.isPending||c)&&(0,G.jsx)(_,{className:`h-4 w-4 animate-spin text-[var(--content-tertiary)]`}),(0,G.jsx)(k,{checked:f,disabled:p,onChange:()=>s.mutate(!f)})]})})]}),e===`disabled`&&(0,G.jsx)(be,{className:`mt-3`,children:`Log in to the Vellum platform to manage admin data access.`})]})}function ke(){let e=re(),[t,n]=(0,W.useState)(()=>ne()),[r,i]=(0,W.useState)(!1),[a,o]=(0,W.useState)(`Face ID`),[s,c]=(0,W.useState)(!1);if((0,W.useEffect)(()=>{e&&(ae().then(i),ie().then(o))},[e]),!e||!r)return null;let l=async()=>{c(!0);try{if(t)I(!1),await se(),n(!1);else{let e=te();e&&await oe(e),I(!0),n(!0)}}finally{c(!1)}};return(0,G.jsx)(H,{title:`Security`,children:(0,G.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsxs)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:[`Use `,a,` for sign-in`]}),(0,G.jsxs)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-tertiary)]`,children:[`When your session expires, verify with `,a,` or your device passcode instead of signing in again.`]})]}),(0,G.jsx)(k,{checked:t,onChange:()=>void l(),disabled:s})]})})}var q=[`youtube.com`,`youtu.be`,`vimeo.com`,`loom.com`];function Ae(e){try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(e=>typeof e==`string`)}catch{}return[...q]}function je(){return n(`mediaEmbedsEnabled`,!0)}function Me(){let e=i(`mediaEmbedDomains`,``);return e?Ae(e):[...q]}function Ne(){let[e,n]=(0,W.useState)(()=>je()),[i,a]=(0,W.useState)(()=>Me()),[o,s]=(0,W.useState)(!1),[l,u]=(0,W.useState)(``),d=(0,W.useMemo)(()=>l.trim().toLowerCase(),[l]),f=e=>{n(e),t(`mediaEmbedsEnabled`,e)},p=e=>{a(e),r(`mediaEmbedDomains`,JSON.stringify(e))},m=()=>{if(d){if(i.includes(d)){u(``);return}p([...i,d]),u(``)}},_=e=>{p(i.filter(t=>t!==e))},v=()=>{p([...q])},y=i.length===q.length&&i.every((e,t)=>e===q[t]);return(0,G.jsxs)(H,{title:`Media Embeds`,subtitle:`Automatically embed images, videos, and other media shared in chat messages.`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,G.jsx)(`div`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:`Auto Media Embeds`}),(0,G.jsx)(k,{checked:e,onChange:f})]}),e&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{className:`mt-4`,children:(0,G.jsx)(xe,{})}),(0,G.jsxs)(c,{type:`button`,variant:`ghost`,onClick:()=>s(e=>!e),className:`mt-4 w-full justify-between px-3`,"aria-expanded":o,children:[(0,G.jsxs)(`span`,{className:`flex items-center gap-2`,children:[o?(0,G.jsx)(h,{className:`h-4 w-4`,"aria-hidden":!0}):(0,G.jsx)(g,{className:`h-4 w-4`,"aria-hidden":!0}),`Video Domain Allowlist`]}),(0,G.jsxs)(`span`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:[i.length,` domain`,i.length===1?``:`s`]})]}),o&&(0,G.jsxs)(`div`,{className:`mt-3 space-y-3`,children:[(0,G.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,G.jsx)(O,{label:`Add Domain`,type:`text`,value:l,onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),m())},placeholder:`Add domain (e.g. example.com)`,fullWidth:!0,wrapperClassName:`flex-1`}),(0,G.jsx)(c,{variant:`primary`,size:`compact`,onClick:m,disabled:!d,children:`Add`})]}),i.length>0&&(0,G.jsx)(`div`,{className:`flex justify-end`,children:(0,G.jsx)(c,{type:`button`,variant:`ghost`,size:`compact`,onClick:v,disabled:y,tintColor:`var(--content-tertiary)`,children:`Reset to Defaults`})}),i.length>0&&(0,G.jsx)(`ul`,{className:`space-y-2`,children:i.map(e=>(0,G.jsxs)(`li`,{className:`flex items-center justify-between rounded-md border border-[var(--border-base)] px-3 py-2 text-body-medium-lighter`,children:[(0,G.jsx)(`span`,{className:`font-mono text-[var(--content-default)]`,children:e}),(0,G.jsx)(c,{variant:`dangerGhost`,size:`compact`,iconOnly:(0,G.jsx)(w,{}),onClick:()=>_(e),"aria-label":`Remove ${e}`})]},e))})]})]})]})}function J(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}var Y=x.map(e=>({value:e.id,label:e.label,icon:(0,G.jsx)(e.icon,{className:`h-3.5 w-3.5`})}));function Pe(){let e=V(),t=l(),{data:n,isError:r}=u({queryKey:[`thresholds`,e],queryFn:()=>y(e),staleTime:3e4}),[i,a]=(0,W.useState)(`relaxed`),[o,s]=(0,W.useState)(`conservative`),[c,d]=(0,W.useState)(`strict`),[f,p]=(0,W.useState)(!1),_=(0,W.useRef)(!1),[S,C]=(0,W.useState)(!1),w=(0,W.useRef)(null),T=(0,W.useRef)(null);(0,W.useEffect)(()=>{!n||_.current||(a(b(n.interactive).id),s(b(n.autonomous).id),d(b(n.headless).id),C(!0))},[n]),(0,W.useEffect)(()=>()=>{w.current!==null&&(clearTimeout(w.current),w.current=null,T.current?.(),T.current=null)},[]);let E=(0,W.useCallback)((n,r,i)=>{if(!e||!S)return;let a=x.find(e=>e.id===n)?.riskThreshold,o=x.find(e=>e.id===r)?.riskThreshold,s=x.find(e=>e.id===i)?.riskThreshold;!a||!o||!s||v(e,{interactive:a,autonomous:o,headless:s}).then(()=>{t.invalidateQueries({queryKey:[`thresholds`,e]})}).catch(()=>{})},[e,S,t]),D=(0,W.useCallback)((e,t,n)=>{w.current!==null&&clearTimeout(w.current),T.current=()=>E(e,t,n),w.current=setTimeout(()=>{T.current?.(),w.current=null,T.current=null},500)},[E]),O=(0,W.useCallback)(e=>{_.current=!0,a(e),D(e,o,c)},[o,c,D]),k=(0,W.useCallback)(e=>{_.current=!0,s(e),D(i,e,c)},[i,c,D]),A=(0,W.useCallback)(e=>{_.current=!0,d(e),D(i,o,e)},[i,o,D]),j=x.find(e=>e.id===i),N=x.find(e=>e.id===o),P=x.find(e=>e.id===c),F=!e||!S;return(0,G.jsxs)(m,{children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Assistant Access`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Control which actions your assistant can take without asking first. Each action is classified by risk level — your access level determines which levels auto-approve. Trust Rules fine-tune this for specific actions by raising or lowering their risk.`}),r&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--system-negative-strong)]`,children:`Could not load threshold settings. Check your connection and reload.`}),(0,G.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Conversations`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When you're chatting with your assistant directly.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(M,{value:i,onChange:O,options:Y,disabled:F})}),j&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:j.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`button`,{type:`button`,onClick:()=>p(e=>!e),className:`flex items-center gap-1 text-[var(--content-secondary)] hover:text-[var(--content-default)] transition-colors`,"aria-expanded":f,children:[f?(0,G.jsx)(h,{className:`h-4 w-4`}):(0,G.jsx)(g,{className:`h-4 w-4`}),(0,G.jsx)(`span`,{className:`text-body-medium-default`,children:`Advanced`})]}),(0,G.jsxs)(`div`,{className:f?`mt-4 space-y-4`:`hidden`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Background`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When your assistant acts without you — scheduled tasks, background jobs, and external triggers.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(M,{value:o,onChange:k,options:Y,disabled:F})}),N&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:N.description})]}),(0,G.jsx)(J,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`div`,{className:`text-body-medium-default text-[var(--content-default)]`,children:`Headless`}),(0,G.jsx)(`p`,{className:`mt-0.5 text-body-small-default text-[var(--content-tertiary)]`,children:`When triggered externally with no interactive client.`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(M,{value:c,onChange:A,options:Y,disabled:F})}),P&&(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:P.description})]})]})]})]})]})}var X=e(s(),1),Fe=[`bash`,`file_read`,`file_write`,`file_edit`,`web_fetch`,`skill_load`],Ie=[{value:`low`,label:`Low`,description:`Auto-approve without prompting`},{value:`medium`,label:`Medium`,description:`Prompt before executing`},{value:`high`,label:`High`,description:`Always require explicit approval`}];function Z({assistantId:e,existingRule:t,onClose:n,onSaved:r}){let i=(0,W.useRef)(null),[a,o]=(0,W.useState)(t.tool),[s,c]=(0,W.useState)(t.pattern),[l,u]=(0,W.useState)(t.risk),[d,f]=(0,W.useState)(t.description??``),[p,m]=(0,W.useState)(!1),[h,g]=(0,W.useState)(null),_=s.trim(),v=_.length>0&&!p,y=(0,W.useCallback)(async n=>{if(n.preventDefault(),!v)return;let i=d.trim()||`${a} — ${_}`;m(!0),g(null);try{await z(e,t.id,{risk:l,description:i}),r()}catch(e){g(e instanceof Error?e.message:`Failed to save trust rule.`)}finally{m(!1)}},[e,v,d,t,r,l,a,_]);return(0,X.createPortal)((0,G.jsx)(`div`,{ref:i,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rule-form-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,W.useCallback)(e=>{e.key===`Escape`&&n()},[n]),onClick:(0,W.useCallback)(e=>{e.target===i.current&&n()},[n]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[calc(100vh-2rem)] w-full max-w-md flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rule-form-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Edit Trust Rule`}),(0,G.jsx)(`button`,{type:`button`,onClick:n,"aria-label":`Close`,className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(T,{className:`h-4 w-4`})})]}),(0,G.jsxs)(`form`,{onSubmit:e=>void y(e),className:`min-h-0 flex-1 space-y-4 overflow-y-auto px-6 py-4`,children:[h&&(0,G.jsx)(E,{tone:`error`,children:h}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`trust-rule-tool`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`Tool`}),(0,G.jsx)(`div`,{className:`mt-1`,children:(0,G.jsx)(M,{value:a,onChange:o,disabled:!0,options:Fe.map(e=>({value:e,label:e}))})})]}),(0,G.jsx)(O,{label:`Pattern`,type:`text`,value:s,onChange:e=>c(e.target.value),placeholder:`e.g., git *`,disabled:!0}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`block text-body-medium-default text-[var(--content-default)]`,children:`Risk Level`}),(0,G.jsx)(`div`,{className:`mt-2 flex gap-2`,children:Ie.map(e=>(0,G.jsxs)(`button`,{type:`button`,onClick:()=>u(e.value),className:`flex-1 rounded-lg border px-3 py-2 text-left text-body-small-default transition-colors ${l===e.value?e.value===`low`?`border-[var(--system-positive-strong)] bg-[var(--system-positive-weak)] text-[var(--system-positive-strong)]`:e.value===`medium`?`border-[var(--system-warning-strong)] bg-[var(--system-warning-weak)] text-[var(--system-warning-strong)]`:`border-[var(--system-negative-strong)] bg-[var(--system-negative-weak)] text-[var(--system-negative-strong)]`:`border-[var(--border-element)] text-[var(--content-default)] hover:bg-[var(--surface-base)]`}`,children:[(0,G.jsx)(`div`,{children:e.label}),(0,G.jsx)(`div`,{className:`mt-0.5 text-label-medium-default leading-tight opacity-70`,children:e.description})]},e.value))})]}),(0,G.jsx)(O,{label:`Description (optional)`,type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`${a} — ${_||`pattern`}`}),(0,G.jsxs)(`div`,{className:`flex justify-end gap-2 pt-2`,children:[(0,G.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg border border-[var(--border-element)] bg-white px-4 py-2 text-body-medium-default text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)] dark:border-[var(--border-base)] dark:bg-[var(--surface-lift)] dark:hover:bg-[var(--ghost-hover)]`,children:`Cancel`}),(0,G.jsx)(`button`,{type:`submit`,disabled:!v,className:`rounded-lg bg-[var(--system-positive-strong)] px-4 py-2 text-body-medium-default text-white transition-colors hover:bg-[var(--system-positive-strong)] disabled:cursor-not-allowed disabled:opacity-50`,children:p?`Saving…`:`Save`})]})]})]})}),document.body)}function Le(e){return e.origin===`default`&&!e.userModified}function Re(e,t){let n=new Set,r=[];for(let t of e)n.has(t.id)||(n.add(t.id),r.push(t));for(let e of t)n.has(e.id)||(n.add(e.id),r.push(e));return r.sort((e,t)=>e.tool===t.tool?e.description.localeCompare(t.description):e.tool.localeCompare(t.tool))}function ze(e){switch(e){case`low`:return`positive`;case`medium`:return`warning`;case`high`:return`negative`}}function Q(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Be({assistantId:e,onClose:t}){let n=(0,W.useRef)(null),[r,i]=(0,W.useState)([]),[a,o]=(0,W.useState)(!0),[s,l]=(0,W.useState)(null),[u,d]=(0,W.useState)(null),[f,p]=(0,W.useState)(null),[m,h]=(0,W.useState)(!1),g=(0,W.useCallback)(async t=>{if(t){let[t,n]=await Promise.all([B(e),B(e,{origin:`default`})]);return Re(t,n)}return B(e)},[e]),_=(0,W.useCallback)(async()=>{o(!0);try{i(await g(m)),l(null)}catch(e){l(e instanceof Error?e.message:`Failed to load trust rules.`)}finally{o(!1)}},[g,m]);(0,W.useEffect)(()=>{let e=!1;return(async()=>{o(!0);try{let t=await g(m);e||(i(t),l(null))}catch(t){e||l(t instanceof Error?t.message:`Failed to load trust rules.`)}finally{e||o(!1)}})(),()=>{e=!0}},[g,m]);let v=(0,W.useCallback)(async()=>{if(f)try{await ge(e,f.id),_()}catch(e){l(e instanceof Error?e.message:`Failed to delete trust rule.`)}finally{p(null)}},[e,f,_]);return(0,X.createPortal)((0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:n,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`trust-rules-title`,className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onKeyDown:(0,W.useCallback)(e=>{e.key===`Escape`&&t()},[t]),onClick:(0,W.useCallback)(e=>{e.target===n.current&&t()},[t]),children:(0,G.jsxs)(`div`,{className:`mx-4 flex max-h-[80vh] w-full max-w-2xl flex-col rounded-xl border border-[var(--border-base)] bg-[var(--surface-lift)] shadow-xl`,children:[(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-b border-[var(--border-base)] px-6 py-4`,children:[(0,G.jsx)(`h2`,{id:`trust-rules-title`,className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,G.jsx)(k,{checked:m,onChange:h,label:`Show all defaults`}),(0,G.jsx)(c,{variant:`outlined`,onClick:t,children:`Done`})]})]}),(0,G.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:[s&&(0,G.jsx)(`div`,{className:`mb-3`,children:(0,G.jsx)(E,{tone:`error`,children:s})}),a?(0,G.jsx)(`div`,{className:`flex h-48 items-center justify-center text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Loading…`}):r.length===0?(0,G.jsxs)(`div`,{className:`flex h-48 flex-col items-center justify-center gap-2 px-6 text-[var(--content-tertiary)]`,children:[(0,G.jsx)(C,{className:`h-8 w-8`}),(0,G.jsx)(`p`,{className:`max-w-xs text-center text-body-medium-lighter`,children:`No trust rules yet. Rules are created when you classify actions from permission prompts.`})]}):(0,G.jsx)(`ul`,{className:`divide-y divide-[var(--border-base)]`,children:r.map(e=>{let t=Le(e);return(0,G.jsxs)(`li`,{className:`flex items-start gap-3 py-3`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-default)]`,children:e.tool}),(0,G.jsx)(D,{tone:ze(e.risk),children:Q(e.risk)}),e.origin===`default`&&(0,G.jsx)(D,{tone:`neutral`,children:`Default`}),e.userModified&&(0,G.jsx)(D,{tone:`warning`,children:`Modified`})]}),(0,G.jsx)(`div`,{className:`mt-1 truncate font-mono text-body-small-default text-[var(--content-secondary)]`,children:e.pattern}),e.description&&(0,G.jsx)(`div`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:e.description})]}),(0,G.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,G.jsx)(`button`,{type:`button`,"aria-label":`Edit ${e.tool} rule`,onClick:()=>d(e),className:`rounded-lg p-1.5 text-[var(--content-tertiary)] transition-colors hover:bg-[var(--surface-base)] hover:text-[var(--content-default)]`,children:(0,G.jsx)(S,{className:`h-4 w-4`})}),(!t||e.userModified)&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Delete ${e.tool} rule`,onClick:()=>p(e),className:`rounded-lg p-1.5 text-[var(--system-negative-strong)] transition-colors hover:bg-[var(--system-negative-weak)]`,children:(0,G.jsx)(w,{className:`h-4 w-4`})})]})]},e.id)})})]})]})}),u&&(0,G.jsx)(Z,{assistantId:e,existingRule:u,onClose:()=>d(null),onSaved:()=>{d(null),_()}}),(0,G.jsx)(j,{open:f!==null,title:`Delete Trust Rule?`,message:f?`Remove the ${Q(f.risk).toLowerCase()}-risk rule for ${f.tool} matching "${f.pattern}"?`:``,confirmLabel:`Delete`,cancelLabel:`Cancel`,destructive:!0,onConfirm:()=>void v(),onCancel:()=>p(null)})]}),document.body)}function Ve(){let e=V(),[t,n]=(0,W.useState)(!1);return(0,G.jsxs)(m,{children:[(0,G.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,G.jsx)(C,{className:`mt-0.5 h-5 w-5 shrink-0 text-[var(--content-secondary)]`}),(0,G.jsxs)(`div`,{className:`flex-1`,children:[(0,G.jsx)(`h2`,{className:`text-title-medium text-[var(--content-default)]`,children:`Trust Rules`}),(0,G.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Manage per-tool rules that control which actions auto-approve and which require your explicit permission.`})]}),(0,G.jsx)(c,{variant:`outlined`,onClick:()=>n(!0),children:`Manage`})]}),t&&(0,G.jsx)(Be,{assistantId:e,onClose:()=>n(!1)})]})}var He=[{value:`dontRetain`,label:`Don't retain`},{value:`oneHour`,label:`1 hour`},{value:`oneDay`,label:`1 day`},{value:`sevenDays`,label:`7 days`},{value:`thirtyDays`,label:`30 days`},{value:`ninetyDays`,label:`90 days`},{value:`keepForever`,label:`Keep forever`}],Ue=`thirtyDays`;function $(){return(0,G.jsx)(`div`,{className:`h-px bg-[var(--surface-active)] dark:bg-[var(--surface-lift)]`})}function We(){let e=L({platformHostedOnly:!0}),t=F(),n=t,a=N.use.user()?.id??null,[o]=fe(),[s]=pe(),c=o??!0,l=s??!0,[u,d]=(0,W.useState)(()=>i(`llmLogRetention`,Ue));return(0,G.jsxs)(`div`,{className:`space-y-4`,children:[(0,G.jsx)(ke,{}),(0,G.jsx)(De,{}),(0,G.jsx)(Ve,{}),(0,G.jsx)(Pe,{}),(0,G.jsx)(Ne,{}),(0,G.jsx)(H,{title:`Privacy`,subtitle:t?(0,G.jsxs)(G.Fragment,{children:[`View details about what data we collect and how it's used in our`,` `,(0,G.jsx)(`a`,{href:ce(le.docs.legal.privacyPolicy),target:`_blank`,rel:`noreferrer`,className:`underline`,children:`privacy policy`}),`.`]}):void 0,children:(0,G.jsxs)(`div`,{className:`space-y-4`,children:[n&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(U,{label:`Share Analytics`,helperText:`Send aggregated product usage data`,checked:c,onChange:()=>{P(`share_analytics`,!c,{userId:a,hasPlatformSession:t})},variant:`toggle-trailing`}),(0,G.jsx)($,{}),(0,G.jsx)(U,{label:`Share Diagnostics`,helperText:`Send crash reports, conversation traces, and session replay data`,checked:l,onChange:()=>{P(`share_diagnostics`,!l,{userId:a,hasPlatformSession:t})},variant:`toggle-trailing`}),(0,G.jsx)($,{})]}),(0,G.jsx)(Oe,{}),e!==`gated`&&(0,G.jsx)($,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`label`,{htmlFor:`llm-log-retention`,className:`block text-body-medium-default text-[var(--content-default)]`,children:`LLM Request Log Retention`}),(0,G.jsx)(`div`,{className:`mt-2`,style:{maxWidth:280},children:(0,G.jsx)(M,{value:u,onChange:e=>{d(e),r(`llmLogRetention`,e)},options:He})}),(0,G.jsx)(`p`,{className:`mt-2 text-body-small-default text-[var(--content-tertiary)]`,children:`How long to keep LLM request and response logs on this device. These logs record the prompts and completions sent to model providers and are used for debugging. Shorter retention improves privacy; longer retention helps troubleshoot issues.`})]})]})})]})}export{We as PrivacyPage};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-Dy5001j6.js";import{m as r,u as i}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as a}from"./jsx-runtime-D3ZM-ToX.js";import{f as o}from"./local-mode-Ckii2tmN.js";import{t as s}from"./is-electron-m5eeGBnd.js";import{f as c,i as l,n as u}from"./auth-store-DRSla1t1.js";import{m as d}from"./native-biometric-CntdlaL-.js";import{u as f}from"./routes-vE-2hncW.js";import{f as p,p as m,u as h}from"./prefs-BZnS5vR_.js";import{l as g,n as _,o as v}from"./funnel-events-CK938pi2.js";import{t as y}from"./onboarding-layout-Dd5fPfE7.js";import{t as b}from"./plugin-attribution-BJldO0Fa.js";import{n as x,t as S}from"./consent-controls-gSkPdHxT.js";var C=e(t(),1),w=a();function T({current:e,total:t,color:n}){return(0,w.jsx)(`div`,{className:`flex items-center gap-1.5`,role:`group`,"aria-label":`Step ${e+1} of ${t}`,children:Array.from({length:t},(t,r)=>(0,w.jsx)(`div`,{"aria-hidden":`true`,className:`h-[3px] w-8 rounded-full transition-colors`,style:n?{backgroundColor:n,opacity:r<=e?1:.3}:void 0,children:n?null:(0,w.jsx)(`div`,{className:`h-full w-full rounded-full bg-[var(--content-default)] ${r<=e?``:`opacity-20`}`})},r))})}function E({isNative:e,isLocalHatch:t}){return e||t?f.onboarding.hatching:f.onboarding.research}function D(){let e=i(),[t]=r(),a=u.use.user()?.id??null,D=s(),O=d(),[k,A]=p(),j=k??!0,[M,N]=m(),[P,F]=h(),I=l();(0,C.useEffect)(()=>{O||g()},[O]);let L=t.get(`preview`)===`true`,R=(0,C.useCallback)(e=>{},[]),z=L?R:A,B=L?R:N,V=L?R:F,H=(0,C.useCallback)(()=>{if(L)return;c({userId:a,tos:M,privacy:P,shareAnalytics:null,shareDiagnostics:j,hasPlatformSession:I}),O||v(_.privacyTos,{userId:a});let n=t.get(`hosting`),r=new URLSearchParams;n&&r.set(`hosting`,n);let i=t.get(b);i&&r.set(b,i);let s=r.toString();e(`${E({isNative:O,isLocalHatch:o()&&n!==null&&n!==`vellum-cloud`})}${s?`?${s}`:``}`)},[P,I,O,L,e,t,j,M,a]);return(0,w.jsx)(y,{children:(0,w.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${D?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[O&&(0,w.jsx)(`div`,{className:`mb-8 flex w-full justify-center`,style:{animation:`fadeInUp 0.3s ease-out 0.1s both`},children:(0,w.jsx)(T,{current:2,total:3})}),(0,w.jsx)(`h1`,{className:D?`text-title-large`:`text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.5s ease-out 0.1s both`},children:`Before You Start`}),(0,w.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${D?`mt-3.5`:`mt-4`}`,style:{animation:`fadeInUp 0.5s ease-out 0.3s both`},children:`Choose your privacy preferences. You can update these anytime in the Settings.`}),(0,w.jsx)(x,{electron:D,showAnalytics:!1,shareAnalytics:!1,shareDiagnostics:j,onShareAnalyticsChange:R,onShareDiagnosticsChange:z,className:`mt-8 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.4s both`}}),(0,w.jsx)(S,{electron:D,privacyConsent:P,tosAccepted:M,onPrivacyChange:V,onTosChange:B,className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.5s both`}}),(0,w.jsxs)(`div`,{className:`mt-8 flex w-full flex-col ${D?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.55s both`},children:[(0,w.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:!M||!P,onClick:H,className:D?void 0:`h-11 text-base`,children:`Start`}),(0,w.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:()=>e(o()?f.onboarding.hosting:f.onboarding.start),className:D?void 0:`h-11 text-base`,children:`Back`})]})]})})}export{D as PrivacyScreen};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-D3ZM-ToX.js";import{t}from"./cn-CJf7MmLX.js";var n=e();function r(e){return Number.isNaN(e)||e<0?0:e>1?1:e}function i({value:e,"aria-label":i,className:a,height:o=6,ref:s}){let c=r(e)*100;return(0,n.jsx)(`div`,{ref:s,role:`progressbar`,"aria-label":i,"aria-valuenow":Math.round(c),"aria-valuemin":0,"aria-valuemax":100,"data-slot":`progress-bar`,className:t(`rounded-full overflow-hidden bg-[var(--surface-lift)]`,a),style:{height:o},children:(0,n.jsx)(`div`,{className:`h-full bg-[var(--content-default)] rounded-full`,style:{width:`${c}%`,transition:`width 400ms cubic-bezier(0.22, 1, 0.36, 1)`}})})}export{i as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Bj8_eutd.js";import{t as n}from"./react-BFJW0bSv.js";import{m as r,t as i,u as a}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as o}from"./jsx-runtime-D3ZM-ToX.js";import{C as s,f as c}from"./local-mode-Ckii2tmN.js";import{D as l,n as u}from"./auth-store-DRSla1t1.js";import{c as d}from"./api-XwdNiVE9.js";import{C as f,v as p}from"./native-biometric-CntdlaL-.js";import{u as m}from"./routes-vE-2hncW.js";import{a as h,i as g}from"./login-flow--Y73rf2a.js";import{t as _}from"./external-urls-HAW1JmbX.js";import{r as v,t as y}from"./account-shell-BTW_VgZV.js";var b=e(n(),1),x=o();function S(){let[e]=r(),n=a(),o=u.use.refreshSession(),S=e.get(`error`),[C,w]=(0,b.useState)(null),T=(0,b.useRef)(!1),E=e.get(`returnTo`),D=g(e);return(0,b.useEffect)(()=>{T.current||S||(T.current=!0,(async()=>{try{let t=await f(),r=p(t.ok&&!!t.data.user,t.ok?[]:t.flows??[]);switch(r.kind){case`authenticated`:{if(await o(),c())try{let e=await d();if(e.ok&&e.data.length>0&&(await s(e.data,l.getState().currentOrganizationId??void 0),!E)){n(m.assistant,{replace:!0});break}}catch{}let e=m.assistant,{destination:t,requiresFullPageNavigation:r}=h({returnTo:E,fallback:e,authIntent:D});r?window.location.href=t:n(t,{replace:!0});break}case`provider_signup`:{let t=e.get(`returnTo`);n(t?`${m.account.providerSignup}?returnTo=${encodeURIComponent(t)}`:m.account.providerSignup,{replace:!0});break}case`error`:w(r.message);break}}catch(e){t(e,{context:`provider_callback`}),w(`Something went wrong. Please try signing in again.`)}})())},[D,S,o,E,n,e]),S===`signup_closed`?(0,x.jsxs)(y,{children:[(0,x.jsx)(v,{title:`Signups are currently closed`,subtitle:`Join the community to request access or learn when signups reopen.`}),(0,x.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[(0,x.jsx)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Join the community`}),(0,x.jsx)(i,{to:m.account.login,className:`text-sm font-medium text-[var(--content-emphasised)] hover:underline`,children:`Back to sign in`})]})]}):S||C?(0,x.jsxs)(y,{children:[(0,x.jsx)(v,{title:`Authentication failed`,subtitle:C??`Something went wrong during social sign-in. Please try again or use a different method.`}),(0,x.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:(0,x.jsx)(i,{to:m.account.login,className:`inline-flex items-center justify-center gap-2 rounded-lg bg-[var(--primary-base)] px-6 py-3 text-sm font-medium text-[var(--content-inset)] no-underline transition-colors hover:bg-[var(--primary-hover)]`,children:`Back to sign in`})})]}):(0,x.jsx)(y,{children:(0,x.jsx)(v,{title:`Completing sign-in...`,subtitle:`Please wait while we finish authenticating you.`})})}export{S as ProviderCallbackPage};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{m as n,t as r,u as i}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as a}from"./jsx-runtime-D3ZM-ToX.js";import{n as o}from"./auth-store-DRSla1t1.js";import{E as s,S as c,w as l}from"./native-biometric-CntdlaL-.js";import{u}from"./routes-vE-2hncW.js";import{a as d,o as f}from"./login-flow--Y73rf2a.js";import{i as p,n as m,r as h,t as g}from"./account-shell-BTW_VgZV.js";import{t as _}from"./signup-shell-DJ7NaDbC.js";var v=e(t(),1),y=a();function b(){let e=i(),[t]=n(),a=o.use.refreshSession(),b=t.get(`returnTo`),[x,S]=(0,v.useState)(``),[C,w]=(0,v.useState)(``),[T,E]=(0,v.useState)(``),[D,O]=(0,v.useState)(``),[k,A]=(0,v.useState)(``),[j,M]=(0,v.useState)(null),[N,P]=(0,v.useState)(!1),[F,I]=(0,v.useState)(!0),L=(0,v.useRef)(!1);(0,v.useEffect)(()=>{L.current||(L.current=!0,(async()=>{try{let t=await c();if(!t.ok){e(u.account.login,{replace:!0});return}S(t.data.user.email??``),w(t.data.user.username??``),E(t.data.user.first_name??``),O(t.data.user.last_name??``),I(!1)}catch{e(u.account.login,{replace:!0})}})())},[e]);let R=async()=>{let t=await s({email:x,username:C});if(!t.ok){if(l(t)){await a();let t=f(b,u.account.root);t.requiresFullPageNavigation?window.location.href=t.destination:e(t.destination);return}M(t.errors[0]?.message??`Failed to complete signup.`);return}await a();let n=d({returnTo:b,fallback:u.account.root,authIntent:`signup`});n.requiresFullPageNavigation?window.location.href=n.destination:e(n.destination)},z=async e=>{e.preventDefault(),M(null),P(!0);try{await R()}catch{M(`Something went wrong. Please try again.`)}finally{P(!1)}},B=async e=>{if(e.preventDefault(),k.trim()){M(null),P(!0);try{await R()}catch{M(`Something went wrong. Please try again.`)}finally{P(!1)}}};if(F)return(0,y.jsx)(g,{children:(0,y.jsx)(h,{title:`Completing signup...`,subtitle:`Please wait while we load your information.`})});if(x&&C){let e=k.trim().length>0&&!N;return(0,y.jsx)(_,{children:(0,y.jsxs)(`form`,{onSubmit:B,className:`signup-details__thread`,children:[(0,y.jsxs)(`h2`,{className:`signup-details__heading`,children:[`Almost there,`,(0,y.jsx)(`br`,{}),`one more detail`]}),j&&(0,y.jsx)(`p`,{className:`signup-details__error`,children:j}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`What should I call you? `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:`First name`,value:T,readOnly:!0,disabled:!0})]}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`And your last name? `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,placeholder:`Last name`,value:D,readOnly:!0,disabled:!0})]}),(0,y.jsxs)(`div`,{className:`signup-details__step`,children:[(0,y.jsxs)(`span`,{className:`signup-details__label`,children:[`Your role `,(0,y.jsx)(`span`,{className:`signup-details__req`,children:`*`})]}),(0,y.jsx)(`input`,{className:`signup-details__input`,type:`text`,autoComplete:`organization-title`,placeholder:`e.g. Software Engineer`,value:k,onChange:e=>A(e.target.value),autoFocus:!0})]}),(0,y.jsx)(`div`,{className:`signup-details__step`,children:(0,y.jsx)(`button`,{type:`submit`,className:`signup-details__continue`,disabled:!e,children:N?`Setting up…`:`Continue →`})})]})})}return(0,y.jsxs)(g,{children:[(0,y.jsx)(h,{title:`Complete your account`,subtitle:`We need a few more details to finish setting up your account.`}),(0,y.jsxs)(m,{onSubmit:z,error:j,submitLabel:`Complete signup`,submittingLabel:`Completing...`,isSubmitting:N,footer:(0,y.jsx)(r,{to:u.account.login,className:`text-sm text-[var(--content-secondary)] hover:text-[var(--content-default)]`,children:`← Back to sign in`}),children:[(0,y.jsx)(p,{id:`email`,type:`email`,autoComplete:`email`,placeholder:`Email`,value:x,onChange:e=>S(e.target.value),required:!0}),(0,y.jsx)(p,{id:`username`,type:`text`,autoComplete:`username`,placeholder:`Username`,value:C,onChange:e=>w(e.target.value),required:!0})]})]})}export{b as ProviderSignupPage};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./jsx-runtime-D3ZM-ToX.js";import{t as r}from"./arrow-up-BNd4Gpy7.js";import{t as i}from"./is-electron-m5eeGBnd.js";import{t as a}from"./public-asset-CbDDcomC.js";var o=e(t(),1);async function s(e){i()&&await window.vellum?.quickInput?.submit(e)}async function c(){i()&&await window.vellum?.quickInput?.dismiss()}var l=n();function u(){let[e,t]=(0,o.useState)(``),n=(0,o.useRef)(null);(0,o.useEffect)(()=>{n.current?.focus()},[]);let i=(0,o.useCallback)(n=>{n.preventDefault();let r=e.trim();r&&(s(r),t(``))},[e]),u=(0,o.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),c())},[]);return(0,l.jsx)(`div`,{className:`flex h-screen w-screen items-center justify-center bg-transparent p-2`,children:(0,l.jsxs)(`form`,{onSubmit:i,className:`flex w-full items-center gap-3 rounded-2xl border border-[var(--border-default)] bg-[var(--surface-base)] px-4 py-3 shadow-lg`,children:[(0,l.jsx)(`img`,{src:a(`/vellum-logo.svg`),alt:`Vellum`,width:24,height:24,className:`shrink-0 dark:hidden`,draggable:!1}),(0,l.jsx)(`img`,{src:a(`/vellum-logo-white.svg`),alt:`Vellum`,width:24,height:24,className:`hidden shrink-0 dark:block`,draggable:!1}),(0,l.jsx)(`input`,{ref:n,type:`text`,value:e,onChange:e=>t(e.target.value),onKeyDown:u,placeholder:`Ask Vellum anything...`,className:`min-w-0 flex-1 bg-transparent text-sm text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none`}),(0,l.jsx)(`button`,{type:`submit`,disabled:!e.trim(),className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-[var(--surface-accent)] text-[var(--content-on-accent)] transition-opacity disabled:opacity-30`,children:(0,l.jsx)(r,{size:16})})]})})}export{u as QuickInputPage};
@@ -1 +0,0 @@
1
- import{t as e}from"./useMutation-CXGTrp4W.js";import{t}from"./queryOptions-CMSBCFOf.js";import{t as n}from"./infiniteQueryOptions-CqLc14_4.js";import{t as r}from"./client.gen-CV05d-kw.js";import{A as i,At as a,Bt as ee,Ct as te,Dt as ne,Et as re,F as ie,Ft as ae,G as oe,Ht as se,I as ce,It as le,L as ue,Mt as de,Nt as fe,O as pe,Ot as me,Pt as he,Q as ge,R as _e,S as ve,St as ye,T as be,Tt as xe,U as Se,Ut as Ce,V as we,Vt as Te,W as o,Wt as s,_ as c,_t as l,at as u,b as d,bt as f,c as p,ct as m,dt as h,f as g,ft as _,g as v,gt as y,h as b,ht as x,it as S,j as C,jt as w,k as T,m as E,mt as D,n as O,nt as Ee,ot as De,pt as Oe,r as ke,rt as Ae,s as je,st as Me,tt as Ne,v as Pe,vt as Fe,wt as Ie,x as Le,xt as Re,y as ze,yt as Be}from"./sdk.gen-BIu1DgTs.js";var k=(e,t,n,i)=>{let a={_id:e,baseUrl:t?.baseUrl||(t?.client??r).getConfig().baseUrl};return n&&(a._infinite=n),i&&(a.tags=i),t?.body&&(a.body=t.body),t?.headers&&(a.headers=t.headers),t?.path&&(a.path=t.path),t?.query&&(a.query=t.query),[a]},A=e=>k(`assistantsList`,e),Ve=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:A(e)}),He=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},Ue=e=>k(`assistantsDoctorHistoryList`,e),We=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ue(e)}),Ge=e=>k(`assistantsDoctorHistoryRetrieve`,e),Ke=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ge(e)}),qe=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),Je=t=>e({...qe(),...t}),j=e=>k(`assistantsDomainsList`,e),Ye=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await v({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:j(e)}),Xe=e=>({mutationFn:async t=>{let{data:n}=await E({...e,...t,throwOnError:!0});return n}}),Ze=e=>({mutationFn:async t=>{let{data:n}=await b({...e,...t,throwOnError:!0});return n}}),Qe=e=>k(`assistantsDomainsVerificationStatusRetrieve`,e),$e=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await c({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Qe(e)}),M=e=>k(`assistantsEmailAddressesList`,e),et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:M(e)}),tt=e=>({mutationFn:async t=>{let{data:n}=await Pe({...e,...t,throwOnError:!0});return n}}),nt=e=>({mutationFn:async t=>{let{data:n}=await ze({...e,...t,throwOnError:!0});return n}}),N=e=>k(`assistantsEmailAddressesStatusRetrieve`,e),rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:N(e)}),it=e=>k(`assistantsEmailsList`,e),at=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:it(e)}),ot=e=>({mutationFn:async t=>{let{data:n}=await i({...e,...t,throwOnError:!0});return n}}),st=t=>e({...ot(),...t}),P=e=>k(`assistantsOauthConnectionsList`,e),F=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),ct=(e,t,n)=>e.setQueryData(F(t).queryKey,n),lt=e=>({mutationFn:async t=>{let{data:n}=await T({...e,...t,throwOnError:!0});return n}}),I=t=>e({...lt(),...t}),L=e=>k(`assistantsReleaseChannelRetrieve`,e),ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:L(e)}),dt=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),ft=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),pt=e=>k(`assistantsSystemEventsList`,e,!0),mt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=He(n,typeof t==`object`?t:{query:{offset:t}}),{data:a}=await oe({...e,...i,signal:r,throwOnError:!0});return a},queryKey:pt(e)}),R=e=>k(`assistantsRetrieve`,e),ht=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),gt=e=>k(`assistantsOperationalStatusDetailRead`,e),_t=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await C({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:gt(e)}),vt=e=>({mutationFn:async t=>{let{data:n}=await _e({...e,...t,throwOnError:!0});return n}}),yt=t=>e({...vt(),...t}),z=e=>k(`assistantsSleepPolicyDetailRead`,e),bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),xt=e=>({mutationFn:async t=>{let{data:n}=await Se({...e,...t,throwOnError:!0});return n}}),St=t=>e({...xt(),...t}),B=e=>k(`assistantsUpgradePolicyDetailRead`,e),Ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:B(e)}),wt=e=>k(`assistantsAccessConsentRetrieve`,e),V=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await O({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:wt(e)}),Tt=(e,t,n)=>e.setQueryData(V(t).queryKey,n),Et=e=>k(`assistantsActiveRetrieve`,e),Dt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Et(e)}),Ot=e=>k(`featureFlagsClientFlagValuesRetrieve`,e),kt=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),H=e=>k(`organizationsBillingAutoTopUpRetrieve`,e),U=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await S({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),At=(e,t,n)=>e.setQueryData(U(t).queryKey,n),jt=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),Mt=e=>({mutationFn:async t=>{let{data:n}=await Ee({...e,...t,throwOnError:!0});return n}}),Nt=e=>({mutationFn:async t=>{let{data:n}=await Ae({...e,...t,throwOnError:!0});return n}}),Pt=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),W=e=>k(`organizationsBillingDailyCreditLimitRetrieve`,e),G=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:W(e)}),Ft=(e,t,n)=>e.setQueryData(G(t).queryKey,n),It=e=>({mutationFn:async t=>{let{data:n}=await m({...e,...t,throwOnError:!0});return n}}),Lt=e=>k(`organizationsBillingInvoicesRetrieve`,e),K=e=>k(`organizationsBillingLowBalanceAlertRetrieve`,e),q=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await h({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:K(e)}),Rt=(e,t,n)=>e.setQueryData(q(t).queryKey,n),zt=e=>({mutationFn:async t=>{let{data:n}=await _({...e,...t,throwOnError:!0});return n}}),J=e=>k(`organizationsBillingPlansRetrieve`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:J(e)}),Vt=e=>({mutationFn:async t=>{let{data:n}=await D({...e,...t,throwOnError:!0});return n}}),Ht=t=>e({...Vt(),...t}),Y=e=>k(`organizationsBillingSubscriptionRetrieve`,e),Ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),Wt=e=>({mutationFn:async t=>{let{data:n}=await x({...e,...t,throwOnError:!0});return n}}),Gt=e=>({mutationFn:async t=>{let{data:n}=await y({...e,...t,throwOnError:!0});return n}}),Kt=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),qt=e=>({mutationFn:async t=>{let{data:n}=await Fe({...e,...t,throwOnError:!0});return n}}),X=e=>k(`organizationsBillingSubscriptionOnboardingRetrieve`,e),Jt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Yt=e=>({mutationFn:async t=>{let{data:n}=await Be({...e,...t,throwOnError:!0});return n}}),Xt=e=>({mutationFn:async t=>{let{data:n}=await f({...e,...t,throwOnError:!0});return n}}),Zt=e=>({mutationFn:async t=>{let{data:n}=await te({...e,...t,throwOnError:!0});return n}}),Z=e=>k(`organizationsBillingSummaryRetrieve`,e),Qt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),$t=e=>({mutationFn:async t=>{let{data:n}=await Ie({...e,...t,throwOnError:!0});return n}}),en=t=>e({...$t(),...t}),tn=e=>({mutationFn:async t=>{let{data:n}=await re({...e,...t,throwOnError:!0});return n}}),nn=e=>k(`organizationsBillingUsageSeriesRetrieve`,e),rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nn(e)}),an=e=>k(`organizationsBillingUsageTotalsRetrieve`,e),on=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:an(e)}),Q=e=>k(`organizationsNotificationsList`,e),sn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await w({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),cn=e=>({mutationFn:async t=>{let{data:n}=await a({...e,...t,throwOnError:!0});return n}}),ln=e=>({mutationFn:async t=>{let{data:n}=await he({...e,...t,throwOnError:!0});return n}}),un=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),dn=e=>({mutationFn:async t=>{let{data:n}=await fe({...e,...t,throwOnError:!0});return n}}),fn=e=>k(`organizationsNotificationsSummaryRetrieve`,e),pn=e=>k(`referralCodesMeRetrieve`,e),mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pn(e)}),hn=e=>k(`releasesList`,e),gn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hn(e)}),_n=e=>({mutationFn:async t=>{let{data:n}=await ee({...e,...t,throwOnError:!0});return n}}),vn=t=>e({..._n(),...t}),$=e=>k(`userMfaFactorsList`,e),yn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$(e)}),bn=e=>({mutationFn:async t=>{let{data:n}=await Te({...e,...t,throwOnError:!0});return n}}),xn=t=>e({...bn(),...t}),Sn=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),Cn=t=>e({...Sn(),...t}),wn=e=>({mutationFn:async t=>{let{data:n}=await s({...e,...t,throwOnError:!0});return n}}),Tn=t=>e({...wn(),...t});export{Bt as $,bt as A,St as At,H as B,_t as C,fn as Ct,L as D,I as Dt,ut as E,Je as Et,Ot as F,Cn as Ft,W as G,Pt as H,kt as I,Tn as It,Lt as J,Ft as K,Mt as L,yn as Lt,mt as M,en as Mt,Ct as N,vn as Nt,ht as O,st as Ot,B as P,xn as Pt,zt as Q,Nt as R,$ as Rt,ct as S,ln as St,ft as T,gn as Tt,jt as U,At as V,G as W,K as X,q as Y,Rt as Z,at as _,cn as _t,Ke as a,Yt as at,F as b,un as bt,Ye as c,X as ct,tt as d,Zt as dt,J as et,nt as f,Qt as ft,N as g,on as gt,rt as h,rn as ht,We as i,qt as it,z as j,Ht as jt,R as k,yt as kt,j as l,Ut as lt,M as m,tn as mt,Tt as n,Gt as nt,Xe as o,Xt as ot,et as p,Z as pt,It as q,Dt as r,Kt as rt,Ze as s,Jt as st,V as t,Wt as tt,$e as u,Y as ut,Ve as v,sn as vt,dt as w,mn as wt,P as x,dn as xt,A as y,Q as yt,U as z};
@@ -1 +0,0 @@
1
- import{t as e}from"./useMutation-CXGTrp4W.js";import{t}from"./queryOptions-CMSBCFOf.js";import{t as n}from"./infiniteQueryOptions-CqLc14_4.js";import{A as r,An as i,Ar as a,C as ee,Ct as te,D as ne,Dn as re,Dr as ie,Dt as ae,E as oe,En as se,Er as ce,Et as le,F as o,Gn as ue,Gt as de,Hn as fe,Hr as pe,I as me,In as he,Jn as s,L as ge,Lt as _e,Mn as ve,Mt as ye,N as be,Nn as xe,Nt as Se,O as Ce,On as we,Ot as Te,P as Ee,Pt as c,R as De,T as Oe,Ur as ke,Vn as Ae,Vr as je,W as Me,Wn as Ne,Xt as Pe,Yt as Fe,_r as Ie,cr as l,ct as u,dn as d,dr as f,fn as p,fr as m,ft as h,gn as g,gr as _,hn as Le,hr as Re,ir as ze,j as Be,jn as Ve,jr as He,jt as Ue,kn as We,kr as Ge,kt as Ke,lr as qe,mn as Je,mr as Ye,o as Xe,qn as Ze,qt as Qe,sr as $e,st as et,ur as tt,vr as nt,w as rt,x as it,zn as at,zt as ot}from"./sdk.gen-BVAVE6A_.js";var v=(e,t,n,r)=>{let i={_id:e,baseUrl:t?.baseUrl||(t?.client??ke).getConfig().baseUrl};return n&&(i._infinite=n),r&&(i.tags=r),t?.body&&(i.body=t.body),t?.headers&&(i.headers=t.headers),t?.path&&(i.path=t.path),t?.query&&(i.query=t.query),[i]},y=e=>v(`appsGet`,e),st=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:y(e)}),b=e=>v(`bookmarksGet`,e),ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await it({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:b(e)}),lt=e=>v(`channelsAvailableGet`,e),ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:lt(e)}),x=e=>v(`channelsReadinessGet`,e),dt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await rt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:x(e)}),S=e=>v(`configGet`,e),C=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:S(e)}),ft=(e,t,n)=>e.setQueryData(C(t).queryKey,n),pt=e=>({mutationFn:async t=>{let{data:n}=await Be({...e,...t,throwOnError:!0});return n}}),mt=t=>e({...pt(),...t}),ht=e=>v(`configLlmCallsitesGet`,e),gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await oe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ht(e)}),w=e=>v(`configLlmDefaultproviderGet`,e),_t=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:w(e)}),vt=e=>({mutationFn:async t=>{let{data:n}=await Ce({...e,...t,throwOnError:!0});return n}}),yt=e=>v(`configLlmProfilesGet`,e),bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:i}=await r({...e,...t[0],signal:n,throwOnError:!0});return i},queryKey:yt(e)}),xt=e=>v(`consolidationConfigGet`,e),St=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:xt(e)}),Ct=e=>({mutationFn:async t=>{let{data:n}=await Ee({...e,...t,throwOnError:!0});return n}}),wt=t=>e({...Ct(),...t}),Tt=e=>v(`consolidationRunsGet`,e),Et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Tt(e)}),T=(e,t)=>{let n={...e[0]};return t.body&&(n.body={...e[0].body,...t.body}),t.headers&&(n.headers={...e[0].headers,...t.headers}),t.path&&(n.path={...e[0].path,...t.path}),t.query&&(n.query={...e[0].query,...t.query}),n},E=e=>v(`consolidationRunsGet`,e,!0),Dt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=T(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await o({...e,...i,signal:r,throwOnError:!0});return a},queryKey:E(e)}),Ot=e=>({mutationFn:async t=>{let{data:n}=await me({...e,...t,throwOnError:!0});return n}}),kt=t=>e({...Ot(),...t}),D=e=>v(`contactsGet`,e),O=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:D(e)}),At=(e,t,n)=>e.setQueryData(O(t).queryKey,n),jt=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),Mt=t=>e({...jt(),...t}),Nt=e=>v(`conversationstartersGet`,e),Pt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await et({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Nt(e)}),k=e=>v(`conversationsByIdGet`,e),Ft=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Me({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:k(e)}),It=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),Lt=t=>e({...It(),...t}),Rt=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),zt=t=>e({...Rt(),...t}),A=e=>v(`documentsGet`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:A(e)}),j=e=>v(`groupsGet`,e),M=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:j(e)}),Vt=(e,t,n)=>e.setQueryData(M(t).queryKey,n),Ht=e=>({mutationFn:async t=>{let{data:n}=await Ke({...e,...t,throwOnError:!0});return n}}),Ut=t=>e({...Ht(),...t}),Wt=e=>({mutationFn:async t=>{let{data:n}=await le({...e,...t,throwOnError:!0});return n}}),N=t=>e({...Wt(),...t}),Gt=e=>({mutationFn:async t=>{let{data:n}=await ae({...e,...t,throwOnError:!0});return n}}),Kt=t=>e({...Gt(),...t}),qt=e=>v(`heartbeatConfigGet`,e),P=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qt(e)}),Jt=(e,t,n)=>e.setQueryData(P(t).queryKey,n),Yt=e=>({mutationFn:async t=>{let{data:n}=await ye({...e,...t,throwOnError:!0});return n}}),Xt=t=>e({...Yt(),...t}),Zt=e=>({mutationFn:async t=>{let{data:n}=await Se({...e,...t,throwOnError:!0});return n}}),Qt=t=>e({...Zt(),...t}),$t=e=>v(`heartbeatRunsGet`,e),en=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await c({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$t(e)}),F=e=>v(`heartbeatRunsGet`,e,!0),tn=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=T(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await c({...e,...i,signal:r,throwOnError:!0});return a},queryKey:F(e)}),I=e=>v(`homeFeedGet`,e),nn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _e({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:I(e)}),rn=(e,t,n)=>e.setQueryData(nn(t).queryKey,n),L=e=>v(`homeStateGet`,e),an=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ot({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:L(e)}),on=e=>v(`identityGet`,e),R=e=>v(`inferenceProviderconnectionsGet`,e),sn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await de({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),cn=e=>({mutationFn:async t=>{let{data:n}=await Qe({...e,...t,throwOnError:!0});return n}}),z=e=>v(`integrationsSlackChannelConfigGet`,e),ln=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),un=e=>({mutationFn:async t=>{let{data:n}=await Pe({...e,...t,throwOnError:!0});return n}}),dn=e=>v(`memoryV2NowtextGet`,e),fn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:dn(e)}),pn=e=>v(`memoryV2RouterprompttemplateGet`,e),mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:pn(e)}),hn=e=>({mutationFn:async t=>{let{data:n}=await Je({...e,...t,throwOnError:!0});return n}}),gn=t=>e({...hn(),...t}),_n=e=>v(`memoryWorkerStatusGet`,e),B=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Le({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_n(e)}),vn=(e,t,n)=>e.setQueryData(B(t).queryKey,n),yn=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),bn=t=>e({...yn(),...t}),V=e=>v(`oauthAppsGet`,e),xn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await We({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),Sn=e=>({mutationFn:async t=>{let{data:n}=await i({...e,...t,throwOnError:!0});return n}}),Cn=t=>e({...Sn(),...t}),wn=e=>({mutationFn:async t=>{let{data:n}=await se({...e,...t,throwOnError:!0});return n}}),Tn=t=>e({...wn(),...t}),H=e=>v(`oauthAppsByAppIdConnectionsGet`,e),En=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),Dn=e=>({mutationFn:async t=>{let{data:n}=await we({...e,...t,throwOnError:!0});return n}}),On=t=>e({...Dn(),...t}),kn=e=>({mutationFn:async t=>{let{data:n}=await Ve({...e,...t,throwOnError:!0});return n}}),An=t=>e({...kn(),...t}),jn=e=>v(`oauthProvidersGet`,e),Mn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:jn(e)}),Nn=e=>v(`oauthProvidersByProviderKeyGet`,e),Pn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Nn(e)}),Fn=e=>v(`pluginsGet`,e),In=e=>({mutationFn:async t=>{let{data:n}=await he({...e,...t,throwOnError:!0});return n}}),Ln=t=>e({...In(),...t}),U=e=>v(`pluginsByNameGet`,e),Rn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await at({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:U(e)}),W=e=>v(`pluginsByNameInspectGet`,e),zn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:W(e)}),Bn=e=>({mutationFn:async t=>{let{data:n}=await fe({...e,...t,throwOnError:!0});return n}}),Vn=t=>e({...Bn(),...t}),Hn=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),Un=t=>e({...Hn(),...t}),G=e=>v(`pluginsSearchGet`,e),Wn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),Gn=e=>v(`retrospectiveConfigGet`,e),Kn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Gn(e)}),qn=e=>v(`retrospectiveRunsGet`,e),Jn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await s({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qn(e)}),K=e=>v(`retrospectiveRunsGet`,e,!0),Yn=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=T(n,typeof t==`object`?t:{query:{before:t}}),{data:a}=await s({...e,...i,signal:r,throwOnError:!0});return a},queryKey:K(e)}),Xn=e=>v(`schedulesGet`,e),Zn=e=>v(`schedulesByIdRunsGet`,e),q=e=>v(`secretsGet`,e),Qn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ze({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),J=e=>v(`skillsGet`,e),$n=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:J(e)}),er=e=>({mutationFn:async t=>{let{data:n}=await $e({...e,...t,throwOnError:!0});return n}}),tr=t=>e({...er(),...t}),nr=e=>v(`skillsByIdGet`,e),rr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await tt({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nr(e)}),ir=e=>v(`skillsByIdFilesGet`,e),ar=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await qe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ir(e)}),or=e=>v(`skillsByIdFilesContentGet`,e),sr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await l({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:or(e)}),cr=e=>v(`skillsCategoriesGet`,e),lr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await f({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:cr(e)}),Y=e=>v(`slackChannelsGet`,e),ur=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),X=e=>v(`slackUsersGet`,e),dr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Re({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Z=e=>v(`soundsAvailableGet`,e),fr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),Q=e=>v(`soundsConfigGet`,e),$=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ie({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),pr=(e,t,n)=>e.setQueryData($(t).queryKey,n),mr=e=>({mutationFn:async t=>{let{data:n}=await nt({...e,...t,throwOnError:!0});return n}}),hr=e=>v(`ttsManagedvoicesGet`,e),gr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:hr(e)}),_r=e=>v(`ttsProvidersGet`,e),vr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ie({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:_r(e)}),yr=e=>v(`usageBreakdownGet`,e),br=e=>v(`usageDailyGet`,e),xr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:br(e)}),Sr=e=>v(`usageSeriesGet`,e),Cr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await a({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Sr(e)}),wr=e=>v(`usageTotalsGet`,e),Tr=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await He({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:wr(e)}),Er=e=>v(`workspaceThemeGet`,e),Dr=e=>v(`workspaceTreeGet`,e),Or=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await je({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Dr(e)}),kr=e=>({mutationFn:async t=>{let{data:n}=await pe({...e,...t,throwOnError:!0});return n}}),Ar=t=>e({...kr(),...t});export{xn as $,Tn as $t,Vt as A,$ as At,on as B,mt as Bt,Ft as C,J as Ct,A as D,X as Dt,Bt as E,dr as Et,en as F,vr as Ft,z as G,zt as Gt,R as H,kt as Ht,I,yr as It,mn as J,Ut as Jt,un as K,N as Kt,rn as L,xr as Lt,Jt as M,pr as Mt,tn as N,mr as Nt,M as O,fr as Ot,F as P,gr as Pt,H as Q,bn as Qt,an as R,Cr as Rt,At as S,$n as St,Pt as T,Y as Tt,cn as U,Mt as Ut,sn as V,wt as Vt,ln as W,Lt as Wt,vn as X,Qt as Xt,B as Y,Xt as Yt,En as Z,gn as Zt,Dt as _,q as _t,ut as a,Un as an,zn as at,O as b,rr as bt,C as c,Er as cn,Wn as ct,gt as d,Yn as dt,On as en,V as et,_t as f,K as ft,St as g,Qn as gt,bt as h,Xn as ht,b as i,Vn as in,U as it,P as j,Q as jt,j as k,Z as kt,S as l,Or as ln,G as lt,vt as m,Zn as mt,y as n,An as nn,Mn as nt,dt as o,tr as on,W as ot,w as p,Jn as pt,fn as q,Kt as qt,ct as r,Ln as rn,Rn as rt,x as s,Ar as sn,Fn as st,st as t,Cn as tn,Pn as tt,ft as u,Kn as ut,E as v,sr as vt,k as w,ur as wt,D as x,lr as xt,Et as y,ar as yt,L as z,Tr as zt};
@@ -1 +0,0 @@
1
- import{t as e}from"./domains-DWRzNRJy.js";var t={not_me:`Not me`,not_relevant:`Not relevant`};function n(e){try{return new URL(e).hostname.replace(/^www\./,``)}catch{return null}}function r(e){let t=typeof e==`string`?e.trim().toLowerCase():``;return t.startsWith(`conf`)?`confident`:t.startsWith(`guess`)?`guessing`:`maybe`}function i(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&e.trim().length>0):[]}var a=[`beenverified.com`,`checkpeople.com`,`clustrmaps.com`,`cyberbackgroundchecks.com`,`fastpeoplesearch.com`,`instantcheckmate.com`,`intelius.com`,`mylife.com`,`nuwber.com`,`peekyou.com`,`peoplefinders.com`,`peoplelooker.com`,`radaris.com`,`spokeo.com`,`thatsthem.com`,`truepeoplesearch.com`,`truthfinder.com`,`usphonebook.com`,`ussearch.com`,`whitepages.com`];function o(t){let r=n(t);return r?a.some(t=>e(r,t)):!1}function s(e){let t=e.search(/```(?:json)?/i);if(t===-1)return e;let n=e.slice(t).replace(/^```(?:json)?/i,``),r=n.indexOf("```");return r===-1?n:n.slice(0,r)}function c(e){let t=[],n=0,r=-1,i=!1,a=!1;for(let o=0;o<e.length;o++){let s=e[o];if(i){a?a=!1:s===`\\`?a=!0:s===`"`&&(i=!1);continue}if(s===`"`)i=!0;else if(s===`{`)n===0&&(r=o),n++;else if(s===`}`&&(n--,n===0&&r>=0)){try{t.push(JSON.parse(e.slice(r,o+1)))}catch{}r=-1}}return t}function l(e){if(!e||typeof e!=`object`)return null;let t=e.claim;if(typeof t!=`string`||!t.trim())return null;let n=t.trim(),a=i(e.sources),s=a.filter(e=>!o(e));if(a.length>0&&s.length===0)return{kind:`dropped`,claim:n};let c=r(e.confidence);return{kind:`fact`,fact:{claim:n,confidence:c===`confident`&&s.length===0?`maybe`:c,sources:s}}}function u(e){let t=[],n=[];if(Array.isArray(e))for(let r of e){let e=l(r);e&&(e.kind===`fact`?t.push(e.fact):n.push(e.claim))}let r=new Set(t.map(e=>e.claim));return{claims:t,droppedClaims:n.filter(e=>!r.has(e))}}function d(e){if(!e||typeof e!=`object`)return null;let t=e.suggestion;if(typeof t!=`string`||!t.trim())return null;let n=e.prompt,r=typeof n==`string`&&n.trim()?n.trim():t.trim();return{suggestion:t.trim(),prompt:r}}function f(e){if(!Array.isArray(e))return[];let t=new Set,n=[];for(let r of e){if(typeof r!=`string`)continue;let e=r.trim();!e||t.has(e)||(t.add(e),n.push(e))}return n}function p(e){let t=m(e,`plugins`);if(t===null)return null;let n=0,r=!1,i=!1;for(let e=0;e<t.length;e++){let a=t[e];if(r){i?i=!1:a===`\\`?i=!0:a===`"`&&(r=!1);continue}if(a===`"`)r=!0;else if(a===`[`)n++;else if(a===`]`){if(n>0){n--;continue}try{return f(JSON.parse(`[${t.slice(0,e+1)}`))}catch{return null}}}return null}function m(e,t){let n=e.indexOf(`"${t}"`);if(n===-1)return null;let r=e.indexOf(`[`,n);return r===-1?null:e.slice(r+1)}function h(e,t){return Array.isArray(e)?e.map(t).filter(e=>e!==null):[]}function g(e){for(let t of c(e))if(t&&typeof t==`object`&&!Array.isArray(t)){let e=t;if(Array.isArray(e.claims)||Array.isArray(e.suggestions))return e}return null}function _(e){if(!e)return{claims:[],droppedClaims:[],suggestions:[],plugins:[],pluginsResolved:!1,complete:!1};let t=s(e),n=g(t);if(n){let{claims:e,droppedClaims:t}=u(n.claims);return{claims:e,droppedClaims:t,suggestions:h(n.suggestions,d),plugins:f(n.plugins),pluginsResolved:!0,complete:!0}}let r=m(t,`claims`)??(()=>{let e=t.indexOf(`[`);return e===-1?null:t.slice(e+1)})(),{claims:i,droppedClaims:a}=u(r===null?[]:c(r)),o=m(t,`suggestions`),l=o===null?[]:c(o).map(d).filter(e=>e!==null),_=p(t);return{claims:i,droppedClaims:a,suggestions:l,plugins:_??[],pluginsResolved:_!==null,complete:!1}}function v(e){return e.split(/[-_\s]+/).filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function y(e){switch(e){case`confident`:return{label:`Confident`,tone:`positive`};case`guessing`:return{label:`Guessing`,tone:`neutral`};default:return{label:`Maybe-ish`,tone:`warning`}}}export{v as a,_ as i,y as n,n as r,t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import"./button-Dy5001j6.js";import{n,u as r}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as i}from"./jsx-runtime-D3ZM-ToX.js";import{u as a}from"./routes-vE-2hncW.js";import"./conversation-store-bshB7nDP.js";import"./research-results-view-CxhTn2J7.js";var o=e(t(),1),s=i(),c=[{claim:`Software engineer based in Austin, TX`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Product engineer at an early-stage AI startup`,confidence:`confident`,sources:[`https://example.com/team`]},{claim:`Maintains an open-source CLI tool for local LLM evaluation and tooling`,confidence:`confident`,sources:[`https://github.com/example-dev`,`https://example.com/project`]},{claim:`Primarily writes TypeScript and Go`,confidence:`confident`,sources:[`https://github.com/example-dev`]},{claim:`Came up through a coding bootcamp rather than a CS degree`,confidence:`maybe`,sources:[]}];function l(){r();let[e,t]=(0,o.useState)(`results`),[i,l]=(0,o.useState)(()=>new Map);return c.map((e,t)=>({fact:e,index:t})),(0,s.jsx)(n,{to:a.assistant,replace:!0})}export{l as ResearchMockPage};
@@ -1,50 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-Bj8_eutd.js";import{t as n}from"./react-BFJW0bSv.js";import{t as r}from"./button-Dy5001j6.js";import{m as i,u as a}from"./chunk-5KNZJZUH-Bsoom5--.js";import{n as o}from"./QueryClientProvider-CMu7CkQU.js";import{t as s}from"./jsx-runtime-D3ZM-ToX.js";import{t as c}from"./cn-CJf7MmLX.js";import{t as l}from"./arrow-left-C2ylPLHq.js";import{t as u}from"./arrow-right-B-jRJNWP.js";import{t as d}from"./dices-DcuIF52A.js";import{t as f}from"./loader-circle-XREx3i4W.js";import{t as p}from"./pencil-D38YNe2r.js";import{t as m}from"./plus-jH3kAliM.js";import{t as h}from"./search-BVW-n8to.js";import{t as g}from"./x-JBAsSOmg.js";import{t as _}from"./tag-NXcyiTkK.js";import{t as v}from"./input-hw3el2GJ.js";import{i as y,r as b,t as x}from"./dist-oCfq2a_n.js";import{n as S,t as C}from"./create-selectors-Qo7kcikX.js";import{ct as w,f as T,o as E,y as D}from"./local-mode-Ckii2tmN.js";import{Gn as O,Tr as ee,V as k,Wn as A,bn as j,tt as M,xn as N}from"./sdk.gen-BVAVE6A_.js";import{r as te}from"./api-errors-CFiCT7Ap.js";import{A as ne,B as re,L as ie,R as ae,n as oe,z as se}from"./auth-store-DRSla1t1.js";import{a as P,o as ce,r as le}from"./api-XwdNiVE9.js";import{u as ue}from"./routes-vE-2hncW.js";import{n as de}from"./platform-detection-CMiRPRCq.js";import{o as fe,s as pe}from"./prechat-DIuViPZk.js";import{t as me}from"./browser-timezone-C_0jBUid.js";import{n as F,r as he,t as I}from"./eye-bbox-DXmmg9ML.js";import{c as ge}from"./conversation-list-fetchers-D84gJs6f.js";import{i as _e}from"./conversation-cache-CqCkWHT6.js";import{i as ve,n as ye,r as be,t as xe}from"./research-onboarding-persistence-CceFfAqE.js";import{a as Se,c as Ce,i as we,l as Te,o as Ee,s as L,t as De,u as Oe}from"./first-run-scope-CLrGXYLa.js";import{c as ke,i as Ae}from"./funnel-events-CK938pi2.js";import{t as R}from"./proxy-RtD8704m.js";import{t as z}from"./AnimatePresence-3WpfAWHe.js";import{t as B}from"./use-reduced-motion-Se97jRQ-.js";import{i as je}from"./avatar-tone-CMoWR2JX.js";import{a as V,i as Me}from"./research-facts-UIXXE8D6.js";import{t as H}from"./onboarding-layout-Dd5fPfE7.js";import{t as U}from"./animated-avatar-DzfEDnTh.js";import{n as W,t as Ne}from"./use-bundled-avatar-components-Gp_YaD6o.js";import{c as Pe,i as Fe,l as Ie,n as Le,r as Re,s as G,t as K}from"./latest-assistant-text-C4DnCZXH.js";import{n as ze,t as Be}from"./onboarding-step-layout-BIla66YX.js";import{n as Ve}from"./plugin-attribution-BJldO0Fa.js";var q=e(n(),1),He=`grounded`,Ue=12;function We(e,t){let n=e.slice(0,Ue).map(e=>`- ${e.name} — ${e.description}`).join(`
2
- `);return n?`
3
- Capabilities you can offer me — specialized skillsets you can invoke on my behalf, not generic chat:
4
- ${n}
5
-
6
- Add a "plugins" array as the FIRST key in your JSON object, ${t?`before "claims" and "suggestions"`:`before "claims"`}: the 1-2 capabilities from the list above (exact names) that best fit who I am — judged by what you researched about my real role, stack, and day-to-day work. (Emit it first so setup can start while you finish the rest.) These get set up for me automatically as part of getting started, so pick by overall fit to ME, not to any single suggestion. Prefer fewer over forcing a match; use [] if nothing clearly fits. Example: "plugins": ["<exact name from the list above>"]. ${t?`Don't reference the setup in the claims or suggestions text.`:`Don't reference the setup in the claims text.`}
7
- `:``}function Ge({firstName:e,lastName:t,occupation:n,hobbies:r,timezone:i},a=[],{includeSuggestions:o=!0}={}){let s=[e.trim(),t.trim()].filter(Boolean).join(` `),c=n.trim(),l=(r??[]).map(e=>e.trim()).filter(Boolean).join(`, `),u=i?.trim()??``,d=We(a,o),f=d?`"plugins": ["<exact name from the list above>"], `:``,p=[s?`My name is ${s}.`:``,c?`I work as ${c}.`:``,l?`My hobby is ${l}.`:``].filter(Boolean).join(` `),m=p?[p,u?`My timezone is ${u}.`:``].filter(Boolean).join(` `):`I'd like you to get to know me before we start working together.`,h=o?` "suggestions": [ { "suggestion": "I'll find the 3 newest arXiv eval papers worth your time", "prompt": "Find me the 3 newest arXiv eval papers worth reading." }, { "suggestion": "I'll draft a crisp summary of the latest model-serving trade-offs", "prompt": "Draft me a short summary of the latest model-serving trade-offs." }, { "suggestion": "Connect GitHub and I'll triage your stalest issues", "prompt": "Connect to GitHub and triage my oldest open issues." }, { "suggestion": "I'll plan a weekend climbing trip near Boulder", "prompt": "Plan me a weekend climbing trip near Boulder." } ]`:``,g=`{ ${f}"claims": [ { "claim": "Senior engineer at an AI infra startup", "confidence": "confident", "sources": ["https://linkedin.com/in/example-user", "https://example-infra.com/about"] }, { "claim": "Based in Boulder, CO", "confidence": "maybe", "sources": ["https://linkedin.com/in/example-user"] }, { "claim": "Into climbing and the outdoors", "confidence": "guessing", "sources": [] } ]${h?`,${h}`:``} }`;return`${m}
8
-
9
- Get to know me. Search the web for what's publicly known about me, and infer a handful of things about who I am: what I do, my role, where I'm based, what I'm into, anything that would help you assist me better. Prefer sources people author about themselves — LinkedIn, a personal site, GitHub, an employer's team page, published work, public social profiles. Never fetch or cite people-search or background-check aggregators (Instant Checkmate, Spokeo, BeenVerified, TruePeopleSearch, Whitepages, and similar); data-broker directories (ZoomInfo, RocketReach, Apollo) may corroborate another source but must never be a claim's only basis.
10
-
11
- IDENTITY GATE — decide who a page is about before you use it: a name match alone is NEVER enough to attribute a page to me. Attribute it to me only when it also corroborates something I stated — my role, my hobby, or a location consistent with my timezone if I gave one. If several people share my name and none clears that bar, or you find no verifiable match at all, then I have no public profile you can use: return ONLY inferences from what I stated above, each labeled "guessing" with "sources": []. An honest near-empty card beats a stranger's biography. If my details above read as placeholder or joke input rather than a real identity, skip the web search and return an empty claims array.
12
-
13
- Treat the name, role, and hobby I provided above as first-party context from me. Use public sources to enrich that context, not to override or correct it. If public sources use a different title or omit part of my stated role, do not frame my stated role as wrong; mention the public title only as supporting nuance when it is useful, and keep ${o?`claims and suggestions`:`claims`} aligned with my stated role.
14
-
15
- CRITICAL: your final reply must be ONLY a JSON object. No preamble, no explanation, no prose, nothing before or after it. Do your thinking and searching, then respond with exactly this shape and nothing else:
16
-
17
- ${g}
18
-
19
- Rules for "claims":
20
-
21
- AT MOST 5 claims, typically 3 to 4. Never pad the list or inflate a confidence tier to seem thorough.
22
- Phrase each claim in third person as a short headline ("Senior engineer at an AI infra startup", "Based in Boulder, CO", "Active climber on Mountain Project"). No multi-clause sentences, no em-dash asides, no explanations. Good: "Contributed to Chirps (vector-DB security)". Bad: "You've done real work in vector database security. You contributed to Chirps, a tool for scanning vector DBs for sensitive data".
23
- Each claim must be independently true-or-false so I can remove the ones that are wrong.
24
- Every specific in a claim (employer, title, publication, city) must appear in a source you actually fetched this turn — never synthesize or embellish specifics a source doesn't state.
25
- "confidence" is earned per the identity gate: "confident" needs 2+ independent gate-passing sources, "maybe" needs exactly one, and a claim with no sources is an inference from my stated details and must be "guessing".
26
- "sources": 0 to 3 URLs you actually used as evidence for that specific claim. Use [] for pure inferences.
27
- ${o?`Rules for "suggestions":
28
-
29
- Each suggestion is an object with two fields:
30
- "suggestion": the offer in YOUR voice (the assistant), exactly as it appears on the clickable card — first-person "I" refers to you (whatever your name). Pattern: "I'll [verb] [specific artifact]" or "Connect me to [integration] and I'll [verb] [artifact]." Lead with the offer; no intake question in front of it — you gather the details in the follow-up conversation after the click.
31
- "prompt": the same offer re-voiced as the message sent on the user's behalf when they click, in the USER's first person ("I"/"my" = the user) — what they'd say to take you up on it (suggestion "I'll find you 3 papers" → prompt "Find me 3 papers worth reading"). State the request; don't echo the assistant-voiced wording and don't ask a question back.
32
-
33
- Generate EXACTLY 4 suggestions covering four DIFFERENT capabilities, each making me think "wait, you can do that?" Draw on your range — a quick researched answer, a recurring brief or monitor, a doc drafted in a live editor, an integration (GitHub, Gmail, Calendar, Slack, Linear) connected with a first action, or a hobby hook if research surfaced one — but pick what genuinely fits; don't force a fixed set.
34
- Ground every suggestion in what you actually learned about me — my real role, stack, industry, and (if given) hobby. Specific to me, not generic assistant stuff; skip bare "summarize" or "draft a post."
35
- CRITICAL: every suggestion must be a fast win you can deliver in the first reply, never a long-running build. NEVER suggest building an app, dashboard, tool, site, or tracker, or any multi-step "build me a ___" project — those kill the first impression. The ambitious build can come later in the conversation, never on the first card.
36
- Keep each SHORT and skimmable: under 10 words, ONE clause, ONE artifact, no lists of three ("X, Y, and Z"). The reader scans four cards in seconds — a long line loses them.
37
- `:``}${d}
38
- ${o?`Don't include anything sensitive or private. If the identity gate leaves you with very little, return only the honest "guessing" claims my stated details support, and lean on broadly useful suggestions for my role.`:`Don't include anything sensitive or private. If the identity gate leaves you with very little, return only the honest "guessing" claims my stated details support.`}
39
- Keep every string value simple so the JSON always parses: one line, no line breaks inside a value, and NO double-quote characters inside a value — use single quotes (or none) for emphasis, quoted names, or tool names. Output ONLY the JSON object. No code fence, no extra text.`}function Ke({hostingParam:e,localMode:t,gatewayAuthSession:n}){return t?e===null?n:e!==`vellum-cloud`:!1}var J=3e3,qe=3e5,Je=`Failed to start your assistant. Please try again.`,Ye=`Your assistant is taking longer than expected. Please try again.`,Xe=e=>new Promise(t=>setTimeout(t,e));function Ze({adoptExisting:e=!1,adoptAssistantId:n}={}){let[r,i]=(0,q.useState)(!1),[a,o]=(0,q.useState)(null),[s,c]=(0,q.useState)(null),l=(0,q.useRef)(!1),u=(0,q.useRef)([]),d=(0,q.useRef)(null),f=(0,q.useCallback)(e=>{if(!d.current){d.current={kind:`ready`,id:e},i(!0);for(let t of u.current)t.resolve(e);u.current=[]}},[]),p=(0,q.useCallback)(e=>{if(d.current)return;d.current={kind:`error`,message:e},c(e);let t=Error(e);for(let e of u.current)e.reject(t);u.current=[]},[]);return{start:(0,q.useCallback)(()=>{if(l.current)return;l.current=!0;let r=Date.now(),i=()=>Date.now()-r>=qe;(async()=>{if(e&&n){let e=E(n);if(e){o(e.assistantId),f(e.assistantId);return}}let r=e?n:void 0;if(!e)try{let e=await ce();if(e.ok)r=e.data.id,o(e.data.id);else{if(ae(e.status,e.error)){p(ie);return}if(!re(e.status)){p(te(e.error,void 0,Je));return}}}catch(e){t(e,{context:`research_background_hatch`})}let a;for(;!a;){if(i()){p(Ye);return}try{let e=await le(r);r&&!e.ok&&e.status===404&&(r=void 0,e=await le());let t=se(e);if(t.kind===`active`&&e.ok){a=e.data.id,o(a);break}if(t.kind===`error`){p(t.message);return}}catch(e){t(e,{context:`research_background_hatch_poll`})}await Xe(J)}if(e)for(;!await D();){if(i()){p(Ye);return}await Xe(J)}else for(;;){try{if((await P(a)).ok)break}catch{}if(i()){p(Ye);return}await Xe(J)}f(a)})()},[p,f,e,n]),ready:r,assistantId:a,error:s,awaitReady:(0,q.useCallback)(()=>{let e=d.current;return e?.kind===`ready`?Promise.resolve(e.id):e?.kind===`error`?Promise.reject(Error(e.message)):new Promise((e,t)=>{u.current.push({resolve:e,reject:t})})},[])}}async function Qe(e,n){try{await k({path:{assistant_id:e,id:n},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_archive`})}}var $e=[`admin-copilot`],et=[{plugin:`marketing-expert`,keywords:[`founder`,`cofounder`,`co founder`,`ceo`,`cmo`,`chief executive`,`chief marketing`,`entrepreneur`,`marketing`,`marketer`,`growth`,`brand`,`content`,`copywriter`,`copywriting`,`seo`,`demand gen`,`demand generation`,`sales`,`account executive`,`business development`,`creator`,`social media`,`community manager`]},{plugin:`git-workflow`,keywords:`developer.swe.programmer.coder.devops.dev ops.sre.site reliability.software engineer.software architect.backend engineer.back end engineer.frontend engineer.front end engineer.full stack engineer.fullstack engineer.platform engineer.infrastructure engineer.data engineer.machine learning engineer.ml engineer.qa engineer.embedded engineer.security engineer.staff engineer.principal engineer.solutions architect.tech lead.technical lead.engineering manager.engineering lead.head of engineering.director of engineering.vp of engineering.vp engineering.cto`.split(`.`)}];function tt(e){return` ${e.toLowerCase().replace(/[^a-z0-9]+/g,` `).trim()} `}function nt(e,t){return e.includes(` ${t} `)}function rt(e){let t=tt(e),n=[];for(let{plugin:e,keywords:r}of et)r.some(e=>nt(t,e))&&n.push(e);return n}function it(e,t){let n=[...$e,...Ve(),...rt(e)],r=new Set,i=[];for(let e of n)!t.has(e)||r.has(e)||(r.add(e),i.push(e));return i}var at=1500,ot=12e4,st=2;function ct({complete:e,stableReads:t}){return e&&t>=st}function lt({sawCompletePayload:e}){return e?`done`:`error`}function ut({sawCompletePayload:e}){return e}var dt=`vellum-ai`,ft=new Set([`simple-memory`,`level-up`]);function pt(e){let t=e.trim().split(/(?<=\.)\s/)[0]?.trim()??e.trim();return t.length>100?`${t.slice(0,97).trimEnd()}…`:t}function mt(e){return e?.split(`/`)[0]?.trim()??``}function ht(e){let t=[],n=new Set;for(let r of e){let e=r.name?.trim(),i=r.description?.trim();!e||!i||mt(r.source?.repo)===dt&&(ft.has(e)||(n.add(e),t.push({name:e,description:pt(i)})))}return{capabilities:t,validNames:n}}async function gt(e){try{return ht((await O({path:{assistant_id:e},throwOnError:!1})).data?.matches??[])}catch(e){return t(e,{context:`research_onboarding_catalog`}),{capabilities:[],validNames:new Set}}}async function _t(e,n){try{await A({path:{assistant_id:e},body:{name:n},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_install`})}}var vt=32;function yt(e,t){return e.filter(e=>e.confidence===t).length}async function bt({assistantId:e,conversationId:n,status:r,subject:i,claims:a,suggestions:o,plugins:s,installedPlugins:c}){try{await ee({path:{assistant_id:e},body:{type:`onboarding_research`,...r===`done`?{daemon_event_id:`onboarding_research:${n}`}:{},fields:{conversation_id:n,status:r,self_reported_occupation:i.occupation,self_reported_hobbies:(i.hobbies??[]).slice(0,vt),self_reported_timezone:i.timezone,claims:a,claim_count:a.length,claims_confident:yt(a,`confident`),claims_maybe:yt(a,`maybe`),claims_guessing:yt(a,`guessing`),suggestions:o,suggestion_count:o.length,plugins:s,installed_plugins:c}},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_telemetry`})}}var xt=e=>new Promise(t=>setTimeout(t,e));function St({role:e,validNames:t,modelPlugins:n}){return[...new Set([...it(e,t),...n.filter(e=>t.has(e))])]}function Ct(){let[e,n]=(0,q.useState)({status:`idle`,claims:[],droppedClaims:[],suggestions:[],installedPlugins:[],pluginCatalog:{}}),r=(0,q.useRef)(0),i=(0,q.useRef)(null),a=(0,q.useRef)(new Map),s=(0,q.useRef)(Promise.resolve()),c=o(),l=(0,q.useCallback)(({awaitAssistantId:e,subject:o,conversationTitle:l,resumeConversationId:u,onConversationCreated:d,includeSuggestions:f=!0})=>{let p=JSON.stringify(o);if(i.current===p)return;i.current=p;let m=r.current+1;r.current=m;let h=()=>r.current!==m,g=()=>{};s.current=new Promise(e=>{g=e}),a.current.clear(),n({status:`running`,claims:[],droppedClaims:[],suggestions:[],installedPlugins:[],pluginCatalog:{}}),(async()=>{let r,i,s=!1;try{let t=await e();if(r=t,h())return;let{capabilities:c,validNames:p}=await gt(t);if(h())return;let m=Object.fromEntries(c.map(e=>[e.name,e.description]));n(e=>({...e,pluginCatalog:m})),p.size===0&&g();let _=a.current,v=it(o.occupation,p);for(let e of v)_.has(e)||_.set(e,_t(t,e));v.length>0&&n(e=>({...e,installedPlugins:v}));let y=async e=>{let n={conversationId:e,content:Ge(o,c,{includeSuggestions:f}),sourceChannel:`vellum`,interface:`web`,clientOs:de(),clientMessageId:crypto.randomUUID()};try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&(n.clientTimezone=e)}catch{}return!!(await N({path:{assistant_id:t},body:n,throwOnError:!1})).response?.ok},b=async()=>{let e=await M({path:{assistant_id:t},body:{conversationType:`standard`,...l?{title:l}:{}},throwOnError:!1});i=e.data?.id;let n=e.data?.id;if(!(!e.response?.ok||!n))return d?.(n),n},x;if(u){let e=await j({path:{assistant_id:t},query:{conversationId:u},throwOnError:!1});if(h())return;if(e.response?.ok&&(x=u,i=u,!(e.data?.messages??[]).some(e=>e.role===`user`))){if(!await y(x)){n(e=>({...e,status:`error`}));return}if(h())return}}if(!x){if(x=await b(),h())return;if(!x){n(e=>({...e,status:`error`}));return}if(!await y(x)){n(e=>({...e,status:`error`}));return}if(h())return}let S=Date.now()+ot,C=``,w=0,T=!1,E=[],D=[],O=[],ee=v;for(;Date.now()<S;){if(await xt(at),h())return;let e=await j({path:{assistant_id:t},query:{conversationId:x},throwOnError:!1});if(h())return;let r=K(e.data?.messages??[]);if(r){let{claims:e,droppedClaims:i,suggestions:a,plugins:c,pluginsResolved:l,complete:u}=Me(r),d=c.filter(e=>p.has(e));for(let e of d)_.has(e)||_.set(e,_t(t,e));l&&g();let f=St({role:o.occupation,validNames:p,modelPlugins:d});if(n({status:`running`,claims:e,droppedClaims:i,suggestions:a,installedPlugins:f,pluginCatalog:m}),E=e,D=a,O=c,ee=f,u&&(s=!0),u&&!T&&(T=!0,bt({assistantId:t,conversationId:x,status:`done`,subject:o,claims:e,suggestions:a,plugins:c,installedPlugins:f})),w=r===C?w+1:0,C=r,ct({complete:u,stableReads:w}))break}}if(h())return;T||(T=!0,bt({assistantId:t,conversationId:x,status:`error`,subject:o,claims:E,suggestions:D,plugins:O,installedPlugins:ee})),n(e=>({...e,status:lt({sawCompletePayload:s})}))}catch(e){if(h())return;t(e,{context:`research_onboarding_runner`}),n(e=>({...e,status:`error`}))}finally{g(),ut({sawCompletePayload:s})&&r&&i&&(await Qe(r,i),_e(c,r))}})()},[c]),u=(0,q.useCallback)(async()=>{await s.current,await Promise.all([...a.current.values()])},[]),d=(0,q.useCallback)((e,t)=>{if(r.current+=1,n(e),t&&e.installedPlugins.length>0){let n=a.current;n.clear();for(let r of e.installedPlugins)n.set(r,(async()=>{try{await _t(await t(),r)}catch{}})())}},[]);return{...e,start:l,awaitPluginInstalls:u,hydrate:d}}function wt({removedClaims:e,rejectedAll:t}){if(t)return[`Correction: none of what you found in that web search is actually me —`,`it looks like you matched someone else with a similar name. Please`,`disregard everything from that search and don't remember any of it as`,`true about me. We'll build up what you actually know about me from here,`,`as we talk.`].join(` `);let n=e.map(e=>e.trim()).filter(Boolean);return n.length===0?null:[`Quick correction on what you found about me — these aren't true, so please`,`disregard them and don't remember them as facts about me:`,``,...n.map(e=>`- ${e}`)].join(`
40
- `)}async function Tt({assistantId:e,conversationId:n,removedClaims:r,rejectedAll:i}){let a=wt({removedClaims:r,rejectedAll:i});if(a){try{let t={conversationId:n,content:a,sourceChannel:`vellum`,interface:`web`,clientOs:de(),clientMessageId:crypto.randomUUID()};await N({path:{assistant_id:e},body:t,throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_correction`})}await Qe(e,n)}}var Et=1500,Dt=12e4,Ot=e=>new Promise(t=>setTimeout(t,e));async function kt({awaitAssistantId:e,values:n,userName:r,assistantName:i}){let a,o;try{a=await e();let t=await M({path:{assistant_id:a},body:{conversationType:`standard`,title:`Updating personality`},throwOnError:!1});if(o=t.data?.id,!t.response?.ok||!o)return;let s={conversationId:o,content:Pe(n,r,i),sourceChannel:`vellum`,interface:`vellum`,clientMessageId:crypto.randomUUID()};if(!(await N({path:{assistant_id:a},body:s,throwOnError:!1})).response?.ok)return;await G(a,Fe(n));let c=Date.now()+Dt,l=``,u=0,d=!1;for(;Date.now()<c;){await Ot(Et);let e=await j({path:{assistant_id:a},query:{conversationId:o},throwOnError:!1}),t=K(e.data?.messages??[]);if(t&&(u=t===l?u+1:0,l=t),e.data?.processing===!0&&(d=!0),Ie({processing:e.data?.processing,sawProcessing:d,hasReply:t.length>0,stableReads:u}))break}}catch(e){t(e,{context:`research_onboarding_personality`})}finally{if(a&&o)try{await k({path:{assistant_id:a,id:o},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_personality_archive`})}}}function At(e){return`id \`scope_${e}\`, \`data: {"${De}": "${e}"}\``}function jt(e){let t=e?.trim();return`You're about to begin your first conversation.${t?`\nYour name is ${t} — introduce yourself as ${t}.`:``}
41
- Respond with a warm and engaging greeting. Be interesting, be real. This is your chance to get to know and impress the user.
42
- End the greeting text with one short question asking where they'd like to start, phrased so nothing feels off the table (e.g. "…or is there anything else on your mind entirely?").
43
- Then call the \`ui_show\` tool exactly once: \`surface_type: "choice"\`, \`data.selectionMode: "single"\`, no \`title\` (or a very short one), and exactly three options in this order:
44
- 1. ${At(`work`)} — a concrete offer grounded in their work or role from your Onboarding Context (occupation, daily tools, work-related research findings).
45
- 2. ${At(`personal`)} — a concrete offer grounded in their hobbies, interests, or personal research findings.
46
- 3. ${At(`both`)} — an "all of the above" invitation.
47
- An option's title becomes the user's visible reply bubble when they tap it, so every title must read naturally in the user's voice — imperative or neutral, six words or fewer (e.g. "Help me plan my next ride", never "I can plan your next ride"). Titles only: never set \`description\` on any option — the three options must scan in a single glance, and your greeting text already carries the color.
48
- These options are conversation starters, not a menu: never imply the user is limited to them, and your closing question itself must invite free-form answers.
49
- After the \`ui_show\` result comes back, stop — output no further text. If \`ui_show\` errors or is unavailable, just end with the text question alone; the user will type. Do not set \`await_action\` or \`persistent\`.
50
- Keep it short! For this opening greeting only, don't use \`recall\`, don't read any files, and make no tool calls other than that single \`ui_show\`. (This applies to the greeting alone; use your tools normally for everything the user asks afterward.)`}function Mt(e,t){if(!e)return null;let n=new Date(e);if(Number.isNaN(n.getTime()))return null;try{return new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`,...t?{timeZone:t}:{}}).format(n)}catch{return new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(n)}}var Y=s(),Nt=(0,q.createContext)(null);function Pt({size:e,children:t}){return(0,Y.jsx)(Nt.Provider,{value:e,children:t})}function Ft(){let e=(0,q.useContext)(Nt),[t,n]=(0,q.useState)(()=>Re());return(0,q.useEffect)(()=>{if(e)return;let t=()=>n(Re());return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e]),e??t}var It={x:.5,y:.43},Lt=[-8,6,9,0,7,-6,5,0,-7,4,-5,6];function Rt(e){return Lt[e%Lt.length]??0}var zt=[1,0,1,0,1,0,1,0,1,0,0],Bt=[.72,1],Vt=[.4,1],Ht=[10,20],Ut=50,Wt={6:1.1};function Gt(e){return(Bt[zt[e]??1]??1)*(Wt[e]??1)}function Kt(e){return Vt[zt[e]??1]??1}function qt(e){return Ht[zt[e]??1]??20}function Jt(e,t){return Math.round(Math.max(130,Math.min(Math.min(e,t)*.4,420)))}function Yt(e,t){return Math.round(Math.max(110,Math.min(Math.min(e,t)*.21,205)))}function Xt(e,t,n){let r=n*.4,i=n*.48;return[{x:i,y:i},{x:e*.3,y:r-t*.03},{x:e*.72,y:r-t*.1},{x:e-i,y:i},{x:e-r,y:t*.72},{x:e-i,y:t-i},{x:i,y:t-i},{x:r,y:t*.5},{x:e-r,y:t*.3},{x:e*.28,y:t-r+t*.05},{x:e*.77,y:t-r}]}function Zt(e,t,n,r,i){let a=e.x-t,o=e.y-n,s=Math.hypot(a,o)||1,c=Math.max(r,i);return{x:e.x+a/s*c,y:e.y+o/s*c}}function Qt({components:e,characters:t,centerChar:n,edgeOrder:r,entering:i,exiting:a,onEnterComplete:o,onSelectChar:s}){let{w:c,h:l}=Ft(),u=B(),d=c<640,f=new Set([4,7,8,9,10]),p=e=>d&&f.has(e),m=Jt(c,l),h=m/2,g=m/2,_=Yt(c,l)/m,v=Yt(c,l),y=(0,q.useMemo)(()=>{let e=new Map;return r.forEach((t,n)=>e.set(t,n)),e},[r]),b=It.x*c,x=It.y*l,S=b-h,C=x-h,w=(0,q.useMemo)(()=>Xt(c,l,g),[c,l,g]);return(0,Y.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-0 overflow-hidden`,children:[(0,Y.jsx)(`div`,{className:`absolute rounded-[50%] bg-[var(--aux-black,#000)] opacity-20 blur-md`,style:{width:v*.62,height:16,left:b-v*.31,top:x+v*.4}}),t.map((t,r)=>{let d=r===n,f=!u&&i?.char===r,g=!u&&a?.char===r;if(f){let n=w[i.fromSlot],a=Zt(n,b,x,c,l),s=Gt(i.fromSlot),u=Kt(i.fromSlot);return(0,Y.jsx)(R.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:Ut},initial:!1,animate:{x:[n.x-h,a.x-h,a.x-h,S,S,S],y:[n.y-h,a.y-h,a.y-h,C,C,C],scale:[s,s,s,_*.7,_*1.08,_],opacity:[u,u,0,0,1,1]},transition:{duration:.85,times:[0,.28,.34,.42,.72,1],ease:[`easeIn`,`linear`,`linear`,`easeOut`,`easeOut`]},onAnimationComplete:()=>o(r),children:(0,Y.jsx)(U,{components:e,traits:t,size:m})},r)}if(g){if(p(a.toSlot))return null;let n=w[a.toSlot],i=Zt(n,b,x,c,l),o=Gt(a.toSlot),s=Kt(a.toSlot);return(0,Y.jsx)(R.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:qt(a.toSlot)},initial:!1,animate:{x:[S,S,i.x-h,i.x-h,n.x-h,n.x-h],y:[C,C,i.y-h,i.y-h,n.y-h,n.y-h],scale:[_,_*.6,o,o,o*1.1,o],opacity:[1,0,0,s,s,s]},transition:{duration:.85,times:[0,.28,.34,.45,.78,1],ease:[`easeIn`,`linear`,`linear`,`easeOut`,`easeOut`]},children:(0,Y.jsx)(`div`,{style:{transform:`rotate(${Rt(a.toSlot)}deg)`},children:(0,Y.jsx)(U,{components:e,traits:t,size:m,breathe:!1})})},r)}let v=y.get(r)??0;if(!d&&p(v))return null;let T=d?{x:b,y:x}:w[v];return(0,Y.jsx)(R.div,{className:`absolute left-0 top-0 ${d?``:`pointer-events-auto cursor-pointer`}`,style:{width:m,height:m,zIndex:d?Ut:qt(v)},initial:!1,animate:{x:T.x-h,y:T.y-h,scale:d?_:Gt(v),opacity:d?1:Kt(v)},transition:u?{duration:0}:{type:`spring`,stiffness:230,damping:26},onClick:d?void 0:()=>s(r),children:(0,Y.jsx)(`div`,{style:{transform:d?void 0:`rotate(${Rt(y.get(r)??0)}deg)`},children:(0,Y.jsx)(U,{components:e,traits:t,size:m,breathe:d})})},r)})]})}var $t=[{bodyShape:`urchin`,eyeStyle:`goofy`,color:`teal`},{bodyShape:`blob`,eyeStyle:`grumpy`,color:`purple`},{bodyShape:`star`,eyeStyle:`surprised`,color:`orange`},{bodyShape:`blob`,eyeStyle:`gentle`,color:`pink`},{bodyShape:`ninja`,eyeStyle:`angry`,color:`yellow`},{bodyShape:`urchin`,eyeStyle:`curious`,color:`pink`},{bodyShape:`burst`,eyeStyle:`quirky`,color:`orange`},{bodyShape:`ghost`,eyeStyle:`bashful`,color:`green`},{bodyShape:`sprout`,eyeStyle:`dazed`,color:`orange`},{bodyShape:`star`,eyeStyle:`goofy`,color:`teal`},{bodyShape:`flower`,eyeStyle:`angry`,color:`pink`},{bodyShape:`cloud`,eyeStyle:`curious`,color:`yellow`}],X=C(S((e,t)=>({characters:[],selectedIndex:0,ensureGenerated:()=>{t().characters.length>0||e({characters:$t,selectedIndex:0})},setSelectedIndex:t=>e({selectedIndex:t}),selectNext:()=>e(e=>({selectedIndex:e.characters.length===0?0:(e.selectedIndex+1)%e.characters.length})),selectPrev:()=>e(e=>({selectedIndex:e.characters.length===0?0:(e.selectedIndex-1+e.characters.length)%e.characters.length}))})));function en(){let[e,t]=(0,q.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,q.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function tn(){let e=W(),t=X.use.characters(),n=X.use.ensureGenerated(),r=B(),{w:i,h:a}=en();(0,q.useEffect)(()=>{e&&n(e)},[e,n]);let o=Jt(i,a),s=(0,q.useMemo)(()=>Xt(i,a,o/2),[i,a,o]),c=i<640,l=new Set([4,7,8,9,10]);return!e||t.length===0?null:(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none fixed inset-0 z-0 overflow-hidden`,children:t.map((t,n)=>{if(n===0)return null;let i=n-1;if(c&&l.has(i))return null;let a=s[i];if(!a)return null;let u=Lt[i%Lt.length]??0,d=o*Gt(i),f=Kt(i),p=qt(i);return(0,Y.jsx)(`div`,{className:`absolute`,style:{left:a.x-d/2,top:a.y-d/2,width:d,height:d,zIndex:p,animation:r?void 0:`character-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) ${.1+n*.05}s both`},children:(0,Y.jsx)(`div`,{style:{opacity:f,transform:`rotate(${u}deg)`},children:(0,Y.jsx)(U,{components:e,traits:t,size:d,breathe:!1})})},n)})})}var nn=c(`flex w-full items-center gap-1.5 rounded-md border bg-[var(--field-bg)] px-3`,`border-[var(--field-border)] transition-[border-color,background-color] duration-150 ease-out`,`focus-within:border-[var(--border-active)]`),rn=c(`min-w-0 flex-1 bg-transparent text-body-medium-lighter text-[var(--content-default)]`,`placeholder:text-[var(--content-tertiary)] outline-none`,Be);function Z(e){return e.trim().toLowerCase()}function an(e,t,n=[],r=8){let i=Z(t),a=new Set(n.map(Z)),o=[];for(let t of e)if(!a.has(Z(t))&&((i.length===0||Z(t).includes(i))&&o.push(t),o.length>=r))break;return o}function on({id:e,options:t,highlighted:n,showAddHint:r,onPick:i,onHover:a}){return(0,Y.jsxs)(`ul`,{id:e,role:`listbox`,className:c(`absolute left-0 right-0 top-full z-50 mt-1.5 max-h-60 overflow-auto`,`rounded-lg bg-[var(--surface-lift)] p-1 shadow-[var(--shadow-popover)]`,`animate-[fadeInUp_0.12s_ease-out]`),children:[t.map((t,r)=>(0,Y.jsx)(`li`,{id:`${e}-opt-${r}`,role:`option`,"aria-selected":r===n,onMouseDown:e=>{e.preventDefault(),i(t.value)},onMouseEnter:()=>a(r),className:c(`flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5`,`text-body-medium-lighter text-[var(--content-default)]`,r===n?`bg-[var(--surface-base)]`:`bg-transparent`),children:t.isAdd?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(m,{size:15,className:`shrink-0 text-[var(--content-tertiary)]`}),(0,Y.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`Add “`,t.value,`”`]}),(0,Y.jsx)(`span`,{className:`ml-auto shrink-0 text-body-small-default text-[var(--content-tertiary)]`,children:`↵ Enter`})]}):t.value},t.isAdd?`__add__${t.value}`:t.value)),r&&(0,Y.jsx)(`li`,{role:`presentation`,className:`mt-0.5 border-t border-[var(--border-base)] px-2.5 pb-0.5 pt-1.5 text-body-small-default text-[var(--content-tertiary)]`,children:`Type anything and press ↵ to add your own`})]})}function sn({htmlFor:e,required:t,children:n}){return(0,Y.jsxs)(`label`,{htmlFor:e,className:`text-body-small-default text-[var(--content-secondary)]`,children:[n,t?(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`}):null]})}function cn(e,t){(0,q.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t()}return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])}function ln({label:e,placeholder:t,values:n,onChange:r,suggestions:i}){let a=(0,q.useId)(),o=`tac-${a}`,s=`tac-list-${a}`,l=(0,q.useRef)(null),[u,d]=(0,q.useState)(``),[f,p]=(0,q.useState)(!1),[m,g]=(0,q.useState)(-1),v=(0,q.useMemo)(()=>an(i,u,n),[i,u,n]),y=u.trim(),b=(0,q.useMemo)(()=>{if(!y)return!1;let e=Z(y);return!(n.some(t=>Z(t)===e)||v.some(t=>Z(t)===e))},[y,n,v]),x=(0,q.useMemo)(()=>{let e=v.map(e=>({value:e,isAdd:!1}));return b?[...e,{value:y,isAdd:!0}]:e},[v,b,y]);cn(l,()=>p(!1)),(0,q.useEffect)(()=>{g(e=>e>=x.length?x.length-1:e)},[x.length]);let S=f&&x.length>0,C=!b;function w(e){let t=e.trim();t&&(n.some(e=>Z(e)===Z(t))||r([...n,t]),d(``),g(-1))}function T(e){r(n.filter(t=>t!==e))}function E(e){e.key===`ArrowDown`?(e.preventDefault(),p(!0),g(e=>Math.min(e+1,x.length-1))):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0))):e.key===`Enter`?S&&m>=0?(e.preventDefault(),w(x[m].value)):u.trim()&&(e.preventDefault(),w(u)):e.key===`,`?(e.preventDefault(),w(u)):e.key===`Backspace`&&u.length===0&&n.length>0?T(n[n.length-1]):e.key===`Escape`&&p(!1)}return(0,Y.jsxs)(`div`,{ref:l,className:`relative flex flex-col gap-1.5`,children:[(0,Y.jsx)(sn,{htmlFor:o,children:e}),(0,Y.jsxs)(`div`,{className:c(nn,`min-h-9 flex-wrap py-1.5`),children:[(0,Y.jsx)(h,{size:16,"aria-hidden":!0,className:`shrink-0 self-center text-[var(--content-tertiary)]`}),n.map(e=>(0,Y.jsx)(_,{onRemove:()=>T(e),removeLabel:`Remove ${e}`,className:`border border-[var(--border-base)] bg-[var(--surface-base)]`,children:e},e)),(0,Y.jsx)(`input`,{id:o,role:`combobox`,"aria-expanded":S,"aria-controls":s,"aria-autocomplete":`list`,"aria-activedescendant":m>=0?`${s}-opt-${m}`:void 0,autoComplete:`off`,className:c(rn,`h-6 w-24`),placeholder:n.length===0?t:``,value:u,onChange:e=>{d(e.target.value),p(!0)},onFocus:()=>p(!0),onKeyDown:E})]}),S&&(0,Y.jsx)(on,{id:s,options:x,highlighted:m,showAddHint:C,onPick:w,onHover:g})]})}var un=`Reading.Writing.Cooking.Baking.Gardening.Photography.Painting.Drawing.Hiking.Running.Cycling.Swimming.Yoga.Climbing.Weightlifting.Gaming.Board games.Chess.Traveling.Cars.Woodworking.Knitting.Playing guitar.Playing piano.Singing.Dancing.Fishing.Camping.Surfing.Skiing.Snowboarding.Coffee.Wine.Birdwatching.Pottery.Investing.Podcasts.Movies.Soccer.Basketball.Tennis.Golf.Meditation.Volunteering.Astronomy.3D printing`.split(`.`);function dn(e,t){return{animation:`fadeInUp 0.4s ease-out ${e}s both`,...t==null?{}:{position:`relative`,zIndex:t}}}function fn({initialFirstName:e=``,initialLastName:t=``,onSubmit:n}){let[i,a]=(0,q.useState)(e),[o,s]=(0,q.useState)(t),[c,l]=(0,q.useState)(``),[d,f]=(0,q.useState)([]),p=i.trim().length>0&&c.trim().length>0;function m(){p&&n({firstName:i,lastName:o,role:c,hobbies:d})}return(0,Y.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,children:(0,Y.jsxs)(H,{showCreatureFooter:!1,children:[(0,Y.jsx)(tn,{}),(0,Y.jsxs)(`form`,{className:`relative z-10 mx-auto flex min-h-screen w-full max-w-sm flex-col items-center justify-center px-6 py-16 text-[var(--content-default)]`,onSubmit:e=>{e.preventDefault(),m()},children:[(0,Y.jsx)(`h1`,{className:`text-center font-serif text-[2.75rem] leading-[1.05] tracking-tight`,style:dn(.05),children:`Let's start with you.`}),(0,Y.jsx)(`p`,{className:`mt-3 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:dn(.12),children:`A few details so I can get to know you.`}),(0,Y.jsxs)(`div`,{className:`mt-10 flex w-full flex-col gap-5`,children:[(0,Y.jsx)(`div`,{style:dn(.2,40),children:(0,Y.jsx)(v,{label:(0,Y.jsxs)(Y.Fragment,{children:[`What should I call you?`,(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`})]}),placeholder:`Your name`,value:i,onChange:e=>a(e.target.value),className:Be,autoFocus:!0,required:!0,fullWidth:!0})}),(0,Y.jsx)(`div`,{style:dn(.27,30),children:(0,Y.jsx)(v,{label:`And your last name?`,placeholder:`Your last name (optional)`,value:o,onChange:e=>s(e.target.value),className:Be,fullWidth:!0})}),(0,Y.jsx)(`div`,{style:dn(.34,20),children:(0,Y.jsx)(v,{label:`Your role`,placeholder:`What do you do for work?`,value:c,onChange:e=>l(e.target.value),className:Be,required:!0,fullWidth:!0})}),(0,Y.jsx)(`div`,{style:dn(.41,10),children:(0,Y.jsx)(ln,{label:`Any hobbies?`,placeholder:`Cars, books, growing tomatoes?`,values:d,onChange:f,suggestions:un})})]}),(0,Y.jsx)(`div`,{className:`mt-10 w-full`,style:dn(.5),children:(0,Y.jsx)(r,{type:`submit`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),fullWidth:!0,disabled:!p,className:`h-11 text-base`,children:`Continue`})})]})]})})}function pn(){let e=W(),t=X.use.characters(),n=X.use.selectedIndex();return(0,q.useMemo)(()=>{let r=t[n],i=e?.colors.find(e=>e.id===r?.color)?.hex;return je(i??`var(--surface-base)`)},[e,t,n])}function Q({onBack:e,onNext:t,tone:n}){let r=pn(),i=n?n===`dark`?`#1A1A1A`:`#FFFFFF`:r.fg,a=`color-mix(in srgb, ${i} 10%, transparent)`,o=`color-mix(in srgb, ${i} 18%, transparent)`;return(0,Y.jsxs)(`div`,{className:`absolute left-4 top-6 z-10 flex items-center gap-3`,children:[(0,Y.jsx)(`button`,{type:`button`,onClick:e,"aria-label":`Back`,className:`flex cursor-pointer h-10 w-10 items-center justify-center rounded-full transition-colors duration-150`,style:{color:i,backgroundColor:a},onMouseEnter:e=>e.currentTarget.style.backgroundColor=o,onMouseLeave:e=>e.currentTarget.style.backgroundColor=a,children:(0,Y.jsx)(l,{className:`h-4 w-4`})}),t?(0,Y.jsx)(`button`,{type:`button`,onClick:t,"aria-label":`Forward`,className:`flex cursor-pointer h-10 w-10 items-center justify-center rounded-full transition-colors duration-150`,style:{color:i,backgroundColor:a},onMouseEnter:e=>e.currentTarget.style.backgroundColor=o,onMouseLeave:e=>e.currentTarget.style.backgroundColor=a,children:(0,Y.jsx)(u,{className:`h-4 w-4`})}):null]})}var mn=[`Ziggy`,`Quill`,`Luna`,`Remy`,`Cleo`,`Cade`];function hn(e,t){let n=[];for(let r=0;r<e;r++)r!==t&&n.push(r);return{centerChar:t,edgeOrder:n}}function gn({onContinue:e,onBack:t,onForward:n}){let i=W(),a=X.use.characters(),o=X.use.ensureGenerated(),s=X.use.selectedIndex(),c=X.use.setSelectedIndex();(0,q.useEffect)(()=>{i&&o(i)},[i,o]);let f=a.length,[m,h]=(0,q.useState)(null),[g,_]=(0,q.useState)(``),[v,y]=(0,q.useState)(!1),b=(0,q.useRef)(!1),x=(0,q.useRef)(null),{ref:S,size:C}=Le(),[w,T]=(0,q.useState)(null);(0,q.useEffect)(()=>{f>0&&m===null&&h(hn(f,s))},[f,s,m]),(0,q.useEffect)(()=>{m&&c(m.centerChar)},[m,c]);let E=m?.centerChar;(0,q.useEffect)(()=>{E!=null&&!b.current&&_(mn[E%mn.length])},[E]),(0,q.useEffect)(()=>{v&&(x.current?.focus(),x.current?.select())},[v]);function D(e){if(!m||e===m.centerChar)return;let t=m.edgeOrder.indexOf(e);if(t<0)return;let n=[...m.edgeOrder];n[t]=m.centerChar,T({entering:{char:e,fromSlot:t},exiting:{char:m.centerChar,toSlot:t}}),h({centerChar:e,edgeOrder:n})}let O=()=>m&&D((m.centerChar+1)%f),ee=()=>m&&D((m.centerChar-1+f)%f),k=(0,q.useMemo)(()=>m?a[m.centerChar]:void 0,[m,a]),A=!!i&&!!m&&!!k;function j(){k&&e({traits:k,name:g.trim()})}function M(){b.current=!0,_(e=>{let t=mn.filter(t=>t!==e),n=t.length>0?t:mn;return n[Math.floor(Math.random()*n.length)]})}let N=`pointer-events-auto z-10 flex cursor-pointer h-10 w-10 items-center justify-center rounded-full bg-[color-mix(in_srgb,var(--content-default)_10%,transparent)] text-[var(--content-default)] transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--content-default)_18%,transparent)]`;return(0,Y.jsx)(`div`,{ref:S,"data-theme":`dark`,className:`relative h-full overflow-hidden bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,Y.jsxs)(Pt,{size:C,children:[A&&(0,Y.jsx)(Qt,{components:i,characters:a,centerChar:m.centerChar,edgeOrder:m.edgeOrder,entering:w?.entering??null,exiting:w?.exiting??null,onEnterComplete:e=>T(t=>t?.entering.char===e?null:t),onSelectChar:D}),(0,Y.jsx)(Q,{tone:`light`,onBack:t,onNext:n?j:void 0}),(0,Y.jsx)(`h1`,{className:`absolute left-1/2 top-[22%] z-10 -translate-x-1/2 whitespace-nowrap text-center text-[2.6rem] leading-none max-md:w-[90vw] max-md:whitespace-normal max-md:text-[2.08rem]`,style:{fontFamily:`var(--font-serif)`,animation:`fadeInUp 0.4s ease-out both`},children:`Give me a face and a name`}),(0,Y.jsx)(`button`,{type:`button`,"aria-label":`Previous character`,onClick:ee,className:`absolute left-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${N}`,children:(0,Y.jsx)(l,{className:`h-4 w-4`})}),(0,Y.jsx)(`button`,{type:`button`,"aria-label":`Next character`,onClick:O,className:`absolute right-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${N}`,children:(0,Y.jsx)(u,{className:`h-4 w-4`})}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[58%] z-10 flex -translate-x-1/2 flex-col items-center gap-10 max-md:top-[54%]`,children:[(0,Y.jsx)(`div`,{className:`flex flex-col items-center gap-4`,children:v?(0,Y.jsx)(`input`,{ref:x,value:g,onChange:e=>{b.current=!0,_(e.target.value)},onBlur:()=>y(!1),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),y(!1))},placeholder:`Name your assistant`,"aria-label":`Assistant name`,className:`w-[234px] rounded-2xl border border-[var(--border-element)] bg-transparent px-4 py-2.5 text-center text-lg text-[var(--content-default)] placeholder:text-[var(--content-tertiary)] outline-none transition-colors duration-150 focus:border-[var(--border-active)]`}):(0,Y.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>y(!0),"aria-label":`Edit name`,className:`flex cursor-pointer items-center gap-2.5`,children:[(0,Y.jsx)(`span`,{className:`text-2xl font-medium ${g?`text-[var(--content-default)]`:`text-[var(--content-tertiary)]`}`,children:g||`Name your assistant`}),(0,Y.jsx)(p,{className:`h-5 w-5 text-[var(--content-tertiary)]`})]}),(0,Y.jsx)(`button`,{type:`button`,onClick:M,"aria-label":`Shuffle name`,title:`Shuffle name`,className:`cursor-pointer text-[var(--content-tertiary)] transition-[transform,color] duration-300 hover:rotate-180 hover:text-[var(--content-default)]`,children:(0,Y.jsx)(d,{className:`h-5 w-5`})})]})}),(0,Y.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),disabled:!A,onClick:j,className:`h-11 w-[234px] text-base`,children:`Continue`})]})]})})}var _n=.25,vn=.46,yn=.3,bn=.85,xn=40,Sn=14,Cn=8;function wn({entrance:e=!1,entranceDelay:t=0,bumpNonce:n=0,settleBlink:r=!0}){let i=W(),a=X.use.characters(),o=X.use.selectedIndex(),s=B(),{w:c,h:l}=Ft(),[u,d]=(0,q.useState)({x:0,y:0});(0,q.useEffect)(()=>{if(s)return;let e=e=>{d({x:(e.clientX/window.innerWidth-.5)*2,y:(e.clientY/window.innerHeight-.5)*2})};return window.addEventListener(`mousemove`,e),()=>window.removeEventListener(`mousemove`,e)},[s]);let f=e&&!s,p=Ee();(0,q.useEffect)(()=>{n>0&&!s&&p.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[n,s,p]);let[m,h]=(0,q.useState)(!1),[g,_]=(0,q.useState)(!e);(0,q.useEffect)(()=>{if(s||!g)return;let e=!1,t,n=n=>{e||(h(!0),t=setTimeout(()=>{e||(h(!1),t=setTimeout(n,140))},140))},i=()=>{t=setTimeout(()=>n(i),2500+Math.random()*4e3)};return r?n(()=>n(i)):i(),()=>{e=!0,clearTimeout(t)}},[s,g,r]);let v=a.length>0?a[o]:void 0,y=(0,q.useMemo)(()=>{if(!i||!v)return null;let e=i.eyeStyles.find(e=>e.id===v.eyeStyle);return e?{paths:e.paths,bbox:F(e.paths.map(e=>I(e.svgPath)))}:null},[i,v]);if(!y)return null;let b=c*bn,x=Math.min(Math.min(c,l)*yn,b*y.bbox.h/y.bbox.w),S=x*y.bbox.w/y.bbox.h,C=(c-S)/2,w=l-(1-_n)*x+l*.05,T=xn/100*l-(w+x/2),E=(vn-_n)*x,D=y.bbox.x+y.bbox.w/2,O=y.bbox.y+y.bbox.h/2;return(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[2]`,style:{left:C,top:w,width:S,height:x,transformOrigin:`center`},initial:f?{y:T,scale:.35}:!1,animate:f?{y:[T,E,0],scale:[.35,1,1]}:{y:0,scale:1},transition:f?{duration:1,delay:t,times:[0,.7,1],ease:`easeInOut`}:{duration:0},onAnimationComplete:()=>_(!0),children:(0,Y.jsx)(R.div,{animate:p,children:(0,Y.jsx)(`div`,{style:{transform:`translate(${u.x*Sn}px, ${u.y*Cn}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,Y.jsx)(`svg`,{viewBox:`${y.bbox.x} ${y.bbox.y} ${y.bbox.w} ${y.bbox.h}`,width:S,height:x,style:{overflow:`visible`,display:`block`},children:(0,Y.jsx)(`g`,{style:{transform:m?`scaleY(0.1)`:`scaleY(1)`,transformOrigin:`${D}px ${O}px`,transition:`transform 0.14s ease-in-out`},children:y.paths.map((e,t)=>(0,Y.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})})})}var Tn=200,En=40;function Dn({firstName:e,assistantName:t,onContinue:n,onBack:i,onForward:a}){let o=W(),s=X.use.characters(),c=X.use.selectedIndex(),l=B(),{ref:d,size:{w:f,h:p}}=Le(),m=pn(),h=s.length>0?s[c]:void 0,g=(0,q.useMemo)(()=>{if(!o||!h)return null;let e=o.bodyShapes.find(e=>e.id===h.bodyShape),t=o.colors.find(e=>e.id===h.color);return!e||!t?null:{body:e,color:t.hex}},[o,h]),_=e.trim()?`Hey, ${e.trim()}!`:`Hey!`,v=t?.trim()?`I’m ${t.trim()}, your new AI assistant.`:`I’m your new AI assistant.`;if(!g)return(0,Y.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,style:{backgroundColor:`var(--surface-base)`}});let y=1.25*Math.max(f,p),b=y*g.body.viewBox.height/g.body.viewBox.width,x=(f-y)/2,S=(p-b)/2,C=Tn/y,w=(En/100-.5)*p;return(0,Y.jsx)(`div`,{ref:d,"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`},children:(0,Y.jsxs)(Pt,{size:{w:f,h:p},children:[(0,Y.jsx)(R.div,{className:`absolute inset-0 z-0`,style:{backgroundColor:g.color},initial:l?!1:{opacity:0},animate:{opacity:1},transition:l?{duration:0}:{duration:.6,delay:.35}}),(0,Y.jsx)(R.svg,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,viewBox:`0 0 ${g.body.viewBox.width} ${g.body.viewBox.height}`,width:y,height:b,style:{left:x,top:S,transformOrigin:`center`},initial:l?!1:{scale:C,y:w},animate:{scale:1,y:0},transition:l?{duration:0}:{type:`spring`,stiffness:78,damping:18,mass:1},children:(0,Y.jsx)(`path`,{d:g.body.svgPath,fill:g.color})}),(0,Y.jsx)(wn,{entrance:!0}),(0,Y.jsx)(R.div,{initial:l?!1:{opacity:0},animate:{opacity:1},transition:l?{duration:0}:{duration:.4,delay:1},children:(0,Y.jsx)(Q,{onBack:i,onNext:a})}),(0,Y.jsxs)(`div`,{className:ze,children:[(0,Y.jsxs)(R.h1,{className:`text-center leading-[1.15] max-md:leading-[1.25]`,style:{fontFamily:`var(--font-serif)`},initial:l?!1:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:l?{duration:0}:{type:`spring`,stiffness:260,damping:11,delay:1},children:[(0,Y.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fgDeep},children:_}),(0,Y.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fg},children:v})]}),(0,Y.jsx)(R.div,{initial:l?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:l?{duration:0}:{duration:.4,delay:1.15},children:(0,Y.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),onClick:n,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})})}var On=.3,kn=.85,An=.25;function jn(){let e=W(),t=X.use.characters(),n=X.use.selectedIndex(),r=t.length>0?t[n]:void 0,{w:i,h:a}=Ft(),o=(0,q.useMemo)(()=>{if(!e||!r)return null;let t=e.eyeStyles.find(e=>e.id===r.eyeStyle);return t?{paths:t.paths,bbox:F(t.paths.map(e=>I(e.svgPath)))}:null},[e,r]),s=o?Math.min(Math.min(i,a)*On,i*kn*o.bbox.h/o.bbox.w):0;return{art:o,eyesW:o?s*o.bbox.w/o.bbox.h:0,eyesH:s,restCy:a-An*s,centerX:i/2,w:i,h:a}}function Mn({art:e,eyesW:t,eyesH:n,centerX:r,eyeCy:i,eyeScale:a,eyeX:o,blinking:s,className:c=`pointer-events-none absolute top-0 z-0`}){let l=Ce(i,e=>e-n/2),u=e.bbox.x+e.bbox.w/2,d=e.bbox.y+e.bbox.h/2;return(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:c,style:{left:r-t/2,top:0,x:o,y:l,width:t,height:n,scale:a,transformOrigin:`center`},children:(0,Y.jsx)(`svg`,{viewBox:`${e.bbox.x} ${e.bbox.y} ${e.bbox.w} ${e.bbox.h}`,width:t,height:n,style:{overflow:`visible`,display:`block`},children:(0,Y.jsx)(`g`,{style:{transform:s?`scaleY(0.1)`:`scaleY(1)`,transformOrigin:`${u}px ${d}px`,transition:`transform 0.13s ease-in-out`},children:e.paths.map((e,t)=>(0,Y.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})}var Nn={green:[`pink`,`purple`,`orange`,`yellow`],orange:[`teal`,`purple`,`green`,`yellow`],pink:[`teal`,`green`,`yellow`,`purple`],purple:[`yellow`,`teal`,`green`,`orange`],teal:[`pink`,`orange`,`yellow`,`purple`],yellow:[`purple`,`teal`,`pink`,`green`]};function Pn(e,t){let n=Nn[e];return n&&n.length>0?n:t.filter(t=>t!==e)}var Fn=new Set([`orange`,`pink`,`red`]);function In(e,t){return Fn.has(e)&&Fn.has(t)}function Ln(e,t,n){let r=Pn(e,t),i=[];for(let e of r){if(i.length>=n)break;i.some(t=>In(t,e))||i.push(e)}for(let e of r){if(i.length>=n)break;i.includes(e)||i.push(e)}return i}var Rn=`You’ve used AI that just answers questions.`,zn=`The more I help,`,Bn=`I’m different.`,Vn=`the better I get,`,Hn=`and the less you have to do.`,Un=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],Wn=290;function Gn({firstH:e,secondH:t,color:n,firstText:r,secondText:i,revealed:a,carouseled:o,revealFrom:s,revealDuration:c,reduce:l}){let u=s===`bottom`?`inset(100% 0 0 0)`:`inset(0 0 100% 0)`;return!e||!t?null:(0,Y.jsx)(R.div,{className:`relative w-full overflow-hidden`,initial:!1,animate:{height:o?t:e},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:(0,Y.jsxs)(R.div,{className:`flex flex-col`,style:{color:n},initial:!1,animate:{y:o?-e:0},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:[(0,Y.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:e},children:(0,Y.jsx)(R.span,{className:`block`,initial:!1,animate:{clipPath:a?`inset(0% 0 0% 0)`:u},transition:l?{duration:0}:{duration:c,ease:`easeOut`},children:r})}),(0,Y.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:t},children:(0,Y.jsx)(`span`,{className:`block`,children:i})})]})})}function Kn({onContinue:e,onBack:t,onForward:n}){let i=pn(),a=B(),{art:o,eyesW:s,eyesH:c,restCy:l,centerX:d,w:f,h:p}=jn(),m=W(),h=X.use.characters(),g=X.use.selectedIndex(),_=h.length>0?h[g]:void 0,v=p>0&&p<=800,y=v?.17:.22,b=v?`top-[17%]`:`top-[22%]`,x=Te(0),S=Te(1),C=(0,q.useMemo)(()=>!m||!_?`orange`:Ln(_.color,m.colors.map(e=>e.id),1)[0]??`orange`,[m,_]),w=Math.min(220,Math.max(150,f*.16)),T=-w,E=-w*.4,D=Te(-220),O=(0,q.useMemo)(()=>!m||!_?[]:Ln(_.color,m.colors.map(e=>e.id),3),[m,_]),ee=Math.max(.42,Math.min(f/1100,1)),k=Math.round(Wn*ee),A=-k*1.1,j=-k*.42,M=Te(-320),[N,te]=(0,q.useState)(!!a),[ne,re]=(0,q.useState)(!!a),[ie,ae]=(0,q.useState)(!1),[oe,se]=(0,q.useState)(!1),[P,ce]=(0,q.useState)(!1),[le,ue]=(0,q.useState)(!1),[de,fe]=(0,q.useState)(!!a),pe=Math.min(f,768)-48,me=(0,q.useRef)(null),F=(0,q.useRef)(null),he=(0,q.useRef)(null),I=(0,q.useRef)(null),ge=(0,q.useRef)(null),[_e,ve]=(0,q.useState)(0),[ye,be]=(0,q.useState)(0),[xe,Se]=(0,q.useState)(0),[Ce,we]=(0,q.useState)(0),[Ee,De]=(0,q.useState)(0);return(0,q.useLayoutEffect)(()=>{me.current?.offsetHeight&&ve(me.current.offsetHeight),F.current?.offsetHeight&&be(F.current.offsetHeight),he.current?.offsetHeight&&Se(he.current.offsetHeight),I.current?.offsetHeight&&we(I.current.offsetHeight),ge.current?.offsetHeight&&De(ge.current.offsetHeight)},[pe]),(0,q.useEffect)(()=>{x.set(l),ue(!0)},[l,x]),(0,q.useEffect)(()=>{if(!a)return;let e=setTimeout(()=>{ae(!0),se(!0),ce(!0)},1400);return()=>clearTimeout(e)},[a]),(0,q.useEffect)(()=>{if(a||!o)return;x.set(l),S.set(1),D.set(T),M.set(A),te(!1),re(!1),ae(!1),se(!1);let e=Math.max(c*.5,p*y-36),t=[],n=[],r=!1,i=e=>(t.push(e),e),s=e=>new Promise(t=>{n.push(setTimeout(t,e))});return(async()=>{if(await s(200),r||(te(!0),await Promise.all([i(L(x,e,{duration:.55,ease:`easeOut`})),i(L(S,.55,{duration:.55,ease:`easeOut`}))]),r)||(re(!0),await Promise.all([i(L(x,l,{type:`spring`,stiffness:210,damping:15})),i(L(S,1,{duration:.45,ease:`easeOut`}))]),r)||(await s(900),r)||(ae(!0),se(!0),await i(L(D,[T,E,E,T],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]})),r)||(await s(150),r))return;ce(!0);let t=i(L(M,[A,j,j,A],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]}));await s(700),!r&&(fe(!0),await t)})(),()=>{r=!0,t.forEach(e=>e.stop()),n.forEach(clearTimeout)}},[a,o,p,y,c,l,x,S,D,T,E,M,A,j]),(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:i.fg},children:[(0,Y.jsx)(Q,{onBack:t,onNext:n}),(0,Y.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none invisible absolute -left-[9999px] top-0 text-[clamp(2.25rem,5.5vw,4.5rem)] leading-[1.15]`,style:{width:pe,fontFamily:`var(--font-serif)`},children:[(0,Y.jsx)(`span`,{ref:me,className:`block`,children:Rn}),(0,Y.jsx)(`span`,{ref:F,className:`block`,children:zn}),(0,Y.jsx)(`span`,{ref:he,className:`block`,children:Bn}),(0,Y.jsx)(`span`,{ref:I,className:`block`,children:Vn}),(0,Y.jsx)(`span`,{ref:ge,className:`block`,children:Hn})]}),le&&o&&(0,Y.jsx)(Mn,{art:o,eyesW:s,eyesH:c,centerX:d,eyeCy:x,eyeScale:S,blinking:!1}),!a&&m&&(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{left:Math.max(16,f*.05),top:0,y:D,width:w,height:w},children:(0,Y.jsx)(U,{components:m,traits:{bodyShape:`blob`,eyeStyle:`goofy`,color:C},size:w,breathe:!1})}),!a&&m&&(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute right-0 top-0 z-[1] flex items-start`,style:{right:-Math.round(k*.12),y:M},children:Un.map((e,t)=>(0,Y.jsx)(`div`,{style:{width:k,height:k,marginLeft:t===0?0:-k*.34,zIndex:Un.length-t},children:(0,Y.jsx)(U,{components:m,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:O[t]??`teal`},size:k,breathe:!1})},e.bodyShape))}),(0,Y.jsxs)(`div`,{className:`${ze.replace(`top-[30%]`,b)} max-w-3xl max-md:top-[34%]`,children:[(0,Y.jsxs)(`div`,{className:`flex w-full flex-col gap-3 text-[clamp(2.25rem,5.5vw,4.5rem)] leading-[1.15]`,style:{fontFamily:`var(--font-serif)`},children:[(0,Y.jsx)(Gn,{firstH:_e,secondH:ye,color:i.fgDeep,firstText:Rn,secondText:zn,revealed:N,carouseled:ie,revealFrom:`bottom`,revealDuration:.55,reduce:!!a}),(0,Y.jsx)(Gn,{firstH:xe,secondH:Ce,color:i.fg,firstText:Bn,secondText:Vn,revealed:ne,carouseled:oe,revealFrom:`top`,revealDuration:.45,reduce:!!a}),(0,Y.jsx)(R.div,{className:`relative w-full overflow-hidden`,style:{color:i.fg},initial:!1,animate:{height:P?Ee:0},transition:a?{duration:0}:{duration:.5,ease:`easeInOut`},children:Ee>0&&(0,Y.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:Ee},children:(0,Y.jsx)(R.span,{className:`block`,initial:!1,animate:{clipPath:P?`inset(0% 0 0% 0)`:`inset(100% 0 0 0)`},transition:a?{duration:0}:{duration:.5,ease:`easeOut`},children:Hn})})})]}),de&&(0,Y.jsx)(R.div,{initial:a?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:a?{duration:0}:{duration:.4},children:(0,Y.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,Y.jsx)(u,{size:16}),onClick:e,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})}function qn({idSuffix:e}){let t=`cf-${e}`,n=`cr-${e}`,r=`cg-${e}`,i=`cs-${e}`;return(0,Y.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,height:`100%`,style:{display:`block`,position:`absolute`,inset:0},children:[(0,Y.jsxs)(`defs`,{children:[(0,Y.jsxs)(`linearGradient`,{id:n,x1:`0.12`,y1:`0.05`,x2:`0.85`,y2:`0.95`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF0AE`}),(0,Y.jsx)(`stop`,{offset:`50%`,stopColor:`#F4C231`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#D29B1A`})]}),(0,Y.jsxs)(`radialGradient`,{id:t,cx:`42%`,cy:`36%`,r:`82%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF6CE`}),(0,Y.jsx)(`stop`,{offset:`55%`,stopColor:`#F8CB3E`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#EEB52C`})]}),(0,Y.jsxs)(`radialGradient`,{id:r,cx:`36%`,cy:`24%`,r:`44%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`0.85`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]}),(0,Y.jsxs)(`radialGradient`,{id:i,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,Y.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`1`}),(0,Y.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]})]}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`49`,fill:`url(#${n})`}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`45.5`,fill:`none`,stroke:`#FFF6CF`,strokeOpacity:`0.6`,strokeWidth:`2.2`,strokeLinecap:`round`,strokeDasharray:`70 210`,transform:`rotate(-128 50 50)`}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`url(#${t})`}),(0,Y.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`none`,stroke:`#C28F18`,strokeOpacity:`0.35`,strokeWidth:`1.4`}),(0,Y.jsxs)(`g`,{fontFamily:`var(--font-sans), system-ui, sans-serif`,fontWeight:900,fontSize:`58`,textAnchor:`middle`,children:[(0,Y.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#C88E16`,transform:`translate(1.3 1.6)`,children:`$`}),(0,Y.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#FFF6CF`,opacity:`0.7`,transform:`translate(-1.3 -1.5)`,children:`$`}),(0,Y.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#F4C12A`,children:`$`})]}),(0,Y.jsx)(`ellipse`,{cx:`38`,cy:`28`,rx:`22`,ry:`14`,fill:`url(#${r})`}),(0,Y.jsx)(`ellipse`,{cx:`34`,cy:`24`,rx:`7`,ry:`4.5`,fill:`url(#${i})`})]})}function Jn({size:e,tiltX:t=0,tiltY:n=0,shadow:r=!0,spinning:i=!1,className:a}){return(0,Y.jsxs)(`div`,{style:{position:`relative`,width:e,height:e},children:[r&&(0,Y.jsx)(`div`,{"aria-hidden":`true`,style:{position:`absolute`,left:`50%`,bottom:-e*.14,width:e*.74,height:e*.16,transform:`translateX(-50%)`,background:`radial-gradient(ellipse at center, rgba(0,0,0,0.22), rgba(0,0,0,0) 70%)`,filter:`blur(2px)`}}),(0,Y.jsx)(`div`,{style:{width:e,height:e,perspective:e*10},children:(0,Y.jsxs)(R.div,{className:a,style:{width:e,height:e,position:`relative`,transformStyle:`preserve-3d`},initial:!1,animate:{rotateX:t,rotateY:i?[n,n+360,n+760,n+1180]:n},transition:i?{duration:.95,times:[0,.32,.62,1],ease:`easeInOut`}:{duration:0},children:[(0,Y.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(0.5px)`},children:(0,Y.jsx)(qn,{idSuffix:`front`})}),(0,Y.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(-0.5px) rotateY(180deg)`},children:(0,Y.jsx)(qn,{idSuffix:`back`})})]})})]})}var Yn=.3,Xn=.95;function Zn({onClaim:e,onBumpEyes:t,onBack:n,onForward:r}){let i=B(),a=pn(),{h:o}=Ft(),[s,c]=(0,q.useState)(!1);function l(){if(!s){if(c(!0),i){e();return}window.setTimeout(t,Yn*1e3)}}let d=o*.42,f=-o*.08,p=o*.9;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,Y.jsx)(Q,{onBack:n,onNext:r}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[26%] flex w-full max-w-xl -translate-x-1/2 flex-col items-center gap-3 px-6 text-center`,children:[(0,Y.jsxs)(`h1`,{className:`text-[2.6rem] leading-[1.1] max-md:max-w-[80vw]`,style:{fontFamily:`var(--font-serif)`},children:[`Here are some free credits`,(0,Y.jsx)(`br`,{className:`max-md:hidden`}),` to get started.`]}),(0,Y.jsx)(`div`,{className:`mt-10 flex flex-col items-center gap-4`,children:(0,Y.jsx)(R.div,{animate:s&&!i?{y:[0,d,f,p],scale:[1,1,1,.2],opacity:[1,1,1,0]}:{},transition:{duration:Xn,times:[0,Yn/Xn,.62,1],ease:[`easeIn`,`easeOut`,`easeIn`]},onAnimationComplete:()=>{s&&e()},children:(0,Y.jsx)(Jn,{size:88,spinning:s&&!i})})}),!s&&(0,Y.jsxs)(`button`,{type:`button`,onClick:l,className:`flex cursor-pointer h-11 w-[234px] items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition-transform duration-150 active:scale-[0.97]`,style:{marginTop:Math.round(24+o*.05),backgroundColor:a.isLight?`#1A1A1A`:`#FFFFFF`,color:a.isLight?`#FFFFFF`:`#1A1A1A`},children:[`Claim`,(0,Y.jsx)(u,{className:`h-4 w-4`})]})]})]})}Ne();var Qn=640,$n=[{id:`companion-coworker`,left:`Companion`,right:`Coworker`,leftAvatar:{bodyShape:`blob`,eyeStyle:`gentle`,color:`pink`},rightAvatar:{bodyShape:`ninja`,eyeStyle:`curious`,color:`purple`}},{id:`genz-boomer`,left:`Gen Z`,right:`Baby Boomer`,leftAvatar:{bodyShape:`burst`,eyeStyle:`quirky`,color:`yellow`},rightAvatar:{bodyShape:`cloud`,eyeStyle:`dazed`,color:`green`}},{id:`execute-collaborate`,left:`Independent`,right:`Collaborative`,leftAvatar:{bodyShape:`star`,eyeStyle:`angry`,color:`orange`},rightAvatar:{bodyShape:`flower`,eyeStyle:`goofy`,color:`teal`}},{id:`playful-serious`,left:`Playful`,right:`Serious`,leftAvatar:{bodyShape:`star`,eyeStyle:`goofy`,color:`yellow`},rightAvatar:{bodyShape:`blob`,eyeStyle:`grumpy`,color:`purple`}},{id:`polite-unfiltered`,left:`Polite`,right:`Unfiltered`,leftAvatar:{bodyShape:`sprout`,eyeStyle:`bashful`,color:`green`},rightAvatar:{bodyShape:`urchin`,eyeStyle:`surprised`,color:`orange`}}],er=[`9%`,`27%`,`45%`,`62%`,`79%`],tr=50,nr=.3*.75,rr=`rgba(36, 41, 46, 0.2)`,ir=`#FDFDFC`,ar=.16;function or(e,t,n){let r=[];for(let i=0;i<e.length;i++){let a=r[i-1],o=e[i+1],s=e[i]??``,c=e=>e===t||e===a;if(!c(s)){r.push(s);continue}let l=n.find(e=>!c(e)&&e!==o)??n.find(e=>!c(e))??s;r.push(l)}return r}function sr(){let[e,t]=(0,q.useState)(()=>typeof window>`u`?1280:window.innerWidth);return(0,q.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function cr({components:e,traits:t,side:n,top:r,size:i,progress:a}){let o=Math.max(0,Math.min(1,a)),s=100+ar*100,c=n===`left`?-100+s*o:100-s*o;return(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute`,style:{[n]:`calc(50% - 50vw)`,top:r,width:i,height:i,opacity:Math.min(1,o*1.6),transform:`translate(${c}%, -50%) scale(${.8+.2*o})`,transformOrigin:`${n} center`,transition:`transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease`,willChange:`transform, opacity`},children:(0,Y.jsx)(U,{components:e,traits:t,size:i,breathe:!1})})}function lr({axis:e,value:t,onValueChange:n,fg:r,disabled:i}){return(0,Y.jsxs)(`div`,{className:`flex w-full shrink-0 flex-wrap items-center gap-x-5 gap-y-1.5 sm:flex-nowrap`,style:{opacity:i?.7:1},children:[(0,Y.jsx)(`span`,{className:`order-1 flex-1 text-left text-sm sm:w-32 sm:flex-none sm:text-right sm:text-[17px]`,style:{color:r},children:e.left}),(0,Y.jsx)(`span`,{className:`order-2 flex-1 text-right text-sm sm:order-3 sm:w-32 sm:flex-none sm:text-left sm:text-[17px]`,style:{color:r},children:e.right}),(0,Y.jsxs)(x,{className:`relative order-3 flex h-6 w-full touch-none items-center select-none sm:order-2 sm:w-auto sm:flex-1`,value:[t],onValueChange:e=>n(e[0]??tr),disabled:i,min:0,max:100,step:1,"aria-label":`${e.left} to ${e.right}`,children:[(0,Y.jsx)(y,{className:`relative h-2 w-full grow rounded-full sm:h-3`,style:{backgroundColor:rr}}),(0,Y.jsx)(b,{className:`block h-5 w-5 cursor-grab rounded-full shadow-sm transition-transform active:scale-95 active:cursor-grabbing keyboard-focus:outline-none keyboard-focus:ring-2 keyboard-focus:ring-white/70 data-[disabled]:cursor-not-allowed data-[disabled]:active:scale-100 sm:h-6 sm:w-6`,style:{backgroundColor:ir}})]})]})}function ur({components:e,values:t,sideAvatars:n,size:r}){return(0,Y.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 -z-10`,children:$n.map((i,a)=>{let o=t[i.id]??tr,s=Math.max(0,(tr-o)/tr),c=Math.max(0,(o-tr)/tr),l=er[a]??`50%`,u=n[a];return u?(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(cr,{components:e,traits:u.left,side:`left`,top:l,size:r,progress:s}),(0,Y.jsx)(cr,{components:e,traits:u.right,side:`right`,top:l,size:r,progress:c})]},i.id):null})})}function dr({values:e,onValueChange:t,locked:n,onContinue:r,onBack:i,onForward:a}){let o=pn(),s=W(),c=sr(),{w:l,h:d}=Ft(),f=Math.round(nr*Math.min(l,d))+12,p=c>=Qn,m=X.use.characters()[X.use.selectedIndex()]?.color,h=Math.round(Math.min(300,Math.max(160,c*.16))),g=(0,q.useMemo)(()=>{let e=s?.colors.map(e=>e.id)??[],t=or($n.map(e=>e.leftAvatar.color),m,e),n=or($n.map(e=>e.rightAvatar.color),m,e);return $n.map((e,r)=>({left:{...e.leftAvatar,color:t[r]??e.leftAvatar.color},right:{...e.rightAvatar,color:n[r]??e.rightAvatar.color}}))},[s,m]);return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:o.fg},children:[(0,Y.jsx)(Q,{onBack:i,onNext:a}),p&&s&&(0,Y.jsx)(ur,{components:s,values:e,sideAvatars:g,size:h}),(0,Y.jsxs)(`div`,{className:`absolute inset-x-0 top-0 bottom-0 mx-auto flex w-full max-w-2xl flex-col items-center overflow-y-auto px-6`,style:{paddingBottom:f},children:[(0,Y.jsx)(`div`,{className:`w-full min-h-14 shrink-[4]`,style:{flexBasis:Math.round(d*.14)}}),(0,Y.jsxs)(`div`,{className:`flex shrink-0 flex-col items-center gap-4`,children:[(0,Y.jsx)(`h1`,{className:`text-center text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`Create my personality`}),n?(0,Y.jsx)(`p`,{className:`text-center text-[15px]`,style:{color:o.fgMuted},children:`Personality locked — chat with your assistant to make any more updates`}):null]}),(0,Y.jsx)(`div`,{className:`w-full min-h-3 shrink-[2]`,style:{flexBasis:Math.round(40+d*.03)}}),$n.map((r,i)=>(0,Y.jsxs)(q.Fragment,{children:[i>0&&(0,Y.jsx)(`div`,{className:`w-full min-h-2.5 shrink basis-8 sm:basis-11`}),(0,Y.jsx)(lr,{axis:r,value:e[r.id]??tr,onValueChange:e=>t(r.id,e),fg:o.fg,disabled:n})]},r.id)),(0,Y.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-14`}),(0,Y.jsxs)(`button`,{type:`button`,onClick:r,className:`flex h-11 w-[234px] shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition-transform duration-150 active:scale-[0.97]`,style:{backgroundColor:o.isLight?`#1A1A1A`:`#FFFFFF`,color:o.isLight?`#FFFFFF`:`#1A1A1A`},children:[`Continue`,(0,Y.jsx)(u,{className:`h-4 w-4`})]})]})]})}function fr({assistantId:e,assistantReady:t,onConnected:n,onSkip:r,onBack:i,onForward:a,missingCalendarScope:o=!1,onRetry:s,hatchError:c=null}){let l=pn(),{handleConnect:u,oauthInProgress:d}=we({assistantId:e??``,onConnect:n}),p=()=>{s?.(),u()},m=!e||!t,h=m||d;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:l.fg},children:[(0,Y.jsx)(Q,{onBack:i,onNext:a}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[26%] flex w-[360px] -translate-x-1/2 flex-col items-center gap-5 text-center`,children:[(0,Y.jsx)(`h1`,{className:`text-[2.6rem] leading-tight`,style:{fontFamily:`var(--font-serif)`},children:m?`Waking up`:o?`Access not enabled`:`Let me make this easy`}),(0,Y.jsx)(`p`,{className:`text-[16px]`,style:{color:l.fgMuted},children:m?`Your assistant is getting ready`:o?`Check the box next to the Google Calendar permission so I can book the check-in.`:`Connect your Google Calendar so I can find time to check in and start helping.`}),(0,Y.jsxs)(`div`,{className:`mt-6 flex w-[234px] flex-col items-center gap-4`,children:[(0,Y.jsx)(`button`,{type:`button`,onClick:p,disabled:h,className:`flex cursor-pointer h-11 w-full items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition-transform duration-150 enabled:active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-60`,style:{backgroundColor:l.isLight?`#1A1A1A`:`#FFFFFF`,color:l.isLight?`#FFFFFF`:`#1A1A1A`},children:m?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Starting assistant…`]}):d?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(f,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization…`]}):o?`Try again`:`Connect Calendar →`}),(!m||c)&&(0,Y.jsx)(`button`,{type:`button`,onClick:r,disabled:d,className:`cursor-pointer text-body-small-default transition-opacity hover:opacity-100 disabled:opacity-60`,style:{color:l.fgMuted},children:`Skip for now`})]})]})]})}var pr=je(`#17191C`);function mr(){let[e,t]=(0,q.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,q.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function hr(){let e=W(),t=X.use.characters(),n=X.use.selectedIndex();return{components:e,chosen:t.length>0?t[n]:void 0}}function gr({size:e=64,isAssistantBusy:t=!1}){let{components:n,chosen:r}=hr();return!n||!r?(0,Y.jsx)(`div`,{style:{width:e,height:e}}):(0,Y.jsx)(`div`,{className:`shrink-0`,style:{width:e,height:e},children:(0,Y.jsx)(U,{components:n,traits:r,size:e,isAssistantBusy:t})})}var _r=`pt-[0.7rem] text-[2.6rem] leading-none`,vr=64,yr=4500,br=7e3;function xr({onDone:e,onBack:t,onForward:n,scheduledTime:r,awaitingTime:i}){let{components:a,chosen:o}=hr(),s=B(),{w:c,h:l}=mr(),u=r?`Check-in scheduled for tomorrow at ${r}!`:`Check-in scheduled!`;(0,q.useEffect)(()=>{let t=setTimeout(e,i&&!r?br:yr);return()=>clearTimeout(t)},[e,i,r]);let d=(0,q.useRef)(null),[f,p]=(0,q.useState)(null);(0,q.useLayoutEffect)(()=>{let e=()=>{let e=d.current?.getBoundingClientRect();e&&p({cx:e.left+e.width/2,cy:e.top+e.height/2})};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[u]);let m=1.3*Math.max(c,l)/vr,h=f?c/2-f.cx:0,g=f?l*.88-f.cy:0,_=l*.05;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden text-white`,children:[(0,Y.jsx)(Q,{onBack:t,onNext:n,tone:`light`}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[14%] sm:top-[26%] flex w-full max-w-xl -translate-x-1/2 items-start gap-3 px-6`,children:[(0,Y.jsx)(`div`,{ref:d,className:`relative shrink-0`,style:{width:vr,height:vr},children:a&&o&&f&&(0,Y.jsx)(R.div,{className:`absolute inset-0`,style:{transformOrigin:`center`},initial:s?!1:{scale:m,x:h,y:g},animate:{x:[h,h,0,0],y:[g,g+_,0,0],scale:[m,m,1.07,1]},transition:s?{duration:0}:{duration:1.1,times:[0,.18,.82,1],ease:[`easeOut`,`easeIn`,`easeOut`]},children:(0,Y.jsx)(U,{components:a,traits:o,size:vr})})}),(0,Y.jsx)(R.span,{className:_r,style:{fontFamily:`var(--font-serif)`},initial:s?!1:{opacity:0,x:-8},animate:{opacity:1,x:0},transition:s?{duration:0}:{duration:.4,delay:.9},children:u})]})]})}var Sr=[`Searching the web to get to know you…`,`Reading public profiles…`,`Skimming the highlights…`,`Connecting the dots…`,`Piecing it together…`],Cr=[`Updating my personality…`,`Finding my voice…`,`Getting into character…`],wr=`Almost there…`,Tr=[...Sr,wr],Er=[...Cr,wr],Dr=2800;function Or({onDone:e,onBack:t,onAdvance:n,onForward:r,ready:i}){let a=pr,[o,s]=(0,q.useState)(0);return(0,q.useEffect)(()=>{n?.(o);let t=o>=Tr.length-1;if(i&&t){let t=setTimeout(e,Dr);return()=>clearTimeout(t)}let r=setTimeout(()=>s(e=>(e+1)%Tr.length),Dr);return()=>clearTimeout(r)},[o,i,e,n]),(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,Y.jsx)(Q,{onBack:t,onNext:r}),(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-1/2 flex w-full max-w-xl -translate-x-1/2 -translate-y-1/2 items-center gap-3 px-6`,children:[(0,Y.jsx)(gr,{isAssistantBusy:!0}),(0,Y.jsx)(z,{mode:`wait`,children:(0,Y.jsx)(R.p,{className:`${_r} flex min-h-[4.4rem] items-center !pt-0 !text-[2.08rem]`,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:Tr[o]},o)})]})]})}function kr({onDone:e,ready:t}){let n=pr,[r,i]=(0,q.useState)(0);return(0,q.useEffect)(()=>{let n=Er.length-1;if(t){if(r!==n){i(n);return}let t=setTimeout(e,Dr);return()=>clearTimeout(t)}let a=setTimeout(()=>i(e=>(e+1)%Er.length),Dr);return()=>clearTimeout(a)},[r,t,e]),(0,Y.jsx)(`div`,{className:`absolute inset-0 z-10`,style:{color:n.fg},children:(0,Y.jsxs)(`div`,{className:`absolute left-1/2 top-[14%] sm:top-[26%] flex w-full max-w-xl -translate-x-1/2 items-start gap-3 px-6`,children:[(0,Y.jsx)(gr,{isAssistantBusy:!0}),(0,Y.jsx)(z,{mode:`wait`,children:(0,Y.jsx)(R.p,{className:_r,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:Er[r]},r)})]})})}function Ar({claims:e,loading:t,onContinue:n,onRejectAll:r,onBack:i,onForward:a}){let o=pr,s=B(),[c,l]=(0,q.useState)(()=>new Set),d=e.filter(e=>!c.has(e.claim)),f=d.length>0,p=!t;return(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,Y.jsx)(Q,{onBack:i,onNext:a}),(0,Y.jsxs)(`div`,{className:`absolute bottom-0 left-1/2 top-[11%] sm:top-[8%] z-10 flex w-full max-w-xl -translate-x-1/2 flex-col px-6 pb-8`,children:[(0,Y.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-y-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Y.jsx)(gr,{}),(0,Y.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`This is what I found about you`})]}),(0,Y.jsx)(`p`,{className:`mb-7 mt-2 text-[15px]`,style:{color:o.fgMuted},children:f?t?`Still checking the rest. You can review these as they come in.`:`I searched the web. Feel free to remove anything that isn’t true.`:t?`Still putting this together…`:`I didn’t turn up much — we can fill it in as we chat.`}),(0,Y.jsx)(`div`,{className:`flex flex-col gap-3`,children:(0,Y.jsx)(z,{children:d.map(e=>(0,Y.jsxs)(R.div,{layout:!0,initial:s?!1:{opacity:0,y:10},animate:{opacity:1,y:0},exit:s?void 0:{opacity:0,scale:.95},className:`flex items-center justify-between gap-3 rounded-2xl px-5 py-4 text-[15px]`,style:{backgroundColor:o.isLight?`rgba(0,0,0,0.06)`:`rgba(255,255,255,0.1)`},children:[(0,Y.jsx)(`span`,{children:e.claim}),(0,Y.jsx)(`button`,{type:`button`,"aria-label":`Remove "${e.claim}"`,onClick:()=>l(t=>new Set(t).add(e.claim)),className:`flex cursor-pointer h-6 w-6 shrink-0 items-center justify-center rounded-full transition-opacity hover:opacity-100`,style:{color:o.fgMuted},children:(0,Y.jsx)(g,{className:`h-4 w-4`})})]},e.claim))})}),f&&p&&(0,Y.jsx)(`button`,{type:`button`,onClick:r,className:`mt-5 self-start shrink-0 cursor-pointer text-[14px] underline underline-offset-2 transition-opacity hover:opacity-80`,style:{color:o.fgMuted},children:`This is not me`})]}),(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>n([...c]),disabled:!p,className:`mt-8 flex cursor-pointer h-11 w-[200px] shrink-0 items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition duration-150 enabled:active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-60`,style:{backgroundColor:o.isLight?`#1A1A1A`:`#FFFFFF`,color:o.isLight?`#FFFFFF`:`#1A1A1A`},children:[p?`Continue`:`Still searching…`,p&&(0,Y.jsx)(u,{className:`h-4 w-4`})]})]})]})}var $=38,jr=$;function Mr({head:e,note:t,flyToNote:n,reduce:r,onLanded:i}){let{components:a,chosen:o}=hr();if(!a||!o)return null;let s=$/2,c=n&&t?t:e,l={x:c.x-s,y:c.y-s};return(0,Y.jsx)(R.div,{className:`pointer-events-none absolute left-0 top-0`,style:{width:$,height:$,transformOrigin:`center`},initial:!1,animate:l,transition:r?{duration:0}:n&&t?{type:`spring`,duration:.9,bounce:.45}:{duration:.4},onAnimationComplete:()=>{n&&t&&i()},children:(0,Y.jsx)(U,{components:a,traits:o,size:$})})}function Nr({installedPlugins:e=[],pluginCatalog:t={},onStart:n,onBack:r,onForward:i,disabled:a=!1}){let o=pr,s=B(),[c,l]=(0,q.useState)(!1),{components:d,chosen:f}=hr(),{h:p}=mr(),m=e.map(e=>({name:e,displayName:V(e),description:t[e]?.trim()??``})).filter(e=>e.displayName.length>0),h=m.length>0,g=(0,q.useRef)(null),_=(0,q.useRef)(null),v=(0,q.useRef)(null),[y,b]=(0,q.useState)(null),[x,S]=(0,q.useState)(!1),[C,w]=(0,q.useState)(!1),T=(0,q.useRef)(!1);(0,q.useEffect)(()=>{T.current=x},[x]),(0,q.useLayoutEffect)(()=>{let e=g.current,t=_.current;if(!e||!t)return;let n=()=>{if(T.current)return;let n=e.getBoundingClientRect(),r=e=>({x:e.left-n.left+e.width/2,y:e.top-n.top+e.height/2}),i=v.current;b({head:r(t.getBoundingClientRect()),note:i?r(i.getBoundingClientRect()):void 0})};n();let r=new ResizeObserver(n);return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n)}},[]);let E=y?.note?.y;return(0,q.useEffect)(()=>{E===void 0||x||S(!0)},[E,x]),(0,Y.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,Y.jsx)(Q,{onBack:r,onNext:i}),(0,Y.jsxs)(`div`,{ref:g,className:`absolute left-1/2 top-1/2 z-10 flex w-full max-w-xl -translate-x-1/2 -translate-y-1/2 flex-col px-6`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center`,children:[(0,Y.jsx)(R.div,{ref:_,className:`shrink-0`,style:{height:$},initial:!1,animate:x?{width:0,marginRight:0}:{width:$,marginRight:12},transition:s?{duration:0}:{duration:.5,ease:`easeInOut`}}),(0,Y.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`You’re all set`})]}),(0,Y.jsxs)(`div`,{className:`mt-4 flex items-center gap-3`,children:[C&&d&&f?(0,Y.jsx)(`div`,{className:`shrink-0`,children:(0,Y.jsx)(U,{components:d,traits:f,size:jr})}):(0,Y.jsx)(`div`,{ref:v,className:`shrink-0`,style:{width:jr,height:jr}}),(0,Y.jsx)(R.p,{className:`text-[15px]`,style:{color:o.fg},initial:!1,animate:{opacity:+!!C,x:C?0:-6},transition:s?{duration:0}:{duration:.35},children:`I’ve set myself up with plugins around who you are.`})]}),h&&(0,Y.jsx)(`div`,{className:`flex flex-col gap-3`,style:{marginTop:Math.round(64-p*.02)},children:m.map((e,t)=>(0,Y.jsxs)(R.div,{initial:s?!1:{opacity:0,y:10},animate:{opacity:1,y:0},transition:s?{duration:0}:{duration:.3,delay:t*.06},className:`rounded-2xl px-5 py-4`,style:{backgroundColor:o.isLight?`rgba(0,0,0,0.06)`:`rgba(255,255,255,0.1)`},children:[(0,Y.jsx)(`div`,{className:`text-[15px] font-medium`,children:e.displayName}),e.description&&(0,Y.jsx)(`div`,{className:`mt-1 text-[13px] leading-snug`,style:{color:o.fgMuted},children:e.description})]},e.name))}),(0,Y.jsxs)(`button`,{type:`button`,onClick:()=>{c||a||(l(!0),Promise.resolve().then(n).catch(()=>l(!1)))},disabled:c||a,className:`mt-16 flex cursor-pointer h-11 w-[200px] items-center justify-center gap-2 rounded-[10px] text-body-medium-default transition duration-150 enabled:active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-60`,style:{backgroundColor:o.isLight?`#1A1A1A`:`#FFFFFF`,color:o.isLight?`#FFFFFF`:`#1A1A1A`},children:[c?`Starting…`:`Let's chat`,!c&&(0,Y.jsx)(u,{className:`h-4 w-4`})]}),y&&!C&&(0,Y.jsx)(Mr,{head:y.head,note:y.note,flyToNote:x&&y.note!==void 0,reduce:s,onLanded:()=>w(!0)})]})]})}var Pr=[{bodyShape:`sprout`,eyeStyle:`curious`,colorIdx:0,base:230,pos:e=>({left:-e*.32,top:`40%`})},{bodyShape:`flower`,eyeStyle:`goofy`,colorIdx:1,base:230,pos:e=>({right:-e*.32,top:`40%`})},{bodyShape:`star`,eyeStyle:`dazed`,colorIdx:2,base:240,mobile:!0,pos:e=>({left:`16%`,bottom:-e*.42}),mobilePos:e=>({left:-e*.3,bottom:-e*.3})},{bodyShape:`burst`,eyeStyle:`angry`,colorIdx:0,base:240,mobile:!0,pos:e=>({right:`16%`,bottom:-e*.42}),mobilePos:e=>({right:-e*.3,bottom:-e*.3})},{bodyShape:`blob`,eyeStyle:`gentle`,colorIdx:1,base:220,pos:e=>({left:`42%`,bottom:-e*.5})},{bodyShape:`urchin`,eyeStyle:`curious`,colorIdx:2,base:220,mobile:!0,pos:e=>({left:-e*.28,bottom:`16%`}),mobilePos:e=>({left:-e*.3,top:-e*.3})},{bodyShape:`burst`,eyeStyle:`quirky`,colorIdx:0,base:220,mobile:!0,pos:e=>({right:-e*.28,bottom:`16%`}),mobilePos:e=>({right:-e*.3,top:-e*.3})},{bodyShape:`flower`,eyeStyle:`quirky`,colorIdx:1,base:230,pos:e=>({left:`30%`,bottom:-e*.4})}],Fr=`#17191C`,Ir=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],Lr=290;function Rr({peekLevel:e=0,eyesBumpNonce:t=0,darkBg:n=!1,showBottomEyes:r=!0,showTopTeam:i=!1,eyesEntrance:a=!1}){let o=W(),s=X.use.characters(),c=X.use.selectedIndex(),l=B(),{w:u}=Ft(),d=Math.max(.42,Math.min(u/1100,1)),f=u<640,p=s.length>0?s[c]:void 0,{bg:m,peekColors:h}=(0,q.useMemo)(()=>!o||!p?{bg:`var(--surface-base)`,peekColors:[]}:{bg:o.colors.find(e=>e.id===p.color)?.hex??`var(--surface-base)`,peekColors:Ln(p.color,o.colors.map(e=>e.id),3)},[o,p]);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(R.div,{className:`absolute inset-0 z-0`,initial:!1,animate:{backgroundColor:n?Fr:m},transition:l?{duration:0}:{duration:1,ease:`easeInOut`}}),r&&(0,Y.jsx)(wn,{bumpNonce:t,settleBlink:a,entrance:a}),i&&o&&(0,Y.jsx)(`div`,{className:`pointer-events-none absolute right-0 z-[1] flex items-start`,style:{top:-Math.round(Lr*d)*.42,right:-Math.round(Lr*d)*.12},children:Ir.map((e,t)=>{let n=Math.round(Lr*d);return(0,Y.jsx)(R.div,{style:{width:n,height:n,marginLeft:t===0?0:-n*.34,zIndex:Ir.length-t},initial:l?!1:{y:-140,opacity:0},animate:{y:0,opacity:1},transition:l?{duration:0}:{type:`spring`,stiffness:200,damping:18,delay:t*.1},children:(0,Y.jsx)(U,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[t]??`teal`},size:n,breathe:!1})},e.bodyShape)})}),o&&(0,Y.jsx)(z,{children:(f?Pr.filter(e=>e.mobile):Pr).slice(0,Math.max(0,e)).map((e,t)=>{let n=Math.round(e.base*d),r=f&&e.mobilePos?e.mobilePos(n):e.pos(n);return(0,Y.jsx)(R.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{...r,width:n,height:n},initial:l?!1:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:l?void 0:{scale:0,opacity:0},transition:l?{duration:0}:{type:`spring`,stiffness:220,damping:16,delay:.1},children:(0,Y.jsx)(U,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[e.colorIdx]??`teal`},size:n,breathe:!1})},`peek-${t}`)})})]})}var zr={established:!1,assistantName:null};async function Br(e,n={hasAnyActiveConversation:ge,fetchAssistantIdentity:he}){try{if(!await n.hasAnyActiveConversation(e))return zr}catch(e){return t(e,{context:`research_onboarding_established_check`}),zr}let r=await n.fetchAssistantIdentity(e).catch(()=>null);return{established:!0,assistantName:(typeof r?.name==`string`?r.name.trim():``)||null}}function Vr({assistantName:e,onKeep:t,onRedo:n,onBack:i}){let a=e?.trim()||``,o=a||`your assistant`,s=a?`${a}'s`:`its`;return(0,Y.jsxs)(`div`,{"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`,color:`var(--content-primary)`},children:[(0,Y.jsx)(Q,{onBack:i,tone:`light`}),(0,Y.jsxs)(`div`,{className:`${ze} max-w-xl`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,Y.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:a?`${a} is already up and running`:`Your assistant is already up and running`}),(0,Y.jsxs)(`p`,{className:`text-[15px]`,style:{color:`var(--content-secondary)`},children:[`You two have history — a personality, memories, and past conversations. Running setup again would overwrite who `,o,` is now.`]})]}),(0,Y.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col items-center gap-3`,children:[(0,Y.jsxs)(r,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:t,className:`h-11 text-base`,children:[`Keep `,o,` and start chatting`,(0,Y.jsx)(u,{className:`h-4 w-4`})]}),(0,Y.jsxs)(r,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:n,className:`h-11 text-base`,children:[`Start over and rebuild `,s,` personality`]})]})]})]})}var Hr=4e3;function Ur(e){return{firstName:e.firstName,lastName:e.lastName,occupation:e.role,hobbies:e.hobbies,timezone:me()}}function Wr(e){let t=e.firstName.trim();return t?`Getting to know ${t}`:`Getting to know you`}Ne();function Gr(){let e=a(),t=oe.use.user(),n=t?.id??null,r=Oe.use.enterFocus(),o=Oe.use.exitFocus(),s=Oe.use.setPendingAvatarTraits(),c=Oe.use.requestSidebarCollapse(),[l,u]=(0,q.useState)(`form`),{ref:d,size:f}=Le(),[p,m]=(0,q.useState)([]),[h,g]=(0,q.useState)(!1);function _(e){u(e)}function v(e,t=`completed`){ke(Ae[l],{userId:n,outcome:t}),m([]),_(e)}function y(e){m(e=>[...e,l]),_(e)}function b(){let e=p[p.length-1];e&&(m(e=>e.slice(0,-1)),_(e))}let x=p.length>0?b:void 0,[S,C]=(0,q.useState)(null),E=(0,q.useRef)(null),[D,O]=(0,q.useState)(null),[ee,k]=(0,q.useState)(null),A=(0,q.useRef)(!1),[j,M]=(0,q.useState)(!1),[N,te]=(0,q.useState)(null),[re,ie]=(0,q.useState)({}),[ae,se]=(0,q.useState)(!1),[P,ce]=(0,q.useState)(null),[le,de]=(0,q.useState)(null),[me,F]=(0,q.useState)(!1),[he,I]=(0,q.useState)(!1),[ge,_e]=(0,q.useState)(!1),[Ce,we]=(0,q.useState)(0),[Te,Ee]=(0,q.useState)(0),[L]=i(),De=Ke({hostingParam:L.get(`hosting`),localMode:T(),gatewayAuthSession:w()}),R=L.get(`assistant`)??void 0,z=De,{start:B,ready:je,assistantId:V,error:Me,awaitReady:H}=Ze({adoptExisting:De,adoptAssistantId:R}),U=Ct(),{start:W,hydrate:Ne}=U,Pe=(0,q.useRef)(Promise.resolve()),Fe=(0,q.useRef)(!1),[Ie,Re]=(0,q.useState)(!1),G=(0,q.useCallback)(e=>{Fe.current=e,Re(e)},[]),[K,ze]=(0,q.useState)(null),Be=(0,q.useRef)(Promise.resolve()),[Ve,Ue]=(0,q.useState)(!1),We=U.status===`idle`||U.status===`running`,J=!We&&U.claims.length===0;(0,q.useEffect)(()=>{o(),s(null),B()},[o,s,B]),(0,q.useEffect)(()=>{if(E.current)return;let e=H().then(e=>Br(e)).catch(()=>zr);E.current=e,e.then(O)},[H]);let qe=(0,q.useCallback)(()=>Promise.race([E.current??Promise.resolve(null),new Promise(e=>{setTimeout(()=>e(null),Hr)})]),[]);(0,q.useLayoutEffect)(()=>{if(h||!n)return;let e=ye(n);if(e?.formValues){C(e.formValues),te(e.faceValues),de(e.checkinTime),I(e.checkinBooked),ze(e.keptClaims??null),ce(e.researchConversationId??null),e.research&&(Ne({...e.research,pluginCatalog:e.research.pluginCatalog??{},droppedClaims:e.research.droppedClaims??[]},H),G(e.droppedClaimsScrubbed??!1),M(!0));let t=be(e);u(z&&(t===`letschat`||t===`meeting`)?`looking`:t),m([])}g(!0)},[h,n,Ne,H,z,G]),(0,q.useEffect)(()=>{!h||!S||ve(n,{step:l,formValues:S,faceValues:N,checkinTime:le,checkinBooked:he,research:U.status===`done`?{status:`done`,claims:U.claims,droppedClaims:U.droppedClaims,suggestions:U.suggestions,installedPlugins:U.installedPlugins,pluginCatalog:U.pluginCatalog}:null,...P?{researchConversationId:P}:{},...K?{keptClaims:K}:{},...Ie?{droppedClaimsScrubbed:!0}:{}})},[h,n,l,K,S,N,le,he,P,U.status,U.claims,U.droppedClaims,U.suggestions,U.installedPlugins,U.pluginCatalog,Ie]),(0,q.useEffect)(()=>{if(!h||!S||U.status!==`idle`&&U.status!==`done`)return;let e=U.status===`idle`,t=S,n=!1;return(async()=>{if(!A.current){let e=await qe();if(n)return;if(e?.established){k(t),m([]),C(null),u(`existing`),M(!1);return}}M(!1),e&&W({awaitAssistantId:H,subject:Ur(t),conversationTitle:Wr(t),...P?{resumeConversationId:P}:{},onConversationCreated:ce,includeSuggestions:!1})})(),()=>{n=!0,M(!1)}},[h,S,P,U.status,W,H,!0,qe]),(0,q.useEffect)(()=>{l===`results`&&J&&(m([]),u(`suggestions`))},[l,J]),(0,q.useEffect)(()=>{Fe.current||We||U.droppedClaims.length!==0&&(!P||!V||U.claims.length>0&&l!==`suggestions`||(G(!0),Pe.current=Tt({assistantId:V,conversationId:P,removedClaims:U.droppedClaims,rejectedAll:!1})))},[We,U.claims.length,U.droppedClaims,P,V,l,G]);function Je(t,i,a,{skip:o=!1,hidden:l=!1}={}){xe(n);let{firstName:u,lastName:d,role:f,hobbies:p}=t,m=[u.trim(),d.trim()].filter(Boolean).join(` `),h=u.trim(),g=!o&&a===void 0;pe({tools:[],tasks:[],tone:He,...m?{userName:m}:{},...f.trim()?{occupation:f.trim()}:{},...o?{}:{initialMessage:a??Ge({firstName:u,lastName:d,occupation:f,hobbies:p}),...l?{initialMessageHidden:!0}:{}},...g?{title:h?`Getting to know ${h}`:`Getting to know you`}:{},...i?.name?.trim()?{assistantName:i.name.trim()}:{},...K?.length?{researchFindings:K}:{}});let _=i?.name?.trim();_&&fe(_),s(i?.traits??null),g&&r(),o||ne.markExpectingFirstMessage(),c(),ne.checkAssistant(V??void 0).finally(()=>{e(`${ue.assistant}?onboarding=1`,{replace:!0})})}async function Ye(){S&&(await Promise.all([U.awaitPluginInstalls(),Pe.current,Be.current]),Je(S,N,jt(N?.name),{hidden:!0}))}function Xe(e){G(!1),U.start({awaitAssistantId:H,subject:Ur(e),conversationTitle:Wr(e),onConversationCreated:ce,includeSuggestions:!1})}async function Qe(e){if(!A.current&&(await qe())?.established){k(e),v(`existing`);return}C(e),Xe(e),v(`face`)}function $e(e){if(e.length>0&&!e.includes(`https://www.googleapis.com/auth/calendar.events`)){_e(!0);return}if(_e(!1),V&&S){let e=[S.firstName.trim(),S.lastName.trim()].filter(Boolean).join(` `);de(null),I(!1),F(!0),Se({assistantId:V,userName:e||void 0,assistantName:N?.name?.trim()||void 0}).then(e=>{e.scheduled&&(I(!0),de(Mt(e.start,e.timeZone)))}).finally(()=>F(!1))}v(`meeting`)}if([`different`,`personality`,`integration`,`letschat`,`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(l)&&S){let e=[`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(l);return(0,Y.jsx)(`div`,{ref:d,"data-theme":`dark`,className:`relative h-full overflow-hidden`,children:(0,Y.jsxs)(Pt,{size:f,children:[(0,Y.jsx)(Rr,{eyesBumpNonce:Ce,peekLevel:[`looking`,`results`,`suggestions`,`finishing`].includes(l)?Te:0,darkBg:e,showBottomEyes:!e&&l!==`different`,eyesEntrance:l===`personality`}),l===`different`&&(0,Y.jsx)(Kn,{onContinue:()=>v(`personality`),onBack:()=>y(`intro`),onForward:x}),l===`personality`&&(0,Y.jsx)(dr,{values:re,onValueChange:(e,t)=>ie(n=>({...n,[e]:t})),locked:ae,onContinue:()=>{ae||(Ue(!0),Be.current=kt({awaitAssistantId:H,values:re,userName:S?.firstName?.trim()||void 0,assistantName:N?.name?.trim()||void 0}).finally(()=>Ue(!1)),se(!0)),v(`integration`)},onBack:()=>y(`different`),onForward:x}),l===`integration`&&(0,Y.jsx)(Zn,{onClaim:()=>v(z?`looking`:`letschat`),onBumpEyes:()=>we(e=>e+1),onBack:()=>y(`personality`),onForward:x}),l===`letschat`&&(0,Y.jsx)(fr,{assistantId:V,assistantReady:je,hatchError:Me,onConnected:$e,missingCalendarScope:ge,onRetry:()=>_e(!1),onSkip:()=>{_e(!1),v(`looking`,`skipped`)},onBack:()=>y(`integration`),onForward:x}),l===`meeting`&&(0,Y.jsx)(xr,{scheduledTime:le??void 0,awaitingTime:me,onDone:()=>v(`looking`),onBack:()=>y(`letschat`),onForward:x}),l===`looking`&&(0,Y.jsx)(Or,{onDone:()=>v(J?`suggestions`:`results`),onBack:()=>y(z?`integration`:`letschat`),onAdvance:e=>Ee(Math.min(e+1,4)),onForward:x,ready:!We}),l===`results`&&(0,Y.jsx)(Ar,{claims:U.claims,loading:We,onContinue:e=>{let t=new Set(e);ze(U.claims.filter(e=>!t.has(e.claim)).map(e=>e.claim));let n=Fe.current?[]:U.droppedClaims,r=[...e,...n];P&&V&&r.length>0&&(n.length>0&&G(!0),Pe.current=Tt({assistantId:V,conversationId:P,removedClaims:r,rejectedAll:!1})),v(`suggestions`)},onRejectAll:()=>{ze([]),P&&V&&(G(!0),Pe.current=Tt({assistantId:V,conversationId:P,removedClaims:U.claims.map(e=>e.claim),rejectedAll:!0})),v(`suggestions`,`skipped`)},onBack:()=>y(`looking`),onForward:x}),l===`suggestions`&&(0,Y.jsx)(Nr,{installedPlugins:U.installedPlugins,pluginCatalog:U.pluginCatalog,disabled:j,onStart:async()=>{if(ke(Ae.suggestions,{userId:n,outcome:`completed`}),Ve){m([]),u(`finishing`);return}await Ye()},onBack:()=>y(J?`looking`:`results`),onForward:x}),l===`suggestions`&&!1,l===`finishing`&&(0,Y.jsx)(kr,{ready:!Ve,onDone:()=>void Ye()})]})})}return l===`existing`?(0,Y.jsx)(Vr,{assistantName:D?.assistantName??null,onKeep:()=>{ke(Ae.existing,{userId:n,outcome:`completed`}),xe(n),ne.checkAssistant(V??void 0).finally(()=>{e(ue.assistant,{replace:!0})})},onRedo:()=>{let e=ee;e&&(A.current=!0,ke(Ae.existing,{userId:n,outcome:`skipped`}),C(e),Xe(e),m([]),_(`face`))},onBack:()=>{k(null),y(`form`)}}):l===`intro`&&S?(0,Y.jsx)(Dn,{firstName:S.firstName,assistantName:N?.name,onContinue:()=>v(`different`),onBack:()=>y(`face`),onForward:x}):l===`face`&&S?(0,Y.jsx)(gn,{onContinue:e=>{te(e),v(`intro`)},onBack:()=>y(`form`),onForward:x}):(0,Y.jsx)(fn,{initialFirstName:t?.firstName??``,initialLastName:t?.lastName??``,onSubmit:Qe})}export{Gr as ResearchOnboardingRoute};
@@ -1,3 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-Dy5001j6.js";import{t as r}from"./jsx-runtime-D3ZM-ToX.js";import{t as i}from"./ban-B__z3LwE.js";import{t as a}from"./globe-CMtjL_s_.js";import{t as o}from"./sparkles-Ccrj7hxd.js";import{t as s}from"./tag-NXcyiTkK.js";import{t as c}from"./popover-BRpYVASI.js";import{n as l,r as u,t as d}from"./research-facts-UIXXE8D6.js";var f=e(t(),1),p=r();function m({src:e,domain:t,className:n}){let[r,i]=(0,f.useState)(!1),o=n??`size-4`;return!e||r?(0,p.jsx)(`span`,{className:`flex ${o} items-center justify-center text-[var(--content-tertiary)]`,children:(0,p.jsx)(a,{className:`size-3.5`})}):(0,p.jsx)(`img`,{src:e,alt:``,title:t,width:16,height:16,className:`${o} shrink-0 rounded-sm object-contain`,onError:()=>i(!0)})}function h(e){let t=e.contentBlocks;if(t&&t.length>0){let e=t.filter(e=>e.type===`text`).map(e=>e.text).join(`
2
- `).trim();if(e)return e}return(e.textSegments??[]).join(`
3
- `).trim()}function g(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.role!==`user`)return n}return null}function _(e){let t=new Map;for(let n of e){let e=u(n);e&&!t.has(e)&&t.set(e,n)}return[...t].map(([e,t])=>({domain:e,url:t}))}var v=[`not_me`,`not_relevant`];function y({fact:e,removed:t,onRemove:n,onSetReason:r,onRestore:a,resolveFavicon:o}){let[u,h]=(0,f.useState)(!1),[g,y]=(0,f.useState)(!1),b=l(e.confidence),x=_(e.sources),S=x.length>0&&!t;return(0,p.jsxs)(`li`,{className:`group flex flex-col rounded-lg border border-[var(--border-base)] bg-[var(--surface-lift)] transition-opacity ${t?`opacity-50`:``}`,style:{animation:`fadeInUp 0.35s ease-out both`},children:[(0,p.jsxs)(`div`,{className:`flex items-center gap-2.5 px-4 py-2.5 ${S?`cursor-pointer`:``}`,onClick:S?()=>h(e=>!e):void 0,children:[(0,p.jsx)(`span`,{className:`text-[15px] leading-snug text-[var(--content-default)] ${t?`line-through`:``}`,children:e.claim}),(0,p.jsx)(s,{tone:b.tone,children:b.label}),(0,p.jsxs)(c.Root,{open:g,onOpenChange:e=>{y(e),e&&!t&&n()},children:[(0,p.jsx)(c.Trigger,{asChild:!0,children:(0,p.jsx)(`button`,{type:`button`,"aria-label":t?`Edit removal`:`Remove`,onClick:e=>e.stopPropagation(),className:`ml-auto shrink-0 cursor-pointer text-[var(--content-tertiary)] transition-opacity hover:text-[var(--content-default)] focus-visible:opacity-100 ${t?`opacity-100`:`opacity-0 group-hover:opacity-100`}`,children:(0,p.jsx)(i,{className:`size-[18px]`})})}),(0,p.jsxs)(c.Content,{align:`end`,className:`flex w-52 flex-col gap-0.5`,children:[(0,p.jsx)(`p`,{className:`px-2 pb-1 pt-1 text-label-small-default text-[var(--content-tertiary)]`,children:`Why remove this?`}),v.map(e=>(0,p.jsx)(`button`,{type:`button`,onClick:()=>{r(e),y(!1)},className:`rounded-md px-2 py-1.5 text-left text-sm text-[var(--content-default)] transition-colors hover:bg-[var(--surface-base)]`,children:d[e]},e)),(0,p.jsx)(`button`,{type:`button`,onClick:()=>{a(),y(!1)},className:`mt-0.5 rounded-md border-t border-[var(--border-base)] px-2 pt-2 pb-1 text-left text-sm text-[var(--content-secondary)] transition-colors hover:text-[var(--content-default)]`,children:`Keep it`})]})]})]}),u&&S?(0,p.jsxs)(`div`,{className:`flex flex-col gap-1.5 border-t border-[var(--border-base)] px-4 py-2.5`,children:[(0,p.jsx)(`span`,{className:`text-label-small-default uppercase tracking-wide text-[var(--content-tertiary)]`,children:`Sources`}),x.map(({domain:e,url:t})=>(0,p.jsxs)(`a`,{href:t,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-2 text-sm text-[var(--content-secondary)] transition-colors hover:text-[var(--content-default)]`,children:[(0,p.jsx)(m,{src:o(e),domain:e}),e]},e))]}):null]})}function b({items:e,removals:t,onRemove:n,onSetReason:r,onRestore:i,title:a,resolveFavicon:o}){return(0,p.jsxs)(`div`,{className:`flex w-full flex-col gap-3`,children:[(0,p.jsx)(`h2`,{className:`text-lg font-medium text-[var(--content-secondary)]`,children:a}),(0,p.jsx)(`ul`,{className:`flex flex-col gap-2`,children:e.map(({fact:e,index:a})=>(0,p.jsx)(y,{fact:e,removed:t.has(a),onRemove:()=>n(a),onSetReason:e=>r(a,e),onRestore:()=>i(a),resolveFavicon:o},`${a}-${e.claim}`))})]})}function x({suggestions:e,onSelect:t}){return e.length===0?null:(0,p.jsxs)(`div`,{className:`flex w-full flex-col gap-3`,children:[(0,p.jsx)(`h2`,{className:`text-lg font-medium text-[var(--content-secondary)]`,children:`Here's how I could help to start:`}),(0,p.jsx)(`div`,{className:`grid grid-cols-1 gap-2 sm:grid-cols-2`,children:e.slice(0,4).map((e,n)=>(0,p.jsxs)(`button`,{type:`button`,onClick:()=>t(e.prompt),className:`flex cursor-pointer items-center gap-2.5 rounded-lg border border-[var(--border-base)] bg-[var(--surface-lift)] px-4 py-3 text-left transition-colors hover:border-[var(--border-element)] hover:bg-[var(--surface-base)]`,style:{animation:`fadeInUp 0.35s ease-out both`},children:[(0,p.jsx)(o,{className:`size-4 shrink-0 text-[var(--content-tertiary)]`}),(0,p.jsx)(`span`,{className:`text-[15px] leading-snug text-[var(--content-default)]`,children:e.suggestion})]},`${n}-${e.suggestion}`))})]})}function S({mode:e,loadingContent:t,items:r,removals:i,suggestions:a,resultsTitle:o,showSuggestions:s,canContinue:c,resolveFavicon:l,onRemove:u,onSetReason:d,onRestore:f,onSuggestionClick:m,onContinue:h}){return(0,p.jsx)(`div`,{className:`flex h-full w-full flex-col overflow-y-auto bg-[var(--surface-base)]`,children:(0,p.jsxs)(`div`,{className:`mx-auto flex min-h-full w-full max-w-2xl flex-col gap-8 px-6 py-12`,children:[(0,p.jsx)(`div`,{className:`flex flex-1 flex-col justify-start gap-8 pt-4`,children:e===`results`?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(b,{items:r,removals:i,onRemove:u,onSetReason:d,onRestore:f,resolveFavicon:l,title:o}),s?(0,p.jsx)(x,{suggestions:a,onSelect:m}):null]}):e===`empty`?(0,p.jsxs)(`div`,{className:`flex flex-col items-center gap-3 text-center text-[var(--content-secondary)]`,children:[(0,p.jsx)(`p`,{className:`text-lg text-[var(--content-default)]`,children:`Let's just dive in.`}),(0,p.jsx)(`p`,{className:`text-body-medium-lighter`,children:`I couldn't pull together a clean profile this time — we can get to know each other as we go.`})]}):t}),(0,p.jsx)(`div`,{className:`flex shrink-0 justify-end`,children:(0,p.jsx)(n,{variant:`primary`,size:`regular`,onClick:h,disabled:!c,className:`h-11 px-6 text-base`,children:`Continue`})})]})})}export{m as i,h as n,g as r,S as t};