@learncard/render-method-plugin 4.0.3 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ var NOTHING = Symbol.for("immer-nothing");
13
13
  var DRAFTABLE = Symbol.for("immer-draftable");
14
14
  var DRAFT_STATE = Symbol.for("immer-state");
15
15
  var errors = true ? [
16
+ // All error codes, starting by 0:
16
17
  function(plugin) {
17
18
  return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`;
18
19
  },
@@ -39,6 +40,8 @@ var errors = true ? [
39
40
  function(thing) {
40
41
  return `'original' expects a draft, got: ${thing}`;
41
42
  }
43
+ // Note: if more errors are added, the errorOffset in Patches.ts should be increased
44
+ // See Patches.ts for additional errors
42
45
  ] : [];
43
46
  function die(error51, ...args) {
44
47
  if (true) {
@@ -158,6 +161,7 @@ function shallowCopy(base, strict) {
158
161
  descriptors[key] = {
159
162
  configurable: true,
160
163
  writable: true,
164
+ // could live with !!desc.set as well here...
161
165
  enumerable: desc.enumerable,
162
166
  value: base[key]
163
167
  };
@@ -222,6 +226,8 @@ function createScope(parent_, immer_) {
222
226
  drafts_: [],
223
227
  parent_,
224
228
  immer_,
229
+ // Whenever the modified draft contains a draft from another scope, we
230
+ // need to prevent auto-freezing so the unowned draft can be finalized.
225
231
  canAutoFreeze_: true,
226
232
  unfinalizedDrafts_: 0
227
233
  };
@@ -362,7 +368,8 @@ function finalizeProperty(rootScope, parentState, targetObject, prop, childValue
362
368
  if (childValue === targetObject)
363
369
  die(5);
364
370
  if (isDraft(childValue)) {
365
- const path = rootPath && parentState && parentState.type_ !== 3 && !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
371
+ const path = rootPath && parentState && parentState.type_ !== 3 && // Set objects are atomic since they have no keys.
372
+ !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
366
373
  const res = finalize(rootScope, childValue, path);
367
374
  set(targetObject, prop, res);
368
375
  if (isDraft(res)) {
@@ -395,14 +402,24 @@ function createProxyProxy(base, parent) {
395
402
  const isArray = Array.isArray(base);
396
403
  const state = {
397
404
  type_: isArray ? 1 : 0,
405
+ // Track which produce call this is associated with.
398
406
  scope_: parent ? parent.scope_ : getCurrentScope(),
407
+ // True for both shallow and deep changes.
399
408
  modified_: false,
409
+ // Used during finalization.
400
410
  finalized_: false,
411
+ // Track which properties have been assigned (true) or deleted (false).
401
412
  assigned_: {},
413
+ // The parent draft state.
402
414
  parent_: parent,
415
+ // The base state.
403
416
  base_: base,
417
+ // The base proxy.
404
418
  draft_: null,
419
+ // set below
420
+ // The base copy with any updated values.
405
421
  copy_: null,
422
+ // Called by the `produce` function.
406
423
  revoke_: null,
407
424
  isManual_: false
408
425
  };
@@ -461,7 +478,9 @@ var objectTraps = {
461
478
  prepareCopy(state);
462
479
  markChanged(state);
463
480
  }
464
- if (state.copy_[prop] === value && (value !== void 0 || prop in state.copy_) || Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
481
+ if (state.copy_[prop] === value && // special case: handle new props with value 'undefined'
482
+ (value !== void 0 || prop in state.copy_) || // special case: NaN
483
+ Number.isNaN(value) && Number.isNaN(state.copy_[prop]))
465
484
  return true;
466
485
  state.copy_[prop] = value;
467
486
  state.assigned_[prop] = true;
@@ -480,6 +499,8 @@ var objectTraps = {
480
499
  }
481
500
  return true;
482
501
  },
502
+ // Note: We never coerce `desc.value` into an Immer draft, because we can't make
503
+ // the same guarantee in ES5 mode.
483
504
  getOwnPropertyDescriptor(state, prop) {
484
505
  const owner = latest(state);
485
506
  const desc = Reflect.getOwnPropertyDescriptor(owner, prop);
@@ -527,7 +548,11 @@ function peek(draft, prop) {
527
548
  __name(peek, "peek");
528
549
  function readPropFromProto(state, source, prop) {
529
550
  const desc = getDescriptorFromProto(source, prop);
530
- return desc ? `value` in desc ? desc.value : desc.get?.call(state.draft_) : void 0;
551
+ return desc ? `value` in desc ? desc.value : (
552
+ // This is a very special case, if the prop is a getter defined by the
553
+ // prototype, we should invoke it with the draft as context!
554
+ desc.get?.call(state.draft_)
555
+ ) : void 0;
531
556
  }
532
557
  __name(readPropFromProto, "readPropFromProto");
533
558
  function getDescriptorFromProto(source, prop) {
@@ -561,7 +586,8 @@ function prepareCopy(state) {
561
586
  }
562
587
  }
563
588
  __name(prepareCopy, "prepareCopy");
564
- var Immer2 = /* @__PURE__ */ __name(class {
589
+ var _a;
590
+ var Immer2 = (_a = class {
565
591
  constructor(config2) {
566
592
  this.autoFreeze_ = true;
567
593
  this.useStrictShallowCopy_ = false;
@@ -650,12 +676,28 @@ var Immer2 = /* @__PURE__ */ __name(class {
650
676
  usePatchesInScope(scope, patchListener);
651
677
  return processResult(void 0, scope);
652
678
  }
679
+ /**
680
+ * Pass true to automatically freeze all copies created by Immer.
681
+ *
682
+ * By default, auto-freezing is enabled.
683
+ */
653
684
  setAutoFreeze(value) {
654
685
  this.autoFreeze_ = value;
655
686
  }
687
+ /**
688
+ * Pass true to enable strict shallow copy.
689
+ *
690
+ * By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
691
+ */
656
692
  setUseStrictShallowCopy(value) {
657
693
  this.useStrictShallowCopy_ = value;
658
694
  }
695
+ /**
696
+ * Pass false to use faster iteration that skips non-enumerable properties
697
+ * but still handles symbols for compatibility.
698
+ *
699
+ * By default, strict iteration is enabled (includes all own properties).
700
+ */
659
701
  setUseStrictIteration(value) {
660
702
  this.useStrictIteration_ = value;
661
703
  }
@@ -683,7 +725,7 @@ var Immer2 = /* @__PURE__ */ __name(class {
683
725
  (draft) => applyPatchesImpl(draft, patches)
684
726
  );
685
727
  }
686
- }, "Immer2");
728
+ }, __name(_a, "Immer2"), _a);
687
729
  function createProxy(value, parent) {
688
730
  const draft = isMap(value) ? getPlugin("MapSet").proxyMap_(value, parent) : isSet(value) ? getPlugin("MapSet").proxySet_(value, parent) : createProxyProxy(value, parent);
689
731
  const scope = parent ? parent.scope_ : getCurrentScope();
@@ -1251,10 +1293,11 @@ __export(core_exports2, {
1251
1293
  });
1252
1294
 
1253
1295
  // ../../../node_modules/zod/v4/core/core.js
1254
- var _a;
1296
+ var _a2;
1255
1297
  var NEVER = /* @__PURE__ */ Object.freeze({
1256
1298
  status: "aborted"
1257
1299
  });
1300
+ // @__NO_SIDE_EFFECTS__
1258
1301
  function $constructor(name, initializer3, params) {
1259
1302
  function init(inst, def) {
1260
1303
  if (!inst._zod) {
@@ -1283,15 +1326,16 @@ function $constructor(name, initializer3, params) {
1283
1326
  }
1284
1327
  __name(init, "init");
1285
1328
  const Parent = params?.Parent ?? Object;
1286
- class Definition extends Parent {
1287
- }
1288
- __name(Definition, "Definition");
1329
+ const _Definition = class _Definition extends Parent {
1330
+ };
1331
+ __name(_Definition, "Definition");
1332
+ let Definition = _Definition;
1289
1333
  Object.defineProperty(Definition, "name", { value: name });
1290
1334
  function _(def) {
1291
- var _a4;
1335
+ var _a6;
1292
1336
  const inst = params?.Parent ? new Definition() : this;
1293
1337
  init(inst, def);
1294
- (_a4 = inst._zod).deferred ?? (_a4.deferred = []);
1338
+ (_a6 = inst._zod).deferred ?? (_a6.deferred = []);
1295
1339
  for (const fn of inst._zod.deferred) {
1296
1340
  fn();
1297
1341
  }
@@ -1300,31 +1344,33 @@ function $constructor(name, initializer3, params) {
1300
1344
  __name(_, "_");
1301
1345
  Object.defineProperty(_, "init", { value: init });
1302
1346
  Object.defineProperty(_, Symbol.hasInstance, {
1303
- value: (inst) => {
1347
+ value: /* @__PURE__ */ __name((inst) => {
1304
1348
  if (params?.Parent && inst instanceof params.Parent)
1305
1349
  return true;
1306
1350
  return inst?._zod?.traits?.has(name);
1307
- }
1351
+ }, "value")
1308
1352
  });
1309
1353
  Object.defineProperty(_, "name", { value: name });
1310
1354
  return _;
1311
1355
  }
1312
1356
  __name($constructor, "$constructor");
1313
1357
  var $brand = Symbol("zod_brand");
1314
- var $ZodAsyncError = class extends Error {
1358
+ var _$ZodAsyncError = class _$ZodAsyncError extends Error {
1315
1359
  constructor() {
1316
1360
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
1317
1361
  }
1318
1362
  };
1319
- __name($ZodAsyncError, "$ZodAsyncError");
1320
- var $ZodEncodeError = class extends Error {
1363
+ __name(_$ZodAsyncError, "$ZodAsyncError");
1364
+ var $ZodAsyncError = _$ZodAsyncError;
1365
+ var _$ZodEncodeError = class _$ZodEncodeError extends Error {
1321
1366
  constructor(name) {
1322
1367
  super(`Encountered unidirectional transform during encode: ${name}`);
1323
1368
  this.name = "ZodEncodeError";
1324
1369
  }
1325
1370
  };
1326
- __name($ZodEncodeError, "$ZodEncodeError");
1327
- (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
1371
+ __name(_$ZodEncodeError, "$ZodEncodeError");
1372
+ var $ZodEncodeError = _$ZodEncodeError;
1373
+ (_a2 = globalThis).__zod_globalConfig ?? (_a2.__zod_globalConfig = {});
1328
1374
  var globalConfig = globalThis.__zod_globalConfig;
1329
1375
  function config(newConfig) {
1330
1376
  if (newConfig)
@@ -1484,6 +1530,7 @@ function defineLazy(object2, key, getter) {
1484
1530
  set(v) {
1485
1531
  Object.defineProperty(object2, key, {
1486
1532
  value: v
1533
+ // configurable: true,
1487
1534
  });
1488
1535
  },
1489
1536
  configurable: true
@@ -1680,7 +1727,7 @@ function normalizeParams(_params) {
1680
1727
  if (!params)
1681
1728
  return {};
1682
1729
  if (typeof params === "string")
1683
- return { error: () => params };
1730
+ return { error: /* @__PURE__ */ __name(() => params, "error") };
1684
1731
  if (params?.message !== void 0) {
1685
1732
  if (params?.error !== void 0)
1686
1733
  throw new Error("Cannot specify both `message` and `error` params");
@@ -1688,7 +1735,7 @@ function normalizeParams(_params) {
1688
1735
  }
1689
1736
  delete params.message;
1690
1737
  if (typeof params.error === "string")
1691
- return { ...params, error: () => params.error };
1738
+ return { ...params, error: /* @__PURE__ */ __name(() => params.error, "error") };
1692
1739
  return params;
1693
1740
  }
1694
1741
  __name(normalizeParams, "normalizeParams");
@@ -1954,8 +2001,8 @@ function explicitlyAborted(x, startIndex = 0) {
1954
2001
  __name(explicitlyAborted, "explicitlyAborted");
1955
2002
  function prefixIssues(path, issues) {
1956
2003
  return issues.map((iss) => {
1957
- var _a4;
1958
- (_a4 = iss).path ?? (_a4.path = []);
2004
+ var _a6;
2005
+ (_a6 = iss).path ?? (_a6.path = []);
1959
2006
  iss.path.unshift(path);
1960
2007
  return iss;
1961
2008
  });
@@ -2078,11 +2125,12 @@ function uint8ArrayToHex(bytes) {
2078
2125
  return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
2079
2126
  }
2080
2127
  __name(uint8ArrayToHex, "uint8ArrayToHex");
2081
- var Class = class {
2128
+ var _Class = class _Class {
2082
2129
  constructor(..._args) {
2083
2130
  }
2084
2131
  };
2085
- __name(Class, "Class");
2132
+ __name(_Class, "Class");
2133
+ var Class = _Class;
2086
2134
 
2087
2135
  // ../../../node_modules/zod/v4/core/errors.js
2088
2136
  var initializer = /* @__PURE__ */ __name((inst, def) => {
@@ -2097,7 +2145,7 @@ var initializer = /* @__PURE__ */ __name((inst, def) => {
2097
2145
  });
2098
2146
  inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
2099
2147
  Object.defineProperty(inst, "toString", {
2100
- value: () => inst.message,
2148
+ value: /* @__PURE__ */ __name(() => inst.message, "value"),
2101
2149
  enumerable: false
2102
2150
  });
2103
2151
  }, "initializer");
@@ -2157,7 +2205,7 @@ __name(formatError, "formatError");
2157
2205
  function treeifyError(error51, mapper = (issue2) => issue2.message) {
2158
2206
  const result = { errors: [] };
2159
2207
  const processError = /* @__PURE__ */ __name((error52, path = []) => {
2160
- var _a4, _b;
2208
+ var _a6, _b;
2161
2209
  for (const issue2 of error52.issues) {
2162
2210
  if (issue2.code === "invalid_union" && issue2.errors.length) {
2163
2211
  issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
@@ -2178,7 +2226,7 @@ function treeifyError(error51, mapper = (issue2) => issue2.message) {
2178
2226
  const terminal = i === fullpath.length - 1;
2179
2227
  if (typeof el === "string") {
2180
2228
  curr.properties ?? (curr.properties = {});
2181
- (_a4 = curr.properties)[el] ?? (_a4[el] = { errors: [] });
2229
+ (_a6 = curr.properties)[el] ?? (_a6[el] = { errors: [] });
2182
2230
  curr = curr.properties[el];
2183
2231
  } else {
2184
2232
  curr.items ?? (curr.items = []);
@@ -2483,10 +2531,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2483
2531
 
2484
2532
  // ../../../node_modules/zod/v4/core/checks.js
2485
2533
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2486
- var _a4;
2534
+ var _a6;
2487
2535
  inst._zod ?? (inst._zod = {});
2488
2536
  inst._zod.def = def;
2489
- (_a4 = inst._zod).onattach ?? (_a4.onattach = []);
2537
+ (_a6 = inst._zod).onattach ?? (_a6.onattach = []);
2490
2538
  });
2491
2539
  var numericOriginMap = {
2492
2540
  number: "number",
@@ -2552,8 +2600,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
2552
2600
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
2553
2601
  $ZodCheck.init(inst, def);
2554
2602
  inst._zod.onattach.push((inst2) => {
2555
- var _a4;
2556
- (_a4 = inst2._zod.bag).multipleOf ?? (_a4.multipleOf = def.value);
2603
+ var _a6;
2604
+ (_a6 = inst2._zod.bag).multipleOf ?? (_a6.multipleOf = def.value);
2557
2605
  });
2558
2606
  inst._zod.check = (payload) => {
2559
2607
  if (typeof payload.value !== typeof def.value)
@@ -2686,9 +2734,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
2686
2734
  };
2687
2735
  });
2688
2736
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
2689
- var _a4;
2737
+ var _a6;
2690
2738
  $ZodCheck.init(inst, def);
2691
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2739
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2692
2740
  const val = payload.value;
2693
2741
  return !nullish(val) && val.size !== void 0;
2694
2742
  });
@@ -2714,9 +2762,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
2714
2762
  };
2715
2763
  });
2716
2764
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
2717
- var _a4;
2765
+ var _a6;
2718
2766
  $ZodCheck.init(inst, def);
2719
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2767
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2720
2768
  const val = payload.value;
2721
2769
  return !nullish(val) && val.size !== void 0;
2722
2770
  });
@@ -2742,9 +2790,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
2742
2790
  };
2743
2791
  });
2744
2792
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
2745
- var _a4;
2793
+ var _a6;
2746
2794
  $ZodCheck.init(inst, def);
2747
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2795
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2748
2796
  const val = payload.value;
2749
2797
  return !nullish(val) && val.size !== void 0;
2750
2798
  });
@@ -2772,9 +2820,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
2772
2820
  };
2773
2821
  });
2774
2822
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
2775
- var _a4;
2823
+ var _a6;
2776
2824
  $ZodCheck.init(inst, def);
2777
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2825
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2778
2826
  const val = payload.value;
2779
2827
  return !nullish(val) && val.length !== void 0;
2780
2828
  });
@@ -2801,9 +2849,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
2801
2849
  };
2802
2850
  });
2803
2851
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
2804
- var _a4;
2852
+ var _a6;
2805
2853
  $ZodCheck.init(inst, def);
2806
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2854
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2807
2855
  const val = payload.value;
2808
2856
  return !nullish(val) && val.length !== void 0;
2809
2857
  });
@@ -2830,9 +2878,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
2830
2878
  };
2831
2879
  });
2832
2880
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
2833
- var _a4;
2881
+ var _a6;
2834
2882
  $ZodCheck.init(inst, def);
2835
- (_a4 = inst._zod.def).when ?? (_a4.when = (payload) => {
2883
+ (_a6 = inst._zod.def).when ?? (_a6.when = (payload) => {
2836
2884
  const val = payload.value;
2837
2885
  return !nullish(val) && val.length !== void 0;
2838
2886
  });
@@ -2861,7 +2909,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2861
2909
  };
2862
2910
  });
2863
2911
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2864
- var _a4, _b;
2912
+ var _a6, _b;
2865
2913
  $ZodCheck.init(inst, def);
2866
2914
  inst._zod.onattach.push((inst2) => {
2867
2915
  const bag = inst2._zod.bag;
@@ -2872,7 +2920,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2872
2920
  }
2873
2921
  });
2874
2922
  if (def.pattern)
2875
- (_a4 = inst._zod).check ?? (_a4.check = (payload) => {
2923
+ (_a6 = inst._zod).check ?? (_a6.check = (payload) => {
2876
2924
  def.pattern.lastIndex = 0;
2877
2925
  if (def.pattern.test(payload.value))
2878
2926
  return;
@@ -3031,7 +3079,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3031
3079
  });
3032
3080
 
3033
3081
  // ../../../node_modules/zod/v4/core/doc.js
3034
- var Doc = class {
3082
+ var _Doc = class _Doc {
3035
3083
  constructor(args = []) {
3036
3084
  this.content = [];
3037
3085
  this.indent = 0;
@@ -3065,7 +3113,8 @@ var Doc = class {
3065
3113
  return new F(...args, lines.join("\n"));
3066
3114
  }
3067
3115
  };
3068
- __name(Doc, "Doc");
3116
+ __name(_Doc, "Doc");
3117
+ var Doc = _Doc;
3069
3118
 
3070
3119
  // ../../../node_modules/zod/v4/core/versions.js
3071
3120
  var version = {
@@ -3076,7 +3125,7 @@ var version = {
3076
3125
 
3077
3126
  // ../../../node_modules/zod/v4/core/schemas.js
3078
3127
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3079
- var _a4;
3128
+ var _a6;
3080
3129
  inst ?? (inst = {});
3081
3130
  inst._zod.def = def;
3082
3131
  inst._zod.bag = inst._zod.bag || {};
@@ -3091,7 +3140,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3091
3140
  }
3092
3141
  }
3093
3142
  if (checks.length === 0) {
3094
- (_a4 = inst._zod).deferred ?? (_a4.deferred = []);
3143
+ (_a6 = inst._zod).deferred ?? (_a6.deferred = []);
3095
3144
  inst._zod.deferred?.push(() => {
3096
3145
  inst._zod.run = inst._zod.parse;
3097
3146
  });
@@ -3174,14 +3223,14 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3174
3223
  };
3175
3224
  }
3176
3225
  defineLazy(inst, "~standard", () => ({
3177
- validate: (value) => {
3226
+ validate: /* @__PURE__ */ __name((value) => {
3178
3227
  try {
3179
3228
  const r = safeParse(inst, value);
3180
3229
  return r.success ? { value: r.data } : { issues: r.error?.issues };
3181
3230
  } catch (_) {
3182
3231
  return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
3183
3232
  }
3184
- },
3233
+ }, "validate"),
3185
3234
  vendor: "zod",
3186
3235
  version: 1
3187
3236
  }));
@@ -3824,13 +3873,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
3824
3873
  if (!desc?.get) {
3825
3874
  const sh = def.shape;
3826
3875
  Object.defineProperty(def, "shape", {
3827
- get: () => {
3876
+ get: /* @__PURE__ */ __name(() => {
3828
3877
  const newSh = { ...sh };
3829
3878
  Object.defineProperty(def, "shape", {
3830
3879
  value: newSh
3831
3880
  });
3832
3881
  return newSh;
3833
- }
3882
+ }, "get")
3834
3883
  });
3835
3884
  }
3836
3885
  const _normalized = cached(() => normalizeDef(def));
@@ -5178,8 +5227,11 @@ function handleRefineResult(result, payload, input, inst) {
5178
5227
  code: "custom",
5179
5228
  input,
5180
5229
  inst,
5230
+ // incorporates params.error into issue reporting
5181
5231
  path: [...inst._zod.def.path ?? []],
5232
+ // incorporates params.error into issue reporting
5182
5233
  continue: !inst._zod.def.abort
5234
+ // params: inst._zod.def.params,
5183
5235
  };
5184
5236
  if (inst._zod.def.params)
5185
5237
  _iss.params = inst._zod.def.params;
@@ -5841,6 +5893,7 @@ var error5 = /* @__PURE__ */ __name(() => {
5841
5893
  return `Clau inv\xE0lida a ${issue2.origin}`;
5842
5894
  case "invalid_union":
5843
5895
  return "Entrada inv\xE0lida";
5896
+ // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
5844
5897
  case "invalid_element":
5845
5898
  return `Element inv\xE0lid a ${issue2.origin}`;
5846
5899
  default:
@@ -6355,7 +6408,9 @@ var error10 = /* @__PURE__ */ __name(() => {
6355
6408
  template_literal: "input"
6356
6409
  };
6357
6410
  const TypeDictionary = {
6411
+ // Compatibility: "nan" -> "NaN" for display
6358
6412
  nan: "NaN"
6413
+ // All other type names omitted - they fall back to raw values via ?? operator
6359
6414
  };
6360
6415
  return (issue2) => {
6361
6416
  switch (issue2.code) {
@@ -7168,6 +7223,7 @@ var error17 = /* @__PURE__ */ __name(() => {
7168
7223
  array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
7169
7224
  set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
7170
7225
  number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
7226
+ // no unit
7171
7227
  };
7172
7228
  const typeEntry = /* @__PURE__ */ __name((t) => t ? TypeNames[t] : void 0, "typeEntry");
7173
7229
  const typeLabel = /* @__PURE__ */ __name((t) => {
@@ -11246,10 +11302,10 @@ function yo_default() {
11246
11302
  __name(yo_default, "default");
11247
11303
 
11248
11304
  // ../../../node_modules/zod/v4/core/registries.js
11249
- var _a2;
11305
+ var _a3;
11250
11306
  var $output = Symbol("ZodOutput");
11251
11307
  var $input = Symbol("ZodInput");
11252
- var $ZodRegistry = class {
11308
+ var _$ZodRegistry = class _$ZodRegistry {
11253
11309
  constructor() {
11254
11310
  this._map = /* @__PURE__ */ new WeakMap();
11255
11311
  this._idmap = /* @__PURE__ */ new Map();
@@ -11289,15 +11345,17 @@ var $ZodRegistry = class {
11289
11345
  return this._map.has(schema);
11290
11346
  }
11291
11347
  };
11292
- __name($ZodRegistry, "$ZodRegistry");
11348
+ __name(_$ZodRegistry, "$ZodRegistry");
11349
+ var $ZodRegistry = _$ZodRegistry;
11293
11350
  function registry() {
11294
11351
  return new $ZodRegistry();
11295
11352
  }
11296
11353
  __name(registry, "registry");
11297
- (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
11354
+ (_a3 = globalThis).__zod_globalRegistry ?? (_a3.__zod_globalRegistry = registry());
11298
11355
  var globalRegistry = globalThis.__zod_globalRegistry;
11299
11356
 
11300
11357
  // ../../../node_modules/zod/v4/core/api.js
11358
+ // @__NO_SIDE_EFFECTS__
11301
11359
  function _string(Class2, params) {
11302
11360
  return new Class2({
11303
11361
  type: "string",
@@ -11305,6 +11363,7 @@ function _string(Class2, params) {
11305
11363
  });
11306
11364
  }
11307
11365
  __name(_string, "_string");
11366
+ // @__NO_SIDE_EFFECTS__
11308
11367
  function _coercedString(Class2, params) {
11309
11368
  return new Class2({
11310
11369
  type: "string",
@@ -11313,6 +11372,7 @@ function _coercedString(Class2, params) {
11313
11372
  });
11314
11373
  }
11315
11374
  __name(_coercedString, "_coercedString");
11375
+ // @__NO_SIDE_EFFECTS__
11316
11376
  function _email(Class2, params) {
11317
11377
  return new Class2({
11318
11378
  type: "string",
@@ -11323,6 +11383,7 @@ function _email(Class2, params) {
11323
11383
  });
11324
11384
  }
11325
11385
  __name(_email, "_email");
11386
+ // @__NO_SIDE_EFFECTS__
11326
11387
  function _guid(Class2, params) {
11327
11388
  return new Class2({
11328
11389
  type: "string",
@@ -11333,6 +11394,7 @@ function _guid(Class2, params) {
11333
11394
  });
11334
11395
  }
11335
11396
  __name(_guid, "_guid");
11397
+ // @__NO_SIDE_EFFECTS__
11336
11398
  function _uuid(Class2, params) {
11337
11399
  return new Class2({
11338
11400
  type: "string",
@@ -11343,6 +11405,7 @@ function _uuid(Class2, params) {
11343
11405
  });
11344
11406
  }
11345
11407
  __name(_uuid, "_uuid");
11408
+ // @__NO_SIDE_EFFECTS__
11346
11409
  function _uuidv4(Class2, params) {
11347
11410
  return new Class2({
11348
11411
  type: "string",
@@ -11354,6 +11417,7 @@ function _uuidv4(Class2, params) {
11354
11417
  });
11355
11418
  }
11356
11419
  __name(_uuidv4, "_uuidv4");
11420
+ // @__NO_SIDE_EFFECTS__
11357
11421
  function _uuidv6(Class2, params) {
11358
11422
  return new Class2({
11359
11423
  type: "string",
@@ -11365,6 +11429,7 @@ function _uuidv6(Class2, params) {
11365
11429
  });
11366
11430
  }
11367
11431
  __name(_uuidv6, "_uuidv6");
11432
+ // @__NO_SIDE_EFFECTS__
11368
11433
  function _uuidv7(Class2, params) {
11369
11434
  return new Class2({
11370
11435
  type: "string",
@@ -11376,6 +11441,7 @@ function _uuidv7(Class2, params) {
11376
11441
  });
11377
11442
  }
11378
11443
  __name(_uuidv7, "_uuidv7");
11444
+ // @__NO_SIDE_EFFECTS__
11379
11445
  function _url(Class2, params) {
11380
11446
  return new Class2({
11381
11447
  type: "string",
@@ -11386,6 +11452,7 @@ function _url(Class2, params) {
11386
11452
  });
11387
11453
  }
11388
11454
  __name(_url, "_url");
11455
+ // @__NO_SIDE_EFFECTS__
11389
11456
  function _emoji2(Class2, params) {
11390
11457
  return new Class2({
11391
11458
  type: "string",
@@ -11396,6 +11463,7 @@ function _emoji2(Class2, params) {
11396
11463
  });
11397
11464
  }
11398
11465
  __name(_emoji2, "_emoji");
11466
+ // @__NO_SIDE_EFFECTS__
11399
11467
  function _nanoid(Class2, params) {
11400
11468
  return new Class2({
11401
11469
  type: "string",
@@ -11406,6 +11474,7 @@ function _nanoid(Class2, params) {
11406
11474
  });
11407
11475
  }
11408
11476
  __name(_nanoid, "_nanoid");
11477
+ // @__NO_SIDE_EFFECTS__
11409
11478
  function _cuid(Class2, params) {
11410
11479
  return new Class2({
11411
11480
  type: "string",
@@ -11416,6 +11485,7 @@ function _cuid(Class2, params) {
11416
11485
  });
11417
11486
  }
11418
11487
  __name(_cuid, "_cuid");
11488
+ // @__NO_SIDE_EFFECTS__
11419
11489
  function _cuid2(Class2, params) {
11420
11490
  return new Class2({
11421
11491
  type: "string",
@@ -11426,6 +11496,7 @@ function _cuid2(Class2, params) {
11426
11496
  });
11427
11497
  }
11428
11498
  __name(_cuid2, "_cuid2");
11499
+ // @__NO_SIDE_EFFECTS__
11429
11500
  function _ulid(Class2, params) {
11430
11501
  return new Class2({
11431
11502
  type: "string",
@@ -11436,6 +11507,7 @@ function _ulid(Class2, params) {
11436
11507
  });
11437
11508
  }
11438
11509
  __name(_ulid, "_ulid");
11510
+ // @__NO_SIDE_EFFECTS__
11439
11511
  function _xid(Class2, params) {
11440
11512
  return new Class2({
11441
11513
  type: "string",
@@ -11446,6 +11518,7 @@ function _xid(Class2, params) {
11446
11518
  });
11447
11519
  }
11448
11520
  __name(_xid, "_xid");
11521
+ // @__NO_SIDE_EFFECTS__
11449
11522
  function _ksuid(Class2, params) {
11450
11523
  return new Class2({
11451
11524
  type: "string",
@@ -11456,6 +11529,7 @@ function _ksuid(Class2, params) {
11456
11529
  });
11457
11530
  }
11458
11531
  __name(_ksuid, "_ksuid");
11532
+ // @__NO_SIDE_EFFECTS__
11459
11533
  function _ipv4(Class2, params) {
11460
11534
  return new Class2({
11461
11535
  type: "string",
@@ -11466,6 +11540,7 @@ function _ipv4(Class2, params) {
11466
11540
  });
11467
11541
  }
11468
11542
  __name(_ipv4, "_ipv4");
11543
+ // @__NO_SIDE_EFFECTS__
11469
11544
  function _ipv6(Class2, params) {
11470
11545
  return new Class2({
11471
11546
  type: "string",
@@ -11476,6 +11551,7 @@ function _ipv6(Class2, params) {
11476
11551
  });
11477
11552
  }
11478
11553
  __name(_ipv6, "_ipv6");
11554
+ // @__NO_SIDE_EFFECTS__
11479
11555
  function _mac(Class2, params) {
11480
11556
  return new Class2({
11481
11557
  type: "string",
@@ -11486,6 +11562,7 @@ function _mac(Class2, params) {
11486
11562
  });
11487
11563
  }
11488
11564
  __name(_mac, "_mac");
11565
+ // @__NO_SIDE_EFFECTS__
11489
11566
  function _cidrv4(Class2, params) {
11490
11567
  return new Class2({
11491
11568
  type: "string",
@@ -11496,6 +11573,7 @@ function _cidrv4(Class2, params) {
11496
11573
  });
11497
11574
  }
11498
11575
  __name(_cidrv4, "_cidrv4");
11576
+ // @__NO_SIDE_EFFECTS__
11499
11577
  function _cidrv6(Class2, params) {
11500
11578
  return new Class2({
11501
11579
  type: "string",
@@ -11506,6 +11584,7 @@ function _cidrv6(Class2, params) {
11506
11584
  });
11507
11585
  }
11508
11586
  __name(_cidrv6, "_cidrv6");
11587
+ // @__NO_SIDE_EFFECTS__
11509
11588
  function _base64(Class2, params) {
11510
11589
  return new Class2({
11511
11590
  type: "string",
@@ -11516,6 +11595,7 @@ function _base64(Class2, params) {
11516
11595
  });
11517
11596
  }
11518
11597
  __name(_base64, "_base64");
11598
+ // @__NO_SIDE_EFFECTS__
11519
11599
  function _base64url(Class2, params) {
11520
11600
  return new Class2({
11521
11601
  type: "string",
@@ -11526,6 +11606,7 @@ function _base64url(Class2, params) {
11526
11606
  });
11527
11607
  }
11528
11608
  __name(_base64url, "_base64url");
11609
+ // @__NO_SIDE_EFFECTS__
11529
11610
  function _e164(Class2, params) {
11530
11611
  return new Class2({
11531
11612
  type: "string",
@@ -11536,6 +11617,7 @@ function _e164(Class2, params) {
11536
11617
  });
11537
11618
  }
11538
11619
  __name(_e164, "_e164");
11620
+ // @__NO_SIDE_EFFECTS__
11539
11621
  function _jwt(Class2, params) {
11540
11622
  return new Class2({
11541
11623
  type: "string",
@@ -11553,6 +11635,7 @@ var TimePrecision = {
11553
11635
  Millisecond: 3,
11554
11636
  Microsecond: 6
11555
11637
  };
11638
+ // @__NO_SIDE_EFFECTS__
11556
11639
  function _isoDateTime(Class2, params) {
11557
11640
  return new Class2({
11558
11641
  type: "string",
@@ -11565,6 +11648,7 @@ function _isoDateTime(Class2, params) {
11565
11648
  });
11566
11649
  }
11567
11650
  __name(_isoDateTime, "_isoDateTime");
11651
+ // @__NO_SIDE_EFFECTS__
11568
11652
  function _isoDate(Class2, params) {
11569
11653
  return new Class2({
11570
11654
  type: "string",
@@ -11574,6 +11658,7 @@ function _isoDate(Class2, params) {
11574
11658
  });
11575
11659
  }
11576
11660
  __name(_isoDate, "_isoDate");
11661
+ // @__NO_SIDE_EFFECTS__
11577
11662
  function _isoTime(Class2, params) {
11578
11663
  return new Class2({
11579
11664
  type: "string",
@@ -11584,6 +11669,7 @@ function _isoTime(Class2, params) {
11584
11669
  });
11585
11670
  }
11586
11671
  __name(_isoTime, "_isoTime");
11672
+ // @__NO_SIDE_EFFECTS__
11587
11673
  function _isoDuration(Class2, params) {
11588
11674
  return new Class2({
11589
11675
  type: "string",
@@ -11593,6 +11679,7 @@ function _isoDuration(Class2, params) {
11593
11679
  });
11594
11680
  }
11595
11681
  __name(_isoDuration, "_isoDuration");
11682
+ // @__NO_SIDE_EFFECTS__
11596
11683
  function _number(Class2, params) {
11597
11684
  return new Class2({
11598
11685
  type: "number",
@@ -11601,6 +11688,7 @@ function _number(Class2, params) {
11601
11688
  });
11602
11689
  }
11603
11690
  __name(_number, "_number");
11691
+ // @__NO_SIDE_EFFECTS__
11604
11692
  function _coercedNumber(Class2, params) {
11605
11693
  return new Class2({
11606
11694
  type: "number",
@@ -11610,6 +11698,7 @@ function _coercedNumber(Class2, params) {
11610
11698
  });
11611
11699
  }
11612
11700
  __name(_coercedNumber, "_coercedNumber");
11701
+ // @__NO_SIDE_EFFECTS__
11613
11702
  function _int(Class2, params) {
11614
11703
  return new Class2({
11615
11704
  type: "number",
@@ -11620,6 +11709,7 @@ function _int(Class2, params) {
11620
11709
  });
11621
11710
  }
11622
11711
  __name(_int, "_int");
11712
+ // @__NO_SIDE_EFFECTS__
11623
11713
  function _float32(Class2, params) {
11624
11714
  return new Class2({
11625
11715
  type: "number",
@@ -11630,6 +11720,7 @@ function _float32(Class2, params) {
11630
11720
  });
11631
11721
  }
11632
11722
  __name(_float32, "_float32");
11723
+ // @__NO_SIDE_EFFECTS__
11633
11724
  function _float64(Class2, params) {
11634
11725
  return new Class2({
11635
11726
  type: "number",
@@ -11640,6 +11731,7 @@ function _float64(Class2, params) {
11640
11731
  });
11641
11732
  }
11642
11733
  __name(_float64, "_float64");
11734
+ // @__NO_SIDE_EFFECTS__
11643
11735
  function _int32(Class2, params) {
11644
11736
  return new Class2({
11645
11737
  type: "number",
@@ -11650,6 +11742,7 @@ function _int32(Class2, params) {
11650
11742
  });
11651
11743
  }
11652
11744
  __name(_int32, "_int32");
11745
+ // @__NO_SIDE_EFFECTS__
11653
11746
  function _uint32(Class2, params) {
11654
11747
  return new Class2({
11655
11748
  type: "number",
@@ -11660,6 +11753,7 @@ function _uint32(Class2, params) {
11660
11753
  });
11661
11754
  }
11662
11755
  __name(_uint32, "_uint32");
11756
+ // @__NO_SIDE_EFFECTS__
11663
11757
  function _boolean(Class2, params) {
11664
11758
  return new Class2({
11665
11759
  type: "boolean",
@@ -11667,6 +11761,7 @@ function _boolean(Class2, params) {
11667
11761
  });
11668
11762
  }
11669
11763
  __name(_boolean, "_boolean");
11764
+ // @__NO_SIDE_EFFECTS__
11670
11765
  function _coercedBoolean(Class2, params) {
11671
11766
  return new Class2({
11672
11767
  type: "boolean",
@@ -11675,6 +11770,7 @@ function _coercedBoolean(Class2, params) {
11675
11770
  });
11676
11771
  }
11677
11772
  __name(_coercedBoolean, "_coercedBoolean");
11773
+ // @__NO_SIDE_EFFECTS__
11678
11774
  function _bigint(Class2, params) {
11679
11775
  return new Class2({
11680
11776
  type: "bigint",
@@ -11682,6 +11778,7 @@ function _bigint(Class2, params) {
11682
11778
  });
11683
11779
  }
11684
11780
  __name(_bigint, "_bigint");
11781
+ // @__NO_SIDE_EFFECTS__
11685
11782
  function _coercedBigint(Class2, params) {
11686
11783
  return new Class2({
11687
11784
  type: "bigint",
@@ -11690,6 +11787,7 @@ function _coercedBigint(Class2, params) {
11690
11787
  });
11691
11788
  }
11692
11789
  __name(_coercedBigint, "_coercedBigint");
11790
+ // @__NO_SIDE_EFFECTS__
11693
11791
  function _int64(Class2, params) {
11694
11792
  return new Class2({
11695
11793
  type: "bigint",
@@ -11700,6 +11798,7 @@ function _int64(Class2, params) {
11700
11798
  });
11701
11799
  }
11702
11800
  __name(_int64, "_int64");
11801
+ // @__NO_SIDE_EFFECTS__
11703
11802
  function _uint64(Class2, params) {
11704
11803
  return new Class2({
11705
11804
  type: "bigint",
@@ -11710,6 +11809,7 @@ function _uint64(Class2, params) {
11710
11809
  });
11711
11810
  }
11712
11811
  __name(_uint64, "_uint64");
11812
+ // @__NO_SIDE_EFFECTS__
11713
11813
  function _symbol(Class2, params) {
11714
11814
  return new Class2({
11715
11815
  type: "symbol",
@@ -11717,6 +11817,7 @@ function _symbol(Class2, params) {
11717
11817
  });
11718
11818
  }
11719
11819
  __name(_symbol, "_symbol");
11820
+ // @__NO_SIDE_EFFECTS__
11720
11821
  function _undefined2(Class2, params) {
11721
11822
  return new Class2({
11722
11823
  type: "undefined",
@@ -11724,6 +11825,7 @@ function _undefined2(Class2, params) {
11724
11825
  });
11725
11826
  }
11726
11827
  __name(_undefined2, "_undefined");
11828
+ // @__NO_SIDE_EFFECTS__
11727
11829
  function _null2(Class2, params) {
11728
11830
  return new Class2({
11729
11831
  type: "null",
@@ -11731,18 +11833,21 @@ function _null2(Class2, params) {
11731
11833
  });
11732
11834
  }
11733
11835
  __name(_null2, "_null");
11836
+ // @__NO_SIDE_EFFECTS__
11734
11837
  function _any(Class2) {
11735
11838
  return new Class2({
11736
11839
  type: "any"
11737
11840
  });
11738
11841
  }
11739
11842
  __name(_any, "_any");
11843
+ // @__NO_SIDE_EFFECTS__
11740
11844
  function _unknown(Class2) {
11741
11845
  return new Class2({
11742
11846
  type: "unknown"
11743
11847
  });
11744
11848
  }
11745
11849
  __name(_unknown, "_unknown");
11850
+ // @__NO_SIDE_EFFECTS__
11746
11851
  function _never(Class2, params) {
11747
11852
  return new Class2({
11748
11853
  type: "never",
@@ -11750,6 +11855,7 @@ function _never(Class2, params) {
11750
11855
  });
11751
11856
  }
11752
11857
  __name(_never, "_never");
11858
+ // @__NO_SIDE_EFFECTS__
11753
11859
  function _void(Class2, params) {
11754
11860
  return new Class2({
11755
11861
  type: "void",
@@ -11757,6 +11863,7 @@ function _void(Class2, params) {
11757
11863
  });
11758
11864
  }
11759
11865
  __name(_void, "_void");
11866
+ // @__NO_SIDE_EFFECTS__
11760
11867
  function _date(Class2, params) {
11761
11868
  return new Class2({
11762
11869
  type: "date",
@@ -11764,6 +11871,7 @@ function _date(Class2, params) {
11764
11871
  });
11765
11872
  }
11766
11873
  __name(_date, "_date");
11874
+ // @__NO_SIDE_EFFECTS__
11767
11875
  function _coercedDate(Class2, params) {
11768
11876
  return new Class2({
11769
11877
  type: "date",
@@ -11772,6 +11880,7 @@ function _coercedDate(Class2, params) {
11772
11880
  });
11773
11881
  }
11774
11882
  __name(_coercedDate, "_coercedDate");
11883
+ // @__NO_SIDE_EFFECTS__
11775
11884
  function _nan(Class2, params) {
11776
11885
  return new Class2({
11777
11886
  type: "nan",
@@ -11779,6 +11888,7 @@ function _nan(Class2, params) {
11779
11888
  });
11780
11889
  }
11781
11890
  __name(_nan, "_nan");
11891
+ // @__NO_SIDE_EFFECTS__
11782
11892
  function _lt(value, params) {
11783
11893
  return new $ZodCheckLessThan({
11784
11894
  check: "less_than",
@@ -11788,6 +11898,7 @@ function _lt(value, params) {
11788
11898
  });
11789
11899
  }
11790
11900
  __name(_lt, "_lt");
11901
+ // @__NO_SIDE_EFFECTS__
11791
11902
  function _lte(value, params) {
11792
11903
  return new $ZodCheckLessThan({
11793
11904
  check: "less_than",
@@ -11797,6 +11908,7 @@ function _lte(value, params) {
11797
11908
  });
11798
11909
  }
11799
11910
  __name(_lte, "_lte");
11911
+ // @__NO_SIDE_EFFECTS__
11800
11912
  function _gt(value, params) {
11801
11913
  return new $ZodCheckGreaterThan({
11802
11914
  check: "greater_than",
@@ -11806,6 +11918,7 @@ function _gt(value, params) {
11806
11918
  });
11807
11919
  }
11808
11920
  __name(_gt, "_gt");
11921
+ // @__NO_SIDE_EFFECTS__
11809
11922
  function _gte(value, params) {
11810
11923
  return new $ZodCheckGreaterThan({
11811
11924
  check: "greater_than",
@@ -11815,22 +11928,27 @@ function _gte(value, params) {
11815
11928
  });
11816
11929
  }
11817
11930
  __name(_gte, "_gte");
11931
+ // @__NO_SIDE_EFFECTS__
11818
11932
  function _positive(params) {
11819
- return _gt(0, params);
11933
+ return /* @__PURE__ */ _gt(0, params);
11820
11934
  }
11821
11935
  __name(_positive, "_positive");
11936
+ // @__NO_SIDE_EFFECTS__
11822
11937
  function _negative(params) {
11823
- return _lt(0, params);
11938
+ return /* @__PURE__ */ _lt(0, params);
11824
11939
  }
11825
11940
  __name(_negative, "_negative");
11941
+ // @__NO_SIDE_EFFECTS__
11826
11942
  function _nonpositive(params) {
11827
- return _lte(0, params);
11943
+ return /* @__PURE__ */ _lte(0, params);
11828
11944
  }
11829
11945
  __name(_nonpositive, "_nonpositive");
11946
+ // @__NO_SIDE_EFFECTS__
11830
11947
  function _nonnegative(params) {
11831
- return _gte(0, params);
11948
+ return /* @__PURE__ */ _gte(0, params);
11832
11949
  }
11833
11950
  __name(_nonnegative, "_nonnegative");
11951
+ // @__NO_SIDE_EFFECTS__
11834
11952
  function _multipleOf(value, params) {
11835
11953
  return new $ZodCheckMultipleOf({
11836
11954
  check: "multiple_of",
@@ -11839,6 +11957,7 @@ function _multipleOf(value, params) {
11839
11957
  });
11840
11958
  }
11841
11959
  __name(_multipleOf, "_multipleOf");
11960
+ // @__NO_SIDE_EFFECTS__
11842
11961
  function _maxSize(maximum, params) {
11843
11962
  return new $ZodCheckMaxSize({
11844
11963
  check: "max_size",
@@ -11847,6 +11966,7 @@ function _maxSize(maximum, params) {
11847
11966
  });
11848
11967
  }
11849
11968
  __name(_maxSize, "_maxSize");
11969
+ // @__NO_SIDE_EFFECTS__
11850
11970
  function _minSize(minimum, params) {
11851
11971
  return new $ZodCheckMinSize({
11852
11972
  check: "min_size",
@@ -11855,6 +11975,7 @@ function _minSize(minimum, params) {
11855
11975
  });
11856
11976
  }
11857
11977
  __name(_minSize, "_minSize");
11978
+ // @__NO_SIDE_EFFECTS__
11858
11979
  function _size(size, params) {
11859
11980
  return new $ZodCheckSizeEquals({
11860
11981
  check: "size_equals",
@@ -11863,6 +11984,7 @@ function _size(size, params) {
11863
11984
  });
11864
11985
  }
11865
11986
  __name(_size, "_size");
11987
+ // @__NO_SIDE_EFFECTS__
11866
11988
  function _maxLength(maximum, params) {
11867
11989
  const ch = new $ZodCheckMaxLength({
11868
11990
  check: "max_length",
@@ -11872,6 +11994,7 @@ function _maxLength(maximum, params) {
11872
11994
  return ch;
11873
11995
  }
11874
11996
  __name(_maxLength, "_maxLength");
11997
+ // @__NO_SIDE_EFFECTS__
11875
11998
  function _minLength(minimum, params) {
11876
11999
  return new $ZodCheckMinLength({
11877
12000
  check: "min_length",
@@ -11880,6 +12003,7 @@ function _minLength(minimum, params) {
11880
12003
  });
11881
12004
  }
11882
12005
  __name(_minLength, "_minLength");
12006
+ // @__NO_SIDE_EFFECTS__
11883
12007
  function _length(length, params) {
11884
12008
  return new $ZodCheckLengthEquals({
11885
12009
  check: "length_equals",
@@ -11888,6 +12012,7 @@ function _length(length, params) {
11888
12012
  });
11889
12013
  }
11890
12014
  __name(_length, "_length");
12015
+ // @__NO_SIDE_EFFECTS__
11891
12016
  function _regex(pattern, params) {
11892
12017
  return new $ZodCheckRegex({
11893
12018
  check: "string_format",
@@ -11897,6 +12022,7 @@ function _regex(pattern, params) {
11897
12022
  });
11898
12023
  }
11899
12024
  __name(_regex, "_regex");
12025
+ // @__NO_SIDE_EFFECTS__
11900
12026
  function _lowercase(params) {
11901
12027
  return new $ZodCheckLowerCase({
11902
12028
  check: "string_format",
@@ -11905,6 +12031,7 @@ function _lowercase(params) {
11905
12031
  });
11906
12032
  }
11907
12033
  __name(_lowercase, "_lowercase");
12034
+ // @__NO_SIDE_EFFECTS__
11908
12035
  function _uppercase(params) {
11909
12036
  return new $ZodCheckUpperCase({
11910
12037
  check: "string_format",
@@ -11913,6 +12040,7 @@ function _uppercase(params) {
11913
12040
  });
11914
12041
  }
11915
12042
  __name(_uppercase, "_uppercase");
12043
+ // @__NO_SIDE_EFFECTS__
11916
12044
  function _includes(includes, params) {
11917
12045
  return new $ZodCheckIncludes({
11918
12046
  check: "string_format",
@@ -11922,6 +12050,7 @@ function _includes(includes, params) {
11922
12050
  });
11923
12051
  }
11924
12052
  __name(_includes, "_includes");
12053
+ // @__NO_SIDE_EFFECTS__
11925
12054
  function _startsWith(prefix, params) {
11926
12055
  return new $ZodCheckStartsWith({
11927
12056
  check: "string_format",
@@ -11931,6 +12060,7 @@ function _startsWith(prefix, params) {
11931
12060
  });
11932
12061
  }
11933
12062
  __name(_startsWith, "_startsWith");
12063
+ // @__NO_SIDE_EFFECTS__
11934
12064
  function _endsWith(suffix, params) {
11935
12065
  return new $ZodCheckEndsWith({
11936
12066
  check: "string_format",
@@ -11940,6 +12070,7 @@ function _endsWith(suffix, params) {
11940
12070
  });
11941
12071
  }
11942
12072
  __name(_endsWith, "_endsWith");
12073
+ // @__NO_SIDE_EFFECTS__
11943
12074
  function _property(property, schema, params) {
11944
12075
  return new $ZodCheckProperty({
11945
12076
  check: "property",
@@ -11949,6 +12080,7 @@ function _property(property, schema, params) {
11949
12080
  });
11950
12081
  }
11951
12082
  __name(_property, "_property");
12083
+ // @__NO_SIDE_EFFECTS__
11952
12084
  function _mime(types, params) {
11953
12085
  return new $ZodCheckMimeType({
11954
12086
  check: "mime_type",
@@ -11957,6 +12089,7 @@ function _mime(types, params) {
11957
12089
  });
11958
12090
  }
11959
12091
  __name(_mime, "_mime");
12092
+ // @__NO_SIDE_EFFECTS__
11960
12093
  function _overwrite(tx) {
11961
12094
  return new $ZodCheckOverwrite({
11962
12095
  check: "overwrite",
@@ -11964,34 +12097,44 @@ function _overwrite(tx) {
11964
12097
  });
11965
12098
  }
11966
12099
  __name(_overwrite, "_overwrite");
12100
+ // @__NO_SIDE_EFFECTS__
11967
12101
  function _normalize(form) {
11968
- return _overwrite((input) => input.normalize(form));
12102
+ return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
11969
12103
  }
11970
12104
  __name(_normalize, "_normalize");
12105
+ // @__NO_SIDE_EFFECTS__
11971
12106
  function _trim() {
11972
- return _overwrite((input) => input.trim());
12107
+ return /* @__PURE__ */ _overwrite((input) => input.trim());
11973
12108
  }
11974
12109
  __name(_trim, "_trim");
12110
+ // @__NO_SIDE_EFFECTS__
11975
12111
  function _toLowerCase() {
11976
- return _overwrite((input) => input.toLowerCase());
12112
+ return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
11977
12113
  }
11978
12114
  __name(_toLowerCase, "_toLowerCase");
12115
+ // @__NO_SIDE_EFFECTS__
11979
12116
  function _toUpperCase() {
11980
- return _overwrite((input) => input.toUpperCase());
12117
+ return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
11981
12118
  }
11982
12119
  __name(_toUpperCase, "_toUpperCase");
12120
+ // @__NO_SIDE_EFFECTS__
11983
12121
  function _slugify() {
11984
- return _overwrite((input) => slugify(input));
12122
+ return /* @__PURE__ */ _overwrite((input) => slugify(input));
11985
12123
  }
11986
12124
  __name(_slugify, "_slugify");
12125
+ // @__NO_SIDE_EFFECTS__
11987
12126
  function _array(Class2, element, params) {
11988
12127
  return new Class2({
11989
12128
  type: "array",
11990
12129
  element,
12130
+ // get element() {
12131
+ // return element;
12132
+ // },
11991
12133
  ...normalizeParams(params)
11992
12134
  });
11993
12135
  }
11994
12136
  __name(_array, "_array");
12137
+ // @__NO_SIDE_EFFECTS__
11995
12138
  function _union(Class2, options, params) {
11996
12139
  return new Class2({
11997
12140
  type: "union",
@@ -12009,6 +12152,7 @@ function _xor(Class2, options, params) {
12009
12152
  });
12010
12153
  }
12011
12154
  __name(_xor, "_xor");
12155
+ // @__NO_SIDE_EFFECTS__
12012
12156
  function _discriminatedUnion(Class2, discriminator, options, params) {
12013
12157
  return new Class2({
12014
12158
  type: "union",
@@ -12018,6 +12162,7 @@ function _discriminatedUnion(Class2, discriminator, options, params) {
12018
12162
  });
12019
12163
  }
12020
12164
  __name(_discriminatedUnion, "_discriminatedUnion");
12165
+ // @__NO_SIDE_EFFECTS__
12021
12166
  function _intersection(Class2, left, right) {
12022
12167
  return new Class2({
12023
12168
  type: "intersection",
@@ -12026,6 +12171,7 @@ function _intersection(Class2, left, right) {
12026
12171
  });
12027
12172
  }
12028
12173
  __name(_intersection, "_intersection");
12174
+ // @__NO_SIDE_EFFECTS__
12029
12175
  function _tuple(Class2, items, _paramsOrRest, _params) {
12030
12176
  const hasRest = _paramsOrRest instanceof $ZodType;
12031
12177
  const params = hasRest ? _params : _paramsOrRest;
@@ -12038,6 +12184,7 @@ function _tuple(Class2, items, _paramsOrRest, _params) {
12038
12184
  });
12039
12185
  }
12040
12186
  __name(_tuple, "_tuple");
12187
+ // @__NO_SIDE_EFFECTS__
12041
12188
  function _record(Class2, keyType, valueType, params) {
12042
12189
  return new Class2({
12043
12190
  type: "record",
@@ -12047,6 +12194,7 @@ function _record(Class2, keyType, valueType, params) {
12047
12194
  });
12048
12195
  }
12049
12196
  __name(_record, "_record");
12197
+ // @__NO_SIDE_EFFECTS__
12050
12198
  function _map(Class2, keyType, valueType, params) {
12051
12199
  return new Class2({
12052
12200
  type: "map",
@@ -12056,6 +12204,7 @@ function _map(Class2, keyType, valueType, params) {
12056
12204
  });
12057
12205
  }
12058
12206
  __name(_map, "_map");
12207
+ // @__NO_SIDE_EFFECTS__
12059
12208
  function _set(Class2, valueType, params) {
12060
12209
  return new Class2({
12061
12210
  type: "set",
@@ -12064,6 +12213,7 @@ function _set(Class2, valueType, params) {
12064
12213
  });
12065
12214
  }
12066
12215
  __name(_set, "_set");
12216
+ // @__NO_SIDE_EFFECTS__
12067
12217
  function _enum(Class2, values, params) {
12068
12218
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
12069
12219
  return new Class2({
@@ -12073,6 +12223,7 @@ function _enum(Class2, values, params) {
12073
12223
  });
12074
12224
  }
12075
12225
  __name(_enum, "_enum");
12226
+ // @__NO_SIDE_EFFECTS__
12076
12227
  function _nativeEnum(Class2, entries, params) {
12077
12228
  return new Class2({
12078
12229
  type: "enum",
@@ -12081,6 +12232,7 @@ function _nativeEnum(Class2, entries, params) {
12081
12232
  });
12082
12233
  }
12083
12234
  __name(_nativeEnum, "_nativeEnum");
12235
+ // @__NO_SIDE_EFFECTS__
12084
12236
  function _literal(Class2, value, params) {
12085
12237
  return new Class2({
12086
12238
  type: "literal",
@@ -12089,6 +12241,7 @@ function _literal(Class2, value, params) {
12089
12241
  });
12090
12242
  }
12091
12243
  __name(_literal, "_literal");
12244
+ // @__NO_SIDE_EFFECTS__
12092
12245
  function _file(Class2, params) {
12093
12246
  return new Class2({
12094
12247
  type: "file",
@@ -12096,6 +12249,7 @@ function _file(Class2, params) {
12096
12249
  });
12097
12250
  }
12098
12251
  __name(_file, "_file");
12252
+ // @__NO_SIDE_EFFECTS__
12099
12253
  function _transform(Class2, fn) {
12100
12254
  return new Class2({
12101
12255
  type: "transform",
@@ -12103,6 +12257,7 @@ function _transform(Class2, fn) {
12103
12257
  });
12104
12258
  }
12105
12259
  __name(_transform, "_transform");
12260
+ // @__NO_SIDE_EFFECTS__
12106
12261
  function _optional(Class2, innerType) {
12107
12262
  return new Class2({
12108
12263
  type: "optional",
@@ -12110,6 +12265,7 @@ function _optional(Class2, innerType) {
12110
12265
  });
12111
12266
  }
12112
12267
  __name(_optional, "_optional");
12268
+ // @__NO_SIDE_EFFECTS__
12113
12269
  function _nullable(Class2, innerType) {
12114
12270
  return new Class2({
12115
12271
  type: "nullable",
@@ -12117,6 +12273,7 @@ function _nullable(Class2, innerType) {
12117
12273
  });
12118
12274
  }
12119
12275
  __name(_nullable, "_nullable");
12276
+ // @__NO_SIDE_EFFECTS__
12120
12277
  function _default(Class2, innerType, defaultValue) {
12121
12278
  return new Class2({
12122
12279
  type: "default",
@@ -12127,6 +12284,7 @@ function _default(Class2, innerType, defaultValue) {
12127
12284
  });
12128
12285
  }
12129
12286
  __name(_default, "_default");
12287
+ // @__NO_SIDE_EFFECTS__
12130
12288
  function _nonoptional(Class2, innerType, params) {
12131
12289
  return new Class2({
12132
12290
  type: "nonoptional",
@@ -12135,6 +12293,7 @@ function _nonoptional(Class2, innerType, params) {
12135
12293
  });
12136
12294
  }
12137
12295
  __name(_nonoptional, "_nonoptional");
12296
+ // @__NO_SIDE_EFFECTS__
12138
12297
  function _success(Class2, innerType) {
12139
12298
  return new Class2({
12140
12299
  type: "success",
@@ -12142,6 +12301,7 @@ function _success(Class2, innerType) {
12142
12301
  });
12143
12302
  }
12144
12303
  __name(_success, "_success");
12304
+ // @__NO_SIDE_EFFECTS__
12145
12305
  function _catch(Class2, innerType, catchValue) {
12146
12306
  return new Class2({
12147
12307
  type: "catch",
@@ -12150,6 +12310,7 @@ function _catch(Class2, innerType, catchValue) {
12150
12310
  });
12151
12311
  }
12152
12312
  __name(_catch, "_catch");
12313
+ // @__NO_SIDE_EFFECTS__
12153
12314
  function _pipe(Class2, in_, out) {
12154
12315
  return new Class2({
12155
12316
  type: "pipe",
@@ -12158,6 +12319,7 @@ function _pipe(Class2, in_, out) {
12158
12319
  });
12159
12320
  }
12160
12321
  __name(_pipe, "_pipe");
12322
+ // @__NO_SIDE_EFFECTS__
12161
12323
  function _readonly(Class2, innerType) {
12162
12324
  return new Class2({
12163
12325
  type: "readonly",
@@ -12165,6 +12327,7 @@ function _readonly(Class2, innerType) {
12165
12327
  });
12166
12328
  }
12167
12329
  __name(_readonly, "_readonly");
12330
+ // @__NO_SIDE_EFFECTS__
12168
12331
  function _templateLiteral(Class2, parts, params) {
12169
12332
  return new Class2({
12170
12333
  type: "template_literal",
@@ -12173,6 +12336,7 @@ function _templateLiteral(Class2, parts, params) {
12173
12336
  });
12174
12337
  }
12175
12338
  __name(_templateLiteral, "_templateLiteral");
12339
+ // @__NO_SIDE_EFFECTS__
12176
12340
  function _lazy(Class2, getter) {
12177
12341
  return new Class2({
12178
12342
  type: "lazy",
@@ -12180,6 +12344,7 @@ function _lazy(Class2, getter) {
12180
12344
  });
12181
12345
  }
12182
12346
  __name(_lazy, "_lazy");
12347
+ // @__NO_SIDE_EFFECTS__
12183
12348
  function _promise(Class2, innerType) {
12184
12349
  return new Class2({
12185
12350
  type: "promise",
@@ -12187,6 +12352,7 @@ function _promise(Class2, innerType) {
12187
12352
  });
12188
12353
  }
12189
12354
  __name(_promise, "_promise");
12355
+ // @__NO_SIDE_EFFECTS__
12190
12356
  function _custom(Class2, fn, _params) {
12191
12357
  const norm = normalizeParams(_params);
12192
12358
  norm.abort ?? (norm.abort = true);
@@ -12199,6 +12365,7 @@ function _custom(Class2, fn, _params) {
12199
12365
  return schema;
12200
12366
  }
12201
12367
  __name(_custom, "_custom");
12368
+ // @__NO_SIDE_EFFECTS__
12202
12369
  function _refine(Class2, fn, _params) {
12203
12370
  const schema = new Class2({
12204
12371
  type: "custom",
@@ -12209,8 +12376,9 @@ function _refine(Class2, fn, _params) {
12209
12376
  return schema;
12210
12377
  }
12211
12378
  __name(_refine, "_refine");
12379
+ // @__NO_SIDE_EFFECTS__
12212
12380
  function _superRefine(fn, params) {
12213
- const ch = _check((payload) => {
12381
+ const ch = /* @__PURE__ */ _check((payload) => {
12214
12382
  payload.addIssue = (issue2) => {
12215
12383
  if (typeof issue2 === "string") {
12216
12384
  payload.issues.push(issue(issue2, payload.value, ch._zod.def));
@@ -12230,6 +12398,7 @@ function _superRefine(fn, params) {
12230
12398
  return ch;
12231
12399
  }
12232
12400
  __name(_superRefine, "_superRefine");
12401
+ // @__NO_SIDE_EFFECTS__
12233
12402
  function _check(fn, params) {
12234
12403
  const ch = new $ZodCheck({
12235
12404
  check: "custom",
@@ -12239,6 +12408,7 @@ function _check(fn, params) {
12239
12408
  return ch;
12240
12409
  }
12241
12410
  __name(_check, "_check");
12411
+ // @__NO_SIDE_EFFECTS__
12242
12412
  function describe(description) {
12243
12413
  const ch = new $ZodCheck({ check: "describe" });
12244
12414
  ch._zod.onattach = [
@@ -12252,6 +12422,7 @@ function describe(description) {
12252
12422
  return ch;
12253
12423
  }
12254
12424
  __name(describe, "describe");
12425
+ // @__NO_SIDE_EFFECTS__
12255
12426
  function meta(metadata) {
12256
12427
  const ch = new $ZodCheck({ check: "meta" });
12257
12428
  ch._zod.onattach = [
@@ -12265,6 +12436,7 @@ function meta(metadata) {
12265
12436
  return ch;
12266
12437
  }
12267
12438
  __name(meta, "meta");
12439
+ // @__NO_SIDE_EFFECTS__
12268
12440
  function _stringbool(Classes, _params) {
12269
12441
  const params = normalizeParams(_params);
12270
12442
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -12284,7 +12456,7 @@ function _stringbool(Classes, _params) {
12284
12456
  type: "pipe",
12285
12457
  in: stringSchema,
12286
12458
  out: booleanSchema,
12287
- transform: (input, payload) => {
12459
+ transform: /* @__PURE__ */ __name(((input, payload) => {
12288
12460
  let data = input;
12289
12461
  if (params.case !== "sensitive")
12290
12462
  data = data.toLowerCase();
@@ -12303,19 +12475,20 @@ function _stringbool(Classes, _params) {
12303
12475
  });
12304
12476
  return {};
12305
12477
  }
12306
- },
12307
- reverseTransform: (input, _payload) => {
12478
+ }), "transform"),
12479
+ reverseTransform: /* @__PURE__ */ __name(((input, _payload) => {
12308
12480
  if (input === true) {
12309
12481
  return truthyArray[0] || "true";
12310
12482
  } else {
12311
12483
  return falsyArray[0] || "false";
12312
12484
  }
12313
- },
12485
+ }), "reverseTransform"),
12314
12486
  error: params.error
12315
12487
  });
12316
12488
  return codec2;
12317
12489
  }
12318
12490
  __name(_stringbool, "_stringbool");
12491
+ // @__NO_SIDE_EFFECTS__
12319
12492
  function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
12320
12493
  const params = normalizeParams(_params);
12321
12494
  const def = {
@@ -12358,7 +12531,7 @@ function initializeContext(params) {
12358
12531
  }
12359
12532
  __name(initializeContext, "initializeContext");
12360
12533
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12361
- var _a4;
12534
+ var _a6;
12362
12535
  const def = schema._zod.def;
12363
12536
  const seen = ctx.seen.get(schema);
12364
12537
  if (seen) {
@@ -12406,7 +12579,7 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
12406
12579
  delete result.schema.default;
12407
12580
  }
12408
12581
  if (ctx.io === "input" && "_prefault" in result.schema)
12409
- (_a4 = result.schema).default ?? (_a4.default = result.schema._prefault);
12582
+ (_a6 = result.schema).default ?? (_a6.default = result.schema._prefault);
12410
12583
  delete result.schema._prefault;
12411
12584
  const _result = ctx.seen.get(schema);
12412
12585
  return _result.schema;
@@ -12705,6 +12878,7 @@ var formatMap = {
12705
12878
  datetime: "date-time",
12706
12879
  json_string: "json-string",
12707
12880
  regex: ""
12881
+ // do not set
12708
12882
  };
12709
12883
  var stringProcessor = /* @__PURE__ */ __name((schema, ctx, _json, _params) => {
12710
12884
  const json2 = _json;
@@ -13243,28 +13417,35 @@ function toJSONSchema(input, params) {
13243
13417
  __name(toJSONSchema, "toJSONSchema");
13244
13418
 
13245
13419
  // ../../../node_modules/zod/v4/core/json-schema-generator.js
13246
- var JSONSchemaGenerator = class {
13420
+ var _JSONSchemaGenerator = class _JSONSchemaGenerator {
13421
+ /** @deprecated Access via ctx instead */
13247
13422
  get metadataRegistry() {
13248
13423
  return this.ctx.metadataRegistry;
13249
13424
  }
13425
+ /** @deprecated Access via ctx instead */
13250
13426
  get target() {
13251
13427
  return this.ctx.target;
13252
13428
  }
13429
+ /** @deprecated Access via ctx instead */
13253
13430
  get unrepresentable() {
13254
13431
  return this.ctx.unrepresentable;
13255
13432
  }
13433
+ /** @deprecated Access via ctx instead */
13256
13434
  get override() {
13257
13435
  return this.ctx.override;
13258
13436
  }
13437
+ /** @deprecated Access via ctx instead */
13259
13438
  get io() {
13260
13439
  return this.ctx.io;
13261
13440
  }
13441
+ /** @deprecated Access via ctx instead */
13262
13442
  get counter() {
13263
13443
  return this.ctx.counter;
13264
13444
  }
13265
13445
  set counter(value) {
13266
13446
  this.ctx.counter = value;
13267
13447
  }
13448
+ /** @deprecated Access via ctx instead */
13268
13449
  get seen() {
13269
13450
  return this.ctx.seen;
13270
13451
  }
@@ -13283,9 +13464,17 @@ var JSONSchemaGenerator = class {
13283
13464
  ...params?.io && { io: params.io }
13284
13465
  });
13285
13466
  }
13467
+ /**
13468
+ * Process a schema to prepare it for JSON Schema generation.
13469
+ * This must be called before emit().
13470
+ */
13286
13471
  process(schema, _params = { path: [], schemaPath: [] }) {
13287
13472
  return process2(schema, this.ctx, _params);
13288
13473
  }
13474
+ /**
13475
+ * Emit the final JSON Schema after processing.
13476
+ * Must call process() first.
13477
+ */
13289
13478
  emit(schema, _params) {
13290
13479
  if (_params) {
13291
13480
  if (_params.cycles)
@@ -13301,7 +13490,8 @@ var JSONSchemaGenerator = class {
13301
13490
  return plainResult;
13302
13491
  }
13303
13492
  };
13304
- __name(JSONSchemaGenerator, "JSONSchemaGenerator");
13493
+ __name(_JSONSchemaGenerator, "JSONSchemaGenerator");
13494
+ var JSONSchemaGenerator = _JSONSchemaGenerator;
13305
13495
 
13306
13496
  // ../../../node_modules/zod/v4/core/json-schema.js
13307
13497
  var json_schema_exports = {};
@@ -13562,27 +13752,32 @@ var initializer2 = /* @__PURE__ */ __name((inst, issues) => {
13562
13752
  inst.name = "ZodError";
13563
13753
  Object.defineProperties(inst, {
13564
13754
  format: {
13565
- value: (mapper) => formatError(inst, mapper)
13755
+ value: /* @__PURE__ */ __name((mapper) => formatError(inst, mapper), "value")
13756
+ // enumerable: false,
13566
13757
  },
13567
13758
  flatten: {
13568
- value: (mapper) => flattenError(inst, mapper)
13759
+ value: /* @__PURE__ */ __name((mapper) => flattenError(inst, mapper), "value")
13760
+ // enumerable: false,
13569
13761
  },
13570
13762
  addIssue: {
13571
- value: (issue2) => {
13763
+ value: /* @__PURE__ */ __name((issue2) => {
13572
13764
  inst.issues.push(issue2);
13573
13765
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
13574
- }
13766
+ }, "value")
13767
+ // enumerable: false,
13575
13768
  },
13576
13769
  addIssues: {
13577
- value: (issues2) => {
13770
+ value: /* @__PURE__ */ __name((issues2) => {
13578
13771
  inst.issues.push(...issues2);
13579
13772
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
13580
- }
13773
+ }, "value")
13774
+ // enumerable: false,
13581
13775
  },
13582
13776
  isEmpty: {
13583
13777
  get() {
13584
13778
  return inst.issues.length === 0;
13585
13779
  }
13780
+ // enumerable: false,
13586
13781
  }
13587
13782
  });
13588
13783
  }, "initializer");
@@ -14818,6 +15013,7 @@ function pipe(in_, out) {
14818
15013
  type: "pipe",
14819
15014
  in: in_,
14820
15015
  out
15016
+ // ...util.normalizeParams(params),
14821
15017
  });
14822
15018
  }
14823
15019
  __name(pipe, "pipe");
@@ -14923,6 +15119,7 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
14923
15119
  function check(fn) {
14924
15120
  const ch = new $ZodCheck({
14925
15121
  check: "custom"
15122
+ // ...util.normalizeParams(params),
14926
15123
  });
14927
15124
  ch._zod.check = fn;
14928
15125
  return ch;
@@ -14946,7 +15143,7 @@ function _instanceof(cls, params = {}) {
14946
15143
  const inst = new ZodCustom({
14947
15144
  type: "custom",
14948
15145
  check: "custom",
14949
- fn: (data) => data instanceof cls,
15146
+ fn: /* @__PURE__ */ __name((data) => data instanceof cls, "fn"),
14950
15147
  abort: true,
14951
15148
  ...util_exports.normalizeParams(params)
14952
15149
  });
@@ -15011,7 +15208,7 @@ function getErrorMap() {
15011
15208
  }
15012
15209
  __name(getErrorMap, "getErrorMap");
15013
15210
  var ZodFirstPartyTypeKind;
15014
- (function(ZodFirstPartyTypeKind2) {
15211
+ /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
15015
15212
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
15016
15213
 
15017
15214
  // ../../../node_modules/zod/v4/classic/from-json-schema.js
@@ -15021,10 +15218,12 @@ var z = {
15021
15218
  iso: iso_exports
15022
15219
  };
15023
15220
  var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15221
+ // Schema identification
15024
15222
  "$schema",
15025
15223
  "$ref",
15026
15224
  "$defs",
15027
15225
  "definitions",
15226
+ // Core schema keywords
15028
15227
  "$id",
15029
15228
  "id",
15030
15229
  "$comment",
@@ -15032,13 +15231,16 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15032
15231
  "$vocabulary",
15033
15232
  "$dynamicRef",
15034
15233
  "$dynamicAnchor",
15234
+ // Type
15035
15235
  "type",
15036
15236
  "enum",
15037
15237
  "const",
15238
+ // Composition
15038
15239
  "anyOf",
15039
15240
  "oneOf",
15040
15241
  "allOf",
15041
15242
  "not",
15243
+ // Object
15042
15244
  "properties",
15043
15245
  "required",
15044
15246
  "additionalProperties",
@@ -15046,6 +15248,7 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15046
15248
  "propertyNames",
15047
15249
  "minProperties",
15048
15250
  "maxProperties",
15251
+ // Array
15049
15252
  "items",
15050
15253
  "prefixItems",
15051
15254
  "additionalItems",
@@ -15055,20 +15258,25 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15055
15258
  "contains",
15056
15259
  "minContains",
15057
15260
  "maxContains",
15261
+ // String
15058
15262
  "minLength",
15059
15263
  "maxLength",
15060
15264
  "pattern",
15061
15265
  "format",
15266
+ // Number
15062
15267
  "minimum",
15063
15268
  "maximum",
15064
15269
  "exclusiveMinimum",
15065
15270
  "exclusiveMaximum",
15066
15271
  "multipleOf",
15272
+ // Already handled metadata
15067
15273
  "description",
15068
15274
  "default",
15275
+ // Content
15069
15276
  "contentEncoding",
15070
15277
  "contentMediaType",
15071
15278
  "contentSchema",
15279
+ // Unsupported (error-throwing)
15072
15280
  "unevaluatedItems",
15073
15281
  "unevaluatedProperties",
15074
15282
  "if",
@@ -15076,6 +15284,7 @@ var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
15076
15284
  "else",
15077
15285
  "dependentSchemas",
15078
15286
  "dependentRequired",
15287
+ // OpenAPI
15079
15288
  "nullable",
15080
15289
  "readOnly"
15081
15290
  ]);
@@ -15521,9 +15730,8 @@ __name(date4, "date");
15521
15730
  config(en_default());
15522
15731
 
15523
15732
  // ../../../node_modules/js-base64/base64.mjs
15524
- var version2 = "3.8.0";
15733
+ var version2 = "3.9.3";
15525
15734
  var VERSION = version2;
15526
- var _hasBuffer = typeof Buffer === "function";
15527
15735
  var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
15528
15736
  var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
15529
15737
  var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
@@ -15549,8 +15757,8 @@ var btoaPolyfill = /* @__PURE__ */ __name((bin) => {
15549
15757
  }
15550
15758
  return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
15551
15759
  }, "btoaPolyfill");
15552
- var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : _hasBuffer ? (bin) => Buffer.from(bin, "binary").toString("base64") : btoaPolyfill;
15553
- var _fromUint8Array = _hasBuffer ? (u8a) => Buffer.from(u8a).toString("base64") : (u8a) => {
15760
+ var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
15761
+ var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? (u8a) => u8a.toBase64() : (u8a) => {
15554
15762
  const maxargs = 4096;
15555
15763
  let strs = [];
15556
15764
  for (let i = 0, l = u8a.length; i < l; i += maxargs) {
@@ -15568,9 +15776,9 @@ var cb_utob = /* @__PURE__ */ __name((c) => {
15568
15776
  return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
15569
15777
  }
15570
15778
  }, "cb_utob");
15571
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
15779
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
15572
15780
  var utob = /* @__PURE__ */ __name((u) => u.replace(re_utob, cb_utob), "utob");
15573
- var _encode2 = _hasBuffer ? (s) => Buffer.from(s, "utf8").toString("base64") : _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
15781
+ var _encode2 = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
15574
15782
  var encode3 = /* @__PURE__ */ __name((src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode2(src)) : _encode2(src), "encode");
15575
15783
  var encodeURI = /* @__PURE__ */ __name((src) => encode3(src, true), "encodeURI");
15576
15784
  var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
@@ -15605,10 +15813,10 @@ var atobPolyfill = /* @__PURE__ */ __name((asc) => {
15605
15813
  }
15606
15814
  return binArray.join("");
15607
15815
  }, "atobPolyfill");
15608
- var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : _hasBuffer ? (asc) => Buffer.from(asc, "base64").toString("binary") : atobPolyfill;
15609
- var _toUint8Array = _hasBuffer ? (a) => _U8Afrom(Buffer.from(a, "base64")) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
15816
+ var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
15817
+ var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
15610
15818
  var toUint8Array = /* @__PURE__ */ __name((a) => _toUint8Array(_unURI(a)), "toUint8Array");
15611
- var _decode2 = _hasBuffer ? (a) => Buffer.from(a, "base64").toString("utf8") : _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
15819
+ var _decode2 = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
15612
15820
  var _unURI = /* @__PURE__ */ __name((a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/")), "_unURI");
15613
15821
  var decode3 = /* @__PURE__ */ __name((src) => _decode2(_unURI(src)), "decode");
15614
15822
  var isValid = /* @__PURE__ */ __name((src) => {
@@ -15705,18 +15913,22 @@ var __copyProps = /* @__PURE__ */ __name((to, from, except, desc) => {
15705
15913
  if (from && typeof from === "object" || typeof from === "function") {
15706
15914
  for (let key of __getOwnPropNames(from))
15707
15915
  if (!__hasOwnProp.call(to, key) && key !== except)
15708
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15916
+ __defProp2(to, key, { get: /* @__PURE__ */ __name(() => from[key], "get"), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15709
15917
  }
15710
15918
  return to;
15711
15919
  }, "__copyProps");
15712
15920
  var __toESM = /* @__PURE__ */ __name((mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
15921
+ // If the importer is in node compatibility mode or this is not an ESM
15922
+ // file that has been converted to a CommonJS file using a Babel-
15923
+ // compatible transform (i.e. "__esModule" has not been set), then set
15924
+ // "default" to the CommonJS "module.exports" for node compatibility.
15713
15925
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
15714
15926
  mod
15715
15927
  )), "__toESM");
15716
15928
  var require_types_cjs_development = __commonJS({
15717
15929
  "../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
15718
- var _a5, _b, _c, _d, _e, _f, _g;
15719
15930
  "use strict";
15931
+ var _a7, _b, _c, _d, _e, _f, _g;
15720
15932
  var __defProp22 = Object.defineProperty;
15721
15933
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
15722
15934
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -15879,6 +16091,12 @@ var require_types_cjs_development = __commonJS({
15879
16091
  LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkSigningAuthorityValidator2, "LCNBoostClaimLinkSigningAuthorityValidator"),
15880
16092
  LCNBoostStatus: /* @__PURE__ */ __name2(() => LCNBoostStatus2, "LCNBoostStatus"),
15881
16093
  LCNConnectionProfileValidator: /* @__PURE__ */ __name2(() => LCNConnectionProfileValidator2, "LCNConnectionProfileValidator"),
16094
+ LCNConnectionPromptActionResultValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptActionResultValidator2, "LCNConnectionPromptActionResultValidator"),
16095
+ LCNConnectionPromptActionStatusValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptActionStatusValidator2, "LCNConnectionPromptActionStatusValidator"),
16096
+ LCNConnectionPromptMetadataValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptMetadataValidator2, "LCNConnectionPromptMetadataValidator"),
16097
+ LCNConnectionPromptStatusValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptStatusValidator2, "LCNConnectionPromptStatusValidator"),
16098
+ LCNConnectionPromptSurfaceValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptSurfaceValidator2, "LCNConnectionPromptSurfaceValidator"),
16099
+ LCNConnectionPromptValidator: /* @__PURE__ */ __name2(() => LCNConnectionPromptValidator2, "LCNConnectionPromptValidator"),
15882
16100
  LCNDomainOrOriginValidator: /* @__PURE__ */ __name2(() => LCNDomainOrOriginValidator2, "LCNDomainOrOriginValidator"),
15883
16101
  LCNInboxContactMethodValidator: /* @__PURE__ */ __name2(() => LCNInboxContactMethodValidator2, "LCNInboxContactMethodValidator"),
15884
16102
  LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator2, "LCNInboxStatusEnumValidator"),
@@ -15890,6 +16108,7 @@ var require_types_cjs_development = __commonJS({
15890
16108
  LCNNotificationDataValidator: /* @__PURE__ */ __name2(() => LCNNotificationDataValidator2, "LCNNotificationDataValidator"),
15891
16109
  LCNNotificationInboxValidator: /* @__PURE__ */ __name2(() => LCNNotificationInboxValidator2, "LCNNotificationInboxValidator"),
15892
16110
  LCNNotificationMessageValidator: /* @__PURE__ */ __name2(() => LCNNotificationMessageValidator2, "LCNNotificationMessageValidator"),
16111
+ LCNNotificationMetadataValidator: /* @__PURE__ */ __name2(() => LCNNotificationMetadataValidator2, "LCNNotificationMetadataValidator"),
15893
16112
  LCNNotificationTypeEnumValidator: /* @__PURE__ */ __name2(() => LCNNotificationTypeEnumValidator2, "LCNNotificationTypeEnumValidator"),
15894
16113
  LCNNotificationValidator: /* @__PURE__ */ __name2(() => LCNNotificationValidator2, "LCNNotificationValidator"),
15895
16114
  LCNProfileConnectionStatusEnum: /* @__PURE__ */ __name2(() => LCNProfileConnectionStatusEnum2, "LCNProfileConnectionStatusEnum"),
@@ -16538,10 +16757,11 @@ var require_types_cjs_development = __commonJS({
16538
16757
  util: /* @__PURE__ */ __name2(() => util_exports2, "util"),
16539
16758
  version: /* @__PURE__ */ __name2(() => version3, "version")
16540
16759
  });
16541
- var _a4;
16760
+ var _a6;
16542
16761
  var NEVER2 = /* @__PURE__ */ Object.freeze({
16543
16762
  status: "aborted"
16544
16763
  });
16764
+ // @__NO_SIDE_EFFECTS__
16545
16765
  function $constructor2(name, initializer32, params) {
16546
16766
  function init(inst, def) {
16547
16767
  if (!inst._zod) {
@@ -16572,16 +16792,12 @@ var require_types_cjs_development = __commonJS({
16572
16792
  __name2(init, "init");
16573
16793
  __name22(init, "init");
16574
16794
  const Parent = params?.Parent ?? Object;
16575
- const _Definition = class extends Parent {
16795
+ const _Definition = class _Definition extends Parent {
16576
16796
  };
16797
+ __name(_Definition, "Definition");
16798
+ __name2(_Definition, "Definition");
16799
+ __name22(_Definition, "Definition");
16577
16800
  let Definition = _Definition;
16578
- __name(Definition, "Definition");
16579
- (() => {
16580
- __name2(_Definition, "Definition");
16581
- })();
16582
- (() => {
16583
- __name22(_Definition, "Definition");
16584
- })();
16585
16801
  Object.defineProperty(Definition, "name", { value: name });
16586
16802
  function _(def) {
16587
16803
  var _a32;
@@ -16611,26 +16827,18 @@ var require_types_cjs_development = __commonJS({
16611
16827
  __name2($constructor2, "$constructor");
16612
16828
  __name22($constructor2, "$constructor");
16613
16829
  var $brand2 = /* @__PURE__ */ Symbol("zod_brand");
16614
- var $ZodAsyncError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_a5 = class extends Error {
16830
+ var $ZodAsyncError2 = (_a7 = class extends Error {
16615
16831
  constructor() {
16616
16832
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
16617
16833
  }
16618
- }, "_this"), (() => {
16619
- __name2(_a5, "$ZodAsyncError");
16620
- })(), (() => {
16621
- __name22(_a5, "$ZodAsyncError");
16622
- })(), _a5), "$ZodAsyncError");
16623
- var $ZodEncodeError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_b = class extends Error {
16834
+ }, __name(_a7, "$ZodAsyncError"), __name2(_a7, "$ZodAsyncError"), __name22(_a7, "$ZodAsyncError"), _a7);
16835
+ var $ZodEncodeError2 = (_b = class extends Error {
16624
16836
  constructor(name) {
16625
16837
  super(`Encountered unidirectional transform during encode: ${name}`);
16626
16838
  this.name = "ZodEncodeError";
16627
16839
  }
16628
- }, "_this"), (() => {
16629
- __name2(_b, "$ZodEncodeError");
16630
- })(), (() => {
16631
- __name22(_b, "$ZodEncodeError");
16632
- })(), _b), "$ZodEncodeError");
16633
- (_a4 = globalThis).__zod_globalConfig ?? (_a4.__zod_globalConfig = {});
16840
+ }, __name(_b, "$ZodEncodeError"), __name2(_b, "$ZodEncodeError"), __name22(_b, "$ZodEncodeError"), _b);
16841
+ (_a6 = globalThis).__zod_globalConfig ?? (_a6.__zod_globalConfig = {});
16634
16842
  var globalConfig2 = globalThis.__zod_globalConfig;
16635
16843
  function config2(newConfig) {
16636
16844
  if (newConfig)
@@ -16814,6 +17022,7 @@ var require_types_cjs_development = __commonJS({
16814
17022
  set(v) {
16815
17023
  Object.defineProperty(object22, key, {
16816
17024
  value: v
17025
+ // configurable: true,
16817
17026
  });
16818
17027
  },
16819
17028
  configurable: true
@@ -17494,14 +17703,10 @@ var require_types_cjs_development = __commonJS({
17494
17703
  __name(uint8ArrayToHex2, "uint8ArrayToHex");
17495
17704
  __name2(uint8ArrayToHex2, "uint8ArrayToHex");
17496
17705
  __name22(uint8ArrayToHex2, "uint8ArrayToHex");
17497
- var Class2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_c = class {
17706
+ var Class2 = (_c = class {
17498
17707
  constructor(..._args) {
17499
17708
  }
17500
- }, "_this"), (() => {
17501
- __name2(_c, "Class");
17502
- })(), (() => {
17503
- __name22(_c, "Class");
17504
- })(), _c), "Class");
17709
+ }, __name(_c, "Class"), __name2(_c, "Class"), __name22(_c, "Class"), _c);
17505
17710
  var initializer3 = /* @__PURE__ */ __name22((inst, def) => {
17506
17711
  inst.name = "$ZodError";
17507
17712
  Object.defineProperty(inst, "_zod", {
@@ -18464,7 +18669,7 @@ var require_types_cjs_development = __commonJS({
18464
18669
  payload.value = def.tx(payload.value);
18465
18670
  };
18466
18671
  });
18467
- var Doc2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_d = class {
18672
+ var Doc2 = (_d = class {
18468
18673
  constructor(args = []) {
18469
18674
  this.content = [];
18470
18675
  this.indent = 0;
@@ -18497,11 +18702,7 @@ var require_types_cjs_development = __commonJS({
18497
18702
  const lines = [...content.map((x) => ` ${x}`)];
18498
18703
  return new F(...args, lines.join("\n"));
18499
18704
  }
18500
- }, "_this"), (() => {
18501
- __name2(_d, "Doc");
18502
- })(), (() => {
18503
- __name22(_d, "Doc");
18504
- })(), _d), "Doc");
18705
+ }, __name(_d, "Doc"), __name2(_d, "Doc"), __name22(_d, "Doc"), _d);
18505
18706
  var version3 = {
18506
18707
  major: 4,
18507
18708
  minor: 4,
@@ -20656,8 +20857,11 @@ var require_types_cjs_development = __commonJS({
20656
20857
  code: "custom",
20657
20858
  input,
20658
20859
  inst,
20860
+ // incorporates params.error into issue reporting
20659
20861
  path: [...inst._zod.def.path ?? []],
20862
+ // incorporates params.error into issue reporting
20660
20863
  continue: !inst._zod.def.abort
20864
+ // params: inst._zod.def.params,
20661
20865
  };
20662
20866
  if (inst._zod.def.params)
20663
20867
  _iss.params = inst._zod.def.params;
@@ -21329,6 +21533,7 @@ var require_types_cjs_development = __commonJS({
21329
21533
  return `Clau inv\xE0lida a ${issue22.origin}`;
21330
21534
  case "invalid_union":
21331
21535
  return "Entrada inv\xE0lida";
21536
+ // Could also be "Tipus d'unió invàlid" but "Entrada invàlida" is more general
21332
21537
  case "invalid_element":
21333
21538
  return `Element inv\xE0lid a ${issue22.origin}`;
21334
21539
  default:
@@ -21853,7 +22058,9 @@ var require_types_cjs_development = __commonJS({
21853
22058
  template_literal: "input"
21854
22059
  };
21855
22060
  const TypeDictionary = {
22061
+ // Compatibility: "nan" -> "NaN" for display
21856
22062
  nan: "NaN"
22063
+ // All other type names omitted - they fall back to raw values via ?? operator
21857
22064
  };
21858
22065
  return (issue22) => {
21859
22066
  switch (issue22.code) {
@@ -22678,6 +22885,7 @@ var require_types_cjs_development = __commonJS({
22678
22885
  array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
22679
22886
  set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
22680
22887
  number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
22888
+ // no unit
22681
22889
  };
22682
22890
  const typeEntry = /* @__PURE__ */ __name22((t) => t ? TypeNames[t] : void 0, "typeEntry");
22683
22891
  const typeLabel = /* @__PURE__ */ __name22((t) => {
@@ -26833,7 +27041,7 @@ var require_types_cjs_development = __commonJS({
26833
27041
  var _a22;
26834
27042
  var $output2 = /* @__PURE__ */ Symbol("ZodOutput");
26835
27043
  var $input2 = /* @__PURE__ */ Symbol("ZodInput");
26836
- var $ZodRegistry2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_e = class {
27044
+ var $ZodRegistry2 = (_e = class {
26837
27045
  constructor() {
26838
27046
  this._map = /* @__PURE__ */ new WeakMap();
26839
27047
  this._idmap = /* @__PURE__ */ new Map();
@@ -26872,11 +27080,7 @@ var require_types_cjs_development = __commonJS({
26872
27080
  has(schema) {
26873
27081
  return this._map.has(schema);
26874
27082
  }
26875
- }, "_this"), (() => {
26876
- __name2(_e, "$ZodRegistry");
26877
- })(), (() => {
26878
- __name22(_e, "$ZodRegistry");
26879
- })(), _e), "$ZodRegistry");
27083
+ }, __name(_e, "$ZodRegistry"), __name2(_e, "$ZodRegistry"), __name22(_e, "$ZodRegistry"), _e);
26880
27084
  function registry2() {
26881
27085
  return new $ZodRegistry2();
26882
27086
  }
@@ -26885,6 +27089,7 @@ var require_types_cjs_development = __commonJS({
26885
27089
  __name22(registry2, "registry");
26886
27090
  (_a22 = globalThis).__zod_globalRegistry ?? (_a22.__zod_globalRegistry = registry2());
26887
27091
  var globalRegistry2 = globalThis.__zod_globalRegistry;
27092
+ // @__NO_SIDE_EFFECTS__
26888
27093
  function _string2(Class22, params) {
26889
27094
  return new Class22({
26890
27095
  type: "string",
@@ -26894,6 +27099,7 @@ var require_types_cjs_development = __commonJS({
26894
27099
  __name(_string2, "_string");
26895
27100
  __name2(_string2, "_string");
26896
27101
  __name22(_string2, "_string");
27102
+ // @__NO_SIDE_EFFECTS__
26897
27103
  function _coercedString2(Class22, params) {
26898
27104
  return new Class22({
26899
27105
  type: "string",
@@ -26904,6 +27110,7 @@ var require_types_cjs_development = __commonJS({
26904
27110
  __name(_coercedString2, "_coercedString");
26905
27111
  __name2(_coercedString2, "_coercedString");
26906
27112
  __name22(_coercedString2, "_coercedString");
27113
+ // @__NO_SIDE_EFFECTS__
26907
27114
  function _email2(Class22, params) {
26908
27115
  return new Class22({
26909
27116
  type: "string",
@@ -26916,6 +27123,7 @@ var require_types_cjs_development = __commonJS({
26916
27123
  __name(_email2, "_email");
26917
27124
  __name2(_email2, "_email");
26918
27125
  __name22(_email2, "_email");
27126
+ // @__NO_SIDE_EFFECTS__
26919
27127
  function _guid2(Class22, params) {
26920
27128
  return new Class22({
26921
27129
  type: "string",
@@ -26928,6 +27136,7 @@ var require_types_cjs_development = __commonJS({
26928
27136
  __name(_guid2, "_guid");
26929
27137
  __name2(_guid2, "_guid");
26930
27138
  __name22(_guid2, "_guid");
27139
+ // @__NO_SIDE_EFFECTS__
26931
27140
  function _uuid2(Class22, params) {
26932
27141
  return new Class22({
26933
27142
  type: "string",
@@ -26940,6 +27149,7 @@ var require_types_cjs_development = __commonJS({
26940
27149
  __name(_uuid2, "_uuid");
26941
27150
  __name2(_uuid2, "_uuid");
26942
27151
  __name22(_uuid2, "_uuid");
27152
+ // @__NO_SIDE_EFFECTS__
26943
27153
  function _uuidv42(Class22, params) {
26944
27154
  return new Class22({
26945
27155
  type: "string",
@@ -26953,6 +27163,7 @@ var require_types_cjs_development = __commonJS({
26953
27163
  __name(_uuidv42, "_uuidv4");
26954
27164
  __name2(_uuidv42, "_uuidv4");
26955
27165
  __name22(_uuidv42, "_uuidv4");
27166
+ // @__NO_SIDE_EFFECTS__
26956
27167
  function _uuidv62(Class22, params) {
26957
27168
  return new Class22({
26958
27169
  type: "string",
@@ -26966,6 +27177,7 @@ var require_types_cjs_development = __commonJS({
26966
27177
  __name(_uuidv62, "_uuidv6");
26967
27178
  __name2(_uuidv62, "_uuidv6");
26968
27179
  __name22(_uuidv62, "_uuidv6");
27180
+ // @__NO_SIDE_EFFECTS__
26969
27181
  function _uuidv72(Class22, params) {
26970
27182
  return new Class22({
26971
27183
  type: "string",
@@ -26979,6 +27191,7 @@ var require_types_cjs_development = __commonJS({
26979
27191
  __name(_uuidv72, "_uuidv7");
26980
27192
  __name2(_uuidv72, "_uuidv7");
26981
27193
  __name22(_uuidv72, "_uuidv7");
27194
+ // @__NO_SIDE_EFFECTS__
26982
27195
  function _url2(Class22, params) {
26983
27196
  return new Class22({
26984
27197
  type: "string",
@@ -26991,6 +27204,7 @@ var require_types_cjs_development = __commonJS({
26991
27204
  __name(_url2, "_url");
26992
27205
  __name2(_url2, "_url");
26993
27206
  __name22(_url2, "_url");
27207
+ // @__NO_SIDE_EFFECTS__
26994
27208
  function _emoji22(Class22, params) {
26995
27209
  return new Class22({
26996
27210
  type: "string",
@@ -27003,6 +27217,7 @@ var require_types_cjs_development = __commonJS({
27003
27217
  __name(_emoji22, "_emoji2");
27004
27218
  __name2(_emoji22, "_emoji2");
27005
27219
  __name22(_emoji22, "_emoji");
27220
+ // @__NO_SIDE_EFFECTS__
27006
27221
  function _nanoid2(Class22, params) {
27007
27222
  return new Class22({
27008
27223
  type: "string",
@@ -27015,6 +27230,7 @@ var require_types_cjs_development = __commonJS({
27015
27230
  __name(_nanoid2, "_nanoid");
27016
27231
  __name2(_nanoid2, "_nanoid");
27017
27232
  __name22(_nanoid2, "_nanoid");
27233
+ // @__NO_SIDE_EFFECTS__
27018
27234
  function _cuid3(Class22, params) {
27019
27235
  return new Class22({
27020
27236
  type: "string",
@@ -27027,6 +27243,7 @@ var require_types_cjs_development = __commonJS({
27027
27243
  __name(_cuid3, "_cuid");
27028
27244
  __name2(_cuid3, "_cuid");
27029
27245
  __name22(_cuid3, "_cuid");
27246
+ // @__NO_SIDE_EFFECTS__
27030
27247
  function _cuid22(Class22, params) {
27031
27248
  return new Class22({
27032
27249
  type: "string",
@@ -27039,6 +27256,7 @@ var require_types_cjs_development = __commonJS({
27039
27256
  __name(_cuid22, "_cuid2");
27040
27257
  __name2(_cuid22, "_cuid2");
27041
27258
  __name22(_cuid22, "_cuid2");
27259
+ // @__NO_SIDE_EFFECTS__
27042
27260
  function _ulid2(Class22, params) {
27043
27261
  return new Class22({
27044
27262
  type: "string",
@@ -27051,6 +27269,7 @@ var require_types_cjs_development = __commonJS({
27051
27269
  __name(_ulid2, "_ulid");
27052
27270
  __name2(_ulid2, "_ulid");
27053
27271
  __name22(_ulid2, "_ulid");
27272
+ // @__NO_SIDE_EFFECTS__
27054
27273
  function _xid2(Class22, params) {
27055
27274
  return new Class22({
27056
27275
  type: "string",
@@ -27063,6 +27282,7 @@ var require_types_cjs_development = __commonJS({
27063
27282
  __name(_xid2, "_xid");
27064
27283
  __name2(_xid2, "_xid");
27065
27284
  __name22(_xid2, "_xid");
27285
+ // @__NO_SIDE_EFFECTS__
27066
27286
  function _ksuid2(Class22, params) {
27067
27287
  return new Class22({
27068
27288
  type: "string",
@@ -27075,6 +27295,7 @@ var require_types_cjs_development = __commonJS({
27075
27295
  __name(_ksuid2, "_ksuid");
27076
27296
  __name2(_ksuid2, "_ksuid");
27077
27297
  __name22(_ksuid2, "_ksuid");
27298
+ // @__NO_SIDE_EFFECTS__
27078
27299
  function _ipv42(Class22, params) {
27079
27300
  return new Class22({
27080
27301
  type: "string",
@@ -27087,6 +27308,7 @@ var require_types_cjs_development = __commonJS({
27087
27308
  __name(_ipv42, "_ipv4");
27088
27309
  __name2(_ipv42, "_ipv4");
27089
27310
  __name22(_ipv42, "_ipv4");
27311
+ // @__NO_SIDE_EFFECTS__
27090
27312
  function _ipv62(Class22, params) {
27091
27313
  return new Class22({
27092
27314
  type: "string",
@@ -27099,6 +27321,7 @@ var require_types_cjs_development = __commonJS({
27099
27321
  __name(_ipv62, "_ipv6");
27100
27322
  __name2(_ipv62, "_ipv6");
27101
27323
  __name22(_ipv62, "_ipv6");
27324
+ // @__NO_SIDE_EFFECTS__
27102
27325
  function _mac2(Class22, params) {
27103
27326
  return new Class22({
27104
27327
  type: "string",
@@ -27111,6 +27334,7 @@ var require_types_cjs_development = __commonJS({
27111
27334
  __name(_mac2, "_mac");
27112
27335
  __name2(_mac2, "_mac");
27113
27336
  __name22(_mac2, "_mac");
27337
+ // @__NO_SIDE_EFFECTS__
27114
27338
  function _cidrv42(Class22, params) {
27115
27339
  return new Class22({
27116
27340
  type: "string",
@@ -27123,6 +27347,7 @@ var require_types_cjs_development = __commonJS({
27123
27347
  __name(_cidrv42, "_cidrv4");
27124
27348
  __name2(_cidrv42, "_cidrv4");
27125
27349
  __name22(_cidrv42, "_cidrv4");
27350
+ // @__NO_SIDE_EFFECTS__
27126
27351
  function _cidrv62(Class22, params) {
27127
27352
  return new Class22({
27128
27353
  type: "string",
@@ -27135,6 +27360,7 @@ var require_types_cjs_development = __commonJS({
27135
27360
  __name(_cidrv62, "_cidrv6");
27136
27361
  __name2(_cidrv62, "_cidrv6");
27137
27362
  __name22(_cidrv62, "_cidrv6");
27363
+ // @__NO_SIDE_EFFECTS__
27138
27364
  function _base642(Class22, params) {
27139
27365
  return new Class22({
27140
27366
  type: "string",
@@ -27147,6 +27373,7 @@ var require_types_cjs_development = __commonJS({
27147
27373
  __name(_base642, "_base64");
27148
27374
  __name2(_base642, "_base64");
27149
27375
  __name22(_base642, "_base64");
27376
+ // @__NO_SIDE_EFFECTS__
27150
27377
  function _base64url2(Class22, params) {
27151
27378
  return new Class22({
27152
27379
  type: "string",
@@ -27159,6 +27386,7 @@ var require_types_cjs_development = __commonJS({
27159
27386
  __name(_base64url2, "_base64url");
27160
27387
  __name2(_base64url2, "_base64url");
27161
27388
  __name22(_base64url2, "_base64url");
27389
+ // @__NO_SIDE_EFFECTS__
27162
27390
  function _e1642(Class22, params) {
27163
27391
  return new Class22({
27164
27392
  type: "string",
@@ -27171,6 +27399,7 @@ var require_types_cjs_development = __commonJS({
27171
27399
  __name(_e1642, "_e164");
27172
27400
  __name2(_e1642, "_e164");
27173
27401
  __name22(_e1642, "_e164");
27402
+ // @__NO_SIDE_EFFECTS__
27174
27403
  function _jwt2(Class22, params) {
27175
27404
  return new Class22({
27176
27405
  type: "string",
@@ -27190,6 +27419,7 @@ var require_types_cjs_development = __commonJS({
27190
27419
  Millisecond: 3,
27191
27420
  Microsecond: 6
27192
27421
  };
27422
+ // @__NO_SIDE_EFFECTS__
27193
27423
  function _isoDateTime2(Class22, params) {
27194
27424
  return new Class22({
27195
27425
  type: "string",
@@ -27204,6 +27434,7 @@ var require_types_cjs_development = __commonJS({
27204
27434
  __name(_isoDateTime2, "_isoDateTime");
27205
27435
  __name2(_isoDateTime2, "_isoDateTime");
27206
27436
  __name22(_isoDateTime2, "_isoDateTime");
27437
+ // @__NO_SIDE_EFFECTS__
27207
27438
  function _isoDate2(Class22, params) {
27208
27439
  return new Class22({
27209
27440
  type: "string",
@@ -27215,6 +27446,7 @@ var require_types_cjs_development = __commonJS({
27215
27446
  __name(_isoDate2, "_isoDate");
27216
27447
  __name2(_isoDate2, "_isoDate");
27217
27448
  __name22(_isoDate2, "_isoDate");
27449
+ // @__NO_SIDE_EFFECTS__
27218
27450
  function _isoTime2(Class22, params) {
27219
27451
  return new Class22({
27220
27452
  type: "string",
@@ -27227,6 +27459,7 @@ var require_types_cjs_development = __commonJS({
27227
27459
  __name(_isoTime2, "_isoTime");
27228
27460
  __name2(_isoTime2, "_isoTime");
27229
27461
  __name22(_isoTime2, "_isoTime");
27462
+ // @__NO_SIDE_EFFECTS__
27230
27463
  function _isoDuration2(Class22, params) {
27231
27464
  return new Class22({
27232
27465
  type: "string",
@@ -27238,6 +27471,7 @@ var require_types_cjs_development = __commonJS({
27238
27471
  __name(_isoDuration2, "_isoDuration");
27239
27472
  __name2(_isoDuration2, "_isoDuration");
27240
27473
  __name22(_isoDuration2, "_isoDuration");
27474
+ // @__NO_SIDE_EFFECTS__
27241
27475
  function _number2(Class22, params) {
27242
27476
  return new Class22({
27243
27477
  type: "number",
@@ -27248,6 +27482,7 @@ var require_types_cjs_development = __commonJS({
27248
27482
  __name(_number2, "_number");
27249
27483
  __name2(_number2, "_number");
27250
27484
  __name22(_number2, "_number");
27485
+ // @__NO_SIDE_EFFECTS__
27251
27486
  function _coercedNumber2(Class22, params) {
27252
27487
  return new Class22({
27253
27488
  type: "number",
@@ -27259,6 +27494,7 @@ var require_types_cjs_development = __commonJS({
27259
27494
  __name(_coercedNumber2, "_coercedNumber");
27260
27495
  __name2(_coercedNumber2, "_coercedNumber");
27261
27496
  __name22(_coercedNumber2, "_coercedNumber");
27497
+ // @__NO_SIDE_EFFECTS__
27262
27498
  function _int2(Class22, params) {
27263
27499
  return new Class22({
27264
27500
  type: "number",
@@ -27271,6 +27507,7 @@ var require_types_cjs_development = __commonJS({
27271
27507
  __name(_int2, "_int");
27272
27508
  __name2(_int2, "_int");
27273
27509
  __name22(_int2, "_int");
27510
+ // @__NO_SIDE_EFFECTS__
27274
27511
  function _float322(Class22, params) {
27275
27512
  return new Class22({
27276
27513
  type: "number",
@@ -27283,6 +27520,7 @@ var require_types_cjs_development = __commonJS({
27283
27520
  __name(_float322, "_float32");
27284
27521
  __name2(_float322, "_float32");
27285
27522
  __name22(_float322, "_float32");
27523
+ // @__NO_SIDE_EFFECTS__
27286
27524
  function _float642(Class22, params) {
27287
27525
  return new Class22({
27288
27526
  type: "number",
@@ -27295,6 +27533,7 @@ var require_types_cjs_development = __commonJS({
27295
27533
  __name(_float642, "_float64");
27296
27534
  __name2(_float642, "_float64");
27297
27535
  __name22(_float642, "_float64");
27536
+ // @__NO_SIDE_EFFECTS__
27298
27537
  function _int322(Class22, params) {
27299
27538
  return new Class22({
27300
27539
  type: "number",
@@ -27307,6 +27546,7 @@ var require_types_cjs_development = __commonJS({
27307
27546
  __name(_int322, "_int32");
27308
27547
  __name2(_int322, "_int32");
27309
27548
  __name22(_int322, "_int32");
27549
+ // @__NO_SIDE_EFFECTS__
27310
27550
  function _uint322(Class22, params) {
27311
27551
  return new Class22({
27312
27552
  type: "number",
@@ -27319,6 +27559,7 @@ var require_types_cjs_development = __commonJS({
27319
27559
  __name(_uint322, "_uint32");
27320
27560
  __name2(_uint322, "_uint32");
27321
27561
  __name22(_uint322, "_uint32");
27562
+ // @__NO_SIDE_EFFECTS__
27322
27563
  function _boolean2(Class22, params) {
27323
27564
  return new Class22({
27324
27565
  type: "boolean",
@@ -27328,6 +27569,7 @@ var require_types_cjs_development = __commonJS({
27328
27569
  __name(_boolean2, "_boolean");
27329
27570
  __name2(_boolean2, "_boolean");
27330
27571
  __name22(_boolean2, "_boolean");
27572
+ // @__NO_SIDE_EFFECTS__
27331
27573
  function _coercedBoolean2(Class22, params) {
27332
27574
  return new Class22({
27333
27575
  type: "boolean",
@@ -27338,6 +27580,7 @@ var require_types_cjs_development = __commonJS({
27338
27580
  __name(_coercedBoolean2, "_coercedBoolean");
27339
27581
  __name2(_coercedBoolean2, "_coercedBoolean");
27340
27582
  __name22(_coercedBoolean2, "_coercedBoolean");
27583
+ // @__NO_SIDE_EFFECTS__
27341
27584
  function _bigint2(Class22, params) {
27342
27585
  return new Class22({
27343
27586
  type: "bigint",
@@ -27347,6 +27590,7 @@ var require_types_cjs_development = __commonJS({
27347
27590
  __name(_bigint2, "_bigint");
27348
27591
  __name2(_bigint2, "_bigint");
27349
27592
  __name22(_bigint2, "_bigint");
27593
+ // @__NO_SIDE_EFFECTS__
27350
27594
  function _coercedBigint2(Class22, params) {
27351
27595
  return new Class22({
27352
27596
  type: "bigint",
@@ -27357,6 +27601,7 @@ var require_types_cjs_development = __commonJS({
27357
27601
  __name(_coercedBigint2, "_coercedBigint");
27358
27602
  __name2(_coercedBigint2, "_coercedBigint");
27359
27603
  __name22(_coercedBigint2, "_coercedBigint");
27604
+ // @__NO_SIDE_EFFECTS__
27360
27605
  function _int642(Class22, params) {
27361
27606
  return new Class22({
27362
27607
  type: "bigint",
@@ -27369,6 +27614,7 @@ var require_types_cjs_development = __commonJS({
27369
27614
  __name(_int642, "_int64");
27370
27615
  __name2(_int642, "_int64");
27371
27616
  __name22(_int642, "_int64");
27617
+ // @__NO_SIDE_EFFECTS__
27372
27618
  function _uint642(Class22, params) {
27373
27619
  return new Class22({
27374
27620
  type: "bigint",
@@ -27381,6 +27627,7 @@ var require_types_cjs_development = __commonJS({
27381
27627
  __name(_uint642, "_uint64");
27382
27628
  __name2(_uint642, "_uint64");
27383
27629
  __name22(_uint642, "_uint64");
27630
+ // @__NO_SIDE_EFFECTS__
27384
27631
  function _symbol2(Class22, params) {
27385
27632
  return new Class22({
27386
27633
  type: "symbol",
@@ -27390,6 +27637,7 @@ var require_types_cjs_development = __commonJS({
27390
27637
  __name(_symbol2, "_symbol");
27391
27638
  __name2(_symbol2, "_symbol");
27392
27639
  __name22(_symbol2, "_symbol");
27640
+ // @__NO_SIDE_EFFECTS__
27393
27641
  function _undefined22(Class22, params) {
27394
27642
  return new Class22({
27395
27643
  type: "undefined",
@@ -27399,6 +27647,7 @@ var require_types_cjs_development = __commonJS({
27399
27647
  __name(_undefined22, "_undefined2");
27400
27648
  __name2(_undefined22, "_undefined2");
27401
27649
  __name22(_undefined22, "_undefined");
27650
+ // @__NO_SIDE_EFFECTS__
27402
27651
  function _null22(Class22, params) {
27403
27652
  return new Class22({
27404
27653
  type: "null",
@@ -27408,6 +27657,7 @@ var require_types_cjs_development = __commonJS({
27408
27657
  __name(_null22, "_null2");
27409
27658
  __name2(_null22, "_null2");
27410
27659
  __name22(_null22, "_null");
27660
+ // @__NO_SIDE_EFFECTS__
27411
27661
  function _any2(Class22) {
27412
27662
  return new Class22({
27413
27663
  type: "any"
@@ -27416,6 +27666,7 @@ var require_types_cjs_development = __commonJS({
27416
27666
  __name(_any2, "_any");
27417
27667
  __name2(_any2, "_any");
27418
27668
  __name22(_any2, "_any");
27669
+ // @__NO_SIDE_EFFECTS__
27419
27670
  function _unknown2(Class22) {
27420
27671
  return new Class22({
27421
27672
  type: "unknown"
@@ -27424,6 +27675,7 @@ var require_types_cjs_development = __commonJS({
27424
27675
  __name(_unknown2, "_unknown");
27425
27676
  __name2(_unknown2, "_unknown");
27426
27677
  __name22(_unknown2, "_unknown");
27678
+ // @__NO_SIDE_EFFECTS__
27427
27679
  function _never2(Class22, params) {
27428
27680
  return new Class22({
27429
27681
  type: "never",
@@ -27433,6 +27685,7 @@ var require_types_cjs_development = __commonJS({
27433
27685
  __name(_never2, "_never");
27434
27686
  __name2(_never2, "_never");
27435
27687
  __name22(_never2, "_never");
27688
+ // @__NO_SIDE_EFFECTS__
27436
27689
  function _void3(Class22, params) {
27437
27690
  return new Class22({
27438
27691
  type: "void",
@@ -27442,6 +27695,7 @@ var require_types_cjs_development = __commonJS({
27442
27695
  __name(_void3, "_void");
27443
27696
  __name2(_void3, "_void");
27444
27697
  __name22(_void3, "_void");
27698
+ // @__NO_SIDE_EFFECTS__
27445
27699
  function _date2(Class22, params) {
27446
27700
  return new Class22({
27447
27701
  type: "date",
@@ -27451,6 +27705,7 @@ var require_types_cjs_development = __commonJS({
27451
27705
  __name(_date2, "_date");
27452
27706
  __name2(_date2, "_date");
27453
27707
  __name22(_date2, "_date");
27708
+ // @__NO_SIDE_EFFECTS__
27454
27709
  function _coercedDate2(Class22, params) {
27455
27710
  return new Class22({
27456
27711
  type: "date",
@@ -27461,6 +27716,7 @@ var require_types_cjs_development = __commonJS({
27461
27716
  __name(_coercedDate2, "_coercedDate");
27462
27717
  __name2(_coercedDate2, "_coercedDate");
27463
27718
  __name22(_coercedDate2, "_coercedDate");
27719
+ // @__NO_SIDE_EFFECTS__
27464
27720
  function _nan2(Class22, params) {
27465
27721
  return new Class22({
27466
27722
  type: "nan",
@@ -27470,6 +27726,7 @@ var require_types_cjs_development = __commonJS({
27470
27726
  __name(_nan2, "_nan");
27471
27727
  __name2(_nan2, "_nan");
27472
27728
  __name22(_nan2, "_nan");
27729
+ // @__NO_SIDE_EFFECTS__
27473
27730
  function _lt2(value, params) {
27474
27731
  return new $ZodCheckLessThan2({
27475
27732
  check: "less_than",
@@ -27481,6 +27738,7 @@ var require_types_cjs_development = __commonJS({
27481
27738
  __name(_lt2, "_lt");
27482
27739
  __name2(_lt2, "_lt");
27483
27740
  __name22(_lt2, "_lt");
27741
+ // @__NO_SIDE_EFFECTS__
27484
27742
  function _lte2(value, params) {
27485
27743
  return new $ZodCheckLessThan2({
27486
27744
  check: "less_than",
@@ -27492,6 +27750,7 @@ var require_types_cjs_development = __commonJS({
27492
27750
  __name(_lte2, "_lte");
27493
27751
  __name2(_lte2, "_lte");
27494
27752
  __name22(_lte2, "_lte");
27753
+ // @__NO_SIDE_EFFECTS__
27495
27754
  function _gt2(value, params) {
27496
27755
  return new $ZodCheckGreaterThan2({
27497
27756
  check: "greater_than",
@@ -27503,6 +27762,7 @@ var require_types_cjs_development = __commonJS({
27503
27762
  __name(_gt2, "_gt");
27504
27763
  __name2(_gt2, "_gt");
27505
27764
  __name22(_gt2, "_gt");
27765
+ // @__NO_SIDE_EFFECTS__
27506
27766
  function _gte2(value, params) {
27507
27767
  return new $ZodCheckGreaterThan2({
27508
27768
  check: "greater_than",
@@ -27514,30 +27774,35 @@ var require_types_cjs_development = __commonJS({
27514
27774
  __name(_gte2, "_gte");
27515
27775
  __name2(_gte2, "_gte");
27516
27776
  __name22(_gte2, "_gte");
27777
+ // @__NO_SIDE_EFFECTS__
27517
27778
  function _positive2(params) {
27518
27779
  return /* @__PURE__ */ _gt2(0, params);
27519
27780
  }
27520
27781
  __name(_positive2, "_positive");
27521
27782
  __name2(_positive2, "_positive");
27522
27783
  __name22(_positive2, "_positive");
27784
+ // @__NO_SIDE_EFFECTS__
27523
27785
  function _negative2(params) {
27524
27786
  return /* @__PURE__ */ _lt2(0, params);
27525
27787
  }
27526
27788
  __name(_negative2, "_negative");
27527
27789
  __name2(_negative2, "_negative");
27528
27790
  __name22(_negative2, "_negative");
27791
+ // @__NO_SIDE_EFFECTS__
27529
27792
  function _nonpositive2(params) {
27530
27793
  return /* @__PURE__ */ _lte2(0, params);
27531
27794
  }
27532
27795
  __name(_nonpositive2, "_nonpositive");
27533
27796
  __name2(_nonpositive2, "_nonpositive");
27534
27797
  __name22(_nonpositive2, "_nonpositive");
27798
+ // @__NO_SIDE_EFFECTS__
27535
27799
  function _nonnegative2(params) {
27536
27800
  return /* @__PURE__ */ _gte2(0, params);
27537
27801
  }
27538
27802
  __name(_nonnegative2, "_nonnegative");
27539
27803
  __name2(_nonnegative2, "_nonnegative");
27540
27804
  __name22(_nonnegative2, "_nonnegative");
27805
+ // @__NO_SIDE_EFFECTS__
27541
27806
  function _multipleOf2(value, params) {
27542
27807
  return new $ZodCheckMultipleOf2({
27543
27808
  check: "multiple_of",
@@ -27548,6 +27813,7 @@ var require_types_cjs_development = __commonJS({
27548
27813
  __name(_multipleOf2, "_multipleOf");
27549
27814
  __name2(_multipleOf2, "_multipleOf");
27550
27815
  __name22(_multipleOf2, "_multipleOf");
27816
+ // @__NO_SIDE_EFFECTS__
27551
27817
  function _maxSize2(maximum, params) {
27552
27818
  return new $ZodCheckMaxSize2({
27553
27819
  check: "max_size",
@@ -27558,6 +27824,7 @@ var require_types_cjs_development = __commonJS({
27558
27824
  __name(_maxSize2, "_maxSize");
27559
27825
  __name2(_maxSize2, "_maxSize");
27560
27826
  __name22(_maxSize2, "_maxSize");
27827
+ // @__NO_SIDE_EFFECTS__
27561
27828
  function _minSize2(minimum, params) {
27562
27829
  return new $ZodCheckMinSize2({
27563
27830
  check: "min_size",
@@ -27568,6 +27835,7 @@ var require_types_cjs_development = __commonJS({
27568
27835
  __name(_minSize2, "_minSize");
27569
27836
  __name2(_minSize2, "_minSize");
27570
27837
  __name22(_minSize2, "_minSize");
27838
+ // @__NO_SIDE_EFFECTS__
27571
27839
  function _size2(size, params) {
27572
27840
  return new $ZodCheckSizeEquals2({
27573
27841
  check: "size_equals",
@@ -27578,6 +27846,7 @@ var require_types_cjs_development = __commonJS({
27578
27846
  __name(_size2, "_size");
27579
27847
  __name2(_size2, "_size");
27580
27848
  __name22(_size2, "_size");
27849
+ // @__NO_SIDE_EFFECTS__
27581
27850
  function _maxLength2(maximum, params) {
27582
27851
  const ch = new $ZodCheckMaxLength2({
27583
27852
  check: "max_length",
@@ -27589,6 +27858,7 @@ var require_types_cjs_development = __commonJS({
27589
27858
  __name(_maxLength2, "_maxLength");
27590
27859
  __name2(_maxLength2, "_maxLength");
27591
27860
  __name22(_maxLength2, "_maxLength");
27861
+ // @__NO_SIDE_EFFECTS__
27592
27862
  function _minLength2(minimum, params) {
27593
27863
  return new $ZodCheckMinLength2({
27594
27864
  check: "min_length",
@@ -27599,6 +27869,7 @@ var require_types_cjs_development = __commonJS({
27599
27869
  __name(_minLength2, "_minLength");
27600
27870
  __name2(_minLength2, "_minLength");
27601
27871
  __name22(_minLength2, "_minLength");
27872
+ // @__NO_SIDE_EFFECTS__
27602
27873
  function _length2(length, params) {
27603
27874
  return new $ZodCheckLengthEquals2({
27604
27875
  check: "length_equals",
@@ -27609,6 +27880,7 @@ var require_types_cjs_development = __commonJS({
27609
27880
  __name(_length2, "_length");
27610
27881
  __name2(_length2, "_length");
27611
27882
  __name22(_length2, "_length");
27883
+ // @__NO_SIDE_EFFECTS__
27612
27884
  function _regex2(pattern, params) {
27613
27885
  return new $ZodCheckRegex2({
27614
27886
  check: "string_format",
@@ -27620,6 +27892,7 @@ var require_types_cjs_development = __commonJS({
27620
27892
  __name(_regex2, "_regex");
27621
27893
  __name2(_regex2, "_regex");
27622
27894
  __name22(_regex2, "_regex");
27895
+ // @__NO_SIDE_EFFECTS__
27623
27896
  function _lowercase2(params) {
27624
27897
  return new $ZodCheckLowerCase2({
27625
27898
  check: "string_format",
@@ -27630,6 +27903,7 @@ var require_types_cjs_development = __commonJS({
27630
27903
  __name(_lowercase2, "_lowercase");
27631
27904
  __name2(_lowercase2, "_lowercase");
27632
27905
  __name22(_lowercase2, "_lowercase");
27906
+ // @__NO_SIDE_EFFECTS__
27633
27907
  function _uppercase2(params) {
27634
27908
  return new $ZodCheckUpperCase2({
27635
27909
  check: "string_format",
@@ -27640,6 +27914,7 @@ var require_types_cjs_development = __commonJS({
27640
27914
  __name(_uppercase2, "_uppercase");
27641
27915
  __name2(_uppercase2, "_uppercase");
27642
27916
  __name22(_uppercase2, "_uppercase");
27917
+ // @__NO_SIDE_EFFECTS__
27643
27918
  function _includes2(includes, params) {
27644
27919
  return new $ZodCheckIncludes2({
27645
27920
  check: "string_format",
@@ -27651,6 +27926,7 @@ var require_types_cjs_development = __commonJS({
27651
27926
  __name(_includes2, "_includes");
27652
27927
  __name2(_includes2, "_includes");
27653
27928
  __name22(_includes2, "_includes");
27929
+ // @__NO_SIDE_EFFECTS__
27654
27930
  function _startsWith2(prefix, params) {
27655
27931
  return new $ZodCheckStartsWith2({
27656
27932
  check: "string_format",
@@ -27662,6 +27938,7 @@ var require_types_cjs_development = __commonJS({
27662
27938
  __name(_startsWith2, "_startsWith");
27663
27939
  __name2(_startsWith2, "_startsWith");
27664
27940
  __name22(_startsWith2, "_startsWith");
27941
+ // @__NO_SIDE_EFFECTS__
27665
27942
  function _endsWith2(suffix, params) {
27666
27943
  return new $ZodCheckEndsWith2({
27667
27944
  check: "string_format",
@@ -27673,6 +27950,7 @@ var require_types_cjs_development = __commonJS({
27673
27950
  __name(_endsWith2, "_endsWith");
27674
27951
  __name2(_endsWith2, "_endsWith");
27675
27952
  __name22(_endsWith2, "_endsWith");
27953
+ // @__NO_SIDE_EFFECTS__
27676
27954
  function _property2(property, schema, params) {
27677
27955
  return new $ZodCheckProperty2({
27678
27956
  check: "property",
@@ -27684,6 +27962,7 @@ var require_types_cjs_development = __commonJS({
27684
27962
  __name(_property2, "_property");
27685
27963
  __name2(_property2, "_property");
27686
27964
  __name22(_property2, "_property");
27965
+ // @__NO_SIDE_EFFECTS__
27687
27966
  function _mime2(types, params) {
27688
27967
  return new $ZodCheckMimeType2({
27689
27968
  check: "mime_type",
@@ -27694,6 +27973,7 @@ var require_types_cjs_development = __commonJS({
27694
27973
  __name(_mime2, "_mime");
27695
27974
  __name2(_mime2, "_mime");
27696
27975
  __name22(_mime2, "_mime");
27976
+ // @__NO_SIDE_EFFECTS__
27697
27977
  function _overwrite2(tx) {
27698
27978
  return new $ZodCheckOverwrite2({
27699
27979
  check: "overwrite",
@@ -27703,46 +27983,56 @@ var require_types_cjs_development = __commonJS({
27703
27983
  __name(_overwrite2, "_overwrite");
27704
27984
  __name2(_overwrite2, "_overwrite");
27705
27985
  __name22(_overwrite2, "_overwrite");
27986
+ // @__NO_SIDE_EFFECTS__
27706
27987
  function _normalize2(form) {
27707
27988
  return /* @__PURE__ */ _overwrite2((input) => input.normalize(form));
27708
27989
  }
27709
27990
  __name(_normalize2, "_normalize");
27710
27991
  __name2(_normalize2, "_normalize");
27711
27992
  __name22(_normalize2, "_normalize");
27993
+ // @__NO_SIDE_EFFECTS__
27712
27994
  function _trim2() {
27713
27995
  return /* @__PURE__ */ _overwrite2((input) => input.trim());
27714
27996
  }
27715
27997
  __name(_trim2, "_trim");
27716
27998
  __name2(_trim2, "_trim");
27717
27999
  __name22(_trim2, "_trim");
28000
+ // @__NO_SIDE_EFFECTS__
27718
28001
  function _toLowerCase2() {
27719
28002
  return /* @__PURE__ */ _overwrite2((input) => input.toLowerCase());
27720
28003
  }
27721
28004
  __name(_toLowerCase2, "_toLowerCase");
27722
28005
  __name2(_toLowerCase2, "_toLowerCase");
27723
28006
  __name22(_toLowerCase2, "_toLowerCase");
28007
+ // @__NO_SIDE_EFFECTS__
27724
28008
  function _toUpperCase2() {
27725
28009
  return /* @__PURE__ */ _overwrite2((input) => input.toUpperCase());
27726
28010
  }
27727
28011
  __name(_toUpperCase2, "_toUpperCase");
27728
28012
  __name2(_toUpperCase2, "_toUpperCase");
27729
28013
  __name22(_toUpperCase2, "_toUpperCase");
28014
+ // @__NO_SIDE_EFFECTS__
27730
28015
  function _slugify2() {
27731
28016
  return /* @__PURE__ */ _overwrite2((input) => slugify2(input));
27732
28017
  }
27733
28018
  __name(_slugify2, "_slugify");
27734
28019
  __name2(_slugify2, "_slugify");
27735
28020
  __name22(_slugify2, "_slugify");
28021
+ // @__NO_SIDE_EFFECTS__
27736
28022
  function _array2(Class22, element, params) {
27737
28023
  return new Class22({
27738
28024
  type: "array",
27739
28025
  element,
28026
+ // get element() {
28027
+ // return element;
28028
+ // },
27740
28029
  ...normalizeParams2(params)
27741
28030
  });
27742
28031
  }
27743
28032
  __name(_array2, "_array");
27744
28033
  __name2(_array2, "_array");
27745
28034
  __name22(_array2, "_array");
28035
+ // @__NO_SIDE_EFFECTS__
27746
28036
  function _union2(Class22, options, params) {
27747
28037
  return new Class22({
27748
28038
  type: "union",
@@ -27764,6 +28054,7 @@ var require_types_cjs_development = __commonJS({
27764
28054
  __name(_xor2, "_xor");
27765
28055
  __name2(_xor2, "_xor");
27766
28056
  __name22(_xor2, "_xor");
28057
+ // @__NO_SIDE_EFFECTS__
27767
28058
  function _discriminatedUnion2(Class22, discriminator, options, params) {
27768
28059
  return new Class22({
27769
28060
  type: "union",
@@ -27775,6 +28066,7 @@ var require_types_cjs_development = __commonJS({
27775
28066
  __name(_discriminatedUnion2, "_discriminatedUnion");
27776
28067
  __name2(_discriminatedUnion2, "_discriminatedUnion");
27777
28068
  __name22(_discriminatedUnion2, "_discriminatedUnion");
28069
+ // @__NO_SIDE_EFFECTS__
27778
28070
  function _intersection2(Class22, left, right) {
27779
28071
  return new Class22({
27780
28072
  type: "intersection",
@@ -27785,6 +28077,7 @@ var require_types_cjs_development = __commonJS({
27785
28077
  __name(_intersection2, "_intersection");
27786
28078
  __name2(_intersection2, "_intersection");
27787
28079
  __name22(_intersection2, "_intersection");
28080
+ // @__NO_SIDE_EFFECTS__
27788
28081
  function _tuple2(Class22, items, _paramsOrRest, _params) {
27789
28082
  const hasRest = _paramsOrRest instanceof $ZodType2;
27790
28083
  const params = hasRest ? _params : _paramsOrRest;
@@ -27799,6 +28092,7 @@ var require_types_cjs_development = __commonJS({
27799
28092
  __name(_tuple2, "_tuple");
27800
28093
  __name2(_tuple2, "_tuple");
27801
28094
  __name22(_tuple2, "_tuple");
28095
+ // @__NO_SIDE_EFFECTS__
27802
28096
  function _record2(Class22, keyType, valueType, params) {
27803
28097
  return new Class22({
27804
28098
  type: "record",
@@ -27810,6 +28104,7 @@ var require_types_cjs_development = __commonJS({
27810
28104
  __name(_record2, "_record");
27811
28105
  __name2(_record2, "_record");
27812
28106
  __name22(_record2, "_record");
28107
+ // @__NO_SIDE_EFFECTS__
27813
28108
  function _map2(Class22, keyType, valueType, params) {
27814
28109
  return new Class22({
27815
28110
  type: "map",
@@ -27821,6 +28116,7 @@ var require_types_cjs_development = __commonJS({
27821
28116
  __name(_map2, "_map");
27822
28117
  __name2(_map2, "_map");
27823
28118
  __name22(_map2, "_map");
28119
+ // @__NO_SIDE_EFFECTS__
27824
28120
  function _set2(Class22, valueType, params) {
27825
28121
  return new Class22({
27826
28122
  type: "set",
@@ -27831,6 +28127,7 @@ var require_types_cjs_development = __commonJS({
27831
28127
  __name(_set2, "_set");
27832
28128
  __name2(_set2, "_set");
27833
28129
  __name22(_set2, "_set");
28130
+ // @__NO_SIDE_EFFECTS__
27834
28131
  function _enum3(Class22, values, params) {
27835
28132
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
27836
28133
  return new Class22({
@@ -27842,6 +28139,7 @@ var require_types_cjs_development = __commonJS({
27842
28139
  __name(_enum3, "_enum");
27843
28140
  __name2(_enum3, "_enum");
27844
28141
  __name22(_enum3, "_enum");
28142
+ // @__NO_SIDE_EFFECTS__
27845
28143
  function _nativeEnum2(Class22, entries, params) {
27846
28144
  return new Class22({
27847
28145
  type: "enum",
@@ -27852,6 +28150,7 @@ var require_types_cjs_development = __commonJS({
27852
28150
  __name(_nativeEnum2, "_nativeEnum");
27853
28151
  __name2(_nativeEnum2, "_nativeEnum");
27854
28152
  __name22(_nativeEnum2, "_nativeEnum");
28153
+ // @__NO_SIDE_EFFECTS__
27855
28154
  function _literal2(Class22, value, params) {
27856
28155
  return new Class22({
27857
28156
  type: "literal",
@@ -27862,6 +28161,7 @@ var require_types_cjs_development = __commonJS({
27862
28161
  __name(_literal2, "_literal");
27863
28162
  __name2(_literal2, "_literal");
27864
28163
  __name22(_literal2, "_literal");
28164
+ // @__NO_SIDE_EFFECTS__
27865
28165
  function _file2(Class22, params) {
27866
28166
  return new Class22({
27867
28167
  type: "file",
@@ -27871,6 +28171,7 @@ var require_types_cjs_development = __commonJS({
27871
28171
  __name(_file2, "_file");
27872
28172
  __name2(_file2, "_file");
27873
28173
  __name22(_file2, "_file");
28174
+ // @__NO_SIDE_EFFECTS__
27874
28175
  function _transform2(Class22, fn) {
27875
28176
  return new Class22({
27876
28177
  type: "transform",
@@ -27880,6 +28181,7 @@ var require_types_cjs_development = __commonJS({
27880
28181
  __name(_transform2, "_transform");
27881
28182
  __name2(_transform2, "_transform");
27882
28183
  __name22(_transform2, "_transform");
28184
+ // @__NO_SIDE_EFFECTS__
27883
28185
  function _optional2(Class22, innerType) {
27884
28186
  return new Class22({
27885
28187
  type: "optional",
@@ -27889,6 +28191,7 @@ var require_types_cjs_development = __commonJS({
27889
28191
  __name(_optional2, "_optional");
27890
28192
  __name2(_optional2, "_optional");
27891
28193
  __name22(_optional2, "_optional");
28194
+ // @__NO_SIDE_EFFECTS__
27892
28195
  function _nullable2(Class22, innerType) {
27893
28196
  return new Class22({
27894
28197
  type: "nullable",
@@ -27898,6 +28201,7 @@ var require_types_cjs_development = __commonJS({
27898
28201
  __name(_nullable2, "_nullable");
27899
28202
  __name2(_nullable2, "_nullable");
27900
28203
  __name22(_nullable2, "_nullable");
28204
+ // @__NO_SIDE_EFFECTS__
27901
28205
  function _default3(Class22, innerType, defaultValue) {
27902
28206
  return new Class22({
27903
28207
  type: "default",
@@ -27910,6 +28214,7 @@ var require_types_cjs_development = __commonJS({
27910
28214
  __name(_default3, "_default");
27911
28215
  __name2(_default3, "_default");
27912
28216
  __name22(_default3, "_default");
28217
+ // @__NO_SIDE_EFFECTS__
27913
28218
  function _nonoptional2(Class22, innerType, params) {
27914
28219
  return new Class22({
27915
28220
  type: "nonoptional",
@@ -27920,6 +28225,7 @@ var require_types_cjs_development = __commonJS({
27920
28225
  __name(_nonoptional2, "_nonoptional");
27921
28226
  __name2(_nonoptional2, "_nonoptional");
27922
28227
  __name22(_nonoptional2, "_nonoptional");
28228
+ // @__NO_SIDE_EFFECTS__
27923
28229
  function _success2(Class22, innerType) {
27924
28230
  return new Class22({
27925
28231
  type: "success",
@@ -27929,6 +28235,7 @@ var require_types_cjs_development = __commonJS({
27929
28235
  __name(_success2, "_success");
27930
28236
  __name2(_success2, "_success");
27931
28237
  __name22(_success2, "_success");
28238
+ // @__NO_SIDE_EFFECTS__
27932
28239
  function _catch3(Class22, innerType, catchValue) {
27933
28240
  return new Class22({
27934
28241
  type: "catch",
@@ -27939,6 +28246,7 @@ var require_types_cjs_development = __commonJS({
27939
28246
  __name(_catch3, "_catch");
27940
28247
  __name2(_catch3, "_catch");
27941
28248
  __name22(_catch3, "_catch");
28249
+ // @__NO_SIDE_EFFECTS__
27942
28250
  function _pipe2(Class22, in_, out) {
27943
28251
  return new Class22({
27944
28252
  type: "pipe",
@@ -27949,6 +28257,7 @@ var require_types_cjs_development = __commonJS({
27949
28257
  __name(_pipe2, "_pipe");
27950
28258
  __name2(_pipe2, "_pipe");
27951
28259
  __name22(_pipe2, "_pipe");
28260
+ // @__NO_SIDE_EFFECTS__
27952
28261
  function _readonly2(Class22, innerType) {
27953
28262
  return new Class22({
27954
28263
  type: "readonly",
@@ -27958,6 +28267,7 @@ var require_types_cjs_development = __commonJS({
27958
28267
  __name(_readonly2, "_readonly");
27959
28268
  __name2(_readonly2, "_readonly");
27960
28269
  __name22(_readonly2, "_readonly");
28270
+ // @__NO_SIDE_EFFECTS__
27961
28271
  function _templateLiteral2(Class22, parts, params) {
27962
28272
  return new Class22({
27963
28273
  type: "template_literal",
@@ -27968,6 +28278,7 @@ var require_types_cjs_development = __commonJS({
27968
28278
  __name(_templateLiteral2, "_templateLiteral");
27969
28279
  __name2(_templateLiteral2, "_templateLiteral");
27970
28280
  __name22(_templateLiteral2, "_templateLiteral");
28281
+ // @__NO_SIDE_EFFECTS__
27971
28282
  function _lazy2(Class22, getter) {
27972
28283
  return new Class22({
27973
28284
  type: "lazy",
@@ -27977,6 +28288,7 @@ var require_types_cjs_development = __commonJS({
27977
28288
  __name(_lazy2, "_lazy");
27978
28289
  __name2(_lazy2, "_lazy");
27979
28290
  __name22(_lazy2, "_lazy");
28291
+ // @__NO_SIDE_EFFECTS__
27980
28292
  function _promise2(Class22, innerType) {
27981
28293
  return new Class22({
27982
28294
  type: "promise",
@@ -27986,6 +28298,7 @@ var require_types_cjs_development = __commonJS({
27986
28298
  __name(_promise2, "_promise");
27987
28299
  __name2(_promise2, "_promise");
27988
28300
  __name22(_promise2, "_promise");
28301
+ // @__NO_SIDE_EFFECTS__
27989
28302
  function _custom2(Class22, fn, _params) {
27990
28303
  const norm = normalizeParams2(_params);
27991
28304
  norm.abort ?? (norm.abort = true);
@@ -28000,6 +28313,7 @@ var require_types_cjs_development = __commonJS({
28000
28313
  __name(_custom2, "_custom");
28001
28314
  __name2(_custom2, "_custom");
28002
28315
  __name22(_custom2, "_custom");
28316
+ // @__NO_SIDE_EFFECTS__
28003
28317
  function _refine2(Class22, fn, _params) {
28004
28318
  const schema = new Class22({
28005
28319
  type: "custom",
@@ -28012,6 +28326,7 @@ var require_types_cjs_development = __commonJS({
28012
28326
  __name(_refine2, "_refine");
28013
28327
  __name2(_refine2, "_refine");
28014
28328
  __name22(_refine2, "_refine");
28329
+ // @__NO_SIDE_EFFECTS__
28015
28330
  function _superRefine2(fn, params) {
28016
28331
  const ch = /* @__PURE__ */ _check2((payload) => {
28017
28332
  payload.addIssue = (issue22) => {
@@ -28035,6 +28350,7 @@ var require_types_cjs_development = __commonJS({
28035
28350
  __name(_superRefine2, "_superRefine");
28036
28351
  __name2(_superRefine2, "_superRefine");
28037
28352
  __name22(_superRefine2, "_superRefine");
28353
+ // @__NO_SIDE_EFFECTS__
28038
28354
  function _check2(fn, params) {
28039
28355
  const ch = new $ZodCheck2({
28040
28356
  check: "custom",
@@ -28046,6 +28362,7 @@ var require_types_cjs_development = __commonJS({
28046
28362
  __name(_check2, "_check");
28047
28363
  __name2(_check2, "_check");
28048
28364
  __name22(_check2, "_check");
28365
+ // @__NO_SIDE_EFFECTS__
28049
28366
  function describe3(description) {
28050
28367
  const ch = new $ZodCheck2({ check: "describe" });
28051
28368
  ch._zod.onattach = [
@@ -28061,6 +28378,7 @@ var require_types_cjs_development = __commonJS({
28061
28378
  __name(describe3, "describe");
28062
28379
  __name2(describe3, "describe");
28063
28380
  __name22(describe3, "describe");
28381
+ // @__NO_SIDE_EFFECTS__
28064
28382
  function meta3(metadata) {
28065
28383
  const ch = new $ZodCheck2({ check: "meta" });
28066
28384
  ch._zod.onattach = [
@@ -28076,6 +28394,7 @@ var require_types_cjs_development = __commonJS({
28076
28394
  __name(meta3, "meta");
28077
28395
  __name2(meta3, "meta");
28078
28396
  __name22(meta3, "meta");
28397
+ // @__NO_SIDE_EFFECTS__
28079
28398
  function _stringbool2(Classes, _params) {
28080
28399
  const params = normalizeParams2(_params);
28081
28400
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -28095,7 +28414,7 @@ var require_types_cjs_development = __commonJS({
28095
28414
  type: "pipe",
28096
28415
  in: stringSchema,
28097
28416
  out: booleanSchema,
28098
- transform: /* @__PURE__ */ __name22((input, payload) => {
28417
+ transform: /* @__PURE__ */ __name22(((input, payload) => {
28099
28418
  let data = input;
28100
28419
  if (params.case !== "sensitive")
28101
28420
  data = data.toLowerCase();
@@ -28114,14 +28433,14 @@ var require_types_cjs_development = __commonJS({
28114
28433
  });
28115
28434
  return {};
28116
28435
  }
28117
- }, "transform"),
28118
- reverseTransform: /* @__PURE__ */ __name22((input, _payload) => {
28436
+ }), "transform"),
28437
+ reverseTransform: /* @__PURE__ */ __name22(((input, _payload) => {
28119
28438
  if (input === true) {
28120
28439
  return truthyArray[0] || "true";
28121
28440
  } else {
28122
28441
  return falsyArray[0] || "false";
28123
28442
  }
28124
- }, "reverseTransform"),
28443
+ }), "reverseTransform"),
28125
28444
  error: params.error
28126
28445
  });
28127
28446
  return codec22;
@@ -28129,6 +28448,7 @@ var require_types_cjs_development = __commonJS({
28129
28448
  __name(_stringbool2, "_stringbool");
28130
28449
  __name2(_stringbool2, "_stringbool");
28131
28450
  __name22(_stringbool2, "_stringbool");
28451
+ // @__NO_SIDE_EFFECTS__
28132
28452
  function _stringFormat2(Class22, format, fnOrRegex, _params = {}) {
28133
28453
  const params = normalizeParams2(_params);
28134
28454
  const def = {
@@ -28526,6 +28846,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28526
28846
  datetime: "date-time",
28527
28847
  json_string: "json-string",
28528
28848
  regex: ""
28849
+ // do not set
28529
28850
  };
28530
28851
  var stringProcessor2 = /* @__PURE__ */ __name22((schema, ctx, _json, _params) => {
28531
28852
  const json22 = _json;
@@ -29064,28 +29385,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29064
29385
  __name(toJSONSchema2, "toJSONSchema");
29065
29386
  __name2(toJSONSchema2, "toJSONSchema");
29066
29387
  __name22(toJSONSchema2, "toJSONSchema");
29067
- var JSONSchemaGenerator2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_f = class {
29388
+ var JSONSchemaGenerator2 = (_f = class {
29389
+ /** @deprecated Access via ctx instead */
29068
29390
  get metadataRegistry() {
29069
29391
  return this.ctx.metadataRegistry;
29070
29392
  }
29393
+ /** @deprecated Access via ctx instead */
29071
29394
  get target() {
29072
29395
  return this.ctx.target;
29073
29396
  }
29397
+ /** @deprecated Access via ctx instead */
29074
29398
  get unrepresentable() {
29075
29399
  return this.ctx.unrepresentable;
29076
29400
  }
29401
+ /** @deprecated Access via ctx instead */
29077
29402
  get override() {
29078
29403
  return this.ctx.override;
29079
29404
  }
29405
+ /** @deprecated Access via ctx instead */
29080
29406
  get io() {
29081
29407
  return this.ctx.io;
29082
29408
  }
29409
+ /** @deprecated Access via ctx instead */
29083
29410
  get counter() {
29084
29411
  return this.ctx.counter;
29085
29412
  }
29086
29413
  set counter(value) {
29087
29414
  this.ctx.counter = value;
29088
29415
  }
29416
+ /** @deprecated Access via ctx instead */
29089
29417
  get seen() {
29090
29418
  return this.ctx.seen;
29091
29419
  }
@@ -29104,9 +29432,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29104
29432
  ...params?.io && { io: params.io }
29105
29433
  });
29106
29434
  }
29435
+ /**
29436
+ * Process a schema to prepare it for JSON Schema generation.
29437
+ * This must be called before emit().
29438
+ */
29107
29439
  process(schema, _params = { path: [], schemaPath: [] }) {
29108
29440
  return process22(schema, this.ctx, _params);
29109
29441
  }
29442
+ /**
29443
+ * Emit the final JSON Schema after processing.
29444
+ * Must call process() first.
29445
+ */
29110
29446
  emit(schema, _params) {
29111
29447
  if (_params) {
29112
29448
  if (_params.cycles)
@@ -29121,11 +29457,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29121
29457
  const { "~standard": _, ...plainResult } = result;
29122
29458
  return plainResult;
29123
29459
  }
29124
- }, "_this"), (() => {
29125
- __name2(_f, "JSONSchemaGenerator");
29126
- })(), (() => {
29127
- __name22(_f, "JSONSchemaGenerator");
29128
- })(), _f), "JSONSchemaGenerator");
29460
+ }, __name(_f, "JSONSchemaGenerator"), __name2(_f, "JSONSchemaGenerator"), __name22(_f, "JSONSchemaGenerator"), _f);
29129
29461
  var json_schema_exports2 = {};
29130
29462
  var schemas_exports22 = {};
29131
29463
  __export22(schemas_exports22, {
@@ -29385,26 +29717,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29385
29717
  Object.defineProperties(inst, {
29386
29718
  format: {
29387
29719
  value: /* @__PURE__ */ __name22((mapper) => formatError2(inst, mapper), "value")
29720
+ // enumerable: false,
29388
29721
  },
29389
29722
  flatten: {
29390
29723
  value: /* @__PURE__ */ __name22((mapper) => flattenError2(inst, mapper), "value")
29724
+ // enumerable: false,
29391
29725
  },
29392
29726
  addIssue: {
29393
29727
  value: /* @__PURE__ */ __name22((issue22) => {
29394
29728
  inst.issues.push(issue22);
29395
29729
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer2, 2);
29396
29730
  }, "value")
29731
+ // enumerable: false,
29397
29732
  },
29398
29733
  addIssues: {
29399
29734
  value: /* @__PURE__ */ __name22((issues2) => {
29400
29735
  inst.issues.push(...issues2);
29401
29736
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer2, 2);
29402
29737
  }, "value")
29738
+ // enumerable: false,
29403
29739
  },
29404
29740
  isEmpty: {
29405
29741
  get() {
29406
29742
  return inst.issues.length === 0;
29407
29743
  }
29744
+ // enumerable: false,
29408
29745
  }
29409
29746
  });
29410
29747
  }, "initializer");
@@ -30792,6 +31129,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30792
31129
  type: "pipe",
30793
31130
  in: in_,
30794
31131
  out
31132
+ // ...util.normalizeParams(params),
30795
31133
  });
30796
31134
  }
30797
31135
  __name(pipe2, "pipe");
@@ -30913,6 +31251,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30913
31251
  function check2(fn) {
30914
31252
  const ch = new $ZodCheck2({
30915
31253
  check: "custom"
31254
+ // ...util.normalizeParams(params),
30916
31255
  });
30917
31256
  ch._zod.check = fn;
30918
31257
  return ch;
@@ -31019,16 +31358,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31019
31358
  var ZodFirstPartyTypeKind2;
31020
31359
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind22) {
31021
31360
  })(ZodFirstPartyTypeKind2 || (ZodFirstPartyTypeKind2 = {}));
31022
- var z2 = {
31361
+ var z3 = {
31023
31362
  ...schemas_exports22,
31024
31363
  ...checks_exports22,
31025
31364
  iso: iso_exports2
31026
31365
  };
31027
31366
  var RECOGNIZED_KEYS2 = /* @__PURE__ */ new Set([
31367
+ // Schema identification
31028
31368
  "$schema",
31029
31369
  "$ref",
31030
31370
  "$defs",
31031
31371
  "definitions",
31372
+ // Core schema keywords
31032
31373
  "$id",
31033
31374
  "id",
31034
31375
  "$comment",
@@ -31036,13 +31377,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31036
31377
  "$vocabulary",
31037
31378
  "$dynamicRef",
31038
31379
  "$dynamicAnchor",
31380
+ // Type
31039
31381
  "type",
31040
31382
  "enum",
31041
31383
  "const",
31384
+ // Composition
31042
31385
  "anyOf",
31043
31386
  "oneOf",
31044
31387
  "allOf",
31045
31388
  "not",
31389
+ // Object
31046
31390
  "properties",
31047
31391
  "required",
31048
31392
  "additionalProperties",
@@ -31050,6 +31394,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31050
31394
  "propertyNames",
31051
31395
  "minProperties",
31052
31396
  "maxProperties",
31397
+ // Array
31053
31398
  "items",
31054
31399
  "prefixItems",
31055
31400
  "additionalItems",
@@ -31059,20 +31404,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31059
31404
  "contains",
31060
31405
  "minContains",
31061
31406
  "maxContains",
31407
+ // String
31062
31408
  "minLength",
31063
31409
  "maxLength",
31064
31410
  "pattern",
31065
31411
  "format",
31412
+ // Number
31066
31413
  "minimum",
31067
31414
  "maximum",
31068
31415
  "exclusiveMinimum",
31069
31416
  "exclusiveMaximum",
31070
31417
  "multipleOf",
31418
+ // Already handled metadata
31071
31419
  "description",
31072
31420
  "default",
31421
+ // Content
31073
31422
  "contentEncoding",
31074
31423
  "contentMediaType",
31075
31424
  "contentSchema",
31425
+ // Unsupported (error-throwing)
31076
31426
  "unevaluatedItems",
31077
31427
  "unevaluatedProperties",
31078
31428
  "if",
@@ -31080,6 +31430,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31080
31430
  "else",
31081
31431
  "dependentSchemas",
31082
31432
  "dependentRequired",
31433
+ // OpenAPI
31083
31434
  "nullable",
31084
31435
  "readOnly"
31085
31436
  ]);
@@ -31123,7 +31474,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31123
31474
  function convertBaseSchema2(schema, ctx) {
31124
31475
  if (schema.not !== void 0) {
31125
31476
  if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
31126
- return z2.never();
31477
+ return z3.never();
31127
31478
  }
31128
31479
  throw new Error("not is not supported in Zod (except { not: {} } for never)");
31129
31480
  }
@@ -31145,7 +31496,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31145
31496
  return ctx.refs.get(refPath);
31146
31497
  }
31147
31498
  if (ctx.processing.has(refPath)) {
31148
- return z2.lazy(() => {
31499
+ return z3.lazy(() => {
31149
31500
  if (!ctx.refs.has(refPath)) {
31150
31501
  throw new Error(`Circular reference not resolved: ${refPath}`);
31151
31502
  }
@@ -31162,25 +31513,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31162
31513
  if (schema.enum !== void 0) {
31163
31514
  const enumValues = schema.enum;
31164
31515
  if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
31165
- return z2.null();
31516
+ return z3.null();
31166
31517
  }
31167
31518
  if (enumValues.length === 0) {
31168
- return z2.never();
31519
+ return z3.never();
31169
31520
  }
31170
31521
  if (enumValues.length === 1) {
31171
- return z2.literal(enumValues[0]);
31522
+ return z3.literal(enumValues[0]);
31172
31523
  }
31173
31524
  if (enumValues.every((v) => typeof v === "string")) {
31174
- return z2.enum(enumValues);
31525
+ return z3.enum(enumValues);
31175
31526
  }
31176
- const literalSchemas = enumValues.map((v) => z2.literal(v));
31527
+ const literalSchemas = enumValues.map((v) => z3.literal(v));
31177
31528
  if (literalSchemas.length < 2) {
31178
31529
  return literalSchemas[0];
31179
31530
  }
31180
- return z2.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
31531
+ return z3.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
31181
31532
  }
31182
31533
  if (schema.const !== void 0) {
31183
- return z2.literal(schema.const);
31534
+ return z3.literal(schema.const);
31184
31535
  }
31185
31536
  const type = schema.type;
31186
31537
  if (Array.isArray(type)) {
@@ -31189,68 +31540,68 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31189
31540
  return convertBaseSchema2(typeSchema, ctx);
31190
31541
  });
31191
31542
  if (typeSchemas.length === 0) {
31192
- return z2.never();
31543
+ return z3.never();
31193
31544
  }
31194
31545
  if (typeSchemas.length === 1) {
31195
31546
  return typeSchemas[0];
31196
31547
  }
31197
- return z2.union(typeSchemas);
31548
+ return z3.union(typeSchemas);
31198
31549
  }
31199
31550
  if (!type) {
31200
- return z2.any();
31551
+ return z3.any();
31201
31552
  }
31202
31553
  let zodSchema;
31203
31554
  switch (type) {
31204
31555
  case "string": {
31205
- let stringSchema = z2.string();
31556
+ let stringSchema = z3.string();
31206
31557
  if (schema.format) {
31207
31558
  const format = schema.format;
31208
31559
  if (format === "email") {
31209
- stringSchema = stringSchema.check(z2.email());
31560
+ stringSchema = stringSchema.check(z3.email());
31210
31561
  } else if (format === "uri" || format === "uri-reference") {
31211
- stringSchema = stringSchema.check(z2.url());
31562
+ stringSchema = stringSchema.check(z3.url());
31212
31563
  } else if (format === "uuid" || format === "guid") {
31213
- stringSchema = stringSchema.check(z2.uuid());
31564
+ stringSchema = stringSchema.check(z3.uuid());
31214
31565
  } else if (format === "date-time") {
31215
- stringSchema = stringSchema.check(z2.iso.datetime());
31566
+ stringSchema = stringSchema.check(z3.iso.datetime());
31216
31567
  } else if (format === "date") {
31217
- stringSchema = stringSchema.check(z2.iso.date());
31568
+ stringSchema = stringSchema.check(z3.iso.date());
31218
31569
  } else if (format === "time") {
31219
- stringSchema = stringSchema.check(z2.iso.time());
31570
+ stringSchema = stringSchema.check(z3.iso.time());
31220
31571
  } else if (format === "duration") {
31221
- stringSchema = stringSchema.check(z2.iso.duration());
31572
+ stringSchema = stringSchema.check(z3.iso.duration());
31222
31573
  } else if (format === "ipv4") {
31223
- stringSchema = stringSchema.check(z2.ipv4());
31574
+ stringSchema = stringSchema.check(z3.ipv4());
31224
31575
  } else if (format === "ipv6") {
31225
- stringSchema = stringSchema.check(z2.ipv6());
31576
+ stringSchema = stringSchema.check(z3.ipv6());
31226
31577
  } else if (format === "mac") {
31227
- stringSchema = stringSchema.check(z2.mac());
31578
+ stringSchema = stringSchema.check(z3.mac());
31228
31579
  } else if (format === "cidr") {
31229
- stringSchema = stringSchema.check(z2.cidrv4());
31580
+ stringSchema = stringSchema.check(z3.cidrv4());
31230
31581
  } else if (format === "cidr-v6") {
31231
- stringSchema = stringSchema.check(z2.cidrv6());
31582
+ stringSchema = stringSchema.check(z3.cidrv6());
31232
31583
  } else if (format === "base64") {
31233
- stringSchema = stringSchema.check(z2.base64());
31584
+ stringSchema = stringSchema.check(z3.base64());
31234
31585
  } else if (format === "base64url") {
31235
- stringSchema = stringSchema.check(z2.base64url());
31586
+ stringSchema = stringSchema.check(z3.base64url());
31236
31587
  } else if (format === "e164") {
31237
- stringSchema = stringSchema.check(z2.e164());
31588
+ stringSchema = stringSchema.check(z3.e164());
31238
31589
  } else if (format === "jwt") {
31239
- stringSchema = stringSchema.check(z2.jwt());
31590
+ stringSchema = stringSchema.check(z3.jwt());
31240
31591
  } else if (format === "emoji") {
31241
- stringSchema = stringSchema.check(z2.emoji());
31592
+ stringSchema = stringSchema.check(z3.emoji());
31242
31593
  } else if (format === "nanoid") {
31243
- stringSchema = stringSchema.check(z2.nanoid());
31594
+ stringSchema = stringSchema.check(z3.nanoid());
31244
31595
  } else if (format === "cuid") {
31245
- stringSchema = stringSchema.check(z2.cuid());
31596
+ stringSchema = stringSchema.check(z3.cuid());
31246
31597
  } else if (format === "cuid2") {
31247
- stringSchema = stringSchema.check(z2.cuid2());
31598
+ stringSchema = stringSchema.check(z3.cuid2());
31248
31599
  } else if (format === "ulid") {
31249
- stringSchema = stringSchema.check(z2.ulid());
31600
+ stringSchema = stringSchema.check(z3.ulid());
31250
31601
  } else if (format === "xid") {
31251
- stringSchema = stringSchema.check(z2.xid());
31602
+ stringSchema = stringSchema.check(z3.xid());
31252
31603
  } else if (format === "ksuid") {
31253
- stringSchema = stringSchema.check(z2.ksuid());
31604
+ stringSchema = stringSchema.check(z3.ksuid());
31254
31605
  }
31255
31606
  }
31256
31607
  if (typeof schema.minLength === "number") {
@@ -31267,7 +31618,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31267
31618
  }
31268
31619
  case "number":
31269
31620
  case "integer": {
31270
- let numberSchema = type === "integer" ? z2.number().int() : z2.number();
31621
+ let numberSchema = type === "integer" ? z3.number().int() : z3.number();
31271
31622
  if (typeof schema.minimum === "number") {
31272
31623
  numberSchema = numberSchema.min(schema.minimum);
31273
31624
  }
@@ -31291,11 +31642,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31291
31642
  break;
31292
31643
  }
31293
31644
  case "boolean": {
31294
- zodSchema = z2.boolean();
31645
+ zodSchema = z3.boolean();
31295
31646
  break;
31296
31647
  }
31297
31648
  case "null": {
31298
- zodSchema = z2.null();
31649
+ zodSchema = z3.null();
31299
31650
  break;
31300
31651
  }
31301
31652
  case "object": {
@@ -31308,14 +31659,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31308
31659
  }
31309
31660
  if (schema.propertyNames) {
31310
31661
  const keySchema = convertSchema2(schema.propertyNames, ctx);
31311
- const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema2(schema.additionalProperties, ctx) : z2.any();
31662
+ const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema2(schema.additionalProperties, ctx) : z3.any();
31312
31663
  if (Object.keys(shape).length === 0) {
31313
- zodSchema = z2.record(keySchema, valueSchema);
31664
+ zodSchema = z3.record(keySchema, valueSchema);
31314
31665
  break;
31315
31666
  }
31316
- const objectSchema2 = z2.object(shape).passthrough();
31317
- const recordSchema = z2.looseRecord(keySchema, valueSchema);
31318
- zodSchema = z2.intersection(objectSchema2, recordSchema);
31667
+ const objectSchema2 = z3.object(shape).passthrough();
31668
+ const recordSchema = z3.looseRecord(keySchema, valueSchema);
31669
+ zodSchema = z3.intersection(objectSchema2, recordSchema);
31319
31670
  break;
31320
31671
  }
31321
31672
  if (schema.patternProperties) {
@@ -31324,28 +31675,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31324
31675
  const looseRecords = [];
31325
31676
  for (const pattern of patternKeys) {
31326
31677
  const patternValue = convertSchema2(patternProps[pattern], ctx);
31327
- const keySchema = z2.string().regex(new RegExp(pattern));
31328
- looseRecords.push(z2.looseRecord(keySchema, patternValue));
31678
+ const keySchema = z3.string().regex(new RegExp(pattern));
31679
+ looseRecords.push(z3.looseRecord(keySchema, patternValue));
31329
31680
  }
31330
31681
  const schemasToIntersect = [];
31331
31682
  if (Object.keys(shape).length > 0) {
31332
- schemasToIntersect.push(z2.object(shape).passthrough());
31683
+ schemasToIntersect.push(z3.object(shape).passthrough());
31333
31684
  }
31334
31685
  schemasToIntersect.push(...looseRecords);
31335
31686
  if (schemasToIntersect.length === 0) {
31336
- zodSchema = z2.object({}).passthrough();
31687
+ zodSchema = z3.object({}).passthrough();
31337
31688
  } else if (schemasToIntersect.length === 1) {
31338
31689
  zodSchema = schemasToIntersect[0];
31339
31690
  } else {
31340
- let result = z2.intersection(schemasToIntersect[0], schemasToIntersect[1]);
31691
+ let result = z3.intersection(schemasToIntersect[0], schemasToIntersect[1]);
31341
31692
  for (let i = 2; i < schemasToIntersect.length; i++) {
31342
- result = z2.intersection(result, schemasToIntersect[i]);
31693
+ result = z3.intersection(result, schemasToIntersect[i]);
31343
31694
  }
31344
31695
  zodSchema = result;
31345
31696
  }
31346
31697
  break;
31347
31698
  }
31348
- const objectSchema = z2.object(shape);
31699
+ const objectSchema = z3.object(shape);
31349
31700
  if (schema.additionalProperties === false) {
31350
31701
  zodSchema = objectSchema.strict();
31351
31702
  } else if (typeof schema.additionalProperties === "object") {
@@ -31362,33 +31713,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31362
31713
  const tupleItems = prefixItems.map((item) => convertSchema2(item, ctx));
31363
31714
  const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema2(items, ctx) : void 0;
31364
31715
  if (rest) {
31365
- zodSchema = z2.tuple(tupleItems).rest(rest);
31716
+ zodSchema = z3.tuple(tupleItems).rest(rest);
31366
31717
  } else {
31367
- zodSchema = z2.tuple(tupleItems);
31718
+ zodSchema = z3.tuple(tupleItems);
31368
31719
  }
31369
31720
  if (typeof schema.minItems === "number") {
31370
- zodSchema = zodSchema.check(z2.minLength(schema.minItems));
31721
+ zodSchema = zodSchema.check(z3.minLength(schema.minItems));
31371
31722
  }
31372
31723
  if (typeof schema.maxItems === "number") {
31373
- zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
31724
+ zodSchema = zodSchema.check(z3.maxLength(schema.maxItems));
31374
31725
  }
31375
31726
  } else if (Array.isArray(items)) {
31376
31727
  const tupleItems = items.map((item) => convertSchema2(item, ctx));
31377
31728
  const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema2(schema.additionalItems, ctx) : void 0;
31378
31729
  if (rest) {
31379
- zodSchema = z2.tuple(tupleItems).rest(rest);
31730
+ zodSchema = z3.tuple(tupleItems).rest(rest);
31380
31731
  } else {
31381
- zodSchema = z2.tuple(tupleItems);
31732
+ zodSchema = z3.tuple(tupleItems);
31382
31733
  }
31383
31734
  if (typeof schema.minItems === "number") {
31384
- zodSchema = zodSchema.check(z2.minLength(schema.minItems));
31735
+ zodSchema = zodSchema.check(z3.minLength(schema.minItems));
31385
31736
  }
31386
31737
  if (typeof schema.maxItems === "number") {
31387
- zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
31738
+ zodSchema = zodSchema.check(z3.maxLength(schema.maxItems));
31388
31739
  }
31389
31740
  } else if (items !== void 0) {
31390
31741
  const element = convertSchema2(items, ctx);
31391
- let arraySchema = z2.array(element);
31742
+ let arraySchema = z3.array(element);
31392
31743
  if (typeof schema.minItems === "number") {
31393
31744
  arraySchema = arraySchema.min(schema.minItems);
31394
31745
  }
@@ -31397,7 +31748,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31397
31748
  }
31398
31749
  zodSchema = arraySchema;
31399
31750
  } else {
31400
- zodSchema = z2.array(z2.any());
31751
+ zodSchema = z3.array(z3.any());
31401
31752
  }
31402
31753
  break;
31403
31754
  }
@@ -31411,37 +31762,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31411
31762
  __name22(convertBaseSchema2, "convertBaseSchema");
31412
31763
  function convertSchema2(schema, ctx) {
31413
31764
  if (typeof schema === "boolean") {
31414
- return schema ? z2.any() : z2.never();
31765
+ return schema ? z3.any() : z3.never();
31415
31766
  }
31416
31767
  let baseSchema = convertBaseSchema2(schema, ctx);
31417
31768
  const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
31418
31769
  if (schema.anyOf && Array.isArray(schema.anyOf)) {
31419
31770
  const options = schema.anyOf.map((s) => convertSchema2(s, ctx));
31420
- const anyOfUnion = z2.union(options);
31421
- baseSchema = hasExplicitType ? z2.intersection(baseSchema, anyOfUnion) : anyOfUnion;
31771
+ const anyOfUnion = z3.union(options);
31772
+ baseSchema = hasExplicitType ? z3.intersection(baseSchema, anyOfUnion) : anyOfUnion;
31422
31773
  }
31423
31774
  if (schema.oneOf && Array.isArray(schema.oneOf)) {
31424
31775
  const options = schema.oneOf.map((s) => convertSchema2(s, ctx));
31425
- const oneOfUnion = z2.xor(options);
31426
- baseSchema = hasExplicitType ? z2.intersection(baseSchema, oneOfUnion) : oneOfUnion;
31776
+ const oneOfUnion = z3.xor(options);
31777
+ baseSchema = hasExplicitType ? z3.intersection(baseSchema, oneOfUnion) : oneOfUnion;
31427
31778
  }
31428
31779
  if (schema.allOf && Array.isArray(schema.allOf)) {
31429
31780
  if (schema.allOf.length === 0) {
31430
- baseSchema = hasExplicitType ? baseSchema : z2.any();
31781
+ baseSchema = hasExplicitType ? baseSchema : z3.any();
31431
31782
  } else {
31432
31783
  let result = hasExplicitType ? baseSchema : convertSchema2(schema.allOf[0], ctx);
31433
31784
  const startIdx = hasExplicitType ? 0 : 1;
31434
31785
  for (let i = startIdx; i < schema.allOf.length; i++) {
31435
- result = z2.intersection(result, convertSchema2(schema.allOf[i], ctx));
31786
+ result = z3.intersection(result, convertSchema2(schema.allOf[i], ctx));
31436
31787
  }
31437
31788
  baseSchema = result;
31438
31789
  }
31439
31790
  }
31440
31791
  if (schema.nullable === true && ctx.version === "openapi-3.0") {
31441
- baseSchema = z2.nullable(baseSchema);
31792
+ baseSchema = z3.nullable(baseSchema);
31442
31793
  }
31443
31794
  if (schema.readOnly === true) {
31444
- baseSchema = z2.readonly(baseSchema);
31795
+ baseSchema = z3.readonly(baseSchema);
31445
31796
  }
31446
31797
  if (schema.default !== void 0) {
31447
31798
  baseSchema = baseSchema.default(schema.default);
@@ -31477,7 +31828,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31477
31828
  __name22(convertSchema2, "convertSchema");
31478
31829
  function fromJSONSchema2(schema, params) {
31479
31830
  if (typeof schema === "boolean") {
31480
- return schema ? z2.any() : z2.never();
31831
+ return schema ? z3.any() : z3.never();
31481
31832
  }
31482
31833
  let normalized;
31483
31834
  try {
@@ -31601,12 +31952,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31601
31952
  phone: external_exports2.string().optional(),
31602
31953
  description: external_exports2.string().optional(),
31603
31954
  endorsement: external_exports2.any().array().optional(),
31955
+ // Recursive type
31604
31956
  image: ImageValidator2.optional(),
31605
31957
  email: external_exports2.string().email().optional(),
31606
31958
  address: AddressValidator2.optional(),
31607
31959
  otherIdentifier: IdentifierEntryValidator2.array().optional(),
31608
31960
  official: external_exports2.string().optional(),
31609
31961
  parentOrg: external_exports2.any().optional(),
31962
+ // Recursive types are annoying =(
31610
31963
  familyName: external_exports2.string().optional(),
31611
31964
  givenName: external_exports2.string().optional(),
31612
31965
  additionalName: external_exports2.string().optional(),
@@ -31654,11 +32007,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31654
32007
  credentialSchema: CredentialSchemaValidator2.or(
31655
32008
  CredentialSchemaValidator2.array()
31656
32009
  ).optional(),
32010
+ // V1
31657
32011
  issuanceDate: external_exports2.string().optional(),
31658
32012
  expirationDate: external_exports2.string().optional(),
31659
32013
  credentialStatus: CredentialStatusValidator2.or(
31660
32014
  CredentialStatusValidator2.array()
31661
32015
  ).optional(),
32016
+ // V2
31662
32017
  name: external_exports2.string().optional(),
31663
32018
  description: external_exports2.string().optional(),
31664
32019
  validFrom: external_exports2.string().optional(),
@@ -31987,26 +32342,59 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31987
32342
  data: external_exports2.string()
31988
32343
  }).passthrough();
31989
32344
  var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name22((value) => {
31990
- if (!value || typeof value !== "object")
31991
- return false;
32345
+ if (!value || typeof value !== "object") return false;
31992
32346
  const candidate = value;
31993
- if (typeof candidate.format !== "string")
31994
- return false;
31995
- if (!CredentialFormatValidator2.safeParse(candidate.format).success)
31996
- return false;
32347
+ if (typeof candidate.format !== "string") return false;
32348
+ if (!CredentialFormatValidator2.safeParse(candidate.format).success) return false;
31997
32349
  return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
31998
32350
  }, "isStoredCredentialEnvelope");
31999
32351
  var StatusCheckEntryValidator2 = external_exports2.object({
32352
+ /**
32353
+ * The `credentialStatus.type` as it appeared on the credential.
32354
+ * One of `BitstringStatusListEntry`, `StatusList2021Entry`,
32355
+ * `RevocationList2020Status`, or any future custom status type.
32356
+ */
32000
32357
  entryType: external_exports2.string(),
32358
+ /**
32359
+ * The claimed purpose of the entry. Standard values are
32360
+ * `"revocation"` and `"suspension"`; the spec allows arbitrary
32361
+ * strings.
32362
+ */
32001
32363
  statusPurpose: external_exports2.string(),
32364
+ /**
32365
+ * Whether the bit at the credential's index in the status list
32366
+ * bitstring was set.
32367
+ */
32002
32368
  isSet: external_exports2.boolean(),
32369
+ /** URL of the status list credential, when known. */
32003
32370
  statusListCredential: external_exports2.string().optional(),
32371
+ /** Original (string) index within the status list. */
32004
32372
  statusListIndex: external_exports2.string().optional()
32005
32373
  });
32006
32374
  var VerificationCheckValidator2 = external_exports2.object({
32375
+ /**
32376
+ * Checks that completed successfully. This does not imply that warnings can be ignored.
32377
+ */
32007
32378
  checks: external_exports2.string().array(),
32379
+ /**
32380
+ * Security-relevant conditions that did not prevent the requested cryptographic checks from
32381
+ * completing. In particular, a non-DID issuer warning means the signature is valid but the
32382
+ * named URL issuer's authorization of that signing key was not established.
32383
+ */
32008
32384
  warnings: external_exports2.string().array(),
32385
+ /** Verification failures that prevented one or more requested checks from succeeding. */
32009
32386
  errors: external_exports2.string().array(),
32387
+ /**
32388
+ * Per-entry results for the `credentialStatus` check, populated
32389
+ * by `@learncard/didkit-plugin` when the verified credential
32390
+ * carries one or more `credentialStatus` entries. Empty / absent
32391
+ * for credentials without a status entry.
32392
+ *
32393
+ * Marked `.optional()` because the underlying `ssi-ldp`
32394
+ * serializer omits the field when empty (`skip_serializing_if`),
32395
+ * so older WASM builds that pre-date the structured-status
32396
+ * change still validate against this schema.
32397
+ */
32010
32398
  status: StatusCheckEntryValidator2.array().optional()
32011
32399
  });
32012
32400
  var VerificationStatusValidator2 = external_exports2.enum(["Success", "Failed", "Error"]);
@@ -32052,8 +32440,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32052
32440
  });
32053
32441
  var parseRegexString2 = /* @__PURE__ */ __name22((regexStr) => {
32054
32442
  const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
32055
- if (!match)
32056
- throw new Error("Invalid RegExp string format");
32443
+ if (!match) throw new Error("Invalid RegExp string format");
32057
32444
  return { pattern: match[1], flags: match[2] };
32058
32445
  }, "parseRegexString");
32059
32446
  var RegExpStringValidator2 = external_exports2.string().refine(
@@ -32139,6 +32526,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32139
32526
  isServiceProfile: true,
32140
32527
  display: true
32141
32528
  });
32529
+ var LCNConnectionPromptStatusValidator2 = external_exports2.enum(["PENDING", "SKIPPED", "CONNECTED"]);
32530
+ var LCNConnectionPromptSurfaceValidator2 = external_exports2.enum(["POST_CLAIM", "NOTIFICATION"]);
32531
+ var LCNConnectionPromptActionStatusValidator2 = external_exports2.enum([
32532
+ "PENDING",
32533
+ "SKIPPED",
32534
+ "CONNECTED",
32535
+ "STALE"
32536
+ ]);
32537
+ var LCNConnectionPromptValidator2 = external_exports2.object({
32538
+ promptId: external_exports2.string().uuid(),
32539
+ status: LCNConnectionPromptStatusValidator2,
32540
+ surface: LCNConnectionPromptSurfaceValidator2,
32541
+ triggerId: external_exports2.string(),
32542
+ triggeredAt: external_exports2.iso.datetime(),
32543
+ updatedAt: external_exports2.iso.datetime(),
32544
+ counterpart: LCNPublicProfileValidator2
32545
+ });
32546
+ var LCNConnectionPromptActionResultValidator2 = external_exports2.object({
32547
+ promptId: external_exports2.string().uuid(),
32548
+ status: LCNConnectionPromptActionStatusValidator2
32549
+ });
32550
+ var LCNConnectionPromptMetadataValidator2 = external_exports2.object({
32551
+ promptId: external_exports2.string().uuid(),
32552
+ counterpartProfileId: external_exports2.string()
32553
+ });
32142
32554
  var LCNAuthedProfileValidator2 = LCNPublicProfileValidator2.extend({
32143
32555
  bio: LCNProfileValidator2.shape.bio,
32144
32556
  websiteLink: LCNProfileValidator2.shape.websiteLink,
@@ -32147,7 +32559,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32147
32559
  did: LCNProfileValidator2.shape.did
32148
32560
  });
32149
32561
  var LCNConnectionProfileValidator2 = LCNAuthedProfileValidator2.extend({
32150
- email: LCNProfileValidator2.shape.email
32562
+ email: LCNProfileValidator2.shape.email,
32563
+ connectedAt: external_exports2.iso.datetime().optional().describe("When the viewer and this profile became connected.")
32151
32564
  });
32152
32565
  var LCNVisibleProfileValidator2 = external_exports2.union([
32153
32566
  LCNConnectionProfileValidator2.strict(),
@@ -32689,7 +33102,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32689
33102
  "PENDING",
32690
33103
  "ISSUED",
32691
33104
  "EXPIRED",
33105
+ /* DEPRECATED — use ISSUED */
32692
33106
  "DELIVERED",
33107
+ /* DEPRECATED — use ISSUED */
32693
33108
  "CLAIMED"
32694
33109
  ]);
32695
33110
  var LCNNotificationInboxValidator2 = external_exports2.object({
@@ -32701,12 +33116,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32701
33116
  }),
32702
33117
  timestamp: external_exports2.iso.datetime().optional()
32703
33118
  });
33119
+ var LCNNotificationMetadataValidator2 = external_exports2.object({
33120
+ connectionPrompt: LCNConnectionPromptMetadataValidator2.optional()
33121
+ }).catchall(external_exports2.unknown());
32704
33122
  var LCNNotificationDataValidator2 = external_exports2.object({
32705
33123
  vcUris: external_exports2.array(external_exports2.string()).optional(),
32706
33124
  vpUris: external_exports2.array(external_exports2.string()).optional(),
32707
33125
  transaction: ConsentFlowTransactionValidator2.optional(),
32708
33126
  inbox: LCNNotificationInboxValidator2.optional(),
32709
- metadata: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
33127
+ metadata: LCNNotificationMetadataValidator2.optional()
32710
33128
  }).loose();
32711
33129
  var LCNNotificationValidator2 = external_exports2.object({
32712
33130
  type: LCNNotificationTypeEnumValidator2,
@@ -32725,8 +33143,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32725
33143
  challenge: external_exports2.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX2).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
32726
33144
  status: external_exports2.enum(["revoked", "active"], {
32727
33145
  error: /* @__PURE__ */ __name22((issue22) => {
32728
- if (issue22.code === "invalid_value")
32729
- return "Status must be either active or revoked";
33146
+ if (issue22.code === "invalid_value") return "Status must be either active or revoked";
32730
33147
  return "Status is required";
32731
33148
  }, "error")
32732
33149
  }),
@@ -32757,6 +33174,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32757
33174
  external_exports2.object({
32758
33175
  type: external_exports2.literal("phone"),
32759
33176
  value: external_exports2.string()
33177
+ // Can be improved with a regex later
32760
33178
  }).merge(contactMethodBase2)
32761
33179
  ]);
32762
33180
  var createContactMethodBase2 = external_exports2.object({
@@ -32817,6 +33235,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32817
33235
  endpoint: external_exports2.string().optional(),
32818
33236
  name: external_exports2.string().optional()
32819
33237
  }).optional(),
33238
+ // Guardian gate fields (all optional — absent on pre-existing credentials)
32820
33239
  guardianEmail: external_exports2.string().email().optional(),
32821
33240
  guardianStatus: GuardianStatusValidator2.optional(),
32822
33241
  guardianApprovedAt: external_exports2.string().optional(),
@@ -32840,13 +33259,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32840
33259
  name: external_exports2.string()
32841
33260
  });
32842
33261
  var IssueInboxCredentialValidator2 = external_exports2.object({
33262
+ // === CORE DATA (Required) ===
33263
+ // WHAT is being sent and WHO is it for?
32843
33264
  recipient: ContactMethodQueryValidator2.describe("The recipient of the credential"),
33265
+ // Either credential OR templateUri must be provided
32844
33266
  credential: VCValidator2.or(VPValidator2).or(UnsignedVCValidator2).optional().describe(
32845
33267
  "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
32846
33268
  ),
32847
33269
  templateUri: external_exports2.string().optional().describe(
32848
33270
  "URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
32849
33271
  ),
33272
+ // === OPTIONAL FEATURES ===
33273
+ // Add major, distinct features at the top level.
33274
+ //consentRequest: ConsentRequestValidator.optional(),
33275
+ // === PROCESS CONFIGURATION (Optional) ===
33276
+ // HOW should this issuance be handled?
32850
33277
  configuration: external_exports2.object({
32851
33278
  signingAuthority: IssueInboxSigningAuthorityValidator2.optional().describe(
32852
33279
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
@@ -32856,6 +33283,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32856
33283
  templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional().describe(
32857
33284
  "Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
32858
33285
  ),
33286
+ // --- For User-Facing Delivery (Email/SMS) ---
32859
33287
  delivery: external_exports2.object({
32860
33288
  suppress: external_exports2.boolean().optional().default(false).describe(
32861
33289
  "Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
@@ -32938,9 +33366,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32938
33366
  description: external_exports2.string().optional(),
32939
33367
  publishableKey: external_exports2.string(),
32940
33368
  whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).default([]),
33369
+ // Setup/onboarding status
32941
33370
  status: LCNIntegrationStatusEnum2.default("setup"),
32942
33371
  guideType: external_exports2.string().optional(),
32943
33372
  guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional(),
33373
+ // Timestamps
32944
33374
  createdAt: external_exports2.string().optional(),
32945
33375
  updatedAt: external_exports2.string().optional()
32946
33376
  });
@@ -32955,6 +33385,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32955
33385
  description: external_exports2.string().optional(),
32956
33386
  whitelistedDomains: external_exports2.array(LCNDomainOrOriginValidator2).optional(),
32957
33387
  rotatePublishableKey: external_exports2.boolean().optional(),
33388
+ // Setup/onboarding updates
32958
33389
  status: LCNIntegrationStatusEnum2.optional(),
32959
33390
  guideType: external_exports2.string().optional(),
32960
33391
  guideState: external_exports2.record(external_exports2.string(), external_exports2.any()).optional()
@@ -33421,17 +33852,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33421
33852
  failed: external_exports2.number(),
33422
33853
  claimRate: external_exports2.number()
33423
33854
  });
33424
- var AuthSessionError2 = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_g = class extends Error {
33855
+ var AuthSessionError2 = (_g = class extends Error {
33425
33856
  constructor(message, reason) {
33426
33857
  super(message);
33427
33858
  this.reason = reason;
33428
33859
  this.name = "AuthSessionError";
33429
33860
  }
33430
- }, "_this"), (() => {
33431
- __name2(_g, "AuthSessionError");
33432
- })(), (() => {
33433
- __name22(_g, "AuthSessionError");
33434
- })(), _g), "AuthSessionError");
33861
+ }, __name(_g, "AuthSessionError"), __name2(_g, "AuthSessionError"), __name22(_g, "AuthSessionError"), _g);
33435
33862
  var BITSTRING_STATUS_PURPOSES2 = ["revocation", "suspension"];
33436
33863
  var DEFAULT_BITSTRING_STATUS_LIST_SIZE = 131072;
33437
33864
  var BitstringStatusPurposeValidator2 = external_exports2.enum(BITSTRING_STATUS_PURPOSES2);
@@ -33499,12 +33926,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33499
33926
  label: external_exports2.string(),
33500
33927
  style: inAppMessageActionStyleValidator2,
33501
33928
  action: inAppMessageActionTargetValidator2,
33929
+ /** When true, the message closes after this action runs (default true). */
33502
33930
  closeOnComplete: external_exports2.boolean().default(true)
33503
33931
  }).passthrough();
33504
33932
  var inAppMessageMediaValidator2 = external_exports2.object({
33505
33933
  type: external_exports2.enum(["youtube", "image", "gif"]),
33506
33934
  url: external_exports2.string(),
33935
+ /** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
33507
33936
  aspect: external_exports2.string().default("16:9"),
33937
+ /** Alt text for images/gifs (accessibility). */
33508
33938
  alt: external_exports2.string().optional()
33509
33939
  }).passthrough();
33510
33940
  var inAppMessageFrequencyValidator2 = external_exports2.union([
@@ -33515,17 +33945,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33515
33945
  ]).default("once");
33516
33946
  var inAppMessagePresentationValidator2 = external_exports2.enum(["modal", "banner", "toast"]).default("modal");
33517
33947
  var inAppMessageValidator2 = external_exports2.object({
33948
+ /** Stable identifier — used to persist dismissal / frequency state. */
33518
33949
  id: external_exports2.string(),
33950
+ /** Higher priority wins when multiple messages match. Default 0. */
33519
33951
  priority: external_exports2.number().default(0),
33952
+ /** When false, the message is required/blocking (no dismiss affordance). */
33520
33953
  dismissible: external_exports2.boolean().default(true),
33521
33954
  frequency: inAppMessageFrequencyValidator2,
33522
33955
  presentation: inAppMessagePresentationValidator2,
33523
33956
  media: inAppMessageMediaValidator2.optional(),
33957
+ /** Optional emoji hero glyph — rendered only when `media` is not set. */
33524
33958
  emoji: external_exports2.string().optional(),
33525
33959
  title: external_exports2.string(),
33526
33960
  body: external_exports2.string().optional(),
33527
33961
  actions: external_exports2.array(inAppMessageActionValidator2).default([]),
33962
+ /** Targeting predicate tree. Omitted → matches everyone. */
33528
33963
  targeting: inAppMessagePredicateValidator2.optional(),
33964
+ /** Allow disabling a message without removing it from the flag. */
33529
33965
  enabled: external_exports2.boolean().default(true)
33530
33966
  }).passthrough();
33531
33967
  var inAppMessagesFlagValidator2 = external_exports2.object({
@@ -33552,17 +33988,17 @@ var require_dist = __commonJS({
33552
33988
  var import_types2 = __toESM(require_dist());
33553
33989
  var filestack_helpers_exports = {};
33554
33990
  __export2(filestack_helpers_exports, {
33555
- changeQuality: () => changeQuality,
33556
- fileTypeSupportsPreview: () => fileTypeSupportsPreview,
33557
- fixSrcSetString: () => fixSrcSetString,
33558
- fixUrl: () => fixUrl,
33559
- generateSrcSet: () => generateSrcSet,
33560
- getFileType: () => getFileType,
33561
- getFilestackHandle: () => getFilestackHandle,
33562
- getUrlFromUrlParams: () => getUrlFromUrlParams,
33563
- getUrlParams: () => getUrlParams,
33564
- resizeAndChangeQuality: () => resizeAndChangeQuality,
33565
- resizeUrl: () => resizeUrl
33991
+ changeQuality: /* @__PURE__ */ __name(() => changeQuality, "changeQuality"),
33992
+ fileTypeSupportsPreview: /* @__PURE__ */ __name(() => fileTypeSupportsPreview, "fileTypeSupportsPreview"),
33993
+ fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString, "fixSrcSetString"),
33994
+ fixUrl: /* @__PURE__ */ __name(() => fixUrl, "fixUrl"),
33995
+ generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet, "generateSrcSet"),
33996
+ getFileType: /* @__PURE__ */ __name(() => getFileType, "getFileType"),
33997
+ getFilestackHandle: /* @__PURE__ */ __name(() => getFilestackHandle, "getFilestackHandle"),
33998
+ getUrlFromUrlParams: /* @__PURE__ */ __name(() => getUrlFromUrlParams, "getUrlFromUrlParams"),
33999
+ getUrlParams: /* @__PURE__ */ __name(() => getUrlParams, "getUrlParams"),
34000
+ resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality, "resizeAndChangeQuality"),
34001
+ resizeUrl: /* @__PURE__ */ __name(() => resizeUrl, "resizeUrl")
33566
34002
  });
33567
34003
  var getUrlParams = /* @__PURE__ */ __name2((url2) => url2.split(".com/")[1].split("/"), "getUrlParams");
33568
34004
  var getUrlFromUrlParams = /* @__PURE__ */ __name2((urlParams) => `https://cdn.filestackcontent.com/${urlParams.join("/")}`, "getUrlFromUrlParams");
@@ -33583,20 +34019,20 @@ var getFileType = /* @__PURE__ */ __name2(async (url2) => {
33583
34019
  var fileTypeSupportsPreview = /* @__PURE__ */ __name2((fileType) => {
33584
34020
  const unsupportedFileTypes = [
33585
34021
  "application/vnd.apple.pages",
34022
+ // .pages
33586
34023
  "application/vnd.apple.numbers",
34024
+ // .numbers
33587
34025
  "application/x-iwork-keynote-sffkey"
34026
+ // .key
33588
34027
  ];
33589
34028
  return !unsupportedFileTypes.includes(fileType);
33590
34029
  }, "fileTypeSupportsPreview");
33591
34030
  var fixUrl = /* @__PURE__ */ __name2((url2, mimetype, webp = false) => {
33592
- if (url2.split(" ").length > 1)
33593
- return fixSrcSetString(url2, mimetype, webp);
34031
+ if (url2.split(" ").length > 1) return fixSrcSetString(url2, mimetype, webp);
33594
34032
  const urlParams = getUrlParams(url2).filter((param) => param !== "rotate=deg:exif");
33595
34033
  urlParams.splice(0, 0, "rotate=deg:exif");
33596
- if (mimetype !== "image/gif")
33597
- urlParams.splice(-1, 0, "auto_image");
33598
- if (webp)
33599
- urlParams.splice(-1, 0, "output=format:webp");
34034
+ if (mimetype !== "image/gif") urlParams.splice(-1, 0, "auto_image");
34035
+ if (webp) urlParams.splice(-1, 0, "output=format:webp");
33600
34036
  return getUrlFromUrlParams(urlParams);
33601
34037
  }, "fixUrl");
33602
34038
  var fixSrcSetString = /* @__PURE__ */ __name2((srcSetString, mimetype, webp = false) => {
@@ -33605,18 +34041,14 @@ var fixSrcSetString = /* @__PURE__ */ __name2((srcSetString, mimetype, webp = fa
33605
34041
  }, "fixSrcSetString");
33606
34042
  var resizeUrl = /* @__PURE__ */ __name2((url2, size) => {
33607
34043
  const urlParams = getUrlParams(url2).filter((param) => !param.match(/resize.*/));
33608
- if (urlParams.includes("rotate=deg:exif"))
33609
- urlParams.splice(1, 0, `resize=width:${size}`);
33610
- else
33611
- urlParams.splice(0, 0, `resize=width:${size}`);
34044
+ if (urlParams.includes("rotate=deg:exif")) urlParams.splice(1, 0, `resize=width:${size}`);
34045
+ else urlParams.splice(0, 0, `resize=width:${size}`);
33612
34046
  return getUrlFromUrlParams(urlParams);
33613
34047
  }, "resizeUrl");
33614
34048
  var changeQuality = /* @__PURE__ */ __name2((url2, quality) => {
33615
34049
  const urlParams = getUrlParams(url2).filter((param) => !param.match(/quality.*/));
33616
- if (urlParams.includes("rotate=deg:exif"))
33617
- urlParams.splice(1, 0, `quality=value:${quality}`);
33618
- else
33619
- urlParams.splice(0, 0, `quality=value:${quality}`);
34050
+ if (urlParams.includes("rotate=deg:exif")) urlParams.splice(1, 0, `quality=value:${quality}`);
34051
+ else urlParams.splice(0, 0, `quality=value:${quality}`);
33620
34052
  return getUrlFromUrlParams(urlParams);
33621
34053
  }, "changeQuality");
33622
34054
  var resizeAndChangeQuality = /* @__PURE__ */ __name2((url2, size, quality, {
@@ -33637,12 +34069,12 @@ var generateSrcSet = /* @__PURE__ */ __name2((url2, resolutions, {
33637
34069
  }, "generateSrcSet");
33638
34070
  var unsplash_helpers_exports = {};
33639
34071
  __export2(unsplash_helpers_exports, {
33640
- changeQuality: () => changeQuality2,
33641
- fixSrcSetString: () => fixSrcSetString2,
33642
- fixUrl: () => fixUrl2,
33643
- generateSrcSet: () => generateSrcSet2,
33644
- resizeAndChangeQuality: () => resizeAndChangeQuality2,
33645
- resizeUrl: () => resizeUrl2
34072
+ changeQuality: /* @__PURE__ */ __name(() => changeQuality2, "changeQuality"),
34073
+ fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString2, "fixSrcSetString"),
34074
+ fixUrl: /* @__PURE__ */ __name(() => fixUrl2, "fixUrl"),
34075
+ generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet2, "generateSrcSet"),
34076
+ resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality2, "resizeAndChangeQuality"),
34077
+ resizeUrl: /* @__PURE__ */ __name(() => resizeUrl2, "resizeUrl")
33646
34078
  });
33647
34079
  var parseUrl = /* @__PURE__ */ __name2((input) => {
33648
34080
  const hashIndex = input.indexOf("#");
@@ -33652,8 +34084,7 @@ var parseUrl = /* @__PURE__ */ __name2((input) => {
33652
34084
  const url2 = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
33653
34085
  const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
33654
34086
  const query = {};
33655
- for (const [key, value] of new URLSearchParams(search))
33656
- query[key] = value;
34087
+ for (const [key, value] of new URLSearchParams(search)) query[key] = value;
33657
34088
  return {
33658
34089
  url: url2,
33659
34090
  query,
@@ -33663,8 +34094,7 @@ var parseUrl = /* @__PURE__ */ __name2((input) => {
33663
34094
  var stringifyUrl = /* @__PURE__ */ __name2((parsed) => {
33664
34095
  const params = new URLSearchParams();
33665
34096
  for (const [key, value] of Object.entries(parsed.query)) {
33666
- if (value === void 0 || value === null)
33667
- continue;
34097
+ if (value === void 0 || value === null) continue;
33668
34098
  params.append(key, String(value));
33669
34099
  }
33670
34100
  const search = params.toString().replace(/\+/g, "%20");
@@ -33676,8 +34106,7 @@ var fixSrcSetString2 = /* @__PURE__ */ __name2((srcSetString, _mimetype, _webp =
33676
34106
  return urls.map(([url2, width]) => `${fixUrl2(url2)} ${width}`).join(", ");
33677
34107
  }, "fixSrcSetString");
33678
34108
  var fixUrl2 = /* @__PURE__ */ __name2((url2, _mimetype, _webp = false) => {
33679
- if (url2.split(" ").length > 1)
33680
- return fixSrcSetString2(url2);
34109
+ if (url2.split(" ").length > 1) return fixSrcSetString2(url2);
33681
34110
  const parsedUrl = parseUrl(url2);
33682
34111
  parsedUrl.query.auto = "format";
33683
34112
  return stringifyUrl(parsedUrl);
@@ -33702,18 +34131,17 @@ var generateSrcSet2 = /* @__PURE__ */ __name2((url2, resolutions, { fix = false
33702
34131
  }, "generateSrcSet");
33703
34132
  var discord_helpers_exports = {};
33704
34133
  __export2(discord_helpers_exports, {
33705
- VALID_DISCORD_SIZES: () => VALID_DISCORD_SIZES,
33706
- changeQuality: () => changeQuality3,
33707
- fixSrcSetString: () => fixSrcSetString3,
33708
- fixUrl: () => fixUrl3,
33709
- generateSrcSet: () => generateSrcSet3,
33710
- resizeAndChangeQuality: () => resizeAndChangeQuality3,
33711
- resizeUrl: () => resizeUrl3
34134
+ VALID_DISCORD_SIZES: /* @__PURE__ */ __name(() => VALID_DISCORD_SIZES, "VALID_DISCORD_SIZES"),
34135
+ changeQuality: /* @__PURE__ */ __name(() => changeQuality3, "changeQuality"),
34136
+ fixSrcSetString: /* @__PURE__ */ __name(() => fixSrcSetString3, "fixSrcSetString"),
34137
+ fixUrl: /* @__PURE__ */ __name(() => fixUrl3, "fixUrl"),
34138
+ generateSrcSet: /* @__PURE__ */ __name(() => generateSrcSet3, "generateSrcSet"),
34139
+ resizeAndChangeQuality: /* @__PURE__ */ __name(() => resizeAndChangeQuality3, "resizeAndChangeQuality"),
34140
+ resizeUrl: /* @__PURE__ */ __name(() => resizeUrl3, "resizeUrl")
33712
34141
  });
33713
34142
  var quantizeValue = /* @__PURE__ */ __name2((value, array2) => {
33714
34143
  const foundIndex = array2.findIndex((number4) => number4 === value);
33715
- if (foundIndex > -1)
33716
- return array2[foundIndex];
34144
+ if (foundIndex > -1) return array2[foundIndex];
33717
34145
  const closestIndex = array2.reduce(
33718
34146
  (closest, current2, index) => {
33719
34147
  const currentDistance = Math.abs(current2 - value);
@@ -33751,8 +34179,7 @@ var generateSrcSet3 = /* @__PURE__ */ __name2((url2, resolutions, { fix = false
33751
34179
  }, "generateSrcSet");
33752
34180
  var getUrlsFromSrcSet = /* @__PURE__ */ __name2((srcSet) => {
33753
34181
  return srcSet.split(/,? /).reduce((accumulator, current2, index, array2) => {
33754
- if (index % 2 === 0)
33755
- return accumulator;
34182
+ if (index % 2 === 0) return accumulator;
33756
34183
  accumulator.push([array2[index - 1], current2]);
33757
34184
  return accumulator;
33758
34185
  }, []);
@@ -33761,18 +34188,14 @@ function innerImmerOuterImmer(setState, field, value) {
33761
34188
  if (value === void 0) {
33762
34189
  return (innerValue) => {
33763
34190
  setState((oldState) => {
33764
- if (typeof innerValue === "function")
33765
- innerValue(oldState[field]);
33766
- else
33767
- oldState[field] = innerValue;
34191
+ if (typeof innerValue === "function") innerValue(oldState[field]);
34192
+ else oldState[field] = innerValue;
33768
34193
  });
33769
34194
  };
33770
34195
  }
33771
34196
  setState((oldState) => {
33772
- if (typeof value === "function")
33773
- value(oldState[field]);
33774
- else
33775
- oldState[field] = value;
34197
+ if (typeof value === "function") value(oldState[field]);
34198
+ else oldState[field] = value;
33776
34199
  });
33777
34200
  }
33778
34201
  __name(innerImmerOuterImmer, "innerImmerOuterImmer");
@@ -33782,10 +34205,8 @@ function innerReactOuterImmer(setState, field, value) {
33782
34205
  if (value === void 0) {
33783
34206
  return (innerValue) => {
33784
34207
  setState((oldState) => {
33785
- if (typeof innerValue === "function")
33786
- innerValue(oldState[field]);
33787
- else
33788
- oldState[field] = innerValue;
34208
+ if (typeof innerValue === "function") innerValue(oldState[field]);
34209
+ else oldState[field] = innerValue;
33789
34210
  });
33790
34211
  };
33791
34212
  }
@@ -33801,14 +34222,12 @@ function innerImmerOuterReact(setState, field, value) {
33801
34222
  return (innerValue) => {
33802
34223
  if (typeof innerValue === "function") {
33803
34224
  setState(produce((oldState) => innerValue(oldState[field])));
33804
- } else
33805
- setState((oldState) => ({ ...oldState, [field]: innerValue }));
34225
+ } else setState((oldState) => ({ ...oldState, [field]: innerValue }));
33806
34226
  };
33807
34227
  }
33808
34228
  if (typeof value === "function") {
33809
34229
  setState(produce((oldState) => value(oldState[field])));
33810
- } else
33811
- setState((oldState) => ({ ...oldState, [field]: value }));
34230
+ } else setState((oldState) => ({ ...oldState, [field]: value }));
33812
34231
  }
33813
34232
  __name(innerImmerOuterReact, "innerImmerOuterReact");
33814
34233
  __name2(innerImmerOuterReact, "innerImmerOuterReact");
@@ -33848,6 +34267,32 @@ var ImageWithLoadingStateValdator = external_exports.object({
33848
34267
  loading: external_exports.union([ImageResizingValidator, ImageUploadingValidator]).optional()
33849
34268
  });
33850
34269
  var import_types3 = __toESM(require_dist());
34270
+ var _a4;
34271
+ var EnvironmentConfigurationError = (_a4 = class extends Error {
34272
+ constructor(message) {
34273
+ super(message);
34274
+ this.name = "EnvironmentConfigurationError";
34275
+ }
34276
+ }, __name(_a4, "EnvironmentConfigurationError"), __name2(_a4, "EnvironmentConfigurationError"), _a4);
34277
+ var requiredEnvironmentString = external_exports.string().trim().min(1, "Required but missing");
34278
+ var optionalEnvironmentString = external_exports.preprocess(
34279
+ (value) => value === "" ? void 0 : value,
34280
+ requiredEnvironmentString.optional()
34281
+ );
34282
+ var optionalEnvironmentUrl = external_exports.preprocess(
34283
+ (value) => value === "" ? void 0 : value,
34284
+ external_exports.url("Expected a valid URL").optional()
34285
+ );
34286
+ var environmentBoolean = external_exports.enum(["true", "false", "1", "0"]).transform((value) => value === "true" || value === "1");
34287
+ var optionalEnvironmentBoolean = external_exports.preprocess(
34288
+ (value) => value === "" || value === void 0 ? void 0 : value,
34289
+ environmentBoolean.optional()
34290
+ );
34291
+ var environmentPort = external_exports.coerce.number().int().min(1).max(65535);
34292
+ var optionalEnvironmentPort = external_exports.preprocess(
34293
+ (value) => value === "" || value === void 0 ? void 0 : value,
34294
+ environmentPort.optional()
34295
+ );
33851
34296
  var unwrapBoostCredential = /* @__PURE__ */ __name2((vc) => {
33852
34297
  if (vc?.type?.includes("CertifiedBoostCredential") && vc?.boostCredential) {
33853
34298
  return vc.boostCredential;
@@ -33921,12 +34366,14 @@ var ProfileValidator = external_exports.string().or(
33921
34366
  phone: external_exports.string().optional(),
33922
34367
  description: external_exports.string().optional(),
33923
34368
  endorsement: external_exports.any().array().optional(),
34369
+ // Recursive type
33924
34370
  image: ImageValidator.optional(),
33925
34371
  email: external_exports.string().email().optional(),
33926
34372
  address: AddressValidator.optional(),
33927
34373
  otherIdentifier: IdentifierEntryValidator.array().optional(),
33928
34374
  official: external_exports.string().optional(),
33929
34375
  parentOrg: external_exports.any().optional(),
34376
+ // Recursive types are annoying =(
33930
34377
  familyName: external_exports.string().optional(),
33931
34378
  givenName: external_exports.string().optional(),
33932
34379
  additionalName: external_exports.string().optional(),
@@ -33974,11 +34421,13 @@ var UnsignedVCValidator = external_exports.object({
33974
34421
  credentialSchema: CredentialSchemaValidator.or(
33975
34422
  CredentialSchemaValidator.array()
33976
34423
  ).optional(),
34424
+ // V1
33977
34425
  issuanceDate: external_exports.string().optional(),
33978
34426
  expirationDate: external_exports.string().optional(),
33979
34427
  credentialStatus: CredentialStatusValidator.or(
33980
34428
  CredentialStatusValidator.array()
33981
34429
  ).optional(),
34430
+ // V2
33982
34431
  name: external_exports.string().optional(),
33983
34432
  description: external_exports.string().optional(),
33984
34433
  validFrom: external_exports.string().optional(),
@@ -34307,16 +34756,52 @@ var StoredCredentialEnvelopeValidator = external_exports.object({
34307
34756
  data: external_exports.string()
34308
34757
  }).passthrough();
34309
34758
  var StatusCheckEntryValidator = external_exports.object({
34759
+ /**
34760
+ * The `credentialStatus.type` as it appeared on the credential.
34761
+ * One of `BitstringStatusListEntry`, `StatusList2021Entry`,
34762
+ * `RevocationList2020Status`, or any future custom status type.
34763
+ */
34310
34764
  entryType: external_exports.string(),
34765
+ /**
34766
+ * The claimed purpose of the entry. Standard values are
34767
+ * `"revocation"` and `"suspension"`; the spec allows arbitrary
34768
+ * strings.
34769
+ */
34311
34770
  statusPurpose: external_exports.string(),
34771
+ /**
34772
+ * Whether the bit at the credential's index in the status list
34773
+ * bitstring was set.
34774
+ */
34312
34775
  isSet: external_exports.boolean(),
34776
+ /** URL of the status list credential, when known. */
34313
34777
  statusListCredential: external_exports.string().optional(),
34778
+ /** Original (string) index within the status list. */
34314
34779
  statusListIndex: external_exports.string().optional()
34315
34780
  });
34316
34781
  var VerificationCheckValidator = external_exports.object({
34782
+ /**
34783
+ * Checks that completed successfully. This does not imply that warnings can be ignored.
34784
+ */
34317
34785
  checks: external_exports.string().array(),
34786
+ /**
34787
+ * Security-relevant conditions that did not prevent the requested cryptographic checks from
34788
+ * completing. In particular, a non-DID issuer warning means the signature is valid but the
34789
+ * named URL issuer's authorization of that signing key was not established.
34790
+ */
34318
34791
  warnings: external_exports.string().array(),
34792
+ /** Verification failures that prevented one or more requested checks from succeeding. */
34319
34793
  errors: external_exports.string().array(),
34794
+ /**
34795
+ * Per-entry results for the `credentialStatus` check, populated
34796
+ * by `@learncard/didkit-plugin` when the verified credential
34797
+ * carries one or more `credentialStatus` entries. Empty / absent
34798
+ * for credentials without a status entry.
34799
+ *
34800
+ * Marked `.optional()` because the underlying `ssi-ldp`
34801
+ * serializer omits the field when empty (`skip_serializing_if`),
34802
+ * so older WASM builds that pre-date the structured-status
34803
+ * change still validate against this schema.
34804
+ */
34320
34805
  status: StatusCheckEntryValidator.array().optional()
34321
34806
  });
34322
34807
  var VerificationStatusValidator = external_exports.enum(["Success", "Failed", "Error"]);
@@ -34362,8 +34847,7 @@ var PaginatedEncryptedCredentialRecordsValidator = PaginationResponseValidator.e
34362
34847
  });
34363
34848
  var parseRegexString = /* @__PURE__ */ __name3((regexStr) => {
34364
34849
  const match = regexStr.match(/^\/(.*)\/([gimsuy]*)$/);
34365
- if (!match)
34366
- throw new Error("Invalid RegExp string format");
34850
+ if (!match) throw new Error("Invalid RegExp string format");
34367
34851
  return { pattern: match[1], flags: match[2] };
34368
34852
  }, "parseRegexString");
34369
34853
  var RegExpStringValidator = external_exports.string().refine(
@@ -34449,6 +34933,31 @@ var LCNPublicProfileValidator = LCNProfileValidator.pick({
34449
34933
  isServiceProfile: true,
34450
34934
  display: true
34451
34935
  });
34936
+ var LCNConnectionPromptStatusValidator = external_exports.enum(["PENDING", "SKIPPED", "CONNECTED"]);
34937
+ var LCNConnectionPromptSurfaceValidator = external_exports.enum(["POST_CLAIM", "NOTIFICATION"]);
34938
+ var LCNConnectionPromptActionStatusValidator = external_exports.enum([
34939
+ "PENDING",
34940
+ "SKIPPED",
34941
+ "CONNECTED",
34942
+ "STALE"
34943
+ ]);
34944
+ var LCNConnectionPromptValidator = external_exports.object({
34945
+ promptId: external_exports.string().uuid(),
34946
+ status: LCNConnectionPromptStatusValidator,
34947
+ surface: LCNConnectionPromptSurfaceValidator,
34948
+ triggerId: external_exports.string(),
34949
+ triggeredAt: external_exports.iso.datetime(),
34950
+ updatedAt: external_exports.iso.datetime(),
34951
+ counterpart: LCNPublicProfileValidator
34952
+ });
34953
+ var LCNConnectionPromptActionResultValidator = external_exports.object({
34954
+ promptId: external_exports.string().uuid(),
34955
+ status: LCNConnectionPromptActionStatusValidator
34956
+ });
34957
+ var LCNConnectionPromptMetadataValidator = external_exports.object({
34958
+ promptId: external_exports.string().uuid(),
34959
+ counterpartProfileId: external_exports.string()
34960
+ });
34452
34961
  var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
34453
34962
  bio: LCNProfileValidator.shape.bio,
34454
34963
  websiteLink: LCNProfileValidator.shape.websiteLink,
@@ -34457,7 +34966,8 @@ var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
34457
34966
  did: LCNProfileValidator.shape.did
34458
34967
  });
34459
34968
  var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
34460
- email: LCNProfileValidator.shape.email
34969
+ email: LCNProfileValidator.shape.email,
34970
+ connectedAt: external_exports.iso.datetime().optional().describe("When the viewer and this profile became connected.")
34461
34971
  });
34462
34972
  var LCNVisibleProfileValidator = external_exports.union([
34463
34973
  LCNConnectionProfileValidator.strict(),
@@ -34999,7 +35509,9 @@ var LCNInboxStatusEnumValidator = external_exports.enum([
34999
35509
  "PENDING",
35000
35510
  "ISSUED",
35001
35511
  "EXPIRED",
35512
+ /* DEPRECATED — use ISSUED */
35002
35513
  "DELIVERED",
35514
+ /* DEPRECATED — use ISSUED */
35003
35515
  "CLAIMED"
35004
35516
  ]);
35005
35517
  var LCNNotificationInboxValidator = external_exports.object({
@@ -35011,12 +35523,15 @@ var LCNNotificationInboxValidator = external_exports.object({
35011
35523
  }),
35012
35524
  timestamp: external_exports.iso.datetime().optional()
35013
35525
  });
35526
+ var LCNNotificationMetadataValidator = external_exports.object({
35527
+ connectionPrompt: LCNConnectionPromptMetadataValidator.optional()
35528
+ }).catchall(external_exports.unknown());
35014
35529
  var LCNNotificationDataValidator = external_exports.object({
35015
35530
  vcUris: external_exports.array(external_exports.string()).optional(),
35016
35531
  vpUris: external_exports.array(external_exports.string()).optional(),
35017
35532
  transaction: ConsentFlowTransactionValidator.optional(),
35018
35533
  inbox: LCNNotificationInboxValidator.optional(),
35019
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
35534
+ metadata: LCNNotificationMetadataValidator.optional()
35020
35535
  }).loose();
35021
35536
  var LCNNotificationValidator = external_exports.object({
35022
35537
  type: LCNNotificationTypeEnumValidator,
@@ -35035,8 +35550,7 @@ var AuthGrantValidator = external_exports.object({
35035
35550
  challenge: external_exports.string().startsWith(AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX).min(10, { message: "Challenge is too short" }).max(100, { message: "Challenge is too long" }),
35036
35551
  status: external_exports.enum(["revoked", "active"], {
35037
35552
  error: /* @__PURE__ */ __name3((issue2) => {
35038
- if (issue2.code === "invalid_value")
35039
- return "Status must be either active or revoked";
35553
+ if (issue2.code === "invalid_value") return "Status must be either active or revoked";
35040
35554
  return "Status is required";
35041
35555
  }, "error")
35042
35556
  }),
@@ -35067,6 +35581,7 @@ var ContactMethodValidator = external_exports.discriminatedUnion("type", [
35067
35581
  external_exports.object({
35068
35582
  type: external_exports.literal("phone"),
35069
35583
  value: external_exports.string()
35584
+ // Can be improved with a regex later
35070
35585
  }).merge(contactMethodBase)
35071
35586
  ]);
35072
35587
  var createContactMethodBase = external_exports.object({
@@ -35127,6 +35642,7 @@ var InboxCredentialValidator = external_exports.object({
35127
35642
  endpoint: external_exports.string().optional(),
35128
35643
  name: external_exports.string().optional()
35129
35644
  }).optional(),
35645
+ // Guardian gate fields (all optional — absent on pre-existing credentials)
35130
35646
  guardianEmail: external_exports.string().email().optional(),
35131
35647
  guardianStatus: GuardianStatusValidator.optional(),
35132
35648
  guardianApprovedAt: external_exports.string().optional(),
@@ -35150,13 +35666,21 @@ var IssueInboxSigningAuthorityValidator = external_exports.object({
35150
35666
  name: external_exports.string()
35151
35667
  });
35152
35668
  var IssueInboxCredentialValidator = external_exports.object({
35669
+ // === CORE DATA (Required) ===
35670
+ // WHAT is being sent and WHO is it for?
35153
35671
  recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
35672
+ // Either credential OR templateUri must be provided
35154
35673
  credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).optional().describe(
35155
35674
  "The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
35156
35675
  ),
35157
35676
  templateUri: external_exports.string().optional().describe(
35158
35677
  "URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
35159
35678
  ),
35679
+ // === OPTIONAL FEATURES ===
35680
+ // Add major, distinct features at the top level.
35681
+ //consentRequest: ConsentRequestValidator.optional(),
35682
+ // === PROCESS CONFIGURATION (Optional) ===
35683
+ // HOW should this issuance be handled?
35160
35684
  configuration: external_exports.object({
35161
35685
  signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
35162
35686
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
@@ -35166,6 +35690,7 @@ var IssueInboxCredentialValidator = external_exports.object({
35166
35690
  templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional().describe(
35167
35691
  "Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."
35168
35692
  ),
35693
+ // --- For User-Facing Delivery (Email/SMS) ---
35169
35694
  delivery: external_exports.object({
35170
35695
  suppress: external_exports.boolean().optional().default(false).describe(
35171
35696
  "Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
@@ -35248,9 +35773,11 @@ var LCNIntegrationValidator = external_exports.object({
35248
35773
  description: external_exports.string().optional(),
35249
35774
  publishableKey: external_exports.string(),
35250
35775
  whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).default([]),
35776
+ // Setup/onboarding status
35251
35777
  status: LCNIntegrationStatusEnum.default("setup"),
35252
35778
  guideType: external_exports.string().optional(),
35253
35779
  guideState: external_exports.record(external_exports.string(), external_exports.any()).optional(),
35780
+ // Timestamps
35254
35781
  createdAt: external_exports.string().optional(),
35255
35782
  updatedAt: external_exports.string().optional()
35256
35783
  });
@@ -35265,6 +35792,7 @@ var LCNIntegrationUpdateValidator = external_exports.object({
35265
35792
  description: external_exports.string().optional(),
35266
35793
  whitelistedDomains: external_exports.array(LCNDomainOrOriginValidator).optional(),
35267
35794
  rotatePublishableKey: external_exports.boolean().optional(),
35795
+ // Setup/onboarding updates
35268
35796
  status: LCNIntegrationStatusEnum.optional(),
35269
35797
  guideType: external_exports.string().optional(),
35270
35798
  guideState: external_exports.record(external_exports.string(), external_exports.any()).optional()
@@ -35731,16 +36259,14 @@ var CredentialActivityStatsValidator = external_exports.object({
35731
36259
  failed: external_exports.number(),
35732
36260
  claimRate: external_exports.number()
35733
36261
  });
35734
- var _a3;
35735
- var AuthSessionError = /* @__PURE__ */ __name((/* @__PURE__ */ __name(_a3 = class extends Error {
36262
+ var _a5;
36263
+ var AuthSessionError = (_a5 = class extends Error {
35736
36264
  constructor(message, reason) {
35737
36265
  super(message);
35738
36266
  this.reason = reason;
35739
36267
  this.name = "AuthSessionError";
35740
36268
  }
35741
- }, "_this"), (() => {
35742
- __name3(_a3, "AuthSessionError");
35743
- })(), _a3), "AuthSessionError");
36269
+ }, __name(_a5, "AuthSessionError"), __name3(_a5, "AuthSessionError"), _a5);
35744
36270
  var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
35745
36271
  var BitstringStatusPurposeValidator = external_exports.enum(BITSTRING_STATUS_PURPOSES);
35746
36272
  var BitstringStatusListEntryValidator = external_exports.object({
@@ -35807,12 +36333,15 @@ var inAppMessageActionValidator = external_exports.object({
35807
36333
  label: external_exports.string(),
35808
36334
  style: inAppMessageActionStyleValidator,
35809
36335
  action: inAppMessageActionTargetValidator,
36336
+ /** When true, the message closes after this action runs (default true). */
35810
36337
  closeOnComplete: external_exports.boolean().default(true)
35811
36338
  }).passthrough();
35812
36339
  var inAppMessageMediaValidator = external_exports.object({
35813
36340
  type: external_exports.enum(["youtube", "image", "gif"]),
35814
36341
  url: external_exports.string(),
36342
+ /** Aspect ratio hint, e.g. "16:9" or "1:1". Defaults to 16:9. */
35815
36343
  aspect: external_exports.string().default("16:9"),
36344
+ /** Alt text for images/gifs (accessibility). */
35816
36345
  alt: external_exports.string().optional()
35817
36346
  }).passthrough();
35818
36347
  var inAppMessageFrequencyValidator = external_exports.union([
@@ -35823,17 +36352,23 @@ var inAppMessageFrequencyValidator = external_exports.union([
35823
36352
  ]).default("once");
35824
36353
  var inAppMessagePresentationValidator = external_exports.enum(["modal", "banner", "toast"]).default("modal");
35825
36354
  var inAppMessageValidator = external_exports.object({
36355
+ /** Stable identifier — used to persist dismissal / frequency state. */
35826
36356
  id: external_exports.string(),
36357
+ /** Higher priority wins when multiple messages match. Default 0. */
35827
36358
  priority: external_exports.number().default(0),
36359
+ /** When false, the message is required/blocking (no dismiss affordance). */
35828
36360
  dismissible: external_exports.boolean().default(true),
35829
36361
  frequency: inAppMessageFrequencyValidator,
35830
36362
  presentation: inAppMessagePresentationValidator,
35831
36363
  media: inAppMessageMediaValidator.optional(),
36364
+ /** Optional emoji hero glyph — rendered only when `media` is not set. */
35832
36365
  emoji: external_exports.string().optional(),
35833
36366
  title: external_exports.string(),
35834
36367
  body: external_exports.string().optional(),
35835
36368
  actions: external_exports.array(inAppMessageActionValidator).default([]),
36369
+ /** Targeting predicate tree. Omitted → matches everyone. */
35836
36370
  targeting: inAppMessagePredicateValidator.optional(),
36371
+ /** Allow disabling a message without removing it from the flag. */
35837
36372
  enabled: external_exports.boolean().default(true)
35838
36373
  }).passthrough();
35839
36374
  var inAppMessagesFlagValidator = external_exports.object({
@@ -35850,14 +36385,12 @@ var isSvgMustacheRenderMethod = /* @__PURE__ */ __name((rm) => {
35850
36385
  var getRenderMethods = /* @__PURE__ */ __name((vc) => {
35851
36386
  const effective = unwrapBoostCredential(vc) ?? vc;
35852
36387
  const raw = effective?.renderMethod;
35853
- if (!raw)
35854
- return [];
36388
+ if (!raw) return [];
35855
36389
  return Array.isArray(raw) ? raw : [raw];
35856
36390
  }, "getRenderMethods");
35857
36391
  function findRenderMethod(vc, predicate) {
35858
36392
  for (const entry of getRenderMethods(vc)) {
35859
- if (predicate(entry))
35860
- return entry;
36393
+ if (predicate(entry)) return entry;
35861
36394
  }
35862
36395
  return null;
35863
36396
  }
@@ -35890,11 +36423,9 @@ var findTemplateRenderMethods = /* @__PURE__ */ __name((vc, suite) => {
35890
36423
  var getSvgMustacheRenderMethod = /* @__PURE__ */ __name((vc) => findTemplateRenderMethod(vc, "svg-mustache"), "getSvgMustacheRenderMethod");
35891
36424
  var isUnsafeKey = /* @__PURE__ */ __name((key) => key === "__proto__" || key === "constructor" || key === "prototype", "isUnsafeKey");
35892
36425
  var resolvePointer = /* @__PURE__ */ __name((obj, pointer) => {
35893
- if (!pointer || pointer === "/")
35894
- return obj;
36426
+ if (!pointer || pointer === "/") return obj;
35895
36427
  const parts = pointer.replace(/^\//, "").split("/").map((p) => p.replace(/~1/g, "/").replace(/~0/g, "~"));
35896
- if (parts.some(isUnsafeKey))
35897
- return void 0;
36428
+ if (parts.some(isUnsafeKey)) return void 0;
35898
36429
  let current2 = obj;
35899
36430
  for (const part of parts) {
35900
36431
  if (current2 === null || current2 === void 0 || typeof current2 !== "object")
@@ -35908,11 +36439,9 @@ var buildRenderDataFromPointers = /* @__PURE__ */ __name((vc, pointers) => {
35908
36439
  const isUnsafeKey2 = /* @__PURE__ */ __name((key) => key === "__proto__" || key === "constructor" || key === "prototype", "isUnsafeKey");
35909
36440
  for (const pointer of pointers) {
35910
36441
  const value = resolvePointer(vc, pointer);
35911
- if (value === void 0)
35912
- continue;
36442
+ if (value === void 0) continue;
35913
36443
  const parts = pointer.replace(/^\//, "").split("/").map((p) => p.replace(/~1/g, "/").replace(/~0/g, "~"));
35914
- if (parts.some(isUnsafeKey2))
35915
- continue;
36444
+ if (parts.some(isUnsafeKey2)) continue;
35916
36445
  let current2 = result;
35917
36446
  for (let i = 0; i < parts.length - 1; i++) {
35918
36447
  const part = parts[i];
@@ -35922,8 +36451,7 @@ var buildRenderDataFromPointers = /* @__PURE__ */ __name((vc, pointers) => {
35922
36451
  current2 = current2[part];
35923
36452
  }
35924
36453
  const lastPart = parts[parts.length - 1];
35925
- if (isUnsafeKey2(lastPart))
35926
- continue;
36454
+ if (isUnsafeKey2(lastPart)) continue;
35927
36455
  current2[lastPart] = value;
35928
36456
  }
35929
36457
  return result;
@@ -35936,8 +36464,7 @@ var buildRenderData = /* @__PURE__ */ __name((vc, renderProperty) => {
35936
36464
  credential,
35937
36465
  credentialSubjects: Array.isArray(credential.credentialSubject) ? credential.credentialSubject : [credential.credentialSubject].filter(Boolean)
35938
36466
  };
35939
- if (!renderProperty || renderProperty.length === 0)
35940
- return base;
36467
+ if (!renderProperty || renderProperty.length === 0) return base;
35941
36468
  return {
35942
36469
  ...base,
35943
36470
  ...buildRenderDataFromPointers(vc, renderProperty),
@@ -35948,8 +36475,7 @@ var buildRenderData = /* @__PURE__ */ __name((vc, renderProperty) => {
35948
36475
  // src/plugin.ts
35949
36476
  var DEFAULT_TEMPLATE_ID = "https://templates.learncard.com/svg/card/card-1.0.0.svg";
35950
36477
  var isValidTemplateId = /* @__PURE__ */ __name((templateId) => {
35951
- if (!templateId || !templateId.trim())
35952
- return false;
36478
+ if (!templateId || !templateId.trim()) return false;
35953
36479
  return /^https?:\/\//i.test(templateId);
35954
36480
  }, "isValidTemplateId");
35955
36481
  var buildTemplateRenderMethod = /* @__PURE__ */ __name((config2) => {
@@ -35975,15 +36501,17 @@ var buildTemplateRenderMethod = /* @__PURE__ */ __name((config2) => {
35975
36501
  }
35976
36502
  return {
35977
36503
  type: "TemplateRenderMethod",
36504
+ // TODO: Add other render suites (e.g., WebRenderingTemplate2022, HtmlMustacheRenderingTemplate)
35978
36505
  renderSuite: "svg-mustache",
35979
36506
  template,
36507
+ // Only include renderProperty when explicitly provided to avoid overriding VC defaults
35980
36508
  ...config2.renderProperty ? { renderProperty: config2.renderProperty } : {},
36509
+ // TODO: Make mediaType configurable per renderSuite once additional suites are supported
35981
36510
  outputPreference: { mediaType: "image/svg+xml" }
35982
36511
  };
35983
36512
  }, "buildTemplateRenderMethod");
35984
36513
  var attachRenderMethod = /* @__PURE__ */ __name((vc, config2) => {
35985
- if (!config2)
35986
- return vc;
36514
+ if (!config2) return vc;
35987
36515
  const renderMethod = buildTemplateRenderMethod(config2);
35988
36516
  const context = Array.isArray(vc["@context"]) ? vc["@context"] : [vc["@context"]];
35989
36517
  const updatedContext = context.includes(RENDER_METHOD_CONTEXT) ? context : [...context, RENDER_METHOD_CONTEXT];
@@ -36007,15 +36535,15 @@ var getRenderMethodPlugin = /* @__PURE__ */ __name((_learnCard) => ({
36007
36535
  displayName: "Render Method Plugin",
36008
36536
  description: "Attaches W3C renderMethod to Verifiable Credentials for standards-based rendering",
36009
36537
  methods: {
36010
- attachRenderMethod: (_lc, vc, config2) => attachRenderMethod(vc, config2),
36011
- buildTemplateRenderMethod: (_lc, config2) => buildTemplateRenderMethod(config2),
36012
- getRenderMethods: (_lc, vc) => getRenderMethods(vc),
36013
- findRenderMethod: (_lc, vc, predicate) => findRenderMethod(vc, predicate),
36014
- findRenderMethods: (_lc, vc, predicate) => findRenderMethods(vc, predicate),
36015
- findTemplateRenderMethod: (_lc, vc, suite) => findTemplateRenderMethod(vc, suite),
36016
- findTemplateRenderMethods: (_lc, vc, suite) => findTemplateRenderMethods(vc, suite),
36017
- getSvgMustacheRenderMethod: (_lc, vc) => getSvgMustacheRenderMethod(vc),
36018
- buildRenderData: (_lc, vc, renderProperty) => buildRenderData(vc, renderProperty)
36538
+ attachRenderMethod: /* @__PURE__ */ __name((_lc, vc, config2) => attachRenderMethod(vc, config2), "attachRenderMethod"),
36539
+ buildTemplateRenderMethod: /* @__PURE__ */ __name((_lc, config2) => buildTemplateRenderMethod(config2), "buildTemplateRenderMethod"),
36540
+ getRenderMethods: /* @__PURE__ */ __name((_lc, vc) => getRenderMethods(vc), "getRenderMethods"),
36541
+ findRenderMethod: /* @__PURE__ */ __name((_lc, vc, predicate) => findRenderMethod(vc, predicate), "findRenderMethod"),
36542
+ findRenderMethods: /* @__PURE__ */ __name((_lc, vc, predicate) => findRenderMethods(vc, predicate), "findRenderMethods"),
36543
+ findTemplateRenderMethod: /* @__PURE__ */ __name((_lc, vc, suite) => findTemplateRenderMethod(vc, suite), "findTemplateRenderMethod"),
36544
+ findTemplateRenderMethods: /* @__PURE__ */ __name((_lc, vc, suite) => findTemplateRenderMethods(vc, suite), "findTemplateRenderMethods"),
36545
+ getSvgMustacheRenderMethod: /* @__PURE__ */ __name((_lc, vc) => getSvgMustacheRenderMethod(vc), "getSvgMustacheRenderMethod"),
36546
+ buildRenderData: /* @__PURE__ */ __name((_lc, vc, renderProperty) => buildRenderData(vc, renderProperty), "buildRenderData")
36019
36547
  }
36020
36548
  }), "getRenderMethodPlugin");
36021
36549
  export {