@vellumai/web 0.10.3 → 0.10.4-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/dist/assets/{AnimatePresence-CgXwEO42.js → AnimatePresence-Dfn9OLfv.js} +2 -2
  2. package/dist/assets/{BundleConfirmPage-DpfvIcwl.js → BundleConfirmPage-cwBrFi1K.js} +1 -1
  3. package/dist/assets/{Combination-4Qc3vrtW.js → Combination-DRz6Ez-m.js} +1 -1
  4. package/dist/assets/{QueryClientProvider-DKhXIxGb.js → QueryClientProvider-DgWA3A3c.js} +1 -1
  5. package/dist/assets/{about-page-CuSnWJFo.js → about-page-6YWjIdZL.js} +1 -1
  6. package/dist/assets/{account-page-CCYCSy2-.js → account-page-bNvk8mIC.js} +1 -1
  7. package/dist/assets/{account-shell-b6GjlQ0u.js → account-shell-B1geYjoc.js} +1 -1
  8. package/dist/assets/{add-credits-modal-Dy3I3Har.js → add-credits-modal-D-5W9e8w.js} +1 -1
  9. package/dist/assets/{advanced-page-CVnT0zH-.js → advanced-page-CuerkFrp.js} +1 -1
  10. package/dist/assets/ai-page-CsqhZcSf.js +1 -0
  11. package/dist/assets/{api-2kc3MHRz.js → api-DXPKXkDj.js} +1 -1
  12. package/dist/assets/{api-key-screen-DGVn66y4.js → api-key-screen-QS5FdtlL.js} +1 -1
  13. package/dist/assets/{app-info-BZYaLxCg.js → app-info-oX9MaK2d.js} +1 -1
  14. package/dist/assets/{archive-BFILUl9x.js → archive-Ct5g6T4N.js} +1 -1
  15. package/dist/assets/{archive-page-Dl6HLIJt.js → archive-page-Bh0LTWRp.js} +1 -1
  16. package/dist/assets/arrow-left-BPsKoNcb.js +1 -0
  17. package/dist/assets/arrow-up-CkZMv0kb.js +1 -0
  18. package/dist/assets/{assistant-api-DROTS3Y9.js → assistant-api-BdlaVxiH.js} +1 -1
  19. package/dist/assets/{assistant-feature-flag-store-Dl92XRsM.js → assistant-feature-flag-store-Ceb6N94N.js} +1 -1
  20. package/dist/assets/assistant-identity-store-ESeBny_J.js +1 -0
  21. package/dist/assets/{assistant-status-panel-BkIkvMYw.js → assistant-status-panel-DRHanMan.js} +1 -1
  22. package/dist/assets/auth-store-BzL2lSd1.js +7 -0
  23. package/dist/assets/ban-BW0pQzvY.js +1 -0
  24. package/dist/assets/{bell-DB1SrBre.js → bell-B-09xFrv.js} +1 -1
  25. package/dist/assets/{billing-page-Cq_yLwUC.js → billing-page-CEArOabV.js} +3 -3
  26. package/dist/assets/{bookmark-C3S-p0MQ.js → bookmark-B_4Mr1qd.js} +1 -1
  27. package/dist/assets/{bookmarks-page-CANlE7hP.js → bookmarks-page-BvkvZ7uy.js} +1 -1
  28. package/dist/assets/{brain-Bs6LnfHO.js → brain-CamcLepK.js} +1 -1
  29. package/dist/assets/{browser-CKX_K5ev.js → browser-CDQJAXkC.js} +2 -2
  30. package/dist/assets/{bug-DDcuQ3au.js → bug-BiiqXpDy.js} +1 -1
  31. package/dist/assets/{build-state-VC4tL7sK.js → build-state-BIN8lPRx.js} +1 -1
  32. package/dist/assets/{button-D7s2Q_uG.js → button-BvHa6F59.js} +1 -1
  33. package/dist/assets/{calendar-CpgH8CqM.js → calendar-Ba3kkcG0.js} +1 -1
  34. package/dist/assets/{capture-error-Hr1Yo2kx.js → capture-error-BaKOqBjF.js} +1 -1
  35. package/dist/assets/{card-BibIM9x3.js → card-D9_3ngHI.js} +1 -1
  36. package/dist/assets/check-DwLoiFa9.js +1 -0
  37. package/dist/assets/check-DxBmXJus.js +1 -0
  38. package/dist/assets/{checkbox-BqCzUvXM.js → checkbox-DNfwi5Hy.js} +1 -1
  39. package/dist/assets/chevron-left-CgekgptJ.js +1 -0
  40. package/dist/assets/chevron-right-DP15nqFC.js +1 -0
  41. package/dist/assets/{chevron-up-BRZN6p_l.js → chevron-up-CNrKWpd3.js} +1 -1
  42. package/dist/assets/{circle-alert-DvNg50UK.js → circle-alert-BB_iJtM8.js} +1 -1
  43. package/dist/assets/circle-check-Cwv8JCfw.js +1 -0
  44. package/dist/assets/{client-feature-flag-store-C1kdd1EO.js → client-feature-flag-store-kWvb3vtZ.js} +1 -1
  45. package/dist/assets/{cloud-off-rAv4OHmv.js → cloud-off-DpkRXr7O.js} +1 -1
  46. package/dist/assets/{cn-DvW5mxZR.js → cn-CFvi8Z0K.js} +1 -1
  47. package/dist/assets/code-7vvpMPgo.js +1 -0
  48. package/dist/assets/{command-palette-GZu_zgQg.js → command-palette-D1nNMvVX.js} +1 -1
  49. package/dist/assets/{command-palette-window-page-CzWu42Ee.js → command-palette-window-page-DrZt0RaG.js} +1 -1
  50. package/dist/assets/{community-page-Dhgypa-h.js → community-page-A8lshdka.js} +1 -1
  51. package/dist/assets/{confirm-dialog-CfOXCE1N.js → confirm-dialog-BtxNY4WU.js} +1 -1
  52. package/dist/assets/{connect-page-CDOcgzzL.js → connect-page-CuSSRk9J.js} +1 -1
  53. package/dist/assets/{consent-controls-BSZV4rW3.js → consent-controls-CYj9WfJh.js} +1 -1
  54. package/dist/assets/{contacts-gateway-dxw1KMN2.js → contacts-gateway-CHNyL-NU.js} +1 -1
  55. package/dist/assets/{contacts-page-route-C3QiOxjO.js → contacts-page-route-qsIGsjpD.js} +2 -2
  56. package/dist/assets/{conversation-list-fetchers-UPVZq_6O.js → conversation-list-fetchers-Bcp_Zesn.js} +1 -1
  57. package/dist/assets/{conversation-store-DK-7gFAt.js → conversation-store-6tz67quR.js} +1 -1
  58. package/dist/assets/{cpu-CiHv3fhs.js → cpu-PmmoD4_K.js} +1 -1
  59. package/dist/assets/{credit-card-BKRB1ZIi.js → credit-card-yPLmY1JU.js} +1 -1
  60. package/dist/assets/{danger-zone-redirect-page-CjqUKhk9.js → danger-zone-redirect-page-Dhgk9mkr.js} +1 -1
  61. package/dist/assets/debug-page-Ddv9MlOm.js +4 -0
  62. package/dist/assets/{deploy-dialogs-jf5VL1UP.js → deploy-dialogs-qdH6GTjP.js} +1 -1
  63. package/dist/assets/{detail-card-BIwpXT5F.js → detail-card-5TPdhuZN.js} +1 -1
  64. package/dist/assets/{developer-page-iEL4eJ8x.js → developer-page-BXl0qAXX.js} +1 -1
  65. package/dist/assets/{devices-page-RMaPGcXe.js → devices-page-DaZR3FC4.js} +1 -1
  66. package/dist/assets/{diagnostics-BEB4VPwC.js → diagnostics-D5xXiLo-.js} +1 -1
  67. package/dist/assets/{dictation-overlay-page-BxQCzLMY.js → dictation-overlay-page-DOdZ_KIz.js} +1 -1
  68. package/dist/assets/{dist-B0Gf-knw.js → dist-BkSUb6s0.js} +1 -1
  69. package/dist/assets/{dist-cApvLul2.js → dist-Ble8OyWO.js} +1 -1
  70. package/dist/assets/{document-viewer-page-57OuXxYw.js → document-viewer-page-XzPSoPVb.js} +1 -1
  71. package/dist/assets/{domain-field-DYwuCpup.js → domain-field-BGp08c4L.js} +1 -1
  72. package/dist/assets/{dropdown-CL8VmqrY.js → dropdown-SUNHYFiy.js} +1 -1
  73. package/dist/assets/{earn-credits-modal-Nm1VymMp.js → earn-credits-modal-D7ioWvNh.js} +1 -1
  74. package/dist/assets/{emails-page-0gRZqa6y.js → emails-page-BRnVsJnR.js} +1 -1
  75. package/dist/assets/{emoji-catalog-data-Dlkuvec0.js → emoji-catalog-data-hHp74TCA.js} +1 -1
  76. package/dist/assets/{environment-store-CvH3J6fT.js → environment-store-B5EGAqzg.js} +1 -1
  77. package/dist/assets/esm-8Mv545sP.js +2 -0
  78. package/dist/assets/esm-B35SBKTx.js +2 -0
  79. package/dist/assets/esm-B9nLiq-2.js +1 -0
  80. package/dist/assets/{esm-B3Lr4Bv0.js → esm-DQXfMjvW.js} +2 -2
  81. package/dist/assets/esm-Dz9uwqjb.js +2 -0
  82. package/dist/assets/esm-TyKOKslC.js +2 -0
  83. package/dist/assets/{external-link-DPAtkBJ2.js → external-link-h3UAe8eX.js} +1 -1
  84. package/dist/assets/{file-editor-BNkJJbUv.js → file-editor-Cy1TZHJJ.js} +1 -1
  85. package/dist/assets/{file-text-CmK9LY1p.js → file-text-Bxj0xAst.js} +1 -1
  86. package/dist/assets/funnel-events-Dz_DLI0Q.js +1 -0
  87. package/dist/assets/general-page-Dl7IYYSf.js +1 -0
  88. package/dist/assets/{globe-DYF_lSGm.js → globe-D7wvOZaZ.js} +1 -1
  89. package/dist/assets/{hard-drive-D7_5VMhi.js → hard-drive-CO7i5o4z.js} +1 -1
  90. package/dist/assets/{hatching-screen-KPinlCES.js → hatching-screen-YvbZlnsV.js} +1 -1
  91. package/dist/assets/home-page-route-B7AJU1pr.js +1 -0
  92. package/dist/assets/{hosting-screen-C14KAJ6m.js → hosting-screen-CKlP38Z3.js} +1 -1
  93. package/dist/assets/{identity-page-route-C0BFcTAF.js → identity-page-route-CZQEWoJK.js} +1 -1
  94. package/dist/assets/index-3zpPFBeR.js +132 -0
  95. package/dist/assets/index-PRuqIn_u.css +2 -0
  96. package/dist/assets/{info-_OtUK1cX.js → info-B4DDA6uP.js} +1 -1
  97. package/dist/assets/{info-BGLlcyt6.js → info-CNTT4WCe.js} +1 -1
  98. package/dist/assets/{input-C8kfrq9r.js → input-BLN3wmw2.js} +1 -1
  99. package/dist/assets/{inspect-page-CWasyuSO.js → inspect-page-AldHg0Dz.js} +4 -4
  100. package/dist/assets/{install-C3xe8ARr.js → install-D_GSceot.js} +1 -1
  101. package/dist/assets/integrations-page-b3sE-PDS.js +1 -0
  102. package/dist/assets/{intelligence-layout-CvTumtjv.js → intelligence-layout-CsM_YjdB.js} +1 -1
  103. package/dist/assets/{keyboard-shortcuts-page-kiOEZKzE.js → keyboard-shortcuts-page-Capx1ICA.js} +1 -1
  104. package/dist/assets/{lib-BWRK7bT2.js → lib-Bexzcbsy.js} +1 -1
  105. package/dist/assets/library-detail-page-DrgMdBPq.js +1 -0
  106. package/dist/assets/{library-page-BHejhapZ.js → library-page-Catpu3p0.js} +1 -1
  107. package/dist/assets/{link-2-CaszbD7P.js → link-2-DW8ruMGH.js} +1 -1
  108. package/dist/assets/{list-row-Cw9JYESP.js → list-row-l7sxQ4Tj.js} +1 -1
  109. package/dist/assets/loader-circle-cYXxWP5B.js +1 -0
  110. package/dist/assets/{local-mode-CvrNMtPF.js → local-mode-Cez1weue.js} +1 -1
  111. package/dist/assets/{log-in-2iOsufxq.js → log-in-Ci5ja9sN.js} +1 -1
  112. package/dist/assets/{login-flow-DPi11n3h.js → login-flow-DeMU71_M.js} +1 -1
  113. package/dist/assets/{login-page-BGLVK82t.js → login-page-DkNb0F3s.js} +1 -1
  114. package/dist/assets/{logout-page-Bl6AD21S.js → logout-page-POyojlS1.js} +1 -1
  115. package/dist/assets/{logs-layout-C9eUE1Pt.js → logs-layout-qJmOLDZF.js} +1 -1
  116. package/dist/assets/{memory-router-playground-page-Dhi3uqxr.js → memory-router-playground-page-DD6t0kqe.js} +1 -1
  117. package/dist/assets/{menu-C_97pis4.js → menu-_JM4udVm.js} +1 -1
  118. package/dist/assets/{messages-DHDZ32NT.js → messages-DCNfjhgv.js} +2 -2
  119. package/dist/assets/{minimize-2-JE_UHZlJ.js → minimize-2-DmC6-Woz.js} +1 -1
  120. package/dist/assets/{mobile-sidebar-drawer-DqXFL0Ke.js → mobile-sidebar-drawer-B4ol32hs.js} +1 -1
  121. package/dist/assets/{modal-D0Q3UWD0.js → modal-CH2iwSBx.js} +1 -1
  122. package/dist/assets/{monitor-D2okHi8o.js → monitor-B1YMXlZj.js} +1 -1
  123. package/dist/assets/{moon-CK8MXzOo.js → moon-DSWoApF5.js} +1 -1
  124. package/dist/assets/mutation-error-B5AKP6aC.js +1 -0
  125. package/dist/assets/{native-file-B-MK3Ngg.js → native-file-GuVJgNpB.js} +2 -2
  126. package/dist/assets/{notice-CqRgVmeL.js → notice-BhqKj_VM.js} +1 -1
  127. package/dist/assets/{notifications-page-pHiDPA0p.js → notifications-page-MRalDive.js} +1 -1
  128. package/dist/assets/{oauth-complete-page-DiGMWbOb.js → oauth-complete-page-DGOyh2u6.js} +1 -1
  129. package/dist/assets/{oauth-popup-complete-page-CwoZnzdc.js → oauth-popup-complete-page-BPxKmr_f.js} +1 -1
  130. package/dist/assets/{page-shell-cEGpH3P5.js → page-shell-cu3KBmqd.js} +1 -1
  131. package/dist/assets/{pairing-page-clFaUgzL.js → pairing-page-_ulPOW9r.js} +1 -1
  132. package/dist/assets/{panel-item-nGTDevWP.js → panel-item-DN2CyWOT.js} +1 -1
  133. package/dist/assets/{password-reset-page-DfYGL1Gv.js → password-reset-page-BfRXQpS_.js} +1 -1
  134. package/dist/assets/{pencil-DbB9rxpY.js → pencil-DUMCM9m-.js} +1 -1
  135. package/dist/assets/{platform-loopback-page-Df5bTTx8.js → platform-loopback-page-D3oAT6qE.js} +1 -1
  136. package/dist/assets/{plugin-detail-page-IRPeI4lP.js → plugin-detail-page-ClMMTrti.js} +1 -1
  137. package/dist/assets/{plugins-page-BaYp2QOe.js → plugins-page-y6Aom9qx.js} +1 -1
  138. package/dist/assets/{popover-CL-JL6vG.js → popover-BIr0nN9H.js} +1 -1
  139. package/dist/assets/prechat-route-MTnUk6MK.js +1 -0
  140. package/dist/assets/{prefs-C_oq5G87.js → prefs-C6e8pdrA.js} +1 -1
  141. package/dist/assets/{privacy-page-BUhxrIRn.js → privacy-page-gc352kAN.js} +1 -1
  142. package/dist/assets/privacy-screen-CQLPQPoM.js +1 -0
  143. package/dist/assets/{progress-bar-DIFlWPPg.js → progress-bar-ATg2lhDh.js} +1 -1
  144. package/dist/assets/{provider-callback-page-CxFC4PH1.js → provider-callback-page-BtYwaMxL.js} +1 -1
  145. package/dist/assets/{provider-key-nA35OC4Y.js → provider-key-BKR2QTfR.js} +1 -1
  146. package/dist/assets/{provider-signup-page-CdpT28xL.js → provider-signup-page-80V_D9ad.js} +1 -1
  147. package/dist/assets/proxy-T76Q62qP.js +1 -0
  148. package/dist/assets/{quick-input-page-C9jN8YtU.js → quick-input-page-B-7fTgJi.js} +1 -1
  149. package/dist/assets/{react-query.gen-CQLyoqYk.js → react-query.gen-BeTpj_Sy.js} +1 -1
  150. package/dist/assets/{react-query.gen-rp6Krcco.js → react-query.gen-breoeUVK.js} +1 -1
  151. package/dist/assets/{refresh-cw-Bf6LV0kG.js → refresh-cw-kmptQnpX.js} +1 -1
  152. package/dist/assets/{research-mock-page-ttrrPwo3.js → research-mock-page-DYPr-S2q.js} +1 -1
  153. package/dist/assets/research-onboarding-route-yYstHFq4.js +35 -0
  154. package/dist/assets/{resize-errors-DnJEbHn4.js → resize-errors-ocHCHRPn.js} +1 -1
  155. package/dist/assets/{resolved-assistants-store-Cp4J43BK.js → resolved-assistants-store-BrS8JBzC.js} +1 -1
  156. package/dist/assets/{return-to-ByvaXBKr.js → return-to-DlPFMVLx.js} +1 -1
  157. package/dist/assets/{review-terms-screen-DEiifDmK.js → review-terms-screen-DFlSm1tM.js} +1 -1
  158. package/dist/assets/risk-badge-CTIwePVV.js +1 -0
  159. package/dist/assets/{routes-DVqkwUEe.js → routes-Dzl0kj5j.js} +1 -1
  160. package/dist/assets/{save-DEBQ_gbb.js → save-DQyrotXP.js} +1 -1
  161. package/dist/assets/{schedules-D-4Rq6ZC.js → schedules-DZspBZ61.js} +1 -1
  162. package/dist/assets/{sdk.gen-D-_js_oC.js → sdk.gen-DSjI3deY.js} +1 -1
  163. package/dist/assets/{select-assistant-screen-UoixBMN2.js → select-assistant-screen-kcdnMYj7.js} +1 -1
  164. package/dist/assets/{setting-row-o44aWwYt.js → setting-row-DB3q3lgL.js} +1 -1
  165. package/dist/assets/settings-layout-DV4y_-8a.js +1 -0
  166. package/dist/assets/{share-feedback-modal-CTwByE7B.js → share-feedback-modal-CNGNLLDP.js} +1 -1
  167. package/dist/assets/{shortcut-keys-vM6sNj7W.js → shortcut-keys-D4E8qQgS.js} +1 -1
  168. package/dist/assets/{sidebar-tree-BJkXpCut.js → sidebar-tree-BCJVetMg.js} +1 -1
  169. package/dist/assets/{signup-page-CKDYl9Wb.js → signup-page-iM9szAKN.js} +1 -1
  170. package/dist/assets/{signup-shell-Bu5BM6II.js → signup-shell-GOG8-46O.js} +1 -1
  171. package/dist/assets/{skills-page-DVjqqfMw.js → skills-page-D3c3cuti.js} +1 -1
  172. package/dist/assets/{sound-manager-CzslfzDO.js → sound-manager-DwCzTycd.js} +1 -1
  173. package/dist/assets/{sounds-page-mens6EAJ.js → sounds-page-C3qbFW0l.js} +1 -1
  174. package/dist/assets/{sparkles-BICoewVE.js → sparkles-C8eL4LNF.js} +1 -1
  175. package/dist/assets/src-Dr68ou95.js +293 -0
  176. package/dist/assets/{stat-square-B0S3fO7O.js → stat-square-zBHENXcL.js} +1 -1
  177. package/dist/assets/{status-badge-pill-DYlAnX5m.js → status-badge-pill-CSitw8_5.js} +1 -1
  178. package/dist/assets/step-indicator-dots-D4A7eDFL.js +1 -0
  179. package/dist/assets/subagent-detail-panel-D3xm4yVF.js +4 -0
  180. package/dist/assets/{subagent-store-BLHGkTJR.js → subagent-store-CFwN6f1W.js} +1 -1
  181. package/dist/assets/system-events-page-CXlJ_J54.js +1 -0
  182. package/dist/assets/{system-events-redirect-page-C1hGE6n5.js → system-events-redirect-page-Bkigvq03.js} +1 -1
  183. package/dist/assets/{tag-B_-QAvJF.js → tag-64Evw5MO.js} +1 -1
  184. package/dist/assets/{three-dot-indicator-CLs7Rl-I.js → three-dot-indicator-DKd64wpF.js} +1 -1
  185. package/dist/assets/{tiptap-document-editor-D2t4qYzv.js → tiptap-document-editor-D031y5O7.js} +1 -1
  186. package/dist/assets/{toast-2TW5tj1Y.js → toast-VJ6jFKB9.js} +1 -1
  187. package/dist/assets/{toggle-X_kQW5my.js → toggle-zADptotB.js} +1 -1
  188. package/dist/assets/tool-detail-panel-Cq_SyoUG.js +2 -0
  189. package/dist/assets/{trace-page-DRWPaAuQ.js → trace-page-CEyVWa_4.js} +1 -1
  190. package/dist/assets/{triangle-alert-Bz1PpciW.js → triangle-alert-DqPPHRPD.js} +1 -1
  191. package/dist/assets/{triangle-alert-DKOyShqD.js → triangle-alert-eaW8jtCr.js} +1 -1
  192. package/dist/assets/{typography-BscuIPxA.js → typography-COqg6o2z.js} +1 -1
  193. package/dist/assets/{upgrade-cancel-page-Cwv5eMh9.js → upgrade-cancel-page-CM9JnbEO.js} +1 -1
  194. package/dist/assets/{upgrade-success-page-DnJ8Kyyj.js → upgrade-success-page-BxrXUjiP.js} +1 -1
  195. package/dist/assets/{usage-page-DJHRS0lZ.js → usage-page-DBmsLal7.js} +1 -1
  196. package/dist/assets/{use-active-assistant-id-C-RHQ9f6.js → use-active-assistant-id-jfqnc4T7.js} +1 -1
  197. package/dist/assets/{use-bus-subscription-BbiZXm1u.js → use-bus-subscription-CKWguMzy.js} +1 -1
  198. package/dist/assets/use-is-org-ready-DLZpD311.js +1 -0
  199. package/dist/assets/{use-onboarding-login-BEOH92mZ.js → use-onboarding-login-Cz1MgHw6.js} +1 -1
  200. package/dist/assets/use-plugin-drift-4-li_vW2.js +1 -0
  201. package/dist/assets/use-reduced-motion-DvKonyYy.js +1 -0
  202. package/dist/assets/{useQuery-B45lW1Kk.js → useBaseQuery-BOw_gWPH.js} +1 -1
  203. package/dist/assets/useInfiniteQuery-iPXlezAp.js +1 -0
  204. package/dist/assets/{useMutation-Lj4VunQV.js → useMutation-D3WkZnYg.js} +1 -1
  205. package/dist/assets/useQuery-cVuP8q1x.js +1 -0
  206. package/dist/assets/{user-plus-C0OyQU83.js → user-plus-CjFuXA3D.js} +1 -1
  207. package/dist/assets/{utils-IBnUZTqY.js → utils-Lep-7jRg.js} +1 -1
  208. package/dist/assets/{viewer-store-Dead64xY.js → viewer-store-Dened07w.js} +1 -1
  209. package/dist/assets/{voice-page-kQZ2ya5j.js → voice-page-C3zxM20t.js} +1 -1
  210. package/dist/assets/{weather-forecast-display-Cu3W6OZF.js → weather-forecast-display-DfsXEBSo.js} +1 -1
  211. package/dist/assets/{web-DOKyhuGQ.js → web-Broue3sZ.js} +1 -1
  212. package/dist/assets/{web-M3MS-KVB.js → web-C6Et8xNJ.js} +1 -1
  213. package/dist/assets/{web-B0S2ynRY.js → web-CNtrY6ZR.js} +1 -1
  214. package/dist/assets/{web-D0QcGl1O.js → web-CccL0uF5.js} +1 -1
  215. package/dist/assets/{web-Cg8gCWpB.js → web-CtAf2vJC.js} +1 -1
  216. package/dist/assets/{web-DJKnWTsF.js → web-Cygkn0vs.js} +1 -1
  217. package/dist/assets/{web-iUXw2JWQ.js → web-DuqCaaXx.js} +1 -1
  218. package/dist/assets/{welcome-screen-Bd7PCfAf.js → welcome-screen-RBmiq3Lq.js} +1 -1
  219. package/dist/assets/workflow-detail-panel-C2dD_hU2.js +1 -0
  220. package/dist/assets/{workspace-page-BR4pOxs5.js → workspace-page-lR8lzD2L.js} +1 -1
  221. package/dist/assets/x-649kPSQS.js +1 -0
  222. package/dist/assets/x-Bn5tweDc.js +1 -0
  223. package/dist/index.html +135 -134
  224. package/package.json +1 -1
  225. package/dist/assets/ai-page-kEbHR7cH.js +0 -1
  226. package/dist/assets/arrow-left-CP-EhDNF.js +0 -1
  227. package/dist/assets/arrow-up-nBfZxfhi.js +0 -1
  228. package/dist/assets/assistant-identity-store-CKjnoLSp.js +0 -1
  229. package/dist/assets/auth-store-Kfxhs2oI.js +0 -7
  230. package/dist/assets/ban-BpBuRCKI.js +0 -1
  231. package/dist/assets/check-CW0KmV0o.js +0 -1
  232. package/dist/assets/check-D6WkI0gF.js +0 -1
  233. package/dist/assets/chevron-left-DghyKSEE.js +0 -1
  234. package/dist/assets/chevron-right-B6vEpVY0.js +0 -1
  235. package/dist/assets/circle-check-DzlJxj_M.js +0 -1
  236. package/dist/assets/code-aMX9iMYa.js +0 -1
  237. package/dist/assets/debug-page-CBozmAQQ.js +0 -2
  238. package/dist/assets/esm-BVNBLzcW.js +0 -2
  239. package/dist/assets/esm-BtN-afz9.js +0 -1
  240. package/dist/assets/esm-D2xhPoyM.js +0 -2
  241. package/dist/assets/esm-DwNtkiSD.js +0 -2
  242. package/dist/assets/esm-pt1s0ryM.js +0 -2
  243. package/dist/assets/general-page-aZxTpnpI.js +0 -1
  244. package/dist/assets/home-page-route-CudtBGg1.js +0 -1
  245. package/dist/assets/index-Hcyzmz_5.css +0 -2
  246. package/dist/assets/index-PRnvH2Y1.js +0 -132
  247. package/dist/assets/integrations-page-WhBpTYP2.js +0 -1
  248. package/dist/assets/library-detail-page-rPvN9G1a.js +0 -1
  249. package/dist/assets/loader-circle-IIzBGiwm.js +0 -1
  250. package/dist/assets/mutation-error-CsyN8rYH.js +0 -1
  251. package/dist/assets/prechat-route-BaMWiiaf.js +0 -1
  252. package/dist/assets/privacy-screen-BaHYtKEt.js +0 -1
  253. package/dist/assets/proxy-DmIh4F51.js +0 -1
  254. package/dist/assets/reduced-motion-DYlLlcUm.js +0 -1
  255. package/dist/assets/research-onboarding-route-Cxai0fux.js +0 -36
  256. package/dist/assets/risk-badge-BA8R-HCI.js +0 -1
  257. package/dist/assets/settings-layout-CQ3Z9Raj.js +0 -1
  258. package/dist/assets/src-CK6bncSg.js +0 -293
  259. package/dist/assets/step-indicator-dots-CEVbsP8r.js +0 -1
  260. package/dist/assets/subagent-detail-panel-DVQAkMjF.js +0 -4
  261. package/dist/assets/system-events-page-Dro8iNrx.js +0 -1
  262. package/dist/assets/tool-detail-panel-DRD2DIMF.js +0 -2
  263. package/dist/assets/use-is-org-ready-BdtHeRV6.js +0 -1
  264. package/dist/assets/use-plugin-drift-Bj693x0f.js +0 -1
  265. package/dist/assets/use-reduced-motion-ChB7nOGe.js +0 -1
  266. package/dist/assets/workflow-detail-panel-CMmPPsuL.js +0 -1
  267. package/dist/assets/x-C8bCmIhD.js +0 -1
  268. package/dist/assets/x-KVxA2ZL0.js +0 -1
  269. /package/dist/assets/{api-errors-CveHbhgb.js → api-errors-B-g6gvNv.js} +0 -0
  270. /package/dist/assets/{avatar-bundled-components-BgAkdy0n.js → avatar-bundled-components-DoxUXsZB.js} +0 -0
  271. /package/dist/assets/{avatar-svg-compositor-CEmN7KGI.js → avatar-svg-compositor-Bzno7teV.js} +0 -0
  272. /package/dist/assets/{build.umd-B3KuSWeo.js → build.umd-C56vswwO.js} +0 -0
  273. /package/dist/assets/{client.gen-Cs6pCK0s.js → client.gen-BnoNy2w0.js} +0 -0
  274. /package/dist/assets/{composer-focus-Bp1AiP29.js → composer-focus-BZr63Cvs.js} +0 -0
  275. /package/dist/assets/{conversation-selection-CtKjA5Ni.js → conversation-selection-BV7USWf2.js} +0 -0
  276. /package/dist/assets/{create-selectors-BE0_e_Ed.js → create-selectors-BTyhO-eS.js} +0 -0
  277. /package/dist/assets/{createLucideIcon-Bjb-Kuq7.js → createLucideIcon-6rJ6BdB7.js} +0 -0
  278. /package/dist/assets/{createLucideIcon-BlMXrA59.js → createLucideIcon-D8roAprb.js} +0 -0
  279. /package/dist/assets/{definitions-lQvEBMJT.js → definitions-CtVlh_R5.js} +0 -0
  280. /package/dist/assets/{dist-BTp54SIT.js → dist-CzyDxYAs.js} +0 -0
  281. /package/dist/assets/{edit-chat-session-DJpqkkos.js → edit-chat-session-BYvbyTwd.js} +0 -0
  282. /package/dist/assets/{effective-timezone-DrYGH2Lb.js → effective-timezone-DAkNzd21.js} +0 -0
  283. /package/dist/assets/{event-bus-Dl7-I4aL.js → event-bus-CBil9JQT.js} +0 -0
  284. /package/dist/assets/{feature-flag-catalog-RK3_Ckyw.js → feature-flag-catalog-Br-v70vR.js} +0 -0
  285. /package/dist/assets/{format-CPOur310.js → format-HKnibeVj.js} +0 -0
  286. /package/dist/assets/{format-date-CLlHK5gl.js → format-date-DyMQp2_m.js} +0 -0
  287. /package/dist/assets/{format-file-size-BfZOpPdu.js → format-file-size-DOcXaUaE.js} +0 -0
  288. /package/dist/assets/{haptics-CXHZxyAg.js → haptics-CKwMH4eq.js} +0 -0
  289. /package/dist/assets/{impersonate-version-flag-n-4oNLiO.js → impersonate-version-flag-XVa1Tm2F.js} +0 -0
  290. /package/dist/assets/{infiniteQueryOptions-C6p49ZmI.js → infiniteQueryOptions-DTCCTa10.js} +0 -0
  291. /package/dist/assets/{is-electron-C_ZTVhv8.js → is-electron-URCUw74P.js} +0 -0
  292. /package/dist/assets/{jsx-runtime-CVSDxk6A.js → jsx-runtime-B-mvcaJS.js} +0 -0
  293. /package/dist/assets/{llm-dimension-CQdmYu05.js → llm-dimension-Dx3xIzPP.js} +0 -0
  294. /package/dist/assets/{misc-BN2o2MEB.js → misc-CBD9JJCY.js} +0 -0
  295. /package/dist/assets/{native-deep-link-BYNI6pkW.js → native-deep-link-DmJ7Ty6z.js} +0 -0
  296. /package/dist/assets/{pdf-pz4ipUHd.js → pdf-DNWhOzmB.js} +0 -0
  297. /package/dist/assets/{prechat-B28Vzu55.js → prechat-BuuzFtal.js} +0 -0
  298. /package/dist/assets/{prechat-names-CRduluk-.js → prechat-names-Bo5bdzfH.js} +0 -0
  299. /package/dist/assets/{public-asset-Fx_laYnf.js → public-asset-BTisO-cB.js} +0 -0
  300. /package/dist/assets/{queryOptions-BtNi-_9H.js → queryOptions-DGyQTr3e.js} +0 -0
  301. /package/dist/assets/{sdk.gen-1aYqVbMj.js → sdk.gen-CC1iYdd0.js} +0 -0
  302. /package/dist/assets/{semver-yC_Iq9co.js → semver-DpADL11z.js} +0 -0
  303. /package/dist/assets/{tool-call-status-DTV5jmaU.js → tool-call-status-DNS6Y_vi.js} +0 -0
  304. /package/dist/assets/{typed-storage-Dctd_K9F.js → typed-storage-Chj38wph.js} +0 -0
  305. /package/dist/assets/{usage-window-Wgtgd-cv.js → usage-window-dm_mRqGo.js} +0 -0
  306. /package/dist/assets/{use-is-mobile-Cy10kl9u.js → use-is-mobile-BF5x8sr8.js} +0 -0
  307. /package/dist/assets/{workflow-status-DmbjJPT4.js → workflow-status-B53qU9DS.js} +0 -0
  308. /package/dist/assets/{xterm-MKaw0cT7.js → xterm-CQ7wuPsS.js} +0 -0
  309. /package/dist/assets/{xterm-addon-fit-BFDQtfbG.js → xterm-addon-fit-CamgTlEH.js} +0 -0
