@wopee-io/wopee.wdio 5.1.0 → 5.2.5

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 (2200) hide show
  1. package/README.md +52 -2
  2. package/build/domain/model/config.interface.d.ts +3 -3
  3. package/build/utils/versionMetadata.js +2 -2
  4. package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +52 -20
  5. package/node_modules/@autonomous-testing/sdk/README.md +129 -36
  6. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +2 -2
  7. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +3 -1
  8. package/node_modules/@autonomous-testing/sdk/build/index.d.ts +0 -1
  9. package/node_modules/@autonomous-testing/sdk/build/index.js +0 -2
  10. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +6 -8
  11. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +16 -0
  12. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +121 -0
  13. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.d.ts +20 -0
  14. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.js +178 -0
  15. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
  16. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +4 -1
  17. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +14 -3
  18. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +6 -2
  19. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  20. package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +13 -1
  21. package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +8 -1
  22. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +2 -2
  23. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/README.md +145 -0
  24. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/index.d.ts +78 -0
  25. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/index.js +203 -0
  26. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/index.js.map +1 -0
  27. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  28. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/promisify.js +18 -0
  29. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  30. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/package.json +64 -0
  31. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/src/index.ts +345 -0
  32. package/node_modules/@autonomous-testing/sdk/node_modules/agent-base/src/promisify.ts +33 -0
  33. package/node_modules/@autonomous-testing/sdk/node_modules/axios/CHANGELOG.md +1934 -0
  34. package/node_modules/@autonomous-testing/sdk/node_modules/axios/LICENSE +7 -0
  35. package/node_modules/@autonomous-testing/sdk/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  36. package/node_modules/@autonomous-testing/sdk/node_modules/axios/README.md +2851 -0
  37. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/axios.js +5807 -0
  38. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/axios.min.js +5 -0
  39. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/axios.min.js.map +1 -0
  40. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/browser/axios.cjs +5829 -0
  41. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/esm/axios.js +5850 -0
  42. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/esm/axios.min.js +3 -0
  43. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  44. package/node_modules/@autonomous-testing/sdk/node_modules/axios/dist/node/axios.cjs +6808 -0
  45. package/node_modules/@autonomous-testing/sdk/node_modules/axios/index.d.cts +766 -0
  46. package/node_modules/@autonomous-testing/sdk/node_modules/axios/index.d.ts +787 -0
  47. package/node_modules/@autonomous-testing/sdk/node_modules/axios/index.js +45 -0
  48. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/README.md +36 -0
  49. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/adapters.js +132 -0
  50. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/fetch.js +696 -0
  51. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/http.js +1490 -0
  52. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/adapters/xhr.js +277 -0
  53. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/axios.js +89 -0
  54. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  55. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  56. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/cancel/isCancel.js +5 -0
  57. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/Axios.js +306 -0
  58. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/AxiosError.js +219 -0
  59. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  60. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  61. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/buildFullPath.js +76 -0
  62. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  63. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/mergeConfig.js +174 -0
  64. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/methodList.js +17 -0
  65. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  66. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/settle.js +27 -0
  67. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/core/transformData.js +28 -0
  68. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/defaults/index.js +178 -0
  69. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/defaults/transitional.js +10 -0
  70. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/env/classes/FormData.js +2 -0
  71. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/env/data.js +1 -0
  72. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  73. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  74. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  75. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  76. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  77. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/bind.js +14 -0
  78. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/buildURL.js +69 -0
  79. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/callbackify.js +18 -0
  80. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  81. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  82. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/cookies.js +64 -0
  83. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  84. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  85. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  86. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  87. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  88. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  89. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  90. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  91. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  92. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/null.js +2 -0
  93. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  94. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  95. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  96. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/readBlob.js +15 -0
  97. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  98. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  99. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  100. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/speedometer.js +55 -0
  101. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/spread.js +28 -0
  102. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/throttle.js +45 -0
  103. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/toFormData.js +279 -0
  104. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  105. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/trackStream.js +89 -0
  106. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/helpers/validator.js +112 -0
  107. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  108. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  109. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  110. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/browser/index.js +13 -0
  111. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/common/utils.js +52 -0
  112. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/index.js +7 -0
  113. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  114. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  115. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  116. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/platform/node/index.js +37 -0
  117. package/node_modules/@autonomous-testing/sdk/node_modules/axios/lib/utils.js +1150 -0
  118. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/README.md +137 -0
  119. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  120. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
  121. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  122. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  123. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
  124. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  125. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  126. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  127. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  128. package/node_modules/@autonomous-testing/sdk/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
  129. package/node_modules/@autonomous-testing/sdk/node_modules/axios/package.json +203 -0
  130. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/CHANGELOG.md +686 -0
  131. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/README.md +355 -0
  132. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/lib/browser.js +4 -0
  133. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/lib/form_data.js +506 -0
  134. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/lib/populate.js +10 -0
  135. package/node_modules/@autonomous-testing/sdk/node_modules/form-data/package.json +82 -0
  136. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/README.md +163 -0
  137. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/index.cjs +105 -0
  138. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/index.js +103 -0
  139. package/node_modules/@autonomous-testing/sdk/node_modules/proxy-from-env/package.json +43 -0
  140. package/node_modules/@autonomous-testing/sdk/package.json +27 -11
  141. package/node_modules/agent-base/LICENSE +22 -0
  142. package/node_modules/agent-base/README.md +69 -0
  143. package/node_modules/agent-base/dist/helpers.d.ts +15 -0
  144. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  145. package/node_modules/agent-base/dist/helpers.js +66 -0
  146. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  147. package/node_modules/agent-base/dist/index.d.ts +41 -0
  148. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  149. package/node_modules/agent-base/dist/index.js +178 -0
  150. package/node_modules/agent-base/dist/index.js.map +1 -0
  151. package/node_modules/agent-base/package.json +46 -0
  152. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  153. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  154. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  155. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  156. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  157. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  158. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  159. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  160. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  161. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  162. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  163. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  164. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  165. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  166. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  167. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  168. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  169. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  170. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  171. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  172. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  173. package/node_modules/debug/LICENSE +20 -0
  174. package/node_modules/debug/README.md +481 -0
  175. package/node_modules/debug/package.json +60 -0
  176. package/node_modules/debug/src/browser.js +271 -0
  177. package/node_modules/debug/src/common.js +274 -0
  178. package/node_modules/debug/src/index.js +10 -0
  179. package/node_modules/debug/src/node.js +263 -0
  180. package/node_modules/dotenv/CHANGELOG.md +520 -0
  181. package/node_modules/dotenv/LICENSE +23 -0
  182. package/node_modules/dotenv/README-es.md +411 -0
  183. package/node_modules/dotenv/README.md +645 -0
  184. package/node_modules/dotenv/SECURITY.md +1 -0
  185. package/node_modules/dotenv/config.js +9 -0
  186. package/node_modules/dotenv/lib/cli-options.js +17 -0
  187. package/node_modules/dotenv/lib/env-options.js +28 -0
  188. package/node_modules/dotenv/lib/main.d.ts +162 -0
  189. package/node_modules/dotenv/lib/main.js +386 -0
  190. package/node_modules/dotenv/package.json +62 -0
  191. package/node_modules/dunder-proto/.eslintrc +5 -0
  192. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  193. package/node_modules/dunder-proto/.nycrc +13 -0
  194. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  195. package/node_modules/dunder-proto/LICENSE +21 -0
  196. package/node_modules/dunder-proto/README.md +54 -0
  197. package/node_modules/dunder-proto/get.d.ts +5 -0
  198. package/node_modules/dunder-proto/get.js +30 -0
  199. package/node_modules/dunder-proto/package.json +76 -0
  200. package/node_modules/dunder-proto/set.d.ts +5 -0
  201. package/node_modules/dunder-proto/set.js +35 -0
  202. package/node_modules/dunder-proto/test/get.js +34 -0
  203. package/node_modules/dunder-proto/test/index.js +4 -0
  204. package/node_modules/dunder-proto/test/set.js +50 -0
  205. package/node_modules/dunder-proto/tsconfig.json +9 -0
  206. package/node_modules/es-define-property/.eslintrc +13 -0
  207. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  208. package/node_modules/es-define-property/.nycrc +9 -0
  209. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  210. package/node_modules/es-define-property/LICENSE +21 -0
  211. package/node_modules/es-define-property/README.md +49 -0
  212. package/node_modules/es-define-property/index.d.ts +3 -0
  213. package/node_modules/es-define-property/index.js +14 -0
  214. package/node_modules/es-define-property/package.json +81 -0
  215. package/node_modules/es-define-property/test/index.js +56 -0
  216. package/node_modules/es-define-property/tsconfig.json +10 -0
  217. package/node_modules/es-errors/.eslintrc +5 -0
  218. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  219. package/node_modules/es-errors/CHANGELOG.md +40 -0
  220. package/node_modules/es-errors/LICENSE +21 -0
  221. package/node_modules/es-errors/README.md +55 -0
  222. package/node_modules/es-errors/eval.d.ts +3 -0
  223. package/node_modules/es-errors/eval.js +4 -0
  224. package/node_modules/es-errors/index.d.ts +3 -0
  225. package/node_modules/es-errors/index.js +4 -0
  226. package/node_modules/es-errors/package.json +80 -0
  227. package/node_modules/es-errors/range.d.ts +3 -0
  228. package/node_modules/es-errors/range.js +4 -0
  229. package/node_modules/es-errors/ref.d.ts +3 -0
  230. package/node_modules/es-errors/ref.js +4 -0
  231. package/node_modules/es-errors/syntax.d.ts +3 -0
  232. package/node_modules/es-errors/syntax.js +4 -0
  233. package/node_modules/es-errors/test/index.js +19 -0
  234. package/node_modules/es-errors/tsconfig.json +49 -0
  235. package/node_modules/es-errors/type.d.ts +3 -0
  236. package/node_modules/es-errors/type.js +4 -0
  237. package/node_modules/es-errors/uri.d.ts +3 -0
  238. package/node_modules/es-errors/uri.js +4 -0
  239. package/node_modules/es-object-atoms/.eslintrc +16 -0
  240. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  241. package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
  242. package/node_modules/es-object-atoms/LICENSE +21 -0
  243. package/node_modules/es-object-atoms/README.md +63 -0
  244. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  245. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  246. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  247. package/node_modules/es-object-atoms/ToObject.js +10 -0
  248. package/node_modules/es-object-atoms/index.d.ts +3 -0
  249. package/node_modules/es-object-atoms/index.js +4 -0
  250. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  251. package/node_modules/es-object-atoms/isObject.js +6 -0
  252. package/node_modules/es-object-atoms/package.json +79 -0
  253. package/node_modules/es-object-atoms/test/index.js +38 -0
  254. package/node_modules/es-object-atoms/tsconfig.json +7 -0
  255. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  256. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  257. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  258. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  259. package/node_modules/es-set-tostringtag/README.md +53 -0
  260. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  261. package/node_modules/es-set-tostringtag/index.js +35 -0
  262. package/node_modules/es-set-tostringtag/package.json +78 -0
  263. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  264. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  265. package/node_modules/follow-redirects/README.md +7 -5
  266. package/node_modules/follow-redirects/index.js +45 -8
  267. package/node_modules/follow-redirects/package.json +2 -2
  268. package/node_modules/function-bind/.eslintrc +21 -0
  269. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  270. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  271. package/node_modules/function-bind/.nycrc +13 -0
  272. package/node_modules/function-bind/CHANGELOG.md +136 -0
  273. package/node_modules/function-bind/LICENSE +20 -0
  274. package/node_modules/function-bind/README.md +46 -0
  275. package/node_modules/function-bind/implementation.js +84 -0
  276. package/node_modules/function-bind/index.js +5 -0
  277. package/node_modules/function-bind/package.json +87 -0
  278. package/node_modules/function-bind/test/.eslintrc +9 -0
  279. package/node_modules/function-bind/test/index.js +252 -0
  280. package/node_modules/get-intrinsic/.eslintrc +42 -0
  281. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  282. package/node_modules/get-intrinsic/.nycrc +9 -0
  283. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  284. package/node_modules/get-intrinsic/LICENSE +21 -0
  285. package/node_modules/get-intrinsic/README.md +71 -0
  286. package/node_modules/get-intrinsic/index.js +378 -0
  287. package/node_modules/get-intrinsic/package.json +97 -0
  288. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  289. package/node_modules/get-proto/.eslintrc +10 -0
  290. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  291. package/node_modules/get-proto/.nycrc +9 -0
  292. package/node_modules/get-proto/CHANGELOG.md +21 -0
  293. package/node_modules/get-proto/LICENSE +21 -0
  294. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  295. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  296. package/node_modules/get-proto/README.md +50 -0
  297. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  298. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  299. package/node_modules/get-proto/index.d.ts +5 -0
  300. package/node_modules/get-proto/index.js +27 -0
  301. package/node_modules/get-proto/package.json +81 -0
  302. package/node_modules/get-proto/test/index.js +68 -0
  303. package/node_modules/get-proto/tsconfig.json +9 -0
  304. package/node_modules/gopd/.eslintrc +16 -0
  305. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  306. package/node_modules/gopd/CHANGELOG.md +45 -0
  307. package/node_modules/gopd/LICENSE +21 -0
  308. package/node_modules/gopd/README.md +40 -0
  309. package/node_modules/gopd/gOPD.d.ts +1 -0
  310. package/node_modules/gopd/gOPD.js +4 -0
  311. package/node_modules/gopd/index.d.ts +5 -0
  312. package/node_modules/gopd/index.js +15 -0
  313. package/node_modules/gopd/package.json +77 -0
  314. package/node_modules/gopd/test/index.js +36 -0
  315. package/node_modules/gopd/tsconfig.json +9 -0
  316. package/node_modules/has-symbols/.eslintrc +11 -0
  317. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  318. package/node_modules/has-symbols/.nycrc +9 -0
  319. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  320. package/node_modules/has-symbols/LICENSE +21 -0
  321. package/node_modules/has-symbols/README.md +46 -0
  322. package/node_modules/has-symbols/index.d.ts +3 -0
  323. package/node_modules/has-symbols/index.js +14 -0
  324. package/node_modules/has-symbols/package.json +111 -0
  325. package/node_modules/has-symbols/shams.d.ts +3 -0
  326. package/node_modules/has-symbols/shams.js +45 -0
  327. package/node_modules/has-symbols/test/index.js +22 -0
  328. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  329. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  330. package/node_modules/has-symbols/test/tests.js +58 -0
  331. package/node_modules/has-symbols/tsconfig.json +10 -0
  332. package/node_modules/has-tostringtag/.eslintrc +5 -0
  333. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  334. package/node_modules/has-tostringtag/.nycrc +13 -0
  335. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  336. package/node_modules/has-tostringtag/LICENSE +21 -0
  337. package/node_modules/has-tostringtag/README.md +46 -0
  338. package/node_modules/has-tostringtag/index.d.ts +3 -0
  339. package/node_modules/has-tostringtag/index.js +8 -0
  340. package/node_modules/has-tostringtag/package.json +108 -0
  341. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  342. package/node_modules/has-tostringtag/shams.js +8 -0
  343. package/node_modules/has-tostringtag/test/index.js +21 -0
  344. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  345. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  346. package/node_modules/has-tostringtag/test/tests.js +15 -0
  347. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  348. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  349. package/node_modules/hasown/.nycrc +13 -0
  350. package/node_modules/hasown/CHANGELOG.md +58 -0
  351. package/node_modules/hasown/LICENSE +21 -0
  352. package/node_modules/hasown/README.md +40 -0
  353. package/node_modules/hasown/eslint.config.mjs +6 -0
  354. package/node_modules/hasown/index.d.ts +3 -0
  355. package/node_modules/hasown/index.js +8 -0
  356. package/node_modules/hasown/package.json +91 -0
  357. package/node_modules/hasown/tsconfig.json +6 -0
  358. package/node_modules/http-proxy-agent/LICENSE +22 -0
  359. package/node_modules/http-proxy-agent/README.md +44 -0
  360. package/node_modules/http-proxy-agent/dist/index.d.ts +44 -0
  361. package/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
  362. package/node_modules/http-proxy-agent/dist/index.js +148 -0
  363. package/node_modules/http-proxy-agent/dist/index.js.map +1 -0
  364. package/node_modules/http-proxy-agent/package.json +47 -0
  365. package/node_modules/https-proxy-agent/LICENSE +22 -0
  366. package/node_modules/https-proxy-agent/README.md +70 -0
  367. package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
  368. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  369. package/node_modules/https-proxy-agent/dist/index.js +180 -0
  370. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  371. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
  372. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  373. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  374. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  375. package/node_modules/https-proxy-agent/package.json +50 -0
  376. package/node_modules/lodash/LICENSE +47 -0
  377. package/node_modules/lodash/README.md +39 -0
  378. package/node_modules/lodash/_DataView.js +7 -0
  379. package/node_modules/lodash/_Hash.js +32 -0
  380. package/node_modules/lodash/_LazyWrapper.js +28 -0
  381. package/node_modules/lodash/_ListCache.js +32 -0
  382. package/node_modules/lodash/_LodashWrapper.js +22 -0
  383. package/node_modules/lodash/_Map.js +7 -0
  384. package/node_modules/lodash/_MapCache.js +32 -0
  385. package/node_modules/lodash/_Promise.js +7 -0
  386. package/node_modules/lodash/_Set.js +7 -0
  387. package/node_modules/lodash/_SetCache.js +27 -0
  388. package/node_modules/lodash/_Stack.js +27 -0
  389. package/node_modules/lodash/_Symbol.js +6 -0
  390. package/node_modules/lodash/_Uint8Array.js +6 -0
  391. package/node_modules/lodash/_WeakMap.js +7 -0
  392. package/node_modules/lodash/_apply.js +21 -0
  393. package/node_modules/lodash/_arrayAggregator.js +22 -0
  394. package/node_modules/lodash/_arrayEach.js +22 -0
  395. package/node_modules/lodash/_arrayEachRight.js +21 -0
  396. package/node_modules/lodash/_arrayEvery.js +23 -0
  397. package/node_modules/lodash/_arrayFilter.js +25 -0
  398. package/node_modules/lodash/_arrayIncludes.js +17 -0
  399. package/node_modules/lodash/_arrayIncludesWith.js +22 -0
  400. package/node_modules/lodash/_arrayLikeKeys.js +49 -0
  401. package/node_modules/lodash/_arrayMap.js +21 -0
  402. package/node_modules/lodash/_arrayPush.js +20 -0
  403. package/node_modules/lodash/_arrayReduce.js +26 -0
  404. package/node_modules/lodash/_arrayReduceRight.js +24 -0
  405. package/node_modules/lodash/_arraySample.js +15 -0
  406. package/node_modules/lodash/_arraySampleSize.js +17 -0
  407. package/node_modules/lodash/_arrayShuffle.js +15 -0
  408. package/node_modules/lodash/_arraySome.js +23 -0
  409. package/node_modules/lodash/_asciiSize.js +12 -0
  410. package/node_modules/lodash/_asciiToArray.js +12 -0
  411. package/node_modules/lodash/_asciiWords.js +15 -0
  412. package/node_modules/lodash/_assignMergeValue.js +20 -0
  413. package/node_modules/lodash/_assignValue.js +28 -0
  414. package/node_modules/lodash/_assocIndexOf.js +21 -0
  415. package/node_modules/lodash/_baseAggregator.js +21 -0
  416. package/node_modules/lodash/_baseAssign.js +17 -0
  417. package/node_modules/lodash/_baseAssignIn.js +17 -0
  418. package/node_modules/lodash/_baseAssignValue.js +25 -0
  419. package/node_modules/lodash/_baseAt.js +23 -0
  420. package/node_modules/lodash/_baseClamp.js +22 -0
  421. package/node_modules/lodash/_baseClone.js +166 -0
  422. package/node_modules/lodash/_baseConforms.js +18 -0
  423. package/node_modules/lodash/_baseConformsTo.js +27 -0
  424. package/node_modules/lodash/_baseCreate.js +30 -0
  425. package/node_modules/lodash/_baseDelay.js +21 -0
  426. package/node_modules/lodash/_baseDifference.js +67 -0
  427. package/node_modules/lodash/_baseEach.js +14 -0
  428. package/node_modules/lodash/_baseEachRight.js +14 -0
  429. package/node_modules/lodash/_baseEvery.js +21 -0
  430. package/node_modules/lodash/_baseExtremum.js +32 -0
  431. package/node_modules/lodash/_baseFill.js +32 -0
  432. package/node_modules/lodash/_baseFilter.js +21 -0
  433. package/node_modules/lodash/_baseFindIndex.js +24 -0
  434. package/node_modules/lodash/_baseFindKey.js +23 -0
  435. package/node_modules/lodash/_baseFlatten.js +38 -0
  436. package/node_modules/lodash/_baseFor.js +16 -0
  437. package/node_modules/lodash/_baseForOwn.js +16 -0
  438. package/node_modules/lodash/_baseForOwnRight.js +16 -0
  439. package/node_modules/lodash/_baseForRight.js +15 -0
  440. package/node_modules/lodash/_baseFunctions.js +19 -0
  441. package/node_modules/lodash/_baseGet.js +24 -0
  442. package/node_modules/lodash/_baseGetAllKeys.js +20 -0
  443. package/node_modules/lodash/_baseGetTag.js +28 -0
  444. package/node_modules/lodash/_baseGt.js +14 -0
  445. package/node_modules/lodash/_baseHas.js +19 -0
  446. package/node_modules/lodash/_baseHasIn.js +13 -0
  447. package/node_modules/lodash/_baseInRange.js +18 -0
  448. package/node_modules/lodash/_baseIndexOf.js +20 -0
  449. package/node_modules/lodash/_baseIndexOfWith.js +23 -0
  450. package/node_modules/lodash/_baseIntersection.js +74 -0
  451. package/node_modules/lodash/_baseInverter.js +21 -0
  452. package/node_modules/lodash/_baseInvoke.js +24 -0
  453. package/node_modules/lodash/_baseIsArguments.js +18 -0
  454. package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
  455. package/node_modules/lodash/_baseIsDate.js +18 -0
  456. package/node_modules/lodash/_baseIsEqual.js +28 -0
  457. package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
  458. package/node_modules/lodash/_baseIsMap.js +18 -0
  459. package/node_modules/lodash/_baseIsMatch.js +62 -0
  460. package/node_modules/lodash/_baseIsNaN.js +12 -0
  461. package/node_modules/lodash/_baseIsNative.js +47 -0
  462. package/node_modules/lodash/_baseIsRegExp.js +18 -0
  463. package/node_modules/lodash/_baseIsSet.js +18 -0
  464. package/node_modules/lodash/_baseIsTypedArray.js +60 -0
  465. package/node_modules/lodash/_baseIteratee.js +31 -0
  466. package/node_modules/lodash/_baseKeys.js +30 -0
  467. package/node_modules/lodash/_baseKeysIn.js +33 -0
  468. package/node_modules/lodash/_baseLodash.js +10 -0
  469. package/node_modules/lodash/_baseLt.js +14 -0
  470. package/node_modules/lodash/_baseMap.js +22 -0
  471. package/node_modules/lodash/_baseMatches.js +22 -0
  472. package/node_modules/lodash/_baseMatchesProperty.js +33 -0
  473. package/node_modules/lodash/_baseMean.js +20 -0
  474. package/node_modules/lodash/_baseMerge.js +42 -0
  475. package/node_modules/lodash/_baseMergeDeep.js +94 -0
  476. package/node_modules/lodash/_baseNth.js +20 -0
  477. package/node_modules/lodash/_baseOrderBy.js +49 -0
  478. package/node_modules/lodash/_basePick.js +19 -0
  479. package/node_modules/lodash/_basePickBy.js +30 -0
  480. package/node_modules/lodash/_baseProperty.js +14 -0
  481. package/node_modules/lodash/_basePropertyDeep.js +16 -0
  482. package/node_modules/lodash/_basePropertyOf.js +14 -0
  483. package/node_modules/lodash/_basePullAll.js +51 -0
  484. package/node_modules/lodash/_basePullAt.js +37 -0
  485. package/node_modules/lodash/_baseRandom.js +18 -0
  486. package/node_modules/lodash/_baseRange.js +28 -0
  487. package/node_modules/lodash/_baseReduce.js +23 -0
  488. package/node_modules/lodash/_baseRepeat.js +35 -0
  489. package/node_modules/lodash/_baseRest.js +17 -0
  490. package/node_modules/lodash/_baseSample.js +15 -0
  491. package/node_modules/lodash/_baseSampleSize.js +18 -0
  492. package/node_modules/lodash/_baseSet.js +51 -0
  493. package/node_modules/lodash/_baseSetData.js +17 -0
  494. package/node_modules/lodash/_baseSetToString.js +22 -0
  495. package/node_modules/lodash/_baseShuffle.js +15 -0
  496. package/node_modules/lodash/_baseSlice.js +31 -0
  497. package/node_modules/lodash/_baseSome.js +22 -0
  498. package/node_modules/lodash/_baseSortBy.js +21 -0
  499. package/node_modules/lodash/_baseSortedIndex.js +42 -0
  500. package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
  501. package/node_modules/lodash/_baseSortedUniq.js +30 -0
  502. package/node_modules/lodash/_baseSum.js +24 -0
  503. package/node_modules/lodash/_baseTimes.js +20 -0
  504. package/node_modules/lodash/_baseToNumber.js +24 -0
  505. package/node_modules/lodash/_baseToPairs.js +18 -0
  506. package/node_modules/lodash/_baseToString.js +37 -0
  507. package/node_modules/lodash/_baseTrim.js +19 -0
  508. package/node_modules/lodash/_baseUnary.js +14 -0
  509. package/node_modules/lodash/_baseUniq.js +72 -0
  510. package/node_modules/lodash/_baseUnset.js +52 -0
  511. package/node_modules/lodash/_baseUpdate.js +18 -0
  512. package/node_modules/lodash/_baseValues.js +19 -0
  513. package/node_modules/lodash/_baseWhile.js +26 -0
  514. package/node_modules/lodash/_baseWrapperValue.js +25 -0
  515. package/node_modules/lodash/_baseXor.js +36 -0
  516. package/node_modules/lodash/_baseZipObject.js +23 -0
  517. package/node_modules/lodash/_cacheHas.js +13 -0
  518. package/node_modules/lodash/_castArrayLikeObject.js +14 -0
  519. package/node_modules/lodash/_castFunction.js +14 -0
  520. package/node_modules/lodash/_castPath.js +21 -0
  521. package/node_modules/lodash/_castRest.js +14 -0
  522. package/node_modules/lodash/_castSlice.js +18 -0
  523. package/node_modules/lodash/_charsEndIndex.js +19 -0
  524. package/node_modules/lodash/_charsStartIndex.js +20 -0
  525. package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  526. package/node_modules/lodash/_cloneBuffer.js +35 -0
  527. package/node_modules/lodash/_cloneDataView.js +16 -0
  528. package/node_modules/lodash/_cloneRegExp.js +17 -0
  529. package/node_modules/lodash/_cloneSymbol.js +18 -0
  530. package/node_modules/lodash/_cloneTypedArray.js +16 -0
  531. package/node_modules/lodash/_compareAscending.js +41 -0
  532. package/node_modules/lodash/_compareMultiple.js +44 -0
  533. package/node_modules/lodash/_composeArgs.js +39 -0
  534. package/node_modules/lodash/_composeArgsRight.js +41 -0
  535. package/node_modules/lodash/_copyArray.js +20 -0
  536. package/node_modules/lodash/_copyObject.js +40 -0
  537. package/node_modules/lodash/_copySymbols.js +16 -0
  538. package/node_modules/lodash/_copySymbolsIn.js +16 -0
  539. package/node_modules/lodash/_coreJsData.js +6 -0
  540. package/node_modules/lodash/_countHolders.js +21 -0
  541. package/node_modules/lodash/_createAggregator.js +23 -0
  542. package/node_modules/lodash/_createAssigner.js +37 -0
  543. package/node_modules/lodash/_createBaseEach.js +32 -0
  544. package/node_modules/lodash/_createBaseFor.js +25 -0
  545. package/node_modules/lodash/_createBind.js +28 -0
  546. package/node_modules/lodash/_createCaseFirst.js +33 -0
  547. package/node_modules/lodash/_createCompounder.js +24 -0
  548. package/node_modules/lodash/_createCtor.js +37 -0
  549. package/node_modules/lodash/_createCurry.js +46 -0
  550. package/node_modules/lodash/_createFind.js +25 -0
  551. package/node_modules/lodash/_createFlow.js +78 -0
  552. package/node_modules/lodash/_createHybrid.js +92 -0
  553. package/node_modules/lodash/_createInverter.js +17 -0
  554. package/node_modules/lodash/_createMathOperation.js +38 -0
  555. package/node_modules/lodash/_createOver.js +27 -0
  556. package/node_modules/lodash/_createPadding.js +33 -0
  557. package/node_modules/lodash/_createPartial.js +43 -0
  558. package/node_modules/lodash/_createRange.js +30 -0
  559. package/node_modules/lodash/_createRecurry.js +56 -0
  560. package/node_modules/lodash/_createRelationalOperation.js +20 -0
  561. package/node_modules/lodash/_createRound.js +35 -0
  562. package/node_modules/lodash/_createSet.js +19 -0
  563. package/node_modules/lodash/_createToPairs.js +30 -0
  564. package/node_modules/lodash/_createWrap.js +106 -0
  565. package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
  566. package/node_modules/lodash/_customDefaultsMerge.js +28 -0
  567. package/node_modules/lodash/_customOmitClone.js +16 -0
  568. package/node_modules/lodash/_deburrLetter.js +71 -0
  569. package/node_modules/lodash/_defineProperty.js +11 -0
  570. package/node_modules/lodash/_equalArrays.js +84 -0
  571. package/node_modules/lodash/_equalByTag.js +112 -0
  572. package/node_modules/lodash/_equalObjects.js +90 -0
  573. package/node_modules/lodash/_escapeHtmlChar.js +21 -0
  574. package/node_modules/lodash/_escapeStringChar.js +22 -0
  575. package/node_modules/lodash/_flatRest.js +16 -0
  576. package/node_modules/lodash/_freeGlobal.js +4 -0
  577. package/node_modules/lodash/_getAllKeys.js +16 -0
  578. package/node_modules/lodash/_getAllKeysIn.js +17 -0
  579. package/node_modules/lodash/_getData.js +15 -0
  580. package/node_modules/lodash/_getFuncName.js +31 -0
  581. package/node_modules/lodash/_getHolder.js +13 -0
  582. package/node_modules/lodash/_getMapData.js +18 -0
  583. package/node_modules/lodash/_getMatchData.js +24 -0
  584. package/node_modules/lodash/_getNative.js +17 -0
  585. package/node_modules/lodash/_getPrototype.js +6 -0
  586. package/node_modules/lodash/_getRawTag.js +46 -0
  587. package/node_modules/lodash/_getSymbols.js +30 -0
  588. package/node_modules/lodash/_getSymbolsIn.js +25 -0
  589. package/node_modules/lodash/_getTag.js +58 -0
  590. package/node_modules/lodash/_getValue.js +13 -0
  591. package/node_modules/lodash/_getView.js +33 -0
  592. package/node_modules/lodash/_getWrapDetails.js +17 -0
  593. package/node_modules/lodash/_hasPath.js +39 -0
  594. package/node_modules/lodash/_hasUnicode.js +26 -0
  595. package/node_modules/lodash/_hasUnicodeWord.js +15 -0
  596. package/node_modules/lodash/_hashClear.js +15 -0
  597. package/node_modules/lodash/_hashDelete.js +17 -0
  598. package/node_modules/lodash/_hashGet.js +30 -0
  599. package/node_modules/lodash/_hashHas.js +23 -0
  600. package/node_modules/lodash/_hashSet.js +23 -0
  601. package/node_modules/lodash/_initCloneArray.js +26 -0
  602. package/node_modules/lodash/_initCloneByTag.js +77 -0
  603. package/node_modules/lodash/_initCloneObject.js +18 -0
  604. package/node_modules/lodash/_insertWrapDetails.js +23 -0
  605. package/node_modules/lodash/_isFlattenable.js +20 -0
  606. package/node_modules/lodash/_isIndex.js +25 -0
  607. package/node_modules/lodash/_isIterateeCall.js +30 -0
  608. package/node_modules/lodash/_isKey.js +29 -0
  609. package/node_modules/lodash/_isKeyable.js +15 -0
  610. package/node_modules/lodash/_isLaziable.js +28 -0
  611. package/node_modules/lodash/_isMaskable.js +14 -0
  612. package/node_modules/lodash/_isMasked.js +20 -0
  613. package/node_modules/lodash/_isPrototype.js +18 -0
  614. package/node_modules/lodash/_isStrictComparable.js +15 -0
  615. package/node_modules/lodash/_iteratorToArray.js +18 -0
  616. package/node_modules/lodash/_lazyClone.js +23 -0
  617. package/node_modules/lodash/_lazyReverse.js +23 -0
  618. package/node_modules/lodash/_lazyValue.js +69 -0
  619. package/node_modules/lodash/_listCacheClear.js +13 -0
  620. package/node_modules/lodash/_listCacheDelete.js +35 -0
  621. package/node_modules/lodash/_listCacheGet.js +19 -0
  622. package/node_modules/lodash/_listCacheHas.js +16 -0
  623. package/node_modules/lodash/_listCacheSet.js +26 -0
  624. package/node_modules/lodash/_mapCacheClear.js +21 -0
  625. package/node_modules/lodash/_mapCacheDelete.js +18 -0
  626. package/node_modules/lodash/_mapCacheGet.js +16 -0
  627. package/node_modules/lodash/_mapCacheHas.js +16 -0
  628. package/node_modules/lodash/_mapCacheSet.js +22 -0
  629. package/node_modules/lodash/_mapToArray.js +18 -0
  630. package/node_modules/lodash/_matchesStrictComparable.js +20 -0
  631. package/node_modules/lodash/_memoizeCapped.js +26 -0
  632. package/node_modules/lodash/_mergeData.js +90 -0
  633. package/node_modules/lodash/_metaMap.js +6 -0
  634. package/node_modules/lodash/_nativeCreate.js +6 -0
  635. package/node_modules/lodash/_nativeKeys.js +6 -0
  636. package/node_modules/lodash/_nativeKeysIn.js +20 -0
  637. package/node_modules/lodash/_nodeUtil.js +30 -0
  638. package/node_modules/lodash/_objectToString.js +22 -0
  639. package/node_modules/lodash/_overArg.js +15 -0
  640. package/node_modules/lodash/_overRest.js +36 -0
  641. package/node_modules/lodash/_parent.js +16 -0
  642. package/node_modules/lodash/_reEscape.js +4 -0
  643. package/node_modules/lodash/_reEvaluate.js +4 -0
  644. package/node_modules/lodash/_reInterpolate.js +4 -0
  645. package/node_modules/lodash/_realNames.js +4 -0
  646. package/node_modules/lodash/_reorder.js +29 -0
  647. package/node_modules/lodash/_replaceHolders.js +29 -0
  648. package/node_modules/lodash/_root.js +9 -0
  649. package/node_modules/lodash/_safeGet.js +21 -0
  650. package/node_modules/lodash/_setCacheAdd.js +19 -0
  651. package/node_modules/lodash/_setCacheHas.js +14 -0
  652. package/node_modules/lodash/_setData.js +20 -0
  653. package/node_modules/lodash/_setToArray.js +18 -0
  654. package/node_modules/lodash/_setToPairs.js +18 -0
  655. package/node_modules/lodash/_setToString.js +14 -0
  656. package/node_modules/lodash/_setWrapToString.js +21 -0
  657. package/node_modules/lodash/_shortOut.js +37 -0
  658. package/node_modules/lodash/_shuffleSelf.js +28 -0
  659. package/node_modules/lodash/_stackClear.js +15 -0
  660. package/node_modules/lodash/_stackDelete.js +18 -0
  661. package/node_modules/lodash/_stackGet.js +14 -0
  662. package/node_modules/lodash/_stackHas.js +14 -0
  663. package/node_modules/lodash/_stackSet.js +34 -0
  664. package/node_modules/lodash/_strictIndexOf.js +23 -0
  665. package/node_modules/lodash/_strictLastIndexOf.js +21 -0
  666. package/node_modules/lodash/_stringSize.js +18 -0
  667. package/node_modules/lodash/_stringToArray.js +18 -0
  668. package/node_modules/lodash/_stringToPath.js +27 -0
  669. package/node_modules/lodash/_toKey.js +21 -0
  670. package/node_modules/lodash/_toSource.js +26 -0
  671. package/node_modules/lodash/_trimmedEndIndex.js +19 -0
  672. package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
  673. package/node_modules/lodash/_unicodeSize.js +44 -0
  674. package/node_modules/lodash/_unicodeToArray.js +40 -0
  675. package/node_modules/lodash/_unicodeWords.js +69 -0
  676. package/node_modules/lodash/_updateWrapDetails.js +46 -0
  677. package/node_modules/lodash/_wrapperClone.js +23 -0
  678. package/node_modules/lodash/add.js +22 -0
  679. package/node_modules/lodash/after.js +42 -0
  680. package/node_modules/lodash/array.js +67 -0
  681. package/node_modules/lodash/ary.js +29 -0
  682. package/node_modules/lodash/assign.js +58 -0
  683. package/node_modules/lodash/assignIn.js +40 -0
  684. package/node_modules/lodash/assignInWith.js +38 -0
  685. package/node_modules/lodash/assignWith.js +37 -0
  686. package/node_modules/lodash/at.js +23 -0
  687. package/node_modules/lodash/attempt.js +35 -0
  688. package/node_modules/lodash/before.js +40 -0
  689. package/node_modules/lodash/bind.js +57 -0
  690. package/node_modules/lodash/bindAll.js +41 -0
  691. package/node_modules/lodash/bindKey.js +68 -0
  692. package/node_modules/lodash/camelCase.js +29 -0
  693. package/node_modules/lodash/capitalize.js +23 -0
  694. package/node_modules/lodash/castArray.js +44 -0
  695. package/node_modules/lodash/ceil.js +26 -0
  696. package/node_modules/lodash/chain.js +38 -0
  697. package/node_modules/lodash/chunk.js +50 -0
  698. package/node_modules/lodash/clamp.js +39 -0
  699. package/node_modules/lodash/clone.js +36 -0
  700. package/node_modules/lodash/cloneDeep.js +29 -0
  701. package/node_modules/lodash/cloneDeepWith.js +40 -0
  702. package/node_modules/lodash/cloneWith.js +42 -0
  703. package/node_modules/lodash/collection.js +30 -0
  704. package/node_modules/lodash/commit.js +33 -0
  705. package/node_modules/lodash/compact.js +31 -0
  706. package/node_modules/lodash/concat.js +43 -0
  707. package/node_modules/lodash/cond.js +60 -0
  708. package/node_modules/lodash/conforms.js +35 -0
  709. package/node_modules/lodash/conformsTo.js +32 -0
  710. package/node_modules/lodash/constant.js +26 -0
  711. package/node_modules/lodash/core.js +3877 -0
  712. package/node_modules/lodash/core.min.js +30 -0
  713. package/node_modules/lodash/countBy.js +40 -0
  714. package/node_modules/lodash/create.js +43 -0
  715. package/node_modules/lodash/curry.js +57 -0
  716. package/node_modules/lodash/curryRight.js +54 -0
  717. package/node_modules/lodash/date.js +3 -0
  718. package/node_modules/lodash/debounce.js +191 -0
  719. package/node_modules/lodash/deburr.js +45 -0
  720. package/node_modules/lodash/defaultTo.js +25 -0
  721. package/node_modules/lodash/defaults.js +64 -0
  722. package/node_modules/lodash/defaultsDeep.js +30 -0
  723. package/node_modules/lodash/defer.js +26 -0
  724. package/node_modules/lodash/delay.js +28 -0
  725. package/node_modules/lodash/difference.js +33 -0
  726. package/node_modules/lodash/differenceBy.js +44 -0
  727. package/node_modules/lodash/differenceWith.js +40 -0
  728. package/node_modules/lodash/divide.js +22 -0
  729. package/node_modules/lodash/drop.js +38 -0
  730. package/node_modules/lodash/dropRight.js +39 -0
  731. package/node_modules/lodash/dropRightWhile.js +45 -0
  732. package/node_modules/lodash/dropWhile.js +45 -0
  733. package/node_modules/lodash/each.js +1 -0
  734. package/node_modules/lodash/eachRight.js +1 -0
  735. package/node_modules/lodash/endsWith.js +43 -0
  736. package/node_modules/lodash/entries.js +1 -0
  737. package/node_modules/lodash/entriesIn.js +1 -0
  738. package/node_modules/lodash/eq.js +37 -0
  739. package/node_modules/lodash/escape.js +43 -0
  740. package/node_modules/lodash/escapeRegExp.js +32 -0
  741. package/node_modules/lodash/every.js +56 -0
  742. package/node_modules/lodash/extend.js +1 -0
  743. package/node_modules/lodash/extendWith.js +1 -0
  744. package/node_modules/lodash/fill.js +45 -0
  745. package/node_modules/lodash/filter.js +52 -0
  746. package/node_modules/lodash/find.js +42 -0
  747. package/node_modules/lodash/findIndex.js +55 -0
  748. package/node_modules/lodash/findKey.js +44 -0
  749. package/node_modules/lodash/findLast.js +25 -0
  750. package/node_modules/lodash/findLastIndex.js +59 -0
  751. package/node_modules/lodash/findLastKey.js +44 -0
  752. package/node_modules/lodash/first.js +1 -0
  753. package/node_modules/lodash/flatMap.js +29 -0
  754. package/node_modules/lodash/flatMapDeep.js +31 -0
  755. package/node_modules/lodash/flatMapDepth.js +31 -0
  756. package/node_modules/lodash/flatten.js +22 -0
  757. package/node_modules/lodash/flattenDeep.js +25 -0
  758. package/node_modules/lodash/flattenDepth.js +33 -0
  759. package/node_modules/lodash/flip.js +28 -0
  760. package/node_modules/lodash/floor.js +26 -0
  761. package/node_modules/lodash/flow.js +27 -0
  762. package/node_modules/lodash/flowRight.js +26 -0
  763. package/node_modules/lodash/forEach.js +41 -0
  764. package/node_modules/lodash/forEachRight.js +31 -0
  765. package/node_modules/lodash/forIn.js +39 -0
  766. package/node_modules/lodash/forInRight.js +37 -0
  767. package/node_modules/lodash/forOwn.js +36 -0
  768. package/node_modules/lodash/forOwnRight.js +34 -0
  769. package/node_modules/lodash/fp/F.js +1 -0
  770. package/node_modules/lodash/fp/T.js +1 -0
  771. package/node_modules/lodash/fp/__.js +1 -0
  772. package/node_modules/lodash/fp/_baseConvert.js +569 -0
  773. package/node_modules/lodash/fp/_convertBrowser.js +18 -0
  774. package/node_modules/lodash/fp/_falseOptions.js +7 -0
  775. package/node_modules/lodash/fp/_mapping.js +358 -0
  776. package/node_modules/lodash/fp/_util.js +16 -0
  777. package/node_modules/lodash/fp/add.js +5 -0
  778. package/node_modules/lodash/fp/after.js +5 -0
  779. package/node_modules/lodash/fp/all.js +1 -0
  780. package/node_modules/lodash/fp/allPass.js +1 -0
  781. package/node_modules/lodash/fp/always.js +1 -0
  782. package/node_modules/lodash/fp/any.js +1 -0
  783. package/node_modules/lodash/fp/anyPass.js +1 -0
  784. package/node_modules/lodash/fp/apply.js +1 -0
  785. package/node_modules/lodash/fp/array.js +2 -0
  786. package/node_modules/lodash/fp/ary.js +5 -0
  787. package/node_modules/lodash/fp/assign.js +5 -0
  788. package/node_modules/lodash/fp/assignAll.js +5 -0
  789. package/node_modules/lodash/fp/assignAllWith.js +5 -0
  790. package/node_modules/lodash/fp/assignIn.js +5 -0
  791. package/node_modules/lodash/fp/assignInAll.js +5 -0
  792. package/node_modules/lodash/fp/assignInAllWith.js +5 -0
  793. package/node_modules/lodash/fp/assignInWith.js +5 -0
  794. package/node_modules/lodash/fp/assignWith.js +5 -0
  795. package/node_modules/lodash/fp/assoc.js +1 -0
  796. package/node_modules/lodash/fp/assocPath.js +1 -0
  797. package/node_modules/lodash/fp/at.js +5 -0
  798. package/node_modules/lodash/fp/attempt.js +5 -0
  799. package/node_modules/lodash/fp/before.js +5 -0
  800. package/node_modules/lodash/fp/bind.js +5 -0
  801. package/node_modules/lodash/fp/bindAll.js +5 -0
  802. package/node_modules/lodash/fp/bindKey.js +5 -0
  803. package/node_modules/lodash/fp/camelCase.js +5 -0
  804. package/node_modules/lodash/fp/capitalize.js +5 -0
  805. package/node_modules/lodash/fp/castArray.js +5 -0
  806. package/node_modules/lodash/fp/ceil.js +5 -0
  807. package/node_modules/lodash/fp/chain.js +5 -0
  808. package/node_modules/lodash/fp/chunk.js +5 -0
  809. package/node_modules/lodash/fp/clamp.js +5 -0
  810. package/node_modules/lodash/fp/clone.js +5 -0
  811. package/node_modules/lodash/fp/cloneDeep.js +5 -0
  812. package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
  813. package/node_modules/lodash/fp/cloneWith.js +5 -0
  814. package/node_modules/lodash/fp/collection.js +2 -0
  815. package/node_modules/lodash/fp/commit.js +5 -0
  816. package/node_modules/lodash/fp/compact.js +5 -0
  817. package/node_modules/lodash/fp/complement.js +1 -0
  818. package/node_modules/lodash/fp/compose.js +1 -0
  819. package/node_modules/lodash/fp/concat.js +5 -0
  820. package/node_modules/lodash/fp/cond.js +5 -0
  821. package/node_modules/lodash/fp/conforms.js +1 -0
  822. package/node_modules/lodash/fp/conformsTo.js +5 -0
  823. package/node_modules/lodash/fp/constant.js +5 -0
  824. package/node_modules/lodash/fp/contains.js +1 -0
  825. package/node_modules/lodash/fp/convert.js +18 -0
  826. package/node_modules/lodash/fp/countBy.js +5 -0
  827. package/node_modules/lodash/fp/create.js +5 -0
  828. package/node_modules/lodash/fp/curry.js +5 -0
  829. package/node_modules/lodash/fp/curryN.js +5 -0
  830. package/node_modules/lodash/fp/curryRight.js +5 -0
  831. package/node_modules/lodash/fp/curryRightN.js +5 -0
  832. package/node_modules/lodash/fp/date.js +2 -0
  833. package/node_modules/lodash/fp/debounce.js +5 -0
  834. package/node_modules/lodash/fp/deburr.js +5 -0
  835. package/node_modules/lodash/fp/defaultTo.js +5 -0
  836. package/node_modules/lodash/fp/defaults.js +5 -0
  837. package/node_modules/lodash/fp/defaultsAll.js +5 -0
  838. package/node_modules/lodash/fp/defaultsDeep.js +5 -0
  839. package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
  840. package/node_modules/lodash/fp/defer.js +5 -0
  841. package/node_modules/lodash/fp/delay.js +5 -0
  842. package/node_modules/lodash/fp/difference.js +5 -0
  843. package/node_modules/lodash/fp/differenceBy.js +5 -0
  844. package/node_modules/lodash/fp/differenceWith.js +5 -0
  845. package/node_modules/lodash/fp/dissoc.js +1 -0
  846. package/node_modules/lodash/fp/dissocPath.js +1 -0
  847. package/node_modules/lodash/fp/divide.js +5 -0
  848. package/node_modules/lodash/fp/drop.js +5 -0
  849. package/node_modules/lodash/fp/dropLast.js +1 -0
  850. package/node_modules/lodash/fp/dropLastWhile.js +1 -0
  851. package/node_modules/lodash/fp/dropRight.js +5 -0
  852. package/node_modules/lodash/fp/dropRightWhile.js +5 -0
  853. package/node_modules/lodash/fp/dropWhile.js +5 -0
  854. package/node_modules/lodash/fp/each.js +1 -0
  855. package/node_modules/lodash/fp/eachRight.js +1 -0
  856. package/node_modules/lodash/fp/endsWith.js +5 -0
  857. package/node_modules/lodash/fp/entries.js +1 -0
  858. package/node_modules/lodash/fp/entriesIn.js +1 -0
  859. package/node_modules/lodash/fp/eq.js +5 -0
  860. package/node_modules/lodash/fp/equals.js +1 -0
  861. package/node_modules/lodash/fp/escape.js +5 -0
  862. package/node_modules/lodash/fp/escapeRegExp.js +5 -0
  863. package/node_modules/lodash/fp/every.js +5 -0
  864. package/node_modules/lodash/fp/extend.js +1 -0
  865. package/node_modules/lodash/fp/extendAll.js +1 -0
  866. package/node_modules/lodash/fp/extendAllWith.js +1 -0
  867. package/node_modules/lodash/fp/extendWith.js +1 -0
  868. package/node_modules/lodash/fp/fill.js +5 -0
  869. package/node_modules/lodash/fp/filter.js +5 -0
  870. package/node_modules/lodash/fp/find.js +5 -0
  871. package/node_modules/lodash/fp/findFrom.js +5 -0
  872. package/node_modules/lodash/fp/findIndex.js +5 -0
  873. package/node_modules/lodash/fp/findIndexFrom.js +5 -0
  874. package/node_modules/lodash/fp/findKey.js +5 -0
  875. package/node_modules/lodash/fp/findLast.js +5 -0
  876. package/node_modules/lodash/fp/findLastFrom.js +5 -0
  877. package/node_modules/lodash/fp/findLastIndex.js +5 -0
  878. package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
  879. package/node_modules/lodash/fp/findLastKey.js +5 -0
  880. package/node_modules/lodash/fp/first.js +1 -0
  881. package/node_modules/lodash/fp/flatMap.js +5 -0
  882. package/node_modules/lodash/fp/flatMapDeep.js +5 -0
  883. package/node_modules/lodash/fp/flatMapDepth.js +5 -0
  884. package/node_modules/lodash/fp/flatten.js +5 -0
  885. package/node_modules/lodash/fp/flattenDeep.js +5 -0
  886. package/node_modules/lodash/fp/flattenDepth.js +5 -0
  887. package/node_modules/lodash/fp/flip.js +5 -0
  888. package/node_modules/lodash/fp/floor.js +5 -0
  889. package/node_modules/lodash/fp/flow.js +5 -0
  890. package/node_modules/lodash/fp/flowRight.js +5 -0
  891. package/node_modules/lodash/fp/forEach.js +5 -0
  892. package/node_modules/lodash/fp/forEachRight.js +5 -0
  893. package/node_modules/lodash/fp/forIn.js +5 -0
  894. package/node_modules/lodash/fp/forInRight.js +5 -0
  895. package/node_modules/lodash/fp/forOwn.js +5 -0
  896. package/node_modules/lodash/fp/forOwnRight.js +5 -0
  897. package/node_modules/lodash/fp/fromPairs.js +5 -0
  898. package/node_modules/lodash/fp/function.js +2 -0
  899. package/node_modules/lodash/fp/functions.js +5 -0
  900. package/node_modules/lodash/fp/functionsIn.js +5 -0
  901. package/node_modules/lodash/fp/get.js +5 -0
  902. package/node_modules/lodash/fp/getOr.js +5 -0
  903. package/node_modules/lodash/fp/groupBy.js +5 -0
  904. package/node_modules/lodash/fp/gt.js +5 -0
  905. package/node_modules/lodash/fp/gte.js +5 -0
  906. package/node_modules/lodash/fp/has.js +5 -0
  907. package/node_modules/lodash/fp/hasIn.js +5 -0
  908. package/node_modules/lodash/fp/head.js +5 -0
  909. package/node_modules/lodash/fp/identical.js +1 -0
  910. package/node_modules/lodash/fp/identity.js +5 -0
  911. package/node_modules/lodash/fp/inRange.js +5 -0
  912. package/node_modules/lodash/fp/includes.js +5 -0
  913. package/node_modules/lodash/fp/includesFrom.js +5 -0
  914. package/node_modules/lodash/fp/indexBy.js +1 -0
  915. package/node_modules/lodash/fp/indexOf.js +5 -0
  916. package/node_modules/lodash/fp/indexOfFrom.js +5 -0
  917. package/node_modules/lodash/fp/init.js +1 -0
  918. package/node_modules/lodash/fp/initial.js +5 -0
  919. package/node_modules/lodash/fp/intersection.js +5 -0
  920. package/node_modules/lodash/fp/intersectionBy.js +5 -0
  921. package/node_modules/lodash/fp/intersectionWith.js +5 -0
  922. package/node_modules/lodash/fp/invert.js +5 -0
  923. package/node_modules/lodash/fp/invertBy.js +5 -0
  924. package/node_modules/lodash/fp/invertObj.js +1 -0
  925. package/node_modules/lodash/fp/invoke.js +5 -0
  926. package/node_modules/lodash/fp/invokeArgs.js +5 -0
  927. package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
  928. package/node_modules/lodash/fp/invokeMap.js +5 -0
  929. package/node_modules/lodash/fp/isArguments.js +5 -0
  930. package/node_modules/lodash/fp/isArray.js +5 -0
  931. package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
  932. package/node_modules/lodash/fp/isArrayLike.js +5 -0
  933. package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
  934. package/node_modules/lodash/fp/isBoolean.js +5 -0
  935. package/node_modules/lodash/fp/isBuffer.js +5 -0
  936. package/node_modules/lodash/fp/isDate.js +5 -0
  937. package/node_modules/lodash/fp/isElement.js +5 -0
  938. package/node_modules/lodash/fp/isEmpty.js +5 -0
  939. package/node_modules/lodash/fp/isEqual.js +5 -0
  940. package/node_modules/lodash/fp/isEqualWith.js +5 -0
  941. package/node_modules/lodash/fp/isError.js +5 -0
  942. package/node_modules/lodash/fp/isFinite.js +5 -0
  943. package/node_modules/lodash/fp/isFunction.js +5 -0
  944. package/node_modules/lodash/fp/isInteger.js +5 -0
  945. package/node_modules/lodash/fp/isLength.js +5 -0
  946. package/node_modules/lodash/fp/isMap.js +5 -0
  947. package/node_modules/lodash/fp/isMatch.js +5 -0
  948. package/node_modules/lodash/fp/isMatchWith.js +5 -0
  949. package/node_modules/lodash/fp/isNaN.js +5 -0
  950. package/node_modules/lodash/fp/isNative.js +5 -0
  951. package/node_modules/lodash/fp/isNil.js +5 -0
  952. package/node_modules/lodash/fp/isNull.js +5 -0
  953. package/node_modules/lodash/fp/isNumber.js +5 -0
  954. package/node_modules/lodash/fp/isObject.js +5 -0
  955. package/node_modules/lodash/fp/isObjectLike.js +5 -0
  956. package/node_modules/lodash/fp/isPlainObject.js +5 -0
  957. package/node_modules/lodash/fp/isRegExp.js +5 -0
  958. package/node_modules/lodash/fp/isSafeInteger.js +5 -0
  959. package/node_modules/lodash/fp/isSet.js +5 -0
  960. package/node_modules/lodash/fp/isString.js +5 -0
  961. package/node_modules/lodash/fp/isSymbol.js +5 -0
  962. package/node_modules/lodash/fp/isTypedArray.js +5 -0
  963. package/node_modules/lodash/fp/isUndefined.js +5 -0
  964. package/node_modules/lodash/fp/isWeakMap.js +5 -0
  965. package/node_modules/lodash/fp/isWeakSet.js +5 -0
  966. package/node_modules/lodash/fp/iteratee.js +5 -0
  967. package/node_modules/lodash/fp/join.js +5 -0
  968. package/node_modules/lodash/fp/juxt.js +1 -0
  969. package/node_modules/lodash/fp/kebabCase.js +5 -0
  970. package/node_modules/lodash/fp/keyBy.js +5 -0
  971. package/node_modules/lodash/fp/keys.js +5 -0
  972. package/node_modules/lodash/fp/keysIn.js +5 -0
  973. package/node_modules/lodash/fp/lang.js +2 -0
  974. package/node_modules/lodash/fp/last.js +5 -0
  975. package/node_modules/lodash/fp/lastIndexOf.js +5 -0
  976. package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
  977. package/node_modules/lodash/fp/lowerCase.js +5 -0
  978. package/node_modules/lodash/fp/lowerFirst.js +5 -0
  979. package/node_modules/lodash/fp/lt.js +5 -0
  980. package/node_modules/lodash/fp/lte.js +5 -0
  981. package/node_modules/lodash/fp/map.js +5 -0
  982. package/node_modules/lodash/fp/mapKeys.js +5 -0
  983. package/node_modules/lodash/fp/mapValues.js +5 -0
  984. package/node_modules/lodash/fp/matches.js +1 -0
  985. package/node_modules/lodash/fp/matchesProperty.js +5 -0
  986. package/node_modules/lodash/fp/math.js +2 -0
  987. package/node_modules/lodash/fp/max.js +5 -0
  988. package/node_modules/lodash/fp/maxBy.js +5 -0
  989. package/node_modules/lodash/fp/mean.js +5 -0
  990. package/node_modules/lodash/fp/meanBy.js +5 -0
  991. package/node_modules/lodash/fp/memoize.js +5 -0
  992. package/node_modules/lodash/fp/merge.js +5 -0
  993. package/node_modules/lodash/fp/mergeAll.js +5 -0
  994. package/node_modules/lodash/fp/mergeAllWith.js +5 -0
  995. package/node_modules/lodash/fp/mergeWith.js +5 -0
  996. package/node_modules/lodash/fp/method.js +5 -0
  997. package/node_modules/lodash/fp/methodOf.js +5 -0
  998. package/node_modules/lodash/fp/min.js +5 -0
  999. package/node_modules/lodash/fp/minBy.js +5 -0
  1000. package/node_modules/lodash/fp/mixin.js +5 -0
  1001. package/node_modules/lodash/fp/multiply.js +5 -0
  1002. package/node_modules/lodash/fp/nAry.js +1 -0
  1003. package/node_modules/lodash/fp/negate.js +5 -0
  1004. package/node_modules/lodash/fp/next.js +5 -0
  1005. package/node_modules/lodash/fp/noop.js +5 -0
  1006. package/node_modules/lodash/fp/now.js +5 -0
  1007. package/node_modules/lodash/fp/nth.js +5 -0
  1008. package/node_modules/lodash/fp/nthArg.js +5 -0
  1009. package/node_modules/lodash/fp/number.js +2 -0
  1010. package/node_modules/lodash/fp/object.js +2 -0
  1011. package/node_modules/lodash/fp/omit.js +5 -0
  1012. package/node_modules/lodash/fp/omitAll.js +1 -0
  1013. package/node_modules/lodash/fp/omitBy.js +5 -0
  1014. package/node_modules/lodash/fp/once.js +5 -0
  1015. package/node_modules/lodash/fp/orderBy.js +5 -0
  1016. package/node_modules/lodash/fp/over.js +5 -0
  1017. package/node_modules/lodash/fp/overArgs.js +5 -0
  1018. package/node_modules/lodash/fp/overEvery.js +5 -0
  1019. package/node_modules/lodash/fp/overSome.js +5 -0
  1020. package/node_modules/lodash/fp/pad.js +5 -0
  1021. package/node_modules/lodash/fp/padChars.js +5 -0
  1022. package/node_modules/lodash/fp/padCharsEnd.js +5 -0
  1023. package/node_modules/lodash/fp/padCharsStart.js +5 -0
  1024. package/node_modules/lodash/fp/padEnd.js +5 -0
  1025. package/node_modules/lodash/fp/padStart.js +5 -0
  1026. package/node_modules/lodash/fp/parseInt.js +5 -0
  1027. package/node_modules/lodash/fp/partial.js +5 -0
  1028. package/node_modules/lodash/fp/partialRight.js +5 -0
  1029. package/node_modules/lodash/fp/partition.js +5 -0
  1030. package/node_modules/lodash/fp/path.js +1 -0
  1031. package/node_modules/lodash/fp/pathEq.js +1 -0
  1032. package/node_modules/lodash/fp/pathOr.js +1 -0
  1033. package/node_modules/lodash/fp/paths.js +1 -0
  1034. package/node_modules/lodash/fp/pick.js +5 -0
  1035. package/node_modules/lodash/fp/pickAll.js +1 -0
  1036. package/node_modules/lodash/fp/pickBy.js +5 -0
  1037. package/node_modules/lodash/fp/pipe.js +1 -0
  1038. package/node_modules/lodash/fp/placeholder.js +6 -0
  1039. package/node_modules/lodash/fp/plant.js +5 -0
  1040. package/node_modules/lodash/fp/pluck.js +1 -0
  1041. package/node_modules/lodash/fp/prop.js +1 -0
  1042. package/node_modules/lodash/fp/propEq.js +1 -0
  1043. package/node_modules/lodash/fp/propOr.js +1 -0
  1044. package/node_modules/lodash/fp/property.js +1 -0
  1045. package/node_modules/lodash/fp/propertyOf.js +5 -0
  1046. package/node_modules/lodash/fp/props.js +1 -0
  1047. package/node_modules/lodash/fp/pull.js +5 -0
  1048. package/node_modules/lodash/fp/pullAll.js +5 -0
  1049. package/node_modules/lodash/fp/pullAllBy.js +5 -0
  1050. package/node_modules/lodash/fp/pullAllWith.js +5 -0
  1051. package/node_modules/lodash/fp/pullAt.js +5 -0
  1052. package/node_modules/lodash/fp/random.js +5 -0
  1053. package/node_modules/lodash/fp/range.js +5 -0
  1054. package/node_modules/lodash/fp/rangeRight.js +5 -0
  1055. package/node_modules/lodash/fp/rangeStep.js +5 -0
  1056. package/node_modules/lodash/fp/rangeStepRight.js +5 -0
  1057. package/node_modules/lodash/fp/rearg.js +5 -0
  1058. package/node_modules/lodash/fp/reduce.js +5 -0
  1059. package/node_modules/lodash/fp/reduceRight.js +5 -0
  1060. package/node_modules/lodash/fp/reject.js +5 -0
  1061. package/node_modules/lodash/fp/remove.js +5 -0
  1062. package/node_modules/lodash/fp/repeat.js +5 -0
  1063. package/node_modules/lodash/fp/replace.js +5 -0
  1064. package/node_modules/lodash/fp/rest.js +5 -0
  1065. package/node_modules/lodash/fp/restFrom.js +5 -0
  1066. package/node_modules/lodash/fp/result.js +5 -0
  1067. package/node_modules/lodash/fp/reverse.js +5 -0
  1068. package/node_modules/lodash/fp/round.js +5 -0
  1069. package/node_modules/lodash/fp/sample.js +5 -0
  1070. package/node_modules/lodash/fp/sampleSize.js +5 -0
  1071. package/node_modules/lodash/fp/seq.js +2 -0
  1072. package/node_modules/lodash/fp/set.js +5 -0
  1073. package/node_modules/lodash/fp/setWith.js +5 -0
  1074. package/node_modules/lodash/fp/shuffle.js +5 -0
  1075. package/node_modules/lodash/fp/size.js +5 -0
  1076. package/node_modules/lodash/fp/slice.js +5 -0
  1077. package/node_modules/lodash/fp/snakeCase.js +5 -0
  1078. package/node_modules/lodash/fp/some.js +5 -0
  1079. package/node_modules/lodash/fp/sortBy.js +5 -0
  1080. package/node_modules/lodash/fp/sortedIndex.js +5 -0
  1081. package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
  1082. package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
  1083. package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
  1084. package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
  1085. package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
  1086. package/node_modules/lodash/fp/sortedUniq.js +5 -0
  1087. package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
  1088. package/node_modules/lodash/fp/split.js +5 -0
  1089. package/node_modules/lodash/fp/spread.js +5 -0
  1090. package/node_modules/lodash/fp/spreadFrom.js +5 -0
  1091. package/node_modules/lodash/fp/startCase.js +5 -0
  1092. package/node_modules/lodash/fp/startsWith.js +5 -0
  1093. package/node_modules/lodash/fp/string.js +2 -0
  1094. package/node_modules/lodash/fp/stubArray.js +5 -0
  1095. package/node_modules/lodash/fp/stubFalse.js +5 -0
  1096. package/node_modules/lodash/fp/stubObject.js +5 -0
  1097. package/node_modules/lodash/fp/stubString.js +5 -0
  1098. package/node_modules/lodash/fp/stubTrue.js +5 -0
  1099. package/node_modules/lodash/fp/subtract.js +5 -0
  1100. package/node_modules/lodash/fp/sum.js +5 -0
  1101. package/node_modules/lodash/fp/sumBy.js +5 -0
  1102. package/node_modules/lodash/fp/symmetricDifference.js +1 -0
  1103. package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
  1104. package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
  1105. package/node_modules/lodash/fp/tail.js +5 -0
  1106. package/node_modules/lodash/fp/take.js +5 -0
  1107. package/node_modules/lodash/fp/takeLast.js +1 -0
  1108. package/node_modules/lodash/fp/takeLastWhile.js +1 -0
  1109. package/node_modules/lodash/fp/takeRight.js +5 -0
  1110. package/node_modules/lodash/fp/takeRightWhile.js +5 -0
  1111. package/node_modules/lodash/fp/takeWhile.js +5 -0
  1112. package/node_modules/lodash/fp/tap.js +5 -0
  1113. package/node_modules/lodash/fp/template.js +5 -0
  1114. package/node_modules/lodash/fp/templateSettings.js +5 -0
  1115. package/node_modules/lodash/fp/throttle.js +5 -0
  1116. package/node_modules/lodash/fp/thru.js +5 -0
  1117. package/node_modules/lodash/fp/times.js +5 -0
  1118. package/node_modules/lodash/fp/toArray.js +5 -0
  1119. package/node_modules/lodash/fp/toFinite.js +5 -0
  1120. package/node_modules/lodash/fp/toInteger.js +5 -0
  1121. package/node_modules/lodash/fp/toIterator.js +5 -0
  1122. package/node_modules/lodash/fp/toJSON.js +5 -0
  1123. package/node_modules/lodash/fp/toLength.js +5 -0
  1124. package/node_modules/lodash/fp/toLower.js +5 -0
  1125. package/node_modules/lodash/fp/toNumber.js +5 -0
  1126. package/node_modules/lodash/fp/toPairs.js +5 -0
  1127. package/node_modules/lodash/fp/toPairsIn.js +5 -0
  1128. package/node_modules/lodash/fp/toPath.js +5 -0
  1129. package/node_modules/lodash/fp/toPlainObject.js +5 -0
  1130. package/node_modules/lodash/fp/toSafeInteger.js +5 -0
  1131. package/node_modules/lodash/fp/toString.js +5 -0
  1132. package/node_modules/lodash/fp/toUpper.js +5 -0
  1133. package/node_modules/lodash/fp/transform.js +5 -0
  1134. package/node_modules/lodash/fp/trim.js +5 -0
  1135. package/node_modules/lodash/fp/trimChars.js +5 -0
  1136. package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
  1137. package/node_modules/lodash/fp/trimCharsStart.js +5 -0
  1138. package/node_modules/lodash/fp/trimEnd.js +5 -0
  1139. package/node_modules/lodash/fp/trimStart.js +5 -0
  1140. package/node_modules/lodash/fp/truncate.js +5 -0
  1141. package/node_modules/lodash/fp/unapply.js +1 -0
  1142. package/node_modules/lodash/fp/unary.js +5 -0
  1143. package/node_modules/lodash/fp/unescape.js +5 -0
  1144. package/node_modules/lodash/fp/union.js +5 -0
  1145. package/node_modules/lodash/fp/unionBy.js +5 -0
  1146. package/node_modules/lodash/fp/unionWith.js +5 -0
  1147. package/node_modules/lodash/fp/uniq.js +5 -0
  1148. package/node_modules/lodash/fp/uniqBy.js +5 -0
  1149. package/node_modules/lodash/fp/uniqWith.js +5 -0
  1150. package/node_modules/lodash/fp/uniqueId.js +5 -0
  1151. package/node_modules/lodash/fp/unnest.js +1 -0
  1152. package/node_modules/lodash/fp/unset.js +5 -0
  1153. package/node_modules/lodash/fp/unzip.js +5 -0
  1154. package/node_modules/lodash/fp/unzipWith.js +5 -0
  1155. package/node_modules/lodash/fp/update.js +5 -0
  1156. package/node_modules/lodash/fp/updateWith.js +5 -0
  1157. package/node_modules/lodash/fp/upperCase.js +5 -0
  1158. package/node_modules/lodash/fp/upperFirst.js +5 -0
  1159. package/node_modules/lodash/fp/useWith.js +1 -0
  1160. package/node_modules/lodash/fp/util.js +2 -0
  1161. package/node_modules/lodash/fp/value.js +5 -0
  1162. package/node_modules/lodash/fp/valueOf.js +5 -0
  1163. package/node_modules/lodash/fp/values.js +5 -0
  1164. package/node_modules/lodash/fp/valuesIn.js +5 -0
  1165. package/node_modules/lodash/fp/where.js +1 -0
  1166. package/node_modules/lodash/fp/whereEq.js +1 -0
  1167. package/node_modules/lodash/fp/without.js +5 -0
  1168. package/node_modules/lodash/fp/words.js +5 -0
  1169. package/node_modules/lodash/fp/wrap.js +5 -0
  1170. package/node_modules/lodash/fp/wrapperAt.js +5 -0
  1171. package/node_modules/lodash/fp/wrapperChain.js +5 -0
  1172. package/node_modules/lodash/fp/wrapperLodash.js +5 -0
  1173. package/node_modules/lodash/fp/wrapperReverse.js +5 -0
  1174. package/node_modules/lodash/fp/wrapperValue.js +5 -0
  1175. package/node_modules/lodash/fp/xor.js +5 -0
  1176. package/node_modules/lodash/fp/xorBy.js +5 -0
  1177. package/node_modules/lodash/fp/xorWith.js +5 -0
  1178. package/node_modules/lodash/fp/zip.js +5 -0
  1179. package/node_modules/lodash/fp/zipAll.js +5 -0
  1180. package/node_modules/lodash/fp/zipObj.js +1 -0
  1181. package/node_modules/lodash/fp/zipObject.js +5 -0
  1182. package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
  1183. package/node_modules/lodash/fp/zipWith.js +5 -0
  1184. package/node_modules/lodash/fp.js +2 -0
  1185. package/node_modules/lodash/fromPairs.js +30 -0
  1186. package/node_modules/lodash/function.js +25 -0
  1187. package/node_modules/lodash/functions.js +31 -0
  1188. package/node_modules/lodash/functionsIn.js +31 -0
  1189. package/node_modules/lodash/get.js +33 -0
  1190. package/node_modules/lodash/groupBy.js +41 -0
  1191. package/node_modules/lodash/gt.js +29 -0
  1192. package/node_modules/lodash/gte.js +30 -0
  1193. package/node_modules/lodash/has.js +35 -0
  1194. package/node_modules/lodash/hasIn.js +34 -0
  1195. package/node_modules/lodash/head.js +23 -0
  1196. package/node_modules/lodash/identity.js +21 -0
  1197. package/node_modules/lodash/inRange.js +55 -0
  1198. package/node_modules/lodash/includes.js +53 -0
  1199. package/node_modules/lodash/index.js +1 -0
  1200. package/node_modules/lodash/indexOf.js +42 -0
  1201. package/node_modules/lodash/initial.js +22 -0
  1202. package/node_modules/lodash/intersection.js +30 -0
  1203. package/node_modules/lodash/intersectionBy.js +45 -0
  1204. package/node_modules/lodash/intersectionWith.js +41 -0
  1205. package/node_modules/lodash/invert.js +42 -0
  1206. package/node_modules/lodash/invertBy.js +56 -0
  1207. package/node_modules/lodash/invoke.js +24 -0
  1208. package/node_modules/lodash/invokeMap.js +41 -0
  1209. package/node_modules/lodash/isArguments.js +36 -0
  1210. package/node_modules/lodash/isArray.js +26 -0
  1211. package/node_modules/lodash/isArrayBuffer.js +27 -0
  1212. package/node_modules/lodash/isArrayLike.js +33 -0
  1213. package/node_modules/lodash/isArrayLikeObject.js +33 -0
  1214. package/node_modules/lodash/isBoolean.js +29 -0
  1215. package/node_modules/lodash/isBuffer.js +38 -0
  1216. package/node_modules/lodash/isDate.js +27 -0
  1217. package/node_modules/lodash/isElement.js +25 -0
  1218. package/node_modules/lodash/isEmpty.js +77 -0
  1219. package/node_modules/lodash/isEqual.js +35 -0
  1220. package/node_modules/lodash/isEqualWith.js +41 -0
  1221. package/node_modules/lodash/isError.js +36 -0
  1222. package/node_modules/lodash/isFinite.js +36 -0
  1223. package/node_modules/lodash/isFunction.js +37 -0
  1224. package/node_modules/lodash/isInteger.js +33 -0
  1225. package/node_modules/lodash/isLength.js +35 -0
  1226. package/node_modules/lodash/isMap.js +27 -0
  1227. package/node_modules/lodash/isMatch.js +36 -0
  1228. package/node_modules/lodash/isMatchWith.js +41 -0
  1229. package/node_modules/lodash/isNaN.js +38 -0
  1230. package/node_modules/lodash/isNative.js +40 -0
  1231. package/node_modules/lodash/isNil.js +25 -0
  1232. package/node_modules/lodash/isNull.js +22 -0
  1233. package/node_modules/lodash/isNumber.js +38 -0
  1234. package/node_modules/lodash/isObject.js +31 -0
  1235. package/node_modules/lodash/isObjectLike.js +29 -0
  1236. package/node_modules/lodash/isPlainObject.js +62 -0
  1237. package/node_modules/lodash/isRegExp.js +27 -0
  1238. package/node_modules/lodash/isSafeInteger.js +37 -0
  1239. package/node_modules/lodash/isSet.js +27 -0
  1240. package/node_modules/lodash/isString.js +30 -0
  1241. package/node_modules/lodash/isSymbol.js +29 -0
  1242. package/node_modules/lodash/isTypedArray.js +27 -0
  1243. package/node_modules/lodash/isUndefined.js +22 -0
  1244. package/node_modules/lodash/isWeakMap.js +28 -0
  1245. package/node_modules/lodash/isWeakSet.js +28 -0
  1246. package/node_modules/lodash/iteratee.js +53 -0
  1247. package/node_modules/lodash/join.js +26 -0
  1248. package/node_modules/lodash/kebabCase.js +28 -0
  1249. package/node_modules/lodash/keyBy.js +36 -0
  1250. package/node_modules/lodash/keys.js +37 -0
  1251. package/node_modules/lodash/keysIn.js +32 -0
  1252. package/node_modules/lodash/lang.js +58 -0
  1253. package/node_modules/lodash/last.js +20 -0
  1254. package/node_modules/lodash/lastIndexOf.js +46 -0
  1255. package/node_modules/lodash/lodash.js +17259 -0
  1256. package/node_modules/lodash/lodash.min.js +136 -0
  1257. package/node_modules/lodash/lowerCase.js +27 -0
  1258. package/node_modules/lodash/lowerFirst.js +22 -0
  1259. package/node_modules/lodash/lt.js +29 -0
  1260. package/node_modules/lodash/lte.js +30 -0
  1261. package/node_modules/lodash/map.js +53 -0
  1262. package/node_modules/lodash/mapKeys.js +36 -0
  1263. package/node_modules/lodash/mapValues.js +43 -0
  1264. package/node_modules/lodash/matches.js +46 -0
  1265. package/node_modules/lodash/matchesProperty.js +44 -0
  1266. package/node_modules/lodash/math.js +17 -0
  1267. package/node_modules/lodash/max.js +29 -0
  1268. package/node_modules/lodash/maxBy.js +34 -0
  1269. package/node_modules/lodash/mean.js +22 -0
  1270. package/node_modules/lodash/meanBy.js +31 -0
  1271. package/node_modules/lodash/memoize.js +73 -0
  1272. package/node_modules/lodash/merge.js +39 -0
  1273. package/node_modules/lodash/mergeWith.js +39 -0
  1274. package/node_modules/lodash/method.js +34 -0
  1275. package/node_modules/lodash/methodOf.js +33 -0
  1276. package/node_modules/lodash/min.js +29 -0
  1277. package/node_modules/lodash/minBy.js +34 -0
  1278. package/node_modules/lodash/mixin.js +74 -0
  1279. package/node_modules/lodash/multiply.js +22 -0
  1280. package/node_modules/lodash/negate.js +40 -0
  1281. package/node_modules/lodash/next.js +35 -0
  1282. package/node_modules/lodash/noop.js +17 -0
  1283. package/node_modules/lodash/now.js +23 -0
  1284. package/node_modules/lodash/nth.js +29 -0
  1285. package/node_modules/lodash/nthArg.js +32 -0
  1286. package/node_modules/lodash/number.js +5 -0
  1287. package/node_modules/lodash/object.js +49 -0
  1288. package/node_modules/lodash/omit.js +57 -0
  1289. package/node_modules/lodash/omitBy.js +29 -0
  1290. package/node_modules/lodash/once.js +25 -0
  1291. package/node_modules/lodash/orderBy.js +47 -0
  1292. package/node_modules/lodash/over.js +24 -0
  1293. package/node_modules/lodash/overArgs.js +61 -0
  1294. package/node_modules/lodash/overEvery.js +34 -0
  1295. package/node_modules/lodash/overSome.js +37 -0
  1296. package/node_modules/lodash/package.json +19 -0
  1297. package/node_modules/lodash/pad.js +49 -0
  1298. package/node_modules/lodash/padEnd.js +39 -0
  1299. package/node_modules/lodash/padStart.js +39 -0
  1300. package/node_modules/lodash/parseInt.js +43 -0
  1301. package/node_modules/lodash/partial.js +50 -0
  1302. package/node_modules/lodash/partialRight.js +49 -0
  1303. package/node_modules/lodash/partition.js +43 -0
  1304. package/node_modules/lodash/pick.js +25 -0
  1305. package/node_modules/lodash/pickBy.js +37 -0
  1306. package/node_modules/lodash/plant.js +48 -0
  1307. package/node_modules/lodash/property.js +32 -0
  1308. package/node_modules/lodash/propertyOf.js +30 -0
  1309. package/node_modules/lodash/pull.js +29 -0
  1310. package/node_modules/lodash/pullAll.js +29 -0
  1311. package/node_modules/lodash/pullAllBy.js +33 -0
  1312. package/node_modules/lodash/pullAllWith.js +32 -0
  1313. package/node_modules/lodash/pullAt.js +43 -0
  1314. package/node_modules/lodash/random.js +91 -0
  1315. package/node_modules/lodash/range.js +46 -0
  1316. package/node_modules/lodash/rangeRight.js +41 -0
  1317. package/node_modules/lodash/rearg.js +33 -0
  1318. package/node_modules/lodash/reduce.js +51 -0
  1319. package/node_modules/lodash/reduceRight.js +36 -0
  1320. package/node_modules/lodash/reject.js +46 -0
  1321. package/node_modules/lodash/remove.js +53 -0
  1322. package/node_modules/lodash/repeat.js +37 -0
  1323. package/node_modules/lodash/replace.js +29 -0
  1324. package/node_modules/lodash/rest.js +40 -0
  1325. package/node_modules/lodash/result.js +56 -0
  1326. package/node_modules/lodash/reverse.js +34 -0
  1327. package/node_modules/lodash/round.js +26 -0
  1328. package/node_modules/lodash/sample.js +24 -0
  1329. package/node_modules/lodash/sampleSize.js +37 -0
  1330. package/node_modules/lodash/seq.js +16 -0
  1331. package/node_modules/lodash/set.js +35 -0
  1332. package/node_modules/lodash/setWith.js +32 -0
  1333. package/node_modules/lodash/shuffle.js +25 -0
  1334. package/node_modules/lodash/size.js +46 -0
  1335. package/node_modules/lodash/slice.js +37 -0
  1336. package/node_modules/lodash/snakeCase.js +28 -0
  1337. package/node_modules/lodash/some.js +51 -0
  1338. package/node_modules/lodash/sortBy.js +48 -0
  1339. package/node_modules/lodash/sortedIndex.js +24 -0
  1340. package/node_modules/lodash/sortedIndexBy.js +33 -0
  1341. package/node_modules/lodash/sortedIndexOf.js +31 -0
  1342. package/node_modules/lodash/sortedLastIndex.js +25 -0
  1343. package/node_modules/lodash/sortedLastIndexBy.js +33 -0
  1344. package/node_modules/lodash/sortedLastIndexOf.js +31 -0
  1345. package/node_modules/lodash/sortedUniq.js +24 -0
  1346. package/node_modules/lodash/sortedUniqBy.js +26 -0
  1347. package/node_modules/lodash/split.js +52 -0
  1348. package/node_modules/lodash/spread.js +63 -0
  1349. package/node_modules/lodash/startCase.js +29 -0
  1350. package/node_modules/lodash/startsWith.js +39 -0
  1351. package/node_modules/lodash/string.js +33 -0
  1352. package/node_modules/lodash/stubArray.js +23 -0
  1353. package/node_modules/lodash/stubFalse.js +18 -0
  1354. package/node_modules/lodash/stubObject.js +23 -0
  1355. package/node_modules/lodash/stubString.js +18 -0
  1356. package/node_modules/lodash/stubTrue.js +18 -0
  1357. package/node_modules/lodash/subtract.js +22 -0
  1358. package/node_modules/lodash/sum.js +24 -0
  1359. package/node_modules/lodash/sumBy.js +33 -0
  1360. package/node_modules/lodash/tail.js +22 -0
  1361. package/node_modules/lodash/take.js +37 -0
  1362. package/node_modules/lodash/takeRight.js +39 -0
  1363. package/node_modules/lodash/takeRightWhile.js +45 -0
  1364. package/node_modules/lodash/takeWhile.js +45 -0
  1365. package/node_modules/lodash/tap.js +29 -0
  1366. package/node_modules/lodash/template.js +284 -0
  1367. package/node_modules/lodash/templateSettings.js +71 -0
  1368. package/node_modules/lodash/throttle.js +69 -0
  1369. package/node_modules/lodash/thru.js +28 -0
  1370. package/node_modules/lodash/times.js +51 -0
  1371. package/node_modules/lodash/toArray.js +58 -0
  1372. package/node_modules/lodash/toFinite.js +42 -0
  1373. package/node_modules/lodash/toInteger.js +36 -0
  1374. package/node_modules/lodash/toIterator.js +23 -0
  1375. package/node_modules/lodash/toJSON.js +1 -0
  1376. package/node_modules/lodash/toLength.js +38 -0
  1377. package/node_modules/lodash/toLower.js +28 -0
  1378. package/node_modules/lodash/toNumber.js +64 -0
  1379. package/node_modules/lodash/toPairs.js +30 -0
  1380. package/node_modules/lodash/toPairsIn.js +30 -0
  1381. package/node_modules/lodash/toPath.js +33 -0
  1382. package/node_modules/lodash/toPlainObject.js +32 -0
  1383. package/node_modules/lodash/toSafeInteger.js +37 -0
  1384. package/node_modules/lodash/toString.js +28 -0
  1385. package/node_modules/lodash/toUpper.js +28 -0
  1386. package/node_modules/lodash/transform.js +65 -0
  1387. package/node_modules/lodash/trim.js +47 -0
  1388. package/node_modules/lodash/trimEnd.js +41 -0
  1389. package/node_modules/lodash/trimStart.js +43 -0
  1390. package/node_modules/lodash/truncate.js +111 -0
  1391. package/node_modules/lodash/unary.js +22 -0
  1392. package/node_modules/lodash/unescape.js +34 -0
  1393. package/node_modules/lodash/union.js +26 -0
  1394. package/node_modules/lodash/unionBy.js +39 -0
  1395. package/node_modules/lodash/unionWith.js +34 -0
  1396. package/node_modules/lodash/uniq.js +25 -0
  1397. package/node_modules/lodash/uniqBy.js +31 -0
  1398. package/node_modules/lodash/uniqWith.js +28 -0
  1399. package/node_modules/lodash/uniqueId.js +28 -0
  1400. package/node_modules/lodash/unset.js +34 -0
  1401. package/node_modules/lodash/unzip.js +45 -0
  1402. package/node_modules/lodash/unzipWith.js +39 -0
  1403. package/node_modules/lodash/update.js +35 -0
  1404. package/node_modules/lodash/updateWith.js +33 -0
  1405. package/node_modules/lodash/upperCase.js +27 -0
  1406. package/node_modules/lodash/upperFirst.js +22 -0
  1407. package/node_modules/lodash/util.js +34 -0
  1408. package/node_modules/lodash/value.js +1 -0
  1409. package/node_modules/lodash/valueOf.js +1 -0
  1410. package/node_modules/lodash/values.js +34 -0
  1411. package/node_modules/lodash/valuesIn.js +32 -0
  1412. package/node_modules/lodash/without.js +31 -0
  1413. package/node_modules/lodash/words.js +35 -0
  1414. package/node_modules/lodash/wrap.js +30 -0
  1415. package/node_modules/lodash/wrapperAt.js +48 -0
  1416. package/node_modules/lodash/wrapperChain.js +34 -0
  1417. package/node_modules/lodash/wrapperLodash.js +147 -0
  1418. package/node_modules/lodash/wrapperReverse.js +44 -0
  1419. package/node_modules/lodash/wrapperValue.js +21 -0
  1420. package/node_modules/lodash/xor.js +28 -0
  1421. package/node_modules/lodash/xorBy.js +39 -0
  1422. package/node_modules/lodash/xorWith.js +34 -0
  1423. package/node_modules/lodash/zip.js +22 -0
  1424. package/node_modules/lodash/zipObject.js +24 -0
  1425. package/node_modules/lodash/zipObjectDeep.js +23 -0
  1426. package/node_modules/lodash/zipWith.js +32 -0
  1427. package/node_modules/math-intrinsics/.eslintrc +16 -0
  1428. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  1429. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  1430. package/node_modules/math-intrinsics/LICENSE +21 -0
  1431. package/node_modules/math-intrinsics/README.md +50 -0
  1432. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  1433. package/node_modules/math-intrinsics/abs.js +4 -0
  1434. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  1435. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  1436. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  1437. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  1438. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  1439. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  1440. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  1441. package/node_modules/math-intrinsics/floor.js +4 -0
  1442. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  1443. package/node_modules/math-intrinsics/isFinite.js +12 -0
  1444. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  1445. package/node_modules/math-intrinsics/isInteger.js +16 -0
  1446. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  1447. package/node_modules/math-intrinsics/isNaN.js +6 -0
  1448. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  1449. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  1450. package/node_modules/math-intrinsics/max.d.ts +1 -0
  1451. package/node_modules/math-intrinsics/max.js +4 -0
  1452. package/node_modules/math-intrinsics/min.d.ts +1 -0
  1453. package/node_modules/math-intrinsics/min.js +4 -0
  1454. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  1455. package/node_modules/math-intrinsics/mod.js +9 -0
  1456. package/node_modules/math-intrinsics/package.json +86 -0
  1457. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  1458. package/node_modules/math-intrinsics/pow.js +4 -0
  1459. package/node_modules/math-intrinsics/round.d.ts +1 -0
  1460. package/node_modules/math-intrinsics/round.js +4 -0
  1461. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  1462. package/node_modules/math-intrinsics/sign.js +11 -0
  1463. package/node_modules/math-intrinsics/test/index.js +192 -0
  1464. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  1465. package/node_modules/ms/index.js +162 -0
  1466. package/node_modules/ms/license.md +21 -0
  1467. package/node_modules/ms/package.json +37 -0
  1468. package/node_modules/ms/readme.md +60 -0
  1469. package/node_modules/zod/LICENSE +1 -1
  1470. package/node_modules/zod/README.md +114 -2782
  1471. package/node_modules/zod/index.cjs +33 -0
  1472. package/node_modules/zod/index.d.cts +4 -0
  1473. package/node_modules/zod/index.d.ts +4 -2
  1474. package/node_modules/zod/index.js +4 -0
  1475. package/node_modules/zod/package.json +94 -95
  1476. package/node_modules/zod/src/index.ts +4 -0
  1477. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  1478. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  1479. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  1480. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  1481. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  1482. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  1483. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  1484. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  1485. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  1486. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  1487. package/node_modules/zod/src/v3/errors.ts +13 -0
  1488. package/node_modules/zod/src/v3/external.ts +6 -0
  1489. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  1490. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  1491. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  1492. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  1493. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  1494. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  1495. package/node_modules/zod/src/v3/index.ts +4 -0
  1496. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  1497. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  1498. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  1499. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  1500. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  1501. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  1502. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  1503. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  1504. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  1505. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  1506. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  1507. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  1508. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  1509. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  1510. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  1511. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  1512. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  1513. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  1514. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  1515. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  1516. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  1517. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  1518. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  1519. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  1520. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  1521. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  1522. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  1523. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  1524. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  1525. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  1526. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  1527. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  1528. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  1529. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  1530. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  1531. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  1532. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  1533. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  1534. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  1535. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  1536. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  1537. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  1538. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  1539. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  1540. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  1541. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  1542. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  1543. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  1544. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  1545. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  1546. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  1547. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  1548. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  1549. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  1550. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  1551. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  1552. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  1553. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  1554. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  1555. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  1556. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  1557. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  1558. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  1559. package/node_modules/zod/src/v3/types.ts +5136 -0
  1560. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  1561. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  1562. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  1563. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  1564. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  1565. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  1566. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  1567. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  1568. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  1569. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  1570. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  1571. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  1572. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  1573. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  1574. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  1575. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  1576. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  1577. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  1578. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  1579. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  1580. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  1581. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  1582. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  1583. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  1584. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  1585. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  1586. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  1587. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  1588. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  1589. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  1590. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  1591. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  1592. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  1593. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  1594. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  1595. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  1596. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  1597. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  1598. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  1599. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  1600. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  1601. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  1602. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  1603. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  1604. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  1605. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  1606. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  1607. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  1608. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  1609. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  1610. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  1611. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  1612. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  1613. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  1614. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  1615. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  1616. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  1617. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  1618. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  1619. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  1620. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  1621. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  1622. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  1623. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  1624. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  1625. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  1626. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  1627. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  1628. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  1629. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  1630. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  1631. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  1632. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  1633. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  1634. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  1635. package/node_modules/zod/src/v4/core/config.ts +15 -0
  1636. package/node_modules/zod/src/v4/core/core.ts +134 -0
  1637. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  1638. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  1639. package/node_modules/zod/src/v4/core/function.ts +176 -0
  1640. package/node_modules/zod/src/v4/core/index.ts +15 -0
  1641. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  1642. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  1643. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  1644. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  1645. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  1646. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  1647. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  1648. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  1649. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  1650. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  1651. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  1652. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  1653. package/node_modules/zod/src/v4/core/util.ts +775 -0
  1654. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  1655. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  1656. package/node_modules/zod/src/v4/index.ts +4 -0
  1657. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  1658. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  1659. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  1660. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  1661. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  1662. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  1663. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  1664. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  1665. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  1666. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  1667. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  1668. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  1669. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  1670. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  1671. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  1672. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  1673. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  1674. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  1675. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  1676. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  1677. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  1678. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  1679. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  1680. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1681. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  1682. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  1683. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  1684. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  1685. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  1686. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  1687. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  1688. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  1689. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  1690. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  1691. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  1692. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  1693. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  1694. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  1695. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  1696. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  1697. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  1698. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  1699. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  1700. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1701. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  1702. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  1703. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  1704. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  1705. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  1706. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  1707. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  1708. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  1709. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  1710. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  1711. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  1712. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  1713. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1714. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  1715. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  1716. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  1717. package/node_modules/zod/v3/ZodError.cjs +138 -0
  1718. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1719. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1720. package/node_modules/zod/v3/ZodError.js +133 -0
  1721. package/node_modules/zod/v3/errors.cjs +17 -0
  1722. package/node_modules/zod/v3/errors.d.cts +5 -0
  1723. package/node_modules/zod/v3/errors.d.ts +5 -0
  1724. package/node_modules/zod/v3/errors.js +9 -0
  1725. package/node_modules/zod/v3/external.cjs +22 -0
  1726. package/node_modules/zod/v3/external.d.cts +6 -0
  1727. package/node_modules/zod/v3/external.d.ts +6 -0
  1728. package/node_modules/zod/v3/external.js +6 -0
  1729. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1730. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1731. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  1732. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1733. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1734. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1735. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  1736. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1737. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1738. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1739. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1740. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1741. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1742. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1743. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1744. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1745. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  1746. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1747. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1748. package/node_modules/zod/v3/helpers/util.js +133 -0
  1749. package/node_modules/zod/v3/index.cjs +33 -0
  1750. package/node_modules/zod/v3/index.d.cts +4 -0
  1751. package/node_modules/zod/v3/index.d.ts +4 -0
  1752. package/node_modules/zod/v3/index.js +4 -0
  1753. package/node_modules/zod/v3/locales/en.cjs +111 -0
  1754. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  1755. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  1756. package/node_modules/zod/v3/locales/en.js +109 -0
  1757. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  1758. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1759. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1760. package/node_modules/zod/v3/standard-schema.js +1 -0
  1761. package/node_modules/zod/v3/types.cjs +3775 -0
  1762. package/node_modules/zod/v3/types.d.cts +1031 -0
  1763. package/node_modules/zod/v3/types.d.ts +1031 -0
  1764. package/node_modules/zod/v3/types.js +3693 -0
  1765. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  1766. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1767. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1768. package/node_modules/zod/v4/classic/checks.js +1 -0
  1769. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  1770. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1771. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1772. package/node_modules/zod/v4/classic/coerce.js +17 -0
  1773. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  1774. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  1775. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  1776. package/node_modules/zod/v4/classic/compat.js +27 -0
  1777. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  1778. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  1779. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  1780. package/node_modules/zod/v4/classic/errors.js +41 -0
  1781. package/node_modules/zod/v4/classic/external.cjs +70 -0
  1782. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  1783. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  1784. package/node_modules/zod/v4/classic/external.js +18 -0
  1785. package/node_modules/zod/v4/classic/index.cjs +33 -0
  1786. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  1787. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  1788. package/node_modules/zod/v4/classic/index.js +4 -0
  1789. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  1790. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  1791. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  1792. package/node_modules/zod/v4/classic/iso.js +30 -0
  1793. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  1794. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  1795. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  1796. package/node_modules/zod/v4/classic/parse.js +6 -0
  1797. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  1798. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  1799. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  1800. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  1801. package/node_modules/zod/v4/core/api.cjs +1039 -0
  1802. package/node_modules/zod/v4/core/api.d.cts +284 -0
  1803. package/node_modules/zod/v4/core/api.d.ts +284 -0
  1804. package/node_modules/zod/v4/core/api.js +906 -0
  1805. package/node_modules/zod/v4/core/checks.cjs +591 -0
  1806. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  1807. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  1808. package/node_modules/zod/v4/core/checks.js +565 -0
  1809. package/node_modules/zod/v4/core/core.cjs +67 -0
  1810. package/node_modules/zod/v4/core/core.d.cts +49 -0
  1811. package/node_modules/zod/v4/core/core.d.ts +49 -0
  1812. package/node_modules/zod/v4/core/core.js +61 -0
  1813. package/node_modules/zod/v4/core/doc.cjs +39 -0
  1814. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  1815. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  1816. package/node_modules/zod/v4/core/doc.js +35 -0
  1817. package/node_modules/zod/v4/core/errors.cjs +226 -0
  1818. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  1819. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  1820. package/node_modules/zod/v4/core/errors.js +195 -0
  1821. package/node_modules/zod/v4/core/function.cjs +102 -0
  1822. package/node_modules/zod/v4/core/function.d.cts +52 -0
  1823. package/node_modules/zod/v4/core/function.d.ts +52 -0
  1824. package/node_modules/zod/v4/core/function.js +75 -0
  1825. package/node_modules/zod/v4/core/index.cjs +44 -0
  1826. package/node_modules/zod/v4/core/index.d.cts +15 -0
  1827. package/node_modules/zod/v4/core/index.d.ts +15 -0
  1828. package/node_modules/zod/v4/core/index.js +15 -0
  1829. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1830. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  1831. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  1832. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1833. package/node_modules/zod/v4/core/parse.cjs +87 -0
  1834. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  1835. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  1836. package/node_modules/zod/v4/core/parse.js +57 -0
  1837. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  1838. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  1839. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  1840. package/node_modules/zod/v4/core/regexes.js +95 -0
  1841. package/node_modules/zod/v4/core/registries.cjs +56 -0
  1842. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1843. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1844. package/node_modules/zod/v4/core/registries.js +51 -0
  1845. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  1846. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  1847. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  1848. package/node_modules/zod/v4/core/schemas.js +1717 -0
  1849. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1850. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  1851. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  1852. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1853. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  1854. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  1855. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  1856. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  1857. package/node_modules/zod/v4/core/util.cjs +539 -0
  1858. package/node_modules/zod/v4/core/util.d.cts +183 -0
  1859. package/node_modules/zod/v4/core/util.d.ts +183 -0
  1860. package/node_modules/zod/v4/core/util.js +493 -0
  1861. package/node_modules/zod/v4/core/versions.cjs +8 -0
  1862. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1863. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1864. package/node_modules/zod/v4/core/versions.js +5 -0
  1865. package/node_modules/zod/v4/index.cjs +22 -0
  1866. package/node_modules/zod/v4/index.d.cts +3 -0
  1867. package/node_modules/zod/v4/index.d.ts +3 -0
  1868. package/node_modules/zod/v4/index.js +3 -0
  1869. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  1870. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  1871. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1872. package/node_modules/zod/v4/locales/ar.js +116 -0
  1873. package/node_modules/zod/v4/locales/az.cjs +141 -0
  1874. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  1875. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1876. package/node_modules/zod/v4/locales/az.js +115 -0
  1877. package/node_modules/zod/v4/locales/be.cjs +190 -0
  1878. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  1879. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1880. package/node_modules/zod/v4/locales/be.js +164 -0
  1881. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  1882. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  1883. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1884. package/node_modules/zod/v4/locales/ca.js +118 -0
  1885. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  1886. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  1887. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1888. package/node_modules/zod/v4/locales/cs.js +135 -0
  1889. package/node_modules/zod/v4/locales/de.cjs +142 -0
  1890. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  1891. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1892. package/node_modules/zod/v4/locales/de.js +116 -0
  1893. package/node_modules/zod/v4/locales/en.cjs +145 -0
  1894. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1895. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  1896. package/node_modules/zod/v4/locales/en.js +117 -0
  1897. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  1898. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1899. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  1900. package/node_modules/zod/v4/locales/eo.js +116 -0
  1901. package/node_modules/zod/v4/locales/es.cjs +143 -0
  1902. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  1903. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1904. package/node_modules/zod/v4/locales/es.js +117 -0
  1905. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  1906. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  1907. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1908. package/node_modules/zod/v4/locales/fa.js +122 -0
  1909. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  1910. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  1911. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1912. package/node_modules/zod/v4/locales/fi.js +122 -0
  1913. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  1914. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  1915. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1916. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  1917. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  1918. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  1919. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1920. package/node_modules/zod/v4/locales/fr.js +116 -0
  1921. package/node_modules/zod/v4/locales/he.cjs +143 -0
  1922. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  1923. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1924. package/node_modules/zod/v4/locales/he.js +117 -0
  1925. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  1926. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  1927. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1928. package/node_modules/zod/v4/locales/hu.js +117 -0
  1929. package/node_modules/zod/v4/locales/id.cjs +142 -0
  1930. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  1931. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1932. package/node_modules/zod/v4/locales/id.js +116 -0
  1933. package/node_modules/zod/v4/locales/index.cjs +84 -0
  1934. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  1935. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  1936. package/node_modules/zod/v4/locales/index.js +39 -0
  1937. package/node_modules/zod/v4/locales/it.cjs +143 -0
  1938. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  1939. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1940. package/node_modules/zod/v4/locales/it.js +117 -0
  1941. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  1942. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  1943. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1944. package/node_modules/zod/v4/locales/ja.js +115 -0
  1945. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  1946. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  1947. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  1948. package/node_modules/zod/v4/locales/kh.js +117 -0
  1949. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  1950. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  1951. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1952. package/node_modules/zod/v4/locales/ko.js +121 -0
  1953. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  1954. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  1955. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1956. package/node_modules/zod/v4/locales/mk.js +118 -0
  1957. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  1958. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  1959. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1960. package/node_modules/zod/v4/locales/ms.js +116 -0
  1961. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  1962. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  1963. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1964. package/node_modules/zod/v4/locales/nl.js +117 -0
  1965. package/node_modules/zod/v4/locales/no.cjs +142 -0
  1966. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  1967. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1968. package/node_modules/zod/v4/locales/no.js +116 -0
  1969. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  1970. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  1971. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1972. package/node_modules/zod/v4/locales/ota.js +117 -0
  1973. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  1974. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  1975. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1976. package/node_modules/zod/v4/locales/pl.js +117 -0
  1977. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  1978. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  1979. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1980. package/node_modules/zod/v4/locales/ps.js +122 -0
  1981. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  1982. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  1983. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1984. package/node_modules/zod/v4/locales/pt.js +116 -0
  1985. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  1986. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  1987. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1988. package/node_modules/zod/v4/locales/ru.js +164 -0
  1989. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  1990. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  1991. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1992. package/node_modules/zod/v4/locales/sl.js +117 -0
  1993. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  1994. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  1995. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1996. package/node_modules/zod/v4/locales/sv.js +118 -0
  1997. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  1998. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  1999. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  2000. package/node_modules/zod/v4/locales/ta.js +117 -0
  2001. package/node_modules/zod/v4/locales/th.cjs +143 -0
  2002. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  2003. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  2004. package/node_modules/zod/v4/locales/th.js +117 -0
  2005. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  2006. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  2007. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  2008. package/node_modules/zod/v4/locales/tr.js +115 -0
  2009. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  2010. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  2011. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  2012. package/node_modules/zod/v4/locales/ua.js +117 -0
  2013. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  2014. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  2015. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  2016. package/node_modules/zod/v4/locales/ur.js +117 -0
  2017. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  2018. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  2019. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  2020. package/node_modules/zod/v4/locales/vi.js +116 -0
  2021. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  2022. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  2023. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  2024. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  2025. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  2026. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  2027. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  2028. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  2029. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  2030. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  2031. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  2032. package/node_modules/zod/v4/mini/checks.js +1 -0
  2033. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  2034. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  2035. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  2036. package/node_modules/zod/v4/mini/coerce.js +17 -0
  2037. package/node_modules/zod/v4/mini/external.cjs +62 -0
  2038. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  2039. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  2040. package/node_modules/zod/v4/mini/external.js +13 -0
  2041. package/node_modules/zod/v4/mini/index.cjs +32 -0
  2042. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  2043. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  2044. package/node_modules/zod/v4/mini/index.js +3 -0
  2045. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  2046. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  2047. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  2048. package/node_modules/zod/v4/mini/iso.js +30 -0
  2049. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  2050. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  2051. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  2052. package/node_modules/zod/v4/mini/parse.js +1 -0
  2053. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  2054. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  2055. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  2056. package/node_modules/zod/v4/mini/schemas.js +732 -0
  2057. package/node_modules/zod/v4-mini/index.cjs +17 -0
  2058. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  2059. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  2060. package/node_modules/zod/v4-mini/index.js +1 -0
  2061. package/package.json +34 -23
  2062. package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +0 -35
  2063. package/node_modules/axios/CHANGELOG.md +0 -1039
  2064. package/node_modules/axios/LICENSE +0 -19
  2065. package/node_modules/axios/README.md +0 -1182
  2066. package/node_modules/axios/SECURITY.md +0 -5
  2067. package/node_modules/axios/UPGRADE_GUIDE.md +0 -190
  2068. package/node_modules/axios/bin/check-build-version.js +0 -19
  2069. package/node_modules/axios/bin/ssl_hotfix.js +0 -22
  2070. package/node_modules/axios/dist/axios.js +0 -2387
  2071. package/node_modules/axios/dist/axios.js.map +0 -1
  2072. package/node_modules/axios/dist/axios.min.js +0 -2
  2073. package/node_modules/axios/dist/axios.min.js.map +0 -1
  2074. package/node_modules/axios/dist/esm/axios.js +0 -2379
  2075. package/node_modules/axios/dist/esm/axios.js.map +0 -1
  2076. package/node_modules/axios/dist/esm/axios.min.js +0 -2
  2077. package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  2078. package/node_modules/axios/index.d.ts +0 -341
  2079. package/node_modules/axios/index.js +0 -1
  2080. package/node_modules/axios/lib/adapters/README.md +0 -37
  2081. package/node_modules/axios/lib/adapters/http.js +0 -463
  2082. package/node_modules/axios/lib/adapters/xhr.js +0 -226
  2083. package/node_modules/axios/lib/axios.js +0 -68
  2084. package/node_modules/axios/lib/cancel/CancelToken.js +0 -118
  2085. package/node_modules/axios/lib/cancel/CanceledError.js +0 -24
  2086. package/node_modules/axios/lib/cancel/isCancel.js +0 -5
  2087. package/node_modules/axios/lib/core/Axios.js +0 -176
  2088. package/node_modules/axios/lib/core/AxiosError.js +0 -97
  2089. package/node_modules/axios/lib/core/InterceptorManager.js +0 -63
  2090. package/node_modules/axios/lib/core/buildFullPath.js +0 -23
  2091. package/node_modules/axios/lib/core/dispatchRequest.js +0 -94
  2092. package/node_modules/axios/lib/core/mergeConfig.js +0 -103
  2093. package/node_modules/axios/lib/core/settle.js +0 -25
  2094. package/node_modules/axios/lib/core/transformData.js +0 -23
  2095. package/node_modules/axios/lib/defaults/index.js +0 -175
  2096. package/node_modules/axios/lib/defaults/transitional.js +0 -7
  2097. package/node_modules/axios/lib/env/classes/FormData.js +0 -2
  2098. package/node_modules/axios/lib/env/data.js +0 -3
  2099. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -42
  2100. package/node_modules/axios/lib/helpers/bind.js +0 -7
  2101. package/node_modules/axios/lib/helpers/buildURL.js +0 -55
  2102. package/node_modules/axios/lib/helpers/combineURLs.js +0 -14
  2103. package/node_modules/axios/lib/helpers/cookies.js +0 -53
  2104. package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
  2105. package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -74
  2106. package/node_modules/axios/lib/helpers/fromDataURI.js +0 -51
  2107. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
  2108. package/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
  2109. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
  2110. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
  2111. package/node_modules/axios/lib/helpers/null.js +0 -2
  2112. package/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
  2113. package/node_modules/axios/lib/helpers/parseProtocol.js +0 -6
  2114. package/node_modules/axios/lib/helpers/spread.js +0 -27
  2115. package/node_modules/axios/lib/helpers/toFormData.js +0 -179
  2116. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  2117. package/node_modules/axios/lib/helpers/validator.js +0 -86
  2118. package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  2119. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  2120. package/node_modules/axios/lib/platform/browser/index.js +0 -11
  2121. package/node_modules/axios/lib/platform/index.js +0 -3
  2122. package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  2123. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -5
  2124. package/node_modules/axios/lib/platform/node/index.js +0 -11
  2125. package/node_modules/axios/lib/utils.js +0 -522
  2126. package/node_modules/axios/package.json +0 -100
  2127. package/node_modules/axios/rollup.config.js +0 -60
  2128. package/node_modules/axios/tsconfig.json +0 -14
  2129. package/node_modules/axios/tslint.json +0 -6
  2130. package/node_modules/form-data/README.md.bak +0 -358
  2131. package/node_modules/form-data/Readme.md +0 -358
  2132. package/node_modules/form-data/lib/browser.js +0 -2
  2133. package/node_modules/form-data/lib/form_data.js +0 -501
  2134. package/node_modules/form-data/lib/populate.js +0 -10
  2135. package/node_modules/form-data/package.json +0 -68
  2136. package/node_modules/process/.eslintrc +0 -21
  2137. package/node_modules/process/LICENSE +0 -22
  2138. package/node_modules/process/README.md +0 -26
  2139. package/node_modules/process/browser.js +0 -184
  2140. package/node_modules/process/index.js +0 -2
  2141. package/node_modules/process/package.json +0 -27
  2142. package/node_modules/process/test.js +0 -199
  2143. package/node_modules/proxy-from-env/.eslintrc +0 -29
  2144. package/node_modules/proxy-from-env/.travis.yml +0 -10
  2145. package/node_modules/proxy-from-env/README.md +0 -131
  2146. package/node_modules/proxy-from-env/index.js +0 -108
  2147. package/node_modules/proxy-from-env/package.json +0 -34
  2148. package/node_modules/proxy-from-env/test.js +0 -483
  2149. package/node_modules/zod/lib/ZodError.d.ts +0 -164
  2150. package/node_modules/zod/lib/ZodError.js +0 -137
  2151. package/node_modules/zod/lib/__tests__/Mocker.d.ts +0 -17
  2152. package/node_modules/zod/lib/__tests__/Mocker.js +0 -57
  2153. package/node_modules/zod/lib/benchmarks/datetime.d.ts +0 -5
  2154. package/node_modules/zod/lib/benchmarks/datetime.js +0 -54
  2155. package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +0 -5
  2156. package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +0 -79
  2157. package/node_modules/zod/lib/benchmarks/index.js +0 -59
  2158. package/node_modules/zod/lib/benchmarks/ipv4.d.ts +0 -5
  2159. package/node_modules/zod/lib/benchmarks/ipv4.js +0 -54
  2160. package/node_modules/zod/lib/benchmarks/object.d.ts +0 -5
  2161. package/node_modules/zod/lib/benchmarks/object.js +0 -70
  2162. package/node_modules/zod/lib/benchmarks/primitives.d.ts +0 -5
  2163. package/node_modules/zod/lib/benchmarks/primitives.js +0 -170
  2164. package/node_modules/zod/lib/benchmarks/realworld.d.ts +0 -5
  2165. package/node_modules/zod/lib/benchmarks/realworld.js +0 -56
  2166. package/node_modules/zod/lib/benchmarks/string.d.ts +0 -5
  2167. package/node_modules/zod/lib/benchmarks/string.js +0 -55
  2168. package/node_modules/zod/lib/benchmarks/union.d.ts +0 -5
  2169. package/node_modules/zod/lib/benchmarks/union.js +0 -79
  2170. package/node_modules/zod/lib/errors.d.ts +0 -5
  2171. package/node_modules/zod/lib/errors.js +0 -17
  2172. package/node_modules/zod/lib/external.d.ts +0 -6
  2173. package/node_modules/zod/lib/external.js +0 -18
  2174. package/node_modules/zod/lib/helpers/errorUtil.d.ts +0 -9
  2175. package/node_modules/zod/lib/helpers/errorUtil.js +0 -8
  2176. package/node_modules/zod/lib/helpers/parseUtil.d.ts +0 -78
  2177. package/node_modules/zod/lib/helpers/parseUtil.js +0 -125
  2178. package/node_modules/zod/lib/helpers/partialUtil.d.ts +0 -8
  2179. package/node_modules/zod/lib/helpers/typeAliases.d.ts +0 -2
  2180. package/node_modules/zod/lib/helpers/util.d.ts +0 -82
  2181. package/node_modules/zod/lib/helpers/util.js +0 -142
  2182. package/node_modules/zod/lib/index.d.ts +0 -4
  2183. package/node_modules/zod/lib/index.js +0 -29
  2184. package/node_modules/zod/lib/index.mjs +0 -4236
  2185. package/node_modules/zod/lib/index.umd.js +0 -4351
  2186. package/node_modules/zod/lib/locales/en.d.ts +0 -3
  2187. package/node_modules/zod/lib/locales/en.js +0 -129
  2188. package/node_modules/zod/lib/types.d.ts +0 -1127
  2189. package/node_modules/zod/lib/types.js +0 -3677
  2190. /package/node_modules/{axios → @autonomous-testing/sdk/node_modules/axios}/lib/core/README.md +0 -0
  2191. /package/node_modules/{axios → @autonomous-testing/sdk/node_modules/axios}/lib/env/README.md +0 -0
  2192. /package/node_modules/{axios → @autonomous-testing/sdk/node_modules/axios}/lib/helpers/README.md +0 -0
  2193. /package/node_modules/{form-data → @autonomous-testing/sdk/node_modules/form-data}/License +0 -0
  2194. /package/node_modules/{form-data → @autonomous-testing/sdk/node_modules/form-data}/index.d.ts +0 -0
  2195. /package/node_modules/{proxy-from-env → @autonomous-testing/sdk/node_modules/proxy-from-env}/LICENSE +0 -0
  2196. /package/node_modules/{zod/lib/benchmarks/index.d.ts → dotenv/config.d.ts} +0 -0
  2197. /package/node_modules/zod/{lib/helpers/enumUtil.js → v3/helpers/enumUtil.cjs} +0 -0
  2198. /package/node_modules/zod/{lib/helpers/enumUtil.d.ts → v3/helpers/enumUtil.d.cts} +0 -0
  2199. /package/node_modules/zod/{lib/helpers/partialUtil.js → v3/helpers/partialUtil.cjs} +0 -0
  2200. /package/node_modules/zod/{lib/helpers/typeAliases.js → v3/helpers/typeAliases.cjs} +0 -0
