@tonyclaw/agent-inspector 3.0.18 → 3.0.20

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 (110) hide show
  1. package/.output/cli.js +1257 -506
  2. package/.output/nitro.json +3 -3
  3. package/.output/public/assets/CompareDrawer-CV7rBBty.js +1 -0
  4. package/.output/public/assets/ProxyViewerContainer-CqRfBWJ3.js +127 -0
  5. package/.output/public/assets/ReplayDialog-yDeF-z9y.js +1 -0
  6. package/.output/public/assets/RequestAnatomy-BXxKNdgk.js +1 -0
  7. package/.output/public/assets/ResponseView-BIYNgUNB.js +3 -0
  8. package/.output/public/assets/StreamingChunkSequence-C1faiChu.js +1 -0
  9. package/.output/public/assets/_sessionId-B34PrfCQ.js +1 -0
  10. package/.output/public/assets/index-B3YOj8-_.css +1 -0
  11. package/.output/public/assets/index-BLwqIxup.js +12 -0
  12. package/.output/public/assets/{index-ClQ7Vi3J.js → index-DOspyaW6.js} +1 -1
  13. package/.output/public/assets/index-DT476lno.js +1 -0
  14. package/.output/public/assets/json-viewer-C1S08J_2.js +1 -0
  15. package/.output/server/_chunks/ssr-renderer.mjs +18 -2
  16. package/.output/server/_libs/@radix-ui/react-dismissable-layer+[...].mjs +165 -31
  17. package/.output/server/_libs/@radix-ui/react-use-callback-ref+[...].mjs +1 -1
  18. package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +2 -2
  19. package/.output/server/_libs/@radix-ui/react-use-is-hydrated+[...].mjs +28 -1
  20. package/.output/server/_libs/mistralai__mistralai.mjs +1 -1
  21. package/.output/server/_libs/modelcontextprotocol__server.mjs +11571 -8127
  22. package/.output/server/_libs/radix-ui__primitive.mjs +1 -1
  23. package/.output/server/_libs/radix-ui__react-collapsible.mjs +1 -1
  24. package/.output/server/_libs/radix-ui__react-collection.mjs +8 -8
  25. package/.output/server/_libs/radix-ui__react-compose-refs.mjs +0 -1
  26. package/.output/server/_libs/radix-ui__react-context.mjs +4 -18
  27. package/.output/server/_libs/radix-ui__react-dialog.mjs +41 -88
  28. package/.output/server/_libs/radix-ui__react-focus-guards.mjs +15 -5
  29. package/.output/server/_libs/radix-ui__react-focus-scope.mjs +6 -2
  30. package/.output/server/_libs/radix-ui__react-id.mjs +3 -3
  31. package/.output/server/_libs/radix-ui__react-popper.mjs +62 -8
  32. package/.output/server/_libs/radix-ui__react-portal.mjs +2 -2
  33. package/.output/server/_libs/radix-ui__react-presence.mjs +50 -5
  34. package/.output/server/_libs/radix-ui__react-roving-focus.mjs +15 -4
  35. package/.output/server/_libs/radix-ui__react-scroll-area.mjs +30 -20
  36. package/.output/server/_libs/radix-ui__react-select.mjs +167 -123
  37. package/.output/server/_libs/radix-ui__react-slot.mjs +74 -41
  38. package/.output/server/_libs/radix-ui__react-tabs.mjs +6 -1
  39. package/.output/server/_libs/radix-ui__react-tooltip.mjs +6 -3
  40. package/.output/server/_libs/react-dom.mjs +13 -15
  41. package/.output/server/_libs/react.mjs +45 -45
  42. package/.output/server/_libs/srvx.mjs +409 -53
  43. package/.output/server/_libs/swr.mjs +10 -2
  44. package/.output/server/_libs/tailwind-merge.mjs +286 -41
  45. package/.output/server/_libs/tanstack__history.mjs +9 -13
  46. package/.output/server/_libs/tanstack__react-router.mjs +788 -1092
  47. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  48. package/.output/server/_libs/tanstack__react-virtual.mjs +82 -7
  49. package/.output/server/_libs/tanstack__router-core.mjs +1841 -2060
  50. package/.output/server/_libs/tanstack__virtual-core.mjs +116 -45
  51. package/.output/server/_libs/use-sync-external-store.mjs +1 -1
  52. package/.output/server/_libs/zod-to-json-schema.mjs +1 -1
  53. package/.output/server/_libs/zod.mjs +5085 -200
  54. package/.output/server/{_sessionId-Bi3ZIrqT.mjs → _sessionId-CmoBbtKT.mjs} +30 -32
  55. package/.output/server/_ssr/{CompareDrawer-BYZS_hCR.mjs → CompareDrawer-BsXnVK4e.mjs} +29 -31
  56. package/.output/server/_ssr/{ProxyViewerContainer-BE4umfVs.mjs → ProxyViewerContainer-D-_7pyfx.mjs} +54 -52
  57. package/.output/server/_ssr/{ReplayDialog-BlID2ZH4.mjs → ReplayDialog-deDQA2M5.mjs} +30 -32
  58. package/.output/server/_ssr/{RequestAnatomy-CGJ2lkzT.mjs → RequestAnatomy-CX-cCRdX.mjs} +29 -31
  59. package/.output/server/_ssr/{ResponseView-DDjcGf7M.mjs → ResponseView-D0LJR1qj.mjs} +29 -31
  60. package/.output/server/_ssr/{StreamingChunkSequence-G7B8M5G2.mjs → StreamingChunkSequence-CJRECetE.mjs} +29 -31
  61. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +6 -0
  62. package/.output/server/_ssr/{index-ClQ9FvRJ.mjs → index-CYWOXS4d.mjs} +31 -33
  63. package/.output/server/_ssr/index.mjs +1102 -784
  64. package/.output/server/_ssr/{json-viewer-CFbpkiBJ.mjs → json-viewer-CCneYiCn.mjs} +29 -31
  65. package/.output/server/_ssr/{router-Cq8LEvhE.mjs → router-D-PAN8IK.mjs} +182 -67
  66. package/.output/server/_tanstack-start-manifest_v-CVZ9yh4R.mjs +4 -0
  67. package/.output/server/index.mjs +74 -92
  68. package/README.md +4 -4
  69. package/package.json +17 -8
  70. package/src/cli/onboard.ts +1 -1
  71. package/src/cli.ts +2 -2
  72. package/src/components/clients/ClientLogo.tsx +5 -1
  73. package/src/components/proxy-viewer/RequestToolsPanel.tsx +1 -0
  74. package/src/components/proxy-viewer/ResponseView.tsx +1 -0
  75. package/src/components/proxy-viewer/StreamingChunkSequence.tsx +1 -0
  76. package/src/components/proxy-viewer/TurnGroup.tsx +1 -0
  77. package/src/components/proxy-viewer/anatomy/SegmentBar.tsx +1 -0
  78. package/src/components/proxy-viewer/formats/anthropic/ContentBlocks.tsx +4 -0
  79. package/src/components/proxy-viewer/formats/anthropic/ResponseView.tsx +1 -0
  80. package/src/components/proxy-viewer/formats/openai/ResponseView.tsx +2 -0
  81. package/src/components/ui/dialog.tsx +1 -1
  82. package/src/components/ui/json-viewer.tsx +2 -0
  83. package/src/components/ui/select.tsx +1 -1
  84. package/src/contracts/json.ts +7 -2
  85. package/src/lib/providerContract.ts +25 -5
  86. package/src/mcp/server.ts +12 -3
  87. package/src/mcp/toolHandlers.ts +6 -1
  88. package/src/proxy/handler.ts +17 -7
  89. package/src/proxy/logFinalizer.ts +76 -8
  90. package/src/proxy/logIndex.ts +16 -32
  91. package/src/proxy/providers.ts +22 -1
  92. package/src/proxy/sessionProcess.ts +15 -1
  93. package/src/proxy/upstream.ts +4 -2
  94. package/src/router.tsx +9 -0
  95. package/.output/public/assets/CompareDrawer-Daj03-RL.js +0 -1
  96. package/.output/public/assets/ProxyViewerContainer-BLCRQtU_.js +0 -106
  97. package/.output/public/assets/ReplayDialog-5FR5crdo.js +0 -1
  98. package/.output/public/assets/RequestAnatomy-DF0hHdQY.js +0 -1
  99. package/.output/public/assets/ResponseView-BwkMSsUa.js +0 -3
  100. package/.output/public/assets/StreamingChunkSequence-CKeUd58x.js +0 -1
  101. package/.output/public/assets/_sessionId-CThgXa41.js +0 -1
  102. package/.output/public/assets/index-BHXN1Fsx.css +0 -1
  103. package/.output/public/assets/index-gm3A0idN.js +0 -1
  104. package/.output/public/assets/json-viewer-BA-W-PZq.js +0 -1
  105. package/.output/public/assets/main-BnRC1932.js +0 -18
  106. package/.output/server/_libs/@radix-ui/react-use-escape-keydown+[...].mjs +0 -17
  107. package/.output/server/_libs/cfworker__json-schema.mjs +0 -1
  108. package/.output/server/_libs/tiny-invariant.mjs +0 -12
  109. package/.output/server/_libs/tiny-warning.mjs +0 -5
  110. package/.output/server/_tanstack-start-manifest_v-p7J0QCMh.mjs +0 -4