@@ -1 +1 @@
1
- import{t as e}from"./useMutation-Lj4VunQV.js";import{t}from"./queryOptions-BtNi-_9H.js";import{t as n}from"./infiniteQueryOptions-C6p49ZmI.js";import{t as r}from"./client.gen-Cs6pCK0s.js";import{A as i,At as a,B as ee,Ct as te,D as ne,Dt as re,Et as ie,F as ae,H as oe,I as se,L as ce,O as le,Ot as ue,P as de,Tt as fe,U as pe,W as me,Z as he,_ as ge,_t as _e,at as ve,b as ye,bt as be,c as xe,ct as o,dt as s,et as c,f as l,ft as u,g as d,gt as f,h as p,ht as m,it as h,k as g,kt as _,lt as v,m as y,mt as b,n as x,nt as S,p as C,pt as w,r as T,rt as E,s as D,tt as O,ut as k,v as A,vt as j,w as M,wt as Se,x as Ce,xt as we,y as Te,yt as Ee}from"./sdk.gen-D-_js_oC.js";var N=(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]},De=(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},P=e=>N(`assistantsList`,e),Oe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await M({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),ke=e=>N(`assistantsDoctorHistoryList`,e),Ae=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await D({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ke(e)}),je=e=>N(`assistantsDoctorHistoryRetrieve`,e),Me=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:je(e)}),Ne=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),Pe=t=>e({...Ne(),...t}),F=e=>N(`assistantsDomainsList`,e),Fe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:F(e)}),Ie=e=>({mutationFn:async t=>{let{data:n}=await C({...e,...t,throwOnError:!0});return n}}),Le=e=>({mutationFn:async t=>{let{data:n}=await y({...e,...t,throwOnError:!0});return n}}),Re=e=>N(`assistantsDomainsVerificationStatusRetrieve`,e),ze=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Re(e)}),I=e=>N(`assistantsEmailAddressesList`,e),Be=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:I(e)}),Ve=e=>({mutationFn:async t=>{let{data:n}=await ge({...e,...t,throwOnError:!0});return n}}),He=e=>({mutationFn:async t=>{let{data:n}=await A({...e,...t,throwOnError:!0});return n}}),L=e=>N(`assistantsEmailAddressesStatusRetrieve`,e),Ue=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:L(e)}),We=e=>N(`assistantsEmailsList`,e),Ge=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:We(e)}),Ke=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),qe=t=>e({...Ke(),...t}),R=e=>N(`assistantsOauthConnectionsList`,e),z=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),Je=(e,t,n)=>e.setQueryData(z(t).queryKey,n),Ye=e=>({mutationFn:async t=>{let{data:n}=await le({...e,...t,throwOnError:!0});return n}}),B=t=>e({...Ye(),...t}),V=e=>N(`assistantsReleaseChannelRetrieve`,e),Xe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),Ze=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),Qe=e=>({mutationFn:async t=>{let{data:n}=await ae({...e,...t,throwOnError:!0});return n}}),$e=e=>N(`assistantsSystemEventsList`,e,!0),et=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=De(n,typeof t==`object`?t:{query:{offset:t}}),{data:a}=await me({...e,...i,signal:r,throwOnError:!0});return a},queryKey:$e(e)}),H=e=>N(`assistantsRetrieve`,e),tt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),nt=e=>N(`assistantsOperationalStatusDetailRead`,e),rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await i({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nt(e)}),U=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),it=t=>e({...U(),...t}),W=e=>N(`assistantsSleepPolicyDetailRead`,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:W(e)}),ot=e=>({mutationFn:async t=>{let{data:n}=await oe({...e,...t,throwOnError:!0});return n}}),st=t=>e({...ot(),...t}),G=e=>N(`assistantsUpgradePolicyDetailRead`,e),ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await he({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),lt=e=>N(`assistantsAccessConsentRetrieve`,e),K=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await x({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:lt(e)}),ut=(e,t,n)=>e.setQueryData(K(t).queryKey,n),dt=e=>N(`assistantsActiveRetrieve`,e),ft=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await T({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:dt(e)}),pt=e=>N(`featureFlagsClientFlagValuesRetrieve`,e),mt=e=>({mutationFn:async t=>{let{data:n}=await c({...e,...t,throwOnError:!0});return n}}),q=e=>N(`organizationsBillingAutoTopUpRetrieve`,e),J=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await E({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),ht=(e,t,n)=>e.setQueryData(J(t).queryKey,n),gt=e=>({mutationFn:async t=>{let{data:n}=await ve({...e,...t,throwOnError:!0});return n}}),_t=e=>({mutationFn:async t=>{let{data:n}=await O({...e,...t,throwOnError:!0});return n}}),vt=e=>({mutationFn:async t=>{let{data:n}=await S({...e,...t,throwOnError:!0});return n}}),yt=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),bt=e=>N(`organizationsBillingInvoicesRetrieve`,e),Y=e=>N(`organizationsBillingPlansRetrieve`,e),xt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),St=e=>({mutationFn:async t=>{let{data:n}=await v({...e,...t,throwOnError:!0});return n}}),Ct=t=>e({...St(),...t}),X=e=>N(`organizationsBillingSubscriptionRetrieve`,e),wt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Tt=e=>({mutationFn:async t=>{let{data:n}=await k({...e,...t,throwOnError:!0});return n}}),Et=e=>({mutationFn:async t=>{let{data:n}=await s({...e,...t,throwOnError:!0});return n}}),Dt=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),Z=e=>N(`organizationsBillingSubscriptionOnboardingRetrieve`,e),Ot=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await b({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),kt=e=>({mutationFn:async t=>{let{data:n}=await w({...e,...t,throwOnError:!0});return n}}),At=e=>({mutationFn:async t=>{let{data:n}=await f({...e,...t,throwOnError:!0});return n}}),Q=e=>N(`organizationsBillingSummaryRetrieve`,e),jt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await j({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),Mt=e=>({mutationFn:async t=>{let{data:n}=await _e({...e,...t,throwOnError:!0});return n}}),Nt=t=>e({...Mt(),...t}),Pt=e=>({mutationFn:async t=>{let{data:n}=await Ee({...e,...t,throwOnError:!0});return n}}),Ft=e=>N(`organizationsBillingUsageSeriesRetrieve`,e),It=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ft(e)}),Lt=e=>N(`organizationsBillingUsageTotalsRetrieve`,e),Rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Lt(e)}),$=e=>N(`organizationsNotificationsList`,e),zt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$(e)}),Bt=e=>({mutationFn:async t=>{let{data:n}=await te({...e,...t,throwOnError:!0});return n}}),Vt=e=>({mutationFn:async t=>{let{data:n}=await re({...e,...t,throwOnError:!0});return n}}),Ht=e=>({mutationFn:async t=>{let{data:n}=await fe({...e,...t,throwOnError:!0});return n}}),Ut=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),Wt=e=>N(`organizationsNotificationsSummaryRetrieve`,e),Gt=e=>N(`referralCodesMeRetrieve`,e),Kt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Gt(e)}),qt=e=>N(`releasesList`,e),Jt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qt(e)}),Yt=e=>({mutationFn:async t=>{let{data:n}=await a({...e,...t,throwOnError:!0});return n}}),Xt=t=>e({...Yt(),...t});export{Z as $,H as A,J as B,rt as C,Nt as Ct,V as D,Xe as E,G as F,bt as G,ht as H,pt as I,Tt as J,xt as K,mt as L,W as M,et as N,U as O,ct as P,Ot as Q,_t as R,Je as S,Ct as St,Qe as T,yt as U,q as V,gt as W,Dt as X,Et as Y,kt as Z,Ge as _,Pe as _t,Me as a,Pt as at,z as b,it as bt,Fe as c,Bt as ct,Ve as d,Ht as dt,wt as et,He as f,Ut as ft,L as g,Jt as gt,Ue as h,Kt as ht,Ae as i,Q as it,at as j,tt as k,F as l,zt as lt,I as m,Wt as mt,ut as n,At as nt,Ie as o,It as ot,Be as p,Vt as pt,Y as q,ft as r,jt as rt,Le as s,Rt as st,K as t,X as tt,ze as u,$ as ut,Oe as v,B as vt,Ze as w,Xt as wt,R as x,st as xt,P as y,qe as yt,vt as z};
1
+ import{t as e}from"./useMutation-D3WkZnYg.js";import{t}from"./queryOptions-DGyQTr3e.js";import{t as n}from"./infiniteQueryOptions-DTCCTa10.js";import{t as r}from"./client.gen-BnoNy2w0.js";import{A as i,At as a,B as ee,Ct as te,D as ne,Dt as re,Et as ie,F as ae,H as oe,I as se,L as ce,O as le,Ot as ue,P as de,Tt as fe,U as pe,W as me,Z as he,_ as ge,_t as _e,at as ve,b as ye,bt as be,c as xe,ct as o,dt as s,et as c,f as l,ft as u,g as d,gt as f,h as p,ht as m,it as h,k as g,kt as _,lt as v,m as y,mt as b,n as x,nt as S,p as C,pt as w,r as T,rt as E,s as D,tt as O,ut as k,v as A,vt as j,w as M,wt as Se,x as Ce,xt as we,y as Te,yt as Ee}from"./sdk.gen-DSjI3deY.js";var N=(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]},De=(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},P=e=>N(`assistantsList`,e),Oe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await M({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:P(e)}),ke=e=>N(`assistantsDoctorHistoryList`,e),Ae=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await D({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:ke(e)}),je=e=>N(`assistantsDoctorHistoryRetrieve`,e),Me=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await xe({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:je(e)}),Ne=e=>({mutationFn:async t=>{let{data:n}=await l({...e,...t,throwOnError:!0});return n}}),Pe=t=>e({...Ne(),...t}),F=e=>N(`assistantsDomainsList`,e),Fe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await p({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:F(e)}),Ie=e=>({mutationFn:async t=>{let{data:n}=await C({...e,...t,throwOnError:!0});return n}}),Le=e=>({mutationFn:async t=>{let{data:n}=await y({...e,...t,throwOnError:!0});return n}}),Re=e=>N(`assistantsDomainsVerificationStatusRetrieve`,e),ze=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await d({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Re(e)}),I=e=>N(`assistantsEmailAddressesList`,e),Be=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Te({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:I(e)}),Ve=e=>({mutationFn:async t=>{let{data:n}=await ge({...e,...t,throwOnError:!0});return n}}),He=e=>({mutationFn:async t=>{let{data:n}=await A({...e,...t,throwOnError:!0});return n}}),L=e=>N(`assistantsEmailAddressesStatusRetrieve`,e),Ue=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ye({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:L(e)}),We=e=>N(`assistantsEmailsList`,e),Ge=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Ce({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:We(e)}),Ke=e=>({mutationFn:async t=>{let{data:n}=await g({...e,...t,throwOnError:!0});return n}}),qe=t=>e({...Ke(),...t}),R=e=>N(`assistantsOauthConnectionsList`,e),z=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ne({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:R(e)}),Je=(e,t,n)=>e.setQueryData(z(t).queryKey,n),Ye=e=>({mutationFn:async t=>{let{data:n}=await le({...e,...t,throwOnError:!0});return n}}),B=t=>e({...Ye(),...t}),V=e=>N(`assistantsReleaseChannelRetrieve`,e),Xe=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:V(e)}),Ze=e=>({mutationFn:async t=>{let{data:n}=await de({...e,...t,throwOnError:!0});return n}}),Qe=e=>({mutationFn:async t=>{let{data:n}=await ae({...e,...t,throwOnError:!0});return n}}),$e=e=>N(`assistantsSystemEventsList`,e,!0),et=e=>n({queryFn:async({pageParam:t,queryKey:n,signal:r})=>{let i=De(n,typeof t==`object`?t:{query:{offset:t}}),{data:a}=await me({...e,...i,signal:r,throwOnError:!0});return a},queryKey:$e(e)}),H=e=>N(`assistantsRetrieve`,e),tt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ee({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:H(e)}),nt=e=>N(`assistantsOperationalStatusDetailRead`,e),rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await i({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:nt(e)}),U=e=>({mutationFn:async t=>{let{data:n}=await ce({...e,...t,throwOnError:!0});return n}}),it=t=>e({...U(),...t}),W=e=>N(`assistantsSleepPolicyDetailRead`,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:W(e)}),ot=e=>({mutationFn:async t=>{let{data:n}=await oe({...e,...t,throwOnError:!0});return n}}),st=t=>e({...ot(),...t}),G=e=>N(`assistantsUpgradePolicyDetailRead`,e),ct=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await he({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:G(e)}),lt=e=>N(`assistantsAccessConsentRetrieve`,e),K=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await x({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:lt(e)}),ut=(e,t,n)=>e.setQueryData(K(t).queryKey,n),dt=e=>N(`assistantsActiveRetrieve`,e),ft=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await T({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:dt(e)}),pt=e=>N(`featureFlagsClientFlagValuesRetrieve`,e),mt=e=>({mutationFn:async t=>{let{data:n}=await c({...e,...t,throwOnError:!0});return n}}),q=e=>N(`organizationsBillingAutoTopUpRetrieve`,e),J=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await E({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:q(e)}),ht=(e,t,n)=>e.setQueryData(J(t).queryKey,n),gt=e=>({mutationFn:async t=>{let{data:n}=await ve({...e,...t,throwOnError:!0});return n}}),_t=e=>({mutationFn:async t=>{let{data:n}=await O({...e,...t,throwOnError:!0});return n}}),vt=e=>({mutationFn:async t=>{let{data:n}=await S({...e,...t,throwOnError:!0});return n}}),yt=e=>({mutationFn:async t=>{let{data:n}=await h({...e,...t,throwOnError:!0});return n}}),bt=e=>N(`organizationsBillingInvoicesRetrieve`,e),Y=e=>N(`organizationsBillingPlansRetrieve`,e),xt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await o({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Y(e)}),St=e=>({mutationFn:async t=>{let{data:n}=await v({...e,...t,throwOnError:!0});return n}}),Ct=t=>e({...St(),...t}),X=e=>N(`organizationsBillingSubscriptionRetrieve`,e),wt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await m({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:X(e)}),Tt=e=>({mutationFn:async t=>{let{data:n}=await k({...e,...t,throwOnError:!0});return n}}),Et=e=>({mutationFn:async t=>{let{data:n}=await s({...e,...t,throwOnError:!0});return n}}),Dt=e=>({mutationFn:async t=>{let{data:n}=await u({...e,...t,throwOnError:!0});return n}}),Z=e=>N(`organizationsBillingSubscriptionOnboardingRetrieve`,e),Ot=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await b({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Z(e)}),kt=e=>({mutationFn:async t=>{let{data:n}=await w({...e,...t,throwOnError:!0});return n}}),At=e=>({mutationFn:async t=>{let{data:n}=await f({...e,...t,throwOnError:!0});return n}}),Q=e=>N(`organizationsBillingSummaryRetrieve`,e),jt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await j({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Q(e)}),Mt=e=>({mutationFn:async t=>{let{data:n}=await _e({...e,...t,throwOnError:!0});return n}}),Nt=t=>e({...Mt(),...t}),Pt=e=>({mutationFn:async t=>{let{data:n}=await Ee({...e,...t,throwOnError:!0});return n}}),Ft=e=>N(`organizationsBillingUsageSeriesRetrieve`,e),It=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await be({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Ft(e)}),Lt=e=>N(`organizationsBillingUsageTotalsRetrieve`,e),Rt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await we({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Lt(e)}),$=e=>N(`organizationsNotificationsList`,e),zt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await Se({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:$(e)}),Bt=e=>({mutationFn:async t=>{let{data:n}=await te({...e,...t,throwOnError:!0});return n}}),Vt=e=>({mutationFn:async t=>{let{data:n}=await re({...e,...t,throwOnError:!0});return n}}),Ht=e=>({mutationFn:async t=>{let{data:n}=await fe({...e,...t,throwOnError:!0});return n}}),Ut=e=>({mutationFn:async t=>{let{data:n}=await ie({...e,...t,throwOnError:!0});return n}}),Wt=e=>N(`organizationsNotificationsSummaryRetrieve`,e),Gt=e=>N(`referralCodesMeRetrieve`,e),Kt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await ue({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:Gt(e)}),qt=e=>N(`releasesList`,e),Jt=e=>t({queryFn:async({queryKey:t,signal:n})=>{let{data:r}=await _({...e,...t[0],signal:n,throwOnError:!0});return r},queryKey:qt(e)}),Yt=e=>({mutationFn:async t=>{let{data:n}=await a({...e,...t,throwOnError:!0});return n}}),Xt=t=>e({...Yt(),...t});export{Z as $,H as A,J as B,rt as C,Nt as Ct,V as D,Xe as E,G as F,bt as G,ht as H,pt as I,Tt as J,xt as K,mt as L,W as M,et as N,U as O,ct as P,Ot as Q,_t as R,Je as S,Ct as St,Qe as T,yt as U,q as V,gt as W,Dt as X,Et as Y,kt as Z,Ge as _,Pe as _t,Me as a,Pt as at,z as b,it as bt,Fe as c,Bt as ct,Ve as d,Ht as dt,wt as et,He as f,Ut as ft,L as g,Jt as gt,Ue as h,Kt as ht,Ae as i,Q as it,at as j,tt as k,F as l,zt as lt,I as m,Wt as mt,ut as n,At as nt,Ie as o,It as ot,Be as p,Vt as pt,Y as q,ft as r,jt as rt,Le as s,Rt as st,K as t,X as tt,ze as u,$ as ut,Oe as v,B as vt,Ze as w,Xt as wt,R as x,st as xt,P as y,qe as yt,vt as z};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BlMXrA59.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-D8roAprb.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,r as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{a as o}from"./routes-DVqkwUEe.js";import{t as s}from"./client-feature-flag-store-C1kdd1EO.js";import{t as c}from"./conversation-store-DK-7gFAt.js";import{t as l}from"./conversation-selection-CtKjA5Ni.js";import{jt as u}from"./index-PRnvH2Y1.js";var d=e(t(),1),f=a(),p=[{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:[]}],m=[{suggestion:`I'll summarize this week's AI model releases for you`,prompt:`Summarize this week's AI model releases for me.`},{suggestion:`I'll draft a technical blog post from your latest notes`,prompt:`Draft a technical blog post from my latest notes.`},{suggestion:`I'll build you a tracker for competitor product launches`,prompt:`Build me a tracker for competitor product launches.`},{suggestion:`I'll analyze a CSV of metrics and surface the trends`,prompt:`Analyze a CSV of metrics for me and surface the trends.`}];function h(e){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`}function g(){let e=r(),t=s.use.researchOnboarding(),[a,g]=(0,d.useState)(`results`),[_,v]=(0,d.useState)(()=>new Map),y=p.map((e,t)=>({fact:e,index:t}));return t?(0,f.jsxs)(`div`,{className:`relative h-screen w-screen`,children:[(0,f.jsx)(`div`,{className:`absolute left-1/2 top-3 z-50 flex -translate-x-1/2 gap-1 rounded-full border border-[var(--border-base)] bg-[var(--surface-lift)] p-1`,children:[`loading`,`results`,`empty`].map(e=>(0,f.jsx)(n,{variant:a===e?`primary`:`ghost`,size:`compact`,onClick:()=>g(e),children:e},e))}),(0,f.jsx)(u,{mode:a,loadingContent:(0,f.jsxs)(`div`,{className:`text-[var(--content-secondary)]`,children:[(0,f.jsx)(`p`,{className:`text-lg`,children:`Getting to know you…`}),(0,f.jsx)(`p`,{className:`text-body-medium-lighter`,children:`(mock — the live flow shows the search activity feed here)`})]}),items:y,removals:_,suggestions:m,resultsTitle:`Here's what I know about you. You can remove any that aren't true:`,showSuggestions:!0,canContinue:!0,resolveFavicon:h,onRemove:e=>v(t=>t.has(e)?t:new Map(t).set(e,null)),onSetReason:(e,t)=>v(n=>new Map(n).set(e,t)),onRestore:e=>v(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n}),onSuggestionClick:t=>{let n=l();c.getState().setActiveConversationId(n),e(`${o.conversation(n)}?prompt=${encodeURIComponent(t)}`)},onContinue:()=>e(o.assistant)})]}):(0,f.jsx)(i,{to:o.assistant,replace:!0})}export{g as ResearchMockPage};
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-BvHa6F59.js";import{d as r,r as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-B-mvcaJS.js";import{a as o}from"./routes-Dzl0kj5j.js";import{t as s}from"./client-feature-flag-store-kWvb3vtZ.js";import{t as c}from"./conversation-store-6tz67quR.js";import{t as l}from"./conversation-selection-BV7USWf2.js";import{jt as u}from"./index-3zpPFBeR.js";var d=e(t(),1),f=a(),p=[{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:[]}],m=[{suggestion:`I'll summarize this week's AI model releases for you`,prompt:`Summarize this week's AI model releases for me.`},{suggestion:`I'll draft a technical blog post from your latest notes`,prompt:`Draft a technical blog post from my latest notes.`},{suggestion:`I'll build you a tracker for competitor product launches`,prompt:`Build me a tracker for competitor product launches.`},{suggestion:`I'll analyze a CSV of metrics and surface the trends`,prompt:`Analyze a CSV of metrics for me and surface the trends.`}];function h(e){return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(e)}&sz=64`}function g(){let e=r(),t=s.use.researchOnboarding(),[a,g]=(0,d.useState)(`results`),[_,v]=(0,d.useState)(()=>new Map),y=p.map((e,t)=>({fact:e,index:t}));return t?(0,f.jsxs)(`div`,{className:`relative h-screen w-screen`,children:[(0,f.jsx)(`div`,{className:`absolute left-1/2 top-3 z-50 flex -translate-x-1/2 gap-1 rounded-full border border-[var(--border-base)] bg-[var(--surface-lift)] p-1`,children:[`loading`,`results`,`empty`].map(e=>(0,f.jsx)(n,{variant:a===e?`primary`:`ghost`,size:`compact`,onClick:()=>g(e),children:e},e))}),(0,f.jsx)(u,{mode:a,loadingContent:(0,f.jsxs)(`div`,{className:`text-[var(--content-secondary)]`,children:[(0,f.jsx)(`p`,{className:`text-lg`,children:`Getting to know you…`}),(0,f.jsx)(`p`,{className:`text-body-medium-lighter`,children:`(mock — the live flow shows the search activity feed here)`})]}),items:y,removals:_,suggestions:m,resultsTitle:`Here's what I know about you. You can remove any that aren't true:`,showSuggestions:!0,canContinue:!0,resolveFavicon:h,onRemove:e=>v(t=>t.has(e)?t:new Map(t).set(e,null)),onSetReason:(e,t)=>v(n=>new Map(n).set(e,t)),onRestore:e=>v(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n}),onSuggestionClick:t=>{let n=l();c.getState().setActiveConversationId(n),e(`${o.conversation(n)}?prompt=${encodeURIComponent(t)}`)},onContinue:()=>e(o.assistant)})]}):(0,f.jsx)(i,{to:o.assistant,replace:!0})}export{g as ResearchMockPage};
@@ -0,0 +1,35 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./capture-error-BaKOqBjF.js";import{t as n}from"./react-DJZBPgpf.js";import{t as r}from"./button-BvHa6F59.js";import{d as i,r as a}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{n as o}from"./QueryClientProvider-DgWA3A3c.js";import{t as s}from"./jsx-runtime-B-mvcaJS.js";import{t as c}from"./cn-CFvi8Z0K.js";import{t as l}from"./tag-64Evw5MO.js";import{t as u}from"./input-BLN3wmw2.js";import{n as d,t as f}from"./create-selectors-BTyhO-eS.js";import{t as p}from"./arrow-left-BPsKoNcb.js";import{t as m}from"./chevron-left-CgekgptJ.js";import{t as h}from"./chevron-right-DP15nqFC.js";import{t as g}from"./loader-circle-cYXxWP5B.js";import{t as _}from"./pencil-DUMCM9m-.js";import{t as v}from"./x-Bn5tweDc.js";import{L as y,Sn as b,X as x,en as S,tn as C,xn as w}from"./sdk.gen-CC1iYdd0.js";import{r as T}from"./api-errors-B-g6gvNv.js";import{Q as E,at as D,ct as O,n as k,ot as A,st as j}from"./auth-store-BzL2lSd1.js";import{a as ee,o as te,r as ne}from"./api-DXPKXkDj.js";import{a as re}from"./routes-Dzl0kj5j.js";import{t as ie}from"./client-feature-flag-store-kWvb3vtZ.js";import{c as ae,l as oe}from"./prechat-BuuzFtal.js";import{A as M,B as se,C as N,D as ce,E as le,F as ue,I as de,L as fe,M as pe,N as P,O as F,P as I,R as L,S as me,T as R,V as z,_ as he,a as ge,b as _e,d as ve,f as ye,g as be,i as xe,j as Se,k as Ce,m as we,o as Te,p as Ee,r as De,s as Oe,t as B,v as ke,w as Ae,x as je,y as Me}from"./proxy-T76Q62qP.js";import{t as Ne}from"./AnimatePresence-Dfn9OLfv.js";import{t as V}from"./use-reduced-motion-DvKonyYy.js";import{At as Pe,Mt as Fe,Nt as Ie,On as Le,Vt as Re,kt as ze,lt as H,ra as U,rt as W,yt as Be}from"./index-3zpPFBeR.js";import{a as Ve,r as He}from"./funnel-events-Dz_DLI0Q.js";import{t as Ue}from"./prechat-names-Bo5bdzfH.js";var We=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function Ge(e,t){return pe(e)?e[We(0,e.length,t)]:e}var Ke=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return qe(this.animations,`duration`)}get iterationDuration(){return qe(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function qe(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Je=class extends Ke{then(e,t){return this.finished.finally(e).then(()=>{})}};function Ye(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=le(i,a,o);return t?s(r):s}function Xe(e,t){return e in t}var Ze=class extends Oe{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Xe(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return ye()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},G=e(n(),1);function Qe(e){let t=z(()=>me(e)),{isStatic:n}=(0,G.useContext)(De);if(n){let[,n]=(0,G.useState)(e);(0,G.useEffect)(()=>t.on(`change`,n),[])}return t}function $e(e,t){let n=Qe(t()),r=()=>n.set(t());return r(),se(()=>{let t=()=>Se.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),M(r)}}),n}function et(e){je.current=[],e();let t=$e(je.current,e);return je.current=void 0,t}function tt(e,t,n,r){if(typeof e==`function`)return et(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return rt(e,t,n,r);let i=typeof t==`function`?t:Ye(t,n,r),a=Array.isArray(e)?nt(e,i):nt([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function nt(e,t){let n=z(()=>[]);return $e(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function rt(e,t,n,r){let i=z(()=>Object.keys(n)),a=z(()=>({}));for(let o of i)a[o]=tt(e,t,n[o],r);return a}function it(e){e.values.forEach(e=>e.stop())}function at(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&_e(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{at(e,t)})})}function ot(e,t){if(Array.isArray(t))return at(e,t);if(typeof t==`string`)return at(e,[t]);_e(e,t)}function st(){let e=!1,t=new Set,n={subscribe(e){return t.add(e),()=>void t.delete(e)},start(n,r){de(e,`controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.`);let i=[];return t.forEach(e=>{i.push(he(e,n,{transitionOverride:r}))}),Promise.all(i)},set(n){return de(e,`controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook.`),t.forEach(e=>{ot(e,n)})},stop(){t.forEach(e=>{it(e)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}function ct(e){return typeof e==`object`&&!Array.isArray(e)}function lt(e,t,n,r){return e==null?[]:typeof e==`string`&&ct(t)?be(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ut(e,t,n){return e*(t+1)+n*t}function dt(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function ft(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(L(e,i),r--)}}function pt(e,t,n,r,i,a){ft(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Ce(i,a,r[o]),easing:Ge(n,o)})}function mt(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function ht(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var gt=`easeInOut`,_t=20;function vt(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,dt(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=dt(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=xt(e),{delay:l=0,times:u=Ae(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=N(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&wt(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=I(b));let r=F(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&R(u,T),c.length===1&&c.unshift(null),m&&fe(m<_t,`Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${_t} or apply repeat at the sequence level instead.`),m&&m<_t){let e=b>0?_/b:0;b=ut(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?P(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:Ge(f,e-1))}mt(u,m,e)}let E=w+b;pt(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Me(p)){let e=yt(p,s);_(m,h,bt(`default`,e))}else{let e=lt(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=yt(r,s);for(let e in m)_(m[e],St(h,e),bt(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(ht);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(ue(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(gt)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function yt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function bt(e,t){return t[e]||(t[e]=[]),t[e]}function xt(e){return Array.isArray(e)?e:[e]}function St(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Ct=e=>typeof e==`number`,wt=e=>e.every(Ct);function Tt(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=we(e)&&!Ee(e)?new ge(t):new Te(t);n.mount(e),ve.set(e,n)}function Et(e){let t=new Ze({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),ve.set(e,t)}function Dt(e,t){return Me(e)||typeof e==`number`||typeof e==`string`&&!ct(t)}function Ot(e,t,n,r){let i=[];if(Dt(e,t))i.push(xe(e,ct(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=lt(e,t,r),o=a.length;de(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?Tt:Et;ve.has(r)||s(r);let c=ve.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...ke(c,{...t,transition:l},{}))}}return i}function kt(e,t,n){let r=[];return vt(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=me(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:ce}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Ot(n,e,t))}),r}function At(e){return Array.isArray(e)&&e.some(Array.isArray)}function jt(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),At(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=kt(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Ot(e,i,{...c,...r},t)}let l=new Je(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{L(t.animations,l)})),l}return i}var K=jt();function Mt(){let e=z(st);return se(e.mount,[]),e}var Nt=12;function Pt(e){let t=e.slice(0,Nt).map(e=>`- ${e.name} — ${e.description}`).join(`
2
+ `);return t?`
3
+ Capabilities you can offer me — specialized skillsets you can invoke on my behalf, not generic chat:
4
+ ${t}
5
+
6
+ Add a "plugins" array as the FIRST key in your JSON object, before "claims" and "suggestions": 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>"]. Don't reference the setup in the claims or suggestions text.
7
+ `:``}function Ft({firstName:e,lastName:t,occupation:n,hobby:r},i=[]){let a=[e.trim(),t.trim()].filter(Boolean).join(` `),o=n.trim(),s=r?.trim()??``,c=Pt(i),l=c?`"plugins": ["<exact name from the list above>"], `:``;return`${[a?`My name is ${a}.`:``,o?`I work as ${o}.`:``,s?`My hobby is ${s}.`:``].filter(Boolean).join(` `)||`I'd like you to get to know me before we start working together.`}
8
+
9
+ Get to know me. Search the web for what's publicly known about the person matching my name and role, 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. Lean on public sources (LinkedIn, company pages, social profiles, articles, personal sites, GitHub). It's fine to make reasonable inferences and label them honestly.
10
+
11
+ 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:
12
+
13
+ { ${l}"claims": [ { "claim": "Senior engineer at an AI infra startup", "confidence": "confident", "sources": ["https://linkedin.com/in/example-user"] }, { "claim": "Based in Boulder, CO", "confidence": "confident", "sources": ["https://linkedin.com/in/example-user"] }, { "claim": "Active climber on Mountain Project", "confidence": "maybe", "sources": [] }, { "claim": "Focused on evals or model serving infrastructure", "confidence": "guessing", "sources": ["https://github.com/example-user"] } ], "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." } ] }
14
+
15
+ Rules for "claims":
16
+
17
+ AT MOST 5 claims, typically 3 to 4. Aim for at least one "confident" and at least one "guessing"; the rest "maybe".
18
+ 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".
19
+ Each claim must be independently true-or-false so I can remove the ones that are wrong.
20
+ "confidence" is one of: "confident" (well supported by what you found), "maybe" (plausible but unverified), "guessing" (a hunch from limited signal).
21
+ "sources": 0 to 3 URLs you actually used as evidence for that specific claim. Use [] for pure inferences.
22
+ Rules for "suggestions":
23
+
24
+ Each suggestion is an object with two fields:
25
+ "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.
26
+ "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.
27
+
28
+ 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.
29
+ 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."
30
+ 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.
31
+ 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.
32
+ ${c}
33
+ Don't include anything sensitive or private. If you found very little, lean on "guessing" claims and broadly useful suggestions for my role.
34
+ 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.`}var It=3e3,Lt=3e5,Rt=`Failed to start your assistant. Please try again.`,zt=`Your assistant is taking longer than expected. Please try again.`,Bt=e=>new Promise(t=>setTimeout(t,e));function Vt(){let[e,n]=(0,G.useState)(!1),[r,i]=(0,G.useState)(null),[a,o]=(0,G.useState)(null),s=(0,G.useRef)(!1),c=(0,G.useRef)([]),l=(0,G.useRef)(null),u=(0,G.useCallback)(e=>{if(!l.current){l.current={kind:`ready`,id:e},n(!0);for(let t of c.current)t.resolve(e);c.current=[]}},[]),d=(0,G.useCallback)(e=>{if(l.current)return;l.current={kind:`error`,message:e},o(e);let t=Error(e);for(let e of c.current)e.reject(t);c.current=[]},[]);return{start:(0,G.useCallback)(()=>{if(s.current)return;s.current=!0;let e=Date.now(),n=()=>Date.now()-e>=Lt;(async()=>{let e;try{let t=await te();if(t.ok)e=t.data.id,i(t.data.id);else{if(A(t.status,t.error)){d(D);return}if(!O(t.status)){d(T(t.error,void 0,Rt));return}}}catch(e){t(e,{context:`research_background_hatch`})}let r;for(;!r;){if(n()){d(zt);return}try{let t=await ne(e);e&&!t.ok&&t.status===404&&(e=void 0,t=await ne());let n=j(t);if(n.kind===`active`&&t.ok){r=t.data.id,i(r);break}if(n.kind===`error`){d(n.message);return}}catch(e){t(e,{context:`research_background_hatch_poll`})}await Bt(It)}for(;;){try{if((await ee(r)).ok)break}catch{}if(n()){d(zt);return}await Bt(It)}u(r)})()},[d,u]),ready:e,assistantId:r,error:a,awaitReady:(0,G.useCallback)(()=>{let e=l.current;return e?.kind===`ready`?Promise.resolve(e.id):e?.kind===`error`?Promise.reject(Error(e.message)):new Promise((e,t)=>{c.current.push({resolve:e,reject:t})})},[])}}async function Ht(e,n){try{await y({path:{assistant_id:e,id:n},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_archive`})}}var Ut=[`admin-copilot`],Wt=[{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 Gt(e){return` ${e.toLowerCase().replace(/[^a-z0-9]+/g,` `).trim()} `}function Kt(e,t){return e.includes(` ${t} `)}function qt(e){let t=Gt(e),n=[];for(let{plugin:e,keywords:r}of Wt)r.some(e=>Kt(t,e))&&n.push(e);return n}function Jt(e,t){let n=[...Ut,...qt(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 Yt=1500,Xt=12e4,Zt=2;function Qt({complete:e,stableReads:t}){return e&&t>=Zt}var $t=`vellum-ai`,en=new Set([`simple-memory`,`level-up`]);function tn(e){let t=e.trim().split(/(?<=\.)\s/)[0]?.trim()??e.trim();return t.length>100?`${t.slice(0,97).trimEnd()}…`:t}function nn(e){return e?.split(`/`)[0]?.trim()??``}function rn(e){let t=[],n=new Set;for(let r of e){let e=r.name?.trim(),i=r.description?.trim();!e||!i||nn(r.source?.repo)===$t&&(en.has(e)||(n.add(e),t.push({name:e,description:tn(i)})))}return{capabilities:t,validNames:n}}async function an(e){try{return rn((await b({path:{assistant_id:e},throwOnError:!1})).data?.matches??[])}catch(e){return t(e,{context:`research_onboarding_catalog`}),{capabilities:[],validNames:new Set}}}async function on(e,n){try{await w({path:{assistant_id:e},body:{name:n},throwOnError:!1})}catch(e){t(e,{context:`research_onboarding_install`})}}var sn=e=>new Promise(t=>setTimeout(t,e));function cn({role:e,validNames:t,modelPlugins:n}){return[...new Set([...Jt(e,t),...n.filter(e=>t.has(e))])]}function ln(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(!n||n.role!==`assistant`)continue;let r=n.contentBlocks;if(r&&r.length>0){let e=r.filter(e=>e.type===`text`).map(e=>e.text).join(`
35
+ `).trim();if(e)return e}return(n.content??``).trim()}return``}function un(){let[e,n]=(0,G.useState)({status:`idle`,claims:[],suggestions:[],installedPlugins:[]}),r=(0,G.useRef)(0),i=(0,G.useRef)(null),a=(0,G.useRef)(new Map),s=(0,G.useRef)(Promise.resolve()),c=o(),l=(0,G.useCallback)(({awaitAssistantId:e,subject:o,conversationTitle:l})=>{let u=JSON.stringify(o);if(i.current===u)return;i.current=u;let d=r.current+1;r.current=d;let f=()=>r.current!==d,p=()=>{};s.current=new Promise(e=>{p=e}),a.current.clear(),n({status:`running`,claims:[],suggestions:[],installedPlugins:[]}),(async()=>{let r,i;try{let t=await e();if(r=t,f())return;let{capabilities:s,validNames:c}=await an(t);if(f())return;c.size===0&&p();let u=a.current,d=Jt(o.occupation,c);for(let e of d)u.has(e)||u.set(e,on(t,e));d.length>0&&n(e=>({...e,installedPlugins:d}));let m=await x({path:{assistant_id:t},body:{conversationType:`standard`,...l?{title:l}:{}},throwOnError:!1});if(i=m.data?.id,f())return;let h=m.data?.id;if(!m.response?.ok||!h){n(e=>({...e,status:`error`}));return}let g={conversationId:h,content:Ft(o,s),sourceChannel:`vellum`,interface:`vellum`,clientMessageId:crypto.randomUUID()};try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;e&&(g.clientTimezone=e)}catch{}let _=await C({path:{assistant_id:t},body:g,throwOnError:!1});if(f())return;if(!_.response?.ok){n(e=>({...e,status:`error`}));return}let v=Date.now()+Xt,y=``,b=0;for(;Date.now()<v;){if(await sn(Yt),f())return;let e=await S({path:{assistant_id:t},query:{conversationId:h},throwOnError:!1});if(f())return;let r=ln(e.data?.messages??[]);if(r){let{claims:e,suggestions:i,plugins:a,pluginsResolved:s,complete:l}=Fe(r),d=a.filter(e=>c.has(e));for(let e of d)u.has(e)||u.set(e,on(t,e));if(s&&p(),n({status:`running`,claims:e,suggestions:i,installedPlugins:cn({role:o.occupation,validNames:c,modelPlugins:d})}),b=r===y?b+1:0,y=r,Qt({complete:l,stableReads:b}))break}}if(f())return;n(e=>({...e,status:`done`}))}catch(e){if(f())return;t(e,{context:`research_onboarding_runner`}),n(e=>({...e,status:`error`}))}finally{p(),r&&i&&(await Ht(r,i),Le(c,r))}})()},[c]),u=(0,G.useCallback)(async()=>{await s.current,await Promise.all([...a.current.values()])},[]),d=(0,G.useCallback)((e,t)=>{if(r.current+=1,n(e),t&&e.installedPlugins.length>0){let n=a.current;n.clear();for(let r of e.installedPlugins)n.set(r,(async()=>{try{await on(await t(),r)}catch{}})())}},[]);return{...e,start:l,awaitPluginInstalls:u,hydrate:d}}function dn(e){return e?`research_onboarding:${e}`:null}function fn(e){let t=dn(e);if(!t)return null;try{let e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch{return null}}function pn(e,t){let n=dn(e);if(n)try{sessionStorage.setItem(n,JSON.stringify(t))}catch{}}function mn(e){let t=dn(e);if(t)try{sessionStorage.removeItem(t)}catch{}}function hn(e){return e.research?.status===`done`?`suggestions`:e.step===`meeting`?e.checkinBooked?`looking`:`letschat`:e.step}function gn(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 q=s(),_n={w:1280,h:800};function vn(){return typeof window>`u`?_n:{w:window.innerWidth,h:window.innerHeight}}function yn(){let[e,t]=(0,G.useState)(null),[n,r]=(0,G.useState)(()=>vn());return(0,G.useLayoutEffect)(()=>{if(!e)return;let t=()=>{let t=e.getBoundingClientRect();r({w:t.width,h:t.height})};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e]),{ref:t,size:n}}var bn=(0,G.createContext)(null);function xn({size:e,children:t}){return(0,q.jsx)(bn.Provider,{value:e,children:t})}function Sn(){let e=(0,G.useContext)(bn),[t,n]=(0,G.useState)(()=>vn());return(0,G.useEffect)(()=>{if(e)return;let t=()=>n(vn());return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e]),e??t}var Cn={x:.5,y:.4},wn=[-8,6,9,0,7,-6,5,0,-7,4,-5,6];function Tn(e){return wn[e%wn.length]??0}function En(e,t){return Math.round(Math.max(130,Math.min(Math.min(e,t)*.4,420)))}function Dn(e,t){return Math.round(Math.max(110,Math.min(Math.min(e,t)*.21,205)))}function On(e,t,n){let r=n*.4,i=n*.48;return[{x:i,y:i},{x:e*.3,y:r},{x:e*.72,y:r},{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*.38,y:t-r},{x:e*.62,y:t-r}]}function kn(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 An({components:e,characters:t,centerChar:n,edgeOrder:r,entering:i,exiting:a,onEnterComplete:o,onSelectChar:s}){let{w:c,h:l}=Sn(),u=V(),d=c<640,f=new Set([4,7,8,9,10]),p=e=>d&&f.has(e),m=En(c,l),h=m/2,g=m/2,_=Dn(c,l)/m,v=Dn(c,l),y=(0,G.useMemo)(()=>{let e=new Map;return r.forEach((t,n)=>e.set(t,n)),e},[r]),b=Cn.x*c,x=Cn.y*l,S=b-h,C=x-h,w=(0,G.useMemo)(()=>On(c,l,g),[c,l,g]);return(0,q.jsxs)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 z-0 overflow-hidden`,children:[(0,q.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=kn(n,b,x,c,l);return(0,q.jsx)(B.div,{className:`absolute left-0 top-0`,style:{width:m,height:m},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:[1,1,1,_*.7,_*1.08,_],opacity:[1,1,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,q.jsx)(H,{components:e,traits:t,size:m})},r)}if(g){if(p(a.toSlot))return null;let n=w[a.toSlot],i=kn(n,b,x,c,l);return(0,q.jsx)(B.div,{className:`absolute left-0 top-0`,style:{width:m,height:m},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,1,1,1.1,1],opacity:[1,0,0,1,1,1]},transition:{duration:.85,times:[0,.28,.34,.45,.78,1],ease:[`easeIn`,`linear`,`linear`,`easeOut`,`easeOut`]},children:(0,q.jsx)(`div`,{style:{transform:`rotate(${Tn(a.toSlot)}deg)`},children:(0,q.jsx)(H,{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,q.jsx)(B.div,{className:`absolute left-0 top-0 ${d?``:`pointer-events-auto cursor-pointer`}`,style:{width:m,height:m},initial:!1,animate:{x:T.x-h,y:T.y-h,scale:d?_:1,opacity:1},transition:u?{duration:0}:{type:`spring`,stiffness:230,damping:26},onClick:d?void 0:()=>s(r),children:(0,q.jsx)(`div`,{style:{transform:d?void 0:`rotate(${Tn(y.get(r)??0)}deg)`},children:(0,q.jsx)(H,{components:e,traits:t,size:m,breathe:d})})},r)})]})}var jn=[{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`}],J=f(d((e,t)=>({characters:[],selectedIndex:0,ensureGenerated:()=>{t().characters.length>0||e({characters:jn,selectedIndex:0})},setSelectedIndex:t=>e({selectedIndex:t}),selectNext:()=>e(e=>({selectedIndex:e.characters.length===0?0:(e.selectedIndex+1)%e.characters.length})),selectPrev:()=>e(e=>({selectedIndex:e.characters.length===0?0:(e.selectedIndex-1+e.characters.length)%e.characters.length}))})));function Mn(){let[e,t]=(0,G.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,G.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function Nn(){let e=W(),t=J.use.characters(),n=J.use.ensureGenerated(),r=V(),{w:i,h:a}=Mn();(0,G.useEffect)(()=>{e&&n(e)},[e,n]);let o=En(i,a),s=(0,G.useMemo)(()=>On(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,q.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=wn[i%wn.length]??0;return(0,q.jsx)(`div`,{className:`absolute`,style:{left:a.x-o/2,top:a.y-o/2,width:o,height:o,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,q.jsx)(`div`,{style:{transform:`rotate(${u}deg)`},children:(0,q.jsx)(H,{components:e,traits:t,size:o,breathe:!1})})},n)})})}var Pn=c(`flex w-full items-center gap-1.5 rounded-md border bg-[var(--field-bg)] px-3`,`border-[var(--field-border)] transition-[border-color,background-color] duration-150 ease-out`,`focus-within:border-[var(--border-active)]`),Fn=c(`min-w-0 flex-1 bg-transparent text-body-medium-lighter text-[var(--content-default)]`,`placeholder:text-[var(--content-tertiary)] outline-none`);function Y(e){return e.trim().toLowerCase()}function In(e,t,n=[],r=8){let i=Y(t),a=new Set(n.map(Y)),o=[];for(let t of e)if(!a.has(Y(t))&&((i.length===0||Y(t).includes(i))&&o.push(t),o.length>=r))break;return o}function Ln({id:e,items:t,highlighted:n,onPick:r,onHover:i}){return(0,q.jsx)(`ul`,{id:e,role:`listbox`,className:c(`absolute left-0 right-0 top-full z-50 mt-1.5 max-h-60 overflow-auto`,`rounded-lg bg-[var(--surface-lift)] p-1 shadow-[var(--shadow-popover)]`,`animate-[fadeInUp_0.12s_ease-out]`),children:t.map((t,a)=>(0,q.jsx)(`li`,{id:`${e}-opt-${a}`,role:`option`,"aria-selected":a===n,onMouseDown:e=>{e.preventDefault(),r(t)},onMouseEnter:()=>i(a),className:c(`cursor-pointer rounded-md px-2.5 py-1.5 text-body-medium-lighter`,`text-[var(--content-default)]`,a===n?`bg-[var(--surface-base)]`:`bg-transparent`),children:t},t))})}function Rn({htmlFor:e,required:t,children:n}){return(0,q.jsxs)(`label`,{htmlFor:e,className:`text-body-small-default text-[var(--content-secondary)]`,children:[n,t?(0,q.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`}):null]})}function zn(e,t){(0,G.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t()}return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])}function Bn({label:e,placeholder:t,value:n,onChange:r,suggestions:i,autoFocus:a,required:o}){let s=(0,G.useId)(),l=`ac-${s}`,u=`ac-list-${s}`,d=(0,G.useRef)(null),[f,p]=(0,G.useState)(!1),[m,h]=(0,G.useState)(-1),g=(0,G.useMemo)(()=>In(i,n),[i,n]);zn(d,()=>p(!1)),(0,G.useEffect)(()=>{h(e=>e>=g.length?g.length-1:e)},[g.length]);let _=f&&g.length>0;function v(e){r(e),p(!1),h(-1)}function y(e){e.key===`ArrowDown`?(e.preventDefault(),p(!0),h(e=>Math.min(e+1,g.length-1))):e.key===`ArrowUp`?(e.preventDefault(),h(e=>Math.max(e-1,0))):e.key===`Enter`&&_&&m>=0?(e.preventDefault(),v(g[m])):e.key===`Escape`&&p(!1)}return(0,q.jsxs)(`div`,{ref:d,className:`relative flex flex-col gap-1.5`,children:[(0,q.jsx)(Rn,{htmlFor:l,required:o,children:e}),(0,q.jsx)(`div`,{className:c(Pn,`h-9`),children:(0,q.jsx)(`input`,{id:l,role:`combobox`,"aria-required":o,"aria-expanded":_,"aria-controls":u,"aria-autocomplete":`list`,"aria-activedescendant":m>=0?`${u}-opt-${m}`:void 0,autoComplete:`off`,autoFocus:a,className:Fn,placeholder:t,value:n,onChange:e=>{r(e.target.value),p(!0)},onFocus:()=>p(!0),onKeyDown:y})}),_&&(0,q.jsx)(Ln,{id:u,items:g,highlighted:m,onPick:v,onHover:h})]})}function Vn({label:e,placeholder:t,values:n,onChange:r,suggestions:i}){let a=(0,G.useId)(),o=`tac-${a}`,s=`tac-list-${a}`,u=(0,G.useRef)(null),[d,f]=(0,G.useState)(``),[p,m]=(0,G.useState)(!1),[h,g]=(0,G.useState)(-1),_=(0,G.useMemo)(()=>In(i,d,n),[i,d,n]);zn(u,()=>m(!1)),(0,G.useEffect)(()=>{g(e=>e>=_.length?_.length-1:e)},[_.length]);let v=p&&_.length>0;function y(e){let t=e.trim();t&&(n.some(e=>Y(e)===Y(t))||r([...n,t]),f(``),g(-1))}function b(e){r(n.filter(t=>t!==e))}function x(e){e.key===`ArrowDown`?(e.preventDefault(),m(!0),g(e=>Math.min(e+1,_.length-1))):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0))):e.key===`Enter`?v&&h>=0?(e.preventDefault(),y(_[h])):d.trim()&&(e.preventDefault(),y(d)):e.key===`,`?(e.preventDefault(),y(d)):e.key===`Backspace`&&d.length===0&&n.length>0?b(n[n.length-1]):e.key===`Escape`&&m(!1)}return(0,q.jsxs)(`div`,{ref:u,className:`relative flex flex-col gap-1.5`,children:[(0,q.jsx)(Rn,{htmlFor:o,children:e}),(0,q.jsxs)(`div`,{className:c(Pn,`min-h-9 flex-wrap py-1.5`),children:[n.map(e=>(0,q.jsx)(l,{onRemove:()=>b(e),removeLabel:`Remove ${e}`,className:`border border-[var(--border-base)] bg-[var(--surface-base)]`,children:e},e)),(0,q.jsx)(`input`,{id:o,role:`combobox`,"aria-expanded":v,"aria-controls":s,"aria-autocomplete":`list`,"aria-activedescendant":h>=0?`${s}-opt-${h}`:void 0,autoComplete:`off`,className:c(Fn,`h-6 w-24`),placeholder:n.length===0?t:``,value:d,onChange:e=>{f(e.target.value),m(!0)},onFocus:()=>m(!0),onKeyDown:x})]}),v&&(0,q.jsx)(Ln,{id:s,items:_,highlighted:h,onPick:y,onHover:g})]})}var Hn=`Software Engineer.Product Manager.Product Designer.Founder / CEO.Engineering Manager.Data Scientist.Marketing Manager.Growth Marketer.Content Writer.Sales Representative.Account Executive.Customer Success Manager.Operations Manager.Project Manager.Program Manager.Business Analyst.Data Engineer.Machine Learning Engineer.DevOps Engineer.Solutions Architect.UX Researcher.Graphic Designer.Recruiter.HR Manager.Financial Analyst.Accountant.Consultant.Investor / VC.Lawyer.Teacher.Professor.Researcher.Doctor / Physician.Nurse.Real Estate Agent.Executive Assistant.Entrepreneur.Freelancer.Student`.split(`.`),Un=`Reading.Writing.Cooking.Baking.Gardening.Photography.Painting.Drawing.Hiking.Running.Cycling.Swimming.Yoga.Climbing.Weightlifting.Gaming.Board games.Chess.Traveling.Cars.Woodworking.Knitting.Playing guitar.Playing piano.Singing.Dancing.Fishing.Camping.Surfing.Skiing.Snowboarding.Coffee.Wine.Birdwatching.Pottery.Investing.Podcasts.Movies.Soccer.Basketball.Tennis.Golf.Meditation.Volunteering.Astronomy.3D printing`.split(`.`);function X(e,t){return{animation:`fadeInUp 0.4s ease-out ${e}s both`,...t==null?{}:{position:`relative`,zIndex:t}}}function Wn({initialFirstName:e=``,initialLastName:t=``,onSubmit:n}){let[i,a]=(0,G.useState)(e),[o,s]=(0,G.useState)(t),[c,l]=(0,G.useState)(``),[d,f]=(0,G.useState)([]),p=i.trim().length>0&&c.trim().length>0;function m(){p&&n({firstName:i,lastName:o,role:c,hobbies:d})}return(0,q.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,children:(0,q.jsxs)(ze,{showCreatureFooter:!1,children:[(0,q.jsx)(Nn,{}),(0,q.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,q.jsx)(`h1`,{className:`text-center font-serif text-[2.75rem] leading-[1.05] tracking-tight`,style:X(.05),children:`Let's start with you.`}),(0,q.jsx)(`p`,{className:`mt-3 text-center text-body-medium-lighter text-[var(--content-secondary)]`,style:X(.12),children:`A few details so I can get to know you.`}),(0,q.jsxs)(`div`,{className:`mt-10 flex w-full flex-col gap-5`,children:[(0,q.jsx)(`div`,{style:X(.2,40),children:(0,q.jsx)(u,{label:(0,q.jsxs)(q.Fragment,{children:[`What should I call you?`,(0,q.jsx)(`span`,{"aria-hidden":!0,className:`text-[var(--system-negative-strong)]`,children:` *`})]}),placeholder:`Your name`,value:i,onChange:e=>a(e.target.value),autoFocus:!0,required:!0,fullWidth:!0})}),(0,q.jsx)(`div`,{style:X(.27,30),children:(0,q.jsx)(u,{label:`And your last name?`,placeholder:`Your last name (optional)`,value:o,onChange:e=>s(e.target.value),fullWidth:!0})}),(0,q.jsx)(`div`,{style:X(.34,20),children:(0,q.jsx)(Bn,{label:`Your role`,placeholder:`What do you do for work?`,value:c,onChange:l,suggestions:Hn,required:!0})}),(0,q.jsx)(`div`,{style:X(.41,10),children:(0,q.jsx)(Vn,{label:`Any hobbies?`,placeholder:`Cars, books, growing tomatoes?`,values:d,onChange:f,suggestions:Un})})]}),(0,q.jsx)(`div`,{className:`mt-10 w-full`,style:X(.5),children:(0,q.jsx)(r,{type:`submit`,variant:`primary`,size:`regular`,rightIcon:(0,q.jsx)(U,{size:16}),fullWidth:!0,disabled:!p,className:`h-11 text-base`,children:`Continue`})})]})]})})}var Gn=`#1A1A1A`,Kn=`#FFFFFF`;function qn(e){let t=/^#?([0-9a-f]{6})$/i.exec(e);if(!t)return 0;let n=parseInt(t[1],16),r=n>>16&255,i=n>>8&255,a=n&255;return(r*299+i*587+a*114)/1e3/255}function Jn(e,t){let n=/^#?([0-9a-f]{6})$/i.exec(e);if(!n)return e;let r=parseInt(n[1],16),i=e=>Math.max(0,Math.min(255,Math.round((r>>e&255)*t)));return`#${(1<<24|i(16)<<16|i(8)<<8|i(0)).toString(16).slice(1)}`}function Yn(e){let t=qn(e)>.6;return{bg:e,isLight:t,fg:t?Gn:Kn,fgDeep:Jn(e,.6),fgMuted:t?`rgba(0,0,0,0.6)`:`rgba(255,255,255,0.65)`,wash:t?`rgba(0,0,0,0.08)`:`rgba(255,255,255,0.12)`}}function Z(){let e=W(),t=J.use.characters(),n=J.use.selectedIndex();return(0,G.useMemo)(()=>{let r=t[n],i=e?.colors.find(e=>e.id===r?.color)?.hex;return Yn(i??`var(--surface-base)`)},[e,t,n])}function Q({onBack:e,onNext:t,tone:n}){let r=Z(),i=n?n===`dark`?`#1A1A1A`:`#FFFFFF`:r.fg,a=n?n===`dark`?`rgba(0,0,0,0.08)`:`rgba(255,255,255,0.12)`:r.wash;return(0,q.jsxs)(`div`,{className:`absolute left-4 top-6 z-10 flex items-center gap-3`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:e,"aria-label":`Back`,className:`flex h-8 w-8 items-center justify-center rounded-md transition-colors duration-150`,style:{color:i},onMouseEnter:e=>e.currentTarget.style.backgroundColor=a,onMouseLeave:e=>e.currentTarget.style.backgroundColor=`transparent`,children:(0,q.jsx)(m,{className:`h-5 w-5`})}),t?(0,q.jsx)(`button`,{type:`button`,onClick:t,"aria-label":`Forward`,className:`flex h-8 w-8 items-center justify-center rounded-md transition-colors duration-150`,style:{color:i},onMouseEnter:e=>e.currentTarget.style.backgroundColor=a,onMouseLeave:e=>e.currentTarget.style.backgroundColor=`transparent`,children:(0,q.jsx)(h,{className:`h-5 w-5`})}):null]})}var Xn=[`Ziggy`,`Quill`,`Luna`,`Remy`,`Cleo`,`Cade`];function Zn(e,t){let n=[];for(let r=0;r<e;r++)r!==t&&n.push(r);return{centerChar:t,edgeOrder:n}}function Qn({onContinue:e,onBack:t,onForward:n}){let i=W(),a=J.use.characters(),o=J.use.ensureGenerated(),s=J.use.selectedIndex(),c=J.use.setSelectedIndex();(0,G.useEffect)(()=>{i&&o(i)},[i,o]);let l=a.length,[u,d]=(0,G.useState)(null),[f,m]=(0,G.useState)(``),[h,g]=(0,G.useState)(!1),v=(0,G.useRef)(!1),y=(0,G.useRef)(null),{ref:b,size:x}=yn(),[S,C]=(0,G.useState)(null);(0,G.useEffect)(()=>{l>0&&u===null&&d(Zn(l,s))},[l,s,u]),(0,G.useEffect)(()=>{u&&c(u.centerChar)},[u,c]);let w=u?.centerChar;(0,G.useEffect)(()=>{w!=null&&!v.current&&m(Xn[w%Xn.length])},[w]),(0,G.useEffect)(()=>{h&&(y.current?.focus(),y.current?.select())},[h]);function T(e){if(!u||e===u.centerChar)return;let t=u.edgeOrder.indexOf(e);if(t<0)return;let n=[...u.edgeOrder];n[t]=u.centerChar,C({entering:{char:e,fromSlot:t},exiting:{char:u.centerChar,toSlot:t}}),d({centerChar:e,edgeOrder:n})}let E=()=>u&&T((u.centerChar+1)%l),D=()=>u&&T((u.centerChar-1+l)%l),O=(0,G.useMemo)(()=>u?a[u.centerChar]:void 0,[u,a]),k=!!i&&!!u&&!!O;function A(){O&&e({traits:O,name:f.trim()})}let j=`pointer-events-auto z-10 flex 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,q.jsx)(`div`,{ref:b,"data-theme":`dark`,className:`relative h-full overflow-hidden bg-[var(--surface-base)] text-[var(--content-default)]`,children:(0,q.jsxs)(xn,{size:x,children:[k&&(0,q.jsx)(An,{components:i,characters:a,centerChar:u.centerChar,edgeOrder:u.edgeOrder,entering:S?.entering??null,exiting:S?.exiting??null,onEnterComplete:e=>C(t=>t?.entering.char===e?null:t),onSelectChar:T}),(0,q.jsx)(Q,{tone:`light`,onBack:t,onNext:n?A:void 0}),(0,q.jsx)(`h1`,{className:`absolute left-1/2 top-[19%] z-10 -translate-x-1/2 whitespace-nowrap text-center text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`,animation:`fadeInUp 0.4s ease-out both`},children:`Give me a face and a name`}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`Previous character`,onClick:D,className:`absolute left-[calc(50%-170px)] top-[40%] -translate-y-1/2 ${j}`,children:(0,q.jsx)(p,{className:`h-4 w-4`})}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`Next character`,onClick:E,className:`absolute right-[calc(50%-170px)] top-[40%] -translate-y-1/2 ${j}`,children:(0,q.jsx)(U,{className:`h-4 w-4`})}),(0,q.jsxs)(`div`,{className:`absolute left-1/2 top-[51%] z-10 flex -translate-x-1/2 flex-col items-center gap-12`,children:[h?(0,q.jsx)(`input`,{ref:y,value:f,onChange:e=>{v.current=!0,m(e.target.value)},onBlur:()=>g(!1),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),g(!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,q.jsxs)(`button`,{type:`button`,onClick:()=>g(!0),"aria-label":`Edit name`,className:`flex items-center gap-2.5`,children:[(0,q.jsx)(`span`,{className:`text-3xl font-medium ${f?`text-[var(--content-default)]`:`text-[var(--content-tertiary)]`}`,children:f||`Name your assistant`}),(0,q.jsx)(_,{className:`h-5 w-5 text-[var(--content-tertiary)]`})]}),(0,q.jsx)(r,{type:`button`,variant:`primary`,size:`regular`,rightIcon:(0,q.jsx)(U,{size:16}),disabled:!k,onClick:A,className:`h-11 w-[234px] text-base`,children:`Continue`})]})]})})}var $n=`absolute left-1/2 top-[30%] z-10 flex w-full -translate-x-1/2 flex-col items-center gap-8 px-6 text-center`,er=/-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi,tr=/[MmLlHhVvCcSsQqTtAaZz][^MmLlHhVvCcSsQqTtAaZz]*/g;function nr(e){let t=1/0,n=1/0,r=-1/0,i=-1/0,a=0,o=0,s=(e,a)=>{e<t&&(t=e),a<n&&(n=a),e>r&&(r=e),a>i&&(i=a)},c=e.match(tr)??[];for(let e of c){let t=e[0],n=t.toUpperCase();if(n===`Z`)continue;let r=t!==n,i=(e.slice(1).match(er)??[]).map(Number);if(n===`H`)for(let e of i)a=r?a+e:e,s(a,o);else if(n===`V`)for(let e of i)o=r?o+e:e,s(a,o);else if(n===`A`)for(let e=0;e+7<=i.length;e+=7){let t=i[e+5],n=i[e+6];a=r?a+t:t,o=r?o+n:n,s(a,o)}else{let e=a,t=o;for(let n=0;n+2<=i.length;n+=2){let c=r?e+i[n]:i[n],l=r?t+i[n+1]:i[n+1];s(c,l),n+2>=i.length-i.length%2&&(a=c,o=l)}}}return t===1/0?{x:0,y:0,w:0,h:0}:{x:t,y:n,w:r-t,h:i-n}}function rr(e){let t=Math.min(...e.map(e=>e.x)),n=Math.min(...e.map(e=>e.y)),r=Math.max(...e.map(e=>e.x+e.w)),i=Math.max(...e.map(e=>e.y+e.h));return{x:t,y:n,w:r-t,h:i-n}}var ir=.25,ar=.46,or=.3,sr=.85,cr=40,lr=14,ur=8;function dr({entrance:e=!1,entranceDelay:t=0,bumpNonce:n=0,settleBlink:r=!0}){let i=W(),a=J.use.characters(),o=J.use.selectedIndex(),s=V(),{w:c,h:l}=Sn(),[u,d]=(0,G.useState)({x:0,y:0});(0,G.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=Mt();(0,G.useEffect)(()=>{n>0&&!s&&p.start({y:[0,-34,8,0],transition:{duration:.45,ease:`easeOut`}})},[n,s,p]);let[m,h]=(0,G.useState)(!1),[g,_]=(0,G.useState)(!e);(0,G.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,G.useMemo)(()=>{if(!i||!v)return null;let e=i.eyeStyles.find(e=>e.id===v.eyeStyle);return e?{paths:e.paths,bbox:rr(e.paths.map(e=>nr(e.svgPath)))}:null},[i,v]);if(!y)return null;let b=c*sr,x=Math.min(Math.min(c,l)*or,b*y.bbox.h/y.bbox.w),S=x*y.bbox.w/y.bbox.h,C=(c-S)/2,w=l-(1-ir)*x,T=cr/100*l-(w+x/2),E=(ar-ir)*x,D=y.bbox.x+y.bbox.w/2,O=y.bbox.y+y.bbox.h/2;return(0,q.jsx)(B.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,q.jsx)(B.div,{animate:p,children:(0,q.jsx)(`div`,{style:{transform:`translate(${u.x*lr}px, ${u.y*ur}px)`,transition:`transform 0.5s cubic-bezier(0.22, 1, 0.36, 1)`},children:(0,q.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,q.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,q.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})})})}var fr=200,pr=40;function mr({firstName:e,assistantName:t,onContinue:n,onBack:r,onForward:i}){let a=W(),o=J.use.characters(),s=J.use.selectedIndex(),c=V(),{ref:l,size:{w:u,h:d}}=yn(),f=Z(),p=o.length>0?o[s]:void 0,m=(0,G.useMemo)(()=>{if(!a||!p)return null;let e=a.bodyShapes.find(e=>e.id===p.bodyShape),t=a.colors.find(e=>e.id===p.color);return!e||!t?null:{body:e,color:t.hex}},[a,p]),h=e.trim()?`Hey, ${e.trim()}!`:`Hey!`,g=t?.trim()?`I’m ${t.trim()}, your new AI assistant`:`I’m your new AI assistant`;if(!m)return(0,q.jsx)(`div`,{"data-theme":`dark`,className:`h-full`,style:{backgroundColor:`var(--surface-base)`}});let _=1.25*Math.max(u,d),v=_*m.body.viewBox.height/m.body.viewBox.width,y=(u-_)/2,b=(d-v)/2,x=fr/_,S=(pr/100-.5)*d;return(0,q.jsx)(`div`,{ref:l,"data-theme":`dark`,className:`relative h-full overflow-hidden`,style:{backgroundColor:`var(--surface-base)`},children:(0,q.jsxs)(xn,{size:{w:u,h:d},children:[(0,q.jsx)(B.div,{className:`absolute inset-0 z-0`,style:{backgroundColor:m.color},initial:c?!1:{opacity:0},animate:{opacity:1},transition:c?{duration:0}:{duration:.6,delay:.35}}),(0,q.jsx)(B.svg,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,viewBox:`0 0 ${m.body.viewBox.width} ${m.body.viewBox.height}`,width:_,height:v,style:{left:y,top:b,transformOrigin:`center`},initial:c?!1:{scale:x,y:S},animate:{scale:1,y:0},transition:c?{duration:0}:{type:`spring`,stiffness:78,damping:18,mass:1},children:(0,q.jsx)(`path`,{d:m.body.svgPath,fill:m.color})}),(0,q.jsx)(dr,{entrance:!0}),(0,q.jsx)(B.div,{initial:c?!1:{opacity:0},animate:{opacity:1},transition:c?{duration:0}:{duration:.4,delay:1},children:(0,q.jsx)(Q,{onBack:r,onNext:i})}),(0,q.jsxs)(`div`,{className:$n,children:[(0,q.jsxs)(B.h1,{className:`text-center leading-[1.05]`,style:{fontFamily:`var(--font-serif)`},initial:c?!1:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:c?{duration:0}:{type:`spring`,stiffness:260,damping:11,delay:1},children:[(0,q.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:f.fgDeep},children:h}),(0,q.jsx)(`span`,{className:`block text-[clamp(2.5rem,6vw,5rem)]`,style:{color:f.fg},children:g})]}),(0,q.jsxs)(B.button,{type:`button`,onClick:n,className:`flex h-11 w-[234px] items-center justify-center gap-2 rounded-[10px] bg-black text-body-medium-default text-white transition-transform duration-150 active:scale-[0.97]`,initial:c?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:c?{duration:0}:{duration:.4,delay:1.15},children:[`Continue`,(0,q.jsx)(U,{className:`h-4 w-4`})]})]})]})})}var hr=.3,gr=.85,_r=.25;function vr(){let e=W(),t=J.use.characters(),n=J.use.selectedIndex(),r=t.length>0?t[n]:void 0,{w:i,h:a}=Sn(),o=(0,G.useMemo)(()=>{if(!e||!r)return null;let t=e.eyeStyles.find(e=>e.id===r.eyeStyle);return t?{paths:t.paths,bbox:rr(t.paths.map(e=>nr(e.svgPath)))}:null},[e,r]),s=o?Math.min(Math.min(i,a)*hr,i*gr*o.bbox.h/o.bbox.w):0;return{art:o,eyesW:o?s*o.bbox.w/o.bbox.h:0,eyesH:s,restCy:a-_r*s,centerX:i/2,w:i,h:a}}function yr({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=tt(i,e=>e-n/2),u=e.bbox.x+e.bbox.w/2,d=e.bbox.y+e.bbox.h/2;return(0,q.jsx)(B.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,q.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,q.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,q.jsx)(`path`,{d:e.svgPath,fill:e.color},t))})})})}var br={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 xr(e,t){let n=br[e];return n&&n.length>0?n:t.filter(t=>t!==e)}var Sr=new Set([`orange`,`pink`,`red`]);function Cr(e,t){return Sr.has(e)&&Sr.has(t)}function wr(e,t,n){let r=xr(e,t),i=[];for(let e of r){if(i.length>=n)break;i.some(t=>Cr(t,e))||i.push(e)}for(let e of r){if(i.length>=n)break;i.includes(e)||i.push(e)}return i}var Tr=`You’ve used AI that just answers questions`,Er=`The more I help`,Dr=`I’m different`,Or=`The better I get`,kr=`and the less you have to do`,Ar=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],jr=290;function Mr({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,q.jsx)(B.div,{className:`relative w-full overflow-hidden`,initial:!1,animate:{height:o?t:e},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`},children:(0,q.jsxs)(B.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,q.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:e},children:(0,q.jsx)(B.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,q.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:t},children:(0,q.jsx)(`span`,{className:`block`,children:i})})]})})}function Nr({onContinue:e,onBack:t,onForward:n}){let r=Z(),i=V(),{art:a,eyesW:o,eyesH:s,restCy:c,centerX:l,w:u,h:d}=vr(),f=W(),p=J.use.characters(),m=J.use.selectedIndex(),h=p.length>0?p[m]:void 0,g=d>0&&d<=800,_=g?.17:.22,v=g?`top-[17%]`:`top-[22%]`,y=Qe(0),b=Qe(1),x=(0,G.useMemo)(()=>!f||!h?`orange`:wr(h.color,f.colors.map(e=>e.id),1)[0]??`orange`,[f,h]),S=Math.min(220,Math.max(150,u*.16)),C=-S,w=-S*.4,T=Qe(-220),E=(0,G.useMemo)(()=>!f||!h?[]:wr(h.color,f.colors.map(e=>e.id),3),[f,h]),D=Math.max(.42,Math.min(u/1100,1)),O=Math.round(jr*D),k=-O*1.1,A=-O*.42,j=Qe(-320),[ee,te]=(0,G.useState)(!!i),[ne,re]=(0,G.useState)(!!i),[ie,ae]=(0,G.useState)(!1),[oe,M]=(0,G.useState)(!1),[se,N]=(0,G.useState)(!1),[ce,le]=(0,G.useState)(!1),[ue,de]=(0,G.useState)(!!i),fe=Math.min(u,768)-48,pe=(0,G.useRef)(null),P=(0,G.useRef)(null),F=(0,G.useRef)(null),I=(0,G.useRef)(null),L=(0,G.useRef)(null),[me,R]=(0,G.useState)(0),[z,he]=(0,G.useState)(0),[ge,_e]=(0,G.useState)(0),[ve,ye]=(0,G.useState)(0),[be,xe]=(0,G.useState)(0);return(0,G.useLayoutEffect)(()=>{pe.current?.offsetHeight&&R(pe.current.offsetHeight),P.current?.offsetHeight&&he(P.current.offsetHeight),F.current?.offsetHeight&&_e(F.current.offsetHeight),I.current?.offsetHeight&&ye(I.current.offsetHeight),L.current?.offsetHeight&&xe(L.current.offsetHeight)},[fe]),(0,G.useEffect)(()=>{y.set(c),le(!0)},[c,y]),(0,G.useEffect)(()=>{if(!i)return;let e=setTimeout(()=>{ae(!0),M(!0),N(!0)},1400);return()=>clearTimeout(e)},[i]),(0,G.useEffect)(()=>{if(i||!a)return;y.set(c),b.set(1),T.set(C),j.set(k),te(!1),re(!1),ae(!1),M(!1);let e=Math.max(s*.5,d*_-36),t=[],n=[],r=!1,o=e=>(t.push(e),e),l=e=>new Promise(t=>{n.push(setTimeout(t,e))});return(async()=>{if(await l(200),r||(te(!0),await Promise.all([o(K(y,e,{duration:.55,ease:`easeOut`})),o(K(b,.55,{duration:.55,ease:`easeOut`}))]),r)||(re(!0),await Promise.all([o(K(y,c,{type:`spring`,stiffness:210,damping:15})),o(K(b,1,{duration:.45,ease:`easeOut`}))]),r)||(await l(900),r)||(ae(!0),M(!0),await o(K(T,[C,w,w,C],{duration:1.5,times:[0,.28,.62,1],ease:`easeInOut`})),r)||(await l(150),r))return;N(!0);let t=o(K(j,[k,A,A,k],{duration:1.5,times:[0,.28,.62,1],ease:`easeInOut`}));await l(700),!r&&(de(!0),await t)})(),()=>{r=!0,t.forEach(e=>e.stop()),n.forEach(clearTimeout)}},[i,a,d,_,s,c,y,b,T,C,w,j,k,A]),(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden`,style:{color:r.fg},children:[(0,q.jsx)(Q,{onBack:t,onNext:n}),(0,q.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:fe,fontFamily:`var(--font-serif)`},children:[(0,q.jsx)(`span`,{ref:pe,className:`block`,children:Tr}),(0,q.jsx)(`span`,{ref:P,className:`block`,children:Er}),(0,q.jsx)(`span`,{ref:F,className:`block`,children:Dr}),(0,q.jsx)(`span`,{ref:I,className:`block`,children:Or}),(0,q.jsx)(`span`,{ref:L,className:`block`,children:kr})]}),ce&&a&&(0,q.jsx)(yr,{art:a,eyesW:o,eyesH:s,centerX:l,eyeCy:y,eyeScale:b,blinking:!1}),!i&&f&&(0,q.jsx)(B.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{left:Math.max(16,u*.05),top:0,y:T,width:S,height:S},children:(0,q.jsx)(H,{components:f,traits:{bodyShape:`blob`,eyeStyle:`goofy`,color:x},size:S,breathe:!1})}),!i&&f&&(0,q.jsx)(B.div,{"aria-hidden":`true`,className:`pointer-events-none absolute right-0 top-0 z-[1] flex items-start`,style:{right:-Math.round(O*.12),y:j},children:Ar.map((e,t)=>(0,q.jsx)(`div`,{style:{width:O,height:O,marginLeft:t===0?0:-O*.34,zIndex:Ar.length-t},children:(0,q.jsx)(H,{components:f,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:E[t]??`teal`},size:O,breathe:!1})},e.bodyShape))}),(0,q.jsxs)(`div`,{className:`${$n.replace(`top-[30%]`,v)} max-w-3xl`,children:[(0,q.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,q.jsx)(Mr,{firstH:me,secondH:z,color:r.fgDeep,firstText:Tr,secondText:Er,revealed:ee,carouseled:ie,revealFrom:`bottom`,revealDuration:.55,reduce:!!i}),(0,q.jsx)(Mr,{firstH:ge,secondH:ve,color:r.fg,firstText:Dr,secondText:Or,revealed:ne,carouseled:oe,revealFrom:`top`,revealDuration:.45,reduce:!!i}),(0,q.jsx)(B.div,{className:`relative w-full overflow-hidden`,style:{color:r.fg},initial:!1,animate:{height:se?be:0},transition:i?{duration:0}:{duration:.5,ease:`easeInOut`},children:be>0&&(0,q.jsx)(`div`,{className:`flex items-center justify-center`,style:{height:be},children:(0,q.jsx)(B.span,{className:`block`,initial:!1,animate:{clipPath:se?`inset(0% 0 0% 0)`:`inset(100% 0 0 0)`},transition:i?{duration:0}:{duration:.5,ease:`easeOut`},children:kr})})})]}),ue&&(0,q.jsxs)(B.button,{type:`button`,onClick:e,className:`flex h-11 w-[234px] items-center justify-center gap-2 rounded-[10px] bg-black text-body-medium-default text-white transition-transform duration-150 active:scale-[0.97]`,initial:i?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:i?{duration:0}:{duration:.4},children:[`Continue`,(0,q.jsx)(U,{className:`h-4 w-4`})]})]})]})}function Pr({idSuffix:e}){let t=`cf-${e}`,n=`cr-${e}`,r=`cg-${e}`,i=`cs-${e}`;return(0,q.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,height:`100%`,style:{display:`block`,position:`absolute`,inset:0},children:[(0,q.jsxs)(`defs`,{children:[(0,q.jsxs)(`linearGradient`,{id:n,x1:`0.12`,y1:`0.05`,x2:`0.85`,y2:`0.95`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF0AE`}),(0,q.jsx)(`stop`,{offset:`50%`,stopColor:`#F4C231`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#D29B1A`})]}),(0,q.jsxs)(`radialGradient`,{id:t,cx:`42%`,cy:`36%`,r:`82%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#FFF6CE`}),(0,q.jsx)(`stop`,{offset:`55%`,stopColor:`#F8CB3E`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#EEB52C`})]}),(0,q.jsxs)(`radialGradient`,{id:r,cx:`36%`,cy:`24%`,r:`44%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`0.85`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]}),(0,q.jsxs)(`radialGradient`,{id:i,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,q.jsx)(`stop`,{offset:`0%`,stopColor:`#FFFFFF`,stopOpacity:`1`}),(0,q.jsx)(`stop`,{offset:`100%`,stopColor:`#FFFFFF`,stopOpacity:`0`})]})]}),(0,q.jsx)(`circle`,{cx:`50`,cy:`50`,r:`49`,fill:`url(#${n})`}),(0,q.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,q.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`url(#${t})`}),(0,q.jsx)(`circle`,{cx:`50`,cy:`50`,r:`40`,fill:`none`,stroke:`#C28F18`,strokeOpacity:`0.35`,strokeWidth:`1.4`}),(0,q.jsxs)(`g`,{fontFamily:`var(--font-sans), system-ui, sans-serif`,fontWeight:900,fontSize:`58`,textAnchor:`middle`,children:[(0,q.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#C88E16`,transform:`translate(1.3 1.6)`,children:`$`}),(0,q.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#FFF6CF`,opacity:`0.7`,transform:`translate(-1.3 -1.5)`,children:`$`}),(0,q.jsx)(`text`,{x:`50`,y:`50`,dy:`0.355em`,fill:`#F4C12A`,children:`$`})]}),(0,q.jsx)(`ellipse`,{cx:`38`,cy:`28`,rx:`22`,ry:`14`,fill:`url(#${r})`}),(0,q.jsx)(`ellipse`,{cx:`34`,cy:`24`,rx:`7`,ry:`4.5`,fill:`url(#${i})`})]})}function Fr({size:e,tiltX:t=0,tiltY:n=0,shadow:r=!0,spinning:i=!1,className:a}){return(0,q.jsxs)(`div`,{style:{position:`relative`,width:e,height:e},children:[r&&(0,q.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,q.jsx)(`div`,{style:{width:e,height:e,perspective:e*10},children:(0,q.jsxs)(B.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,q.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(0.5px)`},children:(0,q.jsx)(Pr,{idSuffix:`front`})}),(0,q.jsx)(`div`,{style:{position:`absolute`,inset:0,backfaceVisibility:`hidden`,transform:`translateZ(-0.5px) rotateY(180deg)`},children:(0,q.jsx)(Pr,{idSuffix:`back`})})]})})]})}var Ir=.3,Lr=.95;function Rr({onClaim:e,onBumpEyes:t,onBack:n,onForward:r}){let i=V(),a=Z(),{h:o}=Sn(),[s,c]=(0,G.useState)(!1);function l(){if(!s){if(c(!0),i){e();return}window.setTimeout(t,Ir*1e3)}}let u=o*.42,d=-o*.08,f=o*.9;return(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,q.jsx)(Q,{onBack:n,onNext:r}),(0,q.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,q.jsx)(`h1`,{className:`text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`Here are some free credits to get started`}),(0,q.jsx)(`div`,{className:`mt-8 flex flex-col items-center gap-4`,children:(0,q.jsx)(B.div,{animate:s&&!i?{y:[0,u,d,f],scale:[1,1,1,.2],opacity:[1,1,1,0]}:{},transition:{duration:Lr,times:[0,Ir/Lr,.62,1],ease:[`easeIn`,`easeOut`,`easeIn`]},onAnimationComplete:()=>{s&&e()},children:(0,q.jsx)(Fr,{size:88,spinning:s&&!i})})}),!s&&(0,q.jsxs)(`button`,{type:`button`,onClick:l,className:`mt-6 flex 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:{backgroundColor:a.isLight?`#1A1A1A`:`#FFFFFF`,color:a.isLight?`#FFFFFF`:`#1A1A1A`},children:[`Claim`,(0,q.jsx)(U,{className:`h-4 w-4`})]})]})]})}function zr({assistantId:e,assistantReady:t,onConnected:n,onSkip:r,onBack:i,onForward:a,missingCalendarScope:o=!1,onRetry:s}){let c=Z(),{handleConnect:l,oauthInProgress:u}=Be({assistantId:e??``,onConnect:n}),d=()=>{s?.(),l()},f=!e||!t,p=f||u;return(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:c.fg},children:[(0,q.jsx)(Q,{onBack:i,onNext:a}),(0,q.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,q.jsx)(`h1`,{className:`text-[2.6rem] leading-tight`,style:{fontFamily:`var(--font-serif)`},children:f?`Almost ready`:o?`Access not enabled`:`Let me make this easy`}),(0,q.jsx)(`p`,{className:`text-[16px]`,style:{color:c.fgMuted},children:f?`Your assistant is still getting ready. Calendar setup will be available in a moment.`: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,q.jsxs)(`div`,{className:`mt-6 flex w-[234px] flex-col items-center gap-4`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:d,disabled:p,className:`flex 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:c.isLight?`#1A1A1A`:`#FFFFFF`,color:c.isLight?`#FFFFFF`:`#1A1A1A`},children:f?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(g,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Starting assistant…`]}):u?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(g,{className:`h-4 w-4 animate-spin`,"aria-hidden":!0}),`Waiting for authorization…`]}):o?`Try again`:`Connect Calendar →`}),(0,q.jsx)(`button`,{type:`button`,onClick:r,disabled:u,className:`text-body-small-default transition-opacity hover:opacity-100 disabled:opacity-60`,style:{color:c.fgMuted},children:`Skip for now`})]})]})]})}var Br=Yn(`#17191C`);function Vr(){let[e,t]=(0,G.useState)(()=>({w:typeof window>`u`?1280:window.innerWidth,h:typeof window>`u`?800:window.innerHeight}));return(0,G.useEffect)(()=>{let e=()=>t({w:window.innerWidth,h:window.innerHeight});return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function Hr(){let e=W(),t=J.use.characters(),n=J.use.selectedIndex();return{components:e,chosen:t.length>0?t[n]:void 0}}function Ur({size:e=64,isStreaming:t=!1}){let{components:n,chosen:r}=Hr();return!n||!r?(0,q.jsx)(`div`,{style:{width:e,height:e}}):(0,q.jsx)(`div`,{className:`shrink-0`,style:{width:e,height:e},children:(0,q.jsx)(H,{components:n,traits:r,size:e,isStreaming:t})})}var Wr=64,Gr=4500,Kr=7e3;function qr({onDone:e,onBack:t,onForward:n,scheduledTime:r,awaitingTime:i}){let{components:a,chosen:o}=Hr(),s=V(),{w:c,h:l}=Vr(),u=r?`Check-in scheduled for tomorrow at ${r}!`:`Check-in scheduled!`;(0,G.useEffect)(()=>{let t=setTimeout(e,i&&!r?Kr:Gr);return()=>clearTimeout(t)},[e,i,r]);let d=(0,G.useRef)(null),[f,p]=(0,G.useState)(null);(0,G.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)/Wr,h=f?c/2-f.cx:0,g=f?l*.88-f.cy:0,_=l*.05;return(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10 overflow-hidden text-white`,children:[(0,q.jsx)(Q,{onBack:t,onNext:n,tone:`light`}),(0,q.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,q.jsx)(`div`,{ref:d,className:`relative shrink-0`,style:{width:Wr,height:Wr},children:a&&o&&f&&(0,q.jsx)(B.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,q.jsx)(H,{components:a,traits:o,size:Wr})})}),(0,q.jsx)(B.span,{className:`text-[2.6rem] leading-none`,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 Jr=[`Searching the web to get to know you…`,`Reading public profiles…`,`Connecting the dots…`,`Almost there…`],Yr=2800;function Xr({onDone:e,onBack:t,onAdvance:n,onForward:r,ready:i}){let a=Br,[o,s]=(0,G.useState)(0);return(0,G.useEffect)(()=>{n?.(o);let t=o>=Jr.length-1;if(i&&t){let t=setTimeout(e,Yr);return()=>clearTimeout(t)}let r=setTimeout(()=>s(e=>(e+1)%Jr.length),Yr);return()=>clearTimeout(r)},[o,i,e,n]),(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,q.jsx)(Q,{onBack:t,onNext:r}),(0,q.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,q.jsx)(Ur,{isStreaming:!0}),(0,q.jsx)(Ne,{mode:`wait`,children:(0,q.jsx)(B.p,{className:`text-[2.6rem] leading-none`,style:{fontFamily:`var(--font-serif)`},initial:{y:12,opacity:0},animate:{y:0,opacity:1},exit:{y:-12,opacity:0},transition:{duration:.35},children:Jr[o]},o)})]})]})}function Zr({claims:e,loading:t,onContinue:n,onBack:r,onForward:i}){let a=Br,o=V(),[s,c]=(0,G.useState)(()=>new Set),l=e.filter(e=>!s.has(e.claim)),u=l.length>0,d=!t;return(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:a.fg},children:[(0,q.jsx)(Q,{onBack:r,onNext:i}),(0,q.jsxs)(`div`,{className:`absolute left-1/2 top-[14%] sm:top-[26%] z-10 flex w-full max-w-xl -translate-x-1/2 flex-col px-6`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(Ur,{}),(0,q.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`This is what I found about you`})]}),(0,q.jsx)(`p`,{className:`mb-7 mt-2 text-[15px]`,style:{color:a.fgMuted},children:u?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,q.jsx)(`div`,{className:`flex flex-col gap-3`,children:(0,q.jsx)(Ne,{children:l.map(e=>(0,q.jsxs)(B.div,{layout:!0,initial:o?!1:{opacity:0,y:10},animate:{opacity:1,y:0},exit:o?void 0:{opacity:0,scale:.95},className:`flex items-center justify-between gap-3 rounded-2xl px-5 py-4 text-[15px]`,style:{backgroundColor:a.isLight?`rgba(0,0,0,0.06)`:`rgba(255,255,255,0.1)`},children:[(0,q.jsx)(`span`,{children:e.claim}),(0,q.jsx)(`button`,{type:`button`,"aria-label":`Remove "${e.claim}"`,onClick:()=>c(t=>new Set(t).add(e.claim)),className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-full transition-opacity hover:opacity-100`,style:{color:a.fgMuted},children:(0,q.jsx)(v,{className:`h-4 w-4`})})]},e.claim))})}),(0,q.jsxs)(`button`,{type:`button`,onClick:n,disabled:!d,className:`mt-8 flex 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:a.isLight?`#1A1A1A`:`#FFFFFF`,color:a.isLight?`#FFFFFF`:`#1A1A1A`},children:[d?`Continue`:`Still searching…`,d&&(0,q.jsx)(U,{className:`h-4 w-4`})]})]})]})}var Qr=[{suggestion:`I'll pull together a quick brief on what's new in your field`,prompt:`Give me a quick brief on what's new in my field right now.`},{suggestion:`I'll send a weekly briefing on news in your space`,prompt:`Set up a weekly briefing on news in my space.`},{suggestion:`I'll help you get on top of your week`,prompt:`Help me get on top of my week.`},{suggestion:`I'll draft something from a few rough notes`,prompt:`Draft something from a few rough notes I'll give you.`}];function $r({label:e,tone:t}){return(0,q.jsx)(`span`,{className:`inline-flex items-center whitespace-nowrap rounded-full px-2.5 py-[3px] text-[12px] font-medium align-middle`,style:{backgroundColor:t.bg,color:t.fg},children:e})}function ei(e,t){return e.map((n,r)=>{let i=``;return r>0&&(i=r===e.length-1?e.length===2?` and `:`, and `:`, `),(0,q.jsxs)(G.Fragment,{children:[i,(0,q.jsx)($r,{label:n,tone:t})]},n)})}var $=64,ti=$;function ni({pluginLabels:e,tone:t,pillTone:n,reduce:r,slotRef:i,revealed:a}){let o=e.length>1;return(0,q.jsxs)(`div`,{className:`mt-12 flex items-center gap-3`,children:[(0,q.jsx)(`div`,{ref:i,className:`shrink-0`,style:{width:ti,height:ti}}),(0,q.jsxs)(B.p,{className:`text-[14px]`,style:{color:t.fg},initial:!1,animate:{opacity:+!!a,x:a?0:-6},transition:r?{duration:0}:{duration:.35},children:[`Already set up the `,ei(e,n),` plugin`,o?`s`:``,` `,`to help with your work`]})]})}function ri({head:e,note:t,flyToNote:n,reduce:r,onLanded:i}){let{components:a,chosen:o}=Hr();if(!a||!o)return null;let s=$/2,c=n&&t?t:e,l={x:c.x-s,y:c.y-s};return(0,q.jsx)(B.div,{className:`pointer-events-none absolute left-0 top-0`,style:{width:$,height:$,transformOrigin:`center`},initial:!1,animate:l,transition:r?{duration:0}:n&&t?{type:`spring`,duration:.9,bounce:.45}:{duration:.4},onAnimationComplete:()=>{n&&t&&i()},children:(0,q.jsx)(H,{components:a,traits:o,size:$})})}function ii({suggestions:e,loading:t,installedPlugins:n=[],onSuggestionClick:r,onSkip:i,onBack:a,onForward:o}){let s=Br,c=Z(),l=V(),u=e.length>0?e:t?[]:Qr,d=n.map(Ie).filter(e=>e.length>0),f=d.length>0,p=(0,G.useRef)(null),m=(0,G.useRef)(null),h=(0,G.useRef)(null),[g,_]=(0,G.useState)(null),[v,y]=(0,G.useState)(!1),[b,x]=(0,G.useState)(!1);(0,G.useLayoutEffect)(()=>{let e=()=>{let e=p.current,t=m.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=e=>({x:e.left-n.left+e.width/2,y:e.top-n.top+e.height/2}),i=h.current;_({head:r(t.getBoundingClientRect()),note:i?r(i.getBoundingClientRect()):void 0})};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[u.length,f]);let S=g?.note?.y;return(0,G.useEffect)(()=>{!f||S===void 0||v||y(!0)},[f,S,v]),(0,q.jsxs)(`div`,{className:`absolute inset-0 z-10`,style:{color:s.fg},children:[(0,q.jsx)(Q,{onBack:a,onNext:o}),(0,q.jsxs)(`div`,{ref:p,className:`absolute left-1/2 top-[14%] sm:top-[26%] z-10 flex w-full max-w-xl -translate-x-1/2 flex-col px-6`,children:[(0,q.jsxs)(`div`,{className:`flex items-center`,children:[(0,q.jsx)(B.div,{ref:m,className:`shrink-0`,style:{height:$},initial:!1,animate:v?{width:0,marginRight:0}:{width:$,marginRight:12},transition:l?{duration:0}:{duration:.5,ease:`easeInOut`}}),(0,q.jsx)(`h1`,{className:`text-[2.2rem] leading-none`,style:{fontFamily:`var(--font-serif)`},children:`Here’s what we could do first`})]}),(0,q.jsx)(`p`,{className:`mb-7 mt-2 text-[15px]`,style:{color:s.fgMuted},children:u.length>0?(0,q.jsxs)(q.Fragment,{children:[`Pick one to jump in — or start your own thing.`,` `,(0,q.jsx)(`button`,{type:`button`,onClick:i,className:`underline underline-offset-2 transition-opacity hover:opacity-80`,style:{color:s.fg},children:`Skip to Chat`})]}):`Putting together a few ideas…`}),(0,q.jsx)(`div`,{className:`flex flex-col gap-3`,children:u.map((e,t)=>(0,q.jsx)(B.button,{type:`button`,onClick:()=>r(e),initial:l?!1:{opacity:0,y:10},animate:{opacity:1,y:0},transition:l?{duration:0}:{duration:.3,delay:t*.06},className:`rounded-2xl px-5 py-4 text-left text-[15px] transition-transform duration-150 hover:scale-[1.01] active:scale-[0.99]`,style:{backgroundColor:s.isLight?`rgba(0,0,0,0.06)`:`rgba(255,255,255,0.1)`},children:(0,q.jsx)(`span`,{children:e.suggestion})},`${t}-${e.suggestion}`))}),f&&(0,q.jsx)(ni,{pluginLabels:d,tone:s,pillTone:c,reduce:l,slotRef:h,revealed:b}),g&&(0,q.jsx)(ri,{head:g.head,note:g.note,flyToNote:v&&f&&g.note!==void 0,reduce:l,onLanded:()=>x(!0)})]})]})}var ai=[{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})}],oi=`#17191C`,si=[{bodyShape:`blob`,eyeStyle:`gentle`},{bodyShape:`urchin`,eyeStyle:`curious`},{bodyShape:`star`,eyeStyle:`goofy`}],ci=290;function li({peekLevel:e=0,eyesBumpNonce:t=0,darkBg:n=!1,showBottomEyes:r=!0,showTopTeam:i=!1}){let a=W(),o=J.use.characters(),s=J.use.selectedIndex(),c=V(),{w:l}=Sn(),u=Math.max(.42,Math.min(l/1100,1)),d=l<640,f=o.length>0?o[s]:void 0,{bg:p,peekColors:m}=(0,G.useMemo)(()=>!a||!f?{bg:`var(--surface-base)`,peekColors:[]}:{bg:a.colors.find(e=>e.id===f.color)?.hex??`var(--surface-base)`,peekColors:wr(f.color,a.colors.map(e=>e.id),3)},[a,f]);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(B.div,{className:`absolute inset-0 z-0`,initial:!1,animate:{backgroundColor:n?oi:p},transition:c?{duration:0}:{duration:1,ease:`easeInOut`}}),r&&(0,q.jsx)(dr,{bumpNonce:t,settleBlink:!1}),i&&a&&(0,q.jsx)(`div`,{className:`pointer-events-none absolute right-0 z-[1] flex items-start`,style:{top:-Math.round(ci*u)*.42,right:-Math.round(ci*u)*.12},children:si.map((e,t)=>{let n=Math.round(ci*u);return(0,q.jsx)(B.div,{style:{width:n,height:n,marginLeft:t===0?0:-n*.34,zIndex:si.length-t},initial:c?!1:{y:-140,opacity:0},animate:{y:0,opacity:1},transition:c?{duration:0}:{type:`spring`,stiffness:200,damping:18,delay:t*.1},children:(0,q.jsx)(H,{components:a,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:m[t]??`teal`},size:n,breathe:!1})},e.bodyShape)})}),a&&(0,q.jsx)(Ne,{children:(d?ai.filter(e=>e.mobile):ai).slice(0,Math.max(0,e)).map((e,t)=>{let n=Math.round(e.base*u),r=d&&e.mobilePos?e.mobilePos(n):e.pos(n);return(0,q.jsx)(B.div,{"aria-hidden":`true`,className:`pointer-events-none absolute z-[1]`,style:{...r,width:n,height:n},initial:c?!1:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:c?void 0:{scale:0,opacity:0},transition:c?{duration:0}:{type:`spring`,stiffness:220,damping:16,delay:.1},children:(0,q.jsx)(H,{components:a,traits:{bodyShape:e.bodyShape,eyeStyle:e.eyeStyle,color:m[e.colorIdx]??`teal`},size:n,breathe:!1})},`peek-${t}`)})})]})}function ui(e){return{firstName:e.firstName,lastName:e.lastName,occupation:e.role,hobby:e.hobbies.join(`, `)}}function di(e){let t=e.firstName.trim();return t?`Getting to know ${t}`:`Getting to know you`}function fi(){let e=i(),t=k.use.user(),n=t?.id??null,r=Re.use.enterFocus(),o=Re.use.exitFocus(),s=Re.use.setPendingAvatarTraits(),c=Re.use.requestSidebarCollapse(),l=ie.use.researchOnboarding(),u=ie.use.hydrated(),[d,f]=(0,G.useState)(`form`),{ref:p,size:m}=yn(),[h,g]=(0,G.useState)([]),[_,v]=(0,G.useState)(!1);function y(e){f(e)}function b(e,t=`completed`){Ve(He[d],{userId:n,outcome:t}),g([]),y(e)}function x(e){g(e=>[...e,d]),y(e)}function S(){let e=h[h.length-1];e&&(g(e=>e.slice(0,-1)),y(e))}let C=h.length>0?S:void 0,[w,T]=(0,G.useState)(null),[D,O]=(0,G.useState)(null),[A,j]=(0,G.useState)(null),[ee,te]=(0,G.useState)(!1),[ne,M]=(0,G.useState)(!1),[se,N]=(0,G.useState)(!1),[ce,le]=(0,G.useState)(0),[ue,de]=(0,G.useState)(0),{start:fe,ready:pe,assistantId:P,awaitReady:F}=Vt(),I=un(),{start:L,hydrate:me}=I,R=I.status===`idle`||I.status===`running`,z=!R&&I.claims.length===0;(0,G.useEffect)(()=>{o(),s(null),l&&u&&fe()},[o,s,fe,l,u]),(0,G.useLayoutEffect)(()=>{if(_||!n)return;let e=fn(n);e?.formValues&&(T(e.formValues),O(e.faceValues),j(e.checkinTime),M(e.checkinBooked),e.research&&me(e.research,F),f(hn(e)),g([])),v(!0)},[_,n,me,F]),(0,G.useEffect)(()=>{!_||!w||pn(n,{step:d,formValues:w,faceValues:D,checkinTime:A,checkinBooked:ne,research:I.status===`done`?{status:`done`,claims:I.claims,suggestions:I.suggestions,installedPlugins:I.installedPlugins}:null})},[_,n,d,w,D,A,ne,I.status,I.claims,I.suggestions,I.installedPlugins]),(0,G.useEffect)(()=>{!_||!l||!u||!w||I.status!==`idle`||L({awaitAssistantId:F,subject:ui(w),conversationTitle:di(w)})},[_,l,u,w,I.status,L,F]),(0,G.useEffect)(()=>{d===`results`&&z&&(g([]),f(`suggestions`))},[d,z]);function he(t,i,a,{skip:o=!1}={}){mn(n);let{firstName:l,lastName:u,role:d,hobbies:f}=t,p=[l.trim(),u.trim()].filter(Boolean).join(` `),m=l.trim(),h=!o&&a===void 0;oe({tools:[],tasks:[],tone:Ue,...p?{userName:p}:{},...d.trim()?{occupation:d.trim()}:{},...o?{}:{initialMessage:a??Ft({firstName:l,lastName:u,occupation:d,hobby:f.join(`, `)})},...h?{title:m?`Getting to know ${m}`:`Getting to know you`}:{},...i?.name?.trim()?{assistantName:i.name.trim()}:{}});let g=i?.name?.trim();g&&ae(g),s(i?.traits??null),h&&r(),o||E.markExpectingFirstMessage(),c(),E.checkAssistant(P??void 0).finally(()=>{e(`${re.assistant}?onboarding=1`,{replace:!0})})}function ge(e){T(e),I.start({awaitAssistantId:F,subject:ui(e),conversationTitle:di(e)}),b(`face`)}function _e(e){if(e.length>0&&!e.includes(`https://www.googleapis.com/auth/calendar.events`)){N(!0);return}if(N(!1),P&&w){let e=[w.firstName.trim(),w.lastName.trim()].filter(Boolean).join(` `);j(null),M(!1),te(!0),Pe({assistantId:P,userName:e||void 0,assistantName:D?.name?.trim()||void 0}).then(e=>{e.scheduled&&(M(!0),j(gn(e.start,e.timeZone)))}).finally(()=>te(!1))}b(`meeting`)}if(!l)return u?(0,q.jsx)(a,{to:re.assistant,replace:!0}):null;if([`different`,`integration`,`letschat`,`meeting`,`looking`,`results`,`suggestions`].includes(d)&&w){let e=[`meeting`,`looking`,`results`,`suggestions`].includes(d);return(0,q.jsx)(`div`,{ref:p,"data-theme":`dark`,className:`relative h-full overflow-hidden`,children:(0,q.jsxs)(xn,{size:m,children:[(0,q.jsx)(li,{eyesBumpNonce:ce,peekLevel:[`looking`,`results`,`suggestions`].includes(d)?ue:0,darkBg:e,showBottomEyes:!e&&d!==`different`}),d===`different`&&(0,q.jsx)(Nr,{onContinue:()=>b(`integration`),onBack:()=>x(`intro`),onForward:C}),d===`integration`&&(0,q.jsx)(Rr,{onClaim:()=>b(`letschat`),onBumpEyes:()=>le(e=>e+1),onBack:()=>x(`different`),onForward:C}),d===`letschat`&&(0,q.jsx)(zr,{assistantId:P,assistantReady:pe,onConnected:_e,missingCalendarScope:se,onRetry:()=>N(!1),onSkip:()=>{N(!1),b(`looking`,`skipped`)},onBack:()=>x(`integration`),onForward:C}),d===`meeting`&&(0,q.jsx)(qr,{scheduledTime:A??void 0,awaitingTime:ee,onDone:()=>b(`looking`),onBack:()=>x(`letschat`),onForward:C}),d===`looking`&&(0,q.jsx)(Xr,{onDone:()=>b(z?`suggestions`:`results`),onBack:()=>x(`letschat`),onAdvance:e=>de(Math.min(e+1,4)),onForward:C,ready:!R}),d===`results`&&(0,q.jsx)(Zr,{claims:I.claims,loading:R,onContinue:()=>b(`suggestions`),onBack:()=>x(`looking`),onForward:C}),d===`suggestions`&&(0,q.jsx)(ii,{suggestions:I.suggestions,loading:R,installedPlugins:I.installedPlugins,onSuggestionClick:async e=>{Ve(He.suggestions,{userId:n,outcome:`completed`}),await I.awaitPluginInstalls(),he(w,D,e.prompt)},onSkip:async()=>{Ve(He.suggestions,{userId:n,outcome:`skipped`}),await I.awaitPluginInstalls(),he(w,D,void 0,{skip:!0})},onBack:()=>x(z?`looking`:`results`),onForward:C})]})})}return d===`intro`&&w?(0,q.jsx)(mr,{firstName:w.firstName,assistantName:D?.name,onContinue:()=>b(`different`),onBack:()=>x(`face`),onForward:C}):d===`face`&&w?(0,q.jsx)(Qn,{onContinue:e=>{O(e),b(`intro`)},onBack:()=>x(`form`),onForward:C}):(0,q.jsx)(Wn,{initialFirstName:t?.firstName??``,initialLastName:t?.lastName??``,onSubmit:ge})}export{fi as ResearchOnboardingRoute};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BlMXrA59.js";import{r as t}from"./api-errors-CveHbhgb.js";var n=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),r={medium:[`small`,`medium`],large:[`small`,`medium`,`large`],xl:[`small`,`medium`,`large`,`extra_large`]};function i(e){return e?r[e]??[]:[]}var a={small:`Small`,medium:`Medium`,large:`Large`,extra_large:`Extra Large`},o={small:`2 vCPU, 3 GiB`,medium:`2.5 vCPU, 5 GiB`,large:`4 vCPU, 8 GiB`,extra_large:`4 vCPU, 16 GiB`},s=[`small`,`medium`,`large`,`extra_large`];function c(e){return s.indexOf(e)}function l(e,t,n){return e.map(e=>({value:e,label:`${a[e]} — ${o[e]}`,suffix:e===t?n:void 0}))}var u=new Set([`exceeds_machine_tier`,`exceeds_storage_tier`]);function d(e,n){return e&&typeof e==`object`&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`&&u.has(e.error)?`That size isn't available on your plan.`:t(e,void 0,n)}export{i as a,n as c,r as i,o as n,l as o,a as r,c as s,d as t};
1
+ import{t as e}from"./createLucideIcon-D8roAprb.js";import{r as t}from"./api-errors-B-g6gvNv.js";var n=e(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),r={medium:[`small`,`medium`],large:[`small`,`medium`,`large`],xl:[`small`,`medium`,`large`,`extra_large`]};function i(e){return e?r[e]??[]:[]}var a={small:`Small`,medium:`Medium`,large:`Large`,extra_large:`Extra Large`},o={small:`2 vCPU, 3 GiB`,medium:`2.5 vCPU, 5 GiB`,large:`4 vCPU, 8 GiB`,extra_large:`4 vCPU, 16 GiB`},s=[`small`,`medium`,`large`,`extra_large`];function c(e){return s.indexOf(e)}function l(e,t,n){return e.map(e=>({value:e,label:`${a[e]} — ${o[e]}`,suffix:e===t?n:void 0}))}var u=new Set([`exceeds_machine_tier`,`exceeds_storage_tier`]);function d(e,n){return e&&typeof e==`object`&&!Array.isArray(e)&&`error`in e&&typeof e.error==`string`&&u.has(e.error)?`That size isn't available on your plan.`:t(e,void 0,n)}export{i as a,n as c,r as i,o as n,l as o,a as r,c as s,d as t};
@@ -1 +1 @@
1
- import{n as e,t}from"./create-selectors-BE0_e_Ed.js";import{X as n,d as r,dt as i,f as a,lt as o,p as s,ut as c}from"./local-mode-CvrNMtPF.js";function l(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var u=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:c(),assistantsHydrated:!1,setFromLockfile:n=>{let i=m(n),a=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:a.get(e.assistantId)?.currentReleaseVersion,releaseChannel:a.get(e.assistantId)?.releaseChannel,isActiveLockfileAssistant:i===e.assistantId,isLocal:r(e),isPlatformHosted:s(e),organizationId:e.organizationId})),assistantsHydrated:!0}),d(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>{let t=p(e.id);return{id:e.id,name:e.name,hatchedAt:e.created,cloud:t.cloud,runtimeVersion:t.runtimeVersion,currentReleaseVersion:e.current_release_version,releaseChannel:e.release_channel,isActiveLockfileAssistant:t.isActiveLockfileAssistant,isLocal:e.is_local,isPlatformHosted:!e.is_local}})}),upsertFromApi:t=>e(e=>{let n={id:t.id,name:t.name,hatchedAt:t.created,currentReleaseVersion:t.current_release_version,releaseChannel:t.release_channel,isLocal:t.is_local,isPlatformHosted:!t.is_local},r=e.assistants.findIndex(e=>e.id===t.id);if(r>=0){let i=[...e.assistants],a=p(t.id);return i[r]={...n,cloud:a.cloud??i[r].cloud,organizationId:i[r].organizationId,runtimeVersion:a.runtimeVersion??i[r].runtimeVersion,isActiveLockfileAssistant:a.isActiveLockfileAssistant??i[r].isActiveLockfileAssistant},{assistants:i}}let i=p(t.id);return{assistants:[...e.assistants,{...n,cloud:i.cloud,organizationId:i.organizationId,runtimeVersion:i.runtimeVersion,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?o():i(t),e({selectedAssistantId:t})}}));function d(e,t){let{assistants:n,selectedAssistantId:r,assistantsHydrated:i}=e();!i||r==null||n.some(e=>e.id===r)||(o(),t({selectedAssistantId:null}))}var f=t(u);function p(e){let t=n.getState().lockfile,r=t?.assistants.find(t=>t.assistantId===e),i=t?m(t):null;return{cloud:r?.cloud,organizationId:r?.organizationId,runtimeVersion:r?.resources?.runtimeVersion,isActiveLockfileAssistant:t?i===e:void 0}}function m(e){return e.activeAssistant&&e.assistants.some(t=>t.assistantId===e.activeAssistant)?e.activeAssistant:e.assistants.length===1?e.assistants[0]?.assistantId??null:null}a()&&n.subscribe(e=>{e.lockfile&&e.committed&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&u.setState({selectedAssistantId:c()})});export{f as n,l as t};
1
+ import{n as e,t}from"./create-selectors-BTyhO-eS.js";import{X as n,d as r,dt as i,f as a,lt as o,p as s,ut as c}from"./local-mode-Cez1weue.js";function l(e,t){return e.filter(e=>e.isLocal||e.organizationId==null||e.organizationId===t)}var u=e((e,t)=>({assistants:[],activeAssistantId:null,selectedAssistantId:c(),assistantsHydrated:!1,setFromLockfile:n=>{let i=m(n),a=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:a.get(e.assistantId)?.currentReleaseVersion,releaseChannel:a.get(e.assistantId)?.releaseChannel,isActiveLockfileAssistant:i===e.assistantId,isLocal:r(e),isPlatformHosted:s(e),organizationId:e.organizationId})),assistantsHydrated:!0}),d(t,e)},setFromApi:t=>e({assistantsHydrated:!0,assistants:t.map(e=>{let t=p(e.id);return{id:e.id,name:e.name,hatchedAt:e.created,cloud:t.cloud,runtimeVersion:t.runtimeVersion,currentReleaseVersion:e.current_release_version,releaseChannel:e.release_channel,isActiveLockfileAssistant:t.isActiveLockfileAssistant,isLocal:e.is_local,isPlatformHosted:!e.is_local}})}),upsertFromApi:t=>e(e=>{let n={id:t.id,name:t.name,hatchedAt:t.created,currentReleaseVersion:t.current_release_version,releaseChannel:t.release_channel,isLocal:t.is_local,isPlatformHosted:!t.is_local},r=e.assistants.findIndex(e=>e.id===t.id);if(r>=0){let i=[...e.assistants],a=p(t.id);return i[r]={...n,cloud:a.cloud??i[r].cloud,organizationId:i[r].organizationId,runtimeVersion:a.runtimeVersion??i[r].runtimeVersion,isActiveLockfileAssistant:a.isActiveLockfileAssistant??i[r].isActiveLockfileAssistant},{assistants:i}}let i=p(t.id);return{assistants:[...e.assistants,{...n,cloud:i.cloud,organizationId:i.organizationId,runtimeVersion:i.runtimeVersion,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?o():i(t),e({selectedAssistantId:t})}}));function d(e,t){let{assistants:n,selectedAssistantId:r,assistantsHydrated:i}=e();!i||r==null||n.some(e=>e.id===r)||(o(),t({selectedAssistantId:null}))}var f=t(u);function p(e){let t=n.getState().lockfile,r=t?.assistants.find(t=>t.assistantId===e),i=t?m(t):null;return{cloud:r?.cloud,organizationId:r?.organizationId,runtimeVersion:r?.resources?.runtimeVersion,isActiveLockfileAssistant:t?i===e:void 0}}function m(e){return e.activeAssistant&&e.assistants.some(t=>t.assistantId===e.activeAssistant)?e.activeAssistant:e.assistants.length===1?e.assistants[0]?.assistantId??null:null}a()&&n.subscribe(e=>{e.lockfile&&e.committed&&u.getState().setFromLockfile(e.lockfile)}),typeof window<`u`&&window.addEventListener(`storage`,e=>{(e.key===null||e.key===`vellum:selectedAssistantId`)&&u.setState({selectedAssistantId:c()})});export{f as n,l as t};
@@ -1 +1 @@
1
- import{$ as e,nt as t,st as n}from"./local-mode-CvrNMtPF.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;constructor(e,t){super(t),this.name=`RemoteWebPairingError`,this.status=e}};function g(e,...t){for(let n of t){let t=e.get(n)?.trim();if(t)return t}return null}function _(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 v(e){let t=_(typeof e==`string`?new URL(e,window.location.origin):e);return{deviceCode:g(t,`deviceCode`,`device_code`),userCode:g(t,`userCode`,`user_code`)}}function y(e=window.location){let t=/\/assistant(?:\/|$)/.exec(e.pathname);return t&&t.index>0?e.pathname.slice(0,t.index).replace(/\/+$/,``):``}function b(e,t=window.location){return`${y(t)}${e}`}function x(){return`${window.location.origin}${y()}`}function S(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isFinite(t)?t:0}return e>0xe8d4a51000?e:e*1e3}function C(){return!t()||p<=0?!0:Date.now()>=p-s}function w(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 T(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 E(e){return new Promise(t=>setTimeout(t,e))}function D(){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 O(e){try{let t=D();return t&&t.expiresAt>Date.now()?!1:(localStorage.setItem(c,JSON.stringify({owner:e,expiresAt:Date.now()+u})),D()?.owner===e)}catch{return!0}}function k(e){try{D()?.owner===e&&localStorage.removeItem(c)}catch{}}async function A(e){let t=`${Date.now()}:${Math.random().toString(36).slice(2)}`,n=Date.now()+d;for(;!O(t);){if(Date.now()>=n)return e();await E(f)}try{return await e()}finally{k(t)}}async function j(e){let t=typeof navigator<`u`?navigator.locks??null:null;return t?t.request(l,e):A(e)}function M(t){p=S(t.refreshAfter),n({accessToken:t.accessToken,accessTokenExpiresAt:t.accessTokenExpiresAt}),e({url:`${window.location.origin}${y()}`,token:t.accessToken})}async function N(e,t){let n=await fetch(b(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}`);if(!w(i))throw new h(502,`Pairing token exchange returned an invalid response`);return i}async function P(e){let t=await fetch(b(i),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({publicBaseUrl:x()}),signal:e}),n=await t.json().catch(()=>null);if(!t.ok)throw new h(t.status,`Pairing challenge creation failed: ${t.status}`);if(!T(n))throw new h(502,`Pairing challenge creation returned an invalid response`);return n}async function F(){if(!C())return!0;let e=await fetch(b(a),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:`{}`});if(!e.ok)return!1;let t=await e.json().catch(()=>null);return w({...t,status:`approved`})?(M({...t,status:`approved`}),!0):!1}async function I(){return C()?(m??=j(F).finally(()=>{m=null}),m):!0}function L(e){return e===`vellum.ai`||e.endsWith(`.vellum.ai`)}var R=/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;function z(e,t){if(!e)return t;if(R.test(e)){try{let t=new URL(e);if(t.protocol===`https:`&&L(t.hostname))return e}catch{}return t}return e.startsWith(`//`)||e.includes(`\\`)||!e.startsWith(`/`)?t:e}export{N as a,y as c,P as i,h as n,v as o,M as r,I as s,z as t};
1
+ import{$ as e,nt as t,st as n}from"./local-mode-Cez1weue.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;constructor(e,t){super(t),this.name=`RemoteWebPairingError`,this.status=e}};function g(e,...t){for(let n of t){let t=e.get(n)?.trim();if(t)return t}return null}function _(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 v(e){let t=_(typeof e==`string`?new URL(e,window.location.origin):e);return{deviceCode:g(t,`deviceCode`,`device_code`),userCode:g(t,`userCode`,`user_code`)}}function y(e=window.location){let t=/\/assistant(?:\/|$)/.exec(e.pathname);return t&&t.index>0?e.pathname.slice(0,t.index).replace(/\/+$/,``):``}function b(e,t=window.location){return`${y(t)}${e}`}function x(){return`${window.location.origin}${y()}`}function S(e){if(typeof e==`string`){let t=Date.parse(e);return Number.isFinite(t)?t:0}return e>0xe8d4a51000?e:e*1e3}function C(){return!t()||p<=0?!0:Date.now()>=p-s}function w(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 T(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 E(e){return new Promise(t=>setTimeout(t,e))}function D(){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 O(e){try{let t=D();return t&&t.expiresAt>Date.now()?!1:(localStorage.setItem(c,JSON.stringify({owner:e,expiresAt:Date.now()+u})),D()?.owner===e)}catch{return!0}}function k(e){try{D()?.owner===e&&localStorage.removeItem(c)}catch{}}async function A(e){let t=`${Date.now()}:${Math.random().toString(36).slice(2)}`,n=Date.now()+d;for(;!O(t);){if(Date.now()>=n)return e();await E(f)}try{return await e()}finally{k(t)}}async function j(e){let t=typeof navigator<`u`?navigator.locks??null:null;return t?t.request(l,e):A(e)}function M(t){p=S(t.refreshAfter),n({accessToken:t.accessToken,accessTokenExpiresAt:t.accessTokenExpiresAt}),e({url:`${window.location.origin}${y()}`,token:t.accessToken})}async function N(e,t){let n=await fetch(b(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}`);if(!w(i))throw new h(502,`Pairing token exchange returned an invalid response`);return i}async function P(e){let t=await fetch(b(i),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({publicBaseUrl:x()}),signal:e}),n=await t.json().catch(()=>null);if(!t.ok)throw new h(t.status,`Pairing challenge creation failed: ${t.status}`);if(!T(n))throw new h(502,`Pairing challenge creation returned an invalid response`);return n}async function F(){if(!C())return!0;let e=await fetch(b(a),{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:`{}`});if(!e.ok)return!1;let t=await e.json().catch(()=>null);return w({...t,status:`approved`})?(M({...t,status:`approved`}),!0):!1}async function I(){return C()?(m??=j(F).finally(()=>{m=null}),m):!0}function L(e){return e===`vellum.ai`||e.endsWith(`.vellum.ai`)}var R=/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;function z(e,t){if(!e)return t;if(R.test(e)){try{let t=new URL(e);if(t.protocol===`https:`&&L(t.hostname))return e}catch{}return t}return e.startsWith(`//`)||e.includes(`\\`)||!e.startsWith(`/`)?t:e}export{N as a,y as c,P as i,h as n,v as o,M as r,I as s,z as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-DJZBPgpf.js";import{t as n}from"./button-D7s2Q_uG.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-CVSDxk6A.js";import{t as o}from"./is-electron-C_ZTVhv8.js";import{d as s,i as c,n as l}from"./auth-store-Kfxhs2oI.js";import{t as u}from"./return-to-ByvaXBKr.js";import{a as d}from"./routes-DVqkwUEe.js";import{c as f,d as p,f as m,l as h,s as g,u as _}from"./prefs-C_oq5G87.js";import{Gr as v,Rn as y,kt as b}from"./index-PRnvH2Y1.js";import{n as x,t as S}from"./consent-controls-BSZV4rW3.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=r(),[t]=i(),a=l.use.user()?.id??null,w=l.use.logout(),T=o(),k=c(),[A,j]=m(),[M,N]=h(),[P,F]=_(),[I,L]=p(),[R]=g(),[z]=f(),[B]=(0,C.useState)(()=>!A),[V]=(0,C.useState)(()=>!M),[H]=(0,C.useState)(()=>!R),[U]=(0,C.useState)(()=>!z),W=!B&&!V&&!H&&!U,G=B||W,K=V||W,q=H||W,J=U||W,Y=!W&&!B&&!V,X=W?`Terms & privacy`:Y?`Review your privacy preferences`:`Updated terms`,Z=W?`Review your terms and privacy preferences anytime.`:Y?`Confirm your privacy preferences to continue.`:`We've updated our terms. Please review and accept to continue.`,Q=(0,C.useCallback)(()=>{s({userId:a,tos:A,privacy:M,shareAnalytics:P,shareDiagnostics:I,hasPlatformSession:k}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[M,k,e,t,P,I,A,a]),$=(0,C.useCallback)(async()=>{await w(),y(d.account.login)},[w]),ee=G&&!A||K&&!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)(v,{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:X}),(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:Z}),(q||J)&&(0,O.jsx)(x,{electron:T,showAnalytics:q,showDiagnostics:J,shareAnalytics:P,shareDiagnostics:I,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(K||G)&&(0,O.jsx)(S,{electron:T,showPrivacy:K,showTos:G,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:K?D(`2026-06-22`):[],tosNotes:G?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:ee,onClick:Q,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:$,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-DJZBPgpf.js";import{t as n}from"./button-BvHa6F59.js";import{d as r,h as i}from"./chunk-5KNZJZUH-DdS6bb-3.js";import{t as a}from"./jsx-runtime-B-mvcaJS.js";import{t as o}from"./is-electron-URCUw74P.js";import{d as s,i as c,n as l}from"./auth-store-BzL2lSd1.js";import{t as u}from"./return-to-DlPFMVLx.js";import{a as d}from"./routes-Dzl0kj5j.js";import{c as f,d as p,f as m,l as h,s as g,u as _}from"./prefs-C6e8pdrA.js";import{Gr as v,Rn as y,kt as b}from"./index-3zpPFBeR.js";import{n as x,t as S}from"./consent-controls-CYj9WfJh.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=r(),[t]=i(),a=l.use.user()?.id??null,w=l.use.logout(),T=o(),k=c(),[A,j]=m(),[M,N]=h(),[P,F]=_(),[I,L]=p(),[R]=g(),[z]=f(),[B]=(0,C.useState)(()=>!A),[V]=(0,C.useState)(()=>!M),[H]=(0,C.useState)(()=>!R),[U]=(0,C.useState)(()=>!z),W=!B&&!V&&!H&&!U,G=B||W,K=V||W,q=H||W,J=U||W,Y=!W&&!B&&!V,X=W?`Terms & privacy`:Y?`Review your privacy preferences`:`Updated terms`,Z=W?`Review your terms and privacy preferences anytime.`:Y?`Confirm your privacy preferences to continue.`:`We've updated our terms. Please review and accept to continue.`,Q=(0,C.useCallback)(()=>{s({userId:a,tos:A,privacy:M,shareAnalytics:P,shareDiagnostics:I,hasPlatformSession:k}),e(u(t.get(`returnTo`),d.assistant),{replace:!0})},[M,k,e,t,P,I,A,a]),$=(0,C.useCallback)(async()=>{await w(),y(d.account.login)},[w]),ee=G&&!A||K&&!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)(v,{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:X}),(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:Z}),(q||J)&&(0,O.jsx)(x,{electron:T,showAnalytics:q,showDiagnostics:J,shareAnalytics:P,shareDiagnostics:I,onShareAnalyticsChange:F,onShareDiagnosticsChange:L,className:`mt-9 w-full`,style:{animation:`fadeInUp 0.5s ease-out 0.28s both`}}),(K||G)&&(0,O.jsx)(S,{electron:T,showPrivacy:K,showTos:G,privacyConsent:M,tosAccepted:A,onPrivacyChange:N,onTosChange:j,privacyNotes:K?D(`2026-06-22`):[],tosNotes:G?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:ee,onClick:Q,className:T?void 0:`h-11 text-base`,children:`Continue`}),(0,O.jsx)(n,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:$,className:T?void 0:`h-11 text-base`,children:`Log out`})]})]})})}export{k as ReviewTermsScreen};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-jRWAZmH_.js";import{r as t,s as n}from"./local-settings-lVNyIOJ_.js";import{r}from"./capture-error-BaKOqBjF.js";import{t as i}from"./react-DJZBPgpf.js";import{n as a}from"./QueryClientProvider-DgWA3A3c.js";import{t as o}from"./useInfiniteQuery-iPXlezAp.js";import{t as s}from"./jsx-runtime-B-mvcaJS.js";import{t as c}from"./typography-COqg6o2z.js";import{i as l}from"./src-Dr68ou95.js";import{n as u,t as d}from"./create-selectors-BTyhO-eS.js";import{t as f}from"./createLucideIcon-D8roAprb.js";import{en as p}from"./sdk.gen-CC1iYdd0.js";import{n as ee,r as te,t as ne}from"./api-errors-B-g6gvNv.js";import{t as re}from"./dist-CzyDxYAs.js";import{n as m}from"./typed-storage-Chj38wph.js";import{a as h,c as g}from"./diagnostics-D5xXiLo-.js";import{t as ie}from"./conversation-store-6tz67quR.js";import{c as ae,s as oe}from"./messages-DCNfjhgv.js";import{t as _}from"./misc-CBD9JJCY.js";import{t as se}from"./browser-CDQJAXkC.js";import{n as ce}from"./lib-Bexzcbsy.js";var le=f(`bolt`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}],[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}]]),ue=f(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),de=f(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),v=e(i(),1),fe={phase:`idle`,pendingQueuedCount:0,activeToolCallCount:0,activeTurnId:null,lastTerminalReason:null,statusText:null,liveWebActivity:{}};function pe(e){return e===`queued`||e===`thinking`||e===`streaming`||e===`awaiting_user_input`}function me(e){return e===`thinking`}function y(e){return(e.phase===`idle`||e.phase===`errored`)&&!e.activeTurnId}var he=d(u()((e,t)=>({...fe,requestSend:t=>e(e=>({phase:`thinking`,activeTurnId:t??e.activeTurnId,lastTerminalReason:null,activeToolCallCount:0,statusText:null})),acceptSend:t=>e(e=>({activeTurnId:t,...e.phase===`idle`||e.phase===`errored`?{phase:`thinking`,lastTerminalReason:null}:null})),onTextDelta:()=>{let n=t();if(n.phase===`idle`||n.phase===`errored`){if(!n.activeTurnId)return;e({phase:`streaming`});return}(n.phase===`thinking`||n.phase===`queued`)&&e({phase:`streaming`})},onToolUseStart:()=>{let n=t();y(n)||e({phase:n.phase===`idle`||n.phase===`errored`||n.phase===`queued`?`thinking`:n.phase,activeToolCallCount:n.activeToolCallCount+1})},onToolResult:()=>e(e=>({activeToolCallCount:Math.max(0,e.activeToolCallCount-1)})),onToolActivityMetadata:(n,r)=>{let i=t();y(i)||e({liveWebActivity:{...i.liveWebActivity,[n]:r}})},onActivityThinking:n=>{let r=t();y(r)||r.phase!==`awaiting_user_input`&&e({phase:`thinking`,statusText:n??null})},showSurface:n=>{y(t())||n&&e({phase:`awaiting_user_input`})},updateSurface:()=>{},dismissSurface:()=>{let n=t();n.phase===`awaiting_user_input`&&n.activeToolCallCount===0&&e({phase:`thinking`})},completeSurface:()=>{let n=t();n.phase===`awaiting_user_input`&&n.activeToolCallCount===0&&e({phase:`thinking`})},onSecretRequest:()=>{y(t())||e({phase:`awaiting_user_input`})},onConfirmationRequest:()=>{y(t())||e({phase:`awaiting_user_input`})},onQuestionRequest:()=>{y(t())||e({phase:`awaiting_user_input`})},onContactRequest:()=>{y(t())||e({phase:`awaiting_user_input`})},completeTurn:()=>{e({phase:t().pendingQueuedCount>0?`queued`:`idle`,activeTurnId:null,activeToolCallCount:0,lastTerminalReason:`complete`,statusText:null,liveWebActivity:{}})},handoffGeneration:()=>{y(t())||e({phase:`thinking`,activeToolCallCount:0,statusText:null})},cancelGeneration:()=>{e({phase:t().pendingQueuedCount>0?`queued`:`idle`,activeTurnId:null,activeToolCallCount:0,lastTerminalReason:`cancelled`,statusText:null,liveWebActivity:{}})},onStreamError:()=>e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,pendingQueuedCount:0,lastTerminalReason:`error`,statusText:null,liveWebActivity:{}}),onSessionError:()=>e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,pendingQueuedCount:0,lastTerminalReason:`session_error`,statusText:null,liveWebActivity:{}}),onTurnTimeout:()=>e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,pendingQueuedCount:0,lastTerminalReason:`timeout`,statusText:null,liveWebActivity:{}}),onPollReconciled:n=>{let r=t();n&&n!==r.activeTurnId||pe(r.phase)&&e({phase:`idle`,activeTurnId:null,activeToolCallCount:0,lastTerminalReason:`complete`,statusText:null,liveWebActivity:{}})},resetTurn:()=>e({...fe}),enqueueMessage:()=>e(e=>({pendingQueuedCount:e.pendingQueuedCount+1})),dequeueMessage:()=>{let n=t(),r=Math.max(0,n.pendingQueuedCount-1);if(y(n)){e({pendingQueuedCount:r});return}e({phase:`thinking`,pendingQueuedCount:r})},deleteQueuedMessage:()=>{let n=t(),r=Math.max(0,n.pendingQueuedCount-1);if(r===0&&n.phase===`queued`){e({phase:`idle`,pendingQueuedCount:0,activeTurnId:null,lastTerminalReason:`complete`,statusText:null,liveWebActivity:{}});return}e({pendingQueuedCount:r})}}))),ge=3670016,_e=[.85,.75,.65,.5],ve=2e7,ye=new Set([`image/jpeg`,`image/jpg`,`image/png`,`image/webp`,`image/heic`,`image/heif`,`image/bmp`,`image/tiff`]),be=new Set([`jpg`,`jpeg`,`png`,`webp`,`heic`,`heif`,`bmp`,`tif`,`tiff`]);function b(e){let t=e.type.trim().toLowerCase();if(ye.has(t))return!0;let n=e.name.split(`.`).pop()?.trim().toLowerCase();return n?be.has(n):!1}function xe(e){return b(e)&&e.size>3670016}function Se(e){let t=`attachment`,n=e.trim()||t;return/\.(?:jpe?g)$/i.test(n)?n:`${n.replace(/\.[^./\\]+$/,``)||t}.jpg`}async function Ce(e){if(!xe(e)||await Te(e))return{status:`unchanged`,file:e};if(e.size>104857600)return{status:`failed`,error:`This image is too large to process safely. Please choose a smaller image.`};let t;try{t=await we(e)}catch{return{status:`failed`,error:`Couldn't resize this image for upload. Try a smaller image.`}}try{let n;try{n=await De(t,e.size)}catch{n=null}return!n||n.size>=e.size?{status:`failed`,error:`Couldn't resize this image for upload. Try a smaller image.`}:{status:`resized`,file:new File([n],Se(e.name),{type:`image/jpeg`,lastModified:e.lastModified})}}finally{t.close()}}async function we(e){if(typeof createImageBitmap==`function`)try{let t=await createImageBitmap(e,{imageOrientation:`from-image`});return{source:t,width:t.width,height:t.height,close:()=>t.close()}}catch{}if(typeof Image>`u`)throw Error(`No browser image decoder is available.`);let t=URL.createObjectURL(e);return await new Promise((e,n)=>{let r=new Image;r.onload=()=>{e({source:r,width:r.naturalWidth||r.width,height:r.naturalHeight||r.height,close:()=>URL.revokeObjectURL(t)})},r.onerror=()=>{URL.revokeObjectURL(t),n(Error(`Image decode failed.`))},r.src=t})}async function Te(e){if(!Ee(e))return!1;let t;try{t=new Uint8Array(await e.slice(0,Math.min(e.size,1024*1024)).arrayBuffer())}catch{return!0}if(!S(t,0,`RIFF`)||!S(t,8,`WEBP`))return!1;let n=x(t,`VP8X`);return n>=0&&(t[n+8]??0)&2?!0:x(t,`ANIM`)>=0||x(t,`ANMF`)>=0}function Ee(e){return e.type.trim().toLowerCase()===`image/webp`||/\.webp$/i.test(e.name)}function x(e,t){for(let n=0;n<=e.length-t.length;n+=1)if(S(e,n,t))return n;return-1}function S(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r+=1)if(e[t+r]!==n.charCodeAt(r))return!1;return!0}async function De(e,t){let n=e.width*e.height,r=null;if(n<=ve)for(let t of _e){let n=await w(e.source,e.width,e.height,t);if(r=C(r,n),n&&n.size<=3670016)return n}let i=r?.size??t,a=Math.min(Math.sqrt(ge/i*.9),.95);for(let t=0;t<4;t+=1){let t=Math.max(Math.floor(e.width*a),1),n=Math.max(Math.floor(e.height*a),1),o=null;for(let i of _e){let a=await w(e.source,t,n,i);if(r=C(r,a),o=C(o,a),a&&a.size<=3670016)return a}i=o?.size??i,a*=Math.min(Math.sqrt(ge/i*.9),.9)}return null}function C(e,t){return t&&(!e||t.size<e.size)?t:e}async function w(e,t,n,r){if(typeof document>`u`)return null;let i=document.createElement(`canvas`);i.width=t,i.height=n;let a=i.getContext(`2d`);if(!a||typeof i.toBlob!=`function`)return null;a.fillStyle=`#fff`,a.fillRect(0,0,t,n),a.drawImage(e,0,0,t,n);try{return await new Promise(e=>{i.toBlob(t=>e(t),`image/jpeg`,r)})}finally{i.width=0,i.height=0}}var Oe=`vellum:chatDrafts:`;function T(e){return`${Oe}${e}`}function ke(e){let n=t(T(e),``);if(!n)return new Map;try{let e=JSON.parse(n);return typeof e!=`object`||!e||Array.isArray(e)?new Map:new Map(Object.entries(e).filter(e=>typeof e[1]==`string`))}catch{return new Map}}function E(e,t){n(T(e),JSON.stringify(Object.fromEntries(t)))}function Ae(){return`att-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}function je(e){return b(e)?`100 MB`:`50 MB`}function Me(e){return e.size<=52428800?!0:b(e)&&e.size<=104857600}var D=new Map,O=null,k=new Map,A=new Set,Ne=u()((e,t)=>({input:``,restoredDraftConversationId:null,attachments:[],attachmentLastError:null,setInput:t=>{e(e=>({input:typeof t==`function`?t(e.input):t}))},saveDraft:(e,t)=>{t.trim()?D.set(e,t):D.delete(e),O&&E(O,D)},clearDraft:e=>{D.delete(e),O&&E(O,D)},handleConversationSwitch:({previousKey:n,nextKey:r})=>{if(!(n!==null&&n!==r)||!n)return;let i=t().input;i.trim()?D.set(n,i):D.delete(n);let a=(r&&D.get(r))??``;e({input:a,restoredDraftConversationId:a.length>0&&r?r:null}),O&&E(O,D)},loadAssistantDrafts:(n,r)=>{if(O&&O!==n){let n=t().input;r&&(n.trim()?D.set(r,n):D.delete(r)),E(O,D),e({input:``,restoredDraftConversationId:null})}D=ke(n),O=n},clearRestoredDraftNotice:()=>{e({restoredDraftConversationId:null})},restoreDraftIfEmpty:n=>{let r=D.get(n);r&&r.trim()&&!t().input.trim()&&e({input:r,restoredDraftConversationId:n})},addFiles:(t,n)=>{let r=Array.from(t);if(r.length===0)return;if(!n){e({attachmentLastError:`No active assistant. Please try again.`});return}let i=[],a=[];for(let e of r)Me(e)?a.push(e):i.push(e);let o=i[0];if(e(o?{attachmentLastError:i.length===1?`${o.name} is larger than ${je(o)} and can't be attached.`:`${i.length} files are too large and can't be attached.`}:{attachmentLastError:null}),a.length===0)return;let s=a.map(e=>({pending:{kind:`uploading`,localId:Ae(),filename:e.name||`attachment`,mimeType:e.type||`application/octet-stream`,sizeBytes:e.size},file:e}));e(e=>({attachments:[...e.attachments,...s.map(e=>e.pending)]}));for(let{pending:t,file:r}of s)(async()=>{try{let i=await Ce(r);if(A.has(t.localId)){A.delete(t.localId);return}if(i.status===`failed`&&r.size>52428800){j(e,t.localId,i.error);return}let a=i.status===`failed`?r:i.file;if(a.size>52428800){j(e,t.localId,`This attachment is still larger than 50 MB after resizing. Try a smaller image.`);return}i.status===`resized`&&e(e=>({attachments:e.attachments.map(e=>e.localId===t.localId&&e.kind===`uploading`?{...e,filename:a.name||`attachment`,mimeType:a.type||`application/octet-stream`,sizeBytes:a.size}:e)}));let o=await oe(n,a);if(A.has(t.localId)){A.delete(t.localId);return}if(!o.ok){j(e,t.localId,o.error.detail??`Upload failed`);return}let s=null;try{s=URL.createObjectURL(a),k.set(t.localId,s)}catch{s=null}e(e=>({attachments:e.attachments.map(e=>e.localId===t.localId?{kind:`uploaded`,localId:t.localId,id:o.id,filename:a.name||`attachment`,mimeType:a.type||`application/octet-stream`,sizeBytes:a.size,previewUrl:s}:e)}))}catch{if(A.has(t.localId)){A.delete(t.localId);return}j(e,t.localId,`Upload failed`)}})()},removeAttachment:t=>{e(e=>{let n=e.attachments.find(e=>e.localId===t);return n&&n.kind===`uploading`&&A.add(t),{attachments:e.attachments.filter(e=>e.localId!==t)}}),Pe(t)},resetAttachments:()=>{e(e=>{for(let t of e.attachments)t.kind===`uploading`&&A.add(t.localId);return{attachments:[],attachmentLastError:null}})},fullReset:()=>{e(e=>{for(let t of e.attachments)t.kind===`uploading`&&A.add(t.localId);return{attachments:[],attachmentLastError:null}}),k.forEach(e=>URL.revokeObjectURL(e)),k.clear()},dismissAttachmentError:()=>{e({attachmentLastError:null})}}));function j(e,t,n){e(e=>({attachments:e.attachments.map(e=>e.localId===t?{kind:`failed`,localId:t,filename:e.filename,mimeType:e.mimeType,sizeBytes:e.sizeBytes,error:n}:e)}))}function Pe(e){let t=k.get(e);t&&(URL.revokeObjectURL(t),k.delete(e))}function Fe(e){return e.reduce((e,t)=>t.kind===`uploading`?e+1:e,0)}function Ie(e){return e.filter(e=>e.kind===`uploaded`).map(e=>e.id)}var M=d(Ne);function N(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function Le(e){let t=JSON.parse(e);return N(t)?t:null}function P(e,t){let n=[...e??[]],r=n.findIndex(e=>e.type===`surface`&&e.surface.surfaceId===t.surfaceId);return r===-1?n.push({type:`surface`,surface:t}):n[r]={type:`surface`,surface:t},n}function Re(e,t){return e?.filter(e=>!(e.type===`surface`&&e.surface.surfaceId===t))}function ze(e,t){if(!e.surfaces?.length)return e;let n=!1,r=e.contentBlocks,i=e.surfaces.map(e=>{let i=t(e);return i!==e&&(n=!0,r=P(r,i)),i});return n?{...e,surfaces:i,contentBlocks:r}:e}function F(e,t){if(!e.surfaces?.length)return e;let n=e.surfaces.filter(t);if(n.length===e.surfaces.length)return e;let r=new Set(e.surfaces.filter(e=>!t(e)).map(e=>e.surfaceId));return{...e,surfaces:n,contentOrder:e.contentOrder?.filter(e=>!(e.type===`surface`&&r.has(e.id))),contentBlocks:e.contentBlocks?.filter(e=>!(e.type===`surface`&&r.has(e.surface.surfaceId)))}}var I=500,L=m({keyFn:e=>`vellum:dismissed-surfaces:${e}`,scope:`user`,parseValue:e=>N(e)?e:null,fallback:{},maxEntries:200});function Be(e,t){let n=L.get(e,t);return n?new Set(n):new Set}function Ve(e,t,n){let r=Array.from(n);r.length>I&&(r=r.slice(r.length-I)),L.set(e,t,r)}function He(e,t){if(t.size===0)return e;let n=!1,r=e.map(e=>{let r=F(e,e=>!t.has(e.surfaceId));return r!==e&&(n=!0),r});return n?r:e}function Ue(e){if(!e||typeof e!=`object`)return!1;let t=e;return!(typeof t.tokens!=`number`||!Number.isFinite(t.tokens)||t.maxTokens!==null&&(typeof t.maxTokens!=`number`||!Number.isFinite(t.maxTokens))||t.fillRatio!==null&&(typeof t.fillRatio!=`number`||!Number.isFinite(t.fillRatio)))}var We=m({keyFn:e=>`vellum:ctxwindow:${e}`,scope:`user`,parseValue:e=>Ue(e)?e:null,fallback:{},maxEntries:200});function Ge(e){return new Map(Object.entries(We.load(e)))}function Ke(e,t,n){We.set(e,t,n)}var qe=`PROVIDER_BILLING`,Je=`PROVIDER_NOT_CONFIGURED`,Ye=`MANAGED_KEY_INVALID`,Xe=`credits_exhausted`,Ze=`provider_billing`;function Qe(e){return e?.errorCategory?e.errorCategory.endsWith(Xe):e?.code===qe}function $e(e){return e?.errorCategory?e.errorCategory.endsWith(Ze):!1}function et(e){return Qe(e)?`managed_credits`:$e(e)?`provider_billing`:null}function R(e){return et(e)!==null||e?.code===Je||e?.displayAs===`modal`}function tt(e){return!!e&&!R(e)}function nt(e){return e?.code===Ye}var z={pendingSecret:null,isSubmittingSecret:!1,secretSaved:!1,pendingConfirmation:null,isSubmittingConfirmation:!1,pendingContactRequest:null,isSubmittingContactRequest:!1,contactRequestAccepted:!1,pendingQuestion:null,isSubmittingQuestion:!1,isQuestionCardDismissed:!1,inlineConfirmationToolCallId:null,unknownNudgeToolCallIds:new Set},B=d(u()((e,t)=>({...z,showSecret:n=>{let{pendingSecret:r}=t();if(r&&r.requestId===n.requestId){let t={};for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);e({pendingSecret:{...r,...t}});return}e({pendingSecret:n,isSubmittingSecret:!1,secretSaved:!1})},submitSecretStart:()=>e({isSubmittingSecret:!0}),submitSecretEnd:t=>e({isSubmittingSecret:!1,secretSaved:t??!1}),dismissSecret:()=>e({pendingSecret:null,isSubmittingSecret:!1}),updateSecret:(n,r)=>{let{pendingSecret:i}=t();!i||i.requestId!==n||e({pendingSecret:{...i,...r}})},showConfirmation:t=>e({pendingConfirmation:t,isSubmittingConfirmation:!1}),submitConfirmationStart:()=>e({isSubmittingConfirmation:!0}),submitConfirmationEnd:()=>e({isSubmittingConfirmation:!1}),dismissConfirmation:()=>e({pendingConfirmation:null,isSubmittingConfirmation:!1}),dismissConfirmationIfMatches:n=>{let{pendingConfirmation:r}=t();!r||r.requestId!==n||e({pendingConfirmation:null,isSubmittingConfirmation:!1})},updateConfirmation:(n,r)=>{let{pendingConfirmation:i}=t();!i||i.requestId!==n||e({pendingConfirmation:{...i,...r}})},setInlineConfirmationToolCallId:t=>e({inlineConfirmationToolCallId:t}),showContactRequest:t=>e({pendingContactRequest:t,isSubmittingContactRequest:!1,contactRequestAccepted:!1}),submitContactRequestStart:()=>e({isSubmittingContactRequest:!0}),submitContactRequestEnd:()=>e({isSubmittingContactRequest:!1}),dismissContactRequest:()=>e({pendingContactRequest:null,isSubmittingContactRequest:!1}),acceptContactRequest:()=>e({contactRequestAccepted:!0}),showQuestion:t=>e({pendingQuestion:t,isSubmittingQuestion:!1,isQuestionCardDismissed:!1}),submitQuestionStart:()=>e({isSubmittingQuestion:!0}),submitQuestionEnd:()=>e({isSubmittingQuestion:!1}),dismissQuestion:()=>e({pendingQuestion:null,isSubmittingQuestion:!1,isQuestionCardDismissed:!1}),dismissQuestionCard:()=>e({isQuestionCardDismissed:!0}),resetSecretAndConfirmation:()=>e({pendingSecret:null,isSubmittingSecret:!1,secretSaved:!1,pendingConfirmation:null,isSubmittingConfirmation:!1,inlineConfirmationToolCallId:null}),addUnknownNudgeToolCallId:n=>{let r=t().unknownNudgeToolCallIds;r.has(n)||e({unknownNudgeToolCallIds:new Set([...r,n])})},removeUnknownNudgeToolCallId:n=>{let r=t().unknownNudgeToolCallIds;if(!r.has(n))return;let i=new Set(r);i.delete(n),e({unknownNudgeToolCallIds:i})},resetAll:()=>e(z)}))),rt={hasMore:!1,oldestTimestamp:null,isLoadingOlder:!1,isPinnedToLatest:!0};function it(){return{liveTurn:[],error:null,notice:null,isLoadingHistory:!0,transcriptPagination:{...rt},contextWindowUsage:null,ephemeralMetaResults:[],compactionCircuitOpenUntil:null,dismissedSurfaceIds:new Set,streamingMessageIds:new Set,pendingQueuedMessageIds:[],requestIdToMessageId:new Map,pendingLocalDeletions:new Set,confirmationToolCallMap:new Map,expandedToolCallIds:new Set,expandedCardIds:new Map,contextWindowUsageByConversation:new Map,previousConversationId:null,previousAssistantId:null,draftConversationIdResolution:!1}}function V(e,t){return typeof t==`function`?t(e):t}var H=d(u()((e,t)=>({...it(),setLiveTurn:t=>e(e=>({liveTurn:V(e.liveTurn,t)})),setError:t=>e(e=>({error:V(e.error,t)})),setNotice:t=>e(e=>({notice:V(e.notice,t)})),setIsLoadingHistory:t=>e({isLoadingHistory:t}),setTranscriptPagination:t=>e(e=>({transcriptPagination:V(e.transcriptPagination,t)})),setContextWindowUsage:t=>e(e=>({contextWindowUsage:V(e.contextWindowUsage,t)})),setCompactionCircuitOpenUntil:t=>e(e=>({compactionCircuitOpenUntil:V(e.compactionCircuitOpenUntil,t)})),switchToConversation:({assistantId:n,activeConversationId:r})=>{let i=t();if(i.draftConversationIdResolution){e({draftConversationIdResolution:!1});return}let a=i.previousConversationId;if(a&&a!==r&&a){let e=B.getState();(e.pendingSecret||e.pendingConfirmation)&&ie.getState().addAttentionConversationId(a)}let o=i.previousAssistantId!==null&&i.previousAssistantId!==n,s=o||i.previousAssistantId===null;h(`conversation_switch_reset`,{assistantId:n,conversationId:r,outgoingConversationId:a??null}),M.getState().handleConversationSwitch({previousKey:a??null,nextKey:r}),he.getState().resetTurn(),B.getState().resetAll(),o?M.getState().fullReset():M.getState().resetAttachments();let c=s?Ge(n):i.contextWindowUsageByConversation;e({liveTurn:[],ephemeralMetaResults:[],error:R(i.error)?i.error:null,notice:null,isLoadingHistory:!0,transcriptPagination:{...rt},contextWindowUsage:c.get(r)??null,compactionCircuitOpenUntil:null,dismissedSurfaceIds:Be(n,r),streamingMessageIds:new Set,pendingQueuedMessageIds:[],requestIdToMessageId:new Map,pendingLocalDeletions:new Set,confirmationToolCallMap:new Map,expandedToolCallIds:new Set,expandedCardIds:new Map,contextWindowUsageByConversation:c,previousConversationId:r,previousAssistantId:n,draftConversationIdResolution:!1})},markDraftResolution:()=>e({draftConversationIdResolution:!0}),setConfirmationToolCall:(t,n)=>e(e=>{let r=new Map(e.confirmationToolCallMap);return r.set(t,n),{confirmationToolCallMap:r}}),deleteConfirmationToolCall:t=>e(e=>{let n=new Map(e.confirmationToolCallMap);return n.delete(t),{confirmationToolCallMap:n}}),clearConfirmationToolCallMap:()=>e({confirmationToolCallMap:new Map}),addDismissedSurfaceId:t=>e(e=>{let n=new Set(e.dismissedSurfaceIds);return n.add(t),{dismissedSurfaceIds:n}}),addDismissedSurfaceIds:t=>e(e=>{let n=new Set(e.dismissedSurfaceIds);for(let e of t)n.add(e);return{dismissedSurfaceIds:n}}),batchUpdateStreamingMessageIds:(t,n)=>e(e=>{let r=new Set(e.streamingMessageIds);for(let e of t)r.add(e);for(let e of n)r.delete(e);return{streamingMessageIds:r}}),pushPendingQueuedMessageId:t=>e(e=>({pendingQueuedMessageIds:[...e.pendingQueuedMessageIds,t]})),shiftPendingQueuedMessageId:()=>{let n=t().pendingQueuedMessageIds;if(n.length===0)return;let[r,...i]=n;return e({pendingQueuedMessageIds:i}),r},setRequestIdMapping:(t,n)=>e(e=>{let r=new Map(e.requestIdToMessageId);return r.set(t,n),{requestIdToMessageId:r}}),popRequestIdMapping:n=>{let r=t().requestIdToMessageId,i=r.get(n);if(i!==void 0){let t=new Map(r);t.delete(n),e({requestIdToMessageId:t})}return i},addPendingLocalDeletion:t=>e(e=>{let n=new Set(e.pendingLocalDeletions);return n.add(t),{pendingLocalDeletions:n}}),consumePendingLocalDeletion:n=>{let r=t().pendingLocalDeletions;if(!r.has(n))return!1;let i=new Set(r);return i.delete(n),e({pendingLocalDeletions:i}),!0},setExpandedToolCallId:(t,n)=>e(e=>{let r=new Set(e.expandedToolCallIds);return n?r.add(t):r.delete(t),{expandedToolCallIds:r}}),setExpandedCardId:(t,n)=>e(e=>{let r=new Map(e.expandedCardIds);return r.set(t,n),{expandedCardIds:r}}),setContextWindowUsageForConversation:(t,n)=>e(e=>{let r=new Map(e.contextWindowUsageByConversation);return r.set(t,n),{contextWindowUsageByConversation:r}}),addEphemeralMetaResult:t=>e(e=>({ephemeralMetaResults:[...e.ephemeralMetaResults,t]})),clearEphemeralMetaResults:()=>e(e=>e.ephemeralMetaResults.length===0?e:{ephemeralMetaResults:[]})})));function at(e){return[...new Set([e.id,...e.mergedMessageIds??[]].filter(e=>typeof e==`string`&&e.length>0))]}function U(e){let t=at(e);return e.clientMessageId&&!t.includes(e.clientMessageId)?[...t,e.clientMessageId]:t}function ot(e){if(!e||e.length===0)return 0;let t=new TextEncoder().encode(JSON.stringify(e)).length;return Math.round(t/1024*100)/100}function W(e){return{id:e.id,role:e.role,contentBlocksKb:ot(e.contentBlocks),timestamp:e.timestamp??null,queueStatus:e.queueStatus??null,queuePosition:e.queuePosition??null,toolCallCount:e.toolCalls?.length??0,surfaceCount:e.surfaces?.length??0,attachmentCount:e.attachments?.length??0,textSegmentCount:e.textSegments?.length??0,contentOrderCount:e.contentOrder?.length??0}}function G(e){return{id:e.id,role:e.role,contentBlocksKb:ot(e.contentBlocks),timestamp:e.timestamp??null,toolCallCount:e.toolCalls?.length??0,surfaceCount:e.surfaces?.length??0,attachmentCount:e.attachments?.length??0,textSegmentCount:e.textSegments?.length??0,contentOrderCount:e.contentOrder?.length??0}}function st(e,t=20){return{count:e.length,roleCounts:g(e),queuedCount:e.filter(e=>e.queueStatus===`queued`).length,processingCount:e.filter(e=>e.queueStatus===`processing`).length,first:e[0]?W(e[0]):null,last:e.length>0?W(e[e.length-1]):null,tail:e.slice(-t).map(W)}}function ct(e,t=20){return{count:e.length,roleCounts:g(e),first:e[0]?G(e[0]):null,last:e.length>0?G(e[e.length-1]):null,tail:e.slice(-t).map(G)}}var lt=50,ut=50;function dt(e){let t=e?.messages??[],n=t.map(ae),r=[],i;for(let e=0;e<t.length;e++){let n=t[e];if(!n)continue;n.role===`assistant`&&!n.subagentNotification&&(i=n.id);let a=n.subagentNotification;a&&typeof a==`object`&&typeof a.subagentId==`string`&&r.push({...a,parentMessageId:i})}return{messages:n,hasMore:e?.hasMore??!1,oldestTimestamp:e?.oldestTimestamp??null,oldestMessageId:e?.oldestMessageId||null,seq:e?.seq??null,...r.length>0?{subagentNotifications:r}:{}}}async function ft(e,t){let{data:n,error:r,response:i}=await p({path:{assistant_id:e},query:t,throwOnError:!1});if(ee(i,r,`Failed to fetch history`),!i.ok){h(`history_page_fetch_error`,{assistantId:e,query:t,status:i.status});let n=te(r,i,`Failed to fetch history (HTTP ${i.status})`);throw new ne(i.status,n)}let a=dt(n);return h(`history_page_fetch`,{assistantId:e,query:t,status:i.status,hasMore:a.hasMore,oldestTimestamp:a.oldestTimestamp,oldestMessageId:a.oldestMessageId,seq:a.seq??null,messages:st(a.messages)}),a}async function pt(e,t,n=lt){return ft(e,{conversationId:t,page:`latest`,limit:n})}async function mt(e,t,n,r=ut){return ft(e,{conversationId:t,beforeTimestamp:n,limit:r})}function ht(e,t){let n=[...new Set([...e??[],...t??[]])];return n.length>0?n:void 0}function K(e,t){return!e||e.length===0?t:!t||t.length===0?e:[...e,...t]}function gt(e,t){return!e||e.length===0||t.text===0&&t.attachment===0&&t.toolCall===0&&t.surface===0&&t.thinking===0?e:e.map(e=>{let n=_t(e.type,t);if(n===0||!/^\d+$/.test(e.id))return e;let r=parseInt(e.id,10);return{...e,id:String(r+n)}})}function _t(e,t){return e===`text`?t.text:e===`attachment`?t.attachment:e===`tool`||e===`toolCall`?t.toolCall:e===`surface`?t.surface:e===`thinking`?t.thinking:0}function vt(e,t){return!(e.role!==`assistant`||t.role!==`assistant`||e.isOptimistic||t.isOptimistic||e.isSubagentNotification||t.isSubagentNotification)}function yt(e,t){let n={text:e.textSegments?.length??0,attachment:e.attachments?.length??0,toolCall:e.toolCalls?.length??0,surface:e.surfaces?.length??0,thinking:e.thinkingSegments?.length??0},r=K(e.textSegments,t.textSegments),i=gt(t.contentOrder,n),a=K(e.contentOrder,i),o=K(e.toolCalls,t.toolCalls),s=K(e.surfaces,t.surfaces),c=K(e.attachments,t.attachments),l=K(e.thinkingSegments,t.thinkingSegments),u=e.contentBlocks?[...e.contentBlocks,...t.contentBlocks??[]]:t.contentBlocks,d=ht(e.mergedMessageIds,[t.id,...t.mergedMessageIds??[]].filter(e=>typeof e==`string`&&e.length>0)),f={...e};return r&&(f.textSegments=r),a&&(f.contentOrder=a),o&&(f.toolCalls=o),s&&(f.surfaces=s),c&&(f.attachments=c),l&&(f.thinkingSegments=l),u&&(f.contentBlocks=u),d&&(f.mergedMessageIds=d),f}function bt(e){let t=-1;for(let n=1;n<e.length;n++)if(vt(e[n-1],e[n])){t=n;break}if(t===-1)return e;let n=e.slice(0,t);for(let r=t;r<e.length;r++){let t=e[r],i=n[n.length-1];i&&vt(i,t)?n[n.length-1]=yt(i,t):n.push(t)}return n}var xt=`conversation-history`;function St(e,t){return[xt,e??``,t??``]}function Ct(e){if(!e?.length)return;let t=[];for(let n=e.length-1;n>=0;n--){let r=e[n]?.subagentNotifications;r?.length&&t.push(...r)}return t.length>0?t:void 0}var wt=[];function Tt({assistantId:e,conversationId:t,enabled:n}){let i=a(),s=(0,v.useMemo)(()=>St(e,t),[e,t]),c=o({queryKey:s,queryFn:async({pageParam:n,signal:r})=>{if(!e||!t)throw Error(`Missing assistantId or conversationId`);return n==null?pt(e,t):mt(e,t,n)},initialPageParam:null,getNextPageParam:e=>{if(e.hasMore&&e.oldestTimestamp!=null)return e.oldestTimestamp},enabled:n&&!!e&&!!t,staleTime:0,gcTime:300*1e3,refetchOnMount:!0,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:r}),l=(0,v.useMemo)(()=>{if(!c.data?.pages?.length)return wt;let{pages:e}=c.data;return bt(e.length===1?e[0].messages:(()=>{let t=[];for(let n=e.length-1;n>=0;n--)t.push(...e[n].messages);return t})())},[c.data]),u=(0,v.useMemo)(()=>Ct(c.data?.pages),[c.data]),d=c.data?.pages[0],f=c.data?.pages[c.data.pages.length-1],p=(0,v.useCallback)(async()=>{await i.invalidateQueries({queryKey:s})},[i,s]),ee=(0,v.useCallback)(()=>{i.removeQueries({queryKey:s})},[i,s]),te=(0,v.useCallback)(()=>{c.hasNextPage&&!c.isFetchingNextPage&&c.fetchNextPage()},[c.hasNextPage,c.isFetchingNextPage,c.fetchNextPage]);return{messages:l,latestPage:d,subagentNotifications:u,isLoading:c.isLoading,isSuccess:c.isSuccess,isError:c.isError,error:c.error,hasMore:c.hasNextPage??!1,isFetchingOlderPages:c.isFetchingNextPage,isFetching:c.isFetching,fetchOlderPage:te,invalidate:p,removeCache:ee,latestPageOldestTimestamp:d?.oldestTimestamp??null,oldestLoadedTimestamp:f?.oldestTimestamp??null,dataUpdatedAt:c.dataUpdatedAt}}function Et(e,t){if(t.length===0)return e;let n=new Map;for(let e of t)for(let t of U(e))n.has(t)||n.set(t,e);let r=[],i=new Set;for(let t of e){let e;for(let r of U(t)){let t=n.get(r);if(t){e=t;break}}if(e){i.has(e)||(r.push(e),i.add(e));continue}r.push(t)}for(let e of t)i.has(e)||r.push(e);return r}function Dt(e,t){let{messages:n}=Tt({assistantId:e,conversationId:t,enabled:!!e&&!!t}),r=H.use.liveTurn(),i=H.use.dismissedSurfaceIds();return(0,v.useMemo)(()=>Et(He(n,i),r),[n,r,i])}var Ot=`width=500,height=600`;function q(e){if(!e)return null;let t;try{let n=typeof window>`u`?`http://localhost`:window.location.origin;t=new URL(e,n)}catch{return null}return t.protocol!==`https:`&&t.protocol!==`http:`?null:t}function kt(e){let t=q(e);if(!t)return!1;let n=t.pathname.toLowerCase();return t.searchParams.get(`response_type`)===`code`&&t.searchParams.has(`client_id`)&&t.searchParams.has(`redirect_uri`)||t.searchParams.has(`client_id`)&&t.searchParams.has(`redirect_uri`)&&/oauth|authorize|auth/.test(n)}function At(e){if(typeof window>`u`)return null;let t=q(e);return!t||t.origin!==window.location.origin?null:`${t.pathname}${t.search}${t.hash}`}function jt(e){return q(e)?.href??null}function Mt(e){if(!kt(e))return!1;if(re.isNativePlatform()){let t=jt(e);return t?(se(t),!0):!1}let t=window.open(e,`_blank`,Ot);return t===null?!1:(t.focus(),!0)}function Nt(e){return Mt(e)}function J(e,t,n=`…`){return e.length<=t?e:e.slice(0,t-n.length)+n}function Pt(e){if(!e)return null;let t=e.split(`/`),n=t[t.length-1];return!n||n===`.`?null:n}function Y(e,t){return J(e,t,`...`)}function Ft(e){if(!e)return null;let t=e.replace(/\s+/g,` `).trim().match(/(?:^|&&\s*|\|\|\s*|;\s*)(?:\S*\/)?assistant\s+browser\s+([^\s;&|]+)/i);if(!t)return null;let n=t[1].toLowerCase();return new Set([`navigate`,`click`,`type`,`screenshot`,`snapshot`,`scroll`,`hover`,`select`,`drag`,`wait`,`back`,`forward`,`refresh`,`close`,`tab`,`press_key`,`wait_for`,`extract`,`fill_credential`]).has(n)?n:`unknown`}function X(e,t){let n=e.toLowerCase();return n!==`bash`&&n!==`host_bash`?null:Ft(t)}function It(e){switch(e){case`navigate`:return`Opened a page`;case`click`:return`Clicked on the page`;case`type`:return`Typed on the page`;case`screenshot`:return`Took a screenshot`;case`snapshot`:return`Captured page snapshot`;case`scroll`:return`Scrolled the page`;case`hover`:return`Hovered on the page`;case`select`:return`Selected on the page`;case`drag`:return`Dragged on the page`;case`wait`:return`Waited for the page`;case`back`:return`Went back`;case`forward`:return`Went forward`;case`refresh`:return`Refreshed the page`;case`close`:return`Closed the tab`;case`tab`:return`Switched tabs`;case`press_key`:return`Pressed a key`;case`wait_for`:return`Waited for a condition`;case`extract`:return`Extracted page content`;case`fill_credential`:return`Filled a credential`;case`unknown`:return`Used the browser`}}function Lt(e){switch(e){case`navigate`:return`Opening a page`;case`click`:return`Clicking on the page`;case`type`:return`Typing on the page`;case`screenshot`:return`Taking a screenshot`;case`snapshot`:return`Capturing page snapshot`;case`scroll`:return`Scrolling the page`;case`hover`:return`Hovering on the page`;case`select`:return`Selecting on the page`;case`drag`:return`Dragging on the page`;case`wait`:return`Waiting for the page`;case`back`:return`Going back`;case`forward`:return`Going forward`;case`refresh`:return`Refreshing the page`;case`close`:return`Closing the tab`;case`tab`:return`Switching tabs`;case`press_key`:return`Pressing a key`;case`wait_for`:return`Waiting for a condition`;case`extract`:return`Extracting page content`;case`fill_credential`:return`Filling a credential`;case`unknown`:return`Using the browser`}}function Rt(e){switch(e){case`navigate`:case`back`:case`forward`:case`tab`:return`compass`;case`click`:case`hover`:case`select`:case`drag`:case`scroll`:return`compass`;case`screenshot`:case`snapshot`:return`camera`;case`type`:case`press_key`:case`fill_credential`:return`compass`;case`wait`:case`wait_for`:case`refresh`:case`close`:return`compass`;case`extract`:return`compass`;case`unknown`:return`compass`}}function zt(e,t){let n=e.toLowerCase();if(n===`bash`||n===`host_bash`){let e=t.command??t.cmd;if(typeof e==`string`)return e.replace(/\s+/g,` `).trim()}if(n===`file_read`||n===`host_file_read`||n===`file_write`||n===`host_file_write`||n===`file_edit`||n===`host_file_edit`){let e=t.file_path??t.path??t.filePath;if(typeof e==`string`)return e}if(n===`grep`||n===`glob`){let e=t.pattern??t.query;if(typeof e==`string`)return e}if(n===`web_search`){let e=t.query??t.search;if(typeof e==`string`)return e}return``}function Bt(e,t=``){let n=e.toLowerCase(),r=t.replace(/\s+/g,` `).trim(),i=Pt(r),a=X(e,r);if(a)return It(a);switch(n){case`bash`:case`host_bash`:return r?`Ran \`${Y(r,30)}\``:`Ran a command`;case`file_read`:case`host_file_read`:return i?`Read ${i}`:`Read a file`;case`file_write`:case`host_file_write`:return i?`Wrote ${i}`:`Wrote a file`;case`file_edit`:case`host_file_edit`:return i?`Edited ${i}`:`Edited a file`;case`grep`:return r?`Searched for '${Y(r,25)}'`:`Searched files`;case`glob`:return r?`Searched for ${Y(r,25)}`:`Found files`;case`web_search`:return r?`Searched '${Y(r,25)}'`:`Searched the web`;case`web_fetch`:return`Fetched a webpage`;default:return`Used ${e.replace(/_/g,` `)}`}}function Vt(e,t=``,n){let r=X(e,t);if(r)return Lt(r);if(n){let t=e.toLowerCase();if(t===`app_create`||t===`app_refresh`||t===`app_update`)return n}switch(e.toLowerCase()){case`bash`:case`host_bash`:return`Running a command`;case`file_read`:case`host_file_read`:return`Reading a file`;case`file_write`:case`host_file_write`:return`Writing a file`;case`file_edit`:case`host_file_edit`:return`Editing a file`;case`grep`:return`Searching files`;case`glob`:return`Finding files`;case`web_search`:return`Searching the web`;case`web_fetch`:return`Fetching a webpage`;case`app_create`:return`Building your app`;case`app_refresh`:case`app_update`:return`Refreshing your app`;default:return`Running ${e.replace(/_/g,` `)}`}}function Ht(e){return e.split(/[_-]+/).filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(` `)}function Ut(e,t=``){let n=X(e,t);if(n)return Rt(n);switch(e.toLowerCase()){case`bash`:case`host_bash`:return`terminal`;case`file_read`:case`host_file_read`:return`file-text`;case`file_write`:case`host_file_write`:return`file-plus`;case`file_edit`:case`host_file_edit`:return`pencil`;case`grep`:case`glob`:case`web_search`:return`search`;case`web_fetch`:return`globe`;default:return`wrench`}}var Wt=80;function Z(e,...t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim().length>0)return t}return``}function Gt(e){if(!e)return``;let t=e.replace(/\/+$/,``),n=t.lastIndexOf(`/`);return n===-1?t:t.slice(n+1)}function Kt(e){if(!e.startsWith(`mcp__`))return null;let t=e.slice(5),n=t.indexOf(`__`);if(n===-1)return null;let r=t.slice(0,n),i=t.slice(n+2);return!r||!i?null:{serverName:r,toolMethod:i}}function Q(e,t){let n=t&&typeof t==`object`?t:{},r=e.toLowerCase(),i=Z(n,`activity`,`reason`),a=Kt(e);if(a)return{title:`Using ${a.serverName}`,info:a.toolMethod,activity:i,iconName:`plug`};switch(r){case`bash`:case`host_bash`:return{title:`Working`,info:J(Z(n,`command`,`cmd`).replace(/\s+/g,` `).trim(),Wt),activity:i,iconName:`code`};case`str_replace_editor`:case`text_editor`:{let e=Z(n,`command`).toLowerCase(),t=Gt(Z(n,`path`,`file_path`,`filePath`));return e===`view`?{title:`Reading`,info:t,activity:i,iconName:`file`}:{title:`Editing`,info:t,activity:i,iconName:`pen`}}case`computer`:return{title:`Using computer`,info:Z(n,`action`),activity:i,iconName:`monitor`};case`skill_execute`:{let e=Z(n,`tool`);if(e){let t=n.input,r=Q(e,t);return{...r,activity:i||r.activity}}return{title:`Using a skill`,info:Z(n,`skill`,`name`,`skillName`),activity:i,iconName:`sparkle`}}case`skill`:case`skill_invoke`:case`skill_load`:return{title:`Using a skill`,info:Z(n,`skill`,`name`,`skillName`),activity:i,iconName:`sparkle`};case`subagent_spawn`:return{title:`Spawning subagent`,info:Z(n,`label`,`objective`,`task`),activity:i,iconName:`user-plus`};default:return{title:e?`Running ${Ht(e)}`:`Running tool`,info:``,activity:i,iconName:`bolt`}}}function qt(e){return Q(e.name,e.input)}var Jt=[{open:`<thinking>`,close:`</thinking>`},{open:`<think>`,close:`</think>`}];function Yt(e){return Jt.some(t=>e.includes(t.open))}function Xt(e){if(!Yt(e))return null;let t=[],n=e=>{e.trim()&&t.push({type:`text`,text:e})},r=e=>{let n=e.trim();n&&t.push({type:`thinking`,thinking:n})},i=0;for(;;){let a=-1,o;for(let t of Jt){let n=e.indexOf(t.open,i);n!==-1&&(a===-1||n<a)&&(a=n,o=t)}if(!o)break;n(e.slice(i,a));let s=a+o.open.length,c=e.indexOf(o.close,s);if(c===-1)return r(e.slice(s)),t;r(e.slice(s,c)),i=c+o.close.length}return n(e.slice(i)),t}function Zt(e){return typeof e.id==`string`&&e.id.length>0}function Qt(e){return e.some(e=>e.type===`text`&&Yt(e.text))?e.flatMap(e=>{let t=e.type===`text`?Xt(e.text):null;return t?t.map(e=>e.type===`thinking`?{type:`thinking`,thinking:e.thinking}:{type:`text`,text:e.text}):[e]}):e}function $t(e,t){let n=t?.splitInlineThinking?Qt(e):e,r=[],i=null,a=()=>(i||(i={type:`activity`,items:[]},r.push(i)),i);for(let e of n)if(e.type===`thinking`){let t=a(),n=t.items[t.items.length-1];n?.type===`thinking`?(n.thinking=n.thinking?`${n.thinking}\n${e.thinking}`:e.thinking,e.startedAt!=null&&(n.startedAt=n.startedAt==null?e.startedAt:Math.min(n.startedAt,e.startedAt)),e.completedAt!=null&&(n.completedAt=n.completedAt==null?e.completedAt:Math.max(n.completedAt,e.completedAt))):t.items.push({type:`thinking`,thinking:e.thinking,startedAt:e.startedAt,completedAt:e.completedAt})}else if(e.type===`tool_use`){if(!Zt(e.toolCall))continue;a().items.push({type:`tool_use`,toolCall:e.toolCall})}else (e.type===`text`||e.type===`surface`)&&(i=null,r.push(e));return r}function en(e){return!e.pendingConfirmation&&(e.name===`ui_show`||e.name===`ui_update`||e.name===`ui_dismiss`)}function tn(e){if(e.name===`subagent_spawn`)return!0;if(e.name!==`skill_execute`)return!1;let t=e.input;return typeof t!=`object`||!t?!1:t.tool===`subagent_spawn`}function nn(e){if(e.name===`run_workflow`)return!0;if(e.name!==`skill_execute`)return!1;let t=e.input;return typeof t!=`object`||!t?!1:t.tool===`run_workflow`}var $=s();function rn(e){return e!=null&&(e.startsWith(`vellum://workspace/`)||e.startsWith(`vellum://host/`))}function an(e){return e.startsWith(`vellum://workspace/`)||e.startsWith(`vellum://host/`)?e:ce(e)}function on({href:e,children:t}){return(0,$.jsx)(`a`,{href:e,target:`_blank`,rel:kt(e)?void 0:`noopener noreferrer`,onClick:t=>{Nt(e)&&t.preventDefault()},className:`text-[var(--system-positive-strong)] underline hover:opacity-80`,children:t})}var sn=(0,v.memo)(function({content:e,className:t,hardLineBreaks:n,onVellumLinkClick:r}){return(0,$.jsx)(l,{content:e,className:t,hardLineBreaks:n,linkComponent:(0,v.useCallback)(({href:e,children:t})=>r&&rn(e)?(0,$.jsx)(`a`,{href:e,onClick:t=>{t.preventDefault(),e&&r(e,t.currentTarget.textContent??``)},className:`text-[var(--system-positive-strong)] underline hover:opacity-80 cursor-pointer`,children:t}):(0,$.jsx)(on,{href:e,children:t}),[r]),urlTransform:an})}),cn=new Set([`low`,`medium`,`high`]);function ln(e){let t=e?.toLowerCase();return t&&cn.has(t)?t:`medium`}function un(e){switch(e?.toLowerCase()){case`low`:return{bg:`bg-[var(--system-positive-strong)]`,text:`text-white`,label:`Low`};case`medium`:return{bg:`bg-[var(--system-mid-strong)]`,text:`text-black`,label:`Medium`};case`high`:return{bg:`bg-[var(--system-negative-strong)]`,text:`text-white`,label:`High`};case`workspace`:return{bg:`bg-[var(--surface-lift)]`,text:`text-[var(--content-secondary)]`,border:`border border-[var(--border-element)]`,label:`Workspace`};default:return{bg:`bg-[var(--content-secondary)]`,text:`text-white`,label:e??`Unknown`}}}function dn(e){switch(e?.toLowerCase()){case`low`:return{bg:`bg-[var(--system-positive-weak)]`,text:`text-[var(--system-positive-strong)]`,label:`Low`};case`medium`:return{bg:`bg-[var(--system-mid-weak)]`,text:`text-[var(--system-mid-strong)]`,label:`Medium`};case`high`:return{bg:`bg-[var(--system-negative-weak)]`,text:`text-[var(--system-negative-strong)]`,label:`High`};case`workspace`:return{bg:`bg-[var(--surface-lift)]`,text:`text-[var(--content-secondary)]`,label:`Workspace`};default:return{bg:`bg-[var(--surface-lift)]`,text:`text-[var(--content-secondary)]`,label:e?e.charAt(0).toUpperCase()+e.slice(1):`Unknown`}}}var fn={unknown:2,low:0,medium:1,high:2},pn={none:-1,low:0,medium:1,high:2};function mn(e,t,n){return e?.toLowerCase()!==`auto`||!n?!0:(fn[(t??``).toLowerCase()]??-1)<=(pn[n.toLowerCase()]??-1)}function hn(e){switch(e){case`trust_rule_allowed`:return`· Auto-approved · Trust rule matched`;case`sandbox_auto_approve`:return null;case`platform_auto_approve`:return`· Auto-approved · Platform session`;default:return null}}function gn(e,t){return e===`sandbox_auto_approve`?{displayLevel:`workspace`,inherentRisk:t}:{displayLevel:t??`unknown`}}function _n({level:e,className:t,onClick:n}){if(!e)return null;let{bg:r,text:i,label:a}=dn(e),o=_(`inline-flex items-center justify-center rounded-[100px] px-[6px] pt-[2px] pb-[3px]`,r,t);return n?(0,$.jsx)(`button`,{type:`button`,"data-testid":`risk-badge`,"data-risk-level":e,className:_(o,`cursor-pointer hover:opacity-80`),onClick:e=>{e.stopPropagation(),n()},children:(0,$.jsx)(c,{variant:`label-medium-default`,className:i,children:a})}):(0,$.jsx)(`span`,{"data-testid":`risk-badge`,"data-risk-level":e,className:o,children:(0,$.jsx)(c,{variant:`label-medium-default`,className:i,children:a})})}export{U as A,ze as B,Dt as C,bt as D,Tt as E,tt as F,Fe as G,P as H,R as I,me as J,M as K,Ke as L,B as M,et as N,ct as O,nt as P,le as Q,Ve as R,Mt as S,St as T,Le as U,Re as V,Ie as W,de as X,he as Y,ue as Z,Bt as _,ln as a,jt as b,$t as c,en as d,qt as f,Ut as g,Vt as h,un as i,H as j,at as k,nn as l,zt as m,gn as n,mn as o,Q as p,pe as q,hn as r,sn as s,_n as t,tn as u,Ht as v,Et as w,At as x,J as y,F as z};
@@ -1 +1 @@
1
- import{t as e}from"./is-electron-C_ZTVhv8.js";var t=e=>e,n=(e,t)=>`${e}/${t}`,r=t(`/assistant/logs/usage`),i=`message`,a={assistant:t(`/assistant`),about:t(`/assistant/about`),bundleConfirm:t(`/assistant/bundle/confirm`),remotePair:t(`/assistant/pair`),quickInput:t(`/assistant/quick-input`),conversations:t(`/assistant/conversations`),conversation:e=>n(t(`/assistant/conversations`),e),conversationAtMessage:(e,r)=>`${n(t(`/assistant/conversations`),e)}?${i}=${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`),trace:t(`/assistant/logs/trace`),usage:r,usageForSchedule:e=>`${r}?${new URLSearchParams({range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,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:{hosting:t(`/assistant/onboarding/hosting`),apiKey:t(`/assistant/onboarding/api-key`),privacy:t(`/assistant/onboarding/privacy`),prechat:t(`/assistant/onboarding/prechat`),hatching:t(`/assistant/onboarding/hatching`),research:t(`/assistant/onboarding/research`)},home:t(`/assistant/home`),identity:t(`/assistant/identity`),plugins:t(`/assistant/plugins`),plugin:e=>n(t(`/assistant/plugins`),e),skills:t(`/assistant/skills`),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`),contacts:{root:t(`/assistant/contacts`)},settings:{root:t(`/assistant/settings`),general:t(`/assistant/settings/general`),ai:t(`/assistant/settings/ai`),integrations:t(`/assistant/settings/integrations`),notifications:t(`/assistant/settings/notifications`),keyboardShortcuts:t(`/assistant/settings/keyboard-shortcuts`),sounds:t(`/assistant/settings/sounds`),voice:t(`/assistant/settings/voice`),devices:t(`/assistant/settings/devices`),privacy:t(`/assistant/settings/privacy`),archive:t(`/assistant/settings/archive`),bookmarks:t(`/assistant/settings/bookmarks`),billing:t(`/assistant/settings/billing`),community:t(`/assistant/settings/community`),debug:t(`/assistant/settings/debug`),developer:t(`/assistant/settings/developer`),mcp:t(`/assistant/settings/mcp`),advanced:t(`/assistant/settings/advanced`),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`)}}},o=`vellum.ai`;function s(e){return c(e)}function c(e){return`https://${o}${e}`}function l(){return e()?`${window.__VELLUM_CONFIG__?.webUrl??window.location.origin}${a.admin.root}`:a.admin.root}export{a,s as i,l as n,c as r,i as t};
1
+ import{t as e}from"./is-electron-URCUw74P.js";var t=e=>e,n=(e,t)=>`${e}/${t}`,r=t(`/assistant/logs/usage`),i=`message`,a={assistant:t(`/assistant`),about:t(`/assistant/about`),bundleConfirm:t(`/assistant/bundle/confirm`),remotePair:t(`/assistant/pair`),quickInput:t(`/assistant/quick-input`),conversations:t(`/assistant/conversations`),conversation:e=>n(t(`/assistant/conversations`),e),conversationAtMessage:(e,r)=>`${n(t(`/assistant/conversations`),e)}?${i}=${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`),trace:t(`/assistant/logs/trace`),usage:r,usageForSchedule:e=>`${r}?${new URLSearchParams({range:`7d`,groupBy:`schedule`,scheduleId:e}).toString()}`,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:{hosting:t(`/assistant/onboarding/hosting`),apiKey:t(`/assistant/onboarding/api-key`),privacy:t(`/assistant/onboarding/privacy`),prechat:t(`/assistant/onboarding/prechat`),hatching:t(`/assistant/onboarding/hatching`),research:t(`/assistant/onboarding/research`)},home:t(`/assistant/home`),identity:t(`/assistant/identity`),plugins:t(`/assistant/plugins`),plugin:e=>n(t(`/assistant/plugins`),e),skills:t(`/assistant/skills`),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`),contacts:{root:t(`/assistant/contacts`)},settings:{root:t(`/assistant/settings`),general:t(`/assistant/settings/general`),ai:t(`/assistant/settings/ai`),integrations:t(`/assistant/settings/integrations`),notifications:t(`/assistant/settings/notifications`),keyboardShortcuts:t(`/assistant/settings/keyboard-shortcuts`),sounds:t(`/assistant/settings/sounds`),voice:t(`/assistant/settings/voice`),devices:t(`/assistant/settings/devices`),privacy:t(`/assistant/settings/privacy`),archive:t(`/assistant/settings/archive`),bookmarks:t(`/assistant/settings/bookmarks`),billing:t(`/assistant/settings/billing`),community:t(`/assistant/settings/community`),debug:t(`/assistant/settings/debug`),developer:t(`/assistant/settings/developer`),mcp:t(`/assistant/settings/mcp`),advanced:t(`/assistant/settings/advanced`),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`)}}},o=`vellum.ai`;function s(e){return c(e)}function c(e){return`https://${o}${e}`}function l(){return e()?`${window.__VELLUM_CONFIG__?.webUrl??window.location.origin}${a.admin.root}`:a.admin.root}export{a,s as i,l as n,c as r,i as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BlMXrA59.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-D8roAprb.js";var t=e(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]);export{t};
@@ -1 +1 @@
1
- import{An as e}from"./sdk.gen-1aYqVbMj.js";import{n as t,r as n,t as r}from"./api-errors-CveHbhgb.js";function i(e){let t=e.llm?.profiles;if(!t)return{};let n={};for(let[e,r]of Object.entries(t)){if(!r)continue;let t=r.label?.trim()||e,i=r.description?.trim()||void 0;n[e]={id:e,displayName:t,...i?{description:i}:{}}}return n}function a(e){let t=e,n=t.description??``;return{...e,description:n,cadenceDescription:t.cadenceDescription??n}}async function o(i){let{data:o,error:s,response:c}=await e({path:{assistant_id:i},throwOnError:!1});if(t(c,s,`Failed to load schedules.`),!c.ok)throw new r(c.status,n(s,c,`Failed to load schedules.`));return(o?.schedules??[]).map(a)}export{i as n,o as t};
1
+ import{An as e}from"./sdk.gen-CC1iYdd0.js";import{n as t,r as n,t as r}from"./api-errors-B-g6gvNv.js";function i(e){let t=e.llm?.profiles;if(!t)return{};let n={};for(let[e,r]of Object.entries(t)){if(!r)continue;let t=r.label?.trim()||e,i=r.description?.trim()||void 0;n[e]={id:e,displayName:t,...i?{description:i}:{}}}return n}function a(e){let t=e,n=t.description??``;return{...e,description:n,cadenceDescription:t.cadenceDescription??n}}async function o(i){let{data:o,error:s,response:c}=await e({path:{assistant_id:i},throwOnError:!1});if(t(c,s,`Failed to load schedules.`),!c.ok)throw new r(c.status,n(s,c,`Failed to load schedules.`));return(o?.schedules??[]).map(a)}export{i as n,o as t};