@inline-openclaw/inline 0.0.30 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -18857,6 +18857,9 @@ class WebSocketTransport {
18857
18857
  }
18858
18858
  async reconnect(options) {
18859
18859
  const skipDelay = options?.skipDelay ?? false;
18860
+ if (this.state === "connecting" && this.reconnectionTimer) {
18861
+ return;
18862
+ }
18860
18863
  await this.setConnecting();
18861
18864
  this.cleanUpPreviousConnection();
18862
18865
  this.connectionAttemptNo = this.connectionAttemptNo + 1 >>> 0;
@@ -20222,7 +20225,7 @@ class JsonFileStateStore {
20222
20225
  await rename(tempPath, this.path);
20223
20226
  }
20224
20227
  }
20225
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
20228
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
20226
20229
  var exports_external = {};
20227
20230
  __export(exports_external, {
20228
20231
  xor: () => xor,
@@ -20324,6 +20327,7 @@ __export(exports_external, {
20324
20327
  iso: () => exports_iso,
20325
20328
  ipv6: () => ipv62,
20326
20329
  ipv4: () => ipv42,
20330
+ invertCodec: () => invertCodec,
20327
20331
  intersection: () => intersection,
20328
20332
  int64: () => int64,
20329
20333
  int32: () => int32,
@@ -20402,6 +20406,7 @@ __export(exports_external, {
20402
20406
  ZodRealError: () => ZodRealError,
20403
20407
  ZodReadonly: () => ZodReadonly,
20404
20408
  ZodPromise: () => ZodPromise,
20409
+ ZodPreprocess: () => ZodPreprocess,
20405
20410
  ZodPrefault: () => ZodPrefault,
20406
20411
  ZodPipe: () => ZodPipe,
20407
20412
  ZodOptional: () => ZodOptional,
@@ -20463,7 +20468,7 @@ __export(exports_external, {
20463
20468
  $brand: () => $brand
20464
20469
  });
20465
20470
 
20466
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
20471
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/index.js
20467
20472
  var exports_core2 = {};
20468
20473
  __export(exports_core2, {
20469
20474
  version: () => version,
@@ -20662,6 +20667,7 @@ __export(exports_core2, {
20662
20667
  $ZodRealError: () => $ZodRealError,
20663
20668
  $ZodReadonly: () => $ZodReadonly,
20664
20669
  $ZodPromise: () => $ZodPromise,
20670
+ $ZodPreprocess: () => $ZodPreprocess,
20665
20671
  $ZodPrefault: () => $ZodPrefault,
20666
20672
  $ZodPipe: () => $ZodPipe,
20667
20673
  $ZodOptional: () => $ZodOptional,
@@ -20741,8 +20747,9 @@ __export(exports_core2, {
20741
20747
  $ZodAny: () => $ZodAny
20742
20748
  });
20743
20749
 
20744
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
20745
- var NEVER = Object.freeze({
20750
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
20751
+ var _a;
20752
+ var NEVER = /* @__PURE__ */ Object.freeze({
20746
20753
  status: "aborted"
20747
20754
  });
20748
20755
  function $constructor(name, initializer, params) {
@@ -20777,10 +20784,10 @@ function $constructor(name, initializer, params) {
20777
20784
  }
20778
20785
  Object.defineProperty(Definition, "name", { value: name });
20779
20786
  function _(def) {
20780
- var _a;
20787
+ var _a2;
20781
20788
  const inst = params?.Parent ? new Definition : this;
20782
20789
  init(inst, def);
20783
- (_a = inst._zod).deferred ?? (_a.deferred = []);
20790
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
20784
20791
  for (const fn of inst._zod.deferred) {
20785
20792
  fn();
20786
20793
  }
@@ -20811,13 +20818,14 @@ class $ZodEncodeError extends Error {
20811
20818
  this.name = "ZodEncodeError";
20812
20819
  }
20813
20820
  }
20814
- var globalConfig = {};
20821
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
20822
+ var globalConfig = globalThis.__zod_globalConfig;
20815
20823
  function config(newConfig) {
20816
20824
  if (newConfig)
20817
20825
  Object.assign(globalConfig, newConfig);
20818
20826
  return globalConfig;
20819
20827
  }
20820
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
20828
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
20821
20829
  var exports_util = {};
20822
20830
  __export(exports_util, {
20823
20831
  unwrapMessage: () => unwrapMessage,
@@ -20859,6 +20867,7 @@ __export(exports_util, {
20859
20867
  floatSafeRemainder: () => floatSafeRemainder,
20860
20868
  finalizeIssue: () => finalizeIssue,
20861
20869
  extend: () => extend,
20870
+ explicitlyAborted: () => explicitlyAborted,
20862
20871
  escapeRegex: () => escapeRegex,
20863
20872
  esc: () => esc,
20864
20873
  defineLazy: () => defineLazy,
@@ -20929,21 +20938,14 @@ function cleanRegex(source) {
20929
20938
  return source.slice(start, end);
20930
20939
  }
20931
20940
  function floatSafeRemainder(val, step) {
20932
- const valDecCount = (val.toString().split(".")[1] || "").length;
20933
- const stepString = step.toString();
20934
- let stepDecCount = (stepString.split(".")[1] || "").length;
20935
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
20936
- const match = stepString.match(/\d?e-(\d?)/);
20937
- if (match?.[1]) {
20938
- stepDecCount = Number.parseInt(match[1]);
20939
- }
20940
- }
20941
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
20942
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
20943
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
20944
- return valInt % stepInt / 10 ** decCount;
20945
- }
20946
- var EVALUATING = Symbol("evaluating");
20941
+ const ratio = val / step;
20942
+ const roundedRatio = Math.round(ratio);
20943
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
20944
+ if (Math.abs(ratio - roundedRatio) < tolerance)
20945
+ return 0;
20946
+ return ratio - roundedRatio;
20947
+ }
20948
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
20947
20949
  function defineLazy(object, key, getter) {
20948
20950
  let value = undefined;
20949
20951
  Object.defineProperty(object, key, {
@@ -21021,7 +21023,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
21021
21023
  function isObject(data) {
21022
21024
  return typeof data === "object" && data !== null && !Array.isArray(data);
21023
21025
  }
21024
- var allowsEval = cached2(() => {
21026
+ var allowsEval = /* @__PURE__ */ cached2(() => {
21027
+ if (globalConfig.jitless) {
21028
+ return false;
21029
+ }
21025
21030
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
21026
21031
  return false;
21027
21032
  }
@@ -21054,6 +21059,10 @@ function shallowClone(o) {
21054
21059
  return { ...o };
21055
21060
  if (Array.isArray(o))
21056
21061
  return [...o];
21062
+ if (o instanceof Map)
21063
+ return new Map(o);
21064
+ if (o instanceof Set)
21065
+ return new Set(o);
21057
21066
  return o;
21058
21067
  }
21059
21068
  function numKeys(data) {
@@ -21109,8 +21118,15 @@ var getParsedType = (data) => {
21109
21118
  throw new Error(`Unknown data type: ${t}`);
21110
21119
  }
21111
21120
  };
21112
- var propertyKeyTypes = new Set(["string", "number", "symbol"]);
21113
- var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
21121
+ var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
21122
+ var primitiveTypes = /* @__PURE__ */ new Set([
21123
+ "string",
21124
+ "number",
21125
+ "bigint",
21126
+ "boolean",
21127
+ "symbol",
21128
+ "undefined"
21129
+ ]);
21114
21130
  function escapeRegex(str) {
21115
21131
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
21116
21132
  }
@@ -21279,6 +21295,9 @@ function safeExtend(schema, shape) {
21279
21295
  return clone(schema, def);
21280
21296
  }
21281
21297
  function merge(a, b) {
21298
+ if (a._zod.def.checks?.length) {
21299
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
21300
+ }
21282
21301
  const def = mergeDefs(a._zod.def, {
21283
21302
  get shape() {
21284
21303
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -21288,7 +21307,7 @@ function merge(a, b) {
21288
21307
  get catchall() {
21289
21308
  return b._zod.def.catchall;
21290
21309
  },
21291
- checks: []
21310
+ checks: b._zod.def.checks ?? []
21292
21311
  });
21293
21312
  return clone(a, def);
21294
21313
  }
@@ -21371,10 +21390,20 @@ function aborted(x, startIndex = 0) {
21371
21390
  }
21372
21391
  return false;
21373
21392
  }
21393
+ function explicitlyAborted(x, startIndex = 0) {
21394
+ if (x.aborted === true)
21395
+ return true;
21396
+ for (let i = startIndex;i < x.issues.length; i++) {
21397
+ if (x.issues[i]?.continue === false) {
21398
+ return true;
21399
+ }
21400
+ }
21401
+ return false;
21402
+ }
21374
21403
  function prefixIssues(path, issues) {
21375
21404
  return issues.map((iss) => {
21376
- var _a;
21377
- (_a = iss).path ?? (_a.path = []);
21405
+ var _a2;
21406
+ (_a2 = iss).path ?? (_a2.path = []);
21378
21407
  iss.path.unshift(path);
21379
21408
  return iss;
21380
21409
  });
@@ -21383,17 +21412,14 @@ function unwrapMessage(message) {
21383
21412
  return typeof message === "string" ? message : message?.message;
21384
21413
  }
21385
21414
  function finalizeIssue(iss, ctx, config2) {
21386
- const full = { ...iss, path: iss.path ?? [] };
21387
- if (!iss.message) {
21388
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
21389
- full.message = message;
21415
+ 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";
21416
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
21417
+ rest.path ?? (rest.path = []);
21418
+ rest.message = message;
21419
+ if (ctx?.reportInput) {
21420
+ rest.input = _input;
21390
21421
  }
21391
- delete full.inst;
21392
- delete full.continue;
21393
- if (!ctx?.reportInput) {
21394
- delete full.input;
21395
- }
21396
- return full;
21422
+ return rest;
21397
21423
  }
21398
21424
  function getSizableOrigin(input) {
21399
21425
  if (input instanceof Set)
@@ -21491,7 +21517,7 @@ class Class {
21491
21517
  constructor(..._args) {}
21492
21518
  }
21493
21519
 
21494
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
21520
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
21495
21521
  var initializer = (inst, def) => {
21496
21522
  inst.name = "$ZodError";
21497
21523
  Object.defineProperty(inst, "_zod", {
@@ -21525,30 +21551,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
21525
21551
  }
21526
21552
  function formatError(error, mapper = (issue2) => issue2.message) {
21527
21553
  const fieldErrors = { _errors: [] };
21528
- const processError = (error2) => {
21554
+ const processError = (error2, path = []) => {
21529
21555
  for (const issue2 of error2.issues) {
21530
21556
  if (issue2.code === "invalid_union" && issue2.errors.length) {
21531
- issue2.errors.map((issues) => processError({ issues }));
21557
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
21532
21558
  } else if (issue2.code === "invalid_key") {
21533
- processError({ issues: issue2.issues });
21559
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21534
21560
  } else if (issue2.code === "invalid_element") {
21535
- processError({ issues: issue2.issues });
21536
- } else if (issue2.path.length === 0) {
21537
- fieldErrors._errors.push(mapper(issue2));
21561
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21538
21562
  } else {
21539
- let curr = fieldErrors;
21540
- let i = 0;
21541
- while (i < issue2.path.length) {
21542
- const el = issue2.path[i];
21543
- const terminal = i === issue2.path.length - 1;
21544
- if (!terminal) {
21545
- curr[el] = curr[el] || { _errors: [] };
21546
- } else {
21547
- curr[el] = curr[el] || { _errors: [] };
21548
- curr[el]._errors.push(mapper(issue2));
21563
+ const fullpath = [...path, ...issue2.path];
21564
+ if (fullpath.length === 0) {
21565
+ fieldErrors._errors.push(mapper(issue2));
21566
+ } else {
21567
+ let curr = fieldErrors;
21568
+ let i = 0;
21569
+ while (i < fullpath.length) {
21570
+ const el = fullpath[i];
21571
+ const terminal = i === fullpath.length - 1;
21572
+ if (!terminal) {
21573
+ curr[el] = curr[el] || { _errors: [] };
21574
+ } else {
21575
+ curr[el] = curr[el] || { _errors: [] };
21576
+ curr[el]._errors.push(mapper(issue2));
21577
+ }
21578
+ curr = curr[el];
21579
+ i++;
21549
21580
  }
21550
- curr = curr[el];
21551
- i++;
21552
21581
  }
21553
21582
  }
21554
21583
  }
@@ -21559,14 +21588,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
21559
21588
  function treeifyError(error, mapper = (issue2) => issue2.message) {
21560
21589
  const result = { errors: [] };
21561
21590
  const processError = (error2, path = []) => {
21562
- var _a, _b;
21591
+ var _a2, _b;
21563
21592
  for (const issue2 of error2.issues) {
21564
21593
  if (issue2.code === "invalid_union" && issue2.errors.length) {
21565
- issue2.errors.map((issues) => processError({ issues }, issue2.path));
21594
+ issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
21566
21595
  } else if (issue2.code === "invalid_key") {
21567
- processError({ issues: issue2.issues }, issue2.path);
21596
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21568
21597
  } else if (issue2.code === "invalid_element") {
21569
- processError({ issues: issue2.issues }, issue2.path);
21598
+ processError({ issues: issue2.issues }, [...path, ...issue2.path]);
21570
21599
  } else {
21571
21600
  const fullpath = [...path, ...issue2.path];
21572
21601
  if (fullpath.length === 0) {
@@ -21580,7 +21609,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
21580
21609
  const terminal = i === fullpath.length - 1;
21581
21610
  if (typeof el === "string") {
21582
21611
  curr.properties ?? (curr.properties = {});
21583
- (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });
21612
+ (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
21584
21613
  curr = curr.properties[el];
21585
21614
  } else {
21586
21615
  curr.items ?? (curr.items = []);
@@ -21628,9 +21657,9 @@ function prettifyError(error) {
21628
21657
  `);
21629
21658
  }
21630
21659
 
21631
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
21660
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/parse.js
21632
21661
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
21633
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
21662
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
21634
21663
  const result = schema._zod.run({ value, issues: [] }, ctx);
21635
21664
  if (result instanceof Promise) {
21636
21665
  throw new $ZodAsyncError;
@@ -21644,7 +21673,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
21644
21673
  };
21645
21674
  var parse = /* @__PURE__ */ _parse($ZodRealError);
21646
21675
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
21647
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
21676
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
21648
21677
  let result = schema._zod.run({ value, issues: [] }, ctx);
21649
21678
  if (result instanceof Promise)
21650
21679
  result = await result;
@@ -21669,7 +21698,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
21669
21698
  };
21670
21699
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
21671
21700
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
21672
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
21701
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
21673
21702
  let result = schema._zod.run({ value, issues: [] }, ctx);
21674
21703
  if (result instanceof Promise)
21675
21704
  result = await result;
@@ -21680,7 +21709,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
21680
21709
  };
21681
21710
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
21682
21711
  var _encode = (_Err) => (schema, value, _ctx) => {
21683
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21712
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21684
21713
  return _parse(_Err)(schema, value, ctx);
21685
21714
  };
21686
21715
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -21689,7 +21718,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
21689
21718
  };
21690
21719
  var decode = /* @__PURE__ */ _decode($ZodRealError);
21691
21720
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
21692
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21721
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21693
21722
  return _parseAsync(_Err)(schema, value, ctx);
21694
21723
  };
21695
21724
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -21698,7 +21727,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
21698
21727
  };
21699
21728
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
21700
21729
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
21701
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21730
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21702
21731
  return _safeParse(_Err)(schema, value, ctx);
21703
21732
  };
21704
21733
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -21707,7 +21736,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
21707
21736
  };
21708
21737
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
21709
21738
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
21710
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
21739
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
21711
21740
  return _safeParseAsync(_Err)(schema, value, ctx);
21712
21741
  };
21713
21742
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -21715,7 +21744,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
21715
21744
  return _safeParseAsync(_Err)(schema, value, _ctx);
21716
21745
  };
21717
21746
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
21718
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
21747
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/regexes.js
21719
21748
  var exports_regexes = {};
21720
21749
  __export(exports_regexes, {
21721
21750
  xid: () => xid,
@@ -21755,6 +21784,7 @@ __export(exports_regexes, {
21755
21784
  ipv4: () => ipv4,
21756
21785
  integer: () => integer,
21757
21786
  idnEmail: () => idnEmail,
21787
+ httpProtocol: () => httpProtocol,
21758
21788
  html5Email: () => html5Email,
21759
21789
  hostname: () => hostname,
21760
21790
  hex: () => hex,
@@ -21777,7 +21807,7 @@ __export(exports_regexes, {
21777
21807
  base64url: () => base64url,
21778
21808
  base64: () => base64
21779
21809
  });
21780
- var cuid = /^[cC][^\s-]{8,}$/;
21810
+ var cuid = /^[cC][0-9a-z]{6,}$/;
21781
21811
  var cuid2 = /^[0-9a-z]+$/;
21782
21812
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
21783
21813
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -21816,6 +21846,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
21816
21846
  var base64url = /^[A-Za-z0-9_-]*$/;
21817
21847
  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])?)*\.?$/;
21818
21848
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
21849
+ var httpProtocol = /^https?$/;
21819
21850
  var e164 = /^\+[1-9]\d{6,14}$/;
21820
21851
  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])))`;
21821
21852
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -21872,12 +21903,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
21872
21903
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
21873
21904
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
21874
21905
 
21875
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
21906
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
21876
21907
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
21877
- var _a;
21908
+ var _a2;
21878
21909
  inst._zod ?? (inst._zod = {});
21879
21910
  inst._zod.def = def;
21880
- (_a = inst._zod).onattach ?? (_a.onattach = []);
21911
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
21881
21912
  });
21882
21913
  var numericOriginMap = {
21883
21914
  number: "number",
@@ -21943,8 +21974,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
21943
21974
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
21944
21975
  $ZodCheck.init(inst, def);
21945
21976
  inst._zod.onattach.push((inst2) => {
21946
- var _a;
21947
- (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
21977
+ var _a2;
21978
+ (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
21948
21979
  });
21949
21980
  inst._zod.check = (payload) => {
21950
21981
  if (typeof payload.value !== typeof def.value)
@@ -22077,9 +22108,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
22077
22108
  };
22078
22109
  });
22079
22110
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
22080
- var _a;
22111
+ var _a2;
22081
22112
  $ZodCheck.init(inst, def);
22082
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22113
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22083
22114
  const val = payload.value;
22084
22115
  return !nullish(val) && val.size !== undefined;
22085
22116
  });
@@ -22105,9 +22136,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
22105
22136
  };
22106
22137
  });
22107
22138
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
22108
- var _a;
22139
+ var _a2;
22109
22140
  $ZodCheck.init(inst, def);
22110
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22141
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22111
22142
  const val = payload.value;
22112
22143
  return !nullish(val) && val.size !== undefined;
22113
22144
  });
@@ -22133,9 +22164,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
22133
22164
  };
22134
22165
  });
22135
22166
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
22136
- var _a;
22167
+ var _a2;
22137
22168
  $ZodCheck.init(inst, def);
22138
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22169
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22139
22170
  const val = payload.value;
22140
22171
  return !nullish(val) && val.size !== undefined;
22141
22172
  });
@@ -22163,9 +22194,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
22163
22194
  };
22164
22195
  });
22165
22196
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
22166
- var _a;
22197
+ var _a2;
22167
22198
  $ZodCheck.init(inst, def);
22168
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22199
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22169
22200
  const val = payload.value;
22170
22201
  return !nullish(val) && val.length !== undefined;
22171
22202
  });
@@ -22192,9 +22223,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
22192
22223
  };
22193
22224
  });
22194
22225
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
22195
- var _a;
22226
+ var _a2;
22196
22227
  $ZodCheck.init(inst, def);
22197
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22228
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22198
22229
  const val = payload.value;
22199
22230
  return !nullish(val) && val.length !== undefined;
22200
22231
  });
@@ -22221,9 +22252,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
22221
22252
  };
22222
22253
  });
22223
22254
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
22224
- var _a;
22255
+ var _a2;
22225
22256
  $ZodCheck.init(inst, def);
22226
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
22257
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
22227
22258
  const val = payload.value;
22228
22259
  return !nullish(val) && val.length !== undefined;
22229
22260
  });
@@ -22252,7 +22283,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
22252
22283
  };
22253
22284
  });
22254
22285
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
22255
- var _a, _b;
22286
+ var _a2, _b;
22256
22287
  $ZodCheck.init(inst, def);
22257
22288
  inst._zod.onattach.push((inst2) => {
22258
22289
  const bag = inst2._zod.bag;
@@ -22263,7 +22294,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
22263
22294
  }
22264
22295
  });
22265
22296
  if (def.pattern)
22266
- (_a = inst._zod).check ?? (_a.check = (payload) => {
22297
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
22267
22298
  def.pattern.lastIndex = 0;
22268
22299
  if (def.pattern.test(payload.value))
22269
22300
  return;
@@ -22419,7 +22450,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
22419
22450
  };
22420
22451
  });
22421
22452
 
22422
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
22453
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/doc.js
22423
22454
  class Doc {
22424
22455
  constructor(args = []) {
22425
22456
  this.content = [];
@@ -22457,16 +22488,16 @@ class Doc {
22457
22488
  }
22458
22489
  }
22459
22490
 
22460
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
22491
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/versions.js
22461
22492
  var version = {
22462
22493
  major: 4,
22463
- minor: 3,
22464
- patch: 6
22494
+ minor: 4,
22495
+ patch: 3
22465
22496
  };
22466
22497
 
22467
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
22498
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
22468
22499
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
22469
- var _a;
22500
+ var _a2;
22470
22501
  inst ?? (inst = {});
22471
22502
  inst._zod.def = def;
22472
22503
  inst._zod.bag = inst._zod.bag || {};
@@ -22481,7 +22512,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
22481
22512
  }
22482
22513
  }
22483
22514
  if (checks.length === 0) {
22484
- (_a = inst._zod).deferred ?? (_a.deferred = []);
22515
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
22485
22516
  inst._zod.deferred?.push(() => {
22486
22517
  inst._zod.run = inst._zod.parse;
22487
22518
  });
@@ -22491,6 +22522,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
22491
22522
  let asyncResult;
22492
22523
  for (const ch of checks2) {
22493
22524
  if (ch._zod.def.when) {
22525
+ if (explicitlyAborted(payload))
22526
+ continue;
22494
22527
  const shouldRun = ch._zod.def.when(payload);
22495
22528
  if (!shouldRun)
22496
22529
  continue;
@@ -22630,6 +22663,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
22630
22663
  inst._zod.check = (payload) => {
22631
22664
  try {
22632
22665
  const trimmed = payload.value.trim();
22666
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
22667
+ if (!/^https?:\/\//i.test(trimmed)) {
22668
+ payload.issues.push({
22669
+ code: "invalid_format",
22670
+ format: "url",
22671
+ note: "Invalid URL format",
22672
+ input: payload.value,
22673
+ inst,
22674
+ continue: !def.abort
22675
+ });
22676
+ return;
22677
+ }
22678
+ }
22633
22679
  const url = new URL(trimmed);
22634
22680
  if (def.hostname) {
22635
22681
  def.hostname.lastIndex = 0;
@@ -22783,6 +22829,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
22783
22829
  function isValidBase64(data) {
22784
22830
  if (data === "")
22785
22831
  return true;
22832
+ if (/\s/.test(data))
22833
+ return false;
22786
22834
  if (data.length % 4 !== 0)
22787
22835
  return false;
22788
22836
  try {
@@ -22972,8 +23020,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
22972
23020
  $ZodType.init(inst, def);
22973
23021
  inst._zod.pattern = _undefined;
22974
23022
  inst._zod.values = new Set([undefined]);
22975
- inst._zod.optin = "optional";
22976
- inst._zod.optout = "optional";
22977
23023
  inst._zod.parse = (payload, _ctx) => {
22978
23024
  const input = payload.value;
22979
23025
  if (typeof input === "undefined")
@@ -23101,15 +23147,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
23101
23147
  return payload;
23102
23148
  };
23103
23149
  });
23104
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
23150
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
23151
+ const isPresent = key in input;
23105
23152
  if (result.issues.length) {
23106
- if (isOptionalOut && !(key in input)) {
23153
+ if (isOptionalIn && isOptionalOut && !isPresent) {
23107
23154
  return;
23108
23155
  }
23109
23156
  final.issues.push(...prefixIssues(key, result.issues));
23110
23157
  }
23158
+ if (!isPresent && !isOptionalIn) {
23159
+ if (!result.issues.length) {
23160
+ final.issues.push({
23161
+ code: "invalid_type",
23162
+ expected: "nonoptional",
23163
+ input: undefined,
23164
+ path: [key]
23165
+ });
23166
+ }
23167
+ return;
23168
+ }
23111
23169
  if (result.value === undefined) {
23112
- if (key in input) {
23170
+ if (isPresent) {
23113
23171
  final.value[key] = undefined;
23114
23172
  }
23115
23173
  } else {
@@ -23137,8 +23195,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
23137
23195
  const keySet = def.keySet;
23138
23196
  const _catchall = def.catchall._zod;
23139
23197
  const t = _catchall.def.type;
23198
+ const isOptionalIn = _catchall.optin === "optional";
23140
23199
  const isOptionalOut = _catchall.optout === "optional";
23141
23200
  for (const key in input) {
23201
+ if (key === "__proto__")
23202
+ continue;
23142
23203
  if (keySet.has(key))
23143
23204
  continue;
23144
23205
  if (t === "never") {
@@ -23147,9 +23208,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
23147
23208
  }
23148
23209
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
23149
23210
  if (r instanceof Promise) {
23150
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
23211
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
23151
23212
  } else {
23152
- handlePropertyResult(r, payload, key, input, isOptionalOut);
23213
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
23153
23214
  }
23154
23215
  }
23155
23216
  if (unrecognized.length) {
@@ -23215,12 +23276,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
23215
23276
  const shape = value.shape;
23216
23277
  for (const key of value.keys) {
23217
23278
  const el = shape[key];
23279
+ const isOptionalIn = el._zod.optin === "optional";
23218
23280
  const isOptionalOut = el._zod.optout === "optional";
23219
23281
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
23220
23282
  if (r instanceof Promise) {
23221
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
23283
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
23222
23284
  } else {
23223
- handlePropertyResult(r, payload, key, input, isOptionalOut);
23285
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
23224
23286
  }
23225
23287
  }
23226
23288
  if (!catchall) {
@@ -23251,9 +23313,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
23251
23313
  const id = ids[key];
23252
23314
  const k = esc(key);
23253
23315
  const schema = shape[key];
23316
+ const isOptionalIn = schema?._zod?.optin === "optional";
23254
23317
  const isOptionalOut = schema?._zod?.optout === "optional";
23255
23318
  doc.write(`const ${id} = ${parseStr(key)};`);
23256
- if (isOptionalOut) {
23319
+ if (isOptionalIn && isOptionalOut) {
23257
23320
  doc.write(`
23258
23321
  if (${id}.issues.length) {
23259
23322
  if (${k} in input) {
@@ -23272,6 +23335,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
23272
23335
  newResult[${k}] = ${id}.value;
23273
23336
  }
23274
23337
 
23338
+ `);
23339
+ } else if (!isOptionalIn) {
23340
+ doc.write(`
23341
+ const ${id}_present = ${k} in input;
23342
+ if (${id}.issues.length) {
23343
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
23344
+ ...iss,
23345
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
23346
+ })));
23347
+ }
23348
+ if (!${id}_present && !${id}.issues.length) {
23349
+ payload.issues.push({
23350
+ code: "invalid_type",
23351
+ expected: "nonoptional",
23352
+ input: undefined,
23353
+ path: [${k}]
23354
+ });
23355
+ }
23356
+
23357
+ if (${id}_present) {
23358
+ if (${id}.value === undefined) {
23359
+ newResult[${k}] = undefined;
23360
+ } else {
23361
+ newResult[${k}] = ${id}.value;
23362
+ }
23363
+ }
23364
+
23275
23365
  `);
23276
23366
  } else {
23277
23367
  doc.write(`
@@ -23365,10 +23455,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
23365
23455
  }
23366
23456
  return;
23367
23457
  });
23368
- const single = def.options.length === 1;
23369
- const first = def.options[0]._zod.run;
23458
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
23370
23459
  inst._zod.parse = (payload, ctx) => {
23371
- if (single) {
23460
+ if (first) {
23372
23461
  return first(payload, ctx);
23373
23462
  }
23374
23463
  let async = false;
@@ -23421,10 +23510,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
23421
23510
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
23422
23511
  $ZodUnion.init(inst, def);
23423
23512
  def.inclusive = false;
23424
- const single = def.options.length === 1;
23425
- const first = def.options[0]._zod.run;
23513
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
23426
23514
  inst._zod.parse = (payload, ctx) => {
23427
- if (single) {
23515
+ if (first) {
23428
23516
  return first(payload, ctx);
23429
23517
  }
23430
23518
  let async = false;
@@ -23499,7 +23587,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
23499
23587
  if (opt) {
23500
23588
  return opt._zod.run(payload, ctx);
23501
23589
  }
23502
- if (def.unionFallback) {
23590
+ if (def.unionFallback || ctx.direction === "backward") {
23503
23591
  return _super(payload, ctx);
23504
23592
  }
23505
23593
  payload.issues.push({
@@ -23507,6 +23595,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
23507
23595
  errors: [],
23508
23596
  note: "No matching discriminator",
23509
23597
  discriminator: def.discriminator,
23598
+ options: Array.from(disc.value.keys()),
23510
23599
  input,
23511
23600
  path: [def.discriminator],
23512
23601
  inst
@@ -23628,64 +23717,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
23628
23717
  }
23629
23718
  payload.value = [];
23630
23719
  const proms = [];
23631
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
23632
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
23720
+ const optinStart = getTupleOptStart(items, "optin");
23721
+ const optoutStart = getTupleOptStart(items, "optout");
23633
23722
  if (!def.rest) {
23634
- const tooBig = input.length > items.length;
23635
- const tooSmall = input.length < optStart - 1;
23636
- if (tooBig || tooSmall) {
23723
+ if (input.length < optinStart) {
23637
23724
  payload.issues.push({
23638
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
23725
+ code: "too_small",
23726
+ minimum: optinStart,
23727
+ inclusive: true,
23639
23728
  input,
23640
23729
  inst,
23641
23730
  origin: "array"
23642
23731
  });
23643
23732
  return payload;
23644
23733
  }
23645
- }
23646
- let i = -1;
23647
- for (const item of items) {
23648
- i++;
23649
- if (i >= input.length) {
23650
- if (i >= optStart)
23651
- continue;
23734
+ if (input.length > items.length) {
23735
+ payload.issues.push({
23736
+ code: "too_big",
23737
+ maximum: items.length,
23738
+ inclusive: true,
23739
+ input,
23740
+ inst,
23741
+ origin: "array"
23742
+ });
23652
23743
  }
23653
- const result = item._zod.run({
23654
- value: input[i],
23655
- issues: []
23656
- }, ctx);
23657
- if (result instanceof Promise) {
23658
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
23744
+ }
23745
+ const itemResults = new Array(items.length);
23746
+ for (let i = 0;i < items.length; i++) {
23747
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
23748
+ if (r instanceof Promise) {
23749
+ proms.push(r.then((rr) => {
23750
+ itemResults[i] = rr;
23751
+ }));
23659
23752
  } else {
23660
- handleTupleResult(result, payload, i);
23753
+ itemResults[i] = r;
23661
23754
  }
23662
23755
  }
23663
23756
  if (def.rest) {
23757
+ let i = items.length - 1;
23664
23758
  const rest = input.slice(items.length);
23665
23759
  for (const el of rest) {
23666
23760
  i++;
23667
- const result = def.rest._zod.run({
23668
- value: el,
23669
- issues: []
23670
- }, ctx);
23761
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
23671
23762
  if (result instanceof Promise) {
23672
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
23763
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
23673
23764
  } else {
23674
23765
  handleTupleResult(result, payload, i);
23675
23766
  }
23676
23767
  }
23677
23768
  }
23678
- if (proms.length)
23679
- return Promise.all(proms).then(() => payload);
23680
- return payload;
23769
+ if (proms.length) {
23770
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
23771
+ }
23772
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
23681
23773
  };
23682
23774
  });
23775
+ function getTupleOptStart(items, key) {
23776
+ for (let i = items.length - 1;i >= 0; i--) {
23777
+ if (items[i]._zod[key] !== "optional")
23778
+ return i + 1;
23779
+ }
23780
+ return 0;
23781
+ }
23683
23782
  function handleTupleResult(result, final, index) {
23684
23783
  if (result.issues.length) {
23685
23784
  final.issues.push(...prefixIssues(index, result.issues));
23686
23785
  }
23687
23786
  final.value[index] = result.value;
23688
23787
  }
23788
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
23789
+ for (let i = 0;i < items.length; i++) {
23790
+ const r = itemResults[i];
23791
+ const isPresent = i < input.length;
23792
+ if (r.issues.length) {
23793
+ if (!isPresent && i >= optoutStart) {
23794
+ final.value.length = i;
23795
+ break;
23796
+ }
23797
+ final.issues.push(...prefixIssues(i, r.issues));
23798
+ }
23799
+ final.value[i] = r.value;
23800
+ }
23801
+ for (let i = final.value.length - 1;i >= input.length; i--) {
23802
+ if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
23803
+ final.value.length = i;
23804
+ } else {
23805
+ break;
23806
+ }
23807
+ }
23808
+ return final;
23809
+ }
23689
23810
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
23690
23811
  $ZodType.init(inst, def);
23691
23812
  inst._zod.parse = (payload, ctx) => {
@@ -23707,19 +23828,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
23707
23828
  for (const key of values) {
23708
23829
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
23709
23830
  recordKeys.add(typeof key === "number" ? key.toString() : key);
23831
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
23832
+ if (keyResult instanceof Promise) {
23833
+ throw new Error("Async schemas not supported in object keys currently");
23834
+ }
23835
+ if (keyResult.issues.length) {
23836
+ payload.issues.push({
23837
+ code: "invalid_key",
23838
+ origin: "record",
23839
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
23840
+ input: key,
23841
+ path: [key],
23842
+ inst
23843
+ });
23844
+ continue;
23845
+ }
23846
+ const outKey = keyResult.value;
23710
23847
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
23711
23848
  if (result instanceof Promise) {
23712
23849
  proms.push(result.then((result2) => {
23713
23850
  if (result2.issues.length) {
23714
23851
  payload.issues.push(...prefixIssues(key, result2.issues));
23715
23852
  }
23716
- payload.value[key] = result2.value;
23853
+ payload.value[outKey] = result2.value;
23717
23854
  }));
23718
23855
  } else {
23719
23856
  if (result.issues.length) {
23720
23857
  payload.issues.push(...prefixIssues(key, result.issues));
23721
23858
  }
23722
- payload.value[key] = result.value;
23859
+ payload.value[outKey] = result.value;
23723
23860
  }
23724
23861
  }
23725
23862
  }
@@ -23743,6 +23880,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
23743
23880
  for (const key of Reflect.ownKeys(input)) {
23744
23881
  if (key === "__proto__")
23745
23882
  continue;
23883
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
23884
+ continue;
23746
23885
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
23747
23886
  if (keyResult instanceof Promise) {
23748
23887
  throw new Error("Async schemas not supported in object keys currently");
@@ -23947,6 +24086,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
23947
24086
  });
23948
24087
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
23949
24088
  $ZodType.init(inst, def);
24089
+ inst._zod.optin = "optional";
23950
24090
  inst._zod.parse = (payload, ctx) => {
23951
24091
  if (ctx.direction === "backward") {
23952
24092
  throw new $ZodEncodeError(inst.constructor.name);
@@ -23956,6 +24096,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
23956
24096
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
23957
24097
  return output.then((output2) => {
23958
24098
  payload.value = output2;
24099
+ payload.fallback = true;
23959
24100
  return payload;
23960
24101
  });
23961
24102
  }
@@ -23963,11 +24104,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
23963
24104
  throw new $ZodAsyncError;
23964
24105
  }
23965
24106
  payload.value = _out;
24107
+ payload.fallback = true;
23966
24108
  return payload;
23967
24109
  };
23968
24110
  });
23969
24111
  function handleOptionalResult(result, input) {
23970
- if (result.issues.length && input === undefined) {
24112
+ if (input === undefined && (result.issues.length || result.fallback)) {
23971
24113
  return { issues: [], value: undefined };
23972
24114
  }
23973
24115
  return result;
@@ -23985,10 +24127,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
23985
24127
  });
23986
24128
  inst._zod.parse = (payload, ctx) => {
23987
24129
  if (def.innerType._zod.optin === "optional") {
24130
+ const input = payload.value;
23988
24131
  const result = def.innerType._zod.run(payload, ctx);
23989
24132
  if (result instanceof Promise)
23990
- return result.then((r) => handleOptionalResult(r, payload.value));
23991
- return handleOptionalResult(result, payload.value);
24133
+ return result.then((r) => handleOptionalResult(r, input));
24134
+ return handleOptionalResult(result, input);
23992
24135
  }
23993
24136
  if (payload.value === undefined) {
23994
24137
  return payload;
@@ -24104,7 +24247,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
24104
24247
  });
24105
24248
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
24106
24249
  $ZodType.init(inst, def);
24107
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
24250
+ inst._zod.optin = "optional";
24108
24251
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
24109
24252
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
24110
24253
  inst._zod.parse = (payload, ctx) => {
@@ -24124,6 +24267,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
24124
24267
  input: payload.value
24125
24268
  });
24126
24269
  payload.issues = [];
24270
+ payload.fallback = true;
24127
24271
  }
24128
24272
  return payload;
24129
24273
  });
@@ -24138,6 +24282,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
24138
24282
  input: payload.value
24139
24283
  });
24140
24284
  payload.issues = [];
24285
+ payload.fallback = true;
24141
24286
  }
24142
24287
  return payload;
24143
24288
  };
@@ -24183,7 +24328,7 @@ function handlePipeResult(left, next, ctx) {
24183
24328
  left.aborted = true;
24184
24329
  return left;
24185
24330
  }
24186
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
24331
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
24187
24332
  }
24188
24333
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
24189
24334
  $ZodType.init(inst, def);
@@ -24235,6 +24380,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
24235
24380
  }
24236
24381
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
24237
24382
  }
24383
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
24384
+ $ZodPipe.init(inst, def);
24385
+ });
24238
24386
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
24239
24387
  $ZodType.init(inst, def);
24240
24388
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -24386,7 +24534,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
24386
24534
  });
24387
24535
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
24388
24536
  $ZodType.init(inst, def);
24389
- defineLazy(inst._zod, "innerType", () => def.getter());
24537
+ defineLazy(inst._zod, "innerType", () => {
24538
+ const d = def;
24539
+ if (!d._cachedInner)
24540
+ d._cachedInner = def.getter();
24541
+ return d._cachedInner;
24542
+ });
24390
24543
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
24391
24544
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
24392
24545
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
@@ -24426,7 +24579,7 @@ function handleRefineResult(result, payload, input, inst) {
24426
24579
  payload.issues.push(issue(_iss));
24427
24580
  }
24428
24581
  }
24429
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
24582
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/index.js
24430
24583
  var exports_locales = {};
24431
24584
  __export(exports_locales, {
24432
24585
  zhTW: () => zh_TW_default,
@@ -24443,6 +24596,7 @@ __export(exports_locales, {
24443
24596
  sv: () => sv_default,
24444
24597
  sl: () => sl_default,
24445
24598
  ru: () => ru_default,
24599
+ ro: () => ro_default,
24446
24600
  pt: () => pt_default,
24447
24601
  ps: () => ps_default,
24448
24602
  pl: () => pl_default,
@@ -24462,6 +24616,7 @@ __export(exports_locales, {
24462
24616
  id: () => id_default,
24463
24617
  hy: () => hy_default,
24464
24618
  hu: () => hu_default,
24619
+ hr: () => hr_default,
24465
24620
  he: () => he_default,
24466
24621
  frCA: () => fr_CA_default,
24467
24622
  fr: () => fr_default,
@@ -24470,6 +24625,7 @@ __export(exports_locales, {
24470
24625
  es: () => es_default,
24471
24626
  eo: () => eo_default,
24472
24627
  en: () => en_default,
24628
+ el: () => el_default,
24473
24629
  de: () => de_default,
24474
24630
  da: () => da_default,
24475
24631
  cs: () => cs_default,
@@ -24480,7 +24636,7 @@ __export(exports_locales, {
24480
24636
  ar: () => ar_default
24481
24637
  });
24482
24638
 
24483
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
24639
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ar.js
24484
24640
  var error = () => {
24485
24641
  const Sizable = {
24486
24642
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -24586,7 +24742,7 @@ function ar_default() {
24586
24742
  localeError: error()
24587
24743
  };
24588
24744
  }
24589
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
24745
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/az.js
24590
24746
  var error2 = () => {
24591
24747
  const Sizable = {
24592
24748
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -24691,7 +24847,7 @@ function az_default() {
24691
24847
  localeError: error2()
24692
24848
  };
24693
24849
  }
24694
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
24850
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/be.js
24695
24851
  function getBelarusianPlural(count, one, few, many) {
24696
24852
  const absCount = Math.abs(count);
24697
24853
  const lastDigit = absCount % 10;
@@ -24847,7 +25003,7 @@ function be_default() {
24847
25003
  localeError: error3()
24848
25004
  };
24849
25005
  }
24850
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
25006
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/bg.js
24851
25007
  var error4 = () => {
24852
25008
  const Sizable = {
24853
25009
  string: { unit: "символа", verb: "да съдържа" },
@@ -24967,7 +25123,7 @@ function bg_default() {
24967
25123
  localeError: error4()
24968
25124
  };
24969
25125
  }
24970
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
25126
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ca.js
24971
25127
  var error5 = () => {
24972
25128
  const Sizable = {
24973
25129
  string: { unit: "caràcters", verb: "contenir" },
@@ -25074,7 +25230,7 @@ function ca_default() {
25074
25230
  localeError: error5()
25075
25231
  };
25076
25232
  }
25077
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
25233
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/cs.js
25078
25234
  var error6 = () => {
25079
25235
  const Sizable = {
25080
25236
  string: { unit: "znaků", verb: "mít" },
@@ -25185,7 +25341,7 @@ function cs_default() {
25185
25341
  localeError: error6()
25186
25342
  };
25187
25343
  }
25188
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
25344
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/da.js
25189
25345
  var error7 = () => {
25190
25346
  const Sizable = {
25191
25347
  string: { unit: "tegn", verb: "havde" },
@@ -25300,7 +25456,7 @@ function da_default() {
25300
25456
  localeError: error7()
25301
25457
  };
25302
25458
  }
25303
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
25459
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/de.js
25304
25460
  var error8 = () => {
25305
25461
  const Sizable = {
25306
25462
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -25408,8 +25564,117 @@ function de_default() {
25408
25564
  localeError: error8()
25409
25565
  };
25410
25566
  }
25411
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
25567
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/el.js
25412
25568
  var error9 = () => {
25569
+ const Sizable = {
25570
+ string: { unit: "χαρακτήρες", verb: "να έχει" },
25571
+ file: { unit: "bytes", verb: "να έχει" },
25572
+ array: { unit: "στοιχεία", verb: "να έχει" },
25573
+ set: { unit: "στοιχεία", verb: "να έχει" },
25574
+ map: { unit: "καταχωρήσεις", verb: "να έχει" }
25575
+ };
25576
+ function getSizing(origin) {
25577
+ return Sizable[origin] ?? null;
25578
+ }
25579
+ const FormatDictionary = {
25580
+ regex: "είσοδος",
25581
+ email: "διεύθυνση email",
25582
+ url: "URL",
25583
+ emoji: "emoji",
25584
+ uuid: "UUID",
25585
+ uuidv4: "UUIDv4",
25586
+ uuidv6: "UUIDv6",
25587
+ nanoid: "nanoid",
25588
+ guid: "GUID",
25589
+ cuid: "cuid",
25590
+ cuid2: "cuid2",
25591
+ ulid: "ULID",
25592
+ xid: "XID",
25593
+ ksuid: "KSUID",
25594
+ datetime: "ISO ημερομηνία και ώρα",
25595
+ date: "ISO ημερομηνία",
25596
+ time: "ISO ώρα",
25597
+ duration: "ISO διάρκεια",
25598
+ ipv4: "διεύθυνση IPv4",
25599
+ ipv6: "διεύθυνση IPv6",
25600
+ mac: "διεύθυνση MAC",
25601
+ cidrv4: "εύρος IPv4",
25602
+ cidrv6: "εύρος IPv6",
25603
+ base64: "συμβολοσειρά κωδικοποιημένη σε base64",
25604
+ base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
25605
+ json_string: "συμβολοσειρά JSON",
25606
+ e164: "αριθμός E.164",
25607
+ jwt: "JWT",
25608
+ template_literal: "είσοδος"
25609
+ };
25610
+ const TypeDictionary = {
25611
+ nan: "NaN"
25612
+ };
25613
+ return (issue2) => {
25614
+ switch (issue2.code) {
25615
+ case "invalid_type": {
25616
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
25617
+ const receivedType = parsedType(issue2.input);
25618
+ const received = TypeDictionary[receivedType] ?? receivedType;
25619
+ if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
25620
+ return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
25621
+ }
25622
+ return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
25623
+ }
25624
+ case "invalid_value":
25625
+ if (issue2.values.length === 1)
25626
+ return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
25627
+ return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
25628
+ case "too_big": {
25629
+ const adj = issue2.inclusive ? "<=" : "<";
25630
+ const sizing = getSizing(issue2.origin);
25631
+ if (sizing)
25632
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
25633
+ return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
25634
+ }
25635
+ case "too_small": {
25636
+ const adj = issue2.inclusive ? ">=" : ">";
25637
+ const sizing = getSizing(issue2.origin);
25638
+ if (sizing) {
25639
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
25640
+ }
25641
+ return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
25642
+ }
25643
+ case "invalid_format": {
25644
+ const _issue = issue2;
25645
+ if (_issue.format === "starts_with") {
25646
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
25647
+ }
25648
+ if (_issue.format === "ends_with")
25649
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
25650
+ if (_issue.format === "includes")
25651
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
25652
+ if (_issue.format === "regex")
25653
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
25654
+ return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
25655
+ }
25656
+ case "not_multiple_of":
25657
+ return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
25658
+ case "unrecognized_keys":
25659
+ return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
25660
+ case "invalid_key":
25661
+ return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
25662
+ case "invalid_union":
25663
+ return "Μη έγκυρη είσοδος";
25664
+ case "invalid_element":
25665
+ return `Μη έγκυρη τιμή στο ${issue2.origin}`;
25666
+ default:
25667
+ return `Μη έγκυρη είσοδος`;
25668
+ }
25669
+ };
25670
+ };
25671
+ function el_default() {
25672
+ return {
25673
+ localeError: error9()
25674
+ };
25675
+ }
25676
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
25677
+ var error10 = () => {
25413
25678
  const Sizable = {
25414
25679
  string: { unit: "characters", verb: "to have" },
25415
25680
  file: { unit: "bytes", verb: "to have" },
@@ -25501,6 +25766,10 @@ var error9 = () => {
25501
25766
  case "invalid_key":
25502
25767
  return `Invalid key in ${issue2.origin}`;
25503
25768
  case "invalid_union":
25769
+ if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
25770
+ const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
25771
+ return `Invalid discriminator value. Expected ${opts}`;
25772
+ }
25504
25773
  return "Invalid input";
25505
25774
  case "invalid_element":
25506
25775
  return `Invalid value in ${issue2.origin}`;
@@ -25511,11 +25780,11 @@ var error9 = () => {
25511
25780
  };
25512
25781
  function en_default() {
25513
25782
  return {
25514
- localeError: error9()
25783
+ localeError: error10()
25515
25784
  };
25516
25785
  }
25517
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
25518
- var error10 = () => {
25786
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/eo.js
25787
+ var error11 = () => {
25519
25788
  const Sizable = {
25520
25789
  string: { unit: "karaktrojn", verb: "havi" },
25521
25790
  file: { unit: "bajtojn", verb: "havi" },
@@ -25620,11 +25889,11 @@ var error10 = () => {
25620
25889
  };
25621
25890
  function eo_default() {
25622
25891
  return {
25623
- localeError: error10()
25892
+ localeError: error11()
25624
25893
  };
25625
25894
  }
25626
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
25627
- var error11 = () => {
25895
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/es.js
25896
+ var error12 = () => {
25628
25897
  const Sizable = {
25629
25898
  string: { unit: "caracteres", verb: "tener" },
25630
25899
  file: { unit: "bytes", verb: "tener" },
@@ -25752,11 +26021,11 @@ var error11 = () => {
25752
26021
  };
25753
26022
  function es_default() {
25754
26023
  return {
25755
- localeError: error11()
26024
+ localeError: error12()
25756
26025
  };
25757
26026
  }
25758
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
25759
- var error12 = () => {
26027
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fa.js
26028
+ var error13 = () => {
25760
26029
  const Sizable = {
25761
26030
  string: { unit: "کاراکتر", verb: "داشته باشد" },
25762
26031
  file: { unit: "بایت", verb: "داشته باشد" },
@@ -25866,11 +26135,11 @@ var error12 = () => {
25866
26135
  };
25867
26136
  function fa_default() {
25868
26137
  return {
25869
- localeError: error12()
26138
+ localeError: error13()
25870
26139
  };
25871
26140
  }
25872
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
25873
- var error13 = () => {
26141
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fi.js
26142
+ var error14 = () => {
25874
26143
  const Sizable = {
25875
26144
  string: { unit: "merkkiä", subject: "merkkijonon" },
25876
26145
  file: { unit: "tavua", subject: "tiedoston" },
@@ -25978,11 +26247,11 @@ var error13 = () => {
25978
26247
  };
25979
26248
  function fi_default() {
25980
26249
  return {
25981
- localeError: error13()
26250
+ localeError: error14()
25982
26251
  };
25983
26252
  }
25984
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
25985
- var error14 = () => {
26253
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr.js
26254
+ var error15 = () => {
25986
26255
  const Sizable = {
25987
26256
  string: { unit: "caractères", verb: "avoir" },
25988
26257
  file: { unit: "octets", verb: "avoir" },
@@ -26023,9 +26292,27 @@ var error14 = () => {
26023
26292
  template_literal: "entrée"
26024
26293
  };
26025
26294
  const TypeDictionary = {
26026
- nan: "NaN",
26295
+ string: "chaîne",
26027
26296
  number: "nombre",
26028
- array: "tableau"
26297
+ int: "entier",
26298
+ boolean: "booléen",
26299
+ bigint: "grand entier",
26300
+ symbol: "symbole",
26301
+ undefined: "indéfini",
26302
+ null: "null",
26303
+ never: "jamais",
26304
+ void: "vide",
26305
+ date: "date",
26306
+ array: "tableau",
26307
+ object: "objet",
26308
+ tuple: "tuple",
26309
+ record: "enregistrement",
26310
+ map: "carte",
26311
+ set: "ensemble",
26312
+ file: "fichier",
26313
+ nonoptional: "non-optionnel",
26314
+ nan: "NaN",
26315
+ function: "fonction"
26029
26316
  };
26030
26317
  return (issue2) => {
26031
26318
  switch (issue2.code) {
@@ -26046,16 +26333,15 @@ var error14 = () => {
26046
26333
  const adj = issue2.inclusive ? "<=" : "<";
26047
26334
  const sizing = getSizing(issue2.origin);
26048
26335
  if (sizing)
26049
- return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
26050
- return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
26336
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
26337
+ return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
26051
26338
  }
26052
26339
  case "too_small": {
26053
26340
  const adj = issue2.inclusive ? ">=" : ">";
26054
26341
  const sizing = getSizing(issue2.origin);
26055
- if (sizing) {
26056
- return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
26057
- }
26058
- return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
26342
+ if (sizing)
26343
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
26344
+ return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
26059
26345
  }
26060
26346
  case "invalid_format": {
26061
26347
  const _issue = issue2;
@@ -26086,11 +26372,11 @@ var error14 = () => {
26086
26372
  };
26087
26373
  function fr_default() {
26088
26374
  return {
26089
- localeError: error14()
26375
+ localeError: error15()
26090
26376
  };
26091
26377
  }
26092
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
26093
- var error15 = () => {
26378
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
26379
+ var error16 = () => {
26094
26380
  const Sizable = {
26095
26381
  string: { unit: "caractères", verb: "avoir" },
26096
26382
  file: { unit: "octets", verb: "avoir" },
@@ -26193,11 +26479,11 @@ var error15 = () => {
26193
26479
  };
26194
26480
  function fr_CA_default() {
26195
26481
  return {
26196
- localeError: error15()
26482
+ localeError: error16()
26197
26483
  };
26198
26484
  }
26199
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
26200
- var error16 = () => {
26485
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/he.js
26486
+ var error17 = () => {
26201
26487
  const TypeNames = {
26202
26488
  string: { label: "מחרוזת", gender: "f" },
26203
26489
  number: { label: "מספר", gender: "m" },
@@ -26386,11 +26672,133 @@ var error16 = () => {
26386
26672
  };
26387
26673
  function he_default() {
26388
26674
  return {
26389
- localeError: error16()
26675
+ localeError: error17()
26390
26676
  };
26391
26677
  }
26392
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
26393
- var error17 = () => {
26678
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
26679
+ var error18 = () => {
26680
+ const Sizable = {
26681
+ string: { unit: "znakova", verb: "imati" },
26682
+ file: { unit: "bajtova", verb: "imati" },
26683
+ array: { unit: "stavki", verb: "imati" },
26684
+ set: { unit: "stavki", verb: "imati" }
26685
+ };
26686
+ function getSizing(origin) {
26687
+ return Sizable[origin] ?? null;
26688
+ }
26689
+ const FormatDictionary = {
26690
+ regex: "unos",
26691
+ email: "email adresa",
26692
+ url: "URL",
26693
+ emoji: "emoji",
26694
+ uuid: "UUID",
26695
+ uuidv4: "UUIDv4",
26696
+ uuidv6: "UUIDv6",
26697
+ nanoid: "nanoid",
26698
+ guid: "GUID",
26699
+ cuid: "cuid",
26700
+ cuid2: "cuid2",
26701
+ ulid: "ULID",
26702
+ xid: "XID",
26703
+ ksuid: "KSUID",
26704
+ datetime: "ISO datum i vrijeme",
26705
+ date: "ISO datum",
26706
+ time: "ISO vrijeme",
26707
+ duration: "ISO trajanje",
26708
+ ipv4: "IPv4 adresa",
26709
+ ipv6: "IPv6 adresa",
26710
+ cidrv4: "IPv4 raspon",
26711
+ cidrv6: "IPv6 raspon",
26712
+ base64: "base64 kodirani tekst",
26713
+ base64url: "base64url kodirani tekst",
26714
+ json_string: "JSON tekst",
26715
+ e164: "E.164 broj",
26716
+ jwt: "JWT",
26717
+ template_literal: "unos"
26718
+ };
26719
+ const TypeDictionary = {
26720
+ nan: "NaN",
26721
+ string: "tekst",
26722
+ number: "broj",
26723
+ boolean: "boolean",
26724
+ array: "niz",
26725
+ object: "objekt",
26726
+ set: "skup",
26727
+ file: "datoteka",
26728
+ date: "datum",
26729
+ bigint: "bigint",
26730
+ symbol: "simbol",
26731
+ undefined: "undefined",
26732
+ null: "null",
26733
+ function: "funkcija",
26734
+ map: "mapa"
26735
+ };
26736
+ return (issue2) => {
26737
+ switch (issue2.code) {
26738
+ case "invalid_type": {
26739
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
26740
+ const receivedType = parsedType(issue2.input);
26741
+ const received = TypeDictionary[receivedType] ?? receivedType;
26742
+ if (/^[A-Z]/.test(issue2.expected)) {
26743
+ return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
26744
+ }
26745
+ return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
26746
+ }
26747
+ case "invalid_value":
26748
+ if (issue2.values.length === 1)
26749
+ return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
26750
+ return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
26751
+ case "too_big": {
26752
+ const adj = issue2.inclusive ? "<=" : "<";
26753
+ const sizing = getSizing(issue2.origin);
26754
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
26755
+ if (sizing)
26756
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
26757
+ return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
26758
+ }
26759
+ case "too_small": {
26760
+ const adj = issue2.inclusive ? ">=" : ">";
26761
+ const sizing = getSizing(issue2.origin);
26762
+ const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
26763
+ if (sizing) {
26764
+ return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
26765
+ }
26766
+ return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
26767
+ }
26768
+ case "invalid_format": {
26769
+ const _issue = issue2;
26770
+ if (_issue.format === "starts_with")
26771
+ return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
26772
+ if (_issue.format === "ends_with")
26773
+ return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
26774
+ if (_issue.format === "includes")
26775
+ return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
26776
+ if (_issue.format === "regex")
26777
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
26778
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
26779
+ }
26780
+ case "not_multiple_of":
26781
+ return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
26782
+ case "unrecognized_keys":
26783
+ return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
26784
+ case "invalid_key":
26785
+ return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
26786
+ case "invalid_union":
26787
+ return "Neispravan unos";
26788
+ case "invalid_element":
26789
+ return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
26790
+ default:
26791
+ return `Neispravan unos`;
26792
+ }
26793
+ };
26794
+ };
26795
+ function hr_default() {
26796
+ return {
26797
+ localeError: error18()
26798
+ };
26799
+ }
26800
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hu.js
26801
+ var error19 = () => {
26394
26802
  const Sizable = {
26395
26803
  string: { unit: "karakter", verb: "legyen" },
26396
26804
  file: { unit: "byte", verb: "legyen" },
@@ -26494,10 +26902,10 @@ var error17 = () => {
26494
26902
  };
26495
26903
  function hu_default() {
26496
26904
  return {
26497
- localeError: error17()
26905
+ localeError: error19()
26498
26906
  };
26499
26907
  }
26500
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
26908
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hy.js
26501
26909
  function getArmenianPlural(count, one, many) {
26502
26910
  return Math.abs(count) === 1 ? one : many;
26503
26911
  }
@@ -26508,7 +26916,7 @@ function withDefiniteArticle(word) {
26508
26916
  const lastChar = word[word.length - 1];
26509
26917
  return word + (vowels.includes(lastChar) ? "ն" : "ը");
26510
26918
  }
26511
- var error18 = () => {
26919
+ var error20 = () => {
26512
26920
  const Sizable = {
26513
26921
  string: {
26514
26922
  unit: {
@@ -26641,11 +27049,11 @@ var error18 = () => {
26641
27049
  };
26642
27050
  function hy_default() {
26643
27051
  return {
26644
- localeError: error18()
27052
+ localeError: error20()
26645
27053
  };
26646
27054
  }
26647
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
26648
- var error19 = () => {
27055
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/id.js
27056
+ var error21 = () => {
26649
27057
  const Sizable = {
26650
27058
  string: { unit: "karakter", verb: "memiliki" },
26651
27059
  file: { unit: "byte", verb: "memiliki" },
@@ -26747,11 +27155,11 @@ var error19 = () => {
26747
27155
  };
26748
27156
  function id_default() {
26749
27157
  return {
26750
- localeError: error19()
27158
+ localeError: error21()
26751
27159
  };
26752
27160
  }
26753
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
26754
- var error20 = () => {
27161
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/is.js
27162
+ var error22 = () => {
26755
27163
  const Sizable = {
26756
27164
  string: { unit: "stafi", verb: "að hafa" },
26757
27165
  file: { unit: "bæti", verb: "að hafa" },
@@ -26856,11 +27264,11 @@ var error20 = () => {
26856
27264
  };
26857
27265
  function is_default() {
26858
27266
  return {
26859
- localeError: error20()
27267
+ localeError: error22()
26860
27268
  };
26861
27269
  }
26862
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
26863
- var error21 = () => {
27270
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/it.js
27271
+ var error23 = () => {
26864
27272
  const Sizable = {
26865
27273
  string: { unit: "caratteri", verb: "avere" },
26866
27274
  file: { unit: "byte", verb: "avere" },
@@ -26945,7 +27353,7 @@ var error21 = () => {
26945
27353
  return `Stringa non valida: deve includere "${_issue.includes}"`;
26946
27354
  if (_issue.format === "regex")
26947
27355
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
26948
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
27356
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
26949
27357
  }
26950
27358
  case "not_multiple_of":
26951
27359
  return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
@@ -26964,11 +27372,11 @@ var error21 = () => {
26964
27372
  };
26965
27373
  function it_default() {
26966
27374
  return {
26967
- localeError: error21()
27375
+ localeError: error23()
26968
27376
  };
26969
27377
  }
26970
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
26971
- var error22 = () => {
27378
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ja.js
27379
+ var error24 = () => {
26972
27380
  const Sizable = {
26973
27381
  string: { unit: "文字", verb: "である" },
26974
27382
  file: { unit: "バイト", verb: "である" },
@@ -27071,11 +27479,11 @@ var error22 = () => {
27071
27479
  };
27072
27480
  function ja_default() {
27073
27481
  return {
27074
- localeError: error22()
27482
+ localeError: error24()
27075
27483
  };
27076
27484
  }
27077
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
27078
- var error23 = () => {
27485
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ka.js
27486
+ var error25 = () => {
27079
27487
  const Sizable = {
27080
27488
  string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
27081
27489
  file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
@@ -27108,9 +27516,9 @@ var error23 = () => {
27108
27516
  ipv6: "IPv6 მისამართი",
27109
27517
  cidrv4: "IPv4 დიაპაზონი",
27110
27518
  cidrv6: "IPv6 დიაპაზონი",
27111
- base64: "base64-კოდირებული სტრინგი",
27112
- base64url: "base64url-კოდირებული სტრინგი",
27113
- json_string: "JSON სტრინგი",
27519
+ base64: "base64-კოდირებული ველი",
27520
+ base64url: "base64url-კოდირებული ველი",
27521
+ json_string: "JSON ველი",
27114
27522
  e164: "E.164 ნომერი",
27115
27523
  jwt: "JWT",
27116
27524
  template_literal: "შეყვანა"
@@ -27118,7 +27526,7 @@ var error23 = () => {
27118
27526
  const TypeDictionary = {
27119
27527
  nan: "NaN",
27120
27528
  number: "რიცხვი",
27121
- string: "სტრინგი",
27529
+ string: "ველი",
27122
27530
  boolean: "ბულეანი",
27123
27531
  function: "ფუნქცია",
27124
27532
  array: "მასივი"
@@ -27156,14 +27564,14 @@ var error23 = () => {
27156
27564
  case "invalid_format": {
27157
27565
  const _issue = issue2;
27158
27566
  if (_issue.format === "starts_with") {
27159
- return `არასწორი სტრინგი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
27567
+ return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
27160
27568
  }
27161
27569
  if (_issue.format === "ends_with")
27162
- return `არასწორი სტრინგი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
27570
+ return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
27163
27571
  if (_issue.format === "includes")
27164
- return `არასწორი სტრინგი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
27572
+ return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
27165
27573
  if (_issue.format === "regex")
27166
- return `არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
27574
+ return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
27167
27575
  return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
27168
27576
  }
27169
27577
  case "not_multiple_of":
@@ -27183,11 +27591,11 @@ var error23 = () => {
27183
27591
  };
27184
27592
  function ka_default() {
27185
27593
  return {
27186
- localeError: error23()
27594
+ localeError: error25()
27187
27595
  };
27188
27596
  }
27189
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
27190
- var error24 = () => {
27597
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/km.js
27598
+ var error26 = () => {
27191
27599
  const Sizable = {
27192
27600
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
27193
27601
  file: { unit: "បៃ", verb: "គួរមាន" },
@@ -27293,16 +27701,16 @@ var error24 = () => {
27293
27701
  };
27294
27702
  function km_default() {
27295
27703
  return {
27296
- localeError: error24()
27704
+ localeError: error26()
27297
27705
  };
27298
27706
  }
27299
27707
 
27300
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
27708
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/kh.js
27301
27709
  function kh_default() {
27302
27710
  return km_default();
27303
27711
  }
27304
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
27305
- var error25 = () => {
27712
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ko.js
27713
+ var error27 = () => {
27306
27714
  const Sizable = {
27307
27715
  string: { unit: "문자", verb: "to have" },
27308
27716
  file: { unit: "바이트", verb: "to have" },
@@ -27409,10 +27817,10 @@ var error25 = () => {
27409
27817
  };
27410
27818
  function ko_default() {
27411
27819
  return {
27412
- localeError: error25()
27820
+ localeError: error27()
27413
27821
  };
27414
27822
  }
27415
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
27823
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/lt.js
27416
27824
  var capitalizeFirstCharacter = (text) => {
27417
27825
  return text.charAt(0).toUpperCase() + text.slice(1);
27418
27826
  };
@@ -27426,7 +27834,7 @@ function getUnitTypeFromNumber(number2) {
27426
27834
  return "one";
27427
27835
  return "few";
27428
27836
  }
27429
- var error26 = () => {
27837
+ var error28 = () => {
27430
27838
  const Sizable = {
27431
27839
  string: {
27432
27840
  unit: {
@@ -27612,11 +28020,11 @@ var error26 = () => {
27612
28020
  };
27613
28021
  function lt_default() {
27614
28022
  return {
27615
- localeError: error26()
28023
+ localeError: error28()
27616
28024
  };
27617
28025
  }
27618
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
27619
- var error27 = () => {
28026
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/mk.js
28027
+ var error29 = () => {
27620
28028
  const Sizable = {
27621
28029
  string: { unit: "знаци", verb: "да имаат" },
27622
28030
  file: { unit: "бајти", verb: "да имаат" },
@@ -27721,11 +28129,11 @@ var error27 = () => {
27721
28129
  };
27722
28130
  function mk_default() {
27723
28131
  return {
27724
- localeError: error27()
28132
+ localeError: error29()
27725
28133
  };
27726
28134
  }
27727
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
27728
- var error28 = () => {
28135
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ms.js
28136
+ var error30 = () => {
27729
28137
  const Sizable = {
27730
28138
  string: { unit: "aksara", verb: "mempunyai" },
27731
28139
  file: { unit: "bait", verb: "mempunyai" },
@@ -27828,11 +28236,11 @@ var error28 = () => {
27828
28236
  };
27829
28237
  function ms_default() {
27830
28238
  return {
27831
- localeError: error28()
28239
+ localeError: error30()
27832
28240
  };
27833
28241
  }
27834
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
27835
- var error29 = () => {
28242
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/nl.js
28243
+ var error31 = () => {
27836
28244
  const Sizable = {
27837
28245
  string: { unit: "tekens", verb: "heeft" },
27838
28246
  file: { unit: "bytes", verb: "heeft" },
@@ -27938,11 +28346,11 @@ var error29 = () => {
27938
28346
  };
27939
28347
  function nl_default() {
27940
28348
  return {
27941
- localeError: error29()
28349
+ localeError: error31()
27942
28350
  };
27943
28351
  }
27944
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
27945
- var error30 = () => {
28352
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/no.js
28353
+ var error32 = () => {
27946
28354
  const Sizable = {
27947
28355
  string: { unit: "tegn", verb: "å ha" },
27948
28356
  file: { unit: "bytes", verb: "å ha" },
@@ -28046,11 +28454,11 @@ var error30 = () => {
28046
28454
  };
28047
28455
  function no_default() {
28048
28456
  return {
28049
- localeError: error30()
28457
+ localeError: error32()
28050
28458
  };
28051
28459
  }
28052
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
28053
- var error31 = () => {
28460
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ota.js
28461
+ var error33 = () => {
28054
28462
  const Sizable = {
28055
28463
  string: { unit: "harf", verb: "olmalıdır" },
28056
28464
  file: { unit: "bayt", verb: "olmalıdır" },
@@ -28155,11 +28563,11 @@ var error31 = () => {
28155
28563
  };
28156
28564
  function ota_default() {
28157
28565
  return {
28158
- localeError: error31()
28566
+ localeError: error33()
28159
28567
  };
28160
28568
  }
28161
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
28162
- var error32 = () => {
28569
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ps.js
28570
+ var error34 = () => {
28163
28571
  const Sizable = {
28164
28572
  string: { unit: "توکي", verb: "ولري" },
28165
28573
  file: { unit: "بایټس", verb: "ولري" },
@@ -28269,11 +28677,11 @@ var error32 = () => {
28269
28677
  };
28270
28678
  function ps_default() {
28271
28679
  return {
28272
- localeError: error32()
28680
+ localeError: error34()
28273
28681
  };
28274
28682
  }
28275
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
28276
- var error33 = () => {
28683
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pl.js
28684
+ var error35 = () => {
28277
28685
  const Sizable = {
28278
28686
  string: { unit: "znaków", verb: "mieć" },
28279
28687
  file: { unit: "bajtów", verb: "mieć" },
@@ -28378,11 +28786,11 @@ var error33 = () => {
28378
28786
  };
28379
28787
  function pl_default() {
28380
28788
  return {
28381
- localeError: error33()
28789
+ localeError: error35()
28382
28790
  };
28383
28791
  }
28384
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
28385
- var error34 = () => {
28792
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pt.js
28793
+ var error36 = () => {
28386
28794
  const Sizable = {
28387
28795
  string: { unit: "caracteres", verb: "ter" },
28388
28796
  file: { unit: "bytes", verb: "ter" },
@@ -28393,8 +28801,117 @@ var error34 = () => {
28393
28801
  return Sizable[origin] ?? null;
28394
28802
  }
28395
28803
  const FormatDictionary = {
28396
- regex: "padrão",
28397
- email: "endereço de e-mail",
28804
+ regex: "padrão",
28805
+ email: "endereço de e-mail",
28806
+ url: "URL",
28807
+ emoji: "emoji",
28808
+ uuid: "UUID",
28809
+ uuidv4: "UUIDv4",
28810
+ uuidv6: "UUIDv6",
28811
+ nanoid: "nanoid",
28812
+ guid: "GUID",
28813
+ cuid: "cuid",
28814
+ cuid2: "cuid2",
28815
+ ulid: "ULID",
28816
+ xid: "XID",
28817
+ ksuid: "KSUID",
28818
+ datetime: "data e hora ISO",
28819
+ date: "data ISO",
28820
+ time: "hora ISO",
28821
+ duration: "duração ISO",
28822
+ ipv4: "endereço IPv4",
28823
+ ipv6: "endereço IPv6",
28824
+ cidrv4: "faixa de IPv4",
28825
+ cidrv6: "faixa de IPv6",
28826
+ base64: "texto codificado em base64",
28827
+ base64url: "URL codificada em base64",
28828
+ json_string: "texto JSON",
28829
+ e164: "número E.164",
28830
+ jwt: "JWT",
28831
+ template_literal: "entrada"
28832
+ };
28833
+ const TypeDictionary = {
28834
+ nan: "NaN",
28835
+ number: "número",
28836
+ null: "nulo"
28837
+ };
28838
+ return (issue2) => {
28839
+ switch (issue2.code) {
28840
+ case "invalid_type": {
28841
+ const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
28842
+ const receivedType = parsedType(issue2.input);
28843
+ const received = TypeDictionary[receivedType] ?? receivedType;
28844
+ if (/^[A-Z]/.test(issue2.expected)) {
28845
+ return `Tipo inválido: esperado instanceof ${issue2.expected}, recebido ${received}`;
28846
+ }
28847
+ return `Tipo inválido: esperado ${expected}, recebido ${received}`;
28848
+ }
28849
+ case "invalid_value":
28850
+ if (issue2.values.length === 1)
28851
+ return `Entrada inválida: esperado ${stringifyPrimitive(issue2.values[0])}`;
28852
+ return `Opção inválida: esperada uma das ${joinValues(issue2.values, "|")}`;
28853
+ case "too_big": {
28854
+ const adj = issue2.inclusive ? "<=" : "<";
28855
+ const sizing = getSizing(issue2.origin);
28856
+ if (sizing)
28857
+ return `Muito grande: esperado que ${issue2.origin ?? "valor"} tivesse ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
28858
+ return `Muito grande: esperado que ${issue2.origin ?? "valor"} fosse ${adj}${issue2.maximum.toString()}`;
28859
+ }
28860
+ case "too_small": {
28861
+ const adj = issue2.inclusive ? ">=" : ">";
28862
+ const sizing = getSizing(issue2.origin);
28863
+ if (sizing) {
28864
+ return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
28865
+ }
28866
+ return `Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`;
28867
+ }
28868
+ case "invalid_format": {
28869
+ const _issue = issue2;
28870
+ if (_issue.format === "starts_with")
28871
+ return `Texto inválido: deve começar com "${_issue.prefix}"`;
28872
+ if (_issue.format === "ends_with")
28873
+ return `Texto inválido: deve terminar com "${_issue.suffix}"`;
28874
+ if (_issue.format === "includes")
28875
+ return `Texto inválido: deve incluir "${_issue.includes}"`;
28876
+ if (_issue.format === "regex")
28877
+ return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;
28878
+ return `${FormatDictionary[_issue.format] ?? issue2.format} inválido`;
28879
+ }
28880
+ case "not_multiple_of":
28881
+ return `Número inválido: deve ser múltiplo de ${issue2.divisor}`;
28882
+ case "unrecognized_keys":
28883
+ return `Chave${issue2.keys.length > 1 ? "s" : ""} desconhecida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
28884
+ case "invalid_key":
28885
+ return `Chave inválida em ${issue2.origin}`;
28886
+ case "invalid_union":
28887
+ return "Entrada inválida";
28888
+ case "invalid_element":
28889
+ return `Valor inválido em ${issue2.origin}`;
28890
+ default:
28891
+ return `Campo inválido`;
28892
+ }
28893
+ };
28894
+ };
28895
+ function pt_default() {
28896
+ return {
28897
+ localeError: error36()
28898
+ };
28899
+ }
28900
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
28901
+ var error37 = () => {
28902
+ const Sizable = {
28903
+ string: { unit: "caractere", verb: "să aibă" },
28904
+ file: { unit: "octeți", verb: "să aibă" },
28905
+ array: { unit: "elemente", verb: "să aibă" },
28906
+ set: { unit: "elemente", verb: "să aibă" },
28907
+ map: { unit: "intrări", verb: "să aibă" }
28908
+ };
28909
+ function getSizing(origin) {
28910
+ return Sizable[origin] ?? null;
28911
+ }
28912
+ const FormatDictionary = {
28913
+ regex: "intrare",
28914
+ email: "adresă de email",
28398
28915
  url: "URL",
28399
28916
  emoji: "emoji",
28400
28917
  uuid: "UUID",
@@ -28407,25 +28924,37 @@ var error34 = () => {
28407
28924
  ulid: "ULID",
28408
28925
  xid: "XID",
28409
28926
  ksuid: "KSUID",
28410
- datetime: "data e hora ISO",
28411
- date: "data ISO",
28412
- time: "hora ISO",
28413
- duration: "duração ISO",
28414
- ipv4: "endereço IPv4",
28415
- ipv6: "endereço IPv6",
28416
- cidrv4: "faixa de IPv4",
28417
- cidrv6: "faixa de IPv6",
28418
- base64: "texto codificado em base64",
28419
- base64url: "URL codificada em base64",
28420
- json_string: "texto JSON",
28421
- e164: "número E.164",
28927
+ datetime: "dată și oră ISO",
28928
+ date: "dată ISO",
28929
+ time: "oră ISO",
28930
+ duration: "durată ISO",
28931
+ ipv4: "adresă IPv4",
28932
+ ipv6: "adresă IPv6",
28933
+ mac: "adresă MAC",
28934
+ cidrv4: "interval IPv4",
28935
+ cidrv6: "interval IPv6",
28936
+ base64: "șir codat base64",
28937
+ base64url: "șir codat base64url",
28938
+ json_string: "șir JSON",
28939
+ e164: "număr E.164",
28422
28940
  jwt: "JWT",
28423
- template_literal: "entrada"
28941
+ template_literal: "intrare"
28424
28942
  };
28425
28943
  const TypeDictionary = {
28426
28944
  nan: "NaN",
28427
- number: "número",
28428
- null: "nulo"
28945
+ string: "șir",
28946
+ number: "număr",
28947
+ boolean: "boolean",
28948
+ function: "funcție",
28949
+ array: "matrice",
28950
+ object: "obiect",
28951
+ undefined: "nedefinit",
28952
+ symbol: "simbol",
28953
+ bigint: "număr mare",
28954
+ void: "void",
28955
+ never: "never",
28956
+ map: "hartă",
28957
+ set: "set"
28429
28958
  };
28430
28959
  return (issue2) => {
28431
28960
  switch (issue2.code) {
@@ -28433,63 +28962,61 @@ var error34 = () => {
28433
28962
  const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
28434
28963
  const receivedType = parsedType(issue2.input);
28435
28964
  const received = TypeDictionary[receivedType] ?? receivedType;
28436
- if (/^[A-Z]/.test(issue2.expected)) {
28437
- return `Tipo inválido: esperado instanceof ${issue2.expected}, recebido ${received}`;
28438
- }
28439
- return `Tipo inválido: esperado ${expected}, recebido ${received}`;
28965
+ return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
28440
28966
  }
28441
28967
  case "invalid_value":
28442
28968
  if (issue2.values.length === 1)
28443
- return `Entrada inválida: esperado ${stringifyPrimitive(issue2.values[0])}`;
28444
- return `Opção inválida: esperada uma das ${joinValues(issue2.values, "|")}`;
28969
+ return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
28970
+ return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
28445
28971
  case "too_big": {
28446
28972
  const adj = issue2.inclusive ? "<=" : "<";
28447
28973
  const sizing = getSizing(issue2.origin);
28448
28974
  if (sizing)
28449
- return `Muito grande: esperado que ${issue2.origin ?? "valor"} tivesse ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementos"}`;
28450
- return `Muito grande: esperado que ${issue2.origin ?? "valor"} fosse ${adj}${issue2.maximum.toString()}`;
28975
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
28976
+ return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
28451
28977
  }
28452
28978
  case "too_small": {
28453
28979
  const adj = issue2.inclusive ? ">=" : ">";
28454
28980
  const sizing = getSizing(issue2.origin);
28455
28981
  if (sizing) {
28456
- return `Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
28982
+ return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
28457
28983
  }
28458
- return `Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`;
28984
+ return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
28459
28985
  }
28460
28986
  case "invalid_format": {
28461
28987
  const _issue = issue2;
28462
- if (_issue.format === "starts_with")
28463
- return `Texto inválido: deve começar com "${_issue.prefix}"`;
28988
+ if (_issue.format === "starts_with") {
28989
+ return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
28990
+ }
28464
28991
  if (_issue.format === "ends_with")
28465
- return `Texto inválido: deve terminar com "${_issue.suffix}"`;
28992
+ return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
28466
28993
  if (_issue.format === "includes")
28467
- return `Texto inválido: deve incluir "${_issue.includes}"`;
28994
+ return `Șir invalid: trebuie să includă "${_issue.includes}"`;
28468
28995
  if (_issue.format === "regex")
28469
- return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;
28470
- return `${FormatDictionary[_issue.format] ?? issue2.format} inválido`;
28996
+ return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
28997
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
28471
28998
  }
28472
28999
  case "not_multiple_of":
28473
- return `Número inválido: deve ser múltiplo de ${issue2.divisor}`;
29000
+ return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
28474
29001
  case "unrecognized_keys":
28475
- return `Chave${issue2.keys.length > 1 ? "s" : ""} desconhecida${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
29002
+ return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
28476
29003
  case "invalid_key":
28477
- return `Chave inválida em ${issue2.origin}`;
29004
+ return `Cheie invalidă în ${issue2.origin}`;
28478
29005
  case "invalid_union":
28479
- return "Entrada inválida";
29006
+ return "Intrare invalidă";
28480
29007
  case "invalid_element":
28481
- return `Valor inválido em ${issue2.origin}`;
29008
+ return `Valoare invalidă în ${issue2.origin}`;
28482
29009
  default:
28483
- return `Campo inválido`;
29010
+ return `Intrare invalidă`;
28484
29011
  }
28485
29012
  };
28486
29013
  };
28487
- function pt_default() {
29014
+ function ro_default() {
28488
29015
  return {
28489
- localeError: error34()
29016
+ localeError: error37()
28490
29017
  };
28491
29018
  }
28492
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
29019
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ru.js
28493
29020
  function getRussianPlural(count, one, few, many) {
28494
29021
  const absCount = Math.abs(count);
28495
29022
  const lastDigit = absCount % 10;
@@ -28505,7 +29032,7 @@ function getRussianPlural(count, one, few, many) {
28505
29032
  }
28506
29033
  return many;
28507
29034
  }
28508
- var error35 = () => {
29035
+ var error38 = () => {
28509
29036
  const Sizable = {
28510
29037
  string: {
28511
29038
  unit: {
@@ -28642,11 +29169,11 @@ var error35 = () => {
28642
29169
  };
28643
29170
  function ru_default() {
28644
29171
  return {
28645
- localeError: error35()
29172
+ localeError: error38()
28646
29173
  };
28647
29174
  }
28648
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
28649
- var error36 = () => {
29175
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sl.js
29176
+ var error39 = () => {
28650
29177
  const Sizable = {
28651
29178
  string: { unit: "znakov", verb: "imeti" },
28652
29179
  file: { unit: "bajtov", verb: "imeti" },
@@ -28751,11 +29278,11 @@ var error36 = () => {
28751
29278
  };
28752
29279
  function sl_default() {
28753
29280
  return {
28754
- localeError: error36()
29281
+ localeError: error39()
28755
29282
  };
28756
29283
  }
28757
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
28758
- var error37 = () => {
29284
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sv.js
29285
+ var error40 = () => {
28759
29286
  const Sizable = {
28760
29287
  string: { unit: "tecken", verb: "att ha" },
28761
29288
  file: { unit: "bytes", verb: "att ha" },
@@ -28861,11 +29388,11 @@ var error37 = () => {
28861
29388
  };
28862
29389
  function sv_default() {
28863
29390
  return {
28864
- localeError: error37()
29391
+ localeError: error40()
28865
29392
  };
28866
29393
  }
28867
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
28868
- var error38 = () => {
29394
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ta.js
29395
+ var error41 = () => {
28869
29396
  const Sizable = {
28870
29397
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
28871
29398
  file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -28971,11 +29498,11 @@ var error38 = () => {
28971
29498
  };
28972
29499
  function ta_default() {
28973
29500
  return {
28974
- localeError: error38()
29501
+ localeError: error41()
28975
29502
  };
28976
29503
  }
28977
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
28978
- var error39 = () => {
29504
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/th.js
29505
+ var error42 = () => {
28979
29506
  const Sizable = {
28980
29507
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
28981
29508
  file: { unit: "ไบต์", verb: "ควรมี" },
@@ -29081,11 +29608,11 @@ var error39 = () => {
29081
29608
  };
29082
29609
  function th_default() {
29083
29610
  return {
29084
- localeError: error39()
29611
+ localeError: error42()
29085
29612
  };
29086
29613
  }
29087
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
29088
- var error40 = () => {
29614
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/tr.js
29615
+ var error43 = () => {
29089
29616
  const Sizable = {
29090
29617
  string: { unit: "karakter", verb: "olmalı" },
29091
29618
  file: { unit: "bayt", verb: "olmalı" },
@@ -29186,11 +29713,11 @@ var error40 = () => {
29186
29713
  };
29187
29714
  function tr_default() {
29188
29715
  return {
29189
- localeError: error40()
29716
+ localeError: error43()
29190
29717
  };
29191
29718
  }
29192
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
29193
- var error41 = () => {
29719
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uk.js
29720
+ var error44 = () => {
29194
29721
  const Sizable = {
29195
29722
  string: { unit: "символів", verb: "матиме" },
29196
29723
  file: { unit: "байтів", verb: "матиме" },
@@ -29294,16 +29821,16 @@ var error41 = () => {
29294
29821
  };
29295
29822
  function uk_default() {
29296
29823
  return {
29297
- localeError: error41()
29824
+ localeError: error44()
29298
29825
  };
29299
29826
  }
29300
29827
 
29301
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
29828
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ua.js
29302
29829
  function ua_default() {
29303
29830
  return uk_default();
29304
29831
  }
29305
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
29306
- var error42 = () => {
29832
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ur.js
29833
+ var error45 = () => {
29307
29834
  const Sizable = {
29308
29835
  string: { unit: "حروف", verb: "ہونا" },
29309
29836
  file: { unit: "بائٹس", verb: "ہونا" },
@@ -29409,16 +29936,17 @@ var error42 = () => {
29409
29936
  };
29410
29937
  function ur_default() {
29411
29938
  return {
29412
- localeError: error42()
29939
+ localeError: error45()
29413
29940
  };
29414
29941
  }
29415
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
29416
- var error43 = () => {
29942
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uz.js
29943
+ var error46 = () => {
29417
29944
  const Sizable = {
29418
29945
  string: { unit: "belgi", verb: "bo‘lishi kerak" },
29419
29946
  file: { unit: "bayt", verb: "bo‘lishi kerak" },
29420
29947
  array: { unit: "element", verb: "bo‘lishi kerak" },
29421
- set: { unit: "element", verb: "bo‘lishi kerak" }
29948
+ set: { unit: "element", verb: "bo‘lishi kerak" },
29949
+ map: { unit: "yozuv", verb: "bo‘lishi kerak" }
29422
29950
  };
29423
29951
  function getSizing(origin) {
29424
29952
  return Sizable[origin] ?? null;
@@ -29518,11 +30046,11 @@ var error43 = () => {
29518
30046
  };
29519
30047
  function uz_default() {
29520
30048
  return {
29521
- localeError: error43()
30049
+ localeError: error46()
29522
30050
  };
29523
30051
  }
29524
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
29525
- var error44 = () => {
30052
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/vi.js
30053
+ var error47 = () => {
29526
30054
  const Sizable = {
29527
30055
  string: { unit: "ký tự", verb: "có" },
29528
30056
  file: { unit: "byte", verb: "có" },
@@ -29626,11 +30154,11 @@ var error44 = () => {
29626
30154
  };
29627
30155
  function vi_default() {
29628
30156
  return {
29629
- localeError: error44()
30157
+ localeError: error47()
29630
30158
  };
29631
30159
  }
29632
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
29633
- var error45 = () => {
30160
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
30161
+ var error48 = () => {
29634
30162
  const Sizable = {
29635
30163
  string: { unit: "字符", verb: "包含" },
29636
30164
  file: { unit: "字节", verb: "包含" },
@@ -29735,11 +30263,11 @@ var error45 = () => {
29735
30263
  };
29736
30264
  function zh_CN_default() {
29737
30265
  return {
29738
- localeError: error45()
30266
+ localeError: error48()
29739
30267
  };
29740
30268
  }
29741
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
29742
- var error46 = () => {
30269
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
30270
+ var error49 = () => {
29743
30271
  const Sizable = {
29744
30272
  string: { unit: "字元", verb: "擁有" },
29745
30273
  file: { unit: "位元組", verb: "擁有" },
@@ -29842,11 +30370,11 @@ var error46 = () => {
29842
30370
  };
29843
30371
  function zh_TW_default() {
29844
30372
  return {
29845
- localeError: error46()
30373
+ localeError: error49()
29846
30374
  };
29847
30375
  }
29848
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
29849
- var error47 = () => {
30376
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/yo.js
30377
+ var error50 = () => {
29850
30378
  const Sizable = {
29851
30379
  string: { unit: "àmi", verb: "ní" },
29852
30380
  file: { unit: "bytes", verb: "ní" },
@@ -29949,11 +30477,11 @@ var error47 = () => {
29949
30477
  };
29950
30478
  function yo_default() {
29951
30479
  return {
29952
- localeError: error47()
30480
+ localeError: error50()
29953
30481
  };
29954
30482
  }
29955
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
29956
- var _a;
30483
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/registries.js
30484
+ var _a2;
29957
30485
  var $output = Symbol("ZodOutput");
29958
30486
  var $input = Symbol("ZodInput");
29959
30487
 
@@ -30000,9 +30528,9 @@ class $ZodRegistry {
30000
30528
  function registry() {
30001
30529
  return new $ZodRegistry;
30002
30530
  }
30003
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
30531
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
30004
30532
  var globalRegistry = globalThis.__zod_globalRegistry;
30005
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
30533
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
30006
30534
  function _string(Class2, params) {
30007
30535
  return new Class2({
30008
30536
  type: "string",
@@ -30806,7 +31334,7 @@ function _refine(Class2, fn, _params) {
30806
31334
  });
30807
31335
  return schema;
30808
31336
  }
30809
- function _superRefine(fn) {
31337
+ function _superRefine(fn, params) {
30810
31338
  const ch = _check((payload) => {
30811
31339
  payload.addIssue = (issue2) => {
30812
31340
  if (typeof issue2 === "string") {
@@ -30823,7 +31351,7 @@ function _superRefine(fn) {
30823
31351
  }
30824
31352
  };
30825
31353
  return fn(payload.value, payload);
30826
- });
31354
+ }, params);
30827
31355
  return ch;
30828
31356
  }
30829
31357
  function _check(fn, params) {
@@ -30922,7 +31450,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
30922
31450
  const inst = new Class2(def);
30923
31451
  return inst;
30924
31452
  }
30925
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
31453
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
30926
31454
  function initializeContext(params) {
30927
31455
  let target = params?.target ?? "draft-2020-12";
30928
31456
  if (target === "draft-4")
@@ -30944,7 +31472,7 @@ function initializeContext(params) {
30944
31472
  };
30945
31473
  }
30946
31474
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
30947
- var _a2;
31475
+ var _a3;
30948
31476
  const def = schema._zod.def;
30949
31477
  const seen = ctx.seen.get(schema);
30950
31478
  if (seen) {
@@ -30991,8 +31519,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
30991
31519
  delete result.schema.examples;
30992
31520
  delete result.schema.default;
30993
31521
  }
30994
- if (ctx.io === "input" && result.schema._prefault)
30995
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
31522
+ if (ctx.io === "input" && "_prefault" in result.schema)
31523
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
30996
31524
  delete result.schema._prefault;
30997
31525
  const _result = ctx.seen.get(schema);
30998
31526
  return _result.schema;
@@ -31169,10 +31697,15 @@ function finalize(ctx, schema) {
31169
31697
  result.$id = ctx.external.uri(id);
31170
31698
  }
31171
31699
  Object.assign(result, root.def ?? root.schema);
31700
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
31701
+ if (rootMetaId !== undefined && result.id === rootMetaId)
31702
+ delete result.id;
31172
31703
  const defs = ctx.external?.defs ?? {};
31173
31704
  for (const entry of ctx.seen.entries()) {
31174
31705
  const seen = entry[1];
31175
31706
  if (seen.def && seen.defId) {
31707
+ if (seen.def.id === seen.defId)
31708
+ delete seen.def.id;
31176
31709
  defs[seen.defId] = seen.def;
31177
31710
  }
31178
31711
  }
@@ -31227,6 +31760,8 @@ function isTransforming(_schema, _ctx) {
31227
31760
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
31228
31761
  }
31229
31762
  if (def.type === "pipe") {
31763
+ if (_schema._zod.traits.has("$ZodCodec"))
31764
+ return true;
31230
31765
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
31231
31766
  }
31232
31767
  if (def.type === "object") {
@@ -31267,7 +31802,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
31267
31802
  extractDefs(ctx, schema);
31268
31803
  return finalize(ctx, schema);
31269
31804
  };
31270
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
31805
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
31271
31806
  var formatMap = {
31272
31807
  guid: "uuid",
31273
31808
  url: "uri",
@@ -31314,39 +31849,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
31314
31849
  json.type = "integer";
31315
31850
  else
31316
31851
  json.type = "number";
31317
- if (typeof exclusiveMinimum === "number") {
31318
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
31852
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
31853
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
31854
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
31855
+ if (exMin) {
31856
+ if (legacy) {
31319
31857
  json.minimum = exclusiveMinimum;
31320
31858
  json.exclusiveMinimum = true;
31321
31859
  } else {
31322
31860
  json.exclusiveMinimum = exclusiveMinimum;
31323
31861
  }
31324
- }
31325
- if (typeof minimum === "number") {
31862
+ } else if (typeof minimum === "number") {
31326
31863
  json.minimum = minimum;
31327
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
31328
- if (exclusiveMinimum >= minimum)
31329
- delete json.minimum;
31330
- else
31331
- delete json.exclusiveMinimum;
31332
- }
31333
31864
  }
31334
- if (typeof exclusiveMaximum === "number") {
31335
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
31865
+ if (exMax) {
31866
+ if (legacy) {
31336
31867
  json.maximum = exclusiveMaximum;
31337
31868
  json.exclusiveMaximum = true;
31338
31869
  } else {
31339
31870
  json.exclusiveMaximum = exclusiveMaximum;
31340
31871
  }
31341
- }
31342
- if (typeof maximum === "number") {
31872
+ } else if (typeof maximum === "number") {
31343
31873
  json.maximum = maximum;
31344
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
31345
- if (exclusiveMaximum <= maximum)
31346
- delete json.maximum;
31347
- else
31348
- delete json.exclusiveMaximum;
31349
- }
31350
31874
  }
31351
31875
  if (typeof multipleOf === "number")
31352
31876
  json.multipleOf = multipleOf;
@@ -31514,7 +32038,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
31514
32038
  if (typeof maximum === "number")
31515
32039
  json.maxItems = maximum;
31516
32040
  json.type = "array";
31517
- json.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
32041
+ json.items = process2(def.element, ctx, {
32042
+ ...params,
32043
+ path: [...params.path, "items"]
32044
+ });
31518
32045
  };
31519
32046
  var objectProcessor = (schema, ctx, _json, params) => {
31520
32047
  const json = _json;
@@ -31707,7 +32234,8 @@ var catchProcessor = (schema, ctx, json, params) => {
31707
32234
  };
31708
32235
  var pipeProcessor = (schema, ctx, _json, params) => {
31709
32236
  const def = schema._zod.def;
31710
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
32237
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
32238
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
31711
32239
  process2(innerType, ctx, params);
31712
32240
  const seen = ctx.seen.get(schema);
31713
32241
  seen.ref = innerType;
@@ -31812,7 +32340,7 @@ function toJSONSchema(input, params) {
31812
32340
  extractDefs(ctx, input);
31813
32341
  return finalize(ctx, input);
31814
32342
  }
31815
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
32343
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
31816
32344
  class JSONSchemaGenerator {
31817
32345
  get metadataRegistry() {
31818
32346
  return this.ctx.metadataRegistry;
@@ -31871,9 +32399,9 @@ class JSONSchemaGenerator {
31871
32399
  return plainResult;
31872
32400
  }
31873
32401
  }
31874
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
32402
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
31875
32403
  var exports_json_schema = {};
31876
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
32404
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
31877
32405
  var exports_schemas2 = {};
31878
32406
  __export(exports_schemas2, {
31879
32407
  xor: () => xor,
@@ -31933,6 +32461,7 @@ __export(exports_schemas2, {
31933
32461
  json: () => json,
31934
32462
  ipv6: () => ipv62,
31935
32463
  ipv4: () => ipv42,
32464
+ invertCodec: () => invertCodec,
31936
32465
  intersection: () => intersection,
31937
32466
  int64: () => int64,
31938
32467
  int32: () => int32,
@@ -31993,6 +32522,7 @@ __export(exports_schemas2, {
31993
32522
  ZodRecord: () => ZodRecord,
31994
32523
  ZodReadonly: () => ZodReadonly,
31995
32524
  ZodPromise: () => ZodPromise,
32525
+ ZodPreprocess: () => ZodPreprocess,
31996
32526
  ZodPrefault: () => ZodPrefault,
31997
32527
  ZodPipe: () => ZodPipe,
31998
32528
  ZodOptional: () => ZodOptional,
@@ -32042,7 +32572,7 @@ __export(exports_schemas2, {
32042
32572
  ZodAny: () => ZodAny
32043
32573
  });
32044
32574
 
32045
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
32575
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/checks.js
32046
32576
  var exports_checks2 = {};
32047
32577
  __export(exports_checks2, {
32048
32578
  uppercase: () => _uppercase,
@@ -32076,7 +32606,7 @@ __export(exports_checks2, {
32076
32606
  endsWith: () => _endsWith
32077
32607
  });
32078
32608
 
32079
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
32609
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
32080
32610
  var exports_iso = {};
32081
32611
  __export(exports_iso, {
32082
32612
  time: () => time2,
@@ -32117,7 +32647,7 @@ function duration2(params) {
32117
32647
  return _isoDuration(ZodISODuration, params);
32118
32648
  }
32119
32649
 
32120
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
32650
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/errors.js
32121
32651
  var initializer2 = (inst, issues) => {
32122
32652
  $ZodError.init(inst, issues);
32123
32653
  inst.name = "ZodError";
@@ -32147,12 +32677,12 @@ var initializer2 = (inst, issues) => {
32147
32677
  }
32148
32678
  });
32149
32679
  };
32150
- var ZodError = $constructor("ZodError", initializer2);
32151
- var ZodRealError = $constructor("ZodError", initializer2, {
32680
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
32681
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
32152
32682
  Parent: Error
32153
32683
  });
32154
32684
 
32155
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
32685
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/parse.js
32156
32686
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
32157
32687
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
32158
32688
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -32166,7 +32696,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
32166
32696
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
32167
32697
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
32168
32698
 
32169
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
32699
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
32700
+ var _installedGroups = /* @__PURE__ */ new WeakMap;
32701
+ function _installLazyMethods(inst, group, methods) {
32702
+ const proto = Object.getPrototypeOf(inst);
32703
+ let installed = _installedGroups.get(proto);
32704
+ if (!installed) {
32705
+ installed = new Set;
32706
+ _installedGroups.set(proto, installed);
32707
+ }
32708
+ if (installed.has(group))
32709
+ return;
32710
+ installed.add(group);
32711
+ for (const key in methods) {
32712
+ const fn = methods[key];
32713
+ Object.defineProperty(proto, key, {
32714
+ configurable: true,
32715
+ enumerable: false,
32716
+ get() {
32717
+ const bound = fn.bind(this);
32718
+ Object.defineProperty(this, key, {
32719
+ configurable: true,
32720
+ writable: true,
32721
+ enumerable: true,
32722
+ value: bound
32723
+ });
32724
+ return bound;
32725
+ },
32726
+ set(v) {
32727
+ Object.defineProperty(this, key, {
32728
+ configurable: true,
32729
+ writable: true,
32730
+ enumerable: true,
32731
+ value: v
32732
+ });
32733
+ }
32734
+ });
32735
+ }
32736
+ }
32170
32737
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
32171
32738
  $ZodType.init(inst, def);
32172
32739
  Object.assign(inst["~standard"], {
@@ -32179,23 +32746,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
32179
32746
  inst.def = def;
32180
32747
  inst.type = def.type;
32181
32748
  Object.defineProperty(inst, "_def", { value: def });
32182
- inst.check = (...checks2) => {
32183
- return inst.clone(exports_util.mergeDefs(def, {
32184
- checks: [
32185
- ...def.checks ?? [],
32186
- ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
32187
- ]
32188
- }), {
32189
- parent: true
32190
- });
32191
- };
32192
- inst.with = inst.check;
32193
- inst.clone = (def2, params) => clone(inst, def2, params);
32194
- inst.brand = () => inst;
32195
- inst.register = (reg, meta2) => {
32196
- reg.add(inst, meta2);
32197
- return inst;
32198
- };
32199
32749
  inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
32200
32750
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
32201
32751
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -32209,45 +32759,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
32209
32759
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
32210
32760
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
32211
32761
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
32212
- inst.refine = (check, params) => inst.check(refine(check, params));
32213
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
32214
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
32215
- inst.optional = () => optional(inst);
32216
- inst.exactOptional = () => exactOptional(inst);
32217
- inst.nullable = () => nullable(inst);
32218
- inst.nullish = () => optional(nullable(inst));
32219
- inst.nonoptional = (params) => nonoptional(inst, params);
32220
- inst.array = () => array(inst);
32221
- inst.or = (arg) => union([inst, arg]);
32222
- inst.and = (arg) => intersection(inst, arg);
32223
- inst.transform = (tx) => pipe(inst, transform(tx));
32224
- inst.default = (def2) => _default2(inst, def2);
32225
- inst.prefault = (def2) => prefault(inst, def2);
32226
- inst.catch = (params) => _catch2(inst, params);
32227
- inst.pipe = (target) => pipe(inst, target);
32228
- inst.readonly = () => readonly(inst);
32229
- inst.describe = (description) => {
32230
- const cl = inst.clone();
32231
- globalRegistry.add(cl, { description });
32232
- return cl;
32233
- };
32762
+ _installLazyMethods(inst, "ZodType", {
32763
+ check(...chks) {
32764
+ const def2 = this.def;
32765
+ return this.clone(exports_util.mergeDefs(def2, {
32766
+ checks: [
32767
+ ...def2.checks ?? [],
32768
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
32769
+ ]
32770
+ }), { parent: true });
32771
+ },
32772
+ with(...chks) {
32773
+ return this.check(...chks);
32774
+ },
32775
+ clone(def2, params) {
32776
+ return clone(this, def2, params);
32777
+ },
32778
+ brand() {
32779
+ return this;
32780
+ },
32781
+ register(reg, meta2) {
32782
+ reg.add(this, meta2);
32783
+ return this;
32784
+ },
32785
+ refine(check, params) {
32786
+ return this.check(refine(check, params));
32787
+ },
32788
+ superRefine(refinement, params) {
32789
+ return this.check(superRefine(refinement, params));
32790
+ },
32791
+ overwrite(fn) {
32792
+ return this.check(_overwrite(fn));
32793
+ },
32794
+ optional() {
32795
+ return optional(this);
32796
+ },
32797
+ exactOptional() {
32798
+ return exactOptional(this);
32799
+ },
32800
+ nullable() {
32801
+ return nullable(this);
32802
+ },
32803
+ nullish() {
32804
+ return optional(nullable(this));
32805
+ },
32806
+ nonoptional(params) {
32807
+ return nonoptional(this, params);
32808
+ },
32809
+ array() {
32810
+ return array(this);
32811
+ },
32812
+ or(arg) {
32813
+ return union([this, arg]);
32814
+ },
32815
+ and(arg) {
32816
+ return intersection(this, arg);
32817
+ },
32818
+ transform(tx) {
32819
+ return pipe(this, transform(tx));
32820
+ },
32821
+ default(d) {
32822
+ return _default2(this, d);
32823
+ },
32824
+ prefault(d) {
32825
+ return prefault(this, d);
32826
+ },
32827
+ catch(params) {
32828
+ return _catch2(this, params);
32829
+ },
32830
+ pipe(target) {
32831
+ return pipe(this, target);
32832
+ },
32833
+ readonly() {
32834
+ return readonly(this);
32835
+ },
32836
+ describe(description) {
32837
+ const cl = this.clone();
32838
+ globalRegistry.add(cl, { description });
32839
+ return cl;
32840
+ },
32841
+ meta(...args) {
32842
+ if (args.length === 0)
32843
+ return globalRegistry.get(this);
32844
+ const cl = this.clone();
32845
+ globalRegistry.add(cl, args[0]);
32846
+ return cl;
32847
+ },
32848
+ isOptional() {
32849
+ return this.safeParse(undefined).success;
32850
+ },
32851
+ isNullable() {
32852
+ return this.safeParse(null).success;
32853
+ },
32854
+ apply(fn) {
32855
+ return fn(this);
32856
+ }
32857
+ });
32234
32858
  Object.defineProperty(inst, "description", {
32235
32859
  get() {
32236
32860
  return globalRegistry.get(inst)?.description;
32237
32861
  },
32238
32862
  configurable: true
32239
32863
  });
32240
- inst.meta = (...args) => {
32241
- if (args.length === 0) {
32242
- return globalRegistry.get(inst);
32243
- }
32244
- const cl = inst.clone();
32245
- globalRegistry.add(cl, args[0]);
32246
- return cl;
32247
- };
32248
- inst.isOptional = () => inst.safeParse(undefined).success;
32249
- inst.isNullable = () => inst.safeParse(null).success;
32250
- inst.apply = (fn) => fn(inst);
32251
32864
  return inst;
32252
32865
  });
32253
32866
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -32258,21 +32871,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
32258
32871
  inst.format = bag.format ?? null;
32259
32872
  inst.minLength = bag.minimum ?? null;
32260
32873
  inst.maxLength = bag.maximum ?? null;
32261
- inst.regex = (...args) => inst.check(_regex(...args));
32262
- inst.includes = (...args) => inst.check(_includes(...args));
32263
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
32264
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
32265
- inst.min = (...args) => inst.check(_minLength(...args));
32266
- inst.max = (...args) => inst.check(_maxLength(...args));
32267
- inst.length = (...args) => inst.check(_length(...args));
32268
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
32269
- inst.lowercase = (params) => inst.check(_lowercase(params));
32270
- inst.uppercase = (params) => inst.check(_uppercase(params));
32271
- inst.trim = () => inst.check(_trim());
32272
- inst.normalize = (...args) => inst.check(_normalize(...args));
32273
- inst.toLowerCase = () => inst.check(_toLowerCase());
32274
- inst.toUpperCase = () => inst.check(_toUpperCase());
32275
- inst.slugify = () => inst.check(_slugify());
32874
+ _installLazyMethods(inst, "_ZodString", {
32875
+ regex(...args) {
32876
+ return this.check(_regex(...args));
32877
+ },
32878
+ includes(...args) {
32879
+ return this.check(_includes(...args));
32880
+ },
32881
+ startsWith(...args) {
32882
+ return this.check(_startsWith(...args));
32883
+ },
32884
+ endsWith(...args) {
32885
+ return this.check(_endsWith(...args));
32886
+ },
32887
+ min(...args) {
32888
+ return this.check(_minLength(...args));
32889
+ },
32890
+ max(...args) {
32891
+ return this.check(_maxLength(...args));
32892
+ },
32893
+ length(...args) {
32894
+ return this.check(_length(...args));
32895
+ },
32896
+ nonempty(...args) {
32897
+ return this.check(_minLength(1, ...args));
32898
+ },
32899
+ lowercase(params) {
32900
+ return this.check(_lowercase(params));
32901
+ },
32902
+ uppercase(params) {
32903
+ return this.check(_uppercase(params));
32904
+ },
32905
+ trim() {
32906
+ return this.check(_trim());
32907
+ },
32908
+ normalize(...args) {
32909
+ return this.check(_normalize(...args));
32910
+ },
32911
+ toLowerCase() {
32912
+ return this.check(_toLowerCase());
32913
+ },
32914
+ toUpperCase() {
32915
+ return this.check(_toUpperCase());
32916
+ },
32917
+ slugify() {
32918
+ return this.check(_slugify());
32919
+ }
32920
+ });
32276
32921
  });
32277
32922
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
32278
32923
  $ZodString.init(inst, def);
@@ -32351,7 +32996,7 @@ function url(params) {
32351
32996
  }
32352
32997
  function httpUrl(params) {
32353
32998
  return _url(ZodURL, {
32354
- protocol: /^https?$/,
32999
+ protocol: exports_regexes.httpProtocol,
32355
33000
  hostname: exports_regexes.domain,
32356
33001
  ...exports_util.normalizeParams(params)
32357
33002
  });
@@ -32493,21 +33138,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
32493
33138
  $ZodNumber.init(inst, def);
32494
33139
  ZodType.init(inst, def);
32495
33140
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
32496
- inst.gt = (value, params) => inst.check(_gt(value, params));
32497
- inst.gte = (value, params) => inst.check(_gte(value, params));
32498
- inst.min = (value, params) => inst.check(_gte(value, params));
32499
- inst.lt = (value, params) => inst.check(_lt(value, params));
32500
- inst.lte = (value, params) => inst.check(_lte(value, params));
32501
- inst.max = (value, params) => inst.check(_lte(value, params));
32502
- inst.int = (params) => inst.check(int(params));
32503
- inst.safe = (params) => inst.check(int(params));
32504
- inst.positive = (params) => inst.check(_gt(0, params));
32505
- inst.nonnegative = (params) => inst.check(_gte(0, params));
32506
- inst.negative = (params) => inst.check(_lt(0, params));
32507
- inst.nonpositive = (params) => inst.check(_lte(0, params));
32508
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
32509
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
32510
- inst.finite = () => inst;
33141
+ _installLazyMethods(inst, "ZodNumber", {
33142
+ gt(value, params) {
33143
+ return this.check(_gt(value, params));
33144
+ },
33145
+ gte(value, params) {
33146
+ return this.check(_gte(value, params));
33147
+ },
33148
+ min(value, params) {
33149
+ return this.check(_gte(value, params));
33150
+ },
33151
+ lt(value, params) {
33152
+ return this.check(_lt(value, params));
33153
+ },
33154
+ lte(value, params) {
33155
+ return this.check(_lte(value, params));
33156
+ },
33157
+ max(value, params) {
33158
+ return this.check(_lte(value, params));
33159
+ },
33160
+ int(params) {
33161
+ return this.check(int(params));
33162
+ },
33163
+ safe(params) {
33164
+ return this.check(int(params));
33165
+ },
33166
+ positive(params) {
33167
+ return this.check(_gt(0, params));
33168
+ },
33169
+ nonnegative(params) {
33170
+ return this.check(_gte(0, params));
33171
+ },
33172
+ negative(params) {
33173
+ return this.check(_lt(0, params));
33174
+ },
33175
+ nonpositive(params) {
33176
+ return this.check(_lte(0, params));
33177
+ },
33178
+ multipleOf(value, params) {
33179
+ return this.check(_multipleOf(value, params));
33180
+ },
33181
+ step(value, params) {
33182
+ return this.check(_multipleOf(value, params));
33183
+ },
33184
+ finite() {
33185
+ return this;
33186
+ }
33187
+ });
32511
33188
  const bag = inst._zod.bag;
32512
33189
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
32513
33190
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -32654,11 +33331,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
32654
33331
  ZodType.init(inst, def);
32655
33332
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
32656
33333
  inst.element = def.element;
32657
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
32658
- inst.nonempty = (params) => inst.check(_minLength(1, params));
32659
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
32660
- inst.length = (len, params) => inst.check(_length(len, params));
32661
- inst.unwrap = () => inst.element;
33334
+ _installLazyMethods(inst, "ZodArray", {
33335
+ min(n, params) {
33336
+ return this.check(_minLength(n, params));
33337
+ },
33338
+ nonempty(params) {
33339
+ return this.check(_minLength(1, params));
33340
+ },
33341
+ max(n, params) {
33342
+ return this.check(_maxLength(n, params));
33343
+ },
33344
+ length(n, params) {
33345
+ return this.check(_length(n, params));
33346
+ },
33347
+ unwrap() {
33348
+ return this.element;
33349
+ }
33350
+ });
32662
33351
  });
32663
33352
  function array(element, params) {
32664
33353
  return _array(ZodArray, element, params);
@@ -32674,23 +33363,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
32674
33363
  exports_util.defineLazy(inst, "shape", () => {
32675
33364
  return def.shape;
32676
33365
  });
32677
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
32678
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
32679
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
32680
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
32681
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
32682
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
32683
- inst.extend = (incoming) => {
32684
- return exports_util.extend(inst, incoming);
32685
- };
32686
- inst.safeExtend = (incoming) => {
32687
- return exports_util.safeExtend(inst, incoming);
32688
- };
32689
- inst.merge = (other) => exports_util.merge(inst, other);
32690
- inst.pick = (mask) => exports_util.pick(inst, mask);
32691
- inst.omit = (mask) => exports_util.omit(inst, mask);
32692
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
32693
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
33366
+ _installLazyMethods(inst, "ZodObject", {
33367
+ keyof() {
33368
+ return _enum2(Object.keys(this._zod.def.shape));
33369
+ },
33370
+ catchall(catchall) {
33371
+ return this.clone({ ...this._zod.def, catchall });
33372
+ },
33373
+ passthrough() {
33374
+ return this.clone({ ...this._zod.def, catchall: unknown() });
33375
+ },
33376
+ loose() {
33377
+ return this.clone({ ...this._zod.def, catchall: unknown() });
33378
+ },
33379
+ strict() {
33380
+ return this.clone({ ...this._zod.def, catchall: never() });
33381
+ },
33382
+ strip() {
33383
+ return this.clone({ ...this._zod.def, catchall: undefined });
33384
+ },
33385
+ extend(incoming) {
33386
+ return exports_util.extend(this, incoming);
33387
+ },
33388
+ safeExtend(incoming) {
33389
+ return exports_util.safeExtend(this, incoming);
33390
+ },
33391
+ merge(other) {
33392
+ return exports_util.merge(this, other);
33393
+ },
33394
+ pick(mask) {
33395
+ return exports_util.pick(this, mask);
33396
+ },
33397
+ omit(mask) {
33398
+ return exports_util.omit(this, mask);
33399
+ },
33400
+ partial(...args) {
33401
+ return exports_util.partial(ZodOptional, this, args[0]);
33402
+ },
33403
+ required(...args) {
33404
+ return exports_util.required(ZodNonOptional, this, args[0]);
33405
+ }
33406
+ });
32694
33407
  });
32695
33408
  function object(shape, params) {
32696
33409
  const def = {
@@ -32795,6 +33508,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
32795
33508
  inst.valueType = def.valueType;
32796
33509
  });
32797
33510
  function record(keyType, valueType, params) {
33511
+ if (!valueType || !valueType._zod) {
33512
+ return new ZodRecord({
33513
+ type: "record",
33514
+ keyType: string2(),
33515
+ valueType: keyType,
33516
+ ...exports_util.normalizeParams(valueType)
33517
+ });
33518
+ }
32798
33519
  return new ZodRecord({
32799
33520
  type: "record",
32800
33521
  keyType,
@@ -32966,10 +33687,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
32966
33687
  if (output instanceof Promise) {
32967
33688
  return output.then((output2) => {
32968
33689
  payload.value = output2;
33690
+ payload.fallback = true;
32969
33691
  return payload;
32970
33692
  });
32971
33693
  }
32972
33694
  payload.value = output;
33695
+ payload.fallback = true;
32973
33696
  return payload;
32974
33697
  };
32975
33698
  });
@@ -33123,6 +33846,20 @@ function codec(in_, out, params) {
33123
33846
  reverseTransform: params.encode
33124
33847
  });
33125
33848
  }
33849
+ function invertCodec(codec2) {
33850
+ const def = codec2._zod.def;
33851
+ return new ZodCodec({
33852
+ type: "pipe",
33853
+ in: def.out,
33854
+ out: def.in,
33855
+ transform: def.reverseTransform,
33856
+ reverseTransform: def.transform
33857
+ });
33858
+ }
33859
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
33860
+ ZodPipe.init(inst, def);
33861
+ $ZodPreprocess.init(inst, def);
33862
+ });
33126
33863
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
33127
33864
  $ZodReadonly.init(inst, def);
33128
33865
  ZodType.init(inst, def);
@@ -33201,8 +33938,8 @@ function custom(fn, _params) {
33201
33938
  function refine(fn, _params = {}) {
33202
33939
  return _refine(ZodCustom, fn, _params);
33203
33940
  }
33204
- function superRefine(fn) {
33205
- return _superRefine(fn);
33941
+ function superRefine(fn, params) {
33942
+ return _superRefine(fn, params);
33206
33943
  }
33207
33944
  var describe2 = describe;
33208
33945
  var meta2 = meta;
@@ -33240,9 +33977,13 @@ function json(params) {
33240
33977
  return jsonSchema;
33241
33978
  }
33242
33979
  function preprocess(fn, schema) {
33243
- return pipe(transform(fn), schema);
33980
+ return new ZodPreprocess({
33981
+ type: "pipe",
33982
+ in: transform(fn),
33983
+ out: schema
33984
+ });
33244
33985
  }
33245
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
33986
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/compat.js
33246
33987
  var ZodIssueCode = {
33247
33988
  invalid_type: "invalid_type",
33248
33989
  too_big: "too_big",
@@ -33266,13 +34007,13 @@ function getErrorMap() {
33266
34007
  }
33267
34008
  var ZodFirstPartyTypeKind;
33268
34009
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
33269
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
34010
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
33270
34011
  var z = {
33271
34012
  ...exports_schemas2,
33272
34013
  ...exports_checks2,
33273
34014
  iso: exports_iso
33274
34015
  };
33275
- var RECOGNIZED_KEYS = new Set([
34016
+ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
33276
34017
  "$schema",
33277
34018
  "$ref",
33278
34019
  "$defs",
@@ -33646,12 +34387,6 @@ function convertBaseSchema(schema, ctx) {
33646
34387
  default:
33647
34388
  throw new Error(`Unsupported type: ${type}`);
33648
34389
  }
33649
- if (schema.description) {
33650
- zodSchema = zodSchema.describe(schema.description);
33651
- }
33652
- if (schema.default !== undefined) {
33653
- zodSchema = zodSchema.default(schema.default);
33654
- }
33655
34390
  return zodSchema;
33656
34391
  }
33657
34392
  function convertSchema(schema, ctx) {
@@ -33688,6 +34423,9 @@ function convertSchema(schema, ctx) {
33688
34423
  if (schema.readOnly === true) {
33689
34424
  baseSchema = z.readonly(baseSchema);
33690
34425
  }
34426
+ if (schema.default !== undefined) {
34427
+ baseSchema = baseSchema.default(schema.default);
34428
+ }
33691
34429
  const extraMeta = {};
33692
34430
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
33693
34431
  for (const key of coreMetadataKeys) {
@@ -33709,25 +34447,34 @@ function convertSchema(schema, ctx) {
33709
34447
  if (Object.keys(extraMeta).length > 0) {
33710
34448
  ctx.registry.add(baseSchema, extraMeta);
33711
34449
  }
34450
+ if (schema.description) {
34451
+ baseSchema = baseSchema.describe(schema.description);
34452
+ }
33712
34453
  return baseSchema;
33713
34454
  }
33714
34455
  function fromJSONSchema(schema, params) {
33715
34456
  if (typeof schema === "boolean") {
33716
34457
  return schema ? z.any() : z.never();
33717
34458
  }
33718
- const version2 = detectVersion(schema, params?.defaultTarget);
33719
- const defs = schema.$defs || schema.definitions || {};
34459
+ let normalized;
34460
+ try {
34461
+ normalized = JSON.parse(JSON.stringify(schema));
34462
+ } catch {
34463
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
34464
+ }
34465
+ const version2 = detectVersion(normalized, params?.defaultTarget);
34466
+ const defs = normalized.$defs || normalized.definitions || {};
33720
34467
  const ctx = {
33721
34468
  version: version2,
33722
34469
  defs,
33723
34470
  refs: new Map,
33724
34471
  processing: new Set,
33725
- rootSchema: schema,
34472
+ rootSchema: normalized,
33726
34473
  registry: params?.registry ?? globalRegistry
33727
34474
  };
33728
- return convertSchema(schema, ctx);
34475
+ return convertSchema(normalized, ctx);
33729
34476
  }
33730
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
34477
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
33731
34478
  var exports_coerce = {};
33732
34479
  __export(exports_coerce, {
33733
34480
  string: () => string3,
@@ -33752,7 +34499,7 @@ function date4(params) {
33752
34499
  return _coercedDate(ZodDate, params);
33753
34500
  }
33754
34501
 
33755
- // ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
34502
+ // ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
33756
34503
  config(en_default());
33757
34504
  // src/openclaw-compat.ts
33758
34505
  var MB = 1024 * 1024;
@@ -33774,7 +34521,7 @@ function normalizeAccountId(value) {
33774
34521
  return normalized;
33775
34522
  }
33776
34523
  function emptyPluginConfigSchema() {
33777
- function error48(message) {
34524
+ function error51(message) {
33778
34525
  return { success: false, error: { issues: [{ path: [], message }] } };
33779
34526
  }
33780
34527
  return {
@@ -33783,10 +34530,10 @@ function emptyPluginConfigSchema() {
33783
34530
  return { success: true, data: undefined };
33784
34531
  }
33785
34532
  if (!value || typeof value !== "object" || Array.isArray(value)) {
33786
- return error48("expected config object");
34533
+ return error51("expected config object");
33787
34534
  }
33788
34535
  if (Object.keys(value).length > 0) {
33789
- return error48("config must be empty");
34536
+ return error51("config must be empty");
33790
34537
  }
33791
34538
  return { success: true, data: value };
33792
34539
  },
@@ -34717,10 +35464,10 @@ function describeInlineMediaContext(params) {
34717
35464
  parts.push(`uploadFileName=${params.uploadFileName}`);
34718
35465
  return parts.join(", ");
34719
35466
  }
34720
- function extractErrorMessage2(error48) {
34721
- if (error48 instanceof Error)
34722
- return error48.message;
34723
- return String(error48);
35467
+ function extractErrorMessage2(error51) {
35468
+ if (error51 instanceof Error)
35469
+ return error51.message;
35470
+ return String(error51);
34724
35471
  }
34725
35472
  function resolveMediaMaxBytes(params) {
34726
35473
  return resolveChannelMediaMaxBytes({
@@ -34755,11 +35502,11 @@ async function uploadInlineMediaFromUrl(params) {
34755
35502
  try {
34756
35503
  try {
34757
35504
  loaded = await runtimeMedia.loadWebMedia(params.mediaUrl, maxBytes);
34758
- } catch (error48) {
34759
- const message = String(error48);
35505
+ } catch (error51) {
35506
+ const message = String(error51);
34760
35507
  const deniedLocalPath = /not under an allowed directory/i.test(message);
34761
35508
  if (!deniedLocalPath || !looksLikeLocalMediaSource(params.mediaUrl)) {
34762
- throw error48;
35509
+ throw error51;
34763
35510
  }
34764
35511
  loaded = await loadWebMediaCompat(params.mediaUrl, maxBytes, {
34765
35512
  localRoots: "any"
@@ -34799,7 +35546,7 @@ async function uploadInlineMediaFromUrl(params) {
34799
35546
  uploadType,
34800
35547
  result: upload
34801
35548
  });
34802
- } catch (error48) {
35549
+ } catch (error51) {
34803
35550
  const context = describeInlineMediaContext({
34804
35551
  ...params.accountId !== undefined ? { accountId: params.accountId } : {},
34805
35552
  mediaUrl: params.mediaUrl,
@@ -34811,8 +35558,8 @@ async function uploadInlineMediaFromUrl(params) {
34811
35558
  ...uploadType ? { uploadType } : {},
34812
35559
  ...fileName ? { uploadFileName: fileName } : {}
34813
35560
  });
34814
- throw new Error(`inline media upload failed (${extractErrorMessage2(error48)}; ${context})`, {
34815
- cause: error48
35561
+ throw new Error(`inline media upload failed (${extractErrorMessage2(error51)}; ${context})`, {
35562
+ cause: error51
34816
35563
  });
34817
35564
  }
34818
35565
  }
@@ -35411,9 +36158,7 @@ function resolveInlineReplyActions(payload) {
35411
36158
  }
35412
36159
  if (!hasExplicitButtons)
35413
36160
  return;
35414
- const rows = normalizeReplyMarkupButtonsWith(rawButtons, {
35415
- ...mapCallbackData ? { mapCallbackData } : {}
35416
- });
36161
+ const rows = normalizeReplyMarkupButtonsWith(rawButtons, mapCallbackData ? { mapCallbackData } : undefined);
35417
36162
  return {
35418
36163
  rows: rows.map((row, rowIndex) => ({
35419
36164
  actions: row.map((button, buttonIndex) => ({
@@ -35616,11 +36361,35 @@ function resolveHistorySenderLabel(params) {
35616
36361
  return "assistant";
35617
36362
  const senderId = String(params.senderId);
35618
36363
  const profile = params.senderProfilesById.get(senderId);
35619
- if (profile?.username)
35620
- return `@${profile.username}`;
35621
- if (profile?.name)
35622
- return profile.name;
35623
- return `user:${senderId}`;
36364
+ return resolveInlineSenderLabel({
36365
+ senderId,
36366
+ senderName: profile?.name,
36367
+ senderUsername: profile?.username
36368
+ });
36369
+ }
36370
+ function resolveInlineSenderLabel(params) {
36371
+ const senderId = params.senderId.trim();
36372
+ const name = params.senderName?.trim();
36373
+ const usernameRaw = params.senderUsername?.trim().replace(/^@+/, "");
36374
+ const username = usernameRaw ? `@${usernameRaw}` : undefined;
36375
+ let label = name;
36376
+ if (name && username) {
36377
+ label = `${name} (${username})`;
36378
+ } else if (!name && username) {
36379
+ label = username;
36380
+ }
36381
+ const id = senderId ? `id:${senderId}` : undefined;
36382
+ if (label && id)
36383
+ return `${label} ${id}`;
36384
+ if (label)
36385
+ return label;
36386
+ return id ?? "id:unknown";
36387
+ }
36388
+ function resolveInlineConversationLabel(params) {
36389
+ if (!params.isGroup)
36390
+ return params.senderLabel;
36391
+ const title = params.groupTitle?.trim();
36392
+ return title ? `${title} id:${params.groupId}` : `group:${params.groupId}`;
35624
36393
  }
35625
36394
  function resolveHistoryLimit(params) {
35626
36395
  if (params.isGroup) {
@@ -35972,7 +36741,7 @@ async function monitorInlineProvider(params) {
35972
36741
  let client = null;
35973
36742
  const pushDiagnostics = (patch) => {
35974
36743
  statusSink?.({
35975
- ...patch ?? {},
36744
+ ...patch,
35976
36745
  ...client ? { diagnostics: client.getDiagnostics() } : {}
35977
36746
  });
35978
36747
  };
@@ -36103,16 +36872,14 @@ async function monitorInlineProvider(params) {
36103
36872
  const senderUsername = senderProfile?.username;
36104
36873
  const senderName = senderProfile?.name ?? (!isGroup ? chatInfo.title ?? undefined : undefined);
36105
36874
  if (reactionEvent) {
36106
- const actor = senderUsername != null && senderUsername.length > 0 ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
36107
36875
  const emoji3 = reactionEvent.emoji.trim() || "a reaction";
36108
36876
  const messageId = String(reactionEvent.targetMessageId);
36109
36877
  if (reactionEvent.action === "added") {
36110
- rawBody = `${actor} reacted with ${emoji3} to your message #${messageId}`;
36878
+ rawBody = `reacted with ${emoji3} to your message #${messageId}`;
36111
36879
  } else {
36112
- rawBody = `${actor} removed ${emoji3} from your message #${messageId}`;
36880
+ rawBody = `removed ${emoji3} from your message #${messageId}`;
36113
36881
  }
36114
36882
  } else if (callbackActionEvent) {
36115
- const actor = senderUsername != null && senderUsername.length > 0 ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
36116
36883
  const payload = {
36117
36884
  type: "inline_message_action_callback",
36118
36885
  interaction_id: String(callbackActionEvent.interactionId),
@@ -36123,7 +36890,7 @@ async function monitorInlineProvider(params) {
36123
36890
  data_base64: callbackDataToBase64(callbackActionEvent.data),
36124
36891
  data_utf8: callbackDataToUtf8(callbackActionEvent.data) ?? null
36125
36892
  };
36126
- rawBody = `${actor} pressed a button on message #${String(callbackActionEvent.targetMessageId)}
36893
+ rawBody = `pressed a button on message #${String(callbackActionEvent.targetMessageId)}
36127
36894
  ${JSON.stringify(payload)}`;
36128
36895
  }
36129
36896
  const dmPolicy = account.config.dmPolicy ?? "pairing";
@@ -36153,8 +36920,8 @@ ${JSON.stringify(payload)}`;
36153
36920
  callbackActionAnswered = true;
36154
36921
  };
36155
36922
  if (callbackActionEvent) {
36156
- await answerCallbackIfNeeded().catch((error48) => {
36157
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36923
+ await answerCallbackIfNeeded().catch((error51) => {
36924
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36158
36925
  });
36159
36926
  }
36160
36927
  const shouldEditCallbackTargetInPlace = callbackActionEvent != null;
@@ -36177,8 +36944,8 @@ ${JSON.stringify(payload)}`;
36177
36944
  if (isGroup) {
36178
36945
  if (groupPolicy === "disabled") {
36179
36946
  log?.info(`[${account.accountId}] inline: drop group chat=${String(chatId)} (groupPolicy=disabled)`);
36180
- await answerCallbackIfNeeded().catch((error48) => {
36181
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36947
+ await answerCallbackIfNeeded().catch((error51) => {
36948
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36182
36949
  });
36183
36950
  return;
36184
36951
  }
@@ -36186,8 +36953,8 @@ ${JSON.stringify(payload)}`;
36186
36953
  const allowed = allowlistMatch({ allowFrom: effectiveGroupAllowFrom, senderId });
36187
36954
  if (!allowed) {
36188
36955
  log?.info(`[${account.accountId}] inline: drop group sender=${senderId} (groupPolicy=allowlist)`);
36189
- await answerCallbackIfNeeded().catch((error48) => {
36190
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36956
+ await answerCallbackIfNeeded().catch((error51) => {
36957
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36191
36958
  });
36192
36959
  return;
36193
36960
  }
@@ -36195,8 +36962,8 @@ ${JSON.stringify(payload)}`;
36195
36962
  } else {
36196
36963
  if (dmPolicy === "disabled") {
36197
36964
  log?.info(`[${account.accountId}] inline: drop DM sender=${senderId} (dmPolicy=disabled)`);
36198
- await answerCallbackIfNeeded().catch((error48) => {
36199
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36965
+ await answerCallbackIfNeeded().catch((error51) => {
36966
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36200
36967
  });
36201
36968
  return;
36202
36969
  }
@@ -36228,8 +36995,8 @@ ${JSON.stringify(payload)}`;
36228
36995
  }
36229
36996
  }
36230
36997
  log?.info(`[${account.accountId}] inline: drop DM sender=${senderId} (dmPolicy=${dmPolicy})`);
36231
- await answerCallbackIfNeeded().catch((error48) => {
36232
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
36998
+ await answerCallbackIfNeeded().catch((error51) => {
36999
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36233
37000
  });
36234
37001
  return;
36235
37002
  }
@@ -36242,8 +37009,8 @@ ${JSON.stringify(payload)}`;
36242
37009
  reason: "control command (unauthorized)",
36243
37010
  target: senderId
36244
37011
  });
36245
- await answerCallbackIfNeeded().catch((error48) => {
36246
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37012
+ await answerCallbackIfNeeded().catch((error51) => {
37013
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36247
37014
  });
36248
37015
  return;
36249
37016
  }
@@ -36262,7 +37029,12 @@ ${JSON.stringify(payload)}`;
36262
37029
  const wasMentioned = nativeMentioned || patternMentioned;
36263
37030
  const messageTimestamp = Number(msg.date) * 1000;
36264
37031
  const groupHistoryKey = isGroup ? replyThreadContext ? `${route.sessionKey}:thread:${String(replyThreadContext.childChatId)}` : route.sessionKey : null;
36265
- const pendingHistorySender = senderUsername ? `@${senderUsername}` : senderName ?? `user:${senderId}`;
37032
+ const senderLabel = resolveInlineSenderLabel({
37033
+ senderId,
37034
+ senderName,
37035
+ senderUsername
37036
+ });
37037
+ const pendingHistorySender = senderLabel;
36266
37038
  const historyLimit = resolveHistoryLimit({
36267
37039
  cfg,
36268
37040
  isGroup,
@@ -36327,8 +37099,8 @@ ${JSON.stringify(payload)}`;
36327
37099
  messageId: String(msg.id)
36328
37100
  } : null
36329
37101
  });
36330
- await answerCallbackIfNeeded().catch((error48) => {
36331
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37102
+ await answerCallbackIfNeeded().catch((error51) => {
37103
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36332
37104
  });
36333
37105
  return;
36334
37106
  }
@@ -36362,8 +37134,8 @@ ${JSON.stringify(payload)}`;
36362
37134
  throw new Error(`inline native command menu: expected editMessage result, got ${String(result.oneofKind)}`);
36363
37135
  }
36364
37136
  deliveredNativeMenu = true;
36365
- } catch (error48) {
36366
- runtime2.error?.(`inline native command menu edit failed; falling back to send (${String(error48)})`);
37137
+ } catch (error51) {
37138
+ runtime2.error?.(`inline native command menu edit failed; falling back to send (${String(error51)})`);
36367
37139
  }
36368
37140
  }
36369
37141
  if (!deliveredNativeMenu) {
@@ -36377,8 +37149,8 @@ ${JSON.stringify(payload)}`;
36377
37149
  }
36378
37150
  }
36379
37151
  statusSink?.({ lastOutboundAt: Date.now() });
36380
- await answerCallbackIfNeeded().catch((error48) => {
36381
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37152
+ await answerCallbackIfNeeded().catch((error51) => {
37153
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36382
37154
  });
36383
37155
  return;
36384
37156
  }
@@ -36407,8 +37179,8 @@ ${JSON.stringify(payload)}`;
36407
37179
  if (result.oneofKind !== "editMessage") {
36408
37180
  throw new Error(`inline model picker edit: expected editMessage result, got ${String(result.oneofKind)}`);
36409
37181
  }
36410
- } catch (error48) {
36411
- runtime2.error?.(`inline model picker edit failed; falling back to send (${String(error48)})`);
37182
+ } catch (error51) {
37183
+ runtime2.error?.(`inline model picker edit failed; falling back to send (${String(error51)})`);
36412
37184
  const sent = await client.sendMessage({
36413
37185
  chatId,
36414
37186
  text,
@@ -36467,14 +37239,14 @@ Select a provider:`, providerButtons);
36467
37239
  await deliverModelPickerEdit(`✅ Model ${actionText}
36468
37240
 
36469
37241
  This model will be used for your next message.`, []);
36470
- } catch (error48) {
36471
- await deliverModelPickerEdit(`❌ Failed to change model: ${String(error48)}`, []);
37242
+ } catch (error51) {
37243
+ await deliverModelPickerEdit(`❌ Failed to change model: ${String(error51)}`, []);
36472
37244
  }
36473
37245
  }
36474
37246
  }
36475
37247
  statusSink?.({ lastOutboundAt: Date.now() });
36476
- await answerCallbackIfNeeded().catch((error48) => {
36477
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37248
+ await answerCallbackIfNeeded().catch((error51) => {
37249
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36478
37250
  });
36479
37251
  return;
36480
37252
  }
@@ -36485,41 +37257,56 @@ This model will be used for your next message.`, []);
36485
37257
  ...log ? { log } : {}
36486
37258
  });
36487
37259
  const timestamp = messageTimestamp;
36488
- const fromLabel = isGroup ? `chat:${effectiveGroupTitle ?? String(effectiveChatId)}` : `user:${senderId}`;
37260
+ const fromLabel = resolveInlineConversationLabel({
37261
+ isGroup,
37262
+ groupTitle: effectiveGroupTitle,
37263
+ groupId: String(effectiveChatId),
37264
+ senderLabel
37265
+ });
36489
37266
  const storePath = core3.channel.session.resolveStorePath(cfg.session?.store, { agentId: route.agentId });
36490
37267
  const envelopeOptions = core3.channel.reply.resolveEnvelopeFormatOptions(cfg);
36491
37268
  const previousTimestamp = core3.channel.session.readSessionUpdatedAt({ storePath, sessionKey: route.sessionKey });
36492
- const combinedBody = [
37269
+ const currentBody = buildInlineBodyForAgent({
37270
+ rawBody,
37271
+ currentAttachmentText,
37272
+ currentEntityText
37273
+ });
37274
+ const contextBody = [
36493
37275
  effectiveHistoryContext.historyText,
36494
37276
  effectiveHistoryContext.attachmentText,
36495
37277
  effectiveHistoryContext.entityText,
36496
- INLINE_FORMATTING_NOTE,
36497
- `Current message:
36498
- ${rawBody}`,
36499
- currentAttachmentText && currentAttachmentText !== rawBody ? `Current media/attachments:
36500
- ${currentAttachmentText}` : null,
36501
- currentEntityText ? `Current message entities:
36502
- ${currentEntityText}` : null
37278
+ INLINE_FORMATTING_NOTE
36503
37279
  ].filter(Boolean).join(`
36504
37280
 
36505
37281
  `);
36506
- let body = core3.channel.reply.formatAgentEnvelope({
37282
+ const currentEnvelope = core3.channel.reply.formatInboundEnvelope({
36507
37283
  channel: "Inline",
36508
37284
  from: fromLabel,
36509
37285
  timestamp,
37286
+ chatType: isGroup ? "group" : "direct",
37287
+ sender: {
37288
+ id: senderId,
37289
+ ...senderName ? { name: senderName } : {},
37290
+ ...senderUsername ? { username: senderUsername } : {}
37291
+ },
36510
37292
  ...previousTimestamp != null ? { previousTimestamp } : {},
36511
37293
  envelope: envelopeOptions,
36512
- body: combinedBody || rawBody
37294
+ body: currentBody || rawBody
36513
37295
  });
37296
+ let body = [contextBody, currentEnvelope].filter(Boolean).join(`
37297
+
37298
+ `);
36514
37299
  if (isGroup && groupHistoryKey) {
36515
37300
  body = buildPendingHistoryContextFromMap({
36516
37301
  historyMap: groupPendingHistories,
36517
37302
  historyKey: groupHistoryKey,
36518
37303
  limit: historyLimit,
36519
37304
  currentMessage: body,
36520
- formatEntry: (entry) => core3.channel.reply.formatAgentEnvelope({
37305
+ formatEntry: (entry) => core3.channel.reply.formatInboundEnvelope({
36521
37306
  channel: "Inline",
36522
37307
  from: fromLabel,
37308
+ chatType: "group",
37309
+ senderLabel: entry.sender,
36523
37310
  ...entry.timestamp != null ? { timestamp: entry.timestamp } : {},
36524
37311
  envelope: envelopeOptions,
36525
37312
  body: `${entry.body}${entry.messageId ? ` [id:${entry.messageId} chat:${String(chatId)}]` : ""}`
@@ -36531,11 +37318,7 @@ ${currentEntityText}` : null
36531
37318
  pendingEntries: groupPendingHistories.get(groupHistoryKey) ?? [],
36532
37319
  limit: historyLimit
36533
37320
  }) : [];
36534
- const bodyForAgent = buildInlineBodyForAgent({
36535
- rawBody,
36536
- currentAttachmentText,
36537
- currentEntityText
36538
- });
37321
+ const bodyForAgent = currentBody;
36539
37322
  const effectiveSurface = shouldUseTelegramSurfaceForModelCommands(normalizedCommandBody) ? "telegram" : CHANNEL_ID;
36540
37323
  const systemPrompt = resolveInlineSystemPrompt({
36541
37324
  account,
@@ -36701,9 +37484,9 @@ ${currentEntityText}` : null
36701
37484
  }
36702
37485
  editStreamState.accumulatedText = nextText;
36703
37486
  statusSink?.({ lastOutboundAt: Date.now() });
36704
- } catch (error48) {
37487
+ } catch (error51) {
36705
37488
  editStreamState.failed = true;
36706
- runtime2.error?.(`inline edit stream failed: ${String(error48)}`);
37489
+ runtime2.error?.(`inline edit stream failed: ${String(error51)}`);
36707
37490
  }
36708
37491
  });
36709
37492
  await editStreamState.opChain;
@@ -36886,8 +37669,8 @@ ${currentEntityText}` : null
36886
37669
  });
36887
37670
  rememberSent(sent.messageId);
36888
37671
  delivered = true;
36889
- } catch (error48) {
36890
- runtime2.error?.(`inline media upload failed; falling back to url text (${String(error48)})`);
37672
+ } catch (error51) {
37673
+ runtime2.error?.(`inline media upload failed; falling back to url text (${String(error51)})`);
36891
37674
  const fallbackText = caption ? `${caption}
36892
37675
 
36893
37676
  Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
@@ -36908,9 +37691,9 @@ Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
36908
37691
  },
36909
37692
  replyOptions
36910
37693
  });
36911
- } catch (error48) {
36912
- dispatchError = error48;
36913
- runtime2.error?.(`inline dispatch failed: ${String(error48)}`);
37694
+ } catch (error51) {
37695
+ dispatchError = error51;
37696
+ runtime2.error?.(`inline dispatch failed: ${String(error51)}`);
36914
37697
  }
36915
37698
  if (!delivered && streamViaEditMessage && editStreamState.messageId != null) {
36916
37699
  delivered = true;
@@ -36932,8 +37715,8 @@ Attachment: ${mediaUrl}` : `Attachment: ${mediaUrl}`;
36932
37715
  if (callbackActionEvent && !callbackActionAnswered) {
36933
37716
  try {
36934
37717
  await answerCallbackIfNeeded();
36935
- } catch (error48) {
36936
- runtime2.error?.(`inline callback answer failed: ${String(error48)}`);
37718
+ } catch (error51) {
37719
+ runtime2.error?.(`inline callback answer failed: ${String(error51)}`);
36937
37720
  }
36938
37721
  }
36939
37722
  }
@@ -37294,7 +38077,7 @@ function chunkInteractiveButtons(buttons, rows) {
37294
38077
  for (let i = 0;i < buttons.length; i += INLINE_ACTION_MAX_PER_ROW2) {
37295
38078
  const row = buttons.slice(i, i + INLINE_ACTION_MAX_PER_ROW2).map((button) => {
37296
38079
  const text = button.label.trim();
37297
- const callbackData = button.value.trim();
38080
+ const callbackData = button.value?.trim() ?? "";
37298
38081
  if (!text || !callbackData) {
37299
38082
  return null;
37300
38083
  }
@@ -37782,18 +38565,18 @@ async function loadMessageReactions(params) {
37782
38565
  }
37783
38566
  return Array.from(byEmoji.values());
37784
38567
  }
37785
- function getErrorMessage(error48) {
37786
- if (error48 instanceof Error)
37787
- return error48.message;
37788
- if (typeof error48 === "string")
37789
- return error48;
37790
- if (error48 && typeof error48 === "object" && "message" in error48 && typeof error48.message === "string") {
37791
- return error48.message;
38568
+ function getErrorMessage(error51) {
38569
+ if (error51 instanceof Error)
38570
+ return error51.message;
38571
+ if (typeof error51 === "string")
38572
+ return error51;
38573
+ if (error51 && typeof error51 === "object" && "message" in error51 && typeof error51.message === "string") {
38574
+ return error51.message;
37792
38575
  }
37793
- return String(error48);
38576
+ return String(error51);
37794
38577
  }
37795
- function isDuplicateReactionError(error48) {
37796
- const text = getErrorMessage(error48).toLowerCase();
38578
+ function isDuplicateReactionError(error51) {
38579
+ const text = getErrorMessage(error51).toLowerCase();
37797
38580
  return text.includes("unique_reaction_per_emoji") || text.includes("duplicate") && text.includes("reaction") || text.includes("duplicate key value violates unique constraint");
37798
38581
  }
37799
38582
  async function reactionAlreadyExists(params) {
@@ -37941,7 +38724,7 @@ function describeInlineMessageTool({
37941
38724
  };
37942
38725
  }
37943
38726
  const buttonsEnabled = supportsInlineMessageButtons(actions);
37944
- const capabilities = buttonsEnabled ? ["interactive", "buttons"] : [];
38727
+ const capabilities = buttonsEnabled ? ["presentation"] : [];
37945
38728
  const schema = buttonsEnabled ? [
37946
38729
  {
37947
38730
  properties: {
@@ -38197,8 +38980,8 @@ var inlineMessageActions = {
38197
38980
  if (result.oneofKind !== "addReaction") {
38198
38981
  throw new Error(`inline action: expected addReaction result, got ${String(result.oneofKind)}`);
38199
38982
  }
38200
- } catch (error48) {
38201
- if (!isDuplicateReactionError(error48)) {
38983
+ } catch (error51) {
38984
+ if (!isDuplicateReactionError(error51)) {
38202
38985
  return jsonResult({
38203
38986
  ok: false,
38204
38987
  reason: "error",
@@ -38925,9 +39708,9 @@ async function withTimeout(promise2, timeoutMs) {
38925
39708
  promise2.then((value) => {
38926
39709
  clearTimeout(timer);
38927
39710
  resolve(value);
38928
- }, (error48) => {
39711
+ }, (error51) => {
38929
39712
  clearTimeout(timer);
38930
- reject(error48);
39713
+ reject(error51);
38931
39714
  });
38932
39715
  });
38933
39716
  }
@@ -38968,11 +39751,11 @@ async function probeInlineAccountDirect(account) {
38968
39751
  await client.close().catch(() => {});
38969
39752
  }
38970
39753
  }
38971
- function toErrorText(error48) {
38972
- if (error48 instanceof Error && error48.message.trim()) {
38973
- return error48.message;
39754
+ function toErrorText(error51) {
39755
+ if (error51 instanceof Error && error51.message.trim()) {
39756
+ return error51.message;
38974
39757
  }
38975
- return String(error48);
39758
+ return String(error51);
38976
39759
  }
38977
39760
  async function probeInlineAccount(account, timeoutMs) {
38978
39761
  if (!account.configured) {
@@ -38985,12 +39768,12 @@ async function probeInlineAccount(account, timeoutMs) {
38985
39768
  }
38986
39769
  try {
38987
39770
  return await withTimeout(probeInlineAccountDirect(account), timeoutMs);
38988
- } catch (error48) {
39771
+ } catch (error51) {
38989
39772
  return {
38990
39773
  ok: false,
38991
39774
  accountId: account.accountId,
38992
39775
  baseUrl: account.baseUrl,
38993
- error: toErrorText(error48)
39776
+ error: toErrorText(error51)
38994
39777
  };
38995
39778
  }
38996
39779
  }
@@ -39006,9 +39789,9 @@ function readInlineProbeSummary(value) {
39006
39789
  if (typeof value.ok === "boolean") {
39007
39790
  summary.ok = value.ok;
39008
39791
  }
39009
- const error48 = asString(value.error);
39010
- if (error48) {
39011
- summary.error = error48;
39792
+ const error51 = asString(value.error);
39793
+ if (error51) {
39794
+ summary.error = error51;
39012
39795
  }
39013
39796
  return summary;
39014
39797
  }
@@ -39351,10 +40134,10 @@ async function resolveInlineOutboundTarget(params) {
39351
40134
  }
39352
40135
  return target;
39353
40136
  }
39354
- function isChatInvalidError(error48) {
39355
- if (error48 == null)
40137
+ function isChatInvalidError(error51) {
40138
+ if (error51 == null)
39356
40139
  return false;
39357
- const text = error48 instanceof Error ? error48.message : String(error48);
40140
+ const text = error51 instanceof Error ? error51.message : String(error51);
39358
40141
  return text.toUpperCase().includes("CHAT_INVALID");
39359
40142
  }
39360
40143
  function wrapInlineTargetError(params) {
@@ -39554,9 +40337,9 @@ async function sendMessageInline(params) {
39554
40337
  text: params.text,
39555
40338
  ...replyToMsgId != null ? { replyToMsgId } : {},
39556
40339
  parseMarkdown: account.config.parseMarkdown ?? true
39557
- }).catch((error48) => {
40340
+ }).catch((error51) => {
39558
40341
  throw wrapInlineTargetError({
39559
- error: error48,
40342
+ error: error51,
39560
40343
  context: "sendText",
39561
40344
  target,
39562
40345
  resolvedTarget
@@ -39612,9 +40395,9 @@ async function sendMediaInline(params) {
39612
40395
  media,
39613
40396
  ...replyToMsgId != null ? { replyToMsgId } : {},
39614
40397
  ...caption ? { parseMarkdown: account.config.parseMarkdown ?? true } : {}
39615
- }).catch((error48) => {
40398
+ }).catch((error51) => {
39616
40399
  throw wrapInlineTargetError({
39617
- error: error48,
40400
+ error: error51,
39618
40401
  context: "sendMedia",
39619
40402
  target,
39620
40403
  resolvedTarget
@@ -40828,11 +41611,11 @@ async function uploadProfilePhoto(client, rawSource) {
40828
41611
  let loaded;
40829
41612
  try {
40830
41613
  loaded = await runtimeMedia.loadWebMedia(rawSource);
40831
- } catch (error48) {
40832
- const message = String(error48);
41614
+ } catch (error51) {
41615
+ const message = String(error51);
40833
41616
  const deniedLocalPath = /not under an allowed directory/i.test(message);
40834
41617
  if (!deniedLocalPath || !looksLikeLocalMediaSource2(rawSource)) {
40835
- throw error48;
41618
+ throw error51;
40836
41619
  }
40837
41620
  loaded = await loadWebMediaCompat(rawSource, undefined, { localRoots: "any" });
40838
41621
  }
@@ -40926,8 +41709,8 @@ async function callInlineBotApi(params) {
40926
41709
  let response;
40927
41710
  try {
40928
41711
  response = await fetch(url2, request);
40929
- } catch (error48) {
40930
- throw new Error(`inline_bot_commands: ${params.method} ${redactInlineBotApiUrl(url2)} fetch failed: ${summarizeInlineBotApiError(error48)}`);
41712
+ } catch (error51) {
41713
+ throw new Error(`inline_bot_commands: ${params.method} ${redactInlineBotApiUrl(url2)} fetch failed: ${summarizeInlineBotApiError(error51)}`);
40931
41714
  }
40932
41715
  const payload = await response.json().catch(() => null);
40933
41716
  return { response, payload };
@@ -40958,11 +41741,11 @@ async function callInlineBotApi(params) {
40958
41741
  }
40959
41742
  return resolve(headerResult);
40960
41743
  }
40961
- function summarizeInlineBotApiError(error48) {
40962
- if (error48 instanceof Error) {
40963
- return `${error48.name}: ${error48.message}`;
41744
+ function summarizeInlineBotApiError(error51) {
41745
+ if (error51 instanceof Error) {
41746
+ return `${error51.name}: ${error51.message}`;
40964
41747
  }
40965
- return String(error48);
41748
+ return String(error51);
40966
41749
  }
40967
41750
  function redactInlineBotApiUrl(raw) {
40968
41751
  try {
@@ -41311,5 +42094,5 @@ export {
41311
42094
  src_default as default
41312
42095
  };
41313
42096
 
41314
- //# debugId=1C8239561365068664756E2164756E21
42097
+ //# debugId=47B0E906C43785DE64756E2164756E21
41315
42098
  //# sourceMappingURL=index.js.map