@vellumai/web 0.11.1 → 0.11.2-dev.202608042257.9e99b1d

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 (575) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{AnimatePresence-D23js3-M.js → AnimatePresence-Ctt0yeEv.js} +1 -1
  3. package/dist/assets/{BundleConfirmPage-C1-BZKI9.js → BundleConfirmPage-Cyi9KDtJ.js} +1 -1
  4. package/dist/assets/{Combination-C7TWRLS7.js → Combination-r1T8bzRv.js} +1 -1
  5. package/dist/assets/{a2a-invite-CfhpXDTT.js → a2a-invite-CuswvLmx.js} +1 -1
  6. package/dist/assets/{about-page-Dtg-I99x.js → about-page-CsyRgK3c.js} +1 -1
  7. package/dist/assets/access-CALlQkdQ.js +1 -0
  8. package/dist/assets/{account-page-DP2HVinz.js → account-page-BcNKy6yy.js} +1 -1
  9. package/dist/assets/{account-shell-BxZ339N3.js → account-shell-CrUI5eAF.js} +1 -1
  10. package/dist/assets/{acp-run-actions-BGbBYETY.js → acp-run-actions-DOkV86f5.js} +1 -1
  11. package/dist/assets/acp-run-detail-panel-DNqW9tRz.js +5 -0
  12. package/dist/assets/{acp-run-store-CmGaPJm1.js → acp-run-store-Beu3Bcgz.js} +1 -1
  13. package/dist/assets/activity-steps-panel-DbZv_mMv.js +1 -0
  14. package/dist/assets/{add-credential-modal-DQZ43BJU.js → add-credential-modal-BrZuud_A.js} +1 -1
  15. package/dist/assets/add-credits-modal-_IfS0GiF.js +1 -0
  16. package/dist/assets/ai-page-BoXMANOi.js +1 -0
  17. package/dist/assets/android-consumption-only-DVgl1UqJ.js +1 -0
  18. package/dist/assets/animate-DBLF0qC1.js +1 -0
  19. package/dist/assets/{animated-avatar-CDeJNhwm.js → animated-avatar-CB7bMVIp.js} +1 -1
  20. package/dist/assets/api-B1iMGOW3.js +1 -0
  21. package/dist/assets/api-DZ1FASA0.js +1 -0
  22. package/dist/assets/{api-key-screen-CoLZh8vw.js → api-key-screen-CAISP4Mb.js} +1 -1
  23. package/dist/assets/{app-card-DgDV-yMd.js → app-card-DDCx9Wma.js} +1 -1
  24. package/dist/assets/{app-info-Bdfw54u1.js → app-info-C3XHVqpA.js} +1 -1
  25. package/dist/assets/archive-BQ3zdIPv.js +1 -0
  26. package/dist/assets/{archive-redirect-page-CWJIEUlH.js → archive-redirect-page-DH92Svcy.js} +1 -1
  27. package/dist/assets/{assistant-feature-flag-store-CMUNSAPL.js → assistant-feature-flag-store-B-Q1aqEl.js} +1 -1
  28. package/dist/assets/assistant-identity-store-CBR9g2br.js +1 -0
  29. package/dist/assets/{assistant-status-panel-Bt_19-BI.js → assistant-status-panel-BbZLfG29.js} +1 -1
  30. package/dist/assets/auth-store-B25WW_s-.js +2 -0
  31. package/dist/assets/{avatar-random-IysJ0Bdt.js → avatar-random-CE7YdLva.js} +1 -1
  32. package/dist/assets/{avatar-renderer-3EVhZ7TB.js → avatar-renderer-DhQrquOd.js} +1 -1
  33. package/dist/assets/background-task-actions-DL6aoBZa.js +1 -0
  34. package/dist/assets/{background-task-detail-panel-DqXuwo9q.js → background-task-detail-panel-CNyfseeY.js} +1 -1
  35. package/dist/assets/{background-task-store-CN04oS2z.js → background-task-store-BYeLr6QX.js} +1 -1
  36. package/dist/assets/billing-page-C4JCKGAd.js +3 -0
  37. package/dist/assets/{billing-redirect-page-CiHoDQHE.js → billing-redirect-page-BSLp0gfo.js} +1 -1
  38. package/dist/assets/{bookmarks-page-Bk04EUIg.js → bookmarks-page-aH0zA6Hv.js} +1 -1
  39. package/dist/assets/{browser-Bses4IN3.js → browser-CEEXryko.js} +2 -2
  40. package/dist/assets/build-state-u8VAGmge.js +1 -0
  41. package/dist/assets/{button-Dy5001j6.js → button-fyWSnR9X.js} +1 -1
  42. package/dist/assets/{capture-error-FWzaVb8P.js → capture-error-Bj8_eutd.js} +1 -1
  43. package/dist/assets/channels-page-route-Dbmcxccb.js +9 -0
  44. package/dist/assets/{chat-avatar-CIF_o6y5.js → chat-avatar-yNiGc9Qd.js} +1 -1
  45. package/dist/assets/{chat-layout-slots-store-C325hn1X.js → chat-layout-slots-store-DEpMyhna.js} +1 -1
  46. package/dist/assets/chat-markdown-message-Bh06nl0S.js +1 -0
  47. package/dist/assets/checkbox-B-CErUSe.js +1 -0
  48. package/dist/assets/checkout-continuation-Cl65aymU.js +1 -0
  49. package/dist/assets/checkout-page-Cx8SP_B-.js +1 -0
  50. package/dist/assets/checkout-return-target-hzWGTubb.js +1 -0
  51. package/dist/assets/{client-feature-flag-store-Bg5XEI2b.js → client-feature-flag-store-DXK8Z7NT.js} +1 -1
  52. package/dist/assets/{client-identity-bdtPpHZK.js → client-identity-BnKTNCur.js} +1 -1
  53. package/dist/assets/command-palette-CqeAUZ7i.js +1 -0
  54. package/dist/assets/command-palette-window-page-BAY8qY0v.js +1 -0
  55. package/dist/assets/{community-page-BZmxfsXK.js → community-page-BDyUaDv3.js} +1 -1
  56. package/dist/assets/composer-settings-CQ4knhC6.js +1 -0
  57. package/dist/assets/{confirm-dialog-DZX6LhLy.js → confirm-dialog-Ro8nszbc.js} +1 -1
  58. package/dist/assets/{connect-page-D_I1YM62.js → connect-page-DWU9JXUT.js} +1 -1
  59. package/dist/assets/consent-DtZXy-Ve.js +1 -0
  60. package/dist/assets/{consent-controls-CiKmEzBn.js → consent-controls-YQyFfuPh.js} +1 -1
  61. package/dist/assets/{contacts-gateway-C628mrY_.js → contacts-gateway-B1tIdiPt.js} +1 -1
  62. package/dist/assets/contacts-page-route-rLoEwEo9.js +1 -0
  63. package/dist/assets/{conversation-cache-BzPdBPXN.js → conversation-cache-CtPnlBgy.js} +1 -1
  64. package/dist/assets/{conversation-list-fetchers-BZnx9EMN.js → conversation-list-fetchers-NHbvfoK8.js} +1 -1
  65. package/dist/assets/conversation-navigation-Bii-iHY7.js +1 -0
  66. package/dist/assets/{conversation-queries-3taor2DZ.js → conversation-queries-CYiqbbmm.js} +1 -1
  67. package/dist/assets/{conversation-store-C0tvFESx.js → conversation-store-CjNpaqPu.js} +1 -1
  68. package/dist/assets/{copy-to-clipboard-DaTa8Tbi.js → copy-to-clipboard-DTcTjpel.js} +1 -1
  69. package/dist/assets/{credential-entry-page-BCAYmsDK.js → credential-entry-page-BmdIrT2Y.js} +1 -1
  70. package/dist/assets/credentials-page-CEWz7TXq.js +1 -0
  71. package/dist/assets/csv-preview-7rmnNd2Y.js +4 -0
  72. package/dist/assets/{danger-zone-redirect-page-BcdEHbAX.js → danger-zone-redirect-page-KZYKMY7g.js} +1 -1
  73. package/dist/assets/debug-page-BichO15v.js +4 -0
  74. package/dist/assets/{deploy-dialogs-CpUMrpHq.js → deploy-dialogs-CpUhx5Wn.js} +1 -1
  75. package/dist/assets/{deploy-store-BJ-njgv-.js → deploy-store-BNgH3BhM.js} +1 -1
  76. package/dist/assets/{detail-card-D-5EWmAS.js → detail-card-4afu5RY8.js} +1 -1
  77. package/dist/assets/{detail-drawer-BglFkWVa.js → detail-drawer-BFIRH__A.js} +1 -1
  78. package/dist/assets/detail-panel-stop-button-Cgd-fsGE.js +1 -0
  79. package/dist/assets/{detail-shell-D9L3L7AM.js → detail-shell-DnpawtUB.js} +1 -1
  80. package/dist/assets/developer-page-DAY7bTUK.js +1 -0
  81. package/dist/assets/{device-settings-DXp9L4iB.js → device-settings-CUIsZfaf.js} +1 -1
  82. package/dist/assets/{devices-redirect-page-BNpxDctf.js → devices-redirect-page-DUD9O4gf.js} +1 -1
  83. package/dist/assets/{diagnostics-CLHyv7Xw.js → diagnostics-_ZD3ioXN.js} +1 -1
  84. package/dist/assets/{dictation-overlay-w1YHEfFR.js → dictation-overlay-A8jW4gBJ.js} +1 -1
  85. package/dist/assets/{dictation-overlay-page-DUWJ13of.js → dictation-overlay-page-DZMkAXxV.js} +1 -1
  86. package/dist/assets/{dist-CQN0ZAOZ.js → dist-Ir4ISn-W.js} +1 -1
  87. package/dist/assets/{dist-CKLJHt4Z.js → dist-O0VP-1jJ.js} +1 -1
  88. package/dist/assets/doctor-handoff-store-9-Rxa3aW.js +1 -0
  89. package/dist/assets/document-viewer-container-DWSbD2Vy.js +2 -0
  90. package/dist/assets/document-viewer-page-BvYWGgCO.js +1 -0
  91. package/dist/assets/{domains-OaR_FpOR.js → domains-Co-JSZix.js} +1 -1
  92. package/dist/assets/{dropdown-DswWMJhz.js → dropdown-Dj83uU1o.js} +1 -1
  93. package/dist/assets/{edge-swipe-arbiter-store-D9XJTxJJ.js → edge-swipe-arbiter-store-CfH9mu8t.js} +1 -1
  94. package/dist/assets/effective-timezone-D2ed4HNy.js +1 -0
  95. package/dist/assets/{emails-page-Bqr8Buvt.js → emails-page-ClmMCS7z.js} +1 -1
  96. package/dist/assets/{environment-store-Bbx4f6SQ.js → environment-store-CaT6bPjE.js} +1 -1
  97. package/dist/assets/esm-BbrSOd_w.js +1 -0
  98. package/dist/assets/esm-C0etwxTR.js +2 -0
  99. package/dist/assets/esm-CyzcmycU.js +2 -0
  100. package/dist/assets/esm-D-JKXCx6.js +2 -0
  101. package/dist/assets/esm-DE276B3X.js +2 -0
  102. package/dist/assets/esm-DVBKSDsY.js +2 -0
  103. package/dist/assets/{esm-UUuqyyp5.js → esm-DiKqJtNt.js} +1 -1
  104. package/dist/assets/esm-YgGZjYiF.js +2 -0
  105. package/dist/assets/{esm-ClO8yhvi.js → esm-yDpngOhF.js} +2 -2
  106. package/dist/assets/feature-flag-catalog-K0ruEmRc.js +1 -0
  107. package/dist/assets/file-DOePafLU.js +1 -0
  108. package/dist/assets/file-editor-C17bp9Ul.js +1 -0
  109. package/dist/assets/file-markdown-DQoYQOq5.js +2 -0
  110. package/dist/assets/first-run-scope-nuPNIuHU.js +1 -0
  111. package/dist/assets/{funnel-events-RT_kdQHK.js → funnel-events-ffWj10fc.js} +1 -1
  112. package/dist/assets/general-page-D4PT_7O7.js +1 -0
  113. package/dist/assets/{get-memory-stats-CthVfpul.js → get-memory-stats-C6qisNce.js} +1 -1
  114. package/dist/assets/{haptics-rJpeBta-.js → haptics-DbwTJGZZ.js} +2 -2
  115. package/dist/assets/hatching-screen-D1MaglPX.js +1 -0
  116. package/dist/assets/home-page-route-383zet0E.js +1 -0
  117. package/dist/assets/hosting-screen-CrvE3zqm.js +1 -0
  118. package/dist/assets/identity-DGwGuDNu.js +1 -0
  119. package/dist/assets/identity-page-route-CdIHv2Mi.js +7 -0
  120. package/dist/assets/index-BXn8XwZ4.css +2 -0
  121. package/dist/assets/index-q6MvmCUx.js +11 -0
  122. package/dist/assets/{ingest-BbV11WbG.js → ingest-CqJEC1Mw.js} +1 -1
  123. package/dist/assets/{input-C-GkeWCw.js → input-B_e9sgY6.js} +1 -1
  124. package/dist/assets/{inspect-page-D_9E5ham.js → inspect-page-DHy35Eab.js} +4 -4
  125. package/dist/assets/{installed-plugins-query-6u0jUM-L.js → installed-plugins-query-B-E60ZeG.js} +1 -1
  126. package/dist/assets/{integration-icon-tiuVoy54.js → integration-icon-Ck3AD_AZ.js} +1 -1
  127. package/dist/assets/integrations-page-B3zqPGb4.js +1 -0
  128. package/dist/assets/{intelligence-layout-CVzq_bDm.js → intelligence-layout-WIGKQ4DS.js} +1 -1
  129. package/dist/assets/{invalidate-memory-queries-BPL6t0Cu.js → invalidate-memory-queries-CUCHL1MU.js} +1 -1
  130. package/dist/assets/{invalidate-plugin-queries-QmmXCyiN.js → invalidate-plugin-queries-DaqjVAFQ.js} +1 -1
  131. package/dist/assets/{keyboard-shortcuts-redirect-page-D_Rf5W7f.js → keyboard-shortcuts-redirect-page-CMfF0rtZ.js} +1 -1
  132. package/dist/assets/latest-assistant-text-9VgVTJyv.js +24 -0
  133. package/dist/assets/{library-detail-page-CKWN2cc7.js → library-detail-page-D_a2yXqn.js} +1 -1
  134. package/dist/assets/library-page-GeGlbw8j.js +1 -0
  135. package/dist/assets/{paperclip-DVE0scjU.js → lightbulb-NdZMkb6Y.js} +1 -1
  136. package/dist/assets/local-mode-BR8wpdXp.js +39 -0
  137. package/dist/assets/local-runtime-upgrade-D_v6h4Xu.js +1 -0
  138. package/dist/assets/local-settings-Bx7FsNo5.js +1 -0
  139. package/dist/assets/{login-flow-llpmkEjN.js → login-flow-z2OvWbLL.js} +1 -1
  140. package/dist/assets/{login-page-SG4TPVDu.js → login-page-CqcxRXWT.js} +1 -1
  141. package/dist/assets/{logout-page-CBGk_cSN.js → logout-page-DNJ1gQrb.js} +1 -1
  142. package/dist/assets/{logs-layout-B4EPBuaC.js → logs-layout-BOcOwEdj.js} +1 -1
  143. package/dist/assets/media-preview-iDbnoYfk.js +1 -0
  144. package/dist/assets/memory-page-route-Dmg-Jb8J.js +6 -0
  145. package/dist/assets/{memory-router-playground-page-ftfbkFhf.js → memory-router-playground-page-FdS-isoC.js} +1 -1
  146. package/dist/assets/{menu-CKZtG-s_.js → menu-D7gzADvH.js} +1 -1
  147. package/dist/assets/message-content-B6_GZQl9.js +1 -0
  148. package/dist/assets/message-files-panel-BI_sh0yg.js +1 -0
  149. package/dist/assets/messages-QHyhSHal.js +13 -0
  150. package/dist/assets/{metric-card-B-Tt9p-1.js → metric-card-BBatJnYJ.js} +1 -1
  151. package/dist/assets/mobile-sidebar-drawer-BuhyMfvL.js +1 -0
  152. package/dist/assets/modal-D946-vqt.js +1 -0
  153. package/dist/assets/native-anchor--t8vduPI.js +1 -0
  154. package/dist/assets/native-biometric-DSA3t7PV.js +6 -0
  155. package/dist/assets/native-file-DRRlH1rv.js +2 -0
  156. package/dist/assets/{navigation-resolver-Lxhf-tbn.js → navigation-resolver-C8Qyk5eO.js} +1 -1
  157. package/dist/assets/{not-found-p1VhZpMs.js → not-found-BJyEE9E7.js} +1 -1
  158. package/dist/assets/notice-Dslxs3H6.js +1 -0
  159. package/dist/assets/notifications-DDEIKcs_.js +1 -0
  160. package/dist/assets/notifications-page-BOPfZXUU.js +1 -0
  161. package/dist/assets/{oauth-complete-page-KSpFlPD6.js → oauth-complete-page-Bm0a6IN8.js} +1 -1
  162. package/dist/assets/{oauth-connection-utils-D9CTptlA.js → oauth-connection-utils-BMitT9wL.js} +1 -1
  163. package/dist/assets/{oauth-popup-complete-page-C5cG_z3A.js → oauth-popup-complete-page-BNsjClnY.js} +1 -1
  164. package/dist/assets/{onboarding-layout-K7X9fV8B.js → onboarding-layout--37tB9YP.js} +1 -1
  165. package/dist/assets/onboarding-store-DnWbQiNA.js +1 -0
  166. package/dist/assets/open-workspace-file-DvWYznJJ.js +2 -0
  167. package/dist/assets/{page-empty-state-B0da-Sm9.js → page-empty-state-ClhYSor9.js} +1 -1
  168. package/dist/assets/{page-shell-CN7ioeP_.js → page-shell-VITTYgLM.js} +1 -1
  169. package/dist/assets/pairing-page-BgztYa3j.js +1 -0
  170. package/dist/assets/paperclip--f908Kg3.js +1 -0
  171. package/dist/assets/{password-reset-page-Bq3ehgjW.js → password-reset-page-BqC9qvJS.js} +1 -1
  172. package/dist/assets/pdf-file-preview-iKAI2_qQ.js +1 -0
  173. package/dist/assets/pdf-preview-DXBz91H7.js +2 -0
  174. package/dist/assets/{personality-page-DeZSBQ6W.js → personality-page-CjsFJ9ih.js} +1 -1
  175. package/dist/assets/plans-page-C5CSLugU.js +1 -0
  176. package/dist/assets/platform-detection-HB9owK_1.js +1 -0
  177. package/dist/assets/{platform-login-notice-D-yQLWUo.js → platform-login-notice-CmwQRa7C.js} +1 -1
  178. package/dist/assets/{platform-loopback-page-DESnWJYO.js → platform-loopback-page-DQEn8j3h.js} +1 -1
  179. package/dist/assets/{plugin-detail-page-DF9vmm23.js → plugin-detail-page-Cv-FGOia.js} +1 -1
  180. package/dist/assets/{plugins-page-BDZiCqWZ.js → plugins-page-DLqHWJtw.js} +1 -1
  181. package/dist/assets/plugins-surface-Cokf1YuT.js +1 -0
  182. package/dist/assets/popover-2EzQYOOf.js +1 -0
  183. package/dist/assets/{prefs-B6fvTCOn.js → prefs-DNKmoZMg.js} +1 -1
  184. package/dist/assets/preview-error-BDY8vKyA.js +1 -0
  185. package/dist/assets/preview-skeleton-DHkMnUP7.js +1 -0
  186. package/dist/assets/privacy-page-CZHz3sfI.js +1 -0
  187. package/dist/assets/{privacy-screen-D2EBZTX8.js → privacy-screen-CVe9xZ7Y.js} +1 -1
  188. package/dist/assets/{provider-callback-page-BZlfsT4J.js → provider-callback-page-CWtWEOI4.js} +1 -1
  189. package/dist/assets/provider-key-CH3fSqvf.js +1 -0
  190. package/dist/assets/{provider-signup-page-D5mOXHww.js → provider-signup-page-Cp1KJc28.js} +1 -1
  191. package/dist/assets/{provisioning-targets-CT4slXZJ.js → provisioning-targets-BK0r8PFS.js} +1 -1
  192. package/dist/assets/push-registration-Bh-OxNyL.js +2 -0
  193. package/dist/assets/{quick-input-page-COgnUnT_.js → quick-input-page-BaI_khk9.js} +1 -1
  194. package/dist/assets/radio-card-nav-CvOV_GmV.js +1 -0
  195. package/dist/assets/react-query.gen-CVlTRWus.js +1 -0
  196. package/dist/assets/react-query.gen-Y3EA71xS.js +1 -0
  197. package/dist/assets/remote-gateway-session-BKw7UXep.js +1 -0
  198. package/dist/assets/{research-facts-BcW4fghT.js → research-facts-BLXh3yRG.js} +1 -1
  199. package/dist/assets/{research-mock-page-BFm8-rLU.js → research-mock-page-C6Tv3kJd.js} +1 -1
  200. package/dist/assets/{research-onboarding-persistence-BN6g1lF7.js → research-onboarding-persistence-DRkA_L0x.js} +1 -1
  201. package/dist/assets/research-onboarding-route-zQ68BP4a.js +50 -0
  202. package/dist/assets/{research-results-view-BBf2iyCA.js → research-results-view-1qrQ00-t.js} +1 -1
  203. package/dist/assets/resolved-assistants-store-BymuLyDm.js +1 -0
  204. package/dist/assets/retire-confirm-dialog-BToJXH4B.js +1 -0
  205. package/dist/assets/{review-terms-screen-zzdu4AQi.js → review-terms-screen-D4xcQQQo.js} +1 -1
  206. package/dist/assets/{routes-GmNvdtLW.js → routes-CAe1h0Db.js} +1 -1
  207. package/dist/assets/routes-D8IfSOM9.js +23 -0
  208. package/dist/assets/runtime-upgrade-banner-Gepe2_7J.js +2 -0
  209. package/dist/assets/{sandbox-bridge-CjHMJYTZ.js → sandbox-bridge-TDSWydru.js} +84 -2
  210. package/dist/assets/{schedules-B6KivAAT.js → schedules-DgU4kSjP.js} +1 -1
  211. package/dist/assets/schedules-page-C2l9rrbr.js +1 -0
  212. package/dist/assets/{sdk.gen-BySz4QYj.js → sdk.gen-D7tvT1tz.js} +1 -1
  213. package/dist/assets/sdk.gen-DKp2Mbw9.js +1 -0
  214. package/dist/assets/{security-redirect-page-T1J6IoOb.js → security-redirect-page-D_7wOCtX.js} +1 -1
  215. package/dist/assets/select-assistant-screen-BEYZmCRD.js +1 -0
  216. package/dist/assets/semver-BpijV4FQ.js +1 -0
  217. package/dist/assets/{setting-row-DEyL7IUP.js → setting-row-tSQMbI46.js} +1 -1
  218. package/dist/assets/{settings-divider-Bf5WJ9ve.js → settings-divider-CeQNHK0m.js} +1 -1
  219. package/dist/assets/settings-layout-CjrRSokC.js +1 -0
  220. package/dist/assets/settings-navigation-86oWkt4s.js +1 -0
  221. package/dist/assets/share-feedback-modal-CD8cMWA4.js +2 -0
  222. package/dist/assets/{sidebar-tree-D6fHs4GK.js → sidebar-tree-Dn2oGPtd.js} +1 -1
  223. package/dist/assets/{signup-page-DqfStkXZ.js → signup-page-kwwBWJll.js} +1 -1
  224. package/dist/assets/{signup-shell-CMXUBUal.js → signup-shell-ERxEk0WZ.js} +1 -1
  225. package/dist/assets/site-favicon-CqThQ_7z.js +1 -0
  226. package/dist/assets/{skill-detail-page-SvM2JKKY.js → skill-detail-page-Bo1GxoDm.js} +1 -1
  227. package/dist/assets/{skill-detail-panel-Cpl1Z7V3.js → skill-detail-panel-bl_JPThN.js} +1 -1
  228. package/dist/assets/{skills-BL4RgwAd.js → skills-DKKY5OMN.js} +1 -1
  229. package/dist/assets/{skills-page-BYtAFZzb.js → skills-page-Bm3zL5Bu.js} +1 -1
  230. package/dist/assets/{slack-setup-wizard-dVkbEE6P.js → slack-setup-wizard-CnVC4l5B.js} +1 -1
  231. package/dist/assets/{sound-manager-DUo0lHGZ.js → sound-manager-C_1KnCOC.js} +1 -1
  232. package/dist/assets/{sounds-page-CfeiEoJP.js → sounds-page-BFkt0cRP.js} +1 -1
  233. package/dist/assets/src-ly8ixpHd.js +293 -0
  234. package/dist/assets/{start-screen-CqbeEmEE.js → start-screen-CPmsm-kW.js} +1 -1
  235. package/dist/assets/subagent-detail-panel-B9b73efk.js +4 -0
  236. package/dist/assets/{subagent-store-DyKwOIj_.js → subagent-store-EOtkI5ts.js} +2 -2
  237. package/dist/assets/superpowers-page-CrwVXYD1.js +1 -0
  238. package/dist/assets/{system-events-page-Cg0uMSMs.js → system-events-page-DMHlTJNU.js} +1 -1
  239. package/dist/assets/{system-events-redirect-page-C44suO-c.js → system-events-redirect-page-BgYhdD3K.js} +1 -1
  240. package/dist/assets/{tag-D8NAGb0r.js → tag-Bz-I4QwU.js} +1 -1
  241. package/dist/assets/text-preview-DisMX4cO.js +1 -0
  242. package/dist/assets/{theme-preferences-LQuLaIA6.js → theme-preferences-Brs5RzlL.js} +1 -1
  243. package/dist/assets/{theme-stage-page-CnKpq5QT.js → theme-stage-page-wgK0C8Xl.js} +1 -1
  244. package/dist/assets/{threshold-presets-B-gOdjC4.js → threshold-presets-xxr02Qfr.js} +1 -1
  245. package/dist/assets/{tiptap-document-editor-D-lwPWrV.js → tiptap-document-editor-CYZc1P55.js} +2 -2
  246. package/dist/assets/{toast-DR7D7Uma.js → toast-DJj-rM9J.js} +1 -1
  247. package/dist/assets/tool-detail-panel-lVmW8t6E.js +2 -0
  248. package/dist/assets/transcript-message-body-shared-BYEkDuM7.js +1 -0
  249. package/dist/assets/{trust-rules-api-iUGCiDDM.js → trust-rules-api-DJrse6lT.js} +1 -1
  250. package/dist/assets/typed-storage-C92iOTRi.js +1 -0
  251. package/dist/assets/{upgrade-cancel-page-D8is9-gw.js → upgrade-cancel-page-H42-8Myl.js} +1 -1
  252. package/dist/assets/{upgrade-success-page-3W1VuHqB.js → upgrade-success-page-CO688UNb.js} +1 -1
  253. package/dist/assets/{usage-redirect-page-C6qXe-4h.js → usage-redirect-page-BJBZlMum.js} +1 -1
  254. package/dist/assets/{use-active-assistant-id-CjvzlL4t.js → use-active-assistant-id-CaI-sL1J.js} +1 -1
  255. package/dist/assets/{use-app-theme-BLGjiz96.js → use-app-theme-FEeKltJv.js} +1 -1
  256. package/dist/assets/{use-assistant-avatar--4s_vvar.js → use-assistant-avatar-DMG3FqL-.js} +1 -1
  257. package/dist/assets/{use-assistant-capability-BaZVGuCu.js → use-assistant-capability-DFWXfGCh.js} +1 -1
  258. package/dist/assets/use-assistant-identity-details-By2LdQN5.js +1 -0
  259. package/dist/assets/use-attachment-preview-CA6Jq3Q-.js +2 -0
  260. package/dist/assets/use-attachment-squares-Q4hXYAO6.js +1 -0
  261. package/dist/assets/{use-avatar-accent-var-BaftJG7F.js → use-avatar-accent-var-BKR4YRg2.js} +1 -1
  262. package/dist/assets/{use-bookmarks-B6Y60m9F.js → use-bookmarks-2BRf-VJ1.js} +1 -1
  263. package/dist/assets/{use-bundled-avatar-components-IQw2k8-g.js → use-bundled-avatar-components-Dghk3JuB.js} +2 -2
  264. package/dist/assets/{use-bus-subscription-CyRPH_gr.js → use-bus-subscription-tfEbZIgy.js} +1 -1
  265. package/dist/assets/use-checkout-dismiss-refresh-BFflpUVl.js +1 -0
  266. package/dist/assets/use-command-palette-sections-VpqtgSjD.js +1 -0
  267. package/dist/assets/{use-discord-nudge-CRU-lEHV.js → use-discord-nudge-CmlzC8SL.js} +1 -1
  268. package/dist/assets/{use-edge-swipe-back-D12vbvly.js → use-edge-swipe-back-DdZtH51d.js} +1 -1
  269. package/dist/assets/{use-edge-swipe-Gst62FjL.js → use-edge-swipe-keD8fPuu.js} +1 -1
  270. package/dist/assets/use-edit-app-BkT7jwP1.js +1 -0
  271. package/dist/assets/{use-effective-timezone-Bx9QaO25.js → use-effective-timezone-JzQxWxW2.js} +1 -1
  272. package/dist/assets/use-invite-link-dialog-BB8L3PzM.js +1 -0
  273. package/dist/assets/use-is-org-ready-Bg4Z5GBx.js +1 -0
  274. package/dist/assets/use-local-file-info-CtbuzUis.js +1 -0
  275. package/dist/assets/{use-onboarding-login-X8pB53cV.js → use-onboarding-login-Bu7sD0vA.js} +1 -1
  276. package/dist/assets/{use-platform-assistant-id-CIoqMsyh.js → use-platform-assistant-id-DaxLTdvK.js} +1 -1
  277. package/dist/assets/{use-platform-gate-CqEOGZtI.js → use-platform-gate-eOForHle.js} +1 -1
  278. package/dist/assets/{use-reduced-motion-bjjt6x6d.js → use-reduced-motion-B48ljNsY.js} +1 -1
  279. package/dist/assets/{use-return-to-short-circuit-B295pgoV.js → use-return-to-short-circuit-DMwA7QJo.js} +1 -1
  280. package/dist/assets/{use-save-twilio-credentials-CCp1iqBf.js → use-save-twilio-credentials-Bt8-VmNu.js} +1 -1
  281. package/dist/assets/{use-skill-actions-BLHTDn21.js → use-skill-actions-dO7SAuVJ.js} +1 -1
  282. package/dist/assets/{use-skill-detail-files-BVBb8uoK.js → use-skill-detail-files-_k3UzMmc.js} +1 -1
  283. package/dist/assets/use-sticky-profiles-DMFdzrdj.js +1 -0
  284. package/dist/assets/use-subagent-card-data-CAPMmI2V.js +1 -0
  285. package/dist/assets/{use-supports-bookmarks-DbG5HZ6P.js → use-supports-bookmarks-DV69KwnD.js} +1 -1
  286. package/dist/assets/use-supports-credentials-settings-CsSF8bXr.js +1 -0
  287. package/dist/assets/{use-swipe-engine-RAFE-Hrf.js → use-swipe-engine-D7g_j1e7.js} +1 -1
  288. package/dist/assets/use-transcript-message-by-id-CPwXy-e_.js +1 -0
  289. package/dist/assets/use-transcript-messages-mG6uzjM7.js +3 -0
  290. package/dist/assets/use-voice-sample-preview-GTvSsyQN.js +1 -0
  291. package/dist/assets/utils-CGftFn10.js +1 -0
  292. package/dist/assets/utils-D_YMyAVe.js +1 -0
  293. package/dist/assets/viewer-store-DLfi5Qn9.js +1 -0
  294. package/dist/assets/voice-list-DrpdVsX1.js +1 -0
  295. package/dist/assets/{voice-page-Bvgm-7L8.js → voice-page-BihwSjTK.js} +1 -1
  296. package/dist/assets/{voice-providers-note-g4IBSHFm.js → voice-providers-note-kpd6DEbi.js} +1 -1
  297. package/dist/assets/{weather-forecast-display-Bg_OjY6Q.js → weather-forecast-display-Dlxorv_U.js} +1 -1
  298. package/dist/assets/{web-C8NouSk8.js → web-BPjOkFge.js} +1 -1
  299. package/dist/assets/{web-RKFLO25W.js → web-BipFeLqE.js} +1 -1
  300. package/dist/assets/{web-XmQWRS1M.js → web-BlW9rsRn.js} +1 -1
  301. package/dist/assets/{web-Cv3bLSQ5.js → web-CaR0HElx.js} +1 -1
  302. package/dist/assets/{web-D82T2zyn.js → web-Co70Kw5W.js} +1 -1
  303. package/dist/assets/{web-s9eE6ZyC.js → web-CrlKvQfY.js} +1 -1
  304. package/dist/assets/{web-BEtLqoWJ.js → web-DDTE8DdB.js} +1 -1
  305. package/dist/assets/{web-ZsA8B5nq.js → web-DoTDNQCP.js} +1 -1
  306. package/dist/assets/welcome-screen-DYX8zWmF.js +1 -0
  307. package/dist/assets/{workflow-detail-panel-BNzNSNAT.js → workflow-detail-panel-BnbE0AWp.js} +1 -1
  308. package/dist/assets/{workflow-store-Cbd3x6KN.js → workflow-store-0XDSN5eW.js} +1 -1
  309. package/dist/assets/workspace-page-Cm4xWN1i.js +1 -0
  310. package/dist/assets/workspace-path-links-DIex4SOO.js +1 -0
  311. package/dist/assets/workspace-tree-query-D58SWaA3.js +1 -0
  312. package/dist/index.html +283 -272
  313. package/package.json +1 -1
  314. package/dist/assets/access-BJiXpwUJ.js +0 -1
  315. package/dist/assets/acp-run-detail-panel-C_M19m8P.js +0 -5
  316. package/dist/assets/activity-steps-panel-BsmwWzP1.js +0 -1
  317. package/dist/assets/add-credits-modal-3Rsd1ZeS.js +0 -1
  318. package/dist/assets/ai-page-B9mJkV_p.js +0 -1
  319. package/dist/assets/api-C8TlQNEU.js +0 -1
  320. package/dist/assets/api-DDKNgE8n.js +0 -1
  321. package/dist/assets/assistant-identity-store-BczULg2T.js +0 -1
  322. package/dist/assets/auth-store-BwKMFgpK.js +0 -2
  323. package/dist/assets/background-task-actions-DX0pUvY9.js +0 -1
  324. package/dist/assets/billing-page-CED96NEp.js +0 -3
  325. package/dist/assets/build-state-DPMhQpLB.js +0 -1
  326. package/dist/assets/channels-page-route-BooWFQMp.js +0 -9
  327. package/dist/assets/chat-markdown-message-f4cLJfax.js +0 -2
  328. package/dist/assets/checkbox-BZTUJtxM.js +0 -1
  329. package/dist/assets/checkout-continuation-CcuqWhhp.js +0 -1
  330. package/dist/assets/checkout-page-BateK-Nf.js +0 -1
  331. package/dist/assets/checkout-return-target-Cib3fzdY.js +0 -1
  332. package/dist/assets/command-palette-B3TVIQUH.js +0 -1
  333. package/dist/assets/command-palette-window-page-Bp9WplfA.js +0 -1
  334. package/dist/assets/consent-s5g0Gmb2.js +0 -1
  335. package/dist/assets/contacts-page-route--hTzWT8X.js +0 -1
  336. package/dist/assets/conversation-navigation-D63NJmBl.js +0 -1
  337. package/dist/assets/credentials-page-CYBmOQhl.js +0 -1
  338. package/dist/assets/debug-page-CHuby9yt.js +0 -4
  339. package/dist/assets/detail-panel-stop-button-DgKaA6yz.js +0 -1
  340. package/dist/assets/developer-page-CUJqTs2_.js +0 -1
  341. package/dist/assets/dices-DcuIF52A.js +0 -1
  342. package/dist/assets/dist-BKxs5XmY.js +0 -1
  343. package/dist/assets/dist-BswnB-bR.js +0 -1
  344. package/dist/assets/doctor-handoff-store-DWNbuW3P.js +0 -1
  345. package/dist/assets/document-viewer-container-Doc7G7NK.js +0 -2
  346. package/dist/assets/document-viewer-page-_jndOS7P.js +0 -1
  347. package/dist/assets/effective-timezone-CnKC3vj0.js +0 -1
  348. package/dist/assets/esm-B2M2kM_8.js +0 -2
  349. package/dist/assets/esm-BgRAHqeR.js +0 -2
  350. package/dist/assets/esm-CXX8rcv3.js +0 -2
  351. package/dist/assets/esm-Chh8mHmh.js +0 -1
  352. package/dist/assets/esm-Cl2UNC_o.js +0 -2
  353. package/dist/assets/esm-DOATKqE3.js +0 -2
  354. package/dist/assets/feature-flag-catalog-CWHnoWvT.js +0 -1
  355. package/dist/assets/file-editor-DcH2Os5o.js +0 -1
  356. package/dist/assets/file-markdown-DBLxtb0M.js +0 -2
  357. package/dist/assets/first-run-scope-7wWjJ4Tn.js +0 -1
  358. package/dist/assets/general-page-DoAKoumC.js +0 -1
  359. package/dist/assets/handle-logout-BTgnSSUm.js +0 -1
  360. package/dist/assets/hatching-screen-Q59qvj8_.js +0 -1
  361. package/dist/assets/home-page-route-TPR5p3LW.js +0 -1
  362. package/dist/assets/hosting-screen-DRrmkmoO.js +0 -1
  363. package/dist/assets/identity-Cb4xS1Kk.js +0 -1
  364. package/dist/assets/identity-page-route-CvxG-nhn.js +0 -7
  365. package/dist/assets/index-Ch9eoFem.js +0 -11
  366. package/dist/assets/index-D8Xiv4z3.css +0 -2
  367. package/dist/assets/integrations-page-CnjTLjpf.js +0 -1
  368. package/dist/assets/latest-assistant-text-DPm0HIWu.js +0 -24
  369. package/dist/assets/library-page-CuNX2WgS.js +0 -1
  370. package/dist/assets/list-row-BYrmPIC4.js +0 -1
  371. package/dist/assets/local-mode-9zpgPNoq.js +0 -39
  372. package/dist/assets/local-runtime-upgrade-JwVgn034.js +0 -1
  373. package/dist/assets/local-settings-C-dW2vkq.js +0 -1
  374. package/dist/assets/memory-page-route-C8nIc6Mb.js +0 -6
  375. package/dist/assets/messages-BzNSqJQx.js +0 -13
  376. package/dist/assets/mobile-sidebar-drawer-BnxfQaDB.js +0 -1
  377. package/dist/assets/modal-DwsThLGg.js +0 -1
  378. package/dist/assets/mutation-error-CXV1BKlB.js +0 -1
  379. package/dist/assets/native-anchor-BiuEQHcy.js +0 -1
  380. package/dist/assets/native-biometric-B96mgKGP.js +0 -6
  381. package/dist/assets/native-file-BvwfoU6A.js +0 -2
  382. package/dist/assets/notice-DCp7WO3L.js +0 -1
  383. package/dist/assets/notifications-page-BAYd0t-0.js +0 -1
  384. package/dist/assets/onboarding-store-OVV4wyh5.js +0 -1
  385. package/dist/assets/open-workspace-file-DucrTmt3.js +0 -2
  386. package/dist/assets/pairing-page-BRPUYbzJ.js +0 -1
  387. package/dist/assets/panel-item-DGs4s9r-.js +0 -1
  388. package/dist/assets/plans-page-BxebYucs.js +0 -1
  389. package/dist/assets/platform-detection-a_IB3-0w.js +0 -1
  390. package/dist/assets/plugins-surface-C4peMNec.js +0 -1
  391. package/dist/assets/popover-BFL-uOLh.js +0 -1
  392. package/dist/assets/privacy-page-sZhcJ3uB.js +0 -1
  393. package/dist/assets/provider-key-w3CzmGtq.js +0 -1
  394. package/dist/assets/react-query.gen-0mspArBl.js +0 -1
  395. package/dist/assets/react-query.gen-BVTEjHsw.js +0 -1
  396. package/dist/assets/remote-gateway-session-CgxYHgOD.js +0 -1
  397. package/dist/assets/research-onboarding-route-ZOwRvfGs.js +0 -50
  398. package/dist/assets/resolved-assistants-store-8HQDfxZh.js +0 -1
  399. package/dist/assets/retire-confirm-dialog-m6ORm5Pq.js +0 -1
  400. package/dist/assets/risk-uPLh5W5z.js +0 -3
  401. package/dist/assets/routes-BP00Ewbf.js +0 -23
  402. package/dist/assets/runtime-upgrade-banner-yZYtWxoJ.js +0 -2
  403. package/dist/assets/schedules-page-BQSGUmn5.js +0 -1
  404. package/dist/assets/sdk.gen-DVW3wpbx.js +0 -1
  405. package/dist/assets/select-assistant-screen-B5N_TUcG.js +0 -1
  406. package/dist/assets/session-corner-action-vhb51vd3.js +0 -1
  407. package/dist/assets/settings-layout-BtT0532M.js +0 -1
  408. package/dist/assets/settings-navigation-BDpUXrOI.js +0 -1
  409. package/dist/assets/share-feedback-modal-DO6_oaZg.js +0 -2
  410. package/dist/assets/site-favicon-Dh1OTgFr.js +0 -1
  411. package/dist/assets/src-BAS7a2RG.js +0 -293
  412. package/dist/assets/subagent-detail-panel-jp0r0ZFk.js +0 -4
  413. package/dist/assets/superpowers-page-DltosgGe.js +0 -1
  414. package/dist/assets/tool-detail-panel-CXcjfDGo.js +0 -2
  415. package/dist/assets/transcript-message-body-shared-woOFNF_q.js +0 -1
  416. package/dist/assets/typed-storage-C-R1po3l.js +0 -1
  417. package/dist/assets/use-assistant-identity-details-C99kNyQf.js +0 -1
  418. package/dist/assets/use-checkout-dismiss-refresh-BkIzNk6B.js +0 -1
  419. package/dist/assets/use-command-palette-sections-CAmbyguu.js +0 -1
  420. package/dist/assets/use-edit-app-BF9YK7AV.js +0 -1
  421. package/dist/assets/use-invite-link-dialog-DN2IHVZE.js +0 -1
  422. package/dist/assets/use-ios-app-nudge-CrBEIZ8w.js +0 -1
  423. package/dist/assets/use-is-org-ready-zouQ5CN4.js +0 -1
  424. package/dist/assets/use-sticky-profiles-bdq2XW7H.js +0 -1
  425. package/dist/assets/use-subagent-card-data-B8JTa5rQ.js +0 -1
  426. package/dist/assets/use-supports-credentials-settings-CgWfA2eQ.js +0 -1
  427. package/dist/assets/utils-C-YNXdkX.js +0 -1
  428. package/dist/assets/utils-Ction0uF.js +0 -1
  429. package/dist/assets/viewer-store--hIQLNm5.js +0 -1
  430. package/dist/assets/voice-list-CCLkiF-c.js +0 -1
  431. package/dist/assets/welcome-screen-Cga6YuF9.js +0 -1
  432. package/dist/assets/workspace-page-BFJO59Ch.js +0 -1
  433. package/dist/assets/workspace-tree-query-CqcOBNKw.js +0 -1
  434. /package/dist/assets/{api-errors-SZKDzMLE.js → api-errors-CFiCT7Ap.js} +0 -0
  435. /package/dist/assets/{app-types-o5Qc-xkK.js → app-types-BDwXtDh_.js} +0 -0
  436. /package/dist/assets/{apple-logo-Cg-KnqW2.js → apple-logo-BIwlIlpk.js} +0 -0
  437. /package/dist/assets/{arrow-down-to-line-Bh_5sIPp.js → arrow-down-to-line-DMGjBlMw.js} +0 -0
  438. /package/dist/assets/{arrow-left-C2ylPLHq.js → arrow-left-W84B6oJL.js} +0 -0
  439. /package/dist/assets/{arrow-right-B-jRJNWP.js → arrow-right-ChqGeAaW.js} +0 -0
  440. /package/dist/assets/{arrow-up-BNd4Gpy7.js → arrow-up-CWzHzcyU.js} +0 -0
  441. /package/dist/assets/{avatar-bundled-components-CTd294ra.js → avatar-bundled-components-iI95J-ZL.js} +0 -0
  442. /package/dist/assets/{avatar-subagent-BpXST4nO.js → avatar-subagent-pOueFfxU.js} +0 -0
  443. /package/dist/assets/{avatar-svg-compositor-DclcUb1M.js → avatar-svg-compositor-BOYGuaxM.js} +0 -0
  444. /package/dist/assets/{avatar-tone-4L7foPzW.js → avatar-tone-BOo-ADtK.js} +0 -0
  445. /package/dist/assets/{ban-B__z3LwE.js → ban-BKp90l-0.js} +0 -0
  446. /package/dist/assets/{bell-Ct4a9v6Y.js → bell-2SnK9BVD.js} +0 -0
  447. /package/dist/assets/{brain-BIzJCPA6.js → brain-CN4zzNgU.js} +0 -0
  448. /package/dist/assets/{browser-timezone-DGz-HvxU.js → browser-timezone-9IQHD9Rp.js} +0 -0
  449. /package/dist/assets/{bug-VUcJFHwN.js → bug-DdmWJIkz.js} +0 -0
  450. /package/dist/assets/{build.umd-oXvZOmIf.js → build.umd-zd6Te11f.js} +0 -0
  451. /package/dist/assets/{by-tool-use-id-index-DcsiqOhc.js → by-tool-use-id-index-CwsBkYMU.js} +0 -0
  452. /package/dist/assets/{calendar-RYdAv74D.js → calendar-qrPKlf1H.js} +0 -0
  453. /package/dist/assets/{chart-column-BLKW3sjY.js → chart-column-k8S2UYq8.js} +0 -0
  454. /package/dist/assets/{chat-BIJEFb5u.js → chat-QHEStx4m.js} +0 -0
  455. /package/dist/assets/{check-sC49_hjU.js → check-Dt2rQhdg.js} +0 -0
  456. /package/dist/assets/{chevron-down-B5A-0g8A.js → chevron-down-BNidRDh1.js} +0 -0
  457. /package/dist/assets/{chevron-left-CytMddTB.js → chevron-left-CrxnPze-.js} +0 -0
  458. /package/dist/assets/{chevron-right-HU6H84S0.js → chevron-right-CANAtgGn.js} +0 -0
  459. /package/dist/assets/{chevron-up-2Qqarz0p.js → chevron-up-DofScvyy.js} +0 -0
  460. /package/dist/assets/{circle-alert-DVCpoZrc.js → circle-alert-DQMH8VJH.js} +0 -0
  461. /package/dist/assets/{circle-check-CjGnAahM.js → circle-check-DvrCdroD.js} +0 -0
  462. /package/dist/assets/{circle-check-big-DSsDH5_6.js → circle-check-big-DtV6IJuh.js} +0 -0
  463. /package/dist/assets/{circle-minus-DNfBAj4g.js → circle-minus-BBDKV6k6.js} +0 -0
  464. /package/dist/assets/{circle-x-17dBxF06.js → circle-x-DTjJzoQl.js} +0 -0
  465. /package/dist/assets/{client.gen-DHOmbzD9.js → client.gen-CV05d-kw.js} +0 -0
  466. /package/dist/assets/{clipboard-copy-JwIceweN.js → clipboard-copy-BYpgEh2O.js} +0 -0
  467. /package/dist/assets/{clock-BYTc0Ds9.js → clock-DeynsyYL.js} +0 -0
  468. /package/dist/assets/{cloud-off-BCBGTmt0.js → cloud-off-BFACQbO0.js} +0 -0
  469. /package/dist/assets/{cloud-RlApB3rO.js → cloud-q4J30bVb.js} +0 -0
  470. /package/dist/assets/{code-qafFA0_-.js → code-D6SOwRrI.js} +0 -0
  471. /package/dist/assets/{coins-Hrmb9tmj.js → coins-CcTuNVlN.js} +0 -0
  472. /package/dist/assets/{conversation-selection-B954w311.js → conversation-selection-hK0_sm_S.js} +0 -0
  473. /package/dist/assets/{create-selectors-B-P03-8K.js → create-selectors-CEbfsat6.js} +0 -0
  474. /package/dist/assets/{definitions-CL6e7nYF.js → definitions-D0FqUzOF.js} +0 -0
  475. /package/dist/assets/{definitions-BD-g60mP.js → definitions-IbMsXMGo.js} +0 -0
  476. /package/dist/assets/{dist-CFSiz2ry2.js → dist-GTkaLo4c2.js} +0 -0
  477. /package/dist/assets/{download-CywcQLB2.js → download-Cnb8zZrK.js} +0 -0
  478. /package/dist/assets/{edit-chat-session-Beky6Vpg.js → edit-chat-session-DJ2tzvAz.js} +0 -0
  479. /package/dist/assets/{ellipsis-BRJI5_P1.js → ellipsis-C5fQnusC.js} +0 -0
  480. /package/dist/assets/{ellipsis-vertical-nov0xhhF.js → ellipsis-vertical-qQRDY5dB.js} +0 -0
  481. /package/dist/assets/{emoji-catalog-data-5pJaL_3N.js → emoji-catalog-data-DrSbOeEu.js} +0 -0
  482. /package/dist/assets/{event-bus-CvZyJQ26.js → event-bus-DYZhc6yM.js} +0 -0
  483. /package/dist/assets/{external-link-CAce-RVu.js → external-link-GPGZ1LGU.js} +0 -0
  484. /package/dist/assets/{external-urls-97O9n0lb.js → external-urls-BL9qY0s8.js} +0 -0
  485. /package/dist/assets/{eye-DTyDWiqu.js → eye-B_jBDDRn.js} +0 -0
  486. /package/dist/assets/{eye-bbox-DE8r0Vt3.js → eye-bbox-fkuAvbnc.js} +0 -0
  487. /package/dist/assets/{eye-off-fuOP4Lij.js → eye-off-DQ4xakzN.js} +0 -0
  488. /package/dist/assets/{file-code-DD3K2kve.js → file-code-CrtJR2ax.js} +0 -0
  489. /package/dist/assets/{file-plus-Dq2xo7Ic.js → file-plus-DjC7wnGp.js} +0 -0
  490. /package/dist/assets/{file-text-BCsUYVEF.js → file-text-CwGsMgaa.js} +0 -0
  491. /package/dist/assets/{folder-g06qTW2O.js → folder-_l8GIyQp.js} +0 -0
  492. /package/dist/assets/{folder-open-CAb0DLYq.js → folder-open-BTlvhHNO.js} +0 -0
  493. /package/dist/assets/{format-date-CKGQir4m.js → format-date-CQUMvfqf.js} +0 -0
  494. /package/dist/assets/{format-file-size-Eu-Z0CxL.js → format-file-size-B5EMFtmw.js} +0 -0
  495. /package/dist/assets/{globe-BDvXuPkw.js → globe-CdLn4IX7.js} +0 -0
  496. /package/dist/assets/{hard-drive-CncrDZ7V.js → hard-drive-sI2ZzmqM.js} +0 -0
  497. /package/dist/assets/{hard-navigate-V2EFapkk.js → hard-navigate-Dou11GyV.js} +0 -0
  498. /package/dist/assets/{heart-2AHOP0tB.js → heart-DFD4eqW-.js} +0 -0
  499. /package/dist/assets/{inbox-DXYIwUrn.js → inbox-OC3STytq.js} +0 -0
  500. /package/dist/assets/{info-CYiVdnQV.js → info-DkhVkzmK.js} +0 -0
  501. /package/dist/assets/{is-electron-7N7iyz1y.js → is-electron-DLs5KNwr.js} +0 -0
  502. /package/dist/assets/{key-round-CSc3w5ka.js → key-round-BFkuiQGH.js} +0 -0
  503. /package/dist/assets/{laptop-ByoaxLxg.js → laptop-BGOychmC.js} +0 -0
  504. /package/dist/assets/{layout-grid-PPpVK0nJ.js → layout-grid-Ct4RT2Ea.js} +0 -0
  505. /package/dist/assets/{link-2-BMNZFfWH.js → link-2-DhyrrFaE.js} +0 -0
  506. /package/dist/assets/{link-CowyzCIZ.js → link-DOobzBVg.js} +0 -0
  507. /package/dist/assets/{link-click-BEiniqcG.js → link-click-CzL-O2k6.js} +0 -0
  508. /package/dist/assets/{list-CDyb1CGV.js → list-D2LnQ7lS.js} +0 -0
  509. /package/dist/assets/{loader-circle-BzJ2kz3F.js → loader-circle-DWWXcfTQ.js} +0 -0
  510. /package/dist/assets/{log-in-Bhye1kwc.js → log-in-D4nsqRbG.js} +0 -0
  511. /package/dist/assets/{log-out-BLE632qu.js → log-out-CF9mMMsz.js} +0 -0
  512. /package/dist/assets/{machine-sizes-D0oAlF9f.js → machine-sizes-CvnllWMa.js} +0 -0
  513. /package/dist/assets/{mail-DABv3_Ue.js → mail-DyUf40pu.js} +0 -0
  514. /package/dist/assets/{message-circle-gk_DFUIg.js → message-circle-ByXBaIaq.js} +0 -0
  515. /package/dist/assets/{message-square-zCNXaHYX.js → message-square-CHUvAEY9.js} +0 -0
  516. /package/dist/assets/{message-square-text-asdoy3SW.js → message-square-text-CN_v46So.js} +0 -0
  517. /package/dist/assets/{mic-DZrWtAAu.js → mic-BZZo0R22.js} +0 -0
  518. /package/dist/assets/{middleware-HE0NLvPl.js → middleware-Bxr-mmHu.js} +0 -0
  519. /package/dist/assets/{minimize-2-BR0ed4mI.js → minimize-2-Dj9FY4aF.js} +0 -0
  520. /package/dist/assets/{misc-CAQM4FGM.js → misc-DBwubycL.js} +0 -0
  521. /package/dist/assets/{monitor-B5vtTCxm.js → monitor-RX4oi4Nj.js} +0 -0
  522. /package/dist/assets/{moon-DSdti3GO.js → moon-CHW45huN.js} +0 -0
  523. /package/dist/assets/{native-deep-link-BJjxOpZm.js → native-deep-link-Cncq0GD6.js} +0 -0
  524. /package/dist/assets/{oauth-popup-Ql5xgtlO.js → oauth-popup-B6j6bx_5.js} +0 -0
  525. /package/dist/assets/{onboarding-step-layout-DGtbhZJb.js → onboarding-step-layout-C3Maoz0G.js} +0 -0
  526. /package/dist/assets/{optimistic-lifecycle-50vNA6dY.js → optimistic-lifecycle-KJTTe47z.js} +0 -0
  527. /package/dist/assets/{pdf-8fO1Wz7e.js → pdf-CwMfK7hM.js} +0 -0
  528. /package/dist/assets/{pencil-CLJIvYKH.js → pencil-Cm5DdeRM.js} +0 -0
  529. /package/dist/assets/{play-CCT817Ah.js → play-Dh6Bw5AP.js} +0 -0
  530. /package/dist/assets/{plugin-attribution-Hjqz10My.js → plugin-attribution-B0uhwtEJ.js} +0 -0
  531. /package/dist/assets/{plus-JG7kWjHA.js → plus-EJu6s6xR.js} +0 -0
  532. /package/dist/assets/{pointer-QlIwQKYH.js → pointer-DY1bgd8h.js} +0 -0
  533. /package/dist/assets/{prechat-EVefdGcO.js → prechat-Bn3NCSMT.js} +0 -0
  534. /package/dist/assets/{profile-metadata-BksFtHNq.js → profile-metadata-DuAgiz1O.js} +0 -0
  535. /package/dist/assets/{progress-bar-CJxkStgF.js → progress-bar-3GUUAhXi.js} +0 -0
  536. /package/dist/assets/{proxy-CNtrhN4q.js → proxy-CZ68u73m.js} +0 -0
  537. /package/dist/assets/{public-asset-CD3ouSWU.js → public-asset-CKQ1B7-c.js} +0 -0
  538. /package/dist/assets/{puzzle-CtM3jM-f.js → puzzle-4NgH5snP.js} +0 -0
  539. /package/dist/assets/{refresh-cw-Ci7hSykC.js → refresh-cw-EZQqnaxp.js} +0 -0
  540. /package/dist/assets/{repeat-CIQpv9Nd.js → repeat-CP_vsQPN.js} +0 -0
  541. /package/dist/assets/{rotate-ccw-Da_2DvhY.js → rotate-ccw-CL6IkaAI.js} +0 -0
  542. /package/dist/assets/{sdk.gen-DEFA-6EJ.js → sdk.gen-CmYY52M6.js} +0 -0
  543. /package/dist/assets/{search-DA3TmTuR.js → search-DL-2uX3K.js} +0 -0
  544. /package/dist/assets/{send-DHWUIK7G.js → send-Bdmy_GSE.js} +0 -0
  545. /package/dist/assets/{settings-DyEBEqeQ.js → settings-6_RIT4kT.js} +0 -0
  546. /package/dist/assets/{shield-9aFTFyT9.js → shield-CAWgGAqm.js} +0 -0
  547. /package/dist/assets/{shield-check-z7CU-gBq.js → shield-check-CNsbiH1v.js} +0 -0
  548. /package/dist/assets/{sliders-horizontal-slneqAyY.js → sliders-horizontal-BwdOIxz8.js} +0 -0
  549. /package/dist/assets/{smartphone-BbK6bGuE.js → smartphone-CIrxb2NM.js} +0 -0
  550. /package/dist/assets/{sparkles-DC8kqYjt.js → sparkles-DfEFn3Bh.js} +0 -0
  551. /package/dist/assets/{square-Bn3X6ZlO.js → square-DTFrgbZb.js} +0 -0
  552. /package/dist/assets/{status-badge-pill-ZNNoKV1T.js → status-badge-pill-B_SDkd4E.js} +0 -0
  553. /package/dist/assets/{sun-BKEPYS7Q.js → sun-BauGiwdK.js} +0 -0
  554. /package/dist/assets/{surface-parse-helpers-CEJ3tQ9Q.js → surface-parse-helpers-iPHZ9D7N.js} +0 -0
  555. /package/dist/assets/{target-cdw7WP5q.js → target-CJU4DUFo.js} +0 -0
  556. /package/dist/assets/{terminal-Cs_TREv-.js → terminal-BucMVaPU.js} +0 -0
  557. /package/dist/assets/{three-dot-indicator-CfjkCgEH.js → three-dot-indicator-BRr0F0MO.js} +0 -0
  558. /package/dist/assets/{toggle-D776PTw-.js → toggle-BEPV0rQM.js} +0 -0
  559. /package/dist/assets/{trash-2-De6X8YiM.js → trash-2-DfVRfykB.js} +0 -0
  560. /package/dist/assets/{triangle-alert--e3n47gm.js → triangle-alert-D6bAGtMw.js} +0 -0
  561. /package/dist/assets/{upload-Bdbyo_ok.js → upload-DsWG9TbD.js} +0 -0
  562. /package/dist/assets/{use-copy-to-clipboard-BarKTY4m.js → use-copy-to-clipboard-RUBxQIiE.js} +0 -0
  563. /package/dist/assets/{use-is-mobile-Cx2xnNUx.js → use-is-mobile-DVIn_Q66.js} +0 -0
  564. /package/dist/assets/{user-Dq9DUxnU.js → user-DHC7OLPE.js} +0 -0
  565. /package/dist/assets/{user-plus-CXMJ1x_5.js → user-plus-DjxxnQ8G.js} +0 -0
  566. /package/dist/assets/{users-DWDkv8ju.js → users-OcC3p9Jn.js} +0 -0
  567. /package/dist/assets/{video-CQJlht8Q.js → video-Dtwi0MD9.js} +0 -0
  568. /package/dist/assets/{volume-2-Bj3y3ZBJ.js → volume-2-BXDl4IEg.js} +0 -0
  569. /package/dist/assets/{workflow-DbPANJpf.js → workflow-Bsy5y3W0.js} +0 -0
  570. /package/dist/assets/{workflow-status-CgrMMiJT.js → workflow-status-CoN2UmmG.js} +0 -0
  571. /package/dist/assets/{workspace-theme-tokens-bLqHFK0a.js → workspace-theme-tokens-_I8QCLcq.js} +0 -0
  572. /package/dist/assets/{wrench-tjOqvzJ2.js → wrench-DhynFba1.js} +0 -0
  573. /package/dist/assets/{x-DuBvjmAE.js → x-D4O9yIS7.js} +0 -0
  574. /package/dist/assets/{xterm-Ip5qSQfD.js → xterm-C0nnACYt.js} +0 -0
  575. /package/dist/assets/{xterm-addon-fit-BbxIpbO2.js → xterm-addon-fit-yG7H3Zo8.js} +0 -0
