mlform 0.1.8 → 0.1.9

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 (342) hide show
  1. package/README.md +7 -5
  2. package/dist/{builtins-DegwhFGA.js → builtins-ml-pjab8_gu.js} +1544 -1173
  3. package/dist/{design-system-Dxx1Sh7r.js → design-system-CIU_vH6O.js} +569 -388
  4. package/dist/{kit-CuRF6dhL.js → kit-QY6zff-h.js} +332 -291
  5. package/dist/mlform/behaviors.mjs +1 -1
  6. package/dist/mlform/builtins-ml.mjs +1 -2
  7. package/dist/mlform/design-system.mjs +2 -2
  8. package/dist/mlform/kit.mjs +2 -2
  9. package/dist/mlform/presentation.mjs +1 -1
  10. package/dist/mlform/primitives.mjs +2 -2
  11. package/dist/mlform/runtime.mjs +4 -5
  12. package/dist/mlform/schema.mjs +1 -1
  13. package/dist/mlform/transport.mjs +1 -1
  14. package/dist/mlform.mjs +8 -8
  15. package/dist/{primitives-Duag8Lj0.js → primitives-Di95y_ur.js} +589 -552
  16. package/dist/{runtime-DMjDVo0H.js → runtime-C5iTM3uu.js} +472 -457
  17. package/dist/{transport-CtVX8ZUT.js → transport-B6ePTLFK.js} +48 -50
  18. package/dist/types/{src/behaviors → behaviors}/index.d.ts +2 -2
  19. package/dist/types/builtins-ml/definitions/fields/boolean.d.ts +9 -0
  20. package/dist/types/builtins-ml/definitions/fields/category.d.ts +12 -0
  21. package/dist/types/builtins-ml/definitions/fields/date.d.ts +10 -0
  22. package/dist/types/builtins-ml/definitions/fields/long-text.d.ts +11 -0
  23. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/mapped-category.d.ts +3 -2
  24. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/multi-choice.d.ts +3 -2
  25. package/dist/types/builtins-ml/definitions/fields/number.d.ts +12 -0
  26. package/dist/types/builtins-ml/definitions/fields/rating.d.ts +10 -0
  27. package/dist/types/builtins-ml/definitions/fields/series-helpers.d.ts +52 -0
  28. package/dist/types/builtins-ml/definitions/fields/series.d.ts +3 -0
  29. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/fields/single-choice.d.ts +3 -2
  30. package/dist/types/builtins-ml/definitions/fields/text.d.ts +11 -0
  31. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/index.d.ts +12 -31
  32. package/dist/types/builtins-ml/definitions/reports/classifier.d.ts +9 -0
  33. package/dist/types/builtins-ml/definitions/reports/regressor.d.ts +9 -0
  34. package/dist/types/{src/runtime/builtins → builtins-ml/definitions}/shared.d.ts +23 -1
  35. package/dist/types/{src/builtins-ml → builtins-ml}/index.d.ts +2 -2
  36. package/dist/types/design-system/recipes/index.d.ts +3 -0
  37. package/dist/types/{src/design-system → design-system}/registry/builtins.d.ts +0 -3
  38. package/dist/types/{src/design-system → design-system}/registry/index.d.ts +3 -1
  39. package/dist/types/design-system/runtime/controller-helpers.d.ts +12 -0
  40. package/dist/types/design-system/themes/airbnb.d.ts +2 -0
  41. package/dist/types/design-system/themes/clickhouse.d.ts +2 -0
  42. package/dist/types/design-system/themes/index.d.ts +4 -0
  43. package/dist/types/{src/index.d.ts → index.d.ts} +13 -13
  44. package/dist/types/{src/kit → kit}/accordion-root.d.ts +2 -2
  45. package/dist/types/{src/kit → kit}/constants.d.ts +1 -1
  46. package/dist/types/{src/kit → kit}/defaults.d.ts +4 -4
  47. package/dist/types/kit/error-navigation.d.ts +2 -0
  48. package/dist/types/{src/kit → kit}/index.d.ts +1 -1
  49. package/dist/types/{src/kit → kit}/layout-helpers.d.ts +1 -1
  50. package/dist/types/{src/kit → kit}/layout-node-render.d.ts +2 -2
  51. package/dist/types/{src/kit → kit}/layout.d.ts +1 -1
  52. package/dist/types/{src/kit → kit}/mount-types.d.ts +4 -4
  53. package/dist/types/{src/kit → kit}/tabs-root.d.ts +2 -2
  54. package/dist/types/{src/kit → kit}/types.d.ts +1 -1
  55. package/dist/types/{src/kit → kit}/view-navigation.d.ts +1 -1
  56. package/dist/types/{src/kit → kit}/view-snapshot-cache.d.ts +2 -2
  57. package/dist/types/{src/kit → kit}/view-snapshot.d.ts +2 -2
  58. package/dist/types/{src/kit → kit}/view-types.d.ts +4 -4
  59. package/dist/types/{src/kit → kit}/view.d.ts +2 -2
  60. package/dist/types/{src/kit → kit}/wizard-root.d.ts +2 -2
  61. package/dist/types/{src/packs → packs}/shared.d.ts +3 -4
  62. package/dist/types/{src/presentation → presentation}/define-explanation-kind.d.ts +1 -1
  63. package/dist/types/{src/presentation → presentation}/define-field-kind.d.ts +1 -1
  64. package/dist/types/{src/presentation → presentation}/define-report-kind.d.ts +1 -1
  65. package/dist/types/presentation/register-kind.d.ts +6 -0
  66. package/dist/types/{src/presentation → presentation}/registry.d.ts +1 -1
  67. package/dist/types/{src/presentation → presentation}/types/explanation.d.ts +1 -1
  68. package/dist/types/{src/presentation → presentation}/types/field.d.ts +1 -1
  69. package/dist/types/{src/presentation → presentation}/types/report.d.ts +2 -2
  70. package/dist/types/{src/primitives → primitives}/base-explanation-element.d.ts +2 -2
  71. package/dist/types/{src/primitives → primitives}/base-field-element.d.ts +2 -2
  72. package/dist/types/{src/primitives → primitives}/base-report-element.d.ts +2 -2
  73. package/dist/types/primitives/components/error-focus.d.ts +4 -0
  74. package/dist/types/{src/primitives → primitives}/components/explanation-panel.d.ts +2 -2
  75. package/dist/types/{src/primitives → primitives}/components/field-frame-feedback.d.ts +1 -1
  76. package/dist/types/{src/primitives → primitives}/components/field-frame.d.ts +2 -2
  77. package/dist/types/{src/primitives → primitives}/components/form-errors.d.ts +1 -1
  78. package/dist/types/{src/primitives → primitives}/components/form-root-presenters.d.ts +3 -3
  79. package/dist/types/primitives/components/form-root-split-styles.d.ts +1 -0
  80. package/dist/types/{src/primitives → primitives}/components/form-root-state.d.ts +1 -1
  81. package/dist/types/{src/primitives → primitives}/components/form-root-templates.d.ts +2 -2
  82. package/dist/types/{src/primitives → primitives}/components/form-root.d.ts +2 -2
  83. package/dist/types/{src/primitives → primitives}/components/presentation.d.ts +1 -1
  84. package/dist/types/{src/primitives → primitives}/components/report-frame.d.ts +2 -2
  85. package/dist/types/{src/primitives → primitives}/components/submit-button.d.ts +1 -1
  86. package/dist/types/{src/primitives → primitives}/constants.d.ts +1 -1
  87. package/dist/types/primitives/fields/series-field-renderers.d.ts +18 -0
  88. package/dist/types/{src/primitives → primitives}/mount-form.d.ts +1 -1
  89. package/dist/types/{src/primitives → primitives}/presentation.d.ts +2 -2
  90. package/dist/types/{src/primitives → primitives}/types.d.ts +2 -2
  91. package/dist/types/runtime/create-runtime-helpers.d.ts +11 -0
  92. package/dist/types/{src/runtime → runtime}/errors.d.ts +3 -3
  93. package/dist/types/{src/runtime → runtime}/index.d.ts +0 -4
  94. package/dist/types/{src/runtime → runtime}/runtime-behaviors.d.ts +1 -1
  95. package/dist/types/runtime/submission/pending-patches.d.ts +2 -0
  96. package/dist/types/runtime/submission/stream-events.d.ts +13 -0
  97. package/dist/types/{src/runtime → runtime}/types/behavior.d.ts +1 -1
  98. package/dist/types/{src/runtime → runtime}/types/explanation.d.ts +4 -11
  99. package/dist/types/{src/runtime → runtime}/types/field.d.ts +3 -10
  100. package/dist/types/{src/runtime → runtime}/types/form.d.ts +1 -1
  101. package/dist/types/runtime/types/index.d.ts +8 -0
  102. package/dist/types/{src/runtime → runtime}/types/registry.d.ts +1 -1
  103. package/dist/types/{src/runtime → runtime}/types/report.d.ts +4 -14
  104. package/dist/types/{src/runtime → runtime}/types/transport.d.ts +2 -2
  105. package/dist/types/{src/runtime → runtime}/utils.d.ts +1 -1
  106. package/dist/types/schema/registry.d.ts +9 -0
  107. package/dist/types/{src/schema → schema}/types/report.d.ts +1 -1
  108. package/dist/types/transport/composition/fanout-options.d.ts +9 -0
  109. package/dist/types/{src/transport → transport}/errors.d.ts +1 -1
  110. package/dist/utils-J5o8lkea.js +29 -0
  111. package/package.json +7 -7
  112. package/dist/builtins-ml-9qB2MOxt.js +0 -51
  113. package/dist/types/src/design-system/recipes/index.d.ts +0 -4
  114. package/dist/types/src/design-system/themes/index.d.ts +0 -5
  115. package/dist/types/src/presentation/register-kind.d.ts +0 -6
  116. package/dist/types/src/runtime/builtins/fields/boolean.d.ts +0 -8
  117. package/dist/types/src/runtime/builtins/fields/category.d.ts +0 -11
  118. package/dist/types/src/runtime/builtins/fields/date.d.ts +0 -9
  119. package/dist/types/src/runtime/builtins/fields/long-text.d.ts +0 -10
  120. package/dist/types/src/runtime/builtins/fields/number.d.ts +0 -11
  121. package/dist/types/src/runtime/builtins/fields/rating.d.ts +0 -9
  122. package/dist/types/src/runtime/builtins/fields/series.d.ts +0 -20
  123. package/dist/types/src/runtime/builtins/fields/text.d.ts +0 -10
  124. package/dist/types/src/runtime/builtins/reports/classifier.d.ts +0 -8
  125. package/dist/types/src/runtime/builtins/reports/regressor.d.ts +0 -8
  126. package/dist/types/src/runtime/declarative/explanation.d.ts +0 -2
  127. package/dist/types/src/runtime/declarative/field.d.ts +0 -2
  128. package/dist/types/src/runtime/declarative/presentation.d.ts +0 -61
  129. package/dist/types/src/runtime/declarative/report.d.ts +0 -2
  130. package/dist/types/src/runtime/registry/index.d.ts +0 -5
  131. package/dist/types/src/runtime/types/index.d.ts +0 -9
  132. package/dist/types/src/schema/registry.d.ts +0 -9
  133. /package/dist/{errors-B3H1wRwj.js → errors-CTNw8fwS.js} +0 -0
  134. /package/dist/{presentation-CkQuYheR.js → presentation-BrlVO4oV.js} +0 -0
  135. /package/dist/types/{src/design-system → design-system}/constants.d.ts +0 -0
  136. /package/dist/types/{src/design-system → design-system}/contract/component-keys.d.ts +0 -0
  137. /package/dist/types/{src/design-system → design-system}/contract/component-tokens.d.ts +0 -0
  138. /package/dist/types/{src/design-system → design-system}/contract/global-tokens.d.ts +0 -0
  139. /package/dist/types/{src/design-system → design-system}/contract/index.d.ts +0 -0
  140. /package/dist/types/{src/design-system → design-system}/contract/token-keys.d.ts +0 -0
  141. /package/dist/types/{src/design-system → design-system}/index.d.ts +0 -0
  142. /package/dist/types/{src/design-system → design-system}/recipes/contrast.d.ts +0 -0
  143. /package/dist/types/{src/design-system → design-system}/recipes/default.d.ts +0 -0
  144. /package/dist/types/{src/design-system → design-system}/recipes/minimal.d.ts +0 -0
  145. /package/dist/types/{src/design-system → design-system}/recipes/soft.d.ts +0 -0
  146. /package/dist/types/{src/design-system → design-system}/registry/create-registry.d.ts +0 -0
  147. /package/dist/types/{src/design-system → design-system}/registry/deep-freeze.d.ts +0 -0
  148. /package/dist/types/{src/design-system → design-system}/registry/define-recipe.d.ts +0 -0
  149. /package/dist/types/{src/design-system → design-system}/registry/define-theme.d.ts +0 -0
  150. /package/dist/types/{src/design-system → design-system}/registry/define-token-maps.d.ts +0 -0
  151. /package/dist/types/{src/design-system → design-system}/resolve/diagnostics.d.ts +0 -0
  152. /package/dist/types/{src/design-system → design-system}/resolve/index.d.ts +0 -0
  153. /package/dist/types/{src/design-system → design-system}/resolve/merge-config.d.ts +0 -0
  154. /package/dist/types/{src/design-system → design-system}/resolve/migrate-tokens.d.ts +0 -0
  155. /package/dist/types/{src/design-system → design-system}/resolve/resolve-mode.d.ts +0 -0
  156. /package/dist/types/{src/design-system → design-system}/resolve/resolve-recipe.d.ts +0 -0
  157. /package/dist/types/{src/design-system → design-system}/resolve/resolve-theme.d.ts +0 -0
  158. /package/dist/types/{src/design-system → design-system}/resolve/resolve-tokens.d.ts +0 -0
  159. /package/dist/types/{src/design-system → design-system}/runtime/apply-tokens.d.ts +0 -0
  160. /package/dist/types/{src/design-system → design-system}/runtime/attach-design-system.d.ts +0 -0
  161. /package/dist/types/{src/design-system → design-system}/runtime/create-stylesheet.d.ts +0 -0
  162. /package/dist/types/{src/design-system → design-system}/runtime/declarations.d.ts +0 -0
  163. /package/dist/types/{src/design-system → design-system}/runtime/design-system-controller.d.ts +0 -0
  164. /package/dist/types/{src/design-system → design-system}/runtime/fingerprint.d.ts +0 -0
  165. /package/dist/types/{src/design-system → design-system}/runtime/host-observer.d.ts +0 -0
  166. /package/dist/types/{src/design-system → design-system}/runtime/host-state.d.ts +0 -0
  167. /package/dist/types/{src/design-system → design-system}/runtime/hydrate-design-system.d.ts +0 -0
  168. /package/dist/types/{src/design-system → design-system}/runtime/hydration-state.d.ts +0 -0
  169. /package/dist/types/{src/design-system → design-system}/runtime/index.d.ts +0 -0
  170. /package/dist/types/{src/design-system → design-system}/runtime/inherited-scheme.d.ts +0 -0
  171. /package/dist/types/{src/design-system → design-system}/runtime/media.d.ts +0 -0
  172. /package/dist/types/{src/design-system → design-system}/themes/cobalt.d.ts +0 -0
  173. /package/dist/types/{src/design-system → design-system}/themes/graphite.d.ts +0 -0
  174. /package/dist/types/{src/design-system → design-system}/themes/neutral.d.ts +0 -0
  175. /package/dist/types/{src/design-system → design-system}/themes/sage.d.ts +0 -0
  176. /package/dist/types/{src/design-system → design-system}/themes/sunset.d.ts +0 -0
  177. /package/dist/types/{src/design-system → design-system}/tokens/base.d.ts +0 -0
  178. /package/dist/types/{src/design-system → design-system}/tokens/contrast.d.ts +0 -0
  179. /package/dist/types/{src/design-system → design-system}/tokens/density.d.ts +0 -0
  180. /package/dist/types/{src/design-system → design-system}/tokens/forced-colors.d.ts +0 -0
  181. /package/dist/types/{src/design-system → design-system}/tokens/index.d.ts +0 -0
  182. /package/dist/types/{src/design-system → design-system}/tokens/motion.d.ts +0 -0
  183. /package/dist/types/{src/design-system → design-system}/types.d.ts +0 -0
  184. /package/dist/types/{src/kit → kit}/accordion-root-styles.d.ts +0 -0
  185. /package/dist/types/{src/kit → kit}/accordion.d.ts +0 -0
  186. /package/dist/types/{src/kit → kit}/layout-node-resolver.d.ts +0 -0
  187. /package/dist/types/{src/kit → kit}/layout-types.d.ts +0 -0
  188. /package/dist/types/{src/kit → kit}/layout-utils.d.ts +0 -0
  189. /package/dist/types/{src/kit → kit}/mount-form.d.ts +0 -0
  190. /package/dist/types/{src/kit → kit}/panel-nav.d.ts +0 -0
  191. /package/dist/types/{src/kit → kit}/step-indicator.d.ts +0 -0
  192. /package/dist/types/{src/kit → kit}/tabs-root-styles.d.ts +0 -0
  193. /package/dist/types/{src/kit → kit}/tabs.d.ts +0 -0
  194. /package/dist/types/{src/kit → kit}/view-layout-state.d.ts +0 -0
  195. /package/dist/types/{src/kit → kit}/wizard-constants.d.ts +0 -0
  196. /package/dist/types/{src/kit → kit}/wizard-root-styles.d.ts +0 -0
  197. /package/dist/types/{src/kit → kit}/wizard.d.ts +0 -0
  198. /package/dist/types/{src/packs → packs}/default.d.ts +0 -0
  199. /package/dist/types/{src/packs → packs}/index.d.ts +0 -0
  200. /package/dist/types/{src/packs → packs}/ml.d.ts +0 -0
  201. /package/dist/types/{src/presentation → presentation}/index.d.ts +0 -0
  202. /package/dist/types/{src/presentation → presentation}/types/presentation.d.ts +0 -0
  203. /package/dist/types/{src/primitives → primitives}/base-async-report-element.d.ts +0 -0
  204. /package/dist/types/{src/primitives → primitives}/components/declarative-explanation.d.ts +0 -0
  205. /package/dist/types/{src/primitives → primitives}/components/declarative-field.d.ts +0 -0
  206. /package/dist/types/{src/primitives → primitives}/components/declarative-report.d.ts +0 -0
  207. /package/dist/types/{src/primitives → primitives}/components/field-frame-styles.d.ts +0 -0
  208. /package/dist/types/{src/primitives → primitives}/components/form-root-styles.d.ts +0 -0
  209. /package/dist/types/{src/primitives → primitives}/components/unsupported-component.d.ts +0 -0
  210. /package/dist/types/{src/primitives → primitives}/controller-binding.d.ts +0 -0
  211. /package/dist/types/{src/primitives → primitives}/fields/boolean-field.d.ts +0 -0
  212. /package/dist/types/{src/primitives → primitives}/fields/category-field.d.ts +0 -0
  213. /package/dist/types/{src/primitives → primitives}/fields/date-field.d.ts +0 -0
  214. /package/dist/types/{src/primitives → primitives}/fields/long-text-field.d.ts +0 -0
  215. /package/dist/types/{src/primitives → primitives}/fields/multi-choice-field.d.ts +0 -0
  216. /package/dist/types/{src/primitives → primitives}/fields/number-field.d.ts +0 -0
  217. /package/dist/types/{src/primitives → primitives}/fields/rating-field.d.ts +0 -0
  218. /package/dist/types/{src/primitives → primitives}/fields/series-field-helpers.d.ts +0 -0
  219. /package/dist/types/{src/primitives → primitives}/fields/series-field-styles.d.ts +0 -0
  220. /package/dist/types/{src/primitives → primitives}/fields/series-field.d.ts +0 -0
  221. /package/dist/types/{src/primitives → primitives}/fields/single-choice-field.d.ts +0 -0
  222. /package/dist/types/{src/primitives → primitives}/fields/text-field.d.ts +0 -0
  223. /package/dist/types/{src/primitives → primitives}/index.d.ts +0 -0
  224. /package/dist/types/{src/primitives → primitives}/register.d.ts +0 -0
  225. /package/dist/types/{src/primitives → primitives}/registry.d.ts +0 -0
  226. /package/dist/types/{src/primitives → primitives}/reports/classifier-report.d.ts +0 -0
  227. /package/dist/types/{src/primitives → primitives}/reports/regressor-report.d.ts +0 -0
  228. /package/dist/types/{src/primitives → primitives}/utils.d.ts +0 -0
  229. /package/dist/types/{src/runtime → runtime}/comparison.d.ts +0 -0
  230. /package/dist/types/{src/runtime → runtime}/constants.d.ts +0 -0
  231. /package/dist/types/{src/runtime → runtime}/create-runtime.d.ts +0 -0
  232. /package/dist/types/{src/runtime → runtime}/equality.d.ts +0 -0
  233. /package/dist/types/{src/runtime → runtime}/explanations/controller.d.ts +0 -0
  234. /package/dist/types/{src/runtime → runtime}/explanations/index.d.ts +0 -0
  235. /package/dist/types/{src/runtime → runtime}/fields/controller.d.ts +0 -0
  236. /package/dist/types/{src/runtime → runtime}/fields/index.d.ts +0 -0
  237. /package/dist/types/{src/runtime → runtime}/fields/state-calculations.d.ts +0 -0
  238. /package/dist/types/{src/runtime → runtime}/fields/state.d.ts +0 -0
  239. /package/dist/types/{src/runtime → runtime}/form.d.ts +0 -0
  240. /package/dist/types/{src/runtime → runtime}/paths.d.ts +0 -0
  241. /package/dist/types/{src/runtime → runtime}/reports/controller.d.ts +0 -0
  242. /package/dist/types/{src/runtime → runtime}/reports/index.d.ts +0 -0
  243. /package/dist/types/{src/runtime → runtime}/runtime-controller.d.ts +0 -0
  244. /package/dist/types/{src/runtime → runtime}/runtime-refresh.d.ts +0 -0
  245. /package/dist/types/{src/runtime → runtime}/runtime-values.d.ts +0 -0
  246. /package/dist/types/{src/runtime → runtime}/schema/index.d.ts +0 -0
  247. /package/dist/types/{src/runtime → runtime}/state/engine.d.ts +0 -0
  248. /package/dist/types/{src/runtime → runtime}/state/index.d.ts +0 -0
  249. /package/dist/types/{src/runtime → runtime}/state/snapshots.d.ts +0 -0
  250. /package/dist/types/{src/runtime → runtime}/state/store.d.ts +0 -0
  251. /package/dist/types/{src/runtime → runtime}/submission/abort.d.ts +0 -0
  252. /package/dist/types/{src/runtime → runtime}/submission/create-submitter.d.ts +0 -0
  253. /package/dist/types/{src/runtime → runtime}/submission/error-flow.d.ts +0 -0
  254. /package/dist/types/{src/runtime → runtime}/submission/explanations.d.ts +0 -0
  255. /package/dist/types/{src/runtime → runtime}/submission/field-updates.d.ts +0 -0
  256. /package/dist/types/{src/runtime → runtime}/submission/index.d.ts +0 -0
  257. /package/dist/types/{src/runtime → runtime}/submission/lifecycle.d.ts +0 -0
  258. /package/dist/types/{src/runtime → runtime}/submission/pipeline.d.ts +0 -0
  259. /package/dist/types/{src/runtime → runtime}/submission/report-updates.d.ts +0 -0
  260. /package/dist/types/{src/runtime → runtime}/submission/reports.d.ts +0 -0
  261. /package/dist/types/{src/runtime → runtime}/submission/request.d.ts +0 -0
  262. /package/dist/types/{src/runtime → runtime}/submission/result.d.ts +0 -0
  263. /package/dist/types/{src/runtime → runtime}/submission/stream-progress.d.ts +0 -0
  264. /package/dist/types/{src/runtime → runtime}/submission/submitter.d.ts +0 -0
  265. /package/dist/types/{src/runtime → runtime}/submission/types.d.ts +0 -0
  266. /package/dist/types/{src/runtime → runtime}/types/pipeline.d.ts +0 -0
  267. /package/dist/types/{src/runtime → runtime}/validation/conditions.d.ts +0 -0
  268. /package/dist/types/{src/runtime → runtime}/validation/field-state.d.ts +0 -0
  269. /package/dist/types/{src/runtime → runtime}/validation/field-validator.d.ts +0 -0
  270. /package/dist/types/{src/runtime → runtime}/validation/field.d.ts +0 -0
  271. /package/dist/types/{src/runtime → runtime}/validation/form.d.ts +0 -0
  272. /package/dist/types/{src/runtime → runtime}/validation/index.d.ts +0 -0
  273. /package/dist/types/{src/runtime → runtime}/values.d.ts +0 -0
  274. /package/dist/types/{src/schema → schema}/index.d.ts +0 -0
  275. /package/dist/types/{src/schema → schema}/normalize.d.ts +0 -0
  276. /package/dist/types/{src/schema → schema}/types/explanation.d.ts +0 -0
  277. /package/dist/types/{src/schema → schema}/types/field.d.ts +0 -0
  278. /package/dist/types/{src/schema → schema}/types/form.d.ts +0 -0
  279. /package/dist/types/{src/schema → schema}/types/registry.d.ts +0 -0
  280. /package/dist/types/{src/shared → shared}/errors.d.ts +0 -0
  281. /package/dist/types/{src/shared → shared}/index.d.ts +0 -0
  282. /package/dist/types/{src/shared → shared}/object.d.ts +0 -0
  283. /package/dist/types/{src/shared → shared}/strings.d.ts +0 -0
  284. /package/dist/types/{src/transport → transport}/capabilities.d.ts +0 -0
  285. /package/dist/types/{src/transport → transport}/clone.d.ts +0 -0
  286. /package/dist/types/{src/transport → transport}/composition/fallback.d.ts +0 -0
  287. /package/dist/types/{src/transport → transport}/composition/fanout-helpers.d.ts +0 -0
  288. /package/dist/types/{src/transport → transport}/composition/fanout.d.ts +0 -0
  289. /package/dist/types/{src/transport → transport}/composition/hedged.d.ts +0 -0
  290. /package/dist/types/{src/transport → transport}/composition/index.d.ts +0 -0
  291. /package/dist/types/{src/transport → transport}/composition/load-balancing.d.ts +0 -0
  292. /package/dist/types/{src/transport → transport}/composition/pipeline.d.ts +0 -0
  293. /package/dist/types/{src/transport → transport}/composition/quorum-fanout.d.ts +0 -0
  294. /package/dist/types/{src/transport → transport}/composition/racing.d.ts +0 -0
  295. /package/dist/types/{src/transport → transport}/composition/routing.d.ts +0 -0
  296. /package/dist/types/{src/transport → transport}/constants.d.ts +0 -0
  297. /package/dist/types/{src/transport → transport}/index.d.ts +0 -0
  298. /package/dist/types/{src/transport → transport}/internal-core.d.ts +0 -0
  299. /package/dist/types/{src/transport → transport}/internal-errors.d.ts +0 -0
  300. /package/dist/types/{src/transport → transport}/internal-request.d.ts +0 -0
  301. /package/dist/types/{src/transport → transport}/internal-routing.d.ts +0 -0
  302. /package/dist/types/{src/transport → transport}/internal-sse.d.ts +0 -0
  303. /package/dist/types/{src/transport → transport}/internal-stream.d.ts +0 -0
  304. /package/dist/types/{src/transport → transport}/internal.d.ts +0 -0
  305. /package/dist/types/{src/transport → transport}/middleware/auth.d.ts +0 -0
  306. /package/dist/types/{src/transport → transport}/middleware/cache.d.ts +0 -0
  307. /package/dist/types/{src/transport → transport}/middleware/circuit-breaker.d.ts +0 -0
  308. /package/dist/types/{src/transport → transport}/middleware/dedup.d.ts +0 -0
  309. /package/dist/types/{src/transport → transport}/middleware/index.d.ts +0 -0
  310. /package/dist/types/{src/transport → transport}/middleware/logging.d.ts +0 -0
  311. /package/dist/types/{src/transport → transport}/middleware/metrics.d.ts +0 -0
  312. /package/dist/types/{src/transport → transport}/middleware/pipe.d.ts +0 -0
  313. /package/dist/types/{src/transport → transport}/middleware/rate-limit.d.ts +0 -0
  314. /package/dist/types/{src/transport → transport}/middleware/retry.d.ts +0 -0
  315. /package/dist/types/{src/transport → transport}/middleware/timeout.d.ts +0 -0
  316. /package/dist/types/{src/transport → transport}/middleware/tracing.d.ts +0 -0
  317. /package/dist/types/{src/transport → transport}/middleware/transform.d.ts +0 -0
  318. /package/dist/types/{src/transport → transport}/policy-context.d.ts +0 -0
  319. /package/dist/types/{src/transport → transport}/protocols/graphql.d.ts +0 -0
  320. /package/dist/types/{src/transport → transport}/protocols/grpc.d.ts +0 -0
  321. /package/dist/types/{src/transport → transport}/protocols/index.d.ts +0 -0
  322. /package/dist/types/{src/transport → transport}/protocols/json.d.ts +0 -0
  323. /package/dist/types/{src/transport → transport}/protocols/sse.d.ts +0 -0
  324. /package/dist/types/{src/transport → transport}/protocols/websocket.d.ts +0 -0
  325. /package/dist/types/{src/transport → transport}/runtime.d.ts +0 -0
  326. /package/dist/types/{src/transport → transport}/state/cache-store.d.ts +0 -0
  327. /package/dist/types/{src/transport → transport}/state/circuit-breaker.d.ts +0 -0
  328. /package/dist/types/{src/transport → transport}/state/health.d.ts +0 -0
  329. /package/dist/types/{src/transport → transport}/state/index.d.ts +0 -0
  330. /package/dist/types/{src/transport → transport}/state/rate-limiter.d.ts +0 -0
  331. /package/dist/types/{src/transport → transport}/state/session.d.ts +0 -0
  332. /package/dist/types/{src/transport → transport}/types/capabilities.d.ts +0 -0
  333. /package/dist/types/{src/transport → transport}/types/core.d.ts +0 -0
  334. /package/dist/types/{src/transport → transport}/types/events.d.ts +0 -0
  335. /package/dist/types/{src/transport → transport}/types/index.d.ts +0 -0
  336. /package/dist/types/{src/transport → transport}/types/middleware.d.ts +0 -0
  337. /package/dist/types/{src/transport → transport}/types/options-http.d.ts +0 -0
  338. /package/dist/types/{src/transport → transport}/types/options-middleware.d.ts +0 -0
  339. /package/dist/types/{src/transport → transport}/types/options-routing.d.ts +0 -0
  340. /package/dist/types/{src/transport → transport}/types/options.d.ts +0 -0
  341. /package/dist/types/{src/transport → transport}/types/session.d.ts +0 -0
  342. /package/dist/types/{src/transport → transport}/types/state.d.ts +0 -0