@@ -1,3677 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
- };
7
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
- if (kind === "m") throw new TypeError("Private method is not writable");
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
- };
13
- var _ZodEnum_cache, _ZodNativeEnum_cache;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.boolean = exports.bigint = exports.array = exports.any = exports.coerce = exports.ZodFirstPartyTypeKind = exports.late = exports.ZodSchema = exports.Schema = exports.custom = 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.datetimeRegex = exports.ZodType = void 0;
16
- 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 = exports.discriminatedUnion = exports.date = void 0;
17
- const errors_1 = require("./errors");
18
- const errorUtil_1 = require("./helpers/errorUtil");
19
- const parseUtil_1 = require("./helpers/parseUtil");
20
- const util_1 = require("./helpers/util");
21
- const ZodError_1 = require("./ZodError");
22
- class ParseInputLazyPath {
23
- constructor(parent, value, path, key) {
24
- this._cachedPath = [];
25
- this.parent = parent;
26
- this.data = value;
27
- this._path = path;
28
- this._key = key;
29
- }
30
- get path() {
31
- if (!this._cachedPath.length) {
32
- if (this._key instanceof Array) {
33
- this._cachedPath.push(...this._path, ...this._key);
34
- }
35
- else {
36
- this._cachedPath.push(...this._path, this._key);
37
- }
38
- }
39
- return this._cachedPath;
40
- }
41
- }
42
- const handleResult = (ctx, result) => {
43
- if ((0, parseUtil_1.isValid)(result)) {
44
- return { success: true, data: result.value };
45
- }
46
- else {
47
- if (!ctx.common.issues.length) {
48
- throw new Error("Validation failed but no issues detected.");
49
- }
50
- return {
51
- success: false,
52
- get error() {
53
- if (this._error)
54
- return this._error;
55
- const error = new ZodError_1.ZodError(ctx.common.issues);
56
- this._error = error;
57
- return this._error;
58
- },
59
- };
60
- }
61
- };
62
- function processCreateParams(params) {
63
- if (!params)
64
- return {};
65
- const { errorMap, invalid_type_error, required_error, description } = params;
66
- if (errorMap && (invalid_type_error || required_error)) {
67
- throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
68
- }
69
- if (errorMap)
70
- return { errorMap: errorMap, description };
71
- const customMap = (iss, ctx) => {
72
- var _a, _b;
73
- const { message } = params;
74
- if (iss.code === "invalid_enum_value") {
75
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
76
- }
77
- if (typeof ctx.data === "undefined") {
78
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
79
- }
80
- if (iss.code !== "invalid_type")
81
- return { message: ctx.defaultError };
82
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
83
- };
84
- return { errorMap: customMap, description };
85
- }
86
- class ZodType {
87
- constructor(def) {
88
- /** Alias of safeParseAsync */
89
- this.spa = this.safeParseAsync;
90
- this._def = def;
91
- this.parse = this.parse.bind(this);
92
- this.safeParse = this.safeParse.bind(this);
93
- this.parseAsync = this.parseAsync.bind(this);
94
- this.safeParseAsync = this.safeParseAsync.bind(this);
95
- this.spa = this.spa.bind(this);
96
- this.refine = this.refine.bind(this);
97
- this.refinement = this.refinement.bind(this);
98
- this.superRefine = this.superRefine.bind(this);
99
- this.optional = this.optional.bind(this);
100
- this.nullable = this.nullable.bind(this);
101
- this.nullish = this.nullish.bind(this);
102
- this.array = this.array.bind(this);
103
- this.promise = this.promise.bind(this);
104
- this.or = this.or.bind(this);
105
- this.and = this.and.bind(this);
106
- this.transform = this.transform.bind(this);
107
- this.brand = this.brand.bind(this);
108
- this.default = this.default.bind(this);
109
- this.catch = this.catch.bind(this);
110
- this.describe = this.describe.bind(this);
111
- this.pipe = this.pipe.bind(this);
112
- this.readonly = this.readonly.bind(this);
113
- this.isNullable = this.isNullable.bind(this);
114
- this.isOptional = this.isOptional.bind(this);
115
- }
116
- get description() {
117
- return this._def.description;
118
- }
119
- _getType(input) {
120
- return (0, util_1.getParsedType)(input.data);
121
- }
122
- _getOrReturnCtx(input, ctx) {
123
- return (ctx || {
124
- common: input.parent.common,
125
- data: input.data,
126
- parsedType: (0, util_1.getParsedType)(input.data),
127
- schemaErrorMap: this._def.errorMap,
128
- path: input.path,
129
- parent: input.parent,
130
- });
131
- }
132
- _processInputParams(input) {
133
- return {
134
- status: new parseUtil_1.ParseStatus(),
135
- ctx: {
136
- common: input.parent.common,
137
- data: input.data,
138
- parsedType: (0, util_1.getParsedType)(input.data),
139
- schemaErrorMap: this._def.errorMap,
140
- path: input.path,
141
- parent: input.parent,
142
- },
143
- };
144
- }
145
- _parseSync(input) {
146
- const result = this._parse(input);
147
- if ((0, parseUtil_1.isAsync)(result)) {
148
- throw new Error("Synchronous parse encountered promise.");
149
- }
150
- return result;
151
- }
152
- _parseAsync(input) {
153
- const result = this._parse(input);
154
- return Promise.resolve(result);
155
- }
156
- parse(data, params) {
157
- const result = this.safeParse(data, params);
158
- if (result.success)
159
- return result.data;
160
- throw result.error;
161
- }
162
- safeParse(data, params) {
163
- var _a;
164
- const ctx = {
165
- common: {
166
- issues: [],
167
- async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,
168
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
169
- },
170
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
171
- schemaErrorMap: this._def.errorMap,
172
- parent: null,
173
- data,
174
- parsedType: (0, util_1.getParsedType)(data),
175
- };
176
- const result = this._parseSync({ data, path: ctx.path, parent: ctx });
177
- return handleResult(ctx, result);
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 === null || params === void 0 ? void 0 : params.errorMap,
190
- async: true,
191
- },
192
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
193
- schemaErrorMap: this._def.errorMap,
194
- parent: null,
195
- data,
196
- parsedType: (0, util_1.getParsedType)(data),
197
- };
198
- const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
199
- const result = await ((0, parseUtil_1.isAsync)(maybeAsyncResult)
200
- ? maybeAsyncResult
201
- : Promise.resolve(maybeAsyncResult));
202
- return handleResult(ctx, result);
203
- }
204
- refine(check, message) {
205
- const getIssueProperties = (val) => {
206
- if (typeof message === "string" || typeof message === "undefined") {
207
- return { message };
208
- }
209
- else if (typeof message === "function") {
210
- return message(val);
211
- }
212
- else {
213
- return message;
214
- }
215
- };
216
- return this._refinement((val, ctx) => {
217
- const result = check(val);
218
- const setError = () => ctx.addIssue({
219
- code: ZodError_1.ZodIssueCode.custom,
220
- ...getIssueProperties(val),
221
- });
222
- if (typeof Promise !== "undefined" && result instanceof Promise) {
223
- return result.then((data) => {
224
- if (!data) {
225
- setError();
226
- return false;
227
- }
228
- else {
229
- return true;
230
- }
231
- });
232
- }
233
- if (!result) {
234
- setError();
235
- return false;
236
- }
237
- else {
238
- return true;
239
- }
240
- });
241
- }
242
- refinement(check, refinementData) {
243
- return this._refinement((val, ctx) => {
244
- if (!check(val)) {
245
- ctx.addIssue(typeof refinementData === "function"
246
- ? refinementData(val, ctx)
247
- : refinementData);
248
- return false;
249
- }
250
- else {
251
- return true;
252
- }
253
- });
254
- }
255
- _refinement(refinement) {
256
- return new ZodEffects({
257
- schema: this,
258
- typeName: ZodFirstPartyTypeKind.ZodEffects,
259
- effect: { type: "refinement", refinement },
260
- });
261
- }
262
- superRefine(refinement) {
263
- return this._refinement(refinement);
264
- }
265
- optional() {
266
- return ZodOptional.create(this, this._def);
267
- }
268
- nullable() {
269
- return ZodNullable.create(this, this._def);
270
- }
271
- nullish() {
272
- return this.nullable().optional();
273
- }
274
- array() {
275
- return ZodArray.create(this, this._def);
276
- }
277
- promise() {
278
- return ZodPromise.create(this, this._def);
279
- }
280
- or(option) {
281
- return ZodUnion.create([this, option], this._def);
282
- }
283
- and(incoming) {
284
- return ZodIntersection.create(this, incoming, this._def);
285
- }
286
- transform(transform) {
287
- return new ZodEffects({
288
- ...processCreateParams(this._def),
289
- schema: this,
290
- typeName: ZodFirstPartyTypeKind.ZodEffects,
291
- effect: { type: "transform", transform },
292
- });
293
- }
294
- default(def) {
295
- const defaultValueFunc = typeof def === "function" ? def : () => def;
296
- return new ZodDefault({
297
- ...processCreateParams(this._def),
298
- innerType: this,
299
- defaultValue: defaultValueFunc,
300
- typeName: ZodFirstPartyTypeKind.ZodDefault,
301
- });
302
- }
303
- brand() {
304
- return new ZodBranded({
305
- typeName: ZodFirstPartyTypeKind.ZodBranded,
306
- type: this,
307
- ...processCreateParams(this._def),
308
- });
309
- }
310
- catch(def) {
311
- const catchValueFunc = typeof def === "function" ? def : () => def;
312
- return new ZodCatch({
313
- ...processCreateParams(this._def),
314
- innerType: this,
315
- catchValue: catchValueFunc,
316
- typeName: ZodFirstPartyTypeKind.ZodCatch,
317
- });
318
- }
319
- describe(description) {
320
- const This = this.constructor;
321
- return new This({
322
- ...this._def,
323
- description,
324
- });
325
- }
326
- pipe(target) {
327
- return ZodPipeline.create(this, target);
328
- }
329
- readonly() {
330
- return ZodReadonly.create(this);
331
- }
332
- isOptional() {
333
- return this.safeParse(undefined).success;
334
- }
335
- isNullable() {
336
- return this.safeParse(null).success;
337
- }
338
- }
339
- exports.ZodType = ZodType;
340
- exports.Schema = ZodType;
341
- exports.ZodSchema = ZodType;
342
- const cuidRegex = /^c[^\s-]{8,}$/i;
343
- const cuid2Regex = /^[0-9a-z]+$/;
344
- const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
345
- // const uuidRegex =
346
- // /^([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;
347
- 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;
348
- const nanoidRegex = /^[a-z0-9_-]{21}$/i;
349
- 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)?)??$/;
350
- // from https://stackoverflow.com/a/46181/1550155
351
- // old version: too slow, didn't support unicode
352
- // 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;
353
- //old email regex
354
- // const emailRegex = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@((?!-)([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{1,})[^-<>()[\].,;:\s@"]$/i;
355
- // eslint-disable-next-line
356
- // const emailRegex =
357
- // /^(([^<>()[\]\\.,;:\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,})+))$/;
358
- // const emailRegex =
359
- // /^[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])?)*$/;
360
- // const emailRegex =
361
- // /^(?:[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;
362
- const emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
363
- // const emailRegex =
364
- // /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9\-]+)*$/i;
365
- // from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression
366
- const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
367
- let emojiRegex;
368
- // faster, simpler, safer
369
- 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])$/;
370
- const ipv6Regex = /^(([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})))$/;
371
- // https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
372
- const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
373
- // simple
374
- // const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
375
- // no leap year validation
376
- // 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))`;
377
- // with leap year validation
378
- 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])))`;
379
- const dateRegex = new RegExp(`^${dateRegexSource}$`);
380
- function timeRegexSource(args) {
381
- // let regex = `\\d{2}:\\d{2}:\\d{2}`;
382
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
383
- if (args.precision) {
384
- regex = `${regex}\\.\\d{${args.precision}}`;
385
- }
386
- else if (args.precision == null) {
387
- regex = `${regex}(\\.\\d+)?`;
388
- }
389
- return regex;
390
- }
391
- function timeRegex(args) {
392
- return new RegExp(`^${timeRegexSource(args)}$`);
393
- }
394
- // Adapted from https://stackoverflow.com/a/3143231
395
- function datetimeRegex(args) {
396
- let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
397
- const opts = [];
398
- opts.push(args.local ? `Z?` : `Z`);
399
- if (args.offset)
400
- opts.push(`([+-]\\d{2}:?\\d{2})`);
401
- regex = `${regex}(${opts.join("|")})`;
402
- return new RegExp(`^${regex}$`);
403
- }
404
- exports.datetimeRegex = datetimeRegex;
405
- function isValidIP(ip, version) {
406
- if ((version === "v4" || !version) && ipv4Regex.test(ip)) {
407
- return true;
408
- }
409
- if ((version === "v6" || !version) && ipv6Regex.test(ip)) {
410
- return true;
411
- }
412
- return false;
413
- }
414
- class ZodString extends ZodType {
415
- _parse(input) {
416
- if (this._def.coerce) {
417
- input.data = String(input.data);
418
- }
419
- const parsedType = this._getType(input);
420
- if (parsedType !== util_1.ZodParsedType.string) {
421
- const ctx = this._getOrReturnCtx(input);
422
- (0, parseUtil_1.addIssueToContext)(ctx, {
423
- code: ZodError_1.ZodIssueCode.invalid_type,
424
- expected: util_1.ZodParsedType.string,
425
- received: ctx.parsedType,
426
- });
427
- return parseUtil_1.INVALID;
428
- }
429
- const status = new parseUtil_1.ParseStatus();
430
- let ctx = undefined;
431
- for (const check of this._def.checks) {
432
- if (check.kind === "min") {
433
- if (input.data.length < check.value) {
434
- ctx = this._getOrReturnCtx(input, ctx);
435
- (0, parseUtil_1.addIssueToContext)(ctx, {
436
- code: ZodError_1.ZodIssueCode.too_small,
437
- minimum: check.value,
438
- type: "string",
439
- inclusive: true,
440
- exact: false,
441
- message: check.message,
442
- });
443
- status.dirty();
444
- }
445
- }
446
- else if (check.kind === "max") {
447
- if (input.data.length > check.value) {
448
- ctx = this._getOrReturnCtx(input, ctx);
449
- (0, parseUtil_1.addIssueToContext)(ctx, {
450
- code: ZodError_1.ZodIssueCode.too_big,
451
- maximum: check.value,
452
- type: "string",
453
- inclusive: true,
454
- exact: false,
455
- message: check.message,
456
- });
457
- status.dirty();
458
- }
459
- }
460
- else if (check.kind === "length") {
461
- const tooBig = input.data.length > check.value;
462
- const tooSmall = input.data.length < check.value;
463
- if (tooBig || tooSmall) {
464
- ctx = this._getOrReturnCtx(input, ctx);
465
- if (tooBig) {
466
- (0, parseUtil_1.addIssueToContext)(ctx, {
467
- code: ZodError_1.ZodIssueCode.too_big,
468
- maximum: check.value,
469
- type: "string",
470
- inclusive: true,
471
- exact: true,
472
- message: check.message,
473
- });
474
- }
475
- else if (tooSmall) {
476
- (0, parseUtil_1.addIssueToContext)(ctx, {
477
- code: ZodError_1.ZodIssueCode.too_small,
478
- minimum: check.value,
479
- type: "string",
480
- inclusive: true,
481
- exact: true,
482
- message: check.message,
483
- });
484
- }
485
- status.dirty();
486
- }
487
- }
488
- else if (check.kind === "email") {
489
- if (!emailRegex.test(input.data)) {
490
- ctx = this._getOrReturnCtx(input, ctx);
491
- (0, parseUtil_1.addIssueToContext)(ctx, {
492
- validation: "email",
493
- code: ZodError_1.ZodIssueCode.invalid_string,
494
- message: check.message,
495
- });
496
- status.dirty();
497
- }
498
- }
499
- else if (check.kind === "emoji") {
500
- if (!emojiRegex) {
501
- emojiRegex = new RegExp(_emojiRegex, "u");
502
- }
503
- if (!emojiRegex.test(input.data)) {
504
- ctx = this._getOrReturnCtx(input, ctx);
505
- (0, parseUtil_1.addIssueToContext)(ctx, {
506
- validation: "emoji",
507
- code: ZodError_1.ZodIssueCode.invalid_string,
508
- message: check.message,
509
- });
510
- status.dirty();
511
- }
512
- }
513
- else if (check.kind === "uuid") {
514
- if (!uuidRegex.test(input.data)) {
515
- ctx = this._getOrReturnCtx(input, ctx);
516
- (0, parseUtil_1.addIssueToContext)(ctx, {
517
- validation: "uuid",
518
- code: ZodError_1.ZodIssueCode.invalid_string,
519
- message: check.message,
520
- });
521
- status.dirty();
522
- }
523
- }
524
- else if (check.kind === "nanoid") {
525
- if (!nanoidRegex.test(input.data)) {
526
- ctx = this._getOrReturnCtx(input, ctx);
527
- (0, parseUtil_1.addIssueToContext)(ctx, {
528
- validation: "nanoid",
529
- code: ZodError_1.ZodIssueCode.invalid_string,
530
- message: check.message,
531
- });
532
- status.dirty();
533
- }
534
- }
535
- else if (check.kind === "cuid") {
536
- if (!cuidRegex.test(input.data)) {
537
- ctx = this._getOrReturnCtx(input, ctx);
538
- (0, parseUtil_1.addIssueToContext)(ctx, {
539
- validation: "cuid",
540
- code: ZodError_1.ZodIssueCode.invalid_string,
541
- message: check.message,
542
- });
543
- status.dirty();
544
- }
545
- }
546
- else if (check.kind === "cuid2") {
547
- if (!cuid2Regex.test(input.data)) {
548
- ctx = this._getOrReturnCtx(input, ctx);
549
- (0, parseUtil_1.addIssueToContext)(ctx, {
550
- validation: "cuid2",
551
- code: ZodError_1.ZodIssueCode.invalid_string,
552
- message: check.message,
553
- });
554
- status.dirty();
555
- }
556
- }
557
- else if (check.kind === "ulid") {
558
- if (!ulidRegex.test(input.data)) {
559
- ctx = this._getOrReturnCtx(input, ctx);
560
- (0, parseUtil_1.addIssueToContext)(ctx, {
561
- validation: "ulid",
562
- code: ZodError_1.ZodIssueCode.invalid_string,
563
- message: check.message,
564
- });
565
- status.dirty();
566
- }
567
- }
568
- else if (check.kind === "url") {
569
- try {
570
- new URL(input.data);
571
- }
572
- catch (_a) {
573
- ctx = this._getOrReturnCtx(input, ctx);
574
- (0, parseUtil_1.addIssueToContext)(ctx, {
575
- validation: "url",
576
- code: ZodError_1.ZodIssueCode.invalid_string,
577
- message: check.message,
578
- });
579
- status.dirty();
580
- }
581
- }
582
- else if (check.kind === "regex") {
583
- check.regex.lastIndex = 0;
584
- const testResult = check.regex.test(input.data);
585
- if (!testResult) {
586
- ctx = this._getOrReturnCtx(input, ctx);
587
- (0, parseUtil_1.addIssueToContext)(ctx, {
588
- validation: "regex",
589
- code: ZodError_1.ZodIssueCode.invalid_string,
590
- message: check.message,
591
- });
592
- status.dirty();
593
- }
594
- }
595
- else if (check.kind === "trim") {
596
- input.data = input.data.trim();
597
- }
598
- else if (check.kind === "includes") {
599
- if (!input.data.includes(check.value, check.position)) {
600
- ctx = this._getOrReturnCtx(input, ctx);
601
- (0, parseUtil_1.addIssueToContext)(ctx, {
602
- code: ZodError_1.ZodIssueCode.invalid_string,
603
- validation: { includes: check.value, position: check.position },
604
- message: check.message,
605
- });
606
- status.dirty();
607
- }
608
- }
609
- else if (check.kind === "toLowerCase") {
610
- input.data = input.data.toLowerCase();
611
- }
612
- else if (check.kind === "toUpperCase") {
613
- input.data = input.data.toUpperCase();
614
- }
615
- else if (check.kind === "startsWith") {
616
- if (!input.data.startsWith(check.value)) {
617
- ctx = this._getOrReturnCtx(input, ctx);
618
- (0, parseUtil_1.addIssueToContext)(ctx, {
619
- code: ZodError_1.ZodIssueCode.invalid_string,
620
- validation: { startsWith: check.value },
621
- message: check.message,
622
- });
623
- status.dirty();
624
- }
625
- }
626
- else if (check.kind === "endsWith") {
627
- if (!input.data.endsWith(check.value)) {
628
- ctx = this._getOrReturnCtx(input, ctx);
629
- (0, parseUtil_1.addIssueToContext)(ctx, {
630
- code: ZodError_1.ZodIssueCode.invalid_string,
631
- validation: { endsWith: check.value },
632
- message: check.message,
633
- });
634
- status.dirty();
635
- }
636
- }
637
- else if (check.kind === "datetime") {
638
- const regex = datetimeRegex(check);
639
- if (!regex.test(input.data)) {
640
- ctx = this._getOrReturnCtx(input, ctx);
641
- (0, parseUtil_1.addIssueToContext)(ctx, {
642
- code: ZodError_1.ZodIssueCode.invalid_string,
643
- validation: "datetime",
644
- message: check.message,
645
- });
646
- status.dirty();
647
- }
648
- }
649
- else if (check.kind === "date") {
650
- const regex = dateRegex;
651
- if (!regex.test(input.data)) {
652
- ctx = this._getOrReturnCtx(input, ctx);
653
- (0, parseUtil_1.addIssueToContext)(ctx, {
654
- code: ZodError_1.ZodIssueCode.invalid_string,
655
- validation: "date",
656
- message: check.message,
657
- });
658
- status.dirty();
659
- }
660
- }
661
- else if (check.kind === "time") {
662
- const regex = timeRegex(check);
663
- if (!regex.test(input.data)) {
664
- ctx = this._getOrReturnCtx(input, ctx);
665
- (0, parseUtil_1.addIssueToContext)(ctx, {
666
- code: ZodError_1.ZodIssueCode.invalid_string,
667
- validation: "time",
668
- message: check.message,
669
- });
670
- status.dirty();
671
- }
672
- }
673
- else if (check.kind === "duration") {
674
- if (!durationRegex.test(input.data)) {
675
- ctx = this._getOrReturnCtx(input, ctx);
676
- (0, parseUtil_1.addIssueToContext)(ctx, {
677
- validation: "duration",
678
- code: ZodError_1.ZodIssueCode.invalid_string,
679
- message: check.message,
680
- });
681
- status.dirty();
682
- }
683
- }
684
- else if (check.kind === "ip") {
685
- if (!isValidIP(input.data, check.version)) {
686
- ctx = this._getOrReturnCtx(input, ctx);
687
- (0, parseUtil_1.addIssueToContext)(ctx, {
688
- validation: "ip",
689
- code: ZodError_1.ZodIssueCode.invalid_string,
690
- message: check.message,
691
- });
692
- status.dirty();
693
- }
694
- }
695
- else if (check.kind === "base64") {
696
- if (!base64Regex.test(input.data)) {
697
- ctx = this._getOrReturnCtx(input, ctx);
698
- (0, parseUtil_1.addIssueToContext)(ctx, {
699
- validation: "base64",
700
- code: ZodError_1.ZodIssueCode.invalid_string,
701
- message: check.message,
702
- });
703
- status.dirty();
704
- }
705
- }
706
- else {
707
- util_1.util.assertNever(check);
708
- }
709
- }
710
- return { status: status.value, value: input.data };
711
- }
712
- _regex(regex, validation, message) {
713
- return this.refinement((data) => regex.test(data), {
714
- validation,
715
- code: ZodError_1.ZodIssueCode.invalid_string,
716
- ...errorUtil_1.errorUtil.errToObj(message),
717
- });
718
- }
719
- _addCheck(check) {
720
- return new ZodString({
721
- ...this._def,
722
- checks: [...this._def.checks, check],
723
- });
724
- }
725
- email(message) {
726
- return this._addCheck({ kind: "email", ...errorUtil_1.errorUtil.errToObj(message) });
727
- }
728
- url(message) {
729
- return this._addCheck({ kind: "url", ...errorUtil_1.errorUtil.errToObj(message) });
730
- }
731
- emoji(message) {
732
- return this._addCheck({ kind: "emoji", ...errorUtil_1.errorUtil.errToObj(message) });
733
- }
734
- uuid(message) {
735
- return this._addCheck({ kind: "uuid", ...errorUtil_1.errorUtil.errToObj(message) });
736
- }
737
- nanoid(message) {
738
- return this._addCheck({ kind: "nanoid", ...errorUtil_1.errorUtil.errToObj(message) });
739
- }
740
- cuid(message) {
741
- return this._addCheck({ kind: "cuid", ...errorUtil_1.errorUtil.errToObj(message) });
742
- }
743
- cuid2(message) {
744
- return this._addCheck({ kind: "cuid2", ...errorUtil_1.errorUtil.errToObj(message) });
745
- }
746
- ulid(message) {
747
- return this._addCheck({ kind: "ulid", ...errorUtil_1.errorUtil.errToObj(message) });
748
- }
749
- base64(message) {
750
- return this._addCheck({ kind: "base64", ...errorUtil_1.errorUtil.errToObj(message) });
751
- }
752
- ip(options) {
753
- return this._addCheck({ kind: "ip", ...errorUtil_1.errorUtil.errToObj(options) });
754
- }
755
- datetime(options) {
756
- var _a, _b;
757
- if (typeof options === "string") {
758
- return this._addCheck({
759
- kind: "datetime",
760
- precision: null,
761
- offset: false,
762
- local: false,
763
- message: options,
764
- });
765
- }
766
- return this._addCheck({
767
- kind: "datetime",
768
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
769
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
770
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
771
- ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
772
- });
773
- }
774
- date(message) {
775
- return this._addCheck({ kind: "date", message });
776
- }
777
- time(options) {
778
- if (typeof options === "string") {
779
- return this._addCheck({
780
- kind: "time",
781
- precision: null,
782
- message: options,
783
- });
784
- }
785
- return this._addCheck({
786
- kind: "time",
787
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
788
- ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
789
- });
790
- }
791
- duration(message) {
792
- return this._addCheck({ kind: "duration", ...errorUtil_1.errorUtil.errToObj(message) });
793
- }
794
- regex(regex, message) {
795
- return this._addCheck({
796
- kind: "regex",
797
- regex: regex,
798
- ...errorUtil_1.errorUtil.errToObj(message),
799
- });
800
- }
801
- includes(value, options) {
802
- return this._addCheck({
803
- kind: "includes",
804
- value: value,
805
- position: options === null || options === void 0 ? void 0 : options.position,
806
- ...errorUtil_1.errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
807
- });
808
- }
809
- startsWith(value, message) {
810
- return this._addCheck({
811
- kind: "startsWith",
812
- value: value,
813
- ...errorUtil_1.errorUtil.errToObj(message),
814
- });
815
- }
816
- endsWith(value, message) {
817
- return this._addCheck({
818
- kind: "endsWith",
819
- value: value,
820
- ...errorUtil_1.errorUtil.errToObj(message),
821
- });
822
- }
823
- min(minLength, message) {
824
- return this._addCheck({
825
- kind: "min",
826
- value: minLength,
827
- ...errorUtil_1.errorUtil.errToObj(message),
828
- });
829
- }
830
- max(maxLength, message) {
831
- return this._addCheck({
832
- kind: "max",
833
- value: maxLength,
834
- ...errorUtil_1.errorUtil.errToObj(message),
835
- });
836
- }
837
- length(len, message) {
838
- return this._addCheck({
839
- kind: "length",
840
- value: len,
841
- ...errorUtil_1.errorUtil.errToObj(message),
842
- });
843
- }
844
- /**
845
- * @deprecated Use z.string().min(1) instead.
846
- * @see {@link ZodString.min}
847
- */
848
- nonempty(message) {
849
- return this.min(1, errorUtil_1.errorUtil.errToObj(message));
850
- }
851
- trim() {
852
- return new ZodString({
853
- ...this._def,
854
- checks: [...this._def.checks, { kind: "trim" }],
855
- });
856
- }
857
- toLowerCase() {
858
- return new ZodString({
859
- ...this._def,
860
- checks: [...this._def.checks, { kind: "toLowerCase" }],
861
- });
862
- }
863
- toUpperCase() {
864
- return new ZodString({
865
- ...this._def,
866
- checks: [...this._def.checks, { kind: "toUpperCase" }],
867
- });
868
- }
869
- get isDatetime() {
870
- return !!this._def.checks.find((ch) => ch.kind === "datetime");
871
- }
872
- get isDate() {
873
- return !!this._def.checks.find((ch) => ch.kind === "date");
874
- }
875
- get isTime() {
876
- return !!this._def.checks.find((ch) => ch.kind === "time");
877
- }
878
- get isDuration() {
879
- return !!this._def.checks.find((ch) => ch.kind === "duration");
880
- }
881
- get isEmail() {
882
- return !!this._def.checks.find((ch) => ch.kind === "email");
883
- }
884
- get isURL() {
885
- return !!this._def.checks.find((ch) => ch.kind === "url");
886
- }
887
- get isEmoji() {
888
- return !!this._def.checks.find((ch) => ch.kind === "emoji");
889
- }
890
- get isUUID() {
891
- return !!this._def.checks.find((ch) => ch.kind === "uuid");
892
- }
893
- get isNANOID() {
894
- return !!this._def.checks.find((ch) => ch.kind === "nanoid");
895
- }
896
- get isCUID() {
897
- return !!this._def.checks.find((ch) => ch.kind === "cuid");
898
- }
899
- get isCUID2() {
900
- return !!this._def.checks.find((ch) => ch.kind === "cuid2");
901
- }
902
- get isULID() {
903
- return !!this._def.checks.find((ch) => ch.kind === "ulid");
904
- }
905
- get isIP() {
906
- return !!this._def.checks.find((ch) => ch.kind === "ip");
907
- }
908
- get isBase64() {
909
- return !!this._def.checks.find((ch) => ch.kind === "base64");
910
- }
911
- get minLength() {
912
- let min = null;
913
- for (const ch of this._def.checks) {
914
- if (ch.kind === "min") {
915
- if (min === null || ch.value > min)
916
- min = ch.value;
917
- }
918
- }
919
- return min;
920
- }
921
- get maxLength() {
922
- let max = null;
923
- for (const ch of this._def.checks) {
924
- if (ch.kind === "max") {
925
- if (max === null || ch.value < max)
926
- max = ch.value;
927
- }
928
- }
929
- return max;
930
- }
931
- }
932
- exports.ZodString = ZodString;
933
- ZodString.create = (params) => {
934
- var _a;
935
- return new ZodString({
936
- checks: [],
937
- typeName: ZodFirstPartyTypeKind.ZodString,
938
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
939
- ...processCreateParams(params),
940
- });
941
- };
942
- // https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034
943
- function floatSafeRemainder(val, step) {
944
- const valDecCount = (val.toString().split(".")[1] || "").length;
945
- const stepDecCount = (step.toString().split(".")[1] || "").length;
946
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
947
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
948
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
949
- return (valInt % stepInt) / Math.pow(10, decCount);
950
- }
951
- class ZodNumber extends ZodType {
952
- constructor() {
953
- super(...arguments);
954
- this.min = this.gte;
955
- this.max = this.lte;
956
- this.step = this.multipleOf;
957
- }
958
- _parse(input) {
959
- if (this._def.coerce) {
960
- input.data = Number(input.data);
961
- }
962
- const parsedType = this._getType(input);
963
- if (parsedType !== util_1.ZodParsedType.number) {
964
- const ctx = this._getOrReturnCtx(input);
965
- (0, parseUtil_1.addIssueToContext)(ctx, {
966
- code: ZodError_1.ZodIssueCode.invalid_type,
967
- expected: util_1.ZodParsedType.number,
968
- received: ctx.parsedType,
969
- });
970
- return parseUtil_1.INVALID;
971
- }
972
- let ctx = undefined;
973
- const status = new parseUtil_1.ParseStatus();
974
- for (const check of this._def.checks) {
975
- if (check.kind === "int") {
976
- if (!util_1.util.isInteger(input.data)) {
977
- ctx = this._getOrReturnCtx(input, ctx);
978
- (0, parseUtil_1.addIssueToContext)(ctx, {
979
- code: ZodError_1.ZodIssueCode.invalid_type,
980
- expected: "integer",
981
- received: "float",
982
- message: check.message,
983
- });
984
- status.dirty();
985
- }
986
- }
987
- else if (check.kind === "min") {
988
- const tooSmall = check.inclusive
989
- ? input.data < check.value
990
- : input.data <= check.value;
991
- if (tooSmall) {
992
- ctx = this._getOrReturnCtx(input, ctx);
993
- (0, parseUtil_1.addIssueToContext)(ctx, {
994
- code: ZodError_1.ZodIssueCode.too_small,
995
- minimum: check.value,
996
- type: "number",
997
- inclusive: check.inclusive,
998
- exact: false,
999
- message: check.message,
1000
- });
1001
- status.dirty();
1002
- }
1003
- }
1004
- else if (check.kind === "max") {
1005
- const tooBig = check.inclusive
1006
- ? input.data > check.value
1007
- : input.data >= check.value;
1008
- if (tooBig) {
1009
- ctx = this._getOrReturnCtx(input, ctx);
1010
- (0, parseUtil_1.addIssueToContext)(ctx, {
1011
- code: ZodError_1.ZodIssueCode.too_big,
1012
- maximum: check.value,
1013
- type: "number",
1014
- inclusive: check.inclusive,
1015
- exact: false,
1016
- message: check.message,
1017
- });
1018
- status.dirty();
1019
- }
1020
- }
1021
- else if (check.kind === "multipleOf") {
1022
- if (floatSafeRemainder(input.data, check.value) !== 0) {
1023
- ctx = this._getOrReturnCtx(input, ctx);
1024
- (0, parseUtil_1.addIssueToContext)(ctx, {
1025
- code: ZodError_1.ZodIssueCode.not_multiple_of,
1026
- multipleOf: check.value,
1027
- message: check.message,
1028
- });
1029
- status.dirty();
1030
- }
1031
- }
1032
- else if (check.kind === "finite") {
1033
- if (!Number.isFinite(input.data)) {
1034
- ctx = this._getOrReturnCtx(input, ctx);
1035
- (0, parseUtil_1.addIssueToContext)(ctx, {
1036
- code: ZodError_1.ZodIssueCode.not_finite,
1037
- message: check.message,
1038
- });
1039
- status.dirty();
1040
- }
1041
- }
1042
- else {
1043
- util_1.util.assertNever(check);
1044
- }
1045
- }
1046
- return { status: status.value, value: input.data };
1047
- }
1048
- gte(value, message) {
1049
- return this.setLimit("min", value, true, errorUtil_1.errorUtil.toString(message));
1050
- }
1051
- gt(value, message) {
1052
- return this.setLimit("min", value, false, errorUtil_1.errorUtil.toString(message));
1053
- }
1054
- lte(value, message) {
1055
- return this.setLimit("max", value, true, errorUtil_1.errorUtil.toString(message));
1056
- }
1057
- lt(value, message) {
1058
- return this.setLimit("max", value, false, errorUtil_1.errorUtil.toString(message));
1059
- }
1060
- setLimit(kind, value, inclusive, message) {
1061
- return new ZodNumber({
1062
- ...this._def,
1063
- checks: [
1064
- ...this._def.checks,
1065
- {
1066
- kind,
1067
- value,
1068
- inclusive,
1069
- message: errorUtil_1.errorUtil.toString(message),
1070
- },
1071
- ],
1072
- });
1073
- }
1074
- _addCheck(check) {
1075
- return new ZodNumber({
1076
- ...this._def,
1077
- checks: [...this._def.checks, check],
1078
- });
1079
- }
1080
- int(message) {
1081
- return this._addCheck({
1082
- kind: "int",
1083
- message: errorUtil_1.errorUtil.toString(message),
1084
- });
1085
- }
1086
- positive(message) {
1087
- return this._addCheck({
1088
- kind: "min",
1089
- value: 0,
1090
- inclusive: false,
1091
- message: errorUtil_1.errorUtil.toString(message),
1092
- });
1093
- }
1094
- negative(message) {
1095
- return this._addCheck({
1096
- kind: "max",
1097
- value: 0,
1098
- inclusive: false,
1099
- message: errorUtil_1.errorUtil.toString(message),
1100
- });
1101
- }
1102
- nonpositive(message) {
1103
- return this._addCheck({
1104
- kind: "max",
1105
- value: 0,
1106
- inclusive: true,
1107
- message: errorUtil_1.errorUtil.toString(message),
1108
- });
1109
- }
1110
- nonnegative(message) {
1111
- return this._addCheck({
1112
- kind: "min",
1113
- value: 0,
1114
- inclusive: true,
1115
- message: errorUtil_1.errorUtil.toString(message),
1116
- });
1117
- }
1118
- multipleOf(value, message) {
1119
- return this._addCheck({
1120
- kind: "multipleOf",
1121
- value: value,
1122
- message: errorUtil_1.errorUtil.toString(message),
1123
- });
1124
- }
1125
- finite(message) {
1126
- return this._addCheck({
1127
- kind: "finite",
1128
- message: errorUtil_1.errorUtil.toString(message),
1129
- });
1130
- }
1131
- safe(message) {
1132
- return this._addCheck({
1133
- kind: "min",
1134
- inclusive: true,
1135
- value: Number.MIN_SAFE_INTEGER,
1136
- message: errorUtil_1.errorUtil.toString(message),
1137
- })._addCheck({
1138
- kind: "max",
1139
- inclusive: true,
1140
- value: Number.MAX_SAFE_INTEGER,
1141
- message: errorUtil_1.errorUtil.toString(message),
1142
- });
1143
- }
1144
- get minValue() {
1145
- let min = null;
1146
- for (const ch of this._def.checks) {
1147
- if (ch.kind === "min") {
1148
- if (min === null || ch.value > min)
1149
- min = ch.value;
1150
- }
1151
- }
1152
- return min;
1153
- }
1154
- get maxValue() {
1155
- let max = null;
1156
- for (const ch of this._def.checks) {
1157
- if (ch.kind === "max") {
1158
- if (max === null || ch.value < max)
1159
- max = ch.value;
1160
- }
1161
- }
1162
- return max;
1163
- }
1164
- get isInt() {
1165
- return !!this._def.checks.find((ch) => ch.kind === "int" ||
1166
- (ch.kind === "multipleOf" && util_1.util.isInteger(ch.value)));
1167
- }
1168
- get isFinite() {
1169
- let max = null, min = null;
1170
- for (const ch of this._def.checks) {
1171
- if (ch.kind === "finite" ||
1172
- ch.kind === "int" ||
1173
- ch.kind === "multipleOf") {
1174
- return true;
1175
- }
1176
- else if (ch.kind === "min") {
1177
- if (min === null || ch.value > min)
1178
- min = ch.value;
1179
- }
1180
- else if (ch.kind === "max") {
1181
- if (max === null || ch.value < max)
1182
- max = ch.value;
1183
- }
1184
- }
1185
- return Number.isFinite(min) && Number.isFinite(max);
1186
- }
1187
- }
1188
- exports.ZodNumber = ZodNumber;
1189
- ZodNumber.create = (params) => {
1190
- return new ZodNumber({
1191
- checks: [],
1192
- typeName: ZodFirstPartyTypeKind.ZodNumber,
1193
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1194
- ...processCreateParams(params),
1195
- });
1196
- };
1197
- class ZodBigInt extends ZodType {
1198
- constructor() {
1199
- super(...arguments);
1200
- this.min = this.gte;
1201
- this.max = this.lte;
1202
- }
1203
- _parse(input) {
1204
- if (this._def.coerce) {
1205
- input.data = BigInt(input.data);
1206
- }
1207
- const parsedType = this._getType(input);
1208
- if (parsedType !== util_1.ZodParsedType.bigint) {
1209
- const ctx = this._getOrReturnCtx(input);
1210
- (0, parseUtil_1.addIssueToContext)(ctx, {
1211
- code: ZodError_1.ZodIssueCode.invalid_type,
1212
- expected: util_1.ZodParsedType.bigint,
1213
- received: ctx.parsedType,
1214
- });
1215
- return parseUtil_1.INVALID;
1216
- }
1217
- let ctx = undefined;
1218
- const status = new parseUtil_1.ParseStatus();
1219
- for (const check of this._def.checks) {
1220
- if (check.kind === "min") {
1221
- const tooSmall = check.inclusive
1222
- ? input.data < check.value
1223
- : input.data <= check.value;
1224
- if (tooSmall) {
1225
- ctx = this._getOrReturnCtx(input, ctx);
1226
- (0, parseUtil_1.addIssueToContext)(ctx, {
1227
- code: ZodError_1.ZodIssueCode.too_small,
1228
- type: "bigint",
1229
- minimum: check.value,
1230
- inclusive: check.inclusive,
1231
- message: check.message,
1232
- });
1233
- status.dirty();
1234
- }
1235
- }
1236
- else if (check.kind === "max") {
1237
- const tooBig = check.inclusive
1238
- ? input.data > check.value
1239
- : input.data >= check.value;
1240
- if (tooBig) {
1241
- ctx = this._getOrReturnCtx(input, ctx);
1242
- (0, parseUtil_1.addIssueToContext)(ctx, {
1243
- code: ZodError_1.ZodIssueCode.too_big,
1244
- type: "bigint",
1245
- maximum: check.value,
1246
- inclusive: check.inclusive,
1247
- message: check.message,
1248
- });
1249
- status.dirty();
1250
- }
1251
- }
1252
- else if (check.kind === "multipleOf") {
1253
- if (input.data % check.value !== BigInt(0)) {
1254
- ctx = this._getOrReturnCtx(input, ctx);
1255
- (0, parseUtil_1.addIssueToContext)(ctx, {
1256
- code: ZodError_1.ZodIssueCode.not_multiple_of,
1257
- multipleOf: check.value,
1258
- message: check.message,
1259
- });
1260
- status.dirty();
1261
- }
1262
- }
1263
- else {
1264
- util_1.util.assertNever(check);
1265
- }
1266
- }
1267
- return { status: status.value, value: input.data };
1268
- }
1269
- gte(value, message) {
1270
- return this.setLimit("min", value, true, errorUtil_1.errorUtil.toString(message));
1271
- }
1272
- gt(value, message) {
1273
- return this.setLimit("min", value, false, errorUtil_1.errorUtil.toString(message));
1274
- }
1275
- lte(value, message) {
1276
- return this.setLimit("max", value, true, errorUtil_1.errorUtil.toString(message));
1277
- }
1278
- lt(value, message) {
1279
- return this.setLimit("max", value, false, errorUtil_1.errorUtil.toString(message));
1280
- }
1281
- setLimit(kind, value, inclusive, message) {
1282
- return new ZodBigInt({
1283
- ...this._def,
1284
- checks: [
1285
- ...this._def.checks,
1286
- {
1287
- kind,
1288
- value,
1289
- inclusive,
1290
- message: errorUtil_1.errorUtil.toString(message),
1291
- },
1292
- ],
1293
- });
1294
- }
1295
- _addCheck(check) {
1296
- return new ZodBigInt({
1297
- ...this._def,
1298
- checks: [...this._def.checks, check],
1299
- });
1300
- }
1301
- positive(message) {
1302
- return this._addCheck({
1303
- kind: "min",
1304
- value: BigInt(0),
1305
- inclusive: false,
1306
- message: errorUtil_1.errorUtil.toString(message),
1307
- });
1308
- }
1309
- negative(message) {
1310
- return this._addCheck({
1311
- kind: "max",
1312
- value: BigInt(0),
1313
- inclusive: false,
1314
- message: errorUtil_1.errorUtil.toString(message),
1315
- });
1316
- }
1317
- nonpositive(message) {
1318
- return this._addCheck({
1319
- kind: "max",
1320
- value: BigInt(0),
1321
- inclusive: true,
1322
- message: errorUtil_1.errorUtil.toString(message),
1323
- });
1324
- }
1325
- nonnegative(message) {
1326
- return this._addCheck({
1327
- kind: "min",
1328
- value: BigInt(0),
1329
- inclusive: true,
1330
- message: errorUtil_1.errorUtil.toString(message),
1331
- });
1332
- }
1333
- multipleOf(value, message) {
1334
- return this._addCheck({
1335
- kind: "multipleOf",
1336
- value,
1337
- message: errorUtil_1.errorUtil.toString(message),
1338
- });
1339
- }
1340
- get minValue() {
1341
- let min = null;
1342
- for (const ch of this._def.checks) {
1343
- if (ch.kind === "min") {
1344
- if (min === null || ch.value > min)
1345
- min = ch.value;
1346
- }
1347
- }
1348
- return min;
1349
- }
1350
- get maxValue() {
1351
- let max = null;
1352
- for (const ch of this._def.checks) {
1353
- if (ch.kind === "max") {
1354
- if (max === null || ch.value < max)
1355
- max = ch.value;
1356
- }
1357
- }
1358
- return max;
1359
- }
1360
- }
1361
- exports.ZodBigInt = ZodBigInt;
1362
- ZodBigInt.create = (params) => {
1363
- var _a;
1364
- return new ZodBigInt({
1365
- checks: [],
1366
- typeName: ZodFirstPartyTypeKind.ZodBigInt,
1367
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
1368
- ...processCreateParams(params),
1369
- });
1370
- };
1371
- class ZodBoolean extends ZodType {
1372
- _parse(input) {
1373
- if (this._def.coerce) {
1374
- input.data = Boolean(input.data);
1375
- }
1376
- const parsedType = this._getType(input);
1377
- if (parsedType !== util_1.ZodParsedType.boolean) {
1378
- const ctx = this._getOrReturnCtx(input);
1379
- (0, parseUtil_1.addIssueToContext)(ctx, {
1380
- code: ZodError_1.ZodIssueCode.invalid_type,
1381
- expected: util_1.ZodParsedType.boolean,
1382
- received: ctx.parsedType,
1383
- });
1384
- return parseUtil_1.INVALID;
1385
- }
1386
- return (0, parseUtil_1.OK)(input.data);
1387
- }
1388
- }
1389
- exports.ZodBoolean = ZodBoolean;
1390
- ZodBoolean.create = (params) => {
1391
- return new ZodBoolean({
1392
- typeName: ZodFirstPartyTypeKind.ZodBoolean,
1393
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1394
- ...processCreateParams(params),
1395
- });
1396
- };
1397
- class ZodDate extends ZodType {
1398
- _parse(input) {
1399
- if (this._def.coerce) {
1400
- input.data = new Date(input.data);
1401
- }
1402
- const parsedType = this._getType(input);
1403
- if (parsedType !== util_1.ZodParsedType.date) {
1404
- const ctx = this._getOrReturnCtx(input);
1405
- (0, parseUtil_1.addIssueToContext)(ctx, {
1406
- code: ZodError_1.ZodIssueCode.invalid_type,
1407
- expected: util_1.ZodParsedType.date,
1408
- received: ctx.parsedType,
1409
- });
1410
- return parseUtil_1.INVALID;
1411
- }
1412
- if (isNaN(input.data.getTime())) {
1413
- const ctx = this._getOrReturnCtx(input);
1414
- (0, parseUtil_1.addIssueToContext)(ctx, {
1415
- code: ZodError_1.ZodIssueCode.invalid_date,
1416
- });
1417
- return parseUtil_1.INVALID;
1418
- }
1419
- const status = new parseUtil_1.ParseStatus();
1420
- let ctx = undefined;
1421
- for (const check of this._def.checks) {
1422
- if (check.kind === "min") {
1423
- if (input.data.getTime() < check.value) {
1424
- ctx = this._getOrReturnCtx(input, ctx);
1425
- (0, parseUtil_1.addIssueToContext)(ctx, {
1426
- code: ZodError_1.ZodIssueCode.too_small,
1427
- message: check.message,
1428
- inclusive: true,
1429
- exact: false,
1430
- minimum: check.value,
1431
- type: "date",
1432
- });
1433
- status.dirty();
1434
- }
1435
- }
1436
- else if (check.kind === "max") {
1437
- if (input.data.getTime() > check.value) {
1438
- ctx = this._getOrReturnCtx(input, ctx);
1439
- (0, parseUtil_1.addIssueToContext)(ctx, {
1440
- code: ZodError_1.ZodIssueCode.too_big,
1441
- message: check.message,
1442
- inclusive: true,
1443
- exact: false,
1444
- maximum: check.value,
1445
- type: "date",
1446
- });
1447
- status.dirty();
1448
- }
1449
- }
1450
- else {
1451
- util_1.util.assertNever(check);
1452
- }
1453
- }
1454
- return {
1455
- status: status.value,
1456
- value: new Date(input.data.getTime()),
1457
- };
1458
- }
1459
- _addCheck(check) {
1460
- return new ZodDate({
1461
- ...this._def,
1462
- checks: [...this._def.checks, check],
1463
- });
1464
- }
1465
- min(minDate, message) {
1466
- return this._addCheck({
1467
- kind: "min",
1468
- value: minDate.getTime(),
1469
- message: errorUtil_1.errorUtil.toString(message),
1470
- });
1471
- }
1472
- max(maxDate, message) {
1473
- return this._addCheck({
1474
- kind: "max",
1475
- value: maxDate.getTime(),
1476
- message: errorUtil_1.errorUtil.toString(message),
1477
- });
1478
- }
1479
- get minDate() {
1480
- let min = null;
1481
- for (const ch of this._def.checks) {
1482
- if (ch.kind === "min") {
1483
- if (min === null || ch.value > min)
1484
- min = ch.value;
1485
- }
1486
- }
1487
- return min != null ? new Date(min) : null;
1488
- }
1489
- get maxDate() {
1490
- let max = null;
1491
- for (const ch of this._def.checks) {
1492
- if (ch.kind === "max") {
1493
- if (max === null || ch.value < max)
1494
- max = ch.value;
1495
- }
1496
- }
1497
- return max != null ? new Date(max) : null;
1498
- }
1499
- }
1500
- exports.ZodDate = ZodDate;
1501
- ZodDate.create = (params) => {
1502
- return new ZodDate({
1503
- checks: [],
1504
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1505
- typeName: ZodFirstPartyTypeKind.ZodDate,
1506
- ...processCreateParams(params),
1507
- });
1508
- };
1509
- class ZodSymbol extends ZodType {
1510
- _parse(input) {
1511
- const parsedType = this._getType(input);
1512
- if (parsedType !== util_1.ZodParsedType.symbol) {
1513
- const ctx = this._getOrReturnCtx(input);
1514
- (0, parseUtil_1.addIssueToContext)(ctx, {
1515
- code: ZodError_1.ZodIssueCode.invalid_type,
1516
- expected: util_1.ZodParsedType.symbol,
1517
- received: ctx.parsedType,
1518
- });
1519
- return parseUtil_1.INVALID;
1520
- }
1521
- return (0, parseUtil_1.OK)(input.data);
1522
- }
1523
- }
1524
- exports.ZodSymbol = ZodSymbol;
1525
- ZodSymbol.create = (params) => {
1526
- return new ZodSymbol({
1527
- typeName: ZodFirstPartyTypeKind.ZodSymbol,
1528
- ...processCreateParams(params),
1529
- });
1530
- };
1531
- class ZodUndefined extends ZodType {
1532
- _parse(input) {
1533
- const parsedType = this._getType(input);
1534
- if (parsedType !== util_1.ZodParsedType.undefined) {
1535
- const ctx = this._getOrReturnCtx(input);
1536
- (0, parseUtil_1.addIssueToContext)(ctx, {
1537
- code: ZodError_1.ZodIssueCode.invalid_type,
1538
- expected: util_1.ZodParsedType.undefined,
1539
- received: ctx.parsedType,
1540
- });
1541
- return parseUtil_1.INVALID;
1542
- }
1543
- return (0, parseUtil_1.OK)(input.data);
1544
- }
1545
- }
1546
- exports.ZodUndefined = ZodUndefined;
1547
- ZodUndefined.create = (params) => {
1548
- return new ZodUndefined({
1549
- typeName: ZodFirstPartyTypeKind.ZodUndefined,
1550
- ...processCreateParams(params),
1551
- });
1552
- };
1553
- class ZodNull extends ZodType {
1554
- _parse(input) {
1555
- const parsedType = this._getType(input);
1556
- if (parsedType !== util_1.ZodParsedType.null) {
1557
- const ctx = this._getOrReturnCtx(input);
1558
- (0, parseUtil_1.addIssueToContext)(ctx, {
1559
- code: ZodError_1.ZodIssueCode.invalid_type,
1560
- expected: util_1.ZodParsedType.null,
1561
- received: ctx.parsedType,
1562
- });
1563
- return parseUtil_1.INVALID;
1564
- }
1565
- return (0, parseUtil_1.OK)(input.data);
1566
- }
1567
- }
1568
- exports.ZodNull = ZodNull;
1569
- ZodNull.create = (params) => {
1570
- return new ZodNull({
1571
- typeName: ZodFirstPartyTypeKind.ZodNull,
1572
- ...processCreateParams(params),
1573
- });
1574
- };
1575
- class ZodAny extends ZodType {
1576
- constructor() {
1577
- super(...arguments);
1578
- // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
1579
- this._any = true;
1580
- }
1581
- _parse(input) {
1582
- return (0, parseUtil_1.OK)(input.data);
1583
- }
1584
- }
1585
- exports.ZodAny = ZodAny;
1586
- ZodAny.create = (params) => {
1587
- return new ZodAny({
1588
- typeName: ZodFirstPartyTypeKind.ZodAny,
1589
- ...processCreateParams(params),
1590
- });
1591
- };
1592
- class ZodUnknown extends ZodType {
1593
- constructor() {
1594
- super(...arguments);
1595
- // required
1596
- this._unknown = true;
1597
- }
1598
- _parse(input) {
1599
- return (0, parseUtil_1.OK)(input.data);
1600
- }
1601
- }
1602
- exports.ZodUnknown = ZodUnknown;
1603
- ZodUnknown.create = (params) => {
1604
- return new ZodUnknown({
1605
- typeName: ZodFirstPartyTypeKind.ZodUnknown,
1606
- ...processCreateParams(params),
1607
- });
1608
- };
1609
- class ZodNever extends ZodType {
1610
- _parse(input) {
1611
- const ctx = this._getOrReturnCtx(input);
1612
- (0, parseUtil_1.addIssueToContext)(ctx, {
1613
- code: ZodError_1.ZodIssueCode.invalid_type,
1614
- expected: util_1.ZodParsedType.never,
1615
- received: ctx.parsedType,
1616
- });
1617
- return parseUtil_1.INVALID;
1618
- }
1619
- }
1620
- exports.ZodNever = ZodNever;
1621
- ZodNever.create = (params) => {
1622
- return new ZodNever({
1623
- typeName: ZodFirstPartyTypeKind.ZodNever,
1624
- ...processCreateParams(params),
1625
- });
1626
- };
1627
- class ZodVoid extends ZodType {
1628
- _parse(input) {
1629
- const parsedType = this._getType(input);
1630
- if (parsedType !== util_1.ZodParsedType.undefined) {
1631
- const ctx = this._getOrReturnCtx(input);
1632
- (0, parseUtil_1.addIssueToContext)(ctx, {
1633
- code: ZodError_1.ZodIssueCode.invalid_type,
1634
- expected: util_1.ZodParsedType.void,
1635
- received: ctx.parsedType,
1636
- });
1637
- return parseUtil_1.INVALID;
1638
- }
1639
- return (0, parseUtil_1.OK)(input.data);
1640
- }
1641
- }
1642
- exports.ZodVoid = ZodVoid;
1643
- ZodVoid.create = (params) => {
1644
- return new ZodVoid({
1645
- typeName: ZodFirstPartyTypeKind.ZodVoid,
1646
- ...processCreateParams(params),
1647
- });
1648
- };
1649
- class ZodArray extends ZodType {
1650
- _parse(input) {
1651
- const { ctx, status } = this._processInputParams(input);
1652
- const def = this._def;
1653
- if (ctx.parsedType !== util_1.ZodParsedType.array) {
1654
- (0, parseUtil_1.addIssueToContext)(ctx, {
1655
- code: ZodError_1.ZodIssueCode.invalid_type,
1656
- expected: util_1.ZodParsedType.array,
1657
- received: ctx.parsedType,
1658
- });
1659
- return parseUtil_1.INVALID;
1660
- }
1661
- if (def.exactLength !== null) {
1662
- const tooBig = ctx.data.length > def.exactLength.value;
1663
- const tooSmall = ctx.data.length < def.exactLength.value;
1664
- if (tooBig || tooSmall) {
1665
- (0, parseUtil_1.addIssueToContext)(ctx, {
1666
- code: tooBig ? ZodError_1.ZodIssueCode.too_big : ZodError_1.ZodIssueCode.too_small,
1667
- minimum: (tooSmall ? def.exactLength.value : undefined),
1668
- maximum: (tooBig ? def.exactLength.value : undefined),
1669
- type: "array",
1670
- inclusive: true,
1671
- exact: true,
1672
- message: def.exactLength.message,
1673
- });
1674
- status.dirty();
1675
- }
1676
- }
1677
- if (def.minLength !== null) {
1678
- if (ctx.data.length < def.minLength.value) {
1679
- (0, parseUtil_1.addIssueToContext)(ctx, {
1680
- code: ZodError_1.ZodIssueCode.too_small,
1681
- minimum: def.minLength.value,
1682
- type: "array",
1683
- inclusive: true,
1684
- exact: false,
1685
- message: def.minLength.message,
1686
- });
1687
- status.dirty();
1688
- }
1689
- }
1690
- if (def.maxLength !== null) {
1691
- if (ctx.data.length > def.maxLength.value) {
1692
- (0, parseUtil_1.addIssueToContext)(ctx, {
1693
- code: ZodError_1.ZodIssueCode.too_big,
1694
- maximum: def.maxLength.value,
1695
- type: "array",
1696
- inclusive: true,
1697
- exact: false,
1698
- message: def.maxLength.message,
1699
- });
1700
- status.dirty();
1701
- }
1702
- }
1703
- if (ctx.common.async) {
1704
- return Promise.all([...ctx.data].map((item, i) => {
1705
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1706
- })).then((result) => {
1707
- return parseUtil_1.ParseStatus.mergeArray(status, result);
1708
- });
1709
- }
1710
- const result = [...ctx.data].map((item, i) => {
1711
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1712
- });
1713
- return parseUtil_1.ParseStatus.mergeArray(status, result);
1714
- }
1715
- get element() {
1716
- return this._def.type;
1717
- }
1718
- min(minLength, message) {
1719
- return new ZodArray({
1720
- ...this._def,
1721
- minLength: { value: minLength, message: errorUtil_1.errorUtil.toString(message) },
1722
- });
1723
- }
1724
- max(maxLength, message) {
1725
- return new ZodArray({
1726
- ...this._def,
1727
- maxLength: { value: maxLength, message: errorUtil_1.errorUtil.toString(message) },
1728
- });
1729
- }
1730
- length(len, message) {
1731
- return new ZodArray({
1732
- ...this._def,
1733
- exactLength: { value: len, message: errorUtil_1.errorUtil.toString(message) },
1734
- });
1735
- }
1736
- nonempty(message) {
1737
- return this.min(1, message);
1738
- }
1739
- }
1740
- exports.ZodArray = ZodArray;
1741
- ZodArray.create = (schema, params) => {
1742
- return new ZodArray({
1743
- type: schema,
1744
- minLength: null,
1745
- maxLength: null,
1746
- exactLength: null,
1747
- typeName: ZodFirstPartyTypeKind.ZodArray,
1748
- ...processCreateParams(params),
1749
- });
1750
- };
1751
- function deepPartialify(schema) {
1752
- if (schema instanceof ZodObject) {
1753
- const newShape = {};
1754
- for (const key in schema.shape) {
1755
- const fieldSchema = schema.shape[key];
1756
- newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
1757
- }
1758
- return new ZodObject({
1759
- ...schema._def,
1760
- shape: () => newShape,
1761
- });
1762
- }
1763
- else if (schema instanceof ZodArray) {
1764
- return new ZodArray({
1765
- ...schema._def,
1766
- type: deepPartialify(schema.element),
1767
- });
1768
- }
1769
- else if (schema instanceof ZodOptional) {
1770
- return ZodOptional.create(deepPartialify(schema.unwrap()));
1771
- }
1772
- else if (schema instanceof ZodNullable) {
1773
- return ZodNullable.create(deepPartialify(schema.unwrap()));
1774
- }
1775
- else if (schema instanceof ZodTuple) {
1776
- return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));
1777
- }
1778
- else {
1779
- return schema;
1780
- }
1781
- }
1782
- class ZodObject extends ZodType {
1783
- constructor() {
1784
- super(...arguments);
1785
- this._cached = null;
1786
- /**
1787
- * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1788
- * If you want to pass through unknown properties, use `.passthrough()` instead.
1789
- */
1790
- this.nonstrict = this.passthrough;
1791
- // extend<
1792
- // Augmentation extends ZodRawShape,
1793
- // NewOutput extends util.flatten<{
1794
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
1795
- // ? Augmentation[k]["_output"]
1796
- // : k extends keyof Output
1797
- // ? Output[k]
1798
- // : never;
1799
- // }>,
1800
- // NewInput extends util.flatten<{
1801
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
1802
- // ? Augmentation[k]["_input"]
1803
- // : k extends keyof Input
1804
- // ? Input[k]
1805
- // : never;
1806
- // }>
1807
- // >(
1808
- // augmentation: Augmentation
1809
- // ): ZodObject<
1810
- // extendShape<T, Augmentation>,
1811
- // UnknownKeys,
1812
- // Catchall,
1813
- // NewOutput,
1814
- // NewInput
1815
- // > {
1816
- // return new ZodObject({
1817
- // ...this._def,
1818
- // shape: () => ({
1819
- // ...this._def.shape(),
1820
- // ...augmentation,
1821
- // }),
1822
- // }) as any;
1823
- // }
1824
- /**
1825
- * @deprecated Use `.extend` instead
1826
- * */
1827
- this.augment = this.extend;
1828
- }
1829
- _getCached() {
1830
- if (this._cached !== null)
1831
- return this._cached;
1832
- const shape = this._def.shape();
1833
- const keys = util_1.util.objectKeys(shape);
1834
- return (this._cached = { shape, keys });
1835
- }
1836
- _parse(input) {
1837
- const parsedType = this._getType(input);
1838
- if (parsedType !== util_1.ZodParsedType.object) {
1839
- const ctx = this._getOrReturnCtx(input);
1840
- (0, parseUtil_1.addIssueToContext)(ctx, {
1841
- code: ZodError_1.ZodIssueCode.invalid_type,
1842
- expected: util_1.ZodParsedType.object,
1843
- received: ctx.parsedType,
1844
- });
1845
- return parseUtil_1.INVALID;
1846
- }
1847
- const { status, ctx } = this._processInputParams(input);
1848
- const { shape, keys: shapeKeys } = this._getCached();
1849
- const extraKeys = [];
1850
- if (!(this._def.catchall instanceof ZodNever &&
1851
- this._def.unknownKeys === "strip")) {
1852
- for (const key in ctx.data) {
1853
- if (!shapeKeys.includes(key)) {
1854
- extraKeys.push(key);
1855
- }
1856
- }
1857
- }
1858
- const pairs = [];
1859
- for (const key of shapeKeys) {
1860
- const keyValidator = shape[key];
1861
- const value = ctx.data[key];
1862
- pairs.push({
1863
- key: { status: "valid", value: key },
1864
- value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1865
- alwaysSet: key in ctx.data,
1866
- });
1867
- }
1868
- if (this._def.catchall instanceof ZodNever) {
1869
- const unknownKeys = this._def.unknownKeys;
1870
- if (unknownKeys === "passthrough") {
1871
- for (const key of extraKeys) {
1872
- pairs.push({
1873
- key: { status: "valid", value: key },
1874
- value: { status: "valid", value: ctx.data[key] },
1875
- });
1876
- }
1877
- }
1878
- else if (unknownKeys === "strict") {
1879
- if (extraKeys.length > 0) {
1880
- (0, parseUtil_1.addIssueToContext)(ctx, {
1881
- code: ZodError_1.ZodIssueCode.unrecognized_keys,
1882
- keys: extraKeys,
1883
- });
1884
- status.dirty();
1885
- }
1886
- }
1887
- else if (unknownKeys === "strip") {
1888
- }
1889
- else {
1890
- throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
1891
- }
1892
- }
1893
- else {
1894
- // run catchall validation
1895
- const catchall = this._def.catchall;
1896
- for (const key of extraKeys) {
1897
- const value = ctx.data[key];
1898
- pairs.push({
1899
- key: { status: "valid", value: key },
1900
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)
1901
- ),
1902
- alwaysSet: key in ctx.data,
1903
- });
1904
- }
1905
- }
1906
- if (ctx.common.async) {
1907
- return Promise.resolve()
1908
- .then(async () => {
1909
- const syncPairs = [];
1910
- for (const pair of pairs) {
1911
- const key = await pair.key;
1912
- const value = await pair.value;
1913
- syncPairs.push({
1914
- key,
1915
- value,
1916
- alwaysSet: pair.alwaysSet,
1917
- });
1918
- }
1919
- return syncPairs;
1920
- })
1921
- .then((syncPairs) => {
1922
- return parseUtil_1.ParseStatus.mergeObjectSync(status, syncPairs);
1923
- });
1924
- }
1925
- else {
1926
- return parseUtil_1.ParseStatus.mergeObjectSync(status, pairs);
1927
- }
1928
- }
1929
- get shape() {
1930
- return this._def.shape();
1931
- }
1932
- strict(message) {
1933
- errorUtil_1.errorUtil.errToObj;
1934
- return new ZodObject({
1935
- ...this._def,
1936
- unknownKeys: "strict",
1937
- ...(message !== undefined
1938
- ? {
1939
- errorMap: (issue, ctx) => {
1940
- var _a, _b, _c, _d;
1941
- const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
1942
- if (issue.code === "unrecognized_keys")
1943
- return {
1944
- message: (_d = errorUtil_1.errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,
1945
- };
1946
- return {
1947
- message: defaultError,
1948
- };
1949
- },
1950
- }
1951
- : {}),
1952
- });
1953
- }
1954
- strip() {
1955
- return new ZodObject({
1956
- ...this._def,
1957
- unknownKeys: "strip",
1958
- });
1959
- }
1960
- passthrough() {
1961
- return new ZodObject({
1962
- ...this._def,
1963
- unknownKeys: "passthrough",
1964
- });
1965
- }
1966
- // const AugmentFactory =
1967
- // <Def extends ZodObjectDef>(def: Def) =>
1968
- // <Augmentation extends ZodRawShape>(
1969
- // augmentation: Augmentation
1970
- // ): ZodObject<
1971
- // extendShape<ReturnType<Def["shape"]>, Augmentation>,
1972
- // Def["unknownKeys"],
1973
- // Def["catchall"]
1974
- // > => {
1975
- // return new ZodObject({
1976
- // ...def,
1977
- // shape: () => ({
1978
- // ...def.shape(),
1979
- // ...augmentation,
1980
- // }),
1981
- // }) as any;
1982
- // };
1983
- extend(augmentation) {
1984
- return new ZodObject({
1985
- ...this._def,
1986
- shape: () => ({
1987
- ...this._def.shape(),
1988
- ...augmentation,
1989
- }),
1990
- });
1991
- }
1992
- /**
1993
- * Prior to zod@1.0.12 there was a bug in the
1994
- * inferred type of merged objects. Please
1995
- * upgrade if you are experiencing issues.
1996
- */
1997
- merge(merging) {
1998
- const merged = new ZodObject({
1999
- unknownKeys: merging._def.unknownKeys,
2000
- catchall: merging._def.catchall,
2001
- shape: () => ({
2002
- ...this._def.shape(),
2003
- ...merging._def.shape(),
2004
- }),
2005
- typeName: ZodFirstPartyTypeKind.ZodObject,
2006
- });
2007
- return merged;
2008
- }
2009
- // merge<
2010
- // Incoming extends AnyZodObject,
2011
- // Augmentation extends Incoming["shape"],
2012
- // NewOutput extends {
2013
- // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation
2014
- // ? Augmentation[k]["_output"]
2015
- // : k extends keyof Output
2016
- // ? Output[k]
2017
- // : never;
2018
- // },
2019
- // NewInput extends {
2020
- // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation
2021
- // ? Augmentation[k]["_input"]
2022
- // : k extends keyof Input
2023
- // ? Input[k]
2024
- // : never;
2025
- // }
2026
- // >(
2027
- // merging: Incoming
2028
- // ): ZodObject<
2029
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2030
- // Incoming["_def"]["unknownKeys"],
2031
- // Incoming["_def"]["catchall"],
2032
- // NewOutput,
2033
- // NewInput
2034
- // > {
2035
- // const merged: any = new ZodObject({
2036
- // unknownKeys: merging._def.unknownKeys,
2037
- // catchall: merging._def.catchall,
2038
- // shape: () =>
2039
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2040
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2041
- // }) as any;
2042
- // return merged;
2043
- // }
2044
- setKey(key, schema) {
2045
- return this.augment({ [key]: schema });
2046
- }
2047
- // merge<Incoming extends AnyZodObject>(
2048
- // merging: Incoming
2049
- // ): //ZodObject<T & Incoming["_shape"], UnknownKeys, Catchall> = (merging) => {
2050
- // ZodObject<
2051
- // extendShape<T, ReturnType<Incoming["_def"]["shape"]>>,
2052
- // Incoming["_def"]["unknownKeys"],
2053
- // Incoming["_def"]["catchall"]
2054
- // > {
2055
- // // const mergedShape = objectUtil.mergeShapes(
2056
- // // this._def.shape(),
2057
- // // merging._def.shape()
2058
- // // );
2059
- // const merged: any = new ZodObject({
2060
- // unknownKeys: merging._def.unknownKeys,
2061
- // catchall: merging._def.catchall,
2062
- // shape: () =>
2063
- // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),
2064
- // typeName: ZodFirstPartyTypeKind.ZodObject,
2065
- // }) as any;
2066
- // return merged;
2067
- // }
2068
- catchall(index) {
2069
- return new ZodObject({
2070
- ...this._def,
2071
- catchall: index,
2072
- });
2073
- }
2074
- pick(mask) {
2075
- const shape = {};
2076
- util_1.util.objectKeys(mask).forEach((key) => {
2077
- if (mask[key] && this.shape[key]) {
2078
- shape[key] = this.shape[key];
2079
- }
2080
- });
2081
- return new ZodObject({
2082
- ...this._def,
2083
- shape: () => shape,
2084
- });
2085
- }
2086
- omit(mask) {
2087
- const shape = {};
2088
- util_1.util.objectKeys(this.shape).forEach((key) => {
2089
- if (!mask[key]) {
2090
- shape[key] = this.shape[key];
2091
- }
2092
- });
2093
- return new ZodObject({
2094
- ...this._def,
2095
- shape: () => shape,
2096
- });
2097
- }
2098
- /**
2099
- * @deprecated
2100
- */
2101
- deepPartial() {
2102
- return deepPartialify(this);
2103
- }
2104
- partial(mask) {
2105
- const newShape = {};
2106
- util_1.util.objectKeys(this.shape).forEach((key) => {
2107
- const fieldSchema = this.shape[key];
2108
- if (mask && !mask[key]) {
2109
- newShape[key] = fieldSchema;
2110
- }
2111
- else {
2112
- newShape[key] = fieldSchema.optional();
2113
- }
2114
- });
2115
- return new ZodObject({
2116
- ...this._def,
2117
- shape: () => newShape,
2118
- });
2119
- }
2120
- required(mask) {
2121
- const newShape = {};
2122
- util_1.util.objectKeys(this.shape).forEach((key) => {
2123
- if (mask && !mask[key]) {
2124
- newShape[key] = this.shape[key];
2125
- }
2126
- else {
2127
- const fieldSchema = this.shape[key];
2128
- let newField = fieldSchema;
2129
- while (newField instanceof ZodOptional) {
2130
- newField = newField._def.innerType;
2131
- }
2132
- newShape[key] = newField;
2133
- }
2134
- });
2135
- return new ZodObject({
2136
- ...this._def,
2137
- shape: () => newShape,
2138
- });
2139
- }
2140
- keyof() {
2141
- return createZodEnum(util_1.util.objectKeys(this.shape));
2142
- }
2143
- }
2144
- exports.ZodObject = ZodObject;
2145
- ZodObject.create = (shape, params) => {
2146
- return new ZodObject({
2147
- shape: () => shape,
2148
- unknownKeys: "strip",
2149
- catchall: ZodNever.create(),
2150
- typeName: ZodFirstPartyTypeKind.ZodObject,
2151
- ...processCreateParams(params),
2152
- });
2153
- };
2154
- ZodObject.strictCreate = (shape, params) => {
2155
- return new ZodObject({
2156
- shape: () => shape,
2157
- unknownKeys: "strict",
2158
- catchall: ZodNever.create(),
2159
- typeName: ZodFirstPartyTypeKind.ZodObject,
2160
- ...processCreateParams(params),
2161
- });
2162
- };
2163
- ZodObject.lazycreate = (shape, params) => {
2164
- return new ZodObject({
2165
- shape,
2166
- unknownKeys: "strip",
2167
- catchall: ZodNever.create(),
2168
- typeName: ZodFirstPartyTypeKind.ZodObject,
2169
- ...processCreateParams(params),
2170
- });
2171
- };
2172
- class ZodUnion extends ZodType {
2173
- _parse(input) {
2174
- const { ctx } = this._processInputParams(input);
2175
- const options = this._def.options;
2176
- function handleResults(results) {
2177
- // return first issue-free validation if it exists
2178
- for (const result of results) {
2179
- if (result.result.status === "valid") {
2180
- return result.result;
2181
- }
2182
- }
2183
- for (const result of results) {
2184
- if (result.result.status === "dirty") {
2185
- // add issues from dirty option
2186
- ctx.common.issues.push(...result.ctx.common.issues);
2187
- return result.result;
2188
- }
2189
- }
2190
- // return invalid
2191
- const unionErrors = results.map((result) => new ZodError_1.ZodError(result.ctx.common.issues));
2192
- (0, parseUtil_1.addIssueToContext)(ctx, {
2193
- code: ZodError_1.ZodIssueCode.invalid_union,
2194
- unionErrors,
2195
- });
2196
- return parseUtil_1.INVALID;
2197
- }
2198
- if (ctx.common.async) {
2199
- return Promise.all(options.map(async (option) => {
2200
- const childCtx = {
2201
- ...ctx,
2202
- common: {
2203
- ...ctx.common,
2204
- issues: [],
2205
- },
2206
- parent: null,
2207
- };
2208
- return {
2209
- result: await option._parseAsync({
2210
- data: ctx.data,
2211
- path: ctx.path,
2212
- parent: childCtx,
2213
- }),
2214
- ctx: childCtx,
2215
- };
2216
- })).then(handleResults);
2217
- }
2218
- else {
2219
- let dirty = undefined;
2220
- const issues = [];
2221
- for (const option of options) {
2222
- const childCtx = {
2223
- ...ctx,
2224
- common: {
2225
- ...ctx.common,
2226
- issues: [],
2227
- },
2228
- parent: null,
2229
- };
2230
- const result = option._parseSync({
2231
- data: ctx.data,
2232
- path: ctx.path,
2233
- parent: childCtx,
2234
- });
2235
- if (result.status === "valid") {
2236
- return result;
2237
- }
2238
- else if (result.status === "dirty" && !dirty) {
2239
- dirty = { result, ctx: childCtx };
2240
- }
2241
- if (childCtx.common.issues.length) {
2242
- issues.push(childCtx.common.issues);
2243
- }
2244
- }
2245
- if (dirty) {
2246
- ctx.common.issues.push(...dirty.ctx.common.issues);
2247
- return dirty.result;
2248
- }
2249
- const unionErrors = issues.map((issues) => new ZodError_1.ZodError(issues));
2250
- (0, parseUtil_1.addIssueToContext)(ctx, {
2251
- code: ZodError_1.ZodIssueCode.invalid_union,
2252
- unionErrors,
2253
- });
2254
- return parseUtil_1.INVALID;
2255
- }
2256
- }
2257
- get options() {
2258
- return this._def.options;
2259
- }
2260
- }
2261
- exports.ZodUnion = ZodUnion;
2262
- ZodUnion.create = (types, params) => {
2263
- return new ZodUnion({
2264
- options: types,
2265
- typeName: ZodFirstPartyTypeKind.ZodUnion,
2266
- ...processCreateParams(params),
2267
- });
2268
- };
2269
- /////////////////////////////////////////////////////
2270
- /////////////////////////////////////////////////////
2271
- ////////// //////////
2272
- ////////// ZodDiscriminatedUnion //////////
2273
- ////////// //////////
2274
- /////////////////////////////////////////////////////
2275
- /////////////////////////////////////////////////////
2276
- const getDiscriminator = (type) => {
2277
- if (type instanceof ZodLazy) {
2278
- return getDiscriminator(type.schema);
2279
- }
2280
- else if (type instanceof ZodEffects) {
2281
- return getDiscriminator(type.innerType());
2282
- }
2283
- else if (type instanceof ZodLiteral) {
2284
- return [type.value];
2285
- }
2286
- else if (type instanceof ZodEnum) {
2287
- return type.options;
2288
- }
2289
- else if (type instanceof ZodNativeEnum) {
2290
- // eslint-disable-next-line ban/ban
2291
- return util_1.util.objectValues(type.enum);
2292
- }
2293
- else if (type instanceof ZodDefault) {
2294
- return getDiscriminator(type._def.innerType);
2295
- }
2296
- else if (type instanceof ZodUndefined) {
2297
- return [undefined];
2298
- }
2299
- else if (type instanceof ZodNull) {
2300
- return [null];
2301
- }
2302
- else if (type instanceof ZodOptional) {
2303
- return [undefined, ...getDiscriminator(type.unwrap())];
2304
- }
2305
- else if (type instanceof ZodNullable) {
2306
- return [null, ...getDiscriminator(type.unwrap())];
2307
- }
2308
- else if (type instanceof ZodBranded) {
2309
- return getDiscriminator(type.unwrap());
2310
- }
2311
- else if (type instanceof ZodReadonly) {
2312
- return getDiscriminator(type.unwrap());
2313
- }
2314
- else if (type instanceof ZodCatch) {
2315
- return getDiscriminator(type._def.innerType);
2316
- }
2317
- else {
2318
- return [];
2319
- }
2320
- };
2321
- class ZodDiscriminatedUnion extends ZodType {
2322
- _parse(input) {
2323
- const { ctx } = this._processInputParams(input);
2324
- if (ctx.parsedType !== util_1.ZodParsedType.object) {
2325
- (0, parseUtil_1.addIssueToContext)(ctx, {
2326
- code: ZodError_1.ZodIssueCode.invalid_type,
2327
- expected: util_1.ZodParsedType.object,
2328
- received: ctx.parsedType,
2329
- });
2330
- return parseUtil_1.INVALID;
2331
- }
2332
- const discriminator = this.discriminator;
2333
- const discriminatorValue = ctx.data[discriminator];
2334
- const option = this.optionsMap.get(discriminatorValue);
2335
- if (!option) {
2336
- (0, parseUtil_1.addIssueToContext)(ctx, {
2337
- code: ZodError_1.ZodIssueCode.invalid_union_discriminator,
2338
- options: Array.from(this.optionsMap.keys()),
2339
- path: [discriminator],
2340
- });
2341
- return parseUtil_1.INVALID;
2342
- }
2343
- if (ctx.common.async) {
2344
- return option._parseAsync({
2345
- data: ctx.data,
2346
- path: ctx.path,
2347
- parent: ctx,
2348
- });
2349
- }
2350
- else {
2351
- return option._parseSync({
2352
- data: ctx.data,
2353
- path: ctx.path,
2354
- parent: ctx,
2355
- });
2356
- }
2357
- }
2358
- get discriminator() {
2359
- return this._def.discriminator;
2360
- }
2361
- get options() {
2362
- return this._def.options;
2363
- }
2364
- get optionsMap() {
2365
- return this._def.optionsMap;
2366
- }
2367
- /**
2368
- * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
2369
- * However, it only allows a union of objects, all of which need to share a discriminator property. This property must
2370
- * have a different value for each object in the union.
2371
- * @param discriminator the name of the discriminator property
2372
- * @param types an array of object schemas
2373
- * @param params
2374
- */
2375
- static create(discriminator, options, params) {
2376
- // Get all the valid discriminator values
2377
- const optionsMap = new Map();
2378
- // try {
2379
- for (const type of options) {
2380
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
2381
- if (!discriminatorValues.length) {
2382
- throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
2383
- }
2384
- for (const value of discriminatorValues) {
2385
- if (optionsMap.has(value)) {
2386
- throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
2387
- }
2388
- optionsMap.set(value, type);
2389
- }
2390
- }
2391
- return new ZodDiscriminatedUnion({
2392
- typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,
2393
- discriminator,
2394
- options,
2395
- optionsMap,
2396
- ...processCreateParams(params),
2397
- });
2398
- }
2399
- }
2400
- exports.ZodDiscriminatedUnion = ZodDiscriminatedUnion;
2401
- function mergeValues(a, b) {
2402
- const aType = (0, util_1.getParsedType)(a);
2403
- const bType = (0, util_1.getParsedType)(b);
2404
- if (a === b) {
2405
- return { valid: true, data: a };
2406
- }
2407
- else if (aType === util_1.ZodParsedType.object && bType === util_1.ZodParsedType.object) {
2408
- const bKeys = util_1.util.objectKeys(b);
2409
- const sharedKeys = util_1.util
2410
- .objectKeys(a)
2411
- .filter((key) => bKeys.indexOf(key) !== -1);
2412
- const newObj = { ...a, ...b };
2413
- for (const key of sharedKeys) {
2414
- const sharedValue = mergeValues(a[key], b[key]);
2415
- if (!sharedValue.valid) {
2416
- return { valid: false };
2417
- }
2418
- newObj[key] = sharedValue.data;
2419
- }
2420
- return { valid: true, data: newObj };
2421
- }
2422
- else if (aType === util_1.ZodParsedType.array && bType === util_1.ZodParsedType.array) {
2423
- if (a.length !== b.length) {
2424
- return { valid: false };
2425
- }
2426
- const newArray = [];
2427
- for (let index = 0; index < a.length; index++) {
2428
- const itemA = a[index];
2429
- const itemB = b[index];
2430
- const sharedValue = mergeValues(itemA, itemB);
2431
- if (!sharedValue.valid) {
2432
- return { valid: false };
2433
- }
2434
- newArray.push(sharedValue.data);
2435
- }
2436
- return { valid: true, data: newArray };
2437
- }
2438
- else if (aType === util_1.ZodParsedType.date &&
2439
- bType === util_1.ZodParsedType.date &&
2440
- +a === +b) {
2441
- return { valid: true, data: a };
2442
- }
2443
- else {
2444
- return { valid: false };
2445
- }
2446
- }
2447
- class ZodIntersection extends ZodType {
2448
- _parse(input) {
2449
- const { status, ctx } = this._processInputParams(input);
2450
- const handleParsed = (parsedLeft, parsedRight) => {
2451
- if ((0, parseUtil_1.isAborted)(parsedLeft) || (0, parseUtil_1.isAborted)(parsedRight)) {
2452
- return parseUtil_1.INVALID;
2453
- }
2454
- const merged = mergeValues(parsedLeft.value, parsedRight.value);
2455
- if (!merged.valid) {
2456
- (0, parseUtil_1.addIssueToContext)(ctx, {
2457
- code: ZodError_1.ZodIssueCode.invalid_intersection_types,
2458
- });
2459
- return parseUtil_1.INVALID;
2460
- }
2461
- if ((0, parseUtil_1.isDirty)(parsedLeft) || (0, parseUtil_1.isDirty)(parsedRight)) {
2462
- status.dirty();
2463
- }
2464
- return { status: status.value, value: merged.data };
2465
- };
2466
- if (ctx.common.async) {
2467
- return Promise.all([
2468
- this._def.left._parseAsync({
2469
- data: ctx.data,
2470
- path: ctx.path,
2471
- parent: ctx,
2472
- }),
2473
- this._def.right._parseAsync({
2474
- data: ctx.data,
2475
- path: ctx.path,
2476
- parent: ctx,
2477
- }),
2478
- ]).then(([left, right]) => handleParsed(left, right));
2479
- }
2480
- else {
2481
- return handleParsed(this._def.left._parseSync({
2482
- data: ctx.data,
2483
- path: ctx.path,
2484
- parent: ctx,
2485
- }), this._def.right._parseSync({
2486
- data: ctx.data,
2487
- path: ctx.path,
2488
- parent: ctx,
2489
- }));
2490
- }
2491
- }
2492
- }
2493
- exports.ZodIntersection = ZodIntersection;
2494
- ZodIntersection.create = (left, right, params) => {
2495
- return new ZodIntersection({
2496
- left: left,
2497
- right: right,
2498
- typeName: ZodFirstPartyTypeKind.ZodIntersection,
2499
- ...processCreateParams(params),
2500
- });
2501
- };
2502
- class ZodTuple extends ZodType {
2503
- _parse(input) {
2504
- const { status, ctx } = this._processInputParams(input);
2505
- if (ctx.parsedType !== util_1.ZodParsedType.array) {
2506
- (0, parseUtil_1.addIssueToContext)(ctx, {
2507
- code: ZodError_1.ZodIssueCode.invalid_type,
2508
- expected: util_1.ZodParsedType.array,
2509
- received: ctx.parsedType,
2510
- });
2511
- return parseUtil_1.INVALID;
2512
- }
2513
- if (ctx.data.length < this._def.items.length) {
2514
- (0, parseUtil_1.addIssueToContext)(ctx, {
2515
- code: ZodError_1.ZodIssueCode.too_small,
2516
- minimum: this._def.items.length,
2517
- inclusive: true,
2518
- exact: false,
2519
- type: "array",
2520
- });
2521
- return parseUtil_1.INVALID;
2522
- }
2523
- const rest = this._def.rest;
2524
- if (!rest && ctx.data.length > this._def.items.length) {
2525
- (0, parseUtil_1.addIssueToContext)(ctx, {
2526
- code: ZodError_1.ZodIssueCode.too_big,
2527
- maximum: this._def.items.length,
2528
- inclusive: true,
2529
- exact: false,
2530
- type: "array",
2531
- });
2532
- status.dirty();
2533
- }
2534
- const items = [...ctx.data]
2535
- .map((item, itemIndex) => {
2536
- const schema = this._def.items[itemIndex] || this._def.rest;
2537
- if (!schema)
2538
- return null;
2539
- return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2540
- })
2541
- .filter((x) => !!x); // filter nulls
2542
- if (ctx.common.async) {
2543
- return Promise.all(items).then((results) => {
2544
- return parseUtil_1.ParseStatus.mergeArray(status, results);
2545
- });
2546
- }
2547
- else {
2548
- return parseUtil_1.ParseStatus.mergeArray(status, items);
2549
- }
2550
- }
2551
- get items() {
2552
- return this._def.items;
2553
- }
2554
- rest(rest) {
2555
- return new ZodTuple({
2556
- ...this._def,
2557
- rest,
2558
- });
2559
- }
2560
- }
2561
- exports.ZodTuple = ZodTuple;
2562
- ZodTuple.create = (schemas, params) => {
2563
- if (!Array.isArray(schemas)) {
2564
- throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2565
- }
2566
- return new ZodTuple({
2567
- items: schemas,
2568
- typeName: ZodFirstPartyTypeKind.ZodTuple,
2569
- rest: null,
2570
- ...processCreateParams(params),
2571
- });
2572
- };
2573
- class ZodRecord extends ZodType {
2574
- get keySchema() {
2575
- return this._def.keyType;
2576
- }
2577
- get valueSchema() {
2578
- return this._def.valueType;
2579
- }
2580
- _parse(input) {
2581
- const { status, ctx } = this._processInputParams(input);
2582
- if (ctx.parsedType !== util_1.ZodParsedType.object) {
2583
- (0, parseUtil_1.addIssueToContext)(ctx, {
2584
- code: ZodError_1.ZodIssueCode.invalid_type,
2585
- expected: util_1.ZodParsedType.object,
2586
- received: ctx.parsedType,
2587
- });
2588
- return parseUtil_1.INVALID;
2589
- }
2590
- const pairs = [];
2591
- const keyType = this._def.keyType;
2592
- const valueType = this._def.valueType;
2593
- for (const key in ctx.data) {
2594
- pairs.push({
2595
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
2596
- value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
2597
- alwaysSet: key in ctx.data,
2598
- });
2599
- }
2600
- if (ctx.common.async) {
2601
- return parseUtil_1.ParseStatus.mergeObjectAsync(status, pairs);
2602
- }
2603
- else {
2604
- return parseUtil_1.ParseStatus.mergeObjectSync(status, pairs);
2605
- }
2606
- }
2607
- get element() {
2608
- return this._def.valueType;
2609
- }
2610
- static create(first, second, third) {
2611
- if (second instanceof ZodType) {
2612
- return new ZodRecord({
2613
- keyType: first,
2614
- valueType: second,
2615
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2616
- ...processCreateParams(third),
2617
- });
2618
- }
2619
- return new ZodRecord({
2620
- keyType: ZodString.create(),
2621
- valueType: first,
2622
- typeName: ZodFirstPartyTypeKind.ZodRecord,
2623
- ...processCreateParams(second),
2624
- });
2625
- }
2626
- }
2627
- exports.ZodRecord = ZodRecord;
2628
- class ZodMap extends ZodType {
2629
- get keySchema() {
2630
- return this._def.keyType;
2631
- }
2632
- get valueSchema() {
2633
- return this._def.valueType;
2634
- }
2635
- _parse(input) {
2636
- const { status, ctx } = this._processInputParams(input);
2637
- if (ctx.parsedType !== util_1.ZodParsedType.map) {
2638
- (0, parseUtil_1.addIssueToContext)(ctx, {
2639
- code: ZodError_1.ZodIssueCode.invalid_type,
2640
- expected: util_1.ZodParsedType.map,
2641
- received: ctx.parsedType,
2642
- });
2643
- return parseUtil_1.INVALID;
2644
- }
2645
- const keyType = this._def.keyType;
2646
- const valueType = this._def.valueType;
2647
- const pairs = [...ctx.data.entries()].map(([key, value], index) => {
2648
- return {
2649
- key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
2650
- value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"])),
2651
- };
2652
- });
2653
- if (ctx.common.async) {
2654
- const finalMap = new Map();
2655
- return Promise.resolve().then(async () => {
2656
- for (const pair of pairs) {
2657
- const key = await pair.key;
2658
- const value = await pair.value;
2659
- if (key.status === "aborted" || value.status === "aborted") {
2660
- return parseUtil_1.INVALID;
2661
- }
2662
- if (key.status === "dirty" || value.status === "dirty") {
2663
- status.dirty();
2664
- }
2665
- finalMap.set(key.value, value.value);
2666
- }
2667
- return { status: status.value, value: finalMap };
2668
- });
2669
- }
2670
- else {
2671
- const finalMap = new Map();
2672
- for (const pair of pairs) {
2673
- const key = pair.key;
2674
- const value = pair.value;
2675
- if (key.status === "aborted" || value.status === "aborted") {
2676
- return parseUtil_1.INVALID;
2677
- }
2678
- if (key.status === "dirty" || value.status === "dirty") {
2679
- status.dirty();
2680
- }
2681
- finalMap.set(key.value, value.value);
2682
- }
2683
- return { status: status.value, value: finalMap };
2684
- }
2685
- }
2686
- }
2687
- exports.ZodMap = ZodMap;
2688
- ZodMap.create = (keyType, valueType, params) => {
2689
- return new ZodMap({
2690
- valueType,
2691
- keyType,
2692
- typeName: ZodFirstPartyTypeKind.ZodMap,
2693
- ...processCreateParams(params),
2694
- });
2695
- };
2696
- class ZodSet extends ZodType {
2697
- _parse(input) {
2698
- const { status, ctx } = this._processInputParams(input);
2699
- if (ctx.parsedType !== util_1.ZodParsedType.set) {
2700
- (0, parseUtil_1.addIssueToContext)(ctx, {
2701
- code: ZodError_1.ZodIssueCode.invalid_type,
2702
- expected: util_1.ZodParsedType.set,
2703
- received: ctx.parsedType,
2704
- });
2705
- return parseUtil_1.INVALID;
2706
- }
2707
- const def = this._def;
2708
- if (def.minSize !== null) {
2709
- if (ctx.data.size < def.minSize.value) {
2710
- (0, parseUtil_1.addIssueToContext)(ctx, {
2711
- code: ZodError_1.ZodIssueCode.too_small,
2712
- minimum: def.minSize.value,
2713
- type: "set",
2714
- inclusive: true,
2715
- exact: false,
2716
- message: def.minSize.message,
2717
- });
2718
- status.dirty();
2719
- }
2720
- }
2721
- if (def.maxSize !== null) {
2722
- if (ctx.data.size > def.maxSize.value) {
2723
- (0, parseUtil_1.addIssueToContext)(ctx, {
2724
- code: ZodError_1.ZodIssueCode.too_big,
2725
- maximum: def.maxSize.value,
2726
- type: "set",
2727
- inclusive: true,
2728
- exact: false,
2729
- message: def.maxSize.message,
2730
- });
2731
- status.dirty();
2732
- }
2733
- }
2734
- const valueType = this._def.valueType;
2735
- function finalizeSet(elements) {
2736
- const parsedSet = new Set();
2737
- for (const element of elements) {
2738
- if (element.status === "aborted")
2739
- return parseUtil_1.INVALID;
2740
- if (element.status === "dirty")
2741
- status.dirty();
2742
- parsedSet.add(element.value);
2743
- }
2744
- return { status: status.value, value: parsedSet };
2745
- }
2746
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2747
- if (ctx.common.async) {
2748
- return Promise.all(elements).then((elements) => finalizeSet(elements));
2749
- }
2750
- else {
2751
- return finalizeSet(elements);
2752
- }
2753
- }
2754
- min(minSize, message) {
2755
- return new ZodSet({
2756
- ...this._def,
2757
- minSize: { value: minSize, message: errorUtil_1.errorUtil.toString(message) },
2758
- });
2759
- }
2760
- max(maxSize, message) {
2761
- return new ZodSet({
2762
- ...this._def,
2763
- maxSize: { value: maxSize, message: errorUtil_1.errorUtil.toString(message) },
2764
- });
2765
- }
2766
- size(size, message) {
2767
- return this.min(size, message).max(size, message);
2768
- }
2769
- nonempty(message) {
2770
- return this.min(1, message);
2771
- }
2772
- }
2773
- exports.ZodSet = ZodSet;
2774
- ZodSet.create = (valueType, params) => {
2775
- return new ZodSet({
2776
- valueType,
2777
- minSize: null,
2778
- maxSize: null,
2779
- typeName: ZodFirstPartyTypeKind.ZodSet,
2780
- ...processCreateParams(params),
2781
- });
2782
- };
2783
- class ZodFunction extends ZodType {
2784
- constructor() {
2785
- super(...arguments);
2786
- this.validate = this.implement;
2787
- }
2788
- _parse(input) {
2789
- const { ctx } = this._processInputParams(input);
2790
- if (ctx.parsedType !== util_1.ZodParsedType.function) {
2791
- (0, parseUtil_1.addIssueToContext)(ctx, {
2792
- code: ZodError_1.ZodIssueCode.invalid_type,
2793
- expected: util_1.ZodParsedType.function,
2794
- received: ctx.parsedType,
2795
- });
2796
- return parseUtil_1.INVALID;
2797
- }
2798
- function makeArgsIssue(args, error) {
2799
- return (0, parseUtil_1.makeIssue)({
2800
- data: args,
2801
- path: ctx.path,
2802
- errorMaps: [
2803
- ctx.common.contextualErrorMap,
2804
- ctx.schemaErrorMap,
2805
- (0, errors_1.getErrorMap)(),
2806
- errors_1.defaultErrorMap,
2807
- ].filter((x) => !!x),
2808
- issueData: {
2809
- code: ZodError_1.ZodIssueCode.invalid_arguments,
2810
- argumentsError: error,
2811
- },
2812
- });
2813
- }
2814
- function makeReturnsIssue(returns, error) {
2815
- return (0, parseUtil_1.makeIssue)({
2816
- data: returns,
2817
- path: ctx.path,
2818
- errorMaps: [
2819
- ctx.common.contextualErrorMap,
2820
- ctx.schemaErrorMap,
2821
- (0, errors_1.getErrorMap)(),
2822
- errors_1.defaultErrorMap,
2823
- ].filter((x) => !!x),
2824
- issueData: {
2825
- code: ZodError_1.ZodIssueCode.invalid_return_type,
2826
- returnTypeError: error,
2827
- },
2828
- });
2829
- }
2830
- const params = { errorMap: ctx.common.contextualErrorMap };
2831
- const fn = ctx.data;
2832
- if (this._def.returns instanceof ZodPromise) {
2833
- // Would love a way to avoid disabling this rule, but we need
2834
- // an alias (using an arrow function was what caused 2651).
2835
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2836
- const me = this;
2837
- return (0, parseUtil_1.OK)(async function (...args) {
2838
- const error = new ZodError_1.ZodError([]);
2839
- const parsedArgs = await me._def.args
2840
- .parseAsync(args, params)
2841
- .catch((e) => {
2842
- error.addIssue(makeArgsIssue(args, e));
2843
- throw error;
2844
- });
2845
- const result = await Reflect.apply(fn, this, parsedArgs);
2846
- const parsedReturns = await me._def.returns._def.type
2847
- .parseAsync(result, params)
2848
- .catch((e) => {
2849
- error.addIssue(makeReturnsIssue(result, e));
2850
- throw error;
2851
- });
2852
- return parsedReturns;
2853
- });
2854
- }
2855
- else {
2856
- // Would love a way to avoid disabling this rule, but we need
2857
- // an alias (using an arrow function was what caused 2651).
2858
- // eslint-disable-next-line @typescript-eslint/no-this-alias
2859
- const me = this;
2860
- return (0, parseUtil_1.OK)(function (...args) {
2861
- const parsedArgs = me._def.args.safeParse(args, params);
2862
- if (!parsedArgs.success) {
2863
- throw new ZodError_1.ZodError([makeArgsIssue(args, parsedArgs.error)]);
2864
- }
2865
- const result = Reflect.apply(fn, this, parsedArgs.data);
2866
- const parsedReturns = me._def.returns.safeParse(result, params);
2867
- if (!parsedReturns.success) {
2868
- throw new ZodError_1.ZodError([makeReturnsIssue(result, parsedReturns.error)]);
2869
- }
2870
- return parsedReturns.data;
2871
- });
2872
- }
2873
- }
2874
- parameters() {
2875
- return this._def.args;
2876
- }
2877
- returnType() {
2878
- return this._def.returns;
2879
- }
2880
- args(...items) {
2881
- return new ZodFunction({
2882
- ...this._def,
2883
- args: ZodTuple.create(items).rest(ZodUnknown.create()),
2884
- });
2885
- }
2886
- returns(returnType) {
2887
- return new ZodFunction({
2888
- ...this._def,
2889
- returns: returnType,
2890
- });
2891
- }
2892
- implement(func) {
2893
- const validatedFunc = this.parse(func);
2894
- return validatedFunc;
2895
- }
2896
- strictImplement(func) {
2897
- const validatedFunc = this.parse(func);
2898
- return validatedFunc;
2899
- }
2900
- static create(args, returns, params) {
2901
- return new ZodFunction({
2902
- args: (args
2903
- ? args
2904
- : ZodTuple.create([]).rest(ZodUnknown.create())),
2905
- returns: returns || ZodUnknown.create(),
2906
- typeName: ZodFirstPartyTypeKind.ZodFunction,
2907
- ...processCreateParams(params),
2908
- });
2909
- }
2910
- }
2911
- exports.ZodFunction = ZodFunction;
2912
- class ZodLazy extends ZodType {
2913
- get schema() {
2914
- return this._def.getter();
2915
- }
2916
- _parse(input) {
2917
- const { ctx } = this._processInputParams(input);
2918
- const lazySchema = this._def.getter();
2919
- return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });
2920
- }
2921
- }
2922
- exports.ZodLazy = ZodLazy;
2923
- ZodLazy.create = (getter, params) => {
2924
- return new ZodLazy({
2925
- getter: getter,
2926
- typeName: ZodFirstPartyTypeKind.ZodLazy,
2927
- ...processCreateParams(params),
2928
- });
2929
- };
2930
- class ZodLiteral extends ZodType {
2931
- _parse(input) {
2932
- if (input.data !== this._def.value) {
2933
- const ctx = this._getOrReturnCtx(input);
2934
- (0, parseUtil_1.addIssueToContext)(ctx, {
2935
- received: ctx.data,
2936
- code: ZodError_1.ZodIssueCode.invalid_literal,
2937
- expected: this._def.value,
2938
- });
2939
- return parseUtil_1.INVALID;
2940
- }
2941
- return { status: "valid", value: input.data };
2942
- }
2943
- get value() {
2944
- return this._def.value;
2945
- }
2946
- }
2947
- exports.ZodLiteral = ZodLiteral;
2948
- ZodLiteral.create = (value, params) => {
2949
- return new ZodLiteral({
2950
- value: value,
2951
- typeName: ZodFirstPartyTypeKind.ZodLiteral,
2952
- ...processCreateParams(params),
2953
- });
2954
- };
2955
- function createZodEnum(values, params) {
2956
- return new ZodEnum({
2957
- values,
2958
- typeName: ZodFirstPartyTypeKind.ZodEnum,
2959
- ...processCreateParams(params),
2960
- });
2961
- }
2962
- class ZodEnum extends ZodType {
2963
- constructor() {
2964
- super(...arguments);
2965
- _ZodEnum_cache.set(this, void 0);
2966
- }
2967
- _parse(input) {
2968
- if (typeof input.data !== "string") {
2969
- const ctx = this._getOrReturnCtx(input);
2970
- const expectedValues = this._def.values;
2971
- (0, parseUtil_1.addIssueToContext)(ctx, {
2972
- expected: util_1.util.joinValues(expectedValues),
2973
- received: ctx.parsedType,
2974
- code: ZodError_1.ZodIssueCode.invalid_type,
2975
- });
2976
- return parseUtil_1.INVALID;
2977
- }
2978
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
2979
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
2980
- }
2981
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
2982
- const ctx = this._getOrReturnCtx(input);
2983
- const expectedValues = this._def.values;
2984
- (0, parseUtil_1.addIssueToContext)(ctx, {
2985
- received: ctx.data,
2986
- code: ZodError_1.ZodIssueCode.invalid_enum_value,
2987
- options: expectedValues,
2988
- });
2989
- return parseUtil_1.INVALID;
2990
- }
2991
- return (0, parseUtil_1.OK)(input.data);
2992
- }
2993
- get options() {
2994
- return this._def.values;
2995
- }
2996
- get enum() {
2997
- const enumValues = {};
2998
- for (const val of this._def.values) {
2999
- enumValues[val] = val;
3000
- }
3001
- return enumValues;
3002
- }
3003
- get Values() {
3004
- const enumValues = {};
3005
- for (const val of this._def.values) {
3006
- enumValues[val] = val;
3007
- }
3008
- return enumValues;
3009
- }
3010
- get Enum() {
3011
- const enumValues = {};
3012
- for (const val of this._def.values) {
3013
- enumValues[val] = val;
3014
- }
3015
- return enumValues;
3016
- }
3017
- extract(values, newDef = this._def) {
3018
- return ZodEnum.create(values, {
3019
- ...this._def,
3020
- ...newDef,
3021
- });
3022
- }
3023
- exclude(values, newDef = this._def) {
3024
- return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
3025
- ...this._def,
3026
- ...newDef,
3027
- });
3028
- }
3029
- }
3030
- exports.ZodEnum = ZodEnum;
3031
- _ZodEnum_cache = new WeakMap();
3032
- ZodEnum.create = createZodEnum;
3033
- class ZodNativeEnum extends ZodType {
3034
- constructor() {
3035
- super(...arguments);
3036
- _ZodNativeEnum_cache.set(this, void 0);
3037
- }
3038
- _parse(input) {
3039
- const nativeEnumValues = util_1.util.getValidEnumValues(this._def.values);
3040
- const ctx = this._getOrReturnCtx(input);
3041
- if (ctx.parsedType !== util_1.ZodParsedType.string &&
3042
- ctx.parsedType !== util_1.ZodParsedType.number) {
3043
- const expectedValues = util_1.util.objectValues(nativeEnumValues);
3044
- (0, parseUtil_1.addIssueToContext)(ctx, {
3045
- expected: util_1.util.joinValues(expectedValues),
3046
- received: ctx.parsedType,
3047
- code: ZodError_1.ZodIssueCode.invalid_type,
3048
- });
3049
- return parseUtil_1.INVALID;
3050
- }
3051
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
3052
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util_1.util.getValidEnumValues(this._def.values)), "f");
3053
- }
3054
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
3055
- const expectedValues = util_1.util.objectValues(nativeEnumValues);
3056
- (0, parseUtil_1.addIssueToContext)(ctx, {
3057
- received: ctx.data,
3058
- code: ZodError_1.ZodIssueCode.invalid_enum_value,
3059
- options: expectedValues,
3060
- });
3061
- return parseUtil_1.INVALID;
3062
- }
3063
- return (0, parseUtil_1.OK)(input.data);
3064
- }
3065
- get enum() {
3066
- return this._def.values;
3067
- }
3068
- }
3069
- exports.ZodNativeEnum = ZodNativeEnum;
3070
- _ZodNativeEnum_cache = new WeakMap();
3071
- ZodNativeEnum.create = (values, params) => {
3072
- return new ZodNativeEnum({
3073
- values: values,
3074
- typeName: ZodFirstPartyTypeKind.ZodNativeEnum,
3075
- ...processCreateParams(params),
3076
- });
3077
- };
3078
- class ZodPromise extends ZodType {
3079
- unwrap() {
3080
- return this._def.type;
3081
- }
3082
- _parse(input) {
3083
- const { ctx } = this._processInputParams(input);
3084
- if (ctx.parsedType !== util_1.ZodParsedType.promise &&
3085
- ctx.common.async === false) {
3086
- (0, parseUtil_1.addIssueToContext)(ctx, {
3087
- code: ZodError_1.ZodIssueCode.invalid_type,
3088
- expected: util_1.ZodParsedType.promise,
3089
- received: ctx.parsedType,
3090
- });
3091
- return parseUtil_1.INVALID;
3092
- }
3093
- const promisified = ctx.parsedType === util_1.ZodParsedType.promise
3094
- ? ctx.data
3095
- : Promise.resolve(ctx.data);
3096
- return (0, parseUtil_1.OK)(promisified.then((data) => {
3097
- return this._def.type.parseAsync(data, {
3098
- path: ctx.path,
3099
- errorMap: ctx.common.contextualErrorMap,
3100
- });
3101
- }));
3102
- }
3103
- }
3104
- exports.ZodPromise = ZodPromise;
3105
- ZodPromise.create = (schema, params) => {
3106
- return new ZodPromise({
3107
- type: schema,
3108
- typeName: ZodFirstPartyTypeKind.ZodPromise,
3109
- ...processCreateParams(params),
3110
- });
3111
- };
3112
- class ZodEffects extends ZodType {
3113
- innerType() {
3114
- return this._def.schema;
3115
- }
3116
- sourceType() {
3117
- return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects
3118
- ? this._def.schema.sourceType()
3119
- : this._def.schema;
3120
- }
3121
- _parse(input) {
3122
- const { status, ctx } = this._processInputParams(input);
3123
- const effect = this._def.effect || null;
3124
- const checkCtx = {
3125
- addIssue: (arg) => {
3126
- (0, parseUtil_1.addIssueToContext)(ctx, arg);
3127
- if (arg.fatal) {
3128
- status.abort();
3129
- }
3130
- else {
3131
- status.dirty();
3132
- }
3133
- },
3134
- get path() {
3135
- return ctx.path;
3136
- },
3137
- };
3138
- checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
3139
- if (effect.type === "preprocess") {
3140
- const processed = effect.transform(ctx.data, checkCtx);
3141
- if (ctx.common.async) {
3142
- return Promise.resolve(processed).then(async (processed) => {
3143
- if (status.value === "aborted")
3144
- return parseUtil_1.INVALID;
3145
- const result = await this._def.schema._parseAsync({
3146
- data: processed,
3147
- path: ctx.path,
3148
- parent: ctx,
3149
- });
3150
- if (result.status === "aborted")
3151
- return parseUtil_1.INVALID;
3152
- if (result.status === "dirty")
3153
- return (0, parseUtil_1.DIRTY)(result.value);
3154
- if (status.value === "dirty")
3155
- return (0, parseUtil_1.DIRTY)(result.value);
3156
- return result;
3157
- });
3158
- }
3159
- else {
3160
- if (status.value === "aborted")
3161
- return parseUtil_1.INVALID;
3162
- const result = this._def.schema._parseSync({
3163
- data: processed,
3164
- path: ctx.path,
3165
- parent: ctx,
3166
- });
3167
- if (result.status === "aborted")
3168
- return parseUtil_1.INVALID;
3169
- if (result.status === "dirty")
3170
- return (0, parseUtil_1.DIRTY)(result.value);
3171
- if (status.value === "dirty")
3172
- return (0, parseUtil_1.DIRTY)(result.value);
3173
- return result;
3174
- }
3175
- }
3176
- if (effect.type === "refinement") {
3177
- const executeRefinement = (acc) => {
3178
- const result = effect.refinement(acc, checkCtx);
3179
- if (ctx.common.async) {
3180
- return Promise.resolve(result);
3181
- }
3182
- if (result instanceof Promise) {
3183
- throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
3184
- }
3185
- return acc;
3186
- };
3187
- if (ctx.common.async === false) {
3188
- const inner = this._def.schema._parseSync({
3189
- data: ctx.data,
3190
- path: ctx.path,
3191
- parent: ctx,
3192
- });
3193
- if (inner.status === "aborted")
3194
- return parseUtil_1.INVALID;
3195
- if (inner.status === "dirty")
3196
- status.dirty();
3197
- // return value is ignored
3198
- executeRefinement(inner.value);
3199
- return { status: status.value, value: inner.value };
3200
- }
3201
- else {
3202
- return this._def.schema
3203
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3204
- .then((inner) => {
3205
- if (inner.status === "aborted")
3206
- return parseUtil_1.INVALID;
3207
- if (inner.status === "dirty")
3208
- status.dirty();
3209
- return executeRefinement(inner.value).then(() => {
3210
- return { status: status.value, value: inner.value };
3211
- });
3212
- });
3213
- }
3214
- }
3215
- if (effect.type === "transform") {
3216
- if (ctx.common.async === false) {
3217
- const base = this._def.schema._parseSync({
3218
- data: ctx.data,
3219
- path: ctx.path,
3220
- parent: ctx,
3221
- });
3222
- if (!(0, parseUtil_1.isValid)(base))
3223
- return base;
3224
- const result = effect.transform(base.value, checkCtx);
3225
- if (result instanceof Promise) {
3226
- throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
3227
- }
3228
- return { status: status.value, value: result };
3229
- }
3230
- else {
3231
- return this._def.schema
3232
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3233
- .then((base) => {
3234
- if (!(0, parseUtil_1.isValid)(base))
3235
- return base;
3236
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
3237
- });
3238
- }
3239
- }
3240
- util_1.util.assertNever(effect);
3241
- }
3242
- }
3243
- exports.ZodEffects = ZodEffects;
3244
- exports.ZodTransformer = ZodEffects;
3245
- ZodEffects.create = (schema, effect, params) => {
3246
- return new ZodEffects({
3247
- schema,
3248
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3249
- effect,
3250
- ...processCreateParams(params),
3251
- });
3252
- };
3253
- ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3254
- return new ZodEffects({
3255
- schema,
3256
- effect: { type: "preprocess", transform: preprocess },
3257
- typeName: ZodFirstPartyTypeKind.ZodEffects,
3258
- ...processCreateParams(params),
3259
- });
3260
- };
3261
- class ZodOptional extends ZodType {
3262
- _parse(input) {
3263
- const parsedType = this._getType(input);
3264
- if (parsedType === util_1.ZodParsedType.undefined) {
3265
- return (0, parseUtil_1.OK)(undefined);
3266
- }
3267
- return this._def.innerType._parse(input);
3268
- }
3269
- unwrap() {
3270
- return this._def.innerType;
3271
- }
3272
- }
3273
- exports.ZodOptional = ZodOptional;
3274
- ZodOptional.create = (type, params) => {
3275
- return new ZodOptional({
3276
- innerType: type,
3277
- typeName: ZodFirstPartyTypeKind.ZodOptional,
3278
- ...processCreateParams(params),
3279
- });
3280
- };
3281
- class ZodNullable extends ZodType {
3282
- _parse(input) {
3283
- const parsedType = this._getType(input);
3284
- if (parsedType === util_1.ZodParsedType.null) {
3285
- return (0, parseUtil_1.OK)(null);
3286
- }
3287
- return this._def.innerType._parse(input);
3288
- }
3289
- unwrap() {
3290
- return this._def.innerType;
3291
- }
3292
- }
3293
- exports.ZodNullable = ZodNullable;
3294
- ZodNullable.create = (type, params) => {
3295
- return new ZodNullable({
3296
- innerType: type,
3297
- typeName: ZodFirstPartyTypeKind.ZodNullable,
3298
- ...processCreateParams(params),
3299
- });
3300
- };
3301
- class ZodDefault extends ZodType {
3302
- _parse(input) {
3303
- const { ctx } = this._processInputParams(input);
3304
- let data = ctx.data;
3305
- if (ctx.parsedType === util_1.ZodParsedType.undefined) {
3306
- data = this._def.defaultValue();
3307
- }
3308
- return this._def.innerType._parse({
3309
- data,
3310
- path: ctx.path,
3311
- parent: ctx,
3312
- });
3313
- }
3314
- removeDefault() {
3315
- return this._def.innerType;
3316
- }
3317
- }
3318
- exports.ZodDefault = ZodDefault;
3319
- ZodDefault.create = (type, params) => {
3320
- return new ZodDefault({
3321
- innerType: type,
3322
- typeName: ZodFirstPartyTypeKind.ZodDefault,
3323
- defaultValue: typeof params.default === "function"
3324
- ? params.default
3325
- : () => params.default,
3326
- ...processCreateParams(params),
3327
- });
3328
- };
3329
- class ZodCatch extends ZodType {
3330
- _parse(input) {
3331
- const { ctx } = this._processInputParams(input);
3332
- // newCtx is used to not collect issues from inner types in ctx
3333
- const newCtx = {
3334
- ...ctx,
3335
- common: {
3336
- ...ctx.common,
3337
- issues: [],
3338
- },
3339
- };
3340
- const result = this._def.innerType._parse({
3341
- data: newCtx.data,
3342
- path: newCtx.path,
3343
- parent: {
3344
- ...newCtx,
3345
- },
3346
- });
3347
- if ((0, parseUtil_1.isAsync)(result)) {
3348
- return result.then((result) => {
3349
- return {
3350
- status: "valid",
3351
- value: result.status === "valid"
3352
- ? result.value
3353
- : this._def.catchValue({
3354
- get error() {
3355
- return new ZodError_1.ZodError(newCtx.common.issues);
3356
- },
3357
- input: newCtx.data,
3358
- }),
3359
- };
3360
- });
3361
- }
3362
- else {
3363
- return {
3364
- status: "valid",
3365
- value: result.status === "valid"
3366
- ? result.value
3367
- : this._def.catchValue({
3368
- get error() {
3369
- return new ZodError_1.ZodError(newCtx.common.issues);
3370
- },
3371
- input: newCtx.data,
3372
- }),
3373
- };
3374
- }
3375
- }
3376
- removeCatch() {
3377
- return this._def.innerType;
3378
- }
3379
- }
3380
- exports.ZodCatch = ZodCatch;
3381
- ZodCatch.create = (type, params) => {
3382
- return new ZodCatch({
3383
- innerType: type,
3384
- typeName: ZodFirstPartyTypeKind.ZodCatch,
3385
- catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
3386
- ...processCreateParams(params),
3387
- });
3388
- };
3389
- class ZodNaN extends ZodType {
3390
- _parse(input) {
3391
- const parsedType = this._getType(input);
3392
- if (parsedType !== util_1.ZodParsedType.nan) {
3393
- const ctx = this._getOrReturnCtx(input);
3394
- (0, parseUtil_1.addIssueToContext)(ctx, {
3395
- code: ZodError_1.ZodIssueCode.invalid_type,
3396
- expected: util_1.ZodParsedType.nan,
3397
- received: ctx.parsedType,
3398
- });
3399
- return parseUtil_1.INVALID;
3400
- }
3401
- return { status: "valid", value: input.data };
3402
- }
3403
- }
3404
- exports.ZodNaN = ZodNaN;
3405
- ZodNaN.create = (params) => {
3406
- return new ZodNaN({
3407
- typeName: ZodFirstPartyTypeKind.ZodNaN,
3408
- ...processCreateParams(params),
3409
- });
3410
- };
3411
- exports.BRAND = Symbol("zod_brand");
3412
- class ZodBranded extends ZodType {
3413
- _parse(input) {
3414
- const { ctx } = this._processInputParams(input);
3415
- const data = ctx.data;
3416
- return this._def.type._parse({
3417
- data,
3418
- path: ctx.path,
3419
- parent: ctx,
3420
- });
3421
- }
3422
- unwrap() {
3423
- return this._def.type;
3424
- }
3425
- }
3426
- exports.ZodBranded = ZodBranded;
3427
- class ZodPipeline extends ZodType {
3428
- _parse(input) {
3429
- const { status, ctx } = this._processInputParams(input);
3430
- if (ctx.common.async) {
3431
- const handleAsync = async () => {
3432
- const inResult = await this._def.in._parseAsync({
3433
- data: ctx.data,
3434
- path: ctx.path,
3435
- parent: ctx,
3436
- });
3437
- if (inResult.status === "aborted")
3438
- return parseUtil_1.INVALID;
3439
- if (inResult.status === "dirty") {
3440
- status.dirty();
3441
- return (0, parseUtil_1.DIRTY)(inResult.value);
3442
- }
3443
- else {
3444
- return this._def.out._parseAsync({
3445
- data: inResult.value,
3446
- path: ctx.path,
3447
- parent: ctx,
3448
- });
3449
- }
3450
- };
3451
- return handleAsync();
3452
- }
3453
- else {
3454
- const inResult = this._def.in._parseSync({
3455
- data: ctx.data,
3456
- path: ctx.path,
3457
- parent: ctx,
3458
- });
3459
- if (inResult.status === "aborted")
3460
- return parseUtil_1.INVALID;
3461
- if (inResult.status === "dirty") {
3462
- status.dirty();
3463
- return {
3464
- status: "dirty",
3465
- value: inResult.value,
3466
- };
3467
- }
3468
- else {
3469
- return this._def.out._parseSync({
3470
- data: inResult.value,
3471
- path: ctx.path,
3472
- parent: ctx,
3473
- });
3474
- }
3475
- }
3476
- }
3477
- static create(a, b) {
3478
- return new ZodPipeline({
3479
- in: a,
3480
- out: b,
3481
- typeName: ZodFirstPartyTypeKind.ZodPipeline,
3482
- });
3483
- }
3484
- }
3485
- exports.ZodPipeline = ZodPipeline;
3486
- class ZodReadonly extends ZodType {
3487
- _parse(input) {
3488
- const result = this._def.innerType._parse(input);
3489
- const freeze = (data) => {
3490
- if ((0, parseUtil_1.isValid)(data)) {
3491
- data.value = Object.freeze(data.value);
3492
- }
3493
- return data;
3494
- };
3495
- return (0, parseUtil_1.isAsync)(result)
3496
- ? result.then((data) => freeze(data))
3497
- : freeze(result);
3498
- }
3499
- unwrap() {
3500
- return this._def.innerType;
3501
- }
3502
- }
3503
- exports.ZodReadonly = ZodReadonly;
3504
- ZodReadonly.create = (type, params) => {
3505
- return new ZodReadonly({
3506
- innerType: type,
3507
- typeName: ZodFirstPartyTypeKind.ZodReadonly,
3508
- ...processCreateParams(params),
3509
- });
3510
- };
3511
- function custom(check, params = {},
3512
- /**
3513
- * @deprecated
3514
- *
3515
- * Pass `fatal` into the params object instead:
3516
- *
3517
- * ```ts
3518
- * z.string().custom((val) => val.length > 5, { fatal: false })
3519
- * ```
3520
- *
3521
- */
3522
- fatal) {
3523
- if (check)
3524
- return ZodAny.create().superRefine((data, ctx) => {
3525
- var _a, _b;
3526
- if (!check(data)) {
3527
- const p = typeof params === "function"
3528
- ? params(data)
3529
- : typeof params === "string"
3530
- ? { message: params }
3531
- : params;
3532
- const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
3533
- const p2 = typeof p === "string" ? { message: p } : p;
3534
- ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
3535
- }
3536
- });
3537
- return ZodAny.create();
3538
- }
3539
- exports.custom = custom;
3540
- exports.late = {
3541
- object: ZodObject.lazycreate,
3542
- };
3543
- var ZodFirstPartyTypeKind;
3544
- (function (ZodFirstPartyTypeKind) {
3545
- ZodFirstPartyTypeKind["ZodString"] = "ZodString";
3546
- ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
3547
- ZodFirstPartyTypeKind["ZodNaN"] = "ZodNaN";
3548
- ZodFirstPartyTypeKind["ZodBigInt"] = "ZodBigInt";
3549
- ZodFirstPartyTypeKind["ZodBoolean"] = "ZodBoolean";
3550
- ZodFirstPartyTypeKind["ZodDate"] = "ZodDate";
3551
- ZodFirstPartyTypeKind["ZodSymbol"] = "ZodSymbol";
3552
- ZodFirstPartyTypeKind["ZodUndefined"] = "ZodUndefined";
3553
- ZodFirstPartyTypeKind["ZodNull"] = "ZodNull";
3554
- ZodFirstPartyTypeKind["ZodAny"] = "ZodAny";
3555
- ZodFirstPartyTypeKind["ZodUnknown"] = "ZodUnknown";
3556
- ZodFirstPartyTypeKind["ZodNever"] = "ZodNever";
3557
- ZodFirstPartyTypeKind["ZodVoid"] = "ZodVoid";
3558
- ZodFirstPartyTypeKind["ZodArray"] = "ZodArray";
3559
- ZodFirstPartyTypeKind["ZodObject"] = "ZodObject";
3560
- ZodFirstPartyTypeKind["ZodUnion"] = "ZodUnion";
3561
- ZodFirstPartyTypeKind["ZodDiscriminatedUnion"] = "ZodDiscriminatedUnion";
3562
- ZodFirstPartyTypeKind["ZodIntersection"] = "ZodIntersection";
3563
- ZodFirstPartyTypeKind["ZodTuple"] = "ZodTuple";
3564
- ZodFirstPartyTypeKind["ZodRecord"] = "ZodRecord";
3565
- ZodFirstPartyTypeKind["ZodMap"] = "ZodMap";
3566
- ZodFirstPartyTypeKind["ZodSet"] = "ZodSet";
3567
- ZodFirstPartyTypeKind["ZodFunction"] = "ZodFunction";
3568
- ZodFirstPartyTypeKind["ZodLazy"] = "ZodLazy";
3569
- ZodFirstPartyTypeKind["ZodLiteral"] = "ZodLiteral";
3570
- ZodFirstPartyTypeKind["ZodEnum"] = "ZodEnum";
3571
- ZodFirstPartyTypeKind["ZodEffects"] = "ZodEffects";
3572
- ZodFirstPartyTypeKind["ZodNativeEnum"] = "ZodNativeEnum";
3573
- ZodFirstPartyTypeKind["ZodOptional"] = "ZodOptional";
3574
- ZodFirstPartyTypeKind["ZodNullable"] = "ZodNullable";
3575
- ZodFirstPartyTypeKind["ZodDefault"] = "ZodDefault";
3576
- ZodFirstPartyTypeKind["ZodCatch"] = "ZodCatch";
3577
- ZodFirstPartyTypeKind["ZodPromise"] = "ZodPromise";
3578
- ZodFirstPartyTypeKind["ZodBranded"] = "ZodBranded";
3579
- ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
3580
- ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
3581
- })(ZodFirstPartyTypeKind = exports.ZodFirstPartyTypeKind || (exports.ZodFirstPartyTypeKind = {}));
3582
- // requires TS 4.4+
3583
- class Class {
3584
- constructor(..._) { }
3585
- }
3586
- const instanceOfType = (
3587
- // const instanceOfType = <T extends new (...args: any[]) => any>(
3588
- cls, params = {
3589
- message: `Input not instance of ${cls.name}`,
3590
- }) => custom((data) => data instanceof cls, params);
3591
- exports.instanceof = instanceOfType;
3592
- const stringType = ZodString.create;
3593
- exports.string = stringType;
3594
- const numberType = ZodNumber.create;
3595
- exports.number = numberType;
3596
- const nanType = ZodNaN.create;
3597
- exports.nan = nanType;
3598
- const bigIntType = ZodBigInt.create;
3599
- exports.bigint = bigIntType;
3600
- const booleanType = ZodBoolean.create;
3601
- exports.boolean = booleanType;
3602
- const dateType = ZodDate.create;
3603
- exports.date = dateType;
3604
- const symbolType = ZodSymbol.create;
3605
- exports.symbol = symbolType;
3606
- const undefinedType = ZodUndefined.create;
3607
- exports.undefined = undefinedType;
3608
- const nullType = ZodNull.create;
3609
- exports.null = nullType;
3610
- const anyType = ZodAny.create;
3611
- exports.any = anyType;
3612
- const unknownType = ZodUnknown.create;
3613
- exports.unknown = unknownType;
3614
- const neverType = ZodNever.create;
3615
- exports.never = neverType;
3616
- const voidType = ZodVoid.create;
3617
- exports.void = voidType;
3618
- const arrayType = ZodArray.create;
3619
- exports.array = arrayType;
3620
- const objectType = ZodObject.create;
3621
- exports.object = objectType;
3622
- const strictObjectType = ZodObject.strictCreate;
3623
- exports.strictObject = strictObjectType;
3624
- const unionType = ZodUnion.create;
3625
- exports.union = unionType;
3626
- const discriminatedUnionType = ZodDiscriminatedUnion.create;
3627
- exports.discriminatedUnion = discriminatedUnionType;
3628
- const intersectionType = ZodIntersection.create;
3629
- exports.intersection = intersectionType;
3630
- const tupleType = ZodTuple.create;
3631
- exports.tuple = tupleType;
3632
- const recordType = ZodRecord.create;
3633
- exports.record = recordType;
3634
- const mapType = ZodMap.create;
3635
- exports.map = mapType;
3636
- const setType = ZodSet.create;
3637
- exports.set = setType;
3638
- const functionType = ZodFunction.create;
3639
- exports.function = functionType;
3640
- const lazyType = ZodLazy.create;
3641
- exports.lazy = lazyType;
3642
- const literalType = ZodLiteral.create;
3643
- exports.literal = literalType;
3644
- const enumType = ZodEnum.create;
3645
- exports.enum = enumType;
3646
- const nativeEnumType = ZodNativeEnum.create;
3647
- exports.nativeEnum = nativeEnumType;
3648
- const promiseType = ZodPromise.create;
3649
- exports.promise = promiseType;
3650
- const effectsType = ZodEffects.create;
3651
- exports.effect = effectsType;
3652
- exports.transformer = effectsType;
3653
- const optionalType = ZodOptional.create;
3654
- exports.optional = optionalType;
3655
- const nullableType = ZodNullable.create;
3656
- exports.nullable = nullableType;
3657
- const preprocessType = ZodEffects.createWithPreprocess;
3658
- exports.preprocess = preprocessType;
3659
- const pipelineType = ZodPipeline.create;
3660
- exports.pipeline = pipelineType;
3661
- const ostring = () => stringType().optional();
3662
- exports.ostring = ostring;
3663
- const onumber = () => numberType().optional();
3664
- exports.onumber = onumber;
3665
- const oboolean = () => booleanType().optional();
3666
- exports.oboolean = oboolean;
3667
- exports.coerce = {
3668
- string: ((arg) => ZodString.create({ ...arg, coerce: true })),
3669
- number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
3670
- boolean: ((arg) => ZodBoolean.create({
3671
- ...arg,
3672
- coerce: true,
3673
- })),
3674
- bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
3675
- date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
3676
- };
3677
- exports.NEVER = parseUtil_1.INVALID;