@vellumai/web 0.8.7 → 0.8.8

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 (648) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{QueryClientProvider-DP1e6db6.js → QueryClientProvider-DBAeGN3q.js} +1 -1
  3. package/dist/assets/about-page-C4tN0hSY.js +1 -0
  4. package/dist/assets/account-page-e-4zB_8t.js +1 -0
  5. package/dist/assets/{account-shell-D89t6_Jb.js → account-shell-BZu7oVl3.js} +1 -1
  6. package/dist/assets/add-credits-modal-p0gkX1yC.js +1 -0
  7. package/dist/assets/advanced-page-Du0vGXNL.js +1 -0
  8. package/dist/assets/ai-page-BQOcmKeW.js +1 -0
  9. package/dist/assets/{angular-html-e7Q9Y5Gf.js → angular-html-CDXMmzLv.js} +1 -1
  10. package/dist/assets/{angular-ts-BP7VFCBR.js → angular-ts-CaUHVMjx.js} +1 -1
  11. package/dist/assets/api-8hqpGaif.js +39 -0
  12. package/dist/assets/api-errors-DhNZwQy5.js +1 -0
  13. package/dist/assets/api-key-screen-Bgk6XGC1.js +1 -0
  14. package/dist/assets/{apl-DwI9Wj1u.js → apl-BTRFCz7X.js} +1 -1
  15. package/dist/assets/{app-html-cache-B6cw162I.js → app-html-cache-BsFOfI0R.js} +1 -1
  16. package/dist/assets/archive-page-DhDeJH4l.js +1 -0
  17. package/dist/assets/archive-yWA8_b2E.js +1 -0
  18. package/dist/assets/arrow-up-Cev-d0qQ.js +1 -0
  19. package/dist/assets/assistant-feature-flag-store-CNdFPRBD.js +1 -0
  20. package/dist/assets/assistant-identity-store-Y4grVs1H.js +1 -0
  21. package/dist/assets/assistant-status-panel-C3CvCBVl.js +1 -0
  22. package/dist/assets/{astro-BCmlqefZ.js → astro-CKyX7s7R.js} +1 -1
  23. package/dist/assets/auth-store-CYbo7naZ.js +1 -0
  24. package/dist/assets/avatar-api-BfDoaCjw.js +1 -0
  25. package/dist/assets/bell-BFRXSoMR.js +1 -0
  26. package/dist/assets/billing-page-CyTcQ9ki.js +34 -0
  27. package/dist/assets/{blade-C_oa1rmO.js → blade-Rzz0TE8c.js} +1 -1
  28. package/dist/assets/{bsl-MxsMKDUZ.js → bsl-DpFuAvE8.js} +1 -1
  29. package/dist/assets/bug-wSdnBKWO.js +1 -0
  30. package/dist/assets/{button-ClCfFgUi.js → button-Cs9tc8OR.js} +1 -1
  31. package/dist/assets/{cairo-4CIrzX_p.js → cairo-Bobk4atY.js} +1 -1
  32. package/dist/assets/{calendar-ClcXPhg5.js → calendar-xwiYi6y2.js} +1 -1
  33. package/dist/assets/capture-error-1Tr5aMfq.js +1 -0
  34. package/dist/assets/{card-BPyEFYCf.js → card-BcKGvsaa.js} +1 -1
  35. package/dist/assets/check-DqeyrftF.js +1 -0
  36. package/dist/assets/{checkbox-8ce6mjOk.js → checkbox-hJlRqWtn.js} +1 -1
  37. package/dist/assets/chevron-right-CJ0Oykrn.js +1 -0
  38. package/dist/assets/{chevron-up-DQhwayvc.js → chevron-up-C-4xJEr7.js} +1 -1
  39. package/dist/assets/chunk-5KNZJZUH-BpLAEZ0-.js +4 -0
  40. package/dist/assets/{cobol-ClCfxb2U.js → cobol-1CNEp2gA.js} +1 -1
  41. package/dist/assets/{coffee-waI6gGUD.js → coffee-CCurbO7Q.js} +1 -1
  42. package/dist/assets/command-palette-CTF-tqv7.js +1 -0
  43. package/dist/assets/community-page-BWc9-V5m.js +1 -0
  44. package/dist/assets/{confirm-dialog-BGK9Zfu-.js → confirm-dialog-DavdF-L4.js} +1 -1
  45. package/dist/assets/connect-page-DLP-KRIF.js +1 -0
  46. package/dist/assets/contacts-gateway-BF6L_WJp.js +1 -0
  47. package/dist/assets/contacts-page-route-ziTjDj3t.js +1 -0
  48. package/dist/assets/conversation-store-D8-qWog8.js +1 -0
  49. package/dist/assets/{cpp-CCQmmJ0h.js → cpp-D8F2mhyx.js} +1 -1
  50. package/dist/assets/{create-selectors-CNBhdpCN.js → create-selectors-LbkU9b0a.js} +1 -1
  51. package/dist/assets/{createLucideIcon-BAqBudC8.js → createLucideIcon-CSvzx8tc.js} +1 -1
  52. package/dist/assets/{createLucideIcon-B1Lebfcn.js → createLucideIcon-D8wUFCt3.js} +1 -1
  53. package/dist/assets/{crystal-DB9hO8um.js → crystal-BV5GbE2n.js} +1 -1
  54. package/dist/assets/danger-zone-redirect-page-BlS6Bao4.js +1 -0
  55. package/dist/assets/debug-page-B38HF3wu.js +3 -0
  56. package/dist/assets/deploy-dialogs-Ddx6WsXp.js +1 -0
  57. package/dist/assets/{detail-card-akwfTEr9.js → detail-card-Y8InXOgy.js} +1 -1
  58. package/dist/assets/developer-page-CVcwOCG9.js +1 -0
  59. package/dist/assets/device-settings-C07QvMzm.js +1 -0
  60. package/dist/assets/devices-page-4yNwXw0J.js +1 -0
  61. package/dist/assets/{dist-CMQ63vRL.js → dist-3bWmqQYy.js} +1 -1
  62. package/dist/assets/{dist-DrxUCrOq.js → dist-Cb2Epurm.js} +1 -1
  63. package/dist/assets/{dist-DBf_097z.js → dist-Ck9KSeuV.js} +3 -3
  64. package/dist/assets/document-viewer-page-BZqF90o0.js +1 -0
  65. package/dist/assets/{dollar-sign-C0LV31Sq.js → dollar-sign-D_9hooHL.js} +1 -1
  66. package/dist/assets/{domain-field-4zEEJoAw.js → domain-field-CyNgwvDW.js} +1 -1
  67. package/dist/assets/{dropdown-B1HIMQEV.js → dropdown-PPtOL9bp.js} +1 -1
  68. package/dist/assets/earn-credits-modal-BfVEDIqn.js +1 -0
  69. package/dist/assets/{edge-CETRZUcp.js → edge-wZlHrIuI.js} +1 -1
  70. package/dist/assets/edit-chat-session-Bn0bAlP1.js +1 -0
  71. package/dist/assets/effective-timezone-CJWCpcyG.js +1 -0
  72. package/dist/assets/{elixir-CN6m0Ao0.js → elixir-CxYq-rkj.js} +1 -1
  73. package/dist/assets/{ellipsis-vertical-m9z0V1U7.js → ellipsis-vertical-f27t2xXb.js} +1 -1
  74. package/dist/assets/{elm-BDWy6048.js → elm-BgDZWS-i.js} +1 -1
  75. package/dist/assets/emails-page-VM8fJ5kb.js +1 -0
  76. package/dist/assets/{erb-BUWfCQdK.js → erb-DBocu5OY.js} +1 -1
  77. package/dist/assets/{erlang-DeG0-QwJ.js → erlang-Dd9A6Ts8.js} +1 -1
  78. package/dist/assets/esm-B9MFZJ_e.js +2 -0
  79. package/dist/assets/esm-BAXpcEfg.js +2 -0
  80. package/dist/assets/{esm-BXX1q_EH.js → esm-BBKnACgF.js} +2 -2
  81. package/dist/assets/esm-BesMJi2r.js +2 -0
  82. package/dist/assets/esm-Dlx5ghIf.js +2 -0
  83. package/dist/assets/{external-link-dAVFCT-x.js → external-link-CcV79Arv.js} +1 -1
  84. package/dist/assets/feature-flag-catalog-CRgdQmMF.js +1 -0
  85. package/dist/assets/{file-markdown-C_CDJ8On.js → file-markdown-DjJ2NSmS.js} +1 -1
  86. package/dist/assets/{fortran-fixed-form-CK5VRJNd.js → fortran-fixed-form-DMrzopcc.js} +1 -1
  87. package/dist/assets/{fsharp-TVVgzHWp.js → fsharp-C6m4Hy9y.js} +1 -1
  88. package/dist/assets/gateway-session-CaFk8wfN.js +1 -0
  89. package/dist/assets/{gdresource-DiUcyewI.js → gdresource-YKD2wsBt.js} +1 -1
  90. package/dist/assets/general-page-m_m-DrX4.js +1 -0
  91. package/dist/assets/{git-commit-CfOruFrg.js → git-commit-D3W81laO.js} +1 -1
  92. package/dist/assets/{git-rebase-DVfXzZgT.js → git-rebase-D7A-ZIs_.js} +1 -1
  93. package/dist/assets/{glimmer-js-D_KYXH1l.js → glimmer-js-Kj1yb8GI.js} +1 -1
  94. package/dist/assets/{glimmer-ts-rX-yI_50.js → glimmer-ts-CMle0DS9.js} +1 -1
  95. package/dist/assets/{globe-BylK8Ede.js → globe-B6unPYdp.js} +1 -1
  96. package/dist/assets/{glsl-Bk5GBs9i.js → glsl-CGs04uf3.js} +1 -1
  97. package/dist/assets/google-logo-NlVU0R23.js +1 -0
  98. package/dist/assets/{graphql-CYihpPzI.js → graphql-DTpeHwUI.js} +1 -1
  99. package/dist/assets/{hack-D7vPOOKP.js → hack-DCR-U-qQ.js} +1 -1
  100. package/dist/assets/{haml-Cq6p2VV6.js → haml-Cp_ZrdH-.js} +1 -1
  101. package/dist/assets/{handlebars-BMWyPVCo.js → handlebars-DTIya8Eo.js} +1 -1
  102. package/dist/assets/hard-drive-C5ssi802.js +1 -0
  103. package/dist/assets/hatching-screen-CI8iOd8-.js +1 -0
  104. package/dist/assets/home-page-route-ePg1Cu2z.js +1 -0
  105. package/dist/assets/{hosting-screen-B7vnlrdx.js → hosting-screen-CA6XnVWn.js} +1 -1
  106. package/dist/assets/{html-0Gesqw-D.js → html-CCPUpDrQ.js} +1 -1
  107. package/dist/assets/{html-derivative-SbSqYEHY.js → html-derivative-CoL1ACif.js} +1 -1
  108. package/dist/assets/{http-C0YA5Ah8.js → http-BjpN3wdH.js} +1 -1
  109. package/dist/assets/{hurl-DUL8X9Rx.js → hurl-BHqN3hsl.js} +1 -1
  110. package/dist/assets/{hxml-40zZ1t4x.js → hxml-CthMTwgY.js} +1 -1
  111. package/dist/assets/identity-page-route-BcE8OAJ6.js +1 -0
  112. package/dist/assets/impersonate-version-flag-D_S9-Z77.js +1 -0
  113. package/dist/assets/index-Cb930VA2.css +2 -0
  114. package/dist/assets/index-DUwiZuxe.js +124 -0
  115. package/dist/assets/{input-D3ItuUML.js → input-DwAJUlac.js} +1 -1
  116. package/dist/assets/inspect-page-CsvH5Rih.js +2 -0
  117. package/dist/assets/install-OHIUtZSu.js +1 -0
  118. package/dist/assets/integrations-page-B54hIoCi.js +1 -0
  119. package/dist/assets/intelligence-layout-Onjx6_Xb.js +1 -0
  120. package/dist/assets/is-electron-1CyUiqR4.js +1 -0
  121. package/dist/assets/{jinja-BVqbVU68.js → jinja-Bn3xB2ml.js} +1 -1
  122. package/dist/assets/{jison-xwFSCLKt.js → jison-BX4oePNj.js} +1 -1
  123. package/dist/assets/{julia-DdLFwKHG.js → julia-DU_-trts.js} +1 -1
  124. package/dist/assets/{just-C2nSWwTJ.js → just-CyokZPsE.js} +1 -1
  125. package/dist/assets/{latex-DQ-PIViI.js → latex-CHvXrGPz.js} +1 -1
  126. package/dist/assets/{lib-DHNpmqO3.js → lib-h5KT63h9.js} +1 -1
  127. package/dist/assets/library-detail-page-PP_bf3mt.js +1 -0
  128. package/dist/assets/library-page-Cg1IA3a6.js +1 -0
  129. package/dist/assets/{link-2-Diy8IM6e.js → link-2-B0QONFsy.js} +1 -1
  130. package/dist/assets/{liquid-DMN0MxFW.js → liquid-Bs4Sb-po.js} +1 -1
  131. package/dist/assets/llm-dimension-DPVignMk.js +1 -0
  132. package/dist/assets/loader-circle-FEkI0Am4.js +1 -0
  133. package/dist/assets/login-flow-BbsypWKa.js +1 -0
  134. package/dist/assets/login-page-BVX4fr6R.js +1 -0
  135. package/dist/assets/logout-page-BkzePxva.js +1 -0
  136. package/dist/assets/logs-layout-Cs8hHTTu.js +1 -0
  137. package/dist/assets/{lua-OvVIPbKk.js → lua-Dlulix5z.js} +1 -1
  138. package/dist/assets/{marko-tY59QFbN.js → marko-BKY8xXbp.js} +1 -1
  139. package/dist/assets/{mdc-BDW020Pz.js → mdc-DUJqLRSQ.js} +1 -1
  140. package/dist/assets/memory-router-playground-page-4uw1uIhg.js +3 -0
  141. package/dist/assets/{menu-CSSUEe4d.js → menu-0h93UDZw.js} +1 -1
  142. package/dist/assets/minimize-2-H-zinYcX.js +1 -0
  143. package/dist/assets/{misc-C66f1jHd.js → misc-BllImtEn.js} +1 -1
  144. package/dist/assets/{mobile-sidebar-drawer-DDDsJtIP.js → mobile-sidebar-drawer-CSQF2rSV.js} +1 -1
  145. package/dist/assets/{modal-DnazB3IX.js → modal-C7CS3Y_X.js} +1 -1
  146. package/dist/assets/native-biometric-B4t4zElu.js +6 -0
  147. package/dist/assets/{native-file-CiPiCLx5.js → native-file-C2WSS7-h.js} +2 -2
  148. package/dist/assets/{nextflow-B1xq2O8L.js → nextflow-7_68OVU_.js} +1 -1
  149. package/dist/assets/{nginx-DtkpnFEQ.js → nginx-eipJu1bl.js} +1 -1
  150. package/dist/assets/{nim-CzTHLol-.js → nim-CYnL-Wir.js} +1 -1
  151. package/dist/assets/{notice-BD9CxrUF.js → notice-BWm2kHlI.js} +1 -1
  152. package/dist/assets/notifications-page-DRppz7Ms.js +1 -0
  153. package/dist/assets/{oauth-complete-page-DMXoApPv.js → oauth-complete-page-aT6QAfCd.js} +2 -2
  154. package/dist/assets/{oauth-popup-complete-page-BQ1l7eNw.js → oauth-popup-complete-page-ClfKIV61.js} +2 -2
  155. package/dist/assets/{octagon-x-BDjrCKCI.js → octagon-x-Bze4QGjG.js} +1 -1
  156. package/dist/assets/onboarding-layout-DMOume9Z.js +1 -0
  157. package/dist/assets/{page-shell-h1ccSMCk.js → page-shell-C4yGVVNa.js} +1 -1
  158. package/dist/assets/{panel-item-D-eNLUtf.js → panel-item-BPosLg5Y.js} +1 -1
  159. package/dist/assets/password-reset-page-CugjFViT.js +1 -0
  160. package/dist/assets/pcm-downsample-worklet-CwNZrVLe.js +1 -0
  161. package/dist/assets/{pdf-CVDqR2tF.js → pdf-BbxrOchE.js} +1 -1
  162. package/dist/assets/{pencil-CwqXcyAU.js → pencil-CESg1M7c.js} +1 -1
  163. package/dist/assets/{perl-B4xHwQjG.js → perl-D0xJm_ah.js} +1 -1
  164. package/dist/assets/{php-DT-qH75v.js → php-DNtH2WpS.js} +1 -1
  165. package/dist/assets/platform-loopback-page-DSAaBS5p.js +1 -0
  166. package/dist/assets/plugins-page-CYcKA2Ai.js +1 -0
  167. package/dist/assets/{portal-container-BfngoKcF.js → portal-container-CKtYcZfP.js} +1 -1
  168. package/dist/assets/pre-chat-flow-BLHHoHka.js +1 -0
  169. package/dist/assets/privacy-page-HiOgrDR9.js +1 -0
  170. package/dist/assets/privacy-screen-Ca0oGFo0.js +1 -0
  171. package/dist/assets/{progress-bar-DAf2e6k7.js → progress-bar-CgQMQ_UR.js} +1 -1
  172. package/dist/assets/provider-callback-page-DpGReURP.js +1 -0
  173. package/dist/assets/provider-key-DiyETKhK.js +1 -0
  174. package/dist/assets/provider-signup-page-BpqjcKpY.js +1 -0
  175. package/dist/assets/{pug-9GW60ez3.js → pug-DEPEeomQ.js} +1 -1
  176. package/dist/assets/{qml-bVARLFyV.js → qml-C9mVjGBN.js} +1 -1
  177. package/dist/assets/query-tags-yOSQTht4.js +1 -0
  178. package/dist/assets/{razor-X0suMNF3.js → razor-Cyg4V1EK.js} +1 -1
  179. package/dist/assets/react-query.gen-CfXF72qo.js +1 -0
  180. package/dist/assets/resize-errors-C_vO4oid.js +1 -0
  181. package/dist/assets/routes-C-DwSCj0.js +1 -0
  182. package/dist/assets/{rst-D-lNIQCa.js → rst-BiUNp2Fv.js} +1 -1
  183. package/dist/assets/{ruby-26UZxWDm.js → ruby-Bddxezn1.js} +1 -1
  184. package/dist/assets/{sas-CBE_UuH6.js → sas-DAUEkM7Z.js} +1 -1
  185. package/dist/assets/{save-D3FGsinv.js → save-CBzZvuPl.js} +1 -1
  186. package/dist/assets/schedules-mjx6ouZ2.js +1 -0
  187. package/dist/assets/schedules-page-zyXnmD3U.js +1 -0
  188. package/dist/assets/{scss-ClgdEoXG.js → scss-BlEtTolU.js} +1 -1
  189. package/dist/assets/{sdk.gen-1S-e52M3.js → sdk.gen-BO4vbMAj.js} +1 -1
  190. package/dist/assets/sdk.gen-up8j0_uF.js +6 -0
  191. package/dist/assets/selection-store-BCKoLRDh.js +1 -0
  192. package/dist/assets/settings-layout-Bsi8NeES.js +1 -0
  193. package/dist/assets/{shaderlab-mLnpMpN3.js → shaderlab-BH1Q2CVQ.js} +1 -1
  194. package/dist/assets/share-feedback-modal-BgfMO7ED.js +1 -0
  195. package/dist/assets/{shellsession-BKKk1SwW.js → shellsession-BdTXj0Sh.js} +1 -1
  196. package/dist/assets/sidebar-tree-D9JFk5pQ.js +1 -0
  197. package/dist/assets/signup-page-CI7xziFt.js +1 -0
  198. package/dist/assets/skills-page-DrpHzObX.js +1 -0
  199. package/dist/assets/sounds-page-Dw_ASs77.js +1 -0
  200. package/dist/assets/{soy-CXP3FecH.js → soy-B-FcVSYk.js} +1 -1
  201. package/dist/assets/{sparql-tQHB50VD.js → sparql-BjDARHNL.js} +1 -1
  202. package/dist/assets/{src-DDKMtkUH.js → src-Bah0_lDG.js} +2 -2
  203. package/dist/assets/stat-square-CMFH3mHq.js +1 -0
  204. package/dist/assets/{stata-gI3uZdJO.js → stata-Y4GvktLE.js} +1 -1
  205. package/dist/assets/step-indicator-dots-ClKaa4nc.js +1 -0
  206. package/dist/assets/{subagent-detail-panel-Dn212XIu.js → subagent-detail-panel-BcUQAemM.js} +2 -2
  207. package/dist/assets/{surrealql-BAt-qB2q.js → surrealql-BDSKZaSH.js} +1 -1
  208. package/dist/assets/{svelte-_sN3XHz9.js → svelte-CtuvIFmj.js} +1 -1
  209. package/dist/assets/system-events-page-BC0hWcTo.js +1 -0
  210. package/dist/assets/system-events-redirect-page-BrzAhJZT.js +1 -0
  211. package/dist/assets/{tag-DI4G1_a6.js → tag-BkZB4euH.js} +1 -1
  212. package/dist/assets/{target-Bu6hUmcU.js → target-B8JHLfTN.js} +1 -1
  213. package/dist/assets/{templ-DarSKCU_.js → templ-eJUdwoXg.js} +1 -1
  214. package/dist/assets/{tex-C_1xF61R.js → tex-CIRkYPu6.js} +1 -1
  215. package/dist/assets/{tiptap-document-editor-8uu7m7VU.js → tiptap-document-editor-CIVPtfOQ.js} +34 -34
  216. package/dist/assets/{toast-VQEhJ0eG.js → toast-Cii5pffK.js} +1 -1
  217. package/dist/assets/toggle-DGzEs0L1.js +1 -0
  218. package/dist/assets/tool-detail-panel-y2CN1PtJ.js +1 -0
  219. package/dist/assets/trace-page-BX5w9eln.js +1 -0
  220. package/dist/assets/{ts-tags-BW1K_uvA.js → ts-tags-Cza2ueQC.js} +1 -1
  221. package/dist/assets/{twig-D6-NX1lk.js → twig-CXZQ9Ol2.js} +1 -1
  222. package/dist/assets/{typography-C2ZUvvBk.js → typography-PN7B1rrW.js} +1 -1
  223. package/dist/assets/upgrade-cancel-page-KQ4EN_I1.js +1 -0
  224. package/dist/assets/upgrade-success-page-Bmv-ncJ6.js +1 -0
  225. package/dist/assets/usage-page-CXNTUrjR.js +1 -0
  226. package/dist/assets/usage-window-CsjC43Gn.js +1 -0
  227. package/dist/assets/{use-active-assistant-id-CAZ9yruQ.js → use-active-assistant-id-kjFL4dWB.js} +1 -1
  228. package/dist/assets/use-bus-subscription-r105Upoa.js +1 -0
  229. package/dist/assets/use-current-platform-assistant-BXRU4B3R.js +1 -0
  230. package/dist/assets/use-debounced-value-DK0n_BKN.js +1 -0
  231. package/dist/assets/{use-is-mobile-BJcMpFY1.js → use-is-mobile-B9vjoiOp.js} +1 -1
  232. package/dist/assets/use-is-org-ready-Dtde_1TT.js +1 -0
  233. package/dist/assets/use-oauth-complete-deep-link-listener-BkbO4kZ1.js +1 -0
  234. package/dist/assets/{use-reduced-motion-BgUzX4N9.js → use-reduced-motion-GQ_HVFpK.js} +1 -1
  235. package/dist/assets/{useMutation-DiUMH3gL.js → useMutation-DTb3lMvF.js} +1 -1
  236. package/dist/assets/{useQuery-CrONYg8_.js → useQuery-DAtrV0RI.js} +1 -1
  237. package/dist/assets/utils-DfoBtDfL.js +1 -0
  238. package/dist/assets/viewer-store-BIIKltsh.js +1 -0
  239. package/dist/assets/voice-page-D3jl6Uq8.js +1 -0
  240. package/dist/assets/{vue-CH8917up.js → vue-BHoLyUei.js} +1 -1
  241. package/dist/assets/{vue-html-DAE_vUrO.js → vue-html-DkcwChpt.js} +1 -1
  242. package/dist/assets/{vue-vine-CwkqX4-H.js → vue-vine-CWaGKpZ6.js} +1 -1
  243. package/dist/assets/{wand-sparkles-Bm4VWjaY.js → wand-sparkles-CIV_5Oi6.js} +1 -1
  244. package/dist/assets/{weather-forecast-display-DxJH81B2.js → weather-forecast-display-BA-3Q5jY.js} +1 -1
  245. package/dist/assets/{web-BlDUhn8s.js → web-BURo-fbJ.js} +1 -1
  246. package/dist/assets/{web-BmuiGnlM.js → web-Bladjo1x.js} +1 -1
  247. package/dist/assets/{web-CNnkyiJU.js → web-BoYC6fGC.js} +1 -1
  248. package/dist/assets/{web-DYZNxiAf.js → web-ByC97zP5.js} +1 -1
  249. package/dist/assets/{web-DvrlWSfM.js → web-D4HuJomW.js} +1 -1
  250. package/dist/assets/{web-D3bAy1EX.js → web-DhGMOrai.js} +1 -1
  251. package/dist/assets/{web-BJvfEnmz.js → web-St4pj-6p.js} +1 -1
  252. package/dist/assets/welcome-screen-B3oZjIVb.js +1 -0
  253. package/dist/assets/{with-selector-D3piXwNZ.js → with-selector-CZyYmUFz.js} +1 -1
  254. package/dist/assets/workspace-page-CUxLMyKc.js +1 -0
  255. package/dist/assets/x-2OoTSOWJ.js +1 -0
  256. package/dist/assets/x-CwP6G6OK.js +1 -0
  257. package/dist/assets/{xml-ClVI3Y-V.js → xml-CUVPRfsD.js} +1 -1
  258. package/dist/assets/{xsl-fuT90Jp2.js → xsl-imDMVavE.js} +1 -1
  259. package/dist/index.html +93 -97
  260. package/dist/skills/amazon/assets/icon.svg +38 -0
  261. package/dist/skills/api-mapping/assets/icon.svg +18 -0
  262. package/dist/skills/discord-app-setup/assets/icon.svg +1 -0
  263. package/dist/skills/doordash/assets/icon.svg +1 -0
  264. package/dist/skills/elevenlabs-voice/assets/icon.svg +1 -0
  265. package/dist/skills/frontend-design/assets/icon.svg +16 -0
  266. package/dist/skills/gmail/assets/icon.svg +1 -0
  267. package/dist/skills/google-calendar/assets/icon.svg +1 -0
  268. package/dist/skills/inbox-cleanup/assets/icon.svg +1 -0
  269. package/dist/skills/inbox-management/assets/icon.svg +1 -0
  270. package/dist/skills/linear-app-setup/assets/icon.svg +1 -0
  271. package/dist/skills/macos-automation/assets/icon.svg +12 -0
  272. package/dist/skills/mailgun-setup/assets/icon.svg +1 -0
  273. package/dist/skills/meet-join/assets/icon.svg +1 -0
  274. package/dist/skills/notion/assets/icon.svg +1 -0
  275. package/dist/skills/outlook/assets/icon.svg +2 -0
  276. package/dist/skills/outlook-calendar/assets/icon.svg +2 -0
  277. package/dist/skills/sentry-app-setup/assets/icon.svg +1 -0
  278. package/dist/skills/slack/assets/icon.svg +6 -0
  279. package/dist/skills/start-the-day/assets/icon.svg +13 -0
  280. package/dist/skills/stripe-app-setup/assets/icon.svg +1 -0
  281. package/dist/skills/stripe-link-wallet/assets/icon.svg +1 -0
  282. package/dist/skills/tasks/assets/icon.svg +34 -0
  283. package/dist/skills/telegram-setup/assets/icon.svg +1 -0
  284. package/dist/skills/twilio-setup/assets/icon.svg +1 -0
  285. package/dist/skills/vellum-github-app-setup/assets/icon.svg +1 -0
  286. package/dist/skills/vercel-token-setup/assets/icon.svg +1 -0
  287. package/dist/skills/voice-setup/assets/icon.svg +20 -0
  288. package/dist/skills/weather/assets/icon.svg +24 -0
  289. package/dist/theme-init.js +23 -0
  290. package/package.json +1 -1
  291. package/dist/assets/about-page-ChuG04vE.js +0 -1
  292. package/dist/assets/account-page-CrDIY8Z8.js +0 -1
  293. package/dist/assets/add-credits-modal-B6Gzv2vl.js +0 -1
  294. package/dist/assets/advanced-page-DA4ak2EO.js +0 -1
  295. package/dist/assets/ai-page-Ct5PY8Hr.js +0 -1
  296. package/dist/assets/api-B_OFJX14.js +0 -39
  297. package/dist/assets/api-errors-BjIRwVX0.js +0 -1
  298. package/dist/assets/api-key-screen-BOpLfokX.js +0 -1
  299. package/dist/assets/archive-page-rrkQVTUx.js +0 -1
  300. package/dist/assets/arrow-up-C7lv4fdd.js +0 -1
  301. package/dist/assets/assistant-feature-flag-store-eFzXnt31.js +0 -1
  302. package/dist/assets/assistant-identity-store-BKqRKOLL.js +0 -1
  303. package/dist/assets/assistant-status-panel-BhVNBjrt.js +0 -1
  304. package/dist/assets/auth-store-Cr7BV6KS.js +0 -1
  305. package/dist/assets/avatar-api-DUkiMcWB.js +0 -1
  306. package/dist/assets/billing-page-DlfvE46V.js +0 -34
  307. package/dist/assets/book-open-Yb24-Bn6.js +0 -1
  308. package/dist/assets/capture-error-DJfWcKOd.js +0 -1
  309. package/dist/assets/check-eRDPqo7D.js +0 -1
  310. package/dist/assets/command-palette-DFEQaGPU.js +0 -1
  311. package/dist/assets/community-page-bfjkRAbY.js +0 -1
  312. package/dist/assets/connect-page-BxfTgDKB.js +0 -1
  313. package/dist/assets/contacts-gateway-BT27BDPK.js +0 -1
  314. package/dist/assets/contacts-page-route-BM53qHul.js +0 -1
  315. package/dist/assets/danger-zone-redirect-page-QYFHTivZ.js +0 -1
  316. package/dist/assets/debug-page-C21JjoV7.js +0 -3
  317. package/dist/assets/deploy-dialogs-DL4SFMh3.js +0 -1
  318. package/dist/assets/developer-page-C7FApaMa.js +0 -1
  319. package/dist/assets/devices-page-C_sa7TuZ.js +0 -1
  320. package/dist/assets/document-viewer-page-B8z3ETHr.js +0 -1
  321. package/dist/assets/emails-page-CVjBHCVU.js +0 -1
  322. package/dist/assets/esm-BxOT_Vkd.js +0 -2
  323. package/dist/assets/esm-CUmIxxMD.js +0 -2
  324. package/dist/assets/esm-CkwULMW-.js +0 -2
  325. package/dist/assets/esm-Dn1onJZ6.js +0 -2
  326. package/dist/assets/feature-flag-catalog-CQJyyF9F.js +0 -1
  327. package/dist/assets/general-page-C-XDI8b1.js +0 -1
  328. package/dist/assets/hatching-screen-CQMiP_YZ.js +0 -1
  329. package/dist/assets/home-page-route-BV48SfuZ.js +0 -1
  330. package/dist/assets/identity-page-route-DaFpXmRM.js +0 -1
  331. package/dist/assets/index-2iJiOJAP.css +0 -2
  332. package/dist/assets/index-DfyO29JM.js +0 -124
  333. package/dist/assets/inspect-page-BRHBywRp.js +0 -2
  334. package/dist/assets/install-Boxb6bXU.js +0 -1
  335. package/dist/assets/integrations-page-DKaUYB6U.js +0 -1
  336. package/dist/assets/intelligence-layout-Yx83VhoZ.js +0 -1
  337. package/dist/assets/library-detail-page-DUU9C5Qc.js +0 -1
  338. package/dist/assets/library-page-BUn0-GJS.js +0 -1
  339. package/dist/assets/llm-dimension-DCCiYYGK.js +0 -1
  340. package/dist/assets/loader-circle-DnYn_L1c.js +0 -1
  341. package/dist/assets/local-mode-BF1E-bwb.js +0 -1
  342. package/dist/assets/login-flow-Dc8bcgq7.js +0 -1
  343. package/dist/assets/login-page-9B3yYAYY.js +0 -1
  344. package/dist/assets/logout-page-BenaprLt.js +0 -1
  345. package/dist/assets/logs-layout-CtOMkt-f.js +0 -1
  346. package/dist/assets/memory-router-playground-page-B7rYBJ8e.js +0 -3
  347. package/dist/assets/native-biometric-COiHDjMB.js +0 -6
  348. package/dist/assets/native-deep-link-L1RSUDsr.js +0 -1
  349. package/dist/assets/notifications-page-DYD5Qw5v.js +0 -1
  350. package/dist/assets/oauth-popup-CotK0_Xq.js +0 -1
  351. package/dist/assets/onboarding-layout-I064mpdZ.js +0 -1
  352. package/dist/assets/password-reset-page-D4OsnJgN.js +0 -1
  353. package/dist/assets/platform-loopback-page-Bcw-uCmy.js +0 -1
  354. package/dist/assets/plugins-page-CVwuk_Fh.js +0 -1
  355. package/dist/assets/pre-chat-flow-DYzXzK6N.js +0 -1
  356. package/dist/assets/prefs-DV0vPCU6.js +0 -1
  357. package/dist/assets/privacy-page-DgEucH63.js +0 -1
  358. package/dist/assets/privacy-screen-fvwKbeYH.js +0 -1
  359. package/dist/assets/provider-callback-page-CmOAHlCe.js +0 -1
  360. package/dist/assets/provider-key-D3C96Ui0.js +0 -1
  361. package/dist/assets/provider-signup-page-Dc2rsF00.js +0 -1
  362. package/dist/assets/query-tags-Dvidg_LC.js +0 -1
  363. package/dist/assets/react-query.gen-C_ukJxaR.js +0 -1
  364. package/dist/assets/react-query.gen-DHIrHqEw.js +0 -1
  365. package/dist/assets/resize-errors-C3PO9ann.js +0 -1
  366. package/dist/assets/routes-CkBoiJow.js +0 -1
  367. package/dist/assets/schedules-page-Dt3CLJAa.js +0 -1
  368. package/dist/assets/sdk.gen-COjGLNMd.js +0 -6
  369. package/dist/assets/selection-store-DOnhFieO.js +0 -1
  370. package/dist/assets/settings-layout-C3paQQd5.js +0 -1
  371. package/dist/assets/share-feedback-modal-BWQiSujT.js +0 -1
  372. package/dist/assets/sidebar-tree-DfHTF15s.js +0 -1
  373. package/dist/assets/signals-Bbq4C5b5.js +0 -1
  374. package/dist/assets/signup-page-B2t4c1d5.js +0 -1
  375. package/dist/assets/skills-page-ttnkr0rG.js +0 -1
  376. package/dist/assets/sounds-page-CHFdpMOV.js +0 -1
  377. package/dist/assets/stat-square-2U4ZsWYG.js +0 -1
  378. package/dist/assets/step-indicator-dots-D3uPz_Wt.js +0 -1
  379. package/dist/assets/system-events-page-BzrGm2BJ.js +0 -1
  380. package/dist/assets/system-events-redirect-page-CSzUi8Rq.js +0 -1
  381. package/dist/assets/toggle-DnsgdQ9b.js +0 -1
  382. package/dist/assets/tool-detail-panel-Bm-I_Sg7.js +0 -1
  383. package/dist/assets/trace-page-Dy7jGi6u.js +0 -1
  384. package/dist/assets/upgrade-cancel-page-DzKb2rHo.js +0 -1
  385. package/dist/assets/upgrade-success-page-BWo7L3dH.js +0 -1
  386. package/dist/assets/usage-page-CoskbMKy.js +0 -1
  387. package/dist/assets/use-current-platform-assistant-IoT7tVk6.js +0 -1
  388. package/dist/assets/use-debounced-value-6KVCjO4p.js +0 -1
  389. package/dist/assets/use-oauth-complete-deep-link-listener-BdgRkEuE.js +0 -1
  390. package/dist/assets/utils-SlAPWJfm.js +0 -1
  391. package/dist/assets/voice-page-lILDcrkB.js +0 -1
  392. package/dist/assets/welcome-screen-fMQ3U9V8.js +0 -1
  393. package/dist/assets/workspace-page-C0PJjA84.js +0 -1
  394. package/dist/assets/x-BgvySeHo.js +0 -1
  395. package/dist/assets/x-JZSbA73X.js +0 -1
  396. /package/dist/assets/{abap-Cjj2olMr.js → abap-C4iPiDIu.js} +0 -0
  397. /package/dist/assets/{actionscript-3-DCkW7kWC.js → actionscript-3-gKpUxVX1.js} +0 -0
  398. /package/dist/assets/{ada-AEWvZXuX.js → ada-BNfMfhXG.js} +0 -0
  399. /package/dist/assets/{andromeeda-D7cSpME6.js → andromeeda-DLZ1RhgM.js} +0 -0
  400. /package/dist/assets/{apache-DjvX0RSe.js → apache-CmXtX8w8.js} +0 -0
  401. /package/dist/assets/{apex-70xIZ0pH.js → apex-DQ3YjsTJ.js} +0 -0
  402. /package/dist/assets/{applescript-C3qKqxmA.js → applescript-CoELsxRV.js} +0 -0
  403. /package/dist/assets/{ara-iGt2zixk.js → ara-BLqTzepa.js} +0 -0
  404. /package/dist/assets/{asciidoc-Bs2t-06W.js → asciidoc-Bu3NXNp3.js} +0 -0
  405. /package/dist/assets/{asm-B-T0eqhE.js → asm-hlDTKcRV.js} +0 -0
  406. /package/dist/assets/{aurora-x-D3h_9M3E.js → aurora-x-Y3rL1Mno.js} +0 -0
  407. /package/dist/assets/{avatar-bundled-components-CGiGgg87.js → avatar-bundled-components-BKb8hhzM.js} +0 -0
  408. /package/dist/assets/{avatar-svg-compositor-DTokNF3h.js → avatar-svg-compositor-CE52Zi2F.js} +0 -0
  409. /package/dist/assets/{awk-CZwfwpPi.js → awk-fqp6puV8.js} +0 -0
  410. /package/dist/assets/{ayu-dark-DulkglEA.js → ayu-dark-8m2thfgS.js} +0 -0
  411. /package/dist/assets/{ayu-light-DyNQiRpn.js → ayu-light-B_LzrLW4.js} +0 -0
  412. /package/dist/assets/{ayu-mirage-CcEt4xkI.js → ayu-mirage-C408gKdx.js} +0 -0
  413. /package/dist/assets/{ballerina-OhQPjyHS.js → ballerina-Dzhgw61p.js} +0 -0
  414. /package/dist/assets/{bat-DqKcJTUn.js → bat-CM0nyl3e.js} +0 -0
  415. /package/dist/assets/{beancount-BdXlMi8T.js → beancount-DS2zW2gu.js} +0 -0
  416. /package/dist/assets/{berry-DvgY6BkY.js → berry-CFa7Vgeg.js} +0 -0
  417. /package/dist/assets/{bibtex-BSRJq0yM.js → bibtex-BgrhWGNJ.js} +0 -0
  418. /package/dist/assets/{bicep-DpAdumKt.js → bicep-DtHaVZsZ.js} +0 -0
  419. /package/dist/assets/{bird2-rlbtp8di.js → bird2-CwlVhixU.js} +0 -0
  420. /package/dist/assets/{c-BbxWH2Eo.js → c-DHEwyzyt.js} +0 -0
  421. /package/dist/assets/{c3-DqIXz4Ia.js → c3-BjbJ1SWk.js} +0 -0
  422. /package/dist/assets/{cadence-DAJtUpOE.js → cadence-D5TkDw9F.js} +0 -0
  423. /package/dist/assets/{catppuccin-frappe-DUPoeZfb.js → catppuccin-frappe-AYmKAKbn.js} +0 -0
  424. /package/dist/assets/{catppuccin-latte-CK3U68Ql.js → catppuccin-latte-rgEci-mq.js} +0 -0
  425. /package/dist/assets/{catppuccin-macchiato-BzteLnIX.js → catppuccin-macchiato-DK631o7w.js} +0 -0
  426. /package/dist/assets/{catppuccin-mocha-ozLd0aBR.js → catppuccin-mocha-Dxwp0FIj.js} +0 -0
  427. /package/dist/assets/{clarity-6KqEoBfz.js → clarity-RpeFvelS.js} +0 -0
  428. /package/dist/assets/{client.gen-D2FNzKQM.js → client.gen-BKAMS0D0.js} +0 -0
  429. /package/dist/assets/{clojure-B_uBL5C7.js → clojure-CRAC2t-A.js} +0 -0
  430. /package/dist/assets/{clsx-grcm2PBd.js → clsx-BcPLHiun.js} +0 -0
  431. /package/dist/assets/{cmake-B3nxBNmj.js → cmake-CR_x8y9A.js} +0 -0
  432. /package/dist/assets/{cn-T5lqoG0E.js → cn-DIX4PZch.js} +0 -0
  433. /package/dist/assets/{codeowners-DkS-51at.js → codeowners-DCE2DWuf.js} +0 -0
  434. /package/dist/assets/{codeql-rpr1z_mR.js → codeql-DsaJqgmb.js} +0 -0
  435. /package/dist/assets/{common-lisp-BfNbv_W6.js → common-lisp-ssblfVQ2.js} +0 -0
  436. /package/dist/assets/{coq-EAW-1nw0.js → coq-CHVp-7H5.js} +0 -0
  437. /package/dist/assets/{csharp-BE3Gn5bq.js → csharp-DI5xNuVa.js} +0 -0
  438. /package/dist/assets/{css-BdYQVA4T.js → css-cWOM3a0B.js} +0 -0
  439. /package/dist/assets/{csv-B5VtaPtH.js → csv-Bpv-AoF-.js} +0 -0
  440. /package/dist/assets/{cue-jm6lYNrx.js → cue-DDYtbxe3.js} +0 -0
  441. /package/dist/assets/{cypher-DXkvK-pn.js → cypher-llXjaNz7.js} +0 -0
  442. /package/dist/assets/{d-CgG1_yzd.js → d-CKAGFvTZ.js} +0 -0
  443. /package/dist/assets/{dark-plus-CALzcIVB.js → dark-plus-rkBkJwdk.js} +0 -0
  444. /package/dist/assets/{dart-BEVoLlWg.js → dart-DMYKlTVD.js} +0 -0
  445. /package/dist/assets/{dax-H0BW3Q_P.js → dax-DdvjFH0V.js} +0 -0
  446. /package/dist/assets/{definitions-BW9hy2QG.js → definitions-BNrrmgWe.js} +0 -0
  447. /package/dist/assets/{desktop-BtYq1l_0.js → desktop-w1vLnVHT.js} +0 -0
  448. /package/dist/assets/{diff-CnBYdfTg.js → diff-OeXZvF1L.js} +0 -0
  449. /package/dist/assets/{dist-KWOsn0v8.js → dist-C49TvNNR.js} +0 -0
  450. /package/dist/assets/{docker-COBitpld.js → docker-C3A0dfO2.js} +0 -0
  451. /package/dist/assets/{dotenv-CG0x1m7c.js → dotenv-DW1eN_9r.js} +0 -0
  452. /package/dist/assets/{dracula-CLCi47X-.js → dracula-DTBIfZ52.js} +0 -0
  453. /package/dist/assets/{dracula-soft-BMv5cCAV.js → dracula-soft-CrJWuJGa.js} +0 -0
  454. /package/dist/assets/{dream-maker-1Bd4OSww.js → dream-maker-BbcHsNud.js} +0 -0
  455. /package/dist/assets/{emacs-lisp-B-2zKLn-.js → emacs-lisp-CXlankGO.js} +0 -0
  456. /package/dist/assets/{emoji-catalog-data-CmIAmDSt.js → emoji-catalog-data-B2dzgy2b.js} +0 -0
  457. /package/dist/assets/{event-bus-B7MjXE2j.js → event-bus-WRYwtHDl.js} +0 -0
  458. /package/dist/assets/{everforest-dark-BGVynCbV.js → everforest-dark-B2pu_HKn.js} +0 -0
  459. /package/dist/assets/{everforest-light--rn3R7Cm.js → everforest-light-DN0BkMBf.js} +0 -0
  460. /package/dist/assets/{exports-CJ0Uoq7P.js → exports-B_RC9sMS.js} +0 -0
  461. /package/dist/assets/{fennel-SWg9Us_u.js → fennel-Cr6woGT-.js} +0 -0
  462. /package/dist/assets/{fish-B04oqgKk.js → fish-BJg8G7KS.js} +0 -0
  463. /package/dist/assets/{fluent-BefzAGMN.js → fluent-DwMQdbwA.js} +0 -0
  464. /package/dist/assets/{format-DQmCypqv.js → format-B2Cl9naL.js} +0 -0
  465. /package/dist/assets/{format-date-DVD0o0QA.js → format-date-C_j5UjES.js} +0 -0
  466. /package/dist/assets/{fortran-free-form-alw7jMxb.js → fortran-free-form-CzTB9Sqt.js} +0 -0
  467. /package/dist/assets/{gdscript-BAyhvjCx.js → gdscript-weUeMolr.js} +0 -0
  468. /package/dist/assets/{gdshader-Crl09X-B.js → gdshader-iWAUzgYh.js} +0 -0
  469. /package/dist/assets/{genie-BSIGRHu7.js → genie-CV-0RB6d.js} +0 -0
  470. /package/dist/assets/{gherkin-DJhSnSWH.js → gherkin-Bi25xuBx.js} +0 -0
  471. /package/dist/assets/{github-dark-r8C6qwug.js → github-dark-UUFXF3bS.js} +0 -0
  472. /package/dist/assets/{github-dark-default-FVtXjcm8.js → github-dark-default-C5WdYtsR.js} +0 -0
  473. /package/dist/assets/{github-dark-dimmed-CzrUPgSb.js → github-dark-dimmed-CJFXRI6Q.js} +0 -0
  474. /package/dist/assets/{github-dark-high-contrast-1s9rF5EB.js → github-dark-high-contrast-JloQ0SAJ.js} +0 -0
  475. /package/dist/assets/{github-light-BvIWCkl7.js → github-light-4CveJiiC.js} +0 -0
  476. /package/dist/assets/{github-light-default-CVdhzrxV.js → github-light-default-DGIOayrf.js} +0 -0
  477. /package/dist/assets/{github-light-high-contrast-CBAf6hjF.js → github-light-high-contrast-DOA9HriW.js} +0 -0
  478. /package/dist/assets/{gleam-DvL1q7aa.js → gleam-CKtDvnYK.js} +0 -0
  479. /package/dist/assets/{gn-BG5NvwAf.js → gn-lpxxrUCu.js} +0 -0
  480. /package/dist/assets/{gnuplot-BARnM-zG.js → gnuplot-BhYvNHXT.js} +0 -0
  481. /package/dist/assets/{go-DXvjjq4q.js → go-CGiDqZ23.js} +0 -0
  482. /package/dist/assets/{groovy-CRylSKhr.js → groovy-CGHX_PQL.js} +0 -0
  483. /package/dist/assets/{gruvbox-dark-hard-BVPjnqm7.js → gruvbox-dark-hard-WxeIxO0x.js} +0 -0
  484. /package/dist/assets/{gruvbox-dark-medium-U_PDgq0a.js → gruvbox-dark-medium-BrLRvqzP.js} +0 -0
  485. /package/dist/assets/{gruvbox-dark-soft-CkzNtpbr.js → gruvbox-dark-soft-Yzi926sT.js} +0 -0
  486. /package/dist/assets/{gruvbox-light-hard-DfMmR2G8.js → gruvbox-light-hard-Cw9Re-rI.js} +0 -0
  487. /package/dist/assets/{gruvbox-light-medium-BGCak-dd.js → gruvbox-light-medium-4lcJ4wOe.js} +0 -0
  488. /package/dist/assets/{gruvbox-light-soft-DnpM3fkN.js → gruvbox-light-soft-CXfwWDtY.js} +0 -0
  489. /package/dist/assets/{haskell-DXgGIDD_.js → haskell-DBidNlOX.js} +0 -0
  490. /package/dist/assets/{haxe-B7qlTpRz.js → haxe-B6ZewxKA.js} +0 -0
  491. /package/dist/assets/{hcl-ADWfVe_Q.js → hcl-BKeuz7gp.js} +0 -0
  492. /package/dist/assets/{hjson-BaM9gLbq.js → hjson-rgQbq9_i.js} +0 -0
  493. /package/dist/assets/{hlsl-iqaRA4MG.js → hlsl-D7KFXCoM.js} +0 -0
  494. /package/dist/assets/{horizon-BPpTnhB9.js → horizon-DAiINwqJ.js} +0 -0
  495. /package/dist/assets/{horizon-bright-yBLg3QbE.js → horizon-bright-CFeHelVZ.js} +0 -0
  496. /package/dist/assets/{houston-eFOp0ySL.js → houston-BdHxI9BK.js} +0 -0
  497. /package/dist/assets/{hy-BALeMn3i.js → hy-CDDbmdhC.js} +0 -0
  498. /package/dist/assets/{imba-CdGUm_GD.js → imba-CwLWOt59.js} +0 -0
  499. /package/dist/assets/{ini-DG7imsqe.js → ini-Bwb6xY8F.js} +0 -0
  500. /package/dist/assets/{java-j5sjtKwV.js → java-CDWeyxES.js} +0 -0
  501. /package/dist/assets/{javascript-CDM3Byzy.js → javascript-BN3vpbN8.js} +0 -0
  502. /package/dist/assets/{json-BM6IlJL7.js → json-CycFWZcg.js} +0 -0
  503. /package/dist/assets/{json5--Abk7MUy.js → json5-BM_H1TCH.js} +0 -0
  504. /package/dist/assets/{jsonc-C8jb-Z6x.js → jsonc-EUMfb5CQ.js} +0 -0
  505. /package/dist/assets/{jsonl-CaJNxfkm.js → jsonl-DvZe68u2.js} +0 -0
  506. /package/dist/assets/{jsonnet-CPrKMSCU.js → jsonnet-BG4vdzZ4.js} +0 -0
  507. /package/dist/assets/{jssm-DEu-9_uo.js → jssm-DNeKUJR3.js} +0 -0
  508. /package/dist/assets/{jsx-CU_TrSpk.js → jsx-jfTE_lQA.js} +0 -0
  509. /package/dist/assets/{jsx-runtime-D1qe-iBh.js → jsx-runtime-XSukodg_.js} +0 -0
  510. /package/dist/assets/{kanagawa-dragon-DnbcAduF.js → kanagawa-dragon-D9OVubsz.js} +0 -0
  511. /package/dist/assets/{kanagawa-lotus-yxsY3ew8.js → kanagawa-lotus-CSRx4SDl.js} +0 -0
  512. /package/dist/assets/{kanagawa-wave-C2RyvZaM.js → kanagawa-wave-UOuPU6gH.js} +0 -0
  513. /package/dist/assets/{kdl-CvssmvcU.js → kdl-DaJuRpNV.js} +0 -0
  514. /package/dist/assets/{kotlin-jufO49mU.js → kotlin-BNEzAgnJ.js} +0 -0
  515. /package/dist/assets/{kusto-BAFnylR7.js → kusto-BnUa5uHr.js} +0 -0
  516. /package/dist/assets/{laserwave-BgxFC4Ge.js → laserwave-BPO5VXXS.js} +0 -0
  517. /package/dist/assets/{lean-Bgt24V1D.js → lean-Z7O9sZeQ.js} +0 -0
  518. /package/dist/assets/{less-Bk_UaqsM.js → less-9u8t21jj.js} +0 -0
  519. /package/dist/assets/{lib-Bqwb-EmC.js → lib-B020BIem.js} +0 -0
  520. /package/dist/assets/{light-plus-nMxFfInN.js → light-plus-Wc5scgJh.js} +0 -0
  521. /package/dist/assets/{llvm-3_PASDOO.js → llvm-DUPAzzzh.js} +0 -0
  522. /package/dist/assets/{log-CKm0CxB1.js → log-yVIkEnLV.js} +0 -0
  523. /package/dist/assets/{logo-DFP1_5U6.js → logo-BMjRBAP1.js} +0 -0
  524. /package/dist/assets/{loopback-auth-jEbLJO6M.js → loopback-auth-Dclf8zKT.js} +0 -0
  525. /package/dist/assets/{luau-BcZnoyh3.js → luau-CRLNKfW2.js} +0 -0
  526. /package/dist/assets/{make-CpNSwgwT.js → make-ABiaNV_U.js} +0 -0
  527. /package/dist/assets/{markdown-DhU3Djpv.js → markdown-Dn1PAeWy.js} +0 -0
  528. /package/dist/assets/{material-theme-DD5L3OqF.js → material-theme-DKIEc_9D.js} +0 -0
  529. /package/dist/assets/{material-theme-darker-CG2_tD3R.js → material-theme-darker-CKATunxP.js} +0 -0
  530. /package/dist/assets/{material-theme-lighter-CzNkUc9Y.js → material-theme-lighter-Ch4hbIqq.js} +0 -0
  531. /package/dist/assets/{material-theme-ocean-BtLiAaF_.js → material-theme-ocean-DMLBHhVS.js} +0 -0
  532. /package/dist/assets/{material-theme-palenight-Brvjz035.js → material-theme-palenight-rAwveJbA.js} +0 -0
  533. /package/dist/assets/{matlab-CCY0KtMD.js → matlab-nAylgdir.js} +0 -0
  534. /package/dist/assets/{mdx-CH6YY0aS.js → mdx-D21b3pUC.js} +0 -0
  535. /package/dist/assets/{mermaid-Bqh3gFI0.js → mermaid-BpHmCKn1.js} +0 -0
  536. /package/dist/assets/{min-dark-BUwfTzI6.js → min-dark-B0702Ln3.js} +0 -0
  537. /package/dist/assets/{min-light-oLanXCOk.js → min-light-9h8I8ujc.js} +0 -0
  538. /package/dist/assets/{mipsasm-CTh3hPWK.js → mipsasm-CtcdPU2Y.js} +0 -0
  539. /package/dist/assets/{mojo-DXdszZKa.js → mojo-Bv8xbxSD.js} +0 -0
  540. /package/dist/assets/{monokai-TNE_tRxc.js → monokai-R3M-Pkjy.js} +0 -0
  541. /package/dist/assets/{moonbit-jrk-Gx1X.js → moonbit-MUcZ6VT6.js} +0 -0
  542. /package/dist/assets/{move-DItn61bH.js → move-B0DlmhPE.js} +0 -0
  543. /package/dist/assets/{narrat-3kB4dkh0.js → narrat-C1e9cFYb.js} +0 -0
  544. /package/dist/assets/{nextflow-groovy-CSKtwETr.js → nextflow-groovy-WB_Hv0pj.js} +0 -0
  545. /package/dist/assets/{night-owl-Dm91nSIq.js → night-owl-BpHVNbG5.js} +0 -0
  546. /package/dist/assets/{night-owl-light-riwrcPRg.js → night-owl-light-B7XHq6BU.js} +0 -0
  547. /package/dist/assets/{nix-sLgl9zGF.js → nix-Bz43yTHV.js} +0 -0
  548. /package/dist/assets/{nord-TWkJPI6M.js → nord-C3Ef8EYs.js} +0 -0
  549. /package/dist/assets/{nushell-CDZi4-Gf.js → nushell-BDgFfjsp.js} +0 -0
  550. /package/dist/assets/{objective-c-DW9PboNp.js → objective-c-CrKuI4kq.js} +0 -0
  551. /package/dist/assets/{objective-cpp-2XCCX6q1.js → objective-cpp-Cq2sz32p.js} +0 -0
  552. /package/dist/assets/{ocaml-CxPdnjrh.js → ocaml-CaddozqL.js} +0 -0
  553. /package/dist/assets/{odin-BJjlKpkM.js → odin-3oMQ00A0.js} +0 -0
  554. /package/dist/assets/{one-dark-pro-K1KOmBZ7.js → one-dark-pro-Dtx2KhVV.js} +0 -0
  555. /package/dist/assets/{one-light-DQB-vUyZ.js → one-light-BNUXpRjj.js} +0 -0
  556. /package/dist/assets/{openscad-DCoLwn4j.js → openscad-Bl9bEK7K.js} +0 -0
  557. /package/dist/assets/{pascal-z2ktbbWp.js → pascal-DAlnwvFf.js} +0 -0
  558. /package/dist/assets/{pkl-Dyq4-v6z.js → pkl-CUN5bqal.js} +0 -0
  559. /package/dist/assets/{plastic-C4Rq5PnD.js → plastic-BTnTnib5.js} +0 -0
  560. /package/dist/assets/{plsql-BCIjO63y.js → plsql-CSbyze_M.js} +0 -0
  561. /package/dist/assets/{po-_kXpd_0n.js → po-DNd8SYOs.js} +0 -0
  562. /package/dist/assets/{poimandres-C9XggjB3.js → poimandres-Du8CR7IV.js} +0 -0
  563. /package/dist/assets/{polar-DV_1L04z.js → polar-BP89cGjR.js} +0 -0
  564. /package/dist/assets/{postcss-BuqS91mQ.js → postcss-DP5swxmN.js} +0 -0
  565. /package/dist/assets/{powerquery-DK13B2Dc.js → powerquery-8FFmlmIB.js} +0 -0
  566. /package/dist/assets/{powershell-tkuhhtuP.js → powershell-Df4bjjrh.js} +0 -0
  567. /package/dist/assets/{preload-helper-CC9DnTon.js → preload-helper-CS_K7l1U.js} +0 -0
  568. /package/dist/assets/{prisma-WNXfBtpr.js → prisma-GVbmmvVi.js} +0 -0
  569. /package/dist/assets/{prolog-BzEdNKfO.js → prolog-CgVNaQE6.js} +0 -0
  570. /package/dist/assets/{proto-B5meVsrA.js → proto-DQgw5Bn7.js} +0 -0
  571. /package/dist/assets/{public-asset-wtS9_-QU.js → public-asset-CdVbP-K-.js} +0 -0
  572. /package/dist/assets/{puppet-C7h_p4r2.js → puppet-B6qkR0ho.js} +0 -0
  573. /package/dist/assets/{purescript-qH1KxAs6.js → purescript-D6HPYETy.js} +0 -0
  574. /package/dist/assets/{python-DeTIYd5V.js → python-BQxVVqSC.js} +0 -0
  575. /package/dist/assets/{qmldir-4Rm5AvD3.js → qmldir-C4uLs1pY.js} +0 -0
  576. /package/dist/assets/{qss-YRbeNtr0.js → qss-CrbqJ-bS.js} +0 -0
  577. /package/dist/assets/{queryOptions-BlcwdoQQ.js → queryOptions-C_ypb2wA.js} +0 -0
  578. /package/dist/assets/{r-CMso0frX.js → r-BYcMR2CA.js} +0 -0
  579. /package/dist/assets/{racket-gKn4SFLQ.js → racket-CYlA9b-a.js} +0 -0
  580. /package/dist/assets/{raku-DWTmAj3A.js → raku-DskHTPaV.js} +0 -0
  581. /package/dist/assets/{react-BlnqVGWw.js → react-DJZBPgpf.js} +0 -0
  582. /package/dist/assets/{red-BFuHRZFS.js → red-C6BsNewa.js} +0 -0
  583. /package/dist/assets/{reg-DYoOF5tH.js → reg-CVAsZyTh.js} +0 -0
  584. /package/dist/assets/{regexp-B6wC3Alg.js → regexp-CE46xxOu.js} +0 -0
  585. /package/dist/assets/{rel-Z_tTruCU.js → rel-C3ws-d8w.js} +0 -0
  586. /package/dist/assets/{riscv-DfTfKuvU.js → riscv-zwK-GGe7.js} +0 -0
  587. /package/dist/assets/{ron-CsUtW8gQ.js → ron-DKXxeRcR.js} +0 -0
  588. /package/dist/assets/{rose-pine-Dng_vCo6.js → rose-pine-D16YZ514.js} +0 -0
  589. /package/dist/assets/{rose-pine-dawn-Ds88Nezf.js → rose-pine-dawn-C6PC9FaW.js} +0 -0
  590. /package/dist/assets/{rose-pine-moon-DWpzrqNz.js → rose-pine-moon-B-ONpfIN.js} +0 -0
  591. /package/dist/assets/{rosmsg-h2sO84oD.js → rosmsg-Cly8Evf4.js} +0 -0
  592. /package/dist/assets/{rust-Dx86yfCi.js → rust-COkR_9xi.js} +0 -0
  593. /package/dist/assets/{sass-BwwVhdT9.js → sass-DDyX_867.js} +0 -0
  594. /package/dist/assets/{scala-WJqNEN-w.js → scala-BseDqmtP.js} +0 -0
  595. /package/dist/assets/{scheme-uwj-t1Rp.js → scheme-0Ar7fzWG.js} +0 -0
  596. /package/dist/assets/{sdbl-BYy5hgEz.js → sdbl-BjheWPT8.js} +0 -0
  597. /package/dist/assets/{semver-BMhLFfhj.js → semver-DI5hyC-t.js} +0 -0
  598. /package/dist/assets/{shellscript-B9T4z4ZS.js → shellscript-DbCYZXfD.js} +0 -0
  599. /package/dist/assets/{slack-dark-BvhGq5vQ.js → slack-dark-B8yuPDrG.js} +0 -0
  600. /package/dist/assets/{slack-ochin-C9g0ZRFr.js → slack-ochin-DLZ-yxLq.js} +0 -0
  601. /package/dist/assets/{smalltalk-ZEiZ6i7U.js → smalltalk-DhsjsTfs.js} +0 -0
  602. /package/dist/assets/{snazzy-light-29OA24q5.js → snazzy-light-BdZObzxx.js} +0 -0
  603. /package/dist/assets/{solarized-dark-Bnq9IOn_.js → solarized-dark-DnY9BvAi.js} +0 -0
  604. /package/dist/assets/{solarized-light-CYdI7T5g.js → solarized-light-BfrwmYru.js} +0 -0
  605. /package/dist/assets/{solidity-DcuIDB-_.js → solidity-DPjYkHh9.js} +0 -0
  606. /package/dist/assets/{splunk-D5ONE91g.js → splunk-aauv22i7.js} +0 -0
  607. /package/dist/assets/{sql-CFgcYxpU.js → sql-ChQ8ry3n.js} +0 -0
  608. /package/dist/assets/{ssh-config-D8717tLI.js → ssh-config-Dz6ViL0P.js} +0 -0
  609. /package/dist/assets/{stylus-Cm1lO4Y6.js → stylus-BOOipACK.js} +0 -0
  610. /package/dist/assets/{swift-X8oWpSeU.js → swift-m0EGSEdy.js} +0 -0
  611. /package/dist/assets/{synthwave-84-DF-t1UKY.js → synthwave-84-BgN63B7_.js} +0 -0
  612. /package/dist/assets/{system-verilog-JYyHFpPf.js → system-verilog-DA9NXNZH.js} +0 -0
  613. /package/dist/assets/{systemd-Da-5Ma_c.js → systemd-6ndOYGhY.js} +0 -0
  614. /package/dist/assets/{talonscript-CXraVPho.js → talonscript-B8LuZYir.js} +0 -0
  615. /package/dist/assets/{tasl-BCmWezH9.js → tasl-xnHVT9C9.js} +0 -0
  616. /package/dist/assets/{tcl-BTufzfbf.js → tcl-BODTsuI7.js} +0 -0
  617. /package/dist/assets/{terraform-CtUA9c8W.js → terraform-BKPIDy8E.js} +0 -0
  618. /package/dist/assets/{tokyo-night-BCThYXmz.js → tokyo-night-DL0vCNuB.js} +0 -0
  619. /package/dist/assets/{toml-D5YlDr6Y.js → toml-DFQNE4Bb.js} +0 -0
  620. /package/dist/assets/{tsv-CBB-P_Sl.js → tsv-CiCFnPYM.js} +0 -0
  621. /package/dist/assets/{tsx-BEBsk4Yi.js → tsx-r66DnitA.js} +0 -0
  622. /package/dist/assets/{turtle-D8PCeJ-v.js → turtle-D6TqBP-R.js} +0 -0
  623. /package/dist/assets/{typescript-lcLHehw2.js → typescript-DywEkG3h.js} +0 -0
  624. /package/dist/assets/{typespec-CHxldxIW.js → typespec-CGjgqr9W.js} +0 -0
  625. /package/dist/assets/{typst-Q8CqX5OR.js → typst-Bx-thO8d.js} +0 -0
  626. /package/dist/assets/{v-Bf2hKAMu.js → v-4VB7M7V1.js} +0 -0
  627. /package/dist/assets/{vala-Cbete-UE.js → vala-DyD7epks.js} +0 -0
  628. /package/dist/assets/{vb-CA-xWAcX.js → vb-MkcXsT7p.js} +0 -0
  629. /package/dist/assets/{verilog-B3wb8CfT.js → verilog-CxKKBB7K.js} +0 -0
  630. /package/dist/assets/{vesper-D6r3VJq_.js → vesper-BWWaFc_5.js} +0 -0
  631. /package/dist/assets/{vhdl-C42S_797.js → vhdl-FnKcRQFJ.js} +0 -0
  632. /package/dist/assets/{viml-BePrIAs8.js → viml-CLoIdFzC.js} +0 -0
  633. /package/dist/assets/{vitesse-black-DRqn61Ck.js → vitesse-black-LsvPTIiF.js} +0 -0
  634. /package/dist/assets/{vitesse-dark-39_8UE-w.js → vitesse-dark-xzpAWWRe.js} +0 -0
  635. /package/dist/assets/{vitesse-light-B1jwrxDm.js → vitesse-light-Dw68nIQJ.js} +0 -0
  636. /package/dist/assets/{vyper-tDJv3imF.js → vyper-DMsUwnVX.js} +0 -0
  637. /package/dist/assets/{wasm-BYoJCXXt.js → wasm-CGZ0ykRa.js} +0 -0
  638. /package/dist/assets/{wasm-DR7eskZH.js → wasm-ic38CN6z.js} +0 -0
  639. /package/dist/assets/{wenyan-CezVfqN3.js → wenyan-COLZAIZW.js} +0 -0
  640. /package/dist/assets/{wgsl-CwOcIiIG.js → wgsl-D-u1_3zX.js} +0 -0
  641. /package/dist/assets/{wikitext-C5coomYc.js → wikitext-l1E17Wn7.js} +0 -0
  642. /package/dist/assets/{wit-C9yyX6-U.js → wit-BW55uw8a.js} +0 -0
  643. /package/dist/assets/{wolfram-BWi0rMAa.js → wolfram-C0owoV7l.js} +0 -0
  644. /package/dist/assets/{xterm-Dsv8Be_e.js → xterm-AXHTOo82.js} +0 -0
  645. /package/dist/assets/{xterm-addon-fit-C__pvf5w.js → xterm-addon-fit-CfpfPbfB.js} +0 -0
  646. /package/dist/assets/{yaml-FxJ2oirE.js → yaml-DP2H7z8n.js} +0 -0
  647. /package/dist/assets/{zenscript-Do7WLoJh.js → zenscript-ChRsLAgZ.js} +0 -0
  648. /package/dist/assets/{zig-Cr80Qrru.js → zig-s66PLVk_.js} +0 -0