@@ -0,0 +1 @@
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,B as ee,Bt as te,Ct as ne,Dt as re,Et as ie,G as ae,Ht as oe,K as se,L as ce,M as le,N as ue,Nt as de,Ot as fe,Pt as pe,R as me,Rt as he,S as ge,St as _e,T as ve,Tt as ye,U as be,Vt as xe,_ as Se,_t as Ce,at as we,b as o,bt as s,c,ct as l,dt as u,et as d,f,g as p,gt as m,h,ht as g,it as _,j as v,jt as y,kt as b,lt as x,m as S,mt as C,n as w,ot as T,q as E,r as D,rt as O,s as k,st as Te,ut as Ee,v as De,vt as Oe,wt as ke,x as Ae,xt as je,y as Me,yt as Ne,z as Pe,zt as Fe}from"./sdk.gen-DKp2Mbw9.js";var A=(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]},j=e=>A(`assistantsList`,e),Ie=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ve({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:j(e)}),Le=(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},Re=e=>A(`assistantsDoctorHistoryList`,e),ze=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await k({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Re(e)}),Be=e=>A(`assistantsDoctorHistoryRetrieve`,e),Ve=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await c({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Be(e)}),He=e=>({mutationFn:async t=>{let{data:n}=await f({...e,...t,throwOnError:!0});return n}}),Ue=t=>e({...He(),...t}),M=e=>A(`assistantsDomainsList`,e),We=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:M(e)}),Ge=e=>({mutationFn:async t=>{let{data:n}=await S({...e,...t,throwOnError:!0});return n}}),Ke=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),qe=e=>A(`assistantsDomainsVerificationStatusRetrieve`,e),Je=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qe(e)}),N=e=>A(`assistantsEmailAddressesList`,e),Ye=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:N(e)}),Xe=e=>({mutationFn:async t=>{let{data:n}=await De({...e,...t,throwOnError:!0});return n}}),Ze=e=>({mutationFn:async t=>{let{data:n}=await Me({...e,...t,throwOnError:!0});return n}}),P=e=>A(`assistantsEmailAddressesStatusRetrieve`,e),Qe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ae({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),$e=e=>A(`assistantsEmailsList`,e),et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ge({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$e(e)}),tt=e=>({mutationFn:async t=>{let{data:n}=await le({...e,...t,throwOnError:!0});return n}}),nt=t=>e({...tt(),...t}),F=e=>A(`assistantsOauthConnectionsList`,e),I=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await i({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:F(e)}),rt=(e,t,n)=>e.setQueryData(I(t).queryKey,n),it=e=>({mutationFn:async t=>{let{data:n}=await v({...e,...t,throwOnError:!0});return n}}),L=t=>e({...it(),...t}),R=e=>A(`assistantsReleaseChannelRetrieve`,e),at=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),ot=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),st=e=>({mutationFn:async t=>{let{data:n}=await me({...e,...t,throwOnError:!0});return n}}),ct=e=>A(`assistantsSystemEventsList`,e,!0),lt=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=Le(n,typeof t==`object`?t:{query:{offset:t}}),{data:a}=await E({...e,...i,signal:r,throwOnError:!0});return a},queryKey:ct(e)}),z=e=>A(`assistantsRetrieve`,e),ut=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:z(e)}),dt=e=>A(`assistantsOperationalStatusDetailRead`,e),ft=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:dt(e)}),pt=e=>({mutationFn:async t=>{let{data:n}=await ee({...e,...t,throwOnError:!0});return n}}),mt=t=>e({...pt(),...t}),B=e=>A(`assistantsSleepPolicyDetailRead`,e),ht=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:B(e)}),gt=e=>({mutationFn:async t=>{let{data:n}=await ae({...e,...t,throwOnError:!0});return n}}),_t=t=>e({...gt(),...t}),V=e=>A(`assistantsUpgradePolicyDetailRead`,e),vt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),yt=e=>A(`assistantsAccessConsentRetrieve`,e),H=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await w({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:yt(e)}),bt=(e,t,n)=>e.setQueryData(H(t).queryKey,n),xt=e=>A(`assistantsActiveRetrieve`,e),St=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await D({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:xt(e)}),Ct=e=>A(`featureFlagsClientFlagValuesRetrieve`,e),wt=e=>({mutationFn:async t=>{let{data:n}=await O({...e,...t,throwOnError:!0});return n}}),Tt=e=>A(`managedSpeechTtsVoicesRetrieve`,e),Et=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Tt(e)}),U=e=>A(`organizationsBillingAutoTopUpRetrieve`,e),W=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:U(e)}),Dt=(e,t,n)=>e.setQueryData(W(t).queryKey,n),Ot=e=>({mutationFn:async t=>{let{data:n}=await x({...e,...t,throwOnError:!0});return n}}),kt=e=>({mutationFn:async t=>{let{data:n}=await we({...e,...t,throwOnError:!0});return n}}),At=e=>({mutationFn:async t=>{let{data:n}=await T({...e,...t,throwOnError:!0});return n}}),jt=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),G=e=>A(`organizationsBillingDailyCreditLimitRetrieve`,e),K=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),Mt=(e,t,n)=>e.setQueryData(K(t).queryKey,n),Nt=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),Pt=e=>A(`organizationsBillingInvoicesRetrieve`,e,!0),q=e=>A(`organizationsBillingLowBalanceAlertRetrieve`,e),J=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await C({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),Ft=(e,t,n)=>e.setQueryData(J(t).queryKey,n),It=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),Y=e=>A(`organizationsBillingPlansRetrieve`,e),Lt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),Rt=e=>({mutationFn:async t=>{let{data:n}=await Ce({...e,...t,throwOnError:!0});return n}}),zt=t=>e({...Rt(),...t}),X=e=>A(`organizationsBillingSubscriptionRetrieve`,e),Bt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Vt=e=>({mutationFn:async t=>{let{data:n}=await Oe({...e,...t,throwOnError:!0});return n}}),Ht=e=>({mutationFn:async t=>{let{data:n}=await Ne({...e,...t,throwOnError:!0});return n}}),Ut=e=>({mutationFn:async t=>{let{data:n}=await s({...e,...t,throwOnError:!0});return n}}),Wt=e=>({mutationFn:async t=>{let{data:n}=await je({...e,...t,throwOnError:!0});return n}}),Z=e=>A(`organizationsBillingSubscriptionOnboardingRetrieve`,e),Gt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ke({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),Kt=e=>({mutationFn:async t=>{let{data:n}=await _e({...e,...t,throwOnError:!0});return n}}),qt=e=>({mutationFn:async t=>{let{data:n}=await ne({...e,...t,throwOnError:!0});return n}}),Jt=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),Q=e=>A(`organizationsBillingSummaryRetrieve`,e),Yt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await fe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),Xt=e=>({mutationFn:async t=>{let{data:n}=await re({...e,...t,throwOnError:!0});return n}}),Zt=t=>e({...Xt(),...t}),Qt=e=>({mutationFn:async t=>{let{data:n}=await b({...e,...t,throwOnError:!0});return n}}),$t=e=>A(`organizationsBillingUsageSeriesRetrieve`,e),en=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await a({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$t(e)}),tn=e=>A(`organizationsBillingUsageTotalsRetrieve`,e),nn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await y({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:tn(e)}),rn=e=>A(`referralCodesMeRetrieve`,e),an=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await de({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:rn(e)}),on=e=>A(`releasesList`,e),sn=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await pe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:on(e)}),cn=e=>({mutationFn:async t=>{let{data:n}=await he({...e,...t,throwOnError:!0});return n}}),ln=t=>e({...cn(),...t}),$=e=>A(`userMfaFactorsList`,e),un=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$(e)}),dn=e=>({mutationFn:async t=>{let{data:n}=await Fe({...e,...t,throwOnError:!0});return n}}),fn=t=>e({...dn(),...t}),pn=e=>({mutationFn:async t=>{let{data:n}=await te({...e,...t,throwOnError:!0});return n}}),mn=t=>e({...pn(),...t}),hn=e=>({mutationFn:async t=>{let{data:n}=await oe({...e,...t,throwOnError:!0});return n}}),gn=t=>e({...hn(),...t});export{It as $,ht as A,gn as At,W as B,ft as C,mt as Ct,R as D,ln as Dt,at as E,Zt as Et,Ct as F,K as G,Dt as H,wt as I,Nt as J,G as K,Et as L,lt as M,$ as Mt,vt as N,ut as O,fn as Ot,V as P,Ft as Q,kt as R,rt as S,nt as St,st as T,zt as Tt,jt as U,U as V,Ot as W,J as X,Pt as Y,q as Z,et as _,nn as _t,Ve as a,Wt as at,I as b,Ue as bt,We as c,Gt as ct,Xe as d,X as dt,Lt as et,Ze as f,Jt as ft,P as g,en as gt,Qe as h,Qt as ht,ze as i,Ut as it,B as j,un as jt,z as k,mn as kt,M as l,Z as lt,N as m,Q as mt,bt as n,Vt as nt,Ge as o,Kt as ot,Ye as p,Yt as pt,Mt as q,St as r,Ht as rt,Ke as s,qt as st,H as t,Y as tt,Je as u,Bt as ut,Ie as v,an as vt,ot as w,_t as wt,F as x,L as xt,j as y,sn as yt,At as z};
@@ -0,0 +1 @@
1
+ import{$ as e,J as t,W as n}from"./local-mode-BR8wpdXp.js";var r=`/v1/remote-web/pairing-token`,i=`/v1/remote-web/pairing-challenge`,a=`/v1/guardian/refresh`,o=5,s=5e3,c=`vellum:remote-gateway:refresh-lock`,l=`vellum-remote-gateway-refresh`,u=2e4,d=2e4,f=100,p=0,m=null,h=class extends Error{status;code;constructor(e,t,n=null){super(t),this.name=`RemoteWebPairingError`,this.status=e,this.code=n}};function g(e){let t=e?.error?.code;return typeof t==`string`?t:null}function _(e,...t){for(let n of t){let t=e.get(n)?.trim();if(t)return t}return null}function v(e){let t=new URLSearchParams(e.search),n=e.hash.startsWith(`#`)?e.hash.slice(1):e.hash;if(n){let e=new URLSearchParams(n);for(let[n,r]of e)t.has(n)||t.set(n,r)}return t}function y(e){let t=v(typeof e==`string`?new URL(e,window.location.origin):e);return{deviceCode:_(t,`deviceCode`,`device_code`),userCode:_(t,`userCode`,`user_code`)}}function b(e=window.location){let t=/\/assistant(?:\/|$)/.exec(e.pathname);return t&&t.index>0?e.pathname.slice(0,t.index).replace(/\/+$/,``):``}function x(e,t=window.location){return`${b(t)}${e}`}function S(){return`${window.location.origin}${b()}`}function C(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isFinite(t)?t:0}return e>0xe8d4a51000?e:e*1e3}function w(){return!t()||p<=0?!0:Date.now()>=p-s}function T(e){let t=e;return t?.status===`approved`&&typeof t.accessToken==`string`&&(typeof t.accessTokenExpiresAt==`string`||typeof t.accessTokenExpiresAt==`number`)&&(typeof t.refreshAfter==`string`||typeof t.refreshAfter==`number`)}function E(e){let t=e;return typeof t?.deviceCode==`string`&&typeof t.userCode==`string`&&typeof t.verificationUri==`string`&&typeof t.expiresAt==`string`&&typeof t.expiresInSeconds==`number`&&typeof t.intervalSeconds==`number`}function D(e){return new Promise(t=>setTimeout(t,e))}function O(){try{let e=localStorage.getItem(c);if(!e)return null;let t=JSON.parse(e);return typeof t.owner!=`string`||typeof t.expiresAt!=`number`?null:{owner:t.owner,expiresAt:t.expiresAt}}catch{return null}}function k(e){try{let t=O();return t&&t.expiresAt>Date.now()?!1:(localStorage.setItem(c,JSON.stringify({owner:e,expiresAt:Date.now()+u})),O()?.owner===e)}catch{return!0}}function A(e){try{O()?.owner===e&&localStorage.removeItem(c)}catch{}}async function j(e){let t=`${Date.now()}:${Math.random().toString(36).slice(2)}`,n=Date.now()+d;for(;!k(t);){if(Date.now()>=n)return e();await D(f)}try{return await e()}finally{A(t)}}async function M(e){let t=typeof navigator<`u`?navigator.locks??null:null;return t?t.request(l,e):j(e)}function N(t){p=C(t.refreshAfter),e({accessToken:t.accessToken,accessTokenExpiresAt:t.accessTokenExpiresAt}),n({url:`${window.location.origin}${b()}`,token:t.accessToken})}async function P(e,t){let n=await fetch(x(r),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({deviceCode:e}),signal:t}),i=await n.json().catch(()=>null);if(n.status===202){let e=i??{};return{status:`pending`,expiresAt:typeof e.expiresAt==`string`?e.expiresAt:``,intervalSeconds:typeof e.intervalSeconds==`number`&&e.intervalSeconds>0?e.intervalSeconds:o}}if(!n.ok)throw new h(n.status,`Pairing token exchange failed: ${n.status}`,g(i));if(!T(i))throw new h(502,`Pairing token exchange returned an invalid response`);return i}async function F(e){let t=await fetch(x(i),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({publicBaseUrl:S()}),signal:e}),n=await t.json().catch(()=>null);if(!t.ok)throw new h(t.status,`Pairing challenge creation failed: ${t.status}`);if(!E(n))throw new h(502,`Pairing challenge creation returned an invalid response`);return n}async function I(){if(!w())return!0;let e=await fetch(x(a),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:`{}`});if(!e.ok)return!1;let t=await e.json().catch(()=>null);return T({...t,status:`approved`})?(N({...t,status:`approved`}),!0):!1}async function L(){return w()?(m??=M(I).finally(()=>{m=null}),m):!0}export{y as a,S as c,P as i,b as l,N as n,L as o,F as r,x as s,h as t};
@@ -1 +1 @@
1
- import{t as e}from"./domains-OaR_FpOR.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
+ import{n as e}from"./domains-Co-JSZix.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 +1 @@
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{d as a}from"./routes-GmNvdtLW.js";import"./conversation-store-C0tvFESx.js";import"./research-results-view-BBf2iyCA.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
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import"./button-fyWSnR9X.js";import{n,u as r}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as i}from"./jsx-runtime-D3ZM-ToX.js";import{d as a}from"./routes-CAe1h0Db.js";import"./conversation-store-CjNpaqPu.js";import"./research-results-view-1qrQ00-t.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 +1 @@
1
- import{t as e}from"./is-electron-7N7iyz1y.js";function t(e){return e?`research_onboarding:${e}`:null}function n(n){if(e())return null;let r=t(n);if(!r)return null;try{let e=localStorage.getItem(r);return e?JSON.parse(e):null}catch{return null}}function r(n,r){if(e())return;let i=t(n);if(i)try{localStorage.setItem(i,JSON.stringify(r))}catch{}}function i(e){let n=t(e);if(n)try{localStorage.removeItem(n)}catch{}}function a(e){return e.research?.status===`done`?`suggestions`:e.step===`meeting`?e.checkinBooked?`looking`:`letschat`:e.step===`existing`?`form`:e.step}export{r as i,n,a as r,i as t};
1
+ import{t as e}from"./is-electron-DLs5KNwr.js";function t(e){return e?`research_onboarding:${e}`:null}function n(n){if(e())return null;let r=t(n);if(!r)return null;try{let e=localStorage.getItem(r);return e?JSON.parse(e):null}catch{return null}}function r(n,r){if(e())return;let i=t(n);if(i)try{localStorage.setItem(i,JSON.stringify(r))}catch{}}function i(e){let n=t(e);if(n)try{localStorage.removeItem(n)}catch{}}function a(e){return e.research?.status===`done`?`suggestions`:e.step===`meeting`?e.checkinBooked?`looking`:`letschat`:e.step===`existing`?`form`:e.step}export{r as i,n,a as r,i as t};
@@ -0,0 +1,50 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{o as t,t as n}from"./capture-error-Bj8_eutd.js";import{t as r}from"./react-BFJW0bSv.js";import{W as i,t as a}from"./button-fyWSnR9X.js";import{m as o,u as s}from"./chunk-5KNZJZUH-Bsoom5--.js";import{n as c}from"./QueryClientProvider-CMu7CkQU.js";import{t as l}from"./jsx-runtime-D3ZM-ToX.js";import{t as u}from"./cn-CJf7MmLX.js";import{t as d}from"./arrow-left-W84B6oJL.js";import{t as f}from"./arrow-right-ChqGeAaW.js";import{n as p,t as m}from"./animate-DBLF0qC1.js";import{t as h}from"./loader-circle-DWWXcfTQ.js";import{t as g}from"./pencil-Cm5DdeRM.js";import{t as _}from"./plus-EJu6s6xR.js";import{t as v}from"./search-DL-2uX3K.js";import{t as y}from"./square-DTFrgbZb.js";import{t as b}from"./volume-2-BXDl4IEg.js";import{t as x}from"./x-D4O9yIS7.js";import{t as S}from"./notice-Dslxs3H6.js";import{t as C}from"./tag-Bz-I4QwU.js";import{t as w}from"./input-B_e9sgY6.js";import{i as T,r as E,t as D}from"./dist-Ir4ISn-W.js";import{n as O,t as k}from"./create-selectors-CEbfsat6.js";import{D as ee,K as A,S as j,W as M,Z as N,p as te,s as ne}from"./local-mode-BR8wpdXp.js";import{r as re}from"./api-errors-CFiCT7Ap.js";import{$ as ie,Z as P,dt as ae,ft as F,lt as I,n as oe,tt as L,ut as se}from"./auth-store-B25WW_s-.js";import{Cn as R,Kn as ce,Sn as le,V as ue,kr as de,qn as fe,tt as z}from"./sdk.gen-D7tvT1tz.js";import{a as pe,o as me,r as he}from"./api-B1iMGOW3.js";import{d as ge}from"./routes-CAe1h0Db.js";import{n as _e}from"./use-is-org-ready-Bg4Z5GBx.js";import{t as ve}from"./navigation-resolver-C8Qyk5eO.js";import{o as ye,s as be}from"./prechat-Bn3NCSMT.js";import{t as xe}from"./browser-timezone-9IQHD9Rp.js";import{t as Se}from"./identity-DGwGuDNu.js";import{c as Ce}from"./conversation-list-fetchers-NHbvfoK8.js";import{i as we}from"./conversation-cache-CtPnlBgy.js";import{t as Te}from"./avatar-bundled-components-iI95J-ZL.js";import{i as Ee,n as De,r as Oe,t as ke}from"./research-onboarding-persistence-DRkA_L0x.js";import{a as Ae,c as je,i as Me,l as Ne,o as Pe,s as B,t as V}from"./first-run-scope-nuPNIuHU.js";import{c as Fe,i as Ie}from"./funnel-events-ffWj10fc.js";import{t as H}from"./proxy-CZ68u73m.js";import{t as U}from"./AnimatePresence-Ctt0yeEv.js";import{t as W}from"./use-reduced-motion-B48ljNsY.js";import{i as Le}from"./avatar-tone-BOo-ADtK.js";import{n as Re,t as ze}from"./eye-bbox-fkuAvbnc.js";import{a as Be,i as Ve}from"./research-facts-BLXh3yRG.js";import{t as G}from"./onboarding-layout--37tB9YP.js";import{t as K}from"./animated-avatar-CB7bMVIp.js";import{n as q,t as He}from"./use-bundled-avatar-components-Dghk3JuB.js";import{r as Ue,t as We}from"./use-voice-sample-preview-GTvSsyQN.js";import{a as Ge,c as Ke,i as qe,l as Je,n as J,r as Ye,t as Xe,u as Ze}from"./latest-assistant-text-9VgVTJyv.js";import{n as Qe,t as $e}from"./onboarding-step-layout-C3Maoz0G.js";import{a as et,i as tt,n as nt,r as rt,t as it}from"./avatar-random-CE7YdLva.js";import{n as at}from"./plugin-attribution-B0uhwtEJ.js";var Y=e(r(),1),ot=`grounded`,st=12;function ct(e,t){let n=e.slice(0,st).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 lt({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=ct(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 ut({hostingParam:e,localMode:t,gatewayAuthSession:n}){return t?e===null?n:e!==`vellum-cloud`:!1}var dt=`Failed to start your assistant. Please try again.`,ft=`Your assistant is taking longer than expected. Please try again.`,pt=`We couldn't confirm your organization. Please try again.`,mt=100;function ht({adoptExisting:e=!1,adoptAssistantId:r,postCheckoutReturn:i=!1}={}){let a=c(),[o,s]=(0,Y.useState)(!1),[l,u]=(0,Y.useState)(null),[d,f]=(0,Y.useState)(null),p=(0,Y.useRef)(!1),m=(0,Y.useRef)([]),h=(0,Y.useRef)(null),g=(0,Y.useRef)(!1),_=(0,Y.useRef)(null),v=(0,Y.useRef)(!1);(0,Y.useEffect)(()=>(g.current=!1,()=>{g.current=!0,_.current&&=(clearTimeout(_.current),null)}),[]);let y=(0,Y.useCallback)(e=>{if(!(g.current||h.current)){h.current={kind:`ready`,id:e},s(!0);for(let t of m.current)t.resolve(e);m.current=[]}},[]),b=(0,Y.useCallback)(e=>{if(g.current||h.current)return;h.current={kind:`error`,message:e},f(e);let t=Error(e);for(let e of m.current)e.reject(t);m.current=[]},[]),x=(0,Y.useCallback)(()=>{if(p.current)return;p.current=!0;let o=v.current,s=Date.now(),c=()=>Date.now()-s>=nt,l=e=>new Promise(t=>{if(g.current){t();return}_.current=setTimeout(()=>{_.current=null,t()},e)}),d=async()=>{let e=Date.now(),t=!1;for(;;){if(g.current)return!1;let n=_e();if(n===`ready`)return!0;if(!t&&(n===`unavailable`||o))t=!0,ie.getState().fetchOrganizations();else if(n===`unavailable`||Date.now()-e>=5e3)return b(pt),!1;await l(mt)}};(async()=>{if(e&&r){let e=ne(r);if(e){u(e.assistantId),y(e.assistantId);return}}let o=e?r:void 0;if(!e){if(!await d())return;te()&&(A(),M(null));try{let e=await me();if(e.ok)o=e.data.id,u(e.data.id),i&&e.status===201&&et(e.data.id,it(Te),a);else{if(se(e.status,e.error)){b(I);return}if(!F(e.status)){b(re(e.error,void 0,dt));return}}}catch(e){n(e,{context:`research_background_hatch`})}}let f;for(;!f;){if(g.current)return;if(c()){b(ft);return}try{let t=await he(o);if(g.current||o&&!t.ok&&t.status===404&&(o=void 0,t=await he(),g.current))return;let n=ae(t);if(n.kind===`active`&&t.ok){f=t.data.id,u(f),!e&&te()&&ee(f,t.data.name,P()??void 0);break}if(n.kind===`error`){b(n.message);return}}catch(e){n(e,{context:`research_background_hatch_poll`})}await l(rt)}if(e)for(;!await j();){if(g.current)return;if(c()){b(ft);return}await l(rt)}else for(;;){if(g.current)return;try{if((await pe(f)).ok)break}catch{}if(c()){b(ft);return}await l(rt)}if(!e&&i){let e=await tt({assistantId:f,postCheckoutReturn:i,managedHatch:!0,hatchStartMs:s,isCancelled:()=>g.current,registerTimer:e=>{_.current=e}});if(g.current)return;if(e===`health_timeout`){t(`Onboarding hatch wait exceeded timeout`,{level:`warning`,extra:{maxWaitMs:nt,stage:`post_resize_health`}}),b(ft);return}}y(f)})()},[b,y,e,r,i,a]);return{start:x,retry:(0,Y.useCallback)(()=>{v.current=!0,p.current=!1,h.current=null,f(null),s(!1),u(null),x()},[x]),ready:o,assistantId:l,error:d,awaitReady:(0,Y.useCallback)(()=>{let e=h.current;return e?.kind===`ready`?Promise.resolve(e.id):e?.kind===`error`?Promise.reject(Error(e.message)):new Promise((e,t)=>{m.current.push({resolve:e,reject:t})})},[])}}async function gt(e,t){try{await ue({path:{assistant_id:e,id:t},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_archive`})}}var _t=[`admin-copilot`],vt=[{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 yt(e){return` ${e.toLowerCase().replace(/[^a-z0-9]+/g,` `).trim()} `}function bt(e,t){return e.includes(` ${t} `)}function xt(e){let t=yt(e),n=[];for(let{plugin:e,keywords:r}of vt)r.some(e=>bt(t,e))&&n.push(e);return n}function St(e,t){let n=[..._t,...at(),...xt(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 Ct=1500,wt=12e4,Tt=2;function Et({complete:e,stableReads:t}){return e&&t>=Tt}function Dt({sawCompletePayload:e}){return e?`done`:`error`}function Ot({sawCompletePayload:e}){return e}var kt=`vellum-ai`,At=new Set([`simple-memory`,`level-up`]);function jt(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 Nt(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)===kt&&(At.has(e)||(n.add(e),t.push({name:e,description:jt(i)})))}return{capabilities:t,validNames:n}}async function Pt(e){try{return Nt((await fe({path:{assistant_id:e},throwOnError:!1})).data?.matches??[])}catch(e){return n(e,{context:`research_onboarding_catalog`}),{capabilities:[],validNames:new Set}}}async function Ft(e,t){try{await ce({path:{assistant_id:e},body:{name:t},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_install`})}}var It=32;function Lt(e,t){return e.filter(e=>e.confidence===t).length}async function Rt({assistantId:e,conversationId:t,status:r,subject:i,claims:a,suggestions:o,plugins:s,installedPlugins:c}){try{await de({path:{assistant_id:e},body:{type:`onboarding_research`,...r===`done`?{daemon_event_id:`onboarding_research:${t}`}:{},fields:{conversation_id:t,status:r,self_reported_occupation:i.occupation,self_reported_hobbies:(i.hobbies??[]).slice(0,It),self_reported_timezone:i.timezone,claims:a,claim_count:a.length,claims_confident:Lt(a,`confident`),claims_maybe:Lt(a,`maybe`),claims_guessing:Lt(a,`guessing`),suggestions:o,suggestion_count:o.length,plugins:s,installed_plugins:c}},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_telemetry`})}}function zt(e){return{status:e,claims:[],droppedClaims:[],suggestions:[],installedPlugins:[],pluginCatalog:{}}}var Bt=e=>new Promise(t=>setTimeout(t,e));function Vt({role:e,validNames:t,modelPlugins:n}){return[...new Set([...St(e,t),...n.filter(e=>t.has(e))])]}function Ht(){let[e,t]=(0,Y.useState)(()=>zt(`idle`)),r=(0,Y.useRef)(0),i=(0,Y.useRef)(null),a=(0,Y.useRef)(new Map),o=(0,Y.useRef)(Promise.resolve()),s=c(),l=(0,Y.useCallback)((e,t)=>{let n=a.current;n.clear();for(let r of e)n.set(r,(async()=>{try{await Ft(await t(),r)}catch{}})())},[]),u=(0,Y.useCallback)(({awaitAssistantId:e,subject:c,conversationTitle:l,resumeConversationId:u,onConversationCreated:d,includeSuggestions:f=!0})=>{let p=JSON.stringify(c);if(i.current===p)return;i.current=p;let m=r.current+1;r.current=m;let h=()=>r.current!==m,g=()=>{};o.current=new Promise(e=>{g=e}),a.current.clear(),t(zt(`running`)),(async()=>{let r,i,o=!1;try{let n=await e();if(r=n,h())return;let{capabilities:s,validNames:p}=await Pt(n);if(h())return;let m=Object.fromEntries(s.map(e=>[e.name,e.description]));t(e=>({...e,pluginCatalog:m})),p.size===0&&g();let _=a.current,v=St(c.occupation,p);for(let e of v)_.has(e)||_.set(e,Ft(n,e));v.length>0&&t(e=>({...e,installedPlugins:v}));let y=async e=>{let t=J({conversationId:e,content:lt(c,s,{includeSuggestions:f}),transport:`web`});try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&(t.clientTimezone=e)}catch{}return!!(await R({path:{assistant_id:n},body:t,throwOnError:!1})).response?.ok},b=async()=>{let e=await z({path:{assistant_id:n},body:{conversationType:`standard`,...l?{title:l}:{}},throwOnError:!1});i=e.data?.id;let t=e.data?.id;if(!(!e.response?.ok||!t))return d?.(t),t},x;if(u){let e=await le({path:{assistant_id:n},query:{conversationId:u},throwOnError:!1});if(h())return;if(e.response?.ok&&(x=u,i=u,!(e.data?.processing===!0||(e.data?.messages??[]).length>0))){if(!await y(x)){t(e=>({...e,status:`error`}));return}if(h())return}}if(!x){if(x=await b(),h())return;if(!x){t(e=>({...e,status:`error`}));return}if(!await y(x)){t(e=>({...e,status:`error`}));return}if(h())return}let S=Date.now()+wt,C=``,w=0,T=!1,E=[],D=[],O=[],k=v;for(;Date.now()<S;){if(await Bt(Ct),h())return;let e=await le({path:{assistant_id:n},query:{conversationId:x},throwOnError:!1});if(h())return;let r=Xe(e.data?.messages??[]);if(r){let{claims:e,droppedClaims:i,suggestions:a,plugins:s,pluginsResolved:l,complete:u}=Ve(r),d=s.filter(e=>p.has(e));for(let e of d)_.has(e)||_.set(e,Ft(n,e));l&&g();let f=Vt({role:c.occupation,validNames:p,modelPlugins:d});if(t({status:`running`,claims:e,droppedClaims:i,suggestions:a,installedPlugins:f,pluginCatalog:m}),E=e,D=a,O=s,k=f,u&&(o=!0),u&&!T&&(T=!0,Rt({assistantId:n,conversationId:x,status:`done`,subject:c,claims:e,suggestions:a,plugins:s,installedPlugins:f})),w=r===C?w+1:0,C=r,Et({complete:u,stableReads:w}))break}}if(h())return;T||(T=!0,Rt({assistantId:n,conversationId:x,status:`error`,subject:c,claims:E,suggestions:D,plugins:O,installedPlugins:k})),t(e=>({...e,status:Dt({sawCompletePayload:o})}))}catch(e){if(h())return;n(e,{context:`research_onboarding_runner`}),t(e=>({...e,status:`error`}))}finally{g(),Ot({sawCompletePayload:o})&&r&&i&&(await gt(r,i),we(s,r))}})()},[s]),d=(0,Y.useCallback)(()=>{r.current+=1,i.current=null,a.current.clear(),o.current=Promise.resolve(),t(zt(`idle`))},[]),f=(0,Y.useCallback)(async()=>{await o.current,await Promise.all([...a.current.values()])},[]),p=(0,Y.useCallback)((e,n)=>{r.current+=1,t(e),n&&e.installedPlugins.length>0&&l(e.installedPlugins,n)},[l]);return{...e,start:u,awaitPluginInstalls:f,hydrate:p,reinstallPlugins:l,reset:d}}function Ut({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 Wt({assistantId:e,conversationId:t,removedClaims:r,rejectedAll:i}){let a=Ut({removedClaims:r,rejectedAll:i});if(a){try{let n=J({conversationId:t,content:a,transport:`web`});await R({path:{assistant_id:e},body:n,throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_correction`})}await gt(e,t)}}var Gt=1500,Kt=12e4,qt=e=>new Promise(t=>setTimeout(t,e));async function Jt({awaitAssistantId:e,values:t,userName:r,assistantName:i}){let a,o;try{a=await e();let n=await z({path:{assistant_id:a},body:{conversationType:`standard`,title:`Updating personality`},throwOnError:!1});if(o=n.data?.id,!n.response?.ok||!o)return;let s=J({conversationId:o,content:Je(t,r,i),transport:`vellum`});if(!(await R({path:{assistant_id:a},body:s,throwOnError:!1})).response?.ok)return;await Ke(a,Ge(t));let c=Date.now()+Kt,l=``,u=0,d=!1;for(;Date.now()<c;){await qt(Gt);let e=await le({path:{assistant_id:a},query:{conversationId:o},throwOnError:!1}),t=Xe(e.data?.messages??[]);if(t&&(u=t===l?u+1:0,l=t),e.data?.processing===!0&&(d=!0),Ze({processing:e.data?.processing,sawProcessing:d,hasReply:t.length>0,stableReads:u}))break}}catch(e){n(e,{context:`research_onboarding_personality`})}finally{if(a&&o)try{await ue({path:{assistant_id:a,id:o},throwOnError:!1})}catch(e){n(e,{context:`research_onboarding_personality_archive`})}}}function Yt(e){return`id \`scope_${e}\`, \`data: {"${V}": "${e}"}\``}function Xt(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. ${Yt(`work`)} — a concrete offer grounded in their work or role from your Onboarding Context (occupation, daily tools, work-related research findings).
45
+ 2. ${Yt(`personal`)} — a concrete offer grounded in their hobbies, interests, or personal research findings.
46
+ 3. ${Yt(`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 Zt(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 X=l(),Qt=(0,Y.createContext)(null);function $t({size:e,children:t}){return(0,X.jsx)(Qt.Provider,{value:e,children:t})}function en(){let e=(0,Y.useContext)(Qt),[t,n]=(0,Y.useState)(()=>qe());return(0,Y.useEffect)(()=>{if(e)return;let t=()=>n(qe());return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e]),e??t}var tn={x:.5,y:.43},nn=[-8,6,9,0,7,-6,5,0,-7,4,-5,6];function rn(e){return nn[e%nn.length]??0}var an=[1,0,1,0,1,0,1,0,1,0,0],on=[.72,1],sn=[.4,1],cn=[10,20],ln=50,un={6:1.1};function dn(e){return(on[an[e]??1]??1)*(un[e]??1)}function fn(e){return sn[an[e]??1]??1}function pn(e){return cn[an[e]??1]??20}function mn(e,t){return Math.round(Math.max(130,Math.min(Math.min(e,t)*.4,420)))}function hn(e,t){return Math.round(Math.max(110,Math.min(Math.min(e,t)*.21,205)))}function gn(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 _n(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 vn({components:e,characters:t,centerChar:n,edgeOrder:r,entering:i,exiting:a,onEnterComplete:o,onSelectChar:s}){let{w:c,h:l}=en(),u=W(),d=c<640,f=new Set([4,7,8,9,10]),p=e=>d&&f.has(e),m=mn(c,l),h=m/2,g=m/2,_=hn(c,l)/m,v=hn(c,l),y=(0,Y.useMemo)(()=>{let e=new Map;return r.forEach((t,n)=>e.set(t,n)),e},[r]),b=tn.x*c,x=tn.y*l,S=b-h,C=x-h,w=(0,Y.useMemo)(()=>gn(c,l,g),[c,l,g]);return(0,X.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-0 overflow-hidden`,children:[(0,X.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=_n(n,b,x,c,l),s=dn(i.fromSlot),u=fn(i.fromSlot);return(0,X.jsx)(H.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:ln},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,X.jsx)(K,{components:e,traits:t,size:m})},r)}if(g){if(p(a.toSlot))return null;let n=w[a.toSlot],i=_n(n,b,x,c,l),o=dn(a.toSlot),s=fn(a.toSlot);return(0,X.jsx)(H.div,{className:`absolute left-0 top-0`,style:{width:m,height:m,zIndex:pn(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,X.jsx)(`div`,{style:{transform:`rotate(${rn(a.toSlot)}deg)`},children:(0,X.jsx)(K,{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,X.jsx)(H.div,{className:`absolute left-0 top-0 ${d?``:`pointer-events-auto cursor-pointer`}`,style:{width:m,height:m,zIndex:d?ln:pn(v)},initial:!1,animate:{x:T.x-h,y:T.y-h,scale:d?_:dn(v),opacity:d?1:fn(v)},transition:u?{duration:0}:{type:`spring`,stiffness:230,damping:26},onClick:d?void 0:()=>s(r),children:(0,X.jsx)(`div`,{style:{transform:d?void 0:`rotate(${rn(y.get(r)??0)}deg)`},children:(0,X.jsx)(K,{components:e,traits:t,size:m,breathe:d})})},r)})]})}var yn=[{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`}],Z=k(O((e,t)=>({characters:[],selectedIndex:0,ensureGenerated:()=>{t().characters.length>0||e({characters:yn,selectedIndex:0})},setCharacterTraits:(t,n)=>e(e=>({characters:e.characters.map((e,r)=>r===t?n:e)})),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 bn(){let[e,t]=(0,Y.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,Y.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function xn(){let e=q(),t=Z.use.characters(),n=Z.use.ensureGenerated(),r=W(),{w:i,h:a}=bn();(0,Y.useEffect)(()=>{e&&n(e)},[e,n]);let o=mn(i,a),s=(0,Y.useMemo)(()=>gn(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,X.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=nn[i%nn.length]??0,d=o*dn(i),f=fn(i),p=pn(i);return(0,X.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,X.jsx)(`div`,{style:{opacity:f,transform:`rotate(${u}deg)`},children:(0,X.jsx)(K,{components:e,traits:t,size:d,breathe:!1})})},n)})})}var Sn=u(`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)]`),Cn=u(`min-w-0 flex-1 bg-transparent text-body-medium-lighter text-[var(--content-default)]`,`placeholder:text-[var(--content-tertiary)] outline-none`,$e);function Q(e){return e.trim().toLowerCase()}function wn(e,t,n=[],r=8){let i=Q(t),a=new Set(n.map(Q)),o=[];for(let t of e)if(!a.has(Q(t))&&((i.length===0||Q(t).includes(i))&&o.push(t),o.length>=r))break;return o}function Tn({id:e,options:t,highlighted:n,showAddHint:r,onPick:i,onHover:a}){return(0,X.jsxs)(`ul`,{id:e,role:`listbox`,className:u(`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,X.jsx)(`li`,{id:`${e}-opt-${r}`,role:`option`,"aria-selected":r===n,onMouseDown:e=>{e.preventDefault(),i(t.value)},onMouseEnter:()=>a(r),className:u(`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,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(_,{size:15,className:`shrink-0 text-[var(--content-tertiary)]`}),(0,X.jsxs)(`span`,{className:`min-w-0 truncate`,children:[`Add “`,t.value,`”`]}),(0,X.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,X.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 En({htmlFor:e,required:t,children:n}){return(0,X.jsxs)(`label`,{htmlFor:e,className:`text-body-small-default text-[var(--content-secondary)]`,children:[n,t?(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`}):null]})}function Dn(e,t){(0,Y.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t()}return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])}function On({label:e,placeholder:t,values:n,onChange:r,suggestions:i}){let a=(0,Y.useId)(),o=`tac-${a}`,s=`tac-list-${a}`,c=(0,Y.useRef)(null),[l,d]=(0,Y.useState)(``),[f,p]=(0,Y.useState)(!1),[m,h]=(0,Y.useState)(-1),g=(0,Y.useMemo)(()=>wn(i,l,n),[i,l,n]),_=l.trim(),y=(0,Y.useMemo)(()=>{if(!_)return!1;let e=Q(_);return!(n.some(t=>Q(t)===e)||g.some(t=>Q(t)===e))},[_,n,g]),b=(0,Y.useMemo)(()=>{let e=g.map(e=>({value:e,isAdd:!1}));return y?[...e,{value:_,isAdd:!0}]:e},[g,y,_]);Dn(c,()=>p(!1)),(0,Y.useEffect)(()=>{h(e=>e>=b.length?b.length-1:e)},[b.length]);let x=f&&b.length>0,S=!y;function w(e){let t=e.trim();t&&(n.some(e=>Q(e)===Q(t))||r([...n,t]),d(``),h(-1))}function T(e){r(n.filter(t=>t!==e))}function E(e){e.key===`ArrowDown`?(e.preventDefault(),p(!0),h(e=>Math.min(e+1,b.length-1))):e.key===`ArrowUp`?(e.preventDefault(),h(e=>Math.max(e-1,0))):e.key===`Enter`?x&&m>=0?(e.preventDefault(),w(b[m].value)):l.trim()&&(e.preventDefault(),w(l)):e.key===`,`?(e.preventDefault(),w(l)):e.key===`Backspace`&&l.length===0&&n.length>0?T(n[n.length-1]):e.key===`Escape`&&x&&(e.preventDefault(),p(!1))}return(0,X.jsxs)(`div`,{ref:c,className:`relative flex flex-col gap-1.5`,children:[(0,X.jsx)(En,{htmlFor:o,children:e}),(0,X.jsxs)(`div`,{className:u(Sn,`min-h-9 flex-wrap py-1.5`),children:[(0,X.jsx)(v,{size:16,"aria-hidden":!0,className:`shrink-0 self-center text-[var(--content-tertiary)]`}),n.map(e=>(0,X.jsx)(C,{onRemove:()=>T(e),removeLabel:`Remove ${e}`,className:`border border-[var(--border-base)] bg-[var(--surface-base)]`,children:e},e)),(0,X.jsx)(`input`,{id:o,role:`combobox`,"aria-expanded":x,"aria-controls":s,"aria-autocomplete":`list`,"aria-activedescendant":m>=0?`${s}-opt-${m}`:void 0,autoComplete:`off`,className:u(Cn,`h-6 w-24`),placeholder:n.length===0?t:``,value:l,onChange:e=>{d(e.target.value),p(!0)},onFocus:()=>p(!0),onKeyDown:E})]}),x&&(0,X.jsx)(Tn,{id:s,options:b,highlighted:m,showAddHint:S,onPick:w,onHover:h})]})}var kn=`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 An(e,t){return{animation:`fadeInUp 0.4s ease-out ${e}s both`,...t==null?{}:{position:`relative`,zIndex:t}}}function jn({initialFirstName:e=``,initialLastName:t=``,onSubmit:n}){let[r,i]=(0,Y.useState)(e),[o,s]=(0,Y.useState)(t),[c,l]=(0,Y.useState)(``),[u,d]=(0,Y.useState)([]),p=r.trim().length>0&&c.trim().length>0;function m(){p&&n({firstName:r,lastName:o,role:c,hobbies:u})}return(0,X.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,children:(0,X.jsxs)(G,{showCreatureFooter:!1,children:[(0,X.jsx)(xn,{}),(0,X.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,X.jsx)(`h1`,{className:`text-center font-serif text-[2.75rem] leading-[1.05] tracking-tight`,style:An(.05),children:`Let's start with you.`}),(0,X.jsx)(`p`,{className:`mt-3 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:An(.12),children:`A few details so I can get to know you.`}),(0,X.jsxs)(`div`,{className:`mt-10 flex w-full flex-col gap-5`,children:[(0,X.jsx)(`div`,{style:An(.2,40),children:(0,X.jsx)(w,{label:(0,X.jsxs)(X.Fragment,{children:[`What should I call you?`,(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`})]}),placeholder:`Your name`,value:r,onChange:e=>i(e.target.value),className:$e,autoFocus:!0,required:!0,fullWidth:!0})}),(0,X.jsx)(`div`,{style:An(.27,30),children:(0,X.jsx)(w,{label:`And your last name?`,placeholder:`Your last name (optional)`,value:o,onChange:e=>s(e.target.value),className:$e,fullWidth:!0})}),(0,X.jsx)(`div`,{style:An(.34,20),children:(0,X.jsx)(w,{label:`Your role`,placeholder:`What do you do for work?`,value:c,onChange:e=>l(e.target.value),className:$e,required:!0,fullWidth:!0})}),(0,X.jsx)(`div`,{style:An(.41,10),children:(0,X.jsx)(On,{label:`Any hobbies?`,placeholder:`Cars, books, growing tomatoes?`,values:u,onChange:d,suggestions:kn})})]}),(0,X.jsx)(`div`,{className:`mt-10 w-full`,style:An(.5),children:(0,X.jsx)(a,{type:`submit`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),fullWidth:!0,disabled:!p,className:`h-11 text-base`,children:`Continue`})})]})]})})}function Mn(){let e=q(),t=Z.use.characters(),n=Z.use.selectedIndex();return(0,Y.useMemo)(()=>{let r=t[n],i=e?.colors.find(e=>e.id===r?.color)?.hex;return Le(i??`var(--surface-base)`)},[e,t,n])}function $({onBack:e,onNext:t,tone:n}){let r=Mn(),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,X.jsxs)(`div`,{className:`absolute left-4 top-6 z-10 flex items-center gap-3`,children:[(0,X.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,X.jsx)(d,{className:`h-4 w-4`})}),t?(0,X.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,X.jsx)(f,{className:`h-4 w-4`})}):null]})}var Nn=[`EXAVITQu4vr4xnSDxMaL`,`onwK4e9ZLuTAKqWW03F9`,`TX3LPaxmHKxFdv7VOQHJ`,`aura-2-helena-en`,`pNInz6obpgDQGcFmaJgB`,`aura-2-luna-en`,`IKne3meq5aSn9XLyUdCD`,`aura-2-pandora-en`,`aura-2-apollo-en`,`aura-2-thalia-en`,`Xb7hH8MSUJpSbSDYk0k2`,`aura-2-theia-en`];function Pn(e,t){if(t.length===0)return null;let n=Nn[e%Nn.length];return t.find(e=>e.model===n)??t[e%t.length]??null}var Fn=[`Ziggy`,`Quill`,`Luna`,`Remy`,`Cleo`,`Cade`];function In(e,t){let n=[];for(let r=0;r<e;r++)r!==t&&n.push(r);return{centerChar:t,edgeOrder:n}}function Ln({onContinue:e,onBack:t,onForward:n,canAuditionVoice:r=!0}){let i=q(),o=Z.use.characters(),s=Z.use.ensureGenerated(),c=Z.use.selectedIndex(),l=Z.use.setSelectedIndex(),u=Z.use.setCharacterTraits();(0,Y.useEffect)(()=>{i&&s(i)},[i,s]);let m=o.length,[_,v]=(0,Y.useState)(null),[x,S]=(0,Y.useState)(``),[C,w]=(0,Y.useState)(!1),T=(0,Y.useRef)(!1),E=(0,Y.useRef)(null),{ref:D,size:O}=Ye(),[k,ee]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{m>0&&_===null&&v(In(m,c))},[m,c,_]),(0,Y.useEffect)(()=>{_&&l(_.centerChar)},[_,l]);let A=_?.centerChar;(0,Y.useEffect)(()=>{A!=null&&!T.current&&S(Fn[A%Fn.length])},[A]),(0,Y.useEffect)(()=>{C&&(E.current?.focus(),E.current?.select())},[C]);let{voices:j,loading:M}=Ue({enabled:r}),N=(0,Y.useMemo)(()=>A==null?null:Pn(A,j),[A,j]),{previewingModel:te,play:ne,stop:re}=We(),ie=N!==null&&te===N.model,P=!N&&M;function ae(){if(N){if(ie){re();return}ne(N)}}function F(e){if(!_||e===_.centerChar)return;let t=_.edgeOrder.indexOf(e);if(t<0)return;re();let n=[..._.edgeOrder];n[t]=_.centerChar,ee({entering:{char:e,fromSlot:t},exiting:{char:_.centerChar,toSlot:t}}),v({centerChar:e,edgeOrder:n})}let I=()=>_&&F((_.centerChar+1)%m),oe=()=>_&&F((_.centerChar-1+m)%m),L=(0,Y.useMemo)(()=>_?o[_.centerChar]:void 0,[_,o]),se=!!i&&!!_&&!!L;function R(){L&&e({traits:L,name:x.trim(),voiceModel:N?.model??null})}function ce(){if(T.current=!0,S(e=>{let t=Fn.filter(t=>t!==e),n=t.length>0?t:Fn;return n[Math.floor(Math.random()*n.length)]}),i&&_&&L){let e=it(i);for(;e.bodyShape===L.bodyShape&&e.eyeStyle===L.eyeStyle&&e.color===L.color;)e=it(i);u(_.centerChar,e)}}let le=`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,X.jsx)(`div`,{ref:D,"data-theme":`dark`,className:`relative h-full overflow-hidden bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,X.jsxs)($t,{size:O,children:[se&&(0,X.jsx)(vn,{components:i,characters:o,centerChar:_.centerChar,edgeOrder:_.edgeOrder,entering:k?.entering??null,exiting:k?.exiting??null,onEnterComplete:e=>ee(t=>t?.entering.char===e?null:t),onSelectChar:F}),(0,X.jsx)($,{tone:`light`,onBack:t,onNext:n?R:void 0}),(0,X.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,X.jsx)(`button`,{type:`button`,"aria-label":`Previous character`,onClick:oe,className:`absolute left-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${le}`,children:(0,X.jsx)(d,{className:`h-4 w-4`})}),(0,X.jsx)(`button`,{type:`button`,"aria-label":`Next character`,onClick:I,className:`absolute right-[calc(50%-170px)] top-[43%] -translate-y-1/2 ${le}`,children:(0,X.jsx)(f,{className:`h-4 w-4`})}),(0,X.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,X.jsxs)(`div`,{className:`flex flex-col items-center gap-4`,children:[C?(0,X.jsx)(`input`,{ref:E,value:x,onChange:e=>{T.current=!0,S(e.target.value)},onBlur:()=>w(!1),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),w(!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,X.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,X.jsxs)(`button`,{type:`button`,onClick:()=>w(!0),"aria-label":`Edit name`,className:`flex cursor-pointer items-center gap-2.5`,children:[(0,X.jsx)(`span`,{className:`text-2xl font-medium ${x?`text-[var(--content-default)]`:`text-[var(--content-tertiary)]`}`,children:x||`Name your assistant`}),(0,X.jsx)(g,{className:`h-5 w-5 text-[var(--content-tertiary)]`})]}),(0,X.jsx)(`button`,{type:`button`,onClick:ce,"aria-label":`Shuffle name and appearance`,title:`Shuffle name and appearance`,className:`cursor-pointer text-[var(--content-tertiary)] transition-[transform,color] duration-300 hover:rotate-180 hover:text-[var(--content-default)]`,children:(0,X.jsx)(p,{className:`h-5 w-5`})})]}),r&&(0,X.jsxs)(`button`,{type:`button`,onClick:ae,disabled:!N,title:`Hear my voice`,"aria-label":ie?`Stop the voice sample`:`Hear my voice`,"aria-busy":P,className:`flex cursor-pointer items-center gap-2 rounded-full border border-[color-mix(in_srgb,var(--content-default)_22%,transparent)] px-4 py-2 text-sm text-[var(--content-default)] transition-colors duration-150 hover:bg-[color-mix(in_srgb,var(--content-default)_10%,transparent)] disabled:cursor-default ${P?`disabled:opacity-70`:`disabled:opacity-40`}`,children:[P?(0,X.jsx)(h,{className:`h-4 w-4 animate-spin`}):ie?(0,X.jsx)(y,{className:`h-4 w-4`}):(0,X.jsx)(b,{className:`h-4 w-4`}),`Hear my voice`]})]}),(0,X.jsx)(a,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),disabled:!se,onClick:R,className:`h-11 w-[234px] text-base`,children:`Continue`})]})]})})}var Rn=.25,zn=.46,Bn=.3,Vn=.85,Hn=40,Un=14,Wn=8;function Gn({entrance:e=!1,entranceDelay:t=0,bumpNonce:n=0,settleBlink:r=!0}){let i=q(),a=Z.use.characters(),o=Z.use.selectedIndex(),s=W(),{w:c,h:l}=en(),[u,d]=(0,Y.useState)({x:0,y:0});(0,Y.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=Pe();(0,Y.useEffect)(()=>{n>0&&!s&&p.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[n,s,p]);let[m,h]=(0,Y.useState)(!1),[g,_]=(0,Y.useState)(!e);(0,Y.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,Y.useMemo)(()=>{if(!i||!v)return null;let e=i.eyeStyles.find(e=>e.id===v.eyeStyle);return e?{paths:e.paths,bbox:Re(e.paths.map(e=>ze(e.svgPath)))}:null},[i,v]);if(!y)return null;let b=c*Vn,x=Math.min(Math.min(c,l)*Bn,b*y.bbox.h/y.bbox.w),S=x*y.bbox.w/y.bbox.h,C=(c-S)/2,w=l-(1-Rn)*x+l*.05,T=Hn/100*l-(w+x/2),E=(zn-Rn)*x,D=y.bbox.x+y.bbox.w/2,O=y.bbox.y+y.bbox.h/2;return(0,X.jsx)(H.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,X.jsx)(H.div,{animate:p,children:(0,X.jsx)(`div`,{style:{transform:`translate(${u.x*Un}px, ${u.y*Wn}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,X.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,X.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,X.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})})})}var Kn=200,qn=40;function Jn({firstName:e,assistantName:t,onContinue:n,onBack:r,onForward:i}){let o=q(),s=Z.use.characters(),c=Z.use.selectedIndex(),l=W(),{ref:u,size:{w:d,h:p}}=Ye(),m=Mn(),h=s.length>0?s[c]:void 0,g=(0,Y.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,X.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,style:{backgroundColor:`var(--surface-base)`}});let y=1.25*Math.max(d,p),b=y*g.body.viewBox.height/g.body.viewBox.width,x=(d-y)/2,S=(p-b)/2,C=Kn/y,w=(qn/100-.5)*p;return(0,X.jsx)(`div`,{ref:u,"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`},children:(0,X.jsxs)($t,{size:{w:d,h:p},children:[(0,X.jsx)(H.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,X.jsx)(H.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,X.jsx)(`path`,{d:g.body.svgPath,fill:g.color})}),(0,X.jsx)(Gn,{entrance:!0}),(0,X.jsx)(H.div,{initial:l?!1:{opacity:0},animate:{opacity:1},transition:l?{duration:0}:{duration:.4,delay:1},children:(0,X.jsx)($,{onBack:r,onNext:i})}),(0,X.jsxs)(`div`,{className:Qe,children:[(0,X.jsxs)(H.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,X.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fgDeep},children:_}),(0,X.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:m.fg},children:v})]}),(0,X.jsx)(H.div,{initial:l?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:l?{duration:0}:{duration:.4,delay:1.15},children:(0,X.jsx)(a,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),onClick:n,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})})}var Yn=.3,Xn=.85,Zn=.25;function Qn(){let e=q(),t=Z.use.characters(),n=Z.use.selectedIndex(),r=t.length>0?t[n]:void 0,{w:i,h:a}=en(),o=(0,Y.useMemo)(()=>{if(!e||!r)return null;let t=e.eyeStyles.find(e=>e.id===r.eyeStyle);return t?{paths:t.paths,bbox:Re(t.paths.map(e=>ze(e.svgPath)))}:null},[e,r]),s=o?Math.min(Math.min(i,a)*Yn,i*Xn*o.bbox.h/o.bbox.w):0;return{art:o,eyesW:o?s*o.bbox.w/o.bbox.h:0,eyesH:s,restCy:a-Zn*s,centerX:i/2,w:i,h:a}}function $n({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=B(i,e=>e-n/2),u=e.bbox.x+e.bbox.w/2,d=e.bbox.y+e.bbox.h/2;return(0,X.jsx)(H.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,X.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,X.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,X.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})}var er={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 tr(e,t){let n=er[e];return n&&n.length>0?n:t.filter(t=>t!==e)}var nr=new Set([`orange`,`pink`,`red`]);function rr(e,t){return nr.has(e)&&nr.has(t)}function ir(e,t,n){let r=tr(e,t),i=[];for(let e of r){if(i.length>=n)break;i.some(t=>rr(t,e))||i.push(e)}for(let e of r){if(i.length>=n)break;i.includes(e)||i.push(e)}return i}var ar=`You’ve used AI that just answers questions.`,or=`The more I help,`,sr=`I’m different.`,cr=`the better I get,`,lr=`and the less you have to do.`,ur=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],dr=290;function fr({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,X.jsx)(H.div,{className:`relative w-full overflow-hidden`,initial:!1,animate:{height:o?t:e},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:(0,X.jsxs)(H.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,X.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:e},children:(0,X.jsx)(H.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,X.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:t},children:(0,X.jsx)(`span`,{className:`block`,children:i})})]})})}function pr({onContinue:e,onBack:t,onForward:n}){let r=Mn(),i=W(),{art:o,eyesW:s,eyesH:c,restCy:l,centerX:u,w:d,h:p}=Qn(),h=q(),g=Z.use.characters(),_=Z.use.selectedIndex(),v=g.length>0?g[_]:void 0,y=p>0&&p<=800,b=y?.17:.22,x=y?`top-[17%]`:`top-[22%]`,S=je(0),C=je(1),w=(0,Y.useMemo)(()=>!h||!v?`orange`:ir(v.color,h.colors.map(e=>e.id),1)[0]??`orange`,[h,v]),T=Math.min(220,Math.max(150,d*.16)),E=-T,D=-T*.4,O=je(-220),k=(0,Y.useMemo)(()=>!h||!v?[]:ir(v.color,h.colors.map(e=>e.id),3),[h,v]),ee=Math.max(.42,Math.min(d/1100,1)),A=Math.round(dr*ee),j=-A*1.1,M=-A*.42,N=je(-320),[te,ne]=(0,Y.useState)(!!i),[re,ie]=(0,Y.useState)(!!i),[P,ae]=(0,Y.useState)(!1),[F,I]=(0,Y.useState)(!1),[oe,L]=(0,Y.useState)(!1),[se,R]=(0,Y.useState)(!1),[ce,le]=(0,Y.useState)(!!i),ue=Math.min(d,768)-48,de=(0,Y.useRef)(null),fe=(0,Y.useRef)(null),z=(0,Y.useRef)(null),pe=(0,Y.useRef)(null),me=(0,Y.useRef)(null),[he,ge]=(0,Y.useState)(0),[_e,ve]=(0,Y.useState)(0),[ye,be]=(0,Y.useState)(0),[xe,Se]=(0,Y.useState)(0),[Ce,we]=(0,Y.useState)(0);return(0,Y.useLayoutEffect)(()=>{de.current?.offsetHeight&&ge(de.current.offsetHeight),fe.current?.offsetHeight&&ve(fe.current.offsetHeight),z.current?.offsetHeight&&be(z.current.offsetHeight),pe.current?.offsetHeight&&Se(pe.current.offsetHeight),me.current?.offsetHeight&&we(me.current.offsetHeight)},[ue]),(0,Y.useEffect)(()=>{S.set(l),R(!0)},[l,S]),(0,Y.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{ae(!0),I(!0),L(!0)},1400);return()=>clearTimeout(e)},[i]),(0,Y.useEffect)(()=>{if(i||!o)return;S.set(l),C.set(1),O.set(E),N.set(j),ne(!1),ie(!1),ae(!1),I(!1);let e=Math.max(c*.5,p*b-36),t=[],n=[],r=!1,a=e=>(t.push(e),e),s=e=>new Promise(t=>{n.push(setTimeout(t,e))});return(async()=>{if(await s(200),r||(ne(!0),await Promise.all([a(m(S,e,{duration:.55,ease:`easeOut`})),a(m(C,.55,{duration:.55,ease:`easeOut`}))]),r)||(ie(!0),await Promise.all([a(m(S,l,{type:`spring`,stiffness:210,damping:15})),a(m(C,1,{duration:.45,ease:`easeOut`}))]),r)||(await s(900),r)||(ae(!0),I(!0),await a(m(O,[E,D,D,E],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]})),r)||(await s(150),r))return;L(!0);let t=a(m(N,[j,M,M,j],{duration:1.5,times:[0,.28,.62,1],ease:[`easeOut`,`easeInOut`,`easeInOut`]}));await s(700),!r&&(le(!0),await t)})(),()=>{r=!0,t.forEach(e=>e.stop()),n.forEach(clearTimeout)}},[i,o,p,b,c,l,S,C,O,E,D,N,j,M]),(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:r.fg},children:[(0,X.jsx)($,{onBack:t,onNext:n}),(0,X.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:ue,fontFamily:`var(--font-serif)`},children:[(0,X.jsx)(`span`,{ref:de,className:`block`,children:ar}),(0,X.jsx)(`span`,{ref:fe,className:`block`,children:or}),(0,X.jsx)(`span`,{ref:z,className:`block`,children:sr}),(0,X.jsx)(`span`,{ref:pe,className:`block`,children:cr}),(0,X.jsx)(`span`,{ref:me,className:`block`,children:lr})]}),se&&o&&(0,X.jsx)($n,{art:o,eyesW:s,eyesH:c,centerX:u,eyeCy:S,eyeScale:C,blinking:!1}),!i&&h&&(0,X.jsx)(H.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{left:Math.max(16,d*.05),top:0,y:O,width:T,height:T},children:(0,X.jsx)(K,{components:h,traits:{bodyShape:`blob`,eyeStyle:`goofy`,color:w},size:T,breathe:!1})}),!i&&h&&(0,X.jsx)(H.div,{"aria-hidden":`true`,className:`pointer-events-none absolute right-0 top-0 z-[1] flex items-start`,style:{right:-Math.round(A*.12),y:N},children:ur.map((e,t)=>(0,X.jsx)(`div`,{style:{width:A,height:A,marginLeft:t===0?0:-A*.34,zIndex:ur.length-t},children:(0,X.jsx)(K,{components:h,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:k[t]??`teal`},size:A,breathe:!1})},e.bodyShape))}),(0,X.jsxs)(`div`,{className:`${Qe.replace(`top-[30%]`,x)} max-w-3xl max-md:top-[34%]`,children:[(0,X.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,X.jsx)(fr,{firstH:he,secondH:_e,color:r.fgDeep,firstText:ar,secondText:or,revealed:te,carouseled:P,revealFrom:`bottom`,revealDuration:.55,reduce:!!i}),(0,X.jsx)(fr,{firstH:ye,secondH:xe,color:r.fg,firstText:sr,secondText:cr,revealed:re,carouseled:F,revealFrom:`top`,revealDuration:.45,reduce:!!i}),(0,X.jsx)(H.div,{className:`relative w-full overflow-hidden`,style:{color:r.fg},initial:!1,animate:{height:oe?Ce:0},transition:i?{duration:0}:{duration:.5,ease:`easeInOut`},children:Ce>0&&(0,X.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:Ce},children:(0,X.jsx)(H.span,{className:`block`,initial:!1,animate:{clipPath:oe?`inset(0% 0 0% 0)`:`inset(100% 0 0 0)`},transition:i?{duration:0}:{duration:.5,ease:`easeOut`},children:lr})})})]}),ce&&(0,X.jsx)(H.div,{initial:i?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:i?{duration:0}:{duration:.4},children:(0,X.jsx)(a,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,X.jsx)(f,{size:16}),onClick:e,className:`h-11 w-[234px] text-base`,children:`Continue`})})]})]})}function mr({idSuffix:e}){let t=`cf-${e}`,n=`cr-${e}`,r=`cg-${e}`,i=`cs-${e}`;return(0,X.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,height:`100%`,style:{display:`block`,position:`absolute`,inset:0},children:[(0,X.jsxs)(`defs`,{children:[(0,X.jsxs)(`linearGradient`,{id:n,x1:`0.12`,y1:`0.05`,x2:`0.85`,y2:`0.95`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF0AE`}),(0,X.jsx)(`stop`,{offset:`50%`,stopColor:`#F4C231`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#D29B1A`})]}),(0,X.jsxs)(`radialGradient`,{id:t,cx:`42%`,cy:`36%`,r:`82%`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF6CE`}),(0,X.jsx)(`stop`,{offset:`55%`,stopColor:`#F8CB3E`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#EEB52C`})]}),(0,X.jsxs)(`radialGradient`,{id:r,cx:`36%`,cy:`24%`,r:`44%`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`0.85`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]}),(0,X.jsxs)(`radialGradient`,{id:i,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,X.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`1`}),(0,X.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]})]}),(0,X.jsx)(`circle`,{cx:`50`,cy:`50`,r:`49`,fill:`url(#${n})`}),(0,X.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,X.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`url(#${t})`}),(0,X.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`none`,stroke:`#C28F18`,strokeOpacity:`0.35`,strokeWidth:`1.4`}),(0,X.jsxs)(`g`,{fontFamily:`var(--font-sans), system-ui, sans-serif`,fontWeight:900,fontSize:`58`,textAnchor:`middle`,children:[(0,X.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#C88E16`,transform:`translate(1.3 1.6)`,children:`$`}),(0,X.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#FFF6CF`,opacity:`0.7`,transform:`translate(-1.3 -1.5)`,children:`$`}),(0,X.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#F4C12A`,children:`$`})]}),(0,X.jsx)(`ellipse`,{cx:`38`,cy:`28`,rx:`22`,ry:`14`,fill:`url(#${r})`}),(0,X.jsx)(`ellipse`,{cx:`34`,cy:`24`,rx:`7`,ry:`4.5`,fill:`url(#${i})`})]})}function hr({size:e,tiltX:t=0,tiltY:n=0,shadow:r=!0,spinning:i=!1,className:a}){return(0,X.jsxs)(`div`,{style:{position:`relative`,width:e,height:e},children:[r&&(0,X.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,X.jsx)(`div`,{style:{width:e,height:e,perspective:e*10},children:(0,X.jsxs)(H.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,X.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(0.5px)`},children:(0,X.jsx)(mr,{idSuffix:`front`})}),(0,X.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(-0.5px) rotateY(180deg)`},children:(0,X.jsx)(mr,{idSuffix:`back`})})]})})]})}var gr=.3,_r=.95;function vr({onClaim:e,onBumpEyes:t,onBack:n,onForward:r}){let i=W(),a=Mn(),{h:o}=en(),[s,c]=(0,Y.useState)(!1);function l(){if(!s){if(c(!0),i){e();return}window.setTimeout(t,gr*1e3)}}let u=o*.42,d=-o*.08,p=o*.9;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,X.jsx)($,{onBack:n,onNext:r}),(0,X.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,X.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,X.jsx)(`br`,{className:`max-md:hidden`}),` to get started.`]}),(0,X.jsx)(`div`,{className:`mt-10 flex flex-col items-center gap-4`,children:(0,X.jsx)(H.div,{animate:s&&!i?{y:[0,u,d,p],scale:[1,1,1,.2],opacity:[1,1,1,0]}:{},transition:{duration:_r,times:[0,gr/_r,.62,1],ease:[`easeIn`,`easeOut`,`easeIn`]},onAnimationComplete:()=>{s&&e()},children:(0,X.jsx)(hr,{size:88,spinning:s&&!i})})}),!s&&(0,X.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,X.jsx)(f,{className:`h-4 w-4`})]})]})]})}He();var yr=640,br=[{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`}}],xr=[`9%`,`27%`,`45%`,`62%`,`79%`],Sr=50,Cr=.3*.75,wr=`rgba(36, 41, 46, 0.2)`,Tr=`#FDFDFC`,Er=.16;function Dr(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 Or(){let[e,t]=(0,Y.useState)(()=>typeof window>`u`?1280:window.innerWidth);return(0,Y.useEffect)(()=>{let e=()=>t(window.innerWidth);return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function kr({components:e,traits:t,side:n,top:r,size:i,progress:a}){let o=Math.max(0,Math.min(1,a)),s=100+Er*100,c=n===`left`?-100+s*o:100-s*o;return(0,X.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,X.jsx)(K,{components:e,traits:t,size:i,breathe:!1})})}function Ar({axis:e,value:t,onValueChange:n,fg:r,disabled:i}){return(0,X.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,X.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,X.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,X.jsxs)(D,{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]??Sr),disabled:i,min:0,max:100,step:1,"aria-label":`${e.left} to ${e.right}`,children:[(0,X.jsx)(T,{className:`relative h-2 w-full grow rounded-full sm:h-3`,style:{backgroundColor:wr}}),(0,X.jsx)(E,{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:Tr}})]})]})}function jr({components:e,values:t,sideAvatars:n,size:r}){return(0,X.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 -z-10`,children:br.map((i,a)=>{let o=t[i.id]??Sr,s=Math.max(0,(Sr-o)/Sr),c=Math.max(0,(o-Sr)/Sr),l=xr[a]??`50%`,u=n[a];return u?(0,X.jsxs)(`div`,{children:[(0,X.jsx)(kr,{components:e,traits:u.left,side:`left`,top:l,size:r,progress:s}),(0,X.jsx)(kr,{components:e,traits:u.right,side:`right`,top:l,size:r,progress:c})]},i.id):null})})}function Mr({values:e,onValueChange:t,locked:n,onContinue:r,onBack:i,onForward:a}){let o=Mn(),s=q(),c=Or(),{w:l,h:u}=en(),d=Math.round(Cr*Math.min(l,u))+12,p=c>=yr,m=Z.use.characters()[Z.use.selectedIndex()]?.color,h=Math.round(Math.min(300,Math.max(160,c*.16))),g=(0,Y.useMemo)(()=>{let e=s?.colors.map(e=>e.id)??[],t=Dr(br.map(e=>e.leftAvatar.color),m,e),n=Dr(br.map(e=>e.rightAvatar.color),m,e);return br.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,X.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:o.fg},children:[(0,X.jsx)($,{onBack:i,onNext:a}),p&&s&&(0,X.jsx)(jr,{components:s,values:e,sideAvatars:g,size:h}),(0,X.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:d},children:[(0,X.jsx)(`div`,{className:`w-full min-h-14 shrink-[4]`,style:{flexBasis:Math.round(u*.14)}}),(0,X.jsxs)(`div`,{className:`flex shrink-0 flex-col items-center gap-4`,children:[(0,X.jsx)(`h1`,{className:`text-center text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`Create my personality`}),n?(0,X.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,X.jsx)(`div`,{className:`w-full min-h-3 shrink-[2]`,style:{flexBasis:Math.round(40+u*.03)}}),br.map((r,i)=>(0,X.jsxs)(Y.Fragment,{children:[i>0&&(0,X.jsx)(`div`,{className:`w-full min-h-2.5 shrink basis-8 sm:basis-11`}),(0,X.jsx)(Ar,{axis:r,value:e[r.id]??Sr,onValueChange:e=>t(r.id,e),fg:o.fg,disabled:n})]},r.id)),(0,X.jsx)(`div`,{className:`w-full min-h-3 shrink-[2] basis-14`}),(0,X.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,X.jsx)(f,{className:`h-4 w-4`})]})]})]})}function Nr({assistantId:e,assistantReady:t,onConnected:n,onSkip:r,onBack:i,onForward:a,missingCalendarScope:o=!1,onRetry:s,hatchError:c=null}){let l=Mn(),{handleConnect:u,oauthInProgress:d}=Me({assistantId:e??``,onConnect:n}),f=()=>{s?.(),u()},p=!e||!t,m=p||d;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:l.fg},children:[(0,X.jsx)($,{onBack:i,onNext:a}),(0,X.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,X.jsx)(`h1`,{className:`text-[2.6rem] leading-tight`,style:{fontFamily:`var(--font-serif)`},children:p?`Waking up`:o?`Access not enabled`:`Let me make this easy`}),(0,X.jsx)(`p`,{className:`text-[16px]`,style:{color:l.fgMuted},children:p?`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,X.jsxs)(`div`,{className:`mt-6 flex w-[234px] flex-col items-center gap-4`,children:[(0,X.jsx)(`button`,{type:`button`,onClick:f,disabled:m,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:p?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(h,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Starting assistant…`]}):d?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(h,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization…`]}):o?`Try again`:`Connect Calendar →`}),(!p||c)&&(0,X.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=Le(`#17191C`);function Fr(){let[e,t]=(0,Y.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,Y.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function Ir(){let e=q(),t=Z.use.characters(),n=Z.use.selectedIndex();return{components:e,chosen:t.length>0?t[n]:void 0}}function Lr({size:e=64,isAssistantBusy:t=!1}){let{components:n,chosen:r}=Ir();return!n||!r?(0,X.jsx)(`div`,{style:{width:e,height:e}}):(0,X.jsx)(`div`,{className:`shrink-0`,style:{width:e,height:e},children:(0,X.jsx)(K,{components:n,traits:r,size:e,isAssistantBusy:t})})}var Rr=`pt-[0.7rem] text-[2.6rem] leading-none`,zr=64,Br=4500,Vr=7e3;function Hr({onDone:e,onBack:t,onForward:n,scheduledTime:r,awaitingTime:i}){let{components:a,chosen:o}=Ir(),s=W(),{w:c,h:l}=Fr(),u=r?`Check-in scheduled for tomorrow at ${r}!`:`Check-in scheduled!`;(0,Y.useEffect)(()=>{let t=setTimeout(e,i&&!r?Vr:Br);return()=>clearTimeout(t)},[e,i,r]);let d=(0,Y.useRef)(null),[f,p]=(0,Y.useState)(null);(0,Y.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)/zr,h=f?c/2-f.cx:0,g=f?l*.88-f.cy:0,_=l*.05;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden text-white`,children:[(0,X.jsx)($,{onBack:t,onNext:n,tone:`light`}),(0,X.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,X.jsx)(`div`,{ref:d,className:`relative shrink-0`,style:{width:zr,height:zr},children:a&&o&&f&&(0,X.jsx)(H.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,X.jsx)(K,{components:a,traits:o,size:zr})})}),(0,X.jsx)(H.span,{className:Rr,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 Ur=[`Searching the web to get to know you…`,`Reading public profiles…`,`Skimming the highlights…`,`Connecting the dots…`,`Piecing it together…`],Wr=[`Updating my personality…`,`Finding my voice…`,`Getting into character…`],Gr=`Almost there…`,Kr=[...Ur,Gr],qr=[...Wr,Gr],Jr=2800;function Yr({onDone:e,onBack:t,onAdvance:n,onForward:r,ready:i}){let a=Pr,[o,s]=(0,Y.useState)(0);return(0,Y.useEffect)(()=>{n?.(o);let t=o>=Kr.length-1;if(i&&t){let t=setTimeout(e,Jr);return()=>clearTimeout(t)}let r=setTimeout(()=>s(e=>(e+1)%Kr.length),Jr);return()=>clearTimeout(r)},[o,i,e,n]),(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,X.jsx)($,{onBack:t,onNext:r}),(0,X.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,X.jsx)(Lr,{isAssistantBusy:!0}),(0,X.jsx)(U,{mode:`wait`,children:(0,X.jsx)(H.p,{className:`${Rr} 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:Kr[o]},o)})]})]})}function Xr({onDone:e,ready:t}){let n=Pr,[r,i]=(0,Y.useState)(0);return(0,Y.useEffect)(()=>{let n=qr.length-1;if(t){if(r!==n){i(n);return}let t=setTimeout(e,Jr);return()=>clearTimeout(t)}let a=setTimeout(()=>i(e=>(e+1)%qr.length),Jr);return()=>clearTimeout(a)},[r,t,e]),(0,X.jsx)(`div`,{className:`absolute inset-0 z-10`,style:{color:n.fg},children:(0,X.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,X.jsx)(Lr,{isAssistantBusy:!0}),(0,X.jsx)(U,{mode:`wait`,children:(0,X.jsx)(H.p,{className:Rr,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:qr[r]},r)})]})})}function Zr({claims:e,loading:t,onContinue:n,onRejectAll:r,onBack:i,onForward:a}){let o=Pr,s=W(),[c,l]=(0,Y.useState)(()=>new Set),u=e.filter(e=>!c.has(e.claim)),d=u.length>0,p=!t;return(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,X.jsx)($,{onBack:i,onNext:a}),(0,X.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,X.jsxs)(`div`,{className:`flex min-h-0 flex-col overflow-y-auto [&::-webkit-scrollbar]:hidden [scrollbar-width:none]`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,X.jsx)(Lr,{}),(0,X.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`This is what I found about you`})]}),(0,X.jsx)(`p`,{className:`mb-7 mt-2 text-[15px]`,style:{color:o.fgMuted},children:d?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,X.jsx)(`div`,{className:`flex flex-col gap-3`,children:(0,X.jsx)(U,{children:u.map(e=>(0,X.jsxs)(H.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,X.jsx)(`span`,{children:e.claim}),(0,X.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,X.jsx)(x,{className:`h-4 w-4`})})]},e.claim))})}),d&&p&&(0,X.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,X.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,X.jsx)(f,{className:`h-4 w-4`})]})]})]})}var Qr=38,$r=Qr;function ei({head:e,note:t,flyToNote:n,reduce:r,onLanded:i}){let{components:a,chosen:o}=Ir();if(!a||!o)return null;let s=Qr/2,c=n&&t?t:e,l={x:c.x-s,y:c.y-s};return(0,X.jsx)(H.div,{className:`pointer-events-none absolute left-0 top-0`,style:{width:Qr,height:Qr,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,X.jsx)(K,{components:a,traits:o,size:Qr})})}function ti({installedPlugins:e=[],pluginCatalog:t={},onStart:n,onBack:r,onForward:i,disabled:a=!1}){let o=Pr,s=W(),[c,l]=(0,Y.useState)(!1),{components:u,chosen:d}=Ir(),{h:p}=Fr(),m=e.map(e=>({name:e,displayName:Be(e),description:t[e]?.trim()??``})).filter(e=>e.displayName.length>0),h=m.length>0,g=(0,Y.useRef)(null),_=(0,Y.useRef)(null),v=(0,Y.useRef)(null),[y,b]=(0,Y.useState)(null),[x,S]=(0,Y.useState)(!1),[C,w]=(0,Y.useState)(!1),T=(0,Y.useRef)(!1);(0,Y.useEffect)(()=>{T.current=x},[x]),(0,Y.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,Y.useEffect)(()=>{E===void 0||x||S(!0)},[E,x]),(0,X.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:o.fg},children:[(0,X.jsx)($,{onBack:r,onNext:i}),(0,X.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,X.jsxs)(`div`,{className:`flex items-center`,children:[(0,X.jsx)(H.div,{ref:_,className:`shrink-0`,style:{height:Qr},initial:!1,animate:x?{width:0,marginRight:0}:{width:Qr,marginRight:12},transition:s?{duration:0}:{duration:.5,ease:`easeInOut`}}),(0,X.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`You’re all set`})]}),(0,X.jsxs)(`div`,{className:`mt-4 flex items-center gap-3`,children:[C&&u&&d?(0,X.jsx)(`div`,{className:`shrink-0`,children:(0,X.jsx)(K,{components:u,traits:d,size:$r})}):(0,X.jsx)(`div`,{ref:v,className:`shrink-0`,style:{width:$r,height:$r}}),(0,X.jsx)(H.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,X.jsx)(`div`,{className:`flex flex-col gap-3`,style:{marginTop:Math.round(64-p*.02)},children:m.map((e,t)=>(0,X.jsxs)(H.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,X.jsx)(`div`,{className:`text-[15px] font-medium`,children:e.displayName}),e.description&&(0,X.jsx)(`div`,{className:`mt-1 text-[13px] leading-snug`,style:{color:o.fgMuted},children:e.description})]},e.name))}),(0,X.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,X.jsx)(f,{className:`h-4 w-4`})]}),y&&!C&&(0,X.jsx)(ei,{head:y.head,note:y.note,flyToNote:x&&y.note!==void 0,reduce:s,onLanded:()=>w(!0)})]})]})}var ni=[{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})}],ri=`#17191C`,ii=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],ai=290;function oi({peekLevel:e=0,eyesBumpNonce:t=0,darkBg:n=!1,showBottomEyes:r=!0,showTopTeam:i=!1,eyesEntrance:a=!1}){let o=q(),s=Z.use.characters(),c=Z.use.selectedIndex(),l=W(),{w:u}=en(),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,Y.useMemo)(()=>!o||!p?{bg:`var(--surface-base)`,peekColors:[]}:{bg:o.colors.find(e=>e.id===p.color)?.hex??`var(--surface-base)`,peekColors:ir(p.color,o.colors.map(e=>e.id),3)},[o,p]);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(H.div,{className:`absolute inset-0 z-0`,initial:!1,animate:{backgroundColor:n?ri:m},transition:l?{duration:0}:{duration:1,ease:`easeInOut`}}),r&&(0,X.jsx)(Gn,{bumpNonce:t,settleBlink:a,entrance:a}),i&&o&&(0,X.jsx)(`div`,{className:`pointer-events-none absolute right-0 z-[1] flex items-start`,style:{top:-Math.round(ai*d)*.42,right:-Math.round(ai*d)*.12},children:ii.map((e,t)=>{let n=Math.round(ai*d);return(0,X.jsx)(H.div,{style:{width:n,height:n,marginLeft:t===0?0:-n*.34,zIndex:ii.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,X.jsx)(K,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[t]??`teal`},size:n,breathe:!1})},e.bodyShape)})}),o&&(0,X.jsx)(U,{children:(f?ni.filter(e=>e.mobile):ni).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,X.jsx)(H.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,X.jsx)(K,{components:o,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:h[e.colorIdx]??`teal`},size:n,breathe:!1})},`peek-${t}`)})})]})}var si=e(i(),1);function ci({error:e,onRetry:t}){let n=e===I;return(0,si.createPortal)((0,X.jsx)(`div`,{className:`pointer-events-none fixed inset-x-0 top-0 z-50 flex justify-center px-4 pt-[calc(var(--safe-area-inset-top,env(safe-area-inset-top,0px))+5rem)]`,children:(0,X.jsxs)(S,{tone:`error`,title:`Something went wrong`,className:`pointer-events-auto w-auto max-w-[480px] shadow-xl`,actions:n?(0,X.jsx)(a,{asChild:!0,variant:`primary`,size:`regular`,children:(0,X.jsx)(`a`,{href:`${window.location.origin}/download`,children:`Download the macOS app`})}):(0,X.jsx)(a,{variant:`primary`,size:`regular`,onClick:t,children:`Try again`}),children:[e,n?(0,X.jsx)(`p`,{className:`mt-1 text-[color:var(--content-default)]`,children:`Get started today with a local assistant`}):null]})}),document.body)}var li={established:!1,assistantName:null};async function ui(e,t={hasAnyActiveConversation:Ce,fetchAssistantIdentity:Se}){try{if(!await t.hasAnyActiveConversation(e))return li}catch(e){return n(e,{context:`research_onboarding_established_check`}),li}let r=await t.fetchAssistantIdentity(e).catch(()=>null);return{established:!0,assistantName:(typeof r?.name==`string`?r.name.trim():``)||null}}function di({assistantName:e,onKeep:t,onRedo:n,onBack:r}){let i=e?.trim()||``,o=i||`your assistant`,s=i?`${i}'s`:`its`;return(0,X.jsxs)(`div`,{"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`,color:`var(--content-primary)`},children:[(0,X.jsx)($,{onBack:r,tone:`light`}),(0,X.jsxs)(`div`,{className:`${Qe} max-w-xl`,children:[(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,X.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:i?`${i} is already up and running`:`Your assistant is already up and running`}),(0,X.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,X.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col items-center gap-3`,children:[(0,X.jsxs)(a,{variant:`primary`,size:`regular`,fullWidth:!0,onClick:t,className:`h-11 text-base`,children:[`Keep `,o,` and start chatting`,(0,X.jsx)(f,{className:`h-4 w-4`})]}),(0,X.jsxs)(a,{variant:`ghost`,size:`regular`,fullWidth:!0,onClick:n,className:`h-11 text-base`,children:[`Start over and rebuild `,s,` personality`]})]})]})]})}var fi=4e3;function pi(e){return{firstName:e.firstName,lastName:e.lastName,occupation:e.role,hobbies:e.hobbies,timezone:xe()}}function mi(e){let t=e.firstName.trim();return t?`Getting to know ${t}`:`Getting to know you`}He();function hi(){let e=s(),t=oe.use.user(),n=t?.id??null,r=Ne.use.enterFocus(),i=Ne.use.exitFocus(),a=Ne.use.setPendingAvatarTraits(),c=Ne.use.setPendingAvatarVoice(),l=Ne.use.requestSidebarCollapse(),[u,d]=(0,Y.useState)(`form`),{ref:f,size:p}=Ye(),[m,h]=(0,Y.useState)([]),[g,_]=(0,Y.useState)(!1);function v(e){d(e)}function y(e,t=`completed`){Fe(Ie[u],{userId:n,outcome:t}),h([]),v(e)}function b(e){h(e=>[...e,u]),v(e)}function x(){let e=m[m.length-1];e&&(h(e=>e.slice(0,-1)),v(e))}let S=m.length>0?x:void 0,[C,w]=(0,Y.useState)(null),T=(0,Y.useRef)(null),[E,D]=(0,Y.useState)(null),[O,k]=(0,Y.useState)(null),ee=(0,Y.useRef)(!1),[A,j]=(0,Y.useState)(!1),[M,ne]=(0,Y.useState)(null),[re,ie]=(0,Y.useState)({}),[P,ae]=(0,Y.useState)(!1),[F,I]=(0,Y.useState)(null),[se,R]=(0,Y.useState)(null),[ce,le]=(0,Y.useState)(!1),[ue,de]=(0,Y.useState)(!1),[fe,z]=(0,Y.useState)(!1),[pe,me]=(0,Y.useState)(0),[he,_e]=(0,Y.useState)(0),[xe]=o(),Se=ut({hostingParam:xe.get(`hosting`),localMode:te(),gatewayAuthSession:N()}),Ce=xe.get(`assistant`)??void 0,we=xe.get(ve)===`1`,Te=Se,{start:je,retry:Me,ready:Pe,assistantId:B,error:V,awaitReady:H}=ht({adoptExisting:Se,adoptAssistantId:Ce,postCheckoutReturn:we}),U=Ht(),{start:W,hydrate:Le}=U,Re=(0,Y.useRef)(Promise.resolve()),ze=(0,Y.useRef)(!1),[Be,Ve]=(0,Y.useState)(!1),G=(0,Y.useCallback)(e=>{ze.current=e,Ve(e)},[]),[K,q]=(0,Y.useState)(null),He=(0,Y.useRef)(Promise.resolve()),[Ue,We]=(0,Y.useState)(!1),Ge=U.status===`idle`||U.status===`running`,Ke=!Ge&&U.claims.length===0;(0,Y.useEffect)(()=>{i(),a(null),c(null),je()},[i,a,c,je]);let qe=(0,Y.useCallback)(()=>{if(T.current)return;let e=H().then(e=>ui(e)).catch(()=>li);T.current=e,e.then(D)},[H]);(0,Y.useEffect)(()=>{qe()},[qe]);let Je=(0,Y.useCallback)(()=>Promise.race([T.current??Promise.resolve(null),new Promise(e=>{setTimeout(()=>e(null),fi)})]),[]),J=(0,Y.useCallback)(e=>{G(!1),W({awaitAssistantId:H,subject:pi(e),conversationTitle:mi(e),...F?{resumeConversationId:F}:{},onConversationCreated:I,includeSuggestions:!1})},[G,W,H,F,!0]);(0,Y.useLayoutEffect)(()=>{if(g||!n)return;let e=De(n);if(e?.formValues){w(e.formValues),ne(e.faceValues),R(e.checkinTime),de(e.checkinBooked),q(e.keptClaims??null),I(e.researchConversationId??null),e.research&&(Le({...e.research,pluginCatalog:e.research.pluginCatalog??{},droppedClaims:e.research.droppedClaims??[]},H),G(e.droppedClaimsScrubbed??!1),j(!0));let t=Oe(e);d(Te&&(t===`letschat`||t===`meeting`)?`looking`:t),h([])}_(!0)},[g,n,Le,H,Te,G]),(0,Y.useEffect)(()=>{!g||!C||Ee(n,{step:u,formValues:C,faceValues:M,checkinTime:se,checkinBooked:ue,research:U.status===`done`?{status:`done`,claims:U.claims,droppedClaims:U.droppedClaims,suggestions:U.suggestions,installedPlugins:U.installedPlugins,pluginCatalog:U.pluginCatalog}:null,...F?{researchConversationId:F}:{},...K?{keptClaims:K}:{},...Be?{droppedClaimsScrubbed:!0}:{}})},[g,n,u,K,C,M,se,ue,F,U.status,U.claims,U.droppedClaims,U.suggestions,U.installedPlugins,U.pluginCatalog,Be]),(0,Y.useEffect)(()=>{if(!g||!C||U.status!==`idle`&&U.status!==`done`)return;let e=U.status===`idle`,t=C,n=!1;return(async()=>{if(!ee.current){let e=await Je();if(n)return;if(e?.established){k(t),h([]),w(null),d(`existing`),j(!1);return}}j(!1),e&&J(t)})(),()=>{n=!0,j(!1)}},[g,C,U.status,J,Je]),(0,Y.useEffect)(()=>{u===`results`&&Ke&&V===null&&(h([]),d(`suggestions`))},[u,Ke,V]),(0,Y.useEffect)(()=>{ze.current||Ge||U.droppedClaims.length!==0&&(!F||!B||!Pe||U.claims.length>0&&u!==`suggestions`||(G(!0),Re.current=Wt({assistantId:B,conversationId:F,removedClaims:U.droppedClaims,rejectedAll:!1})))},[Ge,U.claims.length,U.droppedClaims,F,B,Pe,u,G]);function Xe(t,i,o,{skip:s=!1,hidden:u=!1}={}){ke(n);let{firstName:d,lastName:f,role:p,hobbies:m}=t,h=[d.trim(),f.trim()].filter(Boolean).join(` `),g=d.trim(),_=!s&&o===void 0;be({tools:[],tasks:[],tone:ot,...h?{userName:h}:{},...p.trim()?{occupation:p.trim()}:{},...s?{}:{initialMessage:o??lt({firstName:d,lastName:f,occupation:p,hobbies:m}),...u?{initialMessageHidden:!0}:{}},..._?{title:g?`Getting to know ${g}`:`Getting to know you`}:{},...i?.name?.trim()?{assistantName:i.name.trim()}:{},...K?.length?{researchFindings:K}:{}});let v=i?.name?.trim();v&&ye(v),a(i?.traits??null),c(i?.voiceModel??null),_&&r(),s||L.markExpectingFirstMessage(),l(),L.checkAssistant(B??void 0).finally(()=>{e(`${ge.assistant}?onboarding=1`,{replace:!0})})}async function Ze(){C&&(await Promise.all([U.awaitPluginInstalls(),Re.current,He.current]),Xe(C,M,Xt(M?.name),{hidden:!0}))}function Qe(){We(!0),He.current=Jt({awaitAssistantId:H,values:re,userName:C?.firstName?.trim()||void 0,assistantName:M?.name?.trim()||void 0}).finally(()=>We(!1))}async function $e(e){if(!ee.current&&(await Je())?.established){k(e),y(`existing`);return}w(e),J(e),y(`face`)}function et(e){if(e.length>0&&!e.includes(`https://www.googleapis.com/auth/calendar.events`)){z(!0);return}if(z(!1),B&&C){let e=[C.firstName.trim(),C.lastName.trim()].filter(Boolean).join(` `);R(null),de(!1),le(!0),Ae({assistantId:B,userName:e||void 0,assistantName:M?.name?.trim()||void 0}).then(e=>{e.scheduled&&(de(!0),R(Zt(e.start,e.timeZone)))}).finally(()=>le(!1))}y(`meeting`)}function tt(){T.current=null,Me(),qe(),U.status===`error`&&C?(U.reset(),J(C)):U.status===`done`&&U.reinstallPlugins(U.installedPlugins,H),P&&Qe()}let nt=e=>(0,X.jsxs)(X.Fragment,{children:[e,V!==null&&(0,X.jsx)(ci,{error:V,onRetry:tt})]});if([`different`,`personality`,`integration`,`letschat`,`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(u)&&C){let e=[`meeting`,`looking`,`results`,`suggestions`,`finishing`].includes(u);return nt((0,X.jsx)(`div`,{ref:f,"data-theme":`dark`,className:`relative h-full overflow-hidden`,children:(0,X.jsxs)($t,{size:p,children:[(0,X.jsx)(oi,{eyesBumpNonce:pe,peekLevel:[`looking`,`results`,`suggestions`,`finishing`].includes(u)?he:0,darkBg:e,showBottomEyes:!e&&u!==`different`,eyesEntrance:u===`personality`}),u===`different`&&(0,X.jsx)(pr,{onContinue:()=>y(`personality`),onBack:()=>b(`intro`),onForward:S}),u===`personality`&&(0,X.jsx)(Mr,{values:re,onValueChange:(e,t)=>ie(n=>({...n,[e]:t})),locked:P,onContinue:()=>{P||(Qe(),ae(!0)),y(`integration`)},onBack:()=>b(`different`),onForward:S}),u===`integration`&&(0,X.jsx)(vr,{onClaim:()=>y(Te?`looking`:`letschat`),onBumpEyes:()=>me(e=>e+1),onBack:()=>b(`personality`),onForward:S}),u===`letschat`&&(0,X.jsx)(Nr,{assistantId:B,assistantReady:Pe,hatchError:V,onConnected:et,missingCalendarScope:fe,onRetry:()=>z(!1),onSkip:()=>{z(!1),y(`looking`,`skipped`)},onBack:()=>b(`integration`),onForward:S}),u===`meeting`&&(0,X.jsx)(Hr,{scheduledTime:se??void 0,awaitingTime:ce,onDone:()=>y(`looking`),onBack:()=>b(`letschat`),onForward:S}),u===`looking`&&(0,X.jsx)(Yr,{onDone:()=>y(Ke?`suggestions`:`results`),onBack:()=>b(Te?`integration`:`letschat`),onAdvance:e=>_e(Math.min(e+1,4)),onForward:S,ready:!Ge&&V===null}),u===`results`&&(0,X.jsx)(Zr,{claims:U.claims,loading:Ge,onContinue:e=>{let t=new Set(e);q(U.claims.filter(e=>!t.has(e.claim)).map(e=>e.claim));let n=ze.current?[]:U.droppedClaims,r=[...e,...n];F&&B&&r.length>0&&(n.length>0&&G(!0),Re.current=Wt({assistantId:B,conversationId:F,removedClaims:r,rejectedAll:!1})),y(`suggestions`)},onRejectAll:()=>{q([]),F&&B&&(G(!0),Re.current=Wt({assistantId:B,conversationId:F,removedClaims:U.claims.map(e=>e.claim),rejectedAll:!0})),y(`suggestions`,`skipped`)},onBack:()=>b(`looking`),onForward:S}),u===`suggestions`&&(0,X.jsx)(ti,{installedPlugins:U.installedPlugins,pluginCatalog:U.pluginCatalog,disabled:A||V!==null||!Pe||B===null,onStart:async()=>{if(Fe(Ie.suggestions,{userId:n,outcome:`completed`}),Ue){h([]),d(`finishing`);return}await Ze()},onBack:()=>b(Ke?`looking`:`results`),onForward:S}),u===`suggestions`&&!1,u===`finishing`&&(0,X.jsx)(Xr,{ready:!Ue&&V===null,onDone:()=>void Ze()})]})}))}return nt(u===`existing`?(0,X.jsx)(di,{assistantName:E?.assistantName??null,onKeep:()=>{Fe(Ie.existing,{userId:n,outcome:`completed`}),ke(n),L.checkAssistant(B??void 0).finally(()=>{e(ge.assistant,{replace:!0})})},onRedo:()=>{let e=O;e&&(ee.current=!0,Fe(Ie.existing,{userId:n,outcome:`skipped`}),w(e),J(e),h([]),v(`face`))},onBack:()=>{k(null),b(`form`)}}):u===`intro`&&C?(0,X.jsx)(Jn,{firstName:C.firstName,assistantName:M?.name,onContinue:()=>y(`different`),onBack:()=>b(`face`),onForward:S}):u===`face`&&C?(0,X.jsx)(Ln,{onContinue:e=>{ne(e),y(`intro`)},onBack:()=>b(`form`),onForward:S,canAuditionVoice:!Se}):(0,X.jsx)(jn,{initialFirstName:t?.firstName??``,initialLastName:t?.lastName??``,onSubmit:$e}))}export{hi as ResearchOnboardingRoute};
@@ -1,3 +1,3 @@
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-BDvXuPkw.js";import{t as o}from"./sparkles-DC8kqYjt.js";import{t as s}from"./tag-D8NAGb0r.js";import{t as c}from"./popover-BFL-uOLh.js";import{n as l,r as u,t as d}from"./research-facts-BcW4fghT.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(`
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-fyWSnR9X.js";import{t as r}from"./jsx-runtime-D3ZM-ToX.js";import{t as i}from"./ban-BKp90l-0.js";import{t as a}from"./globe-CdLn4IX7.js";import{t as o}from"./sparkles-DfEFn3Bh.js";import{t as s}from"./tag-Bz-I4QwU.js";import{t as c}from"./popover-2EzQYOOf.js";import{n as l,r as u,t as d}from"./research-facts-BLXh3yRG.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
2
  `).trim();if(e)return e}return(e.textSegments??[]).join(`
3
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};
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./create-selectors-CEbfsat6.js";import{V as n,f as r,h as i,m as a,nt as o,p as s,rt as c,tt as l}from"./local-mode-BR8wpdXp.js";function u(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var d=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:o(),assistantsHydrated:!1,setFromLockfile:n=>{let o=g(n),s=new Map(t().assistants.map(e=>[e.id,e]));e({assistants:n.assistants.map(e=>({id:e.assistantId,name:e.name,hatchedAt:e.hatchedAt,cloud:e.cloud,runtimeVersion:e.resources?.runtimeVersion,currentReleaseVersion:s.get(e.assistantId)?.currentReleaseVersion,releaseChannel:s.get(e.assistantId)?.releaseChannel,isActiveLockfileAssistant:o===e.assistantId,isLocal:r(e),isPlatformHosted:i(e),isPaired:a(e),runtimeUrl:e.runtimeUrl,organizationId:e.organizationId})),assistantsHydrated:!0}),f(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>{let t=h(e.id);return{id:e.id,name:e.name,hatchedAt:e.created,cloud:t.cloud,runtimeVersion:t.runtimeVersion,runtimeUrl:t.runtimeUrl,currentReleaseVersion:e.current_release_version,releaseChannel:e.release_channel,isActiveLockfileAssistant:t.isActiveLockfileAssistant,...m(e.is_local,t.isPaired)}})}),markHydrated:()=>e({assistantsHydrated:!0}),upsertFromApi:t=>e(e=>{let n=e.assistants.findIndex(e=>e.id===t.id),r=n>=0?e.assistants[n]:void 0,i=h(t.id),a={id:t.id,name:t.name,hatchedAt:t.created,currentReleaseVersion:t.current_release_version,releaseChannel:t.release_channel,...m(t.is_local,i.isPaired,r?.isPaired)};if(r){let t=[...e.assistants];return t[n]={...a,cloud:i.cloud??r.cloud,organizationId:r.organizationId,runtimeVersion:i.runtimeVersion??r.runtimeVersion,runtimeUrl:i.runtimeUrl??r.runtimeUrl,isActiveLockfileAssistant:i.isActiveLockfileAssistant??r.isActiveLockfileAssistant},{assistants:t}}return{assistants:[...e.assistants,{...a,cloud:i.cloud,organizationId:i.organizationId,runtimeVersion:i.runtimeVersion,runtimeUrl:i.runtimeUrl,isActiveLockfileAssistant:i.isActiveLockfileAssistant}]}}),remove:t=>e(e=>({assistants:e.assistants.filter(e=>e.id!==t)})),clear:()=>e({assistants:[]}),setActiveAssistantId:t=>e({activeAssistantId:t}),setSelectedAssistant:t=>{t==null?l():c(t),e({selectedAssistantId:t})}}));function f(e,t){let{assistants:n,selectedAssistantId:r,assistantsHydrated:i}=e();!i||r==null||n.some(e=>e.id===r)||(l(),t({selectedAssistantId:null}))}var p=t(d);function m(e,t,n){let r=t??n??!1;return{isPaired:r,isLocal:r?!1:e,isPlatformHosted:r?!1:!e}}function h(e){let t=n.getState().lockfile,r=t?.assistants.find(t=>t.assistantId===e),i=t?g(t):null;return{cloud:r?.cloud,organizationId:r?.organizationId,runtimeVersion:r?.resources?.runtimeVersion,runtimeUrl:r?.runtimeUrl,isPaired:r?a(r):void 0,isActiveLockfileAssistant:t?i===e:void 0}}function g(e){return e.activeAssistant&&e.assistants.some(t=>t.assistantId===e.activeAssistant)?e.activeAssistant:e.assistants.length===1?e.assistants[0]?.assistantId??null:null}s()&&n.subscribe(e=>{e.lockfile&&e.committed&&d.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&d.setState({selectedAssistantId:o()})});export{p as n,u as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./local-settings-Bx7FsNo5.js";import{t}from"./jsx-runtime-D3ZM-ToX.js";import{t as n}from"./confirm-dialog-Ro8nszbc.js";import{T as r,f as i,k as a,m as o,o as s,p as c}from"./local-mode-BR8wpdXp.js";import{n as l}from"./resolved-assistants-store-BymuLyDm.js";import{$ as u,n as d}from"./auth-store-B25WW_s-.js";import{c as f,d as p}from"./api-B1iMGOW3.js";import{d as m}from"./routes-CAe1h0Db.js";import{a as h}from"./navigation-resolver-C8Qyk5eO.js";import{t as g}from"./build-state-u8VAGmge.js";import{t as _}from"./research-onboarding-persistence-DRkA_L0x.js";var v=`vellum_assistant_name`;function y(){let e=h(g(),{kind:`post-retire`});return e.action===`redirect`?e.to:m.welcome}async function b(t){try{let n=s().assistants.find(e=>e.assistantId===t);if(n&&o(n))return{ok:!1,error:`This is a paired assistant. Remove it from this device instead of retiring it.`};if(c()&&n&&i(n)){let e=await r(t);if(!e.ok)return{ok:!1,error:e.error||`Failed to retire assistant.`}}else{let e=await p(t);if(!(e.ok||e.status===404))return{ok:!1,error:typeof e.error?.detail==`string`?e.error.detail:`Failed to retire assistant.`};if(c())try{let e=await f();e.ok&&await a(e.data,u.getState().currentOrganizationId??void 0)}catch{}}return l.getState().remove(t),_(d.getState().user?.id??null),e(v),{ok:!0,nextRoute:y()}}catch{return{ok:!1,error:`Failed to retire assistant.`}}}var x=t();function S({open:e,isPending:t,extraMessage:r,onConfirm:i,onCancel:a}){return(0,x.jsx)(n,{open:e,title:`Retire Assistant`,message:(0,x.jsxs)(x.Fragment,{children:[`This will permanently retire this assistant and all of its data. You will need to go through the onboarding flow again to create a new one. This action cannot be undone.`,r]}),confirmLabel:`Retire`,destructive:!0,isPending:t,onConfirm:i,onCancel:a})}export{b as n,S as t};
@@ -1 +1 @@
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{t as o}from"./shield-check-z7CU-gBq.js";import{t as ee}from"./is-electron-7N7iyz1y.js";import{_ as s,i as c,n as l}from"./auth-store-BwKMFgpK.js";import{T as u}from"./native-biometric-B96mgKGP.js";import{d}from"./routes-GmNvdtLW.js";import{c as f,d as p,f as m,l as h,m as g,p as _,u as v}from"./prefs-B6fvTCOn.js";import{t as y}from"./hard-navigate-V2EFapkk.js";import{t as b}from"./onboarding-layout-K7X9fV8B.js";import{n as x,t as S}from"./consent-controls-CiKmEzBn.js";var C=e(t(),1),w={},T={"2026-06-22":[`Introduces Together AI as a new managed model provider`]};function E(e){return w[e]??[]}function D(e){return T[e]??[]}var O=a();function k(){let e=i(),[t]=r(),a=l.use.user()?.id??null,w=l.use.logout(),T=ee(),k=c(),[A,j]=g(),[M,N]=p(),[P,F]=m(),[I,L]=_(),[R]=f(),[z]=h(),B=v(),V=P??!0,H=I??!0,[U]=(0,C.useState)(()=>!A),[W]=(0,C.useState)(()=>!M),[G]=(0,C.useState)(()=>!R),[K]=(0,C.useState)(()=>!z),q=!U&&!W&&!G&&!K,[J]=(0,C.useState)(()=>!B),Y=U||q,X=W||q,Z=G||q,Q=K||q||J,$=!q&&!U&&!W,te=q?`Terms & privacy`:$?`Review your privacy preferences`:J?`Before You Start`:`Updated terms`,ne=q?`Review your terms and privacy preferences anytime.`:$?`Confirm your privacy preferences to continue.`:J?`Review and accept the terms to start using your assistant. You can update your preferences anytime in Settings.`:`We've updated our terms. Please review and accept to continue.`,re=(0,C.useCallback)(()=>{s({userId:a,tos:A,privacy:M,shareAnalytics:Z?V:null,shareDiagnostics:Q?H:null,hasPlatformSession:k}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[M,k,e,t,V,H,Z,Q,A,a]),ie=(0,C.useCallback)(async()=>{await w(),y(d.account.login)},[w]),ae=Y&&!A||X&&!M;return(0,O.jsx)(b,{showCreatureFooter:!1,children:(0,O.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${T?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,O.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,O.jsx)(o,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,O.jsx)(`h1`,{className:`mt-5 ${T?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:te}),(0,O.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${T?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:ne}),(Z||Q)&&(0,O.jsx)(x,{electron:T,showAnalytics:Z,showDiagnostics:Q,shareAnalytics:V,shareDiagnostics:H,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(X||Y)&&(0,O.jsx)(S,{electron:T,showPrivacy:X,showTos:Y,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:X&&!J?D(`2026-06-22`):[],tosNotes:Y&&!J?E(`2026-06-08`):[],className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,O.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${T?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,O.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:ae,onClick:re,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:ie,className:T?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{k as ReviewTermsScreen};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BFJW0bSv.js";import{t as n}from"./button-fyWSnR9X.js";import{m as r,u as i}from"./chunk-5KNZJZUH-Bsoom5--.js";import{t as a}from"./jsx-runtime-D3ZM-ToX.js";import{t as o}from"./shield-check-CNsbiH1v.js";import{t as ee}from"./is-electron-DLs5KNwr.js";import{_ as s,i as c,n as l}from"./auth-store-B25WW_s-.js";import{w as u}from"./native-biometric-DSA3t7PV.js";import{d}from"./routes-CAe1h0Db.js";import{c as f,d as p,f as m,l as h,m as g,p as _,u as v}from"./prefs-DNKmoZMg.js";import{t as y}from"./hard-navigate-Dou11GyV.js";import{t as b}from"./onboarding-layout--37tB9YP.js";import{n as x,t as S}from"./consent-controls-YQyFfuPh.js";var C=e(t(),1),w={},T={"2026-06-22":[`Introduces Together AI as a new managed model provider`]};function E(e){return w[e]??[]}function D(e){return T[e]??[]}var O=a();function k(){let e=i(),[t]=r(),a=l.use.user()?.id??null,w=l.use.logout(),T=ee(),k=c(),[A,j]=g(),[M,N]=p(),[P,F]=m(),[I,L]=_(),[R]=f(),[z]=h(),B=v(),V=P??!0,H=I??!0,[U]=(0,C.useState)(()=>!A),[W]=(0,C.useState)(()=>!M),[G]=(0,C.useState)(()=>!R),[K]=(0,C.useState)(()=>!z),q=!U&&!W&&!G&&!K,[J]=(0,C.useState)(()=>!B),Y=U||q,X=W||q,Z=G||q,Q=K||q||J,$=!q&&!U&&!W,te=q?`Terms & privacy`:$?`Review your privacy preferences`:J?`Before You Start`:`Updated terms`,ne=q?`Review your terms and privacy preferences anytime.`:$?`Confirm your privacy preferences to continue.`:J?`Review and accept the terms to start using your assistant. You can update your preferences anytime in Settings.`:`We've updated our terms. Please review and accept to continue.`,re=(0,C.useCallback)(()=>{s({userId:a,tos:A,privacy:M,shareAnalytics:Z?V:null,shareDiagnostics:Q?H:null,hasPlatformSession:k}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[M,k,e,t,V,H,Z,Q,A,a]),ie=(0,C.useCallback)(async()=>{await w(),y(d.account.login)},[w]),ae=Y&&!A||X&&!M;return(0,O.jsx)(b,{showCreatureFooter:!1,children:(0,O.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center ${T?`min-h-full px-8 pt-21 pb-4 electron-prechat-type`:`px-6 py-16`} text-[var(--content-default)]`,children:[(0,O.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full border border-[var(--border-subtle)] bg-[var(--surface-lift)]`,style:{animation:`fadeInUp 0.5s ease-out 0.05s both`},children:(0,O.jsx)(o,{className:`h-6 w-6 text-[var(--content-secondary)]`,strokeWidth:1.75})}),(0,O.jsx)(`h1`,{className:`mt-5 ${T?`text-title-large`:`text-3xl font-semibold tracking-tight`}`,style:{animation:`fadeInUp 0.5s ease-out 0.12s both`},children:te}),(0,O.jsx)(`p`,{className:`text-center text-body-medium-lighter text-[var(--content-tertiary)] ${T?`mt-3`:`mt-3.5`}`,style:{animation:`fadeInUp 0.5s ease-out 0.2s both`},children:ne}),(Z||Q)&&(0,O.jsx)(x,{electron:T,showAnalytics:Z,showDiagnostics:Q,shareAnalytics:V,shareDiagnostics:H,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(X||Y)&&(0,O.jsx)(S,{electron:T,showPrivacy:X,showTos:Y,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:X&&!J?D(`2026-06-22`):[],tosNotes:Y&&!J?E(`2026-06-08`):[],className:`mt-6 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.36s both`}}),(0,O.jsxs)(`div`,{className:`mt-9 flex w-full flex-col ${T?`gap-2.5`:`gap-2`}`,style:{animation:`fadeInUp 0.5s ease-out 0.44s both`},children:[(0,O.jsx)(n,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:ae,onClick:re,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:ie,className:T?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{k as ReviewTermsScreen};
@@ -1 +1 @@
1
- import{t as e}from"./is-electron-7N7iyz1y.js";var t=e=>e,n=(e,t)=>`${e}/${t}`,r=t(`/assistant/settings/usage`),i=t(`/assistant/plans`),a=`message`,o=`package`,s={assistant:t(`/assistant`),about:t(`/assistant/about`),bundleConfirm:t(`/assistant/bundle/confirm`),remotePair:t(`/assistant/pair`),credentialEntry:t(`/assistant/credentials/enter`),quickInput:t(`/assistant/quick-input`),conversations:t(`/assistant/conversations`),conversation:e=>n(t(`/assistant/conversations`),e),conversationAtMessage:(e,r)=>`${n(t(`/assistant/conversations`),e)}?${a}=${encodeURIComponent(r)}`,conversationWithPrompt:(e,r,i)=>{let a=`${n(t(`/assistant/conversations`),e)}?prompt=${encodeURIComponent(r)}`;return i?`${a}&relay=${encodeURIComponent(i)}`:a},inspect:e=>`${n(t(`/assistant/conversations`),e)}/inspect`,logs:{root:t(`/assistant/logs`),emails:t(`/assistant/logs/emails`),systemEvents:t(`/assistant/logs/system-events`)},account:{root:t(`/account`),login:t(`/account/login`),signup:t(`/account/signup`),providerSignup:t(`/account/provider/signup`),providerCallback:t(`/account/provider/callback`),oauth:{popupComplete:t(`/account/oauth/popup-complete`),complete:t(`/account/oauth/complete`),desktopComplete:t(`/account/oauth/desktop-complete`)}},welcome:t(`/assistant/welcome`),selectAssistant:t(`/assistant/select-assistant`),reviewTerms:t(`/assistant/review-terms`),onboarding:{start:t(`/assistant/onboarding/start`),hosting:t(`/assistant/onboarding/hosting`),apiKey:t(`/assistant/onboarding/api-key`),privacy:t(`/assistant/onboarding/privacy`),hatching:t(`/assistant/onboarding/hatching`),research:t(`/assistant/onboarding/research`)},home:t(`/assistant/home`),schedules:{root:t(`/assistant/schedules`),detail:e=>n(t(`/assistant/schedules`),e)},identity:t(`/assistant/identity`),personality:t(`/assistant/personality`),memory:t(`/assistant/memory`),superpowers:t(`/assistant/superpowers`),plugins:t(`/assistant/plugins`),skills:{root:t(`/assistant/skills`),detail:e=>n(t(`/assistant/skills`),encodeURIComponent(e))},workspace:t(`/assistant/workspace`),library:{root:t(`/assistant/library`),app:e=>n(t(`/assistant/library`),e)},document:e=>n(t(`/assistant/documents`),e),connect:t(`/assistant/connect`),channels:t(`/assistant/channels`),contacts:{root:t(`/assistant/contacts`)},plans:i,plansForPackage:e=>`${i}?${o}=${encodeURIComponent(e)}`,checkout:t(`/assistant/checkout`),settings:{root:t(`/assistant/settings`),general:t(`/assistant/settings/general`),ai:t(`/assistant/settings/ai`),integrations:t(`/assistant/settings/integrations`),credentials:t(`/assistant/settings/credentials`),notifications:t(`/assistant/settings/notifications`),voice:t(`/assistant/settings/voice`),sounds:t(`/assistant/settings/sounds`),privacy:t(`/assistant/settings/privacy`),bookmarks:t(`/assistant/settings/bookmarks`),usage:r,usageBilling:`${r}?tab=billing`,usageBillingConfigureTopUps:`${r}?tab=billing&configure_top_up=1`,usageBillingCheckout:e=>`${r}?${new URLSearchParams({tab:`billing`,session_id:e}).toString()}`,usageForSchedule:e=>`${r}?${new URLSearchParams({tab:`usage`,range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,community:t(`/assistant/settings/community`),developer:t(`/assistant/settings/developer`),mcp:t(`/assistant/settings/mcp`),debug:t(`/assistant/settings/debug`),dangerZone:t(`/assistant/settings/danger-zone`),systemEvents:t(`/assistant/settings/system-events`),upgradeCancel:t(`/assistant/settings/billing/upgrade/cancel`),upgradeSuccess:t(`/assistant/settings/billing/upgrade/success`)},admin:{root:t(`/admin`)},docs:{hostingOptions:t(`/docs/hosting-options`),legal:{privacyPolicy:t(`/docs/privacy-policy`),termsOfUse:t(`/docs/vellum-terms-of-use`),dataSharing:t(`/docs/data-sharing`),prohibitedUse:t(`/docs/prohibited-use`),privacyAndData:t(`/docs/trust-security/privacy-and-data`)}}},c=[{key:`schedules`,label:`Schedules`,to:s.schedules.root},{key:`superpowers`,label:`My Superpowers`,to:s.superpowers},{key:`plugins`,label:`My Superpowers`,to:s.plugins},{key:`skills`,label:`My Superpowers`,to:s.skills.root},{key:`memory`,label:`Memory`,to:s.memory},{key:`library`,label:`Library`,to:s.library.root},{key:`workspace`,label:`Workspace`,to:s.workspace},{key:`contacts`,label:`Contacts`,to:s.contacts.root},{key:`channels`,label:`Channels`,to:s.channels}],l=[s.identity,s.personality],u=(e,t)=>e===t||e.startsWith(`${t}/`);function d(e){return c.find(({to:t})=>u(e,t))??null}function f(e){return c.find(t=>t.key===e)}function p(e){return l.some(t=>u(e,t))||d(e)!==null}function m(e){return e===s.assistant||e===`${s.assistant}/`||e.startsWith(`${s.conversations}/`)}function h(e){if(e===s.assistant||e===`${s.assistant}/`)return!0;let t=`${s.conversations}/`;if(!e.startsWith(t))return!1;let n=e.slice(t.length).replace(/\/+$/,``);return n.length>0&&!n.includes(`/`)}var g=`vellum.ai`;function _(e){return v(e)}function v(e){return`https://${g}${e}`}function y(){return e()?`${window.__VELLUM_CONFIG__?.webUrl??window.location.origin}${s.admin.root}`:s.admin.root}export{y as a,h as c,s as d,d as i,m as l,a as n,v as o,f as r,p as s,o as t,_ as u};
1
+ import{t as e}from"./is-electron-DLs5KNwr.js";var t=e=>e,n=(e,t)=>`${e}/${t}`,r=t(`/assistant/settings/usage`),i=t(`/assistant/plans`),a=`message`,o=`package`,s={assistant:t(`/assistant`),about:t(`/assistant/about`),bundleConfirm:t(`/assistant/bundle/confirm`),remotePair:t(`/assistant/pair`),credentialEntry:t(`/assistant/credentials/enter`),quickInput:t(`/assistant/quick-input`),conversations:t(`/assistant/conversations`),conversation:e=>n(t(`/assistant/conversations`),e),conversationAtMessage:(e,r)=>`${n(t(`/assistant/conversations`),e)}?${a}=${encodeURIComponent(r)}`,conversationWithPrompt:(e,r,i)=>{let a=`${n(t(`/assistant/conversations`),e)}?prompt=${encodeURIComponent(r)}`;return i?`${a}&relay=${encodeURIComponent(i)}`:a},inspect:e=>`${n(t(`/assistant/conversations`),e)}/inspect`,logs:{root:t(`/assistant/logs`),emails:t(`/assistant/logs/emails`),systemEvents:t(`/assistant/logs/system-events`)},account:{root:t(`/account`),login:t(`/account/login`),signup:t(`/account/signup`),providerSignup:t(`/account/provider/signup`),providerCallback:t(`/account/provider/callback`),oauth:{popupComplete:t(`/account/oauth/popup-complete`),complete:t(`/account/oauth/complete`),desktopComplete:t(`/account/oauth/desktop-complete`)}},welcome:t(`/assistant/welcome`),selectAssistant:t(`/assistant/select-assistant`),reviewTerms:t(`/assistant/review-terms`),onboarding:{start:t(`/assistant/onboarding/start`),hosting:t(`/assistant/onboarding/hosting`),apiKey:t(`/assistant/onboarding/api-key`),privacy:t(`/assistant/onboarding/privacy`),hatching:t(`/assistant/onboarding/hatching`),research:t(`/assistant/onboarding/research`)},home:t(`/assistant/home`),schedules:{root:t(`/assistant/schedules`),detail:e=>n(t(`/assistant/schedules`),e)},identity:t(`/assistant/identity`),personality:t(`/assistant/personality`),memory:t(`/assistant/memory`),superpowers:t(`/assistant/superpowers`),plugins:t(`/assistant/plugins`),skills:{root:t(`/assistant/skills`),detail:e=>n(t(`/assistant/skills`),encodeURIComponent(e))},workspace:t(`/assistant/workspace`),library:{root:t(`/assistant/library`),app:e=>n(t(`/assistant/library`),e)},document:e=>n(t(`/assistant/documents`),e),connect:t(`/assistant/connect`),channels:t(`/assistant/channels`),contacts:{root:t(`/assistant/contacts`)},plans:i,plansForPackage:e=>`${i}?${o}=${encodeURIComponent(e)}`,checkout:t(`/assistant/checkout`),settings:{root:t(`/assistant/settings`),general:t(`/assistant/settings/general`),ai:t(`/assistant/settings/ai`),integrations:t(`/assistant/settings/integrations`),credentials:t(`/assistant/settings/credentials`),notifications:t(`/assistant/settings/notifications`),voice:t(`/assistant/settings/voice`),sounds:t(`/assistant/settings/sounds`),privacy:t(`/assistant/settings/privacy`),bookmarks:t(`/assistant/settings/bookmarks`),usage:r,usageBilling:`${r}?tab=billing`,usageBillingConfigureTopUps:`${r}?tab=billing&configure_top_up=1`,usageBillingCheckout:e=>`${r}?${new URLSearchParams({tab:`billing`,session_id:e}).toString()}`,usageForSchedule:e=>`${r}?${new URLSearchParams({tab:`usage`,range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,community:t(`/assistant/settings/community`),developer:t(`/assistant/settings/developer`),mcp:t(`/assistant/settings/mcp`),debug:t(`/assistant/settings/debug`),dangerZone:t(`/assistant/settings/danger-zone`),systemEvents:t(`/assistant/settings/system-events`),upgradeCancel:t(`/assistant/settings/billing/upgrade/cancel`),upgradeSuccess:t(`/assistant/settings/billing/upgrade/success`)},admin:{root:t(`/admin`)},docs:{hostingOptions:t(`/docs/hosting-options`),legal:{privacyPolicy:t(`/docs/privacy-policy`),termsOfUse:t(`/docs/vellum-terms-of-use`),dataSharing:t(`/docs/data-sharing`),prohibitedUse:t(`/docs/prohibited-use`),privacyAndData:t(`/docs/trust-security/privacy-and-data`)}}},c=[{key:`schedules`,label:`Schedules`,to:s.schedules.root},{key:`superpowers`,label:`My Superpowers`,to:s.superpowers},{key:`plugins`,label:`My Superpowers`,to:s.plugins},{key:`skills`,label:`My Superpowers`,to:s.skills.root},{key:`memory`,label:`Memory`,to:s.memory},{key:`library`,label:`Library`,to:s.library.root},{key:`workspace`,label:`Workspace`,to:s.workspace},{key:`contacts`,label:`Contacts`,to:s.contacts.root},{key:`channels`,label:`Channels`,to:s.channels}],l=[s.identity,s.personality],u=(e,t)=>e===t||e.startsWith(`${t}/`);function d(e){return c.find(({to:t})=>u(e,t))??null}function f(e){return c.find(t=>t.key===e)}function p(e){return l.some(t=>u(e,t))||d(e)!==null}function m(e){return e===s.assistant||e===`${s.assistant}/`||e.startsWith(`${s.conversations}/`)}function h(e){if(e===s.assistant||e===`${s.assistant}/`)return!0;let t=`${s.conversations}/`;if(!e.startsWith(t))return!1;let n=e.slice(t.length).replace(/\/+$/,``);return n.length>0&&!n.includes(`/`)}var g=`vellum.ai`;function _(e){return v(e)}function v(e){return`https://${g}${e}`}function y(){return e()?`${window.__VELLUM_CONFIG__?.webUrl??window.location.origin}${s.admin.root}`:s.admin.root}export{y as a,h as c,s as d,d as i,m as l,a as n,v as o,f as r,p as s,o as t,_ as u};