package/.output/cli.js CHANGED
@@ -1,8 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __esm = (fn, res) => function __init() {
5
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
4
+ var __esm = (fn, res, err) => function __init() {
5
+ if (err) throw err[0];
6
+ try {
7
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ } catch (e) {
9
+ throw err = [e], e;
10
+ }
6
11
  };
7
12
  var __export = (target, all) => {
8
13
  for (var name in all)
@@ -2336,7 +2341,7 @@ var init_onboard = __esm({
2336
2341
  __dirname = dirname(__filename);
2337
2342
  DEFAULT_PORT = 9527;
2338
2343
  DEFAULT_MCP_URL = `http://localhost:${DEFAULT_PORT}/api/mcp`;
2339
- LEGACY_MCP_URL = "http://localhost:25947/api/mcp";
2344
+ LEGACY_MCP_URL = "http://localhost:9527/api/mcp";
2340
2345
  SKILL_DIR_NAME = "agent-inspector-onboard";
2341
2346
  SKILL_FILE_NAME = "SKILL.md";
2342
2347
  COMMAND_FILE_NAME = process.platform === "win32" ? "agent-inspector-onboard.md" : "agent-inspector:onboard.md";
@@ -3039,7 +3044,7 @@ import { execFile } from "node:child_process";
3039
3044
  import { readFile } from "node:fs/promises";
3040
3045
  import { promisify } from "node:util";
3041
3046
 
3042
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
3047
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
3043
3048
  var external_exports = {};
3044
3049
  __export(external_exports, {
3045
3050
  $brand: () => $brand,
@@ -3101,6 +3106,7 @@ __export(external_exports, {
3101
3106
  ZodOptional: () => ZodOptional,
3102
3107
  ZodPipe: () => ZodPipe,
3103
3108
  ZodPrefault: () => ZodPrefault,
3109
+ ZodPreprocess: () => ZodPreprocess,
3104
3110
  ZodPromise: () => ZodPromise,
3105
3111
  ZodReadonly: () => ZodReadonly,
3106
3112
  ZodRealError: () => ZodRealError,
@@ -3179,6 +3185,7 @@ __export(external_exports, {
3179
3185
  int32: () => int32,
3180
3186
  int64: () => int64,
3181
3187
  intersection: () => intersection,
3188
+ invertCodec: () => invertCodec,
3182
3189
  ipv4: () => ipv42,
3183
3190
  ipv6: () => ipv62,
3184
3191
  iso: () => iso_exports,
@@ -3280,7 +3287,7 @@ __export(external_exports, {
3280
3287
  xor: () => xor
3281
3288
  });
3282
3289
 
3283
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
3290
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/index.js
3284
3291
  var core_exports2 = {};
3285
3292
  __export(core_exports2, {
3286
3293
  $ZodAny: () => $ZodAny,
@@ -3360,6 +3367,7 @@ __export(core_exports2, {
3360
3367
  $ZodOptional: () => $ZodOptional,
3361
3368
  $ZodPipe: () => $ZodPipe,
3362
3369
  $ZodPrefault: () => $ZodPrefault,
3370
+ $ZodPreprocess: () => $ZodPreprocess,
3363
3371
  $ZodPromise: () => $ZodPromise,
3364
3372
  $ZodReadonly: () => $ZodReadonly,
3365
3373
  $ZodRealError: () => $ZodRealError,
@@ -3558,8 +3566,9 @@ __export(core_exports2, {
3558
3566
  version: () => version
3559
3567
  });
3560
3568
 
3561
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
3562
- var NEVER = Object.freeze({
3569
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
3570
+ var _a;
3571
+ var NEVER = /* @__PURE__ */ Object.freeze({
3563
3572
  status: "aborted"
3564
3573
  });
3565
3574
  // @__NO_SIDE_EFFECTS__
@@ -3594,10 +3603,10 @@ function $constructor(name, initializer3, params) {
3594
3603
  }
3595
3604
  Object.defineProperty(Definition, "name", { value: name });
3596
3605
  function _(def) {
3597
- var _a2;
3606
+ var _a3;
3598
3607
  const inst = params?.Parent ? new Definition() : this;
3599
3608
  init(inst, def);
3600
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
3609
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
3601
3610
  for (const fn of inst._zod.deferred) {
3602
3611
  fn();
3603
3612
  }
@@ -3614,7 +3623,7 @@ function $constructor(name, initializer3, params) {
3614
3623
  Object.defineProperty(_, "name", { value: name });
3615
3624
  return _;
3616
3625
  }
3617
- var $brand = Symbol("zod_brand");
3626
+ var $brand = /* @__PURE__ */ Symbol("zod_brand");
3618
3627
  var $ZodAsyncError = class extends Error {
3619
3628
  constructor() {
3620
3629
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -3626,14 +3635,15 @@ var $ZodEncodeError = class extends Error {
3626
3635
  this.name = "ZodEncodeError";
3627
3636
  }
3628
3637
  };
3629
- var globalConfig = {};
3638
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
3639
+ var globalConfig = globalThis.__zod_globalConfig;
3630
3640
  function config(newConfig) {
3631
3641
  if (newConfig)
3632
3642
  Object.assign(globalConfig, newConfig);
3633
3643
  return globalConfig;
3634
3644
  }
3635
3645
 
3636
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
3646
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
3637
3647
  var util_exports = {};
3638
3648
  __export(util_exports, {
3639
3649
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -3659,6 +3669,7 @@ __export(util_exports, {
3659
3669
  defineLazy: () => defineLazy,
3660
3670
  esc: () => esc,
3661
3671
  escapeRegex: () => escapeRegex,
3672
+ explicitlyAborted: () => explicitlyAborted,
3662
3673
  extend: () => extend,
3663
3674
  finalizeIssue: () => finalizeIssue,
3664
3675
  floatSafeRemainder: () => floatSafeRemainder,
@@ -3747,21 +3758,14 @@ function cleanRegex(source) {
3747
3758
  return source.slice(start, end);
3748
3759
  }
3749
3760
  function floatSafeRemainder(val, step) {
3750
- const valDecCount = (val.toString().split(".")[1] || "").length;
3751
- const stepString = step.toString();
3752
- let stepDecCount = (stepString.split(".")[1] || "").length;
3753
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
3754
- const match = stepString.match(/\d?e-(\d?)/);
3755
- if (match?.[1]) {
3756
- stepDecCount = Number.parseInt(match[1]);
3757
- }
3758
- }
3759
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
3760
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
3761
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
3762
- return valInt % stepInt / 10 ** decCount;
3761
+ const ratio = val / step;
3762
+ const roundedRatio = Math.round(ratio);
3763
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
3764
+ if (Math.abs(ratio - roundedRatio) < tolerance)
3765
+ return 0;
3766
+ return ratio - roundedRatio;
3763
3767
  }
3764
- var EVALUATING = Symbol("evaluating");
3768
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
3765
3769
  function defineLazy(object2, key, getter) {
3766
3770
  let value = void 0;
3767
3771
  Object.defineProperty(object2, key, {
@@ -3841,7 +3845,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
3841
3845
  function isObject(data) {
3842
3846
  return typeof data === "object" && data !== null && !Array.isArray(data);
3843
3847
  }
3844
- var allowsEval = cached(() => {
3848
+ var allowsEval = /* @__PURE__ */ cached(() => {
3849
+ if (globalConfig.jitless) {
3850
+ return false;
3851
+ }
3845
3852
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
3846
3853
  return false;
3847
3854
  }
@@ -3874,6 +3881,10 @@ function shallowClone(o) {
3874
3881
  return { ...o };
3875
3882
  if (Array.isArray(o))
3876
3883
  return [...o];
3884
+ if (o instanceof Map)
3885
+ return new Map(o);
3886
+ if (o instanceof Set)
3887
+ return new Set(o);
3877
3888
  return o;
3878
3889
  }
3879
3890
  function numKeys(data) {
@@ -3930,7 +3941,14 @@ var getParsedType = (data) => {
3930
3941
  }
3931
3942
  };
3932
3943
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
3933
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
3944
+ var primitiveTypes = /* @__PURE__ */ new Set([
3945
+ "string",
3946
+ "number",
3947
+ "bigint",
3948
+ "boolean",
3949
+ "symbol",
3950
+ "undefined"
3951
+ ]);
3934
3952
  function escapeRegex(str) {
3935
3953
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
3936
3954
  }
@@ -4099,6 +4117,9 @@ function safeExtend(schema, shape) {
4099
4117
  return clone(schema, def);
4100
4118
  }
4101
4119
  function merge(a, b) {
4120
+ if (a._zod.def.checks?.length) {
4121
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
4122
+ }
4102
4123
  const def = mergeDefs(a._zod.def, {
4103
4124
  get shape() {
4104
4125
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -4108,8 +4129,7 @@ function merge(a, b) {
4108
4129
  get catchall() {
4109
4130
  return b._zod.def.catchall;
4110
4131
  },
4111
- checks: []
4112
- // delete existing checks
4132
+ checks: b._zod.def.checks ?? []
4113
4133
  });
4114
4134
  return clone(a, def);
4115
4135
  }
@@ -4192,10 +4212,20 @@ function aborted(x, startIndex = 0) {
4192
4212
  }
4193
4213
  return false;
4194
4214
  }
4215
+ function explicitlyAborted(x, startIndex = 0) {
4216
+ if (x.aborted === true)
4217
+ return true;
4218
+ for (let i = startIndex; i < x.issues.length; i++) {
4219
+ if (x.issues[i]?.continue === false) {
4220
+ return true;
4221
+ }
4222
+ }
4223
+ return false;
4224
+ }
4195
4225
  function prefixIssues(path2, issues) {
4196
4226
  return issues.map((iss) => {
4197
- var _a2;
4198
- (_a2 = iss).path ?? (_a2.path = []);
4227
+ var _a3;
4228
+ (_a3 = iss).path ?? (_a3.path = []);
4199
4229
  iss.path.unshift(path2);
4200
4230
  return iss;
4201
4231
  });
@@ -4204,17 +4234,14 @@ function unwrapMessage(message) {
4204
4234
  return typeof message === "string" ? message : message?.message;
4205
4235
  }
4206
4236
  function finalizeIssue(iss, ctx, config2) {
4207
- const full = { ...iss, path: iss.path ?? [] };
4208
- if (!iss.message) {
4209
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
4210
- full.message = message;
4211
- }
4212
- delete full.inst;
4213
- delete full.continue;
4214
- if (!ctx?.reportInput) {
4215
- delete full.input;
4237
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
4238
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
4239
+ rest.path ?? (rest.path = []);
4240
+ rest.message = message;
4241
+ if (ctx?.reportInput) {
4242
+ rest.input = _input;
4216
4243
  }
4217
- return full;
4244
+ return rest;
4218
4245
  }
4219
4246
  function getSizableOrigin(input) {
4220
4247
  if (input instanceof Set)
@@ -4312,7 +4339,7 @@ var Class = class {
4312
4339
  }
4313
4340
  };
4314
4341
 
4315
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
4342
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
4316
4343
  var initializer = (inst, def) => {
4317
4344
  inst.name = "$ZodError";
4318
4345
  Object.defineProperty(inst, "_zod", {
@@ -4331,10 +4358,10 @@ var initializer = (inst, def) => {
4331
4358
  };
4332
4359
  var $ZodError = $constructor("$ZodError", initializer);
4333
4360
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
4334
- function flattenError(error48, mapper = (issue2) => issue2.message) {
4361
+ function flattenError(error51, mapper = (issue2) => issue2.message) {
4335
4362
  const fieldErrors = {};
4336
4363
  const formErrors = [];
4337
- for (const sub of error48.issues) {
4364
+ for (const sub of error51.issues) {
4338
4365
  if (sub.path.length > 0) {
4339
4366
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
4340
4367
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -4344,50 +4371,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
4344
4371
  }
4345
4372
  return { formErrors, fieldErrors };
4346
4373
  }
4347
- function formatError(error48, mapper = (issue2) => issue2.message) {
4374
+ function formatError(error51, mapper = (issue2) => issue2.message) {
4348
4375
  const fieldErrors = { _errors: [] };
4349
- const processError = (error49) => {
4350
- for (const issue2 of error49.issues) {
4376
+ const processError = (error52, path2 = []) => {
4377
+ for (const issue2 of error52.issues) {
4351
4378
  if (issue2.code === "invalid_union" && issue2.errors.length) {
4352
- issue2.errors.map((issues) => processError({ issues }));
4379
+ issue2.errors.map((issues) => processError({ issues }, [...path2, ...issue2.path]));
4353
4380
  } else if (issue2.code === "invalid_key") {
4354
- processError({ issues: issue2.issues });
4381
+ processError({ issues: issue2.issues }, [...path2, ...issue2.path]);
4355
4382
  } else if (issue2.code === "invalid_element") {
4356
- processError({ issues: issue2.issues });
4357
- } else if (issue2.path.length === 0) {
4358
- fieldErrors._errors.push(mapper(issue2));
4383
+ processError({ issues: issue2.issues }, [...path2, ...issue2.path]);
4359
4384
  } else {
4360
- let curr = fieldErrors;
4361
- let i = 0;
4362
- while (i < issue2.path.length) {
4363
- const el = issue2.path[i];
4364
- const terminal = i === issue2.path.length - 1;
4365
- if (!terminal) {
4366
- curr[el] = curr[el] || { _errors: [] };
4367
- } else {
4368
- curr[el] = curr[el] || { _errors: [] };
4369
- curr[el]._errors.push(mapper(issue2));
4385
+ const fullpath = [...path2, ...issue2.path];
4386
+ if (fullpath.length === 0) {
4387
+ fieldErrors._errors.push(mapper(issue2));
4388
+ } else {
4389
+ let curr = fieldErrors;
4390
+ let i = 0;
4391
+ while (i < fullpath.length) {
4392
+ const el = fullpath[i];
4393
+ const terminal = i === fullpath.length - 1;
4394
+ if (!terminal) {
4395
+ curr[el] = curr[el] || { _errors: [] };
4396
+ } else {
4397
+ curr[el] = curr[el] || { _errors: [] };
4398
+ curr[el]._errors.push(mapper(issue2));
4399
+ }
4400
+ curr = curr[el];
4401
+ i++;
4370
4402
  }
4371
- curr = curr[el];
4372
- i++;
4373
4403
  }
4374
4404
  }
4375
4405
  }
4376
4406
  };
4377
- processError(error48);
4407
+ processError(error51);
4378
4408
  return fieldErrors;
4379
4409
  }
4380
- function treeifyError(error48, mapper = (issue2) => issue2.message) {
4410
+ function treeifyError(error51, mapper = (issue2) => issue2.message) {
4381
4411
  const result = { errors: [] };
4382
- const processError = (error49, path2 = []) => {
4383
- var _a2, _b;
4384
- for (const issue2 of error49.issues) {
4412
+ const processError = (error52, path2 = []) => {
4413
+ var _a3, _b;
4414
+ for (const issue2 of error52.issues) {
4385
4415
  if (issue2.code === "invalid_union" && issue2.errors.length) {
4386
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
4416
+ issue2.errors.map((issues) => processError({ issues }, [...path2, ...issue2.path]));
4387
4417
  } else if (issue2.code === "invalid_key") {
4388
- processError({ issues: issue2.issues }, issue2.path);
4418
+ processError({ issues: issue2.issues }, [...path2, ...issue2.path]);
4389
4419
  } else if (issue2.code === "invalid_element") {
4390
- processError({ issues: issue2.issues }, issue2.path);
4420
+ processError({ issues: issue2.issues }, [...path2, ...issue2.path]);
4391
4421
  } else {
4392
4422
  const fullpath = [...path2, ...issue2.path];
4393
4423
  if (fullpath.length === 0) {
@@ -4401,7 +4431,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
4401
4431
  const terminal = i === fullpath.length - 1;
4402
4432
  if (typeof el === "string") {
4403
4433
  curr.properties ?? (curr.properties = {});
4404
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
4434
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
4405
4435
  curr = curr.properties[el];
4406
4436
  } else {
4407
4437
  curr.items ?? (curr.items = []);
@@ -4416,7 +4446,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
4416
4446
  }
4417
4447
  }
4418
4448
  };
4419
- processError(error48);
4449
+ processError(error51);
4420
4450
  return result;
4421
4451
  }
4422
4452
  function toDotPath(_path) {
@@ -4437,9 +4467,9 @@ function toDotPath(_path) {
4437
4467
  }
4438
4468
  return segs.join("");
4439
4469
  }
4440
- function prettifyError(error48) {
4470
+ function prettifyError(error51) {
4441
4471
  const lines = [];
4442
- const issues = [...error48.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
4472
+ const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
4443
4473
  for (const issue2 of issues) {
4444
4474
  lines.push(`\u2716 ${issue2.message}`);
4445
4475
  if (issue2.path?.length)
@@ -4448,9 +4478,9 @@ function prettifyError(error48) {
4448
4478
  return lines.join("\n");
4449
4479
  }
4450
4480
 
4451
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
4481
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/parse.js
4452
4482
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
4453
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
4483
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
4454
4484
  const result = schema._zod.run({ value, issues: [] }, ctx);
4455
4485
  if (result instanceof Promise) {
4456
4486
  throw new $ZodAsyncError();
@@ -4464,7 +4494,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
4464
4494
  };
4465
4495
  var parse = /* @__PURE__ */ _parse($ZodRealError);
4466
4496
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
4467
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
4497
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
4468
4498
  let result = schema._zod.run({ value, issues: [] }, ctx);
4469
4499
  if (result instanceof Promise)
4470
4500
  result = await result;
@@ -4489,7 +4519,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
4489
4519
  };
4490
4520
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
4491
4521
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
4492
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
4522
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
4493
4523
  let result = schema._zod.run({ value, issues: [] }, ctx);
4494
4524
  if (result instanceof Promise)
4495
4525
  result = await result;
@@ -4500,7 +4530,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
4500
4530
  };
4501
4531
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
4502
4532
  var _encode = (_Err) => (schema, value, _ctx) => {
4503
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4533
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4504
4534
  return _parse(_Err)(schema, value, ctx);
4505
4535
  };
4506
4536
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -4509,7 +4539,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
4509
4539
  };
4510
4540
  var decode = /* @__PURE__ */ _decode($ZodRealError);
4511
4541
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
4512
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4542
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4513
4543
  return _parseAsync(_Err)(schema, value, ctx);
4514
4544
  };
4515
4545
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -4518,7 +4548,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
4518
4548
  };
4519
4549
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
4520
4550
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
4521
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4551
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4522
4552
  return _safeParse(_Err)(schema, value, ctx);
4523
4553
  };
4524
4554
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -4527,7 +4557,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
4527
4557
  };
4528
4558
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
4529
4559
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
4530
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
4560
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
4531
4561
  return _safeParseAsync(_Err)(schema, value, ctx);
4532
4562
  };
4533
4563
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -4536,7 +4566,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
4536
4566
  };
4537
4567
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
4538
4568
 
4539
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
4569
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/regexes.js
4540
4570
  var regexes_exports = {};
4541
4571
  __export(regexes_exports, {
4542
4572
  base64: () => base64,
@@ -4560,6 +4590,7 @@ __export(regexes_exports, {
4560
4590
  hex: () => hex,
4561
4591
  hostname: () => hostname,
4562
4592
  html5Email: () => html5Email,
4593
+ httpProtocol: () => httpProtocol,
4563
4594
  idnEmail: () => idnEmail,
4564
4595
  integer: () => integer,
4565
4596
  ipv4: () => ipv4,
@@ -4598,7 +4629,7 @@ __export(regexes_exports, {
4598
4629
  uuid7: () => uuid7,
4599
4630
  xid: () => xid
4600
4631
  });
4601
- var cuid = /^[cC][^\s-]{8,}$/;
4632
+ var cuid = /^[cC][0-9a-z]{6,}$/;
4602
4633
  var cuid2 = /^[0-9a-z]+$/;
4603
4634
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
4604
4635
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -4637,6 +4668,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
4637
4668
  var base64url = /^[A-Za-z0-9_-]*$/;
4638
4669
  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])?)*\.?$/;
4639
4670
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
4671
+ var httpProtocol = /^https?$/;
4640
4672
  var e164 = /^\+[1-9]\d{6,14}$/;
4641
4673
  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])))`;
4642
4674
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -4693,12 +4725,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
4693
4725
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
4694
4726
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
4695
4727
 
4696
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
4728
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
4697
4729
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
4698
- var _a2;
4730
+ var _a3;
4699
4731
  inst._zod ?? (inst._zod = {});
4700
4732
  inst._zod.def = def;
4701
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
4733
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
4702
4734
  });
4703
4735
  var numericOriginMap = {
4704
4736
  number: "number",
@@ -4764,8 +4796,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
4764
4796
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
4765
4797
  $ZodCheck.init(inst, def);
4766
4798
  inst._zod.onattach.push((inst2) => {
4767
- var _a2;
4768
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
4799
+ var _a3;
4800
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
4769
4801
  });
4770
4802
  inst._zod.check = (payload) => {
4771
4803
  if (typeof payload.value !== typeof def.value)
@@ -4898,9 +4930,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
4898
4930
  };
4899
4931
  });
4900
4932
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
4901
- var _a2;
4933
+ var _a3;
4902
4934
  $ZodCheck.init(inst, def);
4903
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4935
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
4904
4936
  const val = payload.value;
4905
4937
  return !nullish(val) && val.size !== void 0;
4906
4938
  });
@@ -4926,9 +4958,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
4926
4958
  };
4927
4959
  });
4928
4960
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
4929
- var _a2;
4961
+ var _a3;
4930
4962
  $ZodCheck.init(inst, def);
4931
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4963
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
4932
4964
  const val = payload.value;
4933
4965
  return !nullish(val) && val.size !== void 0;
4934
4966
  });
@@ -4954,9 +4986,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
4954
4986
  };
4955
4987
  });
4956
4988
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
4957
- var _a2;
4989
+ var _a3;
4958
4990
  $ZodCheck.init(inst, def);
4959
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
4991
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
4960
4992
  const val = payload.value;
4961
4993
  return !nullish(val) && val.size !== void 0;
4962
4994
  });
@@ -4984,9 +5016,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
4984
5016
  };
4985
5017
  });
4986
5018
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
4987
- var _a2;
5019
+ var _a3;
4988
5020
  $ZodCheck.init(inst, def);
4989
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
5021
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
4990
5022
  const val = payload.value;
4991
5023
  return !nullish(val) && val.length !== void 0;
4992
5024
  });
@@ -5013,9 +5045,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
5013
5045
  };
5014
5046
  });
5015
5047
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
5016
- var _a2;
5048
+ var _a3;
5017
5049
  $ZodCheck.init(inst, def);
5018
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
5050
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
5019
5051
  const val = payload.value;
5020
5052
  return !nullish(val) && val.length !== void 0;
5021
5053
  });
@@ -5042,9 +5074,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
5042
5074
  };
5043
5075
  });
5044
5076
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
5045
- var _a2;
5077
+ var _a3;
5046
5078
  $ZodCheck.init(inst, def);
5047
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
5079
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
5048
5080
  const val = payload.value;
5049
5081
  return !nullish(val) && val.length !== void 0;
5050
5082
  });
@@ -5073,7 +5105,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
5073
5105
  };
5074
5106
  });
5075
5107
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
5076
- var _a2, _b;
5108
+ var _a3, _b;
5077
5109
  $ZodCheck.init(inst, def);
5078
5110
  inst._zod.onattach.push((inst2) => {
5079
5111
  const bag = inst2._zod.bag;
@@ -5084,7 +5116,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
5084
5116
  }
5085
5117
  });
5086
5118
  if (def.pattern)
5087
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
5119
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
5088
5120
  def.pattern.lastIndex = 0;
5089
5121
  if (def.pattern.test(payload.value))
5090
5122
  return;
@@ -5241,7 +5273,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
5241
5273
  };
5242
5274
  });
5243
5275
 
5244
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
5276
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/doc.js
5245
5277
  var Doc = class {
5246
5278
  constructor(args = []) {
5247
5279
  this.content = [];
@@ -5277,16 +5309,16 @@ var Doc = class {
5277
5309
  }
5278
5310
  };
5279
5311
 
5280
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
5312
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/versions.js
5281
5313
  var version = {
5282
5314
  major: 4,
5283
- minor: 3,
5284
- patch: 6
5315
+ minor: 4,
5316
+ patch: 3
5285
5317
  };
5286
5318
 
5287
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
5319
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
5288
5320
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5289
- var _a2;
5321
+ var _a3;
5290
5322
  inst ?? (inst = {});
5291
5323
  inst._zod.def = def;
5292
5324
  inst._zod.bag = inst._zod.bag || {};
@@ -5301,7 +5333,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5301
5333
  }
5302
5334
  }
5303
5335
  if (checks.length === 0) {
5304
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
5336
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
5305
5337
  inst._zod.deferred?.push(() => {
5306
5338
  inst._zod.run = inst._zod.parse;
5307
5339
  });
@@ -5311,6 +5343,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5311
5343
  let asyncResult;
5312
5344
  for (const ch of checks2) {
5313
5345
  if (ch._zod.def.when) {
5346
+ if (explicitlyAborted(payload))
5347
+ continue;
5314
5348
  const shouldRun = ch._zod.def.when(payload);
5315
5349
  if (!shouldRun)
5316
5350
  continue;
@@ -5451,6 +5485,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
5451
5485
  inst._zod.check = (payload) => {
5452
5486
  try {
5453
5487
  const trimmed = payload.value.trim();
5488
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
5489
+ if (!/^https?:\/\//i.test(trimmed)) {
5490
+ payload.issues.push({
5491
+ code: "invalid_format",
5492
+ format: "url",
5493
+ note: "Invalid URL format",
5494
+ input: payload.value,
5495
+ inst,
5496
+ continue: !def.abort
5497
+ });
5498
+ return;
5499
+ }
5500
+ }
5454
5501
  const url2 = new URL(trimmed);
5455
5502
  if (def.hostname) {
5456
5503
  def.hostname.lastIndex = 0;
@@ -5604,6 +5651,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
5604
5651
  function isValidBase64(data) {
5605
5652
  if (data === "")
5606
5653
  return true;
5654
+ if (/\s/.test(data))
5655
+ return false;
5607
5656
  if (data.length % 4 !== 0)
5608
5657
  return false;
5609
5658
  try {
@@ -5796,8 +5845,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
5796
5845
  $ZodType.init(inst, def);
5797
5846
  inst._zod.pattern = _undefined;
5798
5847
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
5799
- inst._zod.optin = "optional";
5800
- inst._zod.optout = "optional";
5801
5848
  inst._zod.parse = (payload, _ctx) => {
5802
5849
  const input = payload.value;
5803
5850
  if (typeof input === "undefined")
@@ -5926,15 +5973,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
5926
5973
  return payload;
5927
5974
  };
5928
5975
  });
5929
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
5976
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
5977
+ const isPresent = key in input;
5930
5978
  if (result.issues.length) {
5931
- if (isOptionalOut && !(key in input)) {
5979
+ if (isOptionalIn && isOptionalOut && !isPresent) {
5932
5980
  return;
5933
5981
  }
5934
5982
  final.issues.push(...prefixIssues(key, result.issues));
5935
5983
  }
5984
+ if (!isPresent && !isOptionalIn) {
5985
+ if (!result.issues.length) {
5986
+ final.issues.push({
5987
+ code: "invalid_type",
5988
+ expected: "nonoptional",
5989
+ input: void 0,
5990
+ path: [key]
5991
+ });
5992
+ }
5993
+ return;
5994
+ }
5936
5995
  if (result.value === void 0) {
5937
- if (key in input) {
5996
+ if (isPresent) {
5938
5997
  final.value[key] = void 0;
5939
5998
  }
5940
5999
  } else {
@@ -5962,8 +6021,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
5962
6021
  const keySet = def.keySet;
5963
6022
  const _catchall = def.catchall._zod;
5964
6023
  const t = _catchall.def.type;
6024
+ const isOptionalIn = _catchall.optin === "optional";
5965
6025
  const isOptionalOut = _catchall.optout === "optional";
5966
6026
  for (const key in input) {
6027
+ if (key === "__proto__")
6028
+ continue;
5967
6029
  if (keySet.has(key))
5968
6030
  continue;
5969
6031
  if (t === "never") {
@@ -5972,9 +6034,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
5972
6034
  }
5973
6035
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
5974
6036
  if (r instanceof Promise) {
5975
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
6037
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
5976
6038
  } else {
5977
- handlePropertyResult(r, payload, key, input, isOptionalOut);
6039
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
5978
6040
  }
5979
6041
  }
5980
6042
  if (unrecognized.length) {
@@ -6040,12 +6102,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
6040
6102
  const shape = value.shape;
6041
6103
  for (const key of value.keys) {
6042
6104
  const el = shape[key];
6105
+ const isOptionalIn = el._zod.optin === "optional";
6043
6106
  const isOptionalOut = el._zod.optout === "optional";
6044
6107
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
6045
6108
  if (r instanceof Promise) {
6046
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
6109
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
6047
6110
  } else {
6048
- handlePropertyResult(r, payload, key, input, isOptionalOut);
6111
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
6049
6112
  }
6050
6113
  }
6051
6114
  if (!catchall) {
@@ -6076,9 +6139,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
6076
6139
  const id = ids[key];
6077
6140
  const k = esc(key);
6078
6141
  const schema = shape[key];
6142
+ const isOptionalIn = schema?._zod?.optin === "optional";
6079
6143
  const isOptionalOut = schema?._zod?.optout === "optional";
6080
6144
  doc.write(`const ${id} = ${parseStr(key)};`);
6081
- if (isOptionalOut) {
6145
+ if (isOptionalIn && isOptionalOut) {
6082
6146
  doc.write(`
6083
6147
  if (${id}.issues.length) {
6084
6148
  if (${k} in input) {
@@ -6097,6 +6161,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
6097
6161
  newResult[${k}] = ${id}.value;
6098
6162
  }
6099
6163
 
6164
+ `);
6165
+ } else if (!isOptionalIn) {
6166
+ doc.write(`
6167
+ const ${id}_present = ${k} in input;
6168
+ if (${id}.issues.length) {
6169
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
6170
+ ...iss,
6171
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
6172
+ })));
6173
+ }
6174
+ if (!${id}_present && !${id}.issues.length) {
6175
+ payload.issues.push({
6176
+ code: "invalid_type",
6177
+ expected: "nonoptional",
6178
+ input: undefined,
6179
+ path: [${k}]
6180
+ });
6181
+ }
6182
+
6183
+ if (${id}_present) {
6184
+ if (${id}.value === undefined) {
6185
+ newResult[${k}] = undefined;
6186
+ } else {
6187
+ newResult[${k}] = ${id}.value;
6188
+ }
6189
+ }
6190
+
6100
6191
  `);
6101
6192
  } else {
6102
6193
  doc.write(`
@@ -6190,10 +6281,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
6190
6281
  }
6191
6282
  return void 0;
6192
6283
  });
6193
- const single = def.options.length === 1;
6194
- const first = def.options[0]._zod.run;
6284
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
6195
6285
  inst._zod.parse = (payload, ctx) => {
6196
- if (single) {
6286
+ if (first) {
6197
6287
  return first(payload, ctx);
6198
6288
  }
6199
6289
  let async = false;
@@ -6246,10 +6336,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
6246
6336
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
6247
6337
  $ZodUnion.init(inst, def);
6248
6338
  def.inclusive = false;
6249
- const single = def.options.length === 1;
6250
- const first = def.options[0]._zod.run;
6339
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
6251
6340
  inst._zod.parse = (payload, ctx) => {
6252
- if (single) {
6341
+ if (first) {
6253
6342
  return first(payload, ctx);
6254
6343
  }
6255
6344
  let async = false;
@@ -6324,7 +6413,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
6324
6413
  if (opt) {
6325
6414
  return opt._zod.run(payload, ctx);
6326
6415
  }
6327
- if (def.unionFallback) {
6416
+ if (def.unionFallback || ctx.direction === "backward") {
6328
6417
  return _super(payload, ctx);
6329
6418
  }
6330
6419
  payload.issues.push({
@@ -6332,6 +6421,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
6332
6421
  errors: [],
6333
6422
  note: "No matching discriminator",
6334
6423
  discriminator: def.discriminator,
6424
+ options: Array.from(disc.value.keys()),
6335
6425
  input,
6336
6426
  path: [def.discriminator],
6337
6427
  inst
@@ -6453,64 +6543,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
6453
6543
  }
6454
6544
  payload.value = [];
6455
6545
  const proms = [];
6456
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
6457
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
6546
+ const optinStart = getTupleOptStart(items, "optin");
6547
+ const optoutStart = getTupleOptStart(items, "optout");
6458
6548
  if (!def.rest) {
6459
- const tooBig = input.length > items.length;
6460
- const tooSmall = input.length < optStart - 1;
6461
- if (tooBig || tooSmall) {
6549
+ if (input.length < optinStart) {
6462
6550
  payload.issues.push({
6463
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
6551
+ code: "too_small",
6552
+ minimum: optinStart,
6553
+ inclusive: true,
6464
6554
  input,
6465
6555
  inst,
6466
6556
  origin: "array"
6467
6557
  });
6468
6558
  return payload;
6469
6559
  }
6470
- }
6471
- let i = -1;
6472
- for (const item of items) {
6473
- i++;
6474
- if (i >= input.length) {
6475
- if (i >= optStart)
6476
- continue;
6560
+ if (input.length > items.length) {
6561
+ payload.issues.push({
6562
+ code: "too_big",
6563
+ maximum: items.length,
6564
+ inclusive: true,
6565
+ input,
6566
+ inst,
6567
+ origin: "array"
6568
+ });
6477
6569
  }
6478
- const result = item._zod.run({
6479
- value: input[i],
6480
- issues: []
6481
- }, ctx);
6482
- if (result instanceof Promise) {
6483
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
6570
+ }
6571
+ const itemResults = new Array(items.length);
6572
+ for (let i = 0; i < items.length; i++) {
6573
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
6574
+ if (r instanceof Promise) {
6575
+ proms.push(r.then((rr) => {
6576
+ itemResults[i] = rr;
6577
+ }));
6484
6578
  } else {
6485
- handleTupleResult(result, payload, i);
6579
+ itemResults[i] = r;
6486
6580
  }
6487
6581
  }
6488
6582
  if (def.rest) {
6583
+ let i = items.length - 1;
6489
6584
  const rest = input.slice(items.length);
6490
6585
  for (const el of rest) {
6491
6586
  i++;
6492
- const result = def.rest._zod.run({
6493
- value: el,
6494
- issues: []
6495
- }, ctx);
6587
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
6496
6588
  if (result instanceof Promise) {
6497
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
6589
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
6498
6590
  } else {
6499
6591
  handleTupleResult(result, payload, i);
6500
6592
  }
6501
6593
  }
6502
6594
  }
6503
- if (proms.length)
6504
- return Promise.all(proms).then(() => payload);
6505
- return payload;
6595
+ if (proms.length) {
6596
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
6597
+ }
6598
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
6506
6599
  };
6507
6600
  });
6601
+ function getTupleOptStart(items, key) {
6602
+ for (let i = items.length - 1; i >= 0; i--) {
6603
+ if (items[i]._zod[key] !== "optional")
6604
+ return i + 1;
6605
+ }
6606
+ return 0;
6607
+ }
6508
6608
  function handleTupleResult(result, final, index) {
6509
6609
  if (result.issues.length) {
6510
6610
  final.issues.push(...prefixIssues(index, result.issues));
6511
6611
  }
6512
6612
  final.value[index] = result.value;
6513
6613
  }
6614
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
6615
+ for (let i = 0; i < items.length; i++) {
6616
+ const r = itemResults[i];
6617
+ const isPresent = i < input.length;
6618
+ if (r.issues.length) {
6619
+ if (!isPresent && i >= optoutStart) {
6620
+ final.value.length = i;
6621
+ break;
6622
+ }
6623
+ final.issues.push(...prefixIssues(i, r.issues));
6624
+ }
6625
+ final.value[i] = r.value;
6626
+ }
6627
+ for (let i = final.value.length - 1; i >= input.length; i--) {
6628
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
6629
+ final.value.length = i;
6630
+ } else {
6631
+ break;
6632
+ }
6633
+ }
6634
+ return final;
6635
+ }
6514
6636
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
6515
6637
  $ZodType.init(inst, def);
6516
6638
  inst._zod.parse = (payload, ctx) => {
@@ -6532,19 +6654,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
6532
6654
  for (const key of values) {
6533
6655
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
6534
6656
  recordKeys.add(typeof key === "number" ? key.toString() : key);
6657
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
6658
+ if (keyResult instanceof Promise) {
6659
+ throw new Error("Async schemas not supported in object keys currently");
6660
+ }
6661
+ if (keyResult.issues.length) {
6662
+ payload.issues.push({
6663
+ code: "invalid_key",
6664
+ origin: "record",
6665
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
6666
+ input: key,
6667
+ path: [key],
6668
+ inst
6669
+ });
6670
+ continue;
6671
+ }
6672
+ const outKey = keyResult.value;
6535
6673
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
6536
6674
  if (result instanceof Promise) {
6537
6675
  proms.push(result.then((result2) => {
6538
6676
  if (result2.issues.length) {
6539
6677
  payload.issues.push(...prefixIssues(key, result2.issues));
6540
6678
  }
6541
- payload.value[key] = result2.value;
6679
+ payload.value[outKey] = result2.value;
6542
6680
  }));
6543
6681
  } else {
6544
6682
  if (result.issues.length) {
6545
6683
  payload.issues.push(...prefixIssues(key, result.issues));
6546
6684
  }
6547
- payload.value[key] = result.value;
6685
+ payload.value[outKey] = result.value;
6548
6686
  }
6549
6687
  }
6550
6688
  }
@@ -6568,6 +6706,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
6568
6706
  for (const key of Reflect.ownKeys(input)) {
6569
6707
  if (key === "__proto__")
6570
6708
  continue;
6709
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
6710
+ continue;
6571
6711
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
6572
6712
  if (keyResult instanceof Promise) {
6573
6713
  throw new Error("Async schemas not supported in object keys currently");
@@ -6772,6 +6912,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
6772
6912
  });
6773
6913
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
6774
6914
  $ZodType.init(inst, def);
6915
+ inst._zod.optin = "optional";
6775
6916
  inst._zod.parse = (payload, ctx) => {
6776
6917
  if (ctx.direction === "backward") {
6777
6918
  throw new $ZodEncodeError(inst.constructor.name);
@@ -6781,6 +6922,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
6781
6922
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
6782
6923
  return output.then((output2) => {
6783
6924
  payload.value = output2;
6925
+ payload.fallback = true;
6784
6926
  return payload;
6785
6927
  });
6786
6928
  }
@@ -6788,11 +6930,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
6788
6930
  throw new $ZodAsyncError();
6789
6931
  }
6790
6932
  payload.value = _out;
6933
+ payload.fallback = true;
6791
6934
  return payload;
6792
6935
  };
6793
6936
  });
6794
6937
  function handleOptionalResult(result, input) {
6795
- if (result.issues.length && input === void 0) {
6938
+ if (input === void 0 && (result.issues.length || result.fallback)) {
6796
6939
  return { issues: [], value: void 0 };
6797
6940
  }
6798
6941
  return result;
@@ -6810,10 +6953,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
6810
6953
  });
6811
6954
  inst._zod.parse = (payload, ctx) => {
6812
6955
  if (def.innerType._zod.optin === "optional") {
6956
+ const input = payload.value;
6813
6957
  const result = def.innerType._zod.run(payload, ctx);
6814
6958
  if (result instanceof Promise)
6815
- return result.then((r) => handleOptionalResult(r, payload.value));
6816
- return handleOptionalResult(result, payload.value);
6959
+ return result.then((r) => handleOptionalResult(r, input));
6960
+ return handleOptionalResult(result, input);
6817
6961
  }
6818
6962
  if (payload.value === void 0) {
6819
6963
  return payload;
@@ -6929,7 +7073,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
6929
7073
  });
6930
7074
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
6931
7075
  $ZodType.init(inst, def);
6932
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
7076
+ inst._zod.optin = "optional";
6933
7077
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
6934
7078
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
6935
7079
  inst._zod.parse = (payload, ctx) => {
@@ -6949,6 +7093,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
6949
7093
  input: payload.value
6950
7094
  });
6951
7095
  payload.issues = [];
7096
+ payload.fallback = true;
6952
7097
  }
6953
7098
  return payload;
6954
7099
  });
@@ -6963,6 +7108,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
6963
7108
  input: payload.value
6964
7109
  });
6965
7110
  payload.issues = [];
7111
+ payload.fallback = true;
6966
7112
  }
6967
7113
  return payload;
6968
7114
  };
@@ -7008,7 +7154,7 @@ function handlePipeResult(left, next, ctx) {
7008
7154
  left.aborted = true;
7009
7155
  return left;
7010
7156
  }
7011
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
7157
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
7012
7158
  }
7013
7159
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
7014
7160
  $ZodType.init(inst, def);
@@ -7060,6 +7206,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
7060
7206
  }
7061
7207
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
7062
7208
  }
7209
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
7210
+ $ZodPipe.init(inst, def);
7211
+ });
7063
7212
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
7064
7213
  $ZodType.init(inst, def);
7065
7214
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -7211,7 +7360,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
7211
7360
  });
7212
7361
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
7213
7362
  $ZodType.init(inst, def);
7214
- defineLazy(inst._zod, "innerType", () => def.getter());
7363
+ defineLazy(inst._zod, "innerType", () => {
7364
+ const d = def;
7365
+ if (!d._cachedInner)
7366
+ d._cachedInner = def.getter();
7367
+ return d._cachedInner;
7368
+ });
7215
7369
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
7216
7370
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
7217
7371
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -7255,7 +7409,7 @@ function handleRefineResult(result, payload, input, inst) {
7255
7409
  }
7256
7410
  }
7257
7411
 
7258
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
7412
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/index.js
7259
7413
  var locales_exports = {};
7260
7414
  __export(locales_exports, {
7261
7415
  ar: () => ar_default,
@@ -7266,6 +7420,7 @@ __export(locales_exports, {
7266
7420
  cs: () => cs_default,
7267
7421
  da: () => da_default,
7268
7422
  de: () => de_default,
7423
+ el: () => el_default,
7269
7424
  en: () => en_default,
7270
7425
  eo: () => eo_default,
7271
7426
  es: () => es_default,
@@ -7274,6 +7429,7 @@ __export(locales_exports, {
7274
7429
  fr: () => fr_default,
7275
7430
  frCA: () => fr_CA_default,
7276
7431
  he: () => he_default,
7432
+ hr: () => hr_default,
7277
7433
  hu: () => hu_default,
7278
7434
  hy: () => hy_default,
7279
7435
  id: () => id_default,
@@ -7293,6 +7449,7 @@ __export(locales_exports, {
7293
7449
  pl: () => pl_default,
7294
7450
  ps: () => ps_default,
7295
7451
  pt: () => pt_default,
7452
+ ro: () => ro_default,
7296
7453
  ru: () => ru_default,
7297
7454
  sl: () => sl_default,
7298
7455
  sv: () => sv_default,
@@ -7309,7 +7466,7 @@ __export(locales_exports, {
7309
7466
  zhTW: () => zh_TW_default
7310
7467
  });
7311
7468
 
7312
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
7469
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ar.js
7313
7470
  var error = () => {
7314
7471
  const Sizable = {
7315
7472
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -7416,7 +7573,7 @@ function ar_default() {
7416
7573
  };
7417
7574
  }
7418
7575
 
7419
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
7576
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/az.js
7420
7577
  var error2 = () => {
7421
7578
  const Sizable = {
7422
7579
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -7522,7 +7679,7 @@ function az_default() {
7522
7679
  };
7523
7680
  }
7524
7681
 
7525
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
7682
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/be.js
7526
7683
  function getBelarusianPlural(count, one, few, many) {
7527
7684
  const absCount = Math.abs(count);
7528
7685
  const lastDigit = absCount % 10;
@@ -7679,7 +7836,7 @@ function be_default() {
7679
7836
  };
7680
7837
  }
7681
7838
 
7682
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
7839
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/bg.js
7683
7840
  var error4 = () => {
7684
7841
  const Sizable = {
7685
7842
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -7800,7 +7957,7 @@ function bg_default() {
7800
7957
  };
7801
7958
  }
7802
7959
 
7803
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
7960
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ca.js
7804
7961
  var error5 = () => {
7805
7962
  const Sizable = {
7806
7963
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -7909,7 +8066,7 @@ function ca_default() {
7909
8066
  };
7910
8067
  }
7911
8068
 
7912
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
8069
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/cs.js
7913
8070
  var error6 = () => {
7914
8071
  const Sizable = {
7915
8072
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -8021,7 +8178,7 @@ function cs_default() {
8021
8178
  };
8022
8179
  }
8023
8180
 
8024
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
8181
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/da.js
8025
8182
  var error7 = () => {
8026
8183
  const Sizable = {
8027
8184
  string: { unit: "tegn", verb: "havde" },
@@ -8137,7 +8294,7 @@ function da_default() {
8137
8294
  };
8138
8295
  }
8139
8296
 
8140
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
8297
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/de.js
8141
8298
  var error8 = () => {
8142
8299
  const Sizable = {
8143
8300
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -8246,8 +8403,118 @@ function de_default() {
8246
8403
  };
8247
8404
  }
8248
8405
 
8249
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
8406
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/el.js
8250
8407
  var error9 = () => {
8408
+ const Sizable = {
8409
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
8410
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
8411
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
8412
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
8413
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
8414
+ };
8415
+ function getSizing(origin) {
8416
+ return Sizable[origin] ?? null;
8417
+ }
8418
+ const FormatDictionary = {
8419
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
8420
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
8421
+ url: "URL",
8422
+ emoji: "emoji",
8423
+ uuid: "UUID",
8424
+ uuidv4: "UUIDv4",
8425
+ uuidv6: "UUIDv6",
8426
+ nanoid: "nanoid",
8427
+ guid: "GUID",
8428
+ cuid: "cuid",
8429
+ cuid2: "cuid2",
8430
+ ulid: "ULID",
8431
+ xid: "XID",
8432
+ ksuid: "KSUID",
8433
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
8434
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
8435
+ time: "ISO \u03CE\u03C1\u03B1",
8436
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
8437
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
8438
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
8439
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
8440
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
8441
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
8442
+ base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
8443
+ base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
8444
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
8445
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
8446
+ jwt: "JWT",
8447
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
8448
+ };
8449
+ const TypeDictionary = {
8450
+ nan: "NaN"
8451
+ };
8452
+ return (issue2) => {
8453
+ switch (issue2.code) {
8454
+ case "invalid_type": {
8455
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
8456
+ const receivedType = parsedType(issue2.input);
8457
+ const received = TypeDictionary[receivedType] ?? receivedType;
8458
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
8459
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
8460
+ }
8461
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
8462
+ }
8463
+ case "invalid_value":
8464
+ if (issue2.values.length === 1)
8465
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
8466
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
8467
+ case "too_big": {
8468
+ const adj = issue2.inclusive ? "<=" : "<";
8469
+ const sizing = getSizing(issue2.origin);
8470
+ if (sizing)
8471
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
8472
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
8473
+ }
8474
+ case "too_small": {
8475
+ const adj = issue2.inclusive ? ">=" : ">";
8476
+ const sizing = getSizing(issue2.origin);
8477
+ if (sizing) {
8478
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8479
+ }
8480
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
8481
+ }
8482
+ case "invalid_format": {
8483
+ const _issue = issue2;
8484
+ if (_issue.format === "starts_with") {
8485
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
8486
+ }
8487
+ if (_issue.format === "ends_with")
8488
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
8489
+ if (_issue.format === "includes")
8490
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
8491
+ if (_issue.format === "regex")
8492
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
8493
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
8494
+ }
8495
+ case "not_multiple_of":
8496
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
8497
+ case "unrecognized_keys":
8498
+ return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
8499
+ case "invalid_key":
8500
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
8501
+ case "invalid_union":
8502
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
8503
+ case "invalid_element":
8504
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
8505
+ default:
8506
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
8507
+ }
8508
+ };
8509
+ };
8510
+ function el_default() {
8511
+ return {
8512
+ localeError: error9()
8513
+ };
8514
+ }
8515
+
8516
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
8517
+ var error10 = () => {
8251
8518
  const Sizable = {
8252
8519
  string: { unit: "characters", verb: "to have" },
8253
8520
  file: { unit: "bytes", verb: "to have" },
@@ -8341,6 +8608,10 @@ var error9 = () => {
8341
8608
  case "invalid_key":
8342
8609
  return `Invalid key in ${issue2.origin}`;
8343
8610
  case "invalid_union":
8611
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
8612
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
8613
+ return `Invalid discriminator value. Expected ${opts}`;
8614
+ }
8344
8615
  return "Invalid input";
8345
8616
  case "invalid_element":
8346
8617
  return `Invalid value in ${issue2.origin}`;
@@ -8351,12 +8622,12 @@ var error9 = () => {
8351
8622
  };
8352
8623
  function en_default() {
8353
8624
  return {
8354
- localeError: error9()
8625
+ localeError: error10()
8355
8626
  };
8356
8627
  }
8357
8628
 
8358
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
8359
- var error10 = () => {
8629
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/eo.js
8630
+ var error11 = () => {
8360
8631
  const Sizable = {
8361
8632
  string: { unit: "karaktrojn", verb: "havi" },
8362
8633
  file: { unit: "bajtojn", verb: "havi" },
@@ -8461,12 +8732,12 @@ var error10 = () => {
8461
8732
  };
8462
8733
  function eo_default() {
8463
8734
  return {
8464
- localeError: error10()
8735
+ localeError: error11()
8465
8736
  };
8466
8737
  }
8467
8738
 
8468
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
8469
- var error11 = () => {
8739
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/es.js
8740
+ var error12 = () => {
8470
8741
  const Sizable = {
8471
8742
  string: { unit: "caracteres", verb: "tener" },
8472
8743
  file: { unit: "bytes", verb: "tener" },
@@ -8594,12 +8865,12 @@ var error11 = () => {
8594
8865
  };
8595
8866
  function es_default() {
8596
8867
  return {
8597
- localeError: error11()
8868
+ localeError: error12()
8598
8869
  };
8599
8870
  }
8600
8871
 
8601
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
8602
- var error12 = () => {
8872
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fa.js
8873
+ var error13 = () => {
8603
8874
  const Sizable = {
8604
8875
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
8605
8876
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -8709,12 +8980,12 @@ var error12 = () => {
8709
8980
  };
8710
8981
  function fa_default() {
8711
8982
  return {
8712
- localeError: error12()
8983
+ localeError: error13()
8713
8984
  };
8714
8985
  }
8715
8986
 
8716
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
8717
- var error13 = () => {
8987
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fi.js
8988
+ var error14 = () => {
8718
8989
  const Sizable = {
8719
8990
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
8720
8991
  file: { unit: "tavua", subject: "tiedoston" },
@@ -8822,12 +9093,12 @@ var error13 = () => {
8822
9093
  };
8823
9094
  function fi_default() {
8824
9095
  return {
8825
- localeError: error13()
9096
+ localeError: error14()
8826
9097
  };
8827
9098
  }
8828
9099
 
8829
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
8830
- var error14 = () => {
9100
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr.js
9101
+ var error15 = () => {
8831
9102
  const Sizable = {
8832
9103
  string: { unit: "caract\xE8res", verb: "avoir" },
8833
9104
  file: { unit: "octets", verb: "avoir" },
@@ -8868,9 +9139,27 @@ var error14 = () => {
8868
9139
  template_literal: "entr\xE9e"
8869
9140
  };
8870
9141
  const TypeDictionary = {
8871
- nan: "NaN",
9142
+ string: "cha\xEEne",
8872
9143
  number: "nombre",
8873
- array: "tableau"
9144
+ int: "entier",
9145
+ boolean: "bool\xE9en",
9146
+ bigint: "grand entier",
9147
+ symbol: "symbole",
9148
+ undefined: "ind\xE9fini",
9149
+ null: "null",
9150
+ never: "jamais",
9151
+ void: "vide",
9152
+ date: "date",
9153
+ array: "tableau",
9154
+ object: "objet",
9155
+ tuple: "tuple",
9156
+ record: "enregistrement",
9157
+ map: "carte",
9158
+ set: "ensemble",
9159
+ file: "fichier",
9160
+ nonoptional: "non-optionnel",
9161
+ nan: "NaN",
9162
+ function: "fonction"
8874
9163
  };
8875
9164
  return (issue2) => {
8876
9165
  switch (issue2.code) {
@@ -8891,16 +9180,15 @@ var error14 = () => {
8891
9180
  const adj = issue2.inclusive ? "<=" : "<";
8892
9181
  const sizing = getSizing(issue2.origin);
8893
9182
  if (sizing)
8894
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
8895
- return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
9183
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
9184
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
8896
9185
  }
8897
9186
  case "too_small": {
8898
9187
  const adj = issue2.inclusive ? ">=" : ">";
8899
9188
  const sizing = getSizing(issue2.origin);
8900
- if (sizing) {
8901
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8902
- }
8903
- return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
9189
+ if (sizing)
9190
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
9191
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
8904
9192
  }
8905
9193
  case "invalid_format": {
8906
9194
  const _issue = issue2;
@@ -8931,12 +9219,12 @@ var error14 = () => {
8931
9219
  };
8932
9220
  function fr_default() {
8933
9221
  return {
8934
- localeError: error14()
9222
+ localeError: error15()
8935
9223
  };
8936
9224
  }
8937
9225
 
8938
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
8939
- var error15 = () => {
9226
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
9227
+ var error16 = () => {
8940
9228
  const Sizable = {
8941
9229
  string: { unit: "caract\xE8res", verb: "avoir" },
8942
9230
  file: { unit: "octets", verb: "avoir" },
@@ -9039,12 +9327,12 @@ var error15 = () => {
9039
9327
  };
9040
9328
  function fr_CA_default() {
9041
9329
  return {
9042
- localeError: error15()
9330
+ localeError: error16()
9043
9331
  };
9044
9332
  }
9045
9333
 
9046
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
9047
- var error16 = () => {
9334
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/he.js
9335
+ var error17 = () => {
9048
9336
  const TypeNames = {
9049
9337
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
9050
9338
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -9234,24 +9522,24 @@ var error16 = () => {
9234
9522
  };
9235
9523
  function he_default() {
9236
9524
  return {
9237
- localeError: error16()
9525
+ localeError: error17()
9238
9526
  };
9239
9527
  }
9240
9528
 
9241
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
9242
- var error17 = () => {
9529
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
9530
+ var error18 = () => {
9243
9531
  const Sizable = {
9244
- string: { unit: "karakter", verb: "legyen" },
9245
- file: { unit: "byte", verb: "legyen" },
9246
- array: { unit: "elem", verb: "legyen" },
9247
- set: { unit: "elem", verb: "legyen" }
9532
+ string: { unit: "znakova", verb: "imati" },
9533
+ file: { unit: "bajtova", verb: "imati" },
9534
+ array: { unit: "stavki", verb: "imati" },
9535
+ set: { unit: "stavki", verb: "imati" }
9248
9536
  };
9249
9537
  function getSizing(origin) {
9250
9538
  return Sizable[origin] ?? null;
9251
9539
  }
9252
9540
  const FormatDictionary = {
9253
- regex: "bemenet",
9254
- email: "email c\xEDm",
9541
+ regex: "unos",
9542
+ email: "email adresa",
9255
9543
  url: "URL",
9256
9544
  emoji: "emoji",
9257
9545
  uuid: "UUID",
@@ -9264,25 +9552,37 @@ var error17 = () => {
9264
9552
  ulid: "ULID",
9265
9553
  xid: "XID",
9266
9554
  ksuid: "KSUID",
9267
- datetime: "ISO id\u0151b\xE9lyeg",
9268
- date: "ISO d\xE1tum",
9269
- time: "ISO id\u0151",
9270
- duration: "ISO id\u0151intervallum",
9271
- ipv4: "IPv4 c\xEDm",
9272
- ipv6: "IPv6 c\xEDm",
9273
- cidrv4: "IPv4 tartom\xE1ny",
9274
- cidrv6: "IPv6 tartom\xE1ny",
9275
- base64: "base64-k\xF3dolt string",
9276
- base64url: "base64url-k\xF3dolt string",
9277
- json_string: "JSON string",
9278
- e164: "E.164 sz\xE1m",
9555
+ datetime: "ISO datum i vrijeme",
9556
+ date: "ISO datum",
9557
+ time: "ISO vrijeme",
9558
+ duration: "ISO trajanje",
9559
+ ipv4: "IPv4 adresa",
9560
+ ipv6: "IPv6 adresa",
9561
+ cidrv4: "IPv4 raspon",
9562
+ cidrv6: "IPv6 raspon",
9563
+ base64: "base64 kodirani tekst",
9564
+ base64url: "base64url kodirani tekst",
9565
+ json_string: "JSON tekst",
9566
+ e164: "E.164 broj",
9279
9567
  jwt: "JWT",
9280
- template_literal: "bemenet"
9568
+ template_literal: "unos"
9281
9569
  };
9282
9570
  const TypeDictionary = {
9283
9571
  nan: "NaN",
9284
- number: "sz\xE1m",
9285
- array: "t\xF6mb"
9572
+ string: "tekst",
9573
+ number: "broj",
9574
+ boolean: "boolean",
9575
+ array: "niz",
9576
+ object: "objekt",
9577
+ set: "skup",
9578
+ file: "datoteka",
9579
+ date: "datum",
9580
+ bigint: "bigint",
9581
+ symbol: "simbol",
9582
+ undefined: "undefined",
9583
+ null: "null",
9584
+ function: "funkcija",
9585
+ map: "mapa"
9286
9586
  };
9287
9587
  return (issue2) => {
9288
9588
  switch (issue2.code) {
@@ -9291,20 +9591,131 @@ var error17 = () => {
9291
9591
  const receivedType = parsedType(issue2.input);
9292
9592
  const received = TypeDictionary[receivedType] ?? receivedType;
9293
9593
  if (/^[A-Z]/.test(issue2.expected)) {
9294
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
9594
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
9295
9595
  }
9296
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
9596
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
9297
9597
  }
9298
9598
  case "invalid_value":
9299
9599
  if (issue2.values.length === 1)
9300
- return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
9301
- return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
9600
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
9601
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
9302
9602
  case "too_big": {
9303
9603
  const adj = issue2.inclusive ? "<=" : "<";
9304
9604
  const sizing = getSizing(issue2.origin);
9605
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
9305
9606
  if (sizing)
9306
- return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
9307
- return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
9607
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
9608
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
9609
+ }
9610
+ case "too_small": {
9611
+ const adj = issue2.inclusive ? ">=" : ">";
9612
+ const sizing = getSizing(issue2.origin);
9613
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
9614
+ if (sizing) {
9615
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
9616
+ }
9617
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
9618
+ }
9619
+ case "invalid_format": {
9620
+ const _issue = issue2;
9621
+ if (_issue.format === "starts_with")
9622
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
9623
+ if (_issue.format === "ends_with")
9624
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
9625
+ if (_issue.format === "includes")
9626
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
9627
+ if (_issue.format === "regex")
9628
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
9629
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
9630
+ }
9631
+ case "not_multiple_of":
9632
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
9633
+ case "unrecognized_keys":
9634
+ return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
9635
+ case "invalid_key":
9636
+ return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
9637
+ case "invalid_union":
9638
+ return "Neispravan unos";
9639
+ case "invalid_element":
9640
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
9641
+ default:
9642
+ return `Neispravan unos`;
9643
+ }
9644
+ };
9645
+ };
9646
+ function hr_default() {
9647
+ return {
9648
+ localeError: error18()
9649
+ };
9650
+ }
9651
+
9652
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hu.js
9653
+ var error19 = () => {
9654
+ const Sizable = {
9655
+ string: { unit: "karakter", verb: "legyen" },
9656
+ file: { unit: "byte", verb: "legyen" },
9657
+ array: { unit: "elem", verb: "legyen" },
9658
+ set: { unit: "elem", verb: "legyen" }
9659
+ };
9660
+ function getSizing(origin) {
9661
+ return Sizable[origin] ?? null;
9662
+ }
9663
+ const FormatDictionary = {
9664
+ regex: "bemenet",
9665
+ email: "email c\xEDm",
9666
+ url: "URL",
9667
+ emoji: "emoji",
9668
+ uuid: "UUID",
9669
+ uuidv4: "UUIDv4",
9670
+ uuidv6: "UUIDv6",
9671
+ nanoid: "nanoid",
9672
+ guid: "GUID",
9673
+ cuid: "cuid",
9674
+ cuid2: "cuid2",
9675
+ ulid: "ULID",
9676
+ xid: "XID",
9677
+ ksuid: "KSUID",
9678
+ datetime: "ISO id\u0151b\xE9lyeg",
9679
+ date: "ISO d\xE1tum",
9680
+ time: "ISO id\u0151",
9681
+ duration: "ISO id\u0151intervallum",
9682
+ ipv4: "IPv4 c\xEDm",
9683
+ ipv6: "IPv6 c\xEDm",
9684
+ cidrv4: "IPv4 tartom\xE1ny",
9685
+ cidrv6: "IPv6 tartom\xE1ny",
9686
+ base64: "base64-k\xF3dolt string",
9687
+ base64url: "base64url-k\xF3dolt string",
9688
+ json_string: "JSON string",
9689
+ e164: "E.164 sz\xE1m",
9690
+ jwt: "JWT",
9691
+ template_literal: "bemenet"
9692
+ };
9693
+ const TypeDictionary = {
9694
+ nan: "NaN",
9695
+ number: "sz\xE1m",
9696
+ array: "t\xF6mb"
9697
+ };
9698
+ return (issue2) => {
9699
+ switch (issue2.code) {
9700
+ case "invalid_type": {
9701
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
9702
+ const receivedType = parsedType(issue2.input);
9703
+ const received = TypeDictionary[receivedType] ?? receivedType;
9704
+ if (/^[A-Z]/.test(issue2.expected)) {
9705
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
9706
+ }
9707
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
9708
+ }
9709
+ case "invalid_value":
9710
+ if (issue2.values.length === 1)
9711
+ return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
9712
+ return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
9713
+ case "too_big": {
9714
+ const adj = issue2.inclusive ? "<=" : "<";
9715
+ const sizing = getSizing(issue2.origin);
9716
+ if (sizing)
9717
+ return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
9718
+ return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
9308
9719
  }
9309
9720
  case "too_small": {
9310
9721
  const adj = issue2.inclusive ? ">=" : ">";
@@ -9343,11 +9754,11 @@ var error17 = () => {
9343
9754
  };
9344
9755
  function hu_default() {
9345
9756
  return {
9346
- localeError: error17()
9757
+ localeError: error19()
9347
9758
  };
9348
9759
  }
9349
9760
 
9350
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
9761
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hy.js
9351
9762
  function getArmenianPlural(count, one, many) {
9352
9763
  return Math.abs(count) === 1 ? one : many;
9353
9764
  }
@@ -9358,7 +9769,7 @@ function withDefiniteArticle(word) {
9358
9769
  const lastChar = word[word.length - 1];
9359
9770
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
9360
9771
  }
9361
- var error18 = () => {
9772
+ var error20 = () => {
9362
9773
  const Sizable = {
9363
9774
  string: {
9364
9775
  unit: {
@@ -9491,12 +9902,12 @@ var error18 = () => {
9491
9902
  };
9492
9903
  function hy_default() {
9493
9904
  return {
9494
- localeError: error18()
9905
+ localeError: error20()
9495
9906
  };
9496
9907
  }
9497
9908
 
9498
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
9499
- var error19 = () => {
9909
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/id.js
9910
+ var error21 = () => {
9500
9911
  const Sizable = {
9501
9912
  string: { unit: "karakter", verb: "memiliki" },
9502
9913
  file: { unit: "byte", verb: "memiliki" },
@@ -9598,12 +10009,12 @@ var error19 = () => {
9598
10009
  };
9599
10010
  function id_default() {
9600
10011
  return {
9601
- localeError: error19()
10012
+ localeError: error21()
9602
10013
  };
9603
10014
  }
9604
10015
 
9605
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
9606
- var error20 = () => {
10016
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/is.js
10017
+ var error22 = () => {
9607
10018
  const Sizable = {
9608
10019
  string: { unit: "stafi", verb: "a\xF0 hafa" },
9609
10020
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -9708,12 +10119,12 @@ var error20 = () => {
9708
10119
  };
9709
10120
  function is_default() {
9710
10121
  return {
9711
- localeError: error20()
10122
+ localeError: error22()
9712
10123
  };
9713
10124
  }
9714
10125
 
9715
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
9716
- var error21 = () => {
10126
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/it.js
10127
+ var error23 = () => {
9717
10128
  const Sizable = {
9718
10129
  string: { unit: "caratteri", verb: "avere" },
9719
10130
  file: { unit: "byte", verb: "avere" },
@@ -9798,7 +10209,7 @@ var error21 = () => {
9798
10209
  return `Stringa non valida: deve includere "${_issue.includes}"`;
9799
10210
  if (_issue.format === "regex")
9800
10211
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
9801
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
10212
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
9802
10213
  }
9803
10214
  case "not_multiple_of":
9804
10215
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -9817,12 +10228,12 @@ var error21 = () => {
9817
10228
  };
9818
10229
  function it_default() {
9819
10230
  return {
9820
- localeError: error21()
10231
+ localeError: error23()
9821
10232
  };
9822
10233
  }
9823
10234
 
9824
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
9825
- var error22 = () => {
10235
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ja.js
10236
+ var error24 = () => {
9826
10237
  const Sizable = {
9827
10238
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
9828
10239
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -9925,12 +10336,12 @@ var error22 = () => {
9925
10336
  };
9926
10337
  function ja_default() {
9927
10338
  return {
9928
- localeError: error22()
10339
+ localeError: error24()
9929
10340
  };
9930
10341
  }
9931
10342
 
9932
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
9933
- var error23 = () => {
10343
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ka.js
10344
+ var error25 = () => {
9934
10345
  const Sizable = {
9935
10346
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
9936
10347
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -9963,9 +10374,9 @@ var error23 = () => {
9963
10374
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
9964
10375
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
9965
10376
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
9966
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
9967
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
9968
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
10377
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
10378
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
10379
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
9969
10380
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
9970
10381
  jwt: "JWT",
9971
10382
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -9973,7 +10384,7 @@ var error23 = () => {
9973
10384
  const TypeDictionary = {
9974
10385
  nan: "NaN",
9975
10386
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
9976
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
10387
+ string: "\u10D5\u10D4\u10DA\u10D8",
9977
10388
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
9978
10389
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
9979
10390
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -10011,14 +10422,14 @@ var error23 = () => {
10011
10422
  case "invalid_format": {
10012
10423
  const _issue = issue2;
10013
10424
  if (_issue.format === "starts_with") {
10014
- 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`;
10425
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
10015
10426
  }
10016
10427
  if (_issue.format === "ends_with")
10017
- 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`;
10428
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
10018
10429
  if (_issue.format === "includes")
10019
- 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`;
10430
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
10020
10431
  if (_issue.format === "regex")
10021
- 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}`;
10432
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\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}`;
10022
10433
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
10023
10434
  }
10024
10435
  case "not_multiple_of":
@@ -10038,12 +10449,12 @@ var error23 = () => {
10038
10449
  };
10039
10450
  function ka_default() {
10040
10451
  return {
10041
- localeError: error23()
10452
+ localeError: error25()
10042
10453
  };
10043
10454
  }
10044
10455
 
10045
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
10046
- var error24 = () => {
10456
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/km.js
10457
+ var error26 = () => {
10047
10458
  const Sizable = {
10048
10459
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
10049
10460
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -10149,17 +10560,17 @@ var error24 = () => {
10149
10560
  };
10150
10561
  function km_default() {
10151
10562
  return {
10152
- localeError: error24()
10563
+ localeError: error26()
10153
10564
  };
10154
10565
  }
10155
10566
 
10156
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
10567
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/kh.js
10157
10568
  function kh_default() {
10158
10569
  return km_default();
10159
10570
  }
10160
10571
 
10161
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
10162
- var error25 = () => {
10572
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ko.js
10573
+ var error27 = () => {
10163
10574
  const Sizable = {
10164
10575
  string: { unit: "\uBB38\uC790", verb: "to have" },
10165
10576
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -10266,11 +10677,11 @@ var error25 = () => {
10266
10677
  };
10267
10678
  function ko_default() {
10268
10679
  return {
10269
- localeError: error25()
10680
+ localeError: error27()
10270
10681
  };
10271
10682
  }
10272
10683
 
10273
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
10684
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/lt.js
10274
10685
  var capitalizeFirstCharacter = (text) => {
10275
10686
  return text.charAt(0).toUpperCase() + text.slice(1);
10276
10687
  };
@@ -10284,7 +10695,7 @@ function getUnitTypeFromNumber(number4) {
10284
10695
  return "one";
10285
10696
  return "few";
10286
10697
  }
10287
- var error26 = () => {
10698
+ var error28 = () => {
10288
10699
  const Sizable = {
10289
10700
  string: {
10290
10701
  unit: {
@@ -10470,12 +10881,12 @@ var error26 = () => {
10470
10881
  };
10471
10882
  function lt_default() {
10472
10883
  return {
10473
- localeError: error26()
10884
+ localeError: error28()
10474
10885
  };
10475
10886
  }
10476
10887
 
10477
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
10478
- var error27 = () => {
10888
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/mk.js
10889
+ var error29 = () => {
10479
10890
  const Sizable = {
10480
10891
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
10481
10892
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -10580,12 +10991,12 @@ var error27 = () => {
10580
10991
  };
10581
10992
  function mk_default() {
10582
10993
  return {
10583
- localeError: error27()
10994
+ localeError: error29()
10584
10995
  };
10585
10996
  }
10586
10997
 
10587
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
10588
- var error28 = () => {
10998
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ms.js
10999
+ var error30 = () => {
10589
11000
  const Sizable = {
10590
11001
  string: { unit: "aksara", verb: "mempunyai" },
10591
11002
  file: { unit: "bait", verb: "mempunyai" },
@@ -10688,12 +11099,12 @@ var error28 = () => {
10688
11099
  };
10689
11100
  function ms_default() {
10690
11101
  return {
10691
- localeError: error28()
11102
+ localeError: error30()
10692
11103
  };
10693
11104
  }
10694
11105
 
10695
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
10696
- var error29 = () => {
11106
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/nl.js
11107
+ var error31 = () => {
10697
11108
  const Sizable = {
10698
11109
  string: { unit: "tekens", verb: "heeft" },
10699
11110
  file: { unit: "bytes", verb: "heeft" },
@@ -10799,12 +11210,12 @@ var error29 = () => {
10799
11210
  };
10800
11211
  function nl_default() {
10801
11212
  return {
10802
- localeError: error29()
11213
+ localeError: error31()
10803
11214
  };
10804
11215
  }
10805
11216
 
10806
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
10807
- var error30 = () => {
11217
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/no.js
11218
+ var error32 = () => {
10808
11219
  const Sizable = {
10809
11220
  string: { unit: "tegn", verb: "\xE5 ha" },
10810
11221
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -10908,12 +11319,12 @@ var error30 = () => {
10908
11319
  };
10909
11320
  function no_default() {
10910
11321
  return {
10911
- localeError: error30()
11322
+ localeError: error32()
10912
11323
  };
10913
11324
  }
10914
11325
 
10915
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
10916
- var error31 = () => {
11326
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ota.js
11327
+ var error33 = () => {
10917
11328
  const Sizable = {
10918
11329
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
10919
11330
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -11018,12 +11429,12 @@ var error31 = () => {
11018
11429
  };
11019
11430
  function ota_default() {
11020
11431
  return {
11021
- localeError: error31()
11432
+ localeError: error33()
11022
11433
  };
11023
11434
  }
11024
11435
 
11025
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
11026
- var error32 = () => {
11436
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ps.js
11437
+ var error34 = () => {
11027
11438
  const Sizable = {
11028
11439
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
11029
11440
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -11133,12 +11544,12 @@ var error32 = () => {
11133
11544
  };
11134
11545
  function ps_default() {
11135
11546
  return {
11136
- localeError: error32()
11547
+ localeError: error34()
11137
11548
  };
11138
11549
  }
11139
11550
 
11140
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
11141
- var error33 = () => {
11551
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pl.js
11552
+ var error35 = () => {
11142
11553
  const Sizable = {
11143
11554
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
11144
11555
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -11243,12 +11654,12 @@ var error33 = () => {
11243
11654
  };
11244
11655
  function pl_default() {
11245
11656
  return {
11246
- localeError: error33()
11657
+ localeError: error35()
11247
11658
  };
11248
11659
  }
11249
11660
 
11250
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
11251
- var error34 = () => {
11661
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pt.js
11662
+ var error36 = () => {
11252
11663
  const Sizable = {
11253
11664
  string: { unit: "caracteres", verb: "ter" },
11254
11665
  file: { unit: "bytes", verb: "ter" },
@@ -11352,11 +11763,131 @@ var error34 = () => {
11352
11763
  };
11353
11764
  function pt_default() {
11354
11765
  return {
11355
- localeError: error34()
11766
+ localeError: error36()
11767
+ };
11768
+ }
11769
+
11770
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
11771
+ var error37 = () => {
11772
+ const Sizable = {
11773
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
11774
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
11775
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
11776
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
11777
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
11778
+ };
11779
+ function getSizing(origin) {
11780
+ return Sizable[origin] ?? null;
11781
+ }
11782
+ const FormatDictionary = {
11783
+ regex: "intrare",
11784
+ email: "adres\u0103 de email",
11785
+ url: "URL",
11786
+ emoji: "emoji",
11787
+ uuid: "UUID",
11788
+ uuidv4: "UUIDv4",
11789
+ uuidv6: "UUIDv6",
11790
+ nanoid: "nanoid",
11791
+ guid: "GUID",
11792
+ cuid: "cuid",
11793
+ cuid2: "cuid2",
11794
+ ulid: "ULID",
11795
+ xid: "XID",
11796
+ ksuid: "KSUID",
11797
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
11798
+ date: "dat\u0103 ISO",
11799
+ time: "or\u0103 ISO",
11800
+ duration: "durat\u0103 ISO",
11801
+ ipv4: "adres\u0103 IPv4",
11802
+ ipv6: "adres\u0103 IPv6",
11803
+ mac: "adres\u0103 MAC",
11804
+ cidrv4: "interval IPv4",
11805
+ cidrv6: "interval IPv6",
11806
+ base64: "\u0219ir codat base64",
11807
+ base64url: "\u0219ir codat base64url",
11808
+ json_string: "\u0219ir JSON",
11809
+ e164: "num\u0103r E.164",
11810
+ jwt: "JWT",
11811
+ template_literal: "intrare"
11812
+ };
11813
+ const TypeDictionary = {
11814
+ nan: "NaN",
11815
+ string: "\u0219ir",
11816
+ number: "num\u0103r",
11817
+ boolean: "boolean",
11818
+ function: "func\u021Bie",
11819
+ array: "matrice",
11820
+ object: "obiect",
11821
+ undefined: "nedefinit",
11822
+ symbol: "simbol",
11823
+ bigint: "num\u0103r mare",
11824
+ void: "void",
11825
+ never: "never",
11826
+ map: "hart\u0103",
11827
+ set: "set"
11828
+ };
11829
+ return (issue2) => {
11830
+ switch (issue2.code) {
11831
+ case "invalid_type": {
11832
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
11833
+ const receivedType = parsedType(issue2.input);
11834
+ const received = TypeDictionary[receivedType] ?? receivedType;
11835
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
11836
+ }
11837
+ case "invalid_value":
11838
+ if (issue2.values.length === 1)
11839
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
11840
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
11841
+ case "too_big": {
11842
+ const adj = issue2.inclusive ? "<=" : "<";
11843
+ const sizing = getSizing(issue2.origin);
11844
+ if (sizing)
11845
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
11846
+ return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
11847
+ }
11848
+ case "too_small": {
11849
+ const adj = issue2.inclusive ? ">=" : ">";
11850
+ const sizing = getSizing(issue2.origin);
11851
+ if (sizing) {
11852
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
11853
+ }
11854
+ return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
11855
+ }
11856
+ case "invalid_format": {
11857
+ const _issue = issue2;
11858
+ if (_issue.format === "starts_with") {
11859
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
11860
+ }
11861
+ if (_issue.format === "ends_with")
11862
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
11863
+ if (_issue.format === "includes")
11864
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
11865
+ if (_issue.format === "regex")
11866
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
11867
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
11868
+ }
11869
+ case "not_multiple_of":
11870
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
11871
+ case "unrecognized_keys":
11872
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
11873
+ case "invalid_key":
11874
+ return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
11875
+ case "invalid_union":
11876
+ return "Intrare invalid\u0103";
11877
+ case "invalid_element":
11878
+ return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
11879
+ default:
11880
+ return `Intrare invalid\u0103`;
11881
+ }
11882
+ };
11883
+ };
11884
+ function ro_default() {
11885
+ return {
11886
+ localeError: error37()
11356
11887
  };
11357
11888
  }
11358
11889
 
11359
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
11890
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ru.js
11360
11891
  function getRussianPlural(count, one, few, many) {
11361
11892
  const absCount = Math.abs(count);
11362
11893
  const lastDigit = absCount % 10;
@@ -11372,7 +11903,7 @@ function getRussianPlural(count, one, few, many) {
11372
11903
  }
11373
11904
  return many;
11374
11905
  }
11375
- var error35 = () => {
11906
+ var error38 = () => {
11376
11907
  const Sizable = {
11377
11908
  string: {
11378
11909
  unit: {
@@ -11509,12 +12040,12 @@ var error35 = () => {
11509
12040
  };
11510
12041
  function ru_default() {
11511
12042
  return {
11512
- localeError: error35()
12043
+ localeError: error38()
11513
12044
  };
11514
12045
  }
11515
12046
 
11516
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
11517
- var error36 = () => {
12047
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sl.js
12048
+ var error39 = () => {
11518
12049
  const Sizable = {
11519
12050
  string: { unit: "znakov", verb: "imeti" },
11520
12051
  file: { unit: "bajtov", verb: "imeti" },
@@ -11619,12 +12150,12 @@ var error36 = () => {
11619
12150
  };
11620
12151
  function sl_default() {
11621
12152
  return {
11622
- localeError: error36()
12153
+ localeError: error39()
11623
12154
  };
11624
12155
  }
11625
12156
 
11626
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
11627
- var error37 = () => {
12157
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sv.js
12158
+ var error40 = () => {
11628
12159
  const Sizable = {
11629
12160
  string: { unit: "tecken", verb: "att ha" },
11630
12161
  file: { unit: "bytes", verb: "att ha" },
@@ -11730,12 +12261,12 @@ var error37 = () => {
11730
12261
  };
11731
12262
  function sv_default() {
11732
12263
  return {
11733
- localeError: error37()
12264
+ localeError: error40()
11734
12265
  };
11735
12266
  }
11736
12267
 
11737
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
11738
- var error38 = () => {
12268
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ta.js
12269
+ var error41 = () => {
11739
12270
  const Sizable = {
11740
12271
  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" },
11741
12272
  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" },
@@ -11841,12 +12372,12 @@ var error38 = () => {
11841
12372
  };
11842
12373
  function ta_default() {
11843
12374
  return {
11844
- localeError: error38()
12375
+ localeError: error41()
11845
12376
  };
11846
12377
  }
11847
12378
 
11848
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
11849
- var error39 = () => {
12379
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/th.js
12380
+ var error42 = () => {
11850
12381
  const Sizable = {
11851
12382
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
11852
12383
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -11952,12 +12483,12 @@ var error39 = () => {
11952
12483
  };
11953
12484
  function th_default() {
11954
12485
  return {
11955
- localeError: error39()
12486
+ localeError: error42()
11956
12487
  };
11957
12488
  }
11958
12489
 
11959
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
11960
- var error40 = () => {
12490
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/tr.js
12491
+ var error43 = () => {
11961
12492
  const Sizable = {
11962
12493
  string: { unit: "karakter", verb: "olmal\u0131" },
11963
12494
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -12058,12 +12589,12 @@ var error40 = () => {
12058
12589
  };
12059
12590
  function tr_default() {
12060
12591
  return {
12061
- localeError: error40()
12592
+ localeError: error43()
12062
12593
  };
12063
12594
  }
12064
12595
 
12065
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
12066
- var error41 = () => {
12596
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uk.js
12597
+ var error44 = () => {
12067
12598
  const Sizable = {
12068
12599
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
12069
12600
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -12167,17 +12698,17 @@ var error41 = () => {
12167
12698
  };
12168
12699
  function uk_default() {
12169
12700
  return {
12170
- localeError: error41()
12701
+ localeError: error44()
12171
12702
  };
12172
12703
  }
12173
12704
 
12174
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
12705
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ua.js
12175
12706
  function ua_default() {
12176
12707
  return uk_default();
12177
12708
  }
12178
12709
 
12179
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
12180
- var error42 = () => {
12710
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ur.js
12711
+ var error45 = () => {
12181
12712
  const Sizable = {
12182
12713
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
12183
12714
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -12283,17 +12814,18 @@ var error42 = () => {
12283
12814
  };
12284
12815
  function ur_default() {
12285
12816
  return {
12286
- localeError: error42()
12817
+ localeError: error45()
12287
12818
  };
12288
12819
  }
12289
12820
 
12290
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
12291
- var error43 = () => {
12821
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uz.js
12822
+ var error46 = () => {
12292
12823
  const Sizable = {
12293
12824
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
12294
12825
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
12295
12826
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
12296
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
12827
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
12828
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
12297
12829
  };
12298
12830
  function getSizing(origin) {
12299
12831
  return Sizable[origin] ?? null;
@@ -12393,12 +12925,12 @@ var error43 = () => {
12393
12925
  };
12394
12926
  function uz_default() {
12395
12927
  return {
12396
- localeError: error43()
12928
+ localeError: error46()
12397
12929
  };
12398
12930
  }
12399
12931
 
12400
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
12401
- var error44 = () => {
12932
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/vi.js
12933
+ var error47 = () => {
12402
12934
  const Sizable = {
12403
12935
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
12404
12936
  file: { unit: "byte", verb: "c\xF3" },
@@ -12502,12 +13034,12 @@ var error44 = () => {
12502
13034
  };
12503
13035
  function vi_default() {
12504
13036
  return {
12505
- localeError: error44()
13037
+ localeError: error47()
12506
13038
  };
12507
13039
  }
12508
13040
 
12509
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
12510
- var error45 = () => {
13041
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
13042
+ var error48 = () => {
12511
13043
  const Sizable = {
12512
13044
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
12513
13045
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -12612,12 +13144,12 @@ var error45 = () => {
12612
13144
  };
12613
13145
  function zh_CN_default() {
12614
13146
  return {
12615
- localeError: error45()
13147
+ localeError: error48()
12616
13148
  };
12617
13149
  }
12618
13150
 
12619
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
12620
- var error46 = () => {
13151
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
13152
+ var error49 = () => {
12621
13153
  const Sizable = {
12622
13154
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
12623
13155
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -12720,12 +13252,12 @@ var error46 = () => {
12720
13252
  };
12721
13253
  function zh_TW_default() {
12722
13254
  return {
12723
- localeError: error46()
13255
+ localeError: error49()
12724
13256
  };
12725
13257
  }
12726
13258
 
12727
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
12728
- var error47 = () => {
13259
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/yo.js
13260
+ var error50 = () => {
12729
13261
  const Sizable = {
12730
13262
  string: { unit: "\xE0mi", verb: "n\xED" },
12731
13263
  file: { unit: "bytes", verb: "n\xED" },
@@ -12828,14 +13360,14 @@ var error47 = () => {
12828
13360
  };
12829
13361
  function yo_default() {
12830
13362
  return {
12831
- localeError: error47()
13363
+ localeError: error50()
12832
13364
  };
12833
13365
  }
12834
13366
 
12835
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
12836
- var _a;
12837
- var $output = Symbol("ZodOutput");
12838
- var $input = Symbol("ZodInput");
13367
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/registries.js
13368
+ var _a2;
13369
+ var $output = /* @__PURE__ */ Symbol("ZodOutput");
13370
+ var $input = /* @__PURE__ */ Symbol("ZodInput");
12839
13371
  var $ZodRegistry = class {
12840
13372
  constructor() {
12841
13373
  this._map = /* @__PURE__ */ new WeakMap();
@@ -12879,10 +13411,10 @@ var $ZodRegistry = class {
12879
13411
  function registry() {
12880
13412
  return new $ZodRegistry();
12881
13413
  }
12882
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
13414
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
12883
13415
  var globalRegistry = globalThis.__zod_globalRegistry;
12884
13416
 
12885
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
13417
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
12886
13418
  // @__NO_SIDE_EFFECTS__
12887
13419
  function _string(Class2, params) {
12888
13420
  return new Class2({
@@ -13797,7 +14329,7 @@ function _refine(Class2, fn, _params) {
13797
14329
  return schema;
13798
14330
  }
13799
14331
  // @__NO_SIDE_EFFECTS__
13800
- function _superRefine(fn) {
14332
+ function _superRefine(fn, params) {
13801
14333
  const ch = /* @__PURE__ */ _check((payload) => {
13802
14334
  payload.addIssue = (issue2) => {
13803
14335
  if (typeof issue2 === "string") {
@@ -13814,7 +14346,7 @@ function _superRefine(fn) {
13814
14346
  }
13815
14347
  };
13816
14348
  return fn(payload.value, payload);
13817
- });
14349
+ }, params);
13818
14350
  return ch;
13819
14351
  }
13820
14352
  // @__NO_SIDE_EFFECTS__
@@ -13921,7 +14453,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
13921
14453
  return inst;
13922
14454
  }
13923
14455
 
13924
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
14456
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
13925
14457
  function initializeContext(params) {
13926
14458
  let target = params?.target ?? "draft-2020-12";
13927
14459
  if (target === "draft-4")
@@ -13944,7 +14476,7 @@ function initializeContext(params) {
13944
14476
  };
13945
14477
  }
13946
14478
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
13947
- var _a2;
14479
+ var _a3;
13948
14480
  const def = schema._zod.def;
13949
14481
  const seen = ctx.seen.get(schema);
13950
14482
  if (seen) {
@@ -13991,8 +14523,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
13991
14523
  delete result.schema.examples;
13992
14524
  delete result.schema.default;
13993
14525
  }
13994
- if (ctx.io === "input" && result.schema._prefault)
13995
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
14526
+ if (ctx.io === "input" && "_prefault" in result.schema)
14527
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
13996
14528
  delete result.schema._prefault;
13997
14529
  const _result = ctx.seen.get(schema);
13998
14530
  return _result.schema;
@@ -14173,10 +14705,15 @@ function finalize(ctx, schema) {
14173
14705
  result.$id = ctx.external.uri(id);
14174
14706
  }
14175
14707
  Object.assign(result, root.def ?? root.schema);
14708
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
14709
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
14710
+ delete result.id;
14176
14711
  const defs = ctx.external?.defs ?? {};
14177
14712
  for (const entry of ctx.seen.entries()) {
14178
14713
  const seen = entry[1];
14179
14714
  if (seen.def && seen.defId) {
14715
+ if (seen.def.id === seen.defId)
14716
+ delete seen.def.id;
14180
14717
  defs[seen.defId] = seen.def;
14181
14718
  }
14182
14719
  }
@@ -14232,6 +14769,8 @@ function isTransforming(_schema, _ctx) {
14232
14769
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
14233
14770
  }
14234
14771
  if (def.type === "pipe") {
14772
+ if (_schema._zod.traits.has("$ZodCodec"))
14773
+ return true;
14235
14774
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
14236
14775
  }
14237
14776
  if (def.type === "object") {
@@ -14273,7 +14812,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
14273
14812
  return finalize(ctx, schema);
14274
14813
  };
14275
14814
 
14276
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
14815
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
14277
14816
  var formatMap = {
14278
14817
  guid: "uuid",
14279
14818
  url: "uri",
@@ -14321,39 +14860,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
14321
14860
  json2.type = "integer";
14322
14861
  else
14323
14862
  json2.type = "number";
14324
- if (typeof exclusiveMinimum === "number") {
14325
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
14863
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
14864
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
14865
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
14866
+ if (exMin) {
14867
+ if (legacy) {
14326
14868
  json2.minimum = exclusiveMinimum;
14327
14869
  json2.exclusiveMinimum = true;
14328
14870
  } else {
14329
14871
  json2.exclusiveMinimum = exclusiveMinimum;
14330
14872
  }
14331
- }
14332
- if (typeof minimum === "number") {
14873
+ } else if (typeof minimum === "number") {
14333
14874
  json2.minimum = minimum;
14334
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
14335
- if (exclusiveMinimum >= minimum)
14336
- delete json2.minimum;
14337
- else
14338
- delete json2.exclusiveMinimum;
14339
- }
14340
14875
  }
14341
- if (typeof exclusiveMaximum === "number") {
14342
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
14876
+ if (exMax) {
14877
+ if (legacy) {
14343
14878
  json2.maximum = exclusiveMaximum;
14344
14879
  json2.exclusiveMaximum = true;
14345
14880
  } else {
14346
14881
  json2.exclusiveMaximum = exclusiveMaximum;
14347
14882
  }
14348
- }
14349
- if (typeof maximum === "number") {
14883
+ } else if (typeof maximum === "number") {
14350
14884
  json2.maximum = maximum;
14351
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
14352
- if (exclusiveMaximum <= maximum)
14353
- delete json2.maximum;
14354
- else
14355
- delete json2.exclusiveMaximum;
14356
- }
14357
14885
  }
14358
14886
  if (typeof multipleOf === "number")
14359
14887
  json2.multipleOf = multipleOf;
@@ -14525,7 +15053,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
14525
15053
  if (typeof maximum === "number")
14526
15054
  json2.maxItems = maximum;
14527
15055
  json2.type = "array";
14528
- json2.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
15056
+ json2.items = process2(def.element, ctx, {
15057
+ ...params,
15058
+ path: [...params.path, "items"]
15059
+ });
14529
15060
  };
14530
15061
  var objectProcessor = (schema, ctx, _json, params) => {
14531
15062
  const json2 = _json;
@@ -14718,7 +15249,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
14718
15249
  };
14719
15250
  var pipeProcessor = (schema, ctx, _json, params) => {
14720
15251
  const def = schema._zod.def;
14721
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
15252
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
15253
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
14722
15254
  process2(innerType, ctx, params);
14723
15255
  const seen = ctx.seen.get(schema);
14724
15256
  seen.ref = innerType;
@@ -14824,7 +15356,7 @@ function toJSONSchema(input, params) {
14824
15356
  return finalize(ctx, input);
14825
15357
  }
14826
15358
 
14827
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
15359
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
14828
15360
  var JSONSchemaGenerator = class {
14829
15361
  /** @deprecated Access via ctx instead */
14830
15362
  get metadataRegistry() {
@@ -14899,10 +15431,10 @@ var JSONSchemaGenerator = class {
14899
15431
  }
14900
15432
  };
14901
15433
 
14902
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
15434
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
14903
15435
  var json_schema_exports = {};
14904
15436
 
14905
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
15437
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
14906
15438
  var schemas_exports2 = {};
14907
15439
  __export(schemas_exports2, {
14908
15440
  ZodAny: () => ZodAny,
@@ -14952,6 +15484,7 @@ __export(schemas_exports2, {
14952
15484
  ZodOptional: () => ZodOptional,
14953
15485
  ZodPipe: () => ZodPipe,
14954
15486
  ZodPrefault: () => ZodPrefault,
15487
+ ZodPreprocess: () => ZodPreprocess,
14955
15488
  ZodPromise: () => ZodPromise,
14956
15489
  ZodReadonly: () => ZodReadonly,
14957
15490
  ZodRecord: () => ZodRecord,
@@ -15012,6 +15545,7 @@ __export(schemas_exports2, {
15012
15545
  int32: () => int32,
15013
15546
  int64: () => int64,
15014
15547
  intersection: () => intersection,
15548
+ invertCodec: () => invertCodec,
15015
15549
  ipv4: () => ipv42,
15016
15550
  ipv6: () => ipv62,
15017
15551
  json: () => json,
@@ -15071,7 +15605,7 @@ __export(schemas_exports2, {
15071
15605
  xor: () => xor
15072
15606
  });
15073
15607
 
15074
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
15608
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/checks.js
15075
15609
  var checks_exports2 = {};
15076
15610
  __export(checks_exports2, {
15077
15611
  endsWith: () => _endsWith,
@@ -15105,7 +15639,7 @@ __export(checks_exports2, {
15105
15639
  uppercase: () => _uppercase
15106
15640
  });
15107
15641
 
15108
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
15642
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
15109
15643
  var iso_exports = {};
15110
15644
  __export(iso_exports, {
15111
15645
  ZodISODate: () => ZodISODate,
@@ -15146,7 +15680,7 @@ function duration2(params) {
15146
15680
  return _isoDuration(ZodISODuration, params);
15147
15681
  }
15148
15682
 
15149
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
15683
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/errors.js
15150
15684
  var initializer2 = (inst, issues) => {
15151
15685
  $ZodError.init(inst, issues);
15152
15686
  inst.name = "ZodError";
@@ -15181,12 +15715,12 @@ var initializer2 = (inst, issues) => {
15181
15715
  }
15182
15716
  });
15183
15717
  };
15184
- var ZodError = $constructor("ZodError", initializer2);
15185
- var ZodRealError = $constructor("ZodError", initializer2, {
15718
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
15719
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
15186
15720
  Parent: Error
15187
15721
  });
15188
15722
 
15189
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
15723
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/parse.js
15190
15724
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
15191
15725
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
15192
15726
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -15200,7 +15734,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
15200
15734
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
15201
15735
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
15202
15736
 
15203
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
15737
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
15738
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
15739
+ function _installLazyMethods(inst, group, methods) {
15740
+ const proto = Object.getPrototypeOf(inst);
15741
+ let installed = _installedGroups.get(proto);
15742
+ if (!installed) {
15743
+ installed = /* @__PURE__ */ new Set();
15744
+ _installedGroups.set(proto, installed);
15745
+ }
15746
+ if (installed.has(group))
15747
+ return;
15748
+ installed.add(group);
15749
+ for (const key in methods) {
15750
+ const fn = methods[key];
15751
+ Object.defineProperty(proto, key, {
15752
+ configurable: true,
15753
+ enumerable: false,
15754
+ get() {
15755
+ const bound = fn.bind(this);
15756
+ Object.defineProperty(this, key, {
15757
+ configurable: true,
15758
+ writable: true,
15759
+ enumerable: true,
15760
+ value: bound
15761
+ });
15762
+ return bound;
15763
+ },
15764
+ set(v) {
15765
+ Object.defineProperty(this, key, {
15766
+ configurable: true,
15767
+ writable: true,
15768
+ enumerable: true,
15769
+ value: v
15770
+ });
15771
+ }
15772
+ });
15773
+ }
15774
+ }
15204
15775
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
15205
15776
  $ZodType.init(inst, def);
15206
15777
  Object.assign(inst["~standard"], {
@@ -15213,23 +15784,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
15213
15784
  inst.def = def;
15214
15785
  inst.type = def.type;
15215
15786
  Object.defineProperty(inst, "_def", { value: def });
15216
- inst.check = (...checks) => {
15217
- return inst.clone(util_exports.mergeDefs(def, {
15218
- checks: [
15219
- ...def.checks ?? [],
15220
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
15221
- ]
15222
- }), {
15223
- parent: true
15224
- });
15225
- };
15226
- inst.with = inst.check;
15227
- inst.clone = (def2, params) => clone(inst, def2, params);
15228
- inst.brand = () => inst;
15229
- inst.register = ((reg, meta3) => {
15230
- reg.add(inst, meta3);
15231
- return inst;
15232
- });
15233
15787
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
15234
15788
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
15235
15789
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -15243,45 +15797,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
15243
15797
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
15244
15798
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
15245
15799
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
15246
- inst.refine = (check3, params) => inst.check(refine(check3, params));
15247
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
15248
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
15249
- inst.optional = () => optional(inst);
15250
- inst.exactOptional = () => exactOptional(inst);
15251
- inst.nullable = () => nullable(inst);
15252
- inst.nullish = () => optional(nullable(inst));
15253
- inst.nonoptional = (params) => nonoptional(inst, params);
15254
- inst.array = () => array(inst);
15255
- inst.or = (arg) => union([inst, arg]);
15256
- inst.and = (arg) => intersection(inst, arg);
15257
- inst.transform = (tx) => pipe(inst, transform(tx));
15258
- inst.default = (def2) => _default2(inst, def2);
15259
- inst.prefault = (def2) => prefault(inst, def2);
15260
- inst.catch = (params) => _catch2(inst, params);
15261
- inst.pipe = (target) => pipe(inst, target);
15262
- inst.readonly = () => readonly(inst);
15263
- inst.describe = (description) => {
15264
- const cl = inst.clone();
15265
- globalRegistry.add(cl, { description });
15266
- return cl;
15267
- };
15800
+ _installLazyMethods(inst, "ZodType", {
15801
+ check(...chks) {
15802
+ const def2 = this.def;
15803
+ return this.clone(util_exports.mergeDefs(def2, {
15804
+ checks: [
15805
+ ...def2.checks ?? [],
15806
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
15807
+ ]
15808
+ }), { parent: true });
15809
+ },
15810
+ with(...chks) {
15811
+ return this.check(...chks);
15812
+ },
15813
+ clone(def2, params) {
15814
+ return clone(this, def2, params);
15815
+ },
15816
+ brand() {
15817
+ return this;
15818
+ },
15819
+ register(reg, meta3) {
15820
+ reg.add(this, meta3);
15821
+ return this;
15822
+ },
15823
+ refine(check3, params) {
15824
+ return this.check(refine(check3, params));
15825
+ },
15826
+ superRefine(refinement, params) {
15827
+ return this.check(superRefine(refinement, params));
15828
+ },
15829
+ overwrite(fn) {
15830
+ return this.check(_overwrite(fn));
15831
+ },
15832
+ optional() {
15833
+ return optional(this);
15834
+ },
15835
+ exactOptional() {
15836
+ return exactOptional(this);
15837
+ },
15838
+ nullable() {
15839
+ return nullable(this);
15840
+ },
15841
+ nullish() {
15842
+ return optional(nullable(this));
15843
+ },
15844
+ nonoptional(params) {
15845
+ return nonoptional(this, params);
15846
+ },
15847
+ array() {
15848
+ return array(this);
15849
+ },
15850
+ or(arg) {
15851
+ return union([this, arg]);
15852
+ },
15853
+ and(arg) {
15854
+ return intersection(this, arg);
15855
+ },
15856
+ transform(tx) {
15857
+ return pipe(this, transform(tx));
15858
+ },
15859
+ default(d) {
15860
+ return _default2(this, d);
15861
+ },
15862
+ prefault(d) {
15863
+ return prefault(this, d);
15864
+ },
15865
+ catch(params) {
15866
+ return _catch2(this, params);
15867
+ },
15868
+ pipe(target) {
15869
+ return pipe(this, target);
15870
+ },
15871
+ readonly() {
15872
+ return readonly(this);
15873
+ },
15874
+ describe(description) {
15875
+ const cl = this.clone();
15876
+ globalRegistry.add(cl, { description });
15877
+ return cl;
15878
+ },
15879
+ meta(...args) {
15880
+ if (args.length === 0)
15881
+ return globalRegistry.get(this);
15882
+ const cl = this.clone();
15883
+ globalRegistry.add(cl, args[0]);
15884
+ return cl;
15885
+ },
15886
+ isOptional() {
15887
+ return this.safeParse(void 0).success;
15888
+ },
15889
+ isNullable() {
15890
+ return this.safeParse(null).success;
15891
+ },
15892
+ apply(fn) {
15893
+ return fn(this);
15894
+ }
15895
+ });
15268
15896
  Object.defineProperty(inst, "description", {
15269
15897
  get() {
15270
15898
  return globalRegistry.get(inst)?.description;
15271
15899
  },
15272
15900
  configurable: true
15273
15901
  });
15274
- inst.meta = (...args) => {
15275
- if (args.length === 0) {
15276
- return globalRegistry.get(inst);
15277
- }
15278
- const cl = inst.clone();
15279
- globalRegistry.add(cl, args[0]);
15280
- return cl;
15281
- };
15282
- inst.isOptional = () => inst.safeParse(void 0).success;
15283
- inst.isNullable = () => inst.safeParse(null).success;
15284
- inst.apply = (fn) => fn(inst);
15285
15902
  return inst;
15286
15903
  });
15287
15904
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -15292,21 +15909,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
15292
15909
  inst.format = bag.format ?? null;
15293
15910
  inst.minLength = bag.minimum ?? null;
15294
15911
  inst.maxLength = bag.maximum ?? null;
15295
- inst.regex = (...args) => inst.check(_regex(...args));
15296
- inst.includes = (...args) => inst.check(_includes(...args));
15297
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
15298
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
15299
- inst.min = (...args) => inst.check(_minLength(...args));
15300
- inst.max = (...args) => inst.check(_maxLength(...args));
15301
- inst.length = (...args) => inst.check(_length(...args));
15302
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
15303
- inst.lowercase = (params) => inst.check(_lowercase(params));
15304
- inst.uppercase = (params) => inst.check(_uppercase(params));
15305
- inst.trim = () => inst.check(_trim());
15306
- inst.normalize = (...args) => inst.check(_normalize(...args));
15307
- inst.toLowerCase = () => inst.check(_toLowerCase());
15308
- inst.toUpperCase = () => inst.check(_toUpperCase());
15309
- inst.slugify = () => inst.check(_slugify());
15912
+ _installLazyMethods(inst, "_ZodString", {
15913
+ regex(...args) {
15914
+ return this.check(_regex(...args));
15915
+ },
15916
+ includes(...args) {
15917
+ return this.check(_includes(...args));
15918
+ },
15919
+ startsWith(...args) {
15920
+ return this.check(_startsWith(...args));
15921
+ },
15922
+ endsWith(...args) {
15923
+ return this.check(_endsWith(...args));
15924
+ },
15925
+ min(...args) {
15926
+ return this.check(_minLength(...args));
15927
+ },
15928
+ max(...args) {
15929
+ return this.check(_maxLength(...args));
15930
+ },
15931
+ length(...args) {
15932
+ return this.check(_length(...args));
15933
+ },
15934
+ nonempty(...args) {
15935
+ return this.check(_minLength(1, ...args));
15936
+ },
15937
+ lowercase(params) {
15938
+ return this.check(_lowercase(params));
15939
+ },
15940
+ uppercase(params) {
15941
+ return this.check(_uppercase(params));
15942
+ },
15943
+ trim() {
15944
+ return this.check(_trim());
15945
+ },
15946
+ normalize(...args) {
15947
+ return this.check(_normalize(...args));
15948
+ },
15949
+ toLowerCase() {
15950
+ return this.check(_toLowerCase());
15951
+ },
15952
+ toUpperCase() {
15953
+ return this.check(_toUpperCase());
15954
+ },
15955
+ slugify() {
15956
+ return this.check(_slugify());
15957
+ }
15958
+ });
15310
15959
  });
15311
15960
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
15312
15961
  $ZodString.init(inst, def);
@@ -15385,7 +16034,7 @@ function url(params) {
15385
16034
  }
15386
16035
  function httpUrl(params) {
15387
16036
  return _url(ZodURL, {
15388
- protocol: /^https?$/,
16037
+ protocol: regexes_exports.httpProtocol,
15389
16038
  hostname: regexes_exports.domain,
15390
16039
  ...util_exports.normalizeParams(params)
15391
16040
  });
@@ -15527,21 +16176,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
15527
16176
  $ZodNumber.init(inst, def);
15528
16177
  ZodType.init(inst, def);
15529
16178
  inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
15530
- inst.gt = (value, params) => inst.check(_gt(value, params));
15531
- inst.gte = (value, params) => inst.check(_gte(value, params));
15532
- inst.min = (value, params) => inst.check(_gte(value, params));
15533
- inst.lt = (value, params) => inst.check(_lt(value, params));
15534
- inst.lte = (value, params) => inst.check(_lte(value, params));
15535
- inst.max = (value, params) => inst.check(_lte(value, params));
15536
- inst.int = (params) => inst.check(int(params));
15537
- inst.safe = (params) => inst.check(int(params));
15538
- inst.positive = (params) => inst.check(_gt(0, params));
15539
- inst.nonnegative = (params) => inst.check(_gte(0, params));
15540
- inst.negative = (params) => inst.check(_lt(0, params));
15541
- inst.nonpositive = (params) => inst.check(_lte(0, params));
15542
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
15543
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
15544
- inst.finite = () => inst;
16179
+ _installLazyMethods(inst, "ZodNumber", {
16180
+ gt(value, params) {
16181
+ return this.check(_gt(value, params));
16182
+ },
16183
+ gte(value, params) {
16184
+ return this.check(_gte(value, params));
16185
+ },
16186
+ min(value, params) {
16187
+ return this.check(_gte(value, params));
16188
+ },
16189
+ lt(value, params) {
16190
+ return this.check(_lt(value, params));
16191
+ },
16192
+ lte(value, params) {
16193
+ return this.check(_lte(value, params));
16194
+ },
16195
+ max(value, params) {
16196
+ return this.check(_lte(value, params));
16197
+ },
16198
+ int(params) {
16199
+ return this.check(int(params));
16200
+ },
16201
+ safe(params) {
16202
+ return this.check(int(params));
16203
+ },
16204
+ positive(params) {
16205
+ return this.check(_gt(0, params));
16206
+ },
16207
+ nonnegative(params) {
16208
+ return this.check(_gte(0, params));
16209
+ },
16210
+ negative(params) {
16211
+ return this.check(_lt(0, params));
16212
+ },
16213
+ nonpositive(params) {
16214
+ return this.check(_lte(0, params));
16215
+ },
16216
+ multipleOf(value, params) {
16217
+ return this.check(_multipleOf(value, params));
16218
+ },
16219
+ step(value, params) {
16220
+ return this.check(_multipleOf(value, params));
16221
+ },
16222
+ finite() {
16223
+ return this;
16224
+ }
16225
+ });
15545
16226
  const bag = inst._zod.bag;
15546
16227
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
15547
16228
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -15688,11 +16369,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
15688
16369
  ZodType.init(inst, def);
15689
16370
  inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
15690
16371
  inst.element = def.element;
15691
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
15692
- inst.nonempty = (params) => inst.check(_minLength(1, params));
15693
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
15694
- inst.length = (len, params) => inst.check(_length(len, params));
15695
- inst.unwrap = () => inst.element;
16372
+ _installLazyMethods(inst, "ZodArray", {
16373
+ min(n, params) {
16374
+ return this.check(_minLength(n, params));
16375
+ },
16376
+ nonempty(params) {
16377
+ return this.check(_minLength(1, params));
16378
+ },
16379
+ max(n, params) {
16380
+ return this.check(_maxLength(n, params));
16381
+ },
16382
+ length(n, params) {
16383
+ return this.check(_length(n, params));
16384
+ },
16385
+ unwrap() {
16386
+ return this.element;
16387
+ }
16388
+ });
15696
16389
  });
15697
16390
  function array(element, params) {
15698
16391
  return _array(ZodArray, element, params);
@@ -15708,23 +16401,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
15708
16401
  util_exports.defineLazy(inst, "shape", () => {
15709
16402
  return def.shape;
15710
16403
  });
15711
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
15712
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
15713
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
15714
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
15715
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
15716
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
15717
- inst.extend = (incoming) => {
15718
- return util_exports.extend(inst, incoming);
15719
- };
15720
- inst.safeExtend = (incoming) => {
15721
- return util_exports.safeExtend(inst, incoming);
15722
- };
15723
- inst.merge = (other) => util_exports.merge(inst, other);
15724
- inst.pick = (mask) => util_exports.pick(inst, mask);
15725
- inst.omit = (mask) => util_exports.omit(inst, mask);
15726
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
15727
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
16404
+ _installLazyMethods(inst, "ZodObject", {
16405
+ keyof() {
16406
+ return _enum2(Object.keys(this._zod.def.shape));
16407
+ },
16408
+ catchall(catchall) {
16409
+ return this.clone({ ...this._zod.def, catchall });
16410
+ },
16411
+ passthrough() {
16412
+ return this.clone({ ...this._zod.def, catchall: unknown() });
16413
+ },
16414
+ loose() {
16415
+ return this.clone({ ...this._zod.def, catchall: unknown() });
16416
+ },
16417
+ strict() {
16418
+ return this.clone({ ...this._zod.def, catchall: never() });
16419
+ },
16420
+ strip() {
16421
+ return this.clone({ ...this._zod.def, catchall: void 0 });
16422
+ },
16423
+ extend(incoming) {
16424
+ return util_exports.extend(this, incoming);
16425
+ },
16426
+ safeExtend(incoming) {
16427
+ return util_exports.safeExtend(this, incoming);
16428
+ },
16429
+ merge(other) {
16430
+ return util_exports.merge(this, other);
16431
+ },
16432
+ pick(mask) {
16433
+ return util_exports.pick(this, mask);
16434
+ },
16435
+ omit(mask) {
16436
+ return util_exports.omit(this, mask);
16437
+ },
16438
+ partial(...args) {
16439
+ return util_exports.partial(ZodOptional, this, args[0]);
16440
+ },
16441
+ required(...args) {
16442
+ return util_exports.required(ZodNonOptional, this, args[0]);
16443
+ }
16444
+ });
15728
16445
  });
15729
16446
  function object(shape, params) {
15730
16447
  const def = {
@@ -15829,6 +16546,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
15829
16546
  inst.valueType = def.valueType;
15830
16547
  });
15831
16548
  function record(keyType, valueType, params) {
16549
+ if (!valueType || !valueType._zod) {
16550
+ return new ZodRecord({
16551
+ type: "record",
16552
+ keyType: string2(),
16553
+ valueType: keyType,
16554
+ ...util_exports.normalizeParams(valueType)
16555
+ });
16556
+ }
15832
16557
  return new ZodRecord({
15833
16558
  type: "record",
15834
16559
  keyType,
@@ -16000,10 +16725,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
16000
16725
  if (output instanceof Promise) {
16001
16726
  return output.then((output2) => {
16002
16727
  payload.value = output2;
16728
+ payload.fallback = true;
16003
16729
  return payload;
16004
16730
  });
16005
16731
  }
16006
16732
  payload.value = output;
16733
+ payload.fallback = true;
16007
16734
  return payload;
16008
16735
  };
16009
16736
  });
@@ -16158,6 +16885,20 @@ function codec(in_, out, params) {
16158
16885
  reverseTransform: params.encode
16159
16886
  });
16160
16887
  }
16888
+ function invertCodec(codec2) {
16889
+ const def = codec2._zod.def;
16890
+ return new ZodCodec({
16891
+ type: "pipe",
16892
+ in: def.out,
16893
+ out: def.in,
16894
+ transform: def.reverseTransform,
16895
+ reverseTransform: def.transform
16896
+ });
16897
+ }
16898
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
16899
+ ZodPipe.init(inst, def);
16900
+ $ZodPreprocess.init(inst, def);
16901
+ });
16161
16902
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
16162
16903
  $ZodReadonly.init(inst, def);
16163
16904
  ZodType.init(inst, def);
@@ -16237,8 +16978,8 @@ function custom(fn, _params) {
16237
16978
  function refine(fn, _params = {}) {
16238
16979
  return _refine(ZodCustom, fn, _params);
16239
16980
  }
16240
- function superRefine(fn) {
16241
- return _superRefine(fn);
16981
+ function superRefine(fn, params) {
16982
+ return _superRefine(fn, params);
16242
16983
  }
16243
16984
  var describe2 = describe;
16244
16985
  var meta2 = meta;
@@ -16276,10 +17017,14 @@ function json(params) {
16276
17017
  return jsonSchema;
16277
17018
  }
16278
17019
  function preprocess(fn, schema) {
16279
- return pipe(transform(fn), schema);
17020
+ return new ZodPreprocess({
17021
+ type: "pipe",
17022
+ in: transform(fn),
17023
+ out: schema
17024
+ });
16280
17025
  }
16281
17026
 
16282
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
17027
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/compat.js
16283
17028
  var ZodIssueCode = {
16284
17029
  invalid_type: "invalid_type",
16285
17030
  too_big: "too_big",
@@ -16305,7 +17050,7 @@ var ZodFirstPartyTypeKind;
16305
17050
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
16306
17051
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
16307
17052
 
16308
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
17053
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
16309
17054
  var z = {
16310
17055
  ...schemas_exports2,
16311
17056
  ...checks_exports2,
@@ -16697,12 +17442,6 @@ function convertBaseSchema(schema, ctx) {
16697
17442
  default:
16698
17443
  throw new Error(`Unsupported type: ${type}`);
16699
17444
  }
16700
- if (schema.description) {
16701
- zodSchema = zodSchema.describe(schema.description);
16702
- }
16703
- if (schema.default !== void 0) {
16704
- zodSchema = zodSchema.default(schema.default);
16705
- }
16706
17445
  return zodSchema;
16707
17446
  }
16708
17447
  function convertSchema(schema, ctx) {
@@ -16739,6 +17478,9 @@ function convertSchema(schema, ctx) {
16739
17478
  if (schema.readOnly === true) {
16740
17479
  baseSchema = z.readonly(baseSchema);
16741
17480
  }
17481
+ if (schema.default !== void 0) {
17482
+ baseSchema = baseSchema.default(schema.default);
17483
+ }
16742
17484
  const extraMeta = {};
16743
17485
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
16744
17486
  for (const key of coreMetadataKeys) {
@@ -16760,26 +17502,35 @@ function convertSchema(schema, ctx) {
16760
17502
  if (Object.keys(extraMeta).length > 0) {
16761
17503
  ctx.registry.add(baseSchema, extraMeta);
16762
17504
  }
17505
+ if (schema.description) {
17506
+ baseSchema = baseSchema.describe(schema.description);
17507
+ }
16763
17508
  return baseSchema;
16764
17509
  }
16765
17510
  function fromJSONSchema(schema, params) {
16766
17511
  if (typeof schema === "boolean") {
16767
17512
  return schema ? z.any() : z.never();
16768
17513
  }
16769
- const version2 = detectVersion(schema, params?.defaultTarget);
16770
- const defs = schema.$defs || schema.definitions || {};
17514
+ let normalized;
17515
+ try {
17516
+ normalized = JSON.parse(JSON.stringify(schema));
17517
+ } catch {
17518
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
17519
+ }
17520
+ const version2 = detectVersion(normalized, params?.defaultTarget);
17521
+ const defs = normalized.$defs || normalized.definitions || {};
16771
17522
  const ctx = {
16772
17523
  version: version2,
16773
17524
  defs,
16774
17525
  refs: /* @__PURE__ */ new Map(),
16775
17526
  processing: /* @__PURE__ */ new Set(),
16776
- rootSchema: schema,
17527
+ rootSchema: normalized,
16777
17528
  registry: params?.registry ?? globalRegistry
16778
17529
  };
16779
- return convertSchema(schema, ctx);
17530
+ return convertSchema(normalized, ctx);
16780
17531
  }
16781
17532
 
16782
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
17533
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
16783
17534
  var coerce_exports = {};
16784
17535
  __export(coerce_exports, {
16785
17536
  bigint: () => bigint3,
@@ -16804,7 +17555,7 @@ function date4(params) {
16804
17555
  return _coercedDate(ZodDate, params);
16805
17556
  }
16806
17557
 
16807
- // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
17558
+ // node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
16808
17559
  config(en_default());
16809
17560
 
16810
17561
  // src/proxy/logger.ts
@@ -16813,8 +17564,8 @@ import { readdir, stat, unlink, appendFile, mkdir } from "node:fs/promises";
16813
17564
  import { writeFileSync, mkdirSync } from "node:fs";
16814
17565
  import path from "node:path";
16815
17566
  var RETENTION_DAYS = Number(process.env["LOG_RETENTION_DAYS"] ?? "7");
16816
- function writeStderrFallback(message, error48) {
16817
- process.stderr.write(`${message} ${String(error48)}
17567
+ function writeStderrFallback(message, error51) {
17568
+ process.stderr.write(`${message} ${String(error51)}
16818
17569
  `);
16819
17570
  }
16820
17571
  function resolveLogDir() {
@@ -17240,7 +17991,7 @@ init_platformCommands();
17240
17991
  var __filename2 = fileURLToPath2(import.meta.url);
17241
17992
  var __dirname2 = dirname2(__filename2);
17242
17993
  var DEFAULT_PORT3 = 9527;
17243
- var LEGACY_ALIAS_PORT = 25947;
17994
+ var LEGACY_ALIAS_PORT = 9527;
17244
17995
  var DEFAULT_UPSTREAM_PORT = 9529;
17245
17996
  var LOCAL_PROBE_TIMEOUT_MS = 2e3;
17246
17997
  var BRANDED_WINDOWS_RUNTIME_EXE = "agent-inspector.exe";