@eslint-react/core 1.47.2-next.0 → 1.47.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +19 -505
  2. package/dist/index.mjs +19 -505
  3. package/package.json +10 -10
package/dist/index.mjs CHANGED
@@ -7,13 +7,9 @@ import * as VAR3 from '@eslint-react/var';
7
7
  import { isMatching, P, match } from 'ts-pattern';
8
8
  import birecord from 'birecord';
9
9
 
10
- var __defProp = Object.defineProperty;
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
10
+ // src/component/component-collector.ts
15
11
 
16
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/core.js
12
+ // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/core.js
17
13
  // @__NO_SIDE_EFFECTS__
18
14
  function $constructor(name, initializer) {
19
15
  class _6 {
@@ -54,87 +50,6 @@ var globalConfig = {};
54
50
  function config(config2) {
55
51
  return globalConfig;
56
52
  }
57
-
58
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/util.js
59
- var util_exports = {};
60
- __export(util_exports, {
61
- BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
62
- NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
63
- aborted: () => aborted,
64
- allowsEval: () => allowsEval,
65
- assert: () => assert,
66
- assertEqual: () => assertEqual,
67
- assertIs: () => assertIs,
68
- assertNever: () => assertNever,
69
- assertNotEqual: () => assertNotEqual,
70
- assignProp: () => assignProp,
71
- cached: () => cached,
72
- cleanInterfaceKey: () => cleanInterfaceKey,
73
- cleanInterfaceShape: () => cleanInterfaceShape,
74
- cleanRegex: () => cleanRegex,
75
- clone: () => clone,
76
- createTransparentProxy: () => createTransparentProxy,
77
- defineLazy: () => defineLazy,
78
- esc: () => esc,
79
- escapeRegex: () => escapeRegex,
80
- extend: () => extend,
81
- extendObjectLike: () => extendObjectLike,
82
- finalizeIssue: () => finalizeIssue,
83
- floatSafeRemainder: () => floatSafeRemainder,
84
- getElementAtPath: () => getElementAtPath,
85
- getLengthableOrigin: () => getLengthableOrigin,
86
- getParsedType: () => getParsedType,
87
- getSizableOrigin: () => getSizableOrigin,
88
- getValidEnumValues: () => getValidEnumValues,
89
- isObject: () => isObject,
90
- isPlainObject: () => isPlainObject,
91
- issue: () => issue,
92
- joinValues: () => joinValues,
93
- jsonStringifyReplacer: () => jsonStringifyReplacer,
94
- mergeObjectLike: () => mergeObjectLike,
95
- normalizeObjectLikeDef: () => normalizeObjectLikeDef,
96
- normalizeParams: () => normalizeParams,
97
- nullish: () => nullish,
98
- numKeys: () => numKeys,
99
- omit: () => omit,
100
- optionalInterfaceKeys: () => optionalInterfaceKeys,
101
- optionalObjectKeys: () => optionalObjectKeys,
102
- partialObjectLike: () => partialObjectLike,
103
- pick: () => pick,
104
- prefixIssues: () => prefixIssues,
105
- primitiveTypes: () => primitiveTypes,
106
- promiseAllObject: () => promiseAllObject,
107
- propertyKeyTypes: () => propertyKeyTypes,
108
- randomString: () => randomString,
109
- requiredObjectLike: () => requiredObjectLike,
110
- splitChecksAndParams: () => splitChecksAndParams,
111
- stringifyPrimitive: () => stringifyPrimitive,
112
- unwrapMessage: () => unwrapMessage
113
- });
114
- function assertEqual(val) {
115
- return val;
116
- }
117
- function assertNotEqual(val) {
118
- return val;
119
- }
120
- function assertIs(_arg) {
121
- }
122
- function assertNever(_x) {
123
- throw new Error();
124
- }
125
- function assert(_6) {
126
- }
127
- function getValidEnumValues(obj) {
128
- const validKeys = Object.keys(obj).filter((k) => typeof obj[obj[k]] !== "number");
129
- const filtered = {};
130
- for (const k of validKeys) {
131
- filtered[k] = obj[k];
132
- }
133
- return Object.values(filtered);
134
- }
135
- function joinValues(array2, separator = "|") {
136
- return array2.map((val) => stringifyPrimitive(val)).join(separator);
137
- }
138
53
  function jsonStringifyReplacer(_6, value) {
139
54
  if (typeof value === "bigint")
140
55
  return value.toString();
@@ -151,22 +66,11 @@ function cached(getter) {
151
66
  }
152
67
  };
153
68
  }
154
- function nullish(input) {
155
- return input === null || input === void 0;
156
- }
157
69
  function cleanRegex(source) {
158
70
  const start = source.startsWith("^") ? 1 : 0;
159
71
  const end = source.endsWith("$") ? source.length - 1 : source.length;
160
72
  return source.slice(start, end);
161
73
  }
162
- function floatSafeRemainder(val, step) {
163
- const valDecCount = (val.toString().split(".")[1] || "").length;
164
- const stepDecCount = (step.toString().split(".")[1] || "").length;
165
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
166
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
167
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
168
- return valInt % stepInt / 10 ** decCount;
169
- }
170
74
  function defineLazy(object2, key, getter) {
171
75
  Object.defineProperty(object2, key, {
172
76
  get() {
@@ -185,30 +89,6 @@ function defineLazy(object2, key, getter) {
185
89
  configurable: true
186
90
  });
187
91
  }
188
- function assignProp(target, prop, value) {
189
- Object.defineProperty(target, prop, {
190
- value,
191
- writable: true,
192
- enumerable: true,
193
- configurable: true
194
- });
195
- }
196
- function getElementAtPath(obj, path) {
197
- if (!path)
198
- return obj;
199
- return path.reduce((acc, key) => acc?.[key], obj);
200
- }
201
- function promiseAllObject(promisesObj) {
202
- const keys = Object.keys(promisesObj);
203
- const promises = keys.map((key) => promisesObj[key]);
204
- return Promise.all(promises).then((results) => {
205
- const resolvedObj = {};
206
- for (let i = 0; i < keys.length; i++) {
207
- resolvedObj[keys[i]] = results[i];
208
- }
209
- return resolvedObj;
210
- });
211
- }
212
92
  function randomString(length = 10) {
213
93
  const chars = "abcdefghijklmnopqrstuvwxyz";
214
94
  let str = "";
@@ -231,78 +111,9 @@ var allowsEval = cached(() => {
231
111
  return false;
232
112
  }
233
113
  });
234
- function isPlainObject(data) {
235
- return typeof data === "object" && data !== null && Object.getPrototypeOf(data) === Object.prototype;
236
- }
237
- function numKeys(data) {
238
- let keyCount = 0;
239
- for (const key in data) {
240
- if (Object.prototype.hasOwnProperty.call(data, key)) {
241
- keyCount++;
242
- }
243
- }
244
- return keyCount;
245
- }
246
- var getParsedType = (data) => {
247
- const t = typeof data;
248
- switch (t) {
249
- case "undefined":
250
- return "undefined";
251
- case "string":
252
- return "string";
253
- case "number":
254
- return Number.isNaN(data) ? "nan" : "number";
255
- case "boolean":
256
- return "boolean";
257
- case "function":
258
- return "function";
259
- case "bigint":
260
- return "bigint";
261
- case "symbol":
262
- return "symbol";
263
- case "object":
264
- if (Array.isArray(data)) {
265
- return "array";
266
- }
267
- if (data === null) {
268
- return "null";
269
- }
270
- if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
271
- return "promise";
272
- }
273
- if (typeof Map !== "undefined" && data instanceof Map) {
274
- return "map";
275
- }
276
- if (typeof Set !== "undefined" && data instanceof Set) {
277
- return "set";
278
- }
279
- if (typeof Date !== "undefined" && data instanceof Date) {
280
- return "date";
281
- }
282
- if (typeof File !== "undefined" && data instanceof File) {
283
- return "file";
284
- }
285
- return "object";
286
- default:
287
- throw new Error(`Unknown data type: ${t}`);
288
- }
289
- };
290
- var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
291
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
292
- function escapeRegex(str) {
293
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
294
- }
295
114
  function clone(inst, def) {
296
115
  return new inst._zod.constr(def);
297
116
  }
298
- function splitChecksAndParams(_paramsOrChecks, _checks) {
299
- const params = Array.isArray(_paramsOrChecks) ? {} : _paramsOrChecks ?? {};
300
- const checks = Array.isArray(_paramsOrChecks) ? _paramsOrChecks : _checks ?? [];
301
- return {
302
- checks,
303
- params
304
- };
305
- }
306
117
  function normalizeParams(_params) {
307
118
  const params = _params;
308
119
  if (!params)
@@ -319,267 +130,11 @@ function normalizeParams(_params) {
319
130
  return { ...params, error: () => params.error };
320
131
  return params;
321
132
  }
322
- function createTransparentProxy(getter) {
323
- let target;
324
- return new Proxy({}, {
325
- get(_6, prop, receiver) {
326
- target ?? (target = getter());
327
- return Reflect.get(target, prop, receiver);
328
- },
329
- set(_6, prop, value, receiver) {
330
- target ?? (target = getter());
331
- return Reflect.set(target, prop, value, receiver);
332
- },
333
- has(_6, prop) {
334
- target ?? (target = getter());
335
- return Reflect.has(target, prop);
336
- },
337
- deleteProperty(_6, prop) {
338
- target ?? (target = getter());
339
- return Reflect.deleteProperty(target, prop);
340
- },
341
- ownKeys(_6) {
342
- target ?? (target = getter());
343
- return Reflect.ownKeys(target);
344
- },
345
- getOwnPropertyDescriptor(_6, prop) {
346
- target ?? (target = getter());
347
- return Reflect.getOwnPropertyDescriptor(target, prop);
348
- },
349
- defineProperty(_6, prop, descriptor) {
350
- target ?? (target = getter());
351
- return Reflect.defineProperty(target, prop, descriptor);
352
- }
353
- // apply(target, thisArg, args) {
354
- // return Reflect.apply(target, thisArg, args);
355
- // },
356
- // construct(target, args, newTarget) {
357
- // return Reflect.construct(target, args, newTarget);
358
- // },
359
- });
360
- }
361
- function stringifyPrimitive(value) {
362
- if (typeof value === "bigint")
363
- return value.toString() + "n";
364
- if (typeof value === "string")
365
- return `"${value}"`;
366
- return `${value}`;
367
- }
368
133
  function optionalObjectKeys(shape) {
369
134
  return Object.keys(shape).filter((k) => {
370
135
  return shape[k]._zod.qout === "true";
371
136
  });
372
137
  }
373
- function optionalInterfaceKeys(shape) {
374
- return Object.keys(shape).filter((k) => {
375
- return k.endsWith("?");
376
- }).map((k) => k.replace(/\?$/, ""));
377
- }
378
- function cleanInterfaceKey(key) {
379
- return key.replace(/^\?/, "").replace(/\?$/, "");
380
- }
381
- function cleanInterfaceShape(_shape) {
382
- const keyMap = {};
383
- const shape = {};
384
- const optional2 = [];
385
- const defaulted = [];
386
- for (const [key, value] of Object.entries(_shape)) {
387
- if (key.endsWith("?"))
388
- optional2.push(key.slice(0, -1));
389
- if (key.startsWith("?"))
390
- defaulted.push(key.slice(1));
391
- const cleanKey = cleanInterfaceKey(key);
392
- shape[cleanKey] = value;
393
- keyMap[cleanKey] = key;
394
- }
395
- return { shape, keyMap, optional: optional2, defaulted };
396
- }
397
- var NUMBER_FORMAT_RANGES = {
398
- safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
399
- int32: [-2147483648, 2147483647],
400
- uint32: [0, 4294967295],
401
- float32: [-34028234663852886e22, 34028234663852886e22],
402
- float64: [-17976931348623157e292, 17976931348623157e292]
403
- };
404
- var BIGINT_FORMAT_RANGES = {
405
- int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
406
- uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
407
- };
408
- function pick(schema, mask) {
409
- const newShape = {};
410
- const newOptional = [];
411
- const currShape = schema._zod.def.shape;
412
- const currOptional = new Set(schema._zod.def.optional);
413
- for (const key in mask) {
414
- if (!(key in currShape)) {
415
- throw new Error(`Unrecognized key: "${key}"`);
416
- }
417
- if (!mask[key])
418
- continue;
419
- newShape[key] = currShape[key];
420
- if (currOptional.has(key)) {
421
- newOptional.push(key);
422
- }
423
- }
424
- return clone(schema, {
425
- ...schema._zod.def,
426
- shape: newShape,
427
- optional: newOptional,
428
- checks: []
429
- });
430
- }
431
- function omit(schema, mask) {
432
- const newShape = { ...schema._zod.def.shape };
433
- const newOptional = new Set(schema._zod.def.optional);
434
- for (const key in mask) {
435
- if (!(key in schema._zod.def.shape)) {
436
- throw new Error(`Unrecognized key: "${key}"`);
437
- }
438
- if (!mask[key])
439
- continue;
440
- delete newShape[key];
441
- newOptional.delete(key);
442
- }
443
- return clone(schema, {
444
- ...schema._zod.def,
445
- shape: newShape,
446
- optional: [...newOptional],
447
- checks: []
448
- });
449
- }
450
- function extend(schema, shape) {
451
- const def = {
452
- ...schema._zod.def,
453
- get shape() {
454
- const _shape = { ...schema._zod.def.shape, ...shape };
455
- assignProp(this, "shape", _shape);
456
- return _shape;
457
- },
458
- checks: []
459
- // delete existing checks
460
- };
461
- defineLazy(def, "shape", () => ({ ...schema._zod.def.shape, ...shape }));
462
- return clone(schema, def);
463
- }
464
- function mergeObjectLike(a, b) {
465
- const bKeys = new Set(Object.keys(b._zod.def.shape));
466
- const optional2 = [...a._zod.def.optional.filter((k) => !bKeys.has(k)), ...b._zod.def.optional];
467
- return clone(a, {
468
- ...a._zod.def,
469
- get shape() {
470
- const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
471
- assignProp(this, "shape", _shape);
472
- return _shape;
473
- },
474
- optional: optional2,
475
- catchall: b._zod.def.catchall,
476
- checks: []
477
- // delete existing checks
478
- });
479
- }
480
- function extendObjectLike(a, b) {
481
- const bKeys = new Set(Object.keys(b._zod.def.shape));
482
- const optional2 = [...a._zod.def.optional.filter((k) => !bKeys.has(k)), ...b._zod.def.optional];
483
- return clone(a, {
484
- ...a._zod.def,
485
- get shape() {
486
- const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
487
- assignProp(this, "shape", _shape);
488
- return _shape;
489
- },
490
- optional: optional2,
491
- checks: []
492
- // delete existent checks
493
- });
494
- }
495
- function partialObjectLike(Class, schema, mask) {
496
- const shape = { ...schema._zod.def.shape };
497
- const optional2 = new Set(schema._zod.def.optional);
498
- if (mask) {
499
- for (const key in mask) {
500
- if (!(key in shape)) {
501
- throw new Error(`Unrecognized key: "${key}"`);
502
- }
503
- if (!mask[key])
504
- continue;
505
- shape[key] = new Class({
506
- type: "optional",
507
- innerType: schema._zod.def.shape[key]
508
- });
509
- optional2.add(key);
510
- }
511
- } else {
512
- for (const key in schema._zod.def.shape) {
513
- shape[key] = new Class({
514
- type: "optional",
515
- innerType: schema._zod.def.shape[key]
516
- });
517
- optional2.add(key);
518
- }
519
- }
520
- return clone(schema, {
521
- ...schema._zod.def,
522
- shape,
523
- optional: [...optional2],
524
- checks: []
525
- });
526
- }
527
- function requiredObjectLike(Class, schema, mask) {
528
- const shape = { ...schema._zod.def.shape };
529
- if (mask) {
530
- for (const key in mask) {
531
- if (!(key in shape)) {
532
- throw new Error(`Unrecognized key: "${key}"`);
533
- }
534
- if (!mask[key])
535
- continue;
536
- shape[key] = new Class({
537
- type: "nonoptional",
538
- innerType: schema._zod.def.shape[key]
539
- });
540
- }
541
- } else {
542
- for (const key in schema._zod.def.shape) {
543
- shape[key] = new Class({
544
- type: "nonoptional",
545
- innerType: schema._zod.def.shape[key]
546
- });
547
- }
548
- }
549
- return clone(schema, {
550
- ...schema._zod.def,
551
- shape,
552
- optional: [],
553
- checks: []
554
- });
555
- }
556
- function normalizeObjectLikeDef(def) {
557
- if (def.type === "interface") {
558
- const keys = Object.keys(def.shape);
559
- const keySet = new Set(Object.keys(def.shape));
560
- return {
561
- shape: { ...def.shape },
562
- // resolve getters
563
- keys,
564
- keySet,
565
- numKeys: keys.length,
566
- optionalKeys: new Set(def.optional)
567
- };
568
- }
569
- if (def.type === "object") {
570
- const keys = Object.keys(def.shape);
571
- const keySet = new Set(Object.keys(def.shape));
572
- return {
573
- shape: { ...def.shape },
574
- // resolve getters
575
- keys,
576
- keySet,
577
- numKeys: keys.length,
578
- optionalKeys: new Set(def.optional)
579
- };
580
- }
581
- throw new Error("Invalid object-like type");
582
- }
583
138
  function aborted(x, startIndex = 0) {
584
139
  for (let i = startIndex; i < x.issues.length; i++) {
585
140
  if (x.issues[i].continue !== true)
@@ -611,36 +166,8 @@ function finalizeIssue(iss, ctx, config2) {
611
166
  }
612
167
  return full;
613
168
  }
614
- function getSizableOrigin(input) {
615
- if (input instanceof Set)
616
- return "set";
617
- if (input instanceof Map)
618
- return "map";
619
- if (input instanceof File)
620
- return "file";
621
- return "unknown";
622
- }
623
- function getLengthableOrigin(input) {
624
- if (Array.isArray(input))
625
- return "array";
626
- if (typeof input === "string")
627
- return "string";
628
- return "unknown";
629
- }
630
- function issue(...args) {
631
- const [iss, input, inst] = args;
632
- if (typeof iss === "string") {
633
- return {
634
- message: iss,
635
- code: "custom",
636
- input,
637
- inst
638
- };
639
- }
640
- return { ...iss };
641
- }
642
169
 
643
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/errors.js
170
+ // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/errors.js
644
171
  var ZOD_ERROR = Symbol.for("{{zod.error}}");
645
172
  var $ZodError = class {
646
173
  get message() {
@@ -657,7 +184,7 @@ var $ZodError = class {
657
184
  }
658
185
  };
659
186
 
660
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/parse.js
187
+ // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/parse.js
661
188
  function _parse(schema, value, _ctx) {
662
189
  const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
663
190
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -709,7 +236,7 @@ var string = (params) => {
709
236
  };
710
237
  var boolean = /true|false/i;
711
238
 
712
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/doc.js
239
+ // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/doc.js
713
240
  var Doc = class {
714
241
  constructor(args) {
715
242
  this.content = [];
@@ -741,21 +268,13 @@ var Doc = class {
741
268
  }
742
269
  };
743
270
 
744
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/versions.js
745
- var version = {
746
- major: 0,
747
- minor: 3,
748
- patch: 3
749
- };
750
-
751
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/schemas.js
271
+ // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/schemas.js
752
272
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
753
273
  var _a;
754
274
  inst ?? (inst = {});
755
275
  inst._zod.id = def.type + "_" + randomString(10);
756
276
  inst._zod.def = def;
757
277
  inst._zod.computed = inst._zod.computed || {};
758
- inst._zod.version = version;
759
278
  const checks = [...inst._zod.def.checks ?? []];
760
279
  def.type;
761
280
  if (inst._zod.traits.has("$ZodCheck")) {
@@ -823,7 +342,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
823
342
  return runChecks(result, checks, ctx);
824
343
  };
825
344
  }
826
- inst["~standard"] = {
345
+ defineLazy(inst, "~standard", () => ({
827
346
  validate: (value) => {
828
347
  const result = inst._zod.run({ value, issues: [] }, {});
829
348
  if (result instanceof Promise) {
@@ -839,7 +358,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
839
358
  },
840
359
  vendor: "zod",
841
360
  version: 1
842
- };
361
+ }));
843
362
  });
844
363
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
845
364
  $ZodType.init(inst, def);
@@ -1044,9 +563,7 @@ var $ZodObjectLike = /* @__PURE__ */ $constructor("$ZodObjectLike", (inst, def)
1044
563
  const fastEnabled = allowsEval.value;
1045
564
  const isObject2 = isObject;
1046
565
  const { catchall } = def;
1047
- let value;
1048
566
  inst._zod.parse = (payload, ctx) => {
1049
- value ?? (value = _normalized.value);
1050
567
  const input = payload.value;
1051
568
  if (!isObject2(input)) {
1052
569
  payload.issues.push({
@@ -1064,7 +581,7 @@ var $ZodObjectLike = /* @__PURE__ */ $constructor("$ZodObjectLike", (inst, def)
1064
581
  payload = fastpass(payload, ctx);
1065
582
  } else {
1066
583
  payload.value = {};
1067
- const { keys, shape, optionalKeys } = value;
584
+ const { keys, shape, optionalKeys } = _normalized.value;
1068
585
  for (const key of keys) {
1069
586
  const valueSchema = shape[key];
1070
587
  const r = valueSchema._zod.run({ value: input[key], issues: [] }, ctx);
@@ -1084,17 +601,14 @@ var $ZodObjectLike = /* @__PURE__ */ $constructor("$ZodObjectLike", (inst, def)
1084
601
  return proms.length ? Promise.all(proms).then(() => payload) : payload;
1085
602
  }
1086
603
  const unrecognized = [];
1087
- const keySet = value.keySet;
1088
- const _catchall = catchall._zod;
1089
- const t = _catchall.def.type;
1090
604
  for (const key of Object.keys(input)) {
1091
- if (keySet.has(key))
605
+ if (_normalized.value.keySet.has(key))
1092
606
  continue;
1093
- if (t === "never") {
607
+ if (catchall._zod.def.type === "never") {
1094
608
  unrecognized.push(key);
1095
609
  continue;
1096
610
  }
1097
- const r = _catchall.run({ value: input[key], issues: [] }, ctx);
611
+ const r = catchall._zod.run({ value: input[key], issues: [] }, ctx);
1098
612
  if (r instanceof Promise) {
1099
613
  proms.push(r.then((r2) => handleObjectResult(r2, payload, key)));
1100
614
  } else {
@@ -1135,7 +649,7 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
1135
649
  };
1136
650
  });
1137
651
 
1138
- // ../../node_modules/.pnpm/@zod+core@0.3.3/node_modules/@zod/core/dist/esm/api.js
652
+ // ../../node_modules/.pnpm/@zod+core@0.1.0/node_modules/@zod/core/dist/esm/api.js
1139
653
  function _string(Class, params) {
1140
654
  return new Class({
1141
655
  type: "string",
@@ -1149,7 +663,7 @@ function _boolean(Class, params) {
1149
663
  });
1150
664
  }
1151
665
 
1152
- // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.20250411T005215_60e10b0f348e07070e4d24639ea7d4ee/node_modules/@zod/mini/dist/esm/parse.js
666
+ // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.0/node_modules/@zod/mini/dist/esm/parse.js
1153
667
  var parse2 = /* @__PURE__ */ _parse.bind({ Error: $ZodError });
1154
668
  var safeParse = /* @__PURE__ */ _safeParse.bind({ Error: $ZodError });
1155
669
  var parseAsync2 = /* @__PURE__ */ _parseAsync.bind({ Error: $ZodError });
@@ -1157,7 +671,7 @@ var safeParseAsync = /* @__PURE__ */ _safeParseAsync.bind({
1157
671
  Error: $ZodError
1158
672
  });
1159
673
 
1160
- // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.20250411T005215_60e10b0f348e07070e4d24639ea7d4ee/node_modules/@zod/mini/dist/esm/schemas.js
674
+ // ../../node_modules/.pnpm/@zod+mini@4.0.0-beta.0/node_modules/@zod/mini/dist/esm/schemas.js
1161
675
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1162
676
  if (!inst._zod)
1163
677
  throw new Error("Uninitialized schema in mixin ZodMiniType.");
@@ -1208,7 +722,7 @@ function array(element, params) {
1208
722
  // get element() {
1209
723
  // return element;
1210
724
  // },
1211
- ...util_exports.normalizeParams(params)
725
+ ...normalizeParams(params)
1212
726
  });
1213
727
  }
1214
728
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -1220,9 +734,9 @@ function object(shape, params) {
1220
734
  type: "object",
1221
735
  shape: shape ?? {},
1222
736
  get optional() {
1223
- return util_exports.optionalObjectKeys(shape ?? {});
737
+ return optionalObjectKeys(shape ?? {});
1224
738
  },
1225
- ...util_exports.normalizeParams(params)
739
+ ...normalizeParams(params)
1226
740
  };
1227
741
  return new ZodMiniObject(def);
1228
742
  }
@@ -1234,7 +748,7 @@ function optional(innerType, params) {
1234
748
  return new ZodMiniOptional({
1235
749
  type: "optional",
1236
750
  innerType,
1237
- ...util_exports.normalizeParams(params)
751
+ ...normalizeParams(params)
1238
752
  });
1239
753
  }
1240
754