windows-development-sandbox 1.4.1 → 1.5.0

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 (3550) hide show
  1. package/.sandbox-config.example.json +1 -2
  2. package/README.md +9 -9
  3. package/config.example.json +162 -8
  4. package/dist/api.d.ts +2 -2
  5. package/dist/api.js +29 -18
  6. package/dist/cli/args.d.ts +19 -6
  7. package/dist/cli/args.js +91 -35
  8. package/dist/cli/argv.d.ts +9 -0
  9. package/dist/cli/argv.js +22 -0
  10. package/dist/cli/commands/accounts.d.ts +1 -1
  11. package/dist/cli/commands/accounts.js +48 -32
  12. package/dist/cli/commands/agent-commands.d.ts +3 -3
  13. package/dist/cli/commands/agent-commands.js +20 -36
  14. package/dist/cli/commands/context.d.ts +15 -11
  15. package/dist/cli/commands/context.js +35 -32
  16. package/dist/cli/commands/data/clean.d.ts +2 -14
  17. package/dist/cli/commands/data/clean.js +18 -87
  18. package/dist/cli/commands/data/collect.d.ts +6 -3
  19. package/dist/cli/commands/data/collect.js +46 -15
  20. package/dist/cli/commands/data/index.d.ts +2 -2
  21. package/dist/cli/commands/data/index.js +34 -17
  22. package/dist/cli/commands/data/remove.d.ts +1 -1
  23. package/dist/cli/commands/data/remove.js +4 -4
  24. package/dist/cli/commands/index.d.ts +6 -4
  25. package/dist/cli/commands/index.js +6 -4
  26. package/dist/cli/commands/launch/add-root.d.ts +7 -0
  27. package/dist/cli/commands/launch/add-root.js +64 -0
  28. package/dist/cli/commands/launch/boot-progress.d.ts +7 -0
  29. package/dist/cli/commands/launch/boot-progress.js +48 -0
  30. package/dist/cli/commands/launch/boot-wants.d.ts +11 -0
  31. package/dist/cli/commands/launch/boot-wants.js +48 -0
  32. package/dist/cli/commands/launch/first-start.d.ts +10 -0
  33. package/dist/cli/commands/launch/first-start.js +53 -0
  34. package/dist/cli/commands/launch/index.d.ts +6 -0
  35. package/dist/cli/commands/launch/index.js +6 -0
  36. package/dist/cli/commands/launch/launch.d.ts +11 -0
  37. package/dist/cli/commands/launch/launch.js +273 -0
  38. package/dist/cli/commands/launch/prepare.d.ts +23 -0
  39. package/dist/cli/commands/launch/prepare.js +108 -0
  40. package/dist/cli/commands/launch/resume-offer.d.ts +8 -0
  41. package/dist/cli/commands/launch/resume-offer.js +41 -0
  42. package/dist/cli/commands/launch/running.d.ts +45 -0
  43. package/dist/cli/commands/launch/running.js +218 -0
  44. package/dist/cli/commands/launch/summary.d.ts +8 -0
  45. package/dist/cli/commands/launch/summary.js +98 -0
  46. package/dist/cli/commands/maintenance/audit.d.ts +3 -0
  47. package/dist/cli/commands/maintenance/audit.js +58 -0
  48. package/dist/cli/commands/maintenance/clean.d.ts +2 -0
  49. package/dist/cli/commands/maintenance/clean.js +10 -0
  50. package/dist/cli/commands/maintenance/config.d.ts +2 -0
  51. package/dist/cli/commands/maintenance/config.js +145 -0
  52. package/dist/cli/commands/maintenance/doctor.d.ts +2 -0
  53. package/dist/cli/commands/maintenance/doctor.js +6 -0
  54. package/dist/cli/commands/maintenance/host-claude.d.ts +5 -0
  55. package/dist/cli/commands/maintenance/host-claude.js +14 -0
  56. package/dist/cli/commands/maintenance/index.d.ts +10 -0
  57. package/dist/cli/commands/maintenance/index.js +11 -0
  58. package/dist/cli/commands/maintenance/logs.d.ts +2 -0
  59. package/dist/cli/commands/maintenance/logs.js +24 -0
  60. package/dist/cli/commands/maintenance/migrate.d.ts +13 -0
  61. package/dist/cli/commands/maintenance/migrate.js +55 -0
  62. package/dist/cli/commands/maintenance/sync.d.ts +2 -0
  63. package/dist/cli/commands/maintenance/sync.js +12 -0
  64. package/dist/cli/commands/maintenance/update.d.ts +22 -0
  65. package/dist/cli/commands/maintenance/update.js +106 -0
  66. package/dist/cli/commands/maintenance/watch.d.ts +3 -0
  67. package/dist/cli/commands/maintenance/watch.js +10 -0
  68. package/dist/cli/commands/projects/describe-sessions.d.ts +3 -0
  69. package/dist/cli/commands/projects/describe-sessions.js +15 -0
  70. package/dist/cli/commands/projects/here.d.ts +40 -0
  71. package/dist/cli/commands/projects/here.js +162 -0
  72. package/dist/cli/commands/projects/index.d.ts +4 -0
  73. package/dist/cli/commands/projects/index.js +4 -0
  74. package/dist/cli/commands/projects/projects.d.ts +2 -0
  75. package/dist/cli/commands/projects/projects.js +153 -0
  76. package/dist/cli/commands/projects/restart.d.ts +5 -0
  77. package/dist/cli/commands/projects/restart.js +106 -0
  78. package/dist/cli/commands/registry.d.ts +3 -0
  79. package/dist/cli/commands/registry.js +38 -0
  80. package/dist/cli/commands/repair/checks.js +105 -29
  81. package/dist/cli/commands/repair/finders.d.ts +13 -10
  82. package/dist/cli/commands/repair/finders.js +63 -43
  83. package/dist/cli/commands/repair/index.d.ts +3 -6
  84. package/dist/cli/commands/repair/index.js +29 -36
  85. package/dist/cli/commands/repair/types.d.ts +2 -2
  86. package/dist/cli/commands/repair/types.js +7 -2
  87. package/dist/cli/commands/resume.d.ts +2 -0
  88. package/dist/cli/commands/resume.js +61 -0
  89. package/dist/cli/commands/sessions/attach.d.ts +2 -0
  90. package/dist/cli/commands/sessions/attach.js +44 -0
  91. package/dist/cli/commands/sessions/control.d.ts +4 -0
  92. package/dist/cli/commands/sessions/control.js +66 -0
  93. package/dist/cli/commands/sessions/exec.d.ts +6 -0
  94. package/dist/cli/commands/sessions/exec.js +72 -0
  95. package/dist/cli/commands/sessions/index.d.ts +6 -0
  96. package/dist/cli/commands/sessions/index.js +9 -0
  97. package/dist/cli/commands/sessions/list.d.ts +2 -0
  98. package/dist/cli/commands/sessions/list.js +45 -0
  99. package/dist/cli/commands/sessions/reopen.d.ts +36 -0
  100. package/dist/cli/commands/sessions/reopen.js +99 -0
  101. package/dist/cli/commands/sessions/status.d.ts +2 -0
  102. package/dist/cli/commands/sessions/status.js +93 -0
  103. package/dist/cli/commands/sessions/window.d.ts +3 -0
  104. package/dist/cli/commands/sessions/window.js +18 -0
  105. package/dist/cli/commands/setup/checks.d.ts +4 -4
  106. package/dist/cli/commands/setup/checks.js +36 -19
  107. package/dist/cli/commands/setup/facts.d.ts +6 -6
  108. package/dist/cli/commands/setup/facts.js +25 -23
  109. package/dist/cli/commands/setup/index.d.ts +1 -1
  110. package/dist/cli/commands/setup/index.js +24 -26
  111. package/dist/cli/commands/shared-use.d.ts +29 -0
  112. package/dist/cli/commands/shared-use.js +69 -0
  113. package/dist/cli/commands/user-config.d.ts +5 -5
  114. package/dist/cli/commands/user-config.js +14 -12
  115. package/dist/cli/history.d.ts +5 -4
  116. package/dist/cli/history.js +23 -11
  117. package/dist/cli/index.d.ts +4 -14
  118. package/dist/cli/index.js +39 -78
  119. package/dist/cli/manifest.d.ts +645 -10
  120. package/dist/cli/manifest.js +405 -56
  121. package/dist/cli/menu/apps.d.ts +27 -14
  122. package/dist/cli/menu/apps.js +107 -90
  123. package/dist/cli/menu/command-fields.d.ts +15 -0
  124. package/dist/cli/menu/command-fields.js +23 -0
  125. package/dist/cli/menu/command-form.d.ts +8 -5
  126. package/dist/cli/menu/command-form.js +142 -57
  127. package/dist/cli/menu/index.d.ts +2 -24
  128. package/dist/cli/menu/index.js +4 -178
  129. package/dist/cli/menu/menu.d.ts +18 -0
  130. package/dist/cli/menu/menu.js +170 -0
  131. package/dist/cli/menu/pages/accounts-page.d.ts +29 -0
  132. package/dist/cli/menu/pages/accounts-page.js +168 -0
  133. package/dist/cli/menu/pages/apps-page.d.ts +26 -0
  134. package/dist/cli/menu/pages/apps-page.js +75 -0
  135. package/dist/cli/menu/pages/list-page.d.ts +42 -0
  136. package/dist/cli/menu/pages/list-page.js +65 -0
  137. package/dist/cli/menu/pages/maintenance-page.d.ts +76 -0
  138. package/dist/cli/menu/pages/maintenance-page.js +483 -0
  139. package/dist/cli/menu/pages/sandbox-page.d.ts +32 -0
  140. package/dist/cli/menu/pages/sandbox-page.js +273 -0
  141. package/dist/cli/menu/pages/scopes.d.ts +9 -0
  142. package/dist/cli/menu/pages/scopes.js +15 -0
  143. package/dist/cli/menu/pages/sessions-page.d.ts +20 -0
  144. package/dist/cli/menu/pages/sessions-page.js +94 -0
  145. package/dist/cli/menu/pages/settings-page.d.ts +31 -0
  146. package/dist/cli/menu/pages/settings-page.js +207 -0
  147. package/dist/cli/menu/pages/start-page.d.ts +43 -0
  148. package/dist/cli/menu/pages/start-page.js +192 -0
  149. package/dist/cli/menu/settings/categories.d.ts +2 -2
  150. package/dist/cli/menu/settings/categories.js +130 -20
  151. package/dist/cli/menu/settings/collections/collection-editor.d.ts +23 -0
  152. package/dist/cli/menu/settings/collections/collection-editor.js +73 -0
  153. package/dist/cli/menu/settings/collections/map-editor.d.ts +10 -0
  154. package/dist/cli/menu/settings/collections/map-editor.js +34 -0
  155. package/dist/cli/menu/settings/collections/object-list-editor.d.ts +10 -0
  156. package/dist/cli/menu/settings/collections/object-list-editor.js +23 -0
  157. package/dist/cli/menu/settings/collections/object-map-editor.d.ts +10 -0
  158. package/dist/cli/menu/settings/collections/object-map-editor.js +35 -0
  159. package/dist/cli/menu/settings/collections/string-list-editor.d.ts +12 -0
  160. package/dist/cli/menu/settings/collections/string-list-editor.js +39 -0
  161. package/dist/cli/menu/settings/config-file.d.ts +11 -2
  162. package/dist/cli/menu/settings/config-file.js +60 -26
  163. package/dist/cli/menu/settings/draft.d.ts +26 -0
  164. package/dist/cli/menu/settings/draft.js +67 -0
  165. package/dist/cli/menu/settings/editor-actions.d.ts +1 -0
  166. package/dist/cli/menu/settings/editor-actions.js +1 -0
  167. package/dist/cli/menu/settings/format.d.ts +5 -0
  168. package/dist/cli/menu/settings/format.js +39 -0
  169. package/dist/cli/menu/settings/index.d.ts +2 -30
  170. package/dist/cli/menu/settings/index.js +1 -133
  171. package/dist/cli/menu/settings/object-editor.d.ts +12 -0
  172. package/dist/cli/menu/settings/object-editor.js +66 -0
  173. package/dist/cli/menu/settings/schema-node.d.ts +3 -1
  174. package/dist/cli/menu/settings/schema-node.js +71 -24
  175. package/dist/cli/menu/settings/value-editor.d.ts +19 -0
  176. package/dist/cli/menu/settings/value-editor.js +137 -0
  177. package/dist/cli/menu/several.d.ts +4 -4
  178. package/dist/cli/menu/several.js +61 -20
  179. package/dist/cli/menu/shell.d.ts +54 -0
  180. package/dist/cli/menu/shell.js +109 -0
  181. package/dist/cli/output/colors.d.ts +24 -0
  182. package/dist/cli/output/colors.js +60 -0
  183. package/dist/cli/output/index.d.ts +3 -0
  184. package/dist/cli/output/index.js +3 -0
  185. package/dist/cli/output/print.d.ts +5 -0
  186. package/dist/cli/output/print.js +14 -0
  187. package/dist/cli/output/progress.d.ts +24 -0
  188. package/dist/cli/output/progress.js +124 -0
  189. package/dist/cli/report.d.ts +2 -0
  190. package/dist/cli/report.js +20 -0
  191. package/dist/cli/services/accounts-service.d.ts +44 -0
  192. package/dist/cli/services/accounts-service.js +115 -0
  193. package/dist/cli/services/agent-commands-service.d.ts +22 -0
  194. package/dist/cli/services/agent-commands-service.js +44 -0
  195. package/dist/cli/services/data-service.d.ts +43 -0
  196. package/dist/cli/services/data-service.js +66 -0
  197. package/dist/cli/services/data-targets.d.ts +13 -0
  198. package/dist/cli/services/data-targets.js +67 -0
  199. package/dist/cli/services/databases-service.d.ts +27 -0
  200. package/dist/cli/services/databases-service.js +57 -0
  201. package/dist/cli/services/health-service.d.ts +28 -0
  202. package/dist/cli/services/health-service.js +120 -0
  203. package/dist/cli/services/index.d.ts +12 -0
  204. package/dist/cli/services/index.js +12 -0
  205. package/dist/cli/services/logs-service.d.ts +25 -0
  206. package/dist/cli/services/logs-service.js +54 -0
  207. package/dist/cli/services/migrate-service.d.ts +29 -0
  208. package/dist/cli/services/migrate-service.js +43 -0
  209. package/dist/cli/services/projects-service.d.ts +56 -0
  210. package/dist/cli/services/projects-service.js +111 -0
  211. package/dist/cli/services/sandbox-service.d.ts +78 -0
  212. package/dist/cli/services/sandbox-service.js +125 -0
  213. package/dist/cli/services/sessions-service.d.ts +42 -0
  214. package/dist/cli/services/sessions-service.js +81 -0
  215. package/dist/cli/services/update-service.d.ts +74 -0
  216. package/dist/cli/services/update-service.js +185 -0
  217. package/dist/cli/tui/app.d.ts +19 -16
  218. package/dist/cli/tui/app.js +65 -11
  219. package/dist/cli/tui/dialogs/confirm-screen.d.ts +20 -0
  220. package/dist/cli/tui/dialogs/confirm-screen.js +50 -0
  221. package/dist/cli/tui/dialogs/message-screen.d.ts +17 -0
  222. package/dist/cli/tui/dialogs/message-screen.js +55 -0
  223. package/dist/cli/tui/dialogs/overlay.d.ts +34 -0
  224. package/dist/cli/tui/dialogs/overlay.js +104 -0
  225. package/dist/cli/tui/dialogs/paragraphs.d.ts +2 -0
  226. package/dist/cli/tui/dialogs/paragraphs.js +5 -0
  227. package/dist/cli/tui/dialogs/text-screen.d.ts +26 -0
  228. package/dist/cli/tui/dialogs/text-screen.js +107 -0
  229. package/dist/cli/tui/frame.d.ts +13 -4
  230. package/dist/cli/tui/frame.js +13 -9
  231. package/dist/cli/tui/index.d.ts +11 -4
  232. package/dist/cli/tui/index.js +7 -2
  233. package/dist/cli/tui/key-bar.d.ts +5 -0
  234. package/dist/cli/tui/key-bar.js +22 -0
  235. package/dist/cli/tui/list/list-screen.d.ts +38 -0
  236. package/dist/cli/tui/list/list-screen.js +402 -0
  237. package/dist/cli/tui/list/list-types.d.ts +84 -0
  238. package/dist/cli/tui/screen.d.ts +14 -0
  239. package/dist/cli/tui/tab-bar.d.ts +9 -0
  240. package/dist/cli/tui/tab-bar.js +33 -0
  241. package/dist/cli/tui/terminal.js +34 -10
  242. package/dist/cli/tui/text.d.ts +2 -1
  243. package/dist/cli/tui/text.js +40 -7
  244. package/dist/cli/tui/theme.js +27 -9
  245. package/dist/cli/validate.d.ts +8 -8
  246. package/dist/cli/validate.js +32 -21
  247. package/dist/core/config/defaults.d.ts +2 -0
  248. package/dist/core/config/defaults.js +273 -0
  249. package/dist/core/config/index.d.ts +2 -0
  250. package/dist/core/config/index.js +3 -0
  251. package/dist/core/config/loader.d.ts +20 -0
  252. package/dist/core/config/loader.js +88 -0
  253. package/dist/core/detect/databases.d.ts +15 -0
  254. package/dist/core/detect/databases.js +235 -0
  255. package/dist/core/detect/index.d.ts +4 -0
  256. package/dist/core/detect/index.js +4 -0
  257. package/dist/core/detect/pwsh.d.ts +18 -0
  258. package/dist/core/detect/pwsh.js +125 -0
  259. package/dist/core/detect/toolchains.d.ts +33 -0
  260. package/dist/core/detect/toolchains.js +104 -0
  261. package/dist/core/detect/versions.d.ts +55 -0
  262. package/dist/core/detect/versions.js +107 -0
  263. package/dist/core/disk.d.ts +14 -6
  264. package/dist/core/disk.js +62 -13
  265. package/dist/core/local-config/boot-wants.d.ts +45 -0
  266. package/dist/core/local-config/boot-wants.js +120 -0
  267. package/dist/core/local-config/file.d.ts +3 -0
  268. package/dist/core/local-config/file.js +16 -0
  269. package/dist/core/local-config/index.d.ts +5 -0
  270. package/dist/core/local-config/index.js +7 -0
  271. package/dist/core/local-config/overrides.d.ts +35 -0
  272. package/dist/core/local-config/overrides.js +137 -0
  273. package/dist/core/local-config/policy.d.ts +19 -0
  274. package/dist/core/local-config/policy.js +47 -0
  275. package/dist/core/local-config/trust.d.ts +13 -0
  276. package/dist/core/local-config/trust.js +51 -0
  277. package/dist/core/package-info.d.ts +4 -0
  278. package/dist/core/package-info.js +13 -0
  279. package/dist/core/prompt.d.ts +2 -2
  280. package/dist/core/prompt.js +6 -5
  281. package/dist/core/run/guest-workspace.d.ts +27 -0
  282. package/dist/core/run/guest-workspace.js +50 -0
  283. package/dist/core/run/index.d.ts +3 -0
  284. package/dist/core/run/index.js +3 -0
  285. package/dist/core/run/resolve-run.d.ts +6 -0
  286. package/dist/core/run/resolve-run.js +205 -0
  287. package/dist/core/run/versions.d.ts +13 -0
  288. package/dist/core/run/versions.js +65 -0
  289. package/dist/core/safe-paths.d.ts +6 -3
  290. package/dist/core/safe-paths.js +25 -10
  291. package/dist/core/schema/apps.d.ts +4 -4
  292. package/dist/core/schema/apps.js +55 -21
  293. package/dist/core/schema/common.d.ts +14 -11
  294. package/dist/core/schema/common.js +23 -11
  295. package/dist/core/schema/config.d.ts +44 -20
  296. package/dist/core/schema/config.js +81 -53
  297. package/dist/core/schema/databases.d.ts +4 -3
  298. package/dist/core/schema/databases.js +18 -12
  299. package/dist/core/schema/harness.d.ts +15 -1
  300. package/dist/core/schema/harness.js +42 -7
  301. package/dist/core/schema/index.d.ts +6 -0
  302. package/dist/core/schema/index.js +8 -0
  303. package/dist/core/schema/json-schema.d.ts +2 -2
  304. package/dist/core/schema/json-schema.js +20 -13
  305. package/dist/core/schema/profile.d.ts +4 -4
  306. package/dist/core/schema/profile.js +37 -17
  307. package/dist/core/schema/projects.d.ts +1 -1
  308. package/dist/core/schema/projects.js +16 -6
  309. package/dist/core/schema/resume.d.ts +11 -0
  310. package/dist/core/schema/resume.js +12 -0
  311. package/dist/core/schema/sandbox.d.ts +14 -11
  312. package/dist/core/schema/sandbox.js +106 -37
  313. package/dist/core/schema/toolchains.d.ts +9 -4
  314. package/dist/core/schema/toolchains.js +88 -36
  315. package/dist/core/types.d.ts +39 -12
  316. package/dist/core/util/errors.d.ts +8 -0
  317. package/dist/core/util/errors.js +16 -0
  318. package/dist/core/util/fs.d.ts +8 -0
  319. package/dist/core/util/fs.js +44 -0
  320. package/dist/core/util/index.d.ts +7 -0
  321. package/dist/core/util/index.js +7 -0
  322. package/dist/core/util/jsonc.d.ts +6 -0
  323. package/dist/core/util/jsonc.js +30 -0
  324. package/dist/core/util/links.d.ts +10 -0
  325. package/dist/core/util/links.js +39 -0
  326. package/dist/core/util/paths.d.ts +9 -0
  327. package/dist/core/util/paths.js +39 -0
  328. package/dist/core/util/process.d.ts +11 -0
  329. package/dist/core/util/process.js +13 -0
  330. package/dist/core/util/text.d.ts +10 -0
  331. package/dist/core/util/text.js +21 -0
  332. package/dist/guest/agents/agent-installer.d.ts +22 -0
  333. package/dist/guest/agents/agent-installer.js +124 -0
  334. package/dist/guest/agents/profile-links.d.ts +5 -0
  335. package/dist/guest/agents/profile-links.js +27 -0
  336. package/dist/guest/apps/after-install.d.ts +3 -0
  337. package/dist/guest/apps/after-install.js +47 -0
  338. package/dist/guest/apps/app-installer.d.ts +22 -0
  339. package/dist/guest/apps/app-installer.js +116 -0
  340. package/dist/guest/apps/find-exe.d.ts +5 -0
  341. package/dist/guest/apps/find-exe.js +41 -0
  342. package/dist/guest/apps/index.d.ts +3 -10
  343. package/dist/guest/apps/index.js +6 -206
  344. package/dist/guest/apps/resolvers.js +37 -9
  345. package/dist/guest/apps/shortcuts.d.ts +6 -0
  346. package/dist/guest/apps/shortcuts.js +19 -0
  347. package/dist/guest/apps/sources.d.ts +4 -0
  348. package/dist/guest/apps/sources.js +17 -0
  349. package/dist/guest/apps/unpack.d.ts +3 -0
  350. package/dist/guest/apps/unpack.js +47 -0
  351. package/dist/guest/audit/parse.d.ts +7 -0
  352. package/dist/guest/audit/parse.js +60 -0
  353. package/dist/guest/audit/process-audit.d.ts +6 -0
  354. package/dist/guest/audit/process-audit.js +72 -0
  355. package/dist/guest/boot/boot-env.d.ts +4 -0
  356. package/dist/guest/boot/boot-env.js +27 -0
  357. package/dist/guest/boot/boot.d.ts +18 -0
  358. package/dist/guest/boot/boot.js +242 -0
  359. package/dist/guest/boot/guide.d.ts +16 -0
  360. package/dist/guest/boot/guide.js +98 -0
  361. package/dist/guest/boot/project-env.d.ts +20 -0
  362. package/dist/guest/boot/project-env.js +28 -0
  363. package/dist/guest/boot/project-status.d.ts +5 -0
  364. package/dist/guest/boot/project-status.js +30 -0
  365. package/dist/guest/daemon/daemon.d.ts +7 -0
  366. package/dist/guest/daemon/daemon.js +57 -0
  367. package/dist/guest/daemon/exec.d.ts +3 -3
  368. package/dist/guest/daemon/exec.js +27 -11
  369. package/dist/guest/daemon/idle-shutdown.d.ts +8 -0
  370. package/dist/guest/daemon/idle-shutdown.js +34 -0
  371. package/dist/guest/daemon/project-provisioner.d.ts +23 -0
  372. package/dist/guest/daemon/project-provisioner.js +180 -0
  373. package/dist/guest/daemon/relays.d.ts +1 -1
  374. package/dist/guest/daemon/relays.js +7 -5
  375. package/dist/guest/daemon/sessions.d.ts +35 -0
  376. package/dist/guest/daemon/sessions.js +264 -0
  377. package/dist/guest/daemon/state.d.ts +9 -15
  378. package/dist/guest/daemon/state.js +40 -23
  379. package/dist/guest/databases/database-server.d.ts +13 -0
  380. package/dist/guest/databases/database-server.js +35 -0
  381. package/dist/guest/databases/dynamodb.d.ts +12 -0
  382. package/dist/guest/databases/dynamodb.js +81 -0
  383. package/dist/guest/databases/index.d.ts +2 -0
  384. package/dist/guest/databases/index.js +2 -0
  385. package/dist/guest/databases/mongodb.d.ts +7 -0
  386. package/dist/guest/databases/mongodb.js +46 -0
  387. package/dist/guest/databases/mysql.d.ts +7 -0
  388. package/dist/guest/databases/mysql.js +59 -0
  389. package/dist/guest/databases/names.d.ts +5 -0
  390. package/dist/guest/databases/names.js +8 -0
  391. package/dist/guest/databases/postgres.d.ts +9 -0
  392. package/dist/guest/databases/postgres.js +85 -0
  393. package/dist/guest/databases/redis.d.ts +7 -0
  394. package/dist/guest/databases/redis.js +25 -0
  395. package/dist/guest/databases/registry.d.ts +5 -0
  396. package/dist/guest/databases/registry.js +51 -0
  397. package/dist/guest/databases/sbx-db.d.ts +1 -0
  398. package/dist/guest/databases/sbx-db.js +75 -0
  399. package/dist/guest/databases/server.d.ts +14 -0
  400. package/dist/guest/databases/server.js +57 -0
  401. package/dist/guest/entries/daemon.js +16 -0
  402. package/dist/guest/entries/db.js +12 -0
  403. package/dist/guest/entries/gitguard.js +20 -0
  404. package/dist/guest/entries/main.d.ts +1 -0
  405. package/dist/guest/entries/main.js +24 -0
  406. package/dist/guest/entries/netproxy.d.ts +1 -0
  407. package/dist/guest/entries/netproxy.js +7 -0
  408. package/dist/guest/entries/view.d.ts +1 -0
  409. package/dist/guest/entries/view.js +11 -0
  410. package/dist/guest/git/decision.d.ts +7 -0
  411. package/dist/guest/git/decision.js +83 -0
  412. package/dist/guest/network/addresses.d.ts +2 -0
  413. package/dist/guest/network/addresses.js +8 -0
  414. package/dist/guest/network/allow-only.d.ts +9 -0
  415. package/dist/guest/network/allow-only.js +84 -0
  416. package/dist/guest/network/firewall.d.ts +9 -0
  417. package/dist/guest/network/firewall.js +187 -0
  418. package/dist/guest/network/proxy-server.d.ts +2 -0
  419. package/dist/guest/network/proxy-server.js +119 -0
  420. package/dist/guest/runtime/csc.d.ts +13 -0
  421. package/dist/guest/runtime/csc.js +48 -0
  422. package/dist/guest/runtime/fs.d.ts +2 -0
  423. package/dist/guest/runtime/fs.js +8 -0
  424. package/dist/guest/runtime/log.d.ts +3 -0
  425. package/dist/guest/runtime/log.js +22 -0
  426. package/dist/guest/runtime/paths.d.ts +13 -0
  427. package/dist/guest/runtime/paths.js +14 -0
  428. package/dist/guest/runtime/ports.d.ts +8 -0
  429. package/dist/guest/runtime/ports.js +34 -0
  430. package/dist/guest/runtime/process.d.ts +23 -0
  431. package/dist/guest/runtime/process.js +83 -0
  432. package/dist/guest/runtime/project-context.d.ts +7 -0
  433. package/dist/guest/runtime/project-context.js +16 -0
  434. package/dist/guest/runtime/session.d.ts +5 -0
  435. package/dist/guest/runtime/session.js +10 -0
  436. package/dist/guest/runtime/status.d.ts +7 -0
  437. package/dist/guest/runtime/status.js +57 -0
  438. package/dist/guest/sessions/cmdline.d.ts +12 -0
  439. package/dist/guest/sessions/cmdline.js +33 -0
  440. package/dist/guest/sessions/conversation.d.ts +5 -0
  441. package/dist/guest/sessions/conversation.js +38 -0
  442. package/dist/guest/sessions/pty-host.d.ts +22 -0
  443. package/dist/guest/sessions/pty-host.js +60 -0
  444. package/dist/guest/sessions/viewer.d.ts +1 -0
  445. package/dist/guest/sessions/viewer.js +39 -0
  446. package/dist/guest/setup/claude-mem.d.ts +10 -0
  447. package/dist/guest/setup/claude-mem.js +135 -0
  448. package/dist/guest/setup/claude-profile.d.ts +7 -0
  449. package/dist/guest/setup/claude-profile.js +89 -0
  450. package/dist/guest/setup/desktop.d.ts +2 -0
  451. package/dist/guest/setup/desktop.js +23 -0
  452. package/dist/guest/setup/environment.d.ts +3 -3
  453. package/dist/guest/setup/environment.js +42 -26
  454. package/dist/guest/setup/git-identity.d.ts +5 -0
  455. package/dist/guest/setup/git-identity.js +34 -0
  456. package/dist/guest/setup/git-rules.d.ts +2 -0
  457. package/dist/guest/setup/git-rules.js +50 -0
  458. package/dist/guest/setup/hooks.d.ts +3 -3
  459. package/dist/guest/setup/hooks.js +28 -9
  460. package/dist/guest/setup/managed-policy.d.ts +3 -0
  461. package/dist/guest/setup/managed-policy.js +20 -0
  462. package/dist/guest/toolchains/catalogue.d.ts +4 -4
  463. package/dist/guest/toolchains/catalogue.js +30 -7
  464. package/dist/guest/toolchains/detect.d.ts +12 -0
  465. package/dist/guest/toolchains/detect.js +54 -0
  466. package/dist/guest/toolchains/index.d.ts +3 -17
  467. package/dist/guest/toolchains/index.js +1 -106
  468. package/dist/guest/toolchains/install.d.ts +20 -0
  469. package/dist/guest/toolchains/install.js +29 -0
  470. package/dist/guest/toolchains/languages/go.d.ts +3 -0
  471. package/dist/guest/toolchains/languages/go.js +51 -0
  472. package/dist/guest/toolchains/languages/java.d.ts +8 -0
  473. package/dist/guest/toolchains/languages/java.js +135 -0
  474. package/dist/guest/toolchains/languages/node.d.ts +3 -0
  475. package/dist/guest/toolchains/languages/node.js +185 -0
  476. package/dist/guest/toolchains/languages/php.d.ts +3 -0
  477. package/dist/guest/toolchains/languages/php.js +96 -0
  478. package/dist/guest/toolchains/languages/python-tools.d.ts +3 -0
  479. package/dist/guest/toolchains/languages/python-tools.js +12 -0
  480. package/dist/guest/toolchains/languages/python.d.ts +3 -0
  481. package/dist/guest/toolchains/languages/python.js +91 -0
  482. package/dist/guest/toolchains/languages/ruby.d.ts +3 -0
  483. package/dist/guest/toolchains/languages/ruby.js +65 -0
  484. package/dist/guest/toolchains/leftovers.d.ts +1 -1
  485. package/dist/guest/toolchains/leftovers.js +13 -11
  486. package/dist/guest/toolchains/managers.d.ts +6 -6
  487. package/dist/guest/toolchains/managers.js +38 -17
  488. package/dist/guest/toolchains/native/binstall.d.ts +3 -2
  489. package/dist/guest/toolchains/native/binstall.js +20 -8
  490. package/dist/guest/toolchains/native/cpp.d.ts +2 -2
  491. package/dist/guest/toolchains/native/cpp.js +23 -8
  492. package/dist/guest/toolchains/native/dotnet.d.ts +5 -3
  493. package/dist/guest/toolchains/native/dotnet.js +72 -24
  494. package/dist/guest/toolchains/native/mesa.d.ts +2 -2
  495. package/dist/guest/toolchains/native/mesa.js +28 -11
  496. package/dist/guest/toolchains/native/msvc/environment.d.ts +4 -4
  497. package/dist/guest/toolchains/native/msvc/environment.js +30 -16
  498. package/dist/guest/toolchains/native/msvc/index.d.ts +3 -3
  499. package/dist/guest/toolchains/native/msvc/index.js +10 -8
  500. package/dist/guest/toolchains/native/msvc/packages.d.ts +1 -1
  501. package/dist/guest/toolchains/native/msvc/packages.js +69 -23
  502. package/dist/guest/toolchains/native/msvc/tree.d.ts +6 -6
  503. package/dist/guest/toolchains/native/msvc/tree.js +15 -9
  504. package/dist/guest/toolchains/native/rust-extras.d.ts +23 -0
  505. package/dist/guest/toolchains/native/rust-extras.js +100 -0
  506. package/dist/guest/toolchains/native/rust.d.ts +2 -2
  507. package/dist/guest/toolchains/native/rust.js +41 -10
  508. package/dist/guest/toolchains/native/vcruntime.d.ts +7 -0
  509. package/dist/guest/toolchains/native/vcruntime.js +47 -0
  510. package/dist/guest/toolchains/package-ledger.d.ts +17 -0
  511. package/dist/guest/toolchains/package-ledger.js +54 -0
  512. package/dist/guest/toolchains/plan.d.ts +3 -24
  513. package/dist/guest/toolchains/plan.js +104 -111
  514. package/dist/guest/toolchains/runtimes.d.ts +6 -6
  515. package/dist/guest/toolchains/runtimes.js +31 -13
  516. package/dist/guest/toolchains/scheduler.d.ts +22 -0
  517. package/dist/guest/toolchains/scheduler.js +123 -0
  518. package/dist/guest/toolchains/setup.d.ts +10 -0
  519. package/dist/guest/toolchains/setup.js +22 -0
  520. package/dist/guest/toolchains/state-file.d.ts +3 -0
  521. package/dist/guest/toolchains/state-file.js +10 -0
  522. package/dist/guest/toolchains/step.d.ts +24 -0
  523. package/dist/guest/toolchains/step.js +1 -0
  524. package/dist/guest/toolchains/tool-env.d.ts +12 -0
  525. package/dist/guest/toolchains/tool-env.js +16 -0
  526. package/dist/guest/toolchains/tools/cli.d.ts +10 -0
  527. package/dist/guest/toolchains/tools/cli.js +92 -0
  528. package/dist/guest/toolchains/tools/git.d.ts +3 -0
  529. package/dist/guest/toolchains/tools/git.js +144 -0
  530. package/dist/guest/toolchains/tools/pwsh.d.ts +4 -0
  531. package/dist/guest/toolchains/tools/pwsh.js +21 -0
  532. package/dist/guest/toolchains/tools/vscode-profile.d.ts +30 -0
  533. package/dist/guest/toolchains/tools/vscode-profile.js +85 -0
  534. package/dist/guest/toolchains/tools/vscode.d.ts +19 -0
  535. package/dist/guest/toolchains/tools/vscode.js +180 -0
  536. package/dist/guest/toolchains/version-cache.d.ts +16 -0
  537. package/dist/guest/toolchains/version-cache.js +67 -0
  538. package/dist/host/agent-commands/commands.d.ts +13 -0
  539. package/dist/host/agent-commands/commands.js +37 -0
  540. package/dist/host/agent-commands/forwarders.d.ts +7 -0
  541. package/dist/host/agent-commands/forwarders.js +33 -0
  542. package/dist/host/agent-commands/index.d.ts +4 -0
  543. package/dist/host/agent-commands/index.js +4 -0
  544. package/dist/host/agent-commands/reconcile.d.ts +12 -0
  545. package/dist/host/agent-commands/reconcile.js +69 -0
  546. package/dist/host/agent-commands/user-path.d.ts +5 -0
  547. package/dist/host/agent-commands/user-path.js +25 -0
  548. package/dist/host/audit/collect.d.ts +4 -4
  549. package/dist/host/audit/collect.js +63 -22
  550. package/dist/host/audit/log.d.ts +3 -3
  551. package/dist/host/audit/log.js +26 -10
  552. package/dist/host/channel/attach.d.ts +17 -0
  553. package/dist/host/channel/attach.js +88 -0
  554. package/dist/host/channel/channel.d.ts +53 -0
  555. package/dist/host/channel/channel.js +198 -0
  556. package/dist/host/channel/index.d.ts +2 -0
  557. package/dist/host/channel/index.js +2 -0
  558. package/dist/host/guard/agent-files.d.ts +7 -0
  559. package/dist/host/guard/agent-files.js +103 -0
  560. package/dist/host/guard/commands.d.ts +10 -0
  561. package/dist/host/guard/commands.js +123 -0
  562. package/dist/host/guard/file-hash.d.ts +4 -0
  563. package/dist/host/guard/file-hash.js +37 -0
  564. package/dist/host/guard/git-config.d.ts +5 -0
  565. package/dist/host/guard/git-config.js +62 -0
  566. package/dist/host/guard/git-dirs.d.ts +12 -0
  567. package/dist/host/guard/git-dirs.js +53 -0
  568. package/dist/host/guard/index.d.ts +5 -0
  569. package/dist/host/guard/index.js +4 -0
  570. package/dist/host/guard/mark-of-the-web.d.ts +8 -0
  571. package/dist/host/guard/mark-of-the-web.js +74 -0
  572. package/dist/host/guard/nested-repos.d.ts +14 -0
  573. package/dist/host/guard/nested-repos.js +88 -0
  574. package/dist/host/guard/quarantine.d.ts +3 -0
  575. package/dist/host/guard/quarantine.js +24 -0
  576. package/dist/host/guard/repo-guard.d.ts +10 -0
  577. package/dist/host/guard/repo-guard.js +36 -0
  578. package/dist/host/guard/store.d.ts +40 -0
  579. package/dist/host/guard/store.js +145 -0
  580. package/dist/host/guard/types.d.ts +27 -0
  581. package/dist/host/guard/types.js +3 -0
  582. package/dist/host/guard/watch-state.d.ts +9 -0
  583. package/dist/host/guard/watch-state.js +26 -0
  584. package/dist/host/install/index.d.ts +4 -0
  585. package/dist/host/install/index.js +4 -0
  586. package/dist/host/install/install-record.d.ts +19 -0
  587. package/dist/host/install/install-record.js +28 -0
  588. package/dist/host/install/layout.d.ts +29 -0
  589. package/dist/host/install/layout.js +111 -0
  590. package/dist/host/install/scheduled-task.d.ts +10 -0
  591. package/dist/host/install/scheduled-task.js +40 -0
  592. package/dist/host/install/shims.d.ts +10 -0
  593. package/dist/host/install/shims.js +55 -0
  594. package/dist/host/launch/boot-projects.d.ts +17 -0
  595. package/dist/host/launch/boot-projects.js +71 -0
  596. package/dist/host/launch/database-plan.d.ts +12 -0
  597. package/dist/host/launch/database-plan.js +63 -0
  598. package/dist/host/launch/generate.d.ts +4 -0
  599. package/dist/host/launch/generate.js +77 -0
  600. package/dist/host/launch/index.d.ts +10 -0
  601. package/dist/host/launch/index.js +10 -0
  602. package/dist/host/launch/mappings.d.ts +5 -5
  603. package/dist/host/launch/mappings.js +41 -26
  604. package/dist/host/launch/pc-scan.d.ts +5 -0
  605. package/dist/host/launch/pc-scan.js +51 -0
  606. package/dist/host/launch/project-scan.d.ts +9 -0
  607. package/dist/host/launch/project-scan.js +112 -0
  608. package/dist/host/launch/session-file.d.ts +23 -0
  609. package/dist/host/launch/session-file.js +75 -0
  610. package/dist/host/launch/stage.d.ts +5 -5
  611. package/dist/host/launch/stage.js +14 -13
  612. package/dist/host/launch/toolchains.d.ts +4 -0
  613. package/dist/host/launch/toolchains.js +21 -0
  614. package/dist/host/launch/wsb-file.d.ts +12 -0
  615. package/dist/host/launch/wsb-file.js +56 -0
  616. package/dist/host/life/crash-report.d.ts +10 -0
  617. package/dist/host/life/crash-report.js +89 -0
  618. package/dist/host/life/index.d.ts +7 -0
  619. package/dist/host/life/index.js +7 -0
  620. package/dist/host/life/keep-awake.d.ts +11 -0
  621. package/dist/host/life/keep-awake.js +32 -0
  622. package/dist/host/life/life-record.d.ts +48 -0
  623. package/dist/host/life/life-record.js +75 -0
  624. package/dist/host/life/session-ledger.d.ts +65 -0
  625. package/dist/host/life/session-ledger.js +163 -0
  626. package/dist/host/life/stop-events.d.ts +27 -0
  627. package/dist/host/life/stop-events.js +98 -0
  628. package/dist/host/life/stop-warning.d.ts +4 -0
  629. package/dist/host/life/stop-warning.js +25 -0
  630. package/dist/host/life/windows-update.d.ts +3 -0
  631. package/dist/host/life/windows-update.js +13 -0
  632. package/dist/host/migrate/backup.d.ts +15 -0
  633. package/dist/host/migrate/backup.js +92 -0
  634. package/dist/host/migrate/index.d.ts +5 -0
  635. package/dist/host/migrate/index.js +4 -0
  636. package/dist/host/migrate/marker.d.ts +21 -0
  637. package/dist/host/migrate/marker.js +49 -0
  638. package/dist/host/migrate/migration.d.ts +26 -0
  639. package/dist/host/migrate/migration.js +3 -0
  640. package/dist/host/migrate/migrations/config-file.d.ts +8 -0
  641. package/dist/host/migrate/migrations/config-file.js +28 -0
  642. package/dist/host/migrate/migrations/follow-machine-storage.d.ts +2 -0
  643. package/dist/host/migrate/migrations/follow-machine-storage.js +36 -0
  644. package/dist/host/migrate/migrations/unpin-config-defaults.d.ts +2 -0
  645. package/dist/host/migrate/migrations/unpin-config-defaults.js +41 -0
  646. package/dist/host/migrate/registry.d.ts +2 -0
  647. package/dist/host/migrate/registry.js +3 -0
  648. package/dist/host/migrate/runner.d.ts +21 -0
  649. package/dist/host/migrate/runner.js +67 -0
  650. package/dist/host/migrate/snapshots.d.ts +6 -0
  651. package/dist/host/migrate/snapshots.js +2200 -0
  652. package/dist/host/native.d.ts +9 -0
  653. package/dist/host/native.js +61 -0
  654. package/dist/host/network/index.d.ts +1 -0
  655. package/dist/host/network/index.js +1 -0
  656. package/dist/host/network/port-forward.d.ts +8 -0
  657. package/dist/host/network/port-forward.js +49 -0
  658. package/dist/host/profile/accounts.d.ts +38 -0
  659. package/dist/host/profile/accounts.js +159 -0
  660. package/dist/host/profile/agent-accounts.d.ts +29 -0
  661. package/dist/host/profile/agent-accounts.js +169 -0
  662. package/dist/host/profile/claude-login.d.ts +22 -0
  663. package/dist/host/profile/claude-login.js +57 -0
  664. package/dist/host/profile/claude-profile.d.ts +15 -0
  665. package/dist/host/profile/claude-profile.js +117 -0
  666. package/dist/host/profile/index.d.ts +8 -0
  667. package/dist/host/profile/index.js +8 -0
  668. package/dist/host/profile/personalize.d.ts +2 -0
  669. package/dist/host/profile/personalize.js +130 -0
  670. package/dist/host/profile/reg-file.d.ts +8 -0
  671. package/dist/host/profile/reg-file.js +45 -0
  672. package/dist/host/profile/secret-files.d.ts +2 -0
  673. package/dist/host/profile/secret-files.js +25 -0
  674. package/dist/host/profile/secret-patterns.d.ts +6 -0
  675. package/dist/host/profile/secret-patterns.js +128 -0
  676. package/dist/host/profile/secrets.d.ts +12 -0
  677. package/dist/host/profile/secrets.js +100 -0
  678. package/dist/host/projects/index.d.ts +4 -0
  679. package/dist/host/projects/index.js +4 -0
  680. package/dist/host/projects/join.d.ts +38 -0
  681. package/dist/host/projects/join.js +119 -0
  682. package/dist/host/projects/known.d.ts +28 -0
  683. package/dist/host/projects/known.js +55 -0
  684. package/dist/host/projects/mapper.d.ts +29 -0
  685. package/dist/host/projects/mapper.js +88 -0
  686. package/dist/host/projects/registry.d.ts +94 -0
  687. package/dist/host/projects/registry.js +164 -0
  688. package/dist/host/sandbox/doctor.d.ts +2 -0
  689. package/dist/host/sandbox/doctor.js +42 -0
  690. package/dist/host/sandbox/host-claude.d.ts +4 -0
  691. package/dist/host/sandbox/host-claude.js +47 -0
  692. package/dist/host/sandbox/index.d.ts +6 -0
  693. package/dist/host/sandbox/index.js +6 -0
  694. package/dist/host/sandbox/platform.d.ts +16 -0
  695. package/dist/host/sandbox/platform.js +72 -0
  696. package/dist/host/sandbox/probe.d.ts +3 -0
  697. package/dist/host/sandbox/probe.js +47 -0
  698. package/dist/host/sandbox/window.d.ts +4 -0
  699. package/dist/host/sandbox/window.js +54 -0
  700. package/dist/host/sandbox/wsb-cli.d.ts +37 -0
  701. package/dist/host/sandbox/wsb-cli.js +136 -0
  702. package/dist/host/sharing/acl.d.ts +30 -0
  703. package/dist/host/sharing/acl.js +65 -0
  704. package/dist/host/sharing/active-record.d.ts +27 -0
  705. package/dist/host/sharing/active-record.js +70 -0
  706. package/dist/host/sharing/borrow.d.ts +11 -0
  707. package/dist/host/sharing/borrow.js +20 -0
  708. package/dist/host/sharing/current.d.ts +11 -0
  709. package/dist/host/sharing/current.js +37 -0
  710. package/dist/host/sharing/index.d.ts +8 -0
  711. package/dist/host/sharing/index.js +10 -0
  712. package/dist/host/sharing/lifecycle.d.ts +26 -0
  713. package/dist/host/sharing/lifecycle.js +79 -0
  714. package/dist/host/sharing/machine-paths.d.ts +6 -0
  715. package/dist/host/sharing/machine-paths.js +13 -0
  716. package/dist/host/sharing/owner.d.ts +28 -0
  717. package/dist/host/sharing/owner.js +73 -0
  718. package/dist/host/sharing/rules.d.ts +39 -0
  719. package/dist/host/sharing/rules.js +60 -0
  720. package/dist/host/storage/cleanup.d.ts +24 -0
  721. package/dist/host/storage/cleanup.js +75 -0
  722. package/dist/host/storage/index.d.ts +2 -0
  723. package/dist/host/storage/index.js +2 -0
  724. package/dist/host/storage/state-files.d.ts +4 -0
  725. package/dist/host/storage/state-files.js +10 -0
  726. package/dist/host/test-guard.d.ts +2 -2
  727. package/dist/host/test-guard.js +7 -6
  728. package/dist/host/tools/conpty.d.ts +8 -0
  729. package/dist/host/tools/conpty.js +60 -0
  730. package/dist/host/tools/index.d.ts +2 -0
  731. package/dist/host/tools/index.js +2 -0
  732. package/dist/host/tools/windows-terminal.d.ts +32 -0
  733. package/dist/host/tools/windows-terminal.js +154 -0
  734. package/dist/host/update/decision.d.ts +29 -0
  735. package/dist/host/update/decision.js +32 -0
  736. package/dist/host/update/index.d.ts +6 -0
  737. package/dist/host/update/index.js +6 -0
  738. package/dist/host/update/notice.d.ts +11 -0
  739. package/dist/host/update/notice.js +28 -0
  740. package/dist/host/update/release-source.d.ts +32 -0
  741. package/dist/host/update/release-source.js +79 -0
  742. package/dist/host/update/update-lock.d.ts +7 -0
  743. package/dist/host/update/update-lock.js +48 -0
  744. package/dist/host/update/update-state.d.ts +24 -0
  745. package/dist/host/update/update-state.js +24 -0
  746. package/dist/host/update/updater.d.ts +62 -0
  747. package/dist/host/update/updater.js +241 -0
  748. package/dist/host/workspace-view/active-views.d.ts +3 -0
  749. package/dist/host/workspace-view/active-views.js +26 -0
  750. package/dist/host/workspace-view/index.d.ts +2 -18
  751. package/dist/host/workspace-view/index.js +2 -49
  752. package/dist/host/workspace-view/plan.d.ts +16 -0
  753. package/dist/host/workspace-view/plan.js +52 -0
  754. package/dist/host/workspace-view/rules.d.ts +3 -1
  755. package/dist/host/workspace-view/rules.js +13 -4
  756. package/dist/host/workspace-view/view-state.d.ts +10 -0
  757. package/dist/host/workspace-view/view-state.js +31 -0
  758. package/dist/host/workspace-view/view.d.ts +1 -0
  759. package/dist/host/workspace-view/view.js +51 -55
  760. package/dist/runtime/daemon.js +4924 -2311
  761. package/dist/runtime/db.js +2303 -898
  762. package/dist/runtime/gitguard.js +31 -13
  763. package/dist/runtime/main.js +5129 -2490
  764. package/dist/runtime/netproxy.js +1741 -428
  765. package/dist/runtime/view.js +1542 -558
  766. package/dist/selftest/accounts.test.d.ts +1 -1
  767. package/dist/selftest/accounts.test.js +24 -21
  768. package/dist/selftest/agent-commands.test.d.ts +1 -1
  769. package/dist/selftest/agent-commands.test.js +16 -12
  770. package/dist/selftest/audit.test.d.ts +1 -1
  771. package/dist/selftest/audit.test.js +46 -13
  772. package/dist/selftest/channel.test.d.ts +1 -1
  773. package/dist/selftest/channel.test.js +113 -60
  774. package/dist/selftest/cli.test.d.ts +1 -1
  775. package/dist/selftest/cli.test.js +95 -84
  776. package/dist/selftest/cmdline.test.d.ts +1 -1
  777. package/dist/selftest/cmdline.test.js +40 -10
  778. package/dist/selftest/config.test.d.ts +1 -1
  779. package/dist/selftest/config.test.js +12 -5
  780. package/dist/selftest/data.test.d.ts +1 -1
  781. package/dist/selftest/data.test.js +71 -24
  782. package/dist/selftest/detect.test.d.ts +1 -1
  783. package/dist/selftest/detect.test.js +56 -28
  784. package/dist/selftest/generate.test.d.ts +1 -1
  785. package/dist/selftest/generate.test.js +58 -32
  786. package/dist/selftest/git-access.test.d.ts +1 -1
  787. package/dist/selftest/git-access.test.js +44 -5
  788. package/dist/selftest/guest-boot.test.d.ts +1 -1
  789. package/dist/selftest/guest-boot.test.js +61 -41
  790. package/dist/selftest/host-sim.test.d.ts +1 -1
  791. package/dist/selftest/host-sim.test.js +30 -3
  792. package/dist/selftest/hostile-input.test.d.ts +1 -1
  793. package/dist/selftest/hostile-input.test.js +7 -5
  794. package/dist/selftest/index.d.ts +4 -4
  795. package/dist/selftest/index.js +109 -25
  796. package/dist/selftest/install.test.d.ts +2 -0
  797. package/dist/selftest/install.test.js +49 -0
  798. package/dist/selftest/layout.test.d.ts +2 -0
  799. package/dist/selftest/layout.test.js +131 -0
  800. package/dist/selftest/links.test.d.ts +1 -1
  801. package/dist/selftest/links.test.js +16 -11
  802. package/dist/selftest/live-daemon.test.d.ts +1 -1
  803. package/dist/selftest/live-daemon.test.js +34 -22
  804. package/dist/selftest/live-git.test.d.ts +1 -1
  805. package/dist/selftest/live-git.test.js +15 -6
  806. package/dist/selftest/live-network.test.d.ts +1 -1
  807. package/dist/selftest/live-network.test.js +75 -11
  808. package/dist/selftest/live-projects.test.d.ts +1 -1
  809. package/dist/selftest/live-projects.test.js +62 -31
  810. package/dist/selftest/live-terminal.test.d.ts +1 -1
  811. package/dist/selftest/live-terminal.test.js +69 -31
  812. package/dist/selftest/local-config.test.d.ts +1 -1
  813. package/dist/selftest/local-config.test.js +88 -41
  814. package/dist/selftest/menu-screens.d.ts +2 -0
  815. package/dist/selftest/menu-screens.js +224 -0
  816. package/dist/selftest/menu.test.d.ts +2 -0
  817. package/dist/selftest/menu.test.js +149 -0
  818. package/dist/selftest/migrate.test.d.ts +2 -0
  819. package/dist/selftest/migrate.test.js +194 -0
  820. package/dist/selftest/mirror.test.d.ts +1 -1
  821. package/dist/selftest/mirror.test.js +108 -69
  822. package/dist/selftest/network.test.d.ts +1 -1
  823. package/dist/selftest/network.test.js +21 -12
  824. package/dist/selftest/personalization.test.d.ts +1 -1
  825. package/dist/selftest/personalization.test.js +26 -20
  826. package/dist/selftest/projects.test.d.ts +1 -1
  827. package/dist/selftest/projects.test.js +423 -215
  828. package/dist/selftest/repair.test.d.ts +1 -1
  829. package/dist/selftest/repair.test.js +17 -5
  830. package/dist/selftest/repo-guard.test.d.ts +1 -1
  831. package/dist/selftest/repo-guard.test.js +51 -48
  832. package/dist/selftest/resume.test.d.ts +2 -0
  833. package/dist/selftest/resume.test.js +175 -0
  834. package/dist/selftest/secrets.test.d.ts +1 -1
  835. package/dist/selftest/secrets.test.js +59 -15
  836. package/dist/selftest/setup.test.d.ts +1 -1
  837. package/dist/selftest/setup.test.js +56 -28
  838. package/dist/selftest/shared-use.test.d.ts +2 -0
  839. package/dist/selftest/shared-use.test.js +116 -0
  840. package/dist/selftest/sharing.test.d.ts +2 -0
  841. package/dist/selftest/sharing.test.js +201 -0
  842. package/dist/selftest/support/fixtures.d.ts +337 -0
  843. package/dist/selftest/support/fixtures.js +173 -0
  844. package/dist/selftest/support/harness.d.ts +51 -0
  845. package/dist/selftest/support/harness.js +94 -0
  846. package/dist/selftest/support/live.d.ts +71 -0
  847. package/dist/selftest/support/live.js +144 -0
  848. package/dist/selftest/support/releases.d.ts +15 -0
  849. package/dist/selftest/support/releases.js +73 -0
  850. package/dist/selftest/support/suite.js +1 -0
  851. package/dist/selftest/sync.test.d.ts +1 -1
  852. package/dist/selftest/sync.test.js +103 -63
  853. package/dist/selftest/test-guard.test.d.ts +1 -1
  854. package/dist/selftest/test-guard.test.js +43 -15
  855. package/dist/selftest/toolchains.test.d.ts +1 -1
  856. package/dist/selftest/toolchains.test.js +180 -94
  857. package/dist/selftest/update-service.test.d.ts +2 -0
  858. package/dist/selftest/update-service.test.js +188 -0
  859. package/dist/selftest/update.test.d.ts +2 -0
  860. package/dist/selftest/update.test.js +172 -0
  861. package/dist/selftest/workspace-view.test.d.ts +1 -1
  862. package/dist/selftest/workspace-view.test.js +64 -22
  863. package/dist/selftest/workspace.test.d.ts +1 -1
  864. package/dist/selftest/workspace.test.js +22 -12
  865. package/dist/shared/apps/catalogue.d.ts +44 -0
  866. package/dist/shared/apps/catalogue.js +770 -0
  867. package/dist/shared/apps/index.d.ts +2 -0
  868. package/dist/shared/apps/index.js +2 -0
  869. package/dist/shared/apps/selection.d.ts +11 -0
  870. package/dist/shared/apps/selection.js +42 -0
  871. package/dist/shared/channel/index.d.ts +2 -0
  872. package/dist/shared/channel/index.js +2 -0
  873. package/dist/shared/channel/run-dir.d.ts +30 -0
  874. package/dist/shared/channel/run-dir.js +84 -0
  875. package/dist/shared/channel/schema.d.ts +607 -0
  876. package/dist/shared/channel/schema.js +133 -0
  877. package/dist/shared/download/archive.d.ts +13 -0
  878. package/dist/shared/download/archive.js +51 -0
  879. package/dist/shared/download/downloader.d.ts +38 -0
  880. package/dist/shared/download/downloader.js +111 -0
  881. package/dist/shared/download/github.d.ts +18 -0
  882. package/dist/shared/download/github.js +77 -0
  883. package/dist/shared/download/http.d.ts +5 -0
  884. package/dist/shared/download/http.js +34 -0
  885. package/dist/shared/download/index.d.ts +5 -0
  886. package/dist/shared/download/index.js +5 -0
  887. package/dist/shared/download/spawn.d.ts +3 -0
  888. package/dist/shared/download/spawn.js +9 -0
  889. package/dist/shared/io/index.d.ts +3 -0
  890. package/dist/shared/io/index.js +3 -0
  891. package/dist/shared/io/json-file.d.ts +10 -0
  892. package/dist/shared/io/json-file.js +21 -0
  893. package/dist/shared/io/json.d.ts +13 -0
  894. package/dist/shared/io/json.js +51 -0
  895. package/dist/shared/io/safe-remove.d.ts +10 -0
  896. package/dist/shared/io/safe-remove.js +94 -0
  897. package/dist/shared/network/firewall-rules.d.ts +24 -0
  898. package/dist/shared/network/firewall-rules.js +137 -0
  899. package/dist/shared/network/index.d.ts +2 -0
  900. package/dist/shared/network/index.js +2 -0
  901. package/dist/shared/network/policy.d.ts +27 -0
  902. package/dist/shared/network/policy.js +110 -0
  903. package/dist/shared/paths/agent-profile.d.ts +9 -0
  904. package/dist/shared/paths/agent-profile.js +21 -0
  905. package/dist/shared/paths/claude-paths.d.ts +15 -0
  906. package/dist/shared/paths/claude-paths.js +43 -0
  907. package/dist/shared/paths/conversation.d.ts +23 -0
  908. package/dist/shared/paths/conversation.js +25 -0
  909. package/dist/shared/paths/guest-paths.d.ts +51 -0
  910. package/dist/shared/paths/guest-paths.js +150 -0
  911. package/dist/shared/paths/index.d.ts +5 -0
  912. package/dist/shared/paths/index.js +5 -0
  913. package/dist/shared/paths/projects.d.ts +81 -0
  914. package/dist/shared/paths/projects.js +149 -0
  915. package/dist/shared/pty/client.d.ts +21 -0
  916. package/dist/shared/pty/client.js +79 -0
  917. package/dist/shared/pty/console-input.d.ts +11 -0
  918. package/dist/shared/pty/console-input.js +50 -0
  919. package/dist/shared/pty/index.d.ts +6 -0
  920. package/dist/shared/pty/index.js +6 -0
  921. package/dist/shared/pty/input-joiner.d.ts +15 -0
  922. package/dist/shared/pty/input-joiner.js +44 -0
  923. package/dist/shared/pty/output-filter.d.ts +16 -0
  924. package/dist/shared/pty/output-filter.js +143 -0
  925. package/dist/shared/pty/protocol.d.ts +38 -0
  926. package/dist/shared/pty/protocol.js +62 -0
  927. package/dist/shared/pty/terminal.d.ts +27 -0
  928. package/dist/shared/pty/terminal.js +153 -0
  929. package/dist/shared/scripts.d.ts +4 -0
  930. package/dist/shared/scripts.js +26 -0
  931. package/dist/shared/system.d.ts +11 -1
  932. package/dist/shared/system.js +15 -1
  933. package/dist/shared/test-guard.d.ts +3 -3
  934. package/dist/shared/test-guard.js +18 -10
  935. package/dist/sync/claude-mem.d.ts +3 -3
  936. package/dist/sync/claude-mem.js +19 -11
  937. package/dist/sync/history.d.ts +5 -33
  938. package/dist/sync/history.js +66 -51
  939. package/dist/sync/index.d.ts +5 -0
  940. package/dist/sync/index.js +5 -0
  941. package/dist/sync/sync-cycle.d.ts +18 -0
  942. package/dist/sync/sync-cycle.js +85 -0
  943. package/dist/sync/sync-state.d.ts +32 -0
  944. package/dist/sync/sync-state.js +43 -0
  945. package/dist/sync/watcher.d.ts +39 -17
  946. package/dist/sync/watcher.js +222 -155
  947. package/native/csharp/HostTools/KeepAwake.cs +24 -0
  948. package/native/csharp/HostTools/Program.cs +227 -0
  949. package/native/csharp/HostTools/UserPath.cs +74 -0
  950. package/native/csharp/HostTools/Window.cs +143 -0
  951. package/native/scripts/capture-look.ps1 +22 -0
  952. package/native/scripts/check-syntax.ps1 +14 -0
  953. package/native/scripts/edit-user-path.ps1 +11 -0
  954. package/native/scripts/hide-window.ps1 +8 -0
  955. package/native/scripts/keep-awake.ps1 +8 -0
  956. package/native/scripts/run-elevated.ps1 +12 -0
  957. package/native/scripts/sandbox-probe.ps1 +15 -0
  958. package/native/scripts/set-folder-access.ps1 +44 -0
  959. package/native/scripts/set-update-task.ps1 +43 -0
  960. package/native/scripts/show-window.ps1 +13 -0
  961. package/native/scripts/stop-events.ps1 +38 -0
  962. package/node_modules/@inquirer/ansi/LICENSE +22 -0
  963. package/node_modules/@inquirer/ansi/README.md +89 -0
  964. package/node_modules/@inquirer/ansi/dist/commonjs/index.d.ts +14 -0
  965. package/node_modules/@inquirer/ansi/dist/commonjs/index.js +28 -0
  966. package/node_modules/@inquirer/ansi/dist/commonjs/package.json +3 -0
  967. package/node_modules/@inquirer/ansi/dist/esm/index.d.ts +14 -0
  968. package/node_modules/@inquirer/ansi/dist/esm/index.js +21 -0
  969. package/node_modules/@inquirer/ansi/dist/esm/package.json +3 -0
  970. package/node_modules/@inquirer/ansi/package.json +97 -0
  971. package/node_modules/@inquirer/checkbox/LICENSE +22 -0
  972. package/node_modules/@inquirer/checkbox/README.md +188 -0
  973. package/node_modules/@inquirer/checkbox/dist/commonjs/index.d.ts +57 -0
  974. package/node_modules/@inquirer/checkbox/dist/commonjs/index.js +209 -0
  975. package/node_modules/@inquirer/checkbox/dist/commonjs/package.json +3 -0
  976. package/node_modules/@inquirer/checkbox/dist/esm/index.d.ts +57 -0
  977. package/node_modules/@inquirer/checkbox/dist/esm/index.js +202 -0
  978. package/node_modules/@inquirer/checkbox/dist/esm/package.json +3 -0
  979. package/node_modules/@inquirer/checkbox/package.json +113 -0
  980. package/node_modules/@inquirer/confirm/LICENSE +22 -0
  981. package/node_modules/@inquirer/confirm/README.md +92 -0
  982. package/node_modules/@inquirer/confirm/dist/commonjs/index.d.ts +10 -0
  983. package/node_modules/@inquirer/confirm/dist/commonjs/index.js +50 -0
  984. package/node_modules/@inquirer/confirm/dist/commonjs/package.json +3 -0
  985. package/node_modules/@inquirer/confirm/dist/esm/index.d.ts +10 -0
  986. package/node_modules/@inquirer/confirm/dist/esm/index.js +48 -0
  987. package/node_modules/@inquirer/confirm/dist/esm/package.json +3 -0
  988. package/node_modules/@inquirer/confirm/package.json +110 -0
  989. package/node_modules/@inquirer/core/LICENSE +22 -0
  990. package/node_modules/@inquirer/core/README.md +383 -0
  991. package/node_modules/@inquirer/core/dist/commonjs/index.d.ts +13 -0
  992. package/node_modules/@inquirer/core/dist/commonjs/index.js +46 -0
  993. package/node_modules/@inquirer/core/dist/commonjs/lib/Separator.d.ts +10 -0
  994. package/node_modules/@inquirer/core/dist/commonjs/lib/Separator.js +28 -0
  995. package/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.d.ts +4 -0
  996. package/node_modules/@inquirer/core/dist/commonjs/lib/create-prompt.js +156 -0
  997. package/node_modules/@inquirer/core/dist/commonjs/lib/errors.d.ts +20 -0
  998. package/node_modules/@inquirer/core/dist/commonjs/lib/errors.js +29 -0
  999. package/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.d.ts +23 -0
  1000. package/node_modules/@inquirer/core/dist/commonjs/lib/hook-engine.js +118 -0
  1001. package/node_modules/@inquirer/core/dist/commonjs/lib/key.d.ts +12 -0
  1002. package/node_modules/@inquirer/core/dist/commonjs/lib/key.js +29 -0
  1003. package/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.d.ts +3 -0
  1004. package/node_modules/@inquirer/core/dist/commonjs/lib/make-theme.js +33 -0
  1005. package/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.d.ts +16 -0
  1006. package/node_modules/@inquirer/core/dist/commonjs/lib/pagination/use-pagination.js +124 -0
  1007. package/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.d.ts +7 -0
  1008. package/node_modules/@inquirer/core/dist/commonjs/lib/promise-polyfill.js +18 -0
  1009. package/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.d.ts +14 -0
  1010. package/node_modules/@inquirer/core/dist/commonjs/lib/screen-manager.js +82 -0
  1011. package/node_modules/@inquirer/core/dist/commonjs/lib/theme.d.ts +155 -0
  1012. package/node_modules/@inquirer/core/dist/commonjs/lib/theme.js +27 -0
  1013. package/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.d.ts +2 -0
  1014. package/node_modules/@inquirer/core/dist/commonjs/lib/use-effect.js +14 -0
  1015. package/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.d.ts +3 -0
  1016. package/node_modules/@inquirer/core/dist/commonjs/lib/use-keypress.js +23 -0
  1017. package/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.d.ts +1 -0
  1018. package/node_modules/@inquirer/core/dist/commonjs/lib/use-memo.js +17 -0
  1019. package/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.d.ts +5 -0
  1020. package/node_modules/@inquirer/core/dist/commonjs/lib/use-prefix.js +38 -0
  1021. package/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.d.ts +6 -0
  1022. package/node_modules/@inquirer/core/dist/commonjs/lib/use-ref.js +7 -0
  1023. package/node_modules/@inquirer/core/dist/commonjs/lib/use-state.d.ts +4 -0
  1024. package/node_modules/@inquirer/core/dist/commonjs/lib/use-state.js +23 -0
  1025. package/node_modules/@inquirer/core/dist/commonjs/lib/utils.d.ts +13 -0
  1026. package/node_modules/@inquirer/core/dist/commonjs/lib/utils.js +32 -0
  1027. package/node_modules/@inquirer/core/dist/commonjs/package.json +3 -0
  1028. package/node_modules/@inquirer/core/dist/esm/index.d.ts +13 -0
  1029. package/node_modules/@inquirer/core/dist/esm/index.js +12 -0
  1030. package/node_modules/@inquirer/core/dist/esm/lib/Separator.d.ts +10 -0
  1031. package/node_modules/@inquirer/core/dist/esm/lib/Separator.js +21 -0
  1032. package/node_modules/@inquirer/core/dist/esm/lib/create-prompt.d.ts +4 -0
  1033. package/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js +117 -0
  1034. package/node_modules/@inquirer/core/dist/esm/lib/errors.d.ts +20 -0
  1035. package/node_modules/@inquirer/core/dist/esm/lib/errors.js +21 -0
  1036. package/node_modules/@inquirer/core/dist/esm/lib/hook-engine.d.ts +23 -0
  1037. package/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js +110 -0
  1038. package/node_modules/@inquirer/core/dist/esm/lib/key.d.ts +12 -0
  1039. package/node_modules/@inquirer/core/dist/esm/lib/key.js +19 -0
  1040. package/node_modules/@inquirer/core/dist/esm/lib/make-theme.d.ts +3 -0
  1041. package/node_modules/@inquirer/core/dist/esm/lib/make-theme.js +30 -0
  1042. package/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.d.ts +16 -0
  1043. package/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js +121 -0
  1044. package/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.d.ts +7 -0
  1045. package/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js +14 -0
  1046. package/node_modules/@inquirer/core/dist/esm/lib/screen-manager.d.ts +14 -0
  1047. package/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js +79 -0
  1048. package/node_modules/@inquirer/core/dist/esm/lib/theme.d.ts +155 -0
  1049. package/node_modules/@inquirer/core/dist/esm/lib/theme.js +21 -0
  1050. package/node_modules/@inquirer/core/dist/esm/lib/use-effect.d.ts +2 -0
  1051. package/node_modules/@inquirer/core/dist/esm/lib/use-effect.js +11 -0
  1052. package/node_modules/@inquirer/core/dist/esm/lib/use-keypress.d.ts +3 -0
  1053. package/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js +20 -0
  1054. package/node_modules/@inquirer/core/dist/esm/lib/use-memo.d.ts +1 -0
  1055. package/node_modules/@inquirer/core/dist/esm/lib/use-memo.js +14 -0
  1056. package/node_modules/@inquirer/core/dist/esm/lib/use-prefix.d.ts +5 -0
  1057. package/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js +35 -0
  1058. package/node_modules/@inquirer/core/dist/esm/lib/use-ref.d.ts +6 -0
  1059. package/node_modules/@inquirer/core/dist/esm/lib/use-ref.js +4 -0
  1060. package/node_modules/@inquirer/core/dist/esm/lib/use-state.d.ts +4 -0
  1061. package/node_modules/@inquirer/core/dist/esm/lib/use-state.js +20 -0
  1062. package/node_modules/@inquirer/core/dist/esm/lib/utils.d.ts +13 -0
  1063. package/node_modules/@inquirer/core/dist/esm/lib/utils.js +25 -0
  1064. package/node_modules/@inquirer/core/dist/esm/package.json +3 -0
  1065. package/node_modules/@inquirer/core/package.json +119 -0
  1066. package/node_modules/@inquirer/editor/LICENSE +22 -0
  1067. package/node_modules/@inquirer/editor/README.md +101 -0
  1068. package/node_modules/@inquirer/editor/dist/commonjs/index.d.ts +17 -0
  1069. package/node_modules/@inquirer/editor/dist/commonjs/index.js +76 -0
  1070. package/node_modules/@inquirer/editor/dist/commonjs/package.json +3 -0
  1071. package/node_modules/@inquirer/editor/dist/esm/index.d.ts +17 -0
  1072. package/node_modules/@inquirer/editor/dist/esm/index.js +74 -0
  1073. package/node_modules/@inquirer/editor/dist/esm/package.json +3 -0
  1074. package/node_modules/@inquirer/editor/package.json +111 -0
  1075. package/node_modules/@inquirer/expand/LICENSE +22 -0
  1076. package/node_modules/@inquirer/expand/README.md +141 -0
  1077. package/node_modules/@inquirer/expand/dist/commonjs/index.d.ts +25 -0
  1078. package/node_modules/@inquirer/expand/dist/commonjs/index.js +115 -0
  1079. package/node_modules/@inquirer/expand/dist/commonjs/package.json +3 -0
  1080. package/node_modules/@inquirer/expand/dist/esm/index.d.ts +25 -0
  1081. package/node_modules/@inquirer/expand/dist/esm/index.js +108 -0
  1082. package/node_modules/@inquirer/expand/dist/esm/package.json +3 -0
  1083. package/node_modules/@inquirer/expand/package.json +111 -0
  1084. package/node_modules/@inquirer/external-editor/LICENSE +22 -0
  1085. package/node_modules/@inquirer/external-editor/README.md +154 -0
  1086. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.d.ts +10 -0
  1087. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/CreateFileError.js +17 -0
  1088. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.d.ts +10 -0
  1089. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/LaunchEditorError.js +17 -0
  1090. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.d.ts +10 -0
  1091. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/ReadFileError.js +17 -0
  1092. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.d.ts +10 -0
  1093. package/node_modules/@inquirer/external-editor/dist/commonjs/errors/RemoveFileError.js +17 -0
  1094. package/node_modules/@inquirer/external-editor/dist/commonjs/index.d.ts +39 -0
  1095. package/node_modules/@inquirer/external-editor/dist/commonjs/index.js +203 -0
  1096. package/node_modules/@inquirer/external-editor/dist/commonjs/package.json +3 -0
  1097. package/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.d.ts +10 -0
  1098. package/node_modules/@inquirer/external-editor/dist/esm/errors/CreateFileError.js +13 -0
  1099. package/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.d.ts +10 -0
  1100. package/node_modules/@inquirer/external-editor/dist/esm/errors/LaunchEditorError.js +13 -0
  1101. package/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.d.ts +10 -0
  1102. package/node_modules/@inquirer/external-editor/dist/esm/errors/ReadFileError.js +13 -0
  1103. package/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.d.ts +10 -0
  1104. package/node_modules/@inquirer/external-editor/dist/esm/errors/RemoveFileError.js +13 -0
  1105. package/node_modules/@inquirer/external-editor/dist/esm/index.d.ts +39 -0
  1106. package/node_modules/@inquirer/external-editor/dist/esm/index.js +191 -0
  1107. package/node_modules/@inquirer/external-editor/dist/esm/package.json +3 -0
  1108. package/node_modules/@inquirer/external-editor/package.json +115 -0
  1109. package/node_modules/@inquirer/figures/LICENSE +22 -0
  1110. package/node_modules/@inquirer/figures/dist/commonjs/index.d.ts +275 -0
  1111. package/node_modules/@inquirer/figures/dist/commonjs/index.js +321 -0
  1112. package/node_modules/@inquirer/figures/dist/commonjs/package.json +3 -0
  1113. package/node_modules/@inquirer/figures/dist/esm/index.d.ts +275 -0
  1114. package/node_modules/@inquirer/figures/dist/esm/index.js +314 -0
  1115. package/node_modules/@inquirer/figures/dist/esm/package.json +3 -0
  1116. package/node_modules/@inquirer/figures/package.json +98 -0
  1117. package/node_modules/@inquirer/input/LICENSE +22 -0
  1118. package/node_modules/@inquirer/input/README.md +101 -0
  1119. package/node_modules/@inquirer/input/dist/commonjs/index.d.ts +20 -0
  1120. package/node_modules/@inquirer/input/dist/commonjs/index.js +99 -0
  1121. package/node_modules/@inquirer/input/dist/commonjs/package.json +3 -0
  1122. package/node_modules/@inquirer/input/dist/esm/index.d.ts +20 -0
  1123. package/node_modules/@inquirer/input/dist/esm/index.js +97 -0
  1124. package/node_modules/@inquirer/input/dist/esm/package.json +3 -0
  1125. package/node_modules/@inquirer/input/package.json +110 -0
  1126. package/node_modules/@inquirer/number/LICENSE +22 -0
  1127. package/node_modules/@inquirer/number/README.md +95 -0
  1128. package/node_modules/@inquirer/number/dist/commonjs/index.d.ts +15 -0
  1129. package/node_modules/@inquirer/number/dist/commonjs/index.js +96 -0
  1130. package/node_modules/@inquirer/number/dist/commonjs/package.json +3 -0
  1131. package/node_modules/@inquirer/number/dist/esm/index.d.ts +15 -0
  1132. package/node_modules/@inquirer/number/dist/esm/index.js +94 -0
  1133. package/node_modules/@inquirer/number/dist/esm/package.json +3 -0
  1134. package/node_modules/@inquirer/number/package.json +110 -0
  1135. package/node_modules/@inquirer/password/LICENSE +22 -0
  1136. package/node_modules/@inquirer/password/README.md +93 -0
  1137. package/node_modules/@inquirer/password/dist/commonjs/index.d.ts +10 -0
  1138. package/node_modules/@inquirer/password/dist/commonjs/index.js +57 -0
  1139. package/node_modules/@inquirer/password/dist/commonjs/package.json +3 -0
  1140. package/node_modules/@inquirer/password/dist/esm/index.d.ts +10 -0
  1141. package/node_modules/@inquirer/password/dist/esm/index.js +55 -0
  1142. package/node_modules/@inquirer/password/dist/esm/package.json +3 -0
  1143. package/node_modules/@inquirer/password/package.json +111 -0
  1144. package/node_modules/@inquirer/prompts/LICENSE +22 -0
  1145. package/node_modules/@inquirer/prompts/README.md +528 -0
  1146. package/node_modules/@inquirer/prompts/dist/commonjs/index.d.ts +10 -0
  1147. package/node_modules/@inquirer/prompts/dist/commonjs/index.js +27 -0
  1148. package/node_modules/@inquirer/prompts/dist/commonjs/package.json +3 -0
  1149. package/node_modules/@inquirer/prompts/dist/esm/index.d.ts +10 -0
  1150. package/node_modules/@inquirer/prompts/dist/esm/index.js +10 -0
  1151. package/node_modules/@inquirer/prompts/dist/esm/package.json +3 -0
  1152. package/node_modules/@inquirer/prompts/package.json +120 -0
  1153. package/node_modules/@inquirer/rawlist/LICENSE +22 -0
  1154. package/node_modules/@inquirer/rawlist/README.md +124 -0
  1155. package/node_modules/@inquirer/rawlist/dist/commonjs/index.d.ts +18 -0
  1156. package/node_modules/@inquirer/rawlist/dist/commonjs/index.js +132 -0
  1157. package/node_modules/@inquirer/rawlist/dist/commonjs/package.json +3 -0
  1158. package/node_modules/@inquirer/rawlist/dist/esm/index.d.ts +18 -0
  1159. package/node_modules/@inquirer/rawlist/dist/esm/index.js +125 -0
  1160. package/node_modules/@inquirer/rawlist/dist/esm/package.json +3 -0
  1161. package/node_modules/@inquirer/rawlist/package.json +111 -0
  1162. package/node_modules/@inquirer/search/LICENSE +22 -0
  1163. package/node_modules/@inquirer/search/README.md +212 -0
  1164. package/node_modules/@inquirer/search/dist/commonjs/index.d.ts +40 -0
  1165. package/node_modules/@inquirer/search/dist/commonjs/index.js +206 -0
  1166. package/node_modules/@inquirer/search/dist/commonjs/package.json +3 -0
  1167. package/node_modules/@inquirer/search/dist/esm/index.d.ts +40 -0
  1168. package/node_modules/@inquirer/search/dist/esm/index.js +199 -0
  1169. package/node_modules/@inquirer/search/dist/esm/package.json +3 -0
  1170. package/node_modules/@inquirer/search/package.json +112 -0
  1171. package/node_modules/@inquirer/select/LICENSE +22 -0
  1172. package/node_modules/@inquirer/select/README.md +181 -0
  1173. package/node_modules/@inquirer/select/dist/commonjs/index.d.ts +40 -0
  1174. package/node_modules/@inquirer/select/dist/commonjs/index.js +194 -0
  1175. package/node_modules/@inquirer/select/dist/commonjs/package.json +3 -0
  1176. package/node_modules/@inquirer/select/dist/esm/index.d.ts +40 -0
  1177. package/node_modules/@inquirer/select/dist/esm/index.js +187 -0
  1178. package/node_modules/@inquirer/select/dist/esm/package.json +3 -0
  1179. package/node_modules/@inquirer/select/package.json +113 -0
  1180. package/node_modules/@inquirer/type/LICENSE +22 -0
  1181. package/node_modules/@inquirer/type/dist/commonjs/index.d.ts +2 -0
  1182. package/node_modules/@inquirer/type/dist/commonjs/index.js +18 -0
  1183. package/node_modules/@inquirer/type/dist/commonjs/inquirer.d.ts +38 -0
  1184. package/node_modules/@inquirer/type/dist/commonjs/inquirer.js +2 -0
  1185. package/node_modules/@inquirer/type/dist/commonjs/package.json +3 -0
  1186. package/node_modules/@inquirer/type/dist/commonjs/utils.d.ts +29 -0
  1187. package/node_modules/@inquirer/type/dist/commonjs/utils.js +3 -0
  1188. package/node_modules/@inquirer/type/dist/esm/index.d.ts +2 -0
  1189. package/node_modules/@inquirer/type/dist/esm/index.js +2 -0
  1190. package/node_modules/@inquirer/type/dist/esm/inquirer.d.ts +38 -0
  1191. package/node_modules/@inquirer/type/dist/esm/inquirer.js +1 -0
  1192. package/node_modules/@inquirer/type/dist/esm/package.json +3 -0
  1193. package/node_modules/@inquirer/type/dist/esm/utils.d.ts +29 -0
  1194. package/node_modules/@inquirer/type/dist/esm/utils.js +2 -0
  1195. package/node_modules/@inquirer/type/package.json +106 -0
  1196. package/node_modules/ansi-regex/index.d.ts +37 -0
  1197. package/node_modules/ansi-regex/index.js +10 -0
  1198. package/node_modules/ansi-regex/license +9 -0
  1199. package/node_modules/ansi-regex/package.json +55 -0
  1200. package/node_modules/ansi-regex/readme.md +78 -0
  1201. package/node_modules/ansi-styles/index.d.ts +345 -0
  1202. package/node_modules/ansi-styles/index.js +163 -0
  1203. package/node_modules/ansi-styles/license +9 -0
  1204. package/node_modules/ansi-styles/package.json +56 -0
  1205. package/node_modules/ansi-styles/readme.md +152 -0
  1206. package/node_modules/chardet/LICENSE +19 -0
  1207. package/node_modules/chardet/README.md +135 -0
  1208. package/node_modules/chardet/lib/encoding/ascii.d.ts +6 -0
  1209. package/node_modules/chardet/lib/encoding/ascii.js +23 -0
  1210. package/node_modules/chardet/lib/encoding/ascii.js.map +1 -0
  1211. package/node_modules/chardet/lib/encoding/index.d.ts +14 -0
  1212. package/node_modules/chardet/lib/encoding/index.js +3 -0
  1213. package/node_modules/chardet/lib/encoding/index.js.map +1 -0
  1214. package/node_modules/chardet/lib/encoding/iso2022.d.ts +23 -0
  1215. package/node_modules/chardet/lib/encoding/iso2022.js +114 -0
  1216. package/node_modules/chardet/lib/encoding/iso2022.js.map +1 -0
  1217. package/node_modules/chardet/lib/encoding/mbcs.d.ts +50 -0
  1218. package/node_modules/chardet/lib/encoding/mbcs.js +347 -0
  1219. package/node_modules/chardet/lib/encoding/mbcs.js.map +1 -0
  1220. package/node_modules/chardet/lib/encoding/sbcs.d.ts +94 -0
  1221. package/node_modules/chardet/lib/encoding/sbcs.js +935 -0
  1222. package/node_modules/chardet/lib/encoding/sbcs.js.map +1 -0
  1223. package/node_modules/chardet/lib/encoding/unicode.d.ts +27 -0
  1224. package/node_modules/chardet/lib/encoding/unicode.js +109 -0
  1225. package/node_modules/chardet/lib/encoding/unicode.js.map +1 -0
  1226. package/node_modules/chardet/lib/encoding/utf8.d.ts +6 -0
  1227. package/node_modules/chardet/lib/encoding/utf8.js +72 -0
  1228. package/node_modules/chardet/lib/encoding/utf8.js.map +1 -0
  1229. package/node_modules/chardet/lib/fs/browser.d.ts +2 -0
  1230. package/node_modules/chardet/lib/fs/browser.js +6 -0
  1231. package/node_modules/chardet/lib/fs/browser.js.map +1 -0
  1232. package/node_modules/chardet/lib/fs/node.d.ts +2 -0
  1233. package/node_modules/chardet/lib/fs/node.js +11 -0
  1234. package/node_modules/chardet/lib/fs/node.js.map +1 -0
  1235. package/node_modules/chardet/lib/index.d.ts +20 -0
  1236. package/node_modules/chardet/lib/index.js +177 -0
  1237. package/node_modules/chardet/lib/index.js.map +1 -0
  1238. package/node_modules/chardet/lib/match.d.ts +9 -0
  1239. package/node_modules/chardet/lib/match.js +8 -0
  1240. package/node_modules/chardet/lib/match.js.map +1 -0
  1241. package/node_modules/chardet/lib/utils.d.ts +1 -0
  1242. package/node_modules/chardet/lib/utils.js +10 -0
  1243. package/node_modules/chardet/lib/utils.js.map +1 -0
  1244. package/node_modules/chardet/package.json +100 -0
  1245. package/node_modules/cli-width/LICENSE +13 -0
  1246. package/node_modules/cli-width/README.md +71 -0
  1247. package/node_modules/cli-width/index.d.ts +13 -0
  1248. package/node_modules/cli-width/index.js +49 -0
  1249. package/node_modules/cli-width/package.json +40 -0
  1250. package/node_modules/color-convert/CHANGELOG.md +54 -0
  1251. package/node_modules/color-convert/LICENSE +21 -0
  1252. package/node_modules/color-convert/README.md +68 -0
  1253. package/node_modules/color-convert/conversions.js +839 -0
  1254. package/node_modules/color-convert/index.js +81 -0
  1255. package/node_modules/color-convert/package.json +48 -0
  1256. package/node_modules/color-convert/route.js +97 -0
  1257. package/node_modules/color-name/LICENSE +8 -0
  1258. package/node_modules/color-name/README.md +11 -0
  1259. package/node_modules/color-name/index.js +152 -0
  1260. package/node_modules/color-name/package.json +28 -0
  1261. package/node_modules/commander/LICENSE +22 -0
  1262. package/node_modules/commander/Readme.md +1176 -0
  1263. package/node_modules/commander/esm.mjs +16 -0
  1264. package/node_modules/commander/index.js +24 -0
  1265. package/node_modules/commander/lib/argument.js +150 -0
  1266. package/node_modules/commander/lib/command.js +2777 -0
  1267. package/node_modules/commander/lib/error.js +39 -0
  1268. package/node_modules/commander/lib/help.js +747 -0
  1269. package/node_modules/commander/lib/option.js +380 -0
  1270. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  1271. package/node_modules/commander/package-support.json +19 -0
  1272. package/node_modules/commander/package.json +82 -0
  1273. package/node_modules/commander/typings/esm.d.mts +3 -0
  1274. package/node_modules/commander/typings/index.d.ts +1113 -0
  1275. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1276. package/node_modules/emoji-regex/README.md +73 -0
  1277. package/node_modules/emoji-regex/es2015/index.js +6 -0
  1278. package/node_modules/emoji-regex/es2015/text.js +6 -0
  1279. package/node_modules/emoji-regex/index.d.ts +23 -0
  1280. package/node_modules/emoji-regex/index.js +6 -0
  1281. package/node_modules/emoji-regex/package.json +50 -0
  1282. package/node_modules/emoji-regex/text.js +6 -0
  1283. package/node_modules/iconv-lite/LICENSE +21 -0
  1284. package/node_modules/iconv-lite/README.md +138 -0
  1285. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  1286. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  1287. package/node_modules/iconv-lite/encodings/index.js +23 -0
  1288. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  1289. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  1290. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  1291. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  1292. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  1293. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  1294. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  1295. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  1296. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  1297. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  1298. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  1299. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  1300. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  1301. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  1302. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  1303. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  1304. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  1305. package/node_modules/iconv-lite/lib/index.d.ts +129 -0
  1306. package/node_modules/iconv-lite/lib/index.js +182 -0
  1307. package/node_modules/iconv-lite/lib/streams.js +105 -0
  1308. package/node_modules/iconv-lite/package.json +70 -0
  1309. package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
  1310. package/node_modules/ignore/LICENSE-MIT +21 -0
  1311. package/node_modules/ignore/README.md +501 -0
  1312. package/node_modules/ignore/index.d.ts +81 -0
  1313. package/node_modules/ignore/index.js +1566 -0
  1314. package/node_modules/ignore/legacy.js +1346 -0
  1315. package/node_modules/ignore/package.json +93 -0
  1316. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  1317. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  1318. package/node_modules/is-fullwidth-code-point/license +9 -0
  1319. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  1320. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  1321. package/node_modules/jsonc-parser/CHANGELOG.md +76 -0
  1322. package/node_modules/jsonc-parser/LICENSE.md +21 -0
  1323. package/node_modules/jsonc-parser/README.md +364 -0
  1324. package/node_modules/jsonc-parser/SECURITY.md +41 -0
  1325. package/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
  1326. package/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
  1327. package/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
  1328. package/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
  1329. package/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
  1330. package/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
  1331. package/node_modules/jsonc-parser/lib/esm/main.js +178 -0
  1332. package/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
  1333. package/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
  1334. package/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
  1335. package/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
  1336. package/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
  1337. package/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
  1338. package/node_modules/jsonc-parser/lib/umd/main.js +194 -0
  1339. package/node_modules/jsonc-parser/package.json +37 -0
  1340. package/node_modules/lodash/LICENSE +47 -0
  1341. package/node_modules/lodash/README.md +39 -0
  1342. package/node_modules/lodash/_DataView.js +7 -0
  1343. package/node_modules/lodash/_Hash.js +32 -0
  1344. package/node_modules/lodash/_LazyWrapper.js +28 -0
  1345. package/node_modules/lodash/_ListCache.js +32 -0
  1346. package/node_modules/lodash/_LodashWrapper.js +22 -0
  1347. package/node_modules/lodash/_Map.js +7 -0
  1348. package/node_modules/lodash/_MapCache.js +32 -0
  1349. package/node_modules/lodash/_Promise.js +7 -0
  1350. package/node_modules/lodash/_Set.js +7 -0
  1351. package/node_modules/lodash/_SetCache.js +27 -0
  1352. package/node_modules/lodash/_Stack.js +27 -0
  1353. package/node_modules/lodash/_Symbol.js +6 -0
  1354. package/node_modules/lodash/_Uint8Array.js +6 -0
  1355. package/node_modules/lodash/_WeakMap.js +7 -0
  1356. package/node_modules/lodash/_apply.js +21 -0
  1357. package/node_modules/lodash/_arrayAggregator.js +22 -0
  1358. package/node_modules/lodash/_arrayEach.js +22 -0
  1359. package/node_modules/lodash/_arrayEachRight.js +21 -0
  1360. package/node_modules/lodash/_arrayEvery.js +23 -0
  1361. package/node_modules/lodash/_arrayFilter.js +25 -0
  1362. package/node_modules/lodash/_arrayIncludes.js +17 -0
  1363. package/node_modules/lodash/_arrayIncludesWith.js +22 -0
  1364. package/node_modules/lodash/_arrayLikeKeys.js +49 -0
  1365. package/node_modules/lodash/_arrayMap.js +21 -0
  1366. package/node_modules/lodash/_arrayPush.js +20 -0
  1367. package/node_modules/lodash/_arrayReduce.js +26 -0
  1368. package/node_modules/lodash/_arrayReduceRight.js +24 -0
  1369. package/node_modules/lodash/_arraySample.js +15 -0
  1370. package/node_modules/lodash/_arraySampleSize.js +17 -0
  1371. package/node_modules/lodash/_arrayShuffle.js +15 -0
  1372. package/node_modules/lodash/_arraySome.js +23 -0
  1373. package/node_modules/lodash/_asciiSize.js +12 -0
  1374. package/node_modules/lodash/_asciiToArray.js +12 -0
  1375. package/node_modules/lodash/_asciiWords.js +15 -0
  1376. package/node_modules/lodash/_assignMergeValue.js +20 -0
  1377. package/node_modules/lodash/_assignValue.js +28 -0
  1378. package/node_modules/lodash/_assocIndexOf.js +21 -0
  1379. package/node_modules/lodash/_baseAggregator.js +21 -0
  1380. package/node_modules/lodash/_baseAssign.js +17 -0
  1381. package/node_modules/lodash/_baseAssignIn.js +17 -0
  1382. package/node_modules/lodash/_baseAssignValue.js +25 -0
  1383. package/node_modules/lodash/_baseAt.js +23 -0
  1384. package/node_modules/lodash/_baseClamp.js +22 -0
  1385. package/node_modules/lodash/_baseClone.js +166 -0
  1386. package/node_modules/lodash/_baseConforms.js +18 -0
  1387. package/node_modules/lodash/_baseConformsTo.js +27 -0
  1388. package/node_modules/lodash/_baseCreate.js +30 -0
  1389. package/node_modules/lodash/_baseDelay.js +21 -0
  1390. package/node_modules/lodash/_baseDifference.js +67 -0
  1391. package/node_modules/lodash/_baseEach.js +14 -0
  1392. package/node_modules/lodash/_baseEachRight.js +14 -0
  1393. package/node_modules/lodash/_baseEvery.js +21 -0
  1394. package/node_modules/lodash/_baseExtremum.js +32 -0
  1395. package/node_modules/lodash/_baseFill.js +32 -0
  1396. package/node_modules/lodash/_baseFilter.js +21 -0
  1397. package/node_modules/lodash/_baseFindIndex.js +24 -0
  1398. package/node_modules/lodash/_baseFindKey.js +23 -0
  1399. package/node_modules/lodash/_baseFlatten.js +38 -0
  1400. package/node_modules/lodash/_baseFor.js +16 -0
  1401. package/node_modules/lodash/_baseForOwn.js +16 -0
  1402. package/node_modules/lodash/_baseForOwnRight.js +16 -0
  1403. package/node_modules/lodash/_baseForRight.js +15 -0
  1404. package/node_modules/lodash/_baseFunctions.js +19 -0
  1405. package/node_modules/lodash/_baseGet.js +24 -0
  1406. package/node_modules/lodash/_baseGetAllKeys.js +20 -0
  1407. package/node_modules/lodash/_baseGetTag.js +28 -0
  1408. package/node_modules/lodash/_baseGt.js +14 -0
  1409. package/node_modules/lodash/_baseHas.js +19 -0
  1410. package/node_modules/lodash/_baseHasIn.js +13 -0
  1411. package/node_modules/lodash/_baseInRange.js +18 -0
  1412. package/node_modules/lodash/_baseIndexOf.js +20 -0
  1413. package/node_modules/lodash/_baseIndexOfWith.js +23 -0
  1414. package/node_modules/lodash/_baseIntersection.js +74 -0
  1415. package/node_modules/lodash/_baseInverter.js +21 -0
  1416. package/node_modules/lodash/_baseInvoke.js +24 -0
  1417. package/node_modules/lodash/_baseIsArguments.js +18 -0
  1418. package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  1419. package/node_modules/lodash/_baseIsDate.js +18 -0
  1420. package/node_modules/lodash/_baseIsEqual.js +28 -0
  1421. package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  1422. package/node_modules/lodash/_baseIsMap.js +18 -0
  1423. package/node_modules/lodash/_baseIsMatch.js +62 -0
  1424. package/node_modules/lodash/_baseIsNaN.js +12 -0
  1425. package/node_modules/lodash/_baseIsNative.js +47 -0
  1426. package/node_modules/lodash/_baseIsRegExp.js +18 -0
  1427. package/node_modules/lodash/_baseIsSet.js +18 -0
  1428. package/node_modules/lodash/_baseIsTypedArray.js +60 -0
  1429. package/node_modules/lodash/_baseIteratee.js +31 -0
  1430. package/node_modules/lodash/_baseKeys.js +30 -0
  1431. package/node_modules/lodash/_baseKeysIn.js +33 -0
  1432. package/node_modules/lodash/_baseLodash.js +10 -0
  1433. package/node_modules/lodash/_baseLt.js +14 -0
  1434. package/node_modules/lodash/_baseMap.js +22 -0
  1435. package/node_modules/lodash/_baseMatches.js +22 -0
  1436. package/node_modules/lodash/_baseMatchesProperty.js +33 -0
  1437. package/node_modules/lodash/_baseMean.js +20 -0
  1438. package/node_modules/lodash/_baseMerge.js +42 -0
  1439. package/node_modules/lodash/_baseMergeDeep.js +94 -0
  1440. package/node_modules/lodash/_baseNth.js +20 -0
  1441. package/node_modules/lodash/_baseOrderBy.js +49 -0
  1442. package/node_modules/lodash/_basePick.js +19 -0
  1443. package/node_modules/lodash/_basePickBy.js +30 -0
  1444. package/node_modules/lodash/_baseProperty.js +14 -0
  1445. package/node_modules/lodash/_basePropertyDeep.js +16 -0
  1446. package/node_modules/lodash/_basePropertyOf.js +14 -0
  1447. package/node_modules/lodash/_basePullAll.js +51 -0
  1448. package/node_modules/lodash/_basePullAt.js +37 -0
  1449. package/node_modules/lodash/_baseRandom.js +18 -0
  1450. package/node_modules/lodash/_baseRange.js +28 -0
  1451. package/node_modules/lodash/_baseReduce.js +23 -0
  1452. package/node_modules/lodash/_baseRepeat.js +35 -0
  1453. package/node_modules/lodash/_baseRest.js +17 -0
  1454. package/node_modules/lodash/_baseSample.js +15 -0
  1455. package/node_modules/lodash/_baseSampleSize.js +18 -0
  1456. package/node_modules/lodash/_baseSet.js +51 -0
  1457. package/node_modules/lodash/_baseSetData.js +17 -0
  1458. package/node_modules/lodash/_baseSetToString.js +22 -0
  1459. package/node_modules/lodash/_baseShuffle.js +15 -0
  1460. package/node_modules/lodash/_baseSlice.js +31 -0
  1461. package/node_modules/lodash/_baseSome.js +22 -0
  1462. package/node_modules/lodash/_baseSortBy.js +21 -0
  1463. package/node_modules/lodash/_baseSortedIndex.js +42 -0
  1464. package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  1465. package/node_modules/lodash/_baseSortedUniq.js +30 -0
  1466. package/node_modules/lodash/_baseSum.js +24 -0
  1467. package/node_modules/lodash/_baseTimes.js +20 -0
  1468. package/node_modules/lodash/_baseToNumber.js +24 -0
  1469. package/node_modules/lodash/_baseToPairs.js +18 -0
  1470. package/node_modules/lodash/_baseToString.js +37 -0
  1471. package/node_modules/lodash/_baseTrim.js +19 -0
  1472. package/node_modules/lodash/_baseUnary.js +14 -0
  1473. package/node_modules/lodash/_baseUniq.js +72 -0
  1474. package/node_modules/lodash/_baseUnset.js +52 -0
  1475. package/node_modules/lodash/_baseUpdate.js +18 -0
  1476. package/node_modules/lodash/_baseValues.js +19 -0
  1477. package/node_modules/lodash/_baseWhile.js +26 -0
  1478. package/node_modules/lodash/_baseWrapperValue.js +25 -0
  1479. package/node_modules/lodash/_baseXor.js +36 -0
  1480. package/node_modules/lodash/_baseZipObject.js +23 -0
  1481. package/node_modules/lodash/_cacheHas.js +13 -0
  1482. package/node_modules/lodash/_castArrayLikeObject.js +14 -0
  1483. package/node_modules/lodash/_castFunction.js +14 -0
  1484. package/node_modules/lodash/_castPath.js +21 -0
  1485. package/node_modules/lodash/_castRest.js +14 -0
  1486. package/node_modules/lodash/_castSlice.js +18 -0
  1487. package/node_modules/lodash/_charsEndIndex.js +19 -0
  1488. package/node_modules/lodash/_charsStartIndex.js +20 -0
  1489. package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  1490. package/node_modules/lodash/_cloneBuffer.js +35 -0
  1491. package/node_modules/lodash/_cloneDataView.js +16 -0
  1492. package/node_modules/lodash/_cloneRegExp.js +17 -0
  1493. package/node_modules/lodash/_cloneSymbol.js +18 -0
  1494. package/node_modules/lodash/_cloneTypedArray.js +16 -0
  1495. package/node_modules/lodash/_compareAscending.js +41 -0
  1496. package/node_modules/lodash/_compareMultiple.js +44 -0
  1497. package/node_modules/lodash/_composeArgs.js +39 -0
  1498. package/node_modules/lodash/_composeArgsRight.js +41 -0
  1499. package/node_modules/lodash/_copyArray.js +20 -0
  1500. package/node_modules/lodash/_copyObject.js +40 -0
  1501. package/node_modules/lodash/_copySymbols.js +16 -0
  1502. package/node_modules/lodash/_copySymbolsIn.js +16 -0
  1503. package/node_modules/lodash/_coreJsData.js +6 -0
  1504. package/node_modules/lodash/_countHolders.js +21 -0
  1505. package/node_modules/lodash/_createAggregator.js +23 -0
  1506. package/node_modules/lodash/_createAssigner.js +37 -0
  1507. package/node_modules/lodash/_createBaseEach.js +32 -0
  1508. package/node_modules/lodash/_createBaseFor.js +25 -0
  1509. package/node_modules/lodash/_createBind.js +28 -0
  1510. package/node_modules/lodash/_createCaseFirst.js +33 -0
  1511. package/node_modules/lodash/_createCompounder.js +24 -0
  1512. package/node_modules/lodash/_createCtor.js +37 -0
  1513. package/node_modules/lodash/_createCurry.js +46 -0
  1514. package/node_modules/lodash/_createFind.js +25 -0
  1515. package/node_modules/lodash/_createFlow.js +78 -0
  1516. package/node_modules/lodash/_createHybrid.js +92 -0
  1517. package/node_modules/lodash/_createInverter.js +17 -0
  1518. package/node_modules/lodash/_createMathOperation.js +38 -0
  1519. package/node_modules/lodash/_createOver.js +27 -0
  1520. package/node_modules/lodash/_createPadding.js +33 -0
  1521. package/node_modules/lodash/_createPartial.js +43 -0
  1522. package/node_modules/lodash/_createRange.js +30 -0
  1523. package/node_modules/lodash/_createRecurry.js +56 -0
  1524. package/node_modules/lodash/_createRelationalOperation.js +20 -0
  1525. package/node_modules/lodash/_createRound.js +35 -0
  1526. package/node_modules/lodash/_createSet.js +19 -0
  1527. package/node_modules/lodash/_createToPairs.js +30 -0
  1528. package/node_modules/lodash/_createWrap.js +106 -0
  1529. package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  1530. package/node_modules/lodash/_customDefaultsMerge.js +28 -0
  1531. package/node_modules/lodash/_customOmitClone.js +16 -0
  1532. package/node_modules/lodash/_deburrLetter.js +71 -0
  1533. package/node_modules/lodash/_defineProperty.js +11 -0
  1534. package/node_modules/lodash/_equalArrays.js +84 -0
  1535. package/node_modules/lodash/_equalByTag.js +112 -0
  1536. package/node_modules/lodash/_equalObjects.js +90 -0
  1537. package/node_modules/lodash/_escapeHtmlChar.js +21 -0
  1538. package/node_modules/lodash/_escapeStringChar.js +22 -0
  1539. package/node_modules/lodash/_flatRest.js +16 -0
  1540. package/node_modules/lodash/_freeGlobal.js +4 -0
  1541. package/node_modules/lodash/_getAllKeys.js +16 -0
  1542. package/node_modules/lodash/_getAllKeysIn.js +17 -0
  1543. package/node_modules/lodash/_getData.js +15 -0
  1544. package/node_modules/lodash/_getFuncName.js +31 -0
  1545. package/node_modules/lodash/_getHolder.js +13 -0
  1546. package/node_modules/lodash/_getMapData.js +18 -0
  1547. package/node_modules/lodash/_getMatchData.js +24 -0
  1548. package/node_modules/lodash/_getNative.js +17 -0
  1549. package/node_modules/lodash/_getPrototype.js +6 -0
  1550. package/node_modules/lodash/_getRawTag.js +46 -0
  1551. package/node_modules/lodash/_getSymbols.js +30 -0
  1552. package/node_modules/lodash/_getSymbolsIn.js +25 -0
  1553. package/node_modules/lodash/_getTag.js +58 -0
  1554. package/node_modules/lodash/_getValue.js +13 -0
  1555. package/node_modules/lodash/_getView.js +33 -0
  1556. package/node_modules/lodash/_getWrapDetails.js +17 -0
  1557. package/node_modules/lodash/_hasPath.js +39 -0
  1558. package/node_modules/lodash/_hasUnicode.js +26 -0
  1559. package/node_modules/lodash/_hasUnicodeWord.js +15 -0
  1560. package/node_modules/lodash/_hashClear.js +15 -0
  1561. package/node_modules/lodash/_hashDelete.js +17 -0
  1562. package/node_modules/lodash/_hashGet.js +30 -0
  1563. package/node_modules/lodash/_hashHas.js +23 -0
  1564. package/node_modules/lodash/_hashSet.js +23 -0
  1565. package/node_modules/lodash/_initCloneArray.js +26 -0
  1566. package/node_modules/lodash/_initCloneByTag.js +77 -0
  1567. package/node_modules/lodash/_initCloneObject.js +18 -0
  1568. package/node_modules/lodash/_insertWrapDetails.js +23 -0
  1569. package/node_modules/lodash/_isFlattenable.js +20 -0
  1570. package/node_modules/lodash/_isIndex.js +25 -0
  1571. package/node_modules/lodash/_isIterateeCall.js +30 -0
  1572. package/node_modules/lodash/_isKey.js +29 -0
  1573. package/node_modules/lodash/_isKeyable.js +15 -0
  1574. package/node_modules/lodash/_isLaziable.js +28 -0
  1575. package/node_modules/lodash/_isMaskable.js +14 -0
  1576. package/node_modules/lodash/_isMasked.js +20 -0
  1577. package/node_modules/lodash/_isPrototype.js +18 -0
  1578. package/node_modules/lodash/_isStrictComparable.js +15 -0
  1579. package/node_modules/lodash/_iteratorToArray.js +18 -0
  1580. package/node_modules/lodash/_lazyClone.js +23 -0
  1581. package/node_modules/lodash/_lazyReverse.js +23 -0
  1582. package/node_modules/lodash/_lazyValue.js +69 -0
  1583. package/node_modules/lodash/_listCacheClear.js +13 -0
  1584. package/node_modules/lodash/_listCacheDelete.js +35 -0
  1585. package/node_modules/lodash/_listCacheGet.js +19 -0
  1586. package/node_modules/lodash/_listCacheHas.js +16 -0
  1587. package/node_modules/lodash/_listCacheSet.js +26 -0
  1588. package/node_modules/lodash/_mapCacheClear.js +21 -0
  1589. package/node_modules/lodash/_mapCacheDelete.js +18 -0
  1590. package/node_modules/lodash/_mapCacheGet.js +16 -0
  1591. package/node_modules/lodash/_mapCacheHas.js +16 -0
  1592. package/node_modules/lodash/_mapCacheSet.js +22 -0
  1593. package/node_modules/lodash/_mapToArray.js +18 -0
  1594. package/node_modules/lodash/_matchesStrictComparable.js +20 -0
  1595. package/node_modules/lodash/_memoizeCapped.js +26 -0
  1596. package/node_modules/lodash/_mergeData.js +90 -0
  1597. package/node_modules/lodash/_metaMap.js +6 -0
  1598. package/node_modules/lodash/_nativeCreate.js +6 -0
  1599. package/node_modules/lodash/_nativeKeys.js +6 -0
  1600. package/node_modules/lodash/_nativeKeysIn.js +20 -0
  1601. package/node_modules/lodash/_nodeUtil.js +30 -0
  1602. package/node_modules/lodash/_objectToString.js +22 -0
  1603. package/node_modules/lodash/_overArg.js +15 -0
  1604. package/node_modules/lodash/_overRest.js +36 -0
  1605. package/node_modules/lodash/_parent.js +16 -0
  1606. package/node_modules/lodash/_reEscape.js +4 -0
  1607. package/node_modules/lodash/_reEvaluate.js +4 -0
  1608. package/node_modules/lodash/_reInterpolate.js +4 -0
  1609. package/node_modules/lodash/_realNames.js +4 -0
  1610. package/node_modules/lodash/_reorder.js +29 -0
  1611. package/node_modules/lodash/_replaceHolders.js +29 -0
  1612. package/node_modules/lodash/_root.js +9 -0
  1613. package/node_modules/lodash/_safeGet.js +21 -0
  1614. package/node_modules/lodash/_setCacheAdd.js +19 -0
  1615. package/node_modules/lodash/_setCacheHas.js +14 -0
  1616. package/node_modules/lodash/_setData.js +20 -0
  1617. package/node_modules/lodash/_setToArray.js +18 -0
  1618. package/node_modules/lodash/_setToPairs.js +18 -0
  1619. package/node_modules/lodash/_setToString.js +14 -0
  1620. package/node_modules/lodash/_setWrapToString.js +21 -0
  1621. package/node_modules/lodash/_shortOut.js +37 -0
  1622. package/node_modules/lodash/_shuffleSelf.js +28 -0
  1623. package/node_modules/lodash/_stackClear.js +15 -0
  1624. package/node_modules/lodash/_stackDelete.js +18 -0
  1625. package/node_modules/lodash/_stackGet.js +14 -0
  1626. package/node_modules/lodash/_stackHas.js +14 -0
  1627. package/node_modules/lodash/_stackSet.js +34 -0
  1628. package/node_modules/lodash/_strictIndexOf.js +23 -0
  1629. package/node_modules/lodash/_strictLastIndexOf.js +21 -0
  1630. package/node_modules/lodash/_stringSize.js +18 -0
  1631. package/node_modules/lodash/_stringToArray.js +18 -0
  1632. package/node_modules/lodash/_stringToPath.js +27 -0
  1633. package/node_modules/lodash/_toKey.js +21 -0
  1634. package/node_modules/lodash/_toSource.js +26 -0
  1635. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  1636. package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  1637. package/node_modules/lodash/_unicodeSize.js +44 -0
  1638. package/node_modules/lodash/_unicodeToArray.js +40 -0
  1639. package/node_modules/lodash/_unicodeWords.js +69 -0
  1640. package/node_modules/lodash/_updateWrapDetails.js +46 -0
  1641. package/node_modules/lodash/_wrapperClone.js +23 -0
  1642. package/node_modules/lodash/add.js +22 -0
  1643. package/node_modules/lodash/after.js +42 -0
  1644. package/node_modules/lodash/array.js +67 -0
  1645. package/node_modules/lodash/ary.js +29 -0
  1646. package/node_modules/lodash/assign.js +58 -0
  1647. package/node_modules/lodash/assignIn.js +40 -0
  1648. package/node_modules/lodash/assignInWith.js +38 -0
  1649. package/node_modules/lodash/assignWith.js +37 -0
  1650. package/node_modules/lodash/at.js +23 -0
  1651. package/node_modules/lodash/attempt.js +35 -0
  1652. package/node_modules/lodash/before.js +40 -0
  1653. package/node_modules/lodash/bind.js +57 -0
  1654. package/node_modules/lodash/bindAll.js +41 -0
  1655. package/node_modules/lodash/bindKey.js +68 -0
  1656. package/node_modules/lodash/camelCase.js +29 -0
  1657. package/node_modules/lodash/capitalize.js +23 -0
  1658. package/node_modules/lodash/castArray.js +44 -0
  1659. package/node_modules/lodash/ceil.js +26 -0
  1660. package/node_modules/lodash/chain.js +38 -0
  1661. package/node_modules/lodash/chunk.js +50 -0
  1662. package/node_modules/lodash/clamp.js +39 -0
  1663. package/node_modules/lodash/clone.js +36 -0
  1664. package/node_modules/lodash/cloneDeep.js +29 -0
  1665. package/node_modules/lodash/cloneDeepWith.js +40 -0
  1666. package/node_modules/lodash/cloneWith.js +42 -0
  1667. package/node_modules/lodash/collection.js +30 -0
  1668. package/node_modules/lodash/commit.js +33 -0
  1669. package/node_modules/lodash/compact.js +31 -0
  1670. package/node_modules/lodash/concat.js +43 -0
  1671. package/node_modules/lodash/cond.js +60 -0
  1672. package/node_modules/lodash/conforms.js +35 -0
  1673. package/node_modules/lodash/conformsTo.js +32 -0
  1674. package/node_modules/lodash/constant.js +26 -0
  1675. package/node_modules/lodash/core.js +3877 -0
  1676. package/node_modules/lodash/core.min.js +30 -0
  1677. package/node_modules/lodash/countBy.js +40 -0
  1678. package/node_modules/lodash/create.js +43 -0
  1679. package/node_modules/lodash/curry.js +57 -0
  1680. package/node_modules/lodash/curryRight.js +54 -0
  1681. package/node_modules/lodash/date.js +3 -0
  1682. package/node_modules/lodash/debounce.js +191 -0
  1683. package/node_modules/lodash/deburr.js +45 -0
  1684. package/node_modules/lodash/defaultTo.js +25 -0
  1685. package/node_modules/lodash/defaults.js +64 -0
  1686. package/node_modules/lodash/defaultsDeep.js +30 -0
  1687. package/node_modules/lodash/defer.js +26 -0
  1688. package/node_modules/lodash/delay.js +28 -0
  1689. package/node_modules/lodash/difference.js +33 -0
  1690. package/node_modules/lodash/differenceBy.js +44 -0
  1691. package/node_modules/lodash/differenceWith.js +40 -0
  1692. package/node_modules/lodash/divide.js +22 -0
  1693. package/node_modules/lodash/drop.js +38 -0
  1694. package/node_modules/lodash/dropRight.js +39 -0
  1695. package/node_modules/lodash/dropRightWhile.js +45 -0
  1696. package/node_modules/lodash/dropWhile.js +45 -0
  1697. package/node_modules/lodash/each.js +1 -0
  1698. package/node_modules/lodash/eachRight.js +1 -0
  1699. package/node_modules/lodash/endsWith.js +43 -0
  1700. package/node_modules/lodash/entries.js +1 -0
  1701. package/node_modules/lodash/entriesIn.js +1 -0
  1702. package/node_modules/lodash/eq.js +37 -0
  1703. package/node_modules/lodash/escape.js +43 -0
  1704. package/node_modules/lodash/escapeRegExp.js +32 -0
  1705. package/node_modules/lodash/every.js +56 -0
  1706. package/node_modules/lodash/extend.js +1 -0
  1707. package/node_modules/lodash/extendWith.js +1 -0
  1708. package/node_modules/lodash/fill.js +45 -0
  1709. package/node_modules/lodash/filter.js +52 -0
  1710. package/node_modules/lodash/find.js +42 -0
  1711. package/node_modules/lodash/findIndex.js +55 -0
  1712. package/node_modules/lodash/findKey.js +44 -0
  1713. package/node_modules/lodash/findLast.js +25 -0
  1714. package/node_modules/lodash/findLastIndex.js +59 -0
  1715. package/node_modules/lodash/findLastKey.js +44 -0
  1716. package/node_modules/lodash/first.js +1 -0
  1717. package/node_modules/lodash/flatMap.js +29 -0
  1718. package/node_modules/lodash/flatMapDeep.js +31 -0
  1719. package/node_modules/lodash/flatMapDepth.js +31 -0
  1720. package/node_modules/lodash/flatten.js +22 -0
  1721. package/node_modules/lodash/flattenDeep.js +25 -0
  1722. package/node_modules/lodash/flattenDepth.js +33 -0
  1723. package/node_modules/lodash/flip.js +28 -0
  1724. package/node_modules/lodash/floor.js +26 -0
  1725. package/node_modules/lodash/flow.js +27 -0
  1726. package/node_modules/lodash/flowRight.js +26 -0
  1727. package/node_modules/lodash/forEach.js +41 -0
  1728. package/node_modules/lodash/forEachRight.js +31 -0
  1729. package/node_modules/lodash/forIn.js +39 -0
  1730. package/node_modules/lodash/forInRight.js +37 -0
  1731. package/node_modules/lodash/forOwn.js +36 -0
  1732. package/node_modules/lodash/forOwnRight.js +34 -0
  1733. package/node_modules/lodash/fp/F.js +1 -0
  1734. package/node_modules/lodash/fp/T.js +1 -0
  1735. package/node_modules/lodash/fp/__.js +1 -0
  1736. package/node_modules/lodash/fp/_baseConvert.js +569 -0
  1737. package/node_modules/lodash/fp/_convertBrowser.js +18 -0
  1738. package/node_modules/lodash/fp/_falseOptions.js +7 -0
  1739. package/node_modules/lodash/fp/_mapping.js +358 -0
  1740. package/node_modules/lodash/fp/_util.js +16 -0
  1741. package/node_modules/lodash/fp/add.js +5 -0
  1742. package/node_modules/lodash/fp/after.js +5 -0
  1743. package/node_modules/lodash/fp/all.js +1 -0
  1744. package/node_modules/lodash/fp/allPass.js +1 -0
  1745. package/node_modules/lodash/fp/always.js +1 -0
  1746. package/node_modules/lodash/fp/any.js +1 -0
  1747. package/node_modules/lodash/fp/anyPass.js +1 -0
  1748. package/node_modules/lodash/fp/apply.js +1 -0
  1749. package/node_modules/lodash/fp/array.js +2 -0
  1750. package/node_modules/lodash/fp/ary.js +5 -0
  1751. package/node_modules/lodash/fp/assign.js +5 -0
  1752. package/node_modules/lodash/fp/assignAll.js +5 -0
  1753. package/node_modules/lodash/fp/assignAllWith.js +5 -0
  1754. package/node_modules/lodash/fp/assignIn.js +5 -0
  1755. package/node_modules/lodash/fp/assignInAll.js +5 -0
  1756. package/node_modules/lodash/fp/assignInAllWith.js +5 -0
  1757. package/node_modules/lodash/fp/assignInWith.js +5 -0
  1758. package/node_modules/lodash/fp/assignWith.js +5 -0
  1759. package/node_modules/lodash/fp/assoc.js +1 -0
  1760. package/node_modules/lodash/fp/assocPath.js +1 -0
  1761. package/node_modules/lodash/fp/at.js +5 -0
  1762. package/node_modules/lodash/fp/attempt.js +5 -0
  1763. package/node_modules/lodash/fp/before.js +5 -0
  1764. package/node_modules/lodash/fp/bind.js +5 -0
  1765. package/node_modules/lodash/fp/bindAll.js +5 -0
  1766. package/node_modules/lodash/fp/bindKey.js +5 -0
  1767. package/node_modules/lodash/fp/camelCase.js +5 -0
  1768. package/node_modules/lodash/fp/capitalize.js +5 -0
  1769. package/node_modules/lodash/fp/castArray.js +5 -0
  1770. package/node_modules/lodash/fp/ceil.js +5 -0
  1771. package/node_modules/lodash/fp/chain.js +5 -0
  1772. package/node_modules/lodash/fp/chunk.js +5 -0
  1773. package/node_modules/lodash/fp/clamp.js +5 -0
  1774. package/node_modules/lodash/fp/clone.js +5 -0
  1775. package/node_modules/lodash/fp/cloneDeep.js +5 -0
  1776. package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  1777. package/node_modules/lodash/fp/cloneWith.js +5 -0
  1778. package/node_modules/lodash/fp/collection.js +2 -0
  1779. package/node_modules/lodash/fp/commit.js +5 -0
  1780. package/node_modules/lodash/fp/compact.js +5 -0
  1781. package/node_modules/lodash/fp/complement.js +1 -0
  1782. package/node_modules/lodash/fp/compose.js +1 -0
  1783. package/node_modules/lodash/fp/concat.js +5 -0
  1784. package/node_modules/lodash/fp/cond.js +5 -0
  1785. package/node_modules/lodash/fp/conforms.js +1 -0
  1786. package/node_modules/lodash/fp/conformsTo.js +5 -0
  1787. package/node_modules/lodash/fp/constant.js +5 -0
  1788. package/node_modules/lodash/fp/contains.js +1 -0
  1789. package/node_modules/lodash/fp/convert.js +18 -0
  1790. package/node_modules/lodash/fp/countBy.js +5 -0
  1791. package/node_modules/lodash/fp/create.js +5 -0
  1792. package/node_modules/lodash/fp/curry.js +5 -0
  1793. package/node_modules/lodash/fp/curryN.js +5 -0
  1794. package/node_modules/lodash/fp/curryRight.js +5 -0
  1795. package/node_modules/lodash/fp/curryRightN.js +5 -0
  1796. package/node_modules/lodash/fp/date.js +2 -0
  1797. package/node_modules/lodash/fp/debounce.js +5 -0
  1798. package/node_modules/lodash/fp/deburr.js +5 -0
  1799. package/node_modules/lodash/fp/defaultTo.js +5 -0
  1800. package/node_modules/lodash/fp/defaults.js +5 -0
  1801. package/node_modules/lodash/fp/defaultsAll.js +5 -0
  1802. package/node_modules/lodash/fp/defaultsDeep.js +5 -0
  1803. package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  1804. package/node_modules/lodash/fp/defer.js +5 -0
  1805. package/node_modules/lodash/fp/delay.js +5 -0
  1806. package/node_modules/lodash/fp/difference.js +5 -0
  1807. package/node_modules/lodash/fp/differenceBy.js +5 -0
  1808. package/node_modules/lodash/fp/differenceWith.js +5 -0
  1809. package/node_modules/lodash/fp/dissoc.js +1 -0
  1810. package/node_modules/lodash/fp/dissocPath.js +1 -0
  1811. package/node_modules/lodash/fp/divide.js +5 -0
  1812. package/node_modules/lodash/fp/drop.js +5 -0
  1813. package/node_modules/lodash/fp/dropLast.js +1 -0
  1814. package/node_modules/lodash/fp/dropLastWhile.js +1 -0
  1815. package/node_modules/lodash/fp/dropRight.js +5 -0
  1816. package/node_modules/lodash/fp/dropRightWhile.js +5 -0
  1817. package/node_modules/lodash/fp/dropWhile.js +5 -0
  1818. package/node_modules/lodash/fp/each.js +1 -0
  1819. package/node_modules/lodash/fp/eachRight.js +1 -0
  1820. package/node_modules/lodash/fp/endsWith.js +5 -0
  1821. package/node_modules/lodash/fp/entries.js +1 -0
  1822. package/node_modules/lodash/fp/entriesIn.js +1 -0
  1823. package/node_modules/lodash/fp/eq.js +5 -0
  1824. package/node_modules/lodash/fp/equals.js +1 -0
  1825. package/node_modules/lodash/fp/escape.js +5 -0
  1826. package/node_modules/lodash/fp/escapeRegExp.js +5 -0
  1827. package/node_modules/lodash/fp/every.js +5 -0
  1828. package/node_modules/lodash/fp/extend.js +1 -0
  1829. package/node_modules/lodash/fp/extendAll.js +1 -0
  1830. package/node_modules/lodash/fp/extendAllWith.js +1 -0
  1831. package/node_modules/lodash/fp/extendWith.js +1 -0
  1832. package/node_modules/lodash/fp/fill.js +5 -0
  1833. package/node_modules/lodash/fp/filter.js +5 -0
  1834. package/node_modules/lodash/fp/find.js +5 -0
  1835. package/node_modules/lodash/fp/findFrom.js +5 -0
  1836. package/node_modules/lodash/fp/findIndex.js +5 -0
  1837. package/node_modules/lodash/fp/findIndexFrom.js +5 -0
  1838. package/node_modules/lodash/fp/findKey.js +5 -0
  1839. package/node_modules/lodash/fp/findLast.js +5 -0
  1840. package/node_modules/lodash/fp/findLastFrom.js +5 -0
  1841. package/node_modules/lodash/fp/findLastIndex.js +5 -0
  1842. package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  1843. package/node_modules/lodash/fp/findLastKey.js +5 -0
  1844. package/node_modules/lodash/fp/first.js +1 -0
  1845. package/node_modules/lodash/fp/flatMap.js +5 -0
  1846. package/node_modules/lodash/fp/flatMapDeep.js +5 -0
  1847. package/node_modules/lodash/fp/flatMapDepth.js +5 -0
  1848. package/node_modules/lodash/fp/flatten.js +5 -0
  1849. package/node_modules/lodash/fp/flattenDeep.js +5 -0
  1850. package/node_modules/lodash/fp/flattenDepth.js +5 -0
  1851. package/node_modules/lodash/fp/flip.js +5 -0
  1852. package/node_modules/lodash/fp/floor.js +5 -0
  1853. package/node_modules/lodash/fp/flow.js +5 -0
  1854. package/node_modules/lodash/fp/flowRight.js +5 -0
  1855. package/node_modules/lodash/fp/forEach.js +5 -0
  1856. package/node_modules/lodash/fp/forEachRight.js +5 -0
  1857. package/node_modules/lodash/fp/forIn.js +5 -0
  1858. package/node_modules/lodash/fp/forInRight.js +5 -0
  1859. package/node_modules/lodash/fp/forOwn.js +5 -0
  1860. package/node_modules/lodash/fp/forOwnRight.js +5 -0
  1861. package/node_modules/lodash/fp/fromPairs.js +5 -0
  1862. package/node_modules/lodash/fp/function.js +2 -0
  1863. package/node_modules/lodash/fp/functions.js +5 -0
  1864. package/node_modules/lodash/fp/functionsIn.js +5 -0
  1865. package/node_modules/lodash/fp/get.js +5 -0
  1866. package/node_modules/lodash/fp/getOr.js +5 -0
  1867. package/node_modules/lodash/fp/groupBy.js +5 -0
  1868. package/node_modules/lodash/fp/gt.js +5 -0
  1869. package/node_modules/lodash/fp/gte.js +5 -0
  1870. package/node_modules/lodash/fp/has.js +5 -0
  1871. package/node_modules/lodash/fp/hasIn.js +5 -0
  1872. package/node_modules/lodash/fp/head.js +5 -0
  1873. package/node_modules/lodash/fp/identical.js +1 -0
  1874. package/node_modules/lodash/fp/identity.js +5 -0
  1875. package/node_modules/lodash/fp/inRange.js +5 -0
  1876. package/node_modules/lodash/fp/includes.js +5 -0
  1877. package/node_modules/lodash/fp/includesFrom.js +5 -0
  1878. package/node_modules/lodash/fp/indexBy.js +1 -0
  1879. package/node_modules/lodash/fp/indexOf.js +5 -0
  1880. package/node_modules/lodash/fp/indexOfFrom.js +5 -0
  1881. package/node_modules/lodash/fp/init.js +1 -0
  1882. package/node_modules/lodash/fp/initial.js +5 -0
  1883. package/node_modules/lodash/fp/intersection.js +5 -0
  1884. package/node_modules/lodash/fp/intersectionBy.js +5 -0
  1885. package/node_modules/lodash/fp/intersectionWith.js +5 -0
  1886. package/node_modules/lodash/fp/invert.js +5 -0
  1887. package/node_modules/lodash/fp/invertBy.js +5 -0
  1888. package/node_modules/lodash/fp/invertObj.js +1 -0
  1889. package/node_modules/lodash/fp/invoke.js +5 -0
  1890. package/node_modules/lodash/fp/invokeArgs.js +5 -0
  1891. package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  1892. package/node_modules/lodash/fp/invokeMap.js +5 -0
  1893. package/node_modules/lodash/fp/isArguments.js +5 -0
  1894. package/node_modules/lodash/fp/isArray.js +5 -0
  1895. package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  1896. package/node_modules/lodash/fp/isArrayLike.js +5 -0
  1897. package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  1898. package/node_modules/lodash/fp/isBoolean.js +5 -0
  1899. package/node_modules/lodash/fp/isBuffer.js +5 -0
  1900. package/node_modules/lodash/fp/isDate.js +5 -0
  1901. package/node_modules/lodash/fp/isElement.js +5 -0
  1902. package/node_modules/lodash/fp/isEmpty.js +5 -0
  1903. package/node_modules/lodash/fp/isEqual.js +5 -0
  1904. package/node_modules/lodash/fp/isEqualWith.js +5 -0
  1905. package/node_modules/lodash/fp/isError.js +5 -0
  1906. package/node_modules/lodash/fp/isFinite.js +5 -0
  1907. package/node_modules/lodash/fp/isFunction.js +5 -0
  1908. package/node_modules/lodash/fp/isInteger.js +5 -0
  1909. package/node_modules/lodash/fp/isLength.js +5 -0
  1910. package/node_modules/lodash/fp/isMap.js +5 -0
  1911. package/node_modules/lodash/fp/isMatch.js +5 -0
  1912. package/node_modules/lodash/fp/isMatchWith.js +5 -0
  1913. package/node_modules/lodash/fp/isNaN.js +5 -0
  1914. package/node_modules/lodash/fp/isNative.js +5 -0
  1915. package/node_modules/lodash/fp/isNil.js +5 -0
  1916. package/node_modules/lodash/fp/isNull.js +5 -0
  1917. package/node_modules/lodash/fp/isNumber.js +5 -0
  1918. package/node_modules/lodash/fp/isObject.js +5 -0
  1919. package/node_modules/lodash/fp/isObjectLike.js +5 -0
  1920. package/node_modules/lodash/fp/isPlainObject.js +5 -0
  1921. package/node_modules/lodash/fp/isRegExp.js +5 -0
  1922. package/node_modules/lodash/fp/isSafeInteger.js +5 -0
  1923. package/node_modules/lodash/fp/isSet.js +5 -0
  1924. package/node_modules/lodash/fp/isString.js +5 -0
  1925. package/node_modules/lodash/fp/isSymbol.js +5 -0
  1926. package/node_modules/lodash/fp/isTypedArray.js +5 -0
  1927. package/node_modules/lodash/fp/isUndefined.js +5 -0
  1928. package/node_modules/lodash/fp/isWeakMap.js +5 -0
  1929. package/node_modules/lodash/fp/isWeakSet.js +5 -0
  1930. package/node_modules/lodash/fp/iteratee.js +5 -0
  1931. package/node_modules/lodash/fp/join.js +5 -0
  1932. package/node_modules/lodash/fp/juxt.js +1 -0
  1933. package/node_modules/lodash/fp/kebabCase.js +5 -0
  1934. package/node_modules/lodash/fp/keyBy.js +5 -0
  1935. package/node_modules/lodash/fp/keys.js +5 -0
  1936. package/node_modules/lodash/fp/keysIn.js +5 -0
  1937. package/node_modules/lodash/fp/lang.js +2 -0
  1938. package/node_modules/lodash/fp/last.js +5 -0
  1939. package/node_modules/lodash/fp/lastIndexOf.js +5 -0
  1940. package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  1941. package/node_modules/lodash/fp/lowerCase.js +5 -0
  1942. package/node_modules/lodash/fp/lowerFirst.js +5 -0
  1943. package/node_modules/lodash/fp/lt.js +5 -0
  1944. package/node_modules/lodash/fp/lte.js +5 -0
  1945. package/node_modules/lodash/fp/map.js +5 -0
  1946. package/node_modules/lodash/fp/mapKeys.js +5 -0
  1947. package/node_modules/lodash/fp/mapValues.js +5 -0
  1948. package/node_modules/lodash/fp/matches.js +1 -0
  1949. package/node_modules/lodash/fp/matchesProperty.js +5 -0
  1950. package/node_modules/lodash/fp/math.js +2 -0
  1951. package/node_modules/lodash/fp/max.js +5 -0
  1952. package/node_modules/lodash/fp/maxBy.js +5 -0
  1953. package/node_modules/lodash/fp/mean.js +5 -0
  1954. package/node_modules/lodash/fp/meanBy.js +5 -0
  1955. package/node_modules/lodash/fp/memoize.js +5 -0
  1956. package/node_modules/lodash/fp/merge.js +5 -0
  1957. package/node_modules/lodash/fp/mergeAll.js +5 -0
  1958. package/node_modules/lodash/fp/mergeAllWith.js +5 -0
  1959. package/node_modules/lodash/fp/mergeWith.js +5 -0
  1960. package/node_modules/lodash/fp/method.js +5 -0
  1961. package/node_modules/lodash/fp/methodOf.js +5 -0
  1962. package/node_modules/lodash/fp/min.js +5 -0
  1963. package/node_modules/lodash/fp/minBy.js +5 -0
  1964. package/node_modules/lodash/fp/mixin.js +5 -0
  1965. package/node_modules/lodash/fp/multiply.js +5 -0
  1966. package/node_modules/lodash/fp/nAry.js +1 -0
  1967. package/node_modules/lodash/fp/negate.js +5 -0
  1968. package/node_modules/lodash/fp/next.js +5 -0
  1969. package/node_modules/lodash/fp/noop.js +5 -0
  1970. package/node_modules/lodash/fp/now.js +5 -0
  1971. package/node_modules/lodash/fp/nth.js +5 -0
  1972. package/node_modules/lodash/fp/nthArg.js +5 -0
  1973. package/node_modules/lodash/fp/number.js +2 -0
  1974. package/node_modules/lodash/fp/object.js +2 -0
  1975. package/node_modules/lodash/fp/omit.js +5 -0
  1976. package/node_modules/lodash/fp/omitAll.js +1 -0
  1977. package/node_modules/lodash/fp/omitBy.js +5 -0
  1978. package/node_modules/lodash/fp/once.js +5 -0
  1979. package/node_modules/lodash/fp/orderBy.js +5 -0
  1980. package/node_modules/lodash/fp/over.js +5 -0
  1981. package/node_modules/lodash/fp/overArgs.js +5 -0
  1982. package/node_modules/lodash/fp/overEvery.js +5 -0
  1983. package/node_modules/lodash/fp/overSome.js +5 -0
  1984. package/node_modules/lodash/fp/pad.js +5 -0
  1985. package/node_modules/lodash/fp/padChars.js +5 -0
  1986. package/node_modules/lodash/fp/padCharsEnd.js +5 -0
  1987. package/node_modules/lodash/fp/padCharsStart.js +5 -0
  1988. package/node_modules/lodash/fp/padEnd.js +5 -0
  1989. package/node_modules/lodash/fp/padStart.js +5 -0
  1990. package/node_modules/lodash/fp/parseInt.js +5 -0
  1991. package/node_modules/lodash/fp/partial.js +5 -0
  1992. package/node_modules/lodash/fp/partialRight.js +5 -0
  1993. package/node_modules/lodash/fp/partition.js +5 -0
  1994. package/node_modules/lodash/fp/path.js +1 -0
  1995. package/node_modules/lodash/fp/pathEq.js +1 -0
  1996. package/node_modules/lodash/fp/pathOr.js +1 -0
  1997. package/node_modules/lodash/fp/paths.js +1 -0
  1998. package/node_modules/lodash/fp/pick.js +5 -0
  1999. package/node_modules/lodash/fp/pickAll.js +1 -0
  2000. package/node_modules/lodash/fp/pickBy.js +5 -0
  2001. package/node_modules/lodash/fp/pipe.js +1 -0
  2002. package/node_modules/lodash/fp/placeholder.js +6 -0
  2003. package/node_modules/lodash/fp/plant.js +5 -0
  2004. package/node_modules/lodash/fp/pluck.js +1 -0
  2005. package/node_modules/lodash/fp/prop.js +1 -0
  2006. package/node_modules/lodash/fp/propEq.js +1 -0
  2007. package/node_modules/lodash/fp/propOr.js +1 -0
  2008. package/node_modules/lodash/fp/property.js +1 -0
  2009. package/node_modules/lodash/fp/propertyOf.js +5 -0
  2010. package/node_modules/lodash/fp/props.js +1 -0
  2011. package/node_modules/lodash/fp/pull.js +5 -0
  2012. package/node_modules/lodash/fp/pullAll.js +5 -0
  2013. package/node_modules/lodash/fp/pullAllBy.js +5 -0
  2014. package/node_modules/lodash/fp/pullAllWith.js +5 -0
  2015. package/node_modules/lodash/fp/pullAt.js +5 -0
  2016. package/node_modules/lodash/fp/random.js +5 -0
  2017. package/node_modules/lodash/fp/range.js +5 -0
  2018. package/node_modules/lodash/fp/rangeRight.js +5 -0
  2019. package/node_modules/lodash/fp/rangeStep.js +5 -0
  2020. package/node_modules/lodash/fp/rangeStepRight.js +5 -0
  2021. package/node_modules/lodash/fp/rearg.js +5 -0
  2022. package/node_modules/lodash/fp/reduce.js +5 -0
  2023. package/node_modules/lodash/fp/reduceRight.js +5 -0
  2024. package/node_modules/lodash/fp/reject.js +5 -0
  2025. package/node_modules/lodash/fp/remove.js +5 -0
  2026. package/node_modules/lodash/fp/repeat.js +5 -0
  2027. package/node_modules/lodash/fp/replace.js +5 -0
  2028. package/node_modules/lodash/fp/rest.js +5 -0
  2029. package/node_modules/lodash/fp/restFrom.js +5 -0
  2030. package/node_modules/lodash/fp/result.js +5 -0
  2031. package/node_modules/lodash/fp/reverse.js +5 -0
  2032. package/node_modules/lodash/fp/round.js +5 -0
  2033. package/node_modules/lodash/fp/sample.js +5 -0
  2034. package/node_modules/lodash/fp/sampleSize.js +5 -0
  2035. package/node_modules/lodash/fp/seq.js +2 -0
  2036. package/node_modules/lodash/fp/set.js +5 -0
  2037. package/node_modules/lodash/fp/setWith.js +5 -0
  2038. package/node_modules/lodash/fp/shuffle.js +5 -0
  2039. package/node_modules/lodash/fp/size.js +5 -0
  2040. package/node_modules/lodash/fp/slice.js +5 -0
  2041. package/node_modules/lodash/fp/snakeCase.js +5 -0
  2042. package/node_modules/lodash/fp/some.js +5 -0
  2043. package/node_modules/lodash/fp/sortBy.js +5 -0
  2044. package/node_modules/lodash/fp/sortedIndex.js +5 -0
  2045. package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  2046. package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  2047. package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  2048. package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  2049. package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  2050. package/node_modules/lodash/fp/sortedUniq.js +5 -0
  2051. package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  2052. package/node_modules/lodash/fp/split.js +5 -0
  2053. package/node_modules/lodash/fp/spread.js +5 -0
  2054. package/node_modules/lodash/fp/spreadFrom.js +5 -0
  2055. package/node_modules/lodash/fp/startCase.js +5 -0
  2056. package/node_modules/lodash/fp/startsWith.js +5 -0
  2057. package/node_modules/lodash/fp/string.js +2 -0
  2058. package/node_modules/lodash/fp/stubArray.js +5 -0
  2059. package/node_modules/lodash/fp/stubFalse.js +5 -0
  2060. package/node_modules/lodash/fp/stubObject.js +5 -0
  2061. package/node_modules/lodash/fp/stubString.js +5 -0
  2062. package/node_modules/lodash/fp/stubTrue.js +5 -0
  2063. package/node_modules/lodash/fp/subtract.js +5 -0
  2064. package/node_modules/lodash/fp/sum.js +5 -0
  2065. package/node_modules/lodash/fp/sumBy.js +5 -0
  2066. package/node_modules/lodash/fp/symmetricDifference.js +1 -0
  2067. package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  2068. package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  2069. package/node_modules/lodash/fp/tail.js +5 -0
  2070. package/node_modules/lodash/fp/take.js +5 -0
  2071. package/node_modules/lodash/fp/takeLast.js +1 -0
  2072. package/node_modules/lodash/fp/takeLastWhile.js +1 -0
  2073. package/node_modules/lodash/fp/takeRight.js +5 -0
  2074. package/node_modules/lodash/fp/takeRightWhile.js +5 -0
  2075. package/node_modules/lodash/fp/takeWhile.js +5 -0
  2076. package/node_modules/lodash/fp/tap.js +5 -0
  2077. package/node_modules/lodash/fp/template.js +5 -0
  2078. package/node_modules/lodash/fp/templateSettings.js +5 -0
  2079. package/node_modules/lodash/fp/throttle.js +5 -0
  2080. package/node_modules/lodash/fp/thru.js +5 -0
  2081. package/node_modules/lodash/fp/times.js +5 -0
  2082. package/node_modules/lodash/fp/toArray.js +5 -0
  2083. package/node_modules/lodash/fp/toFinite.js +5 -0
  2084. package/node_modules/lodash/fp/toInteger.js +5 -0
  2085. package/node_modules/lodash/fp/toIterator.js +5 -0
  2086. package/node_modules/lodash/fp/toJSON.js +5 -0
  2087. package/node_modules/lodash/fp/toLength.js +5 -0
  2088. package/node_modules/lodash/fp/toLower.js +5 -0
  2089. package/node_modules/lodash/fp/toNumber.js +5 -0
  2090. package/node_modules/lodash/fp/toPairs.js +5 -0
  2091. package/node_modules/lodash/fp/toPairsIn.js +5 -0
  2092. package/node_modules/lodash/fp/toPath.js +5 -0
  2093. package/node_modules/lodash/fp/toPlainObject.js +5 -0
  2094. package/node_modules/lodash/fp/toSafeInteger.js +5 -0
  2095. package/node_modules/lodash/fp/toString.js +5 -0
  2096. package/node_modules/lodash/fp/toUpper.js +5 -0
  2097. package/node_modules/lodash/fp/transform.js +5 -0
  2098. package/node_modules/lodash/fp/trim.js +5 -0
  2099. package/node_modules/lodash/fp/trimChars.js +5 -0
  2100. package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  2101. package/node_modules/lodash/fp/trimCharsStart.js +5 -0
  2102. package/node_modules/lodash/fp/trimEnd.js +5 -0
  2103. package/node_modules/lodash/fp/trimStart.js +5 -0
  2104. package/node_modules/lodash/fp/truncate.js +5 -0
  2105. package/node_modules/lodash/fp/unapply.js +1 -0
  2106. package/node_modules/lodash/fp/unary.js +5 -0
  2107. package/node_modules/lodash/fp/unescape.js +5 -0
  2108. package/node_modules/lodash/fp/union.js +5 -0
  2109. package/node_modules/lodash/fp/unionBy.js +5 -0
  2110. package/node_modules/lodash/fp/unionWith.js +5 -0
  2111. package/node_modules/lodash/fp/uniq.js +5 -0
  2112. package/node_modules/lodash/fp/uniqBy.js +5 -0
  2113. package/node_modules/lodash/fp/uniqWith.js +5 -0
  2114. package/node_modules/lodash/fp/uniqueId.js +5 -0
  2115. package/node_modules/lodash/fp/unnest.js +1 -0
  2116. package/node_modules/lodash/fp/unset.js +5 -0
  2117. package/node_modules/lodash/fp/unzip.js +5 -0
  2118. package/node_modules/lodash/fp/unzipWith.js +5 -0
  2119. package/node_modules/lodash/fp/update.js +5 -0
  2120. package/node_modules/lodash/fp/updateWith.js +5 -0
  2121. package/node_modules/lodash/fp/upperCase.js +5 -0
  2122. package/node_modules/lodash/fp/upperFirst.js +5 -0
  2123. package/node_modules/lodash/fp/useWith.js +1 -0
  2124. package/node_modules/lodash/fp/util.js +2 -0
  2125. package/node_modules/lodash/fp/value.js +5 -0
  2126. package/node_modules/lodash/fp/valueOf.js +5 -0
  2127. package/node_modules/lodash/fp/values.js +5 -0
  2128. package/node_modules/lodash/fp/valuesIn.js +5 -0
  2129. package/node_modules/lodash/fp/where.js +1 -0
  2130. package/node_modules/lodash/fp/whereEq.js +1 -0
  2131. package/node_modules/lodash/fp/without.js +5 -0
  2132. package/node_modules/lodash/fp/words.js +5 -0
  2133. package/node_modules/lodash/fp/wrap.js +5 -0
  2134. package/node_modules/lodash/fp/wrapperAt.js +5 -0
  2135. package/node_modules/lodash/fp/wrapperChain.js +5 -0
  2136. package/node_modules/lodash/fp/wrapperLodash.js +5 -0
  2137. package/node_modules/lodash/fp/wrapperReverse.js +5 -0
  2138. package/node_modules/lodash/fp/wrapperValue.js +5 -0
  2139. package/node_modules/lodash/fp/xor.js +5 -0
  2140. package/node_modules/lodash/fp/xorBy.js +5 -0
  2141. package/node_modules/lodash/fp/xorWith.js +5 -0
  2142. package/node_modules/lodash/fp/zip.js +5 -0
  2143. package/node_modules/lodash/fp/zipAll.js +5 -0
  2144. package/node_modules/lodash/fp/zipObj.js +1 -0
  2145. package/node_modules/lodash/fp/zipObject.js +5 -0
  2146. package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  2147. package/node_modules/lodash/fp/zipWith.js +5 -0
  2148. package/node_modules/lodash/fp.js +2 -0
  2149. package/node_modules/lodash/fromPairs.js +30 -0
  2150. package/node_modules/lodash/function.js +25 -0
  2151. package/node_modules/lodash/functions.js +31 -0
  2152. package/node_modules/lodash/functionsIn.js +31 -0
  2153. package/node_modules/lodash/get.js +33 -0
  2154. package/node_modules/lodash/groupBy.js +41 -0
  2155. package/node_modules/lodash/gt.js +29 -0
  2156. package/node_modules/lodash/gte.js +30 -0
  2157. package/node_modules/lodash/has.js +35 -0
  2158. package/node_modules/lodash/hasIn.js +34 -0
  2159. package/node_modules/lodash/head.js +23 -0
  2160. package/node_modules/lodash/identity.js +21 -0
  2161. package/node_modules/lodash/inRange.js +55 -0
  2162. package/node_modules/lodash/includes.js +53 -0
  2163. package/node_modules/lodash/index.js +1 -0
  2164. package/node_modules/lodash/indexOf.js +42 -0
  2165. package/node_modules/lodash/initial.js +22 -0
  2166. package/node_modules/lodash/intersection.js +30 -0
  2167. package/node_modules/lodash/intersectionBy.js +45 -0
  2168. package/node_modules/lodash/intersectionWith.js +41 -0
  2169. package/node_modules/lodash/invert.js +42 -0
  2170. package/node_modules/lodash/invertBy.js +56 -0
  2171. package/node_modules/lodash/invoke.js +24 -0
  2172. package/node_modules/lodash/invokeMap.js +41 -0
  2173. package/node_modules/lodash/isArguments.js +36 -0
  2174. package/node_modules/lodash/isArray.js +26 -0
  2175. package/node_modules/lodash/isArrayBuffer.js +27 -0
  2176. package/node_modules/lodash/isArrayLike.js +33 -0
  2177. package/node_modules/lodash/isArrayLikeObject.js +33 -0
  2178. package/node_modules/lodash/isBoolean.js +29 -0
  2179. package/node_modules/lodash/isBuffer.js +38 -0
  2180. package/node_modules/lodash/isDate.js +27 -0
  2181. package/node_modules/lodash/isElement.js +25 -0
  2182. package/node_modules/lodash/isEmpty.js +77 -0
  2183. package/node_modules/lodash/isEqual.js +35 -0
  2184. package/node_modules/lodash/isEqualWith.js +41 -0
  2185. package/node_modules/lodash/isError.js +36 -0
  2186. package/node_modules/lodash/isFinite.js +36 -0
  2187. package/node_modules/lodash/isFunction.js +37 -0
  2188. package/node_modules/lodash/isInteger.js +33 -0
  2189. package/node_modules/lodash/isLength.js +35 -0
  2190. package/node_modules/lodash/isMap.js +27 -0
  2191. package/node_modules/lodash/isMatch.js +36 -0
  2192. package/node_modules/lodash/isMatchWith.js +41 -0
  2193. package/node_modules/lodash/isNaN.js +38 -0
  2194. package/node_modules/lodash/isNative.js +40 -0
  2195. package/node_modules/lodash/isNil.js +25 -0
  2196. package/node_modules/lodash/isNull.js +22 -0
  2197. package/node_modules/lodash/isNumber.js +38 -0
  2198. package/node_modules/lodash/isObject.js +31 -0
  2199. package/node_modules/lodash/isObjectLike.js +29 -0
  2200. package/node_modules/lodash/isPlainObject.js +62 -0
  2201. package/node_modules/lodash/isRegExp.js +27 -0
  2202. package/node_modules/lodash/isSafeInteger.js +37 -0
  2203. package/node_modules/lodash/isSet.js +27 -0
  2204. package/node_modules/lodash/isString.js +30 -0
  2205. package/node_modules/lodash/isSymbol.js +29 -0
  2206. package/node_modules/lodash/isTypedArray.js +27 -0
  2207. package/node_modules/lodash/isUndefined.js +22 -0
  2208. package/node_modules/lodash/isWeakMap.js +28 -0
  2209. package/node_modules/lodash/isWeakSet.js +28 -0
  2210. package/node_modules/lodash/iteratee.js +53 -0
  2211. package/node_modules/lodash/join.js +26 -0
  2212. package/node_modules/lodash/kebabCase.js +28 -0
  2213. package/node_modules/lodash/keyBy.js +36 -0
  2214. package/node_modules/lodash/keys.js +37 -0
  2215. package/node_modules/lodash/keysIn.js +32 -0
  2216. package/node_modules/lodash/lang.js +58 -0
  2217. package/node_modules/lodash/last.js +20 -0
  2218. package/node_modules/lodash/lastIndexOf.js +46 -0
  2219. package/node_modules/lodash/lodash.js +17259 -0
  2220. package/node_modules/lodash/lodash.min.js +136 -0
  2221. package/node_modules/lodash/lowerCase.js +27 -0
  2222. package/node_modules/lodash/lowerFirst.js +22 -0
  2223. package/node_modules/lodash/lt.js +29 -0
  2224. package/node_modules/lodash/lte.js +30 -0
  2225. package/node_modules/lodash/map.js +53 -0
  2226. package/node_modules/lodash/mapKeys.js +36 -0
  2227. package/node_modules/lodash/mapValues.js +43 -0
  2228. package/node_modules/lodash/matches.js +46 -0
  2229. package/node_modules/lodash/matchesProperty.js +44 -0
  2230. package/node_modules/lodash/math.js +17 -0
  2231. package/node_modules/lodash/max.js +29 -0
  2232. package/node_modules/lodash/maxBy.js +34 -0
  2233. package/node_modules/lodash/mean.js +22 -0
  2234. package/node_modules/lodash/meanBy.js +31 -0
  2235. package/node_modules/lodash/memoize.js +73 -0
  2236. package/node_modules/lodash/merge.js +39 -0
  2237. package/node_modules/lodash/mergeWith.js +39 -0
  2238. package/node_modules/lodash/method.js +34 -0
  2239. package/node_modules/lodash/methodOf.js +33 -0
  2240. package/node_modules/lodash/min.js +29 -0
  2241. package/node_modules/lodash/minBy.js +34 -0
  2242. package/node_modules/lodash/mixin.js +74 -0
  2243. package/node_modules/lodash/multiply.js +22 -0
  2244. package/node_modules/lodash/negate.js +40 -0
  2245. package/node_modules/lodash/next.js +35 -0
  2246. package/node_modules/lodash/noop.js +17 -0
  2247. package/node_modules/lodash/now.js +23 -0
  2248. package/node_modules/lodash/nth.js +29 -0
  2249. package/node_modules/lodash/nthArg.js +32 -0
  2250. package/node_modules/lodash/number.js +5 -0
  2251. package/node_modules/lodash/object.js +49 -0
  2252. package/node_modules/lodash/omit.js +57 -0
  2253. package/node_modules/lodash/omitBy.js +29 -0
  2254. package/node_modules/lodash/once.js +25 -0
  2255. package/node_modules/lodash/orderBy.js +47 -0
  2256. package/node_modules/lodash/over.js +24 -0
  2257. package/node_modules/lodash/overArgs.js +61 -0
  2258. package/node_modules/lodash/overEvery.js +34 -0
  2259. package/node_modules/lodash/overSome.js +37 -0
  2260. package/node_modules/lodash/package.json +19 -0
  2261. package/node_modules/lodash/pad.js +49 -0
  2262. package/node_modules/lodash/padEnd.js +39 -0
  2263. package/node_modules/lodash/padStart.js +39 -0
  2264. package/node_modules/lodash/parseInt.js +43 -0
  2265. package/node_modules/lodash/partial.js +50 -0
  2266. package/node_modules/lodash/partialRight.js +49 -0
  2267. package/node_modules/lodash/partition.js +43 -0
  2268. package/node_modules/lodash/pick.js +25 -0
  2269. package/node_modules/lodash/pickBy.js +37 -0
  2270. package/node_modules/lodash/plant.js +48 -0
  2271. package/node_modules/lodash/property.js +32 -0
  2272. package/node_modules/lodash/propertyOf.js +30 -0
  2273. package/node_modules/lodash/pull.js +29 -0
  2274. package/node_modules/lodash/pullAll.js +29 -0
  2275. package/node_modules/lodash/pullAllBy.js +33 -0
  2276. package/node_modules/lodash/pullAllWith.js +32 -0
  2277. package/node_modules/lodash/pullAt.js +43 -0
  2278. package/node_modules/lodash/random.js +91 -0
  2279. package/node_modules/lodash/range.js +46 -0
  2280. package/node_modules/lodash/rangeRight.js +41 -0
  2281. package/node_modules/lodash/rearg.js +33 -0
  2282. package/node_modules/lodash/reduce.js +51 -0
  2283. package/node_modules/lodash/reduceRight.js +36 -0
  2284. package/node_modules/lodash/reject.js +46 -0
  2285. package/node_modules/lodash/remove.js +53 -0
  2286. package/node_modules/lodash/repeat.js +37 -0
  2287. package/node_modules/lodash/replace.js +29 -0
  2288. package/node_modules/lodash/rest.js +40 -0
  2289. package/node_modules/lodash/result.js +56 -0
  2290. package/node_modules/lodash/reverse.js +34 -0
  2291. package/node_modules/lodash/round.js +26 -0
  2292. package/node_modules/lodash/sample.js +24 -0
  2293. package/node_modules/lodash/sampleSize.js +37 -0
  2294. package/node_modules/lodash/seq.js +16 -0
  2295. package/node_modules/lodash/set.js +35 -0
  2296. package/node_modules/lodash/setWith.js +32 -0
  2297. package/node_modules/lodash/shuffle.js +25 -0
  2298. package/node_modules/lodash/size.js +46 -0
  2299. package/node_modules/lodash/slice.js +37 -0
  2300. package/node_modules/lodash/snakeCase.js +28 -0
  2301. package/node_modules/lodash/some.js +51 -0
  2302. package/node_modules/lodash/sortBy.js +48 -0
  2303. package/node_modules/lodash/sortedIndex.js +24 -0
  2304. package/node_modules/lodash/sortedIndexBy.js +33 -0
  2305. package/node_modules/lodash/sortedIndexOf.js +31 -0
  2306. package/node_modules/lodash/sortedLastIndex.js +25 -0
  2307. package/node_modules/lodash/sortedLastIndexBy.js +33 -0
  2308. package/node_modules/lodash/sortedLastIndexOf.js +31 -0
  2309. package/node_modules/lodash/sortedUniq.js +24 -0
  2310. package/node_modules/lodash/sortedUniqBy.js +26 -0
  2311. package/node_modules/lodash/split.js +52 -0
  2312. package/node_modules/lodash/spread.js +63 -0
  2313. package/node_modules/lodash/startCase.js +29 -0
  2314. package/node_modules/lodash/startsWith.js +39 -0
  2315. package/node_modules/lodash/string.js +33 -0
  2316. package/node_modules/lodash/stubArray.js +23 -0
  2317. package/node_modules/lodash/stubFalse.js +18 -0
  2318. package/node_modules/lodash/stubObject.js +23 -0
  2319. package/node_modules/lodash/stubString.js +18 -0
  2320. package/node_modules/lodash/stubTrue.js +18 -0
  2321. package/node_modules/lodash/subtract.js +22 -0
  2322. package/node_modules/lodash/sum.js +24 -0
  2323. package/node_modules/lodash/sumBy.js +33 -0
  2324. package/node_modules/lodash/tail.js +22 -0
  2325. package/node_modules/lodash/take.js +37 -0
  2326. package/node_modules/lodash/takeRight.js +39 -0
  2327. package/node_modules/lodash/takeRightWhile.js +45 -0
  2328. package/node_modules/lodash/takeWhile.js +45 -0
  2329. package/node_modules/lodash/tap.js +29 -0
  2330. package/node_modules/lodash/template.js +284 -0
  2331. package/node_modules/lodash/templateSettings.js +71 -0
  2332. package/node_modules/lodash/throttle.js +69 -0
  2333. package/node_modules/lodash/thru.js +28 -0
  2334. package/node_modules/lodash/times.js +51 -0
  2335. package/node_modules/lodash/toArray.js +58 -0
  2336. package/node_modules/lodash/toFinite.js +42 -0
  2337. package/node_modules/lodash/toInteger.js +36 -0
  2338. package/node_modules/lodash/toIterator.js +23 -0
  2339. package/node_modules/lodash/toJSON.js +1 -0
  2340. package/node_modules/lodash/toLength.js +38 -0
  2341. package/node_modules/lodash/toLower.js +28 -0
  2342. package/node_modules/lodash/toNumber.js +64 -0
  2343. package/node_modules/lodash/toPairs.js +30 -0
  2344. package/node_modules/lodash/toPairsIn.js +30 -0
  2345. package/node_modules/lodash/toPath.js +33 -0
  2346. package/node_modules/lodash/toPlainObject.js +32 -0
  2347. package/node_modules/lodash/toSafeInteger.js +37 -0
  2348. package/node_modules/lodash/toString.js +28 -0
  2349. package/node_modules/lodash/toUpper.js +28 -0
  2350. package/node_modules/lodash/transform.js +65 -0
  2351. package/node_modules/lodash/trim.js +47 -0
  2352. package/node_modules/lodash/trimEnd.js +41 -0
  2353. package/node_modules/lodash/trimStart.js +43 -0
  2354. package/node_modules/lodash/truncate.js +111 -0
  2355. package/node_modules/lodash/unary.js +22 -0
  2356. package/node_modules/lodash/unescape.js +34 -0
  2357. package/node_modules/lodash/union.js +26 -0
  2358. package/node_modules/lodash/unionBy.js +39 -0
  2359. package/node_modules/lodash/unionWith.js +34 -0
  2360. package/node_modules/lodash/uniq.js +25 -0
  2361. package/node_modules/lodash/uniqBy.js +31 -0
  2362. package/node_modules/lodash/uniqWith.js +28 -0
  2363. package/node_modules/lodash/uniqueId.js +28 -0
  2364. package/node_modules/lodash/unset.js +34 -0
  2365. package/node_modules/lodash/unzip.js +45 -0
  2366. package/node_modules/lodash/unzipWith.js +39 -0
  2367. package/node_modules/lodash/update.js +35 -0
  2368. package/node_modules/lodash/updateWith.js +33 -0
  2369. package/node_modules/lodash/upperCase.js +27 -0
  2370. package/node_modules/lodash/upperFirst.js +22 -0
  2371. package/node_modules/lodash/util.js +34 -0
  2372. package/node_modules/lodash/value.js +1 -0
  2373. package/node_modules/lodash/valueOf.js +1 -0
  2374. package/node_modules/lodash/values.js +34 -0
  2375. package/node_modules/lodash/valuesIn.js +32 -0
  2376. package/node_modules/lodash/without.js +31 -0
  2377. package/node_modules/lodash/words.js +35 -0
  2378. package/node_modules/lodash/wrap.js +30 -0
  2379. package/node_modules/lodash/wrapperAt.js +48 -0
  2380. package/node_modules/lodash/wrapperChain.js +34 -0
  2381. package/node_modules/lodash/wrapperLodash.js +147 -0
  2382. package/node_modules/lodash/wrapperReverse.js +44 -0
  2383. package/node_modules/lodash/wrapperValue.js +21 -0
  2384. package/node_modules/lodash/xor.js +28 -0
  2385. package/node_modules/lodash/xorBy.js +39 -0
  2386. package/node_modules/lodash/xorWith.js +34 -0
  2387. package/node_modules/lodash/zip.js +22 -0
  2388. package/node_modules/lodash/zipObject.js +24 -0
  2389. package/node_modules/lodash/zipObjectDeep.js +23 -0
  2390. package/node_modules/lodash/zipWith.js +32 -0
  2391. package/node_modules/mute-stream/LICENSE +15 -0
  2392. package/node_modules/mute-stream/README.md +68 -0
  2393. package/node_modules/mute-stream/lib/index.js +142 -0
  2394. package/node_modules/mute-stream/package.json +54 -0
  2395. package/node_modules/safer-buffer/LICENSE +21 -0
  2396. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2397. package/node_modules/safer-buffer/Readme.md +156 -0
  2398. package/node_modules/safer-buffer/dangerous.js +58 -0
  2399. package/node_modules/safer-buffer/package.json +34 -0
  2400. package/node_modules/safer-buffer/safer.js +77 -0
  2401. package/node_modules/safer-buffer/tests.js +406 -0
  2402. package/node_modules/signal-exit/LICENSE.txt +16 -0
  2403. package/node_modules/signal-exit/README.md +74 -0
  2404. package/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  2405. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  2406. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  2407. package/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  2408. package/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  2409. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  2410. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  2411. package/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  2412. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  2413. package/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  2414. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  2415. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  2416. package/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  2417. package/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  2418. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  2419. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  2420. package/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  2421. package/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  2422. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  2423. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  2424. package/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  2425. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  2426. package/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  2427. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  2428. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  2429. package/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  2430. package/node_modules/signal-exit/package.json +106 -0
  2431. package/node_modules/string-width/index.d.ts +29 -0
  2432. package/node_modules/string-width/index.js +47 -0
  2433. package/node_modules/string-width/license +9 -0
  2434. package/node_modules/string-width/package.json +56 -0
  2435. package/node_modules/string-width/readme.md +50 -0
  2436. package/node_modules/strip-ansi/index.d.ts +17 -0
  2437. package/node_modules/strip-ansi/index.js +4 -0
  2438. package/node_modules/strip-ansi/license +9 -0
  2439. package/node_modules/strip-ansi/package.json +54 -0
  2440. package/node_modules/strip-ansi/readme.md +46 -0
  2441. package/node_modules/wrap-ansi/index.js +186 -0
  2442. package/node_modules/wrap-ansi/license +9 -0
  2443. package/node_modules/wrap-ansi/package.json +61 -0
  2444. package/node_modules/wrap-ansi/readme.md +97 -0
  2445. package/node_modules/yoctocolors-cjs/index.d.ts +94 -0
  2446. package/node_modules/yoctocolors-cjs/index.js +98 -0
  2447. package/node_modules/yoctocolors-cjs/license +9 -0
  2448. package/node_modules/yoctocolors-cjs/package.json +67 -0
  2449. package/node_modules/yoctocolors-cjs/readme.md +130 -0
  2450. package/node_modules/zod/LICENSE +21 -0
  2451. package/node_modules/zod/README.md +218 -0
  2452. package/node_modules/zod/compile.cjs +96 -0
  2453. package/node_modules/zod/compile.d.cts +1 -0
  2454. package/node_modules/zod/compile.d.ts +1 -0
  2455. package/node_modules/zod/compile.js +52 -0
  2456. package/node_modules/zod/index.cjs +52 -0
  2457. package/node_modules/zod/index.d.cts +3 -0
  2458. package/node_modules/zod/index.d.ts +3 -0
  2459. package/node_modules/zod/index.js +7 -0
  2460. package/node_modules/zod/locales/index.cjs +36 -0
  2461. package/node_modules/zod/locales/index.d.cts +1 -0
  2462. package/node_modules/zod/locales/index.d.ts +1 -0
  2463. package/node_modules/zod/locales/index.js +1 -0
  2464. package/node_modules/zod/locales/package.json +7 -0
  2465. package/node_modules/zod/mini/index.cjs +51 -0
  2466. package/node_modules/zod/mini/index.d.cts +3 -0
  2467. package/node_modules/zod/mini/index.d.ts +3 -0
  2468. package/node_modules/zod/mini/index.js +3 -0
  2469. package/node_modules/zod/mini/package.json +7 -0
  2470. package/node_modules/zod/package.json +147 -0
  2471. package/node_modules/zod/src/compile.ts +56 -0
  2472. package/node_modules/zod/src/index.ts +7 -0
  2473. package/node_modules/zod/src/locales/index.ts +1 -0
  2474. package/node_modules/zod/src/mini/index.ts +3 -0
  2475. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  2476. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  2477. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  2478. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  2479. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  2480. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  2481. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  2482. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  2483. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  2484. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  2485. package/node_modules/zod/src/v3/errors.ts +13 -0
  2486. package/node_modules/zod/src/v3/external.ts +6 -0
  2487. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  2488. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  2489. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  2490. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  2491. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  2492. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  2493. package/node_modules/zod/src/v3/index.ts +4 -0
  2494. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  2495. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  2496. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  2497. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  2498. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  2499. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  2500. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  2501. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  2502. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  2503. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  2504. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  2505. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  2506. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  2507. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  2508. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  2509. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  2510. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  2511. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  2512. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  2513. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  2514. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  2515. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  2516. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  2517. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  2518. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  2519. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  2520. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  2521. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  2522. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  2523. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  2524. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  2525. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  2526. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  2527. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  2528. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  2529. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  2530. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  2531. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  2532. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  2533. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  2534. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  2535. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  2536. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  2537. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  2538. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  2539. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  2540. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  2541. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  2542. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  2543. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  2544. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  2545. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  2546. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  2547. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  2548. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  2549. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  2550. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  2551. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  2552. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  2553. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  2554. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  2555. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  2556. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  2557. package/node_modules/zod/src/v3/types.ts +5138 -0
  2558. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  2559. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  2560. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  2561. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  2562. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  2563. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  2564. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  2565. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  2566. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  2567. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  2568. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  2569. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  2570. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  2571. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  2572. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  2573. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  2574. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  2575. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  2576. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  2577. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  2578. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  2579. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  2580. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  2581. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  2582. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  2583. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  2584. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  2585. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  2586. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  2587. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  2588. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  2589. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  2590. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  2591. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  2592. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  2593. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  2594. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  2595. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  2596. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  2597. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  2598. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  2599. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  2600. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  2601. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  2602. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  2603. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  2604. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  2605. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  2606. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  2607. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  2608. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  2609. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  2610. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  2611. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  2612. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  2613. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  2614. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  2615. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  2616. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  2617. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  2618. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  2619. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  2620. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  2621. package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
  2622. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  2623. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  2624. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  2625. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  2626. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  2627. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  2628. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  2629. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  2630. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  2631. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  2632. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  2633. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  2634. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  2635. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  2636. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  2637. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  2638. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  2639. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  2640. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  2641. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  2642. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  2643. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  2644. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  2645. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  2646. package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
  2647. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  2648. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  2649. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  2650. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  2651. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  2652. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  2653. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  2654. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  2655. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  2656. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  2657. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  2658. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  2659. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  2660. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  2661. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  2662. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  2663. package/node_modules/zod/src/v4/core/compile.ts +2313 -0
  2664. package/node_modules/zod/src/v4/core/core.ts +230 -0
  2665. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  2666. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  2667. package/node_modules/zod/src/v4/core/index.ts +19 -0
  2668. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  2669. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  2670. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  2671. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  2672. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  2673. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  2674. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  2675. package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
  2676. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  2677. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  2678. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  2679. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  2680. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  2681. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  2682. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  2683. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  2684. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  2685. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  2686. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  2687. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  2688. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  2689. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  2690. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  2691. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  2692. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  2693. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  2694. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  2695. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  2696. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  2697. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  2698. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  2699. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  2700. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  2701. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  2702. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  2703. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  2704. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  2705. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  2706. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  2707. package/node_modules/zod/src/v4/core/util.ts +1280 -0
  2708. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  2709. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  2710. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  2711. package/node_modules/zod/src/v4/index.ts +4 -0
  2712. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  2713. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  2714. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  2715. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  2716. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  2717. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  2718. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  2719. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  2720. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  2721. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  2722. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  2723. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  2724. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  2725. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  2726. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  2727. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  2728. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  2729. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  2730. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  2731. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  2732. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  2733. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  2734. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  2735. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  2736. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  2737. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  2738. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  2739. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  2740. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  2741. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  2742. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  2743. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  2744. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  2745. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  2746. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  2747. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  2748. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  2749. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  2750. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  2751. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  2752. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  2753. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  2754. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  2755. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  2756. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  2757. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  2758. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  2759. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  2760. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  2761. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  2762. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  2763. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  2764. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  2765. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  2766. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  2767. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  2768. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  2769. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  2770. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  2771. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  2772. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  2773. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  2774. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  2775. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  2776. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  2777. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  2778. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  2779. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  2780. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  2781. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  2782. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  2783. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  2784. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  2785. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  2786. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  2787. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  2788. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  2789. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  2790. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  2791. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  2792. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  2793. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  2794. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  2795. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  2796. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  2797. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  2798. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  2799. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  2800. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  2801. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  2802. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  2803. package/node_modules/zod/v3/ZodError.cjs +167 -0
  2804. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  2805. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  2806. package/node_modules/zod/v3/ZodError.js +143 -0
  2807. package/node_modules/zod/v3/errors.cjs +36 -0
  2808. package/node_modules/zod/v3/errors.d.cts +5 -0
  2809. package/node_modules/zod/v3/errors.d.ts +5 -0
  2810. package/node_modules/zod/v3/errors.js +9 -0
  2811. package/node_modules/zod/v3/external.cjs +41 -0
  2812. package/node_modules/zod/v3/external.d.cts +6 -0
  2813. package/node_modules/zod/v3/external.d.ts +6 -0
  2814. package/node_modules/zod/v3/external.js +6 -0
  2815. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  2816. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  2817. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  2818. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  2819. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  2820. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  2821. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  2822. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  2823. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  2824. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  2825. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  2826. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  2827. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  2828. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  2829. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  2830. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  2831. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  2832. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  2833. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  2834. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  2835. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  2836. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2837. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2838. package/node_modules/zod/v3/helpers/util.js +133 -0
  2839. package/node_modules/zod/v3/index.cjs +52 -0
  2840. package/node_modules/zod/v3/index.d.cts +4 -0
  2841. package/node_modules/zod/v3/index.d.ts +4 -0
  2842. package/node_modules/zod/v3/index.js +4 -0
  2843. package/node_modules/zod/v3/locales/en.cjs +112 -0
  2844. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  2845. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  2846. package/node_modules/zod/v3/locales/en.js +109 -0
  2847. package/node_modules/zod/v3/package.json +7 -0
  2848. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  2849. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2850. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2851. package/node_modules/zod/v3/standard-schema.js +1 -0
  2852. package/node_modules/zod/v3/types.cjs +3798 -0
  2853. package/node_modules/zod/v3/types.d.cts +1034 -0
  2854. package/node_modules/zod/v3/types.d.ts +1034 -0
  2855. package/node_modules/zod/v3/types.js +3697 -0
  2856. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  2857. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2858. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2859. package/node_modules/zod/v4/classic/checks.js +1 -0
  2860. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  2861. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2862. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2863. package/node_modules/zod/v4/classic/coerce.js +17 -0
  2864. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  2865. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  2866. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  2867. package/node_modules/zod/v4/classic/compat.js +31 -0
  2868. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  2869. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  2870. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  2871. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  2872. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  2873. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  2874. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  2875. package/node_modules/zod/v4/classic/errors.js +57 -0
  2876. package/node_modules/zod/v4/classic/external.cjs +97 -0
  2877. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  2878. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  2879. package/node_modules/zod/v4/classic/external.js +17 -0
  2880. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  2881. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2882. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2883. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  2884. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  2885. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  2886. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  2887. package/node_modules/zod/v4/classic/in-out.js +36 -0
  2888. package/node_modules/zod/v4/classic/index.cjs +52 -0
  2889. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  2890. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  2891. package/node_modules/zod/v4/classic/index.js +4 -0
  2892. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  2893. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  2894. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  2895. package/node_modules/zod/v4/classic/iso.js +15 -0
  2896. package/node_modules/zod/v4/classic/package.json +7 -0
  2897. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  2898. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  2899. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  2900. package/node_modules/zod/v4/classic/parse.js +16 -0
  2901. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  2902. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  2903. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  2904. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  2905. package/node_modules/zod/v4/core/api.cjs +1269 -0
  2906. package/node_modules/zod/v4/core/api.d.cts +335 -0
  2907. package/node_modules/zod/v4/core/api.d.ts +335 -0
  2908. package/node_modules/zod/v4/core/api.js +1107 -0
  2909. package/node_modules/zod/v4/core/checks.cjs +561 -0
  2910. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  2911. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  2912. package/node_modules/zod/v4/core/checks.js +516 -0
  2913. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  2914. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  2915. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  2916. package/node_modules/zod/v4/core/compile.js +1858 -0
  2917. package/node_modules/zod/v4/core/core.cjs +167 -0
  2918. package/node_modules/zod/v4/core/core.d.cts +82 -0
  2919. package/node_modules/zod/v4/core/core.d.ts +82 -0
  2920. package/node_modules/zod/v4/core/core.js +141 -0
  2921. package/node_modules/zod/v4/core/doc.cjs +61 -0
  2922. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  2923. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  2924. package/node_modules/zod/v4/core/doc.js +38 -0
  2925. package/node_modules/zod/v4/core/errors.cjs +317 -0
  2926. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  2927. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  2928. package/node_modules/zod/v4/core/errors.js +267 -0
  2929. package/node_modules/zod/v4/core/index.cjs +70 -0
  2930. package/node_modules/zod/v4/core/index.d.cts +19 -0
  2931. package/node_modules/zod/v4/core/index.d.ts +19 -0
  2932. package/node_modules/zod/v4/core/index.js +19 -0
  2933. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  2934. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2935. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2936. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  2937. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  2938. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  2939. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  2940. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  2941. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  2942. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  2943. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  2944. package/node_modules/zod/v4/core/json-schema.js +1 -0
  2945. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  2946. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  2947. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  2948. package/node_modules/zod/v4/core/memoizer.js +311 -0
  2949. package/node_modules/zod/v4/core/package.json +7 -0
  2950. package/node_modules/zod/v4/core/parse.cjs +233 -0
  2951. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  2952. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  2953. package/node_modules/zod/v4/core/parse.js +175 -0
  2954. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  2955. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  2956. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  2957. package/node_modules/zod/v4/core/regexes.js +156 -0
  2958. package/node_modules/zod/v4/core/registries.cjs +75 -0
  2959. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  2960. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  2961. package/node_modules/zod/v4/core/registries.js +51 -0
  2962. package/node_modules/zod/v4/core/schemas.cjs +2669 -0
  2963. package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
  2964. package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
  2965. package/node_modules/zod/v4/core/schemas.js +2606 -0
  2966. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  2967. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  2968. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  2969. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  2970. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  2971. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  2972. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  2973. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  2974. package/node_modules/zod/v4/core/util.cjs +949 -0
  2975. package/node_modules/zod/v4/core/util.d.cts +278 -0
  2976. package/node_modules/zod/v4/core/util.d.ts +278 -0
  2977. package/node_modules/zod/v4/core/util.js +859 -0
  2978. package/node_modules/zod/v4/core/versions.cjs +27 -0
  2979. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  2980. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  2981. package/node_modules/zod/v4/core/versions.js +5 -0
  2982. package/node_modules/zod/v4/core/visit.cjs +214 -0
  2983. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  2984. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  2985. package/node_modules/zod/v4/core/visit.js +169 -0
  2986. package/node_modules/zod/v4/index.cjs +51 -0
  2987. package/node_modules/zod/v4/index.d.cts +3 -0
  2988. package/node_modules/zod/v4/index.d.ts +3 -0
  2989. package/node_modules/zod/v4/index.js +4 -0
  2990. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  2991. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  2992. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  2993. package/node_modules/zod/v4/locales/ar.js +111 -0
  2994. package/node_modules/zod/v4/locales/az.cjs +137 -0
  2995. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  2996. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  2997. package/node_modules/zod/v4/locales/az.js +110 -0
  2998. package/node_modules/zod/v4/locales/be.cjs +195 -0
  2999. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  3000. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  3001. package/node_modules/zod/v4/locales/be.js +168 -0
  3002. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  3003. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  3004. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  3005. package/node_modules/zod/v4/locales/bg.js +125 -0
  3006. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  3007. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  3008. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  3009. package/node_modules/zod/v4/locales/bn.js +113 -0
  3010. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  3011. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  3012. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  3013. package/node_modules/zod/v4/locales/ca.js +112 -0
  3014. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  3015. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  3016. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  3017. package/node_modules/zod/v4/locales/ckb.js +133 -0
  3018. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  3019. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  3020. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  3021. package/node_modules/zod/v4/locales/cs.js +116 -0
  3022. package/node_modules/zod/v4/locales/da.cjs +147 -0
  3023. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  3024. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  3025. package/node_modules/zod/v4/locales/da.js +120 -0
  3026. package/node_modules/zod/v4/locales/de.cjs +140 -0
  3027. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  3028. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  3029. package/node_modules/zod/v4/locales/de.js +113 -0
  3030. package/node_modules/zod/v4/locales/el.cjs +139 -0
  3031. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  3032. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  3033. package/node_modules/zod/v4/locales/el.js +112 -0
  3034. package/node_modules/zod/v4/locales/en.cjs +152 -0
  3035. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  3036. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  3037. package/node_modules/zod/v4/locales/en.js +125 -0
  3038. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  3039. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  3040. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  3041. package/node_modules/zod/v4/locales/eo.js +114 -0
  3042. package/node_modules/zod/v4/locales/es.cjs +163 -0
  3043. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  3044. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  3045. package/node_modules/zod/v4/locales/es.js +136 -0
  3046. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  3047. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  3048. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  3049. package/node_modules/zod/v4/locales/fa.js +119 -0
  3050. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  3051. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  3052. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  3053. package/node_modules/zod/v4/locales/fi.js +117 -0
  3054. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  3055. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  3056. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  3057. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  3058. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  3059. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  3060. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  3061. package/node_modules/zod/v4/locales/fr.js +129 -0
  3062. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  3063. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  3064. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  3065. package/node_modules/zod/v4/locales/gu.js +113 -0
  3066. package/node_modules/zod/v4/locales/he.cjs +248 -0
  3067. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  3068. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  3069. package/node_modules/zod/v4/locales/he.js +221 -0
  3070. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  3071. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  3072. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  3073. package/node_modules/zod/v4/locales/hi.js +111 -0
  3074. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  3075. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  3076. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  3077. package/node_modules/zod/v4/locales/hr.js +126 -0
  3078. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  3079. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  3080. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  3081. package/node_modules/zod/v4/locales/hu.js +113 -0
  3082. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  3083. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  3084. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  3085. package/node_modules/zod/v4/locales/hy.js +158 -0
  3086. package/node_modules/zod/v4/locales/id.cjs +138 -0
  3087. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  3088. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  3089. package/node_modules/zod/v4/locales/id.js +111 -0
  3090. package/node_modules/zod/v4/locales/index.cjs +152 -0
  3091. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  3092. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  3093. package/node_modules/zod/v4/locales/index.js +63 -0
  3094. package/node_modules/zod/v4/locales/is.cjs +141 -0
  3095. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  3096. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  3097. package/node_modules/zod/v4/locales/is.js +114 -0
  3098. package/node_modules/zod/v4/locales/it.cjs +140 -0
  3099. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  3100. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  3101. package/node_modules/zod/v4/locales/it.js +113 -0
  3102. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  3103. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  3104. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  3105. package/node_modules/zod/v4/locales/ja.js +112 -0
  3106. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  3107. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  3108. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  3109. package/node_modules/zod/v4/locales/ka.js +117 -0
  3110. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  3111. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  3112. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  3113. package/node_modules/zod/v4/locales/kh.js +5 -0
  3114. package/node_modules/zod/v4/locales/km.cjs +142 -0
  3115. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  3116. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  3117. package/node_modules/zod/v4/locales/km.js +115 -0
  3118. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  3119. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  3120. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  3121. package/node_modules/zod/v4/locales/kn.js +116 -0
  3122. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  3123. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  3124. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  3125. package/node_modules/zod/v4/locales/ko.js +116 -0
  3126. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  3127. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  3128. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  3129. package/node_modules/zod/v4/locales/lt.js +207 -0
  3130. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  3131. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  3132. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  3133. package/node_modules/zod/v4/locales/mk.js +114 -0
  3134. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  3135. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  3136. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  3137. package/node_modules/zod/v4/locales/ms.js +112 -0
  3138. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  3139. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  3140. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  3141. package/node_modules/zod/v4/locales/ne.js +111 -0
  3142. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  3143. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  3144. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  3145. package/node_modules/zod/v4/locales/nl.js +115 -0
  3146. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  3147. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  3148. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  3149. package/node_modules/zod/v4/locales/nn.js +113 -0
  3150. package/node_modules/zod/v4/locales/no.cjs +140 -0
  3151. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  3152. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  3153. package/node_modules/zod/v4/locales/no.js +113 -0
  3154. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  3155. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  3156. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3157. package/node_modules/zod/v4/locales/ota.js +114 -0
  3158. package/node_modules/zod/v4/locales/package.json +7 -0
  3159. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  3160. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  3161. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3162. package/node_modules/zod/v4/locales/pl.js +114 -0
  3163. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  3164. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  3165. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3166. package/node_modules/zod/v4/locales/ps.js +119 -0
  3167. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  3168. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  3169. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  3170. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  3171. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  3172. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  3173. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3174. package/node_modules/zod/v4/locales/pt.js +142 -0
  3175. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  3176. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  3177. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  3178. package/node_modules/zod/v4/locales/ro.js +122 -0
  3179. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  3180. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  3181. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3182. package/node_modules/zod/v4/locales/ru.js +168 -0
  3183. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  3184. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  3185. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  3186. package/node_modules/zod/v4/locales/sk.js +116 -0
  3187. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  3188. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  3189. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3190. package/node_modules/zod/v4/locales/sl.js +114 -0
  3191. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  3192. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  3193. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3194. package/node_modules/zod/v4/locales/sv.js +115 -0
  3195. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  3196. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  3197. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3198. package/node_modules/zod/v4/locales/ta.js +115 -0
  3199. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  3200. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  3201. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  3202. package/node_modules/zod/v4/locales/tg.js +117 -0
  3203. package/node_modules/zod/v4/locales/th.cjs +142 -0
  3204. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  3205. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  3206. package/node_modules/zod/v4/locales/th.js +115 -0
  3207. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  3208. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  3209. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  3210. package/node_modules/zod/v4/locales/tk.js +107 -0
  3211. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  3212. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3213. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  3214. package/node_modules/zod/v4/locales/tr.js +110 -0
  3215. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  3216. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  3217. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  3218. package/node_modules/zod/v4/locales/ua.js +5 -0
  3219. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  3220. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  3221. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  3222. package/node_modules/zod/v4/locales/uk.js +113 -0
  3223. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  3224. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  3225. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3226. package/node_modules/zod/v4/locales/ur.js +115 -0
  3227. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  3228. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  3229. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  3230. package/node_modules/zod/v4/locales/uz.js +113 -0
  3231. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  3232. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  3233. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3234. package/node_modules/zod/v4/locales/vi.js +113 -0
  3235. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  3236. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  3237. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  3238. package/node_modules/zod/v4/locales/yo.js +112 -0
  3239. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  3240. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  3241. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3242. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  3243. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  3244. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  3245. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3246. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  3247. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  3248. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3249. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3250. package/node_modules/zod/v4/mini/checks.js +1 -0
  3251. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  3252. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3253. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3254. package/node_modules/zod/v4/mini/coerce.js +22 -0
  3255. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  3256. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  3257. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  3258. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  3259. package/node_modules/zod/v4/mini/external.cjs +95 -0
  3260. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  3261. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  3262. package/node_modules/zod/v4/mini/external.js +16 -0
  3263. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  3264. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  3265. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  3266. package/node_modules/zod/v4/mini/in-out.js +36 -0
  3267. package/node_modules/zod/v4/mini/index.cjs +51 -0
  3268. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  3269. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  3270. package/node_modules/zod/v4/mini/index.js +3 -0
  3271. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  3272. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3273. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3274. package/node_modules/zod/v4/mini/iso.js +34 -0
  3275. package/node_modules/zod/v4/mini/package.json +7 -0
  3276. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  3277. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3278. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3279. package/node_modules/zod/v4/mini/parse.js +1 -0
  3280. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  3281. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  3282. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  3283. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  3284. package/node_modules/zod/v4/package.json +7 -0
  3285. package/node_modules/zod/v4-mini/index.cjs +51 -0
  3286. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  3287. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  3288. package/node_modules/zod/v4-mini/index.js +3 -0
  3289. package/node_modules/zod/v4-mini/package.json +7 -0
  3290. package/package.json +19 -3
  3291. package/sandbox/boot/bootstrap/drives.ps1 +29 -0
  3292. package/sandbox/boot/bootstrap/files.ps1 +49 -0
  3293. package/sandbox/boot/bootstrap/runner.ps1 +87 -0
  3294. package/sandbox/boot/bootstrap/status.ps1 +8 -0
  3295. package/sandbox/boot/bootstrap.ps1 +91 -0
  3296. package/sandbox/boot/logon.cmd +30 -0
  3297. package/sandbox/csharp/CargoShim.cs +77 -0
  3298. package/sandbox/csharp/Desktop.cs +33 -0
  3299. package/sandbox/csharp/GitShim.cs +47 -0
  3300. package/sandbox/csharp/LinkGate.cs +108 -0
  3301. package/sandbox/csharp/OpenSsl.cs +56 -0
  3302. package/sandbox/csharp/PtyHost.cs +1327 -0
  3303. package/sandbox/csharp/SandboxTools/CpuCap.cs +134 -0
  3304. package/sandbox/csharp/SandboxTools/MemoryLog.cs +157 -0
  3305. package/sandbox/csharp/SandboxTools/PageFile.cs +72 -0
  3306. package/sandbox/csharp/SandboxTools/Program.cs +153 -0
  3307. package/sandbox/csharp/VsWhere.cs +145 -0
  3308. package/sandbox/csharp/VtInput.cs +63 -0
  3309. package/sandbox/scripts/enable-vt-input.ps1 +9 -0
  3310. package/sandbox/scripts/expand-archive.ps1 +9 -0
  3311. package/sandbox/scripts/get-gpu-names.ps1 +5 -0
  3312. package/sandbox/scripts/get-signer.ps1 +8 -0
  3313. package/sandbox/scripts/link-profile-dirs.ps1 +35 -0
  3314. package/sandbox/scripts/new-shortcuts.ps1 +15 -0
  3315. package/sandbox/scripts/set-desktop.ps1 +16 -0
  3316. package/sandbox/scripts/set-dns-servers.ps1 +8 -0
  3317. package/sandbox/scripts/set-machine-environment.ps1 +29 -0
  3318. package/schemas/config.schema.json +142 -7
  3319. package/schemas/sandbox-config.schema.json +64 -7
  3320. package/dist/cli/boot-progress.d.ts +0 -22
  3321. package/dist/cli/boot-progress.js +0 -59
  3322. package/dist/cli/colors.d.ts +0 -24
  3323. package/dist/cli/colors.js +0 -42
  3324. package/dist/cli/commands/launch.d.ts +0 -32
  3325. package/dist/cli/commands/launch.js +0 -421
  3326. package/dist/cli/commands/maintenance.d.ts +0 -10
  3327. package/dist/cli/commands/maintenance.js +0 -220
  3328. package/dist/cli/commands/project.d.ts +0 -33
  3329. package/dist/cli/commands/project.js +0 -102
  3330. package/dist/cli/commands/projects.d.ts +0 -14
  3331. package/dist/cli/commands/projects.js +0 -146
  3332. package/dist/cli/commands/restart.d.ts +0 -6
  3333. package/dist/cli/commands/restart.js +0 -95
  3334. package/dist/cli/commands/sessions.d.ts +0 -12
  3335. package/dist/cli/commands/sessions.js +0 -258
  3336. package/dist/cli/menu/settings/editors.d.ts +0 -30
  3337. package/dist/cli/menu/settings/editors.js +0 -305
  3338. package/dist/cli/progress.d.ts +0 -24
  3339. package/dist/cli/progress.js +0 -101
  3340. package/dist/cli/tui/dialogs.d.ts +0 -57
  3341. package/dist/cli/tui/dialogs.js +0 -162
  3342. package/dist/cli/tui/list-screen.d.ts +0 -101
  3343. package/dist/cli/tui/list-screen.js +0 -299
  3344. package/dist/core/config.d.ts +0 -17
  3345. package/dist/core/config.js +0 -109
  3346. package/dist/core/detect-databases.d.ts +0 -15
  3347. package/dist/core/detect-databases.js +0 -147
  3348. package/dist/core/detect-pwsh.d.ts +0 -18
  3349. package/dist/core/detect-pwsh.js +0 -111
  3350. package/dist/core/detect-toolchains.d.ts +0 -30
  3351. package/dist/core/detect-toolchains.js +0 -58
  3352. package/dist/core/local-config.d.ts +0 -50
  3353. package/dist/core/local-config.js +0 -142
  3354. package/dist/core/project-policy.d.ts +0 -62
  3355. package/dist/core/project-policy.js +0 -121
  3356. package/dist/core/schema.d.ts +0 -6
  3357. package/dist/core/schema.js +0 -8
  3358. package/dist/core/util.d.ts +0 -62
  3359. package/dist/core/util.js +0 -156
  3360. package/dist/core/workspace.d.ts +0 -35
  3361. package/dist/core/workspace.js +0 -206
  3362. package/dist/guest/audit-parse.d.ts +0 -7
  3363. package/dist/guest/audit-parse.js +0 -24
  3364. package/dist/guest/audit.d.ts +0 -4
  3365. package/dist/guest/audit.js +0 -47
  3366. package/dist/guest/boot-env.d.ts +0 -4
  3367. package/dist/guest/boot-env.js +0 -25
  3368. package/dist/guest/cmdline.d.ts +0 -12
  3369. package/dist/guest/cmdline.js +0 -23
  3370. package/dist/guest/daemon/project.d.ts +0 -14
  3371. package/dist/guest/daemon/project.js +0 -132
  3372. package/dist/guest/daemon/session.d.ts +0 -13
  3373. package/dist/guest/daemon/session.js +0 -139
  3374. package/dist/guest/daemon/shutdown.d.ts +0 -1
  3375. package/dist/guest/daemon/shutdown.js +0 -21
  3376. package/dist/guest/daemon.js +0 -57
  3377. package/dist/guest/db.js +0 -75
  3378. package/dist/guest/env.d.ts +0 -56
  3379. package/dist/guest/env.js +0 -115
  3380. package/dist/guest/gitguard.d.ts +0 -7
  3381. package/dist/guest/gitguard.js +0 -60
  3382. package/dist/guest/gitrules.d.ts +0 -2
  3383. package/dist/guest/gitrules.js +0 -11
  3384. package/dist/guest/guide.d.ts +0 -16
  3385. package/dist/guest/guide.js +0 -69
  3386. package/dist/guest/helpers.d.ts +0 -3
  3387. package/dist/guest/helpers.js +0 -26
  3388. package/dist/guest/main.js +0 -147
  3389. package/dist/guest/netproxy.js +0 -100
  3390. package/dist/guest/ports.d.ts +0 -6
  3391. package/dist/guest/ports.js +0 -22
  3392. package/dist/guest/project-context.d.ts +0 -7
  3393. package/dist/guest/project-context.js +0 -10
  3394. package/dist/guest/project-env.d.ts +0 -20
  3395. package/dist/guest/project-env.js +0 -20
  3396. package/dist/guest/project-status.d.ts +0 -5
  3397. package/dist/guest/project-status.js +0 -17
  3398. package/dist/guest/ptyhost.d.ts +0 -22
  3399. package/dist/guest/ptyhost.js +0 -46
  3400. package/dist/guest/setup/agents.d.ts +0 -11
  3401. package/dist/guest/setup/agents.js +0 -87
  3402. package/dist/guest/setup/claude.d.ts +0 -17
  3403. package/dist/guest/setup/claude.js +0 -192
  3404. package/dist/guest/setup/network.d.ts +0 -19
  3405. package/dist/guest/setup/network.js +0 -192
  3406. package/dist/guest/setup/policy.d.ts +0 -3
  3407. package/dist/guest/setup/policy.js +0 -18
  3408. package/dist/guest/setup/user.d.ts +0 -7
  3409. package/dist/guest/setup/user.js +0 -51
  3410. package/dist/guest/toolchains/cli.d.ts +0 -10
  3411. package/dist/guest/toolchains/cli.js +0 -72
  3412. package/dist/guest/toolchains/common.d.ts +0 -54
  3413. package/dist/guest/toolchains/common.js +0 -147
  3414. package/dist/guest/toolchains/databases/dynamodb.d.ts +0 -8
  3415. package/dist/guest/toolchains/databases/dynamodb.js +0 -52
  3416. package/dist/guest/toolchains/databases/index.d.ts +0 -6
  3417. package/dist/guest/toolchains/databases/index.js +0 -62
  3418. package/dist/guest/toolchains/databases/mongodb.d.ts +0 -3
  3419. package/dist/guest/toolchains/databases/mongodb.js +0 -31
  3420. package/dist/guest/toolchains/databases/mysql.d.ts +0 -3
  3421. package/dist/guest/toolchains/databases/mysql.js +0 -38
  3422. package/dist/guest/toolchains/databases/postgres.d.ts +0 -5
  3423. package/dist/guest/toolchains/databases/postgres.js +0 -38
  3424. package/dist/guest/toolchains/databases/redis.d.ts +0 -3
  3425. package/dist/guest/toolchains/databases/redis.js +0 -16
  3426. package/dist/guest/toolchains/databases/server.d.ts +0 -14
  3427. package/dist/guest/toolchains/databases/server.js +0 -52
  3428. package/dist/guest/toolchains/git.d.ts +0 -3
  3429. package/dist/guest/toolchains/git.js +0 -121
  3430. package/dist/guest/toolchains/go.d.ts +0 -3
  3431. package/dist/guest/toolchains/go.js +0 -33
  3432. package/dist/guest/toolchains/java.d.ts +0 -8
  3433. package/dist/guest/toolchains/java.js +0 -96
  3434. package/dist/guest/toolchains/node.d.ts +0 -3
  3435. package/dist/guest/toolchains/node.js +0 -152
  3436. package/dist/guest/toolchains/pwsh.d.ts +0 -4
  3437. package/dist/guest/toolchains/pwsh.js +0 -14
  3438. package/dist/guest/toolchains/python.d.ts +0 -3
  3439. package/dist/guest/toolchains/python.js +0 -78
  3440. package/dist/guest/toolchains/scripting/php.d.ts +0 -3
  3441. package/dist/guest/toolchains/scripting/php.js +0 -71
  3442. package/dist/guest/toolchains/scripting/ruby.d.ts +0 -3
  3443. package/dist/guest/toolchains/scripting/ruby.js +0 -47
  3444. package/dist/guest/toolchains/scripting/vcruntime.d.ts +0 -7
  3445. package/dist/guest/toolchains/scripting/vcruntime.js +0 -45
  3446. package/dist/guest/toolchains/versions.d.ts +0 -47
  3447. package/dist/guest/toolchains/versions.js +0 -77
  3448. package/dist/guest/toolchains/vscode-profile.d.ts +0 -30
  3449. package/dist/guest/toolchains/vscode-profile.js +0 -69
  3450. package/dist/guest/toolchains/vscode.d.ts +0 -19
  3451. package/dist/guest/toolchains/vscode.js +0 -139
  3452. package/dist/guest/view.d.ts +0 -1
  3453. package/dist/guest/view.js +0 -42
  3454. package/dist/host/accounts.d.ts +0 -32
  3455. package/dist/host/accounts.js +0 -128
  3456. package/dist/host/agent-commands.d.ts +0 -25
  3457. package/dist/host/agent-commands.js +0 -145
  3458. package/dist/host/attach.d.ts +0 -17
  3459. package/dist/host/attach.js +0 -70
  3460. package/dist/host/channel.d.ts +0 -38
  3461. package/dist/host/channel.js +0 -163
  3462. package/dist/host/claude-profile.d.ts +0 -15
  3463. package/dist/host/claude-profile.js +0 -107
  3464. package/dist/host/cleanup.d.ts +0 -23
  3465. package/dist/host/cleanup.js +0 -57
  3466. package/dist/host/database-plan.d.ts +0 -12
  3467. package/dist/host/database-plan.js +0 -52
  3468. package/dist/host/generate.d.ts +0 -13
  3469. package/dist/host/generate.js +0 -115
  3470. package/dist/host/join.d.ts +0 -35
  3471. package/dist/host/join.js +0 -90
  3472. package/dist/host/launch/projects.d.ts +0 -17
  3473. package/dist/host/launch/projects.js +0 -62
  3474. package/dist/host/launch/wsb.d.ts +0 -10
  3475. package/dist/host/launch/wsb.js +0 -34
  3476. package/dist/host/motw.d.ts +0 -17
  3477. package/dist/host/motw.js +0 -74
  3478. package/dist/host/pc-scan.d.ts +0 -6
  3479. package/dist/host/pc-scan.js +0 -37
  3480. package/dist/host/personalize.d.ts +0 -10
  3481. package/dist/host/personalize.js +0 -97
  3482. package/dist/host/platform.d.ts +0 -19
  3483. package/dist/host/platform.js +0 -129
  3484. package/dist/host/port-forward.d.ts +0 -8
  3485. package/dist/host/port-forward.js +0 -37
  3486. package/dist/host/project-scan.d.ts +0 -7
  3487. package/dist/host/project-scan.js +0 -89
  3488. package/dist/host/projects.d.ts +0 -123
  3489. package/dist/host/projects.js +0 -196
  3490. package/dist/host/repo-guard.d.ts +0 -43
  3491. package/dist/host/repo-guard.js +0 -347
  3492. package/dist/host/secrets.d.ts +0 -14
  3493. package/dist/host/secrets.js +0 -133
  3494. package/dist/host/stops.d.ts +0 -67
  3495. package/dist/host/stops.js +0 -126
  3496. package/dist/host/terminal.d.ts +0 -40
  3497. package/dist/host/terminal.js +0 -174
  3498. package/dist/host/window.d.ts +0 -4
  3499. package/dist/host/window.js +0 -72
  3500. package/dist/host/wsb.d.ts +0 -37
  3501. package/dist/host/wsb.js +0 -101
  3502. package/dist/selftest/fixtures.d.ts +0 -318
  3503. package/dist/selftest/fixtures.js +0 -82
  3504. package/dist/selftest/harness.d.ts +0 -51
  3505. package/dist/selftest/harness.js +0 -77
  3506. package/dist/selftest/live.d.ts +0 -65
  3507. package/dist/selftest/live.js +0 -109
  3508. package/dist/shared/apps.d.ts +0 -49
  3509. package/dist/shared/apps.js +0 -114
  3510. package/dist/shared/console-input.d.ts +0 -11
  3511. package/dist/shared/console-input.js +0 -61
  3512. package/dist/shared/download.d.ts +0 -63
  3513. package/dist/shared/download.js +0 -238
  3514. package/dist/shared/guest-paths.d.ts +0 -57
  3515. package/dist/shared/guest-paths.js +0 -129
  3516. package/dist/shared/netpolicy.d.ts +0 -27
  3517. package/dist/shared/netpolicy.js +0 -51
  3518. package/dist/shared/netrules.d.ts +0 -18
  3519. package/dist/shared/netrules.js +0 -98
  3520. package/dist/shared/paths.d.ts +0 -14
  3521. package/dist/shared/paths.js +0 -28
  3522. package/dist/shared/projects.d.ts +0 -76
  3523. package/dist/shared/projects.js +0 -126
  3524. package/dist/shared/pty-client.d.ts +0 -108
  3525. package/dist/shared/pty-client.js +0 -406
  3526. package/dist/shared/rundir.d.ts +0 -41
  3527. package/dist/shared/rundir.js +0 -96
  3528. package/dist/shared/safe-remove.d.ts +0 -10
  3529. package/dist/shared/safe-remove.js +0 -66
  3530. package/dist/shared/schema.d.ts +0 -561
  3531. package/dist/shared/schema.js +0 -104
  3532. package/sandbox/bootstrap.ps1 +0 -258
  3533. package/sandbox/cargoshim.cs +0 -56
  3534. package/sandbox/cpucap.cs +0 -33
  3535. package/sandbox/cpucap.ps1 +0 -20
  3536. package/sandbox/gitshim.cs +0 -35
  3537. package/sandbox/logon.cmd +0 -24
  3538. package/sandbox/memlog.ps1 +0 -34
  3539. package/sandbox/openssl.cs +0 -42
  3540. package/sandbox/pagefile.cs +0 -31
  3541. package/sandbox/pagefile.ps1 +0 -21
  3542. package/sandbox/ptyhost.cs +0 -769
  3543. package/sandbox/vswhere.cs +0 -83
  3544. /package/dist/{guest/daemon.d.ts → cli/tui/list/list-types.js} +0 -0
  3545. /package/dist/{guest/db.d.ts → cli/tui/screen.js} +0 -0
  3546. /package/dist/guest/{main.d.ts → entries/daemon.d.ts} +0 -0
  3547. /package/dist/guest/{netproxy.d.ts → entries/db.d.ts} +0 -0
  3548. /package/dist/{selftest/suite.js → guest/entries/gitguard.d.ts} +0 -0
  3549. /package/dist/selftest/{suite.d.ts → support/suite.d.ts} +0 -0
  3550. /package/sandbox/{trust.cmd → boot/trust.cmd} +0 -0
@@ -0,0 +1,3798 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.discriminatedUnion = exports.date = exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.ZodReadonly = exports.ZodPipeline = exports.ZodBranded = exports.BRAND = exports.ZodNaN = exports.ZodCatch = exports.ZodDefault = exports.ZodNullable = exports.ZodOptional = exports.ZodTransformer = exports.ZodEffects = exports.ZodPromise = exports.ZodNativeEnum = exports.ZodEnum = exports.ZodLiteral = exports.ZodLazy = exports.ZodFunction = exports.ZodSet = exports.ZodMap = exports.ZodRecord = exports.ZodTuple = exports.ZodIntersection = exports.ZodDiscriminatedUnion = exports.ZodUnion = exports.ZodObject = exports.ZodArray = exports.ZodVoid = exports.ZodNever = exports.ZodUnknown = exports.ZodAny = exports.ZodNull = exports.ZodUndefined = exports.ZodSymbol = exports.ZodDate = exports.ZodBoolean = exports.ZodBigInt = exports.ZodNumber = exports.ZodString = exports.ZodType = void 0;
4
+ exports.NEVER = exports.void = exports.unknown = exports.union = exports.undefined = exports.tuple = exports.transformer = exports.symbol = exports.string = exports.strictObject = exports.set = exports.record = exports.promise = exports.preprocess = exports.pipeline = exports.ostring = exports.optional = exports.onumber = exports.oboolean = exports.object = exports.number = exports.nullable = exports.null = exports.never = exports.nativeEnum = exports.nan = exports.map = exports.literal = exports.lazy = exports.intersection = exports.instanceof = exports.function = exports.enum = exports.effect = void 0;
5
+ exports.datetimeRegex = datetimeRegex;
6
+ exports.custom = custom;
7
+ const ZodError_js_1 = require("./ZodError.cjs");
8
+ const errors_js_1 = require("./errors.cjs");
9
+ const errorUtil_js_1 = require("./helpers/errorUtil.cjs");
10
+ const parseUtil_js_1 = require("./helpers/parseUtil.cjs");
11
+ const util_js_1 = require("./helpers/util.cjs");
12
+ class ParseInputLazyPath {
13
+ constructor(parent, value, path, key) {
14
+ this._cachedPath = [];
15
+ this.parent = parent;
16
+ this.data = value;
17
+ this._path = path;
18
+ this._key = key;
19
+ }
20
+ get path() {
21
+ if (!this._cachedPath.length) {
22
+ if (Array.isArray(this._key)) {
23
+ this._cachedPath.push(...this._path, ...this._key);
24
+ }
25
+ else {
26
+ this._cachedPath.push(...this._path, this._key);
27
+ }
28
+ }
29
+ return this._cachedPath;
30
+ }
31
+ }
32
+ const handleResult = (ctx, result) => {
33
+ if ((0, parseUtil_js_1.isValid)(result)) {
34
+ return { success: true, data: result.value };
35
+ }
36
+ else {
37
+ if (!ctx.common.issues.length) {
38
+ throw new Error("Validation failed but no issues detected.");
39
+ }
40
+ return {
41
+ success: false,
42
+ get error() {
43
+ if (this._error)
44
+ return this._error;
45
+ const error = new ZodError_js_1.ZodError(ctx.common.issues);
46
+ this._error = error;
47
+ return this._error;
48
+ },
49
+ };
50
+ }
51
+ };
52
+ function processCreateParams(params) {
53
+ if (!params)
54
+ return {};
55
+ const { errorMap, invalid_type_error, required_error, description } = params;
56
+ if (errorMap && (invalid_type_error || required_error)) {
57
+ throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
58
+ }
59
+ if (errorMap)
60
+ return { errorMap: errorMap, description };
61
+ const customMap = (iss, ctx) => {
62
+ const { message } = params;
63
+ if (iss.code === "invalid_enum_value") {
64
+ return { message: message ?? ctx.defaultError };
65
+ }
66
+ if (typeof ctx.data === "undefined") {
67
+ return { message: message ?? required_error ?? ctx.defaultError };
68
+ }
69
+ if (iss.code !== "invalid_type")
70
+ return { message: ctx.defaultError };
71
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
72
+ };
73
+ return { errorMap: customMap, description };
74
+ }
75
+ class ZodType {
76
+ get description() {
77
+ return this._def.description;
78
+ }
79
+ _getType(input) {
80
+ return (0, util_js_1.getParsedType)(input.data);
81
+ }
82
+ _getOrReturnCtx(input, ctx) {
83
+ return (ctx || {
84
+ common: input.parent.common,
85
+ data: input.data,
86
+ parsedType: (0, util_js_1.getParsedType)(input.data),
87
+ schemaErrorMap: this._def.errorMap,
88
+ path: input.path,
89
+ parent: input.parent,
90
+ });
91
+ }
92
+ _processInputParams(input) {
93
+ return {
94
+ status: new parseUtil_js_1.ParseStatus(),
95
+ ctx: {
96
+ common: input.parent.common,
97
+ data: input.data,
98
+ parsedType: (0, util_js_1.getParsedType)(input.data),
99
+ schemaErrorMap: this._def.errorMap,
100
+ path: input.path,
101
+ parent: input.parent,
102
+ },
103
+ };
104
+ }
105
+ _parseSync(input) {
106
+ const result = this._parse(input);
107
+ if ((0, parseUtil_js_1.isAsync)(result)) {
108
+ throw new Error("Synchronous parse encountered promise.");
109
+ }
110
+ return result;
111
+ }
112
+ _parseAsync(input) {
113
+ const result = this._parse(input);
114
+ return Promise.resolve(result);
115
+ }
116
+ parse(data, params) {
117
+ const result = this.safeParse(data, params);
118
+ if (result.success)
119
+ return result.data;
120
+ throw result.error;
121
+ }
122
+ safeParse(data, params) {
123
+ const ctx = {
124
+ common: {
125
+ issues: [],
126
+ async: params?.async ?? false,
127
+ contextualErrorMap: params?.errorMap,
128
+ },
129
+ path: params?.path || [],
130
+ schemaErrorMap: this._def.errorMap,
131
+ parent: null,
132
+ data,
133
+ parsedType: (0, util_js_1.getParsedType)(data),
134
+ };
135
+ const result = this._parseSync({ data, path: ctx.path, parent: ctx });
136
+ return handleResult(ctx, result);
137
+ }
138
+ "~validate"(data) {
139
+ const ctx = {
140
+ common: {
141
+ issues: [],
142
+ async: !!this["~standard"].async,
143
+ },
144
+ path: [],
145
+ schemaErrorMap: this._def.errorMap,
146
+ parent: null,
147
+ data,
148
+ parsedType: (0, util_js_1.getParsedType)(data),
149
+ };
150
+ if (!this["~standard"].async) {
151
+ try {
152
+ const result = this._parseSync({ data, path: [], parent: ctx });
153
+ return (0, parseUtil_js_1.isValid)(result)
154
+ ? {
155
+ value: result.value,
156
+ }
157
+ : {
158
+ issues: ctx.common.issues,
159
+ };
160
+ }
161
+ catch (err) {
162
+ if (err?.message?.toLowerCase()?.includes("encountered")) {
163
+ this["~standard"].async = true;
164
+ }
165
+ ctx.common = {
166
+ issues: [],
167
+ async: true,
168
+ };
169
+ }
170
+ }
171
+ return this._parseAsync({ data, path: [], parent: ctx }).then((result) => (0, parseUtil_js_1.isValid)(result)
172
+ ? {
173
+ value: result.value,
174
+ }
175
+ : {
176
+ issues: ctx.common.issues,
177
+ });
178
+ }
179
+ async parseAsync(data, params) {
180
+ const result = await this.safeParseAsync(data, params);
181
+ if (result.success)
182
+ return result.data;
183
+ throw result.error;
184
+ }
185
+ async safeParseAsync(data, params) {
186
+ const ctx = {
187
+ common: {
188
+ issues: [],
189
+ contextualErrorMap: params?.errorMap,
190
+ async: true,
191
+ },
192
+ path: params?.path || [],
193
+ schemaErrorMap: this._def.errorMap,
194
+ parent: null,
195
+ data,
196
+ parsedType: (0, util_js_1.getParsedType)(data),
197
+ };
198
+ const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
199
+ const result = await ((0, parseUtil_js_1.isAsync)(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
200
+ return handleResult(ctx, result);
201
+ }
202
+ refine(check, message) {
203
+ const getIssueProperties = (val) => {
204
+ if (typeof message === "string" || typeof message === "undefined") {
205
+ return { message };
206
+ }
207
+ else if (typeof message === "function") {
208
+ return message(val);
209
+ }
210
+ else {
211
+ return message;
212
+ }
213
+ };
214
+ return this._refinement((val, ctx) => {
215
+ const result = check(val);
216
+ const setError = () => ctx.addIssue({
217
+ code: ZodError_js_1.ZodIssueCode.custom,
218
+ ...getIssueProperties(val),
219
+ });
220
+ if (typeof Promise !== "undefined" && result instanceof Promise) {
221
+ return result.then((data) => {
222
+ if (!data) {
223
+ setError();
224
+ return false;
225
+ }
226
+ else {
227
+ return true;
228
+ }
229
+ });
230
+ }
231
+ if (!result) {
232
+ setError();
233
+ return false;
234
+ }
235
+ else {
236
+ return true;
237
+ }
238
+ });
239
+ }
240
+ refinement(check, refinementData) {
241
+ return this._refinement((val, ctx) => {
242
+ if (!check(val)) {
243
+ ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
244
+ return false;
245
+ }
246
+ else {
247
+ return true;
248
+ }
249
+ });
250
+ }
251
+ _refinement(refinement) {
252
+ return new ZodEffects({
253
+ schema: this,
254
+ typeName: ZodFirstPartyTypeKind.ZodEffects,
255
+ effect: { type: "refinement", refinement },
256
+ });
257
+ }
258
+ superRefine(refinement) {
259
+ return this._refinement(refinement);
260
+ }
261
+ constructor(def) {
262
+ /** Alias of safeParseAsync */
263
+ this.spa = this.safeParseAsync;
264
+ this._def = def;
265
+ this.parse = this.parse.bind(this);
266
+ this.safeParse = this.safeParse.bind(this);
267
+ this.parseAsync = this.parseAsync.bind(this);
268
+ this.safeParseAsync = this.safeParseAsync.bind(this);
269
+ this.spa = this.spa.bind(this);
270
+ this.refine = this.refine.bind(this);
271
+ this.refinement = this.refinement.bind(this);
272
+ this.superRefine = this.superRefine.bind(this);
273
+ this.optional = this.optional.bind(this);
274
+ this.nullable = this.nullable.bind(this);
275
+ this.nullish = this.nullish.bind(this);
276
+ this.array = this.array.bind(this);
277
+ this.promise = this.promise.bind(this);
278
+ this.or = this.or.bind(this);
279
+ this.and = this.and.bind(this);
280
+ this.transform = this.transform.bind(this);
281
+ this.brand = this.brand.bind(this);
282
+ this.default = this.default.bind(this);
283
+ this.catch = this.catch.bind(this);
284
+ this.describe = this.describe.bind(this);
285
+ this.pipe = this.pipe.bind(this);
286
+ this.readonly = this.readonly.bind(this);
287
+ this.isNullable = this.isNullable.bind(this);
288
+ this.isOptional = this.isOptional.bind(this);
289
+ this["~standard"] = {
290
+ version: 1,
291
+ vendor: "zod",
292
+ validate: (data) => this["~validate"](data),
293
+ };
294
+ }
295
+ optional() {
296
+ return ZodOptional.create(this, this._def);
297
+ }
298
+ nullable() {
299
+ return ZodNullable.create(this, this._def);
300
+ }
301
+ nullish() {
302
+ return this.nullable().optional();
303
+ }
304
+ array() {
305
+ return ZodArray.create(this);
306
+ }
307
+ promise() {
308
+ return ZodPromise.create(this, this._def);
309
+ }
310
+ or(option) {
311
+ return ZodUnion.create([this, option], this._def);
312
+ }
313
+ and(incoming) {
314
+ return ZodIntersection.create(this, incoming, this._def);
315
+ }
316
+ transform(transform) {
317
+ return new ZodEffects({
318
+ ...processCreateParams(this._def),
319
+ schema: this,
320
+ typeName: ZodFirstPartyTypeKind.ZodEffects,
321
+ effect: { type: "transform", transform },
322
+ });
323
+ }
324
+ default(def) {
325
+ const defaultValueFunc = typeof def === "function" ? def : () => def;
326
+ return new ZodDefault({
327
+ ...processCreateParams(this._def),
328
+ innerType: this,
329
+ defaultValue: defaultValueFunc,
330
+ typeName: ZodFirstPartyTypeKind.ZodDefault,
331
+ });
332
+ }
333
+ brand() {
334
+ return new ZodBranded({
335
+ typeName: ZodFirstPartyTypeKind.ZodBranded,
336
+ type: this,
337
+ ...processCreateParams(this._def),
338
+ });
339
+ }
340
+ catch(def) {
341
+ const catchValueFunc = typeof def === "function" ? def : () => def;
342
+ return new ZodCatch({
343
+ ...processCreateParams(this._def),
344
+ innerType: this,
345
+ catchValue: catchValueFunc,
346
+ typeName: ZodFirstPartyTypeKind.ZodCatch,
347
+ });
348
+ }
349
+ describe(description) {
350
+ const This = this.constructor;
351
+ return new This({
352
+ ...this._def,
353
+ description,
354
+ });
355
+ }
356
+ pipe(target) {
357
+ return ZodPipeline.create(this, target);
358
+ }
359
+ readonly() {
360
+ return ZodReadonly.create(this);
361
+ }
362
+ isOptional() {
363
+ return this.safeParse(undefined).success;
364
+ }
365
+ isNullable() {
366
+ return this.safeParse(null).success;
367
+ }
368
+ }
369
+ exports.ZodType = ZodType;
370
+ exports.Schema = ZodType;
371
+ exports.ZodSchema = ZodType;
372
+ const cuidRegex = /^c[^\s-]{8,}$/i;
373
+ const cuid2Regex = /^[0-9a-z]+$/;
374
+ const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
375
+ // const uuidRegex =
376
+ // /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
377
+ const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
378
+ const nanoidRegex = /^[a-z0-9_-]{21}$/i;
379
+ const jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
380
+ const durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
381
+ // from https://stackoverflow.com/a/46181/1550155
382
+ // old version: too slow, didn't support unicode
383
+ // const emailRegex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i;
384
+ //old email regex
385
+ // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
386
+ // eslint-disable-next-line
387
+ // const emailRegex =
388
+ // /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/;
389
+ // const emailRegex =
390
+ // /^[a-zA-Z0-9\.\!\#\$\%\&\'\*\+\/\=\?\^\_\`\{\|\}\~\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
391
+ // const emailRegex =
392
+ // /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;
393
+ const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
394
+ // const emailRegex =
395
+ // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
396
+ // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
397
+ const _emojiRegex = `^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
398
+ let emojiRegex;
399
+ // faster, simpler, safer
400
+ const ipv4Regex = /^(?:(?: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])$/;
401
+ const ipv4CidrRegex = /^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/;
402
+ // const ipv6Regex =
403
+ // /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
404
+ const ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
405
+ const ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,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}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
406
+ // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
407
+ const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
408
+ // https://base64.guru/standards/base64url
409
+ const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
410
+ // simple
411
+ // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
412
+ // no leap year validation
413
+ // const dateRegexSource = `\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\d|2\\d))`;
414
+ // with leap year validation
415
+ const dateRegexSource = `((\\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])))`;
416
+ const dateRegex = new RegExp(`^${dateRegexSource}$`);
417
+ function timeRegexSource(args) {
418
+ let secondsRegexSource = `[0-5]\\d`;
419
+ if (args.precision) {
420
+ secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
421
+ }
422
+ else if (args.precision == null) {
423
+ secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
424
+ }
425
+ const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
426
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
427
+ }
428
+ function timeRegex(args) {
429
+ return new RegExp(`^${timeRegexSource(args)}$`);
430
+ }
431
+ // Adapted from https://stackoverflow.com/a/3143231
432
+ function datetimeRegex(args) {
433
+ let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
434
+ const opts = [];
435
+ opts.push(args.local ? `Z?` : `Z`);
436
+ if (args.offset)
437
+ opts.push(`([+-]\\d{2}:?\\d{2})`);
438
+ regex = `${regex}(${opts.join("|")})`;
439
+ return new RegExp(`^${regex}$`);
440
+ }
441
+ function isValidIP(ip, version) {
442
+ if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
443
+ return true;
444
+ }
445
+ if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
446
+ return true;
447
+ }
448
+ return false;
449
+ }
450
+ function isValidJWT(jwt, alg) {
451
+ if (!jwtRegex.test(jwt))
452
+ return false;
453
+ try {
454
+ const [header] = jwt.split(".");
455
+ if (!header)
456
+ return false;
457
+ // Convert base64url to base64
458
+ const base64 = header
459
+ .replace(/-/g, "+")
460
+ .replace(/_/g, "/")
461
+ .padEnd(header.length + ((4 - (header.length % 4)) % 4), "=");
462
+ // @ts-ignore
463
+ const decoded = JSON.parse(atob(base64));
464
+ if (typeof decoded !== "object" || decoded === null)
465
+ return false;
466
+ if ("typ" in decoded && decoded?.typ !== "JWT")
467
+ return false;
468
+ if (!decoded.alg)
469
+ return false;
470
+ if (alg && decoded.alg !== alg)
471
+ return false;
472
+ return true;
473
+ }
474
+ catch {
475
+ return false;
476
+ }
477
+ }
478
+ function isValidCidr(ip, version) {
479
+ if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
480
+ return true;
481
+ }
482
+ if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
483
+ return true;
484
+ }
485
+ return false;
486
+ }
487
+ class ZodString extends ZodType {
488
+ _parse(input) {
489
+ if (this._def.coerce) {
490
+ input.data = String(input.data);
491
+ }
492
+ const parsedType = this._getType(input);
493
+ if (parsedType !== util_js_1.ZodParsedType.string) {
494
+ const ctx = this._getOrReturnCtx(input);
495
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
496
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
497
+ expected: util_js_1.ZodParsedType.string,
498
+ received: ctx.parsedType,
499
+ });
500
+ return parseUtil_js_1.INVALID;
501
+ }
502
+ const status = new parseUtil_js_1.ParseStatus();
503
+ let ctx = undefined;
504
+ for (const check of this._def.checks) {
505
+ if (check.kind === "min") {
506
+ if (input.data.length < check.value) {
507
+ ctx = this._getOrReturnCtx(input, ctx);
508
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
509
+ code: ZodError_js_1.ZodIssueCode.too_small,
510
+ minimum: check.value,
511
+ type: "string",
512
+ inclusive: true,
513
+ exact: false,
514
+ message: check.message,
515
+ });
516
+ status.dirty();
517
+ }
518
+ }
519
+ else if (check.kind === "max") {
520
+ if (input.data.length > check.value) {
521
+ ctx = this._getOrReturnCtx(input, ctx);
522
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
523
+ code: ZodError_js_1.ZodIssueCode.too_big,
524
+ maximum: check.value,
525
+ type: "string",
526
+ inclusive: true,
527
+ exact: false,
528
+ message: check.message,
529
+ });
530
+ status.dirty();
531
+ }
532
+ }
533
+ else if (check.kind === "length") {
534
+ const tooBig = input.data.length > check.value;
535
+ const tooSmall = input.data.length < check.value;
536
+ if (tooBig || tooSmall) {
537
+ ctx = this._getOrReturnCtx(input, ctx);
538
+ if (tooBig) {
539
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
540
+ code: ZodError_js_1.ZodIssueCode.too_big,
541
+ maximum: check.value,
542
+ type: "string",
543
+ inclusive: true,
544
+ exact: true,
545
+ message: check.message,
546
+ });
547
+ }
548
+ else if (tooSmall) {
549
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
550
+ code: ZodError_js_1.ZodIssueCode.too_small,
551
+ minimum: check.value,
552
+ type: "string",
553
+ inclusive: true,
554
+ exact: true,
555
+ message: check.message,
556
+ });
557
+ }
558
+ status.dirty();
559
+ }
560
+ }
561
+ else if (check.kind === "email") {
562
+ if (!emailRegex.test(input.data)) {
563
+ ctx = this._getOrReturnCtx(input, ctx);
564
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
565
+ validation: "email",
566
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
567
+ message: check.message,
568
+ });
569
+ status.dirty();
570
+ }
571
+ }
572
+ else if (check.kind === "emoji") {
573
+ if (!emojiRegex) {
574
+ emojiRegex = new RegExp(_emojiRegex, "u");
575
+ }
576
+ if (!emojiRegex.test(input.data)) {
577
+ ctx = this._getOrReturnCtx(input, ctx);
578
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
579
+ validation: "emoji",
580
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
581
+ message: check.message,
582
+ });
583
+ status.dirty();
584
+ }
585
+ }
586
+ else if (check.kind === "uuid") {
587
+ if (!uuidRegex.test(input.data)) {
588
+ ctx = this._getOrReturnCtx(input, ctx);
589
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
590
+ validation: "uuid",
591
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
592
+ message: check.message,
593
+ });
594
+ status.dirty();
595
+ }
596
+ }
597
+ else if (check.kind === "nanoid") {
598
+ if (!nanoidRegex.test(input.data)) {
599
+ ctx = this._getOrReturnCtx(input, ctx);
600
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
601
+ validation: "nanoid",
602
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
603
+ message: check.message,
604
+ });
605
+ status.dirty();
606
+ }
607
+ }
608
+ else if (check.kind === "cuid") {
609
+ if (!cuidRegex.test(input.data)) {
610
+ ctx = this._getOrReturnCtx(input, ctx);
611
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
612
+ validation: "cuid",
613
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
614
+ message: check.message,
615
+ });
616
+ status.dirty();
617
+ }
618
+ }
619
+ else if (check.kind === "cuid2") {
620
+ if (!cuid2Regex.test(input.data)) {
621
+ ctx = this._getOrReturnCtx(input, ctx);
622
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
623
+ validation: "cuid2",
624
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
625
+ message: check.message,
626
+ });
627
+ status.dirty();
628
+ }
629
+ }
630
+ else if (check.kind === "ulid") {
631
+ if (!ulidRegex.test(input.data)) {
632
+ ctx = this._getOrReturnCtx(input, ctx);
633
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
634
+ validation: "ulid",
635
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
636
+ message: check.message,
637
+ });
638
+ status.dirty();
639
+ }
640
+ }
641
+ else if (check.kind === "url") {
642
+ try {
643
+ // @ts-ignore
644
+ new URL(input.data);
645
+ }
646
+ catch {
647
+ ctx = this._getOrReturnCtx(input, ctx);
648
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
649
+ validation: "url",
650
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
651
+ message: check.message,
652
+ });
653
+ status.dirty();
654
+ }
655
+ }
656
+ else if (check.kind === "regex") {
657
+ check.regex.lastIndex = 0;
658
+ const testResult = check.regex.test(input.data);
659
+ if (!testResult) {
660
+ ctx = this._getOrReturnCtx(input, ctx);
661
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
662
+ validation: "regex",
663
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
664
+ message: check.message,
665
+ });
666
+ status.dirty();
667
+ }
668
+ }
669
+ else if (check.kind === "trim") {
670
+ input.data = input.data.trim();
671
+ }
672
+ else if (check.kind === "includes") {
673
+ if (!input.data.includes(check.value, check.position)) {
674
+ ctx = this._getOrReturnCtx(input, ctx);
675
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
676
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
677
+ validation: { includes: check.value, position: check.position },
678
+ message: check.message,
679
+ });
680
+ status.dirty();
681
+ }
682
+ }
683
+ else if (check.kind === "toLowerCase") {
684
+ input.data = input.data.toLowerCase();
685
+ }
686
+ else if (check.kind === "toUpperCase") {
687
+ input.data = input.data.toUpperCase();
688
+ }
689
+ else if (check.kind === "startsWith") {
690
+ if (!input.data.startsWith(check.value)) {
691
+ ctx = this._getOrReturnCtx(input, ctx);
692
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
693
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
694
+ validation: { startsWith: check.value },
695
+ message: check.message,
696
+ });
697
+ status.dirty();
698
+ }
699
+ }
700
+ else if (check.kind === "endsWith") {
701
+ if (!input.data.endsWith(check.value)) {
702
+ ctx = this._getOrReturnCtx(input, ctx);
703
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
704
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
705
+ validation: { endsWith: check.value },
706
+ message: check.message,
707
+ });
708
+ status.dirty();
709
+ }
710
+ }
711
+ else if (check.kind === "datetime") {
712
+ const regex = datetimeRegex(check);
713
+ if (!regex.test(input.data)) {
714
+ ctx = this._getOrReturnCtx(input, ctx);
715
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
716
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
717
+ validation: "datetime",
718
+ message: check.message,
719
+ });
720
+ status.dirty();
721
+ }
722
+ }
723
+ else if (check.kind === "date") {
724
+ const regex = dateRegex;
725
+ if (!regex.test(input.data)) {
726
+ ctx = this._getOrReturnCtx(input, ctx);
727
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
728
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
729
+ validation: "date",
730
+ message: check.message,
731
+ });
732
+ status.dirty();
733
+ }
734
+ }
735
+ else if (check.kind === "time") {
736
+ const regex = timeRegex(check);
737
+ if (!regex.test(input.data)) {
738
+ ctx = this._getOrReturnCtx(input, ctx);
739
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
740
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
741
+ validation: "time",
742
+ message: check.message,
743
+ });
744
+ status.dirty();
745
+ }
746
+ }
747
+ else if (check.kind === "duration") {
748
+ if (!durationRegex.test(input.data)) {
749
+ ctx = this._getOrReturnCtx(input, ctx);
750
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
751
+ validation: "duration",
752
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
753
+ message: check.message,
754
+ });
755
+ status.dirty();
756
+ }
757
+ }
758
+ else if (check.kind === "ip") {
759
+ if (!isValidIP(input.data, check.version)) {
760
+ ctx = this._getOrReturnCtx(input, ctx);
761
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
762
+ validation: "ip",
763
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
764
+ message: check.message,
765
+ });
766
+ status.dirty();
767
+ }
768
+ }
769
+ else if (check.kind === "jwt") {
770
+ if (!isValidJWT(input.data, check.alg)) {
771
+ ctx = this._getOrReturnCtx(input, ctx);
772
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
773
+ validation: "jwt",
774
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
775
+ message: check.message,
776
+ });
777
+ status.dirty();
778
+ }
779
+ }
780
+ else if (check.kind === "cidr") {
781
+ if (!isValidCidr(input.data, check.version)) {
782
+ ctx = this._getOrReturnCtx(input, ctx);
783
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
784
+ validation: "cidr",
785
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
786
+ message: check.message,
787
+ });
788
+ status.dirty();
789
+ }
790
+ }
791
+ else if (check.kind === "base64") {
792
+ if (!base64Regex.test(input.data)) {
793
+ ctx = this._getOrReturnCtx(input, ctx);
794
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
795
+ validation: "base64",
796
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
797
+ message: check.message,
798
+ });
799
+ status.dirty();
800
+ }
801
+ }
802
+ else if (check.kind === "base64url") {
803
+ if (!base64urlRegex.test(input.data)) {
804
+ ctx = this._getOrReturnCtx(input, ctx);
805
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
806
+ validation: "base64url",
807
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
808
+ message: check.message,
809
+ });
810
+ status.dirty();
811
+ }
812
+ }
813
+ else {
814
+ util_js_1.util.assertNever(check);
815
+ }
816
+ }
817
+ return { status: status.value, value: input.data };
818
+ }
819
+ _regex(regex, validation, message) {
820
+ return this.refinement((data) => regex.test(data), {
821
+ validation,
822
+ code: ZodError_js_1.ZodIssueCode.invalid_string,
823
+ ...errorUtil_js_1.errorUtil.errToObj(message),
824
+ });
825
+ }
826
+ _addCheck(check) {
827
+ return new ZodString({
828
+ ...this._def,
829
+ checks: [...this._def.checks, check],
830
+ });
831
+ }
832
+ email(message) {
833
+ return this._addCheck({ kind: "email", ...errorUtil_js_1.errorUtil.errToObj(message) });
834
+ }
835
+ url(message) {
836
+ return this._addCheck({ kind: "url", ...errorUtil_js_1.errorUtil.errToObj(message) });
837
+ }
838
+ emoji(message) {
839
+ return this._addCheck({ kind: "emoji", ...errorUtil_js_1.errorUtil.errToObj(message) });
840
+ }
841
+ uuid(message) {
842
+ return this._addCheck({ kind: "uuid", ...errorUtil_js_1.errorUtil.errToObj(message) });
843
+ }
844
+ nanoid(message) {
845
+ return this._addCheck({ kind: "nanoid", ...errorUtil_js_1.errorUtil.errToObj(message) });
846
+ }
847
+ cuid(message) {
848
+ return this._addCheck({ kind: "cuid", ...errorUtil_js_1.errorUtil.errToObj(message) });
849
+ }
850
+ cuid2(message) {
851
+ return this._addCheck({ kind: "cuid2", ...errorUtil_js_1.errorUtil.errToObj(message) });
852
+ }
853
+ ulid(message) {
854
+ return this._addCheck({ kind: "ulid", ...errorUtil_js_1.errorUtil.errToObj(message) });
855
+ }
856
+ base64(message) {
857
+ return this._addCheck({ kind: "base64", ...errorUtil_js_1.errorUtil.errToObj(message) });
858
+ }
859
+ base64url(message) {
860
+ // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
861
+ return this._addCheck({
862
+ kind: "base64url",
863
+ ...errorUtil_js_1.errorUtil.errToObj(message),
864
+ });
865
+ }
866
+ jwt(options) {
867
+ return this._addCheck({ kind: "jwt", ...errorUtil_js_1.errorUtil.errToObj(options) });
868
+ }
869
+ ip(options) {
870
+ return this._addCheck({ kind: "ip", ...errorUtil_js_1.errorUtil.errToObj(options) });
871
+ }
872
+ cidr(options) {
873
+ return this._addCheck({ kind: "cidr", ...errorUtil_js_1.errorUtil.errToObj(options) });
874
+ }
875
+ datetime(options) {
876
+ if (typeof options === "string") {
877
+ return this._addCheck({
878
+ kind: "datetime",
879
+ precision: null,
880
+ offset: false,
881
+ local: false,
882
+ message: options,
883
+ });
884
+ }
885
+ return this._addCheck({
886
+ kind: "datetime",
887
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
888
+ offset: options?.offset ?? false,
889
+ local: options?.local ?? false,
890
+ ...errorUtil_js_1.errorUtil.errToObj(options?.message),
891
+ });
892
+ }
893
+ date(message) {
894
+ return this._addCheck({ kind: "date", message });
895
+ }
896
+ time(options) {
897
+ if (typeof options === "string") {
898
+ return this._addCheck({
899
+ kind: "time",
900
+ precision: null,
901
+ message: options,
902
+ });
903
+ }
904
+ return this._addCheck({
905
+ kind: "time",
906
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
907
+ ...errorUtil_js_1.errorUtil.errToObj(options?.message),
908
+ });
909
+ }
910
+ duration(message) {
911
+ return this._addCheck({ kind: "duration", ...errorUtil_js_1.errorUtil.errToObj(message) });
912
+ }
913
+ regex(regex, message) {
914
+ return this._addCheck({
915
+ kind: "regex",
916
+ regex: regex,
917
+ ...errorUtil_js_1.errorUtil.errToObj(message),
918
+ });
919
+ }
920
+ includes(value, options) {
921
+ return this._addCheck({
922
+ kind: "includes",
923
+ value: value,
924
+ position: options?.position,
925
+ ...errorUtil_js_1.errorUtil.errToObj(options?.message),
926
+ });
927
+ }
928
+ startsWith(value, message) {
929
+ return this._addCheck({
930
+ kind: "startsWith",
931
+ value: value,
932
+ ...errorUtil_js_1.errorUtil.errToObj(message),
933
+ });
934
+ }
935
+ endsWith(value, message) {
936
+ return this._addCheck({
937
+ kind: "endsWith",
938
+ value: value,
939
+ ...errorUtil_js_1.errorUtil.errToObj(message),
940
+ });
941
+ }
942
+ min(minLength, message) {
943
+ return this._addCheck({
944
+ kind: "min",
945
+ value: minLength,
946
+ ...errorUtil_js_1.errorUtil.errToObj(message),
947
+ });
948
+ }
949
+ max(maxLength, message) {
950
+ return this._addCheck({
951
+ kind: "max",
952
+ value: maxLength,
953
+ ...errorUtil_js_1.errorUtil.errToObj(message),
954
+ });
955
+ }
956
+ length(len, message) {
957
+ return this._addCheck({
958
+ kind: "length",
959
+ value: len,
960
+ ...errorUtil_js_1.errorUtil.errToObj(message),
961
+ });
962
+ }
963
+ /**
964
+ * Equivalent to `.min(1)`
965
+ */
966
+ nonempty(message) {
967
+ return this.min(1, errorUtil_js_1.errorUtil.errToObj(message));
968
+ }
969
+ trim() {
970
+ return new ZodString({
971
+ ...this._def,
972
+ checks: [...this._def.checks, { kind: "trim" }],
973
+ });
974
+ }
975
+ toLowerCase() {
976
+ return new ZodString({
977
+ ...this._def,
978
+ checks: [...this._def.checks, { kind: "toLowerCase" }],
979
+ });
980
+ }
981
+ toUpperCase() {
982
+ return new ZodString({
983
+ ...this._def,
984
+ checks: [...this._def.checks, { kind: "toUpperCase" }],
985
+ });
986
+ }
987
+ get isDatetime() {
988
+ return !!this._def.checks.find((ch) => ch.kind === "datetime");
989
+ }
990
+ get isDate() {
991
+ return !!this._def.checks.find((ch) => ch.kind === "date");
992
+ }
993
+ get isTime() {
994
+ return !!this._def.checks.find((ch) => ch.kind === "time");
995
+ }
996
+ get isDuration() {
997
+ return !!this._def.checks.find((ch) => ch.kind === "duration");
998
+ }
999
+ get isEmail() {
1000
+ return !!this._def.checks.find((ch) => ch.kind === "email");
1001
+ }
1002
+ get isURL() {
1003
+ return !!this._def.checks.find((ch) => ch.kind === "url");
1004
+ }
1005
+ get isEmoji() {
1006
+ return !!this._def.checks.find((ch) => ch.kind === "emoji");
1007
+ }
1008
+ get isUUID() {
1009
+ return !!this._def.checks.find((ch) => ch.kind === "uuid");
1010
+ }
1011
+ get isNANOID() {
1012
+ return !!this._def.checks.find((ch) => ch.kind === "nanoid");
1013
+ }
1014
+ get isCUID() {
1015
+ return !!this._def.checks.find((ch) => ch.kind === "cuid");
1016
+ }
1017
+ get isCUID2() {
1018
+ return !!this._def.checks.find((ch) => ch.kind === "cuid2");
1019
+ }
1020
+ get isULID() {
1021
+ return !!this._def.checks.find((ch) => ch.kind === "ulid");
1022
+ }
1023
+ get isIP() {
1024
+ return !!this._def.checks.find((ch) => ch.kind === "ip");
1025
+ }
1026
+ get isCIDR() {
1027
+ return !!this._def.checks.find((ch) => ch.kind === "cidr");
1028
+ }
1029
+ get isBase64() {
1030
+ return !!this._def.checks.find((ch) => ch.kind === "base64");
1031
+ }
1032
+ get isBase64url() {
1033
+ // base64url encoding is a modification of base64 that can safely be used in URLs and filenames
1034
+ return !!this._def.checks.find((ch) => ch.kind === "base64url");
1035
+ }
1036
+ get minLength() {
1037
+ let min = null;
1038
+ for (const ch of this._def.checks) {
1039
+ if (ch.kind === "min") {
1040
+ if (min === null || ch.value > min)
1041
+ min = ch.value;
1042
+ }
1043
+ }
1044
+ return min;
1045
+ }
1046
+ get maxLength() {
1047
+ let max = null;
1048
+ for (const ch of this._def.checks) {
1049
+ if (ch.kind === "max") {
1050
+ if (max === null || ch.value < max)
1051
+ max = ch.value;
1052
+ }
1053
+ }
1054
+ return max;
1055
+ }
1056
+ }
1057
+ exports.ZodString = ZodString;
1058
+ ZodString.create = (params) => {
1059
+ return new ZodString({
1060
+ checks: [],
1061
+ typeName: ZodFirstPartyTypeKind.ZodString,
1062
+ coerce: params?.coerce ?? false,
1063
+ ...processCreateParams(params),
1064
+ });
1065
+ };
1066
+ // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
1067
+ function floatSafeRemainder(val, step) {
1068
+ const valDecCount = (val.toString().split(".")[1] || "").length;
1069
+ const stepDecCount = (step.toString().split(".")[1] || "").length;
1070
+ const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1071
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1072
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1073
+ return (valInt % stepInt) / 10 ** decCount;
1074
+ }
1075
+ class ZodNumber extends ZodType {
1076
+ constructor() {
1077
+ super(...arguments);
1078
+ this.min = this.gte;
1079
+ this.max = this.lte;
1080
+ this.step = this.multipleOf;
1081
+ }
1082
+ _parse(input) {
1083
+ if (this._def.coerce) {
1084
+ input.data = Number(input.data);
1085
+ }
1086
+ const parsedType = this._getType(input);
1087
+ if (parsedType !== util_js_1.ZodParsedType.number) {
1088
+ const ctx = this._getOrReturnCtx(input);
1089
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1090
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1091
+ expected: util_js_1.ZodParsedType.number,
1092
+ received: ctx.parsedType,
1093
+ });
1094
+ return parseUtil_js_1.INVALID;
1095
+ }
1096
+ let ctx = undefined;
1097
+ const status = new parseUtil_js_1.ParseStatus();
1098
+ for (const check of this._def.checks) {
1099
+ if (check.kind === "int") {
1100
+ if (!util_js_1.util.isInteger(input.data)) {
1101
+ ctx = this._getOrReturnCtx(input, ctx);
1102
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1103
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1104
+ expected: "integer",
1105
+ received: "float",
1106
+ message: check.message,
1107
+ });
1108
+ status.dirty();
1109
+ }
1110
+ }
1111
+ else if (check.kind === "min") {
1112
+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1113
+ if (tooSmall) {
1114
+ ctx = this._getOrReturnCtx(input, ctx);
1115
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1116
+ code: ZodError_js_1.ZodIssueCode.too_small,
1117
+ minimum: check.value,
1118
+ type: "number",
1119
+ inclusive: check.inclusive,
1120
+ exact: false,
1121
+ message: check.message,
1122
+ });
1123
+ status.dirty();
1124
+ }
1125
+ }
1126
+ else if (check.kind === "max") {
1127
+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1128
+ if (tooBig) {
1129
+ ctx = this._getOrReturnCtx(input, ctx);
1130
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1131
+ code: ZodError_js_1.ZodIssueCode.too_big,
1132
+ maximum: check.value,
1133
+ type: "number",
1134
+ inclusive: check.inclusive,
1135
+ exact: false,
1136
+ message: check.message,
1137
+ });
1138
+ status.dirty();
1139
+ }
1140
+ }
1141
+ else if (check.kind === "multipleOf") {
1142
+ if (floatSafeRemainder(input.data, check.value) !== 0) {
1143
+ ctx = this._getOrReturnCtx(input, ctx);
1144
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1145
+ code: ZodError_js_1.ZodIssueCode.not_multiple_of,
1146
+ multipleOf: check.value,
1147
+ message: check.message,
1148
+ });
1149
+ status.dirty();
1150
+ }
1151
+ }
1152
+ else if (check.kind === "finite") {
1153
+ if (!Number.isFinite(input.data)) {
1154
+ ctx = this._getOrReturnCtx(input, ctx);
1155
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1156
+ code: ZodError_js_1.ZodIssueCode.not_finite,
1157
+ message: check.message,
1158
+ });
1159
+ status.dirty();
1160
+ }
1161
+ }
1162
+ else {
1163
+ util_js_1.util.assertNever(check);
1164
+ }
1165
+ }
1166
+ return { status: status.value, value: input.data };
1167
+ }
1168
+ gte(value, message) {
1169
+ return this.setLimit("min", value, true, errorUtil_js_1.errorUtil.toString(message));
1170
+ }
1171
+ gt(value, message) {
1172
+ return this.setLimit("min", value, false, errorUtil_js_1.errorUtil.toString(message));
1173
+ }
1174
+ lte(value, message) {
1175
+ return this.setLimit("max", value, true, errorUtil_js_1.errorUtil.toString(message));
1176
+ }
1177
+ lt(value, message) {
1178
+ return this.setLimit("max", value, false, errorUtil_js_1.errorUtil.toString(message));
1179
+ }
1180
+ setLimit(kind, value, inclusive, message) {
1181
+ return new ZodNumber({
1182
+ ...this._def,
1183
+ checks: [
1184
+ ...this._def.checks,
1185
+ {
1186
+ kind,
1187
+ value,
1188
+ inclusive,
1189
+ message: errorUtil_js_1.errorUtil.toString(message),
1190
+ },
1191
+ ],
1192
+ });
1193
+ }
1194
+ _addCheck(check) {
1195
+ return new ZodNumber({
1196
+ ...this._def,
1197
+ checks: [...this._def.checks, check],
1198
+ });
1199
+ }
1200
+ int(message) {
1201
+ return this._addCheck({
1202
+ kind: "int",
1203
+ message: errorUtil_js_1.errorUtil.toString(message),
1204
+ });
1205
+ }
1206
+ positive(message) {
1207
+ return this._addCheck({
1208
+ kind: "min",
1209
+ value: 0,
1210
+ inclusive: false,
1211
+ message: errorUtil_js_1.errorUtil.toString(message),
1212
+ });
1213
+ }
1214
+ negative(message) {
1215
+ return this._addCheck({
1216
+ kind: "max",
1217
+ value: 0,
1218
+ inclusive: false,
1219
+ message: errorUtil_js_1.errorUtil.toString(message),
1220
+ });
1221
+ }
1222
+ nonpositive(message) {
1223
+ return this._addCheck({
1224
+ kind: "max",
1225
+ value: 0,
1226
+ inclusive: true,
1227
+ message: errorUtil_js_1.errorUtil.toString(message),
1228
+ });
1229
+ }
1230
+ nonnegative(message) {
1231
+ return this._addCheck({
1232
+ kind: "min",
1233
+ value: 0,
1234
+ inclusive: true,
1235
+ message: errorUtil_js_1.errorUtil.toString(message),
1236
+ });
1237
+ }
1238
+ multipleOf(value, message) {
1239
+ return this._addCheck({
1240
+ kind: "multipleOf",
1241
+ value: value,
1242
+ message: errorUtil_js_1.errorUtil.toString(message),
1243
+ });
1244
+ }
1245
+ finite(message) {
1246
+ return this._addCheck({
1247
+ kind: "finite",
1248
+ message: errorUtil_js_1.errorUtil.toString(message),
1249
+ });
1250
+ }
1251
+ safe(message) {
1252
+ return this._addCheck({
1253
+ kind: "min",
1254
+ inclusive: true,
1255
+ value: Number.MIN_SAFE_INTEGER,
1256
+ message: errorUtil_js_1.errorUtil.toString(message),
1257
+ })._addCheck({
1258
+ kind: "max",
1259
+ inclusive: true,
1260
+ value: Number.MAX_SAFE_INTEGER,
1261
+ message: errorUtil_js_1.errorUtil.toString(message),
1262
+ });
1263
+ }
1264
+ get minValue() {
1265
+ let min = null;
1266
+ for (const ch of this._def.checks) {
1267
+ if (ch.kind === "min") {
1268
+ if (min === null || ch.value > min)
1269
+ min = ch.value;
1270
+ }
1271
+ }
1272
+ return min;
1273
+ }
1274
+ get maxValue() {
1275
+ let max = null;
1276
+ for (const ch of this._def.checks) {
1277
+ if (ch.kind === "max") {
1278
+ if (max === null || ch.value < max)
1279
+ max = ch.value;
1280
+ }
1281
+ }
1282
+ return max;
1283
+ }
1284
+ get isInt() {
1285
+ return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util_js_1.util.isInteger(ch.value)));
1286
+ }
1287
+ get isFinite() {
1288
+ let max = null;
1289
+ let min = null;
1290
+ for (const ch of this._def.checks) {
1291
+ if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
1292
+ return true;
1293
+ }
1294
+ else if (ch.kind === "min") {
1295
+ if (min === null || ch.value > min)
1296
+ min = ch.value;
1297
+ }
1298
+ else if (ch.kind === "max") {
1299
+ if (max === null || ch.value < max)
1300
+ max = ch.value;
1301
+ }
1302
+ }
1303
+ return Number.isFinite(min) && Number.isFinite(max);
1304
+ }
1305
+ }
1306
+ exports.ZodNumber = ZodNumber;
1307
+ ZodNumber.create = (params) => {
1308
+ return new ZodNumber({
1309
+ checks: [],
1310
+ typeName: ZodFirstPartyTypeKind.ZodNumber,
1311
+ coerce: params?.coerce || false,
1312
+ ...processCreateParams(params),
1313
+ });
1314
+ };
1315
+ class ZodBigInt extends ZodType {
1316
+ constructor() {
1317
+ super(...arguments);
1318
+ this.min = this.gte;
1319
+ this.max = this.lte;
1320
+ }
1321
+ _parse(input) {
1322
+ if (this._def.coerce) {
1323
+ try {
1324
+ input.data = BigInt(input.data);
1325
+ }
1326
+ catch {
1327
+ return this._getInvalidInput(input);
1328
+ }
1329
+ }
1330
+ const parsedType = this._getType(input);
1331
+ if (parsedType !== util_js_1.ZodParsedType.bigint) {
1332
+ return this._getInvalidInput(input);
1333
+ }
1334
+ let ctx = undefined;
1335
+ const status = new parseUtil_js_1.ParseStatus();
1336
+ for (const check of this._def.checks) {
1337
+ if (check.kind === "min") {
1338
+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1339
+ if (tooSmall) {
1340
+ ctx = this._getOrReturnCtx(input, ctx);
1341
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1342
+ code: ZodError_js_1.ZodIssueCode.too_small,
1343
+ type: "bigint",
1344
+ minimum: check.value,
1345
+ inclusive: check.inclusive,
1346
+ message: check.message,
1347
+ });
1348
+ status.dirty();
1349
+ }
1350
+ }
1351
+ else if (check.kind === "max") {
1352
+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1353
+ if (tooBig) {
1354
+ ctx = this._getOrReturnCtx(input, ctx);
1355
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1356
+ code: ZodError_js_1.ZodIssueCode.too_big,
1357
+ type: "bigint",
1358
+ maximum: check.value,
1359
+ inclusive: check.inclusive,
1360
+ message: check.message,
1361
+ });
1362
+ status.dirty();
1363
+ }
1364
+ }
1365
+ else if (check.kind === "multipleOf") {
1366
+ if (input.data % check.value !== BigInt(0)) {
1367
+ ctx = this._getOrReturnCtx(input, ctx);
1368
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1369
+ code: ZodError_js_1.ZodIssueCode.not_multiple_of,
1370
+ multipleOf: check.value,
1371
+ message: check.message,
1372
+ });
1373
+ status.dirty();
1374
+ }
1375
+ }
1376
+ else {
1377
+ util_js_1.util.assertNever(check);
1378
+ }
1379
+ }
1380
+ return { status: status.value, value: input.data };
1381
+ }
1382
+ _getInvalidInput(input) {
1383
+ const ctx = this._getOrReturnCtx(input);
1384
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1385
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1386
+ expected: util_js_1.ZodParsedType.bigint,
1387
+ received: ctx.parsedType,
1388
+ });
1389
+ return parseUtil_js_1.INVALID;
1390
+ }
1391
+ gte(value, message) {
1392
+ return this.setLimit("min", value, true, errorUtil_js_1.errorUtil.toString(message));
1393
+ }
1394
+ gt(value, message) {
1395
+ return this.setLimit("min", value, false, errorUtil_js_1.errorUtil.toString(message));
1396
+ }
1397
+ lte(value, message) {
1398
+ return this.setLimit("max", value, true, errorUtil_js_1.errorUtil.toString(message));
1399
+ }
1400
+ lt(value, message) {
1401
+ return this.setLimit("max", value, false, errorUtil_js_1.errorUtil.toString(message));
1402
+ }
1403
+ setLimit(kind, value, inclusive, message) {
1404
+ return new ZodBigInt({
1405
+ ...this._def,
1406
+ checks: [
1407
+ ...this._def.checks,
1408
+ {
1409
+ kind,
1410
+ value,
1411
+ inclusive,
1412
+ message: errorUtil_js_1.errorUtil.toString(message),
1413
+ },
1414
+ ],
1415
+ });
1416
+ }
1417
+ _addCheck(check) {
1418
+ return new ZodBigInt({
1419
+ ...this._def,
1420
+ checks: [...this._def.checks, check],
1421
+ });
1422
+ }
1423
+ positive(message) {
1424
+ return this._addCheck({
1425
+ kind: "min",
1426
+ value: BigInt(0),
1427
+ inclusive: false,
1428
+ message: errorUtil_js_1.errorUtil.toString(message),
1429
+ });
1430
+ }
1431
+ negative(message) {
1432
+ return this._addCheck({
1433
+ kind: "max",
1434
+ value: BigInt(0),
1435
+ inclusive: false,
1436
+ message: errorUtil_js_1.errorUtil.toString(message),
1437
+ });
1438
+ }
1439
+ nonpositive(message) {
1440
+ return this._addCheck({
1441
+ kind: "max",
1442
+ value: BigInt(0),
1443
+ inclusive: true,
1444
+ message: errorUtil_js_1.errorUtil.toString(message),
1445
+ });
1446
+ }
1447
+ nonnegative(message) {
1448
+ return this._addCheck({
1449
+ kind: "min",
1450
+ value: BigInt(0),
1451
+ inclusive: true,
1452
+ message: errorUtil_js_1.errorUtil.toString(message),
1453
+ });
1454
+ }
1455
+ multipleOf(value, message) {
1456
+ return this._addCheck({
1457
+ kind: "multipleOf",
1458
+ value,
1459
+ message: errorUtil_js_1.errorUtil.toString(message),
1460
+ });
1461
+ }
1462
+ get minValue() {
1463
+ let min = null;
1464
+ for (const ch of this._def.checks) {
1465
+ if (ch.kind === "min") {
1466
+ if (min === null || ch.value > min)
1467
+ min = ch.value;
1468
+ }
1469
+ }
1470
+ return min;
1471
+ }
1472
+ get maxValue() {
1473
+ let max = null;
1474
+ for (const ch of this._def.checks) {
1475
+ if (ch.kind === "max") {
1476
+ if (max === null || ch.value < max)
1477
+ max = ch.value;
1478
+ }
1479
+ }
1480
+ return max;
1481
+ }
1482
+ }
1483
+ exports.ZodBigInt = ZodBigInt;
1484
+ ZodBigInt.create = (params) => {
1485
+ return new ZodBigInt({
1486
+ checks: [],
1487
+ typeName: ZodFirstPartyTypeKind.ZodBigInt,
1488
+ coerce: params?.coerce ?? false,
1489
+ ...processCreateParams(params),
1490
+ });
1491
+ };
1492
+ class ZodBoolean extends ZodType {
1493
+ _parse(input) {
1494
+ if (this._def.coerce) {
1495
+ input.data = Boolean(input.data);
1496
+ }
1497
+ const parsedType = this._getType(input);
1498
+ if (parsedType !== util_js_1.ZodParsedType.boolean) {
1499
+ const ctx = this._getOrReturnCtx(input);
1500
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1501
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1502
+ expected: util_js_1.ZodParsedType.boolean,
1503
+ received: ctx.parsedType,
1504
+ });
1505
+ return parseUtil_js_1.INVALID;
1506
+ }
1507
+ return (0, parseUtil_js_1.OK)(input.data);
1508
+ }
1509
+ }
1510
+ exports.ZodBoolean = ZodBoolean;
1511
+ ZodBoolean.create = (params) => {
1512
+ return new ZodBoolean({
1513
+ typeName: ZodFirstPartyTypeKind.ZodBoolean,
1514
+ coerce: params?.coerce || false,
1515
+ ...processCreateParams(params),
1516
+ });
1517
+ };
1518
+ class ZodDate extends ZodType {
1519
+ _parse(input) {
1520
+ if (this._def.coerce) {
1521
+ input.data = new Date(input.data);
1522
+ }
1523
+ const parsedType = this._getType(input);
1524
+ if (parsedType !== util_js_1.ZodParsedType.date) {
1525
+ const ctx = this._getOrReturnCtx(input);
1526
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1527
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1528
+ expected: util_js_1.ZodParsedType.date,
1529
+ received: ctx.parsedType,
1530
+ });
1531
+ return parseUtil_js_1.INVALID;
1532
+ }
1533
+ if (Number.isNaN(input.data.getTime())) {
1534
+ const ctx = this._getOrReturnCtx(input);
1535
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1536
+ code: ZodError_js_1.ZodIssueCode.invalid_date,
1537
+ });
1538
+ return parseUtil_js_1.INVALID;
1539
+ }
1540
+ const status = new parseUtil_js_1.ParseStatus();
1541
+ let ctx = undefined;
1542
+ for (const check of this._def.checks) {
1543
+ if (check.kind === "min") {
1544
+ if (input.data.getTime() < check.value) {
1545
+ ctx = this._getOrReturnCtx(input, ctx);
1546
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1547
+ code: ZodError_js_1.ZodIssueCode.too_small,
1548
+ message: check.message,
1549
+ inclusive: true,
1550
+ exact: false,
1551
+ minimum: check.value,
1552
+ type: "date",
1553
+ });
1554
+ status.dirty();
1555
+ }
1556
+ }
1557
+ else if (check.kind === "max") {
1558
+ if (input.data.getTime() > check.value) {
1559
+ ctx = this._getOrReturnCtx(input, ctx);
1560
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1561
+ code: ZodError_js_1.ZodIssueCode.too_big,
1562
+ message: check.message,
1563
+ inclusive: true,
1564
+ exact: false,
1565
+ maximum: check.value,
1566
+ type: "date",
1567
+ });
1568
+ status.dirty();
1569
+ }
1570
+ }
1571
+ else {
1572
+ util_js_1.util.assertNever(check);
1573
+ }
1574
+ }
1575
+ return {
1576
+ status: status.value,
1577
+ value: new Date(input.data.getTime()),
1578
+ };
1579
+ }
1580
+ _addCheck(check) {
1581
+ return new ZodDate({
1582
+ ...this._def,
1583
+ checks: [...this._def.checks, check],
1584
+ });
1585
+ }
1586
+ min(minDate, message) {
1587
+ return this._addCheck({
1588
+ kind: "min",
1589
+ value: minDate.getTime(),
1590
+ message: errorUtil_js_1.errorUtil.toString(message),
1591
+ });
1592
+ }
1593
+ max(maxDate, message) {
1594
+ return this._addCheck({
1595
+ kind: "max",
1596
+ value: maxDate.getTime(),
1597
+ message: errorUtil_js_1.errorUtil.toString(message),
1598
+ });
1599
+ }
1600
+ get minDate() {
1601
+ let min = null;
1602
+ for (const ch of this._def.checks) {
1603
+ if (ch.kind === "min") {
1604
+ if (min === null || ch.value > min)
1605
+ min = ch.value;
1606
+ }
1607
+ }
1608
+ return min != null ? new Date(min) : null;
1609
+ }
1610
+ get maxDate() {
1611
+ let max = null;
1612
+ for (const ch of this._def.checks) {
1613
+ if (ch.kind === "max") {
1614
+ if (max === null || ch.value < max)
1615
+ max = ch.value;
1616
+ }
1617
+ }
1618
+ return max != null ? new Date(max) : null;
1619
+ }
1620
+ }
1621
+ exports.ZodDate = ZodDate;
1622
+ ZodDate.create = (params) => {
1623
+ return new ZodDate({
1624
+ checks: [],
1625
+ coerce: params?.coerce || false,
1626
+ typeName: ZodFirstPartyTypeKind.ZodDate,
1627
+ ...processCreateParams(params),
1628
+ });
1629
+ };
1630
+ class ZodSymbol extends ZodType {
1631
+ _parse(input) {
1632
+ const parsedType = this._getType(input);
1633
+ if (parsedType !== util_js_1.ZodParsedType.symbol) {
1634
+ const ctx = this._getOrReturnCtx(input);
1635
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1636
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1637
+ expected: util_js_1.ZodParsedType.symbol,
1638
+ received: ctx.parsedType,
1639
+ });
1640
+ return parseUtil_js_1.INVALID;
1641
+ }
1642
+ return (0, parseUtil_js_1.OK)(input.data);
1643
+ }
1644
+ }
1645
+ exports.ZodSymbol = ZodSymbol;
1646
+ ZodSymbol.create = (params) => {
1647
+ return new ZodSymbol({
1648
+ typeName: ZodFirstPartyTypeKind.ZodSymbol,
1649
+ ...processCreateParams(params),
1650
+ });
1651
+ };
1652
+ class ZodUndefined extends ZodType {
1653
+ _parse(input) {
1654
+ const parsedType = this._getType(input);
1655
+ if (parsedType !== util_js_1.ZodParsedType.undefined) {
1656
+ const ctx = this._getOrReturnCtx(input);
1657
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1658
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1659
+ expected: util_js_1.ZodParsedType.undefined,
1660
+ received: ctx.parsedType,
1661
+ });
1662
+ return parseUtil_js_1.INVALID;
1663
+ }
1664
+ return (0, parseUtil_js_1.OK)(input.data);
1665
+ }
1666
+ }
1667
+ exports.ZodUndefined = ZodUndefined;
1668
+ ZodUndefined.create = (params) => {
1669
+ return new ZodUndefined({
1670
+ typeName: ZodFirstPartyTypeKind.ZodUndefined,
1671
+ ...processCreateParams(params),
1672
+ });
1673
+ };
1674
+ class ZodNull extends ZodType {
1675
+ _parse(input) {
1676
+ const parsedType = this._getType(input);
1677
+ if (parsedType !== util_js_1.ZodParsedType.null) {
1678
+ const ctx = this._getOrReturnCtx(input);
1679
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1680
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1681
+ expected: util_js_1.ZodParsedType.null,
1682
+ received: ctx.parsedType,
1683
+ });
1684
+ return parseUtil_js_1.INVALID;
1685
+ }
1686
+ return (0, parseUtil_js_1.OK)(input.data);
1687
+ }
1688
+ }
1689
+ exports.ZodNull = ZodNull;
1690
+ ZodNull.create = (params) => {
1691
+ return new ZodNull({
1692
+ typeName: ZodFirstPartyTypeKind.ZodNull,
1693
+ ...processCreateParams(params),
1694
+ });
1695
+ };
1696
+ class ZodAny extends ZodType {
1697
+ constructor() {
1698
+ super(...arguments);
1699
+ // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
1700
+ this._any = true;
1701
+ }
1702
+ _parse(input) {
1703
+ return (0, parseUtil_js_1.OK)(input.data);
1704
+ }
1705
+ }
1706
+ exports.ZodAny = ZodAny;
1707
+ ZodAny.create = (params) => {
1708
+ return new ZodAny({
1709
+ typeName: ZodFirstPartyTypeKind.ZodAny,
1710
+ ...processCreateParams(params),
1711
+ });
1712
+ };
1713
+ class ZodUnknown extends ZodType {
1714
+ constructor() {
1715
+ super(...arguments);
1716
+ // required
1717
+ this._unknown = true;
1718
+ }
1719
+ _parse(input) {
1720
+ return (0, parseUtil_js_1.OK)(input.data);
1721
+ }
1722
+ }
1723
+ exports.ZodUnknown = ZodUnknown;
1724
+ ZodUnknown.create = (params) => {
1725
+ return new ZodUnknown({
1726
+ typeName: ZodFirstPartyTypeKind.ZodUnknown,
1727
+ ...processCreateParams(params),
1728
+ });
1729
+ };
1730
+ class ZodNever extends ZodType {
1731
+ _parse(input) {
1732
+ const ctx = this._getOrReturnCtx(input);
1733
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1734
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1735
+ expected: util_js_1.ZodParsedType.never,
1736
+ received: ctx.parsedType,
1737
+ });
1738
+ return parseUtil_js_1.INVALID;
1739
+ }
1740
+ }
1741
+ exports.ZodNever = ZodNever;
1742
+ ZodNever.create = (params) => {
1743
+ return new ZodNever({
1744
+ typeName: ZodFirstPartyTypeKind.ZodNever,
1745
+ ...processCreateParams(params),
1746
+ });
1747
+ };
1748
+ class ZodVoid extends ZodType {
1749
+ _parse(input) {
1750
+ const parsedType = this._getType(input);
1751
+ if (parsedType !== util_js_1.ZodParsedType.undefined) {
1752
+ const ctx = this._getOrReturnCtx(input);
1753
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1754
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1755
+ expected: util_js_1.ZodParsedType.void,
1756
+ received: ctx.parsedType,
1757
+ });
1758
+ return parseUtil_js_1.INVALID;
1759
+ }
1760
+ return (0, parseUtil_js_1.OK)(input.data);
1761
+ }
1762
+ }
1763
+ exports.ZodVoid = ZodVoid;
1764
+ ZodVoid.create = (params) => {
1765
+ return new ZodVoid({
1766
+ typeName: ZodFirstPartyTypeKind.ZodVoid,
1767
+ ...processCreateParams(params),
1768
+ });
1769
+ };
1770
+ class ZodArray extends ZodType {
1771
+ _parse(input) {
1772
+ const { ctx, status } = this._processInputParams(input);
1773
+ const def = this._def;
1774
+ if (ctx.parsedType !== util_js_1.ZodParsedType.array) {
1775
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1776
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1777
+ expected: util_js_1.ZodParsedType.array,
1778
+ received: ctx.parsedType,
1779
+ });
1780
+ return parseUtil_js_1.INVALID;
1781
+ }
1782
+ if (def.exactLength !== null) {
1783
+ const tooBig = ctx.data.length > def.exactLength.value;
1784
+ const tooSmall = ctx.data.length < def.exactLength.value;
1785
+ if (tooBig || tooSmall) {
1786
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1787
+ code: tooBig ? ZodError_js_1.ZodIssueCode.too_big : ZodError_js_1.ZodIssueCode.too_small,
1788
+ minimum: (tooSmall ? def.exactLength.value : undefined),
1789
+ maximum: (tooBig ? def.exactLength.value : undefined),
1790
+ type: "array",
1791
+ inclusive: true,
1792
+ exact: true,
1793
+ message: def.exactLength.message,
1794
+ });
1795
+ status.dirty();
1796
+ }
1797
+ }
1798
+ if (def.minLength !== null) {
1799
+ if (ctx.data.length < def.minLength.value) {
1800
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1801
+ code: ZodError_js_1.ZodIssueCode.too_small,
1802
+ minimum: def.minLength.value,
1803
+ type: "array",
1804
+ inclusive: true,
1805
+ exact: false,
1806
+ message: def.minLength.message,
1807
+ });
1808
+ status.dirty();
1809
+ }
1810
+ }
1811
+ if (def.maxLength !== null) {
1812
+ if (ctx.data.length > def.maxLength.value) {
1813
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1814
+ code: ZodError_js_1.ZodIssueCode.too_big,
1815
+ maximum: def.maxLength.value,
1816
+ type: "array",
1817
+ inclusive: true,
1818
+ exact: false,
1819
+ message: def.maxLength.message,
1820
+ });
1821
+ status.dirty();
1822
+ }
1823
+ }
1824
+ if (ctx.common.async) {
1825
+ return Promise.all([...ctx.data].map((item, i) => {
1826
+ return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1827
+ })).then((result) => {
1828
+ return parseUtil_js_1.ParseStatus.mergeArray(status, result);
1829
+ });
1830
+ }
1831
+ const result = [...ctx.data].map((item, i) => {
1832
+ return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1833
+ });
1834
+ return parseUtil_js_1.ParseStatus.mergeArray(status, result);
1835
+ }
1836
+ get element() {
1837
+ return this._def.type;
1838
+ }
1839
+ min(minLength, message) {
1840
+ return new ZodArray({
1841
+ ...this._def,
1842
+ minLength: { value: minLength, message: errorUtil_js_1.errorUtil.toString(message) },
1843
+ });
1844
+ }
1845
+ max(maxLength, message) {
1846
+ return new ZodArray({
1847
+ ...this._def,
1848
+ maxLength: { value: maxLength, message: errorUtil_js_1.errorUtil.toString(message) },
1849
+ });
1850
+ }
1851
+ length(len, message) {
1852
+ return new ZodArray({
1853
+ ...this._def,
1854
+ exactLength: { value: len, message: errorUtil_js_1.errorUtil.toString(message) },
1855
+ });
1856
+ }
1857
+ nonempty(message) {
1858
+ return this.min(1, message);
1859
+ }
1860
+ }
1861
+ exports.ZodArray = ZodArray;
1862
+ ZodArray.create = (schema, params) => {
1863
+ return new ZodArray({
1864
+ type: schema,
1865
+ minLength: null,
1866
+ maxLength: null,
1867
+ exactLength: null,
1868
+ typeName: ZodFirstPartyTypeKind.ZodArray,
1869
+ ...processCreateParams(params),
1870
+ });
1871
+ };
1872
+ function deepPartialify(schema) {
1873
+ if (schema instanceof ZodObject) {
1874
+ const newShape = {};
1875
+ for (const key in schema.shape) {
1876
+ const fieldSchema = schema.shape[key];
1877
+ newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
1878
+ }
1879
+ return new ZodObject({
1880
+ ...schema._def,
1881
+ shape: () => newShape,
1882
+ });
1883
+ }
1884
+ else if (schema instanceof ZodArray) {
1885
+ return new ZodArray({
1886
+ ...schema._def,
1887
+ type: deepPartialify(schema.element),
1888
+ });
1889
+ }
1890
+ else if (schema instanceof ZodOptional) {
1891
+ return ZodOptional.create(deepPartialify(schema.unwrap()));
1892
+ }
1893
+ else if (schema instanceof ZodNullable) {
1894
+ return ZodNullable.create(deepPartialify(schema.unwrap()));
1895
+ }
1896
+ else if (schema instanceof ZodTuple) {
1897
+ return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
1898
+ }
1899
+ else {
1900
+ return schema;
1901
+ }
1902
+ }
1903
+ class ZodObject extends ZodType {
1904
+ constructor() {
1905
+ super(...arguments);
1906
+ this._cached = null;
1907
+ /**
1908
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1909
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
1910
+ */
1911
+ this.nonstrict = this.passthrough;
1912
+ // extend<
1913
+ // Augmentation extends ZodRawShape,
1914
+ // NewOutput extends util.flatten<{
1915
+ // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1916
+ // ? Augmentation[k]["_output"]
1917
+ // : k extends keyof Output
1918
+ // ? Output[k]
1919
+ // : never;
1920
+ // }>,
1921
+ // NewInput extends util.flatten<{
1922
+ // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1923
+ // ? Augmentation[k]["_input"]
1924
+ // : k extends keyof Input
1925
+ // ? Input[k]
1926
+ // : never;
1927
+ // }>
1928
+ // >(
1929
+ // augmentation: Augmentation
1930
+ // ): ZodObject<
1931
+ // extendShape<T, Augmentation>,
1932
+ // UnknownKeys,
1933
+ // Catchall,
1934
+ // NewOutput,
1935
+ // NewInput
1936
+ // > {
1937
+ // return new ZodObject({
1938
+ // ...this._def,
1939
+ // shape: () => ({
1940
+ // ...this._def.shape(),
1941
+ // ...augmentation,
1942
+ // }),
1943
+ // }) as any;
1944
+ // }
1945
+ /**
1946
+ * @deprecated Use `.extend` instead
1947
+ * */
1948
+ this.augment = this.extend;
1949
+ }
1950
+ _getCached() {
1951
+ if (this._cached !== null)
1952
+ return this._cached;
1953
+ const shape = this._def.shape();
1954
+ const keys = util_js_1.util.objectKeys(shape);
1955
+ this._cached = { shape, keys };
1956
+ return this._cached;
1957
+ }
1958
+ _parse(input) {
1959
+ const parsedType = this._getType(input);
1960
+ if (parsedType !== util_js_1.ZodParsedType.object) {
1961
+ const ctx = this._getOrReturnCtx(input);
1962
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
1963
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
1964
+ expected: util_js_1.ZodParsedType.object,
1965
+ received: ctx.parsedType,
1966
+ });
1967
+ return parseUtil_js_1.INVALID;
1968
+ }
1969
+ const { status, ctx } = this._processInputParams(input);
1970
+ const { shape, keys: shapeKeys } = this._getCached();
1971
+ const extraKeys = [];
1972
+ if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
1973
+ for (const key in ctx.data) {
1974
+ if (!shapeKeys.includes(key)) {
1975
+ extraKeys.push(key);
1976
+ }
1977
+ }
1978
+ }
1979
+ const pairs = [];
1980
+ for (const key of shapeKeys) {
1981
+ const keyValidator = shape[key];
1982
+ const value = ctx.data[key];
1983
+ pairs.push({
1984
+ key: { status: "valid", value: key },
1985
+ value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1986
+ alwaysSet: key in ctx.data,
1987
+ });
1988
+ }
1989
+ if (this._def.catchall instanceof ZodNever) {
1990
+ const unknownKeys = this._def.unknownKeys;
1991
+ if (unknownKeys === "passthrough") {
1992
+ for (const key of extraKeys) {
1993
+ pairs.push({
1994
+ key: { status: "valid", value: key },
1995
+ value: { status: "valid", value: ctx.data[key] },
1996
+ });
1997
+ }
1998
+ }
1999
+ else if (unknownKeys === "strict") {
2000
+ if (extraKeys.length > 0) {
2001
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2002
+ code: ZodError_js_1.ZodIssueCode.unrecognized_keys,
2003
+ keys: extraKeys,
2004
+ });
2005
+ status.dirty();
2006
+ }
2007
+ }
2008
+ else if (unknownKeys === "strip") {
2009
+ }
2010
+ else {
2011
+ throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2012
+ }
2013
+ }
2014
+ else {
2015
+ // run catchall validation
2016
+ const catchall = this._def.catchall;
2017
+ for (const key of extraKeys) {
2018
+ const value = ctx.data[key];
2019
+ pairs.push({
2020
+ key: { status: "valid", value: key },
2021
+ value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
2022
+ ),
2023
+ alwaysSet: key in ctx.data,
2024
+ });
2025
+ }
2026
+ }
2027
+ if (ctx.common.async) {
2028
+ return Promise.resolve()
2029
+ .then(async () => {
2030
+ const syncPairs = [];
2031
+ for (const pair of pairs) {
2032
+ const key = await pair.key;
2033
+ const value = await pair.value;
2034
+ syncPairs.push({
2035
+ key,
2036
+ value,
2037
+ alwaysSet: pair.alwaysSet,
2038
+ });
2039
+ }
2040
+ return syncPairs;
2041
+ })
2042
+ .then((syncPairs) => {
2043
+ return parseUtil_js_1.ParseStatus.mergeObjectSync(status, syncPairs);
2044
+ });
2045
+ }
2046
+ else {
2047
+ return parseUtil_js_1.ParseStatus.mergeObjectSync(status, pairs);
2048
+ }
2049
+ }
2050
+ get shape() {
2051
+ return this._def.shape();
2052
+ }
2053
+ strict(message) {
2054
+ errorUtil_js_1.errorUtil.errToObj;
2055
+ return new ZodObject({
2056
+ ...this._def,
2057
+ unknownKeys: "strict",
2058
+ ...(message !== undefined
2059
+ ? {
2060
+ errorMap: (issue, ctx) => {
2061
+ const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
2062
+ if (issue.code === "unrecognized_keys")
2063
+ return {
2064
+ message: errorUtil_js_1.errorUtil.errToObj(message).message ?? defaultError,
2065
+ };
2066
+ return {
2067
+ message: defaultError,
2068
+ };
2069
+ },
2070
+ }
2071
+ : {}),
2072
+ });
2073
+ }
2074
+ strip() {
2075
+ return new ZodObject({
2076
+ ...this._def,
2077
+ unknownKeys: "strip",
2078
+ });
2079
+ }
2080
+ passthrough() {
2081
+ return new ZodObject({
2082
+ ...this._def,
2083
+ unknownKeys: "passthrough",
2084
+ });
2085
+ }
2086
+ // const AugmentFactory =
2087
+ // <Def extends ZodObjectDef>(def: Def) =>
2088
+ // <Augmentation extends ZodRawShape>(
2089
+ // augmentation: Augmentation
2090
+ // ): ZodObject<
2091
+ // extendShape<ReturnType<Def["shape"]>, Augmentation>,
2092
+ // Def["unknownKeys"],
2093
+ // Def["catchall"]
2094
+ // > => {
2095
+ // return new ZodObject({
2096
+ // ...def,
2097
+ // shape: () => ({
2098
+ // ...def.shape(),
2099
+ // ...augmentation,
2100
+ // }),
2101
+ // }) as any;
2102
+ // };
2103
+ extend(augmentation) {
2104
+ return new ZodObject({
2105
+ ...this._def,
2106
+ shape: () => ({
2107
+ ...this._def.shape(),
2108
+ ...augmentation,
2109
+ }),
2110
+ });
2111
+ }
2112
+ /**
2113
+ * Prior to zod@1.0.12 there was a bug in the
2114
+ * inferred type of merged objects. Please
2115
+ * upgrade if you are experiencing issues.
2116
+ */
2117
+ merge(merging) {
2118
+ const merged = new ZodObject({
2119
+ unknownKeys: merging._def.unknownKeys,
2120
+ catchall: merging._def.catchall,
2121
+ shape: () => ({
2122
+ ...this._def.shape(),
2123
+ ...merging._def.shape(),
2124
+ }),
2125
+ typeName: ZodFirstPartyTypeKind.ZodObject,
2126
+ });
2127
+ return merged;
2128
+ }
2129
+ // merge<
2130
+ // Incoming extends AnyZodObject,
2131
+ // Augmentation extends Incoming["shape"],
2132
+ // NewOutput extends {
2133
+ // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2134
+ // ? Augmentation[k]["_output"]
2135
+ // : k extends keyof Output
2136
+ // ? Output[k]
2137
+ // : never;
2138
+ // },
2139
+ // NewInput extends {
2140
+ // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2141
+ // ? Augmentation[k]["_input"]
2142
+ // : k extends keyof Input
2143
+ // ? Input[k]
2144
+ // : never;
2145
+ // }
2146
+ // >(
2147
+ // merging: Incoming
2148
+ // ): ZodObject<
2149
+ // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2150
+ // Incoming["_def"]["unknownKeys"],
2151
+ // Incoming["_def"]["catchall"],
2152
+ // NewOutput,
2153
+ // NewInput
2154
+ // > {
2155
+ // const merged: any = new ZodObject({
2156
+ // unknownKeys: merging._def.unknownKeys,
2157
+ // catchall: merging._def.catchall,
2158
+ // shape: () =>
2159
+ // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2160
+ // typeName: ZodFirstPartyTypeKind.ZodObject,
2161
+ // }) as any;
2162
+ // return merged;
2163
+ // }
2164
+ setKey(key, schema) {
2165
+ return this.augment({ [key]: schema });
2166
+ }
2167
+ // merge<Incoming extends AnyZodObject>(
2168
+ // merging: Incoming
2169
+ // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2170
+ // ZodObject<
2171
+ // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2172
+ // Incoming["_def"]["unknownKeys"],
2173
+ // Incoming["_def"]["catchall"]
2174
+ // > {
2175
+ // // const mergedShape = objectUtil.mergeShapes(
2176
+ // // this._def.shape(),
2177
+ // // merging._def.shape()
2178
+ // // );
2179
+ // const merged: any = new ZodObject({
2180
+ // unknownKeys: merging._def.unknownKeys,
2181
+ // catchall: merging._def.catchall,
2182
+ // shape: () =>
2183
+ // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2184
+ // typeName: ZodFirstPartyTypeKind.ZodObject,
2185
+ // }) as any;
2186
+ // return merged;
2187
+ // }
2188
+ catchall(index) {
2189
+ return new ZodObject({
2190
+ ...this._def,
2191
+ catchall: index,
2192
+ });
2193
+ }
2194
+ pick(mask) {
2195
+ const shape = {};
2196
+ for (const key of util_js_1.util.objectKeys(mask)) {
2197
+ if (mask[key] && this.shape[key]) {
2198
+ shape[key] = this.shape[key];
2199
+ }
2200
+ }
2201
+ return new ZodObject({
2202
+ ...this._def,
2203
+ shape: () => shape,
2204
+ });
2205
+ }
2206
+ omit(mask) {
2207
+ const shape = {};
2208
+ for (const key of util_js_1.util.objectKeys(this.shape)) {
2209
+ if (!mask[key]) {
2210
+ shape[key] = this.shape[key];
2211
+ }
2212
+ }
2213
+ return new ZodObject({
2214
+ ...this._def,
2215
+ shape: () => shape,
2216
+ });
2217
+ }
2218
+ /**
2219
+ * @deprecated
2220
+ */
2221
+ deepPartial() {
2222
+ return deepPartialify(this);
2223
+ }
2224
+ partial(mask) {
2225
+ const newShape = {};
2226
+ for (const key of util_js_1.util.objectKeys(this.shape)) {
2227
+ const fieldSchema = this.shape[key];
2228
+ if (mask && !mask[key]) {
2229
+ newShape[key] = fieldSchema;
2230
+ }
2231
+ else {
2232
+ newShape[key] = fieldSchema.optional();
2233
+ }
2234
+ }
2235
+ return new ZodObject({
2236
+ ...this._def,
2237
+ shape: () => newShape,
2238
+ });
2239
+ }
2240
+ required(mask) {
2241
+ const newShape = {};
2242
+ for (const key of util_js_1.util.objectKeys(this.shape)) {
2243
+ if (mask && !mask[key]) {
2244
+ newShape[key] = this.shape[key];
2245
+ }
2246
+ else {
2247
+ const fieldSchema = this.shape[key];
2248
+ let newField = fieldSchema;
2249
+ while (newField instanceof ZodOptional) {
2250
+ newField = newField._def.innerType;
2251
+ }
2252
+ newShape[key] = newField;
2253
+ }
2254
+ }
2255
+ return new ZodObject({
2256
+ ...this._def,
2257
+ shape: () => newShape,
2258
+ });
2259
+ }
2260
+ keyof() {
2261
+ return createZodEnum(util_js_1.util.objectKeys(this.shape));
2262
+ }
2263
+ }
2264
+ exports.ZodObject = ZodObject;
2265
+ ZodObject.create = (shape, params) => {
2266
+ return new ZodObject({
2267
+ shape: () => shape,
2268
+ unknownKeys: "strip",
2269
+ catchall: ZodNever.create(),
2270
+ typeName: ZodFirstPartyTypeKind.ZodObject,
2271
+ ...processCreateParams(params),
2272
+ });
2273
+ };
2274
+ ZodObject.strictCreate = (shape, params) => {
2275
+ return new ZodObject({
2276
+ shape: () => shape,
2277
+ unknownKeys: "strict",
2278
+ catchall: ZodNever.create(),
2279
+ typeName: ZodFirstPartyTypeKind.ZodObject,
2280
+ ...processCreateParams(params),
2281
+ });
2282
+ };
2283
+ ZodObject.lazycreate = (shape, params) => {
2284
+ return new ZodObject({
2285
+ shape,
2286
+ unknownKeys: "strip",
2287
+ catchall: ZodNever.create(),
2288
+ typeName: ZodFirstPartyTypeKind.ZodObject,
2289
+ ...processCreateParams(params),
2290
+ });
2291
+ };
2292
+ class ZodUnion extends ZodType {
2293
+ _parse(input) {
2294
+ const { ctx } = this._processInputParams(input);
2295
+ const options = this._def.options;
2296
+ function handleResults(results) {
2297
+ // return first issue-free validation if it exists
2298
+ for (const result of results) {
2299
+ if (result.result.status === "valid") {
2300
+ return result.result;
2301
+ }
2302
+ }
2303
+ for (const result of results) {
2304
+ if (result.result.status === "dirty") {
2305
+ // add issues from dirty option
2306
+ ctx.common.issues.push(...result.ctx.common.issues);
2307
+ return result.result;
2308
+ }
2309
+ }
2310
+ // return invalid
2311
+ const unionErrors = results.map((result) => new ZodError_js_1.ZodError(result.ctx.common.issues));
2312
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2313
+ code: ZodError_js_1.ZodIssueCode.invalid_union,
2314
+ unionErrors,
2315
+ });
2316
+ return parseUtil_js_1.INVALID;
2317
+ }
2318
+ if (ctx.common.async) {
2319
+ return Promise.all(options.map(async (option) => {
2320
+ const childCtx = {
2321
+ ...ctx,
2322
+ common: {
2323
+ ...ctx.common,
2324
+ issues: [],
2325
+ },
2326
+ parent: null,
2327
+ };
2328
+ return {
2329
+ result: await option._parseAsync({
2330
+ data: ctx.data,
2331
+ path: ctx.path,
2332
+ parent: childCtx,
2333
+ }),
2334
+ ctx: childCtx,
2335
+ };
2336
+ })).then(handleResults);
2337
+ }
2338
+ else {
2339
+ let dirty = undefined;
2340
+ const issues = [];
2341
+ for (const option of options) {
2342
+ const childCtx = {
2343
+ ...ctx,
2344
+ common: {
2345
+ ...ctx.common,
2346
+ issues: [],
2347
+ },
2348
+ parent: null,
2349
+ };
2350
+ const result = option._parseSync({
2351
+ data: ctx.data,
2352
+ path: ctx.path,
2353
+ parent: childCtx,
2354
+ });
2355
+ if (result.status === "valid") {
2356
+ return result;
2357
+ }
2358
+ else if (result.status === "dirty" && !dirty) {
2359
+ dirty = { result, ctx: childCtx };
2360
+ }
2361
+ if (childCtx.common.issues.length) {
2362
+ issues.push(childCtx.common.issues);
2363
+ }
2364
+ }
2365
+ if (dirty) {
2366
+ ctx.common.issues.push(...dirty.ctx.common.issues);
2367
+ return dirty.result;
2368
+ }
2369
+ const unionErrors = issues.map((issues) => new ZodError_js_1.ZodError(issues));
2370
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2371
+ code: ZodError_js_1.ZodIssueCode.invalid_union,
2372
+ unionErrors,
2373
+ });
2374
+ return parseUtil_js_1.INVALID;
2375
+ }
2376
+ }
2377
+ get options() {
2378
+ return this._def.options;
2379
+ }
2380
+ }
2381
+ exports.ZodUnion = ZodUnion;
2382
+ ZodUnion.create = (types, params) => {
2383
+ return new ZodUnion({
2384
+ options: types,
2385
+ typeName: ZodFirstPartyTypeKind.ZodUnion,
2386
+ ...processCreateParams(params),
2387
+ });
2388
+ };
2389
+ /////////////////////////////////////////////////////
2390
+ /////////////////////////////////////////////////////
2391
+ ////////// //////////
2392
+ ////////// ZodDiscriminatedUnion //////////
2393
+ ////////// //////////
2394
+ /////////////////////////////////////////////////////
2395
+ /////////////////////////////////////////////////////
2396
+ const getDiscriminator = (type) => {
2397
+ if (type instanceof ZodLazy) {
2398
+ return getDiscriminator(type.schema);
2399
+ }
2400
+ else if (type instanceof ZodEffects) {
2401
+ return getDiscriminator(type.innerType());
2402
+ }
2403
+ else if (type instanceof ZodLiteral) {
2404
+ return [type.value];
2405
+ }
2406
+ else if (type instanceof ZodEnum) {
2407
+ return type.options;
2408
+ }
2409
+ else if (type instanceof ZodNativeEnum) {
2410
+ // eslint-disable-next-line ban/ban
2411
+ return util_js_1.util.objectValues(type.enum);
2412
+ }
2413
+ else if (type instanceof ZodDefault) {
2414
+ return getDiscriminator(type._def.innerType);
2415
+ }
2416
+ else if (type instanceof ZodUndefined) {
2417
+ return [undefined];
2418
+ }
2419
+ else if (type instanceof ZodNull) {
2420
+ return [null];
2421
+ }
2422
+ else if (type instanceof ZodOptional) {
2423
+ return [undefined, ...getDiscriminator(type.unwrap())];
2424
+ }
2425
+ else if (type instanceof ZodNullable) {
2426
+ return [null, ...getDiscriminator(type.unwrap())];
2427
+ }
2428
+ else if (type instanceof ZodBranded) {
2429
+ return getDiscriminator(type.unwrap());
2430
+ }
2431
+ else if (type instanceof ZodReadonly) {
2432
+ return getDiscriminator(type.unwrap());
2433
+ }
2434
+ else if (type instanceof ZodCatch) {
2435
+ return getDiscriminator(type._def.innerType);
2436
+ }
2437
+ else {
2438
+ return [];
2439
+ }
2440
+ };
2441
+ class ZodDiscriminatedUnion extends ZodType {
2442
+ _parse(input) {
2443
+ const { ctx } = this._processInputParams(input);
2444
+ if (ctx.parsedType !== util_js_1.ZodParsedType.object) {
2445
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2446
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
2447
+ expected: util_js_1.ZodParsedType.object,
2448
+ received: ctx.parsedType,
2449
+ });
2450
+ return parseUtil_js_1.INVALID;
2451
+ }
2452
+ const discriminator = this.discriminator;
2453
+ const discriminatorValue = ctx.data[discriminator];
2454
+ const option = this.optionsMap.get(discriminatorValue);
2455
+ if (!option) {
2456
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2457
+ code: ZodError_js_1.ZodIssueCode.invalid_union_discriminator,
2458
+ options: Array.from(this.optionsMap.keys()),
2459
+ path: [discriminator],
2460
+ });
2461
+ return parseUtil_js_1.INVALID;
2462
+ }
2463
+ if (ctx.common.async) {
2464
+ return option._parseAsync({
2465
+ data: ctx.data,
2466
+ path: ctx.path,
2467
+ parent: ctx,
2468
+ });
2469
+ }
2470
+ else {
2471
+ return option._parseSync({
2472
+ data: ctx.data,
2473
+ path: ctx.path,
2474
+ parent: ctx,
2475
+ });
2476
+ }
2477
+ }
2478
+ get discriminator() {
2479
+ return this._def.discriminator;
2480
+ }
2481
+ get options() {
2482
+ return this._def.options;
2483
+ }
2484
+ get optionsMap() {
2485
+ return this._def.optionsMap;
2486
+ }
2487
+ /**
2488
+ * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2489
+ * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2490
+ * have a different value for each object in the union.
2491
+ * @param discriminator the name of the discriminator property
2492
+ * @param types an array of object schemas
2493
+ * @param params
2494
+ */
2495
+ static create(discriminator, options, params) {
2496
+ // Get all the valid discriminator values
2497
+ const optionsMap = new Map();
2498
+ // try {
2499
+ for (const type of options) {
2500
+ const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2501
+ if (!discriminatorValues.length) {
2502
+ throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2503
+ }
2504
+ for (const value of discriminatorValues) {
2505
+ if (optionsMap.has(value)) {
2506
+ throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2507
+ }
2508
+ optionsMap.set(value, type);
2509
+ }
2510
+ }
2511
+ return new ZodDiscriminatedUnion({
2512
+ typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2513
+ discriminator,
2514
+ options,
2515
+ optionsMap,
2516
+ ...processCreateParams(params),
2517
+ });
2518
+ }
2519
+ }
2520
+ exports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;
2521
+ function mergeValues(a, b) {
2522
+ const aType = (0, util_js_1.getParsedType)(a);
2523
+ const bType = (0, util_js_1.getParsedType)(b);
2524
+ if (a === b) {
2525
+ return { valid: true, data: a };
2526
+ }
2527
+ else if (aType === util_js_1.ZodParsedType.object && bType === util_js_1.ZodParsedType.object) {
2528
+ const bKeys = util_js_1.util.objectKeys(b);
2529
+ const sharedKeys = util_js_1.util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2530
+ const newObj = { ...a, ...b };
2531
+ if (Object.prototype.hasOwnProperty.call(newObj, "__proto__"))
2532
+ delete newObj.__proto__;
2533
+ for (const key of sharedKeys) {
2534
+ if (key === "__proto__")
2535
+ continue;
2536
+ const sharedValue = mergeValues(a[key], b[key]);
2537
+ if (!sharedValue.valid) {
2538
+ return { valid: false };
2539
+ }
2540
+ newObj[key] = sharedValue.data;
2541
+ }
2542
+ return { valid: true, data: newObj };
2543
+ }
2544
+ else if (aType === util_js_1.ZodParsedType.array && bType === util_js_1.ZodParsedType.array) {
2545
+ if (a.length !== b.length) {
2546
+ return { valid: false };
2547
+ }
2548
+ const newArray = [];
2549
+ for (let index = 0; index < a.length; index++) {
2550
+ const itemA = a[index];
2551
+ const itemB = b[index];
2552
+ const sharedValue = mergeValues(itemA, itemB);
2553
+ if (!sharedValue.valid) {
2554
+ return { valid: false };
2555
+ }
2556
+ newArray.push(sharedValue.data);
2557
+ }
2558
+ return { valid: true, data: newArray };
2559
+ }
2560
+ else if (aType === util_js_1.ZodParsedType.date && bType === util_js_1.ZodParsedType.date && +a === +b) {
2561
+ return { valid: true, data: a };
2562
+ }
2563
+ else {
2564
+ return { valid: false };
2565
+ }
2566
+ }
2567
+ class ZodIntersection extends ZodType {
2568
+ _parse(input) {
2569
+ const { status, ctx } = this._processInputParams(input);
2570
+ const handleParsed = (parsedLeft, parsedRight) => {
2571
+ if ((0, parseUtil_js_1.isAborted)(parsedLeft) || (0, parseUtil_js_1.isAborted)(parsedRight)) {
2572
+ return parseUtil_js_1.INVALID;
2573
+ }
2574
+ const merged = mergeValues(parsedLeft.value, parsedRight.value);
2575
+ if (!merged.valid) {
2576
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2577
+ code: ZodError_js_1.ZodIssueCode.invalid_intersection_types,
2578
+ });
2579
+ return parseUtil_js_1.INVALID;
2580
+ }
2581
+ if ((0, parseUtil_js_1.isDirty)(parsedLeft) || (0, parseUtil_js_1.isDirty)(parsedRight)) {
2582
+ status.dirty();
2583
+ }
2584
+ return { status: status.value, value: merged.data };
2585
+ };
2586
+ if (ctx.common.async) {
2587
+ return Promise.all([
2588
+ this._def.left._parseAsync({
2589
+ data: ctx.data,
2590
+ path: ctx.path,
2591
+ parent: ctx,
2592
+ }),
2593
+ this._def.right._parseAsync({
2594
+ data: ctx.data,
2595
+ path: ctx.path,
2596
+ parent: ctx,
2597
+ }),
2598
+ ]).then(([left, right]) => handleParsed(left, right));
2599
+ }
2600
+ else {
2601
+ return handleParsed(this._def.left._parseSync({
2602
+ data: ctx.data,
2603
+ path: ctx.path,
2604
+ parent: ctx,
2605
+ }), this._def.right._parseSync({
2606
+ data: ctx.data,
2607
+ path: ctx.path,
2608
+ parent: ctx,
2609
+ }));
2610
+ }
2611
+ }
2612
+ }
2613
+ exports.ZodIntersection = ZodIntersection;
2614
+ ZodIntersection.create = (left, right, params) => {
2615
+ return new ZodIntersection({
2616
+ left: left,
2617
+ right: right,
2618
+ typeName: ZodFirstPartyTypeKind.ZodIntersection,
2619
+ ...processCreateParams(params),
2620
+ });
2621
+ };
2622
+ // type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
2623
+ class ZodTuple extends ZodType {
2624
+ _parse(input) {
2625
+ const { status, ctx } = this._processInputParams(input);
2626
+ if (ctx.parsedType !== util_js_1.ZodParsedType.array) {
2627
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2628
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
2629
+ expected: util_js_1.ZodParsedType.array,
2630
+ received: ctx.parsedType,
2631
+ });
2632
+ return parseUtil_js_1.INVALID;
2633
+ }
2634
+ if (ctx.data.length < this._def.items.length) {
2635
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2636
+ code: ZodError_js_1.ZodIssueCode.too_small,
2637
+ minimum: this._def.items.length,
2638
+ inclusive: true,
2639
+ exact: false,
2640
+ type: "array",
2641
+ });
2642
+ return parseUtil_js_1.INVALID;
2643
+ }
2644
+ const rest = this._def.rest;
2645
+ if (!rest && ctx.data.length > this._def.items.length) {
2646
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2647
+ code: ZodError_js_1.ZodIssueCode.too_big,
2648
+ maximum: this._def.items.length,
2649
+ inclusive: true,
2650
+ exact: false,
2651
+ type: "array",
2652
+ });
2653
+ status.dirty();
2654
+ }
2655
+ const items = [...ctx.data]
2656
+ .map((item, itemIndex) => {
2657
+ const schema = this._def.items[itemIndex] || this._def.rest;
2658
+ if (!schema)
2659
+ return null;
2660
+ return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2661
+ })
2662
+ .filter((x) => !!x); // filter nulls
2663
+ if (ctx.common.async) {
2664
+ return Promise.all(items).then((results) => {
2665
+ return parseUtil_js_1.ParseStatus.mergeArray(status, results);
2666
+ });
2667
+ }
2668
+ else {
2669
+ return parseUtil_js_1.ParseStatus.mergeArray(status, items);
2670
+ }
2671
+ }
2672
+ get items() {
2673
+ return this._def.items;
2674
+ }
2675
+ rest(rest) {
2676
+ return new ZodTuple({
2677
+ ...this._def,
2678
+ rest,
2679
+ });
2680
+ }
2681
+ }
2682
+ exports.ZodTuple = ZodTuple;
2683
+ ZodTuple.create = (schemas, params) => {
2684
+ if (!Array.isArray(schemas)) {
2685
+ throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2686
+ }
2687
+ return new ZodTuple({
2688
+ items: schemas,
2689
+ typeName: ZodFirstPartyTypeKind.ZodTuple,
2690
+ rest: null,
2691
+ ...processCreateParams(params),
2692
+ });
2693
+ };
2694
+ class ZodRecord extends ZodType {
2695
+ get keySchema() {
2696
+ return this._def.keyType;
2697
+ }
2698
+ get valueSchema() {
2699
+ return this._def.valueType;
2700
+ }
2701
+ _parse(input) {
2702
+ const { status, ctx } = this._processInputParams(input);
2703
+ if (ctx.parsedType !== util_js_1.ZodParsedType.object) {
2704
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2705
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
2706
+ expected: util_js_1.ZodParsedType.object,
2707
+ received: ctx.parsedType,
2708
+ });
2709
+ return parseUtil_js_1.INVALID;
2710
+ }
2711
+ const pairs = [];
2712
+ const keyType = this._def.keyType;
2713
+ const valueType = this._def.valueType;
2714
+ for (const key in ctx.data) {
2715
+ pairs.push({
2716
+ key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
2717
+ value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
2718
+ alwaysSet: key in ctx.data,
2719
+ });
2720
+ }
2721
+ if (ctx.common.async) {
2722
+ return parseUtil_js_1.ParseStatus.mergeObjectAsync(status, pairs);
2723
+ }
2724
+ else {
2725
+ return parseUtil_js_1.ParseStatus.mergeObjectSync(status, pairs);
2726
+ }
2727
+ }
2728
+ get element() {
2729
+ return this._def.valueType;
2730
+ }
2731
+ static create(first, second, third) {
2732
+ if (second instanceof ZodType) {
2733
+ return new ZodRecord({
2734
+ keyType: first,
2735
+ valueType: second,
2736
+ typeName: ZodFirstPartyTypeKind.ZodRecord,
2737
+ ...processCreateParams(third),
2738
+ });
2739
+ }
2740
+ return new ZodRecord({
2741
+ keyType: ZodString.create(),
2742
+ valueType: first,
2743
+ typeName: ZodFirstPartyTypeKind.ZodRecord,
2744
+ ...processCreateParams(second),
2745
+ });
2746
+ }
2747
+ }
2748
+ exports.ZodRecord = ZodRecord;
2749
+ class ZodMap extends ZodType {
2750
+ get keySchema() {
2751
+ return this._def.keyType;
2752
+ }
2753
+ get valueSchema() {
2754
+ return this._def.valueType;
2755
+ }
2756
+ _parse(input) {
2757
+ const { status, ctx } = this._processInputParams(input);
2758
+ if (ctx.parsedType !== util_js_1.ZodParsedType.map) {
2759
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2760
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
2761
+ expected: util_js_1.ZodParsedType.map,
2762
+ received: ctx.parsedType,
2763
+ });
2764
+ return parseUtil_js_1.INVALID;
2765
+ }
2766
+ const keyType = this._def.keyType;
2767
+ const valueType = this._def.valueType;
2768
+ const pairs = [...ctx.data.entries()].map(([key, value], index) => {
2769
+ return {
2770
+ key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
2771
+ value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
2772
+ };
2773
+ });
2774
+ if (ctx.common.async) {
2775
+ const finalMap = new Map();
2776
+ return Promise.resolve().then(async () => {
2777
+ for (const pair of pairs) {
2778
+ const key = await pair.key;
2779
+ const value = await pair.value;
2780
+ if (key.status === "aborted" || value.status === "aborted") {
2781
+ return parseUtil_js_1.INVALID;
2782
+ }
2783
+ if (key.status === "dirty" || value.status === "dirty") {
2784
+ status.dirty();
2785
+ }
2786
+ finalMap.set(key.value, value.value);
2787
+ }
2788
+ return { status: status.value, value: finalMap };
2789
+ });
2790
+ }
2791
+ else {
2792
+ const finalMap = new Map();
2793
+ for (const pair of pairs) {
2794
+ const key = pair.key;
2795
+ const value = pair.value;
2796
+ if (key.status === "aborted" || value.status === "aborted") {
2797
+ return parseUtil_js_1.INVALID;
2798
+ }
2799
+ if (key.status === "dirty" || value.status === "dirty") {
2800
+ status.dirty();
2801
+ }
2802
+ finalMap.set(key.value, value.value);
2803
+ }
2804
+ return { status: status.value, value: finalMap };
2805
+ }
2806
+ }
2807
+ }
2808
+ exports.ZodMap = ZodMap;
2809
+ ZodMap.create = (keyType, valueType, params) => {
2810
+ return new ZodMap({
2811
+ valueType,
2812
+ keyType,
2813
+ typeName: ZodFirstPartyTypeKind.ZodMap,
2814
+ ...processCreateParams(params),
2815
+ });
2816
+ };
2817
+ class ZodSet extends ZodType {
2818
+ _parse(input) {
2819
+ const { status, ctx } = this._processInputParams(input);
2820
+ if (ctx.parsedType !== util_js_1.ZodParsedType.set) {
2821
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2822
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
2823
+ expected: util_js_1.ZodParsedType.set,
2824
+ received: ctx.parsedType,
2825
+ });
2826
+ return parseUtil_js_1.INVALID;
2827
+ }
2828
+ const def = this._def;
2829
+ if (def.minSize !== null) {
2830
+ if (ctx.data.size < def.minSize.value) {
2831
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2832
+ code: ZodError_js_1.ZodIssueCode.too_small,
2833
+ minimum: def.minSize.value,
2834
+ type: "set",
2835
+ inclusive: true,
2836
+ exact: false,
2837
+ message: def.minSize.message,
2838
+ });
2839
+ status.dirty();
2840
+ }
2841
+ }
2842
+ if (def.maxSize !== null) {
2843
+ if (ctx.data.size > def.maxSize.value) {
2844
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2845
+ code: ZodError_js_1.ZodIssueCode.too_big,
2846
+ maximum: def.maxSize.value,
2847
+ type: "set",
2848
+ inclusive: true,
2849
+ exact: false,
2850
+ message: def.maxSize.message,
2851
+ });
2852
+ status.dirty();
2853
+ }
2854
+ }
2855
+ const valueType = this._def.valueType;
2856
+ function finalizeSet(elements) {
2857
+ const parsedSet = new Set();
2858
+ for (const element of elements) {
2859
+ if (element.status === "aborted")
2860
+ return parseUtil_js_1.INVALID;
2861
+ if (element.status === "dirty")
2862
+ status.dirty();
2863
+ parsedSet.add(element.value);
2864
+ }
2865
+ return { status: status.value, value: parsedSet };
2866
+ }
2867
+ const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2868
+ if (ctx.common.async) {
2869
+ return Promise.all(elements).then((elements) => finalizeSet(elements));
2870
+ }
2871
+ else {
2872
+ return finalizeSet(elements);
2873
+ }
2874
+ }
2875
+ min(minSize, message) {
2876
+ return new ZodSet({
2877
+ ...this._def,
2878
+ minSize: { value: minSize, message: errorUtil_js_1.errorUtil.toString(message) },
2879
+ });
2880
+ }
2881
+ max(maxSize, message) {
2882
+ return new ZodSet({
2883
+ ...this._def,
2884
+ maxSize: { value: maxSize, message: errorUtil_js_1.errorUtil.toString(message) },
2885
+ });
2886
+ }
2887
+ size(size, message) {
2888
+ return this.min(size, message).max(size, message);
2889
+ }
2890
+ nonempty(message) {
2891
+ return this.min(1, message);
2892
+ }
2893
+ }
2894
+ exports.ZodSet = ZodSet;
2895
+ ZodSet.create = (valueType, params) => {
2896
+ return new ZodSet({
2897
+ valueType,
2898
+ minSize: null,
2899
+ maxSize: null,
2900
+ typeName: ZodFirstPartyTypeKind.ZodSet,
2901
+ ...processCreateParams(params),
2902
+ });
2903
+ };
2904
+ class ZodFunction extends ZodType {
2905
+ constructor() {
2906
+ super(...arguments);
2907
+ this.validate = this.implement;
2908
+ }
2909
+ _parse(input) {
2910
+ const { ctx } = this._processInputParams(input);
2911
+ if (ctx.parsedType !== util_js_1.ZodParsedType.function) {
2912
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
2913
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
2914
+ expected: util_js_1.ZodParsedType.function,
2915
+ received: ctx.parsedType,
2916
+ });
2917
+ return parseUtil_js_1.INVALID;
2918
+ }
2919
+ function makeArgsIssue(args, error) {
2920
+ return (0, parseUtil_js_1.makeIssue)({
2921
+ data: args,
2922
+ path: ctx.path,
2923
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, (0, errors_js_1.getErrorMap)(), errors_js_1.defaultErrorMap].filter((x) => !!x),
2924
+ issueData: {
2925
+ code: ZodError_js_1.ZodIssueCode.invalid_arguments,
2926
+ argumentsError: error,
2927
+ },
2928
+ });
2929
+ }
2930
+ function makeReturnsIssue(returns, error) {
2931
+ return (0, parseUtil_js_1.makeIssue)({
2932
+ data: returns,
2933
+ path: ctx.path,
2934
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, (0, errors_js_1.getErrorMap)(), errors_js_1.defaultErrorMap].filter((x) => !!x),
2935
+ issueData: {
2936
+ code: ZodError_js_1.ZodIssueCode.invalid_return_type,
2937
+ returnTypeError: error,
2938
+ },
2939
+ });
2940
+ }
2941
+ const params = { errorMap: ctx.common.contextualErrorMap };
2942
+ const fn = ctx.data;
2943
+ if (this._def.returns instanceof ZodPromise) {
2944
+ // Would love a way to avoid disabling this rule, but we need an alias (using an arrow function was what caused 2651).
2945
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
2946
+ const me = this;
2947
+ return (0, parseUtil_js_1.OK)(async function (...args) {
2948
+ const error = new ZodError_js_1.ZodError([]);
2949
+ const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
2950
+ error.addIssue(makeArgsIssue(args, e));
2951
+ throw error;
2952
+ });
2953
+ const result = await Reflect.apply(fn, this, parsedArgs);
2954
+ const parsedReturns = await me._def.returns._def.type
2955
+ .parseAsync(result, params)
2956
+ .catch((e) => {
2957
+ error.addIssue(makeReturnsIssue(result, e));
2958
+ throw error;
2959
+ });
2960
+ return parsedReturns;
2961
+ });
2962
+ }
2963
+ else {
2964
+ // Would love a way to avoid disabling this rule, but we need an alias (using an arrow function was what caused 2651).
2965
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
2966
+ const me = this;
2967
+ return (0, parseUtil_js_1.OK)(function (...args) {
2968
+ const parsedArgs = me._def.args.safeParse(args, params);
2969
+ if (!parsedArgs.success) {
2970
+ throw new ZodError_js_1.ZodError([makeArgsIssue(args, parsedArgs.error)]);
2971
+ }
2972
+ const result = Reflect.apply(fn, this, parsedArgs.data);
2973
+ const parsedReturns = me._def.returns.safeParse(result, params);
2974
+ if (!parsedReturns.success) {
2975
+ throw new ZodError_js_1.ZodError([makeReturnsIssue(result, parsedReturns.error)]);
2976
+ }
2977
+ return parsedReturns.data;
2978
+ });
2979
+ }
2980
+ }
2981
+ parameters() {
2982
+ return this._def.args;
2983
+ }
2984
+ returnType() {
2985
+ return this._def.returns;
2986
+ }
2987
+ args(...items) {
2988
+ return new ZodFunction({
2989
+ ...this._def,
2990
+ args: ZodTuple.create(items).rest(ZodUnknown.create()),
2991
+ });
2992
+ }
2993
+ returns(returnType) {
2994
+ return new ZodFunction({
2995
+ ...this._def,
2996
+ returns: returnType,
2997
+ });
2998
+ }
2999
+ implement(func) {
3000
+ const validatedFunc = this.parse(func);
3001
+ return validatedFunc;
3002
+ }
3003
+ strictImplement(func) {
3004
+ const validatedFunc = this.parse(func);
3005
+ return validatedFunc;
3006
+ }
3007
+ static create(args, returns, params) {
3008
+ return new ZodFunction({
3009
+ args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
3010
+ returns: returns || ZodUnknown.create(),
3011
+ typeName: ZodFirstPartyTypeKind.ZodFunction,
3012
+ ...processCreateParams(params),
3013
+ });
3014
+ }
3015
+ }
3016
+ exports.ZodFunction = ZodFunction;
3017
+ class ZodLazy extends ZodType {
3018
+ get schema() {
3019
+ return this._def.getter();
3020
+ }
3021
+ _parse(input) {
3022
+ const { ctx } = this._processInputParams(input);
3023
+ const lazySchema = this._def.getter();
3024
+ return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
3025
+ }
3026
+ }
3027
+ exports.ZodLazy = ZodLazy;
3028
+ ZodLazy.create = (getter, params) => {
3029
+ return new ZodLazy({
3030
+ getter: getter,
3031
+ typeName: ZodFirstPartyTypeKind.ZodLazy,
3032
+ ...processCreateParams(params),
3033
+ });
3034
+ };
3035
+ class ZodLiteral extends ZodType {
3036
+ _parse(input) {
3037
+ if (input.data !== this._def.value) {
3038
+ const ctx = this._getOrReturnCtx(input);
3039
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3040
+ received: ctx.data,
3041
+ code: ZodError_js_1.ZodIssueCode.invalid_literal,
3042
+ expected: this._def.value,
3043
+ });
3044
+ return parseUtil_js_1.INVALID;
3045
+ }
3046
+ return { status: "valid", value: input.data };
3047
+ }
3048
+ get value() {
3049
+ return this._def.value;
3050
+ }
3051
+ }
3052
+ exports.ZodLiteral = ZodLiteral;
3053
+ ZodLiteral.create = (value, params) => {
3054
+ return new ZodLiteral({
3055
+ value: value,
3056
+ typeName: ZodFirstPartyTypeKind.ZodLiteral,
3057
+ ...processCreateParams(params),
3058
+ });
3059
+ };
3060
+ function createZodEnum(values, params) {
3061
+ return new ZodEnum({
3062
+ values,
3063
+ typeName: ZodFirstPartyTypeKind.ZodEnum,
3064
+ ...processCreateParams(params),
3065
+ });
3066
+ }
3067
+ class ZodEnum extends ZodType {
3068
+ _parse(input) {
3069
+ if (typeof input.data !== "string") {
3070
+ const ctx = this._getOrReturnCtx(input);
3071
+ const expectedValues = this._def.values;
3072
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3073
+ expected: util_js_1.util.joinValues(expectedValues),
3074
+ received: ctx.parsedType,
3075
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
3076
+ });
3077
+ return parseUtil_js_1.INVALID;
3078
+ }
3079
+ if (!this._cache) {
3080
+ this._cache = new Set(this._def.values);
3081
+ }
3082
+ if (!this._cache.has(input.data)) {
3083
+ const ctx = this._getOrReturnCtx(input);
3084
+ const expectedValues = this._def.values;
3085
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3086
+ received: ctx.data,
3087
+ code: ZodError_js_1.ZodIssueCode.invalid_enum_value,
3088
+ options: expectedValues,
3089
+ });
3090
+ return parseUtil_js_1.INVALID;
3091
+ }
3092
+ return (0, parseUtil_js_1.OK)(input.data);
3093
+ }
3094
+ get options() {
3095
+ return this._def.values;
3096
+ }
3097
+ get enum() {
3098
+ const enumValues = {};
3099
+ for (const val of this._def.values) {
3100
+ enumValues[val] = val;
3101
+ }
3102
+ return enumValues;
3103
+ }
3104
+ get Values() {
3105
+ const enumValues = {};
3106
+ for (const val of this._def.values) {
3107
+ enumValues[val] = val;
3108
+ }
3109
+ return enumValues;
3110
+ }
3111
+ get Enum() {
3112
+ const enumValues = {};
3113
+ for (const val of this._def.values) {
3114
+ enumValues[val] = val;
3115
+ }
3116
+ return enumValues;
3117
+ }
3118
+ extract(values, newDef = this._def) {
3119
+ return ZodEnum.create(values, {
3120
+ ...this._def,
3121
+ ...newDef,
3122
+ });
3123
+ }
3124
+ exclude(values, newDef = this._def) {
3125
+ return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3126
+ ...this._def,
3127
+ ...newDef,
3128
+ });
3129
+ }
3130
+ }
3131
+ exports.ZodEnum = ZodEnum;
3132
+ ZodEnum.create = createZodEnum;
3133
+ class ZodNativeEnum extends ZodType {
3134
+ _parse(input) {
3135
+ const nativeEnumValues = util_js_1.util.getValidEnumValues(this._def.values);
3136
+ const ctx = this._getOrReturnCtx(input);
3137
+ if (ctx.parsedType !== util_js_1.ZodParsedType.string && ctx.parsedType !== util_js_1.ZodParsedType.number) {
3138
+ const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
3139
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3140
+ expected: util_js_1.util.joinValues(expectedValues),
3141
+ received: ctx.parsedType,
3142
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
3143
+ });
3144
+ return parseUtil_js_1.INVALID;
3145
+ }
3146
+ if (!this._cache) {
3147
+ this._cache = new Set(util_js_1.util.getValidEnumValues(this._def.values));
3148
+ }
3149
+ if (!this._cache.has(input.data)) {
3150
+ const expectedValues = util_js_1.util.objectValues(nativeEnumValues);
3151
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3152
+ received: ctx.data,
3153
+ code: ZodError_js_1.ZodIssueCode.invalid_enum_value,
3154
+ options: expectedValues,
3155
+ });
3156
+ return parseUtil_js_1.INVALID;
3157
+ }
3158
+ return (0, parseUtil_js_1.OK)(input.data);
3159
+ }
3160
+ get enum() {
3161
+ return this._def.values;
3162
+ }
3163
+ }
3164
+ exports.ZodNativeEnum = ZodNativeEnum;
3165
+ ZodNativeEnum.create = (values, params) => {
3166
+ return new ZodNativeEnum({
3167
+ values: values,
3168
+ typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
3169
+ ...processCreateParams(params),
3170
+ });
3171
+ };
3172
+ class ZodPromise extends ZodType {
3173
+ unwrap() {
3174
+ return this._def.type;
3175
+ }
3176
+ _parse(input) {
3177
+ const { ctx } = this._processInputParams(input);
3178
+ if (ctx.parsedType !== util_js_1.ZodParsedType.promise && ctx.common.async === false) {
3179
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3180
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
3181
+ expected: util_js_1.ZodParsedType.promise,
3182
+ received: ctx.parsedType,
3183
+ });
3184
+ return parseUtil_js_1.INVALID;
3185
+ }
3186
+ const promisified = ctx.parsedType === util_js_1.ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
3187
+ return (0, parseUtil_js_1.OK)(promisified.then((data) => {
3188
+ return this._def.type.parseAsync(data, {
3189
+ path: ctx.path,
3190
+ errorMap: ctx.common.contextualErrorMap,
3191
+ });
3192
+ }));
3193
+ }
3194
+ }
3195
+ exports.ZodPromise = ZodPromise;
3196
+ ZodPromise.create = (schema, params) => {
3197
+ return new ZodPromise({
3198
+ type: schema,
3199
+ typeName: ZodFirstPartyTypeKind.ZodPromise,
3200
+ ...processCreateParams(params),
3201
+ });
3202
+ };
3203
+ class ZodEffects extends ZodType {
3204
+ innerType() {
3205
+ return this._def.schema;
3206
+ }
3207
+ sourceType() {
3208
+ return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
3209
+ ? this._def.schema.sourceType()
3210
+ : this._def.schema;
3211
+ }
3212
+ _parse(input) {
3213
+ const { status, ctx } = this._processInputParams(input);
3214
+ const effect = this._def.effect || null;
3215
+ const checkCtx = {
3216
+ addIssue: (arg) => {
3217
+ (0, parseUtil_js_1.addIssueToContext)(ctx, arg);
3218
+ if (arg.fatal) {
3219
+ status.abort();
3220
+ }
3221
+ else {
3222
+ status.dirty();
3223
+ }
3224
+ },
3225
+ get path() {
3226
+ return ctx.path;
3227
+ },
3228
+ };
3229
+ checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3230
+ if (effect.type === "preprocess") {
3231
+ const processed = effect.transform(ctx.data, checkCtx);
3232
+ if (ctx.common.async) {
3233
+ return Promise.resolve(processed).then(async (processed) => {
3234
+ if (status.value === "aborted")
3235
+ return parseUtil_js_1.INVALID;
3236
+ const result = await this._def.schema._parseAsync({
3237
+ data: processed,
3238
+ path: ctx.path,
3239
+ parent: ctx,
3240
+ });
3241
+ if (result.status === "aborted")
3242
+ return parseUtil_js_1.INVALID;
3243
+ if (result.status === "dirty")
3244
+ return (0, parseUtil_js_1.DIRTY)(result.value);
3245
+ if (status.value === "dirty")
3246
+ return (0, parseUtil_js_1.DIRTY)(result.value);
3247
+ return result;
3248
+ });
3249
+ }
3250
+ else {
3251
+ if (status.value === "aborted")
3252
+ return parseUtil_js_1.INVALID;
3253
+ const result = this._def.schema._parseSync({
3254
+ data: processed,
3255
+ path: ctx.path,
3256
+ parent: ctx,
3257
+ });
3258
+ if (result.status === "aborted")
3259
+ return parseUtil_js_1.INVALID;
3260
+ if (result.status === "dirty")
3261
+ return (0, parseUtil_js_1.DIRTY)(result.value);
3262
+ if (status.value === "dirty")
3263
+ return (0, parseUtil_js_1.DIRTY)(result.value);
3264
+ return result;
3265
+ }
3266
+ }
3267
+ if (effect.type === "refinement") {
3268
+ const executeRefinement = (acc) => {
3269
+ const result = effect.refinement(acc, checkCtx);
3270
+ if (ctx.common.async) {
3271
+ return Promise.resolve(result);
3272
+ }
3273
+ if (result instanceof Promise) {
3274
+ throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3275
+ }
3276
+ return acc;
3277
+ };
3278
+ if (ctx.common.async === false) {
3279
+ const inner = this._def.schema._parseSync({
3280
+ data: ctx.data,
3281
+ path: ctx.path,
3282
+ parent: ctx,
3283
+ });
3284
+ if (inner.status === "aborted")
3285
+ return parseUtil_js_1.INVALID;
3286
+ if (inner.status === "dirty")
3287
+ status.dirty();
3288
+ // return value is ignored
3289
+ executeRefinement(inner.value);
3290
+ return { status: status.value, value: inner.value };
3291
+ }
3292
+ else {
3293
+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
3294
+ if (inner.status === "aborted")
3295
+ return parseUtil_js_1.INVALID;
3296
+ if (inner.status === "dirty")
3297
+ status.dirty();
3298
+ return executeRefinement(inner.value).then(() => {
3299
+ return { status: status.value, value: inner.value };
3300
+ });
3301
+ });
3302
+ }
3303
+ }
3304
+ if (effect.type === "transform") {
3305
+ if (ctx.common.async === false) {
3306
+ const base = this._def.schema._parseSync({
3307
+ data: ctx.data,
3308
+ path: ctx.path,
3309
+ parent: ctx,
3310
+ });
3311
+ if (!(0, parseUtil_js_1.isValid)(base))
3312
+ return parseUtil_js_1.INVALID;
3313
+ const result = effect.transform(base.value, checkCtx);
3314
+ if (result instanceof Promise) {
3315
+ throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3316
+ }
3317
+ return { status: status.value, value: result };
3318
+ }
3319
+ else {
3320
+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
3321
+ if (!(0, parseUtil_js_1.isValid)(base))
3322
+ return parseUtil_js_1.INVALID;
3323
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3324
+ status: status.value,
3325
+ value: result,
3326
+ }));
3327
+ });
3328
+ }
3329
+ }
3330
+ util_js_1.util.assertNever(effect);
3331
+ }
3332
+ }
3333
+ exports.ZodEffects = ZodEffects;
3334
+ exports.ZodTransformer = ZodEffects;
3335
+ ZodEffects.create = (schema, effect, params) => {
3336
+ return new ZodEffects({
3337
+ schema,
3338
+ typeName: ZodFirstPartyTypeKind.ZodEffects,
3339
+ effect,
3340
+ ...processCreateParams(params),
3341
+ });
3342
+ };
3343
+ ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3344
+ return new ZodEffects({
3345
+ schema,
3346
+ effect: { type: "preprocess", transform: preprocess },
3347
+ typeName: ZodFirstPartyTypeKind.ZodEffects,
3348
+ ...processCreateParams(params),
3349
+ });
3350
+ };
3351
+ class ZodOptional extends ZodType {
3352
+ _parse(input) {
3353
+ const parsedType = this._getType(input);
3354
+ if (parsedType === util_js_1.ZodParsedType.undefined) {
3355
+ return (0, parseUtil_js_1.OK)(undefined);
3356
+ }
3357
+ return this._def.innerType._parse(input);
3358
+ }
3359
+ unwrap() {
3360
+ return this._def.innerType;
3361
+ }
3362
+ }
3363
+ exports.ZodOptional = ZodOptional;
3364
+ ZodOptional.create = (type, params) => {
3365
+ return new ZodOptional({
3366
+ innerType: type,
3367
+ typeName: ZodFirstPartyTypeKind.ZodOptional,
3368
+ ...processCreateParams(params),
3369
+ });
3370
+ };
3371
+ class ZodNullable extends ZodType {
3372
+ _parse(input) {
3373
+ const parsedType = this._getType(input);
3374
+ if (parsedType === util_js_1.ZodParsedType.null) {
3375
+ return (0, parseUtil_js_1.OK)(null);
3376
+ }
3377
+ return this._def.innerType._parse(input);
3378
+ }
3379
+ unwrap() {
3380
+ return this._def.innerType;
3381
+ }
3382
+ }
3383
+ exports.ZodNullable = ZodNullable;
3384
+ ZodNullable.create = (type, params) => {
3385
+ return new ZodNullable({
3386
+ innerType: type,
3387
+ typeName: ZodFirstPartyTypeKind.ZodNullable,
3388
+ ...processCreateParams(params),
3389
+ });
3390
+ };
3391
+ class ZodDefault extends ZodType {
3392
+ _parse(input) {
3393
+ const { ctx } = this._processInputParams(input);
3394
+ let data = ctx.data;
3395
+ if (ctx.parsedType === util_js_1.ZodParsedType.undefined) {
3396
+ data = this._def.defaultValue();
3397
+ }
3398
+ return this._def.innerType._parse({
3399
+ data,
3400
+ path: ctx.path,
3401
+ parent: ctx,
3402
+ });
3403
+ }
3404
+ removeDefault() {
3405
+ return this._def.innerType;
3406
+ }
3407
+ }
3408
+ exports.ZodDefault = ZodDefault;
3409
+ ZodDefault.create = (type, params) => {
3410
+ return new ZodDefault({
3411
+ innerType: type,
3412
+ typeName: ZodFirstPartyTypeKind.ZodDefault,
3413
+ defaultValue: typeof params.default === "function" ? params.default : () => params.default,
3414
+ ...processCreateParams(params),
3415
+ });
3416
+ };
3417
+ class ZodCatch extends ZodType {
3418
+ _parse(input) {
3419
+ const { ctx } = this._processInputParams(input);
3420
+ // newCtx is used to not collect issues from inner types in ctx
3421
+ const newCtx = {
3422
+ ...ctx,
3423
+ common: {
3424
+ ...ctx.common,
3425
+ issues: [],
3426
+ },
3427
+ };
3428
+ const result = this._def.innerType._parse({
3429
+ data: newCtx.data,
3430
+ path: newCtx.path,
3431
+ parent: {
3432
+ ...newCtx,
3433
+ },
3434
+ });
3435
+ if ((0, parseUtil_js_1.isAsync)(result)) {
3436
+ return result.then((result) => {
3437
+ return {
3438
+ status: "valid",
3439
+ value: result.status === "valid"
3440
+ ? result.value
3441
+ : this._def.catchValue({
3442
+ get error() {
3443
+ return new ZodError_js_1.ZodError(newCtx.common.issues);
3444
+ },
3445
+ input: newCtx.data,
3446
+ }),
3447
+ };
3448
+ });
3449
+ }
3450
+ else {
3451
+ return {
3452
+ status: "valid",
3453
+ value: result.status === "valid"
3454
+ ? result.value
3455
+ : this._def.catchValue({
3456
+ get error() {
3457
+ return new ZodError_js_1.ZodError(newCtx.common.issues);
3458
+ },
3459
+ input: newCtx.data,
3460
+ }),
3461
+ };
3462
+ }
3463
+ }
3464
+ removeCatch() {
3465
+ return this._def.innerType;
3466
+ }
3467
+ }
3468
+ exports.ZodCatch = ZodCatch;
3469
+ ZodCatch.create = (type, params) => {
3470
+ return new ZodCatch({
3471
+ innerType: type,
3472
+ typeName: ZodFirstPartyTypeKind.ZodCatch,
3473
+ catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3474
+ ...processCreateParams(params),
3475
+ });
3476
+ };
3477
+ class ZodNaN extends ZodType {
3478
+ _parse(input) {
3479
+ const parsedType = this._getType(input);
3480
+ if (parsedType !== util_js_1.ZodParsedType.nan) {
3481
+ const ctx = this._getOrReturnCtx(input);
3482
+ (0, parseUtil_js_1.addIssueToContext)(ctx, {
3483
+ code: ZodError_js_1.ZodIssueCode.invalid_type,
3484
+ expected: util_js_1.ZodParsedType.nan,
3485
+ received: ctx.parsedType,
3486
+ });
3487
+ return parseUtil_js_1.INVALID;
3488
+ }
3489
+ return { status: "valid", value: input.data };
3490
+ }
3491
+ }
3492
+ exports.ZodNaN = ZodNaN;
3493
+ ZodNaN.create = (params) => {
3494
+ return new ZodNaN({
3495
+ typeName: ZodFirstPartyTypeKind.ZodNaN,
3496
+ ...processCreateParams(params),
3497
+ });
3498
+ };
3499
+ exports.BRAND = Symbol("zod_brand");
3500
+ class ZodBranded extends ZodType {
3501
+ _parse(input) {
3502
+ const { ctx } = this._processInputParams(input);
3503
+ const data = ctx.data;
3504
+ return this._def.type._parse({
3505
+ data,
3506
+ path: ctx.path,
3507
+ parent: ctx,
3508
+ });
3509
+ }
3510
+ unwrap() {
3511
+ return this._def.type;
3512
+ }
3513
+ }
3514
+ exports.ZodBranded = ZodBranded;
3515
+ class ZodPipeline extends ZodType {
3516
+ _parse(input) {
3517
+ const { status, ctx } = this._processInputParams(input);
3518
+ if (ctx.common.async) {
3519
+ const handleAsync = async () => {
3520
+ const inResult = await this._def.in._parseAsync({
3521
+ data: ctx.data,
3522
+ path: ctx.path,
3523
+ parent: ctx,
3524
+ });
3525
+ if (inResult.status === "aborted")
3526
+ return parseUtil_js_1.INVALID;
3527
+ if (inResult.status === "dirty") {
3528
+ status.dirty();
3529
+ return (0, parseUtil_js_1.DIRTY)(inResult.value);
3530
+ }
3531
+ else {
3532
+ return this._def.out._parseAsync({
3533
+ data: inResult.value,
3534
+ path: ctx.path,
3535
+ parent: ctx,
3536
+ });
3537
+ }
3538
+ };
3539
+ return handleAsync();
3540
+ }
3541
+ else {
3542
+ const inResult = this._def.in._parseSync({
3543
+ data: ctx.data,
3544
+ path: ctx.path,
3545
+ parent: ctx,
3546
+ });
3547
+ if (inResult.status === "aborted")
3548
+ return parseUtil_js_1.INVALID;
3549
+ if (inResult.status === "dirty") {
3550
+ status.dirty();
3551
+ return {
3552
+ status: "dirty",
3553
+ value: inResult.value,
3554
+ };
3555
+ }
3556
+ else {
3557
+ return this._def.out._parseSync({
3558
+ data: inResult.value,
3559
+ path: ctx.path,
3560
+ parent: ctx,
3561
+ });
3562
+ }
3563
+ }
3564
+ }
3565
+ static create(a, b) {
3566
+ return new ZodPipeline({
3567
+ in: a,
3568
+ out: b,
3569
+ typeName: ZodFirstPartyTypeKind.ZodPipeline,
3570
+ });
3571
+ }
3572
+ }
3573
+ exports.ZodPipeline = ZodPipeline;
3574
+ class ZodReadonly extends ZodType {
3575
+ _parse(input) {
3576
+ const result = this._def.innerType._parse(input);
3577
+ const freeze = (data) => {
3578
+ if ((0, parseUtil_js_1.isValid)(data)) {
3579
+ data.value = Object.freeze(data.value);
3580
+ }
3581
+ return data;
3582
+ };
3583
+ return (0, parseUtil_js_1.isAsync)(result) ? result.then((data) => freeze(data)) : freeze(result);
3584
+ }
3585
+ unwrap() {
3586
+ return this._def.innerType;
3587
+ }
3588
+ }
3589
+ exports.ZodReadonly = ZodReadonly;
3590
+ ZodReadonly.create = (type, params) => {
3591
+ return new ZodReadonly({
3592
+ innerType: type,
3593
+ typeName: ZodFirstPartyTypeKind.ZodReadonly,
3594
+ ...processCreateParams(params),
3595
+ });
3596
+ };
3597
+ ////////////////////////////////////////
3598
+ ////////////////////////////////////////
3599
+ ////////// //////////
3600
+ ////////// z.custom //////////
3601
+ ////////// //////////
3602
+ ////////////////////////////////////////
3603
+ ////////////////////////////////////////
3604
+ function cleanParams(params, data) {
3605
+ const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
3606
+ const p2 = typeof p === "string" ? { message: p } : p;
3607
+ return p2;
3608
+ }
3609
+ function custom(check, _params = {},
3610
+ /**
3611
+ * @deprecated
3612
+ *
3613
+ * Pass `fatal` into the params object instead:
3614
+ *
3615
+ * ```ts
3616
+ * z.string().custom((val) => val.length > 5, { fatal: false })
3617
+ * ```
3618
+ *
3619
+ */
3620
+ fatal) {
3621
+ if (check)
3622
+ return ZodAny.create().superRefine((data, ctx) => {
3623
+ const r = check(data);
3624
+ if (r instanceof Promise) {
3625
+ return r.then((r) => {
3626
+ if (!r) {
3627
+ const params = cleanParams(_params, data);
3628
+ const _fatal = params.fatal ?? fatal ?? true;
3629
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3630
+ }
3631
+ });
3632
+ }
3633
+ if (!r) {
3634
+ const params = cleanParams(_params, data);
3635
+ const _fatal = params.fatal ?? fatal ?? true;
3636
+ ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
3637
+ }
3638
+ return;
3639
+ });
3640
+ return ZodAny.create();
3641
+ }
3642
+ exports.late = {
3643
+ object: ZodObject.lazycreate,
3644
+ };
3645
+ var ZodFirstPartyTypeKind;
3646
+ (function (ZodFirstPartyTypeKind) {
3647
+ ZodFirstPartyTypeKind["ZodString"] = "ZodString";
3648
+ ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
3649
+ ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
3650
+ ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
3651
+ ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
3652
+ ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
3653
+ ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
3654
+ ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
3655
+ ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
3656
+ ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
3657
+ ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
3658
+ ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
3659
+ ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
3660
+ ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
3661
+ ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
3662
+ ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
3663
+ ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
3664
+ ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
3665
+ ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
3666
+ ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
3667
+ ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
3668
+ ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
3669
+ ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
3670
+ ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
3671
+ ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
3672
+ ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
3673
+ ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
3674
+ ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
3675
+ ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
3676
+ ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
3677
+ ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
3678
+ ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
3679
+ ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
3680
+ ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
3681
+ ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
3682
+ ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
3683
+ })(ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = ZodFirstPartyTypeKind = {}));
3684
+ // requires TS 4.4+
3685
+ class Class {
3686
+ constructor(..._) { }
3687
+ }
3688
+ const instanceOfType = (
3689
+ // const instanceOfType = <T extends new (...args: any[]) => any>(
3690
+ cls, params = {
3691
+ message: `Input not instance of ${cls.name}`,
3692
+ }) => custom((data) => data instanceof cls, params);
3693
+ exports.instanceof = instanceOfType;
3694
+ const stringType = ZodString.create;
3695
+ exports.string = stringType;
3696
+ const numberType = ZodNumber.create;
3697
+ exports.number = numberType;
3698
+ const nanType = ZodNaN.create;
3699
+ exports.nan = nanType;
3700
+ const bigIntType = ZodBigInt.create;
3701
+ exports.bigint = bigIntType;
3702
+ const booleanType = ZodBoolean.create;
3703
+ exports.boolean = booleanType;
3704
+ const dateType = ZodDate.create;
3705
+ exports.date = dateType;
3706
+ const symbolType = ZodSymbol.create;
3707
+ exports.symbol = symbolType;
3708
+ const undefinedType = ZodUndefined.create;
3709
+ exports.undefined = undefinedType;
3710
+ const nullType = ZodNull.create;
3711
+ exports.null = nullType;
3712
+ const anyType = ZodAny.create;
3713
+ exports.any = anyType;
3714
+ const unknownType = ZodUnknown.create;
3715
+ exports.unknown = unknownType;
3716
+ const neverType = ZodNever.create;
3717
+ exports.never = neverType;
3718
+ const voidType = ZodVoid.create;
3719
+ exports.void = voidType;
3720
+ const arrayType = ZodArray.create;
3721
+ exports.array = arrayType;
3722
+ const objectType = ZodObject.create;
3723
+ exports.object = objectType;
3724
+ const strictObjectType = ZodObject.strictCreate;
3725
+ exports.strictObject = strictObjectType;
3726
+ const unionType = ZodUnion.create;
3727
+ exports.union = unionType;
3728
+ const discriminatedUnionType = ZodDiscriminatedUnion.create;
3729
+ exports.discriminatedUnion = discriminatedUnionType;
3730
+ const intersectionType = ZodIntersection.create;
3731
+ exports.intersection = intersectionType;
3732
+ const tupleType = ZodTuple.create;
3733
+ exports.tuple = tupleType;
3734
+ const recordType = ZodRecord.create;
3735
+ exports.record = recordType;
3736
+ const mapType = ZodMap.create;
3737
+ exports.map = mapType;
3738
+ const setType = ZodSet.create;
3739
+ exports.set = setType;
3740
+ const functionType = ZodFunction.create;
3741
+ exports.function = functionType;
3742
+ const lazyType = ZodLazy.create;
3743
+ exports.lazy = lazyType;
3744
+ const literalType = ZodLiteral.create;
3745
+ exports.literal = literalType;
3746
+ const enumType = ZodEnum.create;
3747
+ exports.enum = enumType;
3748
+ const nativeEnumType = ZodNativeEnum.create;
3749
+ exports.nativeEnum = nativeEnumType;
3750
+ const promiseType = ZodPromise.create;
3751
+ exports.promise = promiseType;
3752
+ const effectsType = ZodEffects.create;
3753
+ exports.effect = effectsType;
3754
+ exports.transformer = effectsType;
3755
+ const optionalType = ZodOptional.create;
3756
+ exports.optional = optionalType;
3757
+ const nullableType = ZodNullable.create;
3758
+ exports.nullable = nullableType;
3759
+ const preprocessType = ZodEffects.createWithPreprocess;
3760
+ exports.preprocess = preprocessType;
3761
+ const pipelineType = ZodPipeline.create;
3762
+ exports.pipeline = pipelineType;
3763
+ const ostring = () => stringType().optional();
3764
+ exports.ostring = ostring;
3765
+ const onumber = () => numberType().optional();
3766
+ exports.onumber = onumber;
3767
+ const oboolean = () => booleanType().optional();
3768
+ exports.oboolean = oboolean;
3769
+ exports.coerce = {
3770
+ string: ((arg) => ZodString.create({ ...arg, coerce: true })),
3771
+ number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
3772
+ boolean: ((arg) => ZodBoolean.create({
3773
+ ...arg,
3774
+ coerce: true,
3775
+ })),
3776
+ bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
3777
+ date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
3778
+ };
3779
+ exports.NEVER = parseUtil_js_1.INVALID;
3780
+
3781
+ // seal-cjs-exports
3782
+ (function () {
3783
+ var keys = Object.getOwnPropertyNames(exports);
3784
+ for (var i = 0; i < keys.length; i++) {
3785
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
3786
+ if (!desc || !desc.get || !desc.configurable) continue;
3787
+ var value;
3788
+ try {
3789
+ value = desc.get();
3790
+ } catch (e) {
3791
+ continue;
3792
+ }
3793
+ // a circular require may not have settled this one yet, so leave it live
3794
+ if (value === undefined) continue;
3795
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
3796
+ }
3797
+ Object.freeze(exports);
3798
+ })();