@storm-software/eslint 0.166.0 → 0.167.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.
package/dist/preset.js CHANGED
@@ -5,16 +5,16 @@ import {
5
5
  isPackageInScope,
6
6
  parserPlain,
7
7
  renameRules
8
- } from "./chunk-RH5GBG6M.js";
8
+ } from "./chunk-6E5KEVBK.js";
9
9
  import {
10
10
  getTsConfigPath
11
- } from "./chunk-7ZO3W7OH.js";
11
+ } from "./chunk-XDHRR4R3.js";
12
12
  import {
13
13
  banner_plugin_default
14
- } from "./chunk-ZQA53H43.js";
14
+ } from "./chunk-HSWGWTE6.js";
15
15
  import {
16
16
  getFileBanner
17
- } from "./chunk-AUVZFDDS.js";
17
+ } from "./chunk-XU5XEUSG.js";
18
18
  import {
19
19
  GLOB_ASTRO,
20
20
  GLOB_ASTRO_TS,
@@ -41,19 +41,19 @@ import {
41
41
  GLOB_TSX,
42
42
  GLOB_XML,
43
43
  GLOB_YAML
44
- } from "./chunk-VXTUFBBY.js";
44
+ } from "./chunk-Z6P3OCML.js";
45
45
  import {
46
46
  findWorkspaceRoot
47
- } from "./chunk-LX2WLDEJ.js";
47
+ } from "./chunk-AYE5CCZF.js";
48
48
  import {
49
49
  joinPaths
50
- } from "./chunk-LQC4IJZO.js";
50
+ } from "./chunk-3QAFS63R.js";
51
51
  import {
52
52
  __commonJS,
53
53
  __export,
54
54
  __toESM,
55
55
  init_esm_shims
56
- } from "./chunk-NAOQBQSK.js";
56
+ } from "./chunk-PKRXKYXI.js";
57
57
 
58
58
  // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/Debug.js
59
59
  import * as __import_process from "process";
@@ -2522,13 +2522,19 @@ init_esm_shims();
2522
2522
  // ../config/src/schema.ts
2523
2523
  init_esm_shims();
2524
2524
 
2525
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/external.js
2525
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/mini/index.js
2526
2526
  init_esm_shims();
2527
2527
 
2528
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/index.js
2528
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/index.js
2529
2529
  init_esm_shims();
2530
2530
 
2531
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/core.js
2531
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/external.js
2532
+ init_esm_shims();
2533
+
2534
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/index.js
2535
+ init_esm_shims();
2536
+
2537
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/core.js
2532
2538
  init_esm_shims();