@@ -1,5 +1,10 @@
1
- Object.freeze({ status: "aborted" });
2
- function e(e, t, n) {
1
+ import { o as e, s as t } from "./utils-J5o8lkea.js";
2
+ import { createRegistry as n } from "./mlform/schema.mjs";
3
+ import { createMappedCategoryBehavior as r } from "./mlform/behaviors.mjs";
4
+ import { n as i } from "./presentation-BrlVO4oV.js";
5
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
6
+ var a;
7
+ function o(e, t, n) {
3
8
  function r(n, r) {
4
9
  if (n._zod || Object.defineProperty(n, "_zod", {
5
10
  value: {
@@ -28,28 +33,30 @@ function e(e, t, n) {
28
33
  }
29
34
  return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
30
35
  }
31
- var t = class extends Error {
36
+ var s = class extends Error {
32
37
  constructor() {
33
38
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
34
39
  }
35
- }, n = class extends Error {
40
+ }, c = class extends Error {
36
41
  constructor(e) {
37
42
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
38
43
  }
39
- }, r = {};
40
- function i(e) {
41
- return e && Object.assign(r, e), r;
44
+ };
45
+ (a = globalThis).__zod_globalConfig ?? (a.__zod_globalConfig = {});
46
+ var l = globalThis.__zod_globalConfig;
47
+ function u(e) {
48
+ return e && Object.assign(l, e), l;
42
49
  }
43
50
  //#endregion
44
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
45
- function a(e) {
51
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
52
+ function d(e) {
46
53
  let t = Object.values(e).filter((e) => typeof e == "number");
47
54
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
48
55
  }
49
- function o(e, t) {
56
+ function f(e, t) {
50
57
  return typeof t == "bigint" ? t.toString() : t;
51
58
  }
52
- function s(e) {
59
+ function p(e) {
53
60
  return { get value() {
54
61
  {
55
62
  let t = e();
@@ -58,28 +65,23 @@ function s(e) {
58
65
  throw Error("cached value already set");
59
66
  } };
60
67
  }
61
- function c(e) {
68
+ function ee(e) {
62
69
  return e == null;
63
70
  }
64
- function l(e) {
71
+ function te(e) {
65
72
  let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
66
73
  return e.slice(t, n);
67
74
  }
68
- function u(e, t) {
69
- let n = (e.toString().split(".")[1] || "").length, r = t.toString(), i = (r.split(".")[1] || "").length;
70
- if (i === 0 && /\d?e-\d?/.test(r)) {
71
- let e = r.match(/\d?e-(\d?)/);
72
- e?.[1] && (i = Number.parseInt(e[1]));
73
- }
74
- let a = n > i ? n : i;
75
- return Number.parseInt(e.toFixed(a).replace(".", "")) % Number.parseInt(t.toFixed(a).replace(".", "")) / 10 ** a;
75
+ function ne(e, t) {
76
+ let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
77
+ return Math.abs(n - r) < i ? 0 : n - r;
76
78
  }
77
- var ee = Symbol("evaluating");
78
- function d(e, t, n) {
79
+ var re = /* @__PURE__ */ Symbol("evaluating");
80
+ function m(e, t, n) {
79
81
  let r;
80
82
  Object.defineProperty(e, t, {
81
83
  get() {
82
- if (r !== ee) return r === void 0 && (r = ee, r = n()), r;
84
+ if (r !== re) return r === void 0 && (r = re, r = n()), r;
83
85
  },
84
86
  set(n) {
85
87
  Object.defineProperty(e, t, { value: n });
@@ -87,7 +89,7 @@ function d(e, t, n) {
87
89
  configurable: !0
88
90
  });
89
91
  }
90
- function f(e, t, n) {
92
+ function h(e, t, n) {
91
93
  Object.defineProperty(e, t, {
92
94
  value: n,
93
95
  writable: !0,
@@ -95,52 +97,52 @@ function f(e, t, n) {
95
97
  configurable: !0
96
98
  });
97
99
  }
98
- function p(...e) {
100
+ function g(...e) {
99
101
  let t = {};
100
102
  for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
101
103
  return Object.defineProperties({}, t);
102
104
  }
103
- function te(e) {
105
+ function ie(e) {
104
106
  return JSON.stringify(e);
105
107
  }
106
- function ne(e) {
108
+ function ae(e) {
107
109
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
108
110
  }
109
- var re = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
110
- function ie(e) {
111
+ var oe = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
112
+ function _(e) {
111
113
  return typeof e == "object" && !!e && !Array.isArray(e);
112
114
  }
113
- var ae = s(() => {
114
- if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
115
+ var se = /* @__PURE__ */ p(() => {
116
+ if (l.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
115
117
  try {
116
118
  return Function(""), !0;
117
119
  } catch {
118
120
  return !1;
119
121
  }
120
122
  });
121
- function m(e) {
122
- if (ie(e) === !1) return !1;
123
+ function v(e) {
124
+ if (_(e) === !1) return !1;
123
125
  let t = e.constructor;
124
126
  if (t === void 0 || typeof t != "function") return !0;
125
127
  let n = t.prototype;
126
- return !(ie(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
128
+ return !(_(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
127
129
  }
128
- function oe(e) {
129
- return m(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
130
+ function ce(e) {
131
+ return v(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
130
132
  }
131
- var se = new Set([
133
+ var le = /* @__PURE__ */ new Set([
132
134
  "string",
133
135
  "number",
134
136
  "symbol"
135
137
  ]);
136
- function h(e) {
138
+ function y(e) {
137
139
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
138
140
  }
139
- function g(e, t, n) {
141
+ function b(e, t, n) {
140
142
  let r = new e._zod.constr(t ?? e._zod.def);
141
143
  return (!t || n?.parent) && (r._zod.parent = e), r;
142
144
  }
143
- function _(e) {
145
+ function x(e) {
144
146
  let t = e;
145
147
  if (!t) return {};
146
148
  if (typeof t == "string") return { error: () => t };
@@ -153,90 +155,91 @@ function _(e) {
153
155
  error: () => t.error
154
156
  } : t;
155
157
  }
156
- function ce(e) {
158
+ function ue(e) {
157
159
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
158
160
  }
159
- var le = {
161
+ var de = {
160
162
  safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
161
163
  int32: [-2147483648, 2147483647],
162
164
  uint32: [0, 4294967295],
163
165
  float32: [-34028234663852886e22, 34028234663852886e22],
164
166
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
165
167
  };
166
- function ue(e, t) {
168
+ function fe(e, t) {
167
169
  let n = e._zod.def, r = n.checks;
168
170
  if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
169
- return g(e, p(e._zod.def, {
171
+ return b(e, g(e._zod.def, {
170
172
  get shape() {
171
173
  let e = {};
172
174
  for (let r in t) {
173
175
  if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
174
176
  t[r] && (e[r] = n.shape[r]);
175
177
  }
176
- return f(this, "shape", e), e;
178
+ return h(this, "shape", e), e;
177
179
  },
178
180
  checks: []
179
181
  }));
180
182
  }
181
- function de(e, t) {
183
+ function pe(e, t) {
182
184
  let n = e._zod.def, r = n.checks;
183
185
  if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
184
- return g(e, p(e._zod.def, {
186
+ return b(e, g(e._zod.def, {
185
187
  get shape() {
186
188
  let r = { ...e._zod.def.shape };
187
189
  for (let e in t) {
188
190
  if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
189
191
  t[e] && delete r[e];
190
192
  }
191
- return f(this, "shape", r), r;
193
+ return h(this, "shape", r), r;
192
194
  },
193
195
  checks: []
194
196
  }));
195
197
  }
196
- function fe(e, t) {
197
- if (!m(t)) throw Error("Invalid input to extend: expected a plain object");
198
+ function me(e, t) {
199
+ if (!v(t)) throw Error("Invalid input to extend: expected a plain object");
198
200
  let n = e._zod.def.checks;
199
201
  if (n && n.length > 0) {
200
202
  let n = e._zod.def.shape;
201
203
  for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
202
204
  }
203
- return g(e, p(e._zod.def, { get shape() {
205
+ return b(e, g(e._zod.def, { get shape() {
204
206
  let n = {
205
207
  ...e._zod.def.shape,
206
208
  ...t
207
209
  };
208
- return f(this, "shape", n), n;
210
+ return h(this, "shape", n), n;
209
211
  } }));
210
212
  }
211
- function pe(e, t) {
212
- if (!m(t)) throw Error("Invalid input to safeExtend: expected a plain object");
213
- return g(e, p(e._zod.def, { get shape() {
213
+ function he(e, t) {
214
+ if (!v(t)) throw Error("Invalid input to safeExtend: expected a plain object");
215
+ return b(e, g(e._zod.def, { get shape() {
214
216
  let n = {
215
217
  ...e._zod.def.shape,
216
218
  ...t
217
219
  };
218
- return f(this, "shape", n), n;
220
+ return h(this, "shape", n), n;
219
221
  } }));
220
222
  }
221
- function me(e, t) {
222
- return g(e, p(e._zod.def, {
223
+ function ge(e, t) {
224
+ if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
225
+ return b(e, g(e._zod.def, {
223
226
  get shape() {
224
227
  let n = {
225
228
  ...e._zod.def.shape,
226
229
  ...t._zod.def.shape
227
230
  };
228
- return f(this, "shape", n), n;
231
+ return h(this, "shape", n), n;
229
232
  },
230
233
  get catchall() {
231
234
  return t._zod.def.catchall;
232
235
  },
233
- checks: []
236
+ checks: t._zod.def.checks ?? []
234
237
  }));
235
238
  }
236
- function he(e, t, n) {
239
+ function _e(e, t, n) {
237
240
  let r = t._zod.def.checks;
238
241
  if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
239
- return g(t, p(t._zod.def, {
242
+ return b(t, g(t._zod.def, {
240
243
  get shape() {
241
244
  let r = t._zod.def.shape, i = { ...r };
242
245
  if (n) for (let t in n) {
@@ -250,13 +253,13 @@ function he(e, t, n) {
250
253
  type: "optional",
251
254
  innerType: r[t]
252
255
  }) : r[t];
253
- return f(this, "shape", i), i;
256
+ return h(this, "shape", i), i;
254
257
  },
255
258
  checks: []
256
259
  }));
257
260
  }
258
- function ge(e, t, n) {
259
- return g(t, p(t._zod.def, { get shape() {
261
+ function ve(e, t, n) {
262
+ return b(t, g(t._zod.def, { get shape() {
260
263
  let r = t._zod.def.shape, i = { ...r };
261
264
  if (n) for (let t in n) {
262
265
  if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
@@ -269,34 +272,36 @@ function ge(e, t, n) {
269
272
  type: "nonoptional",
270
273
  innerType: r[t]
271
274
  });
272
- return f(this, "shape", i), i;
275
+ return h(this, "shape", i), i;
273
276
  } }));
274
277
  }
275
- function v(e, t = 0) {
278
+ function S(e, t = 0) {
276
279
  if (e.aborted === !0) return !0;
277
280
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
278
281
  return !1;
279
282
  }
280
- function y(e, t) {
283
+ function ye(e, t = 0) {
284
+ if (e.aborted === !0) return !0;
285
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
286
+ return !1;
287
+ }
288
+ function C(e, t) {
281
289
  return t.map((t) => {
282
290
  var n;
283
291
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
284
292
  });
285
293
  }
286
- function b(e) {
294
+ function be(e) {
287
295
  return typeof e == "string" ? e : e?.message;
288
296
  }
289
- function x(e, t, n) {
290
- let r = {
291
- ...e,
292
- path: e.path ?? []
293
- };
294
- return e.message || (r.message = b(e.inst?._zod.def?.error?.(e)) ?? b(t?.error?.(e)) ?? b(n.customError?.(e)) ?? b(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
297
+ function w(e, t, n) {
298
+ let r = e.message ? e.message : be(e.inst?._zod.def?.error?.(e)) ?? be(t?.error?.(e)) ?? be(n.customError?.(e)) ?? be(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
299
+ return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
295
300
  }
296
- function _e(e) {
301
+ function xe(e) {
297
302
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
298
303
  }
299
- function S(...e) {
304
+ function T(...e) {
300
305
  let [t, n, r] = e;
301
306
  return typeof t == "string" ? {
302
307
  message: t,
@@ -306,20 +311,20 @@ function S(...e) {
306
311
  } : { ...t };
307
312
  }
308
313
  //#endregion
309
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
310
- var ve = (e, t) => {
314
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
315
+ var Se = (e, t) => {
311
316
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
312
317
  value: e._zod,
313
318
  enumerable: !1
314
319
  }), Object.defineProperty(e, "issues", {
315
320
  value: t,
316
321
  enumerable: !1
317
- }), e.message = JSON.stringify(t, o, 2), Object.defineProperty(e, "toString", {
322
+ }), e.message = JSON.stringify(t, f, 2), Object.defineProperty(e, "toString", {
318
323
  value: () => e.message,
319
324
  enumerable: !1
320
325
  });
321
- }, ye = e("$ZodError", ve), be = e("$ZodError", ve, { Parent: Error });
322
- function xe(e, t = (e) => e.message) {
326
+ }, Ce = o("$ZodError", Se), we = o("$ZodError", Se, { Parent: Error });
327
+ function Te(e, t = (e) => e.message) {
323
328
  let n = {}, r = [];
324
329
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
325
330
  return {
@@ -327,116 +332,140 @@ function xe(e, t = (e) => e.message) {
327
332
  fieldErrors: n
328
333
  };
329
334
  }
330
- function Se(e, t = (e) => e.message) {
331
- let n = { _errors: [] }, r = (e) => {
332
- for (let i of e.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((e) => r({ issues: e }));
333
- else if (i.code === "invalid_key") r({ issues: i.issues });
334
- else if (i.code === "invalid_element") r({ issues: i.issues });
335
- else if (i.path.length === 0) n._errors.push(t(i));
335
+ function Ee(e, t = (e) => e.message) {
336
+ let n = { _errors: [] }, r = (e, i = []) => {
337
+ for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
338
+ else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
339
+ else if (a.code === "invalid_element") r({ issues: a.issues }, [...i, ...a.path]);
336
340
  else {
337
- let e = n, r = 0;
338
- for (; r < i.path.length;) {
339
- let n = i.path[r];
340
- r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
341
+ let e = [...i, ...a.path];
342
+ if (e.length === 0) n._errors.push(t(a));
343
+ else {
344
+ let r = n, i = 0;
345
+ for (; i < e.length;) {
346
+ let n = e[i];
347
+ i === e.length - 1 ? (r[n] = r[n] || { _errors: [] }, r[n]._errors.push(t(a))) : r[n] = r[n] || { _errors: [] }, r = r[n], i++;
348
+ }
341
349
  }
342
350
  }
343
351
  };
344
352
  return r(e), n;
345
353
  }
346
354
  //#endregion
347
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
348
- var Ce = (e) => (n, r, a, o) => {
349
- let s = a ? Object.assign(a, { async: !1 }) : { async: !1 }, c = n._zod.run({
350
- value: r,
355
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
356
+ var De = (e) => (t, n, r, i) => {
357
+ let a = r ? {
358
+ ...r,
359
+ async: !1
360
+ } : { async: !1 }, o = t._zod.run({
361
+ value: n,
351
362
  issues: []
352
- }, s);
353
- if (c instanceof Promise) throw new t();
354
- if (c.issues.length) {
355
- let t = new (o?.Err ?? e)(c.issues.map((e) => x(e, s, i())));
356
- throw re(t, o?.callee), t;
363
+ }, a);
364
+ if (o instanceof Promise) throw new s();
365
+ if (o.issues.length) {
366
+ let t = new (i?.Err ?? e)(o.issues.map((e) => w(e, a, u())));
367
+ throw oe(t, i?.callee), t;
357
368
  }
358
- return c.value;
359
- }, we = (e) => async (t, n, r, a) => {
360
- let o = r ? Object.assign(r, { async: !0 }) : { async: !0 }, s = t._zod.run({
369
+ return o.value;
370
+ }, Oe = (e) => async (t, n, r, i) => {
371
+ let a = r ? {
372
+ ...r,
373
+ async: !0
374
+ } : { async: !0 }, o = t._zod.run({
361
375
  value: n,
362
376
  issues: []
363
- }, o);
364
- if (s instanceof Promise && (s = await s), s.issues.length) {
365
- let t = new (a?.Err ?? e)(s.issues.map((e) => x(e, o, i())));
366
- throw re(t, a?.callee), t;
377
+ }, a);
378
+ if (o instanceof Promise && (o = await o), o.issues.length) {
379
+ let t = new (i?.Err ?? e)(o.issues.map((e) => w(e, a, u())));
380
+ throw oe(t, i?.callee), t;
367
381
  }
368
- return s.value;
369
- }, C = (e) => (n, r, a) => {
370
- let o = a ? {
371
- ...a,
382
+ return o.value;
383
+ }, ke = (e) => (t, n, r) => {
384
+ let i = r ? {
385
+ ...r,
372
386
  async: !1
373
- } : { async: !1 }, s = n._zod.run({
374
- value: r,
387
+ } : { async: !1 }, a = t._zod.run({
388
+ value: n,
375
389
  issues: []
376
- }, o);
377
- if (s instanceof Promise) throw new t();
378
- return s.issues.length ? {
390
+ }, i);
391
+ if (a instanceof Promise) throw new s();
392
+ return a.issues.length ? {
379
393
  success: !1,
380
- error: new (e ?? ye)(s.issues.map((e) => x(e, o, i())))
394
+ error: new (e ?? Ce)(a.issues.map((e) => w(e, i, u())))
381
395
  } : {
382
396
  success: !0,
383
- data: s.value
397
+ data: a.value
384
398
  };
385
- }, Te = /* @__PURE__ */ C(be), w = (e) => async (t, n, r) => {
386
- let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
399
+ }, Ae = /* @__PURE__ */ ke(we), je = (e) => async (t, n, r) => {
400
+ let i = r ? {
401
+ ...r,
402
+ async: !0
403
+ } : { async: !0 }, a = t._zod.run({
387
404
  value: n,
388
405
  issues: []
389
- }, a);
390
- return o instanceof Promise && (o = await o), o.issues.length ? {
406
+ }, i);
407
+ return a instanceof Promise && (a = await a), a.issues.length ? {
391
408
  success: !1,
392
- error: new e(o.issues.map((e) => x(e, a, i())))
409
+ error: new e(a.issues.map((e) => w(e, i, u())))
393
410
  } : {
394
411
  success: !0,
395
- data: o.value
412
+ data: a.value
396
413
  };
397
- }, Ee = /* @__PURE__ */ w(be), De = (e) => (t, n, r) => {
398
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
399
- return Ce(e)(t, n, i);
400
- }, Oe = (e) => (t, n, r) => Ce(e)(t, n, r), ke = (e) => async (t, n, r) => {
401
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
402
- return we(e)(t, n, i);
403
- }, Ae = (e) => async (t, n, r) => we(e)(t, n, r), je = (e) => (t, n, r) => {
404
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
405
- return C(e)(t, n, i);
406
- }, Me = (e) => (t, n, r) => C(e)(t, n, r), Ne = (e) => async (t, n, r) => {
407
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
408
- return w(e)(t, n, i);
409
- }, Pe = (e) => async (t, n, r) => w(e)(t, n, r), Fe = /^[cC][^\s-]{8,}$/, Ie = /^[0-9a-z]+$/, Le = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Re = /^[0-9a-vA-V]{20}$/, ze = /^[A-Za-z0-9]{27}$/, Be = /^[a-zA-Z0-9_-]{21}$/, Ve = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, He = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ue = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, We = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ge = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
410
- function Ke() {
411
- return new RegExp(Ge, "u");
412
- }
413
- var qe = /^(?:(?: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])$/, Je = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Ye = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Xe = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ze = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Qe = /^[A-Za-z0-9_-]*$/, $e = /^\+[1-9]\d{6,14}$/, et = "(?:(?:\\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])))", tt = /* @__PURE__ */ RegExp(`^${et}$`);
414
- function nt(e) {
414
+ }, Me = /* @__PURE__ */ je(we), Ne = (e) => (t, n, r) => {
415
+ let i = r ? {
416
+ ...r,
417
+ direction: "backward"
418
+ } : { direction: "backward" };
419
+ return De(e)(t, n, i);
420
+ }, Pe = (e) => (t, n, r) => De(e)(t, n, r), Fe = (e) => async (t, n, r) => {
421
+ let i = r ? {
422
+ ...r,
423
+ direction: "backward"
424
+ } : { direction: "backward" };
425
+ return Oe(e)(t, n, i);
426
+ }, Ie = (e) => async (t, n, r) => Oe(e)(t, n, r), Le = (e) => (t, n, r) => {
427
+ let i = r ? {
428
+ ...r,
429
+ direction: "backward"
430
+ } : { direction: "backward" };
431
+ return ke(e)(t, n, i);
432
+ }, Re = (e) => (t, n, r) => ke(e)(t, n, r), ze = (e) => async (t, n, r) => {
433
+ let i = r ? {
434
+ ...r,
435
+ direction: "backward"
436
+ } : { direction: "backward" };
437
+ return je(e)(t, n, i);
438
+ }, Be = (e) => async (t, n, r) => je(e)(t, n, r), Ve = /^[cC][0-9a-z]{6,}$/, He = /^[0-9a-z]+$/, Ue = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, We = /^[0-9a-vA-V]{20}$/, Ge = /^[A-Za-z0-9]{27}$/, Ke = /^[a-zA-Z0-9_-]{21}$/, qe = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Je = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ye = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Xe = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ze = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
439
+ function Qe() {
440
+ return new RegExp(Ze, "u");
441
+ }
442
+ var $e = /^(?:(?: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])$/, et = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, tt = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, nt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, rt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, it = /^[A-Za-z0-9_-]*$/, at = /^https?$/, ot = /^\+[1-9]\d{6,14}$/, st = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", ct = /* @__PURE__ */ RegExp(`^${st}$`);
443
+ function lt(e) {
415
444
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
416
445
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
417
446
  }
418
- function rt(e) {
419
- return RegExp(`^${nt(e)}$`);
447
+ function ut(e) {
448
+ return RegExp(`^${lt(e)}$`);
420
449
  }
421
- function it(e) {
422
- let t = nt({ precision: e.precision }), n = ["Z"];
450
+ function dt(e) {
451
+ let t = lt({ precision: e.precision }), n = ["Z"];
423
452
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
424
453
  let r = `${t}(?:${n.join("|")})`;
425
- return RegExp(`^${et}T(?:${r})$`);
454
+ return RegExp(`^${st}T(?:${r})$`);
426
455
  }
427
- var at = (e) => {
456
+ var ft = (e) => {
428
457
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
429
458
  return RegExp(`^${t}$`);
430
- }, ot = /^-?\d+$/, st = /^-?\d+(?:\.\d+)?$/, ct = /^(?:true|false)$/i, lt = /^[^A-Z]*$/, ut = /^[^a-z]*$/, T = /* @__PURE__ */ e("$ZodCheck", (e, t) => {
459
+ }, pt = /^-?\d+$/, mt = /^-?\d+(?:\.\d+)?$/, ht = /^(?:true|false)$/i, gt = /^[^A-Z]*$/, _t = /^[^a-z]*$/, E = /* @__PURE__ */ o("$ZodCheck", (e, t) => {
431
460
  var n;
432
461
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
433
- }), dt = {
462
+ }), vt = {
434
463
  number: "number",
435
464
  bigint: "bigint",
436
465
  object: "date"
437
- }, ft = /* @__PURE__ */ e("$ZodCheckLessThan", (e, t) => {
438
- T.init(e, t);
439
- let n = dt[typeof t.value];
466
+ }, yt = /* @__PURE__ */ o("$ZodCheckLessThan", (e, t) => {
467
+ E.init(e, t);
468
+ let n = vt[typeof t.value];
440
469
  e._zod.onattach.push((e) => {
441
470
  let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
442
471
  t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
@@ -451,9 +480,9 @@ var at = (e) => {
451
480
  continue: !t.abort
452
481
  });
453
482
  };
454
- }), pt = /* @__PURE__ */ e("$ZodCheckGreaterThan", (e, t) => {
455
- T.init(e, t);
456
- let n = dt[typeof t.value];
483
+ }), bt = /* @__PURE__ */ o("$ZodCheckGreaterThan", (e, t) => {
484
+ E.init(e, t);
485
+ let n = vt[typeof t.value];
457
486
  e._zod.onattach.push((e) => {
458
487
  let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
459
488
  t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
@@ -468,13 +497,13 @@ var at = (e) => {
468
497
  continue: !t.abort
469
498
  });
470
499
  };
471
- }), mt = /* @__PURE__ */ e("$ZodCheckMultipleOf", (e, t) => {
472
- T.init(e, t), e._zod.onattach.push((e) => {
500
+ }), xt = /* @__PURE__ */ o("$ZodCheckMultipleOf", (e, t) => {
501
+ E.init(e, t), e._zod.onattach.push((e) => {
473
502
  var n;
474
503
  (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
475
504
  }), e._zod.check = (n) => {
476
505
  if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
477
- (typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : u(n.value, t.value) === 0) || n.issues.push({
506
+ (typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : ne(n.value, t.value) === 0) || n.issues.push({
478
507
  origin: typeof n.value,
479
508
  code: "not_multiple_of",
480
509
  divisor: t.value,
@@ -483,12 +512,12 @@ var at = (e) => {
483
512
  continue: !t.abort
484
513
  });
485
514
  };
486
- }), ht = /* @__PURE__ */ e("$ZodCheckNumberFormat", (e, t) => {
487
- T.init(e, t), t.format = t.format || "float64";
488
- let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = le[t.format];
515
+ }), St = /* @__PURE__ */ o("$ZodCheckNumberFormat", (e, t) => {
516
+ E.init(e, t), t.format = t.format || "float64";
517
+ let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = de[t.format];
489
518
  e._zod.onattach.push((e) => {
490
519
  let r = e._zod.bag;
491
- r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = ot);
520
+ r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = pt);
492
521
  }), e._zod.check = (o) => {
493
522
  let s = o.value;
494
523
  if (n) {
@@ -544,18 +573,18 @@ var at = (e) => {
544
573
  continue: !t.abort
545
574
  });
546
575
  };
547
- }), gt = /* @__PURE__ */ e("$ZodCheckMaxLength", (e, t) => {
576
+ }), Ct = /* @__PURE__ */ o("$ZodCheckMaxLength", (e, t) => {
548
577
  var n;
549
- T.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
578
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
550
579
  let t = e.value;
551
- return !c(t) && t.length !== void 0;
580
+ return !ee(t) && t.length !== void 0;
552
581
  }), e._zod.onattach.push((e) => {
553
582
  let n = e._zod.bag.maximum ?? Infinity;
554
583
  t.maximum < n && (e._zod.bag.maximum = t.maximum);
555
584
  }), e._zod.check = (n) => {
556
585
  let r = n.value;
557
586
  if (r.length <= t.maximum) return;
558
- let i = _e(r);
587
+ let i = xe(r);
559
588
  n.issues.push({
560
589
  origin: i,
561
590
  code: "too_big",
@@ -566,18 +595,18 @@ var at = (e) => {
566
595
  continue: !t.abort
567
596
  });
568
597
  };
569
- }), _t = /* @__PURE__ */ e("$ZodCheckMinLength", (e, t) => {
598
+ }), wt = /* @__PURE__ */ o("$ZodCheckMinLength", (e, t) => {
570
599
  var n;
571
- T.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
600
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
572
601
  let t = e.value;
573
- return !c(t) && t.length !== void 0;
602
+ return !ee(t) && t.length !== void 0;
574
603
  }), e._zod.onattach.push((e) => {
575
604
  let n = e._zod.bag.minimum ?? -Infinity;
576
605
  t.minimum > n && (e._zod.bag.minimum = t.minimum);
577
606
  }), e._zod.check = (n) => {
578
607
  let r = n.value;
579
608
  if (r.length >= t.minimum) return;
580
- let i = _e(r);
609
+ let i = xe(r);
581
610
  n.issues.push({
582
611
  origin: i,
583
612
  code: "too_small",
@@ -588,18 +617,18 @@ var at = (e) => {
588
617
  continue: !t.abort
589
618
  });
590
619
  };
591
- }), vt = /* @__PURE__ */ e("$ZodCheckLengthEquals", (e, t) => {
620
+ }), Tt = /* @__PURE__ */ o("$ZodCheckLengthEquals", (e, t) => {
592
621
  var n;
593
- T.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
622
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
594
623
  let t = e.value;
595
- return !c(t) && t.length !== void 0;
624
+ return !ee(t) && t.length !== void 0;
596
625
  }), e._zod.onattach.push((e) => {
597
626
  let n = e._zod.bag;
598
627
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
599
628
  }), e._zod.check = (n) => {
600
629
  let r = n.value, i = r.length;
601
630
  if (i === t.length) return;
602
- let a = _e(r), o = i > t.length;
631
+ let a = xe(r), o = i > t.length;
603
632
  n.issues.push({
604
633
  origin: a,
605
634
  ...o ? {
@@ -616,9 +645,9 @@ var at = (e) => {
616
645
  continue: !t.abort
617
646
  });
618
647
  };
619
- }), yt = /* @__PURE__ */ e("$ZodCheckStringFormat", (e, t) => {
648
+ }), Et = /* @__PURE__ */ o("$ZodCheckStringFormat", (e, t) => {
620
649
  var n, r;
621
- T.init(e, t), e._zod.onattach.push((e) => {
650
+ E.init(e, t), e._zod.onattach.push((e) => {
622
651
  let n = e._zod.bag;
623
652
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
624
653
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -632,8 +661,8 @@ var at = (e) => {
632
661
  continue: !t.abort
633
662
  });
634
663
  }) : (r = e._zod).check ?? (r.check = () => {});
635
- }), bt = /* @__PURE__ */ e("$ZodCheckRegex", (e, t) => {
636
- yt.init(e, t), e._zod.check = (n) => {
664
+ }), Dt = /* @__PURE__ */ o("$ZodCheckRegex", (e, t) => {
665
+ Et.init(e, t), e._zod.check = (n) => {
637
666
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
638
667
  origin: "string",
639
668
  code: "invalid_format",
@@ -644,13 +673,13 @@ var at = (e) => {
644
673
  continue: !t.abort
645
674
  });
646
675
  };
647
- }), xt = /* @__PURE__ */ e("$ZodCheckLowerCase", (e, t) => {
648
- t.pattern ??= lt, yt.init(e, t);
649
- }), St = /* @__PURE__ */ e("$ZodCheckUpperCase", (e, t) => {
650
- t.pattern ??= ut, yt.init(e, t);
651
- }), Ct = /* @__PURE__ */ e("$ZodCheckIncludes", (e, t) => {
652
- T.init(e, t);
653
- let n = h(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
676
+ }), Ot = /* @__PURE__ */ o("$ZodCheckLowerCase", (e, t) => {
677
+ t.pattern ??= gt, Et.init(e, t);
678
+ }), kt = /* @__PURE__ */ o("$ZodCheckUpperCase", (e, t) => {
679
+ t.pattern ??= _t, Et.init(e, t);
680
+ }), At = /* @__PURE__ */ o("$ZodCheckIncludes", (e, t) => {
681
+ E.init(e, t);
682
+ let n = y(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
654
683
  t.pattern = r, e._zod.onattach.push((e) => {
655
684
  let t = e._zod.bag;
656
685
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
@@ -665,9 +694,9 @@ var at = (e) => {
665
694
  continue: !t.abort
666
695
  });
667
696
  };
668
- }), wt = /* @__PURE__ */ e("$ZodCheckStartsWith", (e, t) => {
669
- T.init(e, t);
670
- let n = RegExp(`^${h(t.prefix)}.*`);
697
+ }), jt = /* @__PURE__ */ o("$ZodCheckStartsWith", (e, t) => {
698
+ E.init(e, t);
699
+ let n = RegExp(`^${y(t.prefix)}.*`);
671
700
  t.pattern ??= n, e._zod.onattach.push((e) => {
672
701
  let t = e._zod.bag;
673
702
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -682,9 +711,9 @@ var at = (e) => {
682
711
  continue: !t.abort
683
712
  });
684
713
  };
685
- }), Tt = /* @__PURE__ */ e("$ZodCheckEndsWith", (e, t) => {
686
- T.init(e, t);
687
- let n = RegExp(`.*${h(t.suffix)}$`);
714
+ }), Mt = /* @__PURE__ */ o("$ZodCheckEndsWith", (e, t) => {
715
+ E.init(e, t);
716
+ let n = RegExp(`.*${y(t.suffix)}$`);
688
717
  t.pattern ??= n, e._zod.onattach.push((e) => {
689
718
  let t = e._zod.bag;
690
719
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -699,11 +728,11 @@ var at = (e) => {
699
728
  continue: !t.abort
700
729
  });
701
730
  };
702
- }), Et = /* @__PURE__ */ e("$ZodCheckOverwrite", (e, t) => {
703
- T.init(e, t), e._zod.check = (e) => {
731
+ }), Nt = /* @__PURE__ */ o("$ZodCheckOverwrite", (e, t) => {
732
+ E.init(e, t), e._zod.check = (e) => {
704
733
  e.value = t.tx(e.value);
705
734
  };
706
- }), Dt = class {
735
+ }), Pt = class {
707
736
  constructor(e = []) {
708
737
  this.content = [], this.indent = 0, this && (this.args = e);
709
738
  }
@@ -722,80 +751,80 @@ var at = (e) => {
722
751
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
723
752
  return new e(...t, n.join("\n"));
724
753
  }
725
- }, Ot = {
754
+ }, Ft = {
726
755
  major: 4,
727
- minor: 3,
728
- patch: 6
729
- }, E = /* @__PURE__ */ e("$ZodType", (e, n) => {
730
- var r;
731
- e ??= {}, e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = Ot;
732
- let i = [...e._zod.def.checks ?? []];
733
- e._zod.traits.has("$ZodCheck") && i.unshift(e);
734
- for (let t of i) for (let n of t._zod.onattach) n(e);
735
- if (i.length === 0) (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
756
+ minor: 4,
757
+ patch: 3
758
+ }, D = /* @__PURE__ */ o("$ZodType", (e, t) => {
759
+ var n;
760
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ft;
761
+ let r = [...e._zod.def.checks ?? []];
762
+ e._zod.traits.has("$ZodCheck") && r.unshift(e);
763
+ for (let t of r) for (let n of t._zod.onattach) n(e);
764
+ if (r.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
736
765
  e._zod.run = e._zod.parse;
737
766
  });
738
767
  else {
739
- let n = (e, n, r) => {
740
- let i = v(e), a;
741
- for (let o of n) {
742
- if (o._zod.def.when) {
743
- if (!o._zod.def.when(e)) continue;
744
- } else if (i) continue;
745
- let n = e.issues.length, s = o._zod.check(e);
746
- if (s instanceof Promise && r?.async === !1) throw new t();
747
- if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
748
- await s, e.issues.length !== n && (i ||= v(e, n));
768
+ let t = (e, t, n) => {
769
+ let r = S(e), i;
770
+ for (let a of t) {
771
+ if (a._zod.def.when) {
772
+ if (ye(e) || !a._zod.def.when(e)) continue;
773
+ } else if (r) continue;
774
+ let t = e.issues.length, o = a._zod.check(e);
775
+ if (o instanceof Promise && n?.async === !1) throw new s();
776
+ if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
777
+ await o, e.issues.length !== t && (r ||= S(e, t));
749
778
  });
750
779
  else {
751
- if (e.issues.length === n) continue;
752
- i ||= v(e, n);
780
+ if (e.issues.length === t) continue;
781
+ r ||= S(e, t);
753
782
  }
754
783
  }
755
- return a ? a.then(() => e) : e;
756
- }, r = (r, a, o) => {
757
- if (v(r)) return r.aborted = !0, r;
758
- let s = n(a, i, o);
759
- if (s instanceof Promise) {
760
- if (o.async === !1) throw new t();
761
- return s.then((t) => e._zod.parse(t, o));
784
+ return i ? i.then(() => e) : e;
785
+ }, n = (n, i, a) => {
786
+ if (S(n)) return n.aborted = !0, n;
787
+ let o = t(i, r, a);
788
+ if (o instanceof Promise) {
789
+ if (a.async === !1) throw new s();
790
+ return o.then((t) => e._zod.parse(t, a));
762
791
  }
763
- return e._zod.parse(s, o);
792
+ return e._zod.parse(o, a);
764
793
  };
765
- e._zod.run = (a, o) => {
766
- if (o.skipChecks) return e._zod.parse(a, o);
767
- if (o.direction === "backward") {
794
+ e._zod.run = (i, a) => {
795
+ if (a.skipChecks) return e._zod.parse(i, a);
796
+ if (a.direction === "backward") {
768
797
  let t = e._zod.parse({
769
- value: a.value,
798
+ value: i.value,
770
799
  issues: []
771
800
  }, {
772
- ...o,
801
+ ...a,
773
802
  skipChecks: !0
774
803
  });
775
- return t instanceof Promise ? t.then((e) => r(e, a, o)) : r(t, a, o);
804
+ return t instanceof Promise ? t.then((e) => n(e, i, a)) : n(t, i, a);
776
805
  }
777
- let s = e._zod.parse(a, o);
778
- if (s instanceof Promise) {
779
- if (o.async === !1) throw new t();
780
- return s.then((e) => n(e, i, o));
806
+ let o = e._zod.parse(i, a);
807
+ if (o instanceof Promise) {
808
+ if (a.async === !1) throw new s();
809
+ return o.then((e) => t(e, r, a));
781
810
  }
782
- return n(s, i, o);
811
+ return t(o, r, a);
783
812
  };
784
813
  }
785
- d(e, "~standard", () => ({
814
+ m(e, "~standard", () => ({
786
815
  validate: (t) => {
787
816
  try {
788
- let n = Te(e, t);
817
+ let n = Ae(e, t);
789
818
  return n.success ? { value: n.data } : { issues: n.error?.issues };
790
819
  } catch {
791
- return Ee(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
820
+ return Me(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
792
821
  }
793
822
  },
794
823
  vendor: "zod",
795
824
  version: 1
796
825
  }));
797
- }), kt = /* @__PURE__ */ e("$ZodString", (e, t) => {
798
- E.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? at(e._zod.bag), e._zod.parse = (n, r) => {
826
+ }), It = /* @__PURE__ */ o("$ZodString", (e, t) => {
827
+ D.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ft(e._zod.bag), e._zod.parse = (n, r) => {
799
828
  if (t.coerce) try {
800
829
  n.value = String(n.value);
801
830
  } catch {}
@@ -806,11 +835,11 @@ var at = (e) => {
806
835
  inst: e
807
836
  }), n;
808
837
  };
809
- }), D = /* @__PURE__ */ e("$ZodStringFormat", (e, t) => {
810
- yt.init(e, t), kt.init(e, t);
811
- }), At = /* @__PURE__ */ e("$ZodGUID", (e, t) => {
812
- t.pattern ??= He, D.init(e, t);
813
- }), jt = /* @__PURE__ */ e("$ZodUUID", (e, t) => {
838
+ }), O = /* @__PURE__ */ o("$ZodStringFormat", (e, t) => {
839
+ Et.init(e, t), It.init(e, t);
840
+ }), Lt = /* @__PURE__ */ o("$ZodGUID", (e, t) => {
841
+ t.pattern ??= Je, O.init(e, t);
842
+ }), Rt = /* @__PURE__ */ o("$ZodUUID", (e, t) => {
814
843
  if (t.version) {
815
844
  let e = {
816
845
  v1: 1,
@@ -823,15 +852,27 @@ var at = (e) => {
823
852
  v8: 8
824
853
  }[t.version];
825
854
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
826
- t.pattern ??= Ue(e);
827
- } else t.pattern ??= Ue();
828
- D.init(e, t);
829
- }), Mt = /* @__PURE__ */ e("$ZodEmail", (e, t) => {
830
- t.pattern ??= We, D.init(e, t);
831
- }), Nt = /* @__PURE__ */ e("$ZodURL", (e, t) => {
832
- D.init(e, t), e._zod.check = (n) => {
855
+ t.pattern ??= Ye(e);
856
+ } else t.pattern ??= Ye();
857
+ O.init(e, t);
858
+ }), zt = /* @__PURE__ */ o("$ZodEmail", (e, t) => {
859
+ t.pattern ??= Xe, O.init(e, t);
860
+ }), Bt = /* @__PURE__ */ o("$ZodURL", (e, t) => {
861
+ O.init(e, t), e._zod.check = (n) => {
833
862
  try {
834
- let r = n.value.trim(), i = new URL(r);
863
+ let r = n.value.trim();
864
+ if (!t.normalize && t.protocol?.source === at.source && !/^https?:\/\//i.test(r)) {
865
+ n.issues.push({
866
+ code: "invalid_format",
867
+ format: "url",
868
+ note: "Invalid URL format",
869
+ input: n.value,
870
+ inst: e,
871
+ continue: !t.abort
872
+ });
873
+ return;
874
+ }
875
+ let i = new URL(r);
835
876
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
836
877
  code: "invalid_format",
837
878
  format: "url",
@@ -860,32 +901,32 @@ var at = (e) => {
860
901
  });
861
902
  }
862
903
  };
863
- }), Pt = /* @__PURE__ */ e("$ZodEmoji", (e, t) => {
864
- t.pattern ??= Ke(), D.init(e, t);
865
- }), Ft = /* @__PURE__ */ e("$ZodNanoID", (e, t) => {
866
- t.pattern ??= Be, D.init(e, t);
867
- }), It = /* @__PURE__ */ e("$ZodCUID", (e, t) => {
868
- t.pattern ??= Fe, D.init(e, t);
869
- }), Lt = /* @__PURE__ */ e("$ZodCUID2", (e, t) => {
870
- t.pattern ??= Ie, D.init(e, t);
871
- }), Rt = /* @__PURE__ */ e("$ZodULID", (e, t) => {
872
- t.pattern ??= Le, D.init(e, t);
873
- }), zt = /* @__PURE__ */ e("$ZodXID", (e, t) => {
874
- t.pattern ??= Re, D.init(e, t);
875
- }), Bt = /* @__PURE__ */ e("$ZodKSUID", (e, t) => {
876
- t.pattern ??= ze, D.init(e, t);
877
- }), Vt = /* @__PURE__ */ e("$ZodISODateTime", (e, t) => {
878
- t.pattern ??= it(t), D.init(e, t);
879
- }), Ht = /* @__PURE__ */ e("$ZodISODate", (e, t) => {
880
- t.pattern ??= tt, D.init(e, t);
881
- }), Ut = /* @__PURE__ */ e("$ZodISOTime", (e, t) => {
882
- t.pattern ??= rt(t), D.init(e, t);
883
- }), Wt = /* @__PURE__ */ e("$ZodISODuration", (e, t) => {
884
- t.pattern ??= Ve, D.init(e, t);
885
- }), Gt = /* @__PURE__ */ e("$ZodIPv4", (e, t) => {
886
- t.pattern ??= qe, D.init(e, t), e._zod.bag.format = "ipv4";
887
- }), Kt = /* @__PURE__ */ e("$ZodIPv6", (e, t) => {
888
- t.pattern ??= Je, D.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
904
+ }), Vt = /* @__PURE__ */ o("$ZodEmoji", (e, t) => {
905
+ t.pattern ??= Qe(), O.init(e, t);
906
+ }), Ht = /* @__PURE__ */ o("$ZodNanoID", (e, t) => {
907
+ t.pattern ??= Ke, O.init(e, t);
908
+ }), Ut = /* @__PURE__ */ o("$ZodCUID", (e, t) => {
909
+ t.pattern ??= Ve, O.init(e, t);
910
+ }), Wt = /* @__PURE__ */ o("$ZodCUID2", (e, t) => {
911
+ t.pattern ??= He, O.init(e, t);
912
+ }), Gt = /* @__PURE__ */ o("$ZodULID", (e, t) => {
913
+ t.pattern ??= Ue, O.init(e, t);
914
+ }), Kt = /* @__PURE__ */ o("$ZodXID", (e, t) => {
915
+ t.pattern ??= We, O.init(e, t);
916
+ }), qt = /* @__PURE__ */ o("$ZodKSUID", (e, t) => {
917
+ t.pattern ??= Ge, O.init(e, t);
918
+ }), Jt = /* @__PURE__ */ o("$ZodISODateTime", (e, t) => {
919
+ t.pattern ??= dt(t), O.init(e, t);
920
+ }), Yt = /* @__PURE__ */ o("$ZodISODate", (e, t) => {
921
+ t.pattern ??= ct, O.init(e, t);
922
+ }), Xt = /* @__PURE__ */ o("$ZodISOTime", (e, t) => {
923
+ t.pattern ??= ut(t), O.init(e, t);
924
+ }), Zt = /* @__PURE__ */ o("$ZodISODuration", (e, t) => {
925
+ t.pattern ??= qe, O.init(e, t);
926
+ }), Qt = /* @__PURE__ */ o("$ZodIPv4", (e, t) => {
927
+ t.pattern ??= $e, O.init(e, t), e._zod.bag.format = "ipv4";
928
+ }), $t = /* @__PURE__ */ o("$ZodIPv6", (e, t) => {
929
+ t.pattern ??= et, O.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
889
930
  try {
890
931
  new URL(`http://[${n.value}]`);
891
932
  } catch {
@@ -898,10 +939,10 @@ var at = (e) => {
898
939
  });
899
940
  }
900
941
  };
901
- }), qt = /* @__PURE__ */ e("$ZodCIDRv4", (e, t) => {
902
- t.pattern ??= Ye, D.init(e, t);
903
- }), Jt = /* @__PURE__ */ e("$ZodCIDRv6", (e, t) => {
904
- t.pattern ??= Xe, D.init(e, t), e._zod.check = (n) => {
942
+ }), en = /* @__PURE__ */ o("$ZodCIDRv4", (e, t) => {
943
+ t.pattern ??= tt, O.init(e, t);
944
+ }), tn = /* @__PURE__ */ o("$ZodCIDRv6", (e, t) => {
945
+ t.pattern ??= nt, O.init(e, t), e._zod.check = (n) => {
905
946
  let r = n.value.split("/");
906
947
  try {
907
948
  if (r.length !== 2) throw Error();
@@ -921,18 +962,18 @@ var at = (e) => {
921
962
  }
922
963
  };
923
964
  });
924
- function Yt(e) {
965
+ function nn(e) {
925
966
  if (e === "") return !0;
926
- if (e.length % 4 != 0) return !1;
967
+ if (/\s/.test(e) || e.length % 4 != 0) return !1;
927
968
  try {
928
969
  return atob(e), !0;
929
970
  } catch {
930
971
  return !1;
931
972
  }
932
973
  }
933
- var Xt = /* @__PURE__ */ e("$ZodBase64", (e, t) => {
934
- t.pattern ??= Ze, D.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
935
- Yt(n.value) || n.issues.push({
974
+ var rn = /* @__PURE__ */ o("$ZodBase64", (e, t) => {
975
+ t.pattern ??= rt, O.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
976
+ nn(n.value) || n.issues.push({
936
977
  code: "invalid_format",
937
978
  format: "base64",
938
979
  input: n.value,
@@ -941,14 +982,14 @@ var Xt = /* @__PURE__ */ e("$ZodBase64", (e, t) => {
941
982
  });
942
983
  };
943
984
  });
944
- function Zt(e) {
945
- if (!Qe.test(e)) return !1;
985
+ function an(e) {
986
+ if (!it.test(e)) return !1;
946
987
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
947
- return Yt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
988
+ return nn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
948
989
  }
949
- var Qt = /* @__PURE__ */ e("$ZodBase64URL", (e, t) => {
950
- t.pattern ??= Qe, D.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
951
- Zt(n.value) || n.issues.push({
990
+ var on = /* @__PURE__ */ o("$ZodBase64URL", (e, t) => {
991
+ t.pattern ??= it, O.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
992
+ an(n.value) || n.issues.push({
952
993
  code: "invalid_format",
953
994
  format: "base64url",
954
995
  input: n.value,
@@ -956,10 +997,10 @@ var Qt = /* @__PURE__ */ e("$ZodBase64URL", (e, t) => {
956
997
  continue: !t.abort
957
998
  });
958
999
  };
959
- }), $t = /* @__PURE__ */ e("$ZodE164", (e, t) => {
960
- t.pattern ??= $e, D.init(e, t);
1000
+ }), sn = /* @__PURE__ */ o("$ZodE164", (e, t) => {
1001
+ t.pattern ??= ot, O.init(e, t);
961
1002
  });
962
- function en(e, t = null) {
1003
+ function cn(e, t = null) {
963
1004
  try {
964
1005
  let n = e.split(".");
965
1006
  if (n.length !== 3) return !1;
@@ -971,9 +1012,9 @@ function en(e, t = null) {
971
1012
  return !1;
972
1013
  }
973
1014
  }
974
- var tn = /* @__PURE__ */ e("$ZodJWT", (e, t) => {
975
- D.init(e, t), e._zod.check = (n) => {
976
- en(n.value, t.alg) || n.issues.push({
1015
+ var ln = /* @__PURE__ */ o("$ZodJWT", (e, t) => {
1016
+ O.init(e, t), e._zod.check = (n) => {
1017
+ cn(n.value, t.alg) || n.issues.push({
977
1018
  code: "invalid_format",
978
1019
  format: "jwt",
979
1020
  input: n.value,
@@ -981,8 +1022,8 @@ var tn = /* @__PURE__ */ e("$ZodJWT", (e, t) => {
981
1022
  continue: !t.abort
982
1023
  });
983
1024
  };
984
- }), nn = /* @__PURE__ */ e("$ZodNumber", (e, t) => {
985
- E.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? st, e._zod.parse = (n, r) => {
1025
+ }), un = /* @__PURE__ */ o("$ZodNumber", (e, t) => {
1026
+ D.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? mt, e._zod.parse = (n, r) => {
986
1027
  if (t.coerce) try {
987
1028
  n.value = Number(n.value);
988
1029
  } catch {}
@@ -997,10 +1038,10 @@ var tn = /* @__PURE__ */ e("$ZodJWT", (e, t) => {
997
1038
  ...a ? { received: a } : {}
998
1039
  }), n;
999
1040
  };
1000
- }), rn = /* @__PURE__ */ e("$ZodNumberFormat", (e, t) => {
1001
- ht.init(e, t), nn.init(e, t);
1002
- }), an = /* @__PURE__ */ e("$ZodBoolean", (e, t) => {
1003
- E.init(e, t), e._zod.pattern = ct, e._zod.parse = (n, r) => {
1041
+ }), dn = /* @__PURE__ */ o("$ZodNumberFormat", (e, t) => {
1042
+ St.init(e, t), un.init(e, t);
1043
+ }), fn = /* @__PURE__ */ o("$ZodBoolean", (e, t) => {
1044
+ D.init(e, t), e._zod.pattern = ht, e._zod.parse = (n, r) => {
1004
1045
  if (t.coerce) try {
1005
1046
  n.value = !!n.value;
1006
1047
  } catch {}
@@ -1012,21 +1053,21 @@ var tn = /* @__PURE__ */ e("$ZodJWT", (e, t) => {
1012
1053
  inst: e
1013
1054
  }), n;
1014
1055
  };
1015
- }), on = /* @__PURE__ */ e("$ZodUnknown", (e, t) => {
1016
- E.init(e, t), e._zod.parse = (e) => e;
1017
- }), sn = /* @__PURE__ */ e("$ZodNever", (e, t) => {
1018
- E.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1056
+ }), pn = /* @__PURE__ */ o("$ZodUnknown", (e, t) => {
1057
+ D.init(e, t), e._zod.parse = (e) => e;
1058
+ }), mn = /* @__PURE__ */ o("$ZodNever", (e, t) => {
1059
+ D.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1019
1060
  expected: "never",
1020
1061
  code: "invalid_type",
1021
1062
  input: t.value,
1022
1063
  inst: e
1023
1064
  }), t);
1024
1065
  });
1025
- function cn(e, t, n) {
1026
- e.issues.length && t.issues.push(...y(n, e.issues)), t.value[n] = e.value;
1066
+ function hn(e, t, n) {
1067
+ e.issues.length && t.issues.push(...C(n, e.issues)), t.value[n] = e.value;
1027
1068
  }
1028
- var ln = /* @__PURE__ */ e("$ZodArray", (e, t) => {
1029
- E.init(e, t), e._zod.parse = (n, r) => {
1069
+ var gn = /* @__PURE__ */ o("$ZodArray", (e, t) => {
1070
+ D.init(e, t), e._zod.parse = (n, r) => {
1030
1071
  let i = n.value;
1031
1072
  if (!Array.isArray(i)) return n.issues.push({
1032
1073
  expected: "array",
@@ -1041,22 +1082,32 @@ var ln = /* @__PURE__ */ e("$ZodArray", (e, t) => {
1041
1082
  value: o,
1042
1083
  issues: []
1043
1084
  }, r);
1044
- s instanceof Promise ? a.push(s.then((t) => cn(t, n, e))) : cn(s, n, e);
1085
+ s instanceof Promise ? a.push(s.then((t) => hn(t, n, e))) : hn(s, n, e);
1045
1086
  }
1046
1087
  return a.length ? Promise.all(a).then(() => n) : n;
1047
1088
  };
1048
1089
  });
1049
- function O(e, t, n, r, i) {
1090
+ function k(e, t, n, r, i, a) {
1091
+ let o = n in r;
1050
1092
  if (e.issues.length) {
1051
- if (i && !(n in r)) return;
1052
- t.issues.push(...y(n, e.issues));
1093
+ if (i && a && !o) return;
1094
+ t.issues.push(...C(n, e.issues));
1053
1095
  }
1054
- e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1096
+ if (!o && !i) {
1097
+ e.issues.length || t.issues.push({
1098
+ code: "invalid_type",
1099
+ expected: "nonoptional",
1100
+ input: void 0,
1101
+ path: [n]
1102
+ });
1103
+ return;
1104
+ }
1105
+ e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1055
1106
  }
1056
- function un(e) {
1107
+ function _n(e) {
1057
1108
  let t = Object.keys(e.shape);
1058
1109
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1059
- let n = ce(e.shape);
1110
+ let n = ue(e.shape);
1060
1111
  return {
1061
1112
  ...e,
1062
1113
  keys: t,
@@ -1065,10 +1116,10 @@ function un(e) {
1065
1116
  optionalKeys: new Set(n)
1066
1117
  };
1067
1118
  }
1068
- function dn(e, t, n, r, i, a) {
1069
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
1119
+ function vn(e, t, n, r, i, a) {
1120
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
1070
1121
  for (let i in t) {
1071
- if (s.has(i)) continue;
1122
+ if (i === "__proto__" || s.has(i)) continue;
1072
1123
  if (l === "never") {
1073
1124
  o.push(i);
1074
1125
  continue;
@@ -1077,7 +1128,7 @@ function dn(e, t, n, r, i, a) {
1077
1128
  value: t[i],
1078
1129
  issues: []
1079
1130
  }, r);
1080
- a instanceof Promise ? e.push(a.then((e) => O(e, n, i, t, u))) : O(a, n, i, t, u);
1131
+ a instanceof Promise ? e.push(a.then((e) => k(e, n, i, t, u, d))) : k(a, n, i, t, u, d);
1081
1132
  }
1082
1133
  return o.length && n.issues.push({
1083
1134
  code: "unrecognized_keys",
@@ -1086,16 +1137,16 @@ function dn(e, t, n, r, i, a) {
1086
1137
  inst: a
1087
1138
  }), e.length ? Promise.all(e).then(() => n) : n;
1088
1139
  }
1089
- var fn = /* @__PURE__ */ e("$ZodObject", (e, t) => {
1090
- if (E.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1140
+ var yn = /* @__PURE__ */ o("$ZodObject", (e, t) => {
1141
+ if (D.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1091
1142
  let e = t.shape;
1092
1143
  Object.defineProperty(t, "shape", { get: () => {
1093
1144
  let n = { ...e };
1094
1145
  return Object.defineProperty(t, "shape", { value: n }), n;
1095
1146
  } });
1096
1147
  }
1097
- let n = s(() => un(t));
1098
- d(e._zod, "propValues", () => {
1148
+ let n = p(() => _n(t));
1149
+ m(e._zod, "propValues", () => {
1099
1150
  let e = t.shape, n = {};
1100
1151
  for (let t in e) {
1101
1152
  let r = e[t]._zod;
@@ -1106,7 +1157,7 @@ var fn = /* @__PURE__ */ e("$ZodObject", (e, t) => {
1106
1157
  }
1107
1158
  return n;
1108
1159
  });
1109
- let r = ie, i = t.catchall, a;
1160
+ let r = _, i = t.catchall, a;
1110
1161
  e._zod.parse = (t, o) => {
1111
1162
  a ??= n.value;
1112
1163
  let s = t.value;
@@ -1119,32 +1170,32 @@ var fn = /* @__PURE__ */ e("$ZodObject", (e, t) => {
1119
1170
  t.value = {};
1120
1171
  let c = [], l = a.shape;
1121
1172
  for (let e of a.keys) {
1122
- let n = l[e], r = n._zod.optout === "optional", i = n._zod.run({
1173
+ let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
1123
1174
  value: s[e],
1124
1175
  issues: []
1125
1176
  }, o);
1126
- i instanceof Promise ? c.push(i.then((n) => O(n, t, e, s, r))) : O(i, t, e, s, r);
1177
+ a instanceof Promise ? c.push(a.then((n) => k(n, t, e, s, r, i))) : k(a, t, e, s, r, i);
1127
1178
  }
1128
- return i ? dn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1179
+ return i ? vn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1129
1180
  };
1130
- }), pn = /* @__PURE__ */ e("$ZodObjectJIT", (e, t) => {
1131
- fn.init(e, t);
1132
- let n = e._zod.parse, i = s(() => un(t)), a = (e) => {
1133
- let t = new Dt([
1181
+ }), bn = /* @__PURE__ */ o("$ZodObjectJIT", (e, t) => {
1182
+ yn.init(e, t);
1183
+ let n = e._zod.parse, r = p(() => _n(t)), i = (e) => {
1184
+ let t = new Pt([
1134
1185
  "shape",
1135
1186
  "payload",
1136
1187
  "ctx"
1137
- ]), n = i.value, r = (e) => {
1138
- let t = te(e);
1188
+ ]), n = r.value, i = (e) => {
1189
+ let t = ie(e);
1139
1190
  return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
1140
1191
  };
1141
1192
  t.write("const input = payload.value;");
1142
1193
  let a = Object.create(null), o = 0;
1143
1194
  for (let e of n.keys) a[e] = `key_${o++}`;
1144
1195
  t.write("const newResult = {};");
1145
- for (let i of n.keys) {
1146
- let n = a[i], o = te(i), s = e[i]?._zod?.optout === "optional";
1147
- t.write(`const ${n} = ${r(i)};`), s ? t.write(`
1196
+ for (let r of n.keys) {
1197
+ let n = a[r], o = ie(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
1198
+ t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
1148
1199
  if (${n}.issues.length) {
1149
1200
  if (${o} in input) {
1150
1201
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -1162,7 +1213,7 @@ var fn = /* @__PURE__ */ e("$ZodObject", (e, t) => {
1162
1213
  newResult[${o}] = ${n}.value;
1163
1214
  }
1164
1215
 
1165
- `) : t.write(`
1216
+ `) : c ? t.write(`
1166
1217
  if (${n}.issues.length) {
1167
1218
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1168
1219
  ...iss,
@@ -1178,61 +1229,86 @@ var fn = /* @__PURE__ */ e("$ZodObject", (e, t) => {
1178
1229
  newResult[${o}] = ${n}.value;
1179
1230
  }
1180
1231
 
1232
+ `) : t.write(`
1233
+ const ${n}_present = ${o} in input;
1234
+ if (${n}.issues.length) {
1235
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1236
+ ...iss,
1237
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1238
+ })));
1239
+ }
1240
+ if (!${n}_present && !${n}.issues.length) {
1241
+ payload.issues.push({
1242
+ code: "invalid_type",
1243
+ expected: "nonoptional",
1244
+ input: undefined,
1245
+ path: [${o}]
1246
+ });
1247
+ }
1248
+
1249
+ if (${n}_present) {
1250
+ if (${n}.value === undefined) {
1251
+ newResult[${o}] = undefined;
1252
+ } else {
1253
+ newResult[${o}] = ${n}.value;
1254
+ }
1255
+ }
1256
+
1181
1257
  `);
1182
1258
  }
1183
1259
  t.write("payload.value = newResult;"), t.write("return payload;");
1184
1260
  let s = t.compile();
1185
1261
  return (t, n) => s(e, t, n);
1186
- }, o, c = ie, l = !r.jitless, u = l && ae.value, ee = t.catchall, d;
1187
- e._zod.parse = (r, s) => {
1188
- d ??= i.value;
1189
- let f = r.value;
1190
- return c(f) ? l && u && s?.async === !1 && s.jitless !== !0 ? (o ||= a(t.shape), r = o(r, s), ee ? dn([], f, r, s, d, e) : r) : n(r, s) : (r.issues.push({
1262
+ }, a, o = _, s = !l.jitless, c = s && se.value, u = t.catchall, d;
1263
+ e._zod.parse = (l, f) => {
1264
+ d ??= r.value;
1265
+ let p = l.value;
1266
+ return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), l = a(l, f), u ? vn([], p, l, f, d, e) : l) : n(l, f) : (l.issues.push({
1191
1267
  expected: "object",
1192
1268
  code: "invalid_type",
1193
- input: f,
1269
+ input: p,
1194
1270
  inst: e
1195
- }), r);
1271
+ }), l);
1196
1272
  };
1197
1273
  });
1198
- function mn(e, t, n, r) {
1274
+ function xn(e, t, n, r) {
1199
1275
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1200
- let a = e.filter((e) => !v(e));
1201
- return a.length === 1 ? (t.value = a[0].value, a[0]) : (t.issues.push({
1276
+ let i = e.filter((e) => !S(e));
1277
+ return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1202
1278
  code: "invalid_union",
1203
1279
  input: t.value,
1204
1280
  inst: n,
1205
- errors: e.map((e) => e.issues.map((e) => x(e, r, i())))
1281
+ errors: e.map((e) => e.issues.map((e) => w(e, r, u())))
1206
1282
  }), t);
1207
1283
  }
1208
- var hn = /* @__PURE__ */ e("$ZodUnion", (e, t) => {
1209
- E.init(e, t), d(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), d(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), d(e._zod, "values", () => {
1284
+ var Sn = /* @__PURE__ */ o("$ZodUnion", (e, t) => {
1285
+ D.init(e, t), m(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), m(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), m(e._zod, "values", () => {
1210
1286
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1211
- }), d(e._zod, "pattern", () => {
1287
+ }), m(e._zod, "pattern", () => {
1212
1288
  if (t.options.every((e) => e._zod.pattern)) {
1213
1289
  let e = t.options.map((e) => e._zod.pattern);
1214
- return RegExp(`^(${e.map((e) => l(e.source)).join("|")})$`);
1290
+ return RegExp(`^(${e.map((e) => te(e.source)).join("|")})$`);
1215
1291
  }
1216
1292
  });
1217
- let n = t.options.length === 1, r = t.options[0]._zod.run;
1218
- e._zod.parse = (i, a) => {
1219
- if (n) return r(i, a);
1220
- let o = !1, s = [];
1293
+ let n = t.options.length === 1 ? t.options[0]._zod.run : null;
1294
+ e._zod.parse = (r, i) => {
1295
+ if (n) return n(r, i);
1296
+ let a = !1, o = [];
1221
1297
  for (let e of t.options) {
1222
1298
  let t = e._zod.run({
1223
- value: i.value,
1299
+ value: r.value,
1224
1300
  issues: []
1225
- }, a);
1226
- if (t instanceof Promise) s.push(t), o = !0;
1301
+ }, i);
1302
+ if (t instanceof Promise) o.push(t), a = !0;
1227
1303
  else {
1228
1304
  if (t.issues.length === 0) return t;
1229
- s.push(t);
1305
+ o.push(t);
1230
1306
  }
1231
1307
  }
1232
- return o ? Promise.all(s).then((t) => mn(t, i, e, a)) : mn(s, i, e, a);
1308
+ return a ? Promise.all(o).then((t) => xn(t, r, e, i)) : xn(o, r, e, i);
1233
1309
  };
1234
- }), gn = /* @__PURE__ */ e("$ZodIntersection", (e, t) => {
1235
- E.init(e, t), e._zod.parse = (e, n) => {
1310
+ }), Cn = /* @__PURE__ */ o("$ZodIntersection", (e, t) => {
1311
+ D.init(e, t), e._zod.parse = (e, n) => {
1236
1312
  let r = e.value, i = t.left._zod.run({
1237
1313
  value: r,
1238
1314
  issues: []
@@ -1240,21 +1316,21 @@ var hn = /* @__PURE__ */ e("$ZodUnion", (e, t) => {
1240
1316
  value: r,
1241
1317
  issues: []
1242
1318
  }, n);
1243
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => vn(e, t, n)) : vn(e, i, a);
1319
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Tn(e, t, n)) : Tn(e, i, a);
1244
1320
  };
1245
1321
  });
1246
- function _n(e, t) {
1322
+ function wn(e, t) {
1247
1323
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1248
1324
  valid: !0,
1249
1325
  data: e
1250
1326
  };
1251
- if (m(e) && m(t)) {
1327
+ if (v(e) && v(t)) {
1252
1328
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1253
1329
  ...e,
1254
1330
  ...t
1255
1331
  };
1256
1332
  for (let n of r) {
1257
- let r = _n(e[n], t[n]);
1333
+ let r = wn(e[n], t[n]);
1258
1334
  if (!r.valid) return {
1259
1335
  valid: !1,
1260
1336
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1273,7 +1349,7 @@ function _n(e, t) {
1273
1349
  };
1274
1350
  let n = [];
1275
1351
  for (let r = 0; r < e.length; r++) {
1276
- let i = e[r], a = t[r], o = _n(i, a);
1352
+ let i = e[r], a = t[r], o = wn(i, a);
1277
1353
  if (!o.valid) return {
1278
1354
  valid: !1,
1279
1355
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1290,7 +1366,7 @@ function _n(e, t) {
1290
1366
  mergeErrorPath: []
1291
1367
  };
1292
1368
  }
1293
- function vn(e, t, n) {
1369
+ function Tn(e, t, n) {
1294
1370
  let r = /* @__PURE__ */ new Map(), i;
1295
1371
  for (let n of t.issues) if (n.code === "unrecognized_keys") {
1296
1372
  i ??= n;
@@ -1302,85 +1378,101 @@ function vn(e, t, n) {
1302
1378
  if (a.length && i && e.issues.push({
1303
1379
  ...i,
1304
1380
  keys: a
1305
- }), v(e)) return e;
1306
- let o = _n(t.value, n.value);
1381
+ }), S(e)) return e;
1382
+ let o = wn(t.value, n.value);
1307
1383
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1308
1384
  return e.value = o.data, e;
1309
1385
  }
1310
- var yn = /* @__PURE__ */ e("$ZodRecord", (e, t) => {
1311
- E.init(e, t), e._zod.parse = (n, r) => {
1312
- let a = n.value;
1313
- if (!m(a)) return n.issues.push({
1386
+ var En = /* @__PURE__ */ o("$ZodRecord", (e, t) => {
1387
+ D.init(e, t), e._zod.parse = (n, r) => {
1388
+ let i = n.value;
1389
+ if (!v(i)) return n.issues.push({
1314
1390
  expected: "record",
1315
1391
  code: "invalid_type",
1316
- input: a,
1392
+ input: i,
1317
1393
  inst: e
1318
1394
  }), n;
1319
- let o = [], s = t.keyType._zod.values;
1320
- if (s) {
1395
+ let a = [], o = t.keyType._zod.values;
1396
+ if (o) {
1321
1397
  n.value = {};
1322
- let i = /* @__PURE__ */ new Set();
1323
- for (let e of s) if (typeof e == "string" || typeof e == "number" || typeof e == "symbol") {
1324
- i.add(typeof e == "number" ? e.toString() : e);
1325
- let s = t.valueType._zod.run({
1326
- value: a[e],
1398
+ let s = /* @__PURE__ */ new Set();
1399
+ for (let c of o) if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
1400
+ s.add(typeof c == "number" ? c.toString() : c);
1401
+ let o = t.keyType._zod.run({
1402
+ value: c,
1403
+ issues: []
1404
+ }, r);
1405
+ if (o instanceof Promise) throw Error("Async schemas not supported in object keys currently");
1406
+ if (o.issues.length) {
1407
+ n.issues.push({
1408
+ code: "invalid_key",
1409
+ origin: "record",
1410
+ issues: o.issues.map((e) => w(e, r, u())),
1411
+ input: c,
1412
+ path: [c],
1413
+ inst: e
1414
+ });
1415
+ continue;
1416
+ }
1417
+ let l = o.value, d = t.valueType._zod.run({
1418
+ value: i[c],
1327
1419
  issues: []
1328
1420
  }, r);
1329
- s instanceof Promise ? o.push(s.then((t) => {
1330
- t.issues.length && n.issues.push(...y(e, t.issues)), n.value[e] = t.value;
1331
- })) : (s.issues.length && n.issues.push(...y(e, s.issues)), n.value[e] = s.value);
1421
+ d instanceof Promise ? a.push(d.then((e) => {
1422
+ e.issues.length && n.issues.push(...C(c, e.issues)), n.value[l] = e.value;
1423
+ })) : (d.issues.length && n.issues.push(...C(c, d.issues)), n.value[l] = d.value);
1332
1424
  }
1333
1425
  let c;
1334
- for (let e in a) i.has(e) || (c ??= [], c.push(e));
1426
+ for (let e in i) s.has(e) || (c ??= [], c.push(e));
1335
1427
  c && c.length > 0 && n.issues.push({
1336
1428
  code: "unrecognized_keys",
1337
- input: a,
1429
+ input: i,
1338
1430
  inst: e,
1339
1431
  keys: c
1340
1432
  });
1341
1433
  } else {
1342
1434
  n.value = {};
1343
- for (let s of Reflect.ownKeys(a)) {
1344
- if (s === "__proto__") continue;
1345
- let c = t.keyType._zod.run({
1346
- value: s,
1435
+ for (let o of Reflect.ownKeys(i)) {
1436
+ if (o === "__proto__" || !Object.prototype.propertyIsEnumerable.call(i, o)) continue;
1437
+ let s = t.keyType._zod.run({
1438
+ value: o,
1347
1439
  issues: []
1348
1440
  }, r);
1349
- if (c instanceof Promise) throw Error("Async schemas not supported in object keys currently");
1350
- if (typeof s == "string" && st.test(s) && c.issues.length) {
1441
+ if (s instanceof Promise) throw Error("Async schemas not supported in object keys currently");
1442
+ if (typeof o == "string" && mt.test(o) && s.issues.length) {
1351
1443
  let e = t.keyType._zod.run({
1352
- value: Number(s),
1444
+ value: Number(o),
1353
1445
  issues: []
1354
1446
  }, r);
1355
1447
  if (e instanceof Promise) throw Error("Async schemas not supported in object keys currently");
1356
- e.issues.length === 0 && (c = e);
1448
+ e.issues.length === 0 && (s = e);
1357
1449
  }
1358
- if (c.issues.length) {
1359
- t.mode === "loose" ? n.value[s] = a[s] : n.issues.push({
1450
+ if (s.issues.length) {
1451
+ t.mode === "loose" ? n.value[o] = i[o] : n.issues.push({
1360
1452
  code: "invalid_key",
1361
1453
  origin: "record",
1362
- issues: c.issues.map((e) => x(e, r, i())),
1363
- input: s,
1364
- path: [s],
1454
+ issues: s.issues.map((e) => w(e, r, u())),
1455
+ input: o,
1456
+ path: [o],
1365
1457
  inst: e
1366
1458
  });
1367
1459
  continue;
1368
1460
  }
1369
- let l = t.valueType._zod.run({
1370
- value: a[s],
1461
+ let c = t.valueType._zod.run({
1462
+ value: i[o],
1371
1463
  issues: []
1372
1464
  }, r);
1373
- l instanceof Promise ? o.push(l.then((e) => {
1374
- e.issues.length && n.issues.push(...y(s, e.issues)), n.value[c.value] = e.value;
1375
- })) : (l.issues.length && n.issues.push(...y(s, l.issues)), n.value[c.value] = l.value);
1465
+ c instanceof Promise ? a.push(c.then((e) => {
1466
+ e.issues.length && n.issues.push(...C(o, e.issues)), n.value[s.value] = e.value;
1467
+ })) : (c.issues.length && n.issues.push(...C(o, c.issues)), n.value[s.value] = c.value);
1376
1468
  }
1377
1469
  }
1378
- return o.length ? Promise.all(o).then(() => n) : n;
1470
+ return a.length ? Promise.all(a).then(() => n) : n;
1379
1471
  };
1380
- }), bn = /* @__PURE__ */ e("$ZodEnum", (e, t) => {
1381
- E.init(e, t);
1382
- let n = a(t.entries), r = new Set(n);
1383
- e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => se.has(typeof e)).map((e) => typeof e == "string" ? h(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1472
+ }), Dn = /* @__PURE__ */ o("$ZodEnum", (e, t) => {
1473
+ D.init(e, t);
1474
+ let n = d(t.entries), r = new Set(n);
1475
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => le.has(typeof e)).map((e) => typeof e == "string" ? y(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1384
1476
  let a = t.value;
1385
1477
  return r.has(a) || t.issues.push({
1386
1478
  code: "invalid_value",
@@ -1389,10 +1481,10 @@ var yn = /* @__PURE__ */ e("$ZodRecord", (e, t) => {
1389
1481
  inst: e
1390
1482
  }), t;
1391
1483
  };
1392
- }), xn = /* @__PURE__ */ e("$ZodLiteral", (e, t) => {
1393
- if (E.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
1484
+ }), On = /* @__PURE__ */ o("$ZodLiteral", (e, t) => {
1485
+ if (D.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
1394
1486
  let n = new Set(t.values);
1395
- e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? h(e) : e ? h(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
1487
+ e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? y(e) : e ? y(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
1396
1488
  let a = r.value;
1397
1489
  return n.has(a) || r.issues.push({
1398
1490
  code: "invalid_value",
@@ -1401,62 +1493,62 @@ var yn = /* @__PURE__ */ e("$ZodRecord", (e, t) => {
1401
1493
  inst: e
1402
1494
  }), r;
1403
1495
  };
1404
- }), Sn = /* @__PURE__ */ e("$ZodTransform", (e, r) => {
1405
- E.init(e, r), e._zod.parse = (i, a) => {
1406
- if (a.direction === "backward") throw new n(e.constructor.name);
1407
- let o = r.transform(i.value, i);
1408
- if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i));
1409
- if (o instanceof Promise) throw new t();
1410
- return i.value = o, i;
1496
+ }), kn = /* @__PURE__ */ o("$ZodTransform", (e, t) => {
1497
+ D.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1498
+ if (r.direction === "backward") throw new c(e.constructor.name);
1499
+ let i = t.transform(n.value, n);
1500
+ if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
1501
+ if (i instanceof Promise) throw new s();
1502
+ return n.value = i, n.fallback = !0, n;
1411
1503
  };
1412
1504
  });
1413
- function Cn(e, t) {
1414
- return e.issues.length && t === void 0 ? {
1505
+ function An(e, t) {
1506
+ return t === void 0 && (e.issues.length || e.fallback) ? {
1415
1507
  issues: [],
1416
1508
  value: void 0
1417
1509
  } : e;
1418
1510
  }
1419
- var wn = /* @__PURE__ */ e("$ZodOptional", (e, t) => {
1420
- E.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", d(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), d(e._zod, "pattern", () => {
1511
+ var jn = /* @__PURE__ */ o("$ZodOptional", (e, t) => {
1512
+ D.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
1421
1513
  let e = t.innerType._zod.pattern;
1422
- return e ? RegExp(`^(${l(e.source)})?$`) : void 0;
1514
+ return e ? RegExp(`^(${te(e.source)})?$`) : void 0;
1423
1515
  }), e._zod.parse = (e, n) => {
1424
1516
  if (t.innerType._zod.optin === "optional") {
1425
- let r = t.innerType._zod.run(e, n);
1426
- return r instanceof Promise ? r.then((t) => Cn(t, e.value)) : Cn(r, e.value);
1517
+ let r = e.value, i = t.innerType._zod.run(e, n);
1518
+ return i instanceof Promise ? i.then((e) => An(e, r)) : An(i, r);
1427
1519
  }
1428
1520
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1429
1521
  };
1430
- }), Tn = /* @__PURE__ */ e("$ZodExactOptional", (e, t) => {
1431
- wn.init(e, t), d(e._zod, "values", () => t.innerType._zod.values), d(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1432
- }), En = /* @__PURE__ */ e("$ZodNullable", (e, t) => {
1433
- E.init(e, t), d(e._zod, "optin", () => t.innerType._zod.optin), d(e._zod, "optout", () => t.innerType._zod.optout), d(e._zod, "pattern", () => {
1522
+ }), Mn = /* @__PURE__ */ o("$ZodExactOptional", (e, t) => {
1523
+ jn.init(e, t), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1524
+ }), Nn = /* @__PURE__ */ o("$ZodNullable", (e, t) => {
1525
+ D.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
1434
1526
  let e = t.innerType._zod.pattern;
1435
- return e ? RegExp(`^(${l(e.source)}|null)$`) : void 0;
1436
- }), d(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1437
- }), Dn = /* @__PURE__ */ e("$ZodDefault", (e, t) => {
1438
- E.init(e, t), e._zod.optin = "optional", d(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1527
+ return e ? RegExp(`^(${te(e.source)}|null)$`) : void 0;
1528
+ }), m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1529
+ }), Pn = /* @__PURE__ */ o("$ZodDefault", (e, t) => {
1530
+ D.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1439
1531
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1440
1532
  if (e.value === void 0) return e.value = t.defaultValue, e;
1441
1533
  let r = t.innerType._zod.run(e, n);
1442
- return r instanceof Promise ? r.then((e) => On(e, t)) : On(r, t);
1534
+ return r instanceof Promise ? r.then((e) => Fn(e, t)) : Fn(r, t);
1443
1535
  };
1444
1536
  });
1445
- function On(e, t) {
1537
+ function Fn(e, t) {
1446
1538
  return e.value === void 0 && (e.value = t.defaultValue), e;
1447
1539
  }
1448
- var kn = /* @__PURE__ */ e("$ZodPrefault", (e, t) => {
1449
- E.init(e, t), e._zod.optin = "optional", d(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1450
- }), An = /* @__PURE__ */ e("$ZodNonOptional", (e, t) => {
1451
- E.init(e, t), d(e._zod, "values", () => {
1540
+ var In = /* @__PURE__ */ o("$ZodPrefault", (e, t) => {
1541
+ D.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1542
+ }), Ln = /* @__PURE__ */ o("$ZodNonOptional", (e, t) => {
1543
+ D.init(e, t), m(e._zod, "values", () => {
1452
1544
  let e = t.innerType._zod.values;
1453
1545
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1454
1546
  }), e._zod.parse = (n, r) => {
1455
1547
  let i = t.innerType._zod.run(n, r);
1456
- return i instanceof Promise ? i.then((t) => jn(t, e)) : jn(i, e);
1548
+ return i instanceof Promise ? i.then((t) => Rn(t, e)) : Rn(i, e);
1457
1549
  };
1458
1550
  });
1459
- function jn(e, t) {
1551
+ function Rn(e, t) {
1460
1552
  return !e.issues.length && e.value === void 0 && e.issues.push({
1461
1553
  code: "invalid_type",
1462
1554
  expected: "nonoptional",
@@ -1464,56 +1556,60 @@ function jn(e, t) {
1464
1556
  inst: t
1465
1557
  }), e;
1466
1558
  }
1467
- var Mn = /* @__PURE__ */ e("$ZodCatch", (e, t) => {
1468
- E.init(e, t), d(e._zod, "optin", () => t.innerType._zod.optin), d(e._zod, "optout", () => t.innerType._zod.optout), d(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1559
+ var zn = /* @__PURE__ */ o("$ZodCatch", (e, t) => {
1560
+ D.init(e, t), e._zod.optin = "optional", m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1469
1561
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1470
1562
  let r = t.innerType._zod.run(e, n);
1471
1563
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1472
1564
  ...e,
1473
- error: { issues: r.issues.map((e) => x(e, n, i())) },
1565
+ error: { issues: r.issues.map((e) => w(e, n, u())) },
1474
1566
  input: e.value
1475
- }), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1567
+ }), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1476
1568
  ...e,
1477
- error: { issues: r.issues.map((e) => x(e, n, i())) },
1569
+ error: { issues: r.issues.map((e) => w(e, n, u())) },
1478
1570
  input: e.value
1479
- }), e.issues = []), e);
1571
+ }), e.issues = [], e.fallback = !0), e);
1480
1572
  };
1481
- }), Nn = /* @__PURE__ */ e("$ZodPipe", (e, t) => {
1482
- E.init(e, t), d(e._zod, "values", () => t.in._zod.values), d(e._zod, "optin", () => t.in._zod.optin), d(e._zod, "optout", () => t.out._zod.optout), d(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1573
+ }), Bn = /* @__PURE__ */ o("$ZodPipe", (e, t) => {
1574
+ D.init(e, t), m(e._zod, "values", () => t.in._zod.values), m(e._zod, "optin", () => t.in._zod.optin), m(e._zod, "optout", () => t.out._zod.optout), m(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1483
1575
  if (n.direction === "backward") {
1484
1576
  let r = t.out._zod.run(e, n);
1485
- return r instanceof Promise ? r.then((e) => k(e, t.in, n)) : k(r, t.in, n);
1577
+ return r instanceof Promise ? r.then((e) => A(e, t.in, n)) : A(r, t.in, n);
1486
1578
  }
1487
1579
  let r = t.in._zod.run(e, n);
1488
- return r instanceof Promise ? r.then((e) => k(e, t.out, n)) : k(r, t.out, n);
1580
+ return r instanceof Promise ? r.then((e) => A(e, t.out, n)) : A(r, t.out, n);
1489
1581
  };
1490
1582
  });
1491
- function k(e, t, n) {
1583
+ function A(e, t, n) {
1492
1584
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1493
1585
  value: e.value,
1494
- issues: e.issues
1586
+ issues: e.issues,
1587
+ fallback: e.fallback
1495
1588
  }, n);
1496
1589
  }
1497
- var Pn = /* @__PURE__ */ e("$ZodReadonly", (e, t) => {
1498
- E.init(e, t), d(e._zod, "propValues", () => t.innerType._zod.propValues), d(e._zod, "values", () => t.innerType._zod.values), d(e._zod, "optin", () => t.innerType?._zod?.optin), d(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1590
+ var Vn = /* @__PURE__ */ o("$ZodReadonly", (e, t) => {
1591
+ D.init(e, t), m(e._zod, "propValues", () => t.innerType._zod.propValues), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "optin", () => t.innerType?._zod?.optin), m(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1499
1592
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1500
1593
  let r = t.innerType._zod.run(e, n);
1501
- return r instanceof Promise ? r.then(Fn) : Fn(r);
1594
+ return r instanceof Promise ? r.then(Hn) : Hn(r);
1502
1595
  };
1503
1596
  });
1504
- function Fn(e) {
1597
+ function Hn(e) {
1505
1598
  return e.value = Object.freeze(e.value), e;
1506
1599
  }
1507
- var In = /* @__PURE__ */ e("$ZodLazy", (e, t) => {
1508
- E.init(e, t), d(e._zod, "innerType", () => t.getter()), d(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), d(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), d(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), d(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
1509
- }), Ln = /* @__PURE__ */ e("$ZodCustom", (e, t) => {
1510
- T.init(e, t), E.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1600
+ var Un = /* @__PURE__ */ o("$ZodLazy", (e, t) => {
1601
+ D.init(e, t), m(e._zod, "innerType", () => {
1602
+ let e = t;
1603
+ return e._cachedInner ||= t.getter(), e._cachedInner;
1604
+ }), m(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), m(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), m(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), m(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
1605
+ }), Wn = /* @__PURE__ */ o("$ZodCustom", (e, t) => {
1606
+ E.init(e, t), D.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1511
1607
  let r = n.value, i = t.fn(r);
1512
- if (i instanceof Promise) return i.then((t) => Rn(t, n, r, e));
1513
- Rn(i, n, r, e);
1608
+ if (i instanceof Promise) return i.then((t) => Gn(t, n, r, e));
1609
+ Gn(i, n, r, e);
1514
1610
  };
1515
1611
  });
1516
- function Rn(e, t, n, r) {
1612
+ function Gn(e, t, n, r) {
1517
1613
  if (!e) {
1518
1614
  let e = {
1519
1615
  code: "custom",
@@ -1522,12 +1618,12 @@ function Rn(e, t, n, r) {
1522
1618
  path: [...r._zod.def.path ?? []],
1523
1619
  continue: !r._zod.def.abort
1524
1620
  };
1525
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(S(e));
1621
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(T(e));
1526
1622
  }
1527
1623
  }
1528
1624
  //#endregion
1529
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1530
- var zn, Bn = class {
1625
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1626
+ var Kn, qn = class {
1531
1627
  constructor() {
1532
1628
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1533
1629
  }
@@ -1559,245 +1655,245 @@ var zn, Bn = class {
1559
1655
  return this._map.has(e);
1560
1656
  }
1561
1657
  };
1562
- function Vn() {
1563
- return new Bn();
1658
+ function Jn() {
1659
+ return new qn();
1564
1660
  }
1565
- (zn = globalThis).__zod_globalRegistry ?? (zn.__zod_globalRegistry = Vn());
1566
- var A = globalThis.__zod_globalRegistry;
1661
+ (Kn = globalThis).__zod_globalRegistry ?? (Kn.__zod_globalRegistry = Jn());
1662
+ var j = globalThis.__zod_globalRegistry;
1567
1663
  //#endregion
1568
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1664
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1569
1665
  /* @__NO_SIDE_EFFECTS__ */
1570
- function Hn(e, t) {
1666
+ function Yn(e, t) {
1571
1667
  return new e({
1572
1668
  type: "string",
1573
- ..._(t)
1669
+ ...x(t)
1574
1670
  });
1575
1671
  }
1576
1672
  /* @__NO_SIDE_EFFECTS__ */
1577
- function Un(e, t) {
1673
+ function Xn(e, t) {
1578
1674
  return new e({
1579
1675
  type: "string",
1580
1676
  format: "email",
1581
1677
  check: "string_format",
1582
1678
  abort: !1,
1583
- ..._(t)
1679
+ ...x(t)
1584
1680
  });
1585
1681
  }
1586
1682
  /* @__NO_SIDE_EFFECTS__ */
1587
- function Wn(e, t) {
1683
+ function Zn(e, t) {
1588
1684
  return new e({
1589
1685
  type: "string",
1590
1686
  format: "guid",
1591
1687
  check: "string_format",
1592
1688
  abort: !1,
1593
- ..._(t)
1689
+ ...x(t)
1594
1690
  });
1595
1691
  }
1596
1692
  /* @__NO_SIDE_EFFECTS__ */
1597
- function Gn(e, t) {
1693
+ function Qn(e, t) {
1598
1694
  return new e({
1599
1695
  type: "string",
1600
1696
  format: "uuid",
1601
1697
  check: "string_format",
1602
1698
  abort: !1,
1603
- ..._(t)
1699
+ ...x(t)
1604
1700
  });
1605
1701
  }
1606
1702
  /* @__NO_SIDE_EFFECTS__ */
1607
- function Kn(e, t) {
1703
+ function $n(e, t) {
1608
1704
  return new e({
1609
1705
  type: "string",
1610
1706
  format: "uuid",
1611
1707
  check: "string_format",
1612
1708
  abort: !1,
1613
1709
  version: "v4",
1614
- ..._(t)
1710
+ ...x(t)
1615
1711
  });
1616
1712
  }
1617
1713
  /* @__NO_SIDE_EFFECTS__ */
1618
- function qn(e, t) {
1714
+ function er(e, t) {
1619
1715
  return new e({
1620
1716
  type: "string",
1621
1717
  format: "uuid",
1622
1718
  check: "string_format",
1623
1719
  abort: !1,
1624
1720
  version: "v6",
1625
- ..._(t)
1721
+ ...x(t)
1626
1722
  });
1627
1723
  }
1628
1724
  /* @__NO_SIDE_EFFECTS__ */
1629
- function Jn(e, t) {
1725
+ function tr(e, t) {
1630
1726
  return new e({
1631
1727
  type: "string",
1632
1728
  format: "uuid",
1633
1729
  check: "string_format",
1634
1730
  abort: !1,
1635
1731
  version: "v7",
1636
- ..._(t)
1732
+ ...x(t)
1637
1733
  });
1638
1734
  }
1639
1735
  /* @__NO_SIDE_EFFECTS__ */
1640
- function Yn(e, t) {
1736
+ function nr(e, t) {
1641
1737
  return new e({
1642
1738
  type: "string",
1643
1739
  format: "url",
1644
1740
  check: "string_format",
1645
1741
  abort: !1,
1646
- ..._(t)
1742
+ ...x(t)
1647
1743
  });
1648
1744
  }
1649
1745
  /* @__NO_SIDE_EFFECTS__ */
1650
- function Xn(e, t) {
1746
+ function rr(e, t) {
1651
1747
  return new e({
1652
1748
  type: "string",
1653
1749
  format: "emoji",
1654
1750
  check: "string_format",
1655
1751
  abort: !1,
1656
- ..._(t)
1752
+ ...x(t)
1657
1753
  });
1658
1754
  }
1659
1755
  /* @__NO_SIDE_EFFECTS__ */
1660
- function Zn(e, t) {
1756
+ function ir(e, t) {
1661
1757
  return new e({
1662
1758
  type: "string",
1663
1759
  format: "nanoid",
1664
1760
  check: "string_format",
1665
1761
  abort: !1,
1666
- ..._(t)
1762
+ ...x(t)
1667
1763
  });
1668
1764
  }
1669
1765
  /* @__NO_SIDE_EFFECTS__ */
1670
- function Qn(e, t) {
1766
+ function ar(e, t) {
1671
1767
  return new e({
1672
1768
  type: "string",
1673
1769
  format: "cuid",
1674
1770
  check: "string_format",
1675
1771
  abort: !1,
1676
- ..._(t)
1772
+ ...x(t)
1677
1773
  });
1678
1774
  }
1679
1775
  /* @__NO_SIDE_EFFECTS__ */
1680
- function $n(e, t) {
1776
+ function or(e, t) {
1681
1777
  return new e({
1682
1778
  type: "string",
1683
1779
  format: "cuid2",
1684
1780
  check: "string_format",
1685
1781
  abort: !1,
1686
- ..._(t)
1782
+ ...x(t)
1687
1783
  });
1688
1784
  }
1689
1785
  /* @__NO_SIDE_EFFECTS__ */
1690
- function er(e, t) {
1786
+ function sr(e, t) {
1691
1787
  return new e({
1692
1788
  type: "string",
1693
1789
  format: "ulid",
1694
1790
  check: "string_format",
1695
1791
  abort: !1,
1696
- ..._(t)
1792
+ ...x(t)
1697
1793
  });
1698
1794
  }
1699
1795
  /* @__NO_SIDE_EFFECTS__ */
1700
- function tr(e, t) {
1796
+ function cr(e, t) {
1701
1797
  return new e({
1702
1798
  type: "string",
1703
1799
  format: "xid",
1704
1800
  check: "string_format",
1705
1801
  abort: !1,
1706
- ..._(t)
1802
+ ...x(t)
1707
1803
  });
1708
1804
  }
1709
1805
  /* @__NO_SIDE_EFFECTS__ */
1710
- function nr(e, t) {
1806
+ function lr(e, t) {
1711
1807
  return new e({
1712
1808
  type: "string",
1713
1809
  format: "ksuid",
1714
1810
  check: "string_format",
1715
1811
  abort: !1,
1716
- ..._(t)
1812
+ ...x(t)
1717
1813
  });
1718
1814
  }
1719
1815
  /* @__NO_SIDE_EFFECTS__ */
1720
- function rr(e, t) {
1816
+ function ur(e, t) {
1721
1817
  return new e({
1722
1818
  type: "string",
1723
1819
  format: "ipv4",
1724
1820
  check: "string_format",
1725
1821
  abort: !1,
1726
- ..._(t)
1822
+ ...x(t)
1727
1823
  });
1728
1824
  }
1729
1825
  /* @__NO_SIDE_EFFECTS__ */
1730
- function ir(e, t) {
1826
+ function dr(e, t) {
1731
1827
  return new e({
1732
1828
  type: "string",
1733
1829
  format: "ipv6",
1734
1830
  check: "string_format",
1735
1831
  abort: !1,
1736
- ..._(t)
1832
+ ...x(t)
1737
1833
  });
1738
1834
  }
1739
1835
  /* @__NO_SIDE_EFFECTS__ */
1740
- function ar(e, t) {
1836
+ function fr(e, t) {
1741
1837
  return new e({
1742
1838
  type: "string",
1743
1839
  format: "cidrv4",
1744
1840
  check: "string_format",
1745
1841
  abort: !1,
1746
- ..._(t)
1842
+ ...x(t)
1747
1843
  });
1748
1844
  }
1749
1845
  /* @__NO_SIDE_EFFECTS__ */
1750
- function or(e, t) {
1846
+ function pr(e, t) {
1751
1847
  return new e({
1752
1848
  type: "string",
1753
1849
  format: "cidrv6",
1754
1850
  check: "string_format",
1755
1851
  abort: !1,
1756
- ..._(t)
1852
+ ...x(t)
1757
1853
  });
1758
1854
  }
1759
1855
  /* @__NO_SIDE_EFFECTS__ */
1760
- function sr(e, t) {
1856
+ function mr(e, t) {
1761
1857
  return new e({
1762
1858
  type: "string",
1763
1859
  format: "base64",
1764
1860
  check: "string_format",
1765
1861
  abort: !1,
1766
- ..._(t)
1862
+ ...x(t)
1767
1863
  });
1768
1864
  }
1769
1865
  /* @__NO_SIDE_EFFECTS__ */
1770
- function cr(e, t) {
1866
+ function hr(e, t) {
1771
1867
  return new e({
1772
1868
  type: "string",
1773
1869
  format: "base64url",
1774
1870
  check: "string_format",
1775
1871
  abort: !1,
1776
- ..._(t)
1872
+ ...x(t)
1777
1873
  });
1778
1874
  }
1779
1875
  /* @__NO_SIDE_EFFECTS__ */
1780
- function lr(e, t) {
1876
+ function gr(e, t) {
1781
1877
  return new e({
1782
1878
  type: "string",
1783
1879
  format: "e164",
1784
1880
  check: "string_format",
1785
1881
  abort: !1,
1786
- ..._(t)
1882
+ ...x(t)
1787
1883
  });
1788
1884
  }
1789
1885
  /* @__NO_SIDE_EFFECTS__ */
1790
- function ur(e, t) {
1886
+ function _r(e, t) {
1791
1887
  return new e({
1792
1888
  type: "string",
1793
1889
  format: "jwt",
1794
1890
  check: "string_format",
1795
1891
  abort: !1,
1796
- ..._(t)
1892
+ ...x(t)
1797
1893
  });
1798
1894
  }
1799
1895
  /* @__NO_SIDE_EFFECTS__ */
1800
- function dr(e, t) {
1896
+ function vr(e, t) {
1801
1897
  return new e({
1802
1898
  type: "string",
1803
1899
  format: "datetime",
@@ -1805,231 +1901,231 @@ function dr(e, t) {
1805
1901
  offset: !1,
1806
1902
  local: !1,
1807
1903
  precision: null,
1808
- ..._(t)
1904
+ ...x(t)
1809
1905
  });
1810
1906
  }
1811
1907
  /* @__NO_SIDE_EFFECTS__ */
1812
- function fr(e, t) {
1908
+ function yr(e, t) {
1813
1909
  return new e({
1814
1910
  type: "string",
1815
1911
  format: "date",
1816
1912
  check: "string_format",
1817
- ..._(t)
1913
+ ...x(t)
1818
1914
  });
1819
1915
  }
1820
1916
  /* @__NO_SIDE_EFFECTS__ */
1821
- function pr(e, t) {
1917
+ function br(e, t) {
1822
1918
  return new e({
1823
1919
  type: "string",
1824
1920
  format: "time",
1825
1921
  check: "string_format",
1826
1922
  precision: null,
1827
- ..._(t)
1923
+ ...x(t)
1828
1924
  });
1829
1925
  }
1830
1926
  /* @__NO_SIDE_EFFECTS__ */
1831
- function mr(e, t) {
1927
+ function xr(e, t) {
1832
1928
  return new e({
1833
1929
  type: "string",
1834
1930
  format: "duration",
1835
1931
  check: "string_format",
1836
- ..._(t)
1932
+ ...x(t)
1837
1933
  });
1838
1934
  }
1839
1935
  /* @__NO_SIDE_EFFECTS__ */
1840
- function hr(e, t) {
1936
+ function Sr(e, t) {
1841
1937
  return new e({
1842
1938
  type: "number",
1843
1939
  checks: [],
1844
- ..._(t)
1940
+ ...x(t)
1845
1941
  });
1846
1942
  }
1847
1943
  /* @__NO_SIDE_EFFECTS__ */
1848
- function gr(e, t) {
1944
+ function Cr(e, t) {
1849
1945
  return new e({
1850
1946
  type: "number",
1851
1947
  check: "number_format",
1852
1948
  abort: !1,
1853
1949
  format: "safeint",
1854
- ..._(t)
1950
+ ...x(t)
1855
1951
  });
1856
1952
  }
1857
1953
  /* @__NO_SIDE_EFFECTS__ */
1858
- function _r(e, t) {
1954
+ function wr(e, t) {
1859
1955
  return new e({
1860
1956
  type: "boolean",
1861
- ..._(t)
1957
+ ...x(t)
1862
1958
  });
1863
1959
  }
1864
1960
  /* @__NO_SIDE_EFFECTS__ */
1865
- function vr(e) {
1961
+ function Tr(e) {
1866
1962
  return new e({ type: "unknown" });
1867
1963
  }
1868
1964
  /* @__NO_SIDE_EFFECTS__ */
1869
- function yr(e, t) {
1965
+ function Er(e, t) {
1870
1966
  return new e({
1871
1967
  type: "never",
1872
- ..._(t)
1968
+ ...x(t)
1873
1969
  });
1874
1970
  }
1875
1971
  /* @__NO_SIDE_EFFECTS__ */
1876
- function br(e, t) {
1877
- return new ft({
1972
+ function Dr(e, t) {
1973
+ return new yt({
1878
1974
  check: "less_than",
1879
- ..._(t),
1975
+ ...x(t),
1880
1976
  value: e,
1881
1977
  inclusive: !1
1882
1978
  });
1883
1979
  }
1884
1980
  /* @__NO_SIDE_EFFECTS__ */
1885
- function xr(e, t) {
1886
- return new ft({
1981
+ function Or(e, t) {
1982
+ return new yt({
1887
1983
  check: "less_than",
1888
- ..._(t),
1984
+ ...x(t),
1889
1985
  value: e,
1890
1986
  inclusive: !0
1891
1987
  });
1892
1988
  }
1893
1989
  /* @__NO_SIDE_EFFECTS__ */
1894
- function Sr(e, t) {
1895
- return new pt({
1990
+ function kr(e, t) {
1991
+ return new bt({
1896
1992
  check: "greater_than",
1897
- ..._(t),
1993
+ ...x(t),
1898
1994
  value: e,
1899
1995
  inclusive: !1
1900
1996
  });
1901
1997
  }
1902
1998
  /* @__NO_SIDE_EFFECTS__ */
1903
- function Cr(e, t) {
1904
- return new pt({
1999
+ function Ar(e, t) {
2000
+ return new bt({
1905
2001
  check: "greater_than",
1906
- ..._(t),
2002
+ ...x(t),
1907
2003
  value: e,
1908
2004
  inclusive: !0
1909
2005
  });
1910
2006
  }
1911
2007
  /* @__NO_SIDE_EFFECTS__ */
1912
- function wr(e, t) {
1913
- return new mt({
2008
+ function jr(e, t) {
2009
+ return new xt({
1914
2010
  check: "multiple_of",
1915
- ..._(t),
2011
+ ...x(t),
1916
2012
  value: e
1917
2013
  });
1918
2014
  }
1919
2015
  /* @__NO_SIDE_EFFECTS__ */
1920
- function Tr(e, t) {
1921
- return new gt({
2016
+ function Mr(e, t) {
2017
+ return new Ct({
1922
2018
  check: "max_length",
1923
- ..._(t),
2019
+ ...x(t),
1924
2020
  maximum: e
1925
2021
  });
1926
2022
  }
1927
2023
  /* @__NO_SIDE_EFFECTS__ */
1928
- function j(e, t) {
1929
- return new _t({
2024
+ function M(e, t) {
2025
+ return new wt({
1930
2026
  check: "min_length",
1931
- ..._(t),
2027
+ ...x(t),
1932
2028
  minimum: e
1933
2029
  });
1934
2030
  }
1935
2031
  /* @__NO_SIDE_EFFECTS__ */
1936
- function Er(e, t) {
1937
- return new vt({
2032
+ function Nr(e, t) {
2033
+ return new Tt({
1938
2034
  check: "length_equals",
1939
- ..._(t),
2035
+ ...x(t),
1940
2036
  length: e
1941
2037
  });
1942
2038
  }
1943
2039
  /* @__NO_SIDE_EFFECTS__ */
1944
- function Dr(e, t) {
1945
- return new bt({
2040
+ function Pr(e, t) {
2041
+ return new Dt({
1946
2042
  check: "string_format",
1947
2043
  format: "regex",
1948
- ..._(t),
2044
+ ...x(t),
1949
2045
  pattern: e
1950
2046
  });
1951
2047
  }
1952
2048
  /* @__NO_SIDE_EFFECTS__ */
1953
- function Or(e) {
1954
- return new xt({
2049
+ function Fr(e) {
2050
+ return new Ot({
1955
2051
  check: "string_format",
1956
2052
  format: "lowercase",
1957
- ..._(e)
2053
+ ...x(e)
1958
2054
  });
1959
2055
  }
1960
2056
  /* @__NO_SIDE_EFFECTS__ */
1961
- function kr(e) {
1962
- return new St({
2057
+ function Ir(e) {
2058
+ return new kt({
1963
2059
  check: "string_format",
1964
2060
  format: "uppercase",
1965
- ..._(e)
2061
+ ...x(e)
1966
2062
  });
1967
2063
  }
1968
2064
  /* @__NO_SIDE_EFFECTS__ */
1969
- function Ar(e, t) {
1970
- return new Ct({
2065
+ function Lr(e, t) {
2066
+ return new At({
1971
2067
  check: "string_format",
1972
2068
  format: "includes",
1973
- ..._(t),
2069
+ ...x(t),
1974
2070
  includes: e
1975
2071
  });
1976
2072
  }
1977
2073
  /* @__NO_SIDE_EFFECTS__ */
1978
- function jr(e, t) {
1979
- return new wt({
2074
+ function Rr(e, t) {
2075
+ return new jt({
1980
2076
  check: "string_format",
1981
2077
  format: "starts_with",
1982
- ..._(t),
2078
+ ...x(t),
1983
2079
  prefix: e
1984
2080
  });
1985
2081
  }
1986
2082
  /* @__NO_SIDE_EFFECTS__ */
1987
- function Mr(e, t) {
1988
- return new Tt({
2083
+ function zr(e, t) {
2084
+ return new Mt({
1989
2085
  check: "string_format",
1990
2086
  format: "ends_with",
1991
- ..._(t),
2087
+ ...x(t),
1992
2088
  suffix: e
1993
2089
  });
1994
2090
  }
1995
2091
  /* @__NO_SIDE_EFFECTS__ */
1996
- function M(e) {
1997
- return new Et({
2092
+ function N(e) {
2093
+ return new Nt({
1998
2094
  check: "overwrite",
1999
2095
  tx: e
2000
2096
  });
2001
2097
  }
2002
2098
  /* @__NO_SIDE_EFFECTS__ */
2003
- function Nr(e) {
2004
- return /* @__PURE__ */ M((t) => t.normalize(e));
2099
+ function Br(e) {
2100
+ return /* @__PURE__ */ N((t) => t.normalize(e));
2005
2101
  }
2006
2102
  /* @__NO_SIDE_EFFECTS__ */
2007
- function Pr() {
2008
- return /* @__PURE__ */ M((e) => e.trim());
2103
+ function Vr() {
2104
+ return /* @__PURE__ */ N((e) => e.trim());
2009
2105
  }
2010
2106
  /* @__NO_SIDE_EFFECTS__ */
2011
- function Fr() {
2012
- return /* @__PURE__ */ M((e) => e.toLowerCase());
2107
+ function Hr() {
2108
+ return /* @__PURE__ */ N((e) => e.toLowerCase());
2013
2109
  }
2014
2110
  /* @__NO_SIDE_EFFECTS__ */
2015
- function Ir() {
2016
- return /* @__PURE__ */ M((e) => e.toUpperCase());
2111
+ function Ur() {
2112
+ return /* @__PURE__ */ N((e) => e.toUpperCase());
2017
2113
  }
2018
2114
  /* @__NO_SIDE_EFFECTS__ */
2019
- function Lr() {
2020
- return /* @__PURE__ */ M((e) => ne(e));
2115
+ function Wr() {
2116
+ return /* @__PURE__ */ N((e) => ae(e));
2021
2117
  }
2022
2118
  /* @__NO_SIDE_EFFECTS__ */
2023
- function Rr(e, t, n) {
2119
+ function Gr(e, t, n) {
2024
2120
  return new e({
2025
2121
  type: "array",
2026
2122
  element: t,
2027
- ..._(n)
2123
+ ...x(n)
2028
2124
  });
2029
2125
  }
2030
2126
  /* @__NO_SIDE_EFFECTS__ */
2031
- function zr(e, t, n) {
2032
- let r = _(n);
2127
+ function Kr(e, t, n) {
2128
+ let r = x(n);
2033
2129
  return r.abort ??= !0, new e({
2034
2130
  type: "custom",
2035
2131
  check: "custom",
@@ -2038,40 +2134,40 @@ function zr(e, t, n) {
2038
2134
  });
2039
2135
  }
2040
2136
  /* @__NO_SIDE_EFFECTS__ */
2041
- function Br(e, t, n) {
2137
+ function qr(e, t, n) {
2042
2138
  return new e({
2043
2139
  type: "custom",
2044
2140
  check: "custom",
2045
2141
  fn: t,
2046
- ..._(n)
2142
+ ...x(n)
2047
2143
  });
2048
2144
  }
2049
2145
  /* @__NO_SIDE_EFFECTS__ */
2050
- function Vr(e) {
2051
- let t = /* @__PURE__ */ Hr((n) => (n.addIssue = (e) => {
2052
- if (typeof e == "string") n.issues.push(S(e, n.value, t._zod.def));
2146
+ function Jr(e, t) {
2147
+ let n = /* @__PURE__ */ Yr((t) => (t.addIssue = (e) => {
2148
+ if (typeof e == "string") t.issues.push(T(e, t.value, n._zod.def));
2053
2149
  else {
2054
2150
  let r = e;
2055
- r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(S(r));
2151
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(T(r));
2056
2152
  }
2057
- }, e(n.value, n)));
2058
- return t;
2153
+ }, e(t.value, t)), t);
2154
+ return n;
2059
2155
  }
2060
2156
  /* @__NO_SIDE_EFFECTS__ */
2061
- function Hr(e, t) {
2062
- let n = new T({
2157
+ function Yr(e, t) {
2158
+ let n = new E({
2063
2159
  check: "custom",
2064
- ..._(t)
2160
+ ...x(t)
2065
2161
  });
2066
2162
  return n._zod.check = e, n;
2067
2163
  }
2068
2164
  //#endregion
2069
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
2070
- function Ur(e) {
2165
+ //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
2166
+ function Xr(e) {
2071
2167
  let t = e?.target ?? "draft-2020-12";
2072
2168
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2073
2169
  processors: e.processors ?? {},
2074
- metadataRegistry: e?.metadata ?? A,
2170
+ metadataRegistry: e?.metadata ?? j,
2075
2171
  target: t,
2076
2172
  unrepresentable: e?.unrepresentable ?? "throw",
2077
2173
  override: e?.override ?? (() => {}),
@@ -2083,7 +2179,7 @@ function Ur(e) {
2083
2179
  external: e?.external ?? void 0
2084
2180
  };
2085
2181
  }
2086
- function N(e, t, n = {
2182
+ function P(e, t, n = {
2087
2183
  path: [],
2088
2184
  schemaPath: []
2089
2185
  }) {
@@ -2112,12 +2208,12 @@ function N(e, t, n = {
2112
2208
  a(e, t, n, r);
2113
2209
  }
2114
2210
  let a = e._zod.parent;
2115
- a && (o.ref ||= a, N(a, t, r), t.seen.get(a).isParent = !0);
2211
+ a && (o.ref ||= a, P(a, t, r), t.seen.get(a).isParent = !0);
2116
2212
  }
2117
2213
  let c = t.metadataRegistry.get(e);
2118
- return c && Object.assign(o.schema, c), t.io === "input" && P(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2214
+ return c && Object.assign(o.schema, c), t.io === "input" && F(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2119
2215
  }
2120
- function Wr(e, t) {
2216
+ function Zr(e, t) {
2121
2217
  let n = e.seen.get(t);
2122
2218
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2123
2219
  let r = /* @__PURE__ */ new Map();
@@ -2187,7 +2283,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2187
2283
  }
2188
2284
  }
2189
2285
  }
2190
- function Gr(e, t) {
2286
+ function Qr(e, t) {
2191
2287
  let n = e.seen.get(t);
2192
2288
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2193
2289
  let r = (t) => {
@@ -2220,20 +2316,22 @@ function Gr(e, t) {
2220
2316
  i.$id = e.external.uri(n);
2221
2317
  }
2222
2318
  Object.assign(i, n.def ?? n.schema);
2223
- let a = e.external?.defs ?? {};
2319
+ let a = e.metadataRegistry.get(t)?.id;
2320
+ a !== void 0 && i.id === a && delete i.id;
2321
+ let o = e.external?.defs ?? {};
2224
2322
  for (let t of e.seen.entries()) {
2225
2323
  let e = t[1];
2226
- e.def && e.defId && (a[e.defId] = e.def);
2324
+ e.def && e.defId && (e.def.id === e.defId && delete e.def.id, o[e.defId] = e.def);
2227
2325
  }
2228
- e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? i.$defs = a : i.definitions = a);
2326
+ e.external || Object.keys(o).length > 0 && (e.target === "draft-2020-12" ? i.$defs = o : i.definitions = o);
2229
2327
  try {
2230
2328
  let n = JSON.parse(JSON.stringify(i));
2231
2329
  return Object.defineProperty(n, "~standard", {
2232
2330
  value: {
2233
2331
  ...t["~standard"],
2234
2332
  jsonSchema: {
2235
- input: F(t, "input", e.processors),
2236
- output: F(t, "output", e.processors)
2333
+ input: I(t, "input", e.processors),
2334
+ output: I(t, "output", e.processors)
2237
2335
  }
2238
2336
  },
2239
2337
  enumerable: !1,
@@ -2243,75 +2341,77 @@ function Gr(e, t) {
2243
2341
  throw Error("Error converting schema to JSON.");
2244
2342
  }
2245
2343
  }
2246
- function P(e, t) {
2344
+ function F(e, t) {
2247
2345
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
2248
2346
  if (n.seen.has(e)) return !1;
2249
2347
  n.seen.add(e);
2250
2348
  let r = e._zod.def;
2251
2349
  if (r.type === "transform") return !0;
2252
- if (r.type === "array") return P(r.element, n);
2253
- if (r.type === "set") return P(r.valueType, n);
2254
- if (r.type === "lazy") return P(r.getter(), n);
2255
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return P(r.innerType, n);
2256
- if (r.type === "intersection") return P(r.left, n) || P(r.right, n);
2257
- if (r.type === "record" || r.type === "map") return P(r.keyType, n) || P(r.valueType, n);
2258
- if (r.type === "pipe") return P(r.in, n) || P(r.out, n);
2350
+ if (r.type === "array") return F(r.element, n);
2351
+ if (r.type === "set") return F(r.valueType, n);
2352
+ if (r.type === "lazy") return F(r.getter(), n);
2353
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return F(r.innerType, n);
2354
+ if (r.type === "intersection") return F(r.left, n) || F(r.right, n);
2355
+ if (r.type === "record" || r.type === "map") return F(r.keyType, n) || F(r.valueType, n);
2356
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : F(r.in, n) || F(r.out, n);
2259
2357
  if (r.type === "object") {
2260
- for (let e in r.shape) if (P(r.shape[e], n)) return !0;
2358
+ for (let e in r.shape) if (F(r.shape[e], n)) return !0;
2261
2359
  return !1;
2262
2360
  }
2263
2361
  if (r.type === "union") {
2264
- for (let e of r.options) if (P(e, n)) return !0;
2362
+ for (let e of r.options) if (F(e, n)) return !0;
2265
2363
  return !1;
2266
2364
  }
2267
2365
  if (r.type === "tuple") {
2268
- for (let e of r.items) if (P(e, n)) return !0;
2269
- return !!(r.rest && P(r.rest, n));
2366
+ for (let e of r.items) if (F(e, n)) return !0;
2367
+ return !!(r.rest && F(r.rest, n));
2270
2368
  }
2271
2369
  return !1;
2272
2370
  }
2273
- var Kr = (e, t = {}) => (n) => {
2274
- let r = Ur({
2371
+ var $r = (e, t = {}) => (n) => {
2372
+ let r = Xr({
2275
2373
  ...n,
2276
2374
  processors: t
2277
2375
  });
2278
- return N(e, r), Wr(r, e), Gr(r, e);
2279
- }, F = (e, t, n = {}) => (r) => {
2280
- let { libraryOptions: i, target: a } = r ?? {}, o = Ur({
2376
+ return P(e, r), Zr(r, e), Qr(r, e);
2377
+ }, I = (e, t, n = {}) => (r) => {
2378
+ let { libraryOptions: i, target: a } = r ?? {}, o = Xr({
2281
2379
  ...i ?? {},
2282
2380
  target: a,
2283
2381
  io: t,
2284
2382
  processors: n
2285
2383
  });
2286
- return N(e, o), Wr(o, e), Gr(o, e);
2287
- }, qr = {
2384
+ return P(e, o), Zr(o, e), Qr(o, e);
2385
+ }, ei = {
2288
2386
  guid: "uuid",
2289
2387
  url: "uri",
2290
2388
  datetime: "date-time",
2291
2389
  json_string: "json-string",
2292
2390
  regex: ""
2293
- }, Jr = (e, t, n, r) => {
2391
+ }, ti = (e, t, n, r) => {
2294
2392
  let i = n;
2295
2393
  i.type = "string";
2296
2394
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2297
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = qr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2395
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ei[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2298
2396
  let e = [...c];
2299
2397
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2300
2398
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2301
2399
  pattern: e.source
2302
2400
  }))]);
2303
2401
  }
2304
- }, Yr = (e, t, n, r) => {
2402
+ }, ni = (e, t, n, r) => {
2305
2403
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
2306
- typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number", typeof u == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u), typeof a == "number" && (i.minimum = a, typeof u == "number" && t.target !== "draft-04" && (u >= a ? delete i.minimum : delete i.exclusiveMinimum)), typeof l == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l), typeof o == "number" && (i.maximum = o, typeof l == "number" && t.target !== "draft-04" && (l <= o ? delete i.maximum : delete i.exclusiveMaximum)), typeof c == "number" && (i.multipleOf = c);
2307
- }, Xr = (e, t, n, r) => {
2404
+ typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
2405
+ let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
2406
+ d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
2407
+ }, ri = (e, t, n, r) => {
2308
2408
  n.type = "boolean";
2309
- }, Zr = (e, t, n, r) => {
2409
+ }, ii = (e, t, n, r) => {
2310
2410
  n.not = {};
2311
- }, Qr = (e, t, n, r) => {
2312
- let i = e._zod.def, o = a(i.entries);
2313
- o.every((e) => typeof e == "number") && (n.type = "number"), o.every((e) => typeof e == "string") && (n.type = "string"), n.enum = o;
2314
- }, $r = (e, t, n, r) => {
2411
+ }, ai = (e, t, n, r) => {
2412
+ let i = e._zod.def, a = d(i.entries);
2413
+ a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
2414
+ }, oi = (e, t, n, r) => {
2315
2415
  let i = e._zod.def, a = [];
2316
2416
  for (let e of i.values) if (e === void 0) {
2317
2417
  if (t.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
@@ -2323,21 +2423,21 @@ var Kr = (e, t = {}) => (n) => {
2323
2423
  let e = a[0];
2324
2424
  n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
2325
2425
  } else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
2326
- }, ei = (e, t, n, r) => {
2426
+ }, si = (e, t, n, r) => {
2327
2427
  if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2328
- }, ti = (e, t, n, r) => {
2428
+ }, ci = (e, t, n, r) => {
2329
2429
  if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2330
- }, ni = (e, t, n, r) => {
2430
+ }, li = (e, t, n, r) => {
2331
2431
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2332
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = N(a.element, t, {
2432
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = P(a.element, t, {
2333
2433
  ...r,
2334
2434
  path: [...r.path, "items"]
2335
2435
  });
2336
- }, ri = (e, t, n, r) => {
2436
+ }, ui = (e, t, n, r) => {
2337
2437
  let i = n, a = e._zod.def;
2338
2438
  i.type = "object", i.properties = {};
2339
2439
  let o = a.shape;
2340
- for (let e in o) i.properties[e] = N(o[e], t, {
2440
+ for (let e in o) i.properties[e] = P(o[e], t, {
2341
2441
  ...r,
2342
2442
  path: [
2343
2443
  ...r.path,
@@ -2349,12 +2449,12 @@ var Kr = (e, t = {}) => (n) => {
2349
2449
  let n = a.shape[e]._zod;
2350
2450
  return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
2351
2451
  }));
2352
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = N(a.catchall, t, {
2452
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = P(a.catchall, t, {
2353
2453
  ...r,
2354
2454
  path: [...r.path, "additionalProperties"]
2355
2455
  })) : t.io === "output" && (i.additionalProperties = !1);
2356
- }, ii = (e, t, n, r) => {
2357
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => N(e, t, {
2456
+ }, di = (e, t, n, r) => {
2457
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => P(e, t, {
2358
2458
  ...r,
2359
2459
  path: [
2360
2460
  ...r.path,
@@ -2363,15 +2463,15 @@ var Kr = (e, t = {}) => (n) => {
2363
2463
  ]
2364
2464
  }));
2365
2465
  a ? n.oneOf = o : n.anyOf = o;
2366
- }, ai = (e, t, n, r) => {
2367
- let i = e._zod.def, a = N(i.left, t, {
2466
+ }, fi = (e, t, n, r) => {
2467
+ let i = e._zod.def, a = P(i.left, t, {
2368
2468
  ...r,
2369
2469
  path: [
2370
2470
  ...r.path,
2371
2471
  "allOf",
2372
2472
  0
2373
2473
  ]
2374
- }), o = N(i.right, t, {
2474
+ }), o = P(i.right, t, {
2375
2475
  ...r,
2376
2476
  path: [
2377
2477
  ...r.path,
@@ -2380,12 +2480,12 @@ var Kr = (e, t = {}) => (n) => {
2380
2480
  ]
2381
2481
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2382
2482
  n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2383
- }, oi = (e, t, n, r) => {
2483
+ }, pi = (e, t, n, r) => {
2384
2484
  let i = n, a = e._zod.def;
2385
2485
  i.type = "object";
2386
2486
  let o = a.keyType, s = o._zod.bag?.patterns;
2387
2487
  if (a.mode === "loose" && s && s.size > 0) {
2388
- let e = N(a.valueType, t, {
2488
+ let e = P(a.valueType, t, {
2389
2489
  ...r,
2390
2490
  path: [
2391
2491
  ...r.path,
@@ -2395,10 +2495,10 @@ var Kr = (e, t = {}) => (n) => {
2395
2495
  });
2396
2496
  i.patternProperties = {};
2397
2497
  for (let t of s) i.patternProperties[t.source] = e;
2398
- } else (t.target === "draft-07" || t.target === "draft-2020-12") && (i.propertyNames = N(a.keyType, t, {
2498
+ } else (t.target === "draft-07" || t.target === "draft-2020-12") && (i.propertyNames = P(a.keyType, t, {
2399
2499
  ...r,
2400
2500
  path: [...r.path, "propertyNames"]
2401
- })), i.additionalProperties = N(a.valueType, t, {
2501
+ })), i.additionalProperties = P(a.valueType, t, {
2402
2502
  ...r,
2403
2503
  path: [...r.path, "additionalProperties"]
2404
2504
  });
@@ -2407,27 +2507,27 @@ var Kr = (e, t = {}) => (n) => {
2407
2507
  let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
2408
2508
  e.length > 0 && (i.required = e);
2409
2509
  }
2410
- }, si = (e, t, n, r) => {
2411
- let i = e._zod.def, a = N(i.innerType, t, r), o = t.seen.get(e);
2510
+ }, mi = (e, t, n, r) => {
2511
+ let i = e._zod.def, a = P(i.innerType, t, r), o = t.seen.get(e);
2412
2512
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2413
- }, ci = (e, t, n, r) => {
2513
+ }, hi = (e, t, n, r) => {
2414
2514
  let i = e._zod.def;
2415
- N(i.innerType, t, r);
2515
+ P(i.innerType, t, r);
2416
2516
  let a = t.seen.get(e);
2417
2517
  a.ref = i.innerType;
2418
- }, li = (e, t, n, r) => {
2518
+ }, gi = (e, t, n, r) => {
2419
2519
  let i = e._zod.def;
2420
- N(i.innerType, t, r);
2520
+ P(i.innerType, t, r);
2421
2521
  let a = t.seen.get(e);
2422
2522
  a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2423
- }, ui = (e, t, n, r) => {
2523
+ }, _i = (e, t, n, r) => {
2424
2524
  let i = e._zod.def;
2425
- N(i.innerType, t, r);
2525
+ P(i.innerType, t, r);
2426
2526
  let a = t.seen.get(e);
2427
2527
  a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2428
- }, di = (e, t, n, r) => {
2528
+ }, vi = (e, t, n, r) => {
2429
2529
  let i = e._zod.def;
2430
- N(i.innerType, t, r);
2530
+ P(i.innerType, t, r);
2431
2531
  let a = t.seen.get(e);
2432
2532
  a.ref = i.innerType;
2433
2533
  let o;
@@ -2437,419 +2537,678 @@ var Kr = (e, t = {}) => (n) => {
2437
2537
  throw Error("Dynamic catch values are not supported in JSON Schema");
2438
2538
  }
2439
2539
  n.default = o;
2440
- }, fi = (e, t, n, r) => {
2441
- let i = e._zod.def, a = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
2442
- N(a, t, r);
2443
- let o = t.seen.get(e);
2444
- o.ref = a;
2445
- }, pi = (e, t, n, r) => {
2540
+ }, yi = (e, t, n, r) => {
2541
+ let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
2542
+ P(o, t, r);
2543
+ let s = t.seen.get(e);
2544
+ s.ref = o;
2545
+ }, bi = (e, t, n, r) => {
2446
2546
  let i = e._zod.def;
2447
- N(i.innerType, t, r);
2547
+ P(i.innerType, t, r);
2448
2548
  let a = t.seen.get(e);
2449
2549
  a.ref = i.innerType, n.readOnly = !0;
2450
- }, mi = (e, t, n, r) => {
2550
+ }, xi = (e, t, n, r) => {
2451
2551
  let i = e._zod.def;
2452
- N(i.innerType, t, r);
2552
+ P(i.innerType, t, r);
2453
2553
  let a = t.seen.get(e);
2454
2554
  a.ref = i.innerType;
2455
- }, hi = (e, t, n, r) => {
2555
+ }, Si = (e, t, n, r) => {
2456
2556
  let i = e._zod.innerType;
2457
- N(i, t, r);
2557
+ P(i, t, r);
2458
2558
  let a = t.seen.get(e);
2459
2559
  a.ref = i;
2460
- }, gi = /* @__PURE__ */ e("ZodISODateTime", (e, t) => {
2461
- Vt.init(e, t), z.init(e, t);
2560
+ }, Ci = /* @__PURE__ */ o("ZodISODateTime", (e, t) => {
2561
+ Jt.init(e, t), V.init(e, t);
2462
2562
  });
2463
- function _i(e) {
2464
- return /* @__PURE__ */ dr(gi, e);
2563
+ function wi(e) {
2564
+ return /* @__PURE__ */ vr(Ci, e);
2465
2565
  }
2466
- var vi = /* @__PURE__ */ e("ZodISODate", (e, t) => {
2467
- Ht.init(e, t), z.init(e, t);
2566
+ var Ti = /* @__PURE__ */ o("ZodISODate", (e, t) => {
2567
+ Yt.init(e, t), V.init(e, t);
2468
2568
  });
2469
- function yi(e) {
2470
- return /* @__PURE__ */ fr(vi, e);
2569
+ function Ei(e) {
2570
+ return /* @__PURE__ */ yr(Ti, e);
2471
2571
  }
2472
- var bi = /* @__PURE__ */ e("ZodISOTime", (e, t) => {
2473
- Ut.init(e, t), z.init(e, t);
2572
+ var Di = /* @__PURE__ */ o("ZodISOTime", (e, t) => {
2573
+ Xt.init(e, t), V.init(e, t);
2474
2574
  });
2475
- function xi(e) {
2476
- return /* @__PURE__ */ pr(bi, e);
2575
+ function Oi(e) {
2576
+ return /* @__PURE__ */ br(Di, e);
2477
2577
  }
2478
- var Si = /* @__PURE__ */ e("ZodISODuration", (e, t) => {
2479
- Wt.init(e, t), z.init(e, t);
2578
+ var ki = /* @__PURE__ */ o("ZodISODuration", (e, t) => {
2579
+ Zt.init(e, t), V.init(e, t);
2480
2580
  });
2481
- function Ci(e) {
2482
- return /* @__PURE__ */ mr(Si, e);
2581
+ function Ai(e) {
2582
+ return /* @__PURE__ */ xr(ki, e);
2483
2583
  }
2484
- //#endregion
2485
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
2486
- var wi = (e, t) => {
2487
- ye.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2488
- format: { value: (t) => Se(e, t) },
2489
- flatten: { value: (t) => xe(e, t) },
2584
+ var L = /* @__PURE__ */ o("ZodError", (e, t) => {
2585
+ Ce.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2586
+ format: { value: (t) => Ee(e, t) },
2587
+ flatten: { value: (t) => Te(e, t) },
2490
2588
  addIssue: { value: (t) => {
2491
- e.issues.push(t), e.message = JSON.stringify(e.issues, o, 2);
2589
+ e.issues.push(t), e.message = JSON.stringify(e.issues, f, 2);
2492
2590
  } },
2493
2591
  addIssues: { value: (t) => {
2494
- e.issues.push(...t), e.message = JSON.stringify(e.issues, o, 2);
2592
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, f, 2);
2495
2593
  } },
2496
2594
  isEmpty: { get() {
2497
2595
  return e.issues.length === 0;
2498
2596
  } }
2499
2597
  });
2500
- };
2501
- e("ZodError", wi);
2502
- var I = e("ZodError", wi, { Parent: Error }), Ti = /* @__PURE__ */ Ce(I), Ei = /* @__PURE__ */ we(I), Di = /* @__PURE__ */ C(I), Oi = /* @__PURE__ */ w(I), ki = /* @__PURE__ */ De(I), Ai = /* @__PURE__ */ Oe(I), ji = /* @__PURE__ */ ke(I), Mi = /* @__PURE__ */ Ae(I), Ni = /* @__PURE__ */ je(I), Pi = /* @__PURE__ */ Me(I), Fi = /* @__PURE__ */ Ne(I), Ii = /* @__PURE__ */ Pe(I), L = /* @__PURE__ */ e("ZodType", (e, t) => (E.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2503
- input: F(e, "input"),
2504
- output: F(e, "output")
2505
- } }), e.toJSONSchema = Kr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(p(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
2506
- check: e,
2507
- def: { check: "custom" },
2508
- onattach: []
2509
- } } : e)] }), { parent: !0 }), e.with = e.check, e.clone = (t, n) => g(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Ti(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Di(e, t, n), e.parseAsync = async (t, n) => Ei(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Oi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => ki(e, t, n), e.decode = (t, n) => Ai(e, t, n), e.encodeAsync = async (t, n) => ji(e, t, n), e.decodeAsync = async (t, n) => Mi(e, t, n), e.safeEncode = (t, n) => Ni(e, t, n), e.safeDecode = (t, n) => Pi(e, t, n), e.safeEncodeAsync = async (t, n) => Fi(e, t, n), e.safeDecodeAsync = async (t, n) => Ii(e, t, n), e.refine = (t, n) => e.check(Ua(t, n)), e.superRefine = (t) => e.check(Wa(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ M(t)), e.optional = () => Sa(e), e.exactOptional = () => wa(e), e.nullable = () => Ea(e), e.nullish = () => Sa(Ea(e)), e.nonoptional = (t) => Ma(e, t), e.array = () => W(e), e.or = (t) => K([e, t]), e.and = (t) => ma(e, t), e.transform = (t) => Ia(e, ba(t)), e.default = (t) => Oa(e, t), e.prefault = (t) => Aa(e, t), e.catch = (t) => Pa(e, t), e.pipe = (t) => Ia(e, t), e.readonly = () => Ra(e), e.describe = (t) => {
2510
- let n = e.clone();
2511
- return A.add(n, { description: t }), n;
2512
- }, Object.defineProperty(e, "description", {
2598
+ }, { Parent: Error }), ji = /* @__PURE__ */ De(L), Mi = /* @__PURE__ */ Oe(L), Ni = /* @__PURE__ */ ke(L), Pi = /* @__PURE__ */ je(L), Fi = /* @__PURE__ */ Ne(L), Ii = /* @__PURE__ */ Pe(L), Li = /* @__PURE__ */ Fe(L), Ri = /* @__PURE__ */ Ie(L), zi = /* @__PURE__ */ Le(L), Bi = /* @__PURE__ */ Re(L), Vi = /* @__PURE__ */ ze(L), Hi = /* @__PURE__ */ Be(L), Ui = /* @__PURE__ */ new WeakMap();
2599
+ function R(e, t, n) {
2600
+ let r = Object.getPrototypeOf(e), i = Ui.get(r);
2601
+ if (i || (i = /* @__PURE__ */ new Set(), Ui.set(r, i)), !i.has(t)) {
2602
+ i.add(t);
2603
+ for (let e in n) {
2604
+ let t = n[e];
2605
+ Object.defineProperty(r, e, {
2606
+ configurable: !0,
2607
+ enumerable: !1,
2608
+ get() {
2609
+ let n = t.bind(this);
2610
+ return Object.defineProperty(this, e, {
2611
+ configurable: !0,
2612
+ writable: !0,
2613
+ enumerable: !0,
2614
+ value: n
2615
+ }), n;
2616
+ },
2617
+ set(t) {
2618
+ Object.defineProperty(this, e, {
2619
+ configurable: !0,
2620
+ writable: !0,
2621
+ enumerable: !0,
2622
+ value: t
2623
+ });
2624
+ }
2625
+ });
2626
+ }
2627
+ }
2628
+ }
2629
+ var z = /* @__PURE__ */ o("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2630
+ input: I(e, "input"),
2631
+ output: I(e, "output")
2632
+ } }), e.toJSONSchema = $r(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => ji(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Ni(e, t, n), e.parseAsync = async (t, n) => Mi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Pi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Fi(e, t, n), e.decode = (t, n) => Ii(e, t, n), e.encodeAsync = async (t, n) => Li(e, t, n), e.decodeAsync = async (t, n) => Ri(e, t, n), e.safeEncode = (t, n) => zi(e, t, n), e.safeDecode = (t, n) => Bi(e, t, n), e.safeEncodeAsync = async (t, n) => Vi(e, t, n), e.safeDecodeAsync = async (t, n) => Hi(e, t, n), R(e, "ZodType", {
2633
+ check(...e) {
2634
+ let t = this.def;
2635
+ return this.clone(g(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
2636
+ check: e,
2637
+ def: { check: "custom" },
2638
+ onattach: []
2639
+ } } : e)] }), { parent: !0 });
2640
+ },
2641
+ with(...e) {
2642
+ return this.check(...e);
2643
+ },
2644
+ clone(e, t) {
2645
+ return b(this, e, t);
2646
+ },
2647
+ brand() {
2648
+ return this;
2649
+ },
2650
+ register(e, t) {
2651
+ return e.add(this, t), this;
2652
+ },
2653
+ refine(e, t) {
2654
+ return this.check(Za(e, t));
2655
+ },
2656
+ superRefine(e, t) {
2657
+ return this.check(Qa(e, t));
2658
+ },
2659
+ overwrite(e) {
2660
+ return this.check(/* @__PURE__ */ N(e));
2661
+ },
2662
+ optional() {
2663
+ return Aa(this);
2664
+ },
2665
+ exactOptional() {
2666
+ return Ma(this);
2667
+ },
2668
+ nullable() {
2669
+ return Pa(this);
2670
+ },
2671
+ nullish() {
2672
+ return Aa(Pa(this));
2673
+ },
2674
+ nonoptional(e) {
2675
+ return Ba(this, e);
2676
+ },
2677
+ array() {
2678
+ return G(this);
2679
+ },
2680
+ or(e) {
2681
+ return q([this, e]);
2682
+ },
2683
+ and(e) {
2684
+ return Sa(this, e);
2685
+ },
2686
+ transform(e) {
2687
+ return Wa(this, Oa(e));
2688
+ },
2689
+ default(e) {
2690
+ return Ia(this, e);
2691
+ },
2692
+ prefault(e) {
2693
+ return Ra(this, e);
2694
+ },
2695
+ catch(e) {
2696
+ return Ha(this, e);
2697
+ },
2698
+ pipe(e) {
2699
+ return Wa(this, e);
2700
+ },
2701
+ readonly() {
2702
+ return Ka(this);
2703
+ },
2704
+ describe(e) {
2705
+ let t = this.clone();
2706
+ return j.add(t, { description: e }), t;
2707
+ },
2708
+ meta(...e) {
2709
+ if (e.length === 0) return j.get(this);
2710
+ let t = this.clone();
2711
+ return j.add(t, e[0]), t;
2712
+ },
2713
+ isOptional() {
2714
+ return this.safeParse(void 0).success;
2715
+ },
2716
+ isNullable() {
2717
+ return this.safeParse(null).success;
2718
+ },
2719
+ apply(e) {
2720
+ return e(this);
2721
+ }
2722
+ }), Object.defineProperty(e, "description", {
2513
2723
  get() {
2514
- return A.get(e)?.description;
2724
+ return j.get(e)?.description;
2515
2725
  },
2516
2726
  configurable: !0
2517
- }), e.meta = (...t) => {
2518
- if (t.length === 0) return A.get(e);
2519
- let n = e.clone();
2520
- return A.add(n, t[0]), n;
2521
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), Li = /* @__PURE__ */ e("_ZodString", (e, t) => {
2522
- kt.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Jr(e, t, n, r);
2727
+ }), e)), Wi = /* @__PURE__ */ o("_ZodString", (e, t) => {
2728
+ It.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ti(e, t, n, r);
2523
2729
  let n = e._zod.bag;
2524
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ Dr(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ Ar(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ jr(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ Mr(...t)), e.min = (...t) => e.check(/* @__PURE__ */ j(...t)), e.max = (...t) => e.check(/* @__PURE__ */ Tr(...t)), e.length = (...t) => e.check(/* @__PURE__ */ Er(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ j(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ Or(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ kr(t)), e.trim = () => e.check(/* @__PURE__ */ Pr()), e.normalize = (...t) => e.check(/* @__PURE__ */ Nr(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ Fr()), e.toUpperCase = () => e.check(/* @__PURE__ */ Ir()), e.slugify = () => e.check(/* @__PURE__ */ Lr());
2525
- }), Ri = /* @__PURE__ */ e("ZodString", (e, t) => {
2526
- kt.init(e, t), Li.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Un(zi, t)), e.url = (t) => e.check(/* @__PURE__ */ Yn(Vi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ ur(na, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Xn(Hi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Wn(Bi, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Gn(B, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Kn(B, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ qn(B, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Jn(B, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Zn(Ui, t)), e.guid = (t) => e.check(/* @__PURE__ */ Wn(Bi, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Qn(Wi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ $n(Gi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ er(Ki, t)), e.base64 = (t) => e.check(/* @__PURE__ */ sr($i, t)), e.base64url = (t) => e.check(/* @__PURE__ */ cr(ea, t)), e.xid = (t) => e.check(/* @__PURE__ */ tr(qi, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ nr(Ji, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ rr(Yi, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ ir(Xi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ ar(Zi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ or(Qi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ lr(ta, t)), e.datetime = (t) => e.check(_i(t)), e.date = (t) => e.check(yi(t)), e.time = (t) => e.check(xi(t)), e.duration = (t) => e.check(Ci(t));
2730
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, R(e, "_ZodString", {
2731
+ regex(...e) {
2732
+ return this.check(/* @__PURE__ */ Pr(...e));
2733
+ },
2734
+ includes(...e) {
2735
+ return this.check(/* @__PURE__ */ Lr(...e));
2736
+ },
2737
+ startsWith(...e) {
2738
+ return this.check(/* @__PURE__ */ Rr(...e));
2739
+ },
2740
+ endsWith(...e) {
2741
+ return this.check(/* @__PURE__ */ zr(...e));
2742
+ },
2743
+ min(...e) {
2744
+ return this.check(/* @__PURE__ */ M(...e));
2745
+ },
2746
+ max(...e) {
2747
+ return this.check(/* @__PURE__ */ Mr(...e));
2748
+ },
2749
+ length(...e) {
2750
+ return this.check(/* @__PURE__ */ Nr(...e));
2751
+ },
2752
+ nonempty(...e) {
2753
+ return this.check(/* @__PURE__ */ M(1, ...e));
2754
+ },
2755
+ lowercase(e) {
2756
+ return this.check(/* @__PURE__ */ Fr(e));
2757
+ },
2758
+ uppercase(e) {
2759
+ return this.check(/* @__PURE__ */ Ir(e));
2760
+ },
2761
+ trim() {
2762
+ return this.check(/* @__PURE__ */ Vr());
2763
+ },
2764
+ normalize(...e) {
2765
+ return this.check(/* @__PURE__ */ Br(...e));
2766
+ },
2767
+ toLowerCase() {
2768
+ return this.check(/* @__PURE__ */ Hr());
2769
+ },
2770
+ toUpperCase() {
2771
+ return this.check(/* @__PURE__ */ Ur());
2772
+ },
2773
+ slugify() {
2774
+ return this.check(/* @__PURE__ */ Wr());
2775
+ }
2776
+ });
2777
+ }), Gi = /* @__PURE__ */ o("ZodString", (e, t) => {
2778
+ It.init(e, t), Wi.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.url = (t) => e.check(/* @__PURE__ */ nr(Yi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ _r(ua, t)), e.emoji = (t) => e.check(/* @__PURE__ */ rr(Xi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Zn(qi, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Qn(Ji, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ $n(Ji, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ er(Ji, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ tr(Ji, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ ir(Zi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Zn(qi, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ar(Qi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ or($i, t)), e.ulid = (t) => e.check(/* @__PURE__ */ sr(ea, t)), e.base64 = (t) => e.check(/* @__PURE__ */ mr(sa, t)), e.base64url = (t) => e.check(/* @__PURE__ */ hr(ca, t)), e.xid = (t) => e.check(/* @__PURE__ */ cr(ta, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ lr(na, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ ur(ra, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ dr(ia, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ fr(aa, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ pr(oa, t)), e.e164 = (t) => e.check(/* @__PURE__ */ gr(la, t)), e.datetime = (t) => e.check(wi(t)), e.date = (t) => e.check(Ei(t)), e.time = (t) => e.check(Oi(t)), e.duration = (t) => e.check(Ai(t));
2527
2779
  });
2528
- function R(e) {
2529
- return /* @__PURE__ */ Hn(Ri, e);
2530
- }
2531
- var z = /* @__PURE__ */ e("ZodStringFormat", (e, t) => {
2532
- D.init(e, t), Li.init(e, t);
2533
- }), zi = /* @__PURE__ */ e("ZodEmail", (e, t) => {
2534
- Mt.init(e, t), z.init(e, t);
2535
- }), Bi = /* @__PURE__ */ e("ZodGUID", (e, t) => {
2536
- At.init(e, t), z.init(e, t);
2537
- }), B = /* @__PURE__ */ e("ZodUUID", (e, t) => {
2538
- jt.init(e, t), z.init(e, t);
2539
- }), Vi = /* @__PURE__ */ e("ZodURL", (e, t) => {
2540
- Nt.init(e, t), z.init(e, t);
2541
- }), Hi = /* @__PURE__ */ e("ZodEmoji", (e, t) => {
2542
- Pt.init(e, t), z.init(e, t);
2543
- }), Ui = /* @__PURE__ */ e("ZodNanoID", (e, t) => {
2544
- Ft.init(e, t), z.init(e, t);
2545
- }), Wi = /* @__PURE__ */ e("ZodCUID", (e, t) => {
2546
- It.init(e, t), z.init(e, t);
2547
- }), Gi = /* @__PURE__ */ e("ZodCUID2", (e, t) => {
2548
- Lt.init(e, t), z.init(e, t);
2549
- }), Ki = /* @__PURE__ */ e("ZodULID", (e, t) => {
2550
- Rt.init(e, t), z.init(e, t);
2551
- }), qi = /* @__PURE__ */ e("ZodXID", (e, t) => {
2552
- zt.init(e, t), z.init(e, t);
2553
- }), Ji = /* @__PURE__ */ e("ZodKSUID", (e, t) => {
2554
- Bt.init(e, t), z.init(e, t);
2555
- }), Yi = /* @__PURE__ */ e("ZodIPv4", (e, t) => {
2556
- Gt.init(e, t), z.init(e, t);
2557
- }), Xi = /* @__PURE__ */ e("ZodIPv6", (e, t) => {
2558
- Kt.init(e, t), z.init(e, t);
2559
- }), Zi = /* @__PURE__ */ e("ZodCIDRv4", (e, t) => {
2560
- qt.init(e, t), z.init(e, t);
2561
- }), Qi = /* @__PURE__ */ e("ZodCIDRv6", (e, t) => {
2562
- Jt.init(e, t), z.init(e, t);
2563
- }), $i = /* @__PURE__ */ e("ZodBase64", (e, t) => {
2564
- Xt.init(e, t), z.init(e, t);
2565
- }), ea = /* @__PURE__ */ e("ZodBase64URL", (e, t) => {
2566
- Qt.init(e, t), z.init(e, t);
2567
- }), ta = /* @__PURE__ */ e("ZodE164", (e, t) => {
2568
- $t.init(e, t), z.init(e, t);
2569
- }), na = /* @__PURE__ */ e("ZodJWT", (e, t) => {
2570
- tn.init(e, t), z.init(e, t);
2571
- }), ra = /* @__PURE__ */ e("ZodNumber", (e, t) => {
2572
- nn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yr(e, t, n, r), e.gt = (t, n) => e.check(/* @__PURE__ */ Sr(t, n)), e.gte = (t, n) => e.check(/* @__PURE__ */ Cr(t, n)), e.min = (t, n) => e.check(/* @__PURE__ */ Cr(t, n)), e.lt = (t, n) => e.check(/* @__PURE__ */ br(t, n)), e.lte = (t, n) => e.check(/* @__PURE__ */ xr(t, n)), e.max = (t, n) => e.check(/* @__PURE__ */ xr(t, n)), e.int = (t) => e.check(aa(t)), e.safe = (t) => e.check(aa(t)), e.positive = (t) => e.check(/* @__PURE__ */ Sr(0, t)), e.nonnegative = (t) => e.check(/* @__PURE__ */ Cr(0, t)), e.negative = (t) => e.check(/* @__PURE__ */ br(0, t)), e.nonpositive = (t) => e.check(/* @__PURE__ */ xr(0, t)), e.multipleOf = (t, n) => e.check(/* @__PURE__ */ wr(t, n)), e.step = (t, n) => e.check(/* @__PURE__ */ wr(t, n)), e.finite = () => e;
2780
+ function B(e) {
2781
+ return /* @__PURE__ */ Yn(Gi, e);
2782
+ }
2783
+ var V = /* @__PURE__ */ o("ZodStringFormat", (e, t) => {
2784
+ O.init(e, t), Wi.init(e, t);
2785
+ }), Ki = /* @__PURE__ */ o("ZodEmail", (e, t) => {
2786
+ zt.init(e, t), V.init(e, t);
2787
+ }), qi = /* @__PURE__ */ o("ZodGUID", (e, t) => {
2788
+ Lt.init(e, t), V.init(e, t);
2789
+ }), Ji = /* @__PURE__ */ o("ZodUUID", (e, t) => {
2790
+ Rt.init(e, t), V.init(e, t);
2791
+ }), Yi = /* @__PURE__ */ o("ZodURL", (e, t) => {
2792
+ Bt.init(e, t), V.init(e, t);
2793
+ }), Xi = /* @__PURE__ */ o("ZodEmoji", (e, t) => {
2794
+ Vt.init(e, t), V.init(e, t);
2795
+ }), Zi = /* @__PURE__ */ o("ZodNanoID", (e, t) => {
2796
+ Ht.init(e, t), V.init(e, t);
2797
+ }), Qi = /* @__PURE__ */ o("ZodCUID", (e, t) => {
2798
+ Ut.init(e, t), V.init(e, t);
2799
+ }), $i = /* @__PURE__ */ o("ZodCUID2", (e, t) => {
2800
+ Wt.init(e, t), V.init(e, t);
2801
+ }), ea = /* @__PURE__ */ o("ZodULID", (e, t) => {
2802
+ Gt.init(e, t), V.init(e, t);
2803
+ }), ta = /* @__PURE__ */ o("ZodXID", (e, t) => {
2804
+ Kt.init(e, t), V.init(e, t);
2805
+ }), na = /* @__PURE__ */ o("ZodKSUID", (e, t) => {
2806
+ qt.init(e, t), V.init(e, t);
2807
+ }), ra = /* @__PURE__ */ o("ZodIPv4", (e, t) => {
2808
+ Qt.init(e, t), V.init(e, t);
2809
+ }), ia = /* @__PURE__ */ o("ZodIPv6", (e, t) => {
2810
+ $t.init(e, t), V.init(e, t);
2811
+ }), aa = /* @__PURE__ */ o("ZodCIDRv4", (e, t) => {
2812
+ en.init(e, t), V.init(e, t);
2813
+ }), oa = /* @__PURE__ */ o("ZodCIDRv6", (e, t) => {
2814
+ tn.init(e, t), V.init(e, t);
2815
+ }), sa = /* @__PURE__ */ o("ZodBase64", (e, t) => {
2816
+ rn.init(e, t), V.init(e, t);
2817
+ }), ca = /* @__PURE__ */ o("ZodBase64URL", (e, t) => {
2818
+ on.init(e, t), V.init(e, t);
2819
+ }), la = /* @__PURE__ */ o("ZodE164", (e, t) => {
2820
+ sn.init(e, t), V.init(e, t);
2821
+ }), ua = /* @__PURE__ */ o("ZodJWT", (e, t) => {
2822
+ ln.init(e, t), V.init(e, t);
2823
+ }), da = /* @__PURE__ */ o("ZodNumber", (e, t) => {
2824
+ un.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ni(e, t, n, r), R(e, "ZodNumber", {
2825
+ gt(e, t) {
2826
+ return this.check(/* @__PURE__ */ kr(e, t));
2827
+ },
2828
+ gte(e, t) {
2829
+ return this.check(/* @__PURE__ */ Ar(e, t));
2830
+ },
2831
+ min(e, t) {
2832
+ return this.check(/* @__PURE__ */ Ar(e, t));
2833
+ },
2834
+ lt(e, t) {
2835
+ return this.check(/* @__PURE__ */ Dr(e, t));
2836
+ },
2837
+ lte(e, t) {
2838
+ return this.check(/* @__PURE__ */ Or(e, t));
2839
+ },
2840
+ max(e, t) {
2841
+ return this.check(/* @__PURE__ */ Or(e, t));
2842
+ },
2843
+ int(e) {
2844
+ return this.check(pa(e));
2845
+ },
2846
+ safe(e) {
2847
+ return this.check(pa(e));
2848
+ },
2849
+ positive(e) {
2850
+ return this.check(/* @__PURE__ */ kr(0, e));
2851
+ },
2852
+ nonnegative(e) {
2853
+ return this.check(/* @__PURE__ */ Ar(0, e));
2854
+ },
2855
+ negative(e) {
2856
+ return this.check(/* @__PURE__ */ Dr(0, e));
2857
+ },
2858
+ nonpositive(e) {
2859
+ return this.check(/* @__PURE__ */ Or(0, e));
2860
+ },
2861
+ multipleOf(e, t) {
2862
+ return this.check(/* @__PURE__ */ jr(e, t));
2863
+ },
2864
+ step(e, t) {
2865
+ return this.check(/* @__PURE__ */ jr(e, t));
2866
+ },
2867
+ finite() {
2868
+ return this;
2869
+ }
2870
+ });
2573
2871
  let n = e._zod.bag;
2574
2872
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
2575
2873
  });
2576
- function V(e) {
2577
- return /* @__PURE__ */ hr(ra, e);
2874
+ function H(e) {
2875
+ return /* @__PURE__ */ Sr(da, e);
2578
2876
  }
2579
- var ia = /* @__PURE__ */ e("ZodNumberFormat", (e, t) => {
2580
- rn.init(e, t), ra.init(e, t);
2877
+ var fa = /* @__PURE__ */ o("ZodNumberFormat", (e, t) => {
2878
+ dn.init(e, t), da.init(e, t);
2581
2879
  });
2582
- function aa(e) {
2583
- return /* @__PURE__ */ gr(ia, e);
2880
+ function pa(e) {
2881
+ return /* @__PURE__ */ Cr(fa, e);
2584
2882
  }
2585
- var oa = /* @__PURE__ */ e("ZodBoolean", (e, t) => {
2586
- an.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r);
2883
+ var ma = /* @__PURE__ */ o("ZodBoolean", (e, t) => {
2884
+ fn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r);
2587
2885
  });
2588
- function H(e) {
2589
- return /* @__PURE__ */ _r(oa, e);
2886
+ function U(e) {
2887
+ return /* @__PURE__ */ wr(ma, e);
2590
2888
  }
2591
- var sa = /* @__PURE__ */ e("ZodUnknown", (e, t) => {
2592
- on.init(e, t), L.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2889
+ var ha = /* @__PURE__ */ o("ZodUnknown", (e, t) => {
2890
+ pn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2593
2891
  });
2594
- function U() {
2595
- return /* @__PURE__ */ vr(sa);
2892
+ function W() {
2893
+ return /* @__PURE__ */ Tr(ha);
2596
2894
  }
2597
- var ca = /* @__PURE__ */ e("ZodNever", (e, t) => {
2598
- sn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zr(e, t, n, r);
2895
+ var ga = /* @__PURE__ */ o("ZodNever", (e, t) => {
2896
+ mn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ii(e, t, n, r);
2599
2897
  });
2600
- function la(e) {
2601
- return /* @__PURE__ */ yr(ca, e);
2898
+ function _a(e) {
2899
+ return /* @__PURE__ */ Er(ga, e);
2602
2900
  }
2603
- var ua = /* @__PURE__ */ e("ZodArray", (e, t) => {
2604
- ln.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ni(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ j(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ j(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ Tr(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ Er(t, n)), e.unwrap = () => e.element;
2605
- });
2606
- function W(e, t) {
2607
- return /* @__PURE__ */ Rr(ua, e, t);
2608
- }
2609
- var da = /* @__PURE__ */ e("ZodObject", (e, t) => {
2610
- pn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r), d(e, "shape", () => t.shape), e.keyof = () => q(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
2611
- ...e._zod.def,
2612
- catchall: t
2613
- }), e.passthrough = () => e.clone({
2614
- ...e._zod.def,
2615
- catchall: U()
2616
- }), e.loose = () => e.clone({
2617
- ...e._zod.def,
2618
- catchall: U()
2619
- }), e.strict = () => e.clone({
2620
- ...e._zod.def,
2621
- catchall: la()
2622
- }), e.strip = () => e.clone({
2623
- ...e._zod.def,
2624
- catchall: void 0
2625
- }), e.extend = (t) => fe(e, t), e.safeExtend = (t) => pe(e, t), e.merge = (t) => me(e, t), e.pick = (t) => ue(e, t), e.omit = (t) => de(e, t), e.partial = (...t) => he(xa, e, t[0]), e.required = (...t) => ge(ja, e, t[0]);
2901
+ var va = /* @__PURE__ */ o("ZodArray", (e, t) => {
2902
+ gn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e.element = t.element, R(e, "ZodArray", {
2903
+ min(e, t) {
2904
+ return this.check(/* @__PURE__ */ M(e, t));
2905
+ },
2906
+ nonempty(e) {
2907
+ return this.check(/* @__PURE__ */ M(1, e));
2908
+ },
2909
+ max(e, t) {
2910
+ return this.check(/* @__PURE__ */ Mr(e, t));
2911
+ },
2912
+ length(e, t) {
2913
+ return this.check(/* @__PURE__ */ Nr(e, t));
2914
+ },
2915
+ unwrap() {
2916
+ return this.element;
2917
+ }
2918
+ });
2626
2919
  });
2627
2920
  function G(e, t) {
2628
- return new da({
2921
+ return /* @__PURE__ */ Gr(va, e, t);
2922
+ }
2923
+ var ya = /* @__PURE__ */ o("ZodObject", (e, t) => {
2924
+ bn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), m(e, "shape", () => t.shape), R(e, "ZodObject", {
2925
+ keyof() {
2926
+ return J(Object.keys(this._zod.def.shape));
2927
+ },
2928
+ catchall(e) {
2929
+ return this.clone({
2930
+ ...this._zod.def,
2931
+ catchall: e
2932
+ });
2933
+ },
2934
+ passthrough() {
2935
+ return this.clone({
2936
+ ...this._zod.def,
2937
+ catchall: W()
2938
+ });
2939
+ },
2940
+ loose() {
2941
+ return this.clone({
2942
+ ...this._zod.def,
2943
+ catchall: W()
2944
+ });
2945
+ },
2946
+ strict() {
2947
+ return this.clone({
2948
+ ...this._zod.def,
2949
+ catchall: _a()
2950
+ });
2951
+ },
2952
+ strip() {
2953
+ return this.clone({
2954
+ ...this._zod.def,
2955
+ catchall: void 0
2956
+ });
2957
+ },
2958
+ extend(e) {
2959
+ return me(this, e);
2960
+ },
2961
+ safeExtend(e) {
2962
+ return he(this, e);
2963
+ },
2964
+ merge(e) {
2965
+ return ge(this, e);
2966
+ },
2967
+ pick(e) {
2968
+ return fe(this, e);
2969
+ },
2970
+ omit(e) {
2971
+ return pe(this, e);
2972
+ },
2973
+ partial(...e) {
2974
+ return _e(ka, this, e[0]);
2975
+ },
2976
+ required(...e) {
2977
+ return ve(za, this, e[0]);
2978
+ }
2979
+ });
2980
+ });
2981
+ function K(e, t) {
2982
+ return new ya({
2629
2983
  type: "object",
2630
2984
  shape: e ?? {},
2631
- ..._(t)
2985
+ ...x(t)
2632
2986
  });
2633
2987
  }
2634
- var fa = /* @__PURE__ */ e("ZodUnion", (e, t) => {
2635
- hn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ii(e, t, n, r), e.options = t.options;
2988
+ var ba = /* @__PURE__ */ o("ZodUnion", (e, t) => {
2989
+ Sn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), e.options = t.options;
2636
2990
  });
2637
- function K(e, t) {
2638
- return new fa({
2991
+ function q(e, t) {
2992
+ return new ba({
2639
2993
  type: "union",
2640
2994
  options: e,
2641
- ..._(t)
2995
+ ...x(t)
2642
2996
  });
2643
2997
  }
2644
- var pa = /* @__PURE__ */ e("ZodIntersection", (e, t) => {
2645
- gn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r);
2998
+ var xa = /* @__PURE__ */ o("ZodIntersection", (e, t) => {
2999
+ Cn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r);
2646
3000
  });
2647
- function ma(e, t) {
2648
- return new pa({
3001
+ function Sa(e, t) {
3002
+ return new xa({
2649
3003
  type: "intersection",
2650
3004
  left: e,
2651
3005
  right: t
2652
3006
  });
2653
3007
  }
2654
- var ha = /* @__PURE__ */ e("ZodRecord", (e, t) => {
2655
- yn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
3008
+ var Ca = /* @__PURE__ */ o("ZodRecord", (e, t) => {
3009
+ En.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
2656
3010
  });
2657
- function ga(e, t, n) {
2658
- return new ha({
3011
+ function wa(e, t, n) {
3012
+ return !t || !t._zod ? new Ca({
3013
+ type: "record",
3014
+ keyType: B(),
3015
+ valueType: e,
3016
+ ...x(t)
3017
+ }) : new Ca({
2659
3018
  type: "record",
2660
3019
  keyType: e,
2661
3020
  valueType: t,
2662
- ..._(n)
3021
+ ...x(n)
2663
3022
  });
2664
3023
  }
2665
- var _a = /* @__PURE__ */ e("ZodEnum", (e, t) => {
2666
- bn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qr(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
3024
+ var Ta = /* @__PURE__ */ o("ZodEnum", (e, t) => {
3025
+ Dn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2667
3026
  let n = new Set(Object.keys(t.entries));
2668
3027
  e.extract = (e, r) => {
2669
3028
  let i = {};
2670
3029
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
2671
3030
  else throw Error(`Key ${r} not found in enum`);
2672
- return new _a({
3031
+ return new Ta({
2673
3032
  ...t,
2674
3033
  checks: [],
2675
- ..._(r),
3034
+ ...x(r),
2676
3035
  entries: i
2677
3036
  });
2678
3037
  }, e.exclude = (e, r) => {
2679
3038
  let i = { ...t.entries };
2680
3039
  for (let t of e) if (n.has(t)) delete i[t];
2681
3040
  else throw Error(`Key ${t} not found in enum`);
2682
- return new _a({
3041
+ return new Ta({
2683
3042
  ...t,
2684
3043
  checks: [],
2685
- ..._(r),
3044
+ ...x(r),
2686
3045
  entries: i
2687
3046
  });
2688
3047
  };
2689
3048
  });
2690
- function q(e, t) {
2691
- return new _a({
3049
+ function J(e, t) {
3050
+ return new Ta({
2692
3051
  type: "enum",
2693
3052
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2694
- ..._(t)
3053
+ ...x(t)
2695
3054
  });
2696
3055
  }
2697
- var va = /* @__PURE__ */ e("ZodLiteral", (e, t) => {
2698
- xn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => $r(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
3056
+ var Ea = /* @__PURE__ */ o("ZodLiteral", (e, t) => {
3057
+ On.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
2699
3058
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
2700
3059
  return t.values[0];
2701
3060
  } });
2702
3061
  });
2703
- function J(e, t) {
2704
- return new va({
3062
+ function Y(e, t) {
3063
+ return new Ea({
2705
3064
  type: "literal",
2706
3065
  values: Array.isArray(e) ? e : [e],
2707
- ..._(t)
3066
+ ...x(t)
2708
3067
  });
2709
3068
  }
2710
- var ya = /* @__PURE__ */ e("ZodTransform", (e, t) => {
2711
- Sn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ti(e, t, n, r), e._zod.parse = (r, i) => {
2712
- if (i.direction === "backward") throw new n(e.constructor.name);
2713
- r.addIssue = (n) => {
2714
- if (typeof n == "string") r.issues.push(S(n, r.value, t));
3069
+ var Da = /* @__PURE__ */ o("ZodTransform", (e, t) => {
3070
+ kn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r), e._zod.parse = (n, r) => {
3071
+ if (r.direction === "backward") throw new c(e.constructor.name);
3072
+ n.addIssue = (r) => {
3073
+ if (typeof r == "string") n.issues.push(T(r, n.value, t));
2715
3074
  else {
2716
- let t = n;
2717
- t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= r.value, t.inst ??= e, r.issues.push(S(t));
3075
+ let t = r;
3076
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(T(t));
2718
3077
  }
2719
3078
  };
2720
- let a = t.transform(r.value, r);
2721
- return a instanceof Promise ? a.then((e) => (r.value = e, r)) : (r.value = a, r);
3079
+ let i = t.transform(n.value, n);
3080
+ return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
2722
3081
  };
2723
3082
  });
2724
- function ba(e) {
2725
- return new ya({
3083
+ function Oa(e) {
3084
+ return new Da({
2726
3085
  type: "transform",
2727
3086
  transform: e
2728
3087
  });
2729
3088
  }
2730
- var xa = /* @__PURE__ */ e("ZodOptional", (e, t) => {
2731
- wn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3089
+ var ka = /* @__PURE__ */ o("ZodOptional", (e, t) => {
3090
+ jn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2732
3091
  });
2733
- function Sa(e) {
2734
- return new xa({
3092
+ function Aa(e) {
3093
+ return new ka({
2735
3094
  type: "optional",
2736
3095
  innerType: e
2737
3096
  });
2738
3097
  }
2739
- var Ca = /* @__PURE__ */ e("ZodExactOptional", (e, t) => {
2740
- Tn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3098
+ var ja = /* @__PURE__ */ o("ZodExactOptional", (e, t) => {
3099
+ Mn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2741
3100
  });
2742
- function wa(e) {
2743
- return new Ca({
3101
+ function Ma(e) {
3102
+ return new ja({
2744
3103
  type: "optional",
2745
3104
  innerType: e
2746
3105
  });
2747
3106
  }
2748
- var Ta = /* @__PURE__ */ e("ZodNullable", (e, t) => {
2749
- En.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3107
+ var Na = /* @__PURE__ */ o("ZodNullable", (e, t) => {
3108
+ Nn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2750
3109
  });
2751
- function Ea(e) {
2752
- return new Ta({
3110
+ function Pa(e) {
3111
+ return new Na({
2753
3112
  type: "nullable",
2754
3113
  innerType: e
2755
3114
  });
2756
3115
  }
2757
- var Da = /* @__PURE__ */ e("ZodDefault", (e, t) => {
2758
- Dn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3116
+ var Fa = /* @__PURE__ */ o("ZodDefault", (e, t) => {
3117
+ Pn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2759
3118
  });
2760
- function Oa(e, t) {
2761
- return new Da({
3119
+ function Ia(e, t) {
3120
+ return new Fa({
2762
3121
  type: "default",
2763
3122
  innerType: e,
2764
3123
  get defaultValue() {
2765
- return typeof t == "function" ? t() : oe(t);
3124
+ return typeof t == "function" ? t() : ce(t);
2766
3125
  }
2767
3126
  });
2768
3127
  }
2769
- var ka = /* @__PURE__ */ e("ZodPrefault", (e, t) => {
2770
- kn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3128
+ var La = /* @__PURE__ */ o("ZodPrefault", (e, t) => {
3129
+ In.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2771
3130
  });
2772
- function Aa(e, t) {
2773
- return new ka({
3131
+ function Ra(e, t) {
3132
+ return new La({
2774
3133
  type: "prefault",
2775
3134
  innerType: e,
2776
3135
  get defaultValue() {
2777
- return typeof t == "function" ? t() : oe(t);
3136
+ return typeof t == "function" ? t() : ce(t);
2778
3137
  }
2779
3138
  });
2780
3139
  }
2781
- var ja = /* @__PURE__ */ e("ZodNonOptional", (e, t) => {
2782
- An.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3140
+ var za = /* @__PURE__ */ o("ZodNonOptional", (e, t) => {
3141
+ Ln.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2783
3142
  });
2784
- function Ma(e, t) {
2785
- return new ja({
3143
+ function Ba(e, t) {
3144
+ return new za({
2786
3145
  type: "nonoptional",
2787
3146
  innerType: e,
2788
- ..._(t)
3147
+ ...x(t)
2789
3148
  });
2790
3149
  }
2791
- var Na = /* @__PURE__ */ e("ZodCatch", (e, t) => {
2792
- Mn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3150
+ var Va = /* @__PURE__ */ o("ZodCatch", (e, t) => {
3151
+ zn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2793
3152
  });
2794
- function Pa(e, t) {
2795
- return new Na({
3153
+ function Ha(e, t) {
3154
+ return new Va({
2796
3155
  type: "catch",
2797
3156
  innerType: e,
2798
3157
  catchValue: typeof t == "function" ? t : () => t
2799
3158
  });
2800
3159
  }
2801
- var Fa = /* @__PURE__ */ e("ZodPipe", (e, t) => {
2802
- Nn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.in = t.in, e.out = t.out;
3160
+ var Ua = /* @__PURE__ */ o("ZodPipe", (e, t) => {
3161
+ Bn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.in = t.in, e.out = t.out;
2803
3162
  });
2804
- function Ia(e, t) {
2805
- return new Fa({
3163
+ function Wa(e, t) {
3164
+ return new Ua({
2806
3165
  type: "pipe",
2807
3166
  in: e,
2808
3167
  out: t
2809
3168
  });
2810
3169
  }
2811
- var La = /* @__PURE__ */ e("ZodReadonly", (e, t) => {
2812
- Pn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3170
+ var Ga = /* @__PURE__ */ o("ZodReadonly", (e, t) => {
3171
+ Vn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2813
3172
  });
2814
- function Ra(e) {
2815
- return new La({
3173
+ function Ka(e) {
3174
+ return new Ga({
2816
3175
  type: "readonly",
2817
3176
  innerType: e
2818
3177
  });
2819
3178
  }
2820
- var za = /* @__PURE__ */ e("ZodLazy", (e, t) => {
2821
- In.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.unwrap = () => e._zod.def.getter();
3179
+ var qa = /* @__PURE__ */ o("ZodLazy", (e, t) => {
3180
+ Un.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Si(e, t, n, r), e.unwrap = () => e._zod.def.getter();
2822
3181
  });
2823
- function Ba(e) {
2824
- return new za({
3182
+ function Ja(e) {
3183
+ return new qa({
2825
3184
  type: "lazy",
2826
3185
  getter: e
2827
3186
  });
2828
3187
  }
2829
- var Va = /* @__PURE__ */ e("ZodCustom", (e, t) => {
2830
- Ln.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ei(e, t, n, r);
3188
+ var Ya = /* @__PURE__ */ o("ZodCustom", (e, t) => {
3189
+ Wn.init(e, t), z.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r);
2831
3190
  });
2832
- function Ha(e, t) {
2833
- return /* @__PURE__ */ zr(Va, e ?? (() => !0), t);
3191
+ function Xa(e, t) {
3192
+ return /* @__PURE__ */ Kr(Ya, e ?? (() => !0), t);
2834
3193
  }
2835
- function Ua(e, t = {}) {
2836
- return /* @__PURE__ */ Br(Va, e, t);
3194
+ function Za(e, t = {}) {
3195
+ return /* @__PURE__ */ qr(Ya, e, t);
2837
3196
  }
2838
- function Wa(e) {
2839
- return /* @__PURE__ */ Vr(e);
3197
+ function Qa(e, t) {
3198
+ return /* @__PURE__ */ Jr(e, t);
2840
3199
  }
2841
3200
  //#endregion
2842
3201
  //#region src/runtime/constants.ts
2843
- var Ga = {
3202
+ var $a = {
2844
3203
  classifier: "classifier",
2845
3204
  regressor: "regressor"
2846
- }, Ka = {
2847
- classifier: Ga.classifier,
2848
- regressor: Ga.regressor
2849
- }, qa = {
3205
+ }, eo = {
3206
+ classifier: $a.classifier,
3207
+ regressor: $a.regressor
3208
+ }, to = {
2850
3209
  classifier: "Classifier report",
2851
3210
  regressor: "Regressor report"
2852
- }, Y = {
3211
+ }, X = {
2853
3212
  invalidNumber: "Value must be a valid number.",
2854
3213
  textPatternMismatch: "Value does not match the expected pattern.",
2855
3214
  booleanRequired: "This field must be accepted.",
@@ -2871,35 +3230,35 @@ var Ga = {
2871
3230
  timestampsUnique: "Timestamps must be unique.",
2872
3231
  timestampsAscending: "Timestamps must be sorted in ascending order.",
2873
3232
  timestampsDescending: "Timestamps must be sorted in descending order."
2874
- }, Ja = ga(R(), U()).optional(), Ya = Ha((e) => typeof e == "function"), Xa = q([
3233
+ }, no = wa(B(), W()).optional(), ro = Xa((e) => typeof e == "function"), io = J([
2875
3234
  "idle",
2876
3235
  "editing",
2877
3236
  "validating",
2878
3237
  "submitting",
2879
3238
  "success",
2880
3239
  "error"
2881
- ]), X = Ba(() => K([
2882
- G({
2883
- kind: J("field-value"),
2884
- field: R().min(1),
2885
- equals: U().optional(),
2886
- notEquals: U().optional(),
2887
- greaterThan: U().optional(),
2888
- greaterThanOrEqual: U().optional(),
2889
- lessThan: U().optional(),
2890
- lessThanOrEqual: U().optional(),
2891
- in: W(U()).optional(),
2892
- notIn: W(U()).optional(),
2893
- empty: H().optional(),
2894
- notEmpty: H().optional(),
2895
- truthy: H().optional(),
2896
- falsy: H().optional()
3240
+ ]), ao = Ja(() => q([
3241
+ K({
3242
+ kind: Y("field-value"),
3243
+ field: B().min(1),
3244
+ equals: W().optional(),
3245
+ notEquals: W().optional(),
3246
+ greaterThan: W().optional(),
3247
+ greaterThanOrEqual: W().optional(),
3248
+ lessThan: W().optional(),
3249
+ lessThanOrEqual: W().optional(),
3250
+ in: G(W()).optional(),
3251
+ notIn: G(W()).optional(),
3252
+ empty: U().optional(),
3253
+ notEmpty: U().optional(),
3254
+ truthy: U().optional(),
3255
+ falsy: U().optional()
2897
3256
  }),
2898
- G({
2899
- kind: J("field-comparison"),
2900
- field: R().min(1),
2901
- otherField: R().min(1),
2902
- operator: q([
3257
+ K({
3258
+ kind: Y("field-comparison"),
3259
+ field: B().min(1),
3260
+ otherField: B().min(1),
3261
+ operator: J([
2903
3262
  "eq",
2904
3263
  "neq",
2905
3264
  "gt",
@@ -2908,60 +3267,60 @@ var Ga = {
2908
3267
  "lte"
2909
3268
  ])
2910
3269
  }),
2911
- G({
2912
- kind: J("form-status"),
2913
- equals: K([Xa, W(Xa).min(1)])
3270
+ K({
3271
+ kind: Y("form-status"),
3272
+ equals: q([io, G(io).min(1)])
2914
3273
  }),
2915
- G({
2916
- kind: J("submit-count"),
2917
- eq: V().int().nonnegative().optional(),
2918
- gte: V().int().nonnegative().optional(),
2919
- lte: V().int().nonnegative().optional()
3274
+ K({
3275
+ kind: Y("submit-count"),
3276
+ eq: H().int().nonnegative().optional(),
3277
+ gte: H().int().nonnegative().optional(),
3278
+ lte: H().int().nonnegative().optional()
2920
3279
  }),
2921
- G({
2922
- kind: J("all"),
2923
- conditions: W(X).min(1)
3280
+ K({
3281
+ kind: Y("all"),
3282
+ conditions: G(ao).min(1)
2924
3283
  }),
2925
- G({
2926
- kind: J("any"),
2927
- conditions: W(X).min(1)
3284
+ K({
3285
+ kind: Y("any"),
3286
+ conditions: G(ao).min(1)
2928
3287
  }),
2929
- G({
2930
- kind: J("not"),
2931
- condition: X
3288
+ K({
3289
+ kind: Y("not"),
3290
+ condition: ao
2932
3291
  })
2933
- ])), Za = K([Ya, X]), Z = {
2934
- id: R().optional(),
2935
- label: R().min(1),
2936
- description: R().optional(),
2937
- showDescriptionInline: H().optional().default(!1),
2938
- required: H().optional().default(!1),
2939
- disabled: H().optional().default(!1),
2940
- hidden: H().optional().default(!1),
2941
- readOnly: H().optional().default(!1),
2942
- disabledWhen: Za.optional(),
2943
- hiddenWhen: Za.optional(),
2944
- readOnlyWhen: Za.optional(),
2945
- asyncValidationDebounceMs: V().int().nonnegative().optional(),
2946
- inactiveFieldPolicy: q([
3292
+ ])), oo = q([ro, ao]), Z = {
3293
+ id: B().optional(),
3294
+ label: B().min(1),
3295
+ description: B().optional(),
3296
+ showDescriptionInline: U().optional().default(!1),
3297
+ required: U().optional().default(!1),
3298
+ disabled: U().optional().default(!1),
3299
+ hidden: U().optional().default(!1),
3300
+ readOnly: U().optional().default(!1),
3301
+ disabledWhen: oo.optional(),
3302
+ hiddenWhen: oo.optional(),
3303
+ readOnlyWhen: oo.optional(),
3304
+ asyncValidationDebounceMs: H().int().nonnegative().optional(),
3305
+ inactiveFieldPolicy: J([
2947
3306
  "include",
2948
3307
  "omit",
2949
3308
  "reset-on-hide"
2950
3309
  ]).optional(),
2951
- includeInSubmission: H().optional(),
2952
- valuePath: K([R().min(1), W(R().min(1)).min(1)]).optional(),
2953
- defaultValue: U().optional(),
2954
- ui: Ja
2955
- }, Qa = {
2956
- id: R().optional(),
2957
- label: R().optional(),
2958
- description: R().optional(),
2959
- source: R().optional(),
2960
- ui: Ja
2961
- }, $a = K([R(), G({
2962
- label: R(),
2963
- value: R()
2964
- })]), eo = (e, t) => {
3310
+ includeInSubmission: U().optional(),
3311
+ valuePath: q([B().min(1), G(B().min(1)).min(1)]).optional(),
3312
+ defaultValue: W().optional(),
3313
+ ui: no
3314
+ }, so = {
3315
+ id: B().optional(),
3316
+ label: B().optional(),
3317
+ description: B().optional(),
3318
+ source: B().optional(),
3319
+ ui: no
3320
+ }, co = q([B(), K({
3321
+ label: B(),
3322
+ value: B()
3323
+ })]), lo = (e, t) => {
2965
3324
  let n = e.raw;
2966
3325
  if (!(typeof n != "object" || !n || !("outputs" in n) || !Array.isArray(n.outputs))) return n.outputs.find((e) => e.type === t);
2967
3326
  }, Q = (e, t, n) => ({
@@ -2979,11 +3338,11 @@ var Ga = {
2979
3338
  }
2980
3339
  }), $ = {
2981
3340
  kind: "boolean",
2982
- schema: G({
2983
- kind: J("boolean"),
3341
+ schema: K({
3342
+ kind: Y("boolean"),
2984
3343
  ...Z,
2985
- trueLabel: R().optional(),
2986
- falseLabel: R().optional()
3344
+ trueLabel: B().optional(),
3345
+ falseLabel: B().optional()
2987
3346
  }),
2988
3347
  getDefaultValue(e) {
2989
3348
  return typeof e.defaultValue == "boolean" ? e.defaultValue : !1;
@@ -2992,7 +3351,7 @@ var Ga = {
2992
3351
  return !!e;
2993
3352
  },
2994
3353
  validate(e, t) {
2995
- return t.required && e !== !0 ? [Y.booleanRequired] : [];
3354
+ return t.required && e !== !0 ? [X.booleanRequired] : [];
2996
3355
  },
2997
3356
  describe(e, t) {
2998
3357
  return Q("boolean-field", e, {
@@ -3003,12 +3362,12 @@ var Ga = {
3003
3362
  errors: t.state.errors
3004
3363
  });
3005
3364
  }
3006
- }, to = {
3365
+ }, uo = {
3007
3366
  kind: "category",
3008
- schema: G({
3009
- kind: J("category"),
3367
+ schema: K({
3368
+ kind: Y("category"),
3010
3369
  ...Z,
3011
- options: W($a).min(1)
3370
+ options: G(co).min(1)
3012
3371
  }),
3013
3372
  getDefaultValue(e) {
3014
3373
  return typeof e.defaultValue == "string" ? e.defaultValue : null;
@@ -3017,7 +3376,7 @@ var Ga = {
3017
3376
  return e == null || e === "" ? null : typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? `${e}` : null;
3018
3377
  },
3019
3378
  validate(e, t) {
3020
- return e === null || t.options.map((e) => typeof e == "string" ? e : e.value).includes(e) ? [] : [Y.categoryOptionMismatch];
3379
+ return e === null || t.options.map((e) => typeof e == "string" ? e : e.value).includes(e) ? [] : [X.categoryOptionMismatch];
3021
3380
  },
3022
3381
  describe(e, t) {
3023
3382
  return Q("category-field", e, {
@@ -3027,17 +3386,17 @@ var Ga = {
3027
3386
  errors: t.state.errors
3028
3387
  });
3029
3388
  }
3030
- }, no = G({
3031
- label: R(),
3032
- value: R(),
3033
- mapping: ga(R(), U())
3034
- }), ro = {
3389
+ }, fo = K({
3390
+ label: B(),
3391
+ value: B(),
3392
+ mapping: wa(B(), W())
3393
+ }), po = {
3035
3394
  kind: "mapped-category",
3036
- schema: G({
3037
- kind: J("mapped-category"),
3395
+ schema: K({
3396
+ kind: Y("mapped-category"),
3038
3397
  ...Z,
3039
- includeInSubmission: H().optional().default(!1),
3040
- options: W(no).min(1)
3398
+ includeInSubmission: U().optional().default(!1),
3399
+ options: G(fo).min(1)
3041
3400
  }),
3042
3401
  getDefaultValue(e) {
3043
3402
  return typeof e.defaultValue == "string" ? e.defaultValue : null;
@@ -3046,7 +3405,7 @@ var Ga = {
3046
3405
  return e == null || e === "" ? null : typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? `${e}` : null;
3047
3406
  },
3048
3407
  validate(e, t) {
3049
- return e === null || t.options.map((e) => e.value).includes(e) ? [] : [Y.categoryOptionMismatch];
3408
+ return e === null || t.options.map((e) => e.value).includes(e) ? [] : [X.categoryOptionMismatch];
3050
3409
  },
3051
3410
  describe(e, t) {
3052
3411
  return Q("category-field", e, {
@@ -3059,57 +3418,32 @@ var Ga = {
3059
3418
  errors: t.state.errors
3060
3419
  });
3061
3420
  }
3062
- }, io = (e) => typeof e == "object" && !!e && !Array.isArray(e), ao = (e) => typeof e == "object" && !!e || typeof e == "function", oo = (e) => ao(e) && "then" in e && typeof e.then == "function", so = (e) => e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : e instanceof Date ? Number.isNaN(e.getTime()) : !1, co = (e) => {
3063
- if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
3064
- if (typeof e == "string" || typeof e == "number") {
3065
- let t = new Date(e);
3066
- return Number.isNaN(t.getTime()) ? null : t;
3067
- }
3068
- return null;
3069
- }, lo = (e) => e, uo = (e) => {
3070
- let t = typeof ArrayBuffer < "u" && ArrayBuffer.isView(e), n = typeof ArrayBuffer < "u" && e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer, r = typeof Blob < "u" && e instanceof Blob || typeof File < "u" && e instanceof File;
3071
- if (e !== null && (typeof e == "object" || typeof e == "function") && !t && !n && !r && !Object.isFrozen(e)) {
3072
- Object.freeze(e);
3073
- for (let t of Object.values(e)) uo(t);
3074
- }
3075
- return e;
3076
- }, fo = (e, t) => e <= 0 ? Promise.resolve() : new Promise((n, r) => {
3077
- let i = setTimeout(() => {
3078
- t?.removeEventListener("abort", a), n();
3079
- }, e), a = () => {
3080
- clearTimeout(i), r(t?.reason ?? /* @__PURE__ */ Error("Operation aborted."));
3081
- };
3082
- if (t?.aborted) {
3083
- a();
3084
- return;
3085
- }
3086
- t?.addEventListener("abort", a, { once: !0 });
3087
- }), po = {
3421
+ }, mo = {
3088
3422
  kind: "date",
3089
- schema: G({
3090
- kind: J("date"),
3423
+ schema: K({
3424
+ kind: Y("date"),
3091
3425
  ...Z,
3092
- min: R().optional(),
3093
- max: R().optional(),
3094
- step: V().positive().optional()
3426
+ min: B().optional(),
3427
+ max: B().optional(),
3428
+ step: H().positive().optional()
3095
3429
  }),
3096
- getDefaultValue(e) {
3097
- return co(e.defaultValue) ?? null;
3430
+ getDefaultValue(t) {
3431
+ return e(t.defaultValue) ?? null;
3098
3432
  },
3099
- normalizeValue(e) {
3100
- return co(e);
3433
+ normalizeValue(t) {
3434
+ return e(t);
3101
3435
  },
3102
3436
  serializeValue(e) {
3103
3437
  return e instanceof Date ? e.toISOString() : e;
3104
3438
  },
3105
- validate(e, t) {
3106
- let n = [], r = co(t.min), i = co(t.max);
3107
- if (r && i && r.getTime() > i.getTime() && n.push(Y.invalidDateRange), e === null) return n;
3108
- if (r && e.getTime() < r.getTime() && n.push(Y.dateOnOrAfter(String(t.min))), i && e.getTime() > i.getTime() && n.push(Y.dateOnOrBefore(String(t.max))), t.step !== void 0) {
3109
- let i = r ?? /* @__PURE__ */ new Date("1970-01-01T00:00:00Z");
3110
- Math.round(Math.abs(e.getTime() - i.getTime()) / 864e5) % t.step !== 0 && n.push(Y.stepDate(t.step));
3439
+ validate(t, n) {
3440
+ let r = [], i = e(n.min), a = e(n.max);
3441
+ if (i && a && i.getTime() > a.getTime() && r.push(X.invalidDateRange), t === null) return r;
3442
+ if (i && t.getTime() < i.getTime() && r.push(X.dateOnOrAfter(String(n.min))), a && t.getTime() > a.getTime() && r.push(X.dateOnOrBefore(String(n.max))), n.step !== void 0) {
3443
+ let e = i ?? /* @__PURE__ */ new Date("1970-01-01T00:00:00Z");
3444
+ Math.round(Math.abs(t.getTime() - e.getTime()) / 864e5) % n.step !== 0 && r.push(X.stepDate(n.step));
3111
3445
  }
3112
- return n;
3446
+ return r;
3113
3447
  },
3114
3448
  describe(e, t) {
3115
3449
  return Q("date-field", e, {
@@ -3121,15 +3455,15 @@ var Ga = {
3121
3455
  errors: t.state.errors
3122
3456
  });
3123
3457
  }
3124
- }, mo = {
3458
+ }, ho = {
3125
3459
  kind: "long-text",
3126
- schema: G({
3127
- kind: J("long-text"),
3460
+ schema: K({
3461
+ kind: Y("long-text"),
3128
3462
  ...Z,
3129
- placeholder: R().optional(),
3130
- minLength: V().int().nonnegative().optional(),
3131
- maxLength: V().int().nonnegative().optional(),
3132
- rows: V().int().positive().optional()
3463
+ placeholder: B().optional(),
3464
+ minLength: H().int().nonnegative().optional(),
3465
+ maxLength: H().int().nonnegative().optional(),
3466
+ rows: H().int().positive().optional()
3133
3467
  }),
3134
3468
  getDefaultValue(e) {
3135
3469
  return typeof e.defaultValue == "string" ? e.defaultValue : "";
@@ -3139,7 +3473,7 @@ var Ga = {
3139
3473
  },
3140
3474
  validate(e, t) {
3141
3475
  let n = [];
3142
- return t.minLength !== void 0 && t.maxLength !== void 0 && t.minLength > t.maxLength && n.push(Y.invalidTextLengthRange), e.length === 0 ? n : (t.minLength !== void 0 && e.length < t.minLength && n.push(Y.minLength(t.minLength)), t.maxLength !== void 0 && e.length > t.maxLength && n.push(Y.maxLength(t.maxLength)), n);
3476
+ return t.minLength !== void 0 && t.maxLength !== void 0 && t.minLength > t.maxLength && n.push(X.invalidTextLengthRange), e.length === 0 ? n : (t.minLength !== void 0 && e.length < t.minLength && n.push(X.minLength(t.minLength)), t.maxLength !== void 0 && e.length > t.maxLength && n.push(X.maxLength(t.maxLength)), n);
3143
3477
  },
3144
3478
  describe(e, t) {
3145
3479
  return Q("long-text-field", e, {
@@ -3152,13 +3486,13 @@ var Ga = {
3152
3486
  errors: t.state.errors
3153
3487
  });
3154
3488
  }
3155
- }, ho = {
3489
+ }, go = {
3156
3490
  kind: "multi-choice",
3157
- schema: G({
3158
- kind: J("multi-choice"),
3491
+ schema: K({
3492
+ kind: Y("multi-choice"),
3159
3493
  ...Z,
3160
- options: W($a).min(1),
3161
- layout: q(["horizontal", "vertical"]).optional()
3494
+ options: G(co).min(1),
3495
+ layout: J(["horizontal", "vertical"]).optional()
3162
3496
  }),
3163
3497
  getDefaultValue(e) {
3164
3498
  return Array.isArray(e.defaultValue) ? e.defaultValue.filter((e) => typeof e == "string").map(String) : [];
@@ -3175,7 +3509,7 @@ var Ga = {
3175
3509
  validate(e, t) {
3176
3510
  if (e.length === 0) return [];
3177
3511
  let n = t.options.map((e) => typeof e == "string" ? e : e.value);
3178
- return e.filter((e) => !n.includes(e)).length > 0 ? [Y.categoryOptionMismatch] : [];
3512
+ return e.filter((e) => !n.includes(e)).length > 0 ? [X.categoryOptionMismatch] : [];
3179
3513
  },
3180
3514
  describe(e, t) {
3181
3515
  return Q("multi-choice-field", e, {
@@ -3186,16 +3520,16 @@ var Ga = {
3186
3520
  errors: t.state.errors
3187
3521
  });
3188
3522
  }
3189
- }, go = {
3523
+ }, _o = {
3190
3524
  kind: "number",
3191
- schema: G({
3192
- kind: J("number"),
3525
+ schema: K({
3526
+ kind: Y("number"),
3193
3527
  ...Z,
3194
- min: V().optional(),
3195
- max: V().optional(),
3196
- step: V().positive().optional(),
3197
- unit: R().optional(),
3198
- placeholder: R().optional()
3528
+ min: H().optional(),
3529
+ max: H().optional(),
3530
+ step: H().positive().optional(),
3531
+ unit: B().optional(),
3532
+ placeholder: B().optional()
3199
3533
  }),
3200
3534
  getDefaultValue(e) {
3201
3535
  return typeof e.defaultValue == "number" ? e.defaultValue : null;
@@ -3214,11 +3548,11 @@ var Ga = {
3214
3548
  },
3215
3549
  validate(e, t) {
3216
3550
  let n = [];
3217
- if (t.min !== void 0 && t.max !== void 0 && t.min > t.max && n.push(Y.invalidNumericRange), e === null) return n;
3218
- if (typeof e != "number") return n.push(Y.invalidNumber), n;
3219
- if (t.min !== void 0 && e < t.min && n.push(Y.minValue(t.min)), t.max !== void 0 && e > t.max && n.push(Y.maxValue(t.max)), t.step !== void 0) {
3551
+ if (t.min !== void 0 && t.max !== void 0 && t.min > t.max && n.push(X.invalidNumericRange), e === null) return n;
3552
+ if (typeof e != "number") return n.push(X.invalidNumber), n;
3553
+ if (t.min !== void 0 && e < t.min && n.push(X.minValue(t.min)), t.max !== void 0 && e > t.max && n.push(X.maxValue(t.max)), t.step !== void 0) {
3220
3554
  let r = t.min ?? 0, i = Math.abs(e - r) % t.step, a = t.step * 1e-9;
3221
- i > a && Math.abs(i - t.step) > a && n.push(Y.stepValue(t.step));
3555
+ i > a && Math.abs(i - t.step) > a && n.push(X.stepValue(t.step));
3222
3556
  }
3223
3557
  return n;
3224
3558
  },
@@ -3236,14 +3570,14 @@ var Ga = {
3236
3570
  errors: t.state.errors
3237
3571
  });
3238
3572
  }
3239
- }, _o = {
3573
+ }, vo = {
3240
3574
  kind: "rating",
3241
- schema: G({
3242
- kind: J("rating"),
3575
+ schema: K({
3576
+ kind: Y("rating"),
3243
3577
  ...Z,
3244
- min: V().int().optional(),
3245
- max: V().int().min(1),
3246
- step: V().int().positive().optional()
3578
+ min: H().int().optional(),
3579
+ max: H().int().min(1),
3580
+ step: H().int().positive().optional()
3247
3581
  }),
3248
3582
  getDefaultValue(e) {
3249
3583
  return typeof e.defaultValue == "number" ? e.defaultValue : null;
@@ -3256,7 +3590,7 @@ var Ga = {
3256
3590
  validate(e, t) {
3257
3591
  if (e === null) return [];
3258
3592
  let n = [], r = t.min ?? 1, i = t.max;
3259
- return r > i ? (n.push(Y.invalidNumericRange), n) : (e < r && n.push(Y.minValue(r)), e > i && n.push(Y.maxValue(i)), n);
3593
+ return r > i ? (n.push(X.invalidNumericRange), n) : (e < r && n.push(X.minValue(r)), e > i && n.push(X.maxValue(i)), n);
3260
3594
  },
3261
3595
  describe(e, t) {
3262
3596
  return Q("rating-field", e, {
@@ -3268,15 +3602,15 @@ var Ga = {
3268
3602
  errors: t.state.errors
3269
3603
  });
3270
3604
  }
3271
- }, vo = {
3605
+ }, yo = {
3272
3606
  kind: "text",
3273
- schema: G({
3274
- kind: J("text"),
3607
+ schema: K({
3608
+ kind: Y("text"),
3275
3609
  ...Z,
3276
- placeholder: R().optional(),
3277
- minLength: V().int().nonnegative().optional(),
3278
- maxLength: V().int().nonnegative().optional(),
3279
- pattern: R().optional()
3610
+ placeholder: B().optional(),
3611
+ minLength: H().int().nonnegative().optional(),
3612
+ maxLength: H().int().nonnegative().optional(),
3613
+ pattern: B().optional()
3280
3614
  }),
3281
3615
  getDefaultValue(e) {
3282
3616
  return typeof e.defaultValue == "string" ? e.defaultValue : "";
@@ -3286,7 +3620,7 @@ var Ga = {
3286
3620
  },
3287
3621
  validate(e, t) {
3288
3622
  let n = [];
3289
- return t.minLength !== void 0 && t.maxLength !== void 0 && t.minLength > t.maxLength && n.push(Y.invalidTextLengthRange), e.length === 0 ? n : (t.minLength !== void 0 && e.length < t.minLength && n.push(Y.minLength(t.minLength)), t.maxLength !== void 0 && e.length > t.maxLength && n.push(Y.maxLength(t.maxLength)), t.pattern && !new RegExp(t.pattern).test(e) && n.push(Y.textPatternMismatch), n);
3623
+ return t.minLength !== void 0 && t.maxLength !== void 0 && t.minLength > t.maxLength && n.push(X.invalidTextLengthRange), e.length === 0 ? n : (t.minLength !== void 0 && e.length < t.minLength && n.push(X.minLength(t.minLength)), t.maxLength !== void 0 && e.length > t.maxLength && n.push(X.maxLength(t.maxLength)), t.pattern && !new RegExp(t.pattern).test(e) && n.push(X.textPatternMismatch), n);
3290
3624
  },
3291
3625
  describe(e, t) {
3292
3626
  return Q("text-field", e, {
@@ -3299,16 +3633,23 @@ var Ga = {
3299
3633
  errors: t.state.errors
3300
3634
  });
3301
3635
  }
3302
- }, yo = G({
3303
- kind: R().min(1),
3304
- label: R().min(1),
3305
- required: H().optional()
3306
- }).passthrough(), bo = "This field is required.", xo = (e) => e.toISOString().slice(0, 10), So = {
3307
- text: vo,
3308
- number: go,
3309
- date: po,
3310
- category: to
3311
- }, Co = (e) => So[e], wo = (e) => {
3636
+ }, bo = K({
3637
+ kind: B().min(1),
3638
+ label: B().min(1),
3639
+ required: U().optional()
3640
+ }).passthrough(), xo = K({
3641
+ kind: Y("series"),
3642
+ ...Z,
3643
+ field1: bo,
3644
+ field2: bo,
3645
+ minPoints: H().int().nonnegative().optional(),
3646
+ maxPoints: H().int().nonnegative().optional()
3647
+ }), So = "This field is required.", Co = (e) => e.toISOString().slice(0, 10), wo = {
3648
+ text: yo,
3649
+ number: _o,
3650
+ date: mo,
3651
+ category: uo
3652
+ }, To = (e) => wo[e], Eo = (e) => {
3312
3653
  if (e == null || e === "") return null;
3313
3654
  if (typeof e == "boolean") return e;
3314
3655
  if (typeof e == "string") {
@@ -3316,17 +3657,17 @@ var Ga = {
3316
3657
  if (e === "false") return !1;
3317
3658
  }
3318
3659
  return !!e;
3319
- }, To = (e, t) => {
3320
- if (e.kind === $.kind) return wo(t);
3321
- let n = Co(e.kind);
3660
+ }, Do = (e, t) => {
3661
+ if (e.kind === $.kind) return Eo(t);
3662
+ let n = To(e.kind);
3322
3663
  return n?.normalizeValue ? n.normalizeValue(t, e) : t;
3323
- }, Eo = (e, t) => {
3664
+ }, Oo = (e, t) => {
3324
3665
  if (t == null) return null;
3325
- if (e.kind === "date" && t instanceof Date) return xo(t);
3326
- let n = Co(e.kind);
3666
+ if (e.kind === "date" && t instanceof Date) return Co(t);
3667
+ let n = To(e.kind);
3327
3668
  return n?.serializeValue ? n.serializeValue(t, e) : t;
3328
- }, Do = (e, t) => t == null ? !0 : typeof t == "string" ? t.trim().length === 0 : e.kind === $.kind ? t == null : !1, Oo = (e, t) => {
3329
- if (e.required && Do(e, t)) return [bo];
3669
+ }, ko = (e, t) => t == null ? !0 : typeof t == "string" ? t.trim().length === 0 : e.kind === $.kind ? t == null : !1, Ao = (e, t) => {
3670
+ if (e.required && ko(e, t)) return [So];
3330
3671
  if (e.kind === $.kind) {
3331
3672
  if (t === null) return [];
3332
3673
  let n = $.validate?.(t, e, {
@@ -3341,7 +3682,7 @@ var Ga = {
3341
3682
  });
3342
3683
  return Array.isArray(n) ? n : [];
3343
3684
  }
3344
- let n = Co(e.kind);
3685
+ let n = To(e.kind);
3345
3686
  if (!n?.validate) return [];
3346
3687
  let r = n.validate(t, e, {
3347
3688
  field: {
@@ -3354,77 +3695,73 @@ var Ga = {
3354
3695
  signal: void 0
3355
3696
  });
3356
3697
  return Array.isArray(r) ? r : [];
3357
- }, ko = (e, t, n) => n.map((n) => `Row ${e + 1} (${t}): ${n}`), Ao = (e) => {
3698
+ }, jo = (e, t, n) => n.map((n) => `Row ${e + 1} (${t}): ${n}`), Mo = (e) => {
3358
3699
  if (Array.isArray(e)) return e.length >= 2 ? {
3359
3700
  field1: e[0],
3360
3701
  field2: e[1]
3361
3702
  } : null;
3362
- if (!io(e)) return null;
3703
+ if (!t(e)) return null;
3363
3704
  if ("field1" in e || "field2" in e) return {
3364
3705
  field1: e.field1,
3365
3706
  field2: e.field2
3366
3707
  };
3367
- let t = Object.entries(e);
3368
- return t.length < 2 ? null : {
3369
- field1: t[0]?.[1],
3370
- field2: t[1]?.[1]
3708
+ let n = Object.entries(e);
3709
+ return n.length < 2 ? null : {
3710
+ field1: n[0]?.[1],
3711
+ field2: n[1]?.[1]
3371
3712
  };
3372
- }, jo = (e, t) => {
3373
- let n = Ao(e);
3713
+ }, No = (e, t) => {
3714
+ let n = Mo(e);
3374
3715
  return n ? {
3375
- field1: To(t.field1, n.field1),
3376
- field2: To(t.field2, n.field2)
3716
+ field1: Do(t.field1, n.field1),
3717
+ field2: Do(t.field2, n.field2)
3377
3718
  } : null;
3378
- }, Mo = {
3719
+ }, Po = (e, t) => {
3720
+ let n = /* @__PURE__ */ new Set();
3721
+ return t.minPoints !== void 0 && t.maxPoints !== void 0 && t.minPoints > t.maxPoints && n.add(X.invalidPointCountRange), t.minPoints !== void 0 && e.length < t.minPoints && n.add(X.minPoints(t.minPoints)), t.maxPoints !== void 0 && e.length > t.maxPoints && n.add(X.maxPoints(t.maxPoints)), n;
3722
+ }, Fo = {
3379
3723
  kind: "series",
3380
- schema: G({
3381
- kind: J("series"),
3382
- ...Z,
3383
- field1: yo,
3384
- field2: yo,
3385
- minPoints: V().int().nonnegative().optional(),
3386
- maxPoints: V().int().nonnegative().optional()
3387
- }),
3724
+ schema: xo,
3388
3725
  getDefaultValue(e) {
3389
- return Array.isArray(e.defaultValue) ? e.defaultValue.map((t) => jo(t, e)).filter((e) => e !== null) : [];
3726
+ return Array.isArray(e.defaultValue) ? e.defaultValue.map((t) => No(t, e)).filter((e) => e !== null) : [];
3390
3727
  },
3391
3728
  normalizeValue(e, t) {
3392
- return Array.isArray(e) ? e.map((e) => jo(e, t)).filter((e) => e !== null) : [];
3729
+ return Array.isArray(e) ? e.map((e) => No(e, t)).filter((e) => e !== null) : [];
3393
3730
  },
3394
3731
  serializeValue(e, t) {
3395
3732
  return e.map((e) => ({
3396
- field1: Eo(t.field1, e.field1),
3397
- field2: Eo(t.field2, e.field2)
3733
+ field1: Oo(t.field1, e.field1),
3734
+ field2: Oo(t.field2, e.field2)
3398
3735
  }));
3399
3736
  },
3400
3737
  validate(e, t) {
3401
- let n = /* @__PURE__ */ new Set();
3402
- return t.minPoints !== void 0 && t.maxPoints !== void 0 && t.minPoints > t.maxPoints && n.add(Y.invalidPointCountRange), t.minPoints !== void 0 && e.length < t.minPoints && n.add(Y.minPoints(t.minPoints)), t.maxPoints !== void 0 && e.length > t.maxPoints && n.add(Y.maxPoints(t.maxPoints)), e.forEach((e, r) => {
3403
- for (let i of ko(r, t.field1.label, Oo(t.field1, e.field1))) n.add(i);
3404
- for (let i of ko(r, t.field2.label, Oo(t.field2, e.field2))) n.add(i);
3738
+ let n = Po(e, t);
3739
+ return e.forEach((e, r) => {
3740
+ for (let i of jo(r, t.field1.label, Ao(t.field1, e.field1))) n.add(i);
3741
+ for (let i of jo(r, t.field2.label, Ao(t.field2, e.field2))) n.add(i);
3405
3742
  }), [...n];
3406
3743
  },
3407
- describe(e, t) {
3744
+ describe(e, n) {
3408
3745
  return Q("series-field", e, {
3409
- value: Array.isArray(t.state.value) ? t.state.value.map((t) => io(t) ? {
3410
- field1: Eo(e.field1, t.field1),
3411
- field2: Eo(e.field2, t.field2)
3412
- } : t) : [],
3746
+ value: Array.isArray(n.state.value) ? n.state.value.map((n) => t(n) ? {
3747
+ field1: Oo(e.field1, n.field1),
3748
+ field2: Oo(e.field2, n.field2)
3749
+ } : n) : [],
3413
3750
  field1: e.field1,
3414
3751
  field2: e.field2,
3415
3752
  minPoints: e.minPoints,
3416
3753
  maxPoints: e.maxPoints,
3417
- state: t.state.status,
3418
- errors: t.state.errors
3754
+ state: n.state.status,
3755
+ errors: n.state.errors
3419
3756
  });
3420
3757
  }
3421
- }, No = {
3758
+ }, Io = {
3422
3759
  kind: "single-choice",
3423
- schema: G({
3424
- kind: J("single-choice"),
3760
+ schema: K({
3761
+ kind: Y("single-choice"),
3425
3762
  ...Z,
3426
- options: W($a).min(1),
3427
- layout: q(["horizontal", "vertical"]).optional()
3763
+ options: G(co).min(1),
3764
+ layout: J(["horizontal", "vertical"]).optional()
3428
3765
  }),
3429
3766
  getDefaultValue(e) {
3430
3767
  return typeof e.defaultValue == "string" ? e.defaultValue : null;
@@ -3433,7 +3770,7 @@ var Ga = {
3433
3770
  return e == null || e === "" ? null : typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? `${e}` : null;
3434
3771
  },
3435
3772
  validate(e, t) {
3436
- return e === null || t.options.map((e) => typeof e == "string" ? e : e.value).includes(e) ? [] : [Y.categoryOptionMismatch];
3773
+ return e === null || t.options.map((e) => typeof e == "string" ? e : e.value).includes(e) ? [] : [X.categoryOptionMismatch];
3437
3774
  },
3438
3775
  describe(e, t) {
3439
3776
  return Q("single-choice-field", e, {
@@ -3444,17 +3781,17 @@ var Ga = {
3444
3781
  errors: t.state.errors
3445
3782
  });
3446
3783
  }
3447
- }, Po = {
3784
+ }, Lo = {
3448
3785
  kind: "classifier",
3449
3786
  partialUpdatePolicy: "validate",
3450
- schema: G({
3451
- kind: J("classifier"),
3452
- ...Qa,
3453
- labels: W(R()).optional(),
3454
- showClassProbabilities: H().optional().default(!0)
3787
+ schema: K({
3788
+ kind: Y("classifier"),
3789
+ ...so,
3790
+ labels: G(B()).optional(),
3791
+ showClassProbabilities: U().optional().default(!0)
3455
3792
  }),
3456
3793
  resolvePayload(e, t) {
3457
- return t.result.reports[t.report.source] ?? eo(t.result, Ka.classifier);
3794
+ return t.result.reports[t.report.source] ?? lo(t.result, eo.classifier);
3458
3795
  },
3459
3796
  describe(e, t) {
3460
3797
  return t.state.status === "idle" && t.payload === void 0 ? null : {
@@ -3462,7 +3799,7 @@ var Ga = {
3462
3799
  props: {
3463
3800
  id: t.reportId,
3464
3801
  kind: e.kind,
3465
- label: e.label ?? qa.classifier,
3802
+ label: e.label ?? to.classifier,
3466
3803
  description: e.description ?? "",
3467
3804
  payload: t.payload,
3468
3805
  error: t.state.error,
@@ -3473,17 +3810,17 @@ var Ga = {
3473
3810
  }
3474
3811
  };
3475
3812
  }
3476
- }, Fo = {
3813
+ }, Ro = {
3477
3814
  kind: "regressor",
3478
3815
  partialUpdatePolicy: "validate",
3479
- schema: G({
3480
- kind: J("regressor"),
3481
- ...Qa,
3482
- unit: R().optional(),
3483
- precision: V().int().nonnegative().optional().default(2)
3816
+ schema: K({
3817
+ kind: Y("regressor"),
3818
+ ...so,
3819
+ unit: B().optional(),
3820
+ precision: H().int().nonnegative().optional().default(2)
3484
3821
  }),
3485
3822
  resolvePayload(e, t) {
3486
- return t.result.reports[t.report.source] ?? eo(t.result, Ka.regressor);
3823
+ return t.result.reports[t.report.source] ?? lo(t.result, eo.regressor);
3487
3824
  },
3488
3825
  describe(e, t) {
3489
3826
  return t.state.status === "idle" && t.payload === void 0 ? null : {
@@ -3491,7 +3828,7 @@ var Ga = {
3491
3828
  props: {
3492
3829
  id: t.reportId,
3493
3830
  kind: e.kind,
3494
- label: e.label ?? qa.regressor,
3831
+ label: e.label ?? to.regressor,
3495
3832
  description: e.description ?? "",
3496
3833
  payload: t.payload,
3497
3834
  error: t.state.error,
@@ -3502,6 +3839,40 @@ var Ga = {
3502
3839
  }
3503
3840
  };
3504
3841
  }
3505
- };
3842
+ }, zo = (e, t) => {
3843
+ !t.describe || e.getField(t.kind) || e.registerField({
3844
+ kind: t.kind,
3845
+ describe: t.describe
3846
+ });
3847
+ }, Bo = (e, t) => {
3848
+ !t.describe || e.getReport(t.kind) || e.registerReport({
3849
+ kind: t.kind,
3850
+ describe: t.describe
3851
+ });
3852
+ }, Vo = [
3853
+ yo,
3854
+ _o,
3855
+ $,
3856
+ uo,
3857
+ po,
3858
+ mo,
3859
+ Fo,
3860
+ ho,
3861
+ Io,
3862
+ go,
3863
+ vo
3864
+ ], Ho = () => {
3865
+ let e = n(), t = i();
3866
+ for (let n of Vo) e.registerField(n), zo(t, n);
3867
+ return {
3868
+ registry: e,
3869
+ presentationRegistry: t,
3870
+ behaviors: [r()]
3871
+ };
3872
+ }, Uo = [Lo, Ro], Wo = () => {
3873
+ let e = Ho();
3874
+ for (let t of Uo) e.registry.registerReport(t), Bo(e.presentationRegistry, t);
3875
+ return e;
3876
+ }, Go = () => n().registerReport(Lo).registerReport(Ro), Ko = Wo;
3506
3877
  //#endregion
3507
- export { ro as _, vo as a, ho as c, uo as d, fo as f, io as g, oo as h, Mo as i, mo as l, so as m, Po as n, _o as o, lo as p, No as r, go as s, Fo as t, po as u, to as v, $ as y };
3878
+ export { Lo as a, Ro as i, Ko as n, Ho as r, Go as t };