@@ -1,39 +0,0 @@
1
- import{r as e}from"./chunk-jRWAZmH_.js";import{T as t,s as n}from"./local-mode-BF1E-bwb.js";import{t as r}from"./client.gen-D2FNzKQM.js";import{M as i,N as a,P as o,a as s,b as c,i as l,o as u,x as d}from"./sdk.gen-1S-e52M3.js";import{i as f,n as p}from"./api-errors-BjIRwVX0.js";Object.freeze({status:`aborted`});function m(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var h=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ee=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},te={};function g(e){return e&&Object.assign(te,e),te}function ne(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function re(e,t){return typeof t==`bigint`?t.toString():t}function _(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ie(e){return e==null}function ae(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function oe(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var se=Symbol(`evaluating`);function v(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==se)return r===void 0&&(r=se,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function y(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function b(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ce(e){return JSON.stringify(e)}function le(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ue=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function x(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var de=_(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function S(e){if(x(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(x(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function fe(e){return S(e)?{...e}:Array.isArray(e)?[...e]:e}var pe=new Set([`string`,`number`,`symbol`]);function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function w(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function me(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var he={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ge(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return w(e,b(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return y(this,`shape`,e),e},checks:[]}))}function _e(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return w(e,b(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return y(this,`shape`,r),r},checks:[]}))}function ve(e,t){if(!S(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return w(e,b(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return y(this,`shape`,n),n}}))}function ye(e,t){if(!S(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return w(e,b(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return y(this,`shape`,n),n}}))}function be(e,t){return w(e,b(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return y(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function xe(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return w(t,b(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return y(this,`shape`,i),i},checks:[]}))}function Se(e,t,n){return w(t,b(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return y(this,`shape`,i),i}}))}function E(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function D(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ce(e){return typeof e==`string`?e:e?.message}function O(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Ce(e.inst?._zod.def?.error?.(e))??Ce(t?.error?.(e))??Ce(n.customError?.(e))??Ce(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function we(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function k(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Te=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,re,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Ee=m(`$ZodError`,Te),De=m(`$ZodError`,Te,{Parent:Error});function Oe(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ke(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var Ae=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new h;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,g())));throw ue(t,i?.callee),t}return o.value},je=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>O(e,a,g())));throw ue(t,i?.callee),t}return o.value},A=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new h;return a.issues.length?{success:!1,error:new(e??Ee)(a.issues.map(e=>O(e,i,g())))}:{success:!0,data:a.value}},Me=A(De),j=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>O(e,i,g())))}:{success:!0,data:a.value}},Ne=j(De),Pe=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ae(e)(t,n,i)},Fe=e=>(t,n,r)=>Ae(e)(t,n,r),Ie=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return je(e)(t,n,i)},Le=e=>async(t,n,r)=>je(e)(t,n,r),Re=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return A(e)(t,n,i)},ze=e=>(t,n,r)=>A(e)(t,n,r),Be=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return j(e)(t,n,i)},Ve=e=>async(t,n,r)=>j(e)(t,n,r),He=/^[cC][^\s-]{8,}$/,Ue=/^[0-9a-z]+$/,We=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ge=/^[0-9a-vA-V]{20}$/,Ke=/^[A-Za-z0-9]{27}$/,qe=/^[a-zA-Z0-9_-]{21}$/,Je=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ye=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Xe=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ze=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Qe=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function $e(){return new RegExp(Qe,`u`)}var et=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,nt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,rt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,it=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,at=/^[A-Za-z0-9_-]*$/,ot=/^\+[1-9]\d{6,14}$/,st=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,ct=RegExp(`^${st}$`);function lt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ut(e){return RegExp(`^${lt(e)}$`)}function dt(e){let t=lt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${st}T(?:${r})$`)}var ft=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},pt=/^-?\d+$/,mt=/^-?\d+(?:\.\d+)?$/,ht=/^(?:true|false)$/i,gt=/^null$/i,_t=/^[^A-Z]*$/,vt=/^[^a-z]*$/,M=m(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),yt={number:`number`,bigint:`bigint`,object:`date`},bt=m(`$ZodCheckLessThan`,(e,t)=>{M.init(e,t);let n=yt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),xt=m(`$ZodCheckGreaterThan`,(e,t)=>{M.init(e,t);let n=yt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),St=m(`$ZodCheckMultipleOf`,(e,t)=>{M.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):oe(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ct=m(`$ZodCheckNumberFormat`,(e,t)=>{M.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=he[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=pt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),wt=m(`$ZodCheckMaxLength`,(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ie(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=we(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Tt=m(`$ZodCheckMinLength`,(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ie(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=we(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Et=m(`$ZodCheckLengthEquals`,(e,t)=>{var n;M.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ie(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=we(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Dt=m(`$ZodCheckStringFormat`,(e,t)=>{var n,r;M.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ot=m(`$ZodCheckRegex`,(e,t)=>{Dt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),kt=m(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=_t,Dt.init(e,t)}),At=m(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=vt,Dt.init(e,t)}),jt=m(`$ZodCheckIncludes`,(e,t)=>{M.init(e,t);let n=C(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Mt=m(`$ZodCheckStartsWith`,(e,t)=>{M.init(e,t);let n=RegExp(`^${C(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Nt=m(`$ZodCheckEndsWith`,(e,t)=>{M.init(e,t);let n=RegExp(`.*${C(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Pt=m(`$ZodCheckOverwrite`,(e,t)=>{M.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Ft=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
2
- `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
3
- `))}},It={major:4,minor:3,patch:6},N=m(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=It;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=E(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new h;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=E(e,t))});else{if(e.issues.length===t)continue;r||=E(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(E(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new h;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new h;return o.then(e=>t(e,r,a))}return t(o,r,a)}}v(e,`~standard`,()=>({validate:t=>{try{let n=Me(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ne(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Lt=m(`$ZodString`,(e,t)=>{N.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ft(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),P=m(`$ZodStringFormat`,(e,t)=>{Dt.init(e,t),Lt.init(e,t)}),Rt=m(`$ZodGUID`,(e,t)=>{t.pattern??=Ye,P.init(e,t)}),zt=m(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Xe(e)}else t.pattern??=Xe();P.init(e,t)}),Bt=m(`$ZodEmail`,(e,t)=>{t.pattern??=Ze,P.init(e,t)}),Vt=m(`$ZodURL`,(e,t)=>{P.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Ht=m(`$ZodEmoji`,(e,t)=>{t.pattern??=$e(),P.init(e,t)}),Ut=m(`$ZodNanoID`,(e,t)=>{t.pattern??=qe,P.init(e,t)}),Wt=m(`$ZodCUID`,(e,t)=>{t.pattern??=He,P.init(e,t)}),Gt=m(`$ZodCUID2`,(e,t)=>{t.pattern??=Ue,P.init(e,t)}),Kt=m(`$ZodULID`,(e,t)=>{t.pattern??=We,P.init(e,t)}),qt=m(`$ZodXID`,(e,t)=>{t.pattern??=Ge,P.init(e,t)}),Jt=m(`$ZodKSUID`,(e,t)=>{t.pattern??=Ke,P.init(e,t)}),Yt=m(`$ZodISODateTime`,(e,t)=>{t.pattern??=dt(t),P.init(e,t)}),Xt=m(`$ZodISODate`,(e,t)=>{t.pattern??=ct,P.init(e,t)}),Zt=m(`$ZodISOTime`,(e,t)=>{t.pattern??=ut(t),P.init(e,t)}),Qt=m(`$ZodISODuration`,(e,t)=>{t.pattern??=Je,P.init(e,t)}),$t=m(`$ZodIPv4`,(e,t)=>{t.pattern??=et,P.init(e,t),e._zod.bag.format=`ipv4`}),en=m(`$ZodIPv6`,(e,t)=>{t.pattern??=tt,P.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),tn=m(`$ZodCIDRv4`,(e,t)=>{t.pattern??=nt,P.init(e,t)}),nn=m(`$ZodCIDRv6`,(e,t)=>{t.pattern??=rt,P.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function rn(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var an=m(`$ZodBase64`,(e,t)=>{t.pattern??=it,P.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{rn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function on(e){if(!at.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return rn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var sn=m(`$ZodBase64URL`,(e,t)=>{t.pattern??=at,P.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{on(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),cn=m(`$ZodE164`,(e,t)=>{t.pattern??=ot,P.init(e,t)});function ln(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var un=m(`$ZodJWT`,(e,t)=>{P.init(e,t),e._zod.check=n=>{ln(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),dn=m(`$ZodNumber`,(e,t)=>{N.init(e,t),e._zod.pattern=e._zod.bag.pattern??mt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),fn=m(`$ZodNumberFormat`,(e,t)=>{Ct.init(e,t),dn.init(e,t)}),pn=m(`$ZodBoolean`,(e,t)=>{N.init(e,t),e._zod.pattern=ht,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),mn=m(`$ZodNull`,(e,t)=>{N.init(e,t),e._zod.pattern=gt,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),hn=m(`$ZodUnknown`,(e,t)=>{N.init(e,t),e._zod.parse=e=>e}),gn=m(`$ZodNever`,(e,t)=>{N.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function _n(e,t,n){e.issues.length&&t.issues.push(...D(n,e.issues)),t.value[n]=e.value}var vn=m(`$ZodArray`,(e,t)=>{N.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>_n(t,n,e))):_n(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function F(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...D(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function yn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=me(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function bn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>F(e,n,i,t,u))):F(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var xn=m(`$ZodObject`,(e,t)=>{if(N.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=_(()=>yn(t));v(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=x,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>F(n,t,e,s,r))):F(i,t,e,s,r)}return i?bn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Sn=m(`$ZodObjectJIT`,(e,t)=>{xn.init(e,t);let n=e._zod.parse,r=_(()=>yn(t)),i=e=>{let t=new Ft([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ce(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ce(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
4
- if (${n}.issues.length) {
5
- if (${o} in input) {
6
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
7
- ...iss,
8
- path: iss.path ? [${o}, ...iss.path] : [${o}]
9
- })));
10
- }
11
- }
12
-
13
- if (${n}.value === undefined) {
14
- if (${o} in input) {
15
- newResult[${o}] = undefined;
16
- }
17
- } else {
18
- newResult[${o}] = ${n}.value;
19
- }
20
-
21
- `):t.write(`
22
- if (${n}.issues.length) {
23
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
24
- ...iss,
25
- path: iss.path ? [${o}, ...iss.path] : [${o}]
26
- })));
27
- }
28
-
29
- if (${n}.value === undefined) {
30
- if (${o} in input) {
31
- newResult[${o}] = undefined;
32
- }
33
- } else {
34
- newResult[${o}] = ${n}.value;
35
- }
36
-
37
- `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=x,s=!te.jitless,c=s&&de.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?bn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Cn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!E(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>O(e,r,g())))}),t)}var wn=m(`$ZodUnion`,(e,t)=>{N.init(e,t),v(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),v(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),v(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),v(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ae(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Cn(t,i,e,a)):Cn(s,i,e,a)}}),Tn=m(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,wn.init(e,t);let n=e._zod.parse;v(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=_(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!x(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),En=m(`$ZodIntersection`,(e,t)=>{N.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>On(e,t,n)):On(e,i,a)}});function Dn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(S(e)&&S(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Dn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Dn(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function On(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),E(e))return e;let o=Dn(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var kn=m(`$ZodRecord`,(e,t)=>{N.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!S(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...D(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...D(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&mt.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>O(e,r,g())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...D(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...D(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),An=m(`$ZodEnum`,(e,t)=>{N.init(e,t);let n=ne(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>pe.has(typeof e)).map(e=>typeof e==`string`?C(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),jn=m(`$ZodLiteral`,(e,t)=>{if(N.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?C(e):e?C(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Mn=m(`$ZodTransform`,(e,t)=>{N.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ee(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new h;return n.value=i,n}});function Nn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Pn=m(`$ZodOptional`,(e,t)=>{N.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),v(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ae(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Nn(t,e.value)):Nn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Fn=m(`$ZodExactOptional`,(e,t)=>{Pn.init(e,t),v(e._zod,`values`,()=>t.innerType._zod.values),v(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),In=m(`$ZodNullable`,(e,t)=>{N.init(e,t),v(e._zod,`optin`,()=>t.innerType._zod.optin),v(e._zod,`optout`,()=>t.innerType._zod.optout),v(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ae(e.source)}|null)$`):void 0}),v(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Ln=m(`$ZodDefault`,(e,t)=>{N.init(e,t),e._zod.optin=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Rn(e,t)):Rn(r,t)}});function Rn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zn=m(`$ZodPrefault`,(e,t)=>{N.init(e,t),e._zod.optin=`optional`,v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Bn=m(`$ZodNonOptional`,(e,t)=>{N.init(e,t),v(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Vn(t,e)):Vn(i,e)}});function Vn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Hn=m(`$ZodCatch`,(e,t)=>{N.init(e,t),v(e._zod,`optin`,()=>t.innerType._zod.optin),v(e._zod,`optout`,()=>t.innerType._zod.optout),v(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,g()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>O(e,n,g()))},input:e.value}),e.issues=[]),e)}}),Un=m(`$ZodPipe`,(e,t)=>{N.init(e,t),v(e._zod,`values`,()=>t.in._zod.values),v(e._zod,`optin`,()=>t.in._zod.optin),v(e._zod,`optout`,()=>t.out._zod.optout),v(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wn(e,t.in,n)):Wn(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wn(e,t.out,n)):Wn(r,t.out,n)}});function Wn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Gn=m(`$ZodReadonly`,(e,t)=>{N.init(e,t),v(e._zod,`propValues`,()=>t.innerType._zod.propValues),v(e._zod,`values`,()=>t.innerType._zod.values),v(e._zod,`optin`,()=>t.innerType?._zod?.optin),v(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Kn):Kn(r)}});function Kn(e){return e.value=Object.freeze(e.value),e}var qn=m(`$ZodCustom`,(e,t)=>{M.init(e,t),N.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Jn(t,n,r,e));Jn(i,n,r,e)}});function Jn(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(k(e))}}var Yn,Xn=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Zn(){return new Xn}(Yn=globalThis).__zod_globalRegistry??(Yn.__zod_globalRegistry=Zn());var I=globalThis.__zod_globalRegistry;function Qn(e,t){return new e({type:`string`,...T(t)})}function $n(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...T(t)})}function er(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...T(t)})}function tr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...T(t)})}function nr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...T(t)})}function rr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...T(t)})}function ir(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...T(t)})}function ar(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...T(t)})}function or(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...T(t)})}function sr(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...T(t)})}function cr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...T(t)})}function lr(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...T(t)})}function ur(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...T(t)})}function dr(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...T(t)})}function fr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...T(t)})}function pr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...T(t)})}function mr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...T(t)})}function hr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...T(t)})}function gr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...T(t)})}function _r(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...T(t)})}function vr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...T(t)})}function yr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...T(t)})}function br(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...T(t)})}function xr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...T(t)})}function Sr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...T(t)})}function Cr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...T(t)})}function wr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...T(t)})}function Tr(e,t){return new e({type:`number`,checks:[],...T(t)})}function Er(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...T(t)})}function Dr(e,t){return new e({type:`boolean`,...T(t)})}function Or(e,t){return new e({type:`null`,...T(t)})}function kr(e){return new e({type:`unknown`})}function Ar(e,t){return new e({type:`never`,...T(t)})}function jr(e,t){return new bt({check:`less_than`,...T(t),value:e,inclusive:!1})}function Mr(e,t){return new bt({check:`less_than`,...T(t),value:e,inclusive:!0})}function Nr(e,t){return new xt({check:`greater_than`,...T(t),value:e,inclusive:!1})}function Pr(e,t){return new xt({check:`greater_than`,...T(t),value:e,inclusive:!0})}function Fr(e,t){return new St({check:`multiple_of`,...T(t),value:e})}function Ir(e,t){return new wt({check:`max_length`,...T(t),maximum:e})}function L(e,t){return new Tt({check:`min_length`,...T(t),minimum:e})}function Lr(e,t){return new Et({check:`length_equals`,...T(t),length:e})}function Rr(e,t){return new Ot({check:`string_format`,format:`regex`,...T(t),pattern:e})}function zr(e){return new kt({check:`string_format`,format:`lowercase`,...T(e)})}function Br(e){return new At({check:`string_format`,format:`uppercase`,...T(e)})}function Vr(e,t){return new jt({check:`string_format`,format:`includes`,...T(t),includes:e})}function Hr(e,t){return new Mt({check:`string_format`,format:`starts_with`,...T(t),prefix:e})}function Ur(e,t){return new Nt({check:`string_format`,format:`ends_with`,...T(t),suffix:e})}function R(e){return new Pt({check:`overwrite`,tx:e})}function Wr(e){return R(t=>t.normalize(e))}function Gr(){return R(e=>e.trim())}function Kr(){return R(e=>e.toLowerCase())}function qr(){return R(e=>e.toUpperCase())}function Jr(){return R(e=>le(e))}function Yr(e,t,n){return new e({type:`array`,element:t,...T(n)})}function Xr(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...T(n)})}function Zr(e){let t=Qr(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(k(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(k(r))}},e(n.value,n)));return t}function Qr(e,t){let n=new M({check:`custom`,...T(t)});return n._zod.check=e,n}function $r(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??I,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function z(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,z(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&B(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ei(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
38
-
39
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function ti(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:V(t,`input`,e.processors),output:V(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function B(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return B(r.element,n);if(r.type===`set`)return B(r.valueType,n);if(r.type===`lazy`)return B(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return B(r.innerType,n);if(r.type===`intersection`)return B(r.left,n)||B(r.right,n);if(r.type===`record`||r.type===`map`)return B(r.keyType,n)||B(r.valueType,n);if(r.type===`pipe`)return B(r.in,n)||B(r.out,n);if(r.type===`object`){for(let e in r.shape)if(B(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(B(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(B(e,n))return!0;return!!(r.rest&&B(r.rest,n))}return!1}var ni=(e,t={})=>n=>{let r=$r({...n,processors:t});return z(e,r),ei(r,e),ti(r,e)},V=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=$r({...i??{},target:a,io:t,processors:n});return z(e,o),ei(o,e),ti(o,e)},ri={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ii=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=ri[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ai=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},oi=(e,t,n,r)=>{n.type=`boolean`},si=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},ci=(e,t,n,r)=>{n.not={}},li=(e,t,n,r)=>{let i=e._zod.def,a=ne(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},ui=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},di=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},fi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},pi=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=z(a.element,t,{...r,path:[...r.path,`items`]})},mi=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=z(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=z(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},hi=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>z(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},gi=(e,t,n,r)=>{let i=e._zod.def,a=z(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=z(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},_i=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=z(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=z(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=z(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},vi=(e,t,n,r)=>{let i=e._zod.def,a=z(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},yi=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},bi=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},xi=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Si=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Ci=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;z(a,t,r);let o=t.seen.get(e);o.ref=a},wi=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ti=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ei=m(`ZodISODateTime`,(e,t)=>{Yt.init(e,t),G.init(e,t)});function Di(e){return xr(Ei,e)}var Oi=m(`ZodISODate`,(e,t)=>{Xt.init(e,t),G.init(e,t)});function ki(e){return Sr(Oi,e)}var Ai=m(`ZodISOTime`,(e,t)=>{Zt.init(e,t),G.init(e,t)});function ji(e){return Cr(Ai,e)}var Mi=m(`ZodISODuration`,(e,t)=>{Qt.init(e,t),G.init(e,t)});function Ni(e){return wr(Mi,e)}var Pi=(e,t)=>{Ee.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ke(e,t)},flatten:{value:t=>Oe(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,re,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,re,2)}},isEmpty:{get(){return e.issues.length===0}}})};m(`ZodError`,Pi);var H=m(`ZodError`,Pi,{Parent:Error}),Fi=Ae(H),Ii=je(H),Li=A(H),Ri=j(H),zi=Pe(H),Bi=Fe(H),Vi=Ie(H),Hi=Le(H),Ui=Re(H),Wi=ze(H),Gi=Be(H),Ki=Ve(H),U=m(`ZodType`,(e,t)=>(N.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:V(e,`input`),output:V(e,`output`)}}),e.toJSONSchema=ni(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(b(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>w(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Fi(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Li(e,t,n),e.parseAsync=async(t,n)=>Ii(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Ri(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>zi(e,t,n),e.decode=(t,n)=>Bi(e,t,n),e.encodeAsync=async(t,n)=>Vi(e,t,n),e.decodeAsync=async(t,n)=>Hi(e,t,n),e.safeEncode=(t,n)=>Ui(e,t,n),e.safeDecode=(t,n)=>Wi(e,t,n),e.safeEncodeAsync=async(t,n)=>Gi(e,t,n),e.safeDecodeAsync=async(t,n)=>Ki(e,t,n),e.refine=(t,n)=>e.check(to(t,n)),e.superRefine=t=>e.check(no(t)),e.overwrite=t=>e.check(R(t)),e.optional=()=>La(e),e.exactOptional=()=>za(e),e.nullable=()=>Va(e),e.nullish=()=>La(Va(e)),e.nonoptional=t=>qa(e,t),e.array=()=>Y(e),e.or=t=>Ea([e,t]),e.and=t=>Aa(e,t),e.transform=t=>Za(e,Fa(t)),e.default=t=>Ua(e,t),e.prefault=t=>Ga(e,t),e.catch=t=>Ya(e,t),e.pipe=t=>Za(e,t),e.readonly=()=>$a(e),e.describe=t=>{let n=e.clone();return I.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return I.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return I.get(e);let n=e.clone();return I.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),qi=m(`_ZodString`,(e,t)=>{Lt.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ii(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Rr(...t)),e.includes=(...t)=>e.check(Vr(...t)),e.startsWith=(...t)=>e.check(Hr(...t)),e.endsWith=(...t)=>e.check(Ur(...t)),e.min=(...t)=>e.check(L(...t)),e.max=(...t)=>e.check(Ir(...t)),e.length=(...t)=>e.check(Lr(...t)),e.nonempty=(...t)=>e.check(L(1,...t)),e.lowercase=t=>e.check(zr(t)),e.uppercase=t=>e.check(Br(t)),e.trim=()=>e.check(Gr()),e.normalize=(...t)=>e.check(Wr(...t)),e.toLowerCase=()=>e.check(Kr()),e.toUpperCase=()=>e.check(qr()),e.slugify=()=>e.check(Jr())}),Ji=m(`ZodString`,(e,t)=>{Lt.init(e,t),qi.init(e,t),e.email=t=>e.check($n(Yi,t)),e.url=t=>e.check(ar(Qi,t)),e.jwt=t=>e.check(br(pa,t)),e.emoji=t=>e.check(or($i,t)),e.guid=t=>e.check(er(Xi,t)),e.uuid=t=>e.check(tr(Zi,t)),e.uuidv4=t=>e.check(nr(Zi,t)),e.uuidv6=t=>e.check(rr(Zi,t)),e.uuidv7=t=>e.check(ir(Zi,t)),e.nanoid=t=>e.check(sr(ea,t)),e.guid=t=>e.check(er(Xi,t)),e.cuid=t=>e.check(cr(ta,t)),e.cuid2=t=>e.check(lr(na,t)),e.ulid=t=>e.check(ur(ra,t)),e.base64=t=>e.check(_r(ua,t)),e.base64url=t=>e.check(vr(da,t)),e.xid=t=>e.check(dr(ia,t)),e.ksuid=t=>e.check(fr(aa,t)),e.ipv4=t=>e.check(pr(oa,t)),e.ipv6=t=>e.check(mr(sa,t)),e.cidrv4=t=>e.check(hr(ca,t)),e.cidrv6=t=>e.check(gr(la,t)),e.e164=t=>e.check(yr(fa,t)),e.datetime=t=>e.check(Di(t)),e.date=t=>e.check(ki(t)),e.time=t=>e.check(ji(t)),e.duration=t=>e.check(Ni(t))});function W(e){return Qn(Ji,e)}var G=m(`ZodStringFormat`,(e,t)=>{P.init(e,t),qi.init(e,t)}),Yi=m(`ZodEmail`,(e,t)=>{Bt.init(e,t),G.init(e,t)}),Xi=m(`ZodGUID`,(e,t)=>{Rt.init(e,t),G.init(e,t)}),Zi=m(`ZodUUID`,(e,t)=>{zt.init(e,t),G.init(e,t)}),Qi=m(`ZodURL`,(e,t)=>{Vt.init(e,t),G.init(e,t)}),$i=m(`ZodEmoji`,(e,t)=>{Ht.init(e,t),G.init(e,t)}),ea=m(`ZodNanoID`,(e,t)=>{Ut.init(e,t),G.init(e,t)}),ta=m(`ZodCUID`,(e,t)=>{Wt.init(e,t),G.init(e,t)}),na=m(`ZodCUID2`,(e,t)=>{Gt.init(e,t),G.init(e,t)}),ra=m(`ZodULID`,(e,t)=>{Kt.init(e,t),G.init(e,t)}),ia=m(`ZodXID`,(e,t)=>{qt.init(e,t),G.init(e,t)}),aa=m(`ZodKSUID`,(e,t)=>{Jt.init(e,t),G.init(e,t)}),oa=m(`ZodIPv4`,(e,t)=>{$t.init(e,t),G.init(e,t)}),sa=m(`ZodIPv6`,(e,t)=>{en.init(e,t),G.init(e,t)}),ca=m(`ZodCIDRv4`,(e,t)=>{tn.init(e,t),G.init(e,t)}),la=m(`ZodCIDRv6`,(e,t)=>{nn.init(e,t),G.init(e,t)}),ua=m(`ZodBase64`,(e,t)=>{an.init(e,t),G.init(e,t)}),da=m(`ZodBase64URL`,(e,t)=>{sn.init(e,t),G.init(e,t)}),fa=m(`ZodE164`,(e,t)=>{cn.init(e,t),G.init(e,t)}),pa=m(`ZodJWT`,(e,t)=>{un.init(e,t),G.init(e,t)}),ma=m(`ZodNumber`,(e,t)=>{dn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ai(e,t,n,r),e.gt=(t,n)=>e.check(Nr(t,n)),e.gte=(t,n)=>e.check(Pr(t,n)),e.min=(t,n)=>e.check(Pr(t,n)),e.lt=(t,n)=>e.check(jr(t,n)),e.lte=(t,n)=>e.check(Mr(t,n)),e.max=(t,n)=>e.check(Mr(t,n)),e.int=t=>e.check(ga(t)),e.safe=t=>e.check(ga(t)),e.positive=t=>e.check(Nr(0,t)),e.nonnegative=t=>e.check(Pr(0,t)),e.negative=t=>e.check(jr(0,t)),e.nonpositive=t=>e.check(Mr(0,t)),e.multipleOf=(t,n)=>e.check(Fr(t,n)),e.step=(t,n)=>e.check(Fr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function K(e){return Tr(ma,e)}var ha=m(`ZodNumberFormat`,(e,t)=>{fn.init(e,t),ma.init(e,t)});function ga(e){return Er(ha,e)}var _a=m(`ZodBoolean`,(e,t)=>{pn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oi(e,t,n,r)});function q(e){return Dr(_a,e)}var va=m(`ZodNull`,(e,t)=>{mn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>si(e,t,n,r)});function ya(e){return Or(va,e)}var ba=m(`ZodUnknown`,(e,t)=>{hn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function J(){return kr(ba)}var xa=m(`ZodNever`,(e,t)=>{gn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ci(e,t,n,r)});function Sa(e){return Ar(xa,e)}var Ca=m(`ZodArray`,(e,t)=>{vn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pi(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(L(t,n)),e.nonempty=t=>e.check(L(1,t)),e.max=(t,n)=>e.check(Ir(t,n)),e.length=(t,n)=>e.check(Lr(t,n)),e.unwrap=()=>e.element});function Y(e,t){return Yr(Ca,e,t)}var wa=m(`ZodObject`,(e,t)=>{Sn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mi(e,t,n,r),v(e,`shape`,()=>t.shape),e.keyof=()=>Q(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:J()}),e.loose=()=>e.clone({...e._zod.def,catchall:J()}),e.strict=()=>e.clone({...e._zod.def,catchall:Sa()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>ve(e,t),e.safeExtend=t=>ye(e,t),e.merge=t=>be(e,t),e.pick=t=>ge(e,t),e.omit=t=>_e(e,t),e.partial=(...t)=>xe(Ia,e,t[0]),e.required=(...t)=>Se(Ka,e,t[0])});function X(e,t){return new wa({type:`object`,shape:e??{},...T(t)})}var Ta=m(`ZodUnion`,(e,t)=>{wn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hi(e,t,n,r),e.options=t.options});function Ea(e,t){return new Ta({type:`union`,options:e,...T(t)})}var Da=m(`ZodDiscriminatedUnion`,(e,t)=>{Ta.init(e,t),Tn.init(e,t)});function Oa(e,t,n){return new Da({type:`union`,options:t,discriminator:e,...T(n)})}var ka=m(`ZodIntersection`,(e,t)=>{En.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gi(e,t,n,r)});function Aa(e,t){return new ka({type:`intersection`,left:e,right:t})}var ja=m(`ZodRecord`,(e,t)=>{kn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_i(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function Z(e,t,n){return new ja({type:`record`,keyType:e,valueType:t,...T(n)})}var Ma=m(`ZodEnum`,(e,t)=>{An.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>li(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Ma({...t,checks:[],...T(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Ma({...t,checks:[],...T(r),entries:i})}});function Q(e,t){return new Ma({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...T(t)})}var Na=m(`ZodLiteral`,(e,t)=>{jn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ui(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $(e,t){return new Na({type:`literal`,values:Array.isArray(e)?e:[e],...T(t)})}var Pa=m(`ZodTransform`,(e,t)=>{Mn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fi(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ee(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(k(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(k(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Fa(e){return new Pa({type:`transform`,transform:e})}var Ia=m(`ZodOptional`,(e,t)=>{Pn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function La(e){return new Ia({type:`optional`,innerType:e})}var Ra=m(`ZodExactOptional`,(e,t)=>{Fn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function za(e){return new Ra({type:`optional`,innerType:e})}var Ba=m(`ZodNullable`,(e,t)=>{In.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Va(e){return new Ba({type:`nullable`,innerType:e})}var Ha=m(`ZodDefault`,(e,t)=>{Ln.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ua(e,t){return new Ha({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var Wa=m(`ZodPrefault`,(e,t)=>{zn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ga(e,t){return new Wa({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var Ka=m(`ZodNonOptional`,(e,t)=>{Bn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qa(e,t){return new Ka({type:`nonoptional`,innerType:e,...T(t)})}var Ja=m(`ZodCatch`,(e,t)=>{Hn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ya(e,t){return new Ja({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Xa=m(`ZodPipe`,(e,t)=>{Un.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci(e,t,n,r),e.in=t.in,e.out=t.out});function Za(e,t){return new Xa({type:`pipe`,in:e,out:t})}var Qa=m(`ZodReadonly`,(e,t)=>{Gn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $a(e){return new Qa({type:`readonly`,innerType:e})}var eo=m(`ZodCustom`,(e,t)=>{qn.init(e,t),U.init(e,t),e._zod.processJSONSchema=(t,n,r)=>di(e,t,n,r)});function to(e,t={}){return Xr(eo,e,t)}function no(e){return Zr(e)}var ro=Q([`idle`,`thinking`,`streaming`,`tool_running`,`awaiting_confirmation`]),io=Q([`assistant_turn`,`user_turn`,`global`]),ao=Q([`message_dequeued`,`thinking_delta`,`first_text_delta`,`tool_use_start`,`preview_start`,`tool_result_received`,`confirmation_requested`,`confirmation_resolved`,`context_compacting`,`message_complete`,`generation_cancelled`,`error_terminal`]),oo=X({type:$(`assistant_activity_state`),conversationId:W(),activityVersion:K(),phase:ro,anchor:io,reason:ao,requestId:W().optional(),statusText:W().optional()}),so=X({type:$(`assistant_text_delta`),text:W(),messageId:W().optional(),conversationId:W().optional()}),co=X({type:$(`assistant_turn_start`),messageId:W(),conversationId:W().optional()}),lo=X({type:$(`avatar_updated`),avatarPath:W()}),uo=X({type:$(`compaction_circuit_closed`),conversationId:W()}),fo=X({type:$(`compaction_circuit_open`),conversationId:W(),reason:$(`3_consecutive_failures`),openUntil:K()}),po=X({label:W(),description:W(),pattern:W()}),mo=X({label:W(),scope:W()}),ho=X({label:W(),scope:W()}),go=X({filePath:W(),oldContent:W(),newContent:W(),isNewFile:q()}),_o=Q([`allow_once`,`allow_always`,`reject_once`,`reject_always`]),vo=X({optionId:W(),name:W(),kind:_o}),yo=Q([`sandbox`,`host`]),bo=X({type:$(`confirmation_request`),requestId:W(),toolName:W(),input:Z(W(),J()),riskLevel:W(),riskReason:W().optional(),isContainerized:q().optional(),executionTarget:yo.optional(),allowlistOptions:Y(po),scopeOptions:Y(mo),directoryScopeOptions:Y(ho).optional(),diff:go.optional(),conversationId:W().optional(),persistentDecisionsAllowed:q().optional(),toolUseId:W().optional(),acpToolKind:W().optional(),acpOptions:Y(vo).optional()}),xo=X({type:$(`contact_request`),requestId:W(),channel:W().optional(),placeholder:W().optional(),label:W().optional(),description:W().optional(),role:W().optional()}),So=Q([`PROVIDER_NETWORK`,`PROVIDER_RATE_LIMIT`,`MANAGED_USAGE_LIMIT`,`PROVIDER_OVERLOADED`,`PROVIDER_API`,`IMAGE_TOO_LARGE`,`PROVIDER_BILLING`,`PROVIDER_ORDERING`,`PROVIDER_WEB_SEARCH`,`PROVIDER_NOT_CONFIGURED`,`PROVIDER_INVALID_KEY`,`MANAGED_KEY_INVALID`,`CONTEXT_TOO_LARGE`,`BUDGET_YIELD_UNRECOVERED`,`MAX_TOKENS_REACHED`,`CONVERSATION_ABORTED`,`CONVERSATION_PROCESSING_FAILED`,`DISK_SPACE_CRITICAL`,`REGENERATE_FAILED`,`UNKNOWN`]),Co=X({type:$(`conversation_error`),conversationId:W(),code:So,userMessage:W(),retryable:q(),debugDetails:W().optional(),errorCategory:W().optional(),connectionName:W().optional(),profileName:W().optional()}),wo=Q([`created`,`renamed`,`deleted`,`reordered`,`seen_changed`]),To=X({type:$(`conversation_list_invalidated`),reason:wo}),Eo=X({type:$(`conversation_title_updated`),conversationId:W(),title:W()}),Do=Q([`disabled`,`ok`,`warning`,`critical`,`unknown`]),Oo=Q([`agent-turns`,`background-work`,`remote-ingress`]),ko=X({enabled:q(),state:Do,locked:q(),acknowledged:q(),overrideActive:q(),effectivelyLocked:q(),lockId:W().nullable(),usagePercent:K().nullable(),thresholdPercent:K(),path:W().nullable(),lastCheckedAt:W().nullable(),blockedCapabilities:Y(Oo),error:W().nullable()}),Ao=X({type:$(`disk_pressure_status_changed`),status:ko}),jo=X({id:W(),surfaceId:W(),author:W(),content:W(),anchorStart:K().optional(),anchorEnd:K().optional(),anchorText:W().optional(),parentCommentId:W().optional(),status:W(),createdAt:K(),updatedAt:K()}),Mo=X({type:$(`document_comment_created`),conversationId:W(),surfaceId:W(),comment:jo}),No=X({type:$(`document_comment_deleted`),conversationId:W(),surfaceId:W(),commentId:W()}),Po=X({type:$(`document_comment_reopened`),conversationId:W(),surfaceId:W(),commentId:W()}),Fo=X({type:$(`document_comment_resolved`),conversationId:W(),surfaceId:W(),commentId:W(),resolvedBy:W()}),Io=X({type:$(`document_editor_update`),conversationId:W(),surfaceId:W(),markdown:W(),mode:W()}),Lo=X({type:$(`error`),message:W(),code:W().optional(),category:W().optional(),errorCategory:W().optional(),requestId:W().optional(),conversationId:W().optional()}),Ro=X({type:$(`generation_cancelled`),conversationId:W().optional()}),zo=X({id:W().optional(),filename:W(),mimeType:W(),data:W(),sourceType:Q([`sandbox_file`,`host_file`,`tool_block`]).optional(),sizeBytes:K().optional(),thumbnailData:W().optional(),fileBacked:q().optional(),filePath:W().optional()}),Bo=X({type:$(`generation_handoff`),conversationId:W().optional(),requestId:W().optional(),queuedCount:K(),messageId:W().optional(),attachments:Y(zo).optional(),attachmentWarnings:Y(W()).optional()}),Vo=X({type:$(`home_feed_updated`),updatedAt:W(),newItemCount:K()}),Ho=X({type:$(`identity_changed`),name:W(),role:W(),personality:W(),emoji:W(),home:W()}),Uo=Q([`approved`,`rejected`,`answered`,`cancelled`,`superseded`]),Wo=X({type:$(`interaction_resolved`),requestId:W(),conversationId:W(),state:Uo,kind:W()}),Go=X({type:$(`message_complete`),messageId:W().optional(),conversationId:W().optional(),source:Q([`main`,`aux`]).optional(),attachments:Y(zo).optional(),attachmentWarnings:Y(W()).optional()}),Ko=X({type:$(`message_dequeued`),conversationId:W(),requestId:W()}),qo=X({type:$(`message_queued`),conversationId:W(),requestId:W(),position:K()}),Jo=X({type:$(`message_queued_deleted`),conversationId:W(),requestId:W()}),Yo=X({type:$(`message_request_complete`),conversationId:W(),requestId:W(),runStillActive:q().optional()}),Xo=X({type:$(`navigate_settings`),tab:W()}),Zo=X({type:$(`notification_intent`),sourceEventName:W(),title:W(),body:W(),deliveryId:W().optional(),deepLinkMetadata:Z(W(),J()).optional(),targetGuardianPrincipalId:W().optional(),silent:q().optional()}),Qo=X({type:$(`open_url`),url:W().min(1),title:W().optional(),conversationId:W().optional()}),$o=X({id:W(),label:W(),description:W().optional()}),es=X({id:W(),question:W(),description:W().optional(),options:Y($o),freeTextPlaceholder:W().optional()}),ts=X({type:$(`question_request`),requestId:W(),questions:Y(es),question:W(),description:W().optional(),options:Y($o),freeTextPlaceholder:W().optional(),conversationId:W().optional(),toolUseId:W().optional()}),ns=X({type:$(`relationship_state_updated`),updatedAt:W()}),rs=X({type:$(`secret_request`),requestId:W(),service:W(),field:W(),label:W(),description:W().optional(),placeholder:W().optional(),conversationId:W().optional(),purpose:W().optional(),allowedTools:Y(W()).optional(),allowedDomains:Y(W()).optional(),allowOneTimeSend:q().optional()}),is=X({type:W(),content:W().optional(),text:W().optional(),result:W().optional(),input:Z(W(),J()).optional(),toolName:W().optional(),isError:q().optional(),toolUseId:W().optional()}).passthrough(),as=X({type:$(`subagent_event`),conversationId:W(),subagentId:W(),event:is}).strict(),os=X({type:$(`subagent_spawned`),subagentId:W(),parentConversationId:W(),label:W(),objective:W(),isFork:q().optional(),parentToolUseId:W().optional()}).strict(),ss=Q([`pending`,`running`,`awaiting_input`,`completed`,`failed`,`aborted`]),cs=X({inputTokens:K(),outputTokens:K(),estimatedCost:K()}).strict(),ls=X({type:$(`subagent_status_changed`),subagentId:W(),status:ss,error:W().optional(),usage:cs.optional()}).strict(),us=X({type:$(`sync_changed`),tags:Y(W().min(1)).min(1),originClientId:W().min(1).optional()}),ds=X({pattern:W(),label:W()}),fs=Q([`anthropic-native`,`brave`,`perplexity`,`tavily`]),ps=X({rank:K(),title:W(),url:W(),domain:W(),faviconUrl:W().optional(),snippet:W().optional(),age:W().optional(),score:K().optional()}),ms=X({query:W(),provider:fs,resultCount:K(),durationMs:K(),results:Y(ps),errorMessage:W().optional()}),hs=X({url:W(),finalUrl:W(),status:K(),contentType:W().optional(),byteCount:K(),charCount:K(),truncated:q(),title:W().optional(),domain:W(),faviconUrl:W().optional(),redirectCount:K(),durationMs:K(),errorMessage:W().optional(),mayRequireJavaScript:q().optional()}),gs=X({webSearch:ms.optional(),webFetch:hs.optional()}),_s=X({type:$(`tool_result`),toolName:W(),result:W(),isError:q().optional(),diff:go.optional(),status:W().optional(),conversationId:W().optional(),imageData:W().optional(),imageDataList:Y(W()).optional(),toolUseId:W().optional(),messageId:W().optional(),riskLevel:W().optional(),riskReason:W().optional(),matchedTrustRuleId:W().optional(),isContainerized:q().optional(),riskScopeOptions:Y(ds).optional(),riskAllowlistOptions:Y(po).optional(),riskDirectoryScopeOptions:Y(ho).optional(),approvalMode:W().optional(),approvalReason:W().optional(),riskThreshold:W().optional(),activityMetadata:gs.optional()}),vs=X({type:$(`tool_use_start`),toolName:W(),input:Z(W(),J()),toolUseId:W().optional(),messageId:W().optional(),conversationId:W().optional()}),ys=X({type:$(`turn_profile_auto_routed`),conversationId:W(),profile:W(),profileLabel:W()}),bs=X({type:$(`ui_surface_complete`),conversationId:W(),surfaceId:W(),summary:W(),submittedData:Z(W(),J()).optional()}),xs=X({type:$(`ui_surface_dismiss`),conversationId:W(),surfaceId:W()}),Ss=X({id:W(),label:W(),style:Q([`primary`,`secondary`,`destructive`]).optional(),data:Z(W(),J()).optional()}),Cs=X({type:$(`ui_surface_show`),conversationId:W(),surfaceId:W(),surfaceType:W(),title:W().optional(),data:Z(W(),J()),actions:Y(Ss).optional(),display:Q([`inline`,`panel`]).optional(),messageId:W().optional(),persistent:q().optional(),toolCallId:W().optional()}),ws=X({type:$(`ui_surface_update`),conversationId:W(),surfaceId:W(),data:Z(W(),J())}),Ts=X({type:$(`usage_update`),conversationId:W(),inputTokens:K(),outputTokens:K(),totalInputTokens:K(),totalOutputTokens:K(),estimatedCost:K(),model:W(),contextWindowTokens:K().optional(),contextWindowMaxTokens:K().optional()}),Es=X({type:$(`user_message_echo`),text:W(),conversationId:W().optional(),messageId:W().optional(),requestId:W().optional(),clientMessageId:W().optional()}).strict(),Ds=`syntheticAgentErrorMessage`,Os=X({cursorInTextField:q().optional().describe(`Whether the cursor is in an editable text field when dictation started`)}).passthrough().describe(`Dictation context (app name, window title, bundle ID, cursor state, selected text)`),ks=X({transcription:W().describe(`Raw speech transcription`),context:Os,profileId:W().describe(`Optional dictation profile ID`).optional()}),As=X({status:ko}),js=$(`notification`),Ms=Q([`new`,`seen`,`acted_on`,`dismissed`]),Ns=Q([`low`,`medium`,`high`,`critical`]),Ps=Q([`security`,`scheduling`,`background`,`email`,`system`]),Fs=X({id:W(),label:W(),prompt:W()}),Is=Q([`emailDraft`,`documentPreview`,`permissionChat`,`paymentAuth`,`toolPermission`,`updatesList`]),Ls=X({kind:Is}),Rs=X({id:W(),type:js,priority:K().int().min(0).max(100),title:W().optional(),summary:W(),timestamp:W(),status:Ms.default(`new`),expiresAt:W().optional(),actions:Y(Fs).optional(),urgency:Ns.optional(),conversationId:W().optional(),detailPanel:Ls.optional(),category:Ps.optional(),noteworthy:q().optional(),fromAssistant:q().optional(),metadata:Z(W(),J()).optional(),createdAt:W()}),zs=Q([`deterministic`,`assistant`]),Bs=X({id:W(),label:W(),icon:W().optional(),prompt:W(),source:zs}),Vs=X({greeting:W(),timeAwayLabel:W(),newCount:K().int().min(0)}),Hs=X({items:Y(Rs),updatedAt:W(),contextBanner:Vs,suggestedPrompts:Y(Bs)}),Us=X({id:W(),category:Q([`voice`,`world`,`priorities`]),text:W(),confidence:Q([`strong`,`uncertain`]),source:Q([`onboarding`,`inferred`])}),Ws=X({id:W(),name:W(),description:W(),tier:Q([`unlocked`,`next-up`,`earned`]),gate:W(),unlockHint:W().optional(),ctaLabel:W().optional()}),Gs=X({version:$(1),assistantId:W(),tier:Ea([$(1),$(2),$(3),$(4)]),progressPercent:K(),facts:Y(Us),capabilities:Y(Ws),conversationCount:K(),hatchedDate:W(),assistantName:W(),userName:W().optional(),updatedAt:W()}),Ks=X({provider:W().nullish(),model:W().nullish(),status:W().nullish(),inputTokens:K().nullish(),outputTokens:K().nullish(),cacheCreationInputTokens:K().nullish(),cacheReadInputTokens:K().nullish(),stopReason:W().nullish(),requestMessageCount:K().nullish(),requestToolCount:K().nullish(),responseMessageCount:K().nullish(),responseToolCallCount:K().nullish(),responsePreview:W().nullish(),toolCallNames:Y(W()).nullish(),estimatedCostUsd:K().nullish(),durationMs:K().nullish()}),qs=X({kind:W(),label:W().nullish(),role:W().nullish(),text:W().nullish(),toolName:W().nullish(),data:J().optional(),language:W().nullish()}),Js=X({id:W(),createdAt:K(),requestPayload:ya(),responsePayload:ya(),provider:W().nullish(),summary:Ks.nullish(),requestSections:Y(qs).nullish(),responseSections:Y(qs).nullish(),agentLoopExitReason:W().nullish(),callSite:W().nullish()}),Ys=X({nodeId:W(),score:K(),semanticSimilarity:K(),recencyBoost:K(),type:W().optional()}),Xs=X({reason:W(),semanticUnavailable:q(),fallbackSources:Y(W())}),Zs=X({enabled:q(),degraded:q(),provider:W().nullable(),model:W().nullable(),degradation:Xs.nullable(),semanticHits:K().nullish(),mergedCount:K().nullish(),selectedCount:K().nullish(),tier1Count:K().nullish(),tier2Count:K().nullish(),hybridSearchLatencyMs:K().nullish(),sparseVectorUsed:q().nullish(),injectedTokens:K().nullish(),latencyMs:K().nullish(),topCandidates:Y(Ys),injectedText:W().nullable(),reason:W().nullable(),queryContext:W().nullable()}),Qs=X({slug:W(),finalActivation:K(),ownActivation:K(),priorActivation:K(),simUser:K(),simAssistant:K(),simNow:K(),simUserRerankBoost:K().optional(),simAssistantRerankBoost:K().optional(),inRerankPool:q().optional(),spreadContribution:K(),source:W(),status:W()}),$s=X({d:K(),c_user:K(),c_assistant:K(),c_now:K(),k:K(),hops:K(),top_k:K(),epsilon:K()}),ec=X({turn:K(),mode:W(),concepts:Y(Qs),config:$s}),tc=X({slug:W(),source:W(),pinned:q()}),nc=X({turn:K(),live:q(),shadow:q(),selections:Y(tc),injectedText:W()}),rc=X({messageId:W().nullish(),conversationKey:W().nullish(),conversationId:W().nullish(),conversationKind:W(),conversationTotalEstimatedCostUsd:K().nullish(),logs:Y(Js),memoryRecall:Zs.nullable(),memoryV2Activation:ec.nullable(),memoryV3Selection:nc.nullish()}),ic=X({type:W(),content:W(),toolName:W().optional(),isError:q().optional(),messageId:W().optional()}),ac=X({subagentId:W(),objective:W().optional(),status:ss.optional(),usage:cs.optional(),events:Y(ic)}),oc=e({ACPOptionKindSchema:()=>_o,ACPOptionSchema:()=>vo,AllowlistOptionSchema:()=>po,AssistantActivityAnchorSchema:()=>io,AssistantActivityPhaseSchema:()=>ro,AssistantActivityReasonSchema:()=>ao,AssistantActivityStateEventSchema:()=>oo,AssistantEventEnvelopeSchema:()=>cc,AssistantEventSchema:()=>sc,AssistantOutboundAttachmentSchema:()=>zo,AssistantTextDeltaEventSchema:()=>so,AssistantTurnStartEventSchema:()=>co,AvatarUpdatedEventSchema:()=>lo,CALL_SITE_SYNTHETIC_AGENT_ERROR_MESSAGE:()=>Ds,CapabilitySchema:()=>Ws,CompactionCircuitClosedEventSchema:()=>uo,CompactionCircuitOpenEventSchema:()=>fo,ConfirmationDiffSchema:()=>go,ConfirmationExecutionTargetSchema:()=>yo,ConfirmationRequestEventSchema:()=>bo,ContactRequestEventSchema:()=>xo,ContextBannerSchema:()=>Vs,ConversationErrorCodeSchema:()=>So,ConversationErrorEventSchema:()=>Co,ConversationListInvalidatedEventSchema:()=>To,ConversationListInvalidatedReasonSchema:()=>wo,ConversationTitleUpdatedEventSchema:()=>Eo,DEFAULT_TOOL_EXECUTION_TIMEOUT_SEC:()=>120,DictationContextSchema:()=>Os,DictationRequestSchema:()=>ks,DirectoryScopeOptionSchema:()=>ho,DiskPressureBlockedCapabilitySchema:()=>Oo,DiskPressureStateSchema:()=>Do,DiskPressureStatusChangedEventSchema:()=>Ao,DiskPressureStatusResponseSchema:()=>As,DiskPressureStatusSchema:()=>ko,DocumentCommentCreatedEventSchema:()=>Mo,DocumentCommentDeletedEventSchema:()=>No,DocumentCommentReopenedEventSchema:()=>Po,DocumentCommentResolvedEventSchema:()=>Fo,DocumentEditorUpdateEventSchema:()=>Io,ErrorEventSchema:()=>Lo,FactSchema:()=>Us,FeedActionSchema:()=>Fs,FeedItemCategorySchema:()=>Ps,FeedItemDetailPanelKindSchema:()=>Is,FeedItemDetailPanelSchema:()=>Ls,FeedItemSchema:()=>Rs,FeedItemStatusSchema:()=>Ms,FeedItemTypeSchema:()=>js,FeedItemUrgencySchema:()=>Ns,GenerationCancelledEventSchema:()=>Ro,GenerationHandoffEventSchema:()=>Bo,HomeFeedResponseSchema:()=>Hs,HomeFeedUpdatedEventSchema:()=>Vo,IdentityChangedEventSchema:()=>Ho,InteractionResolutionStateSchema:()=>Uo,InteractionResolvedEventSchema:()=>Wo,LLMCallSummarySchema:()=>Ks,LLMContextSectionSchema:()=>qs,LLMRequestLogEntrySchema:()=>Js,LlmContextResponseSchema:()=>rc,MemoryCandidateSchema:()=>Ys,MemoryDegradationSchema:()=>Xs,MemoryRecallLogSchema:()=>Zs,MemoryV2ActivationLogSchema:()=>ec,MemoryV2ConceptRowSchema:()=>Qs,MemoryV2ConfigSnapshotSchema:()=>$s,MemoryV3SelectionLogSchema:()=>nc,MemoryV3SelectionRowSchema:()=>tc,MessageCompleteEventSchema:()=>Go,MessageDequeuedEventSchema:()=>Ko,MessageQueuedDeletedEventSchema:()=>Jo,MessageQueuedEventSchema:()=>qo,MessageRequestCompleteEventSchema:()=>Yo,NavigateSettingsEventSchema:()=>Xo,NotificationIntentEventSchema:()=>Zo,OpenUrlEventSchema:()=>Qo,QuestionEntrySchema:()=>es,QuestionOptionSchema:()=>$o,QuestionRequestEventSchema:()=>ts,RelationshipStateSchema:()=>Gs,RelationshipStateUpdatedEventSchema:()=>ns,RiskScopeOptionSchema:()=>ds,ScopeOptionSchema:()=>mo,SecretRequestEventSchema:()=>rs,SubagentDetailEventSchema:()=>ic,SubagentDetailResponseSchema:()=>ac,SubagentEventEventSchema:()=>as,SubagentInnerEventSchema:()=>is,SubagentSpawnedEventSchema:()=>os,SubagentStatusChangedEventSchema:()=>ls,SubagentStatusSchema:()=>ss,SubagentUsageStatsSchema:()=>cs,SuggestedPromptSchema:()=>Bs,SuggestedPromptSourceSchema:()=>zs,SurfaceActionSchema:()=>Ss,SyncChangedEventSchema:()=>us,ToolActivityMetadataSchema:()=>gs,ToolResultEventSchema:()=>_s,ToolUseStartEventSchema:()=>vs,TurnProfileAutoRoutedEventSchema:()=>ys,UISurfaceCompleteEventSchema:()=>bs,UISurfaceDismissEventSchema:()=>xs,UISurfaceShowEventSchema:()=>Cs,UISurfaceUpdateEventSchema:()=>ws,UsageUpdateEventSchema:()=>Ts,UserMessageEchoEventSchema:()=>Es,WebFetchMetadataSchema:()=>hs,WebSearchMetadataSchema:()=>ms,WebSearchProviderIdSchema:()=>fs,WebSearchResultItemSchema:()=>ps}),sc=Oa(`type`,[oo,so,co,lo,uo,fo,bo,xo,Co,To,Eo,Ao,Mo,No,Po,Fo,Io,Lo,Ro,Bo,Vo,Ho,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,ts,ns,rs,as,os,ls,us,_s,vs,ys,bs,xs,Cs,ws,Ts,Es]),cc=X({id:W(),conversationId:W().optional(),seq:K().int().optional(),clientSeq:K().int().optional(),emittedAt:W(),message:sc});async function lc(e){let{data:t,error:n,response:r}=await c({body:e??{},throwOnError:!1});return p(r,n,`Failed to hatch assistant.`),r.ok?{ok:!0,status:r.status,data:t}:{ok:!1,status:r.status,error:f(n,r)}}async function uc(e){if(t()){let e=n();if(e)return{ok:!0,status:200,data:{id:e.assistantId,name:e.name??e.assistantId,status:`active`,is_local:!0,created:e.hatchedAt??``}}}if(e){let{data:t,error:n,response:r}=await o({path:{id:e},throwOnError:!1});return p(r,n,`Failed to get assistant.`),r.ok?{ok:!0,status:r.status,data:t}:{ok:!1,status:r.status,error:f(n,r)}}let r=await d({query:{hosting:`platform`},throwOnError:!1});if(p(r.response,r.error,`Failed to get assistant.`),!r.response.ok)return{ok:!1,status:r.response.status,error:f(r.error,r.response)};let i=r.data?.results??[];if(i.length>0)return{ok:!0,status:r.response.status,data:i[0]};let a=await d({query:{hosting:`local`},throwOnError:!1});if(p(a.response,a.error,`Failed to get assistant.`),a.response.ok){let e=a.data?.results??[];if(e.length>0)return{ok:!0,status:a.response.status,data:e[0]}}return a.response.ok?{ok:!1,status:404,error:{detail:`No assistants found`}}:{ok:!1,status:a.response.status,error:f(a.error,a.response)}}async function dc(e){let{data:t,error:n,response:i}=await r.get({url:`/v1/assistants/{assistant_id}/healthz/`,path:{assistant_id:e},throwOnError:!1});return p(i,n,`Failed to get assistant healthz.`),i.ok?{ok:!0,status:i.status,data:t}:{ok:!1,status:i.status,error:f(n,i)}}async function fc(e){let{data:t,error:n,response:i}=await r.get({url:`/v1/assistants/{assistant_id}/disk-pressure/status/`,path:{assistant_id:e},throwOnError:!1});if(p(i,n,`Failed to get assistant disk pressure status.`),i.ok){let e=As.safeParse(t);return e.success?{ok:!0,status:i.status,data:e.data}:{ok:!1,status:i.status,error:f(e.error.message,i)}}return{ok:!1,status:i.status,error:f(n,i)}}async function pc(e){let{data:t,error:n,response:i}=await r.post({url:`/v1/assistants/{assistant_id}/disk-pressure/acknowledge/`,path:{assistant_id:e},throwOnError:!1});if(p(i,n,`Failed to acknowledge assistant disk pressure.`),i.ok){let e=As.safeParse(t);return e.success?{ok:!0,status:i.status,data:e.data}:{ok:!1,status:i.status,error:f(e.error.message,i)}}return{ok:!1,status:i.status,error:f(n,i)}}async function mc(e){let{data:t,error:n,response:r}=await u({path:{assistant_id:e},throwOnError:!1});if(p(r,n,`Failed to list assistant backups.`),r.ok){let e=t&&typeof t==`object`&&!Array.isArray(t)?t:{};return Array.isArray(e.backups)?{ok:!0,status:r.status,data:e.backups}:{ok:!1,status:r.status,error:f(n??e,r)}}return{ok:!1,status:r.status,error:f(n,r)}}async function hc(e){let{data:t,error:n,response:r}=await l({path:{assistant_id:e},throwOnError:!1});if(p(r,n,`Failed to create assistant backup.`),r.ok){let e=t&&typeof t==`object`&&!Array.isArray(t)?t:{};return{ok:!0,status:r.status,data:e}}return{ok:!1,status:r.status,error:f(n,r)}}async function gc(e,t){let{data:n,error:r,response:i}=await s({path:{assistant_id:e,snapshot_name:t.snapshot_name},throwOnError:!1});if(p(i,r,`Failed to restore assistant backup.`),i.ok){let e=n&&typeof n==`object`&&!Array.isArray(n)?n:{};return{ok:!0,status:i.status,data:e}}return{ok:!1,status:i.status,error:f(r,i)}}async function _c(e){let{data:t,error:n,response:r}=await i({path:{id:e},throwOnError:!1});return p(r,n,`Failed to restart assistant.`),r.ok?{ok:!0,data:t&&typeof t==`object`&&!Array.isArray(t)?t:{}}:{ok:!1,status:r.status,error:f(n,r)}}async function vc(e){let{error:t,response:n}=await a({path:{id:e},throwOnError:!1});return p(n,t,`Failed to retire assistant.`),n.ok?{ok:!0}:{ok:!1,status:n.status,error:f(t,n)}}async function yc(){let{data:e,error:t,response:n}=await d({query:{hosting:`all`},throwOnError:!1});return p(n,t,`Failed to list assistants.`),n.ok?{ok:!0,status:n.status,data:e?.results??[]}:{ok:!1,status:n.status,error:f(t,n)}}export{dc as a,yc as c,vc as d,cc as f,Ds as g,ac as h,fc as i,_c as l,oc as m,hc as n,lc as o,sc as p,uc as r,mc as s,pc as t,gc as u};
@@ -1 +0,0 @@
1
- function e(e,t){return e&&typeof e==`object`&&!Array.isArray(e)?e:typeof e==`string`&&!e.trimStart().startsWith(`<`)?{detail:e.slice(0,500)||t?.statusText||`Request failed.`}:{detail:t?.statusText||`Request failed.`}}function t(e,t,n){if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;if(typeof t.detail==`string`)return t.detail;if(typeof t.error==`string`)return t.error;if(t.error&&typeof t.error==`object`&&typeof t.error.message==`string`)return t.error.message;if(typeof t.message==`string`)return t.message}return typeof e==`string`&&e&&!e.trimStart().startsWith(`<`)?e:n??(t?`HTTP ${t.status}`:`Request failed.`)}function n(e,t,n){if(!e)throw t instanceof Error?t:Error(n)}var r=class extends Error{status;constructor(e,t){super(t),this.name=`ApiError`,this.status=e}};export{e as i,n,t as r,r as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BlnqVGWw.js";import{t as n}from"./jsx-runtime-D1qe-iBh.js";import{i as r}from"./routes-CkBoiJow.js";import{t as i}from"./button-ClCfFgUi.js";import{t as a}from"./dropdown-B1HIMQEV.js";import{t as o}from"./input-D3ItuUML.js";import{ei as s,ni as c}from"./index-DfyO29JM.js";import{t as l}from"./onboarding-layout-I064mpdZ.js";import{n as u,r as d}from"./provider-key-D3C96Ui0.js";var f=e(t(),1),p=[{id:`anthropic`,displayName:`Anthropic`,apiKeyPlaceholder:`sk-ant-api03-...`,docsUrl:`https://console.anthropic.com/settings/keys`,requiresKey:!0},{id:`openai`,displayName:`OpenAI`,apiKeyPlaceholder:`sk-proj-...`,docsUrl:`https://platform.openai.com/api-keys`,requiresKey:!0},{id:`gemini`,displayName:`Google Gemini`,apiKeyPlaceholder:`AIza...`,docsUrl:`https://aistudio.google.com/apikey`,requiresKey:!0},{id:`ollama`,displayName:`Ollama`,apiKeyPlaceholder:null,docsUrl:`https://ollama.com/download`,requiresKey:!1},{id:`fireworks`,displayName:`Fireworks`,apiKeyPlaceholder:`fw_...`,docsUrl:`https://fireworks.ai/account/api-keys`,requiresKey:!0},{id:`openrouter`,displayName:`OpenRouter`,apiKeyPlaceholder:`sk-or-v1-...`,docsUrl:`https://openrouter.ai/keys`,requiresKey:!0},{id:`openai-compatible`,displayName:`OpenAI-compatible`,apiKeyPlaceholder:`Your provider's API key`,docsUrl:null,requiresKey:!0}],m=p[0];function h(e){return p.find(t=>t.id===e)}var g=n();function _(){let e=s(),[t]=c(),n=t.get(`hosting`),[_,v]=(0,f.useState)(()=>u()?.provider??m.id),[y,b]=(0,f.useState)(()=>u()?.key??``),x=h(_)??m,S=x.requiresKey,C=!S||y.trim().length>0;return(0,g.jsx)(l,{children:(0,g.jsxs)(`div`,{className:`mx-auto flex w-full max-w-xl flex-col items-center px-6 py-16 text-[var(--content-default)]`,children:[(0,g.jsx)(`h1`,{className:`text-3xl font-semibold tracking-tight`,style:{animation:`fadeInUp 0.5s ease-out 0.1s both`},children:`Connect a Model Provider`}),(0,g.jsx)(`p`,{className:`mt-3 text-center text-body-medium-lighter text-[var(--content-tertiary)]`,style:{animation:`fadeInUp 0.5s ease-out 0.3s both`},children:`Enter an API key to connect your model provider.`}),(0,g.jsxs)(`div`,{className:`mt-10 flex w-full flex-col gap-4`,style:{animation:`fadeInUp 0.5s ease-out 0.4s both`},children:[(0,g.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,g.jsx)(`label`,{className:`text-body-small-default text-[var(--content-tertiary)]`,children:`Provider`}),(0,g.jsx)(a,{"aria-label":`Provider`,value:_,onChange:e=>{v(e),b(``)},options:p.map(e=>({value:e.id,label:e.displayName}))})]}),S&&(0,g.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,g.jsx)(o,{type:`password`,label:`${x.displayName} API Key`,placeholder:x.apiKeyPlaceholder??`Enter your API key`,value:y,onChange:e=>b(e.target.value),fullWidth:!0}),x.docsUrl&&(0,g.jsxs)(`p`,{className:`self-start text-body-medium-lighter text-[var(--content-tertiary)]`,children:[`Don't have it?`,` `,(0,g.jsx)(`a`,{href:x.docsUrl,target:`_blank`,rel:`noreferrer`,className:`text-[var(--content-default)] underline`,children:`Get an API key here`})]})]})]}),(0,g.jsxs)(`div`,{className:`mt-8 flex w-full flex-col gap-2`,style:{animation:`fadeInUp 0.5s ease-out 0.5s both`},children:[(0,g.jsx)(i,{variant:`primary`,size:`regular`,fullWidth:!0,disabled:!C,onClick:()=>{C&&(d({provider:_,key:S?y.trim():``}),e(n?`${r.onboarding.privacy}?hosting=${n}`:r.onboarding.privacy))},className:`h-11 text-base`,children:`Continue`}),(0,g.jsx)(i,{variant:`outlined`,size:`regular`,fullWidth:!0,onClick:()=>{e(r.onboarding.hosting)},className:`h-11 text-base`,children:`Back`})]})]})})}export{_ as ApiKeyScreen};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BlnqVGWw.js";import{t as n}from"./capture-error-DJfWcKOd.js";import{n as r}from"./QueryClientProvider-DP1e6db6.js";import{t as i}from"./useQuery-CrONYg8_.js";import{t as a}from"./jsx-runtime-D1qe-iBh.js";import{v as o}from"./react-query.gen-DHIrHqEw.js";import{t as s}from"./button-ClCfFgUi.js";import{t as c}from"./card-BPyEFYCf.js";import"./src-DDKMtkUH.js";import{t as l}from"./toast-VQEhJ0eG.js";import{n as u,p as d}from"./query-tags-Dvidg_LC.js";import{S as f}from"./sdk.gen-COjGLNMd.js";import{t as p}from"./loader-circle-DnYn_L1c.js";import{Ar as m,At as h,Er as g,Zt as _}from"./index-DfyO29JM.js";var v=e(t(),1),y=a();function b(e){if(e==null)return``;let t=new Date(e);return Number.isNaN(t.getTime())?``:t.toLocaleString(void 0,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0})}function x(){return(0,y.jsx)(c,{children:(0,y.jsxs)(`div`,{className:`flex min-h-[400px] flex-col items-center justify-center px-6 py-16 text-center`,children:[(0,y.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-[var(--surface-base)]`,children:(0,y.jsx)(g,{className:`h-6 w-6 text-[var(--content-disabled)] dark:text-[var(--content-default)]`})}),(0,y.jsx)(`h2`,{className:`mt-4 text-title-small text-[var(--content-default)]`,children:`No archived conversations`}),(0,y.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Conversations you archive will appear here.`})]})})}function S({conversation:e,isFirst:t,onUnarchive:n,isPending:r}){let i=[b(e.createdAt),e.source??`vellum-assistant`].filter(Boolean).join(` · `),a=e.title&&e.title.trim().length>0?e.title:`Untitled conversation`;return(0,y.jsxs)(`div`,{className:`flex items-center gap-3 py-3 ${t?``:`border-t border-[var(--border-base)]`}`,children:[(0,y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,y.jsx)(`div`,{className:`truncate text-body-medium-default text-[var(--content-default)]`,children:a}),(0,y.jsx)(`p`,{className:`mt-0.5 truncate text-body-small-default text-[var(--content-tertiary)]`,children:i})]}),(0,y.jsx)(s,{variant:`outlined`,onClick:n,disabled:r,className:`shrink-0`,children:r?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(p,{className:`h-4 w-4 animate-spin`}),`Unarchiving`]}):`Unarchive`})]})}function C(){let e=r(),{data:t,isLoading:a}=i(o()),g=t?.results?.[0]?.id??null,{conversations:b,isLoading:C,isError:w,refetch:T}=m(g),[E,D]=(0,v.useState)(null),O=(0,v.useCallback)(async t=>{if(g){D(t);try{await f({path:{assistant_id:g,id:t},throwOnError:!0}),e.invalidateQueries({queryKey:d(g)}),e.invalidateQueries({queryKey:u(g)})}catch(e){n(e,{context:`archive_settings_unarchive_conversation`}),l.error(`Failed to unarchive conversation.`)}finally{D(null)}}},[g,e]);return a||C?(0,y.jsx)(`div`,{className:`max-w-[940px]`,children:(0,y.jsx)(`div`,{className:`flex min-h-[400px] items-center justify-center`,children:(0,y.jsx)(p,{className:`h-6 w-6 animate-spin text-[var(--content-disabled)]`})})}):w?(0,y.jsx)(`div`,{className:`max-w-[940px]`,children:(0,y.jsx)(c,{children:(0,y.jsxs)(`div`,{className:`flex min-h-[400px] flex-col items-center justify-center px-6 py-16 text-center`,children:[(0,y.jsx)(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-[var(--system-error-lighter)]`,children:(0,y.jsx)(h,{className:`h-6 w-6 text-[var(--system-error-default)]`})}),(0,y.jsx)(`h2`,{className:`mt-4 text-title-small text-[var(--content-default)]`,children:`Failed to load archived conversations`}),(0,y.jsx)(`p`,{className:`mt-1 text-body-medium-lighter text-[var(--content-tertiary)]`,children:`Something went wrong. Please try again.`}),(0,y.jsxs)(s,{variant:`outlined`,onClick:T,className:`mt-4`,children:[(0,y.jsx)(_,{className:`h-4 w-4`}),`Retry`]})]})})}):b.length===0?(0,y.jsx)(`div`,{className:`max-w-[940px]`,children:(0,y.jsx)(x,{})}):(0,y.jsx)(`div`,{className:`max-w-[940px]`,children:(0,y.jsx)(c,{noPadding:!0,className:`px-4`,children:b.map((e,t)=>(0,y.jsx)(S,{conversation:e,isFirst:t===0,onUnarchive:()=>{O(e.conversationId)},isPending:E===e.conversationId},e.conversationId))})})}export{C as ArchivePage};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-B1Lebfcn.js";var t=e(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]);export{t};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./create-selectors-CNBhdpCN.js";import{t as n}from"./client.gen-D2FNzKQM.js";import{o as r,t as i}from"./feature-flag-catalog-CQJyyF9F.js";var a={...i},o=0,s={};function c(e={}){a={...i,...e};for(let e of Object.keys(s))delete s[e]}function l(e){return a[e]??i[e]??!1}var u=t(e()(e=>({...i,hasHydrated:!1,setFlags:t=>e(e=>(c(t),Object.keys(t).some(n=>t[n]!==e[n])?t:e)),setFlag:(t,i,c)=>{let u=++o,d=()=>{if(s[t]!==u)return;delete s[t];let n=l(t);e(e=>e[t]===i?{[t]:n}:e)},f=r(t);c&&f?(s[t]=u,n.patch({url:`/v1/assistants/${c}/feature-flags/${f}`,body:{enabled:i},throwOnError:!1}).then(e=>{e.response?.ok?(a[t]=i,s[t]===u&&delete s[t]):d()}).catch(d)):a[t]=i,e({[t]:i})},markHydrated:()=>e({hasHydrated:!0}),resetForAssistantSwitch:()=>e(()=>(c(),{...i,hasHydrated:!1}))})));export{u as t};
@@ -1 +0,0 @@
1
- import{i as e,r as t,s as n}from"./local-settings-lVNyIOJ_.js";import{n as r,t as i}from"./create-selectors-CNBhdpCN.js";var a=`vellum:debug:impersonateAssistantVersion`;function o(){let e=t(a,``);return e.length>0?e:null}function s(t){if(typeof window>`u`)return null;if(t===void 0){let e=o();return console.info(`[vellumDebug] impersonateAssistantVersion (current) = ${e===null?`null`:JSON.stringify(e)}`),e}if(t===null||t===``){if(e(a),o()!==null)return console.warn(`[vellumDebug] failed to clear impersonateAssistantVersion flag`),o();console.info(`[vellumDebug] impersonateAssistantVersion = null (cleared) — reloading…`)}else{if(n(a,t),o()!==t)return console.warn(`[vellumDebug] failed to persist impersonateAssistantVersion flag`),o();console.info(`[vellumDebug] impersonateAssistantVersion = ${JSON.stringify(t)} — reloading…`)}return window.location.reload(),t===``?null:t}var c=i(r(e=>({name:null,version:null,setIdentity:(t,n)=>{e({name:t,version:o()??n})},clearIdentity:()=>e({name:null,version:null})})));export{s as n,c as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-jRWAZmH_.js";import{t}from"./react-BlnqVGWw.js";import{n,t as r}from"./capture-error-DJfWcKOd.js";import{n as i}from"./auth-store-Cr7BV6KS.js";import{a,r as o}from"./api-B_OFJX14.js";import{t as s}from"./useQuery-CrONYg8_.js";import{t as c}from"./jsx-runtime-D1qe-iBh.js";import"./src-DDKMtkUH.js";import{t as l}from"./tag-DI4G1_a6.js";import{t as u}from"./toast-VQEhJ0eG.js";import{t as d}from"./assistant-feature-flag-store-eFzXnt31.js";import{t as f}from"./loader-circle-DnYn_L1c.js";import{zr as p}from"./index-DfyO29JM.js";var m=e(t(),1),h=c();function g({value:e,max:t,caption:n}){let r=t>0?Math.max(0,Math.min(e/t*100,100)):0,i=r>90;return(0,h.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,h.jsx)(`div`,{className:`h-2 w-full overflow-hidden rounded-full bg-[var(--surface-active)]`,children:(0,h.jsx)(`div`,{className:`h-full rounded-full transition-[width] duration-200`,style:{width:`${r}%`,backgroundColor:i?`var(--system-negative-strong)`:`var(--system-positive-strong)`}})}),n&&(0,h.jsx)(`span`,{className:`text-label-medium-default text-[var(--content-tertiary)]`,children:n})]})}var _=7,v=2e3;function y({version:e,loading:t,assistantId:n}){let r=(0,m.useRef)(0),i=(0,m.useRef)(null),[a,o]=(0,m.useState)(null),s=(0,m.useCallback)(()=>{if(r.current+=1,r.current>=_){r.current=0;let e=d.getState(),t=!e.settingsDeveloperNav;e.setFlag(`settingsDeveloperNav`,t,n),o(t?`Developer mode enabled`:`Developer mode disabled`),i.current!==null&&clearTimeout(i.current),i.current=setTimeout(()=>{o(null),i.current=null},v)}},[n]);return(0,m.useEffect)(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]),t?(0,h.jsxs)(`span`,{className:`flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,h.jsx)(f,{className:`h-4 w-4 animate-spin`}),`Loading version...`]}):e?(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`button`,{type:`button`,className:`break-all text-left text-body-medium-lighter text-[var(--content-default)]`,onClick:s,children:e}),a&&(0,h.jsx)(`p`,{className:`mt-1 text-body-small-default text-[var(--content-accent)]`,children:a})]}):(0,h.jsx)(`span`,{className:`text-body-medium-lighter text-[var(--content-tertiary)]`,children:`—`})}var b=[`currentAssistant`],x=4e3,S=9e4;function C(e,t){return(e.memory?.maxMb??null)!==(t.memory?.maxMb??null)||(e.cpu?.maxCores??null)!==(t.cpu?.maxCores??null)}function w(){let{data:e=null,isLoading:t,refetch:i}=s({queryKey:b,queryFn:async()=>{let e=await o();return e.ok?e.data:null},retry:!1}),c=e?.id,[l,d]=(0,m.useState)(null),[f,p]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),_=(0,m.useRef)(0),v=(0,m.useRef)(0),y=(0,m.useCallback)(async e=>{if(!c)return d(null),p(!1),null;_.current+=1;let t=_.current;p(!0);try{let n=await a(c);return t===_.current?n.ok?(d(n.data),n.data):(e?.keepStaleOnError||d(null),null):null}catch(i){return t===_.current?(e?.keepStaleOnError||d(null),!n(i)&&!e?.keepStaleOnError&&(r(i,{context:`fetch_assistant_healthz`}),u.error(`Failed to load assistant info`)),null):null}finally{t===_.current&&p(!1)}},[c]);return(0,m.useEffect)(()=>{y()},[y]),(0,m.useEffect)(()=>()=>{v.current+=1,g(!1),d(null)},[c]),{assistant:e,assistantLoading:t,healthz:l,healthzLoading:f,healthzPolling:h,refetch:(0,m.useCallback)(async()=>{await i(),await y()},[i,y]),refetchUntilResized:(0,m.useCallback)(async e=>{let t=++v.current,n=Date.now()+S;g(!0);let r=e;try{for(i();Date.now()<n&&t===v.current;){if(await new Promise(e=>setTimeout(e,x)),t!==v.current)return;let e=await y({keepStaleOnError:!0});if(t!==v.current)return;if(e){if(r==null){r=e;continue}if(C(e,r))return}}}finally{t===v.current&&g(!1)}},[y,i])}}function T({assistant:e,assistantLoading:t,healthz:n,healthzLoading:r}){let a=p.use.isNonProduction(),o=i.use.user()?.email;if(t)return(0,h.jsxs)(`div`,{className:`flex items-center gap-2 text-body-medium-lighter text-[var(--content-tertiary)]`,children:[(0,h.jsx)(f,{className:`h-4 w-4 animate-spin`}),`Loading assistant info...`]});if(!e)return(0,h.jsx)(`p`,{className:`text-body-medium-lighter text-[var(--content-tertiary)]`,children:`No assistant found. Hatch an assistant to get started.`});let s=n?.version??e.current_release_version;return(0,h.jsxs)(`div`,{className:`grid grid-cols-[140px_minmax(0,1fr)] gap-y-3`,children:[o&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(D,{children:`Account`}),(0,h.jsx)(O,{children:o})]}),(0,h.jsx)(D,{children:`Name`}),(0,h.jsx)(O,{children:e.name}),e.description&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(D,{children:`Description`}),(0,h.jsx)(O,{children:e.description})]}),(0,h.jsx)(D,{children:`Status`}),(0,h.jsx)(`div`,{children:(0,h.jsx)(l,{tone:e.status===`active`?`positive`:`neutral`,children:e.status})}),(0,h.jsx)(D,{children:`Assistant ID`}),(0,h.jsx)(`span`,{className:`break-all font-mono text-body-small-default text-[var(--content-tertiary)]`,children:e.id}),a&&e.machine_id&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(D,{children:`Machine ID`}),(0,h.jsx)(`span`,{className:`break-all font-mono text-body-small-default text-[var(--content-tertiary)]`,children:e.machine_id})]}),(0,h.jsx)(D,{children:`Created`}),(0,h.jsx)(O,{children:e.created?new Date(e.created).toLocaleDateString():`Unknown`}),(0,h.jsx)(D,{children:`Version`}),(0,h.jsx)(y,{version:s??null,loading:r&&!e.current_release_version,assistantId:e.id??null})]})}function E(e){return e>=1024?`${(e/1024).toFixed(1)} GB`:`${e.toFixed(0)} MB`}function D({children:e}){return(0,h.jsx)(`span`,{className:`text-body-medium-default text-[var(--content-tertiary)]`,children:e})}function O({children:e}){return(0,h.jsx)(`span`,{className:`text-body-medium-lighter text-[var(--content-default)]`,children:e})}export{g as i,E as n,w as r,T as t};
@@ -1 +0,0 @@
1
- import{i as e}from"./local-settings-lVNyIOJ_.js";import{A as t,D as n,S as r,a as i,b as a,i as ee,l as te,m as ne,t as re,u as ie}from"./native-biometric-COiHDjMB.js";import{r as o}from"./exports-CJ0Uoq7P.js";import{C as ae,S as oe,T as s,a as se,b as c,f as ce,g as le,i as ue,o as l,s as de,t as fe,u,w as d,x as pe,y as f}from"./local-mode-BF1E-bwb.js";import{n as p,t as m}from"./create-selectors-CNBhdpCN.js";import{t as h}from"./capture-error-DJfWcKOd.js";import{c as me,d as he,o as ge,r as g}from"./api-B_OFJX14.js";import{ft as _e}from"./sdk.gen-1S-e52M3.js";import{r as _}from"./api-errors-BjIRwVX0.js";import{t as ve}from"./useQuery-CrONYg8_.js";import{t as v}from"./selection-store-DOnhFieO.js";import{n as y}from"./event-bus-B7MjXE2j.js";var b=m(p(()=>({assistantState:{kind:`loading`},expectingFirstMessage:!1})));function x(e){if(e.ok)switch(e.data.status){case`active`:return e.data.is_local?{kind:`self_hosted`}:{kind:`active`};case`initializing`:return{kind:`initializing`};case`to_be_deleted`:return{kind:`cleaning_up`};default:return{kind:`error`,message:`Unexpected assistant status: ${e.data.status}`}}return e.status===404?{kind:`auto_hatch`}:{kind:`error`,message:_(e.error,void 0,`Failed to check assistant status.`)}}function S(e){return e===void 0||e>=500}var ye=`platform_hosted_disabled`,C=`We are at capacity for Vellum Managed Assistants, more will be available soon!`;function w(e,t){return e===503?t?.code===ye:!1}var T=3e5;function E(){return{kind:`error`,message:`Your assistant is taking longer than expected to start. Please try again, or check the community for help.`}}var D=[`assistant`,`current`],O=3e3,be=new Set([`initializing`,`cleaning_up`]);function xe(e){if(!e)return!1;let t=x(e);return be.has(t.kind)?O:!1}function Se(e){return ve({queryKey:D,queryFn:()=>g(),enabled:e.enabled,retry:!1,refetchInterval:e=>xe(e.state.data),refetchOnWindowFocus:!1})}var k=3,A=3,j=e=>{},M=()=>null,N=new class{state={kind:`loading`};hatching=!1;hatchRetryCount=0;initializingAssistantId=null;initializingRecoveryCount=0;hatchingVersion=void 0;generation=0;initializingTimeout=null;ready=!1;inputs={isLoggedIn:!1,isLoading:!0,isRetired:!1,isNonProduction:!1,hasPlatformSession:!1,onRedirect:j,resolveOnboardingRedirect:M,queryClient:null};setInputs(e){this.inputs=e,this.ready=!0}resetForLogout(){v.getState().activeAssistantId!==null&&v.getState().setActiveAssistantId(null),this.state.kind!==`loading`&&this.transition({kind:`loading`}),this.clearExpectingFirstMessage()}async respondToInputs(){if(this.ready){if(!this.inputs.isLoggedIn||this.inputs.isLoading){this.resetForLogout();return}if(s()){this.applyGatewayAuthShortCircuit();return}if(u()&&!s()&&!this.inputs.hasPlatformSession){let e=this.inputs.resolveOnboardingRedirect({intendedDestination:window.location.pathname});e&&this.inputs.onRedirect(e);return}this.inputs.hasPlatformSession&&f(null),await this.checkAssistant()}}async applyServerResult(e){this.ready&&(this.state.kind!==`initializing`&&this.state.kind!==`cleaning_up`||await this.applyServerStateUpdate(e))}async checkAssistant(){if(!this.ready)return;if(s()){this.applyGatewayAuthShortCircuit();return}let e=this.generation;try{let t=await this.inputs.queryClient.fetchQuery({queryKey:D,queryFn:()=>g(),staleTime:0});if(e!==this.generation)return;await this.applyServerStateUpdate(t)}catch(t){if(console.error(`Error checking assistant status:`,t),h(t,{context:`check_assistant`}),e!==this.generation)return;this.transition({kind:`error`,message:`Network error. Please check your connection and try again.`})}}retryAssistant(){this.ready&&(this.hatchRetryCount=0,this.initializingRecoveryCount=0,this.checkAssistant())}hatchVersion(e){this.ready&&(this.hatchRetryCount=0,this.markExpectingFirstMessage(),this.hatchAndCheck(e))}markExpectingFirstMessage(){b.getState().expectingFirstMessage||b.setState({expectingFirstMessage:!0})}clearExpectingFirstMessage(){b.getState().expectingFirstMessage&&b.setState({expectingFirstMessage:!1})}transition(e){let t=this.state.kind;this.state=e,b.setState({assistantState:e}),e.kind===`initializing`?t!==`initializing`&&this.armInitializingWatchdog():this.initializingTimeout&&=(clearTimeout(this.initializingTimeout),null),e.kind!==`initializing`&&e.kind!==`active`&&this.clearExpectingFirstMessage()}armInitializingWatchdog(){this.initializingTimeout&&clearTimeout(this.initializingTimeout),this.initializingTimeout=setTimeout(()=>{o(`Assistant hatch stuck in initializing state`,{level:`warning`,extra:{timeoutMs:T}}),this.recoverStuckInitializingAssistant()},T)}projectActive(e){let t=e.data.maintenance_mode;f(null),v.getState().setActiveAssistantId(e.data.id),this.transition({kind:`active`,isLocal:e.data.is_local??!1,maintenanceMode:{enabled:t?.enabled}})}projectSelfHosted(e){f({url:e.data.ingress_url,token:e.data.platform_actor_token}),v.getState().setActiveAssistantId(e.data.id),this.transition({kind:`self_hosted`})}applyGatewayAuthShortCircuit(){let e=window.location.origin,t=`self`,n=se();if(n){let r=de();e=`${window.location.origin}${n}`,t=r?.assistantId??t}f({url:e,token:oe()}),v.getState().setActiveAssistantId(t),this.transition({kind:`active`,isLocal:!0})}async applyServerStateUpdate(e){let t=this.generation,n=x(e);if(e.ok&&n.kind===`initializing`?this.initializingAssistantId=e.data.id:n.kind!==`initializing`&&(this.initializingAssistantId=null),n.kind===`auto_hatch`){if(this.inputs.isRetired){this.transition({kind:`retired`});return}let e=this.inputs.resolveOnboardingRedirect({intendedDestination:window.location.pathname});if(e){this.inputs.onRedirect(e);return}if(this.inputs.isNonProduction){this.transition({kind:`awaiting_version_selection`});return}this.markExpectingFirstMessage(),await this.hatchAndCheck();return}if(n.kind===`active`&&e.ok){this.initializingRecoveryCount=0,this.hatchingVersion=void 0,this.projectActive(e);return}if(n.kind===`self_hosted`&&e.ok){this.initializingRecoveryCount=0,this.hatchingVersion=void 0,this.projectSelfHosted(e);return}t===this.generation&&n.kind!==`active`&&this.transition(n)}async hatchAndCheck(e){if(this.hatching)return;if(this.hatchRetryCount>=k){this.transition({kind:`error`,message:`Failed to start your assistant after multiple attempts. Please refresh the page to try again.`});return}this.hatching=!0,this.hatchingVersion=e;let t=this.generation;this.transition({kind:`initializing`}),this.armInitializingWatchdog();try{let n=await ge(e?{version:e}:void 0);if(t!==this.generation)return;if(n.ok&&(this.initializingAssistantId=n.data.id,this.inputs.queryClient.setQueryData(D,{ok:!0,status:n.status,data:n.data})),!n.ok){if(this.hatchRetryCount+=1,o(`Hatch request failed`,{level:`warning`,extra:{status:n.status,error:n.error,attempt:this.hatchRetryCount}}),w(n.status,n.error)){this.transition({kind:`error`,message:C});return}if(S(n.status)){this.transition({kind:`initializing`}),setTimeout(()=>{this.inputs.queryClient.invalidateQueries({queryKey:D})},O);return}this.transition({kind:`error`,message:_(n.error,void 0,`Failed to start your assistant. Please refresh the page to try again.`)});return}this.hatchRetryCount=0}catch(e){if(this.hatchRetryCount+=1,h(e,{context:`hatch_assistant`}),t!==this.generation)return;this.transition({kind:`initializing`}),setTimeout(()=>{this.inputs.queryClient.invalidateQueries({queryKey:D})},O);return}finally{this.hatching=!1}t===this.generation&&this.transition({kind:`initializing`})}async recoverStuckInitializingAssistant(){if(this.initializingRecoveryCount>=A){this.generation++,this.transition(E());return}this.initializingRecoveryCount++,this.generation++;let e=this.generation;try{let t=this.initializingAssistantId;if(!t){let n=await this.inputs.queryClient.fetchQuery({queryKey:D,queryFn:()=>g(),staleTime:0});if(e!==this.generation)return;if(n.ok&&n.data.status===`initializing`)t=n.data.id;else{let e=x(n);this.initializingAssistantId=null,e.kind===`auto_hatch`?await this.hatchAndCheck(this.hatchingVersion):e.kind===`active`&&n.ok?(this.initializingRecoveryCount=0,this.projectActive(n)):e.kind===`self_hosted`&&n.ok?(this.initializingRecoveryCount=0,this.projectSelfHosted(n)):e.kind!==`active`&&this.transition(e);return}}this.hatching=!0;let n=await he(t);if(e!==this.generation){this.hatching=!1;return}if(!n.ok&&n.status!==404){this.hatching=!1,o(`Failed to retire stuck initializing assistant`,{level:`warning`,extra:{status:n.status,error:n.error}}),this.transition(E());return}this.initializingAssistantId=null,v.getState().setActiveAssistantId(null),this.hatching=!1,await this.hatchAndCheck(this.hatchingVersion)}catch(t){if(this.hatching=!1,h(t,{context:`recover_stuck_initializing_assistant`}),e!==this.generation)return;this.transition(E())}}__resetForTesting(){this.initializingTimeout&&=(clearTimeout(this.initializingTimeout),null),this.state={kind:`loading`},this.hatching=!1,this.hatchRetryCount=0,this.initializingAssistantId=null,this.initializingRecoveryCount=0,this.hatchingVersion=void 0,this.generation=0,this.ready=!1,b.setState({expectingFirstMessage:!1}),this.inputs={isLoggedIn:!1,isLoading:!0,isRetired:!1,isNonProduction:!1,hasPlatformSession:!1,onRedirect:j,resolveOnboardingRedirect:M,queryClient:null},b.setState({assistantState:this.state}),v.setState({activeAssistantId:null})}},P=`vellum:onboarding:tosAccepted`,F=`vellum:onboarding:aiDataConsent`,I=`vellum:onboarding:completed`,Ce=`vellum:onboarding:selectedVersion`;function L(){e(P),e(F),e(I),e(Ce)}function we(e){if(!(typeof window>`u`)&&e!==null)try{if(n(`lastUserId`,``)===e)return;L(),t(`lastUserId`,e)}catch{}}var R=`vellum_active_organization_id`;function z(){return globalThis.sessionStorage===void 0?null:globalThis.sessionStorage}function B(){let e=z();if(!e)return null;try{return e.getItem(R)}catch{return null}}function V(e){let t=z();if(t)try{t.setItem(R,e)}catch{}}function Te(){let e=z();if(e)try{e.removeItem(R)}catch{}}function Ee(e,t){return e.length===0?null:t&&e.some(e=>e.id===t)?t:e[0].id}var H=m(p()((e,t)=>({organizations:[],currentOrganizationId:null,status:`idle`,error:null,fetchOrganizations:async()=>{e({status:`loading`,error:null});try{let n=(await _e()).data?.results??[],r=Ee(n,t().currentOrganizationId??B());r&&V(r),e({organizations:n,currentOrganizationId:r,status:r?`ready`:`error`,error:r?null:`No organization available for this user.`})}catch(t){e({status:`error`,error:t instanceof Error&&t.message?t.message:`Failed to load organizations.`})}},setCurrentOrganizationId:n=>{let{organizations:r}=t();r.some(e=>e.id===n)&&(V(n),e({currentOrganizationId:n,status:`ready`}))},clearOrganization:()=>{Te(),e({organizations:[],currentOrganizationId:null,status:`idle`,error:null})}})));function De(){return H.getState().currentOrganizationId??B()}function U(){H.getState().clearOrganization()}function Oe(){let e=0,t=H.subscribe(t=>{(t.status===`ready`||t.status===`error`)&&(e=Date.now())}),n=$.subscribe((e,t)=>{e.hasPlatformSession&&(!t.hasPlatformSession||e.user?.id!==t.user?.id)&&H.getState().fetchOrganizations()}),r=()=>{if(!$.getState().hasPlatformSession)return;let{status:t}=H.getState();(t===`ready`||t===`error`)&&Date.now()-e>1e4&&H.getState().fetchOrganizations()},i=y(`app.resume`,()=>{r()});return()=>{t(),n(),i()}}var ke=`vellum:`,Ae=[`onboarding.`,`voice:`,`gw:`,`ff:client:`,`local:`,`integrations.`,`vellumDebug.`,`vellum_`],je=new Set([`vellum_theme`,`vellum_share_analytics`,`vellum_share_diagnostics`,`vellum_biometric_enabled`,`vellum_llm_log_retention`,`vellum_timezone`,`vellum_media_embeds_enabled`,`vellum_media_embed_domains`,`onboarding.lastUserId`]);function W(e){return e.startsWith(ke)?!0:je.has(e)?!1:Ae.some(t=>e.startsWith(t))}function G(){try{sessionStorage.clear()}catch{}try{let e=[];for(let t=0;t<localStorage.length;t++){let n=localStorage.key(t);n&&W(n)&&e.push(n)}e.forEach(e=>localStorage.removeItem(e))}catch{}}function Me(e){return e?.id??e?.email??e?.username??null}function K(e){return e?{id:Me(e),username:e.username??null,email:e.email??null,isStaff:e.is_staff??!1,firstName:e.first_name??``,lastName:e.last_name??``}:null}var q=null,J=null,Y=!1,X={id:`gateway-local`,username:`local`,email:null,isStaff:!1,firstName:`Local`,lastName:`User`};function Ne(e){(!e||q&&q!==e)&&U(),q=e}function Z(){J?.postMessage(`auth-changed`)}function Q(e){we(e),Ne(e)}var $=m(p()(e=>({isLoggedIn:!1,isLoading:!0,user:null,hasPlatformSession:!1,initSession:async()=>{if(d()){try{await ce(),e({isLoggedIn:!0,isLoading:!1,user:X})}catch{e({isLoggedIn:!1,isLoading:!1,user:null})}(!u()||l().length>0)&&a().then(t=>{t.ok&&t.data.user&&e({hasPlatformSession:!0})}).catch(()=>{});return}if(u()&&!d()){if(l().length>0){try{let t=await a();if(t.ok&&t.data.user){let n=K(t.data.user);try{let t=await me();if(t.ok&&(await le(t.data),l().length===0&&ue().length===0)){e({isLoggedIn:!0,isLoading:!1,user:n,hasPlatformSession:!0});return}}catch{}e({isLoggedIn:!0,isLoading:!1,user:n,hasPlatformSession:!0});return}}catch{}e({isLoggedIn:!1,isLoading:!1,user:null});return}e({isLoggedIn:!0,isLoading:!1,user:X}),Y||a().then(t=>{t.ok&&t.data.user&&e({hasPlatformSession:!0,user:K(t.data.user)})}).catch(()=>{}),Y=!1;return}try{let t=await a();if(t.ok&&t.data.user){let n=K(t.data.user);Q(n?.id??null),e({isLoggedIn:!0,isLoading:!1,user:n,hasPlatformSession:!0});return}}catch(e){console.error(`auth.initSession failed`,e)}if(ie()&&ee())try{let t=await i();if(t){te(t),await ne();let n=await a();if(n.ok&&n.data.user){let t=K(n.data.user);Q(t?.id??null),e({isLoggedIn:!0,isLoading:!1,user:t,hasPlatformSession:!0});return}}}catch(e){console.warn(`auth.initSession biometric recovery failed`,e)}Q(null),e({isLoggedIn:!1,isLoading:!1,user:null})},refreshSession:async()=>{if(s()){try{await pe(ae()),e({isLoggedIn:!0})}catch{return e({isLoggedIn:!1,user:null,hasPlatformSession:!1}),!1}return(!u()||l().length>0)&&a().then(t=>{e({hasPlatformSession:!!(t.ok&&t.data.user)})}).catch(()=>e({hasPlatformSession:!1})),!0}try{let t=await a();if(t.ok&&t.data.user){let n=K(t.data.user);return Q(n?.id??null),e({isLoggedIn:!0,user:n,hasPlatformSession:!0}),!0}}catch(e){console.warn(`auth.refreshSession failed`,e)}return Q(null),e({isLoggedIn:!1,user:null,hasPlatformSession:!1}),!1},logout:async()=>{if(s()){fe(),c(),L(),U(),G(),N.resetForLogout(),e({isLoggedIn:!1,user:null,hasPlatformSession:!1}),Z();return}Y=!0;try{await r()}finally{u()&&(document.cookie=`sessionid=; path=/; samesite=lax; expires=Thu, 01 Jan 1970 00:00:00 UTC`),re(),L(),U(),G(),N.resetForLogout(),e({isLoggedIn:!1,user:null,hasPlatformSession:!1}),Z()}}})));function Pe(){let{refreshSession:e}=$.getState(),t=[],n=()=>e().catch(e=>console.warn(`auth.refreshSession failed`,e)),r=y(`app.resume`,()=>{n()});return t.push(r),typeof BroadcastChannel<`u`&&(J=new BroadcastChannel(`auth`),J.onmessage=()=>{G(),window.location.reload()},t.push(()=>{J?.close(),J=null})),()=>t.forEach(e=>e())}export{H as a,P as c,Se as d,C as f,b as g,S as h,Oe as i,L as l,x as m,$ as n,F as o,w as p,De as r,I as s,Pe as t,N as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./client.gen-D2FNzKQM.js";import{n as t}from"./api-errors-BjIRwVX0.js";import{n,r,t as i}from"./utils-SlAPWJfm.js";var a=`0.8.7`;function o(){return i(a)}function s(){return n(a)}async function c(){return await r(),o()}function l(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.bodyShape==`string`&&typeof t.eyeStyle==`string`&&typeof t.color==`string`}function u(e){return e===`character`||e===`image`||e===`none`}function d(e){return e===`builder`||e===`upload`||e===`ai`}function f(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.updatedAt==`string`&&typeof t.etag==`string`}function p(e){if(typeof e!=`object`||!e)return!1;let t=e;return u(t.kind)&&(t.traits===null||l(t.traits))&&(t.source===null||d(t.source))&&(t.image===null||f(t.image))}async function m(n){try{let{data:r,error:i,response:a}=await e.get({url:`/v1/assistants/{assistant_id}/avatar/state`,path:{assistant_id:n}});return t(a,i,`Failed to fetch avatar state`),!a.ok||!p(r)?null:r}catch{return null}}async function h(n){try{let{data:r,error:i,response:a}=await e.get({url:`/v1/assistants/{assistant_id}/avatar/character-components`,path:{assistant_id:n}});return t(a,i,`Failed to fetch character components`),!a.ok||!r||typeof r!=`object`?null:r}catch{return null}}async function g(n){try{let{data:r,error:i,response:a}=await e.get({url:`/v1/assistants/{assistant_id}/workspace/file/`,path:{assistant_id:n},query:{path:`data/avatar/character-traits.json`}});if(t(a,i,`Failed to fetch character traits`),!a.ok||!r||typeof r!=`object`)return null;let o=r.content;if(typeof o!=`string`)return null;let s=JSON.parse(o);return l(s)?s:null}catch{return null}}async function _(n,r){try{let{error:i,response:a}=await e.post({url:`/v1/assistants/{assistant_id}/avatar/render-from-traits`,path:{assistant_id:n},body:r,headers:{"Content-Type":`application/json`}});return t(a,i,`Failed to save character traits`),a.ok}catch{return!1}}async function v(n,r){try{let i=await r.arrayBuffer(),a=btoa(new Uint8Array(i).reduce((e,t)=>e+String.fromCharCode(t),``));if(!await c())return y(n,a);let{error:o,response:s}=await e.post({url:`/v1/assistants/{assistant_id}/avatar/image`,path:{assistant_id:n},body:{content:a,encoding:`base64`},headers:{"Content-Type":`application/json`}});return t(s,o,`Failed to upload avatar image`),s.ok}catch{return!1}}async function y(n,r){let{error:i,response:a}=await e.post({url:`/v1/assistants/{assistant_id}/workspace/write/`,path:{assistant_id:n},body:{path:`data/avatar/avatar-image.png`,content:r,encoding:`base64`},headers:{"Content-Type":`application/json`}});return t(a,i,`Failed to upload avatar image`),a.ok?(await e.post({url:`/v1/assistants/{assistant_id}/workspace/delete/`,path:{assistant_id:n},body:{path:`data/avatar/character-traits.json`},headers:{"Content-Type":`application/json`}}),!0):!1}async function b(n){try{let{data:r,error:i,response:a}=await e.get({url:`/v1/assistants/{assistant_id}/workspace/file/content/`,path:{assistant_id:n},query:{path:`data/avatar/avatar-image.png`},parseAs:`blob`});return t(a,i,`Failed to fetch avatar image`),!a.ok||!r?null:URL.createObjectURL(r)}catch{return null}}export{_ as a,g as i,m as n,v as o,h as r,s,b as t};