@design-edito/tools 0.2.9 → 0.2.11
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/agnostic/arrays/index.js +12 -12
- package/agnostic/arrays/random-pick/index.js +6 -6
- package/agnostic/colors/index.js +11 -11
- package/agnostic/colors/lighten-color/index.js +2 -2
- package/agnostic/colors/saturate-color/index.js +2 -2
- package/agnostic/css/index.js +12 -12
- package/agnostic/css/styles-set/index.js +6 -6
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +5 -5
- package/agnostic/html/hyper-json/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
- package/agnostic/html/hyper-json/tree/index.js +5 -5
- package/agnostic/html/hyper-json/utils/index.js +5 -5
- package/agnostic/html/index.js +20 -20
- package/agnostic/html/sanitize/index.js +6 -6
- package/agnostic/html/selector-to-element/index.js +6 -6
- package/agnostic/html/string-to-nodes/index.js +7 -7
- package/agnostic/misc/assert/index.js +3 -3
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/index.js +26 -26
- package/agnostic/misc/lorem-ipsum/index.js +13 -13
- package/agnostic/numbers/index.js +6 -6
- package/agnostic/objects/index.js +15 -15
- package/agnostic/strings/index.js +6 -6
- package/chunks/{chunk-IFH5LQHA.js → chunk-2HJPX7E3.js} +1 -1
- package/chunks/{chunk-CLZY2DXU.js → chunk-2M33FCDG.js} +2 -2
- package/chunks/{chunk-BHEWHO2M.js → chunk-3G6FOHII.js} +1 -1
- package/chunks/{chunk-4EFX53Y4.js → chunk-3UIJ4IYZ.js} +8 -8
- package/chunks/{chunk-R765J7H2.js → chunk-7EDDWSWS.js} +18 -9
- package/chunks/{chunk-YEMEM2M6.js → chunk-7NM3LHIZ.js} +1 -1
- package/chunks/{chunk-TIER4TF4.js → chunk-7NO34XJI.js} +2 -2
- package/chunks/{chunk-5OZAL6GW.js → chunk-AI6AGF4I.js} +2 -2
- package/chunks/{chunk-NJXJS4Z3.js → chunk-B2A3V4QD.js} +26 -26
- package/chunks/{chunk-SKBOSWM2.js → chunk-CK73EBO5.js} +1 -1
- package/chunks/{chunk-OT4SVHDX.js → chunk-DZ2T5DTY.js} +1445 -502
- package/chunks/{chunk-WAMSK4A3.js → chunk-E4FJHD5R.js} +1 -1
- package/chunks/{chunk-DL5G2SYX.js → chunk-EDJ3TVNV.js} +7 -6
- package/chunks/{chunk-DOASQI7Y.js → chunk-FQ4UTWMP.js} +1 -1
- package/chunks/{chunk-3R4UGNIZ.js → chunk-H54GDVNS.js} +2 -2
- package/chunks/{chunk-OVLFK3C3.js → chunk-HFZGH6V2.js} +1 -1
- package/chunks/{chunk-E3FAI65H.js → chunk-HKNCJOAR.js} +1 -1
- package/chunks/{chunk-5EY3BYMT.js → chunk-HMAK6VAF.js} +2 -2
- package/chunks/{chunk-JCJE64PI.js → chunk-KFDXJEQ7.js} +13 -13
- package/chunks/{chunk-4UV3XIGE.js → chunk-MFYNJMVM.js} +1 -1
- package/chunks/{chunk-5D472NLE.js → chunk-P26Y7YUA.js} +1 -1
- package/chunks/{chunk-XB3EGDBI.js → chunk-PJDZMLNG.js} +1 -1
- package/chunks/{chunk-DJJBT23A.js → chunk-QSU3CVGF.js} +1 -1
- package/chunks/{chunk-LIV7TJ46.js → chunk-RHKFMXM3.js} +1 -1
- package/chunks/{chunk-7GIJUKYP.js → chunk-RVVJ4QD4.js} +1 -1
- package/chunks/{chunk-EKCFMMEG.js → chunk-SH4ACYVB.js} +5 -5
- package/chunks/{chunk-GZDDL6RB.js → chunk-SRXNICSE.js} +1 -1
- package/chunks/{chunk-ZBBU2P4D.js → chunk-WFED6NDN.js} +2 -2
- package/chunks/{chunk-AQBJ6HNB.js → chunk-WJMBLQRX.js} +1 -1
- package/chunks/{chunk-TVX5OGBE.js → chunk-XIYECYET.js} +18 -18
- package/node/@aws-s3/index.js +9 -9
- package/node/@aws-s3/storage/directory/index.js +5 -5
- package/node/@aws-s3/storage/file/index.js +7 -7
- package/node/@aws-s3/storage/index.js +9 -9
- package/node/@google-cloud/index.js +13 -13
- package/node/@google-cloud/storage/bucket/index.js +4 -4
- package/node/@google-cloud/storage/directory/index.js +5 -5
- package/node/@google-cloud/storage/file/index.js +14 -14
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
- package/node/@google-cloud/storage/index.js +15 -15
- package/node/cloud-storage/index.js +41 -41
- package/node/cloud-storage/operations/copy-dir/index.js +2 -2
- package/node/cloud-storage/operations/copy-file/index.js +2 -2
- package/node/cloud-storage/operations/download-file/index.js +2 -2
- package/node/cloud-storage/operations/exists-file/index.js +2 -2
- package/node/cloud-storage/operations/index.js +49 -49
- package/node/cloud-storage/operations/list-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-dir/index.js +2 -2
- package/node/cloud-storage/operations/move-file/index.js +2 -2
- package/node/cloud-storage/operations/remove-dir/index.js +2 -2
- package/node/cloud-storage/operations/remove-file/index.js +2 -2
- package/node/cloud-storage/operations/stat-file/index.js +2 -2
- package/node/cloud-storage/operations/upload-file/index.js +2 -2
- package/node/files/index.js +3 -3
- package/node/ftps/directory/index.js +6 -6
- package/node/ftps/file/index.js +6 -6
- package/node/ftps/index.js +8 -8
- package/node/images/format/index.d.ts +7 -0
- package/node/images/format/index.js +3 -2
- package/node/images/index.js +20 -20
- package/node/images/transform/index.js +15 -15
- package/node/images/transform/operations/blur/index.js +2 -2
- package/node/images/transform/operations/brighten/index.js +2 -2
- package/node/images/transform/operations/extend/index.js +3 -3
- package/node/images/transform/operations/extract/index.js +2 -2
- package/node/images/transform/operations/flatten/index.js +3 -3
- package/node/images/transform/operations/hue/index.js +2 -2
- package/node/images/transform/operations/level/index.js +2 -2
- package/node/images/transform/operations/lighten/index.js +2 -2
- package/node/images/transform/operations/normalize/index.js +2 -2
- package/node/images/transform/operations/resize/index.js +3 -3
- package/node/images/transform/operations/rotate/index.js +3 -3
- package/node/images/transform/operations/saturate/index.js +2 -2
- package/node/images/transform/utils/index.js +2 -2
- package/node/sftp/directory/index.js +5 -5
- package/node/sftp/file/index.js +9 -9
- package/node/sftp/index.js +11 -11
- package/package.json +19 -19
- package/chunks/{chunk-WH6BPDAC.js → chunk-2KT7AKRW.js} +3 -3
- package/chunks/{chunk-U57Q62IN.js → chunk-3LAWRHHB.js} +3 -3
- package/chunks/{chunk-CA3UPHYO.js → chunk-6AYH6N4T.js} +3 -3
- package/chunks/{chunk-QABNSMZN.js → chunk-A7K5DUP7.js} +4 -4
- package/chunks/{chunk-FS6LRTDK.js → chunk-AK5LBEW3.js} +3 -3
- package/chunks/{chunk-DPQRXSZH.js → chunk-E7JWKPHC.js} +3 -3
- package/chunks/{chunk-FR5H2OCV.js → chunk-GGT2PUZH.js} +3 -3
- package/chunks/{chunk-NOLQR5RW.js → chunk-I3LKH6JC.js} +3 -3
- package/chunks/{chunk-H4LW6FP3.js → chunk-IH6TPXGZ.js} +3 -3
- package/chunks/{chunk-EOTOFHUR.js → chunk-IIMYMEJ6.js} +3 -3
- package/chunks/{chunk-OA7Y2A5T.js → chunk-JZ6QNL7U.js} +3 -3
- package/chunks/{chunk-S4VO4PFZ.js → chunk-LSZVKXDZ.js} +3 -3
- package/chunks/{chunk-EVI7ALZX.js → chunk-MQMIN4B7.js} +6 -6
- package/chunks/{chunk-24ZUWYIR.js → chunk-MRCJT2LW.js} +3 -3
- package/chunks/{chunk-646R6BQZ.js → chunk-N7TMNMOK.js} +3 -3
- package/chunks/{chunk-UK4HNSEJ.js → chunk-NSB5NOKA.js} +3 -3
- package/chunks/{chunk-MB7HWF22.js → chunk-PXRLKO5Y.js} +3 -3
- package/chunks/{chunk-6NLNUGBI.js → chunk-RG5U7D3R.js} +3 -3
- package/chunks/{chunk-V7FSFUGL.js → chunk-TRGMY56Q.js} +5 -5
- package/chunks/{chunk-BD56ZAYF.js → chunk-UEAMPAHK.js} +3 -3
- package/chunks/{chunk-Z5A4JQLE.js → chunk-X5F6XGEP.js} +4 -4
- package/chunks/{chunk-XDL6OTUF.js → chunk-XV6XLBSP.js} +9 -9
- package/chunks/{chunk-TMBFHWXH.js → chunk-Y26GZH2J.js} +8 -8
- package/chunks/{chunk-TTUXV3E4.js → chunk-ZBAKY6DB.js} +4 -4
- package/chunks/{chunk-G5EOKWND.js → chunk-ZGCSADRX.js} +5 -5
@@ -22,6 +22,7 @@ __export(external_exports, {
|
|
22
22
|
ZodCUID: () => ZodCUID,
|
23
23
|
ZodCUID2: () => ZodCUID2,
|
24
24
|
ZodCatch: () => ZodCatch,
|
25
|
+
ZodCodec: () => ZodCodec,
|
25
26
|
ZodCustom: () => ZodCustom,
|
26
27
|
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
27
28
|
ZodDate: () => ZodDate,
|
@@ -34,6 +35,7 @@ __export(external_exports, {
|
|
34
35
|
ZodError: () => ZodError,
|
35
36
|
ZodFile: () => ZodFile,
|
36
37
|
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
38
|
+
ZodFunction: () => ZodFunction,
|
37
39
|
ZodGUID: () => ZodGUID,
|
38
40
|
ZodIPv4: () => ZodIPv4,
|
39
41
|
ZodIPv6: () => ZodIPv6,
|
@@ -83,6 +85,7 @@ __export(external_exports, {
|
|
83
85
|
ZodXID: () => ZodXID,
|
84
86
|
_ZodString: () => _ZodString,
|
85
87
|
_default: () => _default2,
|
88
|
+
_function: () => _function,
|
86
89
|
any: () => any,
|
87
90
|
array: () => array,
|
88
91
|
base64: () => base642,
|
@@ -94,6 +97,7 @@ __export(external_exports, {
|
|
94
97
|
cidrv4: () => cidrv42,
|
95
98
|
cidrv6: () => cidrv62,
|
96
99
|
clone: () => clone,
|
100
|
+
codec: () => codec,
|
97
101
|
coerce: () => coerce_exports,
|
98
102
|
config: () => config,
|
99
103
|
core: () => core_exports2,
|
@@ -101,10 +105,14 @@ __export(external_exports, {
|
|
101
105
|
cuid2: () => cuid22,
|
102
106
|
custom: () => custom,
|
103
107
|
date: () => date3,
|
108
|
+
decode: () => decode2,
|
109
|
+
decodeAsync: () => decodeAsync2,
|
104
110
|
discriminatedUnion: () => discriminatedUnion,
|
105
111
|
e164: () => e1642,
|
106
112
|
email: () => email2,
|
107
113
|
emoji: () => emoji2,
|
114
|
+
encode: () => encode2,
|
115
|
+
encodeAsync: () => encodeAsync2,
|
108
116
|
endsWith: () => _endsWith,
|
109
117
|
enum: () => _enum2,
|
110
118
|
file: () => file,
|
@@ -118,7 +126,10 @@ __export(external_exports, {
|
|
118
126
|
gt: () => _gt,
|
119
127
|
gte: () => _gte,
|
120
128
|
guid: () => guid2,
|
129
|
+
hash: () => hash,
|
130
|
+
hex: () => hex2,
|
121
131
|
hostname: () => hostname2,
|
132
|
+
httpUrl: () => httpUrl,
|
122
133
|
includes: () => _includes,
|
123
134
|
instanceof: () => _instanceof,
|
124
135
|
int: () => int,
|
@@ -179,6 +190,10 @@ __export(external_exports, {
|
|
179
190
|
regex: () => _regex,
|
180
191
|
regexes: () => regexes_exports,
|
181
192
|
registry: () => registry,
|
193
|
+
safeDecode: () => safeDecode2,
|
194
|
+
safeDecodeAsync: () => safeDecodeAsync2,
|
195
|
+
safeEncode: () => safeEncode2,
|
196
|
+
safeEncodeAsync: () => safeEncodeAsync2,
|
182
197
|
safeParse: () => safeParse2,
|
183
198
|
safeParseAsync: () => safeParseAsync2,
|
184
199
|
set: () => set,
|
@@ -208,6 +223,7 @@ __export(external_exports, {
|
|
208
223
|
unknown: () => unknown,
|
209
224
|
uppercase: () => _uppercase,
|
210
225
|
url: () => url,
|
226
|
+
util: () => util_exports,
|
211
227
|
uuid: () => uuid2,
|
212
228
|
uuidv4: () => uuidv4,
|
213
229
|
uuidv6: () => uuidv6,
|
@@ -254,6 +270,7 @@ __export(core_exports2, {
|
|
254
270
|
$ZodCheckStartsWith: () => $ZodCheckStartsWith,
|
255
271
|
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
256
272
|
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
273
|
+
$ZodCodec: () => $ZodCodec,
|
257
274
|
$ZodCustom: () => $ZodCustom,
|
258
275
|
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
259
276
|
$ZodDate: () => $ZodDate,
|
@@ -262,6 +279,7 @@ __export(core_exports2, {
|
|
262
279
|
$ZodE164: () => $ZodE164,
|
263
280
|
$ZodEmail: () => $ZodEmail,
|
264
281
|
$ZodEmoji: () => $ZodEmoji,
|
282
|
+
$ZodEncodeError: () => $ZodEncodeError,
|
265
283
|
$ZodEnum: () => $ZodEnum,
|
266
284
|
$ZodError: () => $ZodError,
|
267
285
|
$ZodFile: () => $ZodFile,
|
@@ -288,6 +306,7 @@ __export(core_exports2, {
|
|
288
306
|
$ZodNumber: () => $ZodNumber,
|
289
307
|
$ZodNumberFormat: () => $ZodNumberFormat,
|
290
308
|
$ZodObject: () => $ZodObject,
|
309
|
+
$ZodObjectJIT: () => $ZodObjectJIT,
|
291
310
|
$ZodOptional: () => $ZodOptional,
|
292
311
|
$ZodPipe: () => $ZodPipe,
|
293
312
|
$ZodPrefault: () => $ZodPrefault,
|
@@ -341,11 +360,15 @@ __export(core_exports2, {
|
|
341
360
|
_cuid2: () => _cuid2,
|
342
361
|
_custom: () => _custom,
|
343
362
|
_date: () => _date,
|
363
|
+
_decode: () => _decode,
|
364
|
+
_decodeAsync: () => _decodeAsync,
|
344
365
|
_default: () => _default,
|
345
366
|
_discriminatedUnion: () => _discriminatedUnion,
|
346
367
|
_e164: () => _e164,
|
347
368
|
_email: () => _email,
|
348
369
|
_emoji: () => _emoji2,
|
370
|
+
_encode: () => _encode,
|
371
|
+
_encodeAsync: () => _encodeAsync,
|
349
372
|
_endsWith: () => _endsWith,
|
350
373
|
_enum: () => _enum,
|
351
374
|
_file: () => _file,
|
@@ -406,6 +429,10 @@ __export(core_exports2, {
|
|
406
429
|
_record: () => _record,
|
407
430
|
_refine: () => _refine,
|
408
431
|
_regex: () => _regex,
|
432
|
+
_safeDecode: () => _safeDecode,
|
433
|
+
_safeDecodeAsync: () => _safeDecodeAsync,
|
434
|
+
_safeEncode: () => _safeEncode,
|
435
|
+
_safeEncodeAsync: () => _safeEncodeAsync,
|
409
436
|
_safeParse: () => _safeParse,
|
410
437
|
_safeParseAsync: () => _safeParseAsync,
|
411
438
|
_set: () => _set,
|
@@ -439,9 +466,12 @@ __export(core_exports2, {
|
|
439
466
|
_xid: () => _xid,
|
440
467
|
clone: () => clone,
|
441
468
|
config: () => config,
|
469
|
+
decode: () => decode,
|
470
|
+
decodeAsync: () => decodeAsync,
|
471
|
+
encode: () => encode,
|
472
|
+
encodeAsync: () => encodeAsync,
|
442
473
|
flattenError: () => flattenError,
|
443
474
|
formatError: () => formatError,
|
444
|
-
function: () => _function,
|
445
475
|
globalConfig: () => globalConfig,
|
446
476
|
globalRegistry: () => globalRegistry,
|
447
477
|
isValidBase64: () => isValidBase64,
|
@@ -453,6 +483,10 @@ __export(core_exports2, {
|
|
453
483
|
prettifyError: () => prettifyError,
|
454
484
|
regexes: () => regexes_exports,
|
455
485
|
registry: () => registry,
|
486
|
+
safeDecode: () => safeDecode,
|
487
|
+
safeDecodeAsync: () => safeDecodeAsync,
|
488
|
+
safeEncode: () => safeEncode,
|
489
|
+
safeEncodeAsync: () => safeEncodeAsync,
|
456
490
|
safeParse: () => safeParse,
|
457
491
|
safeParseAsync: () => safeParseAsync,
|
458
492
|
toDotPath: () => toDotPath,
|
@@ -515,6 +549,12 @@ var $ZodAsyncError = class extends Error {
|
|
515
549
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
516
550
|
}
|
517
551
|
};
|
552
|
+
var $ZodEncodeError = class extends Error {
|
553
|
+
constructor(name) {
|
554
|
+
super(`Encountered unidirectional transform during encode: ${name}`);
|
555
|
+
this.name = "ZodEncodeError";
|
556
|
+
}
|
557
|
+
};
|
518
558
|
var globalConfig = {};
|
519
559
|
function config(newConfig) {
|
520
560
|
if (newConfig)
|
@@ -536,6 +576,8 @@ __export(util_exports, {
|
|
536
576
|
assertNever: () => assertNever,
|
537
577
|
assertNotEqual: () => assertNotEqual,
|
538
578
|
assignProp: () => assignProp,
|
579
|
+
base64ToUint8Array: () => base64ToUint8Array,
|
580
|
+
base64urlToUint8Array: () => base64urlToUint8Array,
|
539
581
|
cached: () => cached,
|
540
582
|
captureStackTrace: () => captureStackTrace,
|
541
583
|
cleanEnum: () => cleanEnum,
|
@@ -554,6 +596,7 @@ __export(util_exports, {
|
|
554
596
|
getLengthableOrigin: () => getLengthableOrigin,
|
555
597
|
getParsedType: () => getParsedType,
|
556
598
|
getSizableOrigin: () => getSizableOrigin,
|
599
|
+
hexToUint8Array: () => hexToUint8Array,
|
557
600
|
isObject: () => isObject,
|
558
601
|
isPlainObject: () => isPlainObject,
|
559
602
|
issue: () => issue,
|
@@ -575,8 +618,12 @@ __export(util_exports, {
|
|
575
618
|
propertyKeyTypes: () => propertyKeyTypes,
|
576
619
|
randomString: () => randomString,
|
577
620
|
required: () => required,
|
621
|
+
safeExtend: () => safeExtend,
|
578
622
|
shallowClone: () => shallowClone,
|
579
623
|
stringifyPrimitive: () => stringifyPrimitive,
|
624
|
+
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
625
|
+
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
626
|
+
uint8ArrayToHex: () => uint8ArrayToHex,
|
580
627
|
unwrapMessage: () => unwrapMessage
|
581
628
|
});
|
582
629
|
function assertEqual(val) {
|
@@ -747,6 +794,8 @@ function isPlainObject(o) {
|
|
747
794
|
function shallowClone(o) {
|
748
795
|
if (isPlainObject(o))
|
749
796
|
return { ...o };
|
797
|
+
if (Array.isArray(o))
|
798
|
+
return [...o];
|
750
799
|
return o;
|
751
800
|
}
|
752
801
|
function numKeys(data) {
|
@@ -929,6 +978,11 @@ function extend(schema, shape) {
|
|
929
978
|
if (!isPlainObject(shape)) {
|
930
979
|
throw new Error("Invalid input to extend: expected a plain object");
|
931
980
|
}
|
981
|
+
const checks = schema._zod.def.checks;
|
982
|
+
const hasChecks = checks && checks.length > 0;
|
983
|
+
if (hasChecks) {
|
984
|
+
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
985
|
+
}
|
932
986
|
const def = mergeDefs(schema._zod.def, {
|
933
987
|
get shape() {
|
934
988
|
const _shape = { ...schema._zod.def.shape, ...shape };
|
@@ -939,6 +993,21 @@ function extend(schema, shape) {
|
|
939
993
|
});
|
940
994
|
return clone(schema, def);
|
941
995
|
}
|
996
|
+
function safeExtend(schema, shape) {
|
997
|
+
if (!isPlainObject(shape)) {
|
998
|
+
throw new Error("Invalid input to safeExtend: expected a plain object");
|
999
|
+
}
|
1000
|
+
const def = {
|
1001
|
+
...schema._zod.def,
|
1002
|
+
get shape() {
|
1003
|
+
const _shape = { ...schema._zod.def.shape, ...shape };
|
1004
|
+
assignProp(this, "shape", _shape);
|
1005
|
+
return _shape;
|
1006
|
+
},
|
1007
|
+
checks: schema._zod.def.checks
|
1008
|
+
};
|
1009
|
+
return clone(schema, def);
|
1010
|
+
}
|
942
1011
|
function merge(a, b) {
|
943
1012
|
const def = mergeDefs(a._zod.def, {
|
944
1013
|
get shape() {
|
@@ -1019,6 +1088,8 @@ function required(Class2, schema, mask) {
|
|
1019
1088
|
return clone(schema, def);
|
1020
1089
|
}
|
1021
1090
|
function aborted(x, startIndex = 0) {
|
1091
|
+
if (x.aborted === true)
|
1092
|
+
return true;
|
1022
1093
|
for (let i = startIndex; i < x.issues.length; i++) {
|
1023
1094
|
if (x.issues[i]?.continue !== true) {
|
1024
1095
|
return true;
|
@@ -1083,6 +1154,43 @@ function cleanEnum(obj) {
|
|
1083
1154
|
return Number.isNaN(Number.parseInt(k, 10));
|
1084
1155
|
}).map((el) => el[1]);
|
1085
1156
|
}
|
1157
|
+
function base64ToUint8Array(base643) {
|
1158
|
+
const binaryString = atob(base643);
|
1159
|
+
const bytes = new Uint8Array(binaryString.length);
|
1160
|
+
for (let i = 0; i < binaryString.length; i++) {
|
1161
|
+
bytes[i] = binaryString.charCodeAt(i);
|
1162
|
+
}
|
1163
|
+
return bytes;
|
1164
|
+
}
|
1165
|
+
function uint8ArrayToBase64(bytes) {
|
1166
|
+
let binaryString = "";
|
1167
|
+
for (let i = 0; i < bytes.length; i++) {
|
1168
|
+
binaryString += String.fromCharCode(bytes[i]);
|
1169
|
+
}
|
1170
|
+
return btoa(binaryString);
|
1171
|
+
}
|
1172
|
+
function base64urlToUint8Array(base64url3) {
|
1173
|
+
const base643 = base64url3.replace(/-/g, "+").replace(/_/g, "/");
|
1174
|
+
const padding = "=".repeat((4 - base643.length % 4) % 4);
|
1175
|
+
return base64ToUint8Array(base643 + padding);
|
1176
|
+
}
|
1177
|
+
function uint8ArrayToBase64url(bytes) {
|
1178
|
+
return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
1179
|
+
}
|
1180
|
+
function hexToUint8Array(hex3) {
|
1181
|
+
const cleanHex = hex3.replace(/^0x/, "");
|
1182
|
+
if (cleanHex.length % 2 !== 0) {
|
1183
|
+
throw new Error("Invalid hex string length");
|
1184
|
+
}
|
1185
|
+
const bytes = new Uint8Array(cleanHex.length / 2);
|
1186
|
+
for (let i = 0; i < cleanHex.length; i += 2) {
|
1187
|
+
bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
|
1188
|
+
}
|
1189
|
+
return bytes;
|
1190
|
+
}
|
1191
|
+
function uint8ArrayToHex(bytes) {
|
1192
|
+
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
1193
|
+
}
|
1086
1194
|
var Class = class {
|
1087
1195
|
constructor(..._args) {
|
1088
1196
|
}
|
@@ -1107,10 +1215,10 @@ var initializer = (inst, def) => {
|
|
1107
1215
|
};
|
1108
1216
|
var $ZodError = $constructor("$ZodError", initializer);
|
1109
1217
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
1110
|
-
function flattenError(
|
1218
|
+
function flattenError(error46, mapper = (issue2) => issue2.message) {
|
1111
1219
|
const fieldErrors = {};
|
1112
1220
|
const formErrors = [];
|
1113
|
-
for (const sub of
|
1221
|
+
for (const sub of error46.issues) {
|
1114
1222
|
if (sub.path.length > 0) {
|
1115
1223
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
1116
1224
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
@@ -1120,13 +1228,10 @@ function flattenError(error43, mapper = (issue2) => issue2.message) {
|
|
1120
1228
|
}
|
1121
1229
|
return { formErrors, fieldErrors };
|
1122
1230
|
}
|
1123
|
-
function formatError(
|
1124
|
-
const mapper = _mapper || function(issue2) {
|
1125
|
-
return issue2.message;
|
1126
|
-
};
|
1231
|
+
function formatError(error46, mapper = (issue2) => issue2.message) {
|
1127
1232
|
const fieldErrors = { _errors: [] };
|
1128
|
-
const processError = (
|
1129
|
-
for (const issue2 of
|
1233
|
+
const processError = (error47) => {
|
1234
|
+
for (const issue2 of error47.issues) {
|
1130
1235
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
1131
1236
|
issue2.errors.map((issues) => processError({ issues }));
|
1132
1237
|
} else if (issue2.code === "invalid_key") {
|
@@ -1153,17 +1258,14 @@ function formatError(error43, _mapper) {
|
|
1153
1258
|
}
|
1154
1259
|
}
|
1155
1260
|
};
|
1156
|
-
processError(
|
1261
|
+
processError(error46);
|
1157
1262
|
return fieldErrors;
|
1158
1263
|
}
|
1159
|
-
function treeifyError(
|
1160
|
-
const mapper = _mapper || function(issue2) {
|
1161
|
-
return issue2.message;
|
1162
|
-
};
|
1264
|
+
function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
1163
1265
|
const result = { errors: [] };
|
1164
|
-
const processError = (
|
1266
|
+
const processError = (error47, path = []) => {
|
1165
1267
|
var _a, _b;
|
1166
|
-
for (const issue2 of
|
1268
|
+
for (const issue2 of error47.issues) {
|
1167
1269
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
1168
1270
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
1169
1271
|
} else if (issue2.code === "invalid_key") {
|
@@ -1198,7 +1300,7 @@ function treeifyError(error43, _mapper) {
|
|
1198
1300
|
}
|
1199
1301
|
}
|
1200
1302
|
};
|
1201
|
-
processError(
|
1303
|
+
processError(error46);
|
1202
1304
|
return result;
|
1203
1305
|
}
|
1204
1306
|
function toDotPath(_path) {
|
@@ -1219,9 +1321,9 @@ function toDotPath(_path) {
|
|
1219
1321
|
}
|
1220
1322
|
return segs.join("");
|
1221
1323
|
}
|
1222
|
-
function prettifyError(
|
1324
|
+
function prettifyError(error46) {
|
1223
1325
|
const lines = [];
|
1224
|
-
const issues = [...
|
1326
|
+
const issues = [...error46.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
1225
1327
|
for (const issue2 of issues) {
|
1226
1328
|
lines.push(`\u2716 ${issue2.message}`);
|
1227
1329
|
if (issue2.path?.length)
|
@@ -1281,6 +1383,42 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1281
1383
|
} : { success: true, data: result.value };
|
1282
1384
|
};
|
1283
1385
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
1386
|
+
var _encode = (_Err) => (schema, value, _ctx) => {
|
1387
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
1388
|
+
return _parse(_Err)(schema, value, ctx);
|
1389
|
+
};
|
1390
|
+
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
1391
|
+
var _decode = (_Err) => (schema, value, _ctx) => {
|
1392
|
+
return _parse(_Err)(schema, value, _ctx);
|
1393
|
+
};
|
1394
|
+
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
1395
|
+
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
1396
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
1397
|
+
return _parseAsync(_Err)(schema, value, ctx);
|
1398
|
+
};
|
1399
|
+
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
1400
|
+
var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
1401
|
+
return _parseAsync(_Err)(schema, value, _ctx);
|
1402
|
+
};
|
1403
|
+
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
1404
|
+
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
1405
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
1406
|
+
return _safeParse(_Err)(schema, value, ctx);
|
1407
|
+
};
|
1408
|
+
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
1409
|
+
var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
1410
|
+
return _safeParse(_Err)(schema, value, _ctx);
|
1411
|
+
};
|
1412
|
+
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
1413
|
+
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
1414
|
+
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
1415
|
+
return _safeParseAsync(_Err)(schema, value, ctx);
|
1416
|
+
};
|
1417
|
+
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
1418
|
+
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
1419
|
+
return _safeParseAsync(_Err)(schema, value, _ctx);
|
1420
|
+
};
|
1421
|
+
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
1284
1422
|
|
1285
1423
|
// node_modules/zod/v4/core/regexes.js
|
1286
1424
|
var regexes_exports = {};
|
@@ -1303,6 +1441,7 @@ __export(regexes_exports, {
|
|
1303
1441
|
emoji: () => emoji,
|
1304
1442
|
extendedDuration: () => extendedDuration,
|
1305
1443
|
guid: () => guid,
|
1444
|
+
hex: () => hex,
|
1306
1445
|
hostname: () => hostname,
|
1307
1446
|
html5Email: () => html5Email,
|
1308
1447
|
idnEmail: () => idnEmail,
|
@@ -1311,10 +1450,25 @@ __export(regexes_exports, {
|
|
1311
1450
|
ipv6: () => ipv6,
|
1312
1451
|
ksuid: () => ksuid,
|
1313
1452
|
lowercase: () => lowercase,
|
1453
|
+
md5_base64: () => md5_base64,
|
1454
|
+
md5_base64url: () => md5_base64url,
|
1455
|
+
md5_hex: () => md5_hex,
|
1314
1456
|
nanoid: () => nanoid,
|
1315
1457
|
null: () => _null,
|
1316
1458
|
number: () => number,
|
1317
1459
|
rfc5322Email: () => rfc5322Email,
|
1460
|
+
sha1_base64: () => sha1_base64,
|
1461
|
+
sha1_base64url: () => sha1_base64url,
|
1462
|
+
sha1_hex: () => sha1_hex,
|
1463
|
+
sha256_base64: () => sha256_base64,
|
1464
|
+
sha256_base64url: () => sha256_base64url,
|
1465
|
+
sha256_hex: () => sha256_hex,
|
1466
|
+
sha384_base64: () => sha384_base64,
|
1467
|
+
sha384_base64url: () => sha384_base64url,
|
1468
|
+
sha384_hex: () => sha384_hex,
|
1469
|
+
sha512_base64: () => sha512_base64,
|
1470
|
+
sha512_base64url: () => sha512_base64url,
|
1471
|
+
sha512_hex: () => sha512_hex,
|
1318
1472
|
string: () => string,
|
1319
1473
|
time: () => time,
|
1320
1474
|
ulid: () => ulid,
|
@@ -1338,7 +1492,7 @@ var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(
|
|
1338
1492
|
var guid = /^([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})$/;
|
1339
1493
|
var uuid = (version2) => {
|
1340
1494
|
if (!version2)
|
1341
|
-
return /^([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)$/;
|
1495
|
+
return /^([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)$/;
|
1342
1496
|
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
1343
1497
|
};
|
1344
1498
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
@@ -1348,14 +1502,14 @@ var email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A
|
|
1348
1502
|
var html5Email = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
1349
1503
|
var rfc5322Email = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
1350
1504
|
var unicodeEmail = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u;
|
1351
|
-
var idnEmail =
|
1505
|
+
var idnEmail = unicodeEmail;
|
1352
1506
|
var browserEmail = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
1353
1507
|
var _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
1354
1508
|
function emoji() {
|
1355
1509
|
return new RegExp(_emoji, "u");
|
1356
1510
|
}
|
1357
1511
|
var ipv4 = /^(?:(?: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])$/;
|
1358
|
-
var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}
|
1512
|
+
var ipv6 = /^(([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}|:))$/;
|
1359
1513
|
var cidrv4 = /^((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])$/;
|
1360
1514
|
var cidrv6 = /^(([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])$/;
|
1361
1515
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
@@ -1387,14 +1541,36 @@ var string = (params) => {
|
|
1387
1541
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
1388
1542
|
return new RegExp(`^${regex}$`);
|
1389
1543
|
};
|
1390
|
-
var bigint =
|
1391
|
-
var integer =
|
1392
|
-
var number = /^-?\d+(?:\.\d+)
|
1393
|
-
var boolean =
|
1394
|
-
var _null =
|
1395
|
-
var _undefined =
|
1544
|
+
var bigint = /^-?\d+n?$/;
|
1545
|
+
var integer = /^-?\d+$/;
|
1546
|
+
var number = /^-?\d+(?:\.\d+)?/;
|
1547
|
+
var boolean = /^(?:true|false)$/i;
|
1548
|
+
var _null = /^null$/i;
|
1549
|
+
var _undefined = /^undefined$/i;
|
1396
1550
|
var lowercase = /^[^A-Z]*$/;
|
1397
1551
|
var uppercase = /^[^a-z]*$/;
|
1552
|
+
var hex = /^[0-9a-fA-F]*$/;
|
1553
|
+
function fixedBase64(bodyLength, padding) {
|
1554
|
+
return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`);
|
1555
|
+
}
|
1556
|
+
function fixedBase64url(length) {
|
1557
|
+
return new RegExp(`^[A-Za-z0-9_-]{${length}}$`);
|
1558
|
+
}
|
1559
|
+
var md5_hex = /^[0-9a-fA-F]{32}$/;
|
1560
|
+
var md5_base64 = /* @__PURE__ */ fixedBase64(22, "==");
|
1561
|
+
var md5_base64url = /* @__PURE__ */ fixedBase64url(22);
|
1562
|
+
var sha1_hex = /^[0-9a-fA-F]{40}$/;
|
1563
|
+
var sha1_base64 = /* @__PURE__ */ fixedBase64(27, "=");
|
1564
|
+
var sha1_base64url = /* @__PURE__ */ fixedBase64url(27);
|
1565
|
+
var sha256_hex = /^[0-9a-fA-F]{64}$/;
|
1566
|
+
var sha256_base64 = /* @__PURE__ */ fixedBase64(43, "=");
|
1567
|
+
var sha256_base64url = /* @__PURE__ */ fixedBase64url(43);
|
1568
|
+
var sha384_hex = /^[0-9a-fA-F]{96}$/;
|
1569
|
+
var sha384_base64 = /* @__PURE__ */ fixedBase64(64, "");
|
1570
|
+
var sha384_base64url = /* @__PURE__ */ fixedBase64url(64);
|
1571
|
+
var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
1572
|
+
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
1573
|
+
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
1398
1574
|
|
1399
1575
|
// node_modules/zod/v4/core/checks.js
|
1400
1576
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
@@ -1615,6 +1791,7 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
1615
1791
|
origin: getSizableOrigin(input),
|
1616
1792
|
code: "too_big",
|
1617
1793
|
maximum: def.maximum,
|
1794
|
+
inclusive: true,
|
1618
1795
|
input,
|
1619
1796
|
inst,
|
1620
1797
|
continue: !def.abort
|
@@ -1642,6 +1819,7 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
1642
1819
|
origin: getSizableOrigin(input),
|
1643
1820
|
code: "too_small",
|
1644
1821
|
minimum: def.minimum,
|
1822
|
+
inclusive: true,
|
1645
1823
|
input,
|
1646
1824
|
inst,
|
1647
1825
|
continue: !def.abort
|
@@ -1975,8 +2153,8 @@ var Doc = class {
|
|
1975
2153
|
// node_modules/zod/v4/core/versions.js
|
1976
2154
|
var version = {
|
1977
2155
|
major: 4,
|
1978
|
-
minor:
|
1979
|
-
patch:
|
2156
|
+
minor: 1,
|
2157
|
+
patch: 12
|
1980
2158
|
};
|
1981
2159
|
|
1982
2160
|
// node_modules/zod/v4/core/schemas.js
|
@@ -2041,7 +2219,32 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2041
2219
|
}
|
2042
2220
|
return payload;
|
2043
2221
|
};
|
2222
|
+
const handleCanaryResult = (canary, payload, ctx) => {
|
2223
|
+
if (aborted(canary)) {
|
2224
|
+
canary.aborted = true;
|
2225
|
+
return canary;
|
2226
|
+
}
|
2227
|
+
const checkResult = runChecks(payload, checks, ctx);
|
2228
|
+
if (checkResult instanceof Promise) {
|
2229
|
+
if (ctx.async === false)
|
2230
|
+
throw new $ZodAsyncError();
|
2231
|
+
return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
|
2232
|
+
}
|
2233
|
+
return inst._zod.parse(checkResult, ctx);
|
2234
|
+
};
|
2044
2235
|
inst._zod.run = (payload, ctx) => {
|
2236
|
+
if (ctx.skipChecks) {
|
2237
|
+
return inst._zod.parse(payload, ctx);
|
2238
|
+
}
|
2239
|
+
if (ctx.direction === "backward") {
|
2240
|
+
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
2241
|
+
if (canary instanceof Promise) {
|
2242
|
+
return canary.then((canary2) => {
|
2243
|
+
return handleCanaryResult(canary2, payload, ctx);
|
2244
|
+
});
|
2245
|
+
}
|
2246
|
+
return handleCanaryResult(canary, payload, ctx);
|
2247
|
+
}
|
2045
2248
|
const result = inst._zod.parse(payload, ctx);
|
2046
2249
|
if (result instanceof Promise) {
|
2047
2250
|
if (ctx.async === false)
|
@@ -2248,8 +2451,11 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
2248
2451
|
def.pattern ?? (def.pattern = cidrv6);
|
2249
2452
|
$ZodStringFormat.init(inst, def);
|
2250
2453
|
inst._zod.check = (payload) => {
|
2251
|
-
const
|
2454
|
+
const parts = payload.value.split("/");
|
2252
2455
|
try {
|
2456
|
+
if (parts.length !== 2)
|
2457
|
+
throw new Error();
|
2458
|
+
const [address, prefix] = parts;
|
2253
2459
|
if (!prefix)
|
2254
2460
|
throw new Error();
|
2255
2461
|
const prefixNum = Number(prefix);
|
@@ -2610,24 +2816,71 @@ function handlePropertyResult(result, final, key, input) {
|
|
2610
2816
|
final.value[key] = result.value;
|
2611
2817
|
}
|
2612
2818
|
}
|
2819
|
+
function normalizeDef(def) {
|
2820
|
+
const keys = Object.keys(def.shape);
|
2821
|
+
for (const k of keys) {
|
2822
|
+
if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
|
2823
|
+
throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
|
2824
|
+
}
|
2825
|
+
}
|
2826
|
+
const okeys = optionalKeys(def.shape);
|
2827
|
+
return {
|
2828
|
+
...def,
|
2829
|
+
keys,
|
2830
|
+
keySet: new Set(keys),
|
2831
|
+
numKeys: keys.length,
|
2832
|
+
optionalKeys: new Set(okeys)
|
2833
|
+
};
|
2834
|
+
}
|
2835
|
+
function handleCatchall(proms, input, payload, ctx, def, inst) {
|
2836
|
+
const unrecognized = [];
|
2837
|
+
const keySet = def.keySet;
|
2838
|
+
const _catchall = def.catchall._zod;
|
2839
|
+
const t = _catchall.def.type;
|
2840
|
+
for (const key of Object.keys(input)) {
|
2841
|
+
if (keySet.has(key))
|
2842
|
+
continue;
|
2843
|
+
if (t === "never") {
|
2844
|
+
unrecognized.push(key);
|
2845
|
+
continue;
|
2846
|
+
}
|
2847
|
+
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
2848
|
+
if (r instanceof Promise) {
|
2849
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
2850
|
+
} else {
|
2851
|
+
handlePropertyResult(r, payload, key, input);
|
2852
|
+
}
|
2853
|
+
}
|
2854
|
+
if (unrecognized.length) {
|
2855
|
+
payload.issues.push({
|
2856
|
+
code: "unrecognized_keys",
|
2857
|
+
keys: unrecognized,
|
2858
|
+
input,
|
2859
|
+
inst
|
2860
|
+
});
|
2861
|
+
}
|
2862
|
+
if (!proms.length)
|
2863
|
+
return payload;
|
2864
|
+
return Promise.all(proms).then(() => {
|
2865
|
+
return payload;
|
2866
|
+
});
|
2867
|
+
}
|
2613
2868
|
var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
2614
2869
|
$ZodType.init(inst, def);
|
2615
|
-
const
|
2616
|
-
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2870
|
+
const desc = Object.getOwnPropertyDescriptor(def, "shape");
|
2871
|
+
if (!desc?.get) {
|
2872
|
+
const sh = def.shape;
|
2873
|
+
Object.defineProperty(def, "shape", {
|
2874
|
+
get: () => {
|
2875
|
+
const newSh = { ...sh };
|
2876
|
+
Object.defineProperty(def, "shape", {
|
2877
|
+
value: newSh
|
2878
|
+
});
|
2879
|
+
return newSh;
|
2620
2880
|
}
|
2621
|
-
}
|
2622
|
-
|
2623
|
-
|
2624
|
-
shape: def.shape,
|
2625
|
-
keys,
|
2626
|
-
keySet: new Set(keys),
|
2627
|
-
numKeys: keys.length,
|
2628
|
-
optionalKeys: new Set(okeys)
|
2629
|
-
};
|
2630
|
-
});
|
2881
|
+
});
|
2882
|
+
}
|
2883
|
+
const _normalized = cached(() => normalizeDef(def));
|
2631
2884
|
defineLazy(inst._zod, "propValues", () => {
|
2632
2885
|
const shape = def.shape;
|
2633
2886
|
const propValues = {};
|
@@ -2641,6 +2894,43 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
2641
2894
|
}
|
2642
2895
|
return propValues;
|
2643
2896
|
});
|
2897
|
+
const isObject2 = isObject;
|
2898
|
+
const catchall = def.catchall;
|
2899
|
+
let value;
|
2900
|
+
inst._zod.parse = (payload, ctx) => {
|
2901
|
+
value ?? (value = _normalized.value);
|
2902
|
+
const input = payload.value;
|
2903
|
+
if (!isObject2(input)) {
|
2904
|
+
payload.issues.push({
|
2905
|
+
expected: "object",
|
2906
|
+
code: "invalid_type",
|
2907
|
+
input,
|
2908
|
+
inst
|
2909
|
+
});
|
2910
|
+
return payload;
|
2911
|
+
}
|
2912
|
+
payload.value = {};
|
2913
|
+
const proms = [];
|
2914
|
+
const shape = value.shape;
|
2915
|
+
for (const key of value.keys) {
|
2916
|
+
const el = shape[key];
|
2917
|
+
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
2918
|
+
if (r instanceof Promise) {
|
2919
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
2920
|
+
} else {
|
2921
|
+
handlePropertyResult(r, payload, key, input);
|
2922
|
+
}
|
2923
|
+
}
|
2924
|
+
if (!catchall) {
|
2925
|
+
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
2926
|
+
}
|
2927
|
+
return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
|
2928
|
+
};
|
2929
|
+
});
|
2930
|
+
var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
|
2931
|
+
$ZodObject.init(inst, def);
|
2932
|
+
const superParse = inst._zod.parse;
|
2933
|
+
const _normalized = cached(() => normalizeDef(def));
|
2644
2934
|
const generateFastpass = (shape) => {
|
2645
2935
|
const doc = new Doc(["shape", "payload", "ctx"]);
|
2646
2936
|
const normalized = _normalized.value;
|
@@ -2654,7 +2944,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
2654
2944
|
for (const key of normalized.keys) {
|
2655
2945
|
ids[key] = `key_${counter++}`;
|
2656
2946
|
}
|
2657
|
-
doc.write(`const newResult = {}
|
2947
|
+
doc.write(`const newResult = {};`);
|
2658
2948
|
for (const key of normalized.keys) {
|
2659
2949
|
const id = ids[key];
|
2660
2950
|
const k = esc(key);
|
@@ -2667,6 +2957,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
2667
2957
|
})));
|
2668
2958
|
}
|
2669
2959
|
|
2960
|
+
|
2670
2961
|
if (${id}.value === undefined) {
|
2671
2962
|
if (${k} in input) {
|
2672
2963
|
newResult[${k}] = undefined;
|
@@ -2674,6 +2965,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
2674
2965
|
} else {
|
2675
2966
|
newResult[${k}] = ${id}.value;
|
2676
2967
|
}
|
2968
|
+
|
2677
2969
|
`);
|
2678
2970
|
}
|
2679
2971
|
doc.write(`payload.value = newResult;`);
|
@@ -2700,58 +2992,15 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
2700
2992
|
});
|
2701
2993
|
return payload;
|
2702
2994
|
}
|
2703
|
-
const proms = [];
|
2704
2995
|
if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
|
2705
2996
|
if (!fastpass)
|
2706
2997
|
fastpass = generateFastpass(def.shape);
|
2707
2998
|
payload = fastpass(payload, ctx);
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
for (const key of value.keys) {
|
2712
|
-
const el = shape[key];
|
2713
|
-
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
2714
|
-
if (r instanceof Promise) {
|
2715
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
2716
|
-
} else {
|
2717
|
-
handlePropertyResult(r, payload, key, input);
|
2718
|
-
}
|
2719
|
-
}
|
2720
|
-
}
|
2721
|
-
if (!catchall) {
|
2722
|
-
return proms.length ? Promise.all(proms).then(() => payload) : payload;
|
2723
|
-
}
|
2724
|
-
const unrecognized = [];
|
2725
|
-
const keySet = value.keySet;
|
2726
|
-
const _catchall = catchall._zod;
|
2727
|
-
const t = _catchall.def.type;
|
2728
|
-
for (const key of Object.keys(input)) {
|
2729
|
-
if (keySet.has(key))
|
2730
|
-
continue;
|
2731
|
-
if (t === "never") {
|
2732
|
-
unrecognized.push(key);
|
2733
|
-
continue;
|
2734
|
-
}
|
2735
|
-
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
2736
|
-
if (r instanceof Promise) {
|
2737
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
|
2738
|
-
} else {
|
2739
|
-
handlePropertyResult(r, payload, key, input);
|
2740
|
-
}
|
2741
|
-
}
|
2742
|
-
if (unrecognized.length) {
|
2743
|
-
payload.issues.push({
|
2744
|
-
code: "unrecognized_keys",
|
2745
|
-
keys: unrecognized,
|
2746
|
-
input,
|
2747
|
-
inst
|
2748
|
-
});
|
2999
|
+
if (!catchall)
|
3000
|
+
return payload;
|
3001
|
+
return handleCatchall([], input, payload, ctx, value, inst);
|
2749
3002
|
}
|
2750
|
-
|
2751
|
-
return payload;
|
2752
|
-
return Promise.all(proms).then(() => {
|
2753
|
-
return payload;
|
2754
|
-
});
|
3003
|
+
return superParse(payload, ctx);
|
2755
3004
|
};
|
2756
3005
|
});
|
2757
3006
|
function handleUnionResults(results, final, inst, ctx) {
|
@@ -3278,9 +3527,12 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
3278
3527
|
});
|
3279
3528
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
3280
3529
|
$ZodType.init(inst, def);
|
3281
|
-
inst._zod.parse = (payload,
|
3530
|
+
inst._zod.parse = (payload, ctx) => {
|
3531
|
+
if (ctx.direction === "backward") {
|
3532
|
+
throw new $ZodEncodeError(inst.constructor.name);
|
3533
|
+
}
|
3282
3534
|
const _out = def.transform(payload.value, payload);
|
3283
|
-
if (
|
3535
|
+
if (ctx.async) {
|
3284
3536
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
3285
3537
|
return output.then((output2) => {
|
3286
3538
|
payload.value = output2;
|
@@ -3346,6 +3598,9 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
3346
3598
|
inst._zod.optin = "optional";
|
3347
3599
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
3348
3600
|
inst._zod.parse = (payload, ctx) => {
|
3601
|
+
if (ctx.direction === "backward") {
|
3602
|
+
return def.innerType._zod.run(payload, ctx);
|
3603
|
+
}
|
3349
3604
|
if (payload.value === void 0) {
|
3350
3605
|
payload.value = def.defaultValue;
|
3351
3606
|
return payload;
|
@@ -3368,6 +3623,9 @@ var $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
|
|
3368
3623
|
inst._zod.optin = "optional";
|
3369
3624
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
3370
3625
|
inst._zod.parse = (payload, ctx) => {
|
3626
|
+
if (ctx.direction === "backward") {
|
3627
|
+
return def.innerType._zod.run(payload, ctx);
|
3628
|
+
}
|
3371
3629
|
if (payload.value === void 0) {
|
3372
3630
|
payload.value = def.defaultValue;
|
3373
3631
|
}
|
@@ -3402,6 +3660,9 @@ function handleNonOptionalResult(payload, inst) {
|
|
3402
3660
|
var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
3403
3661
|
$ZodType.init(inst, def);
|
3404
3662
|
inst._zod.parse = (payload, ctx) => {
|
3663
|
+
if (ctx.direction === "backward") {
|
3664
|
+
throw new $ZodEncodeError("ZodSuccess");
|
3665
|
+
}
|
3405
3666
|
const result = def.innerType._zod.run(payload, ctx);
|
3406
3667
|
if (result instanceof Promise) {
|
3407
3668
|
return result.then((result2) => {
|
@@ -3419,6 +3680,9 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3419
3680
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
3420
3681
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
3421
3682
|
inst._zod.parse = (payload, ctx) => {
|
3683
|
+
if (ctx.direction === "backward") {
|
3684
|
+
return def.innerType._zod.run(payload, ctx);
|
3685
|
+
}
|
3422
3686
|
const result = def.innerType._zod.run(payload, ctx);
|
3423
3687
|
if (result instanceof Promise) {
|
3424
3688
|
return result.then((result2) => {
|
@@ -3472,18 +3736,76 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
3472
3736
|
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
3473
3737
|
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
3474
3738
|
inst._zod.parse = (payload, ctx) => {
|
3739
|
+
if (ctx.direction === "backward") {
|
3740
|
+
const right = def.out._zod.run(payload, ctx);
|
3741
|
+
if (right instanceof Promise) {
|
3742
|
+
return right.then((right2) => handlePipeResult(right2, def.in, ctx));
|
3743
|
+
}
|
3744
|
+
return handlePipeResult(right, def.in, ctx);
|
3745
|
+
}
|
3475
3746
|
const left = def.in._zod.run(payload, ctx);
|
3476
3747
|
if (left instanceof Promise) {
|
3477
|
-
return left.then((left2) => handlePipeResult(left2, def, ctx));
|
3748
|
+
return left.then((left2) => handlePipeResult(left2, def.out, ctx));
|
3749
|
+
}
|
3750
|
+
return handlePipeResult(left, def.out, ctx);
|
3751
|
+
};
|
3752
|
+
});
|
3753
|
+
function handlePipeResult(left, next, ctx) {
|
3754
|
+
if (left.issues.length) {
|
3755
|
+
left.aborted = true;
|
3756
|
+
return left;
|
3757
|
+
}
|
3758
|
+
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
3759
|
+
}
|
3760
|
+
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
3761
|
+
$ZodType.init(inst, def);
|
3762
|
+
defineLazy(inst._zod, "values", () => def.in._zod.values);
|
3763
|
+
defineLazy(inst._zod, "optin", () => def.in._zod.optin);
|
3764
|
+
defineLazy(inst._zod, "optout", () => def.out._zod.optout);
|
3765
|
+
defineLazy(inst._zod, "propValues", () => def.in._zod.propValues);
|
3766
|
+
inst._zod.parse = (payload, ctx) => {
|
3767
|
+
const direction = ctx.direction || "forward";
|
3768
|
+
if (direction === "forward") {
|
3769
|
+
const left = def.in._zod.run(payload, ctx);
|
3770
|
+
if (left instanceof Promise) {
|
3771
|
+
return left.then((left2) => handleCodecAResult(left2, def, ctx));
|
3772
|
+
}
|
3773
|
+
return handleCodecAResult(left, def, ctx);
|
3774
|
+
} else {
|
3775
|
+
const right = def.out._zod.run(payload, ctx);
|
3776
|
+
if (right instanceof Promise) {
|
3777
|
+
return right.then((right2) => handleCodecAResult(right2, def, ctx));
|
3778
|
+
}
|
3779
|
+
return handleCodecAResult(right, def, ctx);
|
3478
3780
|
}
|
3479
|
-
return handlePipeResult(left, def, ctx);
|
3480
3781
|
};
|
3481
3782
|
});
|
3482
|
-
function
|
3783
|
+
function handleCodecAResult(result, def, ctx) {
|
3784
|
+
if (result.issues.length) {
|
3785
|
+
result.aborted = true;
|
3786
|
+
return result;
|
3787
|
+
}
|
3788
|
+
const direction = ctx.direction || "forward";
|
3789
|
+
if (direction === "forward") {
|
3790
|
+
const transformed = def.transform(result.value, result);
|
3791
|
+
if (transformed instanceof Promise) {
|
3792
|
+
return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
|
3793
|
+
}
|
3794
|
+
return handleCodecTxResult(result, transformed, def.out, ctx);
|
3795
|
+
} else {
|
3796
|
+
const transformed = def.reverseTransform(result.value, result);
|
3797
|
+
if (transformed instanceof Promise) {
|
3798
|
+
return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
|
3799
|
+
}
|
3800
|
+
return handleCodecTxResult(result, transformed, def.in, ctx);
|
3801
|
+
}
|
3802
|
+
}
|
3803
|
+
function handleCodecTxResult(left, value, nextSchema, ctx) {
|
3483
3804
|
if (left.issues.length) {
|
3805
|
+
left.aborted = true;
|
3484
3806
|
return left;
|
3485
3807
|
}
|
3486
|
-
return
|
3808
|
+
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
3487
3809
|
}
|
3488
3810
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
3489
3811
|
$ZodType.init(inst, def);
|
@@ -3492,6 +3814,9 @@ var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3492
3814
|
defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
|
3493
3815
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
3494
3816
|
inst._zod.parse = (payload, ctx) => {
|
3817
|
+
if (ctx.direction === "backward") {
|
3818
|
+
return def.innerType._zod.run(payload, ctx);
|
3819
|
+
}
|
3495
3820
|
const result = def.innerType._zod.run(payload, ctx);
|
3496
3821
|
if (result instanceof Promise) {
|
3497
3822
|
return result.then(handleReadonlyResult);
|
@@ -3548,6 +3873,83 @@ var $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (i
|
|
3548
3873
|
return payload;
|
3549
3874
|
};
|
3550
3875
|
});
|
3876
|
+
var $ZodFunction = /* @__PURE__ */ $constructor("$ZodFunction", (inst, def) => {
|
3877
|
+
$ZodType.init(inst, def);
|
3878
|
+
inst._def = def;
|
3879
|
+
inst._zod.def = def;
|
3880
|
+
inst.implement = (func) => {
|
3881
|
+
if (typeof func !== "function") {
|
3882
|
+
throw new Error("implement() must be called with a function");
|
3883
|
+
}
|
3884
|
+
return function(...args) {
|
3885
|
+
const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;
|
3886
|
+
const result = Reflect.apply(func, this, parsedArgs);
|
3887
|
+
if (inst._def.output) {
|
3888
|
+
return parse(inst._def.output, result);
|
3889
|
+
}
|
3890
|
+
return result;
|
3891
|
+
};
|
3892
|
+
};
|
3893
|
+
inst.implementAsync = (func) => {
|
3894
|
+
if (typeof func !== "function") {
|
3895
|
+
throw new Error("implementAsync() must be called with a function");
|
3896
|
+
}
|
3897
|
+
return async function(...args) {
|
3898
|
+
const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args;
|
3899
|
+
const result = await Reflect.apply(func, this, parsedArgs);
|
3900
|
+
if (inst._def.output) {
|
3901
|
+
return await parseAsync(inst._def.output, result);
|
3902
|
+
}
|
3903
|
+
return result;
|
3904
|
+
};
|
3905
|
+
};
|
3906
|
+
inst._zod.parse = (payload, _ctx) => {
|
3907
|
+
if (typeof payload.value !== "function") {
|
3908
|
+
payload.issues.push({
|
3909
|
+
code: "invalid_type",
|
3910
|
+
expected: "function",
|
3911
|
+
input: payload.value,
|
3912
|
+
inst
|
3913
|
+
});
|
3914
|
+
return payload;
|
3915
|
+
}
|
3916
|
+
const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise";
|
3917
|
+
if (hasPromiseOutput) {
|
3918
|
+
payload.value = inst.implementAsync(payload.value);
|
3919
|
+
} else {
|
3920
|
+
payload.value = inst.implement(payload.value);
|
3921
|
+
}
|
3922
|
+
return payload;
|
3923
|
+
};
|
3924
|
+
inst.input = (...args) => {
|
3925
|
+
const F = inst.constructor;
|
3926
|
+
if (Array.isArray(args[0])) {
|
3927
|
+
return new F({
|
3928
|
+
type: "function",
|
3929
|
+
input: new $ZodTuple({
|
3930
|
+
type: "tuple",
|
3931
|
+
items: args[0],
|
3932
|
+
rest: args[1]
|
3933
|
+
}),
|
3934
|
+
output: inst._def.output
|
3935
|
+
});
|
3936
|
+
}
|
3937
|
+
return new F({
|
3938
|
+
type: "function",
|
3939
|
+
input: args[0],
|
3940
|
+
output: inst._def.output
|
3941
|
+
});
|
3942
|
+
};
|
3943
|
+
inst.output = (output) => {
|
3944
|
+
const F = inst.constructor;
|
3945
|
+
return new F({
|
3946
|
+
type: "function",
|
3947
|
+
input: inst._def.input,
|
3948
|
+
output
|
3949
|
+
});
|
3950
|
+
};
|
3951
|
+
return inst;
|
3952
|
+
});
|
3551
3953
|
var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
3552
3954
|
$ZodType.init(inst, def);
|
3553
3955
|
inst._zod.parse = (payload, ctx) => {
|
@@ -3606,6 +4008,7 @@ __export(locales_exports, {
|
|
3606
4008
|
ar: () => ar_default,
|
3607
4009
|
az: () => az_default,
|
3608
4010
|
be: () => be_default,
|
4011
|
+
bg: () => bg_default,
|
3609
4012
|
ca: () => ca_default,
|
3610
4013
|
cs: () => cs_default,
|
3611
4014
|
da: () => da_default,
|
@@ -3623,8 +4026,11 @@ __export(locales_exports, {
|
|
3623
4026
|
is: () => is_default,
|
3624
4027
|
it: () => it_default,
|
3625
4028
|
ja: () => ja_default,
|
4029
|
+
ka: () => ka_default,
|
3626
4030
|
kh: () => kh_default,
|
4031
|
+
km: () => km_default,
|
3627
4032
|
ko: () => ko_default,
|
4033
|
+
lt: () => lt_default,
|
3628
4034
|
mk: () => mk_default,
|
3629
4035
|
ms: () => ms_default,
|
3630
4036
|
nl: () => nl_default,
|
@@ -3640,6 +4046,7 @@ __export(locales_exports, {
|
|
3640
4046
|
th: () => th_default,
|
3641
4047
|
tr: () => tr_default,
|
3642
4048
|
ua: () => ua_default,
|
4049
|
+
uk: () => uk_default,
|
3643
4050
|
ur: () => ur_default,
|
3644
4051
|
vi: () => vi_default,
|
3645
4052
|
yo: () => yo_default,
|
@@ -3658,7 +4065,7 @@ var error = () => {
|
|
3658
4065
|
function getSizing(origin) {
|
3659
4066
|
return Sizable[origin] ?? null;
|
3660
4067
|
}
|
3661
|
-
const
|
4068
|
+
const parsedType8 = (data) => {
|
3662
4069
|
const t = typeof data;
|
3663
4070
|
switch (t) {
|
3664
4071
|
case "number": {
|
@@ -3711,7 +4118,7 @@ var error = () => {
|
|
3711
4118
|
return (issue2) => {
|
3712
4119
|
switch (issue2.code) {
|
3713
4120
|
case "invalid_type":
|
3714
|
-
return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${
|
4121
|
+
return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${parsedType8(issue2.input)}`;
|
3715
4122
|
case "invalid_value":
|
3716
4123
|
if (issue2.values.length === 1)
|
3717
4124
|
return `\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -3775,7 +4182,7 @@ var error2 = () => {
|
|
3775
4182
|
function getSizing(origin) {
|
3776
4183
|
return Sizable[origin] ?? null;
|
3777
4184
|
}
|
3778
|
-
const
|
4185
|
+
const parsedType8 = (data) => {
|
3779
4186
|
const t = typeof data;
|
3780
4187
|
switch (t) {
|
3781
4188
|
case "number": {
|
@@ -3828,7 +4235,7 @@ var error2 = () => {
|
|
3828
4235
|
return (issue2) => {
|
3829
4236
|
switch (issue2.code) {
|
3830
4237
|
case "invalid_type":
|
3831
|
-
return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${issue2.expected}, daxil olan ${
|
4238
|
+
return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${issue2.expected}, daxil olan ${parsedType8(issue2.input)}`;
|
3832
4239
|
case "invalid_value":
|
3833
4240
|
if (issue2.values.length === 1)
|
3834
4241
|
return `Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -3934,7 +4341,7 @@ var error3 = () => {
|
|
3934
4341
|
function getSizing(origin) {
|
3935
4342
|
return Sizable[origin] ?? null;
|
3936
4343
|
}
|
3937
|
-
const
|
4344
|
+
const parsedType8 = (data) => {
|
3938
4345
|
const t = typeof data;
|
3939
4346
|
switch (t) {
|
3940
4347
|
case "number": {
|
@@ -3987,7 +4394,7 @@ var error3 = () => {
|
|
3987
4394
|
return (issue2) => {
|
3988
4395
|
switch (issue2.code) {
|
3989
4396
|
case "invalid_type":
|
3990
|
-
return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${
|
4397
|
+
return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${parsedType8(issue2.input)}`;
|
3991
4398
|
case "invalid_value":
|
3992
4399
|
if (issue2.values.length === 1)
|
3993
4400
|
return `\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -4045,42 +4452,42 @@ function be_default() {
|
|
4045
4452
|
};
|
4046
4453
|
}
|
4047
4454
|
|
4048
|
-
// node_modules/zod/v4/locales/
|
4455
|
+
// node_modules/zod/v4/locales/bg.js
|
4456
|
+
var parsedType = (data) => {
|
4457
|
+
const t = typeof data;
|
4458
|
+
switch (t) {
|
4459
|
+
case "number": {
|
4460
|
+
return Number.isNaN(data) ? "NaN" : "\u0447\u0438\u0441\u043B\u043E";
|
4461
|
+
}
|
4462
|
+
case "object": {
|
4463
|
+
if (Array.isArray(data)) {
|
4464
|
+
return "\u043C\u0430\u0441\u0438\u0432";
|
4465
|
+
}
|
4466
|
+
if (data === null) {
|
4467
|
+
return "null";
|
4468
|
+
}
|
4469
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
4470
|
+
return data.constructor.name;
|
4471
|
+
}
|
4472
|
+
}
|
4473
|
+
}
|
4474
|
+
return t;
|
4475
|
+
};
|
4049
4476
|
var error4 = () => {
|
4050
4477
|
const Sizable = {
|
4051
|
-
string: { unit: "
|
4052
|
-
file: { unit: "
|
4053
|
-
array: { unit: "
|
4054
|
-
set: { unit: "
|
4478
|
+
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
4479
|
+
file: { unit: "\u0431\u0430\u0439\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
4480
|
+
array: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
4481
|
+
set: { unit: "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" }
|
4055
4482
|
};
|
4056
4483
|
function getSizing(origin) {
|
4057
4484
|
return Sizable[origin] ?? null;
|
4058
4485
|
}
|
4059
|
-
const parsedType5 = (data) => {
|
4060
|
-
const t = typeof data;
|
4061
|
-
switch (t) {
|
4062
|
-
case "number": {
|
4063
|
-
return Number.isNaN(data) ? "NaN" : "number";
|
4064
|
-
}
|
4065
|
-
case "object": {
|
4066
|
-
if (Array.isArray(data)) {
|
4067
|
-
return "array";
|
4068
|
-
}
|
4069
|
-
if (data === null) {
|
4070
|
-
return "null";
|
4071
|
-
}
|
4072
|
-
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
4073
|
-
return data.constructor.name;
|
4074
|
-
}
|
4075
|
-
}
|
4076
|
-
}
|
4077
|
-
return t;
|
4078
|
-
};
|
4079
4486
|
const Nouns = {
|
4080
|
-
regex: "
|
4081
|
-
email: "
|
4487
|
+
regex: "\u0432\u0445\u043E\u0434",
|
4488
|
+
email: "\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",
|
4082
4489
|
url: "URL",
|
4083
|
-
emoji: "
|
4490
|
+
emoji: "\u0435\u043C\u043E\u0434\u0436\u0438",
|
4084
4491
|
uuid: "UUID",
|
4085
4492
|
uuidv4: "UUIDv4",
|
4086
4493
|
uuidv6: "UUIDv6",
|
@@ -4091,8 +4498,137 @@ var error4 = () => {
|
|
4091
4498
|
ulid: "ULID",
|
4092
4499
|
xid: "XID",
|
4093
4500
|
ksuid: "KSUID",
|
4094
|
-
datetime: "
|
4095
|
-
date: "
|
4501
|
+
datetime: "ISO \u0432\u0440\u0435\u043C\u0435",
|
4502
|
+
date: "ISO \u0434\u0430\u0442\u0430",
|
4503
|
+
time: "ISO \u0432\u0440\u0435\u043C\u0435",
|
4504
|
+
duration: "ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",
|
4505
|
+
ipv4: "IPv4 \u0430\u0434\u0440\u0435\u0441",
|
4506
|
+
ipv6: "IPv6 \u0430\u0434\u0440\u0435\u0441",
|
4507
|
+
cidrv4: "IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",
|
4508
|
+
cidrv6: "IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",
|
4509
|
+
base64: "base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",
|
4510
|
+
base64url: "base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",
|
4511
|
+
json_string: "JSON \u043D\u0438\u0437",
|
4512
|
+
e164: "E.164 \u043D\u043E\u043C\u0435\u0440",
|
4513
|
+
jwt: "JWT",
|
4514
|
+
template_literal: "\u0432\u0445\u043E\u0434"
|
4515
|
+
};
|
4516
|
+
return (issue2) => {
|
4517
|
+
switch (issue2.code) {
|
4518
|
+
case "invalid_type":
|
4519
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${parsedType(issue2.input)}`;
|
4520
|
+
case "invalid_value":
|
4521
|
+
if (issue2.values.length === 1)
|
4522
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${stringifyPrimitive(issue2.values[0])}`;
|
4523
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${joinValues(issue2.values, "|")}`;
|
4524
|
+
case "too_big": {
|
4525
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
4526
|
+
const sizing = getSizing(issue2.origin);
|
4527
|
+
if (sizing)
|
4528
|
+
return `\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin ?? "\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`;
|
4529
|
+
return `\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin ?? "\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.maximum.toString()}`;
|
4530
|
+
}
|
4531
|
+
case "too_small": {
|
4532
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
4533
|
+
const sizing = getSizing(issue2.origin);
|
4534
|
+
if (sizing) {
|
4535
|
+
return `\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
4536
|
+
}
|
4537
|
+
return `\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.minimum.toString()}`;
|
4538
|
+
}
|
4539
|
+
case "invalid_format": {
|
4540
|
+
const _issue = issue2;
|
4541
|
+
if (_issue.format === "starts_with") {
|
4542
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${_issue.prefix}"`;
|
4543
|
+
}
|
4544
|
+
if (_issue.format === "ends_with")
|
4545
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${_issue.suffix}"`;
|
4546
|
+
if (_issue.format === "includes")
|
4547
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${_issue.includes}"`;
|
4548
|
+
if (_issue.format === "regex")
|
4549
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${_issue.pattern}`;
|
4550
|
+
let invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";
|
4551
|
+
if (_issue.format === "emoji")
|
4552
|
+
invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
|
4553
|
+
if (_issue.format === "datetime")
|
4554
|
+
invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
|
4555
|
+
if (_issue.format === "date")
|
4556
|
+
invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430";
|
4557
|
+
if (_issue.format === "time")
|
4558
|
+
invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E";
|
4559
|
+
if (_issue.format === "duration")
|
4560
|
+
invalid_adj = "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430";
|
4561
|
+
return `${invalid_adj} ${Nouns[_issue.format] ?? issue2.format}`;
|
4562
|
+
}
|
4563
|
+
case "not_multiple_of":
|
4564
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${issue2.divisor}`;
|
4565
|
+
case "unrecognized_keys":
|
4566
|
+
return `\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${issue2.keys.length > 1 ? "\u0438" : ""} \u043A\u043B\u044E\u0447${issue2.keys.length > 1 ? "\u043E\u0432\u0435" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
4567
|
+
case "invalid_key":
|
4568
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`;
|
4569
|
+
case "invalid_union":
|
4570
|
+
return "\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";
|
4571
|
+
case "invalid_element":
|
4572
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${issue2.origin}`;
|
4573
|
+
default:
|
4574
|
+
return `\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434`;
|
4575
|
+
}
|
4576
|
+
};
|
4577
|
+
};
|
4578
|
+
function bg_default() {
|
4579
|
+
return {
|
4580
|
+
localeError: error4()
|
4581
|
+
};
|
4582
|
+
}
|
4583
|
+
|
4584
|
+
// node_modules/zod/v4/locales/ca.js
|
4585
|
+
var error5 = () => {
|
4586
|
+
const Sizable = {
|
4587
|
+
string: { unit: "car\xE0cters", verb: "contenir" },
|
4588
|
+
file: { unit: "bytes", verb: "contenir" },
|
4589
|
+
array: { unit: "elements", verb: "contenir" },
|
4590
|
+
set: { unit: "elements", verb: "contenir" }
|
4591
|
+
};
|
4592
|
+
function getSizing(origin) {
|
4593
|
+
return Sizable[origin] ?? null;
|
4594
|
+
}
|
4595
|
+
const parsedType8 = (data) => {
|
4596
|
+
const t = typeof data;
|
4597
|
+
switch (t) {
|
4598
|
+
case "number": {
|
4599
|
+
return Number.isNaN(data) ? "NaN" : "number";
|
4600
|
+
}
|
4601
|
+
case "object": {
|
4602
|
+
if (Array.isArray(data)) {
|
4603
|
+
return "array";
|
4604
|
+
}
|
4605
|
+
if (data === null) {
|
4606
|
+
return "null";
|
4607
|
+
}
|
4608
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
4609
|
+
return data.constructor.name;
|
4610
|
+
}
|
4611
|
+
}
|
4612
|
+
}
|
4613
|
+
return t;
|
4614
|
+
};
|
4615
|
+
const Nouns = {
|
4616
|
+
regex: "entrada",
|
4617
|
+
email: "adre\xE7a electr\xF2nica",
|
4618
|
+
url: "URL",
|
4619
|
+
emoji: "emoji",
|
4620
|
+
uuid: "UUID",
|
4621
|
+
uuidv4: "UUIDv4",
|
4622
|
+
uuidv6: "UUIDv6",
|
4623
|
+
nanoid: "nanoid",
|
4624
|
+
guid: "GUID",
|
4625
|
+
cuid: "cuid",
|
4626
|
+
cuid2: "cuid2",
|
4627
|
+
ulid: "ULID",
|
4628
|
+
xid: "XID",
|
4629
|
+
ksuid: "KSUID",
|
4630
|
+
datetime: "data i hora ISO",
|
4631
|
+
date: "data ISO",
|
4096
4632
|
time: "hora ISO",
|
4097
4633
|
duration: "durada ISO",
|
4098
4634
|
ipv4: "adre\xE7a IPv4",
|
@@ -4109,7 +4645,7 @@ var error4 = () => {
|
|
4109
4645
|
return (issue2) => {
|
4110
4646
|
switch (issue2.code) {
|
4111
4647
|
case "invalid_type":
|
4112
|
-
return `Tipus inv\xE0lid: s'esperava ${issue2.expected}, s'ha rebut ${
|
4648
|
+
return `Tipus inv\xE0lid: s'esperava ${issue2.expected}, s'ha rebut ${parsedType8(issue2.input)}`;
|
4113
4649
|
// return `Tipus invàlid: s'esperava ${issue.expected}, s'ha rebut ${util.getParsedType(issue.input)}`;
|
4114
4650
|
case "invalid_value":
|
4115
4651
|
if (issue2.values.length === 1)
|
@@ -4161,12 +4697,12 @@ var error4 = () => {
|
|
4161
4697
|
};
|
4162
4698
|
function ca_default() {
|
4163
4699
|
return {
|
4164
|
-
localeError:
|
4700
|
+
localeError: error5()
|
4165
4701
|
};
|
4166
4702
|
}
|
4167
4703
|
|
4168
4704
|
// node_modules/zod/v4/locales/cs.js
|
4169
|
-
var
|
4705
|
+
var error6 = () => {
|
4170
4706
|
const Sizable = {
|
4171
4707
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
4172
4708
|
file: { unit: "bajt\u016F", verb: "m\xEDt" },
|
@@ -4176,7 +4712,7 @@ var error5 = () => {
|
|
4176
4712
|
function getSizing(origin) {
|
4177
4713
|
return Sizable[origin] ?? null;
|
4178
4714
|
}
|
4179
|
-
const
|
4715
|
+
const parsedType8 = (data) => {
|
4180
4716
|
const t = typeof data;
|
4181
4717
|
switch (t) {
|
4182
4718
|
case "number": {
|
@@ -4247,7 +4783,7 @@ var error5 = () => {
|
|
4247
4783
|
return (issue2) => {
|
4248
4784
|
switch (issue2.code) {
|
4249
4785
|
case "invalid_type":
|
4250
|
-
return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${issue2.expected}, obdr\u017Eeno ${
|
4786
|
+
return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${issue2.expected}, obdr\u017Eeno ${parsedType8(issue2.input)}`;
|
4251
4787
|
case "invalid_value":
|
4252
4788
|
if (issue2.values.length === 1)
|
4253
4789
|
return `Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -4297,12 +4833,12 @@ var error5 = () => {
|
|
4297
4833
|
};
|
4298
4834
|
function cs_default() {
|
4299
4835
|
return {
|
4300
|
-
localeError:
|
4836
|
+
localeError: error6()
|
4301
4837
|
};
|
4302
4838
|
}
|
4303
4839
|
|
4304
4840
|
// node_modules/zod/v4/locales/da.js
|
4305
|
-
var
|
4841
|
+
var error7 = () => {
|
4306
4842
|
const Sizable = {
|
4307
4843
|
string: { unit: "tegn", verb: "havde" },
|
4308
4844
|
file: { unit: "bytes", verb: "havde" },
|
@@ -4324,7 +4860,7 @@ var error6 = () => {
|
|
4324
4860
|
function getTypeName(type) {
|
4325
4861
|
return TypeNames[type] ?? type;
|
4326
4862
|
}
|
4327
|
-
const
|
4863
|
+
const parsedType8 = (data) => {
|
4328
4864
|
const t = typeof data;
|
4329
4865
|
switch (t) {
|
4330
4866
|
case "number": {
|
@@ -4378,7 +4914,7 @@ var error6 = () => {
|
|
4378
4914
|
return (issue2) => {
|
4379
4915
|
switch (issue2.code) {
|
4380
4916
|
case "invalid_type":
|
4381
|
-
return `Ugyldigt input: forventede ${getTypeName(issue2.expected)}, fik ${getTypeName(
|
4917
|
+
return `Ugyldigt input: forventede ${getTypeName(issue2.expected)}, fik ${getTypeName(parsedType8(issue2.input))}`;
|
4382
4918
|
case "invalid_value":
|
4383
4919
|
if (issue2.values.length === 1)
|
4384
4920
|
return `Ugyldig v\xE6rdi: forventede ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -4429,12 +4965,12 @@ var error6 = () => {
|
|
4429
4965
|
};
|
4430
4966
|
function da_default() {
|
4431
4967
|
return {
|
4432
|
-
localeError:
|
4968
|
+
localeError: error7()
|
4433
4969
|
};
|
4434
4970
|
}
|
4435
4971
|
|
4436
4972
|
// node_modules/zod/v4/locales/de.js
|
4437
|
-
var
|
4973
|
+
var error8 = () => {
|
4438
4974
|
const Sizable = {
|
4439
4975
|
string: { unit: "Zeichen", verb: "zu haben" },
|
4440
4976
|
file: { unit: "Bytes", verb: "zu haben" },
|
@@ -4444,7 +4980,7 @@ var error7 = () => {
|
|
4444
4980
|
function getSizing(origin) {
|
4445
4981
|
return Sizable[origin] ?? null;
|
4446
4982
|
}
|
4447
|
-
const
|
4983
|
+
const parsedType8 = (data) => {
|
4448
4984
|
const t = typeof data;
|
4449
4985
|
switch (t) {
|
4450
4986
|
case "number": {
|
@@ -4497,7 +5033,7 @@ var error7 = () => {
|
|
4497
5033
|
return (issue2) => {
|
4498
5034
|
switch (issue2.code) {
|
4499
5035
|
case "invalid_type":
|
4500
|
-
return `Ung\xFCltige Eingabe: erwartet ${issue2.expected}, erhalten ${
|
5036
|
+
return `Ung\xFCltige Eingabe: erwartet ${issue2.expected}, erhalten ${parsedType8(issue2.input)}`;
|
4501
5037
|
case "invalid_value":
|
4502
5038
|
if (issue2.values.length === 1)
|
4503
5039
|
return `Ung\xFCltige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -4546,12 +5082,12 @@ var error7 = () => {
|
|
4546
5082
|
};
|
4547
5083
|
function de_default() {
|
4548
5084
|
return {
|
4549
|
-
localeError:
|
5085
|
+
localeError: error8()
|
4550
5086
|
};
|
4551
5087
|
}
|
4552
5088
|
|
4553
5089
|
// node_modules/zod/v4/locales/en.js
|
4554
|
-
var
|
5090
|
+
var parsedType2 = (data) => {
|
4555
5091
|
const t = typeof data;
|
4556
5092
|
switch (t) {
|
4557
5093
|
case "number": {
|
@@ -4571,7 +5107,7 @@ var parsedType = (data) => {
|
|
4571
5107
|
}
|
4572
5108
|
return t;
|
4573
5109
|
};
|
4574
|
-
var
|
5110
|
+
var error9 = () => {
|
4575
5111
|
const Sizable = {
|
4576
5112
|
string: { unit: "characters", verb: "to have" },
|
4577
5113
|
file: { unit: "bytes", verb: "to have" },
|
@@ -4614,7 +5150,7 @@ var error8 = () => {
|
|
4614
5150
|
return (issue2) => {
|
4615
5151
|
switch (issue2.code) {
|
4616
5152
|
case "invalid_type":
|
4617
|
-
return `Invalid input: expected ${issue2.expected}, received ${
|
5153
|
+
return `Invalid input: expected ${issue2.expected}, received ${parsedType2(issue2.input)}`;
|
4618
5154
|
case "invalid_value":
|
4619
5155
|
if (issue2.values.length === 1)
|
4620
5156
|
return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -4664,12 +5200,12 @@ var error8 = () => {
|
|
4664
5200
|
};
|
4665
5201
|
function en_default() {
|
4666
5202
|
return {
|
4667
|
-
localeError:
|
5203
|
+
localeError: error9()
|
4668
5204
|
};
|
4669
5205
|
}
|
4670
5206
|
|
4671
5207
|
// node_modules/zod/v4/locales/eo.js
|
4672
|
-
var
|
5208
|
+
var parsedType3 = (data) => {
|
4673
5209
|
const t = typeof data;
|
4674
5210
|
switch (t) {
|
4675
5211
|
case "number": {
|
@@ -4689,7 +5225,7 @@ var parsedType2 = (data) => {
|
|
4689
5225
|
}
|
4690
5226
|
return t;
|
4691
5227
|
};
|
4692
|
-
var
|
5228
|
+
var error10 = () => {
|
4693
5229
|
const Sizable = {
|
4694
5230
|
string: { unit: "karaktrojn", verb: "havi" },
|
4695
5231
|
file: { unit: "bajtojn", verb: "havi" },
|
@@ -4732,7 +5268,7 @@ var error9 = () => {
|
|
4732
5268
|
return (issue2) => {
|
4733
5269
|
switch (issue2.code) {
|
4734
5270
|
case "invalid_type":
|
4735
|
-
return `Nevalida enigo: atendi\u011Dis ${issue2.expected}, ricevi\u011Dis ${
|
5271
|
+
return `Nevalida enigo: atendi\u011Dis ${issue2.expected}, ricevi\u011Dis ${parsedType3(issue2.input)}`;
|
4736
5272
|
case "invalid_value":
|
4737
5273
|
if (issue2.values.length === 1)
|
4738
5274
|
return `Nevalida enigo: atendi\u011Dis ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -4781,37 +5317,67 @@ var error9 = () => {
|
|
4781
5317
|
};
|
4782
5318
|
function eo_default() {
|
4783
5319
|
return {
|
4784
|
-
localeError:
|
5320
|
+
localeError: error10()
|
4785
5321
|
};
|
4786
5322
|
}
|
4787
5323
|
|
4788
5324
|
// node_modules/zod/v4/locales/es.js
|
4789
|
-
var
|
5325
|
+
var error11 = () => {
|
4790
5326
|
const Sizable = {
|
4791
5327
|
string: { unit: "caracteres", verb: "tener" },
|
4792
5328
|
file: { unit: "bytes", verb: "tener" },
|
4793
5329
|
array: { unit: "elementos", verb: "tener" },
|
4794
5330
|
set: { unit: "elementos", verb: "tener" }
|
4795
5331
|
};
|
5332
|
+
const TypeNames = {
|
5333
|
+
string: "texto",
|
5334
|
+
number: "n\xFAmero",
|
5335
|
+
boolean: "booleano",
|
5336
|
+
array: "arreglo",
|
5337
|
+
object: "objeto",
|
5338
|
+
set: "conjunto",
|
5339
|
+
file: "archivo",
|
5340
|
+
date: "fecha",
|
5341
|
+
bigint: "n\xFAmero grande",
|
5342
|
+
symbol: "s\xEDmbolo",
|
5343
|
+
undefined: "indefinido",
|
5344
|
+
null: "nulo",
|
5345
|
+
function: "funci\xF3n",
|
5346
|
+
map: "mapa",
|
5347
|
+
record: "registro",
|
5348
|
+
tuple: "tupla",
|
5349
|
+
enum: "enumeraci\xF3n",
|
5350
|
+
union: "uni\xF3n",
|
5351
|
+
literal: "literal",
|
5352
|
+
promise: "promesa",
|
5353
|
+
void: "vac\xEDo",
|
5354
|
+
never: "nunca",
|
5355
|
+
unknown: "desconocido",
|
5356
|
+
any: "cualquiera"
|
5357
|
+
};
|
4796
5358
|
function getSizing(origin) {
|
4797
5359
|
return Sizable[origin] ?? null;
|
4798
5360
|
}
|
4799
|
-
|
5361
|
+
function getTypeName(type) {
|
5362
|
+
return TypeNames[type] ?? type;
|
5363
|
+
}
|
5364
|
+
const parsedType8 = (data) => {
|
4800
5365
|
const t = typeof data;
|
4801
5366
|
switch (t) {
|
4802
5367
|
case "number": {
|
4803
|
-
return Number.isNaN(data) ? "NaN" : "
|
5368
|
+
return Number.isNaN(data) ? "NaN" : "number";
|
4804
5369
|
}
|
4805
5370
|
case "object": {
|
4806
5371
|
if (Array.isArray(data)) {
|
4807
|
-
return "
|
5372
|
+
return "array";
|
4808
5373
|
}
|
4809
5374
|
if (data === null) {
|
4810
|
-
return "
|
5375
|
+
return "null";
|
4811
5376
|
}
|
4812
5377
|
if (Object.getPrototypeOf(data) !== Object.prototype) {
|
4813
5378
|
return data.constructor.name;
|
4814
5379
|
}
|
5380
|
+
return "object";
|
4815
5381
|
}
|
4816
5382
|
}
|
4817
5383
|
return t;
|
@@ -4849,7 +5415,7 @@ var error10 = () => {
|
|
4849
5415
|
return (issue2) => {
|
4850
5416
|
switch (issue2.code) {
|
4851
5417
|
case "invalid_type":
|
4852
|
-
return `Entrada inv\xE1lida: se esperaba ${issue2.expected}, recibido ${
|
5418
|
+
return `Entrada inv\xE1lida: se esperaba ${getTypeName(issue2.expected)}, recibido ${getTypeName(parsedType8(issue2.input))}`;
|
4853
5419
|
// return `Entrada inválida: se esperaba ${issue.expected}, recibido ${util.getParsedType(issue.input)}`;
|
4854
5420
|
case "invalid_value":
|
4855
5421
|
if (issue2.values.length === 1)
|
@@ -4858,17 +5424,19 @@ var error10 = () => {
|
|
4858
5424
|
case "too_big": {
|
4859
5425
|
const adj = issue2.inclusive ? "<=" : "<";
|
4860
5426
|
const sizing = getSizing(issue2.origin);
|
5427
|
+
const origin = getTypeName(issue2.origin);
|
4861
5428
|
if (sizing)
|
4862
|
-
return `Demasiado grande: se esperaba que ${
|
4863
|
-
return `Demasiado grande: se esperaba que ${
|
5429
|
+
return `Demasiado grande: se esperaba que ${origin ?? "valor"} tuviera ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
|
5430
|
+
return `Demasiado grande: se esperaba que ${origin ?? "valor"} fuera ${adj}${issue2.maximum.toString()}`;
|
4864
5431
|
}
|
4865
5432
|
case "too_small": {
|
4866
5433
|
const adj = issue2.inclusive ? ">=" : ">";
|
4867
5434
|
const sizing = getSizing(issue2.origin);
|
5435
|
+
const origin = getTypeName(issue2.origin);
|
4868
5436
|
if (sizing) {
|
4869
|
-
return `Demasiado peque\xF1o: se esperaba que ${
|
5437
|
+
return `Demasiado peque\xF1o: se esperaba que ${origin} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
4870
5438
|
}
|
4871
|
-
return `Demasiado peque\xF1o: se esperaba que ${
|
5439
|
+
return `Demasiado peque\xF1o: se esperaba que ${origin} fuera ${adj}${issue2.minimum.toString()}`;
|
4872
5440
|
}
|
4873
5441
|
case "invalid_format": {
|
4874
5442
|
const _issue = issue2;
|
@@ -4887,11 +5455,11 @@ var error10 = () => {
|
|
4887
5455
|
case "unrecognized_keys":
|
4888
5456
|
return `Llave${issue2.keys.length > 1 ? "s" : ""} desconocida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
|
4889
5457
|
case "invalid_key":
|
4890
|
-
return `Llave inv\xE1lida en ${issue2.origin}`;
|
5458
|
+
return `Llave inv\xE1lida en ${getTypeName(issue2.origin)}`;
|
4891
5459
|
case "invalid_union":
|
4892
5460
|
return "Entrada inv\xE1lida";
|
4893
5461
|
case "invalid_element":
|
4894
|
-
return `Valor inv\xE1lido en ${issue2.origin}`;
|
5462
|
+
return `Valor inv\xE1lido en ${getTypeName(issue2.origin)}`;
|
4895
5463
|
default:
|
4896
5464
|
return `Entrada inv\xE1lida`;
|
4897
5465
|
}
|
@@ -4899,12 +5467,12 @@ var error10 = () => {
|
|
4899
5467
|
};
|
4900
5468
|
function es_default() {
|
4901
5469
|
return {
|
4902
|
-
localeError:
|
5470
|
+
localeError: error11()
|
4903
5471
|
};
|
4904
5472
|
}
|
4905
5473
|
|
4906
5474
|
// node_modules/zod/v4/locales/fa.js
|
4907
|
-
var
|
5475
|
+
var error12 = () => {
|
4908
5476
|
const Sizable = {
|
4909
5477
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
4910
5478
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
@@ -4914,7 +5482,7 @@ var error11 = () => {
|
|
4914
5482
|
function getSizing(origin) {
|
4915
5483
|
return Sizable[origin] ?? null;
|
4916
5484
|
}
|
4917
|
-
const
|
5485
|
+
const parsedType8 = (data) => {
|
4918
5486
|
const t = typeof data;
|
4919
5487
|
switch (t) {
|
4920
5488
|
case "number": {
|
@@ -4967,7 +5535,7 @@ var error11 = () => {
|
|
4967
5535
|
return (issue2) => {
|
4968
5536
|
switch (issue2.code) {
|
4969
5537
|
case "invalid_type":
|
4970
|
-
return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${
|
5538
|
+
return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${parsedType8(issue2.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;
|
4971
5539
|
case "invalid_value":
|
4972
5540
|
if (issue2.values.length === 1) {
|
4973
5541
|
return `\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${stringifyPrimitive(issue2.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`;
|
@@ -5022,12 +5590,12 @@ var error11 = () => {
|
|
5022
5590
|
};
|
5023
5591
|
function fa_default() {
|
5024
5592
|
return {
|
5025
|
-
localeError:
|
5593
|
+
localeError: error12()
|
5026
5594
|
};
|
5027
5595
|
}
|
5028
5596
|
|
5029
5597
|
// node_modules/zod/v4/locales/fi.js
|
5030
|
-
var
|
5598
|
+
var error13 = () => {
|
5031
5599
|
const Sizable = {
|
5032
5600
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
5033
5601
|
file: { unit: "tavua", subject: "tiedoston" },
|
@@ -5041,7 +5609,7 @@ var error12 = () => {
|
|
5041
5609
|
function getSizing(origin) {
|
5042
5610
|
return Sizable[origin] ?? null;
|
5043
5611
|
}
|
5044
|
-
const
|
5612
|
+
const parsedType8 = (data) => {
|
5045
5613
|
const t = typeof data;
|
5046
5614
|
switch (t) {
|
5047
5615
|
case "number": {
|
@@ -5094,7 +5662,7 @@ var error12 = () => {
|
|
5094
5662
|
return (issue2) => {
|
5095
5663
|
switch (issue2.code) {
|
5096
5664
|
case "invalid_type":
|
5097
|
-
return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${
|
5665
|
+
return `Virheellinen tyyppi: odotettiin ${issue2.expected}, oli ${parsedType8(issue2.input)}`;
|
5098
5666
|
case "invalid_value":
|
5099
5667
|
if (issue2.values.length === 1)
|
5100
5668
|
return `Virheellinen sy\xF6te: t\xE4ytyy olla ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -5145,12 +5713,12 @@ var error12 = () => {
|
|
5145
5713
|
};
|
5146
5714
|
function fi_default() {
|
5147
5715
|
return {
|
5148
|
-
localeError:
|
5716
|
+
localeError: error13()
|
5149
5717
|
};
|
5150
5718
|
}
|
5151
5719
|
|
5152
5720
|
// node_modules/zod/v4/locales/fr.js
|
5153
|
-
var
|
5721
|
+
var error14 = () => {
|
5154
5722
|
const Sizable = {
|
5155
5723
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
5156
5724
|
file: { unit: "octets", verb: "avoir" },
|
@@ -5160,7 +5728,7 @@ var error13 = () => {
|
|
5160
5728
|
function getSizing(origin) {
|
5161
5729
|
return Sizable[origin] ?? null;
|
5162
5730
|
}
|
5163
|
-
const
|
5731
|
+
const parsedType8 = (data) => {
|
5164
5732
|
const t = typeof data;
|
5165
5733
|
switch (t) {
|
5166
5734
|
case "number": {
|
@@ -5213,7 +5781,7 @@ var error13 = () => {
|
|
5213
5781
|
return (issue2) => {
|
5214
5782
|
switch (issue2.code) {
|
5215
5783
|
case "invalid_type":
|
5216
|
-
return `Entr\xE9e invalide : ${issue2.expected} attendu, ${
|
5784
|
+
return `Entr\xE9e invalide : ${issue2.expected} attendu, ${parsedType8(issue2.input)} re\xE7u`;
|
5217
5785
|
case "invalid_value":
|
5218
5786
|
if (issue2.values.length === 1)
|
5219
5787
|
return `Entr\xE9e invalide : ${stringifyPrimitive(issue2.values[0])} attendu`;
|
@@ -5262,12 +5830,12 @@ var error13 = () => {
|
|
5262
5830
|
};
|
5263
5831
|
function fr_default() {
|
5264
5832
|
return {
|
5265
|
-
localeError:
|
5833
|
+
localeError: error14()
|
5266
5834
|
};
|
5267
5835
|
}
|
5268
5836
|
|
5269
5837
|
// node_modules/zod/v4/locales/fr-CA.js
|
5270
|
-
var
|
5838
|
+
var error15 = () => {
|
5271
5839
|
const Sizable = {
|
5272
5840
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
5273
5841
|
file: { unit: "octets", verb: "avoir" },
|
@@ -5277,7 +5845,7 @@ var error14 = () => {
|
|
5277
5845
|
function getSizing(origin) {
|
5278
5846
|
return Sizable[origin] ?? null;
|
5279
5847
|
}
|
5280
|
-
const
|
5848
|
+
const parsedType8 = (data) => {
|
5281
5849
|
const t = typeof data;
|
5282
5850
|
switch (t) {
|
5283
5851
|
case "number": {
|
@@ -5330,7 +5898,7 @@ var error14 = () => {
|
|
5330
5898
|
return (issue2) => {
|
5331
5899
|
switch (issue2.code) {
|
5332
5900
|
case "invalid_type":
|
5333
|
-
return `Entr\xE9e invalide : attendu ${issue2.expected}, re\xE7u ${
|
5901
|
+
return `Entr\xE9e invalide : attendu ${issue2.expected}, re\xE7u ${parsedType8(issue2.input)}`;
|
5334
5902
|
case "invalid_value":
|
5335
5903
|
if (issue2.values.length === 1)
|
5336
5904
|
return `Entr\xE9e invalide : attendu ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -5380,12 +5948,12 @@ var error14 = () => {
|
|
5380
5948
|
};
|
5381
5949
|
function fr_CA_default() {
|
5382
5950
|
return {
|
5383
|
-
localeError:
|
5951
|
+
localeError: error15()
|
5384
5952
|
};
|
5385
5953
|
}
|
5386
5954
|
|
5387
5955
|
// node_modules/zod/v4/locales/he.js
|
5388
|
-
var
|
5956
|
+
var error16 = () => {
|
5389
5957
|
const Sizable = {
|
5390
5958
|
string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
|
5391
5959
|
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
|
@@ -5395,7 +5963,7 @@ var error15 = () => {
|
|
5395
5963
|
function getSizing(origin) {
|
5396
5964
|
return Sizable[origin] ?? null;
|
5397
5965
|
}
|
5398
|
-
const
|
5966
|
+
const parsedType8 = (data) => {
|
5399
5967
|
const t = typeof data;
|
5400
5968
|
switch (t) {
|
5401
5969
|
case "number": {
|
@@ -5448,7 +6016,7 @@ var error15 = () => {
|
|
5448
6016
|
return (issue2) => {
|
5449
6017
|
switch (issue2.code) {
|
5450
6018
|
case "invalid_type":
|
5451
|
-
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${
|
6019
|
+
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${parsedType8(issue2.input)}`;
|
5452
6020
|
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
5453
6021
|
case "invalid_value":
|
5454
6022
|
if (issue2.values.length === 1)
|
@@ -5498,12 +6066,12 @@ var error15 = () => {
|
|
5498
6066
|
};
|
5499
6067
|
function he_default() {
|
5500
6068
|
return {
|
5501
|
-
localeError:
|
6069
|
+
localeError: error16()
|
5502
6070
|
};
|
5503
6071
|
}
|
5504
6072
|
|
5505
6073
|
// node_modules/zod/v4/locales/hu.js
|
5506
|
-
var
|
6074
|
+
var error17 = () => {
|
5507
6075
|
const Sizable = {
|
5508
6076
|
string: { unit: "karakter", verb: "legyen" },
|
5509
6077
|
file: { unit: "byte", verb: "legyen" },
|
@@ -5513,7 +6081,7 @@ var error16 = () => {
|
|
5513
6081
|
function getSizing(origin) {
|
5514
6082
|
return Sizable[origin] ?? null;
|
5515
6083
|
}
|
5516
|
-
const
|
6084
|
+
const parsedType8 = (data) => {
|
5517
6085
|
const t = typeof data;
|
5518
6086
|
switch (t) {
|
5519
6087
|
case "number": {
|
@@ -5566,7 +6134,7 @@ var error16 = () => {
|
|
5566
6134
|
return (issue2) => {
|
5567
6135
|
switch (issue2.code) {
|
5568
6136
|
case "invalid_type":
|
5569
|
-
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${issue2.expected}, a kapott \xE9rt\xE9k ${
|
6137
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${issue2.expected}, a kapott \xE9rt\xE9k ${parsedType8(issue2.input)}`;
|
5570
6138
|
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
5571
6139
|
case "invalid_value":
|
5572
6140
|
if (issue2.values.length === 1)
|
@@ -5616,12 +6184,12 @@ var error16 = () => {
|
|
5616
6184
|
};
|
5617
6185
|
function hu_default() {
|
5618
6186
|
return {
|
5619
|
-
localeError:
|
6187
|
+
localeError: error17()
|
5620
6188
|
};
|
5621
6189
|
}
|
5622
6190
|
|
5623
6191
|
// node_modules/zod/v4/locales/id.js
|
5624
|
-
var
|
6192
|
+
var error18 = () => {
|
5625
6193
|
const Sizable = {
|
5626
6194
|
string: { unit: "karakter", verb: "memiliki" },
|
5627
6195
|
file: { unit: "byte", verb: "memiliki" },
|
@@ -5631,7 +6199,7 @@ var error17 = () => {
|
|
5631
6199
|
function getSizing(origin) {
|
5632
6200
|
return Sizable[origin] ?? null;
|
5633
6201
|
}
|
5634
|
-
const
|
6202
|
+
const parsedType8 = (data) => {
|
5635
6203
|
const t = typeof data;
|
5636
6204
|
switch (t) {
|
5637
6205
|
case "number": {
|
@@ -5684,7 +6252,7 @@ var error17 = () => {
|
|
5684
6252
|
return (issue2) => {
|
5685
6253
|
switch (issue2.code) {
|
5686
6254
|
case "invalid_type":
|
5687
|
-
return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${
|
6255
|
+
return `Input tidak valid: diharapkan ${issue2.expected}, diterima ${parsedType8(issue2.input)}`;
|
5688
6256
|
case "invalid_value":
|
5689
6257
|
if (issue2.values.length === 1)
|
5690
6258
|
return `Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -5733,12 +6301,12 @@ var error17 = () => {
|
|
5733
6301
|
};
|
5734
6302
|
function id_default() {
|
5735
6303
|
return {
|
5736
|
-
localeError:
|
6304
|
+
localeError: error18()
|
5737
6305
|
};
|
5738
6306
|
}
|
5739
6307
|
|
5740
6308
|
// node_modules/zod/v4/locales/is.js
|
5741
|
-
var
|
6309
|
+
var parsedType4 = (data) => {
|
5742
6310
|
const t = typeof data;
|
5743
6311
|
switch (t) {
|
5744
6312
|
case "number": {
|
@@ -5758,7 +6326,7 @@ var parsedType3 = (data) => {
|
|
5758
6326
|
}
|
5759
6327
|
return t;
|
5760
6328
|
};
|
5761
|
-
var
|
6329
|
+
var error19 = () => {
|
5762
6330
|
const Sizable = {
|
5763
6331
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
5764
6332
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
@@ -5801,7 +6369,7 @@ var error18 = () => {
|
|
5801
6369
|
return (issue2) => {
|
5802
6370
|
switch (issue2.code) {
|
5803
6371
|
case "invalid_type":
|
5804
|
-
return `Rangt gildi: \xDE\xFA sl\xF3st inn ${
|
6372
|
+
return `Rangt gildi: \xDE\xFA sl\xF3st inn ${parsedType4(issue2.input)} \xFEar sem \xE1 a\xF0 vera ${issue2.expected}`;
|
5805
6373
|
case "invalid_value":
|
5806
6374
|
if (issue2.values.length === 1)
|
5807
6375
|
return `Rangt gildi: gert r\xE1\xF0 fyrir ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -5851,12 +6419,12 @@ var error18 = () => {
|
|
5851
6419
|
};
|
5852
6420
|
function is_default() {
|
5853
6421
|
return {
|
5854
|
-
localeError:
|
6422
|
+
localeError: error19()
|
5855
6423
|
};
|
5856
6424
|
}
|
5857
6425
|
|
5858
6426
|
// node_modules/zod/v4/locales/it.js
|
5859
|
-
var
|
6427
|
+
var error20 = () => {
|
5860
6428
|
const Sizable = {
|
5861
6429
|
string: { unit: "caratteri", verb: "avere" },
|
5862
6430
|
file: { unit: "byte", verb: "avere" },
|
@@ -5866,7 +6434,7 @@ var error19 = () => {
|
|
5866
6434
|
function getSizing(origin) {
|
5867
6435
|
return Sizable[origin] ?? null;
|
5868
6436
|
}
|
5869
|
-
const
|
6437
|
+
const parsedType8 = (data) => {
|
5870
6438
|
const t = typeof data;
|
5871
6439
|
switch (t) {
|
5872
6440
|
case "number": {
|
@@ -5919,7 +6487,7 @@ var error19 = () => {
|
|
5919
6487
|
return (issue2) => {
|
5920
6488
|
switch (issue2.code) {
|
5921
6489
|
case "invalid_type":
|
5922
|
-
return `Input non valido: atteso ${issue2.expected}, ricevuto ${
|
6490
|
+
return `Input non valido: atteso ${issue2.expected}, ricevuto ${parsedType8(issue2.input)}`;
|
5923
6491
|
// return `Input non valido: atteso ${issue.expected}, ricevuto ${util.getParsedType(issue.input)}`;
|
5924
6492
|
case "invalid_value":
|
5925
6493
|
if (issue2.values.length === 1)
|
@@ -5969,12 +6537,12 @@ var error19 = () => {
|
|
5969
6537
|
};
|
5970
6538
|
function it_default() {
|
5971
6539
|
return {
|
5972
|
-
localeError:
|
6540
|
+
localeError: error20()
|
5973
6541
|
};
|
5974
6542
|
}
|
5975
6543
|
|
5976
6544
|
// node_modules/zod/v4/locales/ja.js
|
5977
|
-
var
|
6545
|
+
var error21 = () => {
|
5978
6546
|
const Sizable = {
|
5979
6547
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
5980
6548
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
@@ -5984,7 +6552,7 @@ var error20 = () => {
|
|
5984
6552
|
function getSizing(origin) {
|
5985
6553
|
return Sizable[origin] ?? null;
|
5986
6554
|
}
|
5987
|
-
const
|
6555
|
+
const parsedType8 = (data) => {
|
5988
6556
|
const t = typeof data;
|
5989
6557
|
switch (t) {
|
5990
6558
|
case "number": {
|
@@ -6037,7 +6605,7 @@ var error20 = () => {
|
|
6037
6605
|
return (issue2) => {
|
6038
6606
|
switch (issue2.code) {
|
6039
6607
|
case "invalid_type":
|
6040
|
-
return `\u7121\u52B9\u306A\u5165\u529B: ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${
|
6608
|
+
return `\u7121\u52B9\u306A\u5165\u529B: ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${parsedType8(issue2.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;
|
6041
6609
|
case "invalid_value":
|
6042
6610
|
if (issue2.values.length === 1)
|
6043
6611
|
return `\u7121\u52B9\u306A\u5165\u529B: ${stringifyPrimitive(issue2.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`;
|
@@ -6085,12 +6653,138 @@ var error20 = () => {
|
|
6085
6653
|
};
|
6086
6654
|
function ja_default() {
|
6087
6655
|
return {
|
6088
|
-
localeError:
|
6656
|
+
localeError: error21()
|
6089
6657
|
};
|
6090
6658
|
}
|
6091
6659
|
|
6092
|
-
// node_modules/zod/v4/locales/
|
6093
|
-
var
|
6660
|
+
// node_modules/zod/v4/locales/ka.js
|
6661
|
+
var parsedType5 = (data) => {
|
6662
|
+
const t = typeof data;
|
6663
|
+
switch (t) {
|
6664
|
+
case "number": {
|
6665
|
+
return Number.isNaN(data) ? "NaN" : "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";
|
6666
|
+
}
|
6667
|
+
case "object": {
|
6668
|
+
if (Array.isArray(data)) {
|
6669
|
+
return "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";
|
6670
|
+
}
|
6671
|
+
if (data === null) {
|
6672
|
+
return "null";
|
6673
|
+
}
|
6674
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
6675
|
+
return data.constructor.name;
|
6676
|
+
}
|
6677
|
+
}
|
6678
|
+
}
|
6679
|
+
const typeMap = {
|
6680
|
+
string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
6681
|
+
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
6682
|
+
undefined: "undefined",
|
6683
|
+
bigint: "bigint",
|
6684
|
+
symbol: "symbol",
|
6685
|
+
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"
|
6686
|
+
};
|
6687
|
+
return typeMap[t] ?? t;
|
6688
|
+
};
|
6689
|
+
var error22 = () => {
|
6690
|
+
const Sizable = {
|
6691
|
+
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
6692
|
+
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
6693
|
+
array: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
6694
|
+
set: { unit: "\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" }
|
6695
|
+
};
|
6696
|
+
function getSizing(origin) {
|
6697
|
+
return Sizable[origin] ?? null;
|
6698
|
+
}
|
6699
|
+
const Nouns = {
|
6700
|
+
regex: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",
|
6701
|
+
email: "\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
6702
|
+
url: "URL",
|
6703
|
+
emoji: "\u10D4\u10DB\u10DD\u10EF\u10D8",
|
6704
|
+
uuid: "UUID",
|
6705
|
+
uuidv4: "UUIDv4",
|
6706
|
+
uuidv6: "UUIDv6",
|
6707
|
+
nanoid: "nanoid",
|
6708
|
+
guid: "GUID",
|
6709
|
+
cuid: "cuid",
|
6710
|
+
cuid2: "cuid2",
|
6711
|
+
ulid: "ULID",
|
6712
|
+
xid: "XID",
|
6713
|
+
ksuid: "KSUID",
|
6714
|
+
datetime: "\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",
|
6715
|
+
date: "\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",
|
6716
|
+
time: "\u10D3\u10E0\u10DD",
|
6717
|
+
duration: "\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",
|
6718
|
+
ipv4: "IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
6719
|
+
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
6720
|
+
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
6721
|
+
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
6722
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
6723
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
6724
|
+
json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
|
6725
|
+
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
6726
|
+
jwt: "JWT",
|
6727
|
+
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
6728
|
+
};
|
6729
|
+
return (issue2) => {
|
6730
|
+
switch (issue2.code) {
|
6731
|
+
case "invalid_type":
|
6732
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${parsedType5(issue2.input)}`;
|
6733
|
+
case "invalid_value":
|
6734
|
+
if (issue2.values.length === 1)
|
6735
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${stringifyPrimitive(issue2.values[0])}`;
|
6736
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${joinValues(issue2.values, "|")}-\u10D3\u10D0\u10DC`;
|
6737
|
+
case "too_big": {
|
6738
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
6739
|
+
const sizing = getSizing(issue2.origin);
|
6740
|
+
if (sizing)
|
6741
|
+
return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin ?? "\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
|
6742
|
+
return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin ?? "\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${adj}${issue2.maximum.toString()}`;
|
6743
|
+
}
|
6744
|
+
case "too_small": {
|
6745
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
6746
|
+
const sizing = getSizing(issue2.origin);
|
6747
|
+
if (sizing) {
|
6748
|
+
return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
6749
|
+
}
|
6750
|
+
return `\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin} \u10D8\u10E7\u10DD\u10E1 ${adj}${issue2.minimum.toString()}`;
|
6751
|
+
}
|
6752
|
+
case "invalid_format": {
|
6753
|
+
const _issue = issue2;
|
6754
|
+
if (_issue.format === "starts_with") {
|
6755
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
6756
|
+
}
|
6757
|
+
if (_issue.format === "ends_with")
|
6758
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
6759
|
+
if (_issue.format === "includes")
|
6760
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
6761
|
+
if (_issue.format === "regex")
|
6762
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
6763
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${Nouns[_issue.format] ?? issue2.format}`;
|
6764
|
+
}
|
6765
|
+
case "not_multiple_of":
|
6766
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${issue2.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;
|
6767
|
+
case "unrecognized_keys":
|
6768
|
+
return `\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${issue2.keys.length > 1 ? "\u10D4\u10D1\u10D8" : "\u10D8"}: ${joinValues(issue2.keys, ", ")}`;
|
6769
|
+
case "invalid_key":
|
6770
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${issue2.origin}-\u10E8\u10D8`;
|
6771
|
+
case "invalid_union":
|
6772
|
+
return "\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";
|
6773
|
+
case "invalid_element":
|
6774
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${issue2.origin}-\u10E8\u10D8`;
|
6775
|
+
default:
|
6776
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0`;
|
6777
|
+
}
|
6778
|
+
};
|
6779
|
+
};
|
6780
|
+
function ka_default() {
|
6781
|
+
return {
|
6782
|
+
localeError: error22()
|
6783
|
+
};
|
6784
|
+
}
|
6785
|
+
|
6786
|
+
// node_modules/zod/v4/locales/km.js
|
6787
|
+
var error23 = () => {
|
6094
6788
|
const Sizable = {
|
6095
6789
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
6096
6790
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
@@ -6100,7 +6794,7 @@ var error21 = () => {
|
|
6100
6794
|
function getSizing(origin) {
|
6101
6795
|
return Sizable[origin] ?? null;
|
6102
6796
|
}
|
6103
|
-
const
|
6797
|
+
const parsedType8 = (data) => {
|
6104
6798
|
const t = typeof data;
|
6105
6799
|
switch (t) {
|
6106
6800
|
case "number": {
|
@@ -6153,7 +6847,7 @@ var error21 = () => {
|
|
6153
6847
|
return (issue2) => {
|
6154
6848
|
switch (issue2.code) {
|
6155
6849
|
case "invalid_type":
|
6156
|
-
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${
|
6850
|
+
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${parsedType8(issue2.input)}`;
|
6157
6851
|
case "invalid_value":
|
6158
6852
|
if (issue2.values.length === 1)
|
6159
6853
|
return `\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -6201,14 +6895,19 @@ var error21 = () => {
|
|
6201
6895
|
}
|
6202
6896
|
};
|
6203
6897
|
};
|
6204
|
-
function
|
6898
|
+
function km_default() {
|
6205
6899
|
return {
|
6206
|
-
localeError:
|
6900
|
+
localeError: error23()
|
6207
6901
|
};
|
6208
6902
|
}
|
6209
6903
|
|
6904
|
+
// node_modules/zod/v4/locales/kh.js
|
6905
|
+
function kh_default() {
|
6906
|
+
return km_default();
|
6907
|
+
}
|
6908
|
+
|
6210
6909
|
// node_modules/zod/v4/locales/ko.js
|
6211
|
-
var
|
6910
|
+
var error24 = () => {
|
6212
6911
|
const Sizable = {
|
6213
6912
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
6214
6913
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
@@ -6218,7 +6917,7 @@ var error22 = () => {
|
|
6218
6917
|
function getSizing(origin) {
|
6219
6918
|
return Sizable[origin] ?? null;
|
6220
6919
|
}
|
6221
|
-
const
|
6920
|
+
const parsedType8 = (data) => {
|
6222
6921
|
const t = typeof data;
|
6223
6922
|
switch (t) {
|
6224
6923
|
case "number": {
|
@@ -6228,21 +6927,253 @@ var error22 = () => {
|
|
6228
6927
|
if (Array.isArray(data)) {
|
6229
6928
|
return "array";
|
6230
6929
|
}
|
6231
|
-
if (data === null) {
|
6232
|
-
return "null";
|
6930
|
+
if (data === null) {
|
6931
|
+
return "null";
|
6932
|
+
}
|
6933
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
6934
|
+
return data.constructor.name;
|
6935
|
+
}
|
6936
|
+
}
|
6937
|
+
}
|
6938
|
+
return t;
|
6939
|
+
};
|
6940
|
+
const Nouns = {
|
6941
|
+
regex: "\uC785\uB825",
|
6942
|
+
email: "\uC774\uBA54\uC77C \uC8FC\uC18C",
|
6943
|
+
url: "URL",
|
6944
|
+
emoji: "\uC774\uBAA8\uC9C0",
|
6945
|
+
uuid: "UUID",
|
6946
|
+
uuidv4: "UUIDv4",
|
6947
|
+
uuidv6: "UUIDv6",
|
6948
|
+
nanoid: "nanoid",
|
6949
|
+
guid: "GUID",
|
6950
|
+
cuid: "cuid",
|
6951
|
+
cuid2: "cuid2",
|
6952
|
+
ulid: "ULID",
|
6953
|
+
xid: "XID",
|
6954
|
+
ksuid: "KSUID",
|
6955
|
+
datetime: "ISO \uB0A0\uC9DC\uC2DC\uAC04",
|
6956
|
+
date: "ISO \uB0A0\uC9DC",
|
6957
|
+
time: "ISO \uC2DC\uAC04",
|
6958
|
+
duration: "ISO \uAE30\uAC04",
|
6959
|
+
ipv4: "IPv4 \uC8FC\uC18C",
|
6960
|
+
ipv6: "IPv6 \uC8FC\uC18C",
|
6961
|
+
cidrv4: "IPv4 \uBC94\uC704",
|
6962
|
+
cidrv6: "IPv6 \uBC94\uC704",
|
6963
|
+
base64: "base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",
|
6964
|
+
base64url: "base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",
|
6965
|
+
json_string: "JSON \uBB38\uC790\uC5F4",
|
6966
|
+
e164: "E.164 \uBC88\uD638",
|
6967
|
+
jwt: "JWT",
|
6968
|
+
template_literal: "\uC785\uB825"
|
6969
|
+
};
|
6970
|
+
return (issue2) => {
|
6971
|
+
switch (issue2.code) {
|
6972
|
+
case "invalid_type":
|
6973
|
+
return `\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${parsedType8(issue2.input)}\uC785\uB2C8\uB2E4`;
|
6974
|
+
case "invalid_value":
|
6975
|
+
if (issue2.values.length === 1)
|
6976
|
+
return `\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`;
|
6977
|
+
return `\uC798\uBABB\uB41C \uC635\uC158: ${joinValues(issue2.values, "\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
|
6978
|
+
case "too_big": {
|
6979
|
+
const adj = issue2.inclusive ? "\uC774\uD558" : "\uBBF8\uB9CC";
|
6980
|
+
const suffix = adj === "\uBBF8\uB9CC" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
|
6981
|
+
const sizing = getSizing(issue2.origin);
|
6982
|
+
const unit = sizing?.unit ?? "\uC694\uC18C";
|
6983
|
+
if (sizing)
|
6984
|
+
return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()}${unit} ${adj}${suffix}`;
|
6985
|
+
return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()} ${adj}${suffix}`;
|
6986
|
+
}
|
6987
|
+
case "too_small": {
|
6988
|
+
const adj = issue2.inclusive ? "\uC774\uC0C1" : "\uCD08\uACFC";
|
6989
|
+
const suffix = adj === "\uC774\uC0C1" ? "\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4" : "\uC5EC\uC57C \uD569\uB2C8\uB2E4";
|
6990
|
+
const sizing = getSizing(issue2.origin);
|
6991
|
+
const unit = sizing?.unit ?? "\uC694\uC18C";
|
6992
|
+
if (sizing) {
|
6993
|
+
return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()}${unit} ${adj}${suffix}`;
|
6994
|
+
}
|
6995
|
+
return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()} ${adj}${suffix}`;
|
6996
|
+
}
|
6997
|
+
case "invalid_format": {
|
6998
|
+
const _issue = issue2;
|
6999
|
+
if (_issue.format === "starts_with") {
|
7000
|
+
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
7001
|
+
}
|
7002
|
+
if (_issue.format === "ends_with")
|
7003
|
+
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`;
|
7004
|
+
if (_issue.format === "includes")
|
7005
|
+
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
7006
|
+
if (_issue.format === "regex")
|
7007
|
+
return `\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`;
|
7008
|
+
return `\uC798\uBABB\uB41C ${Nouns[_issue.format] ?? issue2.format}`;
|
7009
|
+
}
|
7010
|
+
case "not_multiple_of":
|
7011
|
+
return `\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;
|
7012
|
+
case "unrecognized_keys":
|
7013
|
+
return `\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${joinValues(issue2.keys, ", ")}`;
|
7014
|
+
case "invalid_key":
|
7015
|
+
return `\uC798\uBABB\uB41C \uD0A4: ${issue2.origin}`;
|
7016
|
+
case "invalid_union":
|
7017
|
+
return `\uC798\uBABB\uB41C \uC785\uB825`;
|
7018
|
+
case "invalid_element":
|
7019
|
+
return `\uC798\uBABB\uB41C \uAC12: ${issue2.origin}`;
|
7020
|
+
default:
|
7021
|
+
return `\uC798\uBABB\uB41C \uC785\uB825`;
|
7022
|
+
}
|
7023
|
+
};
|
7024
|
+
};
|
7025
|
+
function ko_default() {
|
7026
|
+
return {
|
7027
|
+
localeError: error24()
|
7028
|
+
};
|
7029
|
+
}
|
7030
|
+
|
7031
|
+
// node_modules/zod/v4/locales/lt.js
|
7032
|
+
var parsedType6 = (data) => {
|
7033
|
+
const t = typeof data;
|
7034
|
+
return parsedTypeFromType(t, data);
|
7035
|
+
};
|
7036
|
+
var parsedTypeFromType = (t, data = void 0) => {
|
7037
|
+
switch (t) {
|
7038
|
+
case "number": {
|
7039
|
+
return Number.isNaN(data) ? "NaN" : "skai\u010Dius";
|
7040
|
+
}
|
7041
|
+
case "bigint": {
|
7042
|
+
return "sveikasis skai\u010Dius";
|
7043
|
+
}
|
7044
|
+
case "string": {
|
7045
|
+
return "eilut\u0117";
|
7046
|
+
}
|
7047
|
+
case "boolean": {
|
7048
|
+
return "login\u0117 reik\u0161m\u0117";
|
7049
|
+
}
|
7050
|
+
case "undefined":
|
7051
|
+
case "void": {
|
7052
|
+
return "neapibr\u0117\u017Eta reik\u0161m\u0117";
|
7053
|
+
}
|
7054
|
+
case "function": {
|
7055
|
+
return "funkcija";
|
7056
|
+
}
|
7057
|
+
case "symbol": {
|
7058
|
+
return "simbolis";
|
7059
|
+
}
|
7060
|
+
case "object": {
|
7061
|
+
if (data === void 0)
|
7062
|
+
return "ne\u017Einomas objektas";
|
7063
|
+
if (data === null)
|
7064
|
+
return "nulin\u0117 reik\u0161m\u0117";
|
7065
|
+
if (Array.isArray(data))
|
7066
|
+
return "masyvas";
|
7067
|
+
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
7068
|
+
return data.constructor.name;
|
7069
|
+
}
|
7070
|
+
return "objektas";
|
7071
|
+
}
|
7072
|
+
//Zod types below
|
7073
|
+
case "null": {
|
7074
|
+
return "nulin\u0117 reik\u0161m\u0117";
|
7075
|
+
}
|
7076
|
+
}
|
7077
|
+
return t;
|
7078
|
+
};
|
7079
|
+
var capitalizeFirstCharacter = (text) => {
|
7080
|
+
return text.charAt(0).toUpperCase() + text.slice(1);
|
7081
|
+
};
|
7082
|
+
function getUnitTypeFromNumber(number4) {
|
7083
|
+
const abs = Math.abs(number4);
|
7084
|
+
const last = abs % 10;
|
7085
|
+
const last2 = abs % 100;
|
7086
|
+
if (last2 >= 11 && last2 <= 19 || last === 0)
|
7087
|
+
return "many";
|
7088
|
+
if (last === 1)
|
7089
|
+
return "one";
|
7090
|
+
return "few";
|
7091
|
+
}
|
7092
|
+
var error25 = () => {
|
7093
|
+
const Sizable = {
|
7094
|
+
string: {
|
7095
|
+
unit: {
|
7096
|
+
one: "simbolis",
|
7097
|
+
few: "simboliai",
|
7098
|
+
many: "simboli\u0173"
|
7099
|
+
},
|
7100
|
+
verb: {
|
7101
|
+
smaller: {
|
7102
|
+
inclusive: "turi b\u016Bti ne ilgesn\u0117 kaip",
|
7103
|
+
notInclusive: "turi b\u016Bti trumpesn\u0117 kaip"
|
7104
|
+
},
|
7105
|
+
bigger: {
|
7106
|
+
inclusive: "turi b\u016Bti ne trumpesn\u0117 kaip",
|
7107
|
+
notInclusive: "turi b\u016Bti ilgesn\u0117 kaip"
|
7108
|
+
}
|
7109
|
+
}
|
7110
|
+
},
|
7111
|
+
file: {
|
7112
|
+
unit: {
|
7113
|
+
one: "baitas",
|
7114
|
+
few: "baitai",
|
7115
|
+
many: "bait\u0173"
|
7116
|
+
},
|
7117
|
+
verb: {
|
7118
|
+
smaller: {
|
7119
|
+
inclusive: "turi b\u016Bti ne didesnis kaip",
|
7120
|
+
notInclusive: "turi b\u016Bti ma\u017Eesnis kaip"
|
7121
|
+
},
|
7122
|
+
bigger: {
|
7123
|
+
inclusive: "turi b\u016Bti ne ma\u017Eesnis kaip",
|
7124
|
+
notInclusive: "turi b\u016Bti didesnis kaip"
|
7125
|
+
}
|
7126
|
+
}
|
7127
|
+
},
|
7128
|
+
array: {
|
7129
|
+
unit: {
|
7130
|
+
one: "element\u0105",
|
7131
|
+
few: "elementus",
|
7132
|
+
many: "element\u0173"
|
7133
|
+
},
|
7134
|
+
verb: {
|
7135
|
+
smaller: {
|
7136
|
+
inclusive: "turi tur\u0117ti ne daugiau kaip",
|
7137
|
+
notInclusive: "turi tur\u0117ti ma\u017Eiau kaip"
|
7138
|
+
},
|
7139
|
+
bigger: {
|
7140
|
+
inclusive: "turi tur\u0117ti ne ma\u017Eiau kaip",
|
7141
|
+
notInclusive: "turi tur\u0117ti daugiau kaip"
|
6233
7142
|
}
|
6234
|
-
|
6235
|
-
|
7143
|
+
}
|
7144
|
+
},
|
7145
|
+
set: {
|
7146
|
+
unit: {
|
7147
|
+
one: "element\u0105",
|
7148
|
+
few: "elementus",
|
7149
|
+
many: "element\u0173"
|
7150
|
+
},
|
7151
|
+
verb: {
|
7152
|
+
smaller: {
|
7153
|
+
inclusive: "turi tur\u0117ti ne daugiau kaip",
|
7154
|
+
notInclusive: "turi tur\u0117ti ma\u017Eiau kaip"
|
7155
|
+
},
|
7156
|
+
bigger: {
|
7157
|
+
inclusive: "turi tur\u0117ti ne ma\u017Eiau kaip",
|
7158
|
+
notInclusive: "turi tur\u0117ti daugiau kaip"
|
6236
7159
|
}
|
6237
7160
|
}
|
6238
7161
|
}
|
6239
|
-
return t;
|
6240
7162
|
};
|
7163
|
+
function getSizing(origin, unitType, inclusive, targetShouldBe) {
|
7164
|
+
const result = Sizable[origin] ?? null;
|
7165
|
+
if (result === null)
|
7166
|
+
return result;
|
7167
|
+
return {
|
7168
|
+
unit: result.unit[unitType],
|
7169
|
+
verb: result.verb[targetShouldBe][inclusive ? "inclusive" : "notInclusive"]
|
7170
|
+
};
|
7171
|
+
}
|
6241
7172
|
const Nouns = {
|
6242
|
-
regex: "\
|
6243
|
-
email: "\
|
7173
|
+
regex: "\u012Fvestis",
|
7174
|
+
email: "el. pa\u0161to adresas",
|
6244
7175
|
url: "URL",
|
6245
|
-
emoji: "
|
7176
|
+
emoji: "jaustukas",
|
6246
7177
|
uuid: "UUID",
|
6247
7178
|
uuidv4: "UUIDv4",
|
6248
7179
|
uuidv6: "UUIDv6",
|
@@ -6253,84 +7184,83 @@ var error22 = () => {
|
|
6253
7184
|
ulid: "ULID",
|
6254
7185
|
xid: "XID",
|
6255
7186
|
ksuid: "KSUID",
|
6256
|
-
datetime: "ISO
|
6257
|
-
date: "ISO
|
6258
|
-
time: "ISO
|
6259
|
-
duration: "ISO \
|
6260
|
-
ipv4: "IPv4
|
6261
|
-
ipv6: "IPv6
|
6262
|
-
cidrv4: "IPv4
|
6263
|
-
cidrv6: "IPv6
|
6264
|
-
base64: "base64 \
|
6265
|
-
base64url: "base64url \
|
6266
|
-
json_string: "JSON \
|
6267
|
-
e164: "E.164
|
7187
|
+
datetime: "ISO data ir laikas",
|
7188
|
+
date: "ISO data",
|
7189
|
+
time: "ISO laikas",
|
7190
|
+
duration: "ISO trukm\u0117",
|
7191
|
+
ipv4: "IPv4 adresas",
|
7192
|
+
ipv6: "IPv6 adresas",
|
7193
|
+
cidrv4: "IPv4 tinklo prefiksas (CIDR)",
|
7194
|
+
cidrv6: "IPv6 tinklo prefiksas (CIDR)",
|
7195
|
+
base64: "base64 u\u017Ekoduota eilut\u0117",
|
7196
|
+
base64url: "base64url u\u017Ekoduota eilut\u0117",
|
7197
|
+
json_string: "JSON eilut\u0117",
|
7198
|
+
e164: "E.164 numeris",
|
6268
7199
|
jwt: "JWT",
|
6269
|
-
template_literal: "\
|
7200
|
+
template_literal: "\u012Fvestis"
|
6270
7201
|
};
|
6271
7202
|
return (issue2) => {
|
6272
7203
|
switch (issue2.code) {
|
6273
7204
|
case "invalid_type":
|
6274
|
-
return
|
7205
|
+
return `Gautas tipas ${parsedType6(issue2.input)}, o tik\u0117tasi - ${parsedTypeFromType(issue2.expected)}`;
|
6275
7206
|
case "invalid_value":
|
6276
7207
|
if (issue2.values.length === 1)
|
6277
|
-
return
|
6278
|
-
return
|
7208
|
+
return `Privalo b\u016Bti ${stringifyPrimitive(issue2.values[0])}`;
|
7209
|
+
return `Privalo b\u016Bti vienas i\u0161 ${joinValues(issue2.values, "|")} pasirinkim\u0173`;
|
6279
7210
|
case "too_big": {
|
6280
|
-
const
|
6281
|
-
const
|
6282
|
-
|
6283
|
-
|
6284
|
-
|
6285
|
-
|
6286
|
-
return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()} ${adj}${suffix}`;
|
7211
|
+
const origin = parsedTypeFromType(issue2.origin);
|
7212
|
+
const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.maximum)), issue2.inclusive ?? false, "smaller");
|
7213
|
+
if (sizing?.verb)
|
7214
|
+
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.maximum.toString()} ${sizing.unit ?? "element\u0173"}`;
|
7215
|
+
const adj = issue2.inclusive ? "ne didesnis kaip" : "ma\u017Eesnis kaip";
|
7216
|
+
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.maximum.toString()} ${sizing?.unit}`;
|
6287
7217
|
}
|
6288
7218
|
case "too_small": {
|
6289
|
-
const
|
6290
|
-
const
|
6291
|
-
|
6292
|
-
|
6293
|
-
|
6294
|
-
|
6295
|
-
}
|
6296
|
-
return `${issue2.origin ?? "\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()} ${adj}${suffix}`;
|
7219
|
+
const origin = parsedTypeFromType(issue2.origin);
|
7220
|
+
const sizing = getSizing(issue2.origin, getUnitTypeFromNumber(Number(issue2.minimum)), issue2.inclusive ?? false, "bigger");
|
7221
|
+
if (sizing?.verb)
|
7222
|
+
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} ${sizing.verb} ${issue2.minimum.toString()} ${sizing.unit ?? "element\u0173"}`;
|
7223
|
+
const adj = issue2.inclusive ? "ne ma\u017Eesnis kaip" : "didesnis kaip";
|
7224
|
+
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.minimum.toString()} ${sizing?.unit}`;
|
6297
7225
|
}
|
6298
7226
|
case "invalid_format": {
|
6299
7227
|
const _issue = issue2;
|
6300
7228
|
if (_issue.format === "starts_with") {
|
6301
|
-
return
|
7229
|
+
return `Eilut\u0117 privalo prasid\u0117ti "${_issue.prefix}"`;
|
6302
7230
|
}
|
6303
7231
|
if (_issue.format === "ends_with")
|
6304
|
-
return
|
7232
|
+
return `Eilut\u0117 privalo pasibaigti "${_issue.suffix}"`;
|
6305
7233
|
if (_issue.format === "includes")
|
6306
|
-
return
|
7234
|
+
return `Eilut\u0117 privalo \u012Ftraukti "${_issue.includes}"`;
|
6307
7235
|
if (_issue.format === "regex")
|
6308
|
-
return
|
6309
|
-
return
|
7236
|
+
return `Eilut\u0117 privalo atitikti ${_issue.pattern}`;
|
7237
|
+
return `Neteisingas ${Nouns[_issue.format] ?? issue2.format}`;
|
6310
7238
|
}
|
6311
7239
|
case "not_multiple_of":
|
6312
|
-
return
|
7240
|
+
return `Skai\u010Dius privalo b\u016Bti ${issue2.divisor} kartotinis.`;
|
6313
7241
|
case "unrecognized_keys":
|
6314
|
-
return
|
7242
|
+
return `Neatpa\u017Eint${issue2.keys.length > 1 ? "i" : "as"} rakt${issue2.keys.length > 1 ? "ai" : "as"}: ${joinValues(issue2.keys, ", ")}`;
|
6315
7243
|
case "invalid_key":
|
6316
|
-
return
|
7244
|
+
return "Rastas klaidingas raktas";
|
6317
7245
|
case "invalid_union":
|
6318
|
-
return
|
6319
|
-
case "invalid_element":
|
6320
|
-
|
7246
|
+
return "Klaidinga \u012Fvestis";
|
7247
|
+
case "invalid_element": {
|
7248
|
+
const origin = parsedTypeFromType(issue2.origin);
|
7249
|
+
return `${capitalizeFirstCharacter(origin ?? issue2.origin ?? "reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`;
|
7250
|
+
}
|
6321
7251
|
default:
|
6322
|
-
return
|
7252
|
+
return "Klaidinga \u012Fvestis";
|
6323
7253
|
}
|
6324
7254
|
};
|
6325
7255
|
};
|
6326
|
-
function
|
7256
|
+
function lt_default() {
|
6327
7257
|
return {
|
6328
|
-
localeError:
|
7258
|
+
localeError: error25()
|
6329
7259
|
};
|
6330
7260
|
}
|
6331
7261
|
|
6332
7262
|
// node_modules/zod/v4/locales/mk.js
|
6333
|
-
var
|
7263
|
+
var error26 = () => {
|
6334
7264
|
const Sizable = {
|
6335
7265
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
6336
7266
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
@@ -6340,7 +7270,7 @@ var error23 = () => {
|
|
6340
7270
|
function getSizing(origin) {
|
6341
7271
|
return Sizable[origin] ?? null;
|
6342
7272
|
}
|
6343
|
-
const
|
7273
|
+
const parsedType8 = (data) => {
|
6344
7274
|
const t = typeof data;
|
6345
7275
|
switch (t) {
|
6346
7276
|
case "number": {
|
@@ -6393,7 +7323,7 @@ var error23 = () => {
|
|
6393
7323
|
return (issue2) => {
|
6394
7324
|
switch (issue2.code) {
|
6395
7325
|
case "invalid_type":
|
6396
|
-
return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${
|
7326
|
+
return `\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${parsedType8(issue2.input)}`;
|
6397
7327
|
// return `Invalid input: expected ${issue.expected}, received ${util.getParsedType(issue.input)}`;
|
6398
7328
|
case "invalid_value":
|
6399
7329
|
if (issue2.values.length === 1)
|
@@ -6444,12 +7374,12 @@ var error23 = () => {
|
|
6444
7374
|
};
|
6445
7375
|
function mk_default() {
|
6446
7376
|
return {
|
6447
|
-
localeError:
|
7377
|
+
localeError: error26()
|
6448
7378
|
};
|
6449
7379
|
}
|
6450
7380
|
|
6451
7381
|
// node_modules/zod/v4/locales/ms.js
|
6452
|
-
var
|
7382
|
+
var error27 = () => {
|
6453
7383
|
const Sizable = {
|
6454
7384
|
string: { unit: "aksara", verb: "mempunyai" },
|
6455
7385
|
file: { unit: "bait", verb: "mempunyai" },
|
@@ -6459,7 +7389,7 @@ var error24 = () => {
|
|
6459
7389
|
function getSizing(origin) {
|
6460
7390
|
return Sizable[origin] ?? null;
|
6461
7391
|
}
|
6462
|
-
const
|
7392
|
+
const parsedType8 = (data) => {
|
6463
7393
|
const t = typeof data;
|
6464
7394
|
switch (t) {
|
6465
7395
|
case "number": {
|
@@ -6512,7 +7442,7 @@ var error24 = () => {
|
|
6512
7442
|
return (issue2) => {
|
6513
7443
|
switch (issue2.code) {
|
6514
7444
|
case "invalid_type":
|
6515
|
-
return `Input tidak sah: dijangka ${issue2.expected}, diterima ${
|
7445
|
+
return `Input tidak sah: dijangka ${issue2.expected}, diterima ${parsedType8(issue2.input)}`;
|
6516
7446
|
case "invalid_value":
|
6517
7447
|
if (issue2.values.length === 1)
|
6518
7448
|
return `Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -6561,12 +7491,12 @@ var error24 = () => {
|
|
6561
7491
|
};
|
6562
7492
|
function ms_default() {
|
6563
7493
|
return {
|
6564
|
-
localeError:
|
7494
|
+
localeError: error27()
|
6565
7495
|
};
|
6566
7496
|
}
|
6567
7497
|
|
6568
7498
|
// node_modules/zod/v4/locales/nl.js
|
6569
|
-
var
|
7499
|
+
var error28 = () => {
|
6570
7500
|
const Sizable = {
|
6571
7501
|
string: { unit: "tekens" },
|
6572
7502
|
file: { unit: "bytes" },
|
@@ -6576,7 +7506,7 @@ var error25 = () => {
|
|
6576
7506
|
function getSizing(origin) {
|
6577
7507
|
return Sizable[origin] ?? null;
|
6578
7508
|
}
|
6579
|
-
const
|
7509
|
+
const parsedType8 = (data) => {
|
6580
7510
|
const t = typeof data;
|
6581
7511
|
switch (t) {
|
6582
7512
|
case "number": {
|
@@ -6629,7 +7559,7 @@ var error25 = () => {
|
|
6629
7559
|
return (issue2) => {
|
6630
7560
|
switch (issue2.code) {
|
6631
7561
|
case "invalid_type":
|
6632
|
-
return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${
|
7562
|
+
return `Ongeldige invoer: verwacht ${issue2.expected}, ontving ${parsedType8(issue2.input)}`;
|
6633
7563
|
case "invalid_value":
|
6634
7564
|
if (issue2.values.length === 1)
|
6635
7565
|
return `Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -6679,12 +7609,12 @@ var error25 = () => {
|
|
6679
7609
|
};
|
6680
7610
|
function nl_default() {
|
6681
7611
|
return {
|
6682
|
-
localeError:
|
7612
|
+
localeError: error28()
|
6683
7613
|
};
|
6684
7614
|
}
|
6685
7615
|
|
6686
7616
|
// node_modules/zod/v4/locales/no.js
|
6687
|
-
var
|
7617
|
+
var error29 = () => {
|
6688
7618
|
const Sizable = {
|
6689
7619
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
6690
7620
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
@@ -6694,7 +7624,7 @@ var error26 = () => {
|
|
6694
7624
|
function getSizing(origin) {
|
6695
7625
|
return Sizable[origin] ?? null;
|
6696
7626
|
}
|
6697
|
-
const
|
7627
|
+
const parsedType8 = (data) => {
|
6698
7628
|
const t = typeof data;
|
6699
7629
|
switch (t) {
|
6700
7630
|
case "number": {
|
@@ -6747,7 +7677,7 @@ var error26 = () => {
|
|
6747
7677
|
return (issue2) => {
|
6748
7678
|
switch (issue2.code) {
|
6749
7679
|
case "invalid_type":
|
6750
|
-
return `Ugyldig input: forventet ${issue2.expected}, fikk ${
|
7680
|
+
return `Ugyldig input: forventet ${issue2.expected}, fikk ${parsedType8(issue2.input)}`;
|
6751
7681
|
case "invalid_value":
|
6752
7682
|
if (issue2.values.length === 1)
|
6753
7683
|
return `Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -6796,12 +7726,12 @@ var error26 = () => {
|
|
6796
7726
|
};
|
6797
7727
|
function no_default() {
|
6798
7728
|
return {
|
6799
|
-
localeError:
|
7729
|
+
localeError: error29()
|
6800
7730
|
};
|
6801
7731
|
}
|
6802
7732
|
|
6803
7733
|
// node_modules/zod/v4/locales/ota.js
|
6804
|
-
var
|
7734
|
+
var error30 = () => {
|
6805
7735
|
const Sizable = {
|
6806
7736
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
6807
7737
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
@@ -6811,7 +7741,7 @@ var error27 = () => {
|
|
6811
7741
|
function getSizing(origin) {
|
6812
7742
|
return Sizable[origin] ?? null;
|
6813
7743
|
}
|
6814
|
-
const
|
7744
|
+
const parsedType8 = (data) => {
|
6815
7745
|
const t = typeof data;
|
6816
7746
|
switch (t) {
|
6817
7747
|
case "number": {
|
@@ -6864,7 +7794,7 @@ var error27 = () => {
|
|
6864
7794
|
return (issue2) => {
|
6865
7795
|
switch (issue2.code) {
|
6866
7796
|
case "invalid_type":
|
6867
|
-
return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${
|
7797
|
+
return `F\xE2sit giren: umulan ${issue2.expected}, al\u0131nan ${parsedType8(issue2.input)}`;
|
6868
7798
|
// return `Fâsit giren: umulan ${issue.expected}, alınan ${util.getParsedType(issue.input)}`;
|
6869
7799
|
case "invalid_value":
|
6870
7800
|
if (issue2.values.length === 1)
|
@@ -6914,12 +7844,12 @@ var error27 = () => {
|
|
6914
7844
|
};
|
6915
7845
|
function ota_default() {
|
6916
7846
|
return {
|
6917
|
-
localeError:
|
7847
|
+
localeError: error30()
|
6918
7848
|
};
|
6919
7849
|
}
|
6920
7850
|
|
6921
7851
|
// node_modules/zod/v4/locales/ps.js
|
6922
|
-
var
|
7852
|
+
var error31 = () => {
|
6923
7853
|
const Sizable = {
|
6924
7854
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
6925
7855
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
@@ -6929,7 +7859,7 @@ var error28 = () => {
|
|
6929
7859
|
function getSizing(origin) {
|
6930
7860
|
return Sizable[origin] ?? null;
|
6931
7861
|
}
|
6932
|
-
const
|
7862
|
+
const parsedType8 = (data) => {
|
6933
7863
|
const t = typeof data;
|
6934
7864
|
switch (t) {
|
6935
7865
|
case "number": {
|
@@ -6982,7 +7912,7 @@ var error28 = () => {
|
|
6982
7912
|
return (issue2) => {
|
6983
7913
|
switch (issue2.code) {
|
6984
7914
|
case "invalid_type":
|
6985
|
-
return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${
|
7915
|
+
return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${parsedType8(issue2.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;
|
6986
7916
|
case "invalid_value":
|
6987
7917
|
if (issue2.values.length === 1) {
|
6988
7918
|
return `\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${stringifyPrimitive(issue2.values[0])} \u0648\u0627\u06CC`;
|
@@ -7037,12 +7967,12 @@ var error28 = () => {
|
|
7037
7967
|
};
|
7038
7968
|
function ps_default() {
|
7039
7969
|
return {
|
7040
|
-
localeError:
|
7970
|
+
localeError: error31()
|
7041
7971
|
};
|
7042
7972
|
}
|
7043
7973
|
|
7044
7974
|
// node_modules/zod/v4/locales/pl.js
|
7045
|
-
var
|
7975
|
+
var error32 = () => {
|
7046
7976
|
const Sizable = {
|
7047
7977
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
7048
7978
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
@@ -7052,7 +7982,7 @@ var error29 = () => {
|
|
7052
7982
|
function getSizing(origin) {
|
7053
7983
|
return Sizable[origin] ?? null;
|
7054
7984
|
}
|
7055
|
-
const
|
7985
|
+
const parsedType8 = (data) => {
|
7056
7986
|
const t = typeof data;
|
7057
7987
|
switch (t) {
|
7058
7988
|
case "number": {
|
@@ -7105,7 +8035,7 @@ var error29 = () => {
|
|
7105
8035
|
return (issue2) => {
|
7106
8036
|
switch (issue2.code) {
|
7107
8037
|
case "invalid_type":
|
7108
|
-
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${
|
8038
|
+
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${issue2.expected}, otrzymano ${parsedType8(issue2.input)}`;
|
7109
8039
|
case "invalid_value":
|
7110
8040
|
if (issue2.values.length === 1)
|
7111
8041
|
return `Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7155,12 +8085,12 @@ var error29 = () => {
|
|
7155
8085
|
};
|
7156
8086
|
function pl_default() {
|
7157
8087
|
return {
|
7158
|
-
localeError:
|
8088
|
+
localeError: error32()
|
7159
8089
|
};
|
7160
8090
|
}
|
7161
8091
|
|
7162
8092
|
// node_modules/zod/v4/locales/pt.js
|
7163
|
-
var
|
8093
|
+
var error33 = () => {
|
7164
8094
|
const Sizable = {
|
7165
8095
|
string: { unit: "caracteres", verb: "ter" },
|
7166
8096
|
file: { unit: "bytes", verb: "ter" },
|
@@ -7170,7 +8100,7 @@ var error30 = () => {
|
|
7170
8100
|
function getSizing(origin) {
|
7171
8101
|
return Sizable[origin] ?? null;
|
7172
8102
|
}
|
7173
|
-
const
|
8103
|
+
const parsedType8 = (data) => {
|
7174
8104
|
const t = typeof data;
|
7175
8105
|
switch (t) {
|
7176
8106
|
case "number": {
|
@@ -7223,7 +8153,7 @@ var error30 = () => {
|
|
7223
8153
|
return (issue2) => {
|
7224
8154
|
switch (issue2.code) {
|
7225
8155
|
case "invalid_type":
|
7226
|
-
return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${
|
8156
|
+
return `Tipo inv\xE1lido: esperado ${issue2.expected}, recebido ${parsedType8(issue2.input)}`;
|
7227
8157
|
case "invalid_value":
|
7228
8158
|
if (issue2.values.length === 1)
|
7229
8159
|
return `Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7272,7 +8202,7 @@ var error30 = () => {
|
|
7272
8202
|
};
|
7273
8203
|
function pt_default() {
|
7274
8204
|
return {
|
7275
|
-
localeError:
|
8205
|
+
localeError: error33()
|
7276
8206
|
};
|
7277
8207
|
}
|
7278
8208
|
|
@@ -7292,7 +8222,7 @@ function getRussianPlural(count, one, few, many) {
|
|
7292
8222
|
}
|
7293
8223
|
return many;
|
7294
8224
|
}
|
7295
|
-
var
|
8225
|
+
var error34 = () => {
|
7296
8226
|
const Sizable = {
|
7297
8227
|
string: {
|
7298
8228
|
unit: {
|
@@ -7330,7 +8260,7 @@ var error31 = () => {
|
|
7330
8260
|
function getSizing(origin) {
|
7331
8261
|
return Sizable[origin] ?? null;
|
7332
8262
|
}
|
7333
|
-
const
|
8263
|
+
const parsedType8 = (data) => {
|
7334
8264
|
const t = typeof data;
|
7335
8265
|
switch (t) {
|
7336
8266
|
case "number": {
|
@@ -7383,7 +8313,7 @@ var error31 = () => {
|
|
7383
8313
|
return (issue2) => {
|
7384
8314
|
switch (issue2.code) {
|
7385
8315
|
case "invalid_type":
|
7386
|
-
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${
|
8316
|
+
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${parsedType8(issue2.input)}`;
|
7387
8317
|
case "invalid_value":
|
7388
8318
|
if (issue2.values.length === 1)
|
7389
8319
|
return `\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7437,12 +8367,12 @@ var error31 = () => {
|
|
7437
8367
|
};
|
7438
8368
|
function ru_default() {
|
7439
8369
|
return {
|
7440
|
-
localeError:
|
8370
|
+
localeError: error34()
|
7441
8371
|
};
|
7442
8372
|
}
|
7443
8373
|
|
7444
8374
|
// node_modules/zod/v4/locales/sl.js
|
7445
|
-
var
|
8375
|
+
var error35 = () => {
|
7446
8376
|
const Sizable = {
|
7447
8377
|
string: { unit: "znakov", verb: "imeti" },
|
7448
8378
|
file: { unit: "bajtov", verb: "imeti" },
|
@@ -7452,7 +8382,7 @@ var error32 = () => {
|
|
7452
8382
|
function getSizing(origin) {
|
7453
8383
|
return Sizable[origin] ?? null;
|
7454
8384
|
}
|
7455
|
-
const
|
8385
|
+
const parsedType8 = (data) => {
|
7456
8386
|
const t = typeof data;
|
7457
8387
|
switch (t) {
|
7458
8388
|
case "number": {
|
@@ -7505,7 +8435,7 @@ var error32 = () => {
|
|
7505
8435
|
return (issue2) => {
|
7506
8436
|
switch (issue2.code) {
|
7507
8437
|
case "invalid_type":
|
7508
|
-
return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${
|
8438
|
+
return `Neveljaven vnos: pri\u010Dakovano ${issue2.expected}, prejeto ${parsedType8(issue2.input)}`;
|
7509
8439
|
case "invalid_value":
|
7510
8440
|
if (issue2.values.length === 1)
|
7511
8441
|
return `Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7555,12 +8485,12 @@ var error32 = () => {
|
|
7555
8485
|
};
|
7556
8486
|
function sl_default() {
|
7557
8487
|
return {
|
7558
|
-
localeError:
|
8488
|
+
localeError: error35()
|
7559
8489
|
};
|
7560
8490
|
}
|
7561
8491
|
|
7562
8492
|
// node_modules/zod/v4/locales/sv.js
|
7563
|
-
var
|
8493
|
+
var error36 = () => {
|
7564
8494
|
const Sizable = {
|
7565
8495
|
string: { unit: "tecken", verb: "att ha" },
|
7566
8496
|
file: { unit: "bytes", verb: "att ha" },
|
@@ -7570,7 +8500,7 @@ var error33 = () => {
|
|
7570
8500
|
function getSizing(origin) {
|
7571
8501
|
return Sizable[origin] ?? null;
|
7572
8502
|
}
|
7573
|
-
const
|
8503
|
+
const parsedType8 = (data) => {
|
7574
8504
|
const t = typeof data;
|
7575
8505
|
switch (t) {
|
7576
8506
|
case "number": {
|
@@ -7623,7 +8553,7 @@ var error33 = () => {
|
|
7623
8553
|
return (issue2) => {
|
7624
8554
|
switch (issue2.code) {
|
7625
8555
|
case "invalid_type":
|
7626
|
-
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${
|
8556
|
+
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${issue2.expected}, fick ${parsedType8(issue2.input)}`;
|
7627
8557
|
case "invalid_value":
|
7628
8558
|
if (issue2.values.length === 1)
|
7629
8559
|
return `Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7674,12 +8604,12 @@ var error33 = () => {
|
|
7674
8604
|
};
|
7675
8605
|
function sv_default() {
|
7676
8606
|
return {
|
7677
|
-
localeError:
|
8607
|
+
localeError: error36()
|
7678
8608
|
};
|
7679
8609
|
}
|
7680
8610
|
|
7681
8611
|
// node_modules/zod/v4/locales/ta.js
|
7682
|
-
var
|
8612
|
+
var error37 = () => {
|
7683
8613
|
const Sizable = {
|
7684
8614
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
7685
8615
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
@@ -7689,7 +8619,7 @@ var error34 = () => {
|
|
7689
8619
|
function getSizing(origin) {
|
7690
8620
|
return Sizable[origin] ?? null;
|
7691
8621
|
}
|
7692
|
-
const
|
8622
|
+
const parsedType8 = (data) => {
|
7693
8623
|
const t = typeof data;
|
7694
8624
|
switch (t) {
|
7695
8625
|
case "number": {
|
@@ -7742,7 +8672,7 @@ var error34 = () => {
|
|
7742
8672
|
return (issue2) => {
|
7743
8673
|
switch (issue2.code) {
|
7744
8674
|
case "invalid_type":
|
7745
|
-
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${
|
8675
|
+
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${parsedType8(issue2.input)}`;
|
7746
8676
|
case "invalid_value":
|
7747
8677
|
if (issue2.values.length === 1)
|
7748
8678
|
return `\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7792,12 +8722,12 @@ var error34 = () => {
|
|
7792
8722
|
};
|
7793
8723
|
function ta_default() {
|
7794
8724
|
return {
|
7795
|
-
localeError:
|
8725
|
+
localeError: error37()
|
7796
8726
|
};
|
7797
8727
|
}
|
7798
8728
|
|
7799
8729
|
// node_modules/zod/v4/locales/th.js
|
7800
|
-
var
|
8730
|
+
var error38 = () => {
|
7801
8731
|
const Sizable = {
|
7802
8732
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
7803
8733
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
@@ -7807,7 +8737,7 @@ var error35 = () => {
|
|
7807
8737
|
function getSizing(origin) {
|
7808
8738
|
return Sizable[origin] ?? null;
|
7809
8739
|
}
|
7810
|
-
const
|
8740
|
+
const parsedType8 = (data) => {
|
7811
8741
|
const t = typeof data;
|
7812
8742
|
switch (t) {
|
7813
8743
|
case "number": {
|
@@ -7860,7 +8790,7 @@ var error35 = () => {
|
|
7860
8790
|
return (issue2) => {
|
7861
8791
|
switch (issue2.code) {
|
7862
8792
|
case "invalid_type":
|
7863
|
-
return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${
|
8793
|
+
return `\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${parsedType8(issue2.input)}`;
|
7864
8794
|
case "invalid_value":
|
7865
8795
|
if (issue2.values.length === 1)
|
7866
8796
|
return `\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -7910,12 +8840,12 @@ var error35 = () => {
|
|
7910
8840
|
};
|
7911
8841
|
function th_default() {
|
7912
8842
|
return {
|
7913
|
-
localeError:
|
8843
|
+
localeError: error38()
|
7914
8844
|
};
|
7915
8845
|
}
|
7916
8846
|
|
7917
8847
|
// node_modules/zod/v4/locales/tr.js
|
7918
|
-
var
|
8848
|
+
var parsedType7 = (data) => {
|
7919
8849
|
const t = typeof data;
|
7920
8850
|
switch (t) {
|
7921
8851
|
case "number": {
|
@@ -7935,7 +8865,7 @@ var parsedType4 = (data) => {
|
|
7935
8865
|
}
|
7936
8866
|
return t;
|
7937
8867
|
};
|
7938
|
-
var
|
8868
|
+
var error39 = () => {
|
7939
8869
|
const Sizable = {
|
7940
8870
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
7941
8871
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
@@ -7978,7 +8908,7 @@ var error36 = () => {
|
|
7978
8908
|
return (issue2) => {
|
7979
8909
|
switch (issue2.code) {
|
7980
8910
|
case "invalid_type":
|
7981
|
-
return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${
|
8911
|
+
return `Ge\xE7ersiz de\u011Fer: beklenen ${issue2.expected}, al\u0131nan ${parsedType7(issue2.input)}`;
|
7982
8912
|
case "invalid_value":
|
7983
8913
|
if (issue2.values.length === 1)
|
7984
8914
|
return `Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -8026,12 +8956,12 @@ var error36 = () => {
|
|
8026
8956
|
};
|
8027
8957
|
function tr_default() {
|
8028
8958
|
return {
|
8029
|
-
localeError:
|
8959
|
+
localeError: error39()
|
8030
8960
|
};
|
8031
8961
|
}
|
8032
8962
|
|
8033
|
-
// node_modules/zod/v4/locales/
|
8034
|
-
var
|
8963
|
+
// node_modules/zod/v4/locales/uk.js
|
8964
|
+
var error40 = () => {
|
8035
8965
|
const Sizable = {
|
8036
8966
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
8037
8967
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
@@ -8041,7 +8971,7 @@ var error37 = () => {
|
|
8041
8971
|
function getSizing(origin) {
|
8042
8972
|
return Sizable[origin] ?? null;
|
8043
8973
|
}
|
8044
|
-
const
|
8974
|
+
const parsedType8 = (data) => {
|
8045
8975
|
const t = typeof data;
|
8046
8976
|
switch (t) {
|
8047
8977
|
case "number": {
|
@@ -8094,7 +9024,7 @@ var error37 = () => {
|
|
8094
9024
|
return (issue2) => {
|
8095
9025
|
switch (issue2.code) {
|
8096
9026
|
case "invalid_type":
|
8097
|
-
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${
|
9027
|
+
return `\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${parsedType8(issue2.input)}`;
|
8098
9028
|
// return `Неправильні вхідні дані: очікується ${issue.expected}, отримано ${util.getParsedType(issue.input)}`;
|
8099
9029
|
case "invalid_value":
|
8100
9030
|
if (issue2.values.length === 1)
|
@@ -8142,14 +9072,19 @@ var error37 = () => {
|
|
8142
9072
|
}
|
8143
9073
|
};
|
8144
9074
|
};
|
8145
|
-
function
|
9075
|
+
function uk_default() {
|
8146
9076
|
return {
|
8147
|
-
localeError:
|
9077
|
+
localeError: error40()
|
8148
9078
|
};
|
8149
9079
|
}
|
8150
9080
|
|
9081
|
+
// node_modules/zod/v4/locales/ua.js
|
9082
|
+
function ua_default() {
|
9083
|
+
return uk_default();
|
9084
|
+
}
|
9085
|
+
|
8151
9086
|
// node_modules/zod/v4/locales/ur.js
|
8152
|
-
var
|
9087
|
+
var error41 = () => {
|
8153
9088
|
const Sizable = {
|
8154
9089
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
8155
9090
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
@@ -8159,7 +9094,7 @@ var error38 = () => {
|
|
8159
9094
|
function getSizing(origin) {
|
8160
9095
|
return Sizable[origin] ?? null;
|
8161
9096
|
}
|
8162
|
-
const
|
9097
|
+
const parsedType8 = (data) => {
|
8163
9098
|
const t = typeof data;
|
8164
9099
|
switch (t) {
|
8165
9100
|
case "number": {
|
@@ -8212,7 +9147,7 @@ var error38 = () => {
|
|
8212
9147
|
return (issue2) => {
|
8213
9148
|
switch (issue2.code) {
|
8214
9149
|
case "invalid_type":
|
8215
|
-
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${
|
9150
|
+
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${parsedType8(issue2.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;
|
8216
9151
|
case "invalid_value":
|
8217
9152
|
if (issue2.values.length === 1)
|
8218
9153
|
return `\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;
|
@@ -8262,12 +9197,12 @@ var error38 = () => {
|
|
8262
9197
|
};
|
8263
9198
|
function ur_default() {
|
8264
9199
|
return {
|
8265
|
-
localeError:
|
9200
|
+
localeError: error41()
|
8266
9201
|
};
|
8267
9202
|
}
|
8268
9203
|
|
8269
9204
|
// node_modules/zod/v4/locales/vi.js
|
8270
|
-
var
|
9205
|
+
var error42 = () => {
|
8271
9206
|
const Sizable = {
|
8272
9207
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
8273
9208
|
file: { unit: "byte", verb: "c\xF3" },
|
@@ -8277,7 +9212,7 @@ var error39 = () => {
|
|
8277
9212
|
function getSizing(origin) {
|
8278
9213
|
return Sizable[origin] ?? null;
|
8279
9214
|
}
|
8280
|
-
const
|
9215
|
+
const parsedType8 = (data) => {
|
8281
9216
|
const t = typeof data;
|
8282
9217
|
switch (t) {
|
8283
9218
|
case "number": {
|
@@ -8330,7 +9265,7 @@ var error39 = () => {
|
|
8330
9265
|
return (issue2) => {
|
8331
9266
|
switch (issue2.code) {
|
8332
9267
|
case "invalid_type":
|
8333
|
-
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${
|
9268
|
+
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${parsedType8(issue2.input)}`;
|
8334
9269
|
case "invalid_value":
|
8335
9270
|
if (issue2.values.length === 1)
|
8336
9271
|
return `\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -8379,12 +9314,12 @@ var error39 = () => {
|
|
8379
9314
|
};
|
8380
9315
|
function vi_default() {
|
8381
9316
|
return {
|
8382
|
-
localeError:
|
9317
|
+
localeError: error42()
|
8383
9318
|
};
|
8384
9319
|
}
|
8385
9320
|
|
8386
9321
|
// node_modules/zod/v4/locales/zh-CN.js
|
8387
|
-
var
|
9322
|
+
var error43 = () => {
|
8388
9323
|
const Sizable = {
|
8389
9324
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
8390
9325
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
@@ -8394,7 +9329,7 @@ var error40 = () => {
|
|
8394
9329
|
function getSizing(origin) {
|
8395
9330
|
return Sizable[origin] ?? null;
|
8396
9331
|
}
|
8397
|
-
const
|
9332
|
+
const parsedType8 = (data) => {
|
8398
9333
|
const t = typeof data;
|
8399
9334
|
switch (t) {
|
8400
9335
|
case "number": {
|
@@ -8447,7 +9382,7 @@ var error40 = () => {
|
|
8447
9382
|
return (issue2) => {
|
8448
9383
|
switch (issue2.code) {
|
8449
9384
|
case "invalid_type":
|
8450
|
-
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${
|
9385
|
+
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${parsedType8(issue2.input)}`;
|
8451
9386
|
case "invalid_value":
|
8452
9387
|
if (issue2.values.length === 1)
|
8453
9388
|
return `\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -8496,12 +9431,12 @@ var error40 = () => {
|
|
8496
9431
|
};
|
8497
9432
|
function zh_CN_default() {
|
8498
9433
|
return {
|
8499
|
-
localeError:
|
9434
|
+
localeError: error43()
|
8500
9435
|
};
|
8501
9436
|
}
|
8502
9437
|
|
8503
9438
|
// node_modules/zod/v4/locales/zh-TW.js
|
8504
|
-
var
|
9439
|
+
var error44 = () => {
|
8505
9440
|
const Sizable = {
|
8506
9441
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
8507
9442
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
@@ -8511,7 +9446,7 @@ var error41 = () => {
|
|
8511
9446
|
function getSizing(origin) {
|
8512
9447
|
return Sizable[origin] ?? null;
|
8513
9448
|
}
|
8514
|
-
const
|
9449
|
+
const parsedType8 = (data) => {
|
8515
9450
|
const t = typeof data;
|
8516
9451
|
switch (t) {
|
8517
9452
|
case "number": {
|
@@ -8564,7 +9499,7 @@ var error41 = () => {
|
|
8564
9499
|
return (issue2) => {
|
8565
9500
|
switch (issue2.code) {
|
8566
9501
|
case "invalid_type":
|
8567
|
-
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${
|
9502
|
+
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${parsedType8(issue2.input)}`;
|
8568
9503
|
case "invalid_value":
|
8569
9504
|
if (issue2.values.length === 1)
|
8570
9505
|
return `\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -8614,12 +9549,12 @@ var error41 = () => {
|
|
8614
9549
|
};
|
8615
9550
|
function zh_TW_default() {
|
8616
9551
|
return {
|
8617
|
-
localeError:
|
9552
|
+
localeError: error44()
|
8618
9553
|
};
|
8619
9554
|
}
|
8620
9555
|
|
8621
9556
|
// node_modules/zod/v4/locales/yo.js
|
8622
|
-
var
|
9557
|
+
var error45 = () => {
|
8623
9558
|
const Sizable = {
|
8624
9559
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
8625
9560
|
file: { unit: "bytes", verb: "n\xED" },
|
@@ -8629,7 +9564,7 @@ var error42 = () => {
|
|
8629
9564
|
function getSizing(origin) {
|
8630
9565
|
return Sizable[origin] ?? null;
|
8631
9566
|
}
|
8632
|
-
const
|
9567
|
+
const parsedType8 = (data) => {
|
8633
9568
|
const t = typeof data;
|
8634
9569
|
switch (t) {
|
8635
9570
|
case "number": {
|
@@ -8682,7 +9617,7 @@ var error42 = () => {
|
|
8682
9617
|
return (issue2) => {
|
8683
9618
|
switch (issue2.code) {
|
8684
9619
|
case "invalid_type":
|
8685
|
-
return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${
|
9620
|
+
return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${parsedType8(issue2.input)}`;
|
8686
9621
|
case "invalid_value":
|
8687
9622
|
if (issue2.values.length === 1)
|
8688
9623
|
return `\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${stringifyPrimitive(issue2.values[0])}`;
|
@@ -8730,7 +9665,7 @@ var error42 = () => {
|
|
8730
9665
|
};
|
8731
9666
|
function yo_default() {
|
8732
9667
|
return {
|
8733
|
-
localeError:
|
9668
|
+
localeError: error45()
|
8734
9669
|
};
|
8735
9670
|
}
|
8736
9671
|
|
@@ -8739,7 +9674,7 @@ var $output = Symbol("ZodOutput");
|
|
8739
9674
|
var $input = Symbol("ZodInput");
|
8740
9675
|
var $ZodRegistry = class {
|
8741
9676
|
constructor() {
|
8742
|
-
this._map = /* @__PURE__ */ new
|
9677
|
+
this._map = /* @__PURE__ */ new WeakMap();
|
8743
9678
|
this._idmap = /* @__PURE__ */ new Map();
|
8744
9679
|
}
|
8745
9680
|
add(schema, ..._meta) {
|
@@ -8754,7 +9689,7 @@ var $ZodRegistry = class {
|
|
8754
9689
|
return this;
|
8755
9690
|
}
|
8756
9691
|
clear() {
|
8757
|
-
this._map = /* @__PURE__ */ new
|
9692
|
+
this._map = /* @__PURE__ */ new WeakMap();
|
8758
9693
|
this._idmap = /* @__PURE__ */ new Map();
|
8759
9694
|
return this;
|
8760
9695
|
}
|
@@ -9610,13 +10545,16 @@ function _stringbool(Classes, _params) {
|
|
9610
10545
|
}
|
9611
10546
|
const truthySet = new Set(truthyArray);
|
9612
10547
|
const falsySet = new Set(falsyArray);
|
9613
|
-
const
|
10548
|
+
const _Codec = Classes.Codec ?? $ZodCodec;
|
9614
10549
|
const _Boolean = Classes.Boolean ?? $ZodBoolean;
|
9615
10550
|
const _String = Classes.String ?? $ZodString;
|
9616
|
-
const
|
9617
|
-
const
|
9618
|
-
|
9619
|
-
|
10551
|
+
const stringSchema = new _String({ type: "string", error: params.error });
|
10552
|
+
const booleanSchema = new _Boolean({ type: "boolean", error: params.error });
|
10553
|
+
const codec2 = new _Codec({
|
10554
|
+
type: "pipe",
|
10555
|
+
in: stringSchema,
|
10556
|
+
out: booleanSchema,
|
10557
|
+
transform: ((input, payload) => {
|
9620
10558
|
let data = input;
|
9621
10559
|
if (params.case !== "sensitive")
|
9622
10560
|
data = data.toLowerCase();
|
@@ -9630,30 +10568,22 @@ function _stringbool(Classes, _params) {
|
|
9630
10568
|
expected: "stringbool",
|
9631
10569
|
values: [...truthySet, ...falsySet],
|
9632
10570
|
input: payload.value,
|
9633
|
-
inst:
|
10571
|
+
inst: codec2,
|
9634
10572
|
continue: false
|
9635
10573
|
});
|
9636
10574
|
return {};
|
9637
10575
|
}
|
9638
|
-
},
|
9639
|
-
|
9640
|
-
|
9641
|
-
|
9642
|
-
|
9643
|
-
|
9644
|
-
|
9645
|
-
error: params.error
|
9646
|
-
});
|
9647
|
-
const outerPipe = new _Pipe({
|
9648
|
-
type: "pipe",
|
9649
|
-
in: innerPipe,
|
9650
|
-
out: new _Boolean({
|
9651
|
-
type: "boolean",
|
9652
|
-
error: params.error
|
10576
|
+
}),
|
10577
|
+
reverseTransform: ((input, _payload) => {
|
10578
|
+
if (input === true) {
|
10579
|
+
return truthyArray[0] || "true";
|
10580
|
+
} else {
|
10581
|
+
return falsyArray[0] || "false";
|
10582
|
+
}
|
9653
10583
|
}),
|
9654
10584
|
error: params.error
|
9655
10585
|
});
|
9656
|
-
return
|
10586
|
+
return codec2;
|
9657
10587
|
}
|
9658
10588
|
function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
9659
10589
|
const params = normalizeParams(_params);
|
@@ -9672,76 +10602,6 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
9672
10602
|
return inst;
|
9673
10603
|
}
|
9674
10604
|
|
9675
|
-
// node_modules/zod/v4/core/function.js
|
9676
|
-
var $ZodFunction = class {
|
9677
|
-
constructor(def) {
|
9678
|
-
this._def = def;
|
9679
|
-
this.def = def;
|
9680
|
-
}
|
9681
|
-
implement(func) {
|
9682
|
-
if (typeof func !== "function") {
|
9683
|
-
throw new Error("implement() must be called with a function");
|
9684
|
-
}
|
9685
|
-
const impl = (...args) => {
|
9686
|
-
const parsedArgs = this._def.input ? parse(this._def.input, args, void 0, { callee: impl }) : args;
|
9687
|
-
if (!Array.isArray(parsedArgs)) {
|
9688
|
-
throw new Error("Invalid arguments schema: not an array or tuple schema.");
|
9689
|
-
}
|
9690
|
-
const output = func(...parsedArgs);
|
9691
|
-
return this._def.output ? parse(this._def.output, output, void 0, { callee: impl }) : output;
|
9692
|
-
};
|
9693
|
-
return impl;
|
9694
|
-
}
|
9695
|
-
implementAsync(func) {
|
9696
|
-
if (typeof func !== "function") {
|
9697
|
-
throw new Error("implement() must be called with a function");
|
9698
|
-
}
|
9699
|
-
const impl = async (...args) => {
|
9700
|
-
const parsedArgs = this._def.input ? await parseAsync(this._def.input, args, void 0, { callee: impl }) : args;
|
9701
|
-
if (!Array.isArray(parsedArgs)) {
|
9702
|
-
throw new Error("Invalid arguments schema: not an array or tuple schema.");
|
9703
|
-
}
|
9704
|
-
const output = await func(...parsedArgs);
|
9705
|
-
return this._def.output ? parseAsync(this._def.output, output, void 0, { callee: impl }) : output;
|
9706
|
-
};
|
9707
|
-
return impl;
|
9708
|
-
}
|
9709
|
-
input(...args) {
|
9710
|
-
const F = this.constructor;
|
9711
|
-
if (Array.isArray(args[0])) {
|
9712
|
-
return new F({
|
9713
|
-
type: "function",
|
9714
|
-
input: new $ZodTuple({
|
9715
|
-
type: "tuple",
|
9716
|
-
items: args[0],
|
9717
|
-
rest: args[1]
|
9718
|
-
}),
|
9719
|
-
output: this._def.output
|
9720
|
-
});
|
9721
|
-
}
|
9722
|
-
return new F({
|
9723
|
-
type: "function",
|
9724
|
-
input: args[0],
|
9725
|
-
output: this._def.output
|
9726
|
-
});
|
9727
|
-
}
|
9728
|
-
output(output) {
|
9729
|
-
const F = this.constructor;
|
9730
|
-
return new F({
|
9731
|
-
type: "function",
|
9732
|
-
input: this._def.input,
|
9733
|
-
output
|
9734
|
-
});
|
9735
|
-
}
|
9736
|
-
};
|
9737
|
-
function _function(params) {
|
9738
|
-
return new $ZodFunction({
|
9739
|
-
type: "function",
|
9740
|
-
input: Array.isArray(params?.input) ? _tuple($ZodTuple, params?.input) : params?.input ?? _array($ZodArray, _unknown($ZodUnknown)),
|
9741
|
-
output: params?.output ?? _unknown($ZodUnknown)
|
9742
|
-
});
|
9743
|
-
}
|
9744
|
-
|
9745
10605
|
// node_modules/zod/v4/core/to-json-schema.js
|
9746
10606
|
var JSONSchemaGenerator = class {
|
9747
10607
|
constructor(params) {
|
@@ -9815,7 +10675,7 @@ var JSONSchemaGenerator = class {
|
|
9815
10675
|
else if (regexes.length > 1) {
|
9816
10676
|
result.schema.allOf = [
|
9817
10677
|
...regexes.map((regex) => ({
|
9818
|
-
...this.target === "draft-7" || this.target === "draft-4" ? { type: "string" } : {},
|
10678
|
+
...this.target === "draft-7" || this.target === "draft-4" || this.target === "openapi-3.0" ? { type: "string" } : {},
|
9819
10679
|
pattern: regex.source
|
9820
10680
|
}))
|
9821
10681
|
];
|
@@ -9831,7 +10691,7 @@ var JSONSchemaGenerator = class {
|
|
9831
10691
|
else
|
9832
10692
|
json2.type = "number";
|
9833
10693
|
if (typeof exclusiveMinimum === "number") {
|
9834
|
-
if (this.target === "draft-4") {
|
10694
|
+
if (this.target === "draft-4" || this.target === "openapi-3.0") {
|
9835
10695
|
json2.minimum = exclusiveMinimum;
|
9836
10696
|
json2.exclusiveMinimum = true;
|
9837
10697
|
} else {
|
@@ -9848,7 +10708,7 @@ var JSONSchemaGenerator = class {
|
|
9848
10708
|
}
|
9849
10709
|
}
|
9850
10710
|
if (typeof exclusiveMaximum === "number") {
|
9851
|
-
if (this.target === "draft-4") {
|
10711
|
+
if (this.target === "draft-4" || this.target === "openapi-3.0") {
|
9852
10712
|
json2.maximum = exclusiveMaximum;
|
9853
10713
|
json2.exclusiveMaximum = true;
|
9854
10714
|
} else {
|
@@ -9886,7 +10746,12 @@ var JSONSchemaGenerator = class {
|
|
9886
10746
|
break;
|
9887
10747
|
}
|
9888
10748
|
case "null": {
|
9889
|
-
|
10749
|
+
if (this.target === "openapi-3.0") {
|
10750
|
+
_json.type = "string";
|
10751
|
+
_json.nullable = true;
|
10752
|
+
_json.enum = [null];
|
10753
|
+
} else
|
10754
|
+
_json.type = "null";
|
9890
10755
|
break;
|
9891
10756
|
}
|
9892
10757
|
case "any": {
|
@@ -9966,10 +10831,11 @@ var JSONSchemaGenerator = class {
|
|
9966
10831
|
}
|
9967
10832
|
case "union": {
|
9968
10833
|
const json2 = _json;
|
9969
|
-
|
10834
|
+
const options = def.options.map((x, i) => this.process(x, {
|
9970
10835
|
...params,
|
9971
10836
|
path: [...params.path, "anyOf", i]
|
9972
10837
|
}));
|
10838
|
+
json2.anyOf = options;
|
9973
10839
|
break;
|
9974
10840
|
}
|
9975
10841
|
case "intersection": {
|
@@ -9993,29 +10859,38 @@ var JSONSchemaGenerator = class {
|
|
9993
10859
|
case "tuple": {
|
9994
10860
|
const json2 = _json;
|
9995
10861
|
json2.type = "array";
|
9996
|
-
const
|
10862
|
+
const prefixPath = this.target === "draft-2020-12" ? "prefixItems" : "items";
|
10863
|
+
const restPath = this.target === "draft-2020-12" ? "items" : this.target === "openapi-3.0" ? "items" : "additionalItems";
|
10864
|
+
const prefixItems = def.items.map((x, i) => this.process(x, {
|
10865
|
+
...params,
|
10866
|
+
path: [...params.path, prefixPath, i]
|
10867
|
+
}));
|
10868
|
+
const rest = def.rest ? this.process(def.rest, {
|
10869
|
+
...params,
|
10870
|
+
path: [...params.path, restPath, ...this.target === "openapi-3.0" ? [def.items.length] : []]
|
10871
|
+
}) : null;
|
9997
10872
|
if (this.target === "draft-2020-12") {
|
9998
10873
|
json2.prefixItems = prefixItems;
|
10874
|
+
if (rest) {
|
10875
|
+
json2.items = rest;
|
10876
|
+
}
|
10877
|
+
} else if (this.target === "openapi-3.0") {
|
10878
|
+
json2.items = {
|
10879
|
+
anyOf: prefixItems
|
10880
|
+
};
|
10881
|
+
if (rest) {
|
10882
|
+
json2.items.anyOf.push(rest);
|
10883
|
+
}
|
10884
|
+
json2.minItems = prefixItems.length;
|
10885
|
+
if (!rest) {
|
10886
|
+
json2.maxItems = prefixItems.length;
|
10887
|
+
}
|
9999
10888
|
} else {
|
10000
10889
|
json2.items = prefixItems;
|
10001
|
-
|
10002
|
-
if (def.rest) {
|
10003
|
-
const rest = this.process(def.rest, {
|
10004
|
-
...params,
|
10005
|
-
path: [...params.path, "items"]
|
10006
|
-
});
|
10007
|
-
if (this.target === "draft-2020-12") {
|
10008
|
-
json2.items = rest;
|
10009
|
-
} else {
|
10890
|
+
if (rest) {
|
10010
10891
|
json2.additionalItems = rest;
|
10011
10892
|
}
|
10012
10893
|
}
|
10013
|
-
if (def.rest) {
|
10014
|
-
json2.items = this.process(def.rest, {
|
10015
|
-
...params,
|
10016
|
-
path: [...params.path, "items"]
|
10017
|
-
});
|
10018
|
-
}
|
10019
10894
|
const { minimum, maximum } = schema._zod.bag;
|
10020
10895
|
if (typeof minimum === "number")
|
10021
10896
|
json2.minItems = minimum;
|
@@ -10026,7 +10901,7 @@ var JSONSchemaGenerator = class {
|
|
10026
10901
|
case "record": {
|
10027
10902
|
const json2 = _json;
|
10028
10903
|
json2.type = "object";
|
10029
|
-
if (this.target
|
10904
|
+
if (this.target === "draft-7" || this.target === "draft-2020-12") {
|
10030
10905
|
json2.propertyNames = this.process(def.keyType, {
|
10031
10906
|
...params,
|
10032
10907
|
path: [...params.path, "propertyNames"]
|
@@ -10083,7 +10958,7 @@ var JSONSchemaGenerator = class {
|
|
10083
10958
|
} else if (vals.length === 1) {
|
10084
10959
|
const val = vals[0];
|
10085
10960
|
json2.type = val === null ? "null" : typeof val;
|
10086
|
-
if (this.target === "draft-4") {
|
10961
|
+
if (this.target === "draft-4" || this.target === "openapi-3.0") {
|
10087
10962
|
json2.enum = [val];
|
10088
10963
|
} else {
|
10089
10964
|
json2.const = val;
|
@@ -10136,7 +11011,12 @@ var JSONSchemaGenerator = class {
|
|
10136
11011
|
}
|
10137
11012
|
case "nullable": {
|
10138
11013
|
const inner = this.process(def.innerType, params);
|
10139
|
-
|
11014
|
+
if (this.target === "openapi-3.0") {
|
11015
|
+
result.ref = def.innerType;
|
11016
|
+
_json.nullable = true;
|
11017
|
+
} else {
|
11018
|
+
_json.anyOf = [inner, { type: "null" }];
|
11019
|
+
}
|
10140
11020
|
break;
|
10141
11021
|
}
|
10142
11022
|
case "nonoptional": {
|
@@ -10224,6 +11104,12 @@ var JSONSchemaGenerator = class {
|
|
10224
11104
|
}
|
10225
11105
|
break;
|
10226
11106
|
}
|
11107
|
+
case "function": {
|
11108
|
+
if (this.unrepresentable === "throw") {
|
11109
|
+
throw new Error("Function types cannot be represented in JSON Schema");
|
11110
|
+
}
|
11111
|
+
break;
|
11112
|
+
}
|
10227
11113
|
default: {
|
10228
11114
|
def;
|
10229
11115
|
}
|
@@ -10340,7 +11226,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
10340
11226
|
if (ref) {
|
10341
11227
|
flattenRef(ref, params2);
|
10342
11228
|
const refSchema = this.seen.get(ref).schema;
|
10343
|
-
if (refSchema.$ref && (params2.target === "draft-7" || params2.target === "draft-4")) {
|
11229
|
+
if (refSchema.$ref && (params2.target === "draft-7" || params2.target === "draft-4" || params2.target === "openapi-3.0")) {
|
10344
11230
|
schema2.allOf = schema2.allOf ?? [];
|
10345
11231
|
schema2.allOf.push(refSchema);
|
10346
11232
|
} else {
|
@@ -10365,6 +11251,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
10365
11251
|
result.$schema = "http://json-schema.org/draft-07/schema#";
|
10366
11252
|
} else if (this.target === "draft-4") {
|
10367
11253
|
result.$schema = "http://json-schema.org/draft-04/schema#";
|
11254
|
+
} else if (this.target === "openapi-3.0") {
|
10368
11255
|
} else {
|
10369
11256
|
console.warn(`Invalid target: ${this.target}`);
|
10370
11257
|
}
|
@@ -10526,6 +11413,9 @@ function isTransforming(_schema, _ctx) {
|
|
10526
11413
|
case "catch": {
|
10527
11414
|
return false;
|
10528
11415
|
}
|
11416
|
+
case "function": {
|
11417
|
+
return false;
|
11418
|
+
}
|
10529
11419
|
default:
|
10530
11420
|
def;
|
10531
11421
|
}
|
@@ -10621,35 +11511,48 @@ var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
10621
11511
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
10622
11512
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
10623
11513
|
var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
11514
|
+
var encode2 = /* @__PURE__ */ _encode(ZodRealError);
|
11515
|
+
var decode2 = /* @__PURE__ */ _decode(ZodRealError);
|
11516
|
+
var encodeAsync2 = /* @__PURE__ */ _encodeAsync(ZodRealError);
|
11517
|
+
var decodeAsync2 = /* @__PURE__ */ _decodeAsync(ZodRealError);
|
11518
|
+
var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError);
|
11519
|
+
var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
11520
|
+
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
11521
|
+
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
10624
11522
|
|
10625
11523
|
// node_modules/zod/v4/classic/schemas.js
|
10626
11524
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
10627
11525
|
$ZodType.init(inst, def);
|
10628
11526
|
inst.def = def;
|
11527
|
+
inst.type = def.type;
|
10629
11528
|
Object.defineProperty(inst, "_def", { value: def });
|
10630
11529
|
inst.check = (...checks) => {
|
10631
|
-
return inst.clone(
|
10632
|
-
|
10633
|
-
...def,
|
10634
|
-
checks: [
|
10635
|
-
|
10636
|
-
|
10637
|
-
]
|
10638
|
-
}
|
10639
|
-
// { parent: true }
|
10640
|
-
);
|
11530
|
+
return inst.clone(util_exports.mergeDefs(def, {
|
11531
|
+
checks: [
|
11532
|
+
...def.checks ?? [],
|
11533
|
+
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
11534
|
+
]
|
11535
|
+
}));
|
10641
11536
|
};
|
10642
11537
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
10643
11538
|
inst.brand = () => inst;
|
10644
|
-
inst.register = (reg, meta) => {
|
11539
|
+
inst.register = ((reg, meta) => {
|
10645
11540
|
reg.add(inst, meta);
|
10646
11541
|
return inst;
|
10647
|
-
};
|
11542
|
+
});
|
10648
11543
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
10649
11544
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
10650
11545
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
10651
11546
|
inst.safeParseAsync = async (data, params) => safeParseAsync2(inst, data, params);
|
10652
11547
|
inst.spa = inst.safeParseAsync;
|
11548
|
+
inst.encode = (data, params) => encode2(inst, data, params);
|
11549
|
+
inst.decode = (data, params) => decode2(inst, data, params);
|
11550
|
+
inst.encodeAsync = async (data, params) => encodeAsync2(inst, data, params);
|
11551
|
+
inst.decodeAsync = async (data, params) => decodeAsync2(inst, data, params);
|
11552
|
+
inst.safeEncode = (data, params) => safeEncode2(inst, data, params);
|
11553
|
+
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
11554
|
+
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
11555
|
+
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
10653
11556
|
inst.refine = (check2, params) => inst.check(refine(check2, params));
|
10654
11557
|
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
10655
11558
|
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
@@ -10786,6 +11689,13 @@ var ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
10786
11689
|
function url(params) {
|
10787
11690
|
return _url(ZodURL, params);
|
10788
11691
|
}
|
11692
|
+
function httpUrl(params) {
|
11693
|
+
return _url(ZodURL, {
|
11694
|
+
protocol: /^https?$/,
|
11695
|
+
hostname: regexes_exports.domain,
|
11696
|
+
...util_exports.normalizeParams(params)
|
11697
|
+
});
|
11698
|
+
}
|
10789
11699
|
var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
|
10790
11700
|
$ZodEmoji.init(inst, def);
|
10791
11701
|
ZodStringFormat.init(inst, def);
|
@@ -10901,6 +11811,17 @@ function stringFormat(format, fnOrRegex, _params = {}) {
|
|
10901
11811
|
function hostname2(_params) {
|
10902
11812
|
return _stringFormat(ZodCustomStringFormat, "hostname", regexes_exports.hostname, _params);
|
10903
11813
|
}
|
11814
|
+
function hex2(_params) {
|
11815
|
+
return _stringFormat(ZodCustomStringFormat, "hex", regexes_exports.hex, _params);
|
11816
|
+
}
|
11817
|
+
function hash(alg, params) {
|
11818
|
+
const enc = params?.enc ?? "hex";
|
11819
|
+
const format = `${alg}_${enc}`;
|
11820
|
+
const regex = regexes_exports[format];
|
11821
|
+
if (!regex)
|
11822
|
+
throw new Error(`Unrecognized hash format: ${format}`);
|
11823
|
+
return _stringFormat(ZodCustomStringFormat, format, regex, params);
|
11824
|
+
}
|
10904
11825
|
var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
10905
11826
|
$ZodNumber.init(inst, def);
|
10906
11827
|
ZodType.init(inst, def);
|
@@ -11068,9 +11989,11 @@ function keyof(schema) {
|
|
11068
11989
|
return _enum2(Object.keys(shape));
|
11069
11990
|
}
|
11070
11991
|
var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
11071
|
-
$
|
11992
|
+
$ZodObjectJIT.init(inst, def);
|
11072
11993
|
ZodType.init(inst, def);
|
11073
|
-
util_exports.defineLazy(inst, "shape", () =>
|
11994
|
+
util_exports.defineLazy(inst, "shape", () => {
|
11995
|
+
return def.shape;
|
11996
|
+
});
|
11074
11997
|
inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
|
11075
11998
|
inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
|
11076
11999
|
inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
|
@@ -11080,6 +12003,9 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
11080
12003
|
inst.extend = (incoming) => {
|
11081
12004
|
return util_exports.extend(inst, incoming);
|
11082
12005
|
};
|
12006
|
+
inst.safeExtend = (incoming) => {
|
12007
|
+
return util_exports.safeExtend(inst, incoming);
|
12008
|
+
};
|
11083
12009
|
inst.merge = (other) => util_exports.merge(inst, other);
|
11084
12010
|
inst.pick = (mask) => util_exports.pick(inst, mask);
|
11085
12011
|
inst.omit = (mask) => util_exports.omit(inst, mask);
|
@@ -11089,10 +12015,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
11089
12015
|
function object(shape, params) {
|
11090
12016
|
const def = {
|
11091
12017
|
type: "object",
|
11092
|
-
|
11093
|
-
util_exports.assignProp(this, "shape", shape ? util_exports.objectClone(shape) : {});
|
11094
|
-
return this.shape;
|
11095
|
-
},
|
12018
|
+
shape: shape ?? {},
|
11096
12019
|
...util_exports.normalizeParams(params)
|
11097
12020
|
};
|
11098
12021
|
return new ZodObject(def);
|
@@ -11100,10 +12023,7 @@ function object(shape, params) {
|
|
11100
12023
|
function strictObject(shape, params) {
|
11101
12024
|
return new ZodObject({
|
11102
12025
|
type: "object",
|
11103
|
-
|
11104
|
-
util_exports.assignProp(this, "shape", util_exports.objectClone(shape));
|
11105
|
-
return this.shape;
|
11106
|
-
},
|
12026
|
+
shape,
|
11107
12027
|
catchall: never(),
|
11108
12028
|
...util_exports.normalizeParams(params)
|
11109
12029
|
});
|
@@ -11111,10 +12031,7 @@ function strictObject(shape, params) {
|
|
11111
12031
|
function looseObject(shape, params) {
|
11112
12032
|
return new ZodObject({
|
11113
12033
|
type: "object",
|
11114
|
-
|
11115
|
-
util_exports.assignProp(this, "shape", util_exports.objectClone(shape));
|
11116
|
-
return this.shape;
|
11117
|
-
},
|
12034
|
+
shape,
|
11118
12035
|
catchall: unknown(),
|
11119
12036
|
...util_exports.normalizeParams(params)
|
11120
12037
|
});
|
@@ -11312,6 +12229,9 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
11312
12229
|
$ZodTransform.init(inst, def);
|
11313
12230
|
ZodType.init(inst, def);
|
11314
12231
|
inst._zod.parse = (payload, _ctx) => {
|
12232
|
+
if (_ctx.direction === "backward") {
|
12233
|
+
throw new $ZodEncodeError(inst.constructor.name);
|
12234
|
+
}
|
11315
12235
|
payload.addIssue = (issue2) => {
|
11316
12236
|
if (typeof issue2 === "string") {
|
11317
12237
|
payload.issues.push(util_exports.issue(issue2, payload.value, def));
|
@@ -11453,6 +12373,19 @@ function pipe(in_, out) {
|
|
11453
12373
|
// ...util.normalizeParams(params),
|
11454
12374
|
});
|
11455
12375
|
}
|
12376
|
+
var ZodCodec = /* @__PURE__ */ $constructor("ZodCodec", (inst, def) => {
|
12377
|
+
ZodPipe.init(inst, def);
|
12378
|
+
$ZodCodec.init(inst, def);
|
12379
|
+
});
|
12380
|
+
function codec(in_, out, params) {
|
12381
|
+
return new ZodCodec({
|
12382
|
+
type: "pipe",
|
12383
|
+
in: in_,
|
12384
|
+
out,
|
12385
|
+
transform: params.decode,
|
12386
|
+
reverseTransform: params.encode
|
12387
|
+
});
|
12388
|
+
}
|
11456
12389
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
11457
12390
|
$ZodReadonly.init(inst, def);
|
11458
12391
|
ZodType.init(inst, def);
|
@@ -11497,6 +12430,17 @@ function promise(innerType) {
|
|
11497
12430
|
innerType
|
11498
12431
|
});
|
11499
12432
|
}
|
12433
|
+
var ZodFunction = /* @__PURE__ */ $constructor("ZodFunction", (inst, def) => {
|
12434
|
+
$ZodFunction.init(inst, def);
|
12435
|
+
ZodType.init(inst, def);
|
12436
|
+
});
|
12437
|
+
function _function(params) {
|
12438
|
+
return new ZodFunction({
|
12439
|
+
type: "function",
|
12440
|
+
input: Array.isArray(params?.input) ? tuple(params?.input) : params?.input ?? array(unknown()),
|
12441
|
+
output: params?.output ?? unknown()
|
12442
|
+
});
|
12443
|
+
}
|
11500
12444
|
var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
11501
12445
|
$ZodCustom.init(inst, def);
|
11502
12446
|
ZodType.init(inst, def);
|
@@ -11532,10 +12476,9 @@ function _instanceof(cls, params = {
|
|
11532
12476
|
return inst;
|
11533
12477
|
}
|
11534
12478
|
var stringbool = (...args) => _stringbool({
|
11535
|
-
|
12479
|
+
Codec: ZodCodec,
|
11536
12480
|
Boolean: ZodBoolean,
|
11537
|
-
String: ZodString
|
11538
|
-
Transform: ZodTransform
|
12481
|
+
String: ZodString
|
11539
12482
|
}, ...args);
|
11540
12483
|
function json(params) {
|
11541
12484
|
const jsonSchema = lazy(() => {
|