moonflower 1.3.1 → 1.3.2
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.
- package/dist/validators/validateMissingParams.cjs +1 -1
- package/dist/validators/validateMissingParams.cjs.map +1 -1
- package/dist/validators/validateMissingParams.mjs +8 -8
- package/dist/validators/validateParam.cjs +1 -1
- package/dist/validators/validateParam.cjs.map +1 -1
- package/dist/validators/validateParam.mjs +16 -17
- package/dist/validators/validateParam.mjs.map +1 -1
- package/package.json +1 -1
- package/vite.config.ts +1 -0
- package/dist/node_modules/zod/index.cjs +0 -2
- package/dist/node_modules/zod/index.cjs.map +0 -1
- package/dist/node_modules/zod/index.mjs +0 -6
- package/dist/node_modules/zod/index.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/checks.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/checks.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/checks.mjs +0 -34
- package/dist/node_modules/zod/v4/classic/checks.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/coerce.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/coerce.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/coerce.mjs +0 -26
- package/dist/node_modules/zod/v4/classic/coerce.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/compat.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/compat.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/compat.mjs +0 -35
- package/dist/node_modules/zod/v4/classic/compat.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/errors.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.mjs +0 -41
- package/dist/node_modules/zod/v4/classic/errors.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/external.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/external.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/external.mjs +0 -260
- package/dist/node_modules/zod/v4/classic/external.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/from-json-schema.mjs +0 -287
- package/dist/node_modules/zod/v4/classic/from-json-schema.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/iso.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.mjs +0 -40
- package/dist/node_modules/zod/v4/classic/iso.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/parse.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.mjs +0 -19
- package/dist/node_modules/zod/v4/classic/parse.mjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.cjs +0 -2
- package/dist/node_modules/zod/v4/classic/schemas.cjs.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.mjs +0 -912
- package/dist/node_modules/zod/v4/classic/schemas.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/api.cjs +0 -2
- package/dist/node_modules/zod/v4/core/api.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/api.mjs +0 -1110
- package/dist/node_modules/zod/v4/core/api.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.cjs +0 -2
- package/dist/node_modules/zod/v4/core/checks.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.mjs +0 -421
- package/dist/node_modules/zod/v4/core/checks.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/core.cjs +0 -2
- package/dist/node_modules/zod/v4/core/core.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/core.mjs +0 -62
- package/dist/node_modules/zod/v4/core/core.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.cjs +0 -4
- package/dist/node_modules/zod/v4/core/doc.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.mjs +0 -27
- package/dist/node_modules/zod/v4/core/doc.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.cjs +0 -3
- package/dist/node_modules/zod/v4/core/errors.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.mjs +0 -89
- package/dist/node_modules/zod/v4/core/errors.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/index.cjs +0 -2
- package/dist/node_modules/zod/v4/core/index.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/index.mjs +0 -293
- package/dist/node_modules/zod/v4/core/index.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +0 -2
- package/dist/node_modules/zod/v4/core/json-schema-generator.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-generator.mjs +0 -66
- package/dist/node_modules/zod/v4/core/json-schema-generator.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +0 -2
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.mjs +0 -346
- package/dist/node_modules/zod/v4/core/json-schema-processors.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/dist/node_modules/zod/v4/core/json-schema.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema.mjs +0 -2
- package/dist/node_modules/zod/v4/core/json-schema.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.cjs +0 -2
- package/dist/node_modules/zod/v4/core/parse.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.mjs +0 -75
- package/dist/node_modules/zod/v4/core/parse.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.cjs +0 -2
- package/dist/node_modules/zod/v4/core/regexes.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.mjs +0 -94
- package/dist/node_modules/zod/v4/core/regexes.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.cjs +0 -2
- package/dist/node_modules/zod/v4/core/registries.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.mjs +0 -44
- package/dist/node_modules/zod/v4/core/registries.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.cjs +0 -36
- package/dist/node_modules/zod/v4/core/schemas.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.mjs +0 -1319
- package/dist/node_modules/zod/v4/core/schemas.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +0 -4
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.mjs +0 -244
- package/dist/node_modules/zod/v4/core/to-json-schema.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/util.cjs +0 -2
- package/dist/node_modules/zod/v4/core/util.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/util.mjs +0 -523
- package/dist/node_modules/zod/v4/core/util.mjs.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.cjs +0 -2
- package/dist/node_modules/zod/v4/core/versions.cjs.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.mjs +0 -9
- package/dist/node_modules/zod/v4/core/versions.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ar.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ar.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ar.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/ar.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/az.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/az.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/az.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/az.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/be.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/be.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/be.mjs +0 -129
- package/dist/node_modules/zod/v4/locales/be.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/bg.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/bg.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/bg.mjs +0 -98
- package/dist/node_modules/zod/v4/locales/bg.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ca.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ca.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ca.mjs +0 -88
- package/dist/node_modules/zod/v4/locales/ca.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/cs.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/cs.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/cs.mjs +0 -91
- package/dist/node_modules/zod/v4/locales/cs.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/da.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/da.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/da.mjs +0 -94
- package/dist/node_modules/zod/v4/locales/da.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/de.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/de.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/de.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/de.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/en.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/en.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/en.mjs +0 -91
- package/dist/node_modules/zod/v4/locales/en.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/eo.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/eo.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/eo.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/eo.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/es.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/es.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/es.mjs +0 -111
- package/dist/node_modules/zod/v4/locales/es.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fa.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/fa.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fa.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/fa.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fi.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/fi.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fi.mjs +0 -91
- package/dist/node_modules/zod/v4/locales/fi.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fr-CA.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/fr-CA.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fr.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/fr.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/fr.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/fr.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/he.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/he.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/he.mjs +0 -152
- package/dist/node_modules/zod/v4/locales/he.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/hu.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/hu.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/hu.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/hu.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/hy.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/hy.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/hy.mjs +0 -130
- package/dist/node_modules/zod/v4/locales/hy.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/id.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/id.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/id.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/id.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/index.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/index.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/index.mjs +0 -101
- package/dist/node_modules/zod/v4/locales/index.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/is.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/is.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/is.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/is.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/it.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/it.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/it.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/it.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ja.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ja.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ja.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/ja.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ka.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ka.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ka.mjs +0 -92
- package/dist/node_modules/zod/v4/locales/ka.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/kh.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/kh.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/kh.mjs +0 -8
- package/dist/node_modules/zod/v4/locales/kh.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/km.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/km.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/km.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/km.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ko.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ko.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ko.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/ko.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/lt.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/lt.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/lt.mjs +0 -178
- package/dist/node_modules/zod/v4/locales/lt.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/mk.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/mk.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/mk.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/mk.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ms.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ms.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ms.mjs +0 -88
- package/dist/node_modules/zod/v4/locales/ms.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/nl.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/nl.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/nl.mjs +0 -88
- package/dist/node_modules/zod/v4/locales/nl.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/no.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/no.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/no.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/no.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ota.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ota.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ota.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/ota.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/pl.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/pl.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/pl.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/pl.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ps.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ps.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ps.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/ps.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/pt.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/pt.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/pt.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/pt.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ru.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ru.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ru.mjs +0 -129
- package/dist/node_modules/zod/v4/locales/ru.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/sl.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/sl.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/sl.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/sl.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/sv.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/sv.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/sv.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/sv.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ta.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ta.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ta.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/ta.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/th.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/th.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/th.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/th.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/tr.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/tr.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/tr.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/tr.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ua.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ua.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ua.mjs +0 -8
- package/dist/node_modules/zod/v4/locales/ua.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/uk.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/uk.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/uk.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/uk.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ur.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/ur.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/ur.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/ur.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/uz.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/uz.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/uz.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/uz.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/vi.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/vi.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/vi.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/vi.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/yo.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/yo.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/yo.mjs +0 -89
- package/dist/node_modules/zod/v4/locales/yo.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/zh-CN.mjs +0 -90
- package/dist/node_modules/zod/v4/locales/zh-CN.mjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs +0 -2
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs.map +0 -1
- package/dist/node_modules/zod/v4/locales/zh-TW.mjs +0 -87
- package/dist/node_modules/zod/v4/locales/zh-TW.mjs.map +0 -1
|
@@ -1,523 +0,0 @@
|
|
|
1
|
-
function k(e) {
|
|
2
|
-
return e;
|
|
3
|
-
}
|
|
4
|
-
function E(e) {
|
|
5
|
-
return e;
|
|
6
|
-
}
|
|
7
|
-
function O(e) {
|
|
8
|
-
}
|
|
9
|
-
function j(e) {
|
|
10
|
-
throw new Error("Unexpected value in exhaustive check");
|
|
11
|
-
}
|
|
12
|
-
function z(e) {
|
|
13
|
-
}
|
|
14
|
-
function A(e) {
|
|
15
|
-
const n = Object.values(e).filter((r) => typeof r == "number");
|
|
16
|
-
return Object.entries(e).filter(([r, o]) => n.indexOf(+r) === -1).map(([r, o]) => o);
|
|
17
|
-
}
|
|
18
|
-
function S(e, n = "|") {
|
|
19
|
-
return e.map((t) => w(t)).join(n);
|
|
20
|
-
}
|
|
21
|
-
function N(e, n) {
|
|
22
|
-
return typeof n == "bigint" ? n.toString() : n;
|
|
23
|
-
}
|
|
24
|
-
function b(e) {
|
|
25
|
-
return {
|
|
26
|
-
get value() {
|
|
27
|
-
{
|
|
28
|
-
const n = e();
|
|
29
|
-
return Object.defineProperty(this, "value", { value: n }), n;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function P(e) {
|
|
35
|
-
return e == null;
|
|
36
|
-
}
|
|
37
|
-
function I(e) {
|
|
38
|
-
const n = e.startsWith("^") ? 1 : 0, t = e.endsWith("$") ? e.length - 1 : e.length;
|
|
39
|
-
return e.slice(n, t);
|
|
40
|
-
}
|
|
41
|
-
function T(e, n) {
|
|
42
|
-
const t = (e.toString().split(".")[1] || "").length, r = n.toString();
|
|
43
|
-
let o = (r.split(".")[1] || "").length;
|
|
44
|
-
if (o === 0 && /\d?e-\d?/.test(r)) {
|
|
45
|
-
const a = r.match(/\d?e-(\d?)/);
|
|
46
|
-
a?.[1] && (o = Number.parseInt(a[1]));
|
|
47
|
-
}
|
|
48
|
-
const i = t > o ? t : o, c = Number.parseInt(e.toFixed(i).replace(".", "")), s = Number.parseInt(n.toFixed(i).replace(".", ""));
|
|
49
|
-
return c % s / 10 ** i;
|
|
50
|
-
}
|
|
51
|
-
const g = Symbol("evaluating");
|
|
52
|
-
function x(e, n, t) {
|
|
53
|
-
let r;
|
|
54
|
-
Object.defineProperty(e, n, {
|
|
55
|
-
get() {
|
|
56
|
-
if (r !== g)
|
|
57
|
-
return r === void 0 && (r = g, r = t()), r;
|
|
58
|
-
},
|
|
59
|
-
set(o) {
|
|
60
|
-
Object.defineProperty(e, n, {
|
|
61
|
-
value: o
|
|
62
|
-
// configurable: true,
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
configurable: !0
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function v(e) {
|
|
69
|
-
return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e));
|
|
70
|
-
}
|
|
71
|
-
function l(e, n, t) {
|
|
72
|
-
Object.defineProperty(e, n, {
|
|
73
|
-
value: t,
|
|
74
|
-
writable: !0,
|
|
75
|
-
enumerable: !0,
|
|
76
|
-
configurable: !0
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function f(...e) {
|
|
80
|
-
const n = {};
|
|
81
|
-
for (const t of e) {
|
|
82
|
-
const r = Object.getOwnPropertyDescriptors(t);
|
|
83
|
-
Object.assign(n, r);
|
|
84
|
-
}
|
|
85
|
-
return Object.defineProperties({}, n);
|
|
86
|
-
}
|
|
87
|
-
function C(e) {
|
|
88
|
-
return f(e._zod.def);
|
|
89
|
-
}
|
|
90
|
-
function R(e, n) {
|
|
91
|
-
return n ? n.reduce((t, r) => t?.[r], e) : e;
|
|
92
|
-
}
|
|
93
|
-
function D(e) {
|
|
94
|
-
const n = Object.keys(e), t = n.map((r) => e[r]);
|
|
95
|
-
return Promise.all(t).then((r) => {
|
|
96
|
-
const o = {};
|
|
97
|
-
for (let i = 0; i < n.length; i++)
|
|
98
|
-
o[n[i]] = r[i];
|
|
99
|
-
return o;
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function U(e = 10) {
|
|
103
|
-
const n = "abcdefghijklmnopqrstuvwxyz";
|
|
104
|
-
let t = "";
|
|
105
|
-
for (let r = 0; r < e; r++)
|
|
106
|
-
t += n[Math.floor(Math.random() * n.length)];
|
|
107
|
-
return t;
|
|
108
|
-
}
|
|
109
|
-
function M(e) {
|
|
110
|
-
return JSON.stringify(e);
|
|
111
|
-
}
|
|
112
|
-
function F(e) {
|
|
113
|
-
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
114
|
-
}
|
|
115
|
-
const $ = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
116
|
-
};
|
|
117
|
-
function y(e) {
|
|
118
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
119
|
-
}
|
|
120
|
-
const B = b(() => {
|
|
121
|
-
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
122
|
-
return !1;
|
|
123
|
-
try {
|
|
124
|
-
const e = Function;
|
|
125
|
-
return new e(""), !0;
|
|
126
|
-
} catch {
|
|
127
|
-
return !1;
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
function h(e) {
|
|
131
|
-
if (y(e) === !1)
|
|
132
|
-
return !1;
|
|
133
|
-
const n = e.constructor;
|
|
134
|
-
if (n === void 0 || typeof n != "function")
|
|
135
|
-
return !0;
|
|
136
|
-
const t = n.prototype;
|
|
137
|
-
return !(y(t) === !1 || Object.prototype.hasOwnProperty.call(t, "isPrototypeOf") === !1);
|
|
138
|
-
}
|
|
139
|
-
function G(e) {
|
|
140
|
-
return h(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
141
|
-
}
|
|
142
|
-
function L(e) {
|
|
143
|
-
let n = 0;
|
|
144
|
-
for (const t in e)
|
|
145
|
-
Object.prototype.hasOwnProperty.call(e, t) && n++;
|
|
146
|
-
return n;
|
|
147
|
-
}
|
|
148
|
-
const V = (e) => {
|
|
149
|
-
const n = typeof e;
|
|
150
|
-
switch (n) {
|
|
151
|
-
case "undefined":
|
|
152
|
-
return "undefined";
|
|
153
|
-
case "string":
|
|
154
|
-
return "string";
|
|
155
|
-
case "number":
|
|
156
|
-
return Number.isNaN(e) ? "nan" : "number";
|
|
157
|
-
case "boolean":
|
|
158
|
-
return "boolean";
|
|
159
|
-
case "function":
|
|
160
|
-
return "function";
|
|
161
|
-
case "bigint":
|
|
162
|
-
return "bigint";
|
|
163
|
-
case "symbol":
|
|
164
|
-
return "symbol";
|
|
165
|
-
case "object":
|
|
166
|
-
return Array.isArray(e) ? "array" : e === null ? "null" : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? "promise" : typeof Map < "u" && e instanceof Map ? "map" : typeof Set < "u" && e instanceof Set ? "set" : typeof Date < "u" && e instanceof Date ? "date" : typeof File < "u" && e instanceof File ? "file" : "object";
|
|
167
|
-
default:
|
|
168
|
-
throw new Error(`Unknown data type: ${n}`);
|
|
169
|
-
}
|
|
170
|
-
}, K = /* @__PURE__ */ new Set(["string", "number", "symbol"]), q = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
|
|
171
|
-
function X(e) {
|
|
172
|
-
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
173
|
-
}
|
|
174
|
-
function p(e, n, t) {
|
|
175
|
-
const r = new e._zod.constr(n ?? e._zod.def);
|
|
176
|
-
return (!n || t?.parent) && (r._zod.parent = e), r;
|
|
177
|
-
}
|
|
178
|
-
function H(e) {
|
|
179
|
-
const n = e;
|
|
180
|
-
if (!n)
|
|
181
|
-
return {};
|
|
182
|
-
if (typeof n == "string")
|
|
183
|
-
return { error: () => n };
|
|
184
|
-
if (n?.message !== void 0) {
|
|
185
|
-
if (n?.error !== void 0)
|
|
186
|
-
throw new Error("Cannot specify both `message` and `error` params");
|
|
187
|
-
n.error = n.message;
|
|
188
|
-
}
|
|
189
|
-
return delete n.message, typeof n.error == "string" ? { ...n, error: () => n.error } : n;
|
|
190
|
-
}
|
|
191
|
-
function W(e) {
|
|
192
|
-
let n;
|
|
193
|
-
return new Proxy({}, {
|
|
194
|
-
get(t, r, o) {
|
|
195
|
-
return n ?? (n = e()), Reflect.get(n, r, o);
|
|
196
|
-
},
|
|
197
|
-
set(t, r, o, i) {
|
|
198
|
-
return n ?? (n = e()), Reflect.set(n, r, o, i);
|
|
199
|
-
},
|
|
200
|
-
has(t, r) {
|
|
201
|
-
return n ?? (n = e()), Reflect.has(n, r);
|
|
202
|
-
},
|
|
203
|
-
deleteProperty(t, r) {
|
|
204
|
-
return n ?? (n = e()), Reflect.deleteProperty(n, r);
|
|
205
|
-
},
|
|
206
|
-
ownKeys(t) {
|
|
207
|
-
return n ?? (n = e()), Reflect.ownKeys(n);
|
|
208
|
-
},
|
|
209
|
-
getOwnPropertyDescriptor(t, r) {
|
|
210
|
-
return n ?? (n = e()), Reflect.getOwnPropertyDescriptor(n, r);
|
|
211
|
-
},
|
|
212
|
-
defineProperty(t, r, o) {
|
|
213
|
-
return n ?? (n = e()), Reflect.defineProperty(n, r, o);
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
function w(e) {
|
|
218
|
-
return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
|
|
219
|
-
}
|
|
220
|
-
function J(e) {
|
|
221
|
-
return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional");
|
|
222
|
-
}
|
|
223
|
-
const Q = {
|
|
224
|
-
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
225
|
-
int32: [-2147483648, 2147483647],
|
|
226
|
-
uint32: [0, 4294967295],
|
|
227
|
-
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
228
|
-
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
229
|
-
}, Y = {
|
|
230
|
-
int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
|
|
231
|
-
uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
|
|
232
|
-
};
|
|
233
|
-
function Z(e, n) {
|
|
234
|
-
const t = e._zod.def, r = t.checks;
|
|
235
|
-
if (r && r.length > 0)
|
|
236
|
-
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
237
|
-
const i = f(e._zod.def, {
|
|
238
|
-
get shape() {
|
|
239
|
-
const c = {};
|
|
240
|
-
for (const s in n) {
|
|
241
|
-
if (!(s in t.shape))
|
|
242
|
-
throw new Error(`Unrecognized key: "${s}"`);
|
|
243
|
-
n[s] && (c[s] = t.shape[s]);
|
|
244
|
-
}
|
|
245
|
-
return l(this, "shape", c), c;
|
|
246
|
-
},
|
|
247
|
-
checks: []
|
|
248
|
-
});
|
|
249
|
-
return p(e, i);
|
|
250
|
-
}
|
|
251
|
-
function ee(e, n) {
|
|
252
|
-
const t = e._zod.def, r = t.checks;
|
|
253
|
-
if (r && r.length > 0)
|
|
254
|
-
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
255
|
-
const i = f(e._zod.def, {
|
|
256
|
-
get shape() {
|
|
257
|
-
const c = { ...e._zod.def.shape };
|
|
258
|
-
for (const s in n) {
|
|
259
|
-
if (!(s in t.shape))
|
|
260
|
-
throw new Error(`Unrecognized key: "${s}"`);
|
|
261
|
-
n[s] && delete c[s];
|
|
262
|
-
}
|
|
263
|
-
return l(this, "shape", c), c;
|
|
264
|
-
},
|
|
265
|
-
checks: []
|
|
266
|
-
});
|
|
267
|
-
return p(e, i);
|
|
268
|
-
}
|
|
269
|
-
function ne(e, n) {
|
|
270
|
-
if (!h(n))
|
|
271
|
-
throw new Error("Invalid input to extend: expected a plain object");
|
|
272
|
-
const t = e._zod.def.checks;
|
|
273
|
-
if (t && t.length > 0) {
|
|
274
|
-
const i = e._zod.def.shape;
|
|
275
|
-
for (const c in n)
|
|
276
|
-
if (Object.getOwnPropertyDescriptor(i, c) !== void 0)
|
|
277
|
-
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
278
|
-
}
|
|
279
|
-
const o = f(e._zod.def, {
|
|
280
|
-
get shape() {
|
|
281
|
-
const i = { ...e._zod.def.shape, ...n };
|
|
282
|
-
return l(this, "shape", i), i;
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
return p(e, o);
|
|
286
|
-
}
|
|
287
|
-
function te(e, n) {
|
|
288
|
-
if (!h(n))
|
|
289
|
-
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
290
|
-
const t = f(e._zod.def, {
|
|
291
|
-
get shape() {
|
|
292
|
-
const r = { ...e._zod.def.shape, ...n };
|
|
293
|
-
return l(this, "shape", r), r;
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
return p(e, t);
|
|
297
|
-
}
|
|
298
|
-
function re(e, n) {
|
|
299
|
-
const t = f(e._zod.def, {
|
|
300
|
-
get shape() {
|
|
301
|
-
const r = { ...e._zod.def.shape, ...n._zod.def.shape };
|
|
302
|
-
return l(this, "shape", r), r;
|
|
303
|
-
},
|
|
304
|
-
get catchall() {
|
|
305
|
-
return n._zod.def.catchall;
|
|
306
|
-
},
|
|
307
|
-
checks: []
|
|
308
|
-
// delete existing checks
|
|
309
|
-
});
|
|
310
|
-
return p(e, t);
|
|
311
|
-
}
|
|
312
|
-
function oe(e, n, t) {
|
|
313
|
-
const o = n._zod.def.checks;
|
|
314
|
-
if (o && o.length > 0)
|
|
315
|
-
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
316
|
-
const c = f(n._zod.def, {
|
|
317
|
-
get shape() {
|
|
318
|
-
const s = n._zod.def.shape, a = { ...s };
|
|
319
|
-
if (t)
|
|
320
|
-
for (const u in t) {
|
|
321
|
-
if (!(u in s))
|
|
322
|
-
throw new Error(`Unrecognized key: "${u}"`);
|
|
323
|
-
t[u] && (a[u] = e ? new e({
|
|
324
|
-
type: "optional",
|
|
325
|
-
innerType: s[u]
|
|
326
|
-
}) : s[u]);
|
|
327
|
-
}
|
|
328
|
-
else
|
|
329
|
-
for (const u in s)
|
|
330
|
-
a[u] = e ? new e({
|
|
331
|
-
type: "optional",
|
|
332
|
-
innerType: s[u]
|
|
333
|
-
}) : s[u];
|
|
334
|
-
return l(this, "shape", a), a;
|
|
335
|
-
},
|
|
336
|
-
checks: []
|
|
337
|
-
});
|
|
338
|
-
return p(n, c);
|
|
339
|
-
}
|
|
340
|
-
function ie(e, n, t) {
|
|
341
|
-
const r = f(n._zod.def, {
|
|
342
|
-
get shape() {
|
|
343
|
-
const o = n._zod.def.shape, i = { ...o };
|
|
344
|
-
if (t)
|
|
345
|
-
for (const c in t) {
|
|
346
|
-
if (!(c in i))
|
|
347
|
-
throw new Error(`Unrecognized key: "${c}"`);
|
|
348
|
-
t[c] && (i[c] = new e({
|
|
349
|
-
type: "nonoptional",
|
|
350
|
-
innerType: o[c]
|
|
351
|
-
}));
|
|
352
|
-
}
|
|
353
|
-
else
|
|
354
|
-
for (const c in o)
|
|
355
|
-
i[c] = new e({
|
|
356
|
-
type: "nonoptional",
|
|
357
|
-
innerType: o[c]
|
|
358
|
-
});
|
|
359
|
-
return l(this, "shape", i), i;
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
return p(n, r);
|
|
363
|
-
}
|
|
364
|
-
function ce(e, n = 0) {
|
|
365
|
-
if (e.aborted === !0)
|
|
366
|
-
return !0;
|
|
367
|
-
for (let t = n; t < e.issues.length; t++)
|
|
368
|
-
if (e.issues[t]?.continue !== !0)
|
|
369
|
-
return !0;
|
|
370
|
-
return !1;
|
|
371
|
-
}
|
|
372
|
-
function se(e, n) {
|
|
373
|
-
return n.map((t) => {
|
|
374
|
-
var r;
|
|
375
|
-
return (r = t).path ?? (r.path = []), t.path.unshift(e), t;
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
function d(e) {
|
|
379
|
-
return typeof e == "string" ? e : e?.message;
|
|
380
|
-
}
|
|
381
|
-
function ue(e, n, t) {
|
|
382
|
-
const r = { ...e, path: e.path ?? [] };
|
|
383
|
-
if (!e.message) {
|
|
384
|
-
const o = d(e.inst?._zod.def?.error?.(e)) ?? d(n?.error?.(e)) ?? d(t.customError?.(e)) ?? d(t.localeError?.(e)) ?? "Invalid input";
|
|
385
|
-
r.message = o;
|
|
386
|
-
}
|
|
387
|
-
return delete r.inst, delete r.continue, n?.reportInput || delete r.input, r;
|
|
388
|
-
}
|
|
389
|
-
function fe(e) {
|
|
390
|
-
return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown";
|
|
391
|
-
}
|
|
392
|
-
function ae(e) {
|
|
393
|
-
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
394
|
-
}
|
|
395
|
-
function le(e) {
|
|
396
|
-
const n = typeof e;
|
|
397
|
-
switch (n) {
|
|
398
|
-
case "number":
|
|
399
|
-
return Number.isNaN(e) ? "nan" : "number";
|
|
400
|
-
case "object": {
|
|
401
|
-
if (e === null)
|
|
402
|
-
return "null";
|
|
403
|
-
if (Array.isArray(e))
|
|
404
|
-
return "array";
|
|
405
|
-
const t = e;
|
|
406
|
-
if (t && Object.getPrototypeOf(t) !== Object.prototype && "constructor" in t && t.constructor)
|
|
407
|
-
return t.constructor.name;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
return n;
|
|
411
|
-
}
|
|
412
|
-
function pe(...e) {
|
|
413
|
-
const [n, t, r] = e;
|
|
414
|
-
return typeof n == "string" ? {
|
|
415
|
-
message: n,
|
|
416
|
-
code: "custom",
|
|
417
|
-
input: t,
|
|
418
|
-
inst: r
|
|
419
|
-
} : { ...n };
|
|
420
|
-
}
|
|
421
|
-
function de(e) {
|
|
422
|
-
return Object.entries(e).filter(([n, t]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]);
|
|
423
|
-
}
|
|
424
|
-
function _(e) {
|
|
425
|
-
const n = atob(e), t = new Uint8Array(n.length);
|
|
426
|
-
for (let r = 0; r < n.length; r++)
|
|
427
|
-
t[r] = n.charCodeAt(r);
|
|
428
|
-
return t;
|
|
429
|
-
}
|
|
430
|
-
function m(e) {
|
|
431
|
-
let n = "";
|
|
432
|
-
for (let t = 0; t < e.length; t++)
|
|
433
|
-
n += String.fromCharCode(e[t]);
|
|
434
|
-
return btoa(n);
|
|
435
|
-
}
|
|
436
|
-
function he(e) {
|
|
437
|
-
const n = e.replace(/-/g, "+").replace(/_/g, "/"), t = "=".repeat((4 - n.length % 4) % 4);
|
|
438
|
-
return _(n + t);
|
|
439
|
-
}
|
|
440
|
-
function ge(e) {
|
|
441
|
-
return m(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
442
|
-
}
|
|
443
|
-
function ye(e) {
|
|
444
|
-
const n = e.replace(/^0x/, "");
|
|
445
|
-
if (n.length % 2 !== 0)
|
|
446
|
-
throw new Error("Invalid hex string length");
|
|
447
|
-
const t = new Uint8Array(n.length / 2);
|
|
448
|
-
for (let r = 0; r < n.length; r += 2)
|
|
449
|
-
t[r / 2] = Number.parseInt(n.slice(r, r + 2), 16);
|
|
450
|
-
return t;
|
|
451
|
-
}
|
|
452
|
-
function be(e) {
|
|
453
|
-
return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join("");
|
|
454
|
-
}
|
|
455
|
-
class we {
|
|
456
|
-
constructor(...n) {
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
export {
|
|
460
|
-
Y as BIGINT_FORMAT_RANGES,
|
|
461
|
-
we as Class,
|
|
462
|
-
Q as NUMBER_FORMAT_RANGES,
|
|
463
|
-
ce as aborted,
|
|
464
|
-
B as allowsEval,
|
|
465
|
-
z as assert,
|
|
466
|
-
k as assertEqual,
|
|
467
|
-
O as assertIs,
|
|
468
|
-
j as assertNever,
|
|
469
|
-
E as assertNotEqual,
|
|
470
|
-
l as assignProp,
|
|
471
|
-
_ as base64ToUint8Array,
|
|
472
|
-
he as base64urlToUint8Array,
|
|
473
|
-
b as cached,
|
|
474
|
-
$ as captureStackTrace,
|
|
475
|
-
de as cleanEnum,
|
|
476
|
-
I as cleanRegex,
|
|
477
|
-
p as clone,
|
|
478
|
-
C as cloneDef,
|
|
479
|
-
W as createTransparentProxy,
|
|
480
|
-
x as defineLazy,
|
|
481
|
-
M as esc,
|
|
482
|
-
X as escapeRegex,
|
|
483
|
-
ne as extend,
|
|
484
|
-
ue as finalizeIssue,
|
|
485
|
-
T as floatSafeRemainder,
|
|
486
|
-
R as getElementAtPath,
|
|
487
|
-
A as getEnumValues,
|
|
488
|
-
ae as getLengthableOrigin,
|
|
489
|
-
V as getParsedType,
|
|
490
|
-
fe as getSizableOrigin,
|
|
491
|
-
ye as hexToUint8Array,
|
|
492
|
-
y as isObject,
|
|
493
|
-
h as isPlainObject,
|
|
494
|
-
pe as issue,
|
|
495
|
-
S as joinValues,
|
|
496
|
-
N as jsonStringifyReplacer,
|
|
497
|
-
re as merge,
|
|
498
|
-
f as mergeDefs,
|
|
499
|
-
H as normalizeParams,
|
|
500
|
-
P as nullish,
|
|
501
|
-
L as numKeys,
|
|
502
|
-
v as objectClone,
|
|
503
|
-
ee as omit,
|
|
504
|
-
J as optionalKeys,
|
|
505
|
-
le as parsedType,
|
|
506
|
-
oe as partial,
|
|
507
|
-
Z as pick,
|
|
508
|
-
se as prefixIssues,
|
|
509
|
-
q as primitiveTypes,
|
|
510
|
-
D as promiseAllObject,
|
|
511
|
-
K as propertyKeyTypes,
|
|
512
|
-
U as randomString,
|
|
513
|
-
ie as required,
|
|
514
|
-
te as safeExtend,
|
|
515
|
-
G as shallowClone,
|
|
516
|
-
F as slugify,
|
|
517
|
-
w as stringifyPrimitive,
|
|
518
|
-
m as uint8ArrayToBase64,
|
|
519
|
-
ge as uint8ArrayToBase64url,
|
|
520
|
-
be as uint8ArrayToHex,
|
|
521
|
-
d as unwrapMessage
|
|
522
|
-
};
|
|
523
|
-
//# sourceMappingURL=util.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.mjs","sources":["../../../../../node_modules/zod/v4/core/util.js"],"sourcesContent":["// functions\nexport function assertEqual(val) {\n return val;\n}\nexport function assertNotEqual(val) {\n return val;\n}\nexport function assertIs(_arg) { }\nexport function assertNever(_x) {\n throw new Error(\"Unexpected value in exhaustive check\");\n}\nexport function assert(_) { }\nexport function getEnumValues(entries) {\n const numericValues = Object.values(entries).filter((v) => typeof v === \"number\");\n const values = Object.entries(entries)\n .filter(([k, _]) => numericValues.indexOf(+k) === -1)\n .map(([_, v]) => v);\n return values;\n}\nexport function joinValues(array, separator = \"|\") {\n return array.map((val) => stringifyPrimitive(val)).join(separator);\n}\nexport function jsonStringifyReplacer(_, value) {\n if (typeof value === \"bigint\")\n return value.toString();\n return value;\n}\nexport function cached(getter) {\n const set = false;\n return {\n get value() {\n if (!set) {\n const value = getter();\n Object.defineProperty(this, \"value\", { value });\n return value;\n }\n throw new Error(\"cached value already set\");\n },\n };\n}\nexport function nullish(input) {\n return input === null || input === undefined;\n}\nexport function cleanRegex(source) {\n const start = source.startsWith(\"^\") ? 1 : 0;\n const end = source.endsWith(\"$\") ? source.length - 1 : source.length;\n return source.slice(start, end);\n}\nexport function floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepString = step.toString();\n let stepDecCount = (stepString.split(\".\")[1] || \"\").length;\n if (stepDecCount === 0 && /\\d?e-\\d?/.test(stepString)) {\n const match = stepString.match(/\\d?e-(\\d?)/);\n if (match?.[1]) {\n stepDecCount = Number.parseInt(match[1]);\n }\n }\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = Number.parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = Number.parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / 10 ** decCount;\n}\nconst EVALUATING = Symbol(\"evaluating\");\nexport function defineLazy(object, key, getter) {\n let value = undefined;\n Object.defineProperty(object, key, {\n get() {\n if (value === EVALUATING) {\n // Circular reference detected, return undefined to break the cycle\n return undefined;\n }\n if (value === undefined) {\n value = EVALUATING;\n value = getter();\n }\n return value;\n },\n set(v) {\n Object.defineProperty(object, key, {\n value: v,\n // configurable: true,\n });\n // object[key] = v;\n },\n configurable: true,\n });\n}\nexport function objectClone(obj) {\n return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));\n}\nexport function assignProp(target, prop, value) {\n Object.defineProperty(target, prop, {\n value,\n writable: true,\n enumerable: true,\n configurable: true,\n });\n}\nexport function mergeDefs(...defs) {\n const mergedDescriptors = {};\n for (const def of defs) {\n const descriptors = Object.getOwnPropertyDescriptors(def);\n Object.assign(mergedDescriptors, descriptors);\n }\n return Object.defineProperties({}, mergedDescriptors);\n}\nexport function cloneDef(schema) {\n return mergeDefs(schema._zod.def);\n}\nexport function getElementAtPath(obj, path) {\n if (!path)\n return obj;\n return path.reduce((acc, key) => acc?.[key], obj);\n}\nexport function promiseAllObject(promisesObj) {\n const keys = Object.keys(promisesObj);\n const promises = keys.map((key) => promisesObj[key]);\n return Promise.all(promises).then((results) => {\n const resolvedObj = {};\n for (let i = 0; i < keys.length; i++) {\n resolvedObj[keys[i]] = results[i];\n }\n return resolvedObj;\n });\n}\nexport function randomString(length = 10) {\n const chars = \"abcdefghijklmnopqrstuvwxyz\";\n let str = \"\";\n for (let i = 0; i < length; i++) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n}\nexport function esc(str) {\n return JSON.stringify(str);\n}\nexport function slugify(input) {\n return input\n .toLowerCase()\n .trim()\n .replace(/[^\\w\\s-]/g, \"\")\n .replace(/[\\s_-]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\");\n}\nexport const captureStackTrace = (\"captureStackTrace\" in Error ? Error.captureStackTrace : (..._args) => { });\nexport function isObject(data) {\n return typeof data === \"object\" && data !== null && !Array.isArray(data);\n}\nexport const allowsEval = cached(() => {\n // @ts-ignore\n if (typeof navigator !== \"undefined\" && navigator?.userAgent?.includes(\"Cloudflare\")) {\n return false;\n }\n try {\n const F = Function;\n new F(\"\");\n return true;\n }\n catch (_) {\n return false;\n }\n});\nexport function isPlainObject(o) {\n if (isObject(o) === false)\n return false;\n // modified constructor\n const ctor = o.constructor;\n if (ctor === undefined)\n return true;\n if (typeof ctor !== \"function\")\n return true;\n // modified prototype\n const prot = ctor.prototype;\n if (isObject(prot) === false)\n return false;\n // ctor doesn't have static `isPrototypeOf`\n if (Object.prototype.hasOwnProperty.call(prot, \"isPrototypeOf\") === false) {\n return false;\n }\n return true;\n}\nexport function shallowClone(o) {\n if (isPlainObject(o))\n return { ...o };\n if (Array.isArray(o))\n return [...o];\n return o;\n}\nexport function numKeys(data) {\n let keyCount = 0;\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n keyCount++;\n }\n }\n return keyCount;\n}\nexport const getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return \"undefined\";\n case \"string\":\n return \"string\";\n case \"number\":\n return Number.isNaN(data) ? \"nan\" : \"number\";\n case \"boolean\":\n return \"boolean\";\n case \"function\":\n return \"function\";\n case \"bigint\":\n return \"bigint\";\n case \"symbol\":\n return \"symbol\";\n case \"object\":\n if (Array.isArray(data)) {\n return \"array\";\n }\n if (data === null) {\n return \"null\";\n }\n if (data.then && typeof data.then === \"function\" && data.catch && typeof data.catch === \"function\") {\n return \"promise\";\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return \"map\";\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return \"set\";\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return \"date\";\n }\n // @ts-ignore\n if (typeof File !== \"undefined\" && data instanceof File) {\n return \"file\";\n }\n return \"object\";\n default:\n throw new Error(`Unknown data type: ${t}`);\n }\n};\nexport const propertyKeyTypes = new Set([\"string\", \"number\", \"symbol\"]);\nexport const primitiveTypes = new Set([\"string\", \"number\", \"bigint\", \"boolean\", \"symbol\", \"undefined\"]);\nexport function escapeRegex(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n// zod-specific utils\nexport function clone(inst, def, params) {\n const cl = new inst._zod.constr(def ?? inst._zod.def);\n if (!def || params?.parent)\n cl._zod.parent = inst;\n return cl;\n}\nexport function normalizeParams(_params) {\n const params = _params;\n if (!params)\n return {};\n if (typeof params === \"string\")\n return { error: () => params };\n if (params?.message !== undefined) {\n if (params?.error !== undefined)\n throw new Error(\"Cannot specify both `message` and `error` params\");\n params.error = params.message;\n }\n delete params.message;\n if (typeof params.error === \"string\")\n return { ...params, error: () => params.error };\n return params;\n}\nexport function createTransparentProxy(getter) {\n let target;\n return new Proxy({}, {\n get(_, prop, receiver) {\n target ?? (target = getter());\n return Reflect.get(target, prop, receiver);\n },\n set(_, prop, value, receiver) {\n target ?? (target = getter());\n return Reflect.set(target, prop, value, receiver);\n },\n has(_, prop) {\n target ?? (target = getter());\n return Reflect.has(target, prop);\n },\n deleteProperty(_, prop) {\n target ?? (target = getter());\n return Reflect.deleteProperty(target, prop);\n },\n ownKeys(_) {\n target ?? (target = getter());\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(_, prop) {\n target ?? (target = getter());\n return Reflect.getOwnPropertyDescriptor(target, prop);\n },\n defineProperty(_, prop, descriptor) {\n target ?? (target = getter());\n return Reflect.defineProperty(target, prop, descriptor);\n },\n });\n}\nexport function stringifyPrimitive(value) {\n if (typeof value === \"bigint\")\n return value.toString() + \"n\";\n if (typeof value === \"string\")\n return `\"${value}\"`;\n return `${value}`;\n}\nexport function optionalKeys(shape) {\n return Object.keys(shape).filter((k) => {\n return shape[k]._zod.optin === \"optional\" && shape[k]._zod.optout === \"optional\";\n });\n}\nexport const NUMBER_FORMAT_RANGES = {\n safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],\n int32: [-2147483648, 2147483647],\n uint32: [0, 4294967295],\n float32: [-3.4028234663852886e38, 3.4028234663852886e38],\n float64: [-Number.MAX_VALUE, Number.MAX_VALUE],\n};\nexport const BIGINT_FORMAT_RANGES = {\n int64: [/* @__PURE__*/ BigInt(\"-9223372036854775808\"), /* @__PURE__*/ BigInt(\"9223372036854775807\")],\n uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt(\"18446744073709551615\")],\n};\nexport function pick(schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".pick() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const newShape = {};\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n newShape[key] = currDef.shape[key];\n }\n assignProp(this, \"shape\", newShape); // self-caching\n return newShape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function omit(schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".omit() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const newShape = { ...schema._zod.def.shape };\n for (const key in mask) {\n if (!(key in currDef.shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n delete newShape[key];\n }\n assignProp(this, \"shape\", newShape); // self-caching\n return newShape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function extend(schema, shape) {\n if (!isPlainObject(shape)) {\n throw new Error(\"Invalid input to extend: expected a plain object\");\n }\n const checks = schema._zod.def.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n // Only throw if new shape overlaps with existing shape\n // Use getOwnPropertyDescriptor to check key existence without accessing values\n const existingShape = schema._zod.def.shape;\n for (const key in shape) {\n if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {\n throw new Error(\"Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.\");\n }\n }\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n });\n return clone(schema, def);\n}\nexport function safeExtend(schema, shape) {\n if (!isPlainObject(shape)) {\n throw new Error(\"Invalid input to safeExtend: expected a plain object\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const _shape = { ...schema._zod.def.shape, ...shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n });\n return clone(schema, def);\n}\nexport function merge(a, b) {\n const def = mergeDefs(a._zod.def, {\n get shape() {\n const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };\n assignProp(this, \"shape\", _shape); // self-caching\n return _shape;\n },\n get catchall() {\n return b._zod.def.catchall;\n },\n checks: [], // delete existing checks\n });\n return clone(a, def);\n}\nexport function partial(Class, schema, mask) {\n const currDef = schema._zod.def;\n const checks = currDef.checks;\n const hasChecks = checks && checks.length > 0;\n if (hasChecks) {\n throw new Error(\".partial() cannot be used on object schemas containing refinements\");\n }\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in oldShape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // if (oldShape[key]!._zod.optin === \"optional\") continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n else {\n for (const key in oldShape) {\n // if (oldShape[key]!._zod.optin === \"optional\") continue;\n shape[key] = Class\n ? new Class({\n type: \"optional\",\n innerType: oldShape[key],\n })\n : oldShape[key];\n }\n }\n assignProp(this, \"shape\", shape); // self-caching\n return shape;\n },\n checks: [],\n });\n return clone(schema, def);\n}\nexport function required(Class, schema, mask) {\n const def = mergeDefs(schema._zod.def, {\n get shape() {\n const oldShape = schema._zod.def.shape;\n const shape = { ...oldShape };\n if (mask) {\n for (const key in mask) {\n if (!(key in shape)) {\n throw new Error(`Unrecognized key: \"${key}\"`);\n }\n if (!mask[key])\n continue;\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n else {\n for (const key in oldShape) {\n // overwrite with non-optional\n shape[key] = new Class({\n type: \"nonoptional\",\n innerType: oldShape[key],\n });\n }\n }\n assignProp(this, \"shape\", shape); // self-caching\n return shape;\n },\n });\n return clone(schema, def);\n}\n// invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom\nexport function aborted(x, startIndex = 0) {\n if (x.aborted === true)\n return true;\n for (let i = startIndex; i < x.issues.length; i++) {\n if (x.issues[i]?.continue !== true) {\n return true;\n }\n }\n return false;\n}\nexport function prefixIssues(path, issues) {\n return issues.map((iss) => {\n var _a;\n (_a = iss).path ?? (_a.path = []);\n iss.path.unshift(path);\n return iss;\n });\n}\nexport function unwrapMessage(message) {\n return typeof message === \"string\" ? message : message?.message;\n}\nexport function finalizeIssue(iss, ctx, config) {\n const full = { ...iss, path: iss.path ?? [] };\n // for backwards compatibility\n if (!iss.message) {\n const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??\n unwrapMessage(ctx?.error?.(iss)) ??\n unwrapMessage(config.customError?.(iss)) ??\n unwrapMessage(config.localeError?.(iss)) ??\n \"Invalid input\";\n full.message = message;\n }\n // delete (full as any).def;\n delete full.inst;\n delete full.continue;\n if (!ctx?.reportInput) {\n delete full.input;\n }\n return full;\n}\nexport function getSizableOrigin(input) {\n if (input instanceof Set)\n return \"set\";\n if (input instanceof Map)\n return \"map\";\n // @ts-ignore\n if (input instanceof File)\n return \"file\";\n return \"unknown\";\n}\nexport function getLengthableOrigin(input) {\n if (Array.isArray(input))\n return \"array\";\n if (typeof input === \"string\")\n return \"string\";\n return \"unknown\";\n}\nexport function parsedType(data) {\n const t = typeof data;\n switch (t) {\n case \"number\": {\n return Number.isNaN(data) ? \"nan\" : \"number\";\n }\n case \"object\": {\n if (data === null) {\n return \"null\";\n }\n if (Array.isArray(data)) {\n return \"array\";\n }\n const obj = data;\n if (obj && Object.getPrototypeOf(obj) !== Object.prototype && \"constructor\" in obj && obj.constructor) {\n return obj.constructor.name;\n }\n }\n }\n return t;\n}\nexport function issue(...args) {\n const [iss, input, inst] = args;\n if (typeof iss === \"string\") {\n return {\n message: iss,\n code: \"custom\",\n input,\n inst,\n };\n }\n return { ...iss };\n}\nexport function cleanEnum(obj) {\n return Object.entries(obj)\n .filter(([k, _]) => {\n // return true if NaN, meaning it's not a number, thus a string key\n return Number.isNaN(Number.parseInt(k, 10));\n })\n .map((el) => el[1]);\n}\n// Codec utility functions\nexport function base64ToUint8Array(base64) {\n const binaryString = atob(base64);\n const bytes = new Uint8Array(binaryString.length);\n for (let i = 0; i < binaryString.length; i++) {\n bytes[i] = binaryString.charCodeAt(i);\n }\n return bytes;\n}\nexport function uint8ArrayToBase64(bytes) {\n let binaryString = \"\";\n for (let i = 0; i < bytes.length; i++) {\n binaryString += String.fromCharCode(bytes[i]);\n }\n return btoa(binaryString);\n}\nexport function base64urlToUint8Array(base64url) {\n const base64 = base64url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n const padding = \"=\".repeat((4 - (base64.length % 4)) % 4);\n return base64ToUint8Array(base64 + padding);\n}\nexport function uint8ArrayToBase64url(bytes) {\n return uint8ArrayToBase64(bytes).replace(/\\+/g, \"-\").replace(/\\//g, \"_\").replace(/=/g, \"\");\n}\nexport function hexToUint8Array(hex) {\n const cleanHex = hex.replace(/^0x/, \"\");\n if (cleanHex.length % 2 !== 0) {\n throw new Error(\"Invalid hex string length\");\n }\n const bytes = new Uint8Array(cleanHex.length / 2);\n for (let i = 0; i < cleanHex.length; i += 2) {\n bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);\n }\n return bytes;\n}\nexport function uint8ArrayToHex(bytes) {\n return Array.from(bytes)\n .map((b) => b.toString(16).padStart(2, \"0\"))\n .join(\"\");\n}\n// instanceof\nexport class Class {\n constructor(..._args) { }\n}\n"],"names":["assertEqual","val","assertNotEqual","assertIs","_arg","assertNever","_x","assert","_","getEnumValues","entries","numericValues","v","k","joinValues","array","separator","stringifyPrimitive","jsonStringifyReplacer","value","cached","getter","nullish","input","cleanRegex","source","start","end","floatSafeRemainder","step","valDecCount","stepString","stepDecCount","match","decCount","valInt","stepInt","EVALUATING","defineLazy","object","key","objectClone","obj","assignProp","target","prop","mergeDefs","defs","mergedDescriptors","def","descriptors","cloneDef","schema","getElementAtPath","path","acc","promiseAllObject","promisesObj","keys","promises","results","resolvedObj","randomString","length","chars","str","i","esc","slugify","captureStackTrace","_args","isObject","data","allowsEval","F","isPlainObject","o","ctor","prot","shallowClone","numKeys","keyCount","getParsedType","t","propertyKeyTypes","primitiveTypes","escapeRegex","clone","inst","params","cl","normalizeParams","_params","createTransparentProxy","receiver","descriptor","optionalKeys","shape","NUMBER_FORMAT_RANGES","BIGINT_FORMAT_RANGES","pick","mask","currDef","checks","newShape","omit","extend","existingShape","_shape","safeExtend","merge","a","b","partial","Class","oldShape","required","aborted","x","startIndex","prefixIssues","issues","iss","_a","unwrapMessage","message","finalizeIssue","ctx","config","full","getSizableOrigin","getLengthableOrigin","parsedType","issue","args","cleanEnum","el","base64ToUint8Array","base64","binaryString","bytes","uint8ArrayToBase64","base64urlToUint8Array","base64url","padding","uint8ArrayToBase64url","hexToUint8Array","hex","cleanHex","uint8ArrayToHex"],"mappings":"AACO,SAASA,EAAYC,GAAK;AAC7B,SAAOA;AACX;AACO,SAASC,EAAeD,GAAK;AAChC,SAAOA;AACX;AACO,SAASE,EAASC,GAAM;AAAA;AACxB,SAASC,EAAYC,GAAI;AAC5B,QAAM,IAAI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E/D,SAAO0E;AACX;AACO,SAASS,GAAgBT,GAAO;AACnC,SAAO,MAAM,KAAKA,CAAK,EAClB,IAAI,CAAC5B,MAAMA,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,EAC1C,KAAK,EAAE;AAChB;AAEO,MAAME,GAAM;AAAA,EACf,eAAe5C,GAAO;AAAA,EAAA;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.cjs","sources":["../../../../../node_modules/zod/v4/core/versions.js"],"sourcesContent":["export const version = {\n major: 4,\n minor: 3,\n patch: 6,\n};\n"],"names":["version"],"mappings":"gFAAY,MAACA,EAAU,CACnB,MAAO,EACP,MAAO,EACP,MAAO,CACX","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versions.mjs","sources":["../../../../../node_modules/zod/v4/core/versions.js"],"sourcesContent":["export const version = {\n major: 4,\n minor: 3,\n patch: 6,\n};\n"],"names":["version"],"mappings":"AAAY,MAACA,IAAU;AAAA,EACnB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACX;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("../core/util.cjs"),u=()=>{const c={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function i(t){return c[t]??null}const d={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},a={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const n=a[t.expected]??t.expected,r=e.parsedType(t.input),o=a[r]??r;return/^[A-Z]/.test(t.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${o}`:`مدخلات غير مقبولة: يفترض إدخال ${n}، ولكن تم إدخال ${o}`}case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${e.stringifyPrimitive(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${e.joinValues(t.values,"|")}`;case"too_big":{const n=t.inclusive?"<=":"<",r=i(t.origin);return r?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${n} ${t.maximum.toString()} ${r.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${n} ${t.maximum.toString()}`}case"too_small":{const n=t.inclusive?">=":">",r=i(t.origin);return r?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${n} ${t.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${n} ${t.minimum.toString()}`}case"invalid_format":{const n=t;return n.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:n.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${n.suffix}"`:n.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${n.includes}"`:n.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${n.pattern}`:`${d[n.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${e.joinValues(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function l(){return{localeError:u()}}module.exports=l;
|
|
2
|
-
//# sourceMappingURL=ar.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ar.cjs","sources":["../../../../../node_modules/zod/v4/locales/ar.js"],"sourcesContent":["import * as util from \"../core/util.js\";\nconst error = () => {\n const Sizable = {\n string: { unit: \"حرف\", verb: \"أن يحوي\" },\n file: { unit: \"بايت\", verb: \"أن يحوي\" },\n array: { unit: \"عنصر\", verb: \"أن يحوي\" },\n set: { unit: \"عنصر\", verb: \"أن يحوي\" },\n };\n function getSizing(origin) {\n return Sizable[origin] ?? null;\n }\n const FormatDictionary = {\n regex: \"مدخل\",\n email: \"بريد إلكتروني\",\n url: \"رابط\",\n emoji: \"إيموجي\",\n uuid: \"UUID\",\n uuidv4: \"UUIDv4\",\n uuidv6: \"UUIDv6\",\n nanoid: \"nanoid\",\n guid: \"GUID\",\n cuid: \"cuid\",\n cuid2: \"cuid2\",\n ulid: \"ULID\",\n xid: \"XID\",\n ksuid: \"KSUID\",\n datetime: \"تاريخ ووقت بمعيار ISO\",\n date: \"تاريخ بمعيار ISO\",\n time: \"وقت بمعيار ISO\",\n duration: \"مدة بمعيار ISO\",\n ipv4: \"عنوان IPv4\",\n ipv6: \"عنوان IPv6\",\n cidrv4: \"مدى عناوين بصيغة IPv4\",\n cidrv6: \"مدى عناوين بصيغة IPv6\",\n base64: \"نَص بترميز base64-encoded\",\n base64url: \"نَص بترميز base64url-encoded\",\n json_string: \"نَص على هيئة JSON\",\n e164: \"رقم هاتف بمعيار E.164\",\n jwt: \"JWT\",\n template_literal: \"مدخل\",\n };\n const TypeDictionary = {\n nan: \"NaN\",\n };\n return (issue) => {\n switch (issue.code) {\n case \"invalid_type\": {\n const expected = TypeDictionary[issue.expected] ?? issue.expected;\n const receivedType = util.parsedType(issue.input);\n const received = TypeDictionary[receivedType] ?? receivedType;\n if (/^[A-Z]/.test(issue.expected)) {\n return `مدخلات غير مقبولة: يفترض إدخال instanceof ${issue.expected}، ولكن تم إدخال ${received}`;\n }\n return `مدخلات غير مقبولة: يفترض إدخال ${expected}، ولكن تم إدخال ${received}`;\n }\n case \"invalid_value\":\n if (issue.values.length === 1)\n return `مدخلات غير مقبولة: يفترض إدخال ${util.stringifyPrimitive(issue.values[0])}`;\n return `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${util.joinValues(issue.values, \"|\")}`;\n case \"too_big\": {\n const adj = issue.inclusive ? \"<=\" : \"<\";\n const sizing = getSizing(issue.origin);\n if (sizing)\n return ` أكبر من اللازم: يفترض أن تكون ${issue.origin ?? \"القيمة\"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? \"عنصر\"}`;\n return `أكبر من اللازم: يفترض أن تكون ${issue.origin ?? \"القيمة\"} ${adj} ${issue.maximum.toString()}`;\n }\n case \"too_small\": {\n const adj = issue.inclusive ? \">=\" : \">\";\n const sizing = getSizing(issue.origin);\n if (sizing) {\n return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()} ${sizing.unit}`;\n }\n return `أصغر من اللازم: يفترض لـ ${issue.origin} أن يكون ${adj} ${issue.minimum.toString()}`;\n }\n case \"invalid_format\": {\n const _issue = issue;\n if (_issue.format === \"starts_with\")\n return `نَص غير مقبول: يجب أن يبدأ بـ \"${issue.prefix}\"`;\n if (_issue.format === \"ends_with\")\n return `نَص غير مقبول: يجب أن ينتهي بـ \"${_issue.suffix}\"`;\n if (_issue.format === \"includes\")\n return `نَص غير مقبول: يجب أن يتضمَّن \"${_issue.includes}\"`;\n if (_issue.format === \"regex\")\n return `نَص غير مقبول: يجب أن يطابق النمط ${_issue.pattern}`;\n return `${FormatDictionary[_issue.format] ?? issue.format} غير مقبول`;\n }\n case \"not_multiple_of\":\n return `رقم غير مقبول: يجب أن يكون من مضاعفات ${issue.divisor}`;\n case \"unrecognized_keys\":\n return `معرف${issue.keys.length > 1 ? \"ات\" : \"\"} غريب${issue.keys.length > 1 ? \"ة\" : \"\"}: ${util.joinValues(issue.keys, \"، \")}`;\n case \"invalid_key\":\n return `معرف غير مقبول في ${issue.origin}`;\n case \"invalid_union\":\n return \"مدخل غير مقبول\";\n case \"invalid_element\":\n return `مدخل غير مقبول في ${issue.origin}`;\n default:\n return \"مدخل غير مقبول\";\n }\n };\n};\nexport default function () {\n return {\n localeError: error(),\n };\n}\n"],"names":["error","Sizable","getSizing","origin","FormatDictionary","TypeDictionary","issue","expected","receivedType","util.parsedType","received","util.stringifyPrimitive","util.joinValues","adj","sizing","_issue","ar"],"mappings":"iDACMA,EAAQ,IAAM,CAChB,MAAMC,EAAU,CACZ,OAAQ,CAAE,KAAM,MAAO,KAAM,SAAW,EACxC,KAAM,CAAE,KAAM,OAAQ,KAAM,SAAW,EACvC,MAAO,CAAE,KAAM,OAAQ,KAAM,SAAW,EACxC,IAAK,CAAE,KAAM,OAAQ,KAAM,SAAW,CACzC,EACD,SAASC,EAAUC,EAAQ,CACvB,OAAOF,EAAQE,CAAM,GAAK,IAClC,CACI,MAAMC,EAAmB,CACrB,MAAO,OACP,MAAO,gBACP,IAAK,OACL,MAAO,SACP,KAAM,OACN,OAAQ,SACR,OAAQ,SACR,OAAQ,SACR,KAAM,OACN,KAAM,OACN,MAAO,QACP,KAAM,OACN,IAAK,MACL,MAAO,QACP,SAAU,wBACV,KAAM,mBACN,KAAM,iBACN,SAAU,iBACV,KAAM,aACN,KAAM,aACN,OAAQ,wBACR,OAAQ,wBACR,OAAQ,4BACR,UAAW,+BACX,YAAa,oBACb,KAAM,wBACN,IAAK,MACL,iBAAkB,MACrB,EACKC,EAAiB,CACnB,IAAK,KACR,EACD,OAAQC,GAAU,CACd,OAAQA,EAAM,KAA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