2533
2539
  var NEVER = Object.freeze({
2534
2540
  status: "aborted"
@@ -2589,13 +2595,13 @@ function config(newConfig) {
2589
2595
  return globalConfig;
2590
2596
  }
2591
2597
 
2592
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/parse.js
2598
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/parse.js
2593
2599
  init_esm_shims();
2594
2600
 
2595
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/errors.js
2601
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/errors.js
2596
2602
  init_esm_shims();
2597
2603
 
2598
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/util.js
2604
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/util.js
2599
2605
  var util_exports = {};
2600
2606
  __export(util_exports, {
2601
2607
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -2609,11 +2615,14 @@ __export(util_exports, {
2609
2615
  assertNever: () => assertNever,
2610
2616
  assertNotEqual: () => assertNotEqual,
2611
2617
  assignProp: () => assignProp,
2618
+ base64ToUint8Array: () => base64ToUint8Array,
2619
+ base64urlToUint8Array: () => base64urlToUint8Array,
2612
2620
  cached: () => cached,
2613
2621
  captureStackTrace: () => captureStackTrace,
2614
2622
  cleanEnum: () => cleanEnum,
2615
2623
  cleanRegex: () => cleanRegex,
2616
2624
  clone: () => clone,
2625
+ cloneDef: () => cloneDef,
2617
2626
  createTransparentProxy: () => createTransparentProxy,
2618
2627
  defineLazy: () => defineLazy,
2619
2628
  esc: () => esc,
@@ -2626,15 +2635,18 @@ __export(util_exports, {
2626
2635
  getLengthableOrigin: () => getLengthableOrigin,
2627
2636
  getParsedType: () => getParsedType,
2628
2637
  getSizableOrigin: () => getSizableOrigin,
2638
+ hexToUint8Array: () => hexToUint8Array,
2629
2639
  isObject: () => isObject,
2630
2640
  isPlainObject: () => isPlainObject,
2631
2641
  issue: () => issue,
2632
2642
  joinValues: () => joinValues,
2633
2643
  jsonStringifyReplacer: () => jsonStringifyReplacer,
2634
2644
  merge: () => merge,
2645
+ mergeDefs: () => mergeDefs,
2635
2646
  normalizeParams: () => normalizeParams,
2636
2647
  nullish: () => nullish,
2637
2648
  numKeys: () => numKeys,
2649
+ objectClone: () => objectClone,
2638
2650
  omit: () => omit,
2639
2651
  optionalKeys: () => optionalKeys,
2640
2652
  partial: () => partial,
@@ -2645,7 +2657,12 @@ __export(util_exports, {
2645
2657
  propertyKeyTypes: () => propertyKeyTypes,
2646
2658
  randomString: () => randomString,
2647
2659
  required: () => required,
2660
+ safeExtend: () => safeExtend,
2661
+ shallowClone: () => shallowClone,
2648
2662
  stringifyPrimitive: () => stringifyPrimitive,
2663
+ uint8ArrayToBase64: () => uint8ArrayToBase64,
2664
+ uint8ArrayToBase64url: () => uint8ArrayToBase64url,
2665
+ uint8ArrayToHex: () => uint8ArrayToHex,
2649
2666
  unwrapMessage: () => unwrapMessage
2650
2667
  });
2651
2668
  init_esm_shims();
@@ -2698,22 +2715,32 @@ function cleanRegex(source) {
2698
2715
  }
2699
2716
  function floatSafeRemainder(val, step) {
2700
2717
  const valDecCount = (val.toString().split(".")[1] || "").length;
2701
- const stepDecCount = (step.toString().split(".")[1] || "").length;
2718
+ const stepString = step.toString();
2719
+ let stepDecCount = (stepString.split(".")[1] || "").length;
2720
+ if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
2721
+ const match = stepString.match(/\d?e-(\d?)/);
2722
+ if (match?.[1]) {
2723
+ stepDecCount = Number.parseInt(match[1]);
2724
+ }
2725
+ }
2702
2726
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
2703
2727
  const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
2704
2728
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
2705
2729
  return valInt % stepInt / 10 ** decCount;
2706
2730
  }
2731
+ var EVALUATING = Symbol("evaluating");
2707
2732
  function defineLazy(object2, key, getter) {
2708
- const set = false;
2733
+ let value = void 0;
2709
2734
  Object.defineProperty(object2, key, {
2710
2735
  get() {
2711
- if (!set) {
2712
- const value = getter();
2713
- object2[key] = value;
2714
- return value;
2736
+ if (value === EVALUATING) {
2737
+ return void 0;
2715
2738
  }
2716
- throw new Error("cached value already set");
2739
+ if (value === void 0) {
2740
+ value = EVALUATING;
2741
+ value = getter();
2742
+ }
2743
+ return value;
2717
2744
  },
2718
2745
  set(v) {
2719
2746
  Object.defineProperty(object2, key, {
@@ -2724,6 +2751,9 @@ function defineLazy(object2, key, getter) {
2724
2751
  configurable: true
2725
2752
  });
2726
2753
  }
2754
+ function objectClone(obj) {
2755
+ return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
2756
+ }
2727
2757
  function assignProp(target, prop, value) {
2728
2758
  Object.defineProperty(target, prop, {
2729
2759
  value,
@@ -2732,6 +2762,17 @@ function assignProp(target, prop, value) {
2732
2762
  configurable: true
2733
2763
  });
2734
2764
  }
2765
+ function mergeDefs(...defs) {
2766
+ const mergedDescriptors = {};
2767
+ for (const def of defs) {
2768
+ const descriptors = Object.getOwnPropertyDescriptors(def);
2769
+ Object.assign(mergedDescriptors, descriptors);
2770
+ }
2771
+ return Object.defineProperties({}, mergedDescriptors);
2772
+ }
2773
+ function cloneDef(schema) {
2774
+ return mergeDefs(schema._zod.def);
2775
+ }
2735
2776
  function getElementAtPath(obj, path) {
2736
2777
  if (!path)
2737
2778
  return obj;
@@ -2759,7 +2800,7 @@ function randomString(length = 10) {
2759
2800
  function esc(str) {
2760
2801
  return JSON.stringify(str);
2761
2802
  }
2762
- var captureStackTrace = Error.captureStackTrace ? Error.captureStackTrace : (..._args) => {
2803
+ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
2763
2804
  };
2764
2805
  function isObject(data) {
2765
2806
  return typeof data === "object" && data !== null && !Array.isArray(data);
@@ -2790,6 +2831,13 @@ function isPlainObject(o) {
2790
2831
  }
2791
2832
  return true;
2792
2833
  }
2834
+ function shallowClone(o) {
2835
+ if (isPlainObject(o))
2836
+ return { ...o };
2837
+ if (Array.isArray(o))
2838
+ return [...o];
2839
+ return o;
2840
+ }
2793
2841
  function numKeys(data) {
2794
2842
  let keyCount = 0;
2795
2843
  for (const key in data) {
@@ -2927,43 +2975,68 @@ var BIGINT_FORMAT_RANGES = {
2927
2975
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
2928
2976
  };
2929
2977
  function pick(schema, mask) {
2930
- const newShape = {};
2931
2978
  const currDef = schema._zod.def;
2932
- for (const key in mask) {
2933
- if (!(key in currDef.shape)) {
2934
- throw new Error(`Unrecognized key: "${key}"`);
2935
- }
2936
- if (!mask[key])
2937
- continue;
2938
- newShape[key] = currDef.shape[key];
2939
- }
2940
- return clone(schema, {
2941
- ...schema._zod.def,
2942
- shape: newShape,
2979
+ const def = mergeDefs(schema._zod.def, {
2980
+ get shape() {
2981
+ const newShape = {};
2982
+ for (const key in mask) {
2983
+ if (!(key in currDef.shape)) {
2984
+ throw new Error(`Unrecognized key: "${key}"`);
2985
+ }
2986
+ if (!mask[key])
2987
+ continue;
2988
+ newShape[key] = currDef.shape[key];
2989
+ }
2990
+ assignProp(this, "shape", newShape);
2991
+ return newShape;
2992
+ },
2943
2993
  checks: []
2944
2994
  });
2995
+ return clone(schema, def);
2945
2996
  }
2946
2997
  function omit(schema, mask) {
2947
- const newShape = { ...schema._zod.def.shape };
2948
2998
  const currDef = schema._zod.def;
2949
- for (const key in mask) {
2950
- if (!(key in currDef.shape)) {
2951
- throw new Error(`Unrecognized key: "${key}"`);
2952
- }
2953
- if (!mask[key])
2954
- continue;
2955
- delete newShape[key];
2956
- }
2957
- return clone(schema, {
2958
- ...schema._zod.def,
2959
- shape: newShape,
2999
+ const def = mergeDefs(schema._zod.def, {
3000
+ get shape() {
3001
+ const newShape = { ...schema._zod.def.shape };
3002
+ for (const key in mask) {
3003
+ if (!(key in currDef.shape)) {
3004
+ throw new Error(`Unrecognized key: "${key}"`);
3005
+ }
3006
+ if (!mask[key])
3007
+ continue;
3008
+ delete newShape[key];
3009
+ }
3010
+ assignProp(this, "shape", newShape);
3011
+ return newShape;
3012
+ },
2960
3013
  checks: []
2961
3014
  });
3015
+ return clone(schema, def);
2962
3016
  }
2963
3017
  function extend(schema, shape) {
2964
3018
  if (!isPlainObject(shape)) {
2965
3019
  throw new Error("Invalid input to extend: expected a plain object");
2966
3020
  }
3021
+ const checks = schema._zod.def.checks;
3022
+ const hasChecks = checks && checks.length > 0;
3023
+ if (hasChecks) {
3024
+ throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
3025
+ }
3026
+ const def = mergeDefs(schema._zod.def, {
3027
+ get shape() {
3028
+ const _shape = { ...schema._zod.def.shape, ...shape };
3029
+ assignProp(this, "shape", _shape);
3030
+ return _shape;
3031
+ },
3032
+ checks: []
3033
+ });
3034
+ return clone(schema, def);
3035
+ }
3036
+ function safeExtend(schema, shape) {
3037
+ if (!isPlainObject(shape)) {
3038
+ throw new Error("Invalid input to safeExtend: expected a plain object");
3039
+ }
2967
3040
  const def = {
2968
3041
  ...schema._zod.def,
2969
3042
  get shape() {
@@ -2971,87 +3044,96 @@ function extend(schema, shape) {
2971
3044
  assignProp(this, "shape", _shape);
2972
3045
  return _shape;
2973
3046
  },
2974
- checks: []
2975
- // delete existing checks
3047
+ checks: schema._zod.def.checks
2976
3048
  };
2977
3049
  return clone(schema, def);
2978
3050
  }
2979
3051
  function merge(a, b) {
2980
- return clone(a, {
2981
- ...a._zod.def,
3052
+ const def = mergeDefs(a._zod.def, {
2982
3053
  get shape() {
2983
3054
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
2984
3055
  assignProp(this, "shape", _shape);
2985
3056
  return _shape;
2986
3057
  },
2987
- catchall: b._zod.def.catchall,
3058
+ get catchall() {
3059
+ return b._zod.def.catchall;
3060
+ },
2988
3061
  checks: []
2989
3062
  // delete existing checks
2990
3063
  });
3064
+ return clone(a, def);
2991
3065
  }
2992
3066
  function partial(Class2, schema, mask) {
2993
- const oldShape = schema._zod.def.shape;
2994
- const shape = { ...oldShape };
2995
- if (mask) {
2996
- for (const key in mask) {
2997
- if (!(key in oldShape)) {
2998
- throw new Error(`Unrecognized key: "${key}"`);
2999
- }
3000
- if (!mask[key])
3001
- continue;
3002
- shape[key] = Class2 ? new Class2({
3003
- type: "optional",
3004
- innerType: oldShape[key]
3005
- }) : oldShape[key];
3006
- }
3007
- } else {
3008
- for (const key in oldShape) {
3009
- shape[key] = Class2 ? new Class2({
3010
- type: "optional",
3011
- innerType: oldShape[key]
3012
- }) : oldShape[key];
3013
- }
3014
- }
3015
- return clone(schema, {
3016
- ...schema._zod.def,
3017
- shape,
3067
+ const def = mergeDefs(schema._zod.def, {
3068
+ get shape() {
3069
+ const oldShape = schema._zod.def.shape;
3070
+ const shape = { ...oldShape };
3071
+ if (mask) {
3072
+ for (const key in mask) {
3073
+ if (!(key in oldShape)) {
3074
+ throw new Error(`Unrecognized key: "${key}"`);
3075
+ }
3076
+ if (!mask[key])
3077
+ continue;
3078
+ shape[key] = Class2 ? new Class2({
3079
+ type: "optional",
3080
+ innerType: oldShape[key]
3081
+ }) : oldShape[key];
3082
+ }
3083
+ } else {
3084
+ for (const key in oldShape) {
3085
+ shape[key] = Class2 ? new Class2({
3086
+ type: "optional",
3087
+ innerType: oldShape[key]
3088
+ }) : oldShape[key];
3089
+ }
3090
+ }
3091
+ assignProp(this, "shape", shape);
3092
+ return shape;
3093
+ },
3018
3094
  checks: []
3019
3095
  });
3096
+ return clone(schema, def);
3020
3097
  }
3021
3098
  function required(Class2, schema, mask) {
3022
- const oldShape = schema._zod.def.shape;
3023
- const shape = { ...oldShape };
3024
- if (mask) {
3025
- for (const key in mask) {
3026
- if (!(key in shape)) {
3027
- throw new Error(`Unrecognized key: "${key}"`);
3028
- }
3029
- if (!mask[key])
3030
- continue;
3031
- shape[key] = new Class2({
3032
- type: "nonoptional",
3033
- innerType: oldShape[key]
3034
- });
3035
- }
3036
- } else {
3037
- for (const key in oldShape) {
3038
- shape[key] = new Class2({
3039
- type: "nonoptional",
3040
- innerType: oldShape[key]
3041
- });
3042
- }
3043
- }
3044
- return clone(schema, {
3045
- ...schema._zod.def,
3046
- shape,
3047
- // optional: [],
3099
+ const def = mergeDefs(schema._zod.def, {
3100
+ get shape() {
3101
+ const oldShape = schema._zod.def.shape;
3102
+ const shape = { ...oldShape };
3103
+ if (mask) {
3104
+ for (const key in mask) {
3105
+ if (!(key in shape)) {
3106
+ throw new Error(`Unrecognized key: "${key}"`);
3107
+ }
3108
+ if (!mask[key])
3109
+ continue;
3110
+ shape[key] = new Class2({
3111
+ type: "nonoptional",
3112
+ innerType: oldShape[key]
3113
+ });
3114
+ }
3115
+ } else {
3116
+ for (const key in oldShape) {
3117
+ shape[key] = new Class2({
3118
+ type: "nonoptional",
3119
+ innerType: oldShape[key]
3120
+ });
3121
+ }
3122
+ }
3123
+ assignProp(this, "shape", shape);
3124
+ return shape;
3125
+ },
3048
3126
  checks: []
3049
3127
  });
3128
+ return clone(schema, def);
3050
3129
  }
3051
3130
  function aborted(x, startIndex = 0) {
3131
+ if (x.aborted === true)
3132
+ return true;
3052
3133
  for (let i = startIndex; i < x.issues.length; i++) {
3053
- if (x.issues[i]?.continue !== true)
3134
+ if (x.issues[i]?.continue !== true) {
3054
3135
  return true;
3136
+ }
3055
3137
  }
3056
3138
  return false;
3057
3139
  }
@@ -3112,12 +3194,49 @@ function cleanEnum(obj) {
3112
3194
  return Number.isNaN(Number.parseInt(k, 10));
3113
3195
  }).map((el) => el[1]);
3114
3196
  }
3197
+ function base64ToUint8Array(base642) {
3198
+ const binaryString = atob(base642);
3199
+ const bytes = new Uint8Array(binaryString.length);
3200
+ for (let i = 0; i < binaryString.length; i++) {
3201
+ bytes[i] = binaryString.charCodeAt(i);
3202
+ }
3203
+ return bytes;
3204
+ }
3205
+ function uint8ArrayToBase64(bytes) {
3206
+ let binaryString = "";
3207
+ for (let i = 0; i < bytes.length; i++) {
3208
+ binaryString += String.fromCharCode(bytes[i]);
3209
+ }
3210
+ return btoa(binaryString);
3211
+ }
3212
+ function base64urlToUint8Array(base64url2) {
3213
+ const base642 = base64url2.replace(/-/g, "+").replace(/_/g, "/");
3214
+ const padding = "=".repeat((4 - base642.length % 4) % 4);
3215
+ return base64ToUint8Array(base642 + padding);
3216
+ }
3217
+ function uint8ArrayToBase64url(bytes) {
3218
+ return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
3219
+ }
3220
+ function hexToUint8Array(hex) {
3221
+ const cleanHex = hex.replace(/^0x/, "");
3222
+ if (cleanHex.length % 2 !== 0) {
3223
+ throw new Error("Invalid hex string length");
3224
+ }
3225
+ const bytes = new Uint8Array(cleanHex.length / 2);
3226
+ for (let i = 0; i < cleanHex.length; i += 2) {
3227
+ bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
3228
+ }
3229
+ return bytes;
3230
+ }
3231
+ function uint8ArrayToHex(bytes) {
3232
+ return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
3233
+ }
3115
3234
  var Class = class {
3116
3235
  constructor(..._args) {
3117
3236
  }
3118
3237
  };
3119
3238
 
3120
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/errors.js
3239
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/errors.js
3121
3240
  var initializer = (inst, def) => {
3122
3241
  inst.name = "$ZodError";
3123
3242
  Object.defineProperty(inst, "_zod", {
@@ -3128,13 +3247,7 @@ var initializer = (inst, def) => {
3128
3247
  value: def,
3129
3248
  enumerable: false
3130
3249
  });
3131
- Object.defineProperty(inst, "message", {
3132
- get() {
3133
- return JSON.stringify(def, jsonStringifyReplacer, 2);
3134
- },
3135
- enumerable: true
3136
- // configurable: false,
3137
- });
3250
+ inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
3138
3251
  Object.defineProperty(inst, "toString", {
3139
3252
  value: () => inst.message,
3140
3253
  enumerable: false
@@ -3143,7 +3256,7 @@ var initializer = (inst, def) => {
3143
3256
  var $ZodError = $constructor("$ZodError", initializer);
3144
3257
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
3145
3258
 
3146
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/parse.js
3259
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/parse.js
3147
3260
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
3148
3261
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
3149
3262
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -3195,24 +3308,24 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
3195
3308
  };
3196
3309
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
3197
3310
 
3198
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/schemas.js
3311
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/schemas.js
3199
3312
  init_esm_shims();
3200
3313
 
3201
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/checks.js
3314
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/checks.js
3202
3315
  init_esm_shims();
3203
3316
 
3204
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/regexes.js
3317
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/regexes.js
3205
3318
  init_esm_shims();
3206
- var hostname = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/;
3319
+ var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
3207
3320
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
3208
3321
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
3209
3322
  var string = (params) => {
3210
3323
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
3211
3324
  return new RegExp(`^${regex}$`);
3212
3325
  };
3213
- var boolean = /true|false/i;
3326
+ var boolean = /^(?:true|false)$/i;
3214
3327
 
3215
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/checks.js
3328
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/checks.js
3216
3329
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
3217
3330
  var _a;
3218
3331
  inst._zod ?? (inst._zod = {});
@@ -3304,52 +3417,18 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3304
3417
  };
3305
3418
  });
3306
3419
 
3307
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/doc.js
3420
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/doc.js
3308
3421
  init_esm_shims();
3309
- var Doc = class {
3310
- constructor(args = []) {
3311
- this.content = [];
3312
- this.indent = 0;
3313
- if (this)
3314
- this.args = args;
3315
- }
3316
- indented(fn) {
3317
- this.indent += 1;
3318
- fn(this);
3319
- this.indent -= 1;
3320
- }
3321
- write(arg) {
3322
- if (typeof arg === "function") {
3323
- arg(this, { execution: "sync" });
3324
- arg(this, { execution: "async" });
3325
- return;
3326
- }
3327
- const content = arg;
3328
- const lines = content.split("\n").filter((x) => x);
3329
- const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
3330
- const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
3331
- for (const line of dedented) {
3332
- this.content.push(line);
3333
- }
3334
- }
3335
- compile() {
3336
- const F = Function;
3337
- const args = this?.args;
3338
- const content = this?.content ?? [``];
3339
- const lines = [...content.map((x) => ` ${x}`)];
3340
- return new F(...args, lines.join("\n"));
3341
- }
3342
- };
3343
3422
 
3344
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/versions.js
3423
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/versions.js
3345
3424
  init_esm_shims();
3346
3425
  var version2 = {
3347
3426
  major: 4,
3348
- minor: 0,
3349
- patch: 5
3427
+ minor: 1,
3428
+ patch: 8
3350
3429
  };
3351
3430
 
3352
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/schemas.js
3431
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/schemas.js
3353
3432
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3354
3433
  var _a;
3355
3434
  inst ?? (inst = {});
@@ -3411,7 +3490,32 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3411
3490
  }
3412
3491
  return payload;
3413
3492
  };
3493
+ const handleCanaryResult = (canary, payload, ctx) => {
3494
+ if (aborted(canary)) {
3495
+ canary.aborted = true;
3496
+ return canary;
3497
+ }
3498
+ const checkResult = runChecks(payload, checks, ctx);
3499
+ if (checkResult instanceof Promise) {
3500
+ if (ctx.async === false)
3501
+ throw new $ZodAsyncError();
3502
+ return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
3503
+ }
3504
+ return inst._zod.parse(checkResult, ctx);
3505
+ };
3414
3506
  inst._zod.run = (payload, ctx) => {
3507
+ if (ctx.skipChecks) {
3508
+ return inst._zod.parse(payload, ctx);
3509
+ }
3510
+ if (ctx.direction === "backward") {
3511
+ const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
3512
+ if (canary instanceof Promise) {
3513
+ return canary.then((canary2) => {
3514
+ return handleCanaryResult(canary2, payload, ctx);
3515
+ });
3516
+ }
3517
+ return handleCanaryResult(canary, payload, ctx);
3518
+ }
3415
3519
  const result = inst._zod.parse(payload, ctx);
3416
3520
  if (result instanceof Promise) {
3417
3521
  if (ctx.async === false)
@@ -3462,9 +3566,8 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3462
3566
  $ZodStringFormat.init(inst, def);
3463
3567
  inst._zod.check = (payload) => {
3464
3568
  try {
3465
- const orig = payload.value;
3466
- const url2 = new URL(orig);
3467
- const href = url2.href;
3569
+ const trimmed = payload.value.trim();
3570
+ const url2 = new URL(trimmed);
3468
3571
  if (def.hostname) {
3469
3572
  def.hostname.lastIndex = 0;
3470
3573
  if (!def.hostname.test(url2.hostname)) {
@@ -3493,10 +3596,10 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
3493
3596
  });
3494
3597
  }
3495
3598
  }
3496
- if (!orig.endsWith("/") && href.endsWith("/")) {
3497
- payload.value = href.slice(0, -1);
3599
+ if (def.normalize) {
3600
+ payload.value = url2.href;
3498
3601
  } else {
3499
- payload.value = href;
3602
+ payload.value = trimmed;
3500
3603
  }
3501
3604
  return;
3502
3605
  } catch (_) {
@@ -3574,48 +3677,70 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
3574
3677
  return payload;
3575
3678
  };
3576
3679
  });
3577
- function handleObjectResult(result, final, key) {
3680
+ function handlePropertyResult(result, final, key, input) {
3578
3681
  if (result.issues.length) {
3579
3682
  final.issues.push(...prefixIssues(key, result.issues));
3580
3683
  }
3581
- final.value[key] = result.value;
3582
- }
3583
- function handleOptionalObjectResult(result, final, key, input) {
3584
- if (result.issues.length) {
3585
- if (input[key] === void 0) {
3586
- if (key in input) {
3587
- final.value[key] = void 0;
3588
- } else {
3589
- final.value[key] = result.value;
3590
- }
3591
- } else {
3592
- final.issues.push(...prefixIssues(key, result.issues));
3593
- }
3594
- } else if (result.value === void 0) {
3595
- if (key in input)
3684
+ if (result.value === void 0) {
3685
+ if (key in input) {
3596
3686
  final.value[key] = void 0;
3687
+ }
3597
3688
  } else {
3598
3689
  final.value[key] = result.value;
3599
3690
  }
3600
3691
  }
3601
- var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3602
- $ZodType.init(inst, def);
3603
- const _normalized = cached(() => {
3604
- const keys = Object.keys(def.shape);
3605
- for (const k of keys) {
3606
- if (!(def.shape[k] instanceof $ZodType)) {
3607
- throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
3608
- }
3692
+ function normalizeDef(def) {
3693
+ const keys = Object.keys(def.shape);
3694
+ for (const k of keys) {
3695
+ if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
3696
+ throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
3609
3697
  }
3610
- const okeys = optionalKeys(def.shape);
3611
- return {
3612
- shape: def.shape,
3613
- keys,
3614
- keySet: new Set(keys),
3615
- numKeys: keys.length,
3616
- optionalKeys: new Set(okeys)
3617
- };
3698
+ }
3699
+ const okeys = optionalKeys(def.shape);
3700
+ return {
3701
+ ...def,
3702
+ keys,
3703
+ keySet: new Set(keys),
3704
+ numKeys: keys.length,
3705
+ optionalKeys: new Set(okeys)
3706
+ };
3707
+ }
3708
+ function handleCatchall(proms, input, payload, ctx, def, inst) {
3709
+ const unrecognized = [];
3710
+ const keySet = def.keySet;
3711
+ const _catchall = def.catchall._zod;
3712
+ const t = _catchall.def.type;
3713
+ for (const key of Object.keys(input)) {
3714
+ if (keySet.has(key))
3715
+ continue;
3716
+ if (t === "never") {
3717
+ unrecognized.push(key);
3718
+ continue;
3719
+ }
3720
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3721
+ if (r instanceof Promise) {
3722
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
3723
+ } else {
3724
+ handlePropertyResult(r, payload, key, input);
3725
+ }
3726
+ }
3727
+ if (unrecognized.length) {
3728
+ payload.issues.push({
3729
+ code: "unrecognized_keys",
3730
+ keys: unrecognized,
3731
+ input,
3732
+ inst
3733
+ });
3734
+ }
3735
+ if (!proms.length)
3736
+ return payload;
3737
+ return Promise.all(proms).then(() => {
3738
+ return payload;
3618
3739
  });
3740
+ }
3741
+ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3742
+ $ZodType.init(inst, def);
3743
+ const _normalized = cached(() => normalizeDef(def));
3619
3744
  defineLazy(inst._zod, "propValues", () => {
3620
3745
  const shape = def.shape;
3621
3746
  const propValues = {};
@@ -3629,66 +3754,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3629
3754
  }
3630
3755
  return propValues;
3631
3756
  });
3632
- const generateFastpass = (shape) => {
3633
- const doc = new Doc(["shape", "payload", "ctx"]);
3634
- const normalized = _normalized.value;
3635
- const parseStr = (key) => {
3636
- const k = esc(key);
3637
- return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
3638
- };
3639
- doc.write(`const input = payload.value;`);
3640
- const ids = /* @__PURE__ */ Object.create(null);
3641
- let counter = 0;
3642
- for (const key of normalized.keys) {
3643
- ids[key] = `key_${counter++}`;
3644
- }
3645
- doc.write(`const newResult = {}`);
3646
- for (const key of normalized.keys) {
3647
- if (normalized.optionalKeys.has(key)) {
3648
- const id = ids[key];
3649
- doc.write(`const ${id} = ${parseStr(key)};`);
3650
- const k = esc(key);
3651
- doc.write(`
3652
- if (${id}.issues.length) {
3653
- if (input[${k}] === undefined) {
3654
- if (${k} in input) {
3655
- newResult[${k}] = undefined;
3656
- }
3657
- } else {
3658
- payload.issues = payload.issues.concat(
3659
- ${id}.issues.map((iss) => ({
3660
- ...iss,
3661
- path: iss.path ? [${k}, ...iss.path] : [${k}],
3662
- }))
3663
- );
3664
- }
3665
- } else if (${id}.value === undefined) {
3666
- if (${k} in input) newResult[${k}] = undefined;
3667
- } else {
3668
- newResult[${k}] = ${id}.value;
3669
- }
3670
- `);
3671
- } else {
3672
- const id = ids[key];
3673
- doc.write(`const ${id} = ${parseStr(key)};`);
3674
- doc.write(`
3675
- if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
3676
- ...iss,
3677
- path: iss.path ? [${esc(key)}, ...iss.path] : [${esc(key)}]
3678
- })));`);
3679
- doc.write(`newResult[${esc(key)}] = ${id}.value`);
3680
- }
3681
- }
3682
- doc.write(`payload.value = newResult;`);
3683
- doc.write(`return payload;`);
3684
- const fn = doc.compile();
3685
- return (payload, ctx) => fn(shape, payload, ctx);
3686
- };
3687
- let fastpass;
3688
3757
  const isObject2 = isObject;
3689
- const jit = !globalConfig.jitless;
3690
- const allowsEval2 = allowsEval;
3691
- const fastEnabled = jit && allowsEval2.value;
3692
3758
  const catchall = def.catchall;
3693
3759
  let value;
3694
3760
  inst._zod.parse = (payload, ctx) => {
@@ -3703,61 +3769,22 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3703
3769
  });
3704
3770
  return payload;
3705
3771
  }
3772
+ payload.value = {};
3706
3773
  const proms = [];
3707
- if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
3708
- if (!fastpass)
3709
- fastpass = generateFastpass(def.shape);
3710
- payload = fastpass(payload, ctx);
3711
- } else {
3712
- payload.value = {};
3713
- const shape = value.shape;
3714
- for (const key of value.keys) {
3715
- const el = shape[key];
3716
- const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3717
- const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
3718
- if (r instanceof Promise) {
3719
- proms.push(r.then((r2) => isOptional ? handleOptionalObjectResult(r2, payload, key, input) : handleObjectResult(r2, payload, key)));
3720
- } else if (isOptional) {
3721
- handleOptionalObjectResult(r, payload, key, input);
3722
- } else {
3723
- handleObjectResult(r, payload, key);
3724
- }
3725
- }
3726
- }
3727
- if (!catchall) {
3728
- return proms.length ? Promise.all(proms).then(() => payload) : payload;
3729
- }
3730
- const unrecognized = [];
3731
- const keySet = value.keySet;
3732
- const _catchall = catchall._zod;
3733
- const t = _catchall.def.type;
3734
- for (const key of Object.keys(input)) {
3735
- if (keySet.has(key))
3736
- continue;
3737
- if (t === "never") {
3738
- unrecognized.push(key);
3739
- continue;
3740
- }
3741
- const r = _catchall.run({ value: input[key], issues: [] }, ctx);
3774
+ const shape = value.shape;
3775
+ for (const key of value.keys) {
3776
+ const el = shape[key];
3777
+ const r = el._zod.run({ value: input[key], issues: [] }, ctx);
3742
3778
  if (r instanceof Promise) {
3743
- proms.push(r.then((r2) => handleObjectResult(r2, payload, key)));
3779
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
3744
3780
  } else {
3745
- handleObjectResult(r, payload, key);
3781
+ handlePropertyResult(r, payload, key, input);
3746
3782
  }
3747
3783
  }
3748
- if (unrecognized.length) {
3749
- payload.issues.push({
3750
- code: "unrecognized_keys",
3751
- keys: unrecognized,
3752
- input,
3753
- inst
3754
- });
3784
+ if (!catchall) {
3785
+ return proms.length ? Promise.all(proms).then(() => payload) : payload;
3755
3786
  }
3756
- if (!proms.length)
3757
- return payload;
3758
- return Promise.all(proms).then(() => {
3759
- return payload;
3760
- });
3787
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
3761
3788
  };
3762
3789
  });
3763
3790
  function handleUnionResults(results, final, inst, ctx) {
@@ -3767,6 +3794,11 @@ function handleUnionResults(results, final, inst, ctx) {
3767
3794
  return final;
3768
3795
  }
3769
3796
  }
3797
+ const nonaborted = results.filter((r) => !aborted(r));
3798
+ if (nonaborted.length === 1) {
3799
+ final.value = nonaborted[0].value;
3800
+ return nonaborted[0];
3801
+ }
3770
3802
  final.issues.push({
3771
3803
  code: "invalid_union",
3772
3804
  input: final.value,
@@ -3792,7 +3824,12 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
3792
3824
  }
3793
3825
  return void 0;
3794
3826
  });
3827
+ const single = def.options.length === 1;
3828
+ const first = def.options[0]._zod.run;
3795
3829
  inst._zod.parse = (payload, ctx) => {
3830
+ if (single) {
3831
+ return first(payload, ctx);
3832
+ }
3796
3833
  let async = false;
3797
3834
  const results = [];
3798
3835
  for (const option of def.options) {
@@ -3877,8 +3914,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3877
3914
  }
3878
3915
  if (keyResult.issues.length) {
3879
3916
  payload.issues.push({
3880
- origin: "record",
3881
3917
  code: "invalid_key",
3918
+ origin: "record",
3882
3919
  issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
3883
3920
  input: key,
3884
3921
  path: [key],
@@ -3912,11 +3949,12 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3912
3949
  var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
3913
3950
  $ZodType.init(inst, def);
3914
3951
  const values = getEnumValues(def.entries);
3915
- inst._zod.values = new Set(values);
3952
+ const valuesSet = new Set(values);
3953
+ inst._zod.values = valuesSet;
3916
3954
  inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
3917
3955
  inst._zod.parse = (payload, _ctx) => {
3918
3956
  const input = payload.value;
3919
- if (inst._zod.values.has(input)) {
3957
+ if (valuesSet.has(input)) {
3920
3958
  return payload;
3921
3959
  }
3922
3960
  payload.issues.push({
@@ -3930,8 +3968,11 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
3930
3968
  });
3931
3969
  var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
3932
3970
  $ZodType.init(inst, def);
3971
+ if (def.values.length === 0) {
3972
+ throw new Error("Cannot create literal schema with no valid values");
3973
+ }
3933
3974
  inst._zod.values = new Set(def.values);
3934
- inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? o.toString() : String(o)).join("|")})$`);
3975
+ inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
3935
3976
  inst._zod.parse = (payload, _ctx) => {
3936
3977
  const input = payload.value;
3937
3978
  if (inst._zod.values.has(input)) {
@@ -3946,6 +3987,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
3946
3987
  return payload;
3947
3988
  };
3948
3989
  });
3990
+ function handleOptionalResult(result, input) {
3991
+ if (result.issues.length && input === void 0) {
3992
+ return { issues: [], value: void 0 };
3993
+ }
3994
+ return result;
3995
+ }
3949
3996
  var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
3950
3997
  $ZodType.init(inst, def);
3951
3998
  inst._zod.optin = "optional";
@@ -3959,7 +4006,10 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
3959
4006
  });
3960
4007
  inst._zod.parse = (payload, ctx) => {
3961
4008
  if (def.innerType._zod.optin === "optional") {
3962
- return def.innerType._zod.run(payload, ctx);
4009
+ const result = def.innerType._zod.run(payload, ctx);
4010
+ if (result instanceof Promise)
4011
+ return result.then((r) => handleOptionalResult(r, payload.value));
4012
+ return handleOptionalResult(result, payload.value);
3963
4013
  }
3964
4014
  if (payload.value === void 0) {
3965
4015
  return payload;
@@ -3989,6 +4039,9 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
3989
4039
  inst._zod.optin = "optional";
3990
4040
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
3991
4041
  inst._zod.parse = (payload, ctx) => {
4042
+ if (ctx.direction === "backward") {
4043
+ return def.innerType._zod.run(payload, ctx);
4044
+ }
3992
4045
  if (payload.value === void 0) {
3993
4046
  payload.value = def.defaultValue;
3994
4047
  return payload;
@@ -4007,13 +4060,154 @@ function handleDefaultResult(payload, def) {
4007
4060
  return payload;
4008
4061
  }
4009
4062
 
4010
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/registries.js
4063
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/index.js
4064
+ init_esm_shims();
4065
+
4066
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ar.js
4067
+ init_esm_shims();
4068
+
4069
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/az.js
4070
+ init_esm_shims();
4071
+
4072
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/be.js
4073
+ init_esm_shims();
4074
+
4075
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ca.js
4076
+ init_esm_shims();
4077
+
4078
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/cs.js
4079
+ init_esm_shims();
4080
+
4081
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/da.js
4082
+ init_esm_shims();
4083
+
4084
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/de.js
4085
+ init_esm_shims();
4086
+
4087
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/en.js
4088
+ init_esm_shims();
4089
+
4090
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/eo.js
4091
+ init_esm_shims();
4092
+
4093
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/es.js
4094
+ init_esm_shims();
4095
+
4096
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fa.js
4097
+ init_esm_shims();
4098
+
4099
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fi.js
4100
+ init_esm_shims();
4101
+
4102
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fr.js
4103
+ init_esm_shims();
4104
+
4105
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/fr-CA.js
4106
+ init_esm_shims();
4107
+
4108
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/he.js
4109
+ init_esm_shims();
4110
+
4111
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/hu.js
4112
+ init_esm_shims();
4113
+
4114
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/id.js
4115
+ init_esm_shims();
4116
+
4117
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/is.js
4118
+ init_esm_shims();
4119
+
4120
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/it.js
4121
+ init_esm_shims();
4122
+
4123
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ja.js
4124
+ init_esm_shims();
4125
+
4126
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ka.js
4127
+ init_esm_shims();
4128
+
4129
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/kh.js
4130
+ init_esm_shims();
4131
+
4132
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/km.js
4133
+ init_esm_shims();
4134
+
4135
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ko.js
4136
+ init_esm_shims();
4137
+
4138
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/lt.js
4139
+ init_esm_shims();
4140
+
4141
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/mk.js
4142
+ init_esm_shims();
4143
+
4144
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ms.js
4145
+ init_esm_shims();
4146
+
4147
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/nl.js
4148
+ init_esm_shims();
4149
+
4150
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/no.js
4151
+ init_esm_shims();
4152
+
4153
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ota.js
4154
+ init_esm_shims();
4155
+
4156
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ps.js
4157
+ init_esm_shims();
4158
+
4159
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/pl.js
4160
+ init_esm_shims();
4161
+
4162
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/pt.js
4163
+ init_esm_shims();
4164
+
4165
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ru.js
4166
+ init_esm_shims();
4167
+
4168
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/sl.js
4169
+ init_esm_shims();
4170
+
4171
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/sv.js
4172
+ init_esm_shims();
4173
+
4174
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ta.js
4175
+ init_esm_shims();
4176
+
4177
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/th.js
4178
+ init_esm_shims();
4179
+
4180
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/tr.js
4181
+ init_esm_shims();
4182
+
4183
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ua.js
4184
+ init_esm_shims();
4185
+
4186
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/uk.js
4187
+ init_esm_shims();
4188
+
4189
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/ur.js
4190
+ init_esm_shims();
4191
+
4192
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/vi.js
4193
+ init_esm_shims();
4194
+
4195
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/zh-CN.js
4196
+ init_esm_shims();
4197
+
4198
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/zh-TW.js
4199
+ init_esm_shims();
4200
+
4201
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/locales/yo.js
4202
+ init_esm_shims();
4203
+
4204
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/registries.js
4011
4205
  init_esm_shims();
4012
4206
  var $output = Symbol("ZodOutput");
4013
4207
  var $input = Symbol("ZodInput");
4014
4208
  var $ZodRegistry = class {
4015
4209
  constructor() {
4016
- this._map = /* @__PURE__ */ new Map();
4210
+ this._map = /* @__PURE__ */ new WeakMap();
4017
4211
  this._idmap = /* @__PURE__ */ new Map();
4018
4212
  }
4019
4213
  add(schema, ..._meta) {
@@ -4028,7 +4222,7 @@ var $ZodRegistry = class {
4028
4222
  return this;
4029
4223
  }
4030
4224
  clear() {
4031
- this._map = /* @__PURE__ */ new Map();
4225
+ this._map = /* @__PURE__ */ new WeakMap();
4032
4226
  this._idmap = /* @__PURE__ */ new Map();
4033
4227
  return this;
4034
4228
  }
@@ -4045,7 +4239,8 @@ var $ZodRegistry = class {
4045
4239
  if (p) {
4046
4240
  const pm = { ...this.get(p) ?? {} };
4047
4241
  delete pm.id;
4048
- return { ...pm, ...this._map.get(schema) };
4242
+ const f = { ...pm, ...this._map.get(schema) };
4243
+ return Object.keys(f).length ? f : void 0;
4049
4244
  }
4050
4245
  return this._map.get(schema);
4051
4246
  }
@@ -4057,7 +4252,7 @@ function registry() {
4057
4252
  return new $ZodRegistry();
4058
4253
  }
4059
4254
 
4060
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/core/api.js
4255
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/api.js
4061
4256
  init_esm_shims();
4062
4257
  function _string(Class2, params) {
4063
4258
  return new Class2({
@@ -4113,16 +4308,23 @@ function _toLowerCase() {
4113
4308
  return _overwrite((input) => input.toLowerCase());
4114
4309
  }
4115
4310
 
4116
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/parse.js
4311
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/to-json-schema.js
4312
+ init_esm_shims();
4313
+
4314
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/core/json-schema.js
4315
+ init_esm_shims();
4316
+
4317
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/parse.js
4117
4318
  init_esm_shims();
4118
4319
 
4119
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/schemas.js
4320
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/schemas.js
4120
4321
  init_esm_shims();
4121
4322
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
4122
4323
  if (!inst._zod)
4123
4324
  throw new Error("Uninitialized schema in ZodMiniType.");
4124
4325
  $ZodType.init(inst, def);
4125
4326
  inst.def = def;
4327
+ inst.type = def.type;
4126
4328
  inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
4127
4329
  inst.safeParse = (data, params) => safeParse(inst, data, params);
4128
4330
  inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
@@ -4231,6 +4433,7 @@ function record(keyType, valueType, params) {
4231
4433
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
4232
4434
  $ZodEnum.init(inst, def);
4233
4435
  ZodMiniType.init(inst, def);
4436
+ inst.options = Object.values(def.entries);
4234
4437
  });
4235
4438
  function _enum(values, params) {
4236
4439
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
@@ -4280,12 +4483,18 @@ function _default(innerType, defaultValue) {
4280
4483
  type: "default",
4281
4484
  innerType,
4282
4485
  get defaultValue() {
4283
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
4486
+ return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
4284
4487
  }
4285
4488
  });
4286
4489
  }
4287
4490
 
4288
- // ../../node_modules/.pnpm/zod@4.0.5/node_modules/zod/v4/mini/checks.js
4491
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/checks.js
4492
+ init_esm_shims();
4493
+
4494
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/iso.js
4495
+ init_esm_shims();
4496
+
4497
+ // ../../node_modules/.pnpm/zod@4.1.8/node_modules/zod/v4/mini/coerce.js
4289
4498
  init_esm_shims();
4290
4499
 
4291
4500
  // ../config/src/schema.ts