@resconet/qp-bridge 1.2.1-alpha.43 → 1.2.1-alpha.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +243 -292
  2. package/index.js +1 -1
  3. package/index.mjs +1063 -1103
  4. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,136 +1,122 @@
1
- var Qe = { exports: {} }, w = Qe.exports = {}, A, N;
2
- function ve() {
3
- throw new Error("setTimeout has not been defined");
4
- }
5
- function _e() {
6
- throw new Error("clearTimeout has not been defined");
7
- }
8
- (function() {
9
- try {
10
- typeof setTimeout == "function" ? A = setTimeout : A = ve;
11
- } catch {
12
- A = ve;
13
- }
14
- try {
15
- typeof clearTimeout == "function" ? N = clearTimeout : N = _e;
16
- } catch {
17
- N = _e;
18
- }
19
- })();
20
- function Fe(t) {
21
- if (A === setTimeout)
22
- return setTimeout(t, 0);
23
- if ((A === ve || !A) && setTimeout)
24
- return A = setTimeout, setTimeout(t, 0);
25
- try {
26
- return A(t, 0);
27
- } catch {
1
+ var he = { exports: {} }, Ce;
2
+ function Ye() {
3
+ if (Ce) return he.exports;
4
+ Ce = 1;
5
+ var t = he.exports = {}, e, s;
6
+ function n() {
7
+ throw new Error("setTimeout has not been defined");
8
+ }
9
+ function r() {
10
+ throw new Error("clearTimeout has not been defined");
11
+ }
12
+ (function() {
13
+ try {
14
+ typeof setTimeout == "function" ? e = setTimeout : e = n;
15
+ } catch {
16
+ e = n;
17
+ }
18
+ try {
19
+ typeof clearTimeout == "function" ? s = clearTimeout : s = r;
20
+ } catch {
21
+ s = r;
22
+ }
23
+ })();
24
+ function a(k) {
25
+ if (e === setTimeout)
26
+ return setTimeout(k, 0);
27
+ if ((e === n || !e) && setTimeout)
28
+ return e = setTimeout, setTimeout(k, 0);
28
29
  try {
29
- return A.call(null, t, 0);
30
+ return e(k, 0);
30
31
  } catch {
31
- return A.call(this, t, 0);
32
+ try {
33
+ return e.call(null, k, 0);
34
+ } catch {
35
+ return e.call(this, k, 0);
36
+ }
32
37
  }
33
38
  }
34
- }
35
- function at(t) {
36
- if (N === clearTimeout)
37
- return clearTimeout(t);
38
- if ((N === _e || !N) && clearTimeout)
39
- return N = clearTimeout, clearTimeout(t);
40
- try {
41
- return N(t);
42
- } catch {
39
+ function i(k) {
40
+ if (s === clearTimeout)
41
+ return clearTimeout(k);
42
+ if ((s === r || !s) && clearTimeout)
43
+ return s = clearTimeout, clearTimeout(k);
43
44
  try {
44
- return N.call(null, t);
45
+ return s(k);
45
46
  } catch {
46
- return N.call(this, t);
47
+ try {
48
+ return s.call(null, k);
49
+ } catch {
50
+ return s.call(this, k);
51
+ }
47
52
  }
48
53
  }
49
- }
50
- var M = [], F = !1, B, ue = -1;
51
- function it() {
52
- !F || !B || (F = !1, B.length ? M = B.concat(M) : ue = -1, M.length && We());
53
- }
54
- function We() {
55
- if (!F) {
56
- var t = Fe(it);
57
- F = !0;
58
- for (var e = M.length; e; ) {
59
- for (B = M, M = []; ++ue < e; )
60
- B && B[ue].run();
61
- ue = -1, e = M.length;
54
+ var o = [], d = !1, l, y = -1;
55
+ function I() {
56
+ !d || !l || (d = !1, l.length ? o = l.concat(o) : y = -1, o.length && M());
57
+ }
58
+ function M() {
59
+ if (!d) {
60
+ var k = a(I);
61
+ d = !0;
62
+ for (var A = o.length; A; ) {
63
+ for (l = o, o = []; ++y < A; )
64
+ l && l[y].run();
65
+ y = -1, A = o.length;
66
+ }
67
+ l = null, d = !1, i(k);
62
68
  }
63
- B = null, F = !1, at(t);
64
69
  }
65
- }
66
- w.nextTick = function(t) {
67
- var e = new Array(arguments.length - 1);
68
- if (arguments.length > 1)
69
- for (var s = 1; s < arguments.length; s++)
70
- e[s - 1] = arguments[s];
71
- M.push(new He(t, e)), M.length === 1 && !F && Fe(We);
72
- };
73
- function He(t, e) {
74
- this.fun = t, this.array = e;
75
- }
76
- He.prototype.run = function() {
77
- this.fun.apply(null, this.array);
78
- };
79
- w.title = "browser";
80
- w.browser = !0;
81
- w.env = {};
82
- w.argv = [];
83
- w.version = "";
84
- w.versions = {};
85
- function q() {
86
- }
87
- w.on = q;
88
- w.addListener = q;
89
- w.once = q;
90
- w.off = q;
91
- w.removeListener = q;
92
- w.removeAllListeners = q;
93
- w.emit = q;
94
- w.prependListener = q;
95
- w.prependOnceListener = q;
96
- w.listeners = function(t) {
97
- return [];
98
- };
99
- w.binding = function(t) {
100
- throw new Error("process.binding is not supported");
101
- };
102
- w.cwd = function() {
103
- return "/";
104
- };
105
- w.chdir = function(t) {
106
- throw new Error("process.chdir is not supported");
107
- };
108
- w.umask = function() {
109
- return 0;
110
- };
111
- var ct = Qe.exports;
112
- let oe;
113
- const ot = new Uint8Array(16);
114
- function ut() {
115
- if (!oe && (oe = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !oe))
70
+ t.nextTick = function(k) {
71
+ var A = new Array(arguments.length - 1);
72
+ if (arguments.length > 1)
73
+ for (var B = 1; B < arguments.length; B++)
74
+ A[B - 1] = arguments[B];
75
+ o.push(new Te(k, A)), o.length === 1 && !d && a(M);
76
+ };
77
+ function Te(k, A) {
78
+ this.fun = k, this.array = A;
79
+ }
80
+ Te.prototype.run = function() {
81
+ this.fun.apply(null, this.array);
82
+ }, t.title = "browser", t.browser = !0, t.env = {}, t.argv = [], t.version = "", t.versions = {};
83
+ function Z() {
84
+ }
85
+ return t.on = Z, t.addListener = Z, t.once = Z, t.off = Z, t.removeListener = Z, t.removeAllListeners = Z, t.emit = Z, t.prependListener = Z, t.prependOnceListener = Z, t.listeners = function(k) {
86
+ return [];
87
+ }, t.binding = function(k) {
88
+ throw new Error("process.binding is not supported");
89
+ }, t.cwd = function() {
90
+ return "/";
91
+ }, t.chdir = function(k) {
92
+ throw new Error("process.chdir is not supported");
93
+ }, t.umask = function() {
94
+ return 0;
95
+ }, he.exports;
96
+ }
97
+ var Xe = Ye();
98
+ let re;
99
+ const Ke = new Uint8Array(16);
100
+ function et() {
101
+ if (!re && (re = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !re))
116
102
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
117
- return oe(ot);
103
+ return re(Ke);
118
104
  }
119
- const T = [];
105
+ const R = [];
120
106
  for (let t = 0; t < 256; ++t)
121
- T.push((t + 256).toString(16).slice(1));
122
- function dt(t, e = 0) {
123
- return T[t[e + 0]] + T[t[e + 1]] + T[t[e + 2]] + T[t[e + 3]] + "-" + T[t[e + 4]] + T[t[e + 5]] + "-" + T[t[e + 6]] + T[t[e + 7]] + "-" + T[t[e + 8]] + T[t[e + 9]] + "-" + T[t[e + 10]] + T[t[e + 11]] + T[t[e + 12]] + T[t[e + 13]] + T[t[e + 14]] + T[t[e + 15]];
107
+ R.push((t + 256).toString(16).slice(1));
108
+ function tt(t, e = 0) {
109
+ return R[t[e + 0]] + R[t[e + 1]] + R[t[e + 2]] + R[t[e + 3]] + "-" + R[t[e + 4]] + R[t[e + 5]] + "-" + R[t[e + 6]] + R[t[e + 7]] + "-" + R[t[e + 8]] + R[t[e + 9]] + "-" + R[t[e + 10]] + R[t[e + 11]] + R[t[e + 12]] + R[t[e + 13]] + R[t[e + 14]] + R[t[e + 15]];
124
110
  }
125
- const lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ue = {
126
- randomUUID: lt
111
+ const st = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ee = {
112
+ randomUUID: st
127
113
  };
128
- function Je(t, e, s) {
129
- if (Ue.randomUUID && !e && !t)
130
- return Ue.randomUUID();
114
+ function Be(t, e, s) {
115
+ if (Ee.randomUUID && !t)
116
+ return Ee.randomUUID();
131
117
  t = t || {};
132
- const n = t.random || (t.rng || ut)();
133
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, dt(n);
118
+ const n = t.random || (t.rng || et)();
119
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, tt(n);
134
120
  }
135
121
  var _;
136
122
  (function(t) {
@@ -148,9 +134,9 @@ var _;
148
134
  a[i] = i;
149
135
  return a;
150
136
  }, t.getValidEnumValues = (r) => {
151
- const a = t.objectKeys(r).filter((c) => typeof r[r[c]] != "number"), i = {};
152
- for (const c of a)
153
- i[c] = r[c];
137
+ const a = t.objectKeys(r).filter((o) => typeof r[r[o]] != "number"), i = {};
138
+ for (const o of a)
139
+ i[o] = r[o];
154
140
  return t.objectValues(i);
155
141
  }, t.objectValues = (r) => t.objectKeys(r).map(function(a) {
156
142
  return r[a];
@@ -169,15 +155,15 @@ var _;
169
155
  }
170
156
  t.joinValues = n, t.jsonStringifyReplacer = (r, a) => typeof a == "bigint" ? a.toString() : a;
171
157
  })(_ || (_ = {}));
172
- var Ve;
158
+ var Ae;
173
159
  (function(t) {
174
160
  t.mergeShapes = (e, s) => ({
175
161
  ...e,
176
162
  ...s
177
163
  // second overwrites first
178
164
  });
179
- })(Ve || (Ve = {}));
180
- const d = _.arrayToEnum([
165
+ })(Ae || (Ae = {}));
166
+ const f = _.arrayToEnum([
181
167
  "string",
182
168
  "nan",
183
169
  "number",
@@ -201,25 +187,25 @@ const d = _.arrayToEnum([
201
187
  ]), P = (t) => {
202
188
  switch (typeof t) {
203
189
  case "undefined":
204
- return d.undefined;
190
+ return f.undefined;
205
191
  case "string":
206
- return d.string;
192
+ return f.string;
207
193
  case "number":
208
- return Number.isNaN(t) ? d.nan : d.number;
194
+ return Number.isNaN(t) ? f.nan : f.number;
209
195
  case "boolean":
210
- return d.boolean;
196
+ return f.boolean;
211
197
  case "function":
212
- return d.function;
198
+ return f.function;
213
199
  case "bigint":
214
- return d.bigint;
200
+ return f.bigint;
215
201
  case "symbol":
216
- return d.symbol;
202
+ return f.symbol;
217
203
  case "object":
218
- return Array.isArray(t) ? d.array : t === null ? d.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? d.promise : typeof Map < "u" && t instanceof Map ? d.map : typeof Set < "u" && t instanceof Set ? d.set : typeof Date < "u" && t instanceof Date ? d.date : d.object;
204
+ return Array.isArray(t) ? f.array : t === null ? f.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? f.promise : typeof Map < "u" && t instanceof Map ? f.map : typeof Set < "u" && t instanceof Set ? f.set : typeof Date < "u" && t instanceof Date ? f.date : f.object;
219
205
  default:
220
- return d.unknown;
206
+ return f.unknown;
221
207
  }
222
- }, o = _.arrayToEnum([
208
+ }, c = _.arrayToEnum([
223
209
  "invalid_type",
224
210
  "invalid_literal",
225
211
  "custom",
@@ -237,7 +223,7 @@ const d = _.arrayToEnum([
237
223
  "not_multiple_of",
238
224
  "not_finite"
239
225
  ]);
240
- class j extends Error {
226
+ class q extends Error {
241
227
  get errors() {
242
228
  return this.issues;
243
229
  }
@@ -264,17 +250,17 @@ class j extends Error {
264
250
  else if (i.path.length === 0)
265
251
  n._errors.push(s(i));
266
252
  else {
267
- let c = n, f = 0;
268
- for (; f < i.path.length; ) {
269
- const h = i.path[f];
270
- f === i.path.length - 1 ? (c[h] = c[h] || { _errors: [] }, c[h]._errors.push(s(i))) : c[h] = c[h] || { _errors: [] }, c = c[h], f++;
253
+ let o = n, d = 0;
254
+ for (; d < i.path.length; ) {
255
+ const l = i.path[d];
256
+ d === i.path.length - 1 ? (o[l] = o[l] || { _errors: [] }, o[l]._errors.push(s(i))) : o[l] = o[l] || { _errors: [] }, o = o[l], d++;
271
257
  }
272
258
  }
273
259
  };
274
260
  return r(this), n;
275
261
  }
276
262
  static assert(e) {
277
- if (!(e instanceof j))
263
+ if (!(e instanceof q))
278
264
  throw new Error(`Not a ZodError: ${e}`);
279
265
  }
280
266
  toString() {
@@ -300,56 +286,56 @@ class j extends Error {
300
286
  return this.flatten();
301
287
  }
302
288
  }
303
- j.create = (t) => new j(t);
304
- const xe = (t, e) => {
289
+ q.create = (t) => new q(t);
290
+ const me = (t, e) => {
305
291
  let s;
306
292
  switch (t.code) {
307
- case o.invalid_type:
308
- t.received === d.undefined ? s = "Required" : s = `Expected ${t.expected}, received ${t.received}`;
293
+ case c.invalid_type:
294
+ t.received === f.undefined ? s = "Required" : s = `Expected ${t.expected}, received ${t.received}`;
309
295
  break;
310
- case o.invalid_literal:
296
+ case c.invalid_literal:
311
297
  s = `Invalid literal value, expected ${JSON.stringify(t.expected, _.jsonStringifyReplacer)}`;
312
298
  break;
313
- case o.unrecognized_keys:
299
+ case c.unrecognized_keys:
314
300
  s = `Unrecognized key(s) in object: ${_.joinValues(t.keys, ", ")}`;
315
301
  break;
316
- case o.invalid_union:
302
+ case c.invalid_union:
317
303
  s = "Invalid input";
318
304
  break;
319
- case o.invalid_union_discriminator:
305
+ case c.invalid_union_discriminator:
320
306
  s = `Invalid discriminator value. Expected ${_.joinValues(t.options)}`;
321
307
  break;
322
- case o.invalid_enum_value:
308
+ case c.invalid_enum_value:
323
309
  s = `Invalid enum value. Expected ${_.joinValues(t.options)}, received '${t.received}'`;
324
310
  break;
325
- case o.invalid_arguments:
311
+ case c.invalid_arguments:
326
312
  s = "Invalid function arguments";
327
313
  break;
328
- case o.invalid_return_type:
314
+ case c.invalid_return_type:
329
315
  s = "Invalid function return type";
330
316
  break;
331
- case o.invalid_date:
317
+ case c.invalid_date:
332
318
  s = "Invalid date";
333
319
  break;
334
- case o.invalid_string:
320
+ case c.invalid_string:
335
321
  typeof t.validation == "object" ? "includes" in t.validation ? (s = `Invalid input: must include "${t.validation.includes}"`, typeof t.validation.position == "number" && (s = `${s} at one or more positions greater than or equal to ${t.validation.position}`)) : "startsWith" in t.validation ? s = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? s = `Invalid input: must end with "${t.validation.endsWith}"` : _.assertNever(t.validation) : t.validation !== "regex" ? s = `Invalid ${t.validation}` : s = "Invalid";
336
322
  break;
337
- case o.too_small:
323
+ case c.too_small:
338
324
  t.type === "array" ? s = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "more than"} ${t.minimum} element(s)` : t.type === "string" ? s = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "over"} ${t.minimum} character(s)` : t.type === "number" ? s = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "bigint" ? s = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "date" ? s = `Date must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(t.minimum))}` : s = "Invalid input";
339
325
  break;
340
- case o.too_big:
326
+ case c.too_big:
341
327
  t.type === "array" ? s = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "less than"} ${t.maximum} element(s)` : t.type === "string" ? s = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at most" : "under"} ${t.maximum} character(s)` : t.type === "number" ? s = `Number must be ${t.exact ? "exactly" : t.inclusive ? "less than or equal to" : "less than"} ${t.maximum}` : t.type === "bigint" ? s = `BigInt must be ${t.exact ? "exactly" : t.inclusive ? "less than or equal to" : "less than"} ${t.maximum}` : t.type === "date" ? s = `Date must be ${t.exact ? "exactly" : t.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(t.maximum))}` : s = "Invalid input";
342
328
  break;
343
- case o.custom:
329
+ case c.custom:
344
330
  s = "Invalid input";
345
331
  break;
346
- case o.invalid_intersection_types:
332
+ case c.invalid_intersection_types:
347
333
  s = "Intersection results could not be merged";
348
334
  break;
349
- case o.not_multiple_of:
335
+ case c.not_multiple_of:
350
336
  s = `Number must be a multiple of ${t.multipleOf}`;
351
337
  break;
352
- case o.not_finite:
338
+ case c.not_finite:
353
339
  s = "Number must be finite";
354
340
  break;
355
341
  default:
@@ -357,11 +343,11 @@ const xe = (t, e) => {
357
343
  }
358
344
  return { message: s };
359
345
  };
360
- let ft = xe;
361
- function ht() {
362
- return ft;
346
+ let nt = me;
347
+ function rt() {
348
+ return nt;
363
349
  }
364
- const mt = (t) => {
350
+ const at = (t) => {
365
351
  const { data: e, path: s, errorMaps: n, issueData: r } = t, a = [...s, ...r.path || []], i = {
366
352
  ...r,
367
353
  path: a
@@ -372,18 +358,18 @@ const mt = (t) => {
372
358
  path: a,
373
359
  message: r.message
374
360
  };
375
- let c = "";
376
- const f = n.filter((h) => !!h).slice().reverse();
377
- for (const h of f)
378
- c = h(i, { data: e, defaultError: c }).message;
361
+ let o = "";
362
+ const d = n.filter((l) => !!l).slice().reverse();
363
+ for (const l of d)
364
+ o = l(i, { data: e, defaultError: o }).message;
379
365
  return {
380
366
  ...r,
381
367
  path: a,
382
- message: c
368
+ message: o
383
369
  };
384
370
  };
385
371
  function u(t, e) {
386
- const s = ht(), n = mt({
372
+ const s = rt(), n = at({
387
373
  issueData: e,
388
374
  data: t.data,
389
375
  path: t.path,
@@ -394,13 +380,13 @@ function u(t, e) {
394
380
  // then schema-bound map if available
395
381
  s,
396
382
  // then global override map
397
- s === xe ? void 0 : xe
383
+ s === me ? void 0 : me
398
384
  // then global default map
399
385
  ].filter((r) => !!r)
400
386
  });
401
387
  t.common.issues.push(n);
402
388
  }
403
- class R {
389
+ class T {
404
390
  constructor() {
405
391
  this.value = "valid";
406
392
  }
@@ -414,7 +400,7 @@ class R {
414
400
  const n = [];
415
401
  for (const r of s) {
416
402
  if (r.status === "aborted")
417
- return p;
403
+ return m;
418
404
  r.status === "dirty" && e.dirty(), n.push(r.value);
419
405
  }
420
406
  return { status: e.value, value: n };
@@ -428,27 +414,27 @@ class R {
428
414
  value: i
429
415
  });
430
416
  }
431
- return R.mergeObjectSync(e, n);
417
+ return T.mergeObjectSync(e, n);
432
418
  }
433
419
  static mergeObjectSync(e, s) {
434
420
  const n = {};
435
421
  for (const r of s) {
436
422
  const { key: a, value: i } = r;
437
423
  if (a.status === "aborted" || i.status === "aborted")
438
- return p;
424
+ return m;
439
425
  a.status === "dirty" && e.dirty(), i.status === "dirty" && e.dirty(), a.value !== "__proto__" && (typeof i.value < "u" || r.alwaysSet) && (n[a.value] = i.value);
440
426
  }
441
427
  return { status: e.value, value: n };
442
428
  }
443
429
  }
444
- const p = Object.freeze({
430
+ const m = Object.freeze({
445
431
  status: "aborted"
446
- }), se = (t) => ({ status: "dirty", value: t }), E = (t) => ({ status: "valid", value: t }), Be = (t) => t.status === "aborted", ze = (t) => t.status === "dirty", H = (t) => t.status === "valid", de = (t) => typeof Promise < "u" && t instanceof Promise;
447
- var l;
432
+ }), Y = (t) => ({ status: "dirty", value: t }), E = (t) => ({ status: "valid", value: t }), Ne = (t) => t.status === "aborted", Oe = (t) => t.status === "dirty", G = (t) => t.status === "valid", ae = (t) => typeof Promise < "u" && t instanceof Promise;
433
+ var h;
448
434
  (function(t) {
449
- t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
450
- })(l || (l = {}));
451
- class I {
435
+ t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e?.message;
436
+ })(h || (h = {}));
437
+ class O {
452
438
  constructor(e, s, n, r) {
453
439
  this._cachedPath = [], this.parent = e, this.data = s, this._path = n, this._key = r;
454
440
  }
@@ -456,8 +442,8 @@ class I {
456
442
  return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
457
443
  }
458
444
  }
459
- const De = (t, e) => {
460
- if (H(e))
445
+ const Ie = (t, e) => {
446
+ if (G(e))
461
447
  return { success: !0, data: e.value };
462
448
  if (!t.common.issues.length)
463
449
  throw new Error("Validation failed but no issues detected.");
@@ -466,7 +452,7 @@ const De = (t, e) => {
466
452
  get error() {
467
453
  if (this._error)
468
454
  return this._error;
469
- const s = new j(t.common.issues);
455
+ const s = new q(t.common.issues);
470
456
  return this._error = s, this._error;
471
457
  }
472
458
  };
@@ -477,12 +463,12 @@ function g(t) {
477
463
  const { errorMap: e, invalid_type_error: s, required_error: n, description: r } = t;
478
464
  if (e && (s || n))
479
465
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
480
- return e ? { errorMap: e, description: r } : { errorMap: (i, c) => {
481
- const { message: f } = t;
482
- return i.code === "invalid_enum_value" ? { message: f ?? c.defaultError } : typeof c.data > "u" ? { message: f ?? n ?? c.defaultError } : i.code !== "invalid_type" ? { message: c.defaultError } : { message: f ?? s ?? c.defaultError };
466
+ return e ? { errorMap: e, description: r } : { errorMap: (i, o) => {
467
+ const { message: d } = t;
468
+ return i.code === "invalid_enum_value" ? { message: d ?? o.defaultError } : typeof o.data > "u" ? { message: d ?? n ?? o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: d ?? s ?? o.defaultError };
483
469
  }, description: r };
484
470
  }
485
- class y {
471
+ class v {
486
472
  get description() {
487
473
  return this._def.description;
488
474
  }
@@ -501,7 +487,7 @@ class y {
501
487
  }
502
488
  _processInputParams(e) {
503
489
  return {
504
- status: new R(),
490
+ status: new T(),
505
491
  ctx: {
506
492
  common: e.parent.common,
507
493
  data: e.data,
@@ -514,7 +500,7 @@ class y {
514
500
  }
515
501
  _parseSync(e) {
516
502
  const s = this._parse(e);
517
- if (de(s))
503
+ if (ae(s))
518
504
  throw new Error("Synchronous parse encountered promise.");
519
505
  return s;
520
506
  }
@@ -532,19 +518,18 @@ class y {
532
518
  const n = {
533
519
  common: {
534
520
  issues: [],
535
- async: (s == null ? void 0 : s.async) ?? !1,
536
- contextualErrorMap: s == null ? void 0 : s.errorMap
521
+ async: s?.async ?? !1,
522
+ contextualErrorMap: s?.errorMap
537
523
  },
538
- path: (s == null ? void 0 : s.path) || [],
524
+ path: s?.path || [],
539
525
  schemaErrorMap: this._def.errorMap,
540
526
  parent: null,
541
527
  data: e,
542
528
  parsedType: P(e)
543
529
  }, r = this._parseSync({ data: e, path: n.path, parent: n });
544
- return De(n, r);
530
+ return Ie(n, r);
545
531
  }
546
532
  "~validate"(e) {
547
- var n, r;
548
533
  const s = {
549
534
  common: {
550
535
  issues: [],
@@ -558,20 +543,20 @@ class y {
558
543
  };
559
544
  if (!this["~standard"].async)
560
545
  try {
561
- const a = this._parseSync({ data: e, path: [], parent: s });
562
- return H(a) ? {
563
- value: a.value
546
+ const n = this._parseSync({ data: e, path: [], parent: s });
547
+ return G(n) ? {
548
+ value: n.value
564
549
  } : {
565
550
  issues: s.common.issues
566
551
  };
567
- } catch (a) {
568
- (r = (n = a == null ? void 0 : a.message) == null ? void 0 : n.toLowerCase()) != null && r.includes("encountered") && (this["~standard"].async = !0), s.common = {
552
+ } catch (n) {
553
+ n?.message?.toLowerCase()?.includes("encountered") && (this["~standard"].async = !0), s.common = {
569
554
  issues: [],
570
555
  async: !0
571
556
  };
572
557
  }
573
- return this._parseAsync({ data: e, path: [], parent: s }).then((a) => H(a) ? {
574
- value: a.value
558
+ return this._parseAsync({ data: e, path: [], parent: s }).then((n) => G(n) ? {
559
+ value: n.value
575
560
  } : {
576
561
  issues: s.common.issues
577
562
  });
@@ -586,34 +571,34 @@ class y {
586
571
  const n = {
587
572
  common: {
588
573
  issues: [],
589
- contextualErrorMap: s == null ? void 0 : s.errorMap,
574
+ contextualErrorMap: s?.errorMap,
590
575
  async: !0
591
576
  },
592
- path: (s == null ? void 0 : s.path) || [],
577
+ path: s?.path || [],
593
578
  schemaErrorMap: this._def.errorMap,
594
579
  parent: null,
595
580
  data: e,
596
581
  parsedType: P(e)
597
- }, r = this._parse({ data: e, path: n.path, parent: n }), a = await (de(r) ? r : Promise.resolve(r));
598
- return De(n, a);
582
+ }, r = this._parse({ data: e, path: n.path, parent: n }), a = await (ae(r) ? r : Promise.resolve(r));
583
+ return Ie(n, a);
599
584
  }
600
585
  refine(e, s) {
601
586
  const n = (r) => typeof s == "string" || typeof s > "u" ? { message: s } : typeof s == "function" ? s(r) : s;
602
587
  return this._refinement((r, a) => {
603
- const i = e(r), c = () => a.addIssue({
604
- code: o.custom,
588
+ const i = e(r), o = () => a.addIssue({
589
+ code: c.custom,
605
590
  ...n(r)
606
591
  });
607
- return typeof Promise < "u" && i instanceof Promise ? i.then((f) => f ? !0 : (c(), !1)) : i ? !0 : (c(), !1);
592
+ return typeof Promise < "u" && i instanceof Promise ? i.then((d) => d ? !0 : (o(), !1)) : i ? !0 : (o(), !1);
608
593
  });
609
594
  }
610
595
  refinement(e, s) {
611
596
  return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof s == "function" ? s(n, r) : s), !1));
612
597
  }
613
598
  _refinement(e) {
614
- return new U({
599
+ return new W({
615
600
  schema: this,
616
- typeName: m.ZodEffects,
601
+ typeName: p.ZodEffects,
617
602
  effect: { type: "refinement", refinement: e }
618
603
  });
619
604
  }
@@ -631,54 +616,54 @@ class y {
631
616
  return L.create(this, this._def);
632
617
  }
633
618
  nullable() {
634
- return ee.create(this, this._def);
619
+ return H.create(this, this._def);
635
620
  }
636
621
  nullish() {
637
622
  return this.nullable().optional();
638
623
  }
639
624
  array() {
640
- return O.create(this);
625
+ return N.create(this);
641
626
  }
642
627
  promise() {
643
- return me.create(this, this._def);
628
+ return de.create(this, this._def);
644
629
  }
645
630
  or(e) {
646
- return le.create([this, e], this._def);
631
+ return oe.create([this, e], this._def);
647
632
  }
648
633
  and(e) {
649
- return fe.create(this, e, this._def);
634
+ return ce.create(this, e, this._def);
650
635
  }
651
636
  transform(e) {
652
- return new U({
637
+ return new W({
653
638
  ...g(this._def),
654
639
  schema: this,
655
- typeName: m.ZodEffects,
640
+ typeName: p.ZodEffects,
656
641
  effect: { type: "transform", transform: e }
657
642
  });
658
643
  }
659
644
  default(e) {
660
645
  const s = typeof e == "function" ? e : () => e;
661
- return new Me({
646
+ return new xe({
662
647
  ...g(this._def),
663
648
  innerType: this,
664
649
  defaultValue: s,
665
- typeName: m.ZodDefault
650
+ typeName: p.ZodDefault
666
651
  });
667
652
  }
668
653
  brand() {
669
- return new Pt({
670
- typeName: m.ZodBranded,
654
+ return new Et({
655
+ typeName: p.ZodBranded,
671
656
  type: this,
672
657
  ...g(this._def)
673
658
  });
674
659
  }
675
660
  catch(e) {
676
661
  const s = typeof e == "function" ? e : () => e;
677
- return new Ze({
662
+ return new be({
678
663
  ...g(this._def),
679
664
  innerType: this,
680
665
  catchValue: s,
681
- typeName: m.ZodCatch
666
+ typeName: p.ZodCatch
682
667
  });
683
668
  }
684
669
  describe(e) {
@@ -689,10 +674,10 @@ class y {
689
674
  });
690
675
  }
691
676
  pipe(e) {
692
- return Pe.create(this, e);
677
+ return we.create(this, e);
693
678
  }
694
679
  readonly() {
695
- return qe.create(this);
680
+ return ke.create(this);
696
681
  }
697
682
  isOptional() {
698
683
  return this.safeParse(void 0).success;
@@ -701,58 +686,58 @@ class y {
701
686
  return this.safeParse(null).success;
702
687
  }
703
688
  }
704
- const pt = /^c[^\s-]{8,}$/i, gt = /^[0-9a-z]+$/, yt = /^[0-9A-HJKMNP-TV-Z]{26}$/i, vt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, _t = /^[a-z0-9_-]{21}$/i, xt = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, bt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, kt = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, wt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
705
- let ye;
706
- const St = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Tt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Rt = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Ct = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Et = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, At = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ye = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Nt = new RegExp(`^${Ye}$`);
707
- function Xe(t) {
689
+ const it = /^c[^\s-]{8,}$/i, ot = /^[0-9a-z]+$/, ct = /^[0-9A-HJKMNP-TV-Z]{26}$/i, ut = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, dt = /^[a-z0-9_-]{21}$/i, lt = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, ft = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, ht = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, pt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
690
+ let pe;
691
+ const mt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, gt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, yt = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, vt = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, _t = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, xt = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, ze = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", bt = new RegExp(`^${ze}$`);
692
+ function De(t) {
708
693
  let e = "[0-5]\\d";
709
694
  t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
710
695
  const s = t.precision ? "+" : "?";
711
696
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${s}`;
712
697
  }
713
- function Ot(t) {
714
- return new RegExp(`^${Xe(t)}$`);
698
+ function kt(t) {
699
+ return new RegExp(`^${De(t)}$`);
715
700
  }
716
- function It(t) {
717
- let e = `${Ye}T${Xe(t)}`;
701
+ function wt(t) {
702
+ let e = `${ze}T${De(t)}`;
718
703
  const s = [];
719
704
  return s.push(t.local ? "Z?" : "Z"), t.offset && s.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${s.join("|")})`, new RegExp(`^${e}$`);
720
705
  }
721
- function Mt(t, e) {
722
- return !!((e === "v4" || !e) && St.test(t) || (e === "v6" || !e) && Rt.test(t));
706
+ function St(t, e) {
707
+ return !!((e === "v4" || !e) && mt.test(t) || (e === "v6" || !e) && yt.test(t));
723
708
  }
724
- function Zt(t, e) {
725
- if (!xt.test(t))
709
+ function Rt(t, e) {
710
+ if (!lt.test(t))
726
711
  return !1;
727
712
  try {
728
713
  const [s] = t.split(".");
729
714
  if (!s)
730
715
  return !1;
731
716
  const n = s.replace(/-/g, "+").replace(/_/g, "/").padEnd(s.length + (4 - s.length % 4) % 4, "="), r = JSON.parse(atob(n));
732
- return !(typeof r != "object" || r === null || "typ" in r && (r == null ? void 0 : r.typ) !== "JWT" || !r.alg || e && r.alg !== e);
717
+ return !(typeof r != "object" || r === null || "typ" in r && r?.typ !== "JWT" || !r.alg || e && r.alg !== e);
733
718
  } catch {
734
719
  return !1;
735
720
  }
736
721
  }
737
- function jt(t, e) {
738
- return !!((e === "v4" || !e) && Tt.test(t) || (e === "v6" || !e) && Ct.test(t));
722
+ function Tt(t, e) {
723
+ return !!((e === "v4" || !e) && gt.test(t) || (e === "v6" || !e) && vt.test(t));
739
724
  }
740
- class Z extends y {
725
+ class j extends v {
741
726
  _parse(e) {
742
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== d.string) {
727
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== f.string) {
743
728
  const a = this._getOrReturnCtx(e);
744
729
  return u(a, {
745
- code: o.invalid_type,
746
- expected: d.string,
730
+ code: c.invalid_type,
731
+ expected: f.string,
747
732
  received: a.parsedType
748
- }), p;
733
+ }), m;
749
734
  }
750
- const n = new R();
735
+ const n = new T();
751
736
  let r;
752
737
  for (const a of this._def.checks)
753
738
  if (a.kind === "min")
754
739
  e.data.length < a.value && (r = this._getOrReturnCtx(e, r), u(r, {
755
- code: o.too_small,
740
+ code: c.too_small,
756
741
  minimum: a.value,
757
742
  type: "string",
758
743
  inclusive: !0,
@@ -761,7 +746,7 @@ class Z extends y {
761
746
  }), n.dirty());
762
747
  else if (a.kind === "max")
763
748
  e.data.length > a.value && (r = this._getOrReturnCtx(e, r), u(r, {
764
- code: o.too_big,
749
+ code: c.too_big,
765
750
  maximum: a.value,
766
751
  type: "string",
767
752
  inclusive: !0,
@@ -769,16 +754,16 @@ class Z extends y {
769
754
  message: a.message
770
755
  }), n.dirty());
771
756
  else if (a.kind === "length") {
772
- const i = e.data.length > a.value, c = e.data.length < a.value;
773
- (i || c) && (r = this._getOrReturnCtx(e, r), i ? u(r, {
774
- code: o.too_big,
757
+ const i = e.data.length > a.value, o = e.data.length < a.value;
758
+ (i || o) && (r = this._getOrReturnCtx(e, r), i ? u(r, {
759
+ code: c.too_big,
775
760
  maximum: a.value,
776
761
  type: "string",
777
762
  inclusive: !0,
778
763
  exact: !0,
779
764
  message: a.message
780
- }) : c && u(r, {
781
- code: o.too_small,
765
+ }) : o && u(r, {
766
+ code: c.too_small,
782
767
  minimum: a.value,
783
768
  type: "string",
784
769
  inclusive: !0,
@@ -786,45 +771,45 @@ class Z extends y {
786
771
  message: a.message
787
772
  }), n.dirty());
788
773
  } else if (a.kind === "email")
789
- kt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
774
+ ht.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
790
775
  validation: "email",
791
- code: o.invalid_string,
776
+ code: c.invalid_string,
792
777
  message: a.message
793
778
  }), n.dirty());
794
779
  else if (a.kind === "emoji")
795
- ye || (ye = new RegExp(wt, "u")), ye.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
780
+ pe || (pe = new RegExp(pt, "u")), pe.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
796
781
  validation: "emoji",
797
- code: o.invalid_string,
782
+ code: c.invalid_string,
798
783
  message: a.message
799
784
  }), n.dirty());
800
785
  else if (a.kind === "uuid")
801
- vt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
786
+ ut.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
802
787
  validation: "uuid",
803
- code: o.invalid_string,
788
+ code: c.invalid_string,
804
789
  message: a.message
805
790
  }), n.dirty());
806
791
  else if (a.kind === "nanoid")
807
- _t.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
792
+ dt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
808
793
  validation: "nanoid",
809
- code: o.invalid_string,
794
+ code: c.invalid_string,
810
795
  message: a.message
811
796
  }), n.dirty());
812
797
  else if (a.kind === "cuid")
813
- pt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
798
+ it.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
814
799
  validation: "cuid",
815
- code: o.invalid_string,
800
+ code: c.invalid_string,
816
801
  message: a.message
817
802
  }), n.dirty());
818
803
  else if (a.kind === "cuid2")
819
- gt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
804
+ ot.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
820
805
  validation: "cuid2",
821
- code: o.invalid_string,
806
+ code: c.invalid_string,
822
807
  message: a.message
823
808
  }), n.dirty());
824
809
  else if (a.kind === "ulid")
825
- yt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
810
+ ct.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
826
811
  validation: "ulid",
827
- code: o.invalid_string,
812
+ code: c.invalid_string,
828
813
  message: a.message
829
814
  }), n.dirty());
830
815
  else if (a.kind === "url")
@@ -833,120 +818,119 @@ class Z extends y {
833
818
  } catch {
834
819
  r = this._getOrReturnCtx(e, r), u(r, {
835
820
  validation: "url",
836
- code: o.invalid_string,
821
+ code: c.invalid_string,
837
822
  message: a.message
838
823
  }), n.dirty();
839
824
  }
840
- else
841
- a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
842
- validation: "regex",
843
- code: o.invalid_string,
844
- message: a.message
845
- }), n.dirty())) : a.kind === "trim" ? e.data = e.data.trim() : a.kind === "includes" ? e.data.includes(a.value, a.position) || (r = this._getOrReturnCtx(e, r), u(r, {
846
- code: o.invalid_string,
847
- validation: { includes: a.value, position: a.position },
848
- message: a.message
849
- }), n.dirty()) : a.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : a.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : a.kind === "startsWith" ? e.data.startsWith(a.value) || (r = this._getOrReturnCtx(e, r), u(r, {
850
- code: o.invalid_string,
851
- validation: { startsWith: a.value },
852
- message: a.message
853
- }), n.dirty()) : a.kind === "endsWith" ? e.data.endsWith(a.value) || (r = this._getOrReturnCtx(e, r), u(r, {
854
- code: o.invalid_string,
855
- validation: { endsWith: a.value },
856
- message: a.message
857
- }), n.dirty()) : a.kind === "datetime" ? It(a).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
858
- code: o.invalid_string,
859
- validation: "datetime",
860
- message: a.message
861
- }), n.dirty()) : a.kind === "date" ? Nt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
862
- code: o.invalid_string,
863
- validation: "date",
864
- message: a.message
865
- }), n.dirty()) : a.kind === "time" ? Ot(a).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
866
- code: o.invalid_string,
867
- validation: "time",
868
- message: a.message
869
- }), n.dirty()) : a.kind === "duration" ? bt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
870
- validation: "duration",
871
- code: o.invalid_string,
872
- message: a.message
873
- }), n.dirty()) : a.kind === "ip" ? Mt(e.data, a.version) || (r = this._getOrReturnCtx(e, r), u(r, {
874
- validation: "ip",
875
- code: o.invalid_string,
876
- message: a.message
877
- }), n.dirty()) : a.kind === "jwt" ? Zt(e.data, a.alg) || (r = this._getOrReturnCtx(e, r), u(r, {
878
- validation: "jwt",
879
- code: o.invalid_string,
880
- message: a.message
881
- }), n.dirty()) : a.kind === "cidr" ? jt(e.data, a.version) || (r = this._getOrReturnCtx(e, r), u(r, {
882
- validation: "cidr",
883
- code: o.invalid_string,
884
- message: a.message
885
- }), n.dirty()) : a.kind === "base64" ? Et.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
886
- validation: "base64",
887
- code: o.invalid_string,
888
- message: a.message
889
- }), n.dirty()) : a.kind === "base64url" ? At.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
890
- validation: "base64url",
891
- code: o.invalid_string,
892
- message: a.message
893
- }), n.dirty()) : _.assertNever(a);
825
+ else a.kind === "regex" ? (a.regex.lastIndex = 0, a.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
826
+ validation: "regex",
827
+ code: c.invalid_string,
828
+ message: a.message
829
+ }), n.dirty())) : a.kind === "trim" ? e.data = e.data.trim() : a.kind === "includes" ? e.data.includes(a.value, a.position) || (r = this._getOrReturnCtx(e, r), u(r, {
830
+ code: c.invalid_string,
831
+ validation: { includes: a.value, position: a.position },
832
+ message: a.message
833
+ }), n.dirty()) : a.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : a.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : a.kind === "startsWith" ? e.data.startsWith(a.value) || (r = this._getOrReturnCtx(e, r), u(r, {
834
+ code: c.invalid_string,
835
+ validation: { startsWith: a.value },
836
+ message: a.message
837
+ }), n.dirty()) : a.kind === "endsWith" ? e.data.endsWith(a.value) || (r = this._getOrReturnCtx(e, r), u(r, {
838
+ code: c.invalid_string,
839
+ validation: { endsWith: a.value },
840
+ message: a.message
841
+ }), n.dirty()) : a.kind === "datetime" ? wt(a).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
842
+ code: c.invalid_string,
843
+ validation: "datetime",
844
+ message: a.message
845
+ }), n.dirty()) : a.kind === "date" ? bt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
846
+ code: c.invalid_string,
847
+ validation: "date",
848
+ message: a.message
849
+ }), n.dirty()) : a.kind === "time" ? kt(a).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
850
+ code: c.invalid_string,
851
+ validation: "time",
852
+ message: a.message
853
+ }), n.dirty()) : a.kind === "duration" ? ft.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
854
+ validation: "duration",
855
+ code: c.invalid_string,
856
+ message: a.message
857
+ }), n.dirty()) : a.kind === "ip" ? St(e.data, a.version) || (r = this._getOrReturnCtx(e, r), u(r, {
858
+ validation: "ip",
859
+ code: c.invalid_string,
860
+ message: a.message
861
+ }), n.dirty()) : a.kind === "jwt" ? Rt(e.data, a.alg) || (r = this._getOrReturnCtx(e, r), u(r, {
862
+ validation: "jwt",
863
+ code: c.invalid_string,
864
+ message: a.message
865
+ }), n.dirty()) : a.kind === "cidr" ? Tt(e.data, a.version) || (r = this._getOrReturnCtx(e, r), u(r, {
866
+ validation: "cidr",
867
+ code: c.invalid_string,
868
+ message: a.message
869
+ }), n.dirty()) : a.kind === "base64" ? _t.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
870
+ validation: "base64",
871
+ code: c.invalid_string,
872
+ message: a.message
873
+ }), n.dirty()) : a.kind === "base64url" ? xt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
874
+ validation: "base64url",
875
+ code: c.invalid_string,
876
+ message: a.message
877
+ }), n.dirty()) : _.assertNever(a);
894
878
  return { status: n.value, value: e.data };
895
879
  }
896
880
  _regex(e, s, n) {
897
881
  return this.refinement((r) => e.test(r), {
898
882
  validation: s,
899
- code: o.invalid_string,
900
- ...l.errToObj(n)
883
+ code: c.invalid_string,
884
+ ...h.errToObj(n)
901
885
  });
902
886
  }
903
887
  _addCheck(e) {
904
- return new Z({
888
+ return new j({
905
889
  ...this._def,
906
890
  checks: [...this._def.checks, e]
907
891
  });
908
892
  }
909
893
  email(e) {
910
- return this._addCheck({ kind: "email", ...l.errToObj(e) });
894
+ return this._addCheck({ kind: "email", ...h.errToObj(e) });
911
895
  }
912
896
  url(e) {
913
- return this._addCheck({ kind: "url", ...l.errToObj(e) });
897
+ return this._addCheck({ kind: "url", ...h.errToObj(e) });
914
898
  }
915
899
  emoji(e) {
916
- return this._addCheck({ kind: "emoji", ...l.errToObj(e) });
900
+ return this._addCheck({ kind: "emoji", ...h.errToObj(e) });
917
901
  }
918
902
  uuid(e) {
919
- return this._addCheck({ kind: "uuid", ...l.errToObj(e) });
903
+ return this._addCheck({ kind: "uuid", ...h.errToObj(e) });
920
904
  }
921
905
  nanoid(e) {
922
- return this._addCheck({ kind: "nanoid", ...l.errToObj(e) });
906
+ return this._addCheck({ kind: "nanoid", ...h.errToObj(e) });
923
907
  }
924
908
  cuid(e) {
925
- return this._addCheck({ kind: "cuid", ...l.errToObj(e) });
909
+ return this._addCheck({ kind: "cuid", ...h.errToObj(e) });
926
910
  }
927
911
  cuid2(e) {
928
- return this._addCheck({ kind: "cuid2", ...l.errToObj(e) });
912
+ return this._addCheck({ kind: "cuid2", ...h.errToObj(e) });
929
913
  }
930
914
  ulid(e) {
931
- return this._addCheck({ kind: "ulid", ...l.errToObj(e) });
915
+ return this._addCheck({ kind: "ulid", ...h.errToObj(e) });
932
916
  }
933
917
  base64(e) {
934
- return this._addCheck({ kind: "base64", ...l.errToObj(e) });
918
+ return this._addCheck({ kind: "base64", ...h.errToObj(e) });
935
919
  }
936
920
  base64url(e) {
937
921
  return this._addCheck({
938
922
  kind: "base64url",
939
- ...l.errToObj(e)
923
+ ...h.errToObj(e)
940
924
  });
941
925
  }
942
926
  jwt(e) {
943
- return this._addCheck({ kind: "jwt", ...l.errToObj(e) });
927
+ return this._addCheck({ kind: "jwt", ...h.errToObj(e) });
944
928
  }
945
929
  ip(e) {
946
- return this._addCheck({ kind: "ip", ...l.errToObj(e) });
930
+ return this._addCheck({ kind: "ip", ...h.errToObj(e) });
947
931
  }
948
932
  cidr(e) {
949
- return this._addCheck({ kind: "cidr", ...l.errToObj(e) });
933
+ return this._addCheck({ kind: "cidr", ...h.errToObj(e) });
950
934
  }
951
935
  datetime(e) {
952
936
  return typeof e == "string" ? this._addCheck({
@@ -957,10 +941,10 @@ class Z extends y {
957
941
  message: e
958
942
  }) : this._addCheck({
959
943
  kind: "datetime",
960
- precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
961
- offset: (e == null ? void 0 : e.offset) ?? !1,
962
- local: (e == null ? void 0 : e.local) ?? !1,
963
- ...l.errToObj(e == null ? void 0 : e.message)
944
+ precision: typeof e?.precision > "u" ? null : e?.precision,
945
+ offset: e?.offset ?? !1,
946
+ local: e?.local ?? !1,
947
+ ...h.errToObj(e?.message)
964
948
  });
965
949
  }
966
950
  date(e) {
@@ -973,83 +957,83 @@ class Z extends y {
973
957
  message: e
974
958
  }) : this._addCheck({
975
959
  kind: "time",
976
- precision: typeof (e == null ? void 0 : e.precision) > "u" ? null : e == null ? void 0 : e.precision,
977
- ...l.errToObj(e == null ? void 0 : e.message)
960
+ precision: typeof e?.precision > "u" ? null : e?.precision,
961
+ ...h.errToObj(e?.message)
978
962
  });
979
963
  }
980
964
  duration(e) {
981
- return this._addCheck({ kind: "duration", ...l.errToObj(e) });
965
+ return this._addCheck({ kind: "duration", ...h.errToObj(e) });
982
966
  }
983
967
  regex(e, s) {
984
968
  return this._addCheck({
985
969
  kind: "regex",
986
970
  regex: e,
987
- ...l.errToObj(s)
971
+ ...h.errToObj(s)
988
972
  });
989
973
  }
990
974
  includes(e, s) {
991
975
  return this._addCheck({
992
976
  kind: "includes",
993
977
  value: e,
994
- position: s == null ? void 0 : s.position,
995
- ...l.errToObj(s == null ? void 0 : s.message)
978
+ position: s?.position,
979
+ ...h.errToObj(s?.message)
996
980
  });
997
981
  }
998
982
  startsWith(e, s) {
999
983
  return this._addCheck({
1000
984
  kind: "startsWith",
1001
985
  value: e,
1002
- ...l.errToObj(s)
986
+ ...h.errToObj(s)
1003
987
  });
1004
988
  }
1005
989
  endsWith(e, s) {
1006
990
  return this._addCheck({
1007
991
  kind: "endsWith",
1008
992
  value: e,
1009
- ...l.errToObj(s)
993
+ ...h.errToObj(s)
1010
994
  });
1011
995
  }
1012
996
  min(e, s) {
1013
997
  return this._addCheck({
1014
998
  kind: "min",
1015
999
  value: e,
1016
- ...l.errToObj(s)
1000
+ ...h.errToObj(s)
1017
1001
  });
1018
1002
  }
1019
1003
  max(e, s) {
1020
1004
  return this._addCheck({
1021
1005
  kind: "max",
1022
1006
  value: e,
1023
- ...l.errToObj(s)
1007
+ ...h.errToObj(s)
1024
1008
  });
1025
1009
  }
1026
1010
  length(e, s) {
1027
1011
  return this._addCheck({
1028
1012
  kind: "length",
1029
1013
  value: e,
1030
- ...l.errToObj(s)
1014
+ ...h.errToObj(s)
1031
1015
  });
1032
1016
  }
1033
1017
  /**
1034
1018
  * Equivalent to `.min(1)`
1035
1019
  */
1036
1020
  nonempty(e) {
1037
- return this.min(1, l.errToObj(e));
1021
+ return this.min(1, h.errToObj(e));
1038
1022
  }
1039
1023
  trim() {
1040
- return new Z({
1024
+ return new j({
1041
1025
  ...this._def,
1042
1026
  checks: [...this._def.checks, { kind: "trim" }]
1043
1027
  });
1044
1028
  }
1045
1029
  toLowerCase() {
1046
- return new Z({
1030
+ return new j({
1047
1031
  ...this._def,
1048
1032
  checks: [...this._def.checks, { kind: "toLowerCase" }]
1049
1033
  });
1050
1034
  }
1051
1035
  toUpperCase() {
1052
- return new Z({
1036
+ return new j({
1053
1037
  ...this._def,
1054
1038
  checks: [...this._def.checks, { kind: "toUpperCase" }]
1055
1039
  });
@@ -1115,75 +1099,75 @@ class Z extends y {
1115
1099
  return e;
1116
1100
  }
1117
1101
  }
1118
- Z.create = (t) => new Z({
1102
+ j.create = (t) => new j({
1119
1103
  checks: [],
1120
- typeName: m.ZodString,
1121
- coerce: (t == null ? void 0 : t.coerce) ?? !1,
1104
+ typeName: p.ZodString,
1105
+ coerce: t?.coerce ?? !1,
1122
1106
  ...g(t)
1123
1107
  });
1124
- function qt(t, e) {
1108
+ function Ct(t, e) {
1125
1109
  const s = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = s > n ? s : n, a = Number.parseInt(t.toFixed(r).replace(".", "")), i = Number.parseInt(e.toFixed(r).replace(".", ""));
1126
1110
  return a % i / 10 ** r;
1127
1111
  }
1128
- class J extends y {
1112
+ class Q extends v {
1129
1113
  constructor() {
1130
1114
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1131
1115
  }
1132
1116
  _parse(e) {
1133
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== d.number) {
1117
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== f.number) {
1134
1118
  const a = this._getOrReturnCtx(e);
1135
1119
  return u(a, {
1136
- code: o.invalid_type,
1137
- expected: d.number,
1120
+ code: c.invalid_type,
1121
+ expected: f.number,
1138
1122
  received: a.parsedType
1139
- }), p;
1123
+ }), m;
1140
1124
  }
1141
1125
  let n;
1142
- const r = new R();
1126
+ const r = new T();
1143
1127
  for (const a of this._def.checks)
1144
1128
  a.kind === "int" ? _.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1145
- code: o.invalid_type,
1129
+ code: c.invalid_type,
1146
1130
  expected: "integer",
1147
1131
  received: "float",
1148
1132
  message: a.message
1149
1133
  }), r.dirty()) : a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1150
- code: o.too_small,
1134
+ code: c.too_small,
1151
1135
  minimum: a.value,
1152
1136
  type: "number",
1153
1137
  inclusive: a.inclusive,
1154
1138
  exact: !1,
1155
1139
  message: a.message
1156
1140
  }), r.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1157
- code: o.too_big,
1141
+ code: c.too_big,
1158
1142
  maximum: a.value,
1159
1143
  type: "number",
1160
1144
  inclusive: a.inclusive,
1161
1145
  exact: !1,
1162
1146
  message: a.message
1163
- }), r.dirty()) : a.kind === "multipleOf" ? qt(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
1164
- code: o.not_multiple_of,
1147
+ }), r.dirty()) : a.kind === "multipleOf" ? Ct(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), u(n, {
1148
+ code: c.not_multiple_of,
1165
1149
  multipleOf: a.value,
1166
1150
  message: a.message
1167
1151
  }), r.dirty()) : a.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
1168
- code: o.not_finite,
1152
+ code: c.not_finite,
1169
1153
  message: a.message
1170
1154
  }), r.dirty()) : _.assertNever(a);
1171
1155
  return { status: r.value, value: e.data };
1172
1156
  }
1173
1157
  gte(e, s) {
1174
- return this.setLimit("min", e, !0, l.toString(s));
1158
+ return this.setLimit("min", e, !0, h.toString(s));
1175
1159
  }
1176
1160
  gt(e, s) {
1177
- return this.setLimit("min", e, !1, l.toString(s));
1161
+ return this.setLimit("min", e, !1, h.toString(s));
1178
1162
  }
1179
1163
  lte(e, s) {
1180
- return this.setLimit("max", e, !0, l.toString(s));
1164
+ return this.setLimit("max", e, !0, h.toString(s));
1181
1165
  }
1182
1166
  lt(e, s) {
1183
- return this.setLimit("max", e, !1, l.toString(s));
1167
+ return this.setLimit("max", e, !1, h.toString(s));
1184
1168
  }
1185
1169
  setLimit(e, s, n, r) {
1186
- return new J({
1170
+ return new Q({
1187
1171
  ...this._def,
1188
1172
  checks: [
1189
1173
  ...this._def.checks,
@@ -1191,13 +1175,13 @@ class J extends y {
1191
1175
  kind: e,
1192
1176
  value: s,
1193
1177
  inclusive: n,
1194
- message: l.toString(r)
1178
+ message: h.toString(r)
1195
1179
  }
1196
1180
  ]
1197
1181
  });
1198
1182
  }
1199
1183
  _addCheck(e) {
1200
- return new J({
1184
+ return new Q({
1201
1185
  ...this._def,
1202
1186
  checks: [...this._def.checks, e]
1203
1187
  });
@@ -1205,7 +1189,7 @@ class J extends y {
1205
1189
  int(e) {
1206
1190
  return this._addCheck({
1207
1191
  kind: "int",
1208
- message: l.toString(e)
1192
+ message: h.toString(e)
1209
1193
  });
1210
1194
  }
1211
1195
  positive(e) {
@@ -1213,7 +1197,7 @@ class J extends y {
1213
1197
  kind: "min",
1214
1198
  value: 0,
1215
1199
  inclusive: !1,
1216
- message: l.toString(e)
1200
+ message: h.toString(e)
1217
1201
  });
1218
1202
  }
1219
1203
  negative(e) {
@@ -1221,7 +1205,7 @@ class J extends y {
1221
1205
  kind: "max",
1222
1206
  value: 0,
1223
1207
  inclusive: !1,
1224
- message: l.toString(e)
1208
+ message: h.toString(e)
1225
1209
  });
1226
1210
  }
1227
1211
  nonpositive(e) {
@@ -1229,7 +1213,7 @@ class J extends y {
1229
1213
  kind: "max",
1230
1214
  value: 0,
1231
1215
  inclusive: !0,
1232
- message: l.toString(e)
1216
+ message: h.toString(e)
1233
1217
  });
1234
1218
  }
1235
1219
  nonnegative(e) {
@@ -1237,20 +1221,20 @@ class J extends y {
1237
1221
  kind: "min",
1238
1222
  value: 0,
1239
1223
  inclusive: !0,
1240
- message: l.toString(e)
1224
+ message: h.toString(e)
1241
1225
  });
1242
1226
  }
1243
1227
  multipleOf(e, s) {
1244
1228
  return this._addCheck({
1245
1229
  kind: "multipleOf",
1246
1230
  value: e,
1247
- message: l.toString(s)
1231
+ message: h.toString(s)
1248
1232
  });
1249
1233
  }
1250
1234
  finite(e) {
1251
1235
  return this._addCheck({
1252
1236
  kind: "finite",
1253
- message: l.toString(e)
1237
+ message: h.toString(e)
1254
1238
  });
1255
1239
  }
1256
1240
  safe(e) {
@@ -1258,12 +1242,12 @@ class J extends y {
1258
1242
  kind: "min",
1259
1243
  inclusive: !0,
1260
1244
  value: Number.MIN_SAFE_INTEGER,
1261
- message: l.toString(e)
1245
+ message: h.toString(e)
1262
1246
  })._addCheck({
1263
1247
  kind: "max",
1264
1248
  inclusive: !0,
1265
1249
  value: Number.MAX_SAFE_INTEGER,
1266
- message: l.toString(e)
1250
+ message: h.toString(e)
1267
1251
  });
1268
1252
  }
1269
1253
  get minValue() {
@@ -1291,13 +1275,13 @@ class J extends y {
1291
1275
  return Number.isFinite(s) && Number.isFinite(e);
1292
1276
  }
1293
1277
  }
1294
- J.create = (t) => new J({
1278
+ Q.create = (t) => new Q({
1295
1279
  checks: [],
1296
- typeName: m.ZodNumber,
1297
- coerce: (t == null ? void 0 : t.coerce) || !1,
1280
+ typeName: p.ZodNumber,
1281
+ coerce: t?.coerce || !1,
1298
1282
  ...g(t)
1299
1283
  });
1300
- class Y extends y {
1284
+ class te extends v {
1301
1285
  constructor() {
1302
1286
  super(...arguments), this.min = this.gte, this.max = this.lte;
1303
1287
  }
@@ -1308,25 +1292,25 @@ class Y extends y {
1308
1292
  } catch {
1309
1293
  return this._getInvalidInput(e);
1310
1294
  }
1311
- if (this._getType(e) !== d.bigint)
1295
+ if (this._getType(e) !== f.bigint)
1312
1296
  return this._getInvalidInput(e);
1313
1297
  let n;
1314
- const r = new R();
1298
+ const r = new T();
1315
1299
  for (const a of this._def.checks)
1316
1300
  a.kind === "min" ? (a.inclusive ? e.data < a.value : e.data <= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1317
- code: o.too_small,
1301
+ code: c.too_small,
1318
1302
  type: "bigint",
1319
1303
  minimum: a.value,
1320
1304
  inclusive: a.inclusive,
1321
1305
  message: a.message
1322
1306
  }), r.dirty()) : a.kind === "max" ? (a.inclusive ? e.data > a.value : e.data >= a.value) && (n = this._getOrReturnCtx(e, n), u(n, {
1323
- code: o.too_big,
1307
+ code: c.too_big,
1324
1308
  type: "bigint",
1325
1309
  maximum: a.value,
1326
1310
  inclusive: a.inclusive,
1327
1311
  message: a.message
1328
1312
  }), r.dirty()) : a.kind === "multipleOf" ? e.data % a.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), u(n, {
1329
- code: o.not_multiple_of,
1313
+ code: c.not_multiple_of,
1330
1314
  multipleOf: a.value,
1331
1315
  message: a.message
1332
1316
  }), r.dirty()) : _.assertNever(a);
@@ -1335,25 +1319,25 @@ class Y extends y {
1335
1319
  _getInvalidInput(e) {
1336
1320
  const s = this._getOrReturnCtx(e);
1337
1321
  return u(s, {
1338
- code: o.invalid_type,
1339
- expected: d.bigint,
1322
+ code: c.invalid_type,
1323
+ expected: f.bigint,
1340
1324
  received: s.parsedType
1341
- }), p;
1325
+ }), m;
1342
1326
  }
1343
1327
  gte(e, s) {
1344
- return this.setLimit("min", e, !0, l.toString(s));
1328
+ return this.setLimit("min", e, !0, h.toString(s));
1345
1329
  }
1346
1330
  gt(e, s) {
1347
- return this.setLimit("min", e, !1, l.toString(s));
1331
+ return this.setLimit("min", e, !1, h.toString(s));
1348
1332
  }
1349
1333
  lte(e, s) {
1350
- return this.setLimit("max", e, !0, l.toString(s));
1334
+ return this.setLimit("max", e, !0, h.toString(s));
1351
1335
  }
1352
1336
  lt(e, s) {
1353
- return this.setLimit("max", e, !1, l.toString(s));
1337
+ return this.setLimit("max", e, !1, h.toString(s));
1354
1338
  }
1355
1339
  setLimit(e, s, n, r) {
1356
- return new Y({
1340
+ return new te({
1357
1341
  ...this._def,
1358
1342
  checks: [
1359
1343
  ...this._def.checks,
@@ -1361,13 +1345,13 @@ class Y extends y {
1361
1345
  kind: e,
1362
1346
  value: s,
1363
1347
  inclusive: n,
1364
- message: l.toString(r)
1348
+ message: h.toString(r)
1365
1349
  }
1366
1350
  ]
1367
1351
  });
1368
1352
  }
1369
1353
  _addCheck(e) {
1370
- return new Y({
1354
+ return new te({
1371
1355
  ...this._def,
1372
1356
  checks: [...this._def.checks, e]
1373
1357
  });
@@ -1377,7 +1361,7 @@ class Y extends y {
1377
1361
  kind: "min",
1378
1362
  value: BigInt(0),
1379
1363
  inclusive: !1,
1380
- message: l.toString(e)
1364
+ message: h.toString(e)
1381
1365
  });
1382
1366
  }
1383
1367
  negative(e) {
@@ -1385,7 +1369,7 @@ class Y extends y {
1385
1369
  kind: "max",
1386
1370
  value: BigInt(0),
1387
1371
  inclusive: !1,
1388
- message: l.toString(e)
1372
+ message: h.toString(e)
1389
1373
  });
1390
1374
  }
1391
1375
  nonpositive(e) {
@@ -1393,7 +1377,7 @@ class Y extends y {
1393
1377
  kind: "max",
1394
1378
  value: BigInt(0),
1395
1379
  inclusive: !0,
1396
- message: l.toString(e)
1380
+ message: h.toString(e)
1397
1381
  });
1398
1382
  }
1399
1383
  nonnegative(e) {
@@ -1401,14 +1385,14 @@ class Y extends y {
1401
1385
  kind: "min",
1402
1386
  value: BigInt(0),
1403
1387
  inclusive: !0,
1404
- message: l.toString(e)
1388
+ message: h.toString(e)
1405
1389
  });
1406
1390
  }
1407
1391
  multipleOf(e, s) {
1408
1392
  return this._addCheck({
1409
1393
  kind: "multipleOf",
1410
1394
  value: e,
1411
- message: l.toString(s)
1395
+ message: h.toString(s)
1412
1396
  });
1413
1397
  }
1414
1398
  get minValue() {
@@ -1424,58 +1408,58 @@ class Y extends y {
1424
1408
  return e;
1425
1409
  }
1426
1410
  }
1427
- Y.create = (t) => new Y({
1411
+ te.create = (t) => new te({
1428
1412
  checks: [],
1429
- typeName: m.ZodBigInt,
1430
- coerce: (t == null ? void 0 : t.coerce) ?? !1,
1413
+ typeName: p.ZodBigInt,
1414
+ coerce: t?.coerce ?? !1,
1431
1415
  ...g(t)
1432
1416
  });
1433
- class be extends y {
1417
+ class ge extends v {
1434
1418
  _parse(e) {
1435
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== d.boolean) {
1419
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== f.boolean) {
1436
1420
  const n = this._getOrReturnCtx(e);
1437
1421
  return u(n, {
1438
- code: o.invalid_type,
1439
- expected: d.boolean,
1422
+ code: c.invalid_type,
1423
+ expected: f.boolean,
1440
1424
  received: n.parsedType
1441
- }), p;
1425
+ }), m;
1442
1426
  }
1443
1427
  return E(e.data);
1444
1428
  }
1445
1429
  }
1446
- be.create = (t) => new be({
1447
- typeName: m.ZodBoolean,
1448
- coerce: (t == null ? void 0 : t.coerce) || !1,
1430
+ ge.create = (t) => new ge({
1431
+ typeName: p.ZodBoolean,
1432
+ coerce: t?.coerce || !1,
1449
1433
  ...g(t)
1450
1434
  });
1451
- class ie extends y {
1435
+ class ie extends v {
1452
1436
  _parse(e) {
1453
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== d.date) {
1437
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== f.date) {
1454
1438
  const a = this._getOrReturnCtx(e);
1455
1439
  return u(a, {
1456
- code: o.invalid_type,
1457
- expected: d.date,
1440
+ code: c.invalid_type,
1441
+ expected: f.date,
1458
1442
  received: a.parsedType
1459
- }), p;
1443
+ }), m;
1460
1444
  }
1461
1445
  if (Number.isNaN(e.data.getTime())) {
1462
1446
  const a = this._getOrReturnCtx(e);
1463
1447
  return u(a, {
1464
- code: o.invalid_date
1465
- }), p;
1448
+ code: c.invalid_date
1449
+ }), m;
1466
1450
  }
1467
- const n = new R();
1451
+ const n = new T();
1468
1452
  let r;
1469
1453
  for (const a of this._def.checks)
1470
1454
  a.kind === "min" ? e.data.getTime() < a.value && (r = this._getOrReturnCtx(e, r), u(r, {
1471
- code: o.too_small,
1455
+ code: c.too_small,
1472
1456
  message: a.message,
1473
1457
  inclusive: !0,
1474
1458
  exact: !1,
1475
1459
  minimum: a.value,
1476
1460
  type: "date"
1477
1461
  }), n.dirty()) : a.kind === "max" ? e.data.getTime() > a.value && (r = this._getOrReturnCtx(e, r), u(r, {
1478
- code: o.too_big,
1462
+ code: c.too_big,
1479
1463
  message: a.message,
1480
1464
  inclusive: !0,
1481
1465
  exact: !1,
@@ -1497,14 +1481,14 @@ class ie extends y {
1497
1481
  return this._addCheck({
1498
1482
  kind: "min",
1499
1483
  value: e.getTime(),
1500
- message: l.toString(s)
1484
+ message: h.toString(s)
1501
1485
  });
1502
1486
  }
1503
1487
  max(e, s) {
1504
1488
  return this._addCheck({
1505
1489
  kind: "max",
1506
1490
  value: e.getTime(),
1507
- message: l.toString(s)
1491
+ message: h.toString(s)
1508
1492
  });
1509
1493
  }
1510
1494
  get minDate() {
@@ -1522,62 +1506,62 @@ class ie extends y {
1522
1506
  }
1523
1507
  ie.create = (t) => new ie({
1524
1508
  checks: [],
1525
- coerce: (t == null ? void 0 : t.coerce) || !1,
1526
- typeName: m.ZodDate,
1509
+ coerce: t?.coerce || !1,
1510
+ typeName: p.ZodDate,
1527
1511
  ...g(t)
1528
1512
  });
1529
- class ke extends y {
1513
+ class Me extends v {
1530
1514
  _parse(e) {
1531
- if (this._getType(e) !== d.symbol) {
1515
+ if (this._getType(e) !== f.symbol) {
1532
1516
  const n = this._getOrReturnCtx(e);
1533
1517
  return u(n, {
1534
- code: o.invalid_type,
1535
- expected: d.symbol,
1518
+ code: c.invalid_type,
1519
+ expected: f.symbol,
1536
1520
  received: n.parsedType
1537
- }), p;
1521
+ }), m;
1538
1522
  }
1539
1523
  return E(e.data);
1540
1524
  }
1541
1525
  }
1542
- ke.create = (t) => new ke({
1543
- typeName: m.ZodSymbol,
1526
+ Me.create = (t) => new Me({
1527
+ typeName: p.ZodSymbol,
1544
1528
  ...g(t)
1545
1529
  });
1546
- class we extends y {
1530
+ class Ze extends v {
1547
1531
  _parse(e) {
1548
- if (this._getType(e) !== d.undefined) {
1532
+ if (this._getType(e) !== f.undefined) {
1549
1533
  const n = this._getOrReturnCtx(e);
1550
1534
  return u(n, {
1551
- code: o.invalid_type,
1552
- expected: d.undefined,
1535
+ code: c.invalid_type,
1536
+ expected: f.undefined,
1553
1537
  received: n.parsedType
1554
- }), p;
1538
+ }), m;
1555
1539
  }
1556
1540
  return E(e.data);
1557
1541
  }
1558
1542
  }
1559
- we.create = (t) => new we({
1560
- typeName: m.ZodUndefined,
1543
+ Ze.create = (t) => new Ze({
1544
+ typeName: p.ZodUndefined,
1561
1545
  ...g(t)
1562
1546
  });
1563
- class Se extends y {
1547
+ class je extends v {
1564
1548
  _parse(e) {
1565
- if (this._getType(e) !== d.null) {
1549
+ if (this._getType(e) !== f.null) {
1566
1550
  const n = this._getOrReturnCtx(e);
1567
1551
  return u(n, {
1568
- code: o.invalid_type,
1569
- expected: d.null,
1552
+ code: c.invalid_type,
1553
+ expected: f.null,
1570
1554
  received: n.parsedType
1571
- }), p;
1555
+ }), m;
1572
1556
  }
1573
1557
  return E(e.data);
1574
1558
  }
1575
1559
  }
1576
- Se.create = (t) => new Se({
1577
- typeName: m.ZodNull,
1560
+ je.create = (t) => new je({
1561
+ typeName: p.ZodNull,
1578
1562
  ...g(t)
1579
1563
  });
1580
- class Te extends y {
1564
+ class qe extends v {
1581
1565
  constructor() {
1582
1566
  super(...arguments), this._any = !0;
1583
1567
  }
@@ -1585,11 +1569,11 @@ class Te extends y {
1585
1569
  return E(e.data);
1586
1570
  }
1587
1571
  }
1588
- Te.create = (t) => new Te({
1589
- typeName: m.ZodAny,
1572
+ qe.create = (t) => new qe({
1573
+ typeName: p.ZodAny,
1590
1574
  ...g(t)
1591
1575
  });
1592
- class Re extends y {
1576
+ class ye extends v {
1593
1577
  constructor() {
1594
1578
  super(...arguments), this._unknown = !0;
1595
1579
  }
@@ -1597,55 +1581,55 @@ class Re extends y {
1597
1581
  return E(e.data);
1598
1582
  }
1599
1583
  }
1600
- Re.create = (t) => new Re({
1601
- typeName: m.ZodUnknown,
1584
+ ye.create = (t) => new ye({
1585
+ typeName: p.ZodUnknown,
1602
1586
  ...g(t)
1603
1587
  });
1604
- class $ extends y {
1588
+ class $ extends v {
1605
1589
  _parse(e) {
1606
1590
  const s = this._getOrReturnCtx(e);
1607
1591
  return u(s, {
1608
- code: o.invalid_type,
1609
- expected: d.never,
1592
+ code: c.invalid_type,
1593
+ expected: f.never,
1610
1594
  received: s.parsedType
1611
- }), p;
1595
+ }), m;
1612
1596
  }
1613
1597
  }
1614
1598
  $.create = (t) => new $({
1615
- typeName: m.ZodNever,
1599
+ typeName: p.ZodNever,
1616
1600
  ...g(t)
1617
1601
  });
1618
- class Ce extends y {
1602
+ class Pe extends v {
1619
1603
  _parse(e) {
1620
- if (this._getType(e) !== d.undefined) {
1604
+ if (this._getType(e) !== f.undefined) {
1621
1605
  const n = this._getOrReturnCtx(e);
1622
1606
  return u(n, {
1623
- code: o.invalid_type,
1624
- expected: d.void,
1607
+ code: c.invalid_type,
1608
+ expected: f.void,
1625
1609
  received: n.parsedType
1626
- }), p;
1610
+ }), m;
1627
1611
  }
1628
1612
  return E(e.data);
1629
1613
  }
1630
1614
  }
1631
- Ce.create = (t) => new Ce({
1632
- typeName: m.ZodVoid,
1615
+ Pe.create = (t) => new Pe({
1616
+ typeName: p.ZodVoid,
1633
1617
  ...g(t)
1634
1618
  });
1635
- class O extends y {
1619
+ class N extends v {
1636
1620
  _parse(e) {
1637
1621
  const { ctx: s, status: n } = this._processInputParams(e), r = this._def;
1638
- if (s.parsedType !== d.array)
1622
+ if (s.parsedType !== f.array)
1639
1623
  return u(s, {
1640
- code: o.invalid_type,
1641
- expected: d.array,
1624
+ code: c.invalid_type,
1625
+ expected: f.array,
1642
1626
  received: s.parsedType
1643
- }), p;
1627
+ }), m;
1644
1628
  if (r.exactLength !== null) {
1645
- const i = s.data.length > r.exactLength.value, c = s.data.length < r.exactLength.value;
1646
- (i || c) && (u(s, {
1647
- code: i ? o.too_big : o.too_small,
1648
- minimum: c ? r.exactLength.value : void 0,
1629
+ const i = s.data.length > r.exactLength.value, o = s.data.length < r.exactLength.value;
1630
+ (i || o) && (u(s, {
1631
+ code: i ? c.too_big : c.too_small,
1632
+ minimum: o ? r.exactLength.value : void 0,
1649
1633
  maximum: i ? r.exactLength.value : void 0,
1650
1634
  type: "array",
1651
1635
  inclusive: !0,
@@ -1654,75 +1638,74 @@ class O extends y {
1654
1638
  }), n.dirty());
1655
1639
  }
1656
1640
  if (r.minLength !== null && s.data.length < r.minLength.value && (u(s, {
1657
- code: o.too_small,
1641
+ code: c.too_small,
1658
1642
  minimum: r.minLength.value,
1659
1643
  type: "array",
1660
1644
  inclusive: !0,
1661
1645
  exact: !1,
1662
1646
  message: r.minLength.message
1663
1647
  }), n.dirty()), r.maxLength !== null && s.data.length > r.maxLength.value && (u(s, {
1664
- code: o.too_big,
1648
+ code: c.too_big,
1665
1649
  maximum: r.maxLength.value,
1666
1650
  type: "array",
1667
1651
  inclusive: !0,
1668
1652
  exact: !1,
1669
1653
  message: r.maxLength.message
1670
1654
  }), n.dirty()), s.common.async)
1671
- return Promise.all([...s.data].map((i, c) => r.type._parseAsync(new I(s, i, s.path, c)))).then((i) => R.mergeArray(n, i));
1672
- const a = [...s.data].map((i, c) => r.type._parseSync(new I(s, i, s.path, c)));
1673
- return R.mergeArray(n, a);
1655
+ return Promise.all([...s.data].map((i, o) => r.type._parseAsync(new O(s, i, s.path, o)))).then((i) => T.mergeArray(n, i));
1656
+ const a = [...s.data].map((i, o) => r.type._parseSync(new O(s, i, s.path, o)));
1657
+ return T.mergeArray(n, a);
1674
1658
  }
1675
1659
  get element() {
1676
1660
  return this._def.type;
1677
1661
  }
1678
1662
  min(e, s) {
1679
- return new O({
1663
+ return new N({
1680
1664
  ...this._def,
1681
- minLength: { value: e, message: l.toString(s) }
1665
+ minLength: { value: e, message: h.toString(s) }
1682
1666
  });
1683
1667
  }
1684
1668
  max(e, s) {
1685
- return new O({
1669
+ return new N({
1686
1670
  ...this._def,
1687
- maxLength: { value: e, message: l.toString(s) }
1671
+ maxLength: { value: e, message: h.toString(s) }
1688
1672
  });
1689
1673
  }
1690
1674
  length(e, s) {
1691
- return new O({
1675
+ return new N({
1692
1676
  ...this._def,
1693
- exactLength: { value: e, message: l.toString(s) }
1677
+ exactLength: { value: e, message: h.toString(s) }
1694
1678
  });
1695
1679
  }
1696
1680
  nonempty(e) {
1697
1681
  return this.min(1, e);
1698
1682
  }
1699
1683
  }
1700
- O.create = (t, e) => new O({
1684
+ N.create = (t, e) => new N({
1701
1685
  type: t,
1702
1686
  minLength: null,
1703
1687
  maxLength: null,
1704
1688
  exactLength: null,
1705
- typeName: m.ZodArray,
1689
+ typeName: p.ZodArray,
1706
1690
  ...g(e)
1707
1691
  });
1708
- function Q(t) {
1709
- if (t instanceof k) {
1692
+ function z(t) {
1693
+ if (t instanceof w) {
1710
1694
  const e = {};
1711
1695
  for (const s in t.shape) {
1712
1696
  const n = t.shape[s];
1713
- e[s] = L.create(Q(n));
1697
+ e[s] = L.create(z(n));
1714
1698
  }
1715
- return new k({
1699
+ return new w({
1716
1700
  ...t._def,
1717
1701
  shape: () => e
1718
1702
  });
1719
- } else
1720
- return t instanceof O ? new O({
1721
- ...t._def,
1722
- type: Q(t.element)
1723
- }) : t instanceof L ? L.create(Q(t.unwrap())) : t instanceof ee ? ee.create(Q(t.unwrap())) : t instanceof z ? z.create(t.items.map((e) => Q(e))) : t;
1703
+ } else return t instanceof N ? new N({
1704
+ ...t._def,
1705
+ type: z(t.element)
1706
+ }) : t instanceof L ? L.create(z(t.unwrap())) : t instanceof H ? H.create(z(t.unwrap())) : t instanceof U ? U.create(t.items.map((e) => z(e))) : t;
1724
1707
  }
1725
- class k extends y {
1708
+ class w extends v {
1726
1709
  constructor() {
1727
1710
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
1728
1711
  }
@@ -1733,82 +1716,80 @@ class k extends y {
1733
1716
  return this._cached = { shape: e, keys: s }, this._cached;
1734
1717
  }
1735
1718
  _parse(e) {
1736
- if (this._getType(e) !== d.object) {
1737
- const h = this._getOrReturnCtx(e);
1738
- return u(h, {
1739
- code: o.invalid_type,
1740
- expected: d.object,
1741
- received: h.parsedType
1742
- }), p;
1719
+ if (this._getType(e) !== f.object) {
1720
+ const l = this._getOrReturnCtx(e);
1721
+ return u(l, {
1722
+ code: c.invalid_type,
1723
+ expected: f.object,
1724
+ received: l.parsedType
1725
+ }), m;
1743
1726
  }
1744
- const { status: n, ctx: r } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), c = [];
1727
+ const { status: n, ctx: r } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
1745
1728
  if (!(this._def.catchall instanceof $ && this._def.unknownKeys === "strip"))
1746
- for (const h in r.data)
1747
- i.includes(h) || c.push(h);
1748
- const f = [];
1749
- for (const h of i) {
1750
- const v = a[h], V = r.data[h];
1751
- f.push({
1752
- key: { status: "valid", value: h },
1753
- value: v._parse(new I(r, V, r.path, h)),
1754
- alwaysSet: h in r.data
1729
+ for (const l in r.data)
1730
+ i.includes(l) || o.push(l);
1731
+ const d = [];
1732
+ for (const l of i) {
1733
+ const y = a[l], I = r.data[l];
1734
+ d.push({
1735
+ key: { status: "valid", value: l },
1736
+ value: y._parse(new O(r, I, r.path, l)),
1737
+ alwaysSet: l in r.data
1755
1738
  });
1756
1739
  }
1757
1740
  if (this._def.catchall instanceof $) {
1758
- const h = this._def.unknownKeys;
1759
- if (h === "passthrough")
1760
- for (const v of c)
1761
- f.push({
1762
- key: { status: "valid", value: v },
1763
- value: { status: "valid", value: r.data[v] }
1741
+ const l = this._def.unknownKeys;
1742
+ if (l === "passthrough")
1743
+ for (const y of o)
1744
+ d.push({
1745
+ key: { status: "valid", value: y },
1746
+ value: { status: "valid", value: r.data[y] }
1764
1747
  });
1765
- else if (h === "strict")
1766
- c.length > 0 && (u(r, {
1767
- code: o.unrecognized_keys,
1768
- keys: c
1748
+ else if (l === "strict")
1749
+ o.length > 0 && (u(r, {
1750
+ code: c.unrecognized_keys,
1751
+ keys: o
1769
1752
  }), n.dirty());
1770
- else if (h !== "strip")
1771
- throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1753
+ else if (l !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1772
1754
  } else {
1773
- const h = this._def.catchall;
1774
- for (const v of c) {
1775
- const V = r.data[v];
1776
- f.push({
1777
- key: { status: "valid", value: v },
1778
- value: h._parse(
1779
- new I(r, V, r.path, v)
1755
+ const l = this._def.catchall;
1756
+ for (const y of o) {
1757
+ const I = r.data[y];
1758
+ d.push({
1759
+ key: { status: "valid", value: y },
1760
+ value: l._parse(
1761
+ new O(r, I, r.path, y)
1780
1762
  //, ctx.child(key), value, getParsedType(value)
1781
1763
  ),
1782
- alwaysSet: v in r.data
1764
+ alwaysSet: y in r.data
1783
1765
  });
1784
1766
  }
1785
1767
  }
1786
1768
  return r.common.async ? Promise.resolve().then(async () => {
1787
- const h = [];
1788
- for (const v of f) {
1789
- const V = await v.key, G = await v.value;
1790
- h.push({
1791
- key: V,
1792
- value: G,
1793
- alwaysSet: v.alwaysSet
1769
+ const l = [];
1770
+ for (const y of d) {
1771
+ const I = await y.key, M = await y.value;
1772
+ l.push({
1773
+ key: I,
1774
+ value: M,
1775
+ alwaysSet: y.alwaysSet
1794
1776
  });
1795
1777
  }
1796
- return h;
1797
- }).then((h) => R.mergeObjectSync(n, h)) : R.mergeObjectSync(n, f);
1778
+ return l;
1779
+ }).then((l) => T.mergeObjectSync(n, l)) : T.mergeObjectSync(n, d);
1798
1780
  }
1799
1781
  get shape() {
1800
1782
  return this._def.shape();
1801
1783
  }
1802
1784
  strict(e) {
1803
- return l.errToObj, new k({
1785
+ return h.errToObj, new w({
1804
1786
  ...this._def,
1805
1787
  unknownKeys: "strict",
1806
1788
  ...e !== void 0 ? {
1807
1789
  errorMap: (s, n) => {
1808
- var a, i;
1809
- const r = ((i = (a = this._def).errorMap) == null ? void 0 : i.call(a, s, n).message) ?? n.defaultError;
1790
+ const r = this._def.errorMap?.(s, n).message ?? n.defaultError;
1810
1791
  return s.code === "unrecognized_keys" ? {
1811
- message: l.errToObj(e).message ?? r
1792
+ message: h.errToObj(e).message ?? r
1812
1793
  } : {
1813
1794
  message: r
1814
1795
  };
@@ -1817,13 +1798,13 @@ class k extends y {
1817
1798
  });
1818
1799
  }
1819
1800
  strip() {
1820
- return new k({
1801
+ return new w({
1821
1802
  ...this._def,
1822
1803
  unknownKeys: "strip"
1823
1804
  });
1824
1805
  }
1825
1806
  passthrough() {
1826
- return new k({
1807
+ return new w({
1827
1808
  ...this._def,
1828
1809
  unknownKeys: "passthrough"
1829
1810
  });
@@ -1846,7 +1827,7 @@ class k extends y {
1846
1827
  // }) as any;
1847
1828
  // };
1848
1829
  extend(e) {
1849
- return new k({
1830
+ return new w({
1850
1831
  ...this._def,
1851
1832
  shape: () => ({
1852
1833
  ...this._def.shape(),
@@ -1860,14 +1841,14 @@ class k extends y {
1860
1841
  * upgrade if you are experiencing issues.
1861
1842
  */
1862
1843
  merge(e) {
1863
- return new k({
1844
+ return new w({
1864
1845
  unknownKeys: e._def.unknownKeys,
1865
1846
  catchall: e._def.catchall,
1866
1847
  shape: () => ({
1867
1848
  ...this._def.shape(),
1868
1849
  ...e._def.shape()
1869
1850
  }),
1870
- typeName: m.ZodObject
1851
+ typeName: p.ZodObject
1871
1852
  });
1872
1853
  }
1873
1854
  // merge<
@@ -1930,7 +1911,7 @@ class k extends y {
1930
1911
  // return merged;
1931
1912
  // }
1932
1913
  catchall(e) {
1933
- return new k({
1914
+ return new w({
1934
1915
  ...this._def,
1935
1916
  catchall: e
1936
1917
  });
@@ -1939,7 +1920,7 @@ class k extends y {
1939
1920
  const s = {};
1940
1921
  for (const n of _.objectKeys(e))
1941
1922
  e[n] && this.shape[n] && (s[n] = this.shape[n]);
1942
- return new k({
1923
+ return new w({
1943
1924
  ...this._def,
1944
1925
  shape: () => s
1945
1926
  });
@@ -1948,7 +1929,7 @@ class k extends y {
1948
1929
  const s = {};
1949
1930
  for (const n of _.objectKeys(this.shape))
1950
1931
  e[n] || (s[n] = this.shape[n]);
1951
- return new k({
1932
+ return new w({
1952
1933
  ...this._def,
1953
1934
  shape: () => s
1954
1935
  });
@@ -1957,7 +1938,7 @@ class k extends y {
1957
1938
  * @deprecated
1958
1939
  */
1959
1940
  deepPartial() {
1960
- return Q(this);
1941
+ return z(this);
1961
1942
  }
1962
1943
  partial(e) {
1963
1944
  const s = {};
@@ -1965,7 +1946,7 @@ class k extends y {
1965
1946
  const r = this.shape[n];
1966
1947
  e && !e[n] ? s[n] = r : s[n] = r.optional();
1967
1948
  }
1968
- return new k({
1949
+ return new w({
1969
1950
  ...this._def,
1970
1951
  shape: () => s
1971
1952
  });
@@ -1981,51 +1962,51 @@ class k extends y {
1981
1962
  a = a._def.innerType;
1982
1963
  s[n] = a;
1983
1964
  }
1984
- return new k({
1965
+ return new w({
1985
1966
  ...this._def,
1986
1967
  shape: () => s
1987
1968
  });
1988
1969
  }
1989
1970
  keyof() {
1990
- return Ke(_.objectKeys(this.shape));
1971
+ return Ge(_.objectKeys(this.shape));
1991
1972
  }
1992
1973
  }
1993
- k.create = (t, e) => new k({
1974
+ w.create = (t, e) => new w({
1994
1975
  shape: () => t,
1995
1976
  unknownKeys: "strip",
1996
1977
  catchall: $.create(),
1997
- typeName: m.ZodObject,
1978
+ typeName: p.ZodObject,
1998
1979
  ...g(e)
1999
1980
  });
2000
- k.strictCreate = (t, e) => new k({
1981
+ w.strictCreate = (t, e) => new w({
2001
1982
  shape: () => t,
2002
1983
  unknownKeys: "strict",
2003
1984
  catchall: $.create(),
2004
- typeName: m.ZodObject,
1985
+ typeName: p.ZodObject,
2005
1986
  ...g(e)
2006
1987
  });
2007
- k.lazycreate = (t, e) => new k({
1988
+ w.lazycreate = (t, e) => new w({
2008
1989
  shape: t,
2009
1990
  unknownKeys: "strip",
2010
1991
  catchall: $.create(),
2011
- typeName: m.ZodObject,
1992
+ typeName: p.ZodObject,
2012
1993
  ...g(e)
2013
1994
  });
2014
- class le extends y {
1995
+ class oe extends v {
2015
1996
  _parse(e) {
2016
1997
  const { ctx: s } = this._processInputParams(e), n = this._def.options;
2017
1998
  function r(a) {
2018
- for (const c of a)
2019
- if (c.result.status === "valid")
2020
- return c.result;
2021
- for (const c of a)
2022
- if (c.result.status === "dirty")
2023
- return s.common.issues.push(...c.ctx.common.issues), c.result;
2024
- const i = a.map((c) => new j(c.ctx.common.issues));
1999
+ for (const o of a)
2000
+ if (o.result.status === "valid")
2001
+ return o.result;
2002
+ for (const o of a)
2003
+ if (o.result.status === "dirty")
2004
+ return s.common.issues.push(...o.ctx.common.issues), o.result;
2005
+ const i = a.map((o) => new q(o.ctx.common.issues));
2025
2006
  return u(s, {
2026
- code: o.invalid_union,
2007
+ code: c.invalid_union,
2027
2008
  unionErrors: i
2028
- }), p;
2009
+ }), m;
2029
2010
  }
2030
2011
  if (s.common.async)
2031
2012
  return Promise.all(n.map(async (a) => {
@@ -2049,77 +2030,76 @@ class le extends y {
2049
2030
  {
2050
2031
  let a;
2051
2032
  const i = [];
2052
- for (const f of n) {
2053
- const h = {
2033
+ for (const d of n) {
2034
+ const l = {
2054
2035
  ...s,
2055
2036
  common: {
2056
2037
  ...s.common,
2057
2038
  issues: []
2058
2039
  },
2059
2040
  parent: null
2060
- }, v = f._parseSync({
2041
+ }, y = d._parseSync({
2061
2042
  data: s.data,
2062
2043
  path: s.path,
2063
- parent: h
2044
+ parent: l
2064
2045
  });
2065
- if (v.status === "valid")
2066
- return v;
2067
- v.status === "dirty" && !a && (a = { result: v, ctx: h }), h.common.issues.length && i.push(h.common.issues);
2046
+ if (y.status === "valid")
2047
+ return y;
2048
+ y.status === "dirty" && !a && (a = { result: y, ctx: l }), l.common.issues.length && i.push(l.common.issues);
2068
2049
  }
2069
2050
  if (a)
2070
2051
  return s.common.issues.push(...a.ctx.common.issues), a.result;
2071
- const c = i.map((f) => new j(f));
2052
+ const o = i.map((d) => new q(d));
2072
2053
  return u(s, {
2073
- code: o.invalid_union,
2074
- unionErrors: c
2075
- }), p;
2054
+ code: c.invalid_union,
2055
+ unionErrors: o
2056
+ }), m;
2076
2057
  }
2077
2058
  }
2078
2059
  get options() {
2079
2060
  return this._def.options;
2080
2061
  }
2081
2062
  }
2082
- le.create = (t, e) => new le({
2063
+ oe.create = (t, e) => new oe({
2083
2064
  options: t,
2084
- typeName: m.ZodUnion,
2065
+ typeName: p.ZodUnion,
2085
2066
  ...g(e)
2086
2067
  });
2087
- function Ee(t, e) {
2068
+ function ve(t, e) {
2088
2069
  const s = P(t), n = P(e);
2089
2070
  if (t === e)
2090
2071
  return { valid: !0, data: t };
2091
- if (s === d.object && n === d.object) {
2092
- const r = _.objectKeys(e), a = _.objectKeys(t).filter((c) => r.indexOf(c) !== -1), i = { ...t, ...e };
2093
- for (const c of a) {
2094
- const f = Ee(t[c], e[c]);
2095
- if (!f.valid)
2072
+ if (s === f.object && n === f.object) {
2073
+ const r = _.objectKeys(e), a = _.objectKeys(t).filter((o) => r.indexOf(o) !== -1), i = { ...t, ...e };
2074
+ for (const o of a) {
2075
+ const d = ve(t[o], e[o]);
2076
+ if (!d.valid)
2096
2077
  return { valid: !1 };
2097
- i[c] = f.data;
2078
+ i[o] = d.data;
2098
2079
  }
2099
2080
  return { valid: !0, data: i };
2100
- } else if (s === d.array && n === d.array) {
2081
+ } else if (s === f.array && n === f.array) {
2101
2082
  if (t.length !== e.length)
2102
2083
  return { valid: !1 };
2103
2084
  const r = [];
2104
2085
  for (let a = 0; a < t.length; a++) {
2105
- const i = t[a], c = e[a], f = Ee(i, c);
2106
- if (!f.valid)
2086
+ const i = t[a], o = e[a], d = ve(i, o);
2087
+ if (!d.valid)
2107
2088
  return { valid: !1 };
2108
- r.push(f.data);
2089
+ r.push(d.data);
2109
2090
  }
2110
2091
  return { valid: !0, data: r };
2111
- } else
2112
- return s === d.date && n === d.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2092
+ } else return s === f.date && n === f.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2113
2093
  }
2114
- class fe extends y {
2094
+ class ce extends v {
2115
2095
  _parse(e) {
2116
2096
  const { status: s, ctx: n } = this._processInputParams(e), r = (a, i) => {
2117
- if (Be(a) || Be(i))
2118
- return p;
2119
- const c = Ee(a.value, i.value);
2120
- return c.valid ? ((ze(a) || ze(i)) && s.dirty(), { status: s.value, value: c.data }) : (u(n, {
2121
- code: o.invalid_intersection_types
2122
- }), p);
2097
+ if (Ne(a) || Ne(i))
2098
+ return m;
2099
+ const o = ve(a.value, i.value);
2100
+ return o.valid ? ((Oe(a) || Oe(i)) && s.dirty(), { status: s.value, value: o.data }) : (u(n, {
2101
+ code: c.invalid_intersection_types
2102
+ }), m);
2123
2103
  };
2124
2104
  return n.common.async ? Promise.all([
2125
2105
  this._def.left._parseAsync({
@@ -2143,63 +2123,63 @@ class fe extends y {
2143
2123
  }));
2144
2124
  }
2145
2125
  }
2146
- fe.create = (t, e, s) => new fe({
2126
+ ce.create = (t, e, s) => new ce({
2147
2127
  left: t,
2148
2128
  right: e,
2149
- typeName: m.ZodIntersection,
2129
+ typeName: p.ZodIntersection,
2150
2130
  ...g(s)
2151
2131
  });
2152
- class z extends y {
2132
+ class U extends v {
2153
2133
  _parse(e) {
2154
2134
  const { status: s, ctx: n } = this._processInputParams(e);
2155
- if (n.parsedType !== d.array)
2135
+ if (n.parsedType !== f.array)
2156
2136
  return u(n, {
2157
- code: o.invalid_type,
2158
- expected: d.array,
2137
+ code: c.invalid_type,
2138
+ expected: f.array,
2159
2139
  received: n.parsedType
2160
- }), p;
2140
+ }), m;
2161
2141
  if (n.data.length < this._def.items.length)
2162
2142
  return u(n, {
2163
- code: o.too_small,
2143
+ code: c.too_small,
2164
2144
  minimum: this._def.items.length,
2165
2145
  inclusive: !0,
2166
2146
  exact: !1,
2167
2147
  type: "array"
2168
- }), p;
2148
+ }), m;
2169
2149
  !this._def.rest && n.data.length > this._def.items.length && (u(n, {
2170
- code: o.too_big,
2150
+ code: c.too_big,
2171
2151
  maximum: this._def.items.length,
2172
2152
  inclusive: !0,
2173
2153
  exact: !1,
2174
2154
  type: "array"
2175
2155
  }), s.dirty());
2176
- const a = [...n.data].map((i, c) => {
2177
- const f = this._def.items[c] || this._def.rest;
2178
- return f ? f._parse(new I(n, i, n.path, c)) : null;
2156
+ const a = [...n.data].map((i, o) => {
2157
+ const d = this._def.items[o] || this._def.rest;
2158
+ return d ? d._parse(new O(n, i, n.path, o)) : null;
2179
2159
  }).filter((i) => !!i);
2180
- return n.common.async ? Promise.all(a).then((i) => R.mergeArray(s, i)) : R.mergeArray(s, a);
2160
+ return n.common.async ? Promise.all(a).then((i) => T.mergeArray(s, i)) : T.mergeArray(s, a);
2181
2161
  }
2182
2162
  get items() {
2183
2163
  return this._def.items;
2184
2164
  }
2185
2165
  rest(e) {
2186
- return new z({
2166
+ return new U({
2187
2167
  ...this._def,
2188
2168
  rest: e
2189
2169
  });
2190
2170
  }
2191
2171
  }
2192
- z.create = (t, e) => {
2172
+ U.create = (t, e) => {
2193
2173
  if (!Array.isArray(t))
2194
2174
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2195
- return new z({
2175
+ return new U({
2196
2176
  items: t,
2197
- typeName: m.ZodTuple,
2177
+ typeName: p.ZodTuple,
2198
2178
  rest: null,
2199
2179
  ...g(e)
2200
2180
  });
2201
2181
  };
2202
- class he extends y {
2182
+ class ue extends v {
2203
2183
  get keySchema() {
2204
2184
  return this._def.keyType;
2205
2185
  }
@@ -2208,39 +2188,39 @@ class he extends y {
2208
2188
  }
2209
2189
  _parse(e) {
2210
2190
  const { status: s, ctx: n } = this._processInputParams(e);
2211
- if (n.parsedType !== d.object)
2191
+ if (n.parsedType !== f.object)
2212
2192
  return u(n, {
2213
- code: o.invalid_type,
2214
- expected: d.object,
2193
+ code: c.invalid_type,
2194
+ expected: f.object,
2215
2195
  received: n.parsedType
2216
- }), p;
2196
+ }), m;
2217
2197
  const r = [], a = this._def.keyType, i = this._def.valueType;
2218
- for (const c in n.data)
2198
+ for (const o in n.data)
2219
2199
  r.push({
2220
- key: a._parse(new I(n, c, n.path, c)),
2221
- value: i._parse(new I(n, n.data[c], n.path, c)),
2222
- alwaysSet: c in n.data
2200
+ key: a._parse(new O(n, o, n.path, o)),
2201
+ value: i._parse(new O(n, n.data[o], n.path, o)),
2202
+ alwaysSet: o in n.data
2223
2203
  });
2224
- return n.common.async ? R.mergeObjectAsync(s, r) : R.mergeObjectSync(s, r);
2204
+ return n.common.async ? T.mergeObjectAsync(s, r) : T.mergeObjectSync(s, r);
2225
2205
  }
2226
2206
  get element() {
2227
2207
  return this._def.valueType;
2228
2208
  }
2229
2209
  static create(e, s, n) {
2230
- return s instanceof y ? new he({
2210
+ return s instanceof v ? new ue({
2231
2211
  keyType: e,
2232
2212
  valueType: s,
2233
- typeName: m.ZodRecord,
2213
+ typeName: p.ZodRecord,
2234
2214
  ...g(n)
2235
- }) : new he({
2236
- keyType: Z.create(),
2215
+ }) : new ue({
2216
+ keyType: j.create(),
2237
2217
  valueType: e,
2238
- typeName: m.ZodRecord,
2218
+ typeName: p.ZodRecord,
2239
2219
  ...g(s)
2240
2220
  });
2241
2221
  }
2242
2222
  }
2243
- class Ae extends y {
2223
+ class Le extends v {
2244
2224
  get keySchema() {
2245
2225
  return this._def.keyType;
2246
2226
  }
@@ -2249,64 +2229,64 @@ class Ae extends y {
2249
2229
  }
2250
2230
  _parse(e) {
2251
2231
  const { status: s, ctx: n } = this._processInputParams(e);
2252
- if (n.parsedType !== d.map)
2232
+ if (n.parsedType !== f.map)
2253
2233
  return u(n, {
2254
- code: o.invalid_type,
2255
- expected: d.map,
2234
+ code: c.invalid_type,
2235
+ expected: f.map,
2256
2236
  received: n.parsedType
2257
- }), p;
2258
- const r = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([c, f], h) => ({
2259
- key: r._parse(new I(n, c, n.path, [h, "key"])),
2260
- value: a._parse(new I(n, f, n.path, [h, "value"]))
2237
+ }), m;
2238
+ const r = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o, d], l) => ({
2239
+ key: r._parse(new O(n, o, n.path, [l, "key"])),
2240
+ value: a._parse(new O(n, d, n.path, [l, "value"]))
2261
2241
  }));
2262
2242
  if (n.common.async) {
2263
- const c = /* @__PURE__ */ new Map();
2243
+ const o = /* @__PURE__ */ new Map();
2264
2244
  return Promise.resolve().then(async () => {
2265
- for (const f of i) {
2266
- const h = await f.key, v = await f.value;
2267
- if (h.status === "aborted" || v.status === "aborted")
2268
- return p;
2269
- (h.status === "dirty" || v.status === "dirty") && s.dirty(), c.set(h.value, v.value);
2245
+ for (const d of i) {
2246
+ const l = await d.key, y = await d.value;
2247
+ if (l.status === "aborted" || y.status === "aborted")
2248
+ return m;
2249
+ (l.status === "dirty" || y.status === "dirty") && s.dirty(), o.set(l.value, y.value);
2270
2250
  }
2271
- return { status: s.value, value: c };
2251
+ return { status: s.value, value: o };
2272
2252
  });
2273
2253
  } else {
2274
- const c = /* @__PURE__ */ new Map();
2275
- for (const f of i) {
2276
- const h = f.key, v = f.value;
2277
- if (h.status === "aborted" || v.status === "aborted")
2278
- return p;
2279
- (h.status === "dirty" || v.status === "dirty") && s.dirty(), c.set(h.value, v.value);
2254
+ const o = /* @__PURE__ */ new Map();
2255
+ for (const d of i) {
2256
+ const l = d.key, y = d.value;
2257
+ if (l.status === "aborted" || y.status === "aborted")
2258
+ return m;
2259
+ (l.status === "dirty" || y.status === "dirty") && s.dirty(), o.set(l.value, y.value);
2280
2260
  }
2281
- return { status: s.value, value: c };
2261
+ return { status: s.value, value: o };
2282
2262
  }
2283
2263
  }
2284
2264
  }
2285
- Ae.create = (t, e, s) => new Ae({
2265
+ Le.create = (t, e, s) => new Le({
2286
2266
  valueType: e,
2287
2267
  keyType: t,
2288
- typeName: m.ZodMap,
2268
+ typeName: p.ZodMap,
2289
2269
  ...g(s)
2290
2270
  });
2291
- class X extends y {
2271
+ class se extends v {
2292
2272
  _parse(e) {
2293
2273
  const { status: s, ctx: n } = this._processInputParams(e);
2294
- if (n.parsedType !== d.set)
2274
+ if (n.parsedType !== f.set)
2295
2275
  return u(n, {
2296
- code: o.invalid_type,
2297
- expected: d.set,
2276
+ code: c.invalid_type,
2277
+ expected: f.set,
2298
2278
  received: n.parsedType
2299
- }), p;
2279
+ }), m;
2300
2280
  const r = this._def;
2301
2281
  r.minSize !== null && n.data.size < r.minSize.value && (u(n, {
2302
- code: o.too_small,
2282
+ code: c.too_small,
2303
2283
  minimum: r.minSize.value,
2304
2284
  type: "set",
2305
2285
  inclusive: !0,
2306
2286
  exact: !1,
2307
2287
  message: r.minSize.message
2308
2288
  }), s.dirty()), r.maxSize !== null && n.data.size > r.maxSize.value && (u(n, {
2309
- code: o.too_big,
2289
+ code: c.too_big,
2310
2290
  maximum: r.maxSize.value,
2311
2291
  type: "set",
2312
2292
  inclusive: !0,
@@ -2314,28 +2294,28 @@ class X extends y {
2314
2294
  message: r.maxSize.message
2315
2295
  }), s.dirty());
2316
2296
  const a = this._def.valueType;
2317
- function i(f) {
2318
- const h = /* @__PURE__ */ new Set();
2319
- for (const v of f) {
2320
- if (v.status === "aborted")
2321
- return p;
2322
- v.status === "dirty" && s.dirty(), h.add(v.value);
2297
+ function i(d) {
2298
+ const l = /* @__PURE__ */ new Set();
2299
+ for (const y of d) {
2300
+ if (y.status === "aborted")
2301
+ return m;
2302
+ y.status === "dirty" && s.dirty(), l.add(y.value);
2323
2303
  }
2324
- return { status: s.value, value: h };
2304
+ return { status: s.value, value: l };
2325
2305
  }
2326
- const c = [...n.data.values()].map((f, h) => a._parse(new I(n, f, n.path, h)));
2327
- return n.common.async ? Promise.all(c).then((f) => i(f)) : i(c);
2306
+ const o = [...n.data.values()].map((d, l) => a._parse(new O(n, d, n.path, l)));
2307
+ return n.common.async ? Promise.all(o).then((d) => i(d)) : i(o);
2328
2308
  }
2329
2309
  min(e, s) {
2330
- return new X({
2310
+ return new se({
2331
2311
  ...this._def,
2332
- minSize: { value: e, message: l.toString(s) }
2312
+ minSize: { value: e, message: h.toString(s) }
2333
2313
  });
2334
2314
  }
2335
2315
  max(e, s) {
2336
- return new X({
2316
+ return new se({
2337
2317
  ...this._def,
2338
- maxSize: { value: e, message: l.toString(s) }
2318
+ maxSize: { value: e, message: h.toString(s) }
2339
2319
  });
2340
2320
  }
2341
2321
  size(e, s) {
@@ -2345,14 +2325,14 @@ class X extends y {
2345
2325
  return this.min(1, e);
2346
2326
  }
2347
2327
  }
2348
- X.create = (t, e) => new X({
2328
+ se.create = (t, e) => new se({
2349
2329
  valueType: t,
2350
2330
  minSize: null,
2351
2331
  maxSize: null,
2352
- typeName: m.ZodSet,
2332
+ typeName: p.ZodSet,
2353
2333
  ...g(e)
2354
2334
  });
2355
- class Ne extends y {
2335
+ class $e extends v {
2356
2336
  get schema() {
2357
2337
  return this._def.getter();
2358
2338
  }
@@ -2361,20 +2341,20 @@ class Ne extends y {
2361
2341
  return this._def.getter()._parse({ data: s.data, path: s.path, parent: s });
2362
2342
  }
2363
2343
  }
2364
- Ne.create = (t, e) => new Ne({
2344
+ $e.create = (t, e) => new $e({
2365
2345
  getter: t,
2366
- typeName: m.ZodLazy,
2346
+ typeName: p.ZodLazy,
2367
2347
  ...g(e)
2368
2348
  });
2369
- class Oe extends y {
2349
+ class _e extends v {
2370
2350
  _parse(e) {
2371
2351
  if (e.data !== this._def.value) {
2372
2352
  const s = this._getOrReturnCtx(e);
2373
2353
  return u(s, {
2374
2354
  received: s.data,
2375
- code: o.invalid_literal,
2355
+ code: c.invalid_literal,
2376
2356
  expected: this._def.value
2377
- }), p;
2357
+ }), m;
2378
2358
  }
2379
2359
  return { status: "valid", value: e.data };
2380
2360
  }
@@ -2382,35 +2362,35 @@ class Oe extends y {
2382
2362
  return this._def.value;
2383
2363
  }
2384
2364
  }
2385
- Oe.create = (t, e) => new Oe({
2365
+ _e.create = (t, e) => new _e({
2386
2366
  value: t,
2387
- typeName: m.ZodLiteral,
2367
+ typeName: p.ZodLiteral,
2388
2368
  ...g(e)
2389
2369
  });
2390
- function Ke(t, e) {
2391
- return new K({
2370
+ function Ge(t, e) {
2371
+ return new F({
2392
2372
  values: t,
2393
- typeName: m.ZodEnum,
2373
+ typeName: p.ZodEnum,
2394
2374
  ...g(e)
2395
2375
  });
2396
2376
  }
2397
- class K extends y {
2377
+ class F extends v {
2398
2378
  _parse(e) {
2399
2379
  if (typeof e.data != "string") {
2400
2380
  const s = this._getOrReturnCtx(e), n = this._def.values;
2401
2381
  return u(s, {
2402
2382
  expected: _.joinValues(n),
2403
2383
  received: s.parsedType,
2404
- code: o.invalid_type
2405
- }), p;
2384
+ code: c.invalid_type
2385
+ }), m;
2406
2386
  }
2407
2387
  if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
2408
2388
  const s = this._getOrReturnCtx(e), n = this._def.values;
2409
2389
  return u(s, {
2410
2390
  received: s.data,
2411
- code: o.invalid_enum_value,
2391
+ code: c.invalid_enum_value,
2412
2392
  options: n
2413
- }), p;
2393
+ }), m;
2414
2394
  }
2415
2395
  return E(e.data);
2416
2396
  }
@@ -2436,37 +2416,37 @@ class K extends y {
2436
2416
  return e;
2437
2417
  }
2438
2418
  extract(e, s = this._def) {
2439
- return K.create(e, {
2419
+ return F.create(e, {
2440
2420
  ...this._def,
2441
2421
  ...s
2442
2422
  });
2443
2423
  }
2444
2424
  exclude(e, s = this._def) {
2445
- return K.create(this.options.filter((n) => !e.includes(n)), {
2425
+ return F.create(this.options.filter((n) => !e.includes(n)), {
2446
2426
  ...this._def,
2447
2427
  ...s
2448
2428
  });
2449
2429
  }
2450
2430
  }
2451
- K.create = Ke;
2452
- class Ie extends y {
2431
+ F.create = Ge;
2432
+ class Ue extends v {
2453
2433
  _parse(e) {
2454
2434
  const s = _.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
2455
- if (n.parsedType !== d.string && n.parsedType !== d.number) {
2435
+ if (n.parsedType !== f.string && n.parsedType !== f.number) {
2456
2436
  const r = _.objectValues(s);
2457
2437
  return u(n, {
2458
2438
  expected: _.joinValues(r),
2459
2439
  received: n.parsedType,
2460
- code: o.invalid_type
2461
- }), p;
2440
+ code: c.invalid_type
2441
+ }), m;
2462
2442
  }
2463
2443
  if (this._cache || (this._cache = new Set(_.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
2464
2444
  const r = _.objectValues(s);
2465
2445
  return u(n, {
2466
2446
  received: n.data,
2467
- code: o.invalid_enum_value,
2447
+ code: c.invalid_enum_value,
2468
2448
  options: r
2469
- }), p;
2449
+ }), m;
2470
2450
  }
2471
2451
  return E(e.data);
2472
2452
  }
@@ -2474,41 +2454,41 @@ class Ie extends y {
2474
2454
  return this._def.values;
2475
2455
  }
2476
2456
  }
2477
- Ie.create = (t, e) => new Ie({
2457
+ Ue.create = (t, e) => new Ue({
2478
2458
  values: t,
2479
- typeName: m.ZodNativeEnum,
2459
+ typeName: p.ZodNativeEnum,
2480
2460
  ...g(e)
2481
2461
  });
2482
- class me extends y {
2462
+ class de extends v {
2483
2463
  unwrap() {
2484
2464
  return this._def.type;
2485
2465
  }
2486
2466
  _parse(e) {
2487
2467
  const { ctx: s } = this._processInputParams(e);
2488
- if (s.parsedType !== d.promise && s.common.async === !1)
2468
+ if (s.parsedType !== f.promise && s.common.async === !1)
2489
2469
  return u(s, {
2490
- code: o.invalid_type,
2491
- expected: d.promise,
2470
+ code: c.invalid_type,
2471
+ expected: f.promise,
2492
2472
  received: s.parsedType
2493
- }), p;
2494
- const n = s.parsedType === d.promise ? s.data : Promise.resolve(s.data);
2473
+ }), m;
2474
+ const n = s.parsedType === f.promise ? s.data : Promise.resolve(s.data);
2495
2475
  return E(n.then((r) => this._def.type.parseAsync(r, {
2496
2476
  path: s.path,
2497
2477
  errorMap: s.common.contextualErrorMap
2498
2478
  })));
2499
2479
  }
2500
2480
  }
2501
- me.create = (t, e) => new me({
2481
+ de.create = (t, e) => new de({
2502
2482
  type: t,
2503
- typeName: m.ZodPromise,
2483
+ typeName: p.ZodPromise,
2504
2484
  ...g(e)
2505
2485
  });
2506
- class U extends y {
2486
+ class W extends v {
2507
2487
  innerType() {
2508
2488
  return this._def.schema;
2509
2489
  }
2510
2490
  sourceType() {
2511
- return this._def.schema._def.typeName === m.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2491
+ return this._def.schema._def.typeName === p.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2512
2492
  }
2513
2493
  _parse(e) {
2514
2494
  const { status: s, ctx: n } = this._processInputParams(e), r = this._def.effect || null, a = {
@@ -2522,45 +2502,45 @@ class U extends y {
2522
2502
  if (a.addIssue = a.addIssue.bind(a), r.type === "preprocess") {
2523
2503
  const i = r.transform(n.data, a);
2524
2504
  if (n.common.async)
2525
- return Promise.resolve(i).then(async (c) => {
2505
+ return Promise.resolve(i).then(async (o) => {
2526
2506
  if (s.value === "aborted")
2527
- return p;
2528
- const f = await this._def.schema._parseAsync({
2529
- data: c,
2507
+ return m;
2508
+ const d = await this._def.schema._parseAsync({
2509
+ data: o,
2530
2510
  path: n.path,
2531
2511
  parent: n
2532
2512
  });
2533
- return f.status === "aborted" ? p : f.status === "dirty" || s.value === "dirty" ? se(f.value) : f;
2513
+ return d.status === "aborted" ? m : d.status === "dirty" || s.value === "dirty" ? Y(d.value) : d;
2534
2514
  });
2535
2515
  {
2536
2516
  if (s.value === "aborted")
2537
- return p;
2538
- const c = this._def.schema._parseSync({
2517
+ return m;
2518
+ const o = this._def.schema._parseSync({
2539
2519
  data: i,
2540
2520
  path: n.path,
2541
2521
  parent: n
2542
2522
  });
2543
- return c.status === "aborted" ? p : c.status === "dirty" || s.value === "dirty" ? se(c.value) : c;
2523
+ return o.status === "aborted" ? m : o.status === "dirty" || s.value === "dirty" ? Y(o.value) : o;
2544
2524
  }
2545
2525
  }
2546
2526
  if (r.type === "refinement") {
2547
- const i = (c) => {
2548
- const f = r.refinement(c, a);
2527
+ const i = (o) => {
2528
+ const d = r.refinement(o, a);
2549
2529
  if (n.common.async)
2550
- return Promise.resolve(f);
2551
- if (f instanceof Promise)
2530
+ return Promise.resolve(d);
2531
+ if (d instanceof Promise)
2552
2532
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
2553
- return c;
2533
+ return o;
2554
2534
  };
2555
2535
  if (n.common.async === !1) {
2556
- const c = this._def.schema._parseSync({
2536
+ const o = this._def.schema._parseSync({
2557
2537
  data: n.data,
2558
2538
  path: n.path,
2559
2539
  parent: n
2560
2540
  });
2561
- return c.status === "aborted" ? p : (c.status === "dirty" && s.dirty(), i(c.value), { status: s.value, value: c.value });
2541
+ return o.status === "aborted" ? m : (o.status === "dirty" && s.dirty(), i(o.value), { status: s.value, value: o.value });
2562
2542
  } else
2563
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((c) => c.status === "aborted" ? p : (c.status === "dirty" && s.dirty(), i(c.value).then(() => ({ status: s.value, value: c.value }))));
2543
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? m : (o.status === "dirty" && s.dirty(), i(o.value).then(() => ({ status: s.value, value: o.value }))));
2564
2544
  }
2565
2545
  if (r.type === "transform")
2566
2546
  if (n.common.async === !1) {
@@ -2569,35 +2549,35 @@ class U extends y {
2569
2549
  path: n.path,
2570
2550
  parent: n
2571
2551
  });
2572
- if (!H(i))
2573
- return p;
2574
- const c = r.transform(i.value, a);
2575
- if (c instanceof Promise)
2552
+ if (!G(i))
2553
+ return m;
2554
+ const o = r.transform(i.value, a);
2555
+ if (o instanceof Promise)
2576
2556
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
2577
- return { status: s.value, value: c };
2557
+ return { status: s.value, value: o };
2578
2558
  } else
2579
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => H(i) ? Promise.resolve(r.transform(i.value, a)).then((c) => ({
2559
+ return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => G(i) ? Promise.resolve(r.transform(i.value, a)).then((o) => ({
2580
2560
  status: s.value,
2581
- value: c
2582
- })) : p);
2561
+ value: o
2562
+ })) : m);
2583
2563
  _.assertNever(r);
2584
2564
  }
2585
2565
  }
2586
- U.create = (t, e, s) => new U({
2566
+ W.create = (t, e, s) => new W({
2587
2567
  schema: t,
2588
- typeName: m.ZodEffects,
2568
+ typeName: p.ZodEffects,
2589
2569
  effect: e,
2590
2570
  ...g(s)
2591
2571
  });
2592
- U.createWithPreprocess = (t, e, s) => new U({
2572
+ W.createWithPreprocess = (t, e, s) => new W({
2593
2573
  schema: e,
2594
2574
  effect: { type: "preprocess", transform: t },
2595
- typeName: m.ZodEffects,
2575
+ typeName: p.ZodEffects,
2596
2576
  ...g(s)
2597
2577
  });
2598
- class L extends y {
2578
+ class L extends v {
2599
2579
  _parse(e) {
2600
- return this._getType(e) === d.undefined ? E(void 0) : this._def.innerType._parse(e);
2580
+ return this._getType(e) === f.undefined ? E(void 0) : this._def.innerType._parse(e);
2601
2581
  }
2602
2582
  unwrap() {
2603
2583
  return this._def.innerType;
@@ -2605,27 +2585,27 @@ class L extends y {
2605
2585
  }
2606
2586
  L.create = (t, e) => new L({
2607
2587
  innerType: t,
2608
- typeName: m.ZodOptional,
2588
+ typeName: p.ZodOptional,
2609
2589
  ...g(e)
2610
2590
  });
2611
- class ee extends y {
2591
+ class H extends v {
2612
2592
  _parse(e) {
2613
- return this._getType(e) === d.null ? E(null) : this._def.innerType._parse(e);
2593
+ return this._getType(e) === f.null ? E(null) : this._def.innerType._parse(e);
2614
2594
  }
2615
2595
  unwrap() {
2616
2596
  return this._def.innerType;
2617
2597
  }
2618
2598
  }
2619
- ee.create = (t, e) => new ee({
2599
+ H.create = (t, e) => new H({
2620
2600
  innerType: t,
2621
- typeName: m.ZodNullable,
2601
+ typeName: p.ZodNullable,
2622
2602
  ...g(e)
2623
2603
  });
2624
- class Me extends y {
2604
+ class xe extends v {
2625
2605
  _parse(e) {
2626
2606
  const { ctx: s } = this._processInputParams(e);
2627
2607
  let n = s.data;
2628
- return s.parsedType === d.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
2608
+ return s.parsedType === f.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
2629
2609
  data: n,
2630
2610
  path: s.path,
2631
2611
  parent: s
@@ -2635,13 +2615,13 @@ class Me extends y {
2635
2615
  return this._def.innerType;
2636
2616
  }
2637
2617
  }
2638
- Me.create = (t, e) => new Me({
2618
+ xe.create = (t, e) => new xe({
2639
2619
  innerType: t,
2640
- typeName: m.ZodDefault,
2620
+ typeName: p.ZodDefault,
2641
2621
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2642
2622
  ...g(e)
2643
2623
  });
2644
- class Ze extends y {
2624
+ class be extends v {
2645
2625
  _parse(e) {
2646
2626
  const { ctx: s } = this._processInputParams(e), n = {
2647
2627
  ...s,
@@ -2656,11 +2636,11 @@ class Ze extends y {
2656
2636
  ...n
2657
2637
  }
2658
2638
  });
2659
- return de(r) ? r.then((a) => ({
2639
+ return ae(r) ? r.then((a) => ({
2660
2640
  status: "valid",
2661
2641
  value: a.status === "valid" ? a.value : this._def.catchValue({
2662
2642
  get error() {
2663
- return new j(n.common.issues);
2643
+ return new q(n.common.issues);
2664
2644
  },
2665
2645
  input: n.data
2666
2646
  })
@@ -2668,7 +2648,7 @@ class Ze extends y {
2668
2648
  status: "valid",
2669
2649
  value: r.status === "valid" ? r.value : this._def.catchValue({
2670
2650
  get error() {
2671
- return new j(n.common.issues);
2651
+ return new q(n.common.issues);
2672
2652
  },
2673
2653
  input: n.data
2674
2654
  })
@@ -2678,30 +2658,30 @@ class Ze extends y {
2678
2658
  return this._def.innerType;
2679
2659
  }
2680
2660
  }
2681
- Ze.create = (t, e) => new Ze({
2661
+ be.create = (t, e) => new be({
2682
2662
  innerType: t,
2683
- typeName: m.ZodCatch,
2663
+ typeName: p.ZodCatch,
2684
2664
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2685
2665
  ...g(e)
2686
2666
  });
2687
- class je extends y {
2667
+ class Ve extends v {
2688
2668
  _parse(e) {
2689
- if (this._getType(e) !== d.nan) {
2669
+ if (this._getType(e) !== f.nan) {
2690
2670
  const n = this._getOrReturnCtx(e);
2691
2671
  return u(n, {
2692
- code: o.invalid_type,
2693
- expected: d.nan,
2672
+ code: c.invalid_type,
2673
+ expected: f.nan,
2694
2674
  received: n.parsedType
2695
- }), p;
2675
+ }), m;
2696
2676
  }
2697
2677
  return { status: "valid", value: e.data };
2698
2678
  }
2699
2679
  }
2700
- je.create = (t) => new je({
2701
- typeName: m.ZodNaN,
2680
+ Ve.create = (t) => new Ve({
2681
+ typeName: p.ZodNaN,
2702
2682
  ...g(t)
2703
2683
  });
2704
- class Pt extends y {
2684
+ class Et extends v {
2705
2685
  _parse(e) {
2706
2686
  const { ctx: s } = this._processInputParams(e), n = s.data;
2707
2687
  return this._def.type._parse({
@@ -2714,7 +2694,7 @@ class Pt extends y {
2714
2694
  return this._def.type;
2715
2695
  }
2716
2696
  }
2717
- class Pe extends y {
2697
+ class we extends v {
2718
2698
  _parse(e) {
2719
2699
  const { status: s, ctx: n } = this._processInputParams(e);
2720
2700
  if (n.common.async)
@@ -2724,7 +2704,7 @@ class Pe extends y {
2724
2704
  path: n.path,
2725
2705
  parent: n
2726
2706
  });
2727
- return a.status === "aborted" ? p : a.status === "dirty" ? (s.dirty(), se(a.value)) : this._def.out._parseAsync({
2707
+ return a.status === "aborted" ? m : a.status === "dirty" ? (s.dirty(), Y(a.value)) : this._def.out._parseAsync({
2728
2708
  data: a.value,
2729
2709
  path: n.path,
2730
2710
  parent: n
@@ -2736,7 +2716,7 @@ class Pe extends y {
2736
2716
  path: n.path,
2737
2717
  parent: n
2738
2718
  });
2739
- return r.status === "aborted" ? p : r.status === "dirty" ? (s.dirty(), {
2719
+ return r.status === "aborted" ? m : r.status === "dirty" ? (s.dirty(), {
2740
2720
  status: "dirty",
2741
2721
  value: r.value
2742
2722
  }) : this._def.out._parseSync({
@@ -2747,269 +2727,250 @@ class Pe extends y {
2747
2727
  }
2748
2728
  }
2749
2729
  static create(e, s) {
2750
- return new Pe({
2730
+ return new we({
2751
2731
  in: e,
2752
2732
  out: s,
2753
- typeName: m.ZodPipeline
2733
+ typeName: p.ZodPipeline
2754
2734
  });
2755
2735
  }
2756
2736
  }
2757
- class qe extends y {
2737
+ class ke extends v {
2758
2738
  _parse(e) {
2759
- const s = this._def.innerType._parse(e), n = (r) => (H(r) && (r.value = Object.freeze(r.value)), r);
2760
- return de(s) ? s.then((r) => n(r)) : n(s);
2739
+ const s = this._def.innerType._parse(e), n = (r) => (G(r) && (r.value = Object.freeze(r.value)), r);
2740
+ return ae(s) ? s.then((r) => n(r)) : n(s);
2761
2741
  }
2762
2742
  unwrap() {
2763
2743
  return this._def.innerType;
2764
2744
  }
2765
2745
  }
2766
- qe.create = (t, e) => new qe({
2746
+ ke.create = (t, e) => new ke({
2767
2747
  innerType: t,
2768
- typeName: m.ZodReadonly,
2748
+ typeName: p.ZodReadonly,
2769
2749
  ...g(e)
2770
2750
  });
2771
- k.lazycreate;
2772
- var m;
2751
+ var p;
2773
2752
  (function(t) {
2774
2753
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
2775
- })(m || (m = {}));
2776
- const x = Z.create, Le = J.create;
2777
- je.create;
2778
- Y.create;
2779
- const W = be.create;
2780
- ie.create;
2781
- ke.create;
2782
- we.create;
2783
- Se.create;
2784
- Te.create;
2785
- const pe = Re.create;
2754
+ })(p || (p = {}));
2755
+ const x = j.create, Se = Q.create, D = ge.create, le = ye.create;
2786
2756
  $.create;
2787
- Ce.create;
2788
- const Lt = O.create, ge = k.create;
2789
- k.strictCreate;
2790
- le.create;
2791
- fe.create;
2792
- z.create;
2793
- const $t = he.create;
2794
- Ae.create;
2795
- X.create;
2796
- Ne.create;
2797
- const b = Oe.create;
2798
- K.create;
2799
- Ie.create;
2800
- me.create;
2757
+ const At = N.create, fe = w.create;
2758
+ oe.create;
2759
+ ce.create;
2801
2760
  U.create;
2761
+ const Nt = ue.create, b = _e.create;
2762
+ F.create;
2763
+ de.create;
2802
2764
  L.create;
2803
- ee.create;
2804
- U.createWithPreprocess;
2805
- const Ut = 1, D = ge({
2765
+ H.create;
2766
+ const Ot = 1, V = fe({
2806
2767
  type: b("qp-bridge"),
2807
2768
  id: x().optional()
2808
- }), S = D.extend({
2809
- featureVersion: Le().optional()
2810
- }), Vt = D.extend({
2769
+ }), S = V.extend({
2770
+ featureVersion: Se().optional()
2771
+ }), It = V.extend({
2811
2772
  status: b("answerChanged"),
2812
2773
  question: x(),
2813
- answer: pe()
2814
- }), Bt = D.extend({
2774
+ answer: le()
2775
+ }), Mt = V.extend({
2815
2776
  action: b("commandExecuted"),
2816
2777
  commandName: x()
2817
- }), zt = D.extend({
2778
+ }), Zt = V.extend({
2818
2779
  action: b("questionnaireLoaded")
2819
- }), te = D.extend({
2780
+ }), J = V.extend({
2820
2781
  status: b("success")
2821
- }), Dt = D.extend({
2782
+ }), jt = V.extend({
2822
2783
  status: b("error"),
2823
2784
  message: x()
2824
- }), et = ge({
2785
+ }), Qe = fe({
2825
2786
  semanticColor: x().optional(),
2826
2787
  label: x(),
2827
2788
  description: x(),
2828
- disabled: W(),
2829
- required: W(),
2830
- hidden: W(),
2789
+ disabled: D(),
2790
+ required: D(),
2791
+ hidden: D(),
2831
2792
  errorMessage: x().optional(),
2832
- answer: pe().optional()
2833
- }), Gt = et.partial(), Qt = ge({
2793
+ answer: le().optional()
2794
+ }), qt = Qe.partial(), Pt = fe({
2834
2795
  id: x().uuid(),
2835
2796
  name: x(),
2836
2797
  mimeType: x(),
2837
2798
  blobUrl: x()
2838
- }), $e = $t(pe()), tt = ge({
2799
+ }), Re = Nt(le()), Fe = fe({
2839
2800
  label: x(),
2840
- hidden: W(),
2841
- collapsed: W()
2842
- }), Ft = tt.partial(), Wt = S.extend({
2801
+ hidden: D(),
2802
+ collapsed: D()
2803
+ }), Lt = Fe.partial(), $t = S.extend({
2843
2804
  action: b("getQuestion"),
2844
2805
  question: x()
2845
- }), Ht = te.extend({
2846
- question: et
2847
- }), Jt = S.extend({
2806
+ }), Ut = J.extend({
2807
+ question: Qe
2808
+ }), Vt = S.extend({
2848
2809
  action: b("setQuestion"),
2849
2810
  question: x(),
2850
- questionData: Gt
2851
- }), Yt = S.extend({
2811
+ questionData: qt
2812
+ }), Bt = S.extend({
2852
2813
  action: b("getGroup"),
2853
2814
  group: x()
2854
- }), Xt = te.extend({
2855
- group: tt
2856
- }), Kt = te.extend({
2857
- canSave: W()
2858
- }), es = S.extend({
2815
+ }), zt = J.extend({
2816
+ group: Fe
2817
+ }), Dt = J.extend({
2818
+ canSave: D()
2819
+ }), Gt = S.extend({
2859
2820
  action: b("canSave")
2860
- }), ts = S.extend({
2821
+ }), Qt = S.extend({
2861
2822
  action: b("setGroup"),
2862
2823
  group: x(),
2863
- groupData: Ft
2864
- }), ss = S.extend({
2824
+ groupData: Lt
2825
+ }), Ft = S.extend({
2865
2826
  action: b("setAnswer"),
2866
2827
  question: x(),
2867
- answer: pe()
2868
- }), ns = S.extend({
2828
+ answer: le()
2829
+ }), Wt = S.extend({
2869
2830
  action: b("busyIndicatorStart")
2870
- }), rs = S.extend({
2831
+ }), Ht = S.extend({
2871
2832
  action: b("busyIndicatorEnd")
2872
- }), as = S.extend({
2833
+ }), Jt = S.extend({
2873
2834
  action: b("saveQuestionnaire")
2874
- }), is = S.extend({
2835
+ }), Yt = S.extend({
2875
2836
  action: b("completeAndCloseQuestionnaire")
2876
- }), cs = S.extend({
2837
+ }), Xt = S.extend({
2877
2838
  action: b("executeCustomCommand"),
2878
2839
  commandName: x()
2879
- }), os = S.extend({
2840
+ }), Kt = S.extend({
2880
2841
  action: b("fetchEntities"),
2881
2842
  fetchXml: x()
2882
- }), us = te.extend({
2883
- entities: Lt($e)
2884
- }), ds = S.extend({
2843
+ }), es = J.extend({
2844
+ entities: At(Re)
2845
+ }), ts = S.extend({
2885
2846
  action: b("getEntityById"),
2886
2847
  entityName: x(),
2887
2848
  entityId: x()
2888
- }), ls = te.extend({
2889
- entity: $e
2890
- }), fs = S.extend({
2849
+ }), ss = J.extend({
2850
+ entity: Re
2851
+ }), ns = S.extend({
2891
2852
  action: b("saveEntity"),
2892
- entity: $e
2893
- }), hs = S.extend({
2853
+ entity: Re
2854
+ }), rs = S.extend({
2894
2855
  action: b("repeatGroup"),
2895
2856
  parentGroupName: x(),
2896
- groupIndex: Le()
2897
- }), ms = S.extend({
2857
+ groupIndex: Se()
2858
+ }), as = S.extend({
2898
2859
  action: b("addNewGroup"),
2899
2860
  groupName: x()
2900
- }), ps = S.extend({
2861
+ }), is = S.extend({
2901
2862
  action: b("deleteGroup"),
2902
2863
  parentGroupName: x(),
2903
- groupIndex: Le()
2864
+ groupIndex: Se()
2904
2865
  });
2905
- function Zs(t) {
2906
- return Qt.safeParse(t).success;
2866
+ function Rs(t) {
2867
+ return Pt.safeParse(t).success;
2907
2868
  }
2908
- function gs(t) {
2909
- return Vt.safeParse(t).success;
2869
+ function os(t) {
2870
+ return It.safeParse(t).success;
2910
2871
  }
2911
- function ys(t) {
2912
- return Bt.safeParse(t).success;
2872
+ function cs(t) {
2873
+ return Mt.safeParse(t).success;
2913
2874
  }
2914
- function vs(t) {
2915
- return zt.safeParse(t).success;
2875
+ function us(t) {
2876
+ return Zt.safeParse(t).success;
2916
2877
  }
2917
- function st(t) {
2918
- return D.safeParse(t).success;
2878
+ function We(t) {
2879
+ return V.safeParse(t).success;
2919
2880
  }
2920
- function js(t) {
2881
+ function Ts(t) {
2921
2882
  return S.safeParse(t).success;
2922
2883
  }
2923
- function _s(t) {
2924
- return te.safeParse(t).success;
2884
+ function ds(t) {
2885
+ return J.safeParse(t).success;
2925
2886
  }
2926
- function xs(t) {
2927
- return Dt.safeParse(t).success;
2887
+ function ls(t) {
2888
+ return jt.safeParse(t).success;
2928
2889
  }
2929
- function qs(t) {
2930
- return Wt.safeParse(t).success;
2890
+ function Cs(t) {
2891
+ return $t.safeParse(t).success;
2931
2892
  }
2932
- function bs(t) {
2933
- return Ht.safeParse(t).success;
2893
+ function fs(t) {
2894
+ return Ut.safeParse(t).success;
2934
2895
  }
2935
- function Ps(t) {
2936
- return ss.safeParse(t).success;
2896
+ function Es(t) {
2897
+ return Ft.safeParse(t).success;
2937
2898
  }
2938
- function Ls(t) {
2939
- return Jt.safeParse(t).success;
2899
+ function As(t) {
2900
+ return Vt.safeParse(t).success;
2940
2901
  }
2941
- function $s(t) {
2942
- return ts.safeParse(t).success;
2902
+ function Ns(t) {
2903
+ return Qt.safeParse(t).success;
2943
2904
  }
2944
- function Us(t) {
2945
- return Yt.safeParse(t).success;
2905
+ function Os(t) {
2906
+ return Bt.safeParse(t).success;
2946
2907
  }
2947
- function ks(t) {
2948
- return Xt.safeParse(t).success;
2908
+ function hs(t) {
2909
+ return zt.safeParse(t).success;
2949
2910
  }
2950
- function Vs(t) {
2951
- return Kt.safeParse(t).success;
2911
+ function Is(t) {
2912
+ return Dt.safeParse(t).success;
2952
2913
  }
2953
- function ws(t) {
2954
- return es.safeParse(t).success;
2914
+ function ps(t) {
2915
+ return Gt.safeParse(t).success;
2955
2916
  }
2956
- function Ss(t) {
2957
- return ns.safeParse(t).success;
2917
+ function ms(t) {
2918
+ return Wt.safeParse(t).success;
2958
2919
  }
2959
- function Ts(t) {
2960
- return rs.safeParse(t).success;
2920
+ function gs(t) {
2921
+ return Ht.safeParse(t).success;
2961
2922
  }
2962
- function Bs(t) {
2963
- return as.safeParse(t).success;
2923
+ function Ms(t) {
2924
+ return Jt.safeParse(t).success;
2964
2925
  }
2965
- function zs(t) {
2966
- return is.safeParse(t).success;
2926
+ function Zs(t) {
2927
+ return Yt.safeParse(t).success;
2967
2928
  }
2968
- function Ds(t) {
2969
- return cs.safeParse(t).success;
2929
+ function js(t) {
2930
+ return Xt.safeParse(t).success;
2970
2931
  }
2971
- function Gs(t) {
2972
- return Ss(t) || Ts(t);
2932
+ function qs(t) {
2933
+ return ms(t) || gs(t);
2973
2934
  }
2974
- function Rs(t, e) {
2975
- return !st(t) || t.id !== e || !("status" in t);
2935
+ function ys(t, e) {
2936
+ return !We(t) || t.id !== e || !("status" in t);
2976
2937
  }
2977
- function Qs(t) {
2978
- return os.safeParse(t).success;
2938
+ function Ps(t) {
2939
+ return Kt.safeParse(t).success;
2979
2940
  }
2980
- function Cs(t) {
2981
- return us.safeParse(t).success;
2941
+ function vs(t) {
2942
+ return es.safeParse(t).success;
2982
2943
  }
2983
- function Fs(t) {
2984
- return ds.safeParse(t).success;
2944
+ function Ls(t) {
2945
+ return ts.safeParse(t).success;
2985
2946
  }
2986
- function Es(t) {
2987
- return ls.safeParse(t).success;
2947
+ function _s(t) {
2948
+ return ss.safeParse(t).success;
2988
2949
  }
2989
- function Ws(t) {
2990
- return fs.safeParse(t).success;
2950
+ function $s(t) {
2951
+ return ns.safeParse(t).success;
2991
2952
  }
2992
- function Hs(t) {
2993
- return hs.safeParse(t).success;
2953
+ function Us(t) {
2954
+ return rs.safeParse(t).success;
2994
2955
  }
2995
- function Js(t) {
2996
- return ms.safeParse(t).success;
2956
+ function Vs(t) {
2957
+ return as.safeParse(t).success;
2997
2958
  }
2998
- function Ys(t) {
2999
- return ps.safeParse(t).success;
2959
+ function Bs(t) {
2960
+ return is.safeParse(t).success;
3000
2961
  }
3001
- function nt(t) {
2962
+ function He(t) {
3002
2963
  if (t instanceof File || t instanceof Blob)
3003
2964
  return URL.createObjectURL(t);
3004
2965
  if (typeof t == "string") {
3005
2966
  if (/^data:/.test(t)) {
3006
2967
  const a = t.match(/^data:([^;]+);base64,(.*)$/);
3007
2968
  if (a) {
3008
- const i = a[1], c = a[2], f = atob(c), h = new ArrayBuffer(f.length), v = new Uint8Array(h);
3009
- for (let G = 0; G < f.length; G++)
3010
- v[G] = f.charCodeAt(G);
3011
- const V = new Blob([h], { type: i });
3012
- return URL.createObjectURL(V);
2969
+ const i = a[1], o = a[2], d = atob(o), l = new ArrayBuffer(d.length), y = new Uint8Array(l);
2970
+ for (let M = 0; M < d.length; M++)
2971
+ y[M] = d.charCodeAt(M);
2972
+ const I = new Blob([l], { type: i });
2973
+ return URL.createObjectURL(I);
3013
2974
  }
3014
2975
  throw new Error("Invalid data URL format. Only base64 data URLs are supported.");
3015
2976
  }
@@ -3025,31 +2986,30 @@ function nt(t) {
3025
2986
  }
3026
2987
  throw new Error("Unsupported content type for blobUrl");
3027
2988
  }
3028
- function Xs(t, e, s, n) {
2989
+ function zs(t, e, s, n) {
3029
2990
  return {
3030
- id: n ?? Je(),
2991
+ id: n ?? Be(),
3031
2992
  name: t,
3032
2993
  mimeType: e,
3033
- blobUrl: nt(s)
2994
+ blobUrl: He(s)
3034
2995
  };
3035
2996
  }
3036
- function Ks(t, e) {
2997
+ function Ds(t, e) {
3037
2998
  let s = t.blobUrl;
3038
- return e.content !== void 0 && (s = nt(e.content)), {
2999
+ return e.content !== void 0 && (s = He(e.content)), {
3039
3000
  ...t,
3040
3001
  ...e,
3041
3002
  blobUrl: s
3042
3003
  };
3043
3004
  }
3044
- var Ge;
3045
- ((Ge = ct.env) == null ? void 0 : Ge.NODE_ENV) !== "test" && As();
3046
- function As() {
3047
- window.addEventListener("message", rt);
3005
+ Xe.env?.NODE_ENV !== "test" && xs();
3006
+ function xs() {
3007
+ window.addEventListener("message", Je);
3048
3008
  }
3049
- function en() {
3050
- window.removeEventListener("message", rt);
3009
+ function Gs() {
3010
+ window.removeEventListener("message", Je);
3051
3011
  }
3052
- async function tn(t, e) {
3012
+ async function Qs(t, e) {
3053
3013
  await C({
3054
3014
  type: "qp-bridge",
3055
3015
  action: "setAnswer",
@@ -3057,14 +3017,14 @@ async function tn(t, e) {
3057
3017
  answer: e
3058
3018
  });
3059
3019
  }
3060
- async function sn(t) {
3061
- return await Ns({
3020
+ async function Fs(t) {
3021
+ return await bs({
3062
3022
  type: "qp-bridge",
3063
3023
  action: "getQuestion",
3064
3024
  question: t
3065
3025
  });
3066
3026
  }
3067
- async function nn(t, e) {
3027
+ async function Ws(t, e) {
3068
3028
  await C({
3069
3029
  type: "qp-bridge",
3070
3030
  action: "setQuestion",
@@ -3072,14 +3032,14 @@ async function nn(t, e) {
3072
3032
  questionData: e
3073
3033
  });
3074
3034
  }
3075
- async function rn(t) {
3076
- return await Os({
3035
+ async function Hs(t) {
3036
+ return await ks({
3077
3037
  type: "qp-bridge",
3078
3038
  action: "getGroup",
3079
3039
  group: t
3080
3040
  });
3081
3041
  }
3082
- async function an(t, e) {
3042
+ async function Js(t, e) {
3083
3043
  await C({
3084
3044
  type: "qp-bridge",
3085
3045
  action: "setGroup",
@@ -3087,9 +3047,9 @@ async function an(t, e) {
3087
3047
  groupData: e
3088
3048
  });
3089
3049
  }
3090
- function cn(t) {
3050
+ function Ys(t) {
3091
3051
  const e = (s) => {
3092
- gs(s.data) && t(s.data.question, s.data.answer);
3052
+ os(s.data) && t(s.data.question, s.data.answer);
3093
3053
  };
3094
3054
  return window.addEventListener("message", e), {
3095
3055
  cancelSubscription: () => {
@@ -3097,7 +3057,7 @@ function cn(t) {
3097
3057
  }
3098
3058
  };
3099
3059
  }
3100
- async function on(t) {
3060
+ async function Xs(t) {
3101
3061
  await C({
3102
3062
  type: "qp-bridge",
3103
3063
  action: "busyIndicatorStart"
@@ -3111,54 +3071,54 @@ async function on(t) {
3111
3071
  });
3112
3072
  }
3113
3073
  }
3114
- async function un() {
3074
+ async function Ks() {
3115
3075
  await C({
3116
3076
  type: "qp-bridge",
3117
3077
  action: "saveQuestionnaire"
3118
3078
  });
3119
3079
  }
3120
- async function dn() {
3080
+ async function en() {
3121
3081
  await C({
3122
3082
  type: "qp-bridge",
3123
3083
  action: "completeAndCloseQuestionnaire"
3124
3084
  });
3125
3085
  }
3126
- async function ln(t) {
3086
+ async function tn(t) {
3127
3087
  await C({
3128
3088
  type: "qp-bridge",
3129
3089
  action: "executeCustomCommand",
3130
3090
  commandName: t
3131
3091
  });
3132
3092
  }
3133
- const ne = [], re = [], ae = [];
3134
- function fn(t) {
3135
- return ae.includes(t) || ae.push(t), {
3093
+ const X = [], K = [], ee = [];
3094
+ function sn(t) {
3095
+ return ee.includes(t) || ee.push(t), {
3136
3096
  cancelSubscription: () => {
3137
- const e = ae.indexOf(t);
3138
- e !== -1 && ae.splice(e, 1);
3097
+ const e = ee.indexOf(t);
3098
+ e !== -1 && ee.splice(e, 1);
3139
3099
  }
3140
3100
  };
3141
3101
  }
3142
- function hn(t) {
3143
- return re.includes(t) || re.push(t), {
3102
+ function nn(t) {
3103
+ return K.includes(t) || K.push(t), {
3144
3104
  cancelSubscription: () => {
3145
- const e = re.indexOf(t);
3146
- e !== -1 && re.splice(e, 1);
3105
+ const e = K.indexOf(t);
3106
+ e !== -1 && K.splice(e, 1);
3147
3107
  }
3148
3108
  };
3149
3109
  }
3150
- function mn(t) {
3151
- return ne.includes(t) || ne.push(t), {
3110
+ function rn(t) {
3111
+ return X.includes(t) || X.push(t), {
3152
3112
  cancelSubscription: () => {
3153
- const e = ne.indexOf(t);
3154
- e !== -1 && ne.splice(e, 1);
3113
+ const e = X.indexOf(t);
3114
+ e !== -1 && X.splice(e, 1);
3155
3115
  }
3156
3116
  };
3157
3117
  }
3158
- async function rt(t) {
3118
+ async function Je(t) {
3159
3119
  try {
3160
- if (ys(t.data) && re.forEach((e) => e(t.data.commandName)), vs(t.data) && ae.forEach((e) => e()), ws(t.data)) {
3161
- const e = await Promise.all(ne.map((n) => n())), s = {
3120
+ if (cs(t.data) && K.forEach((e) => e(t.data.commandName)), us(t.data) && ee.forEach((e) => e()), ps(t.data)) {
3121
+ const e = await Promise.all(X.map((n) => n())), s = {
3162
3122
  type: "qp-bridge",
3163
3123
  status: "success",
3164
3124
  id: t.data.id,
@@ -3170,38 +3130,38 @@ async function rt(t) {
3170
3130
  const s = {
3171
3131
  type: "qp-bridge",
3172
3132
  status: "error",
3173
- id: st(t.data) ? t.data.id : void 0,
3133
+ id: We(t.data) ? t.data.id : void 0,
3174
3134
  message: e instanceof Error ? e.message : "Unknown error"
3175
3135
  };
3176
3136
  window.parent.postMessage(s, "*");
3177
3137
  }
3178
3138
  }
3179
- async function pn(t) {
3180
- return await Is({
3139
+ async function an(t) {
3140
+ return await ws({
3181
3141
  type: "qp-bridge",
3182
3142
  action: "fetchEntities",
3183
3143
  fetchXml: t
3184
3144
  });
3185
3145
  }
3186
- async function gn(t, e) {
3187
- return await Ms({
3146
+ async function on(t, e) {
3147
+ return await Ss({
3188
3148
  type: "qp-bridge",
3189
3149
  action: "getEntityById",
3190
3150
  entityName: t,
3191
3151
  entityId: e
3192
3152
  });
3193
3153
  }
3194
- function yn() {
3154
+ function cn() {
3195
3155
  return { isNew: !0 };
3196
3156
  }
3197
- async function vn(t) {
3157
+ async function un(t) {
3198
3158
  await C({
3199
3159
  type: "qp-bridge",
3200
3160
  action: "saveEntity",
3201
3161
  entity: t
3202
3162
  });
3203
3163
  }
3204
- async function _n(t, e) {
3164
+ async function dn(t, e) {
3205
3165
  await C({
3206
3166
  type: "qp-bridge",
3207
3167
  action: "repeatGroup",
@@ -3209,14 +3169,14 @@ async function _n(t, e) {
3209
3169
  groupIndex: e
3210
3170
  });
3211
3171
  }
3212
- async function xn(t) {
3172
+ async function ln(t) {
3213
3173
  await C({
3214
3174
  type: "qp-bridge",
3215
3175
  action: "addNewGroup",
3216
3176
  groupName: t
3217
3177
  });
3218
3178
  }
3219
- async function bn(t, e) {
3179
+ async function fn(t, e) {
3220
3180
  await C({
3221
3181
  type: "qp-bridge",
3222
3182
  action: "deleteGroup",
@@ -3224,123 +3184,123 @@ async function bn(t, e) {
3224
3184
  groupIndex: e
3225
3185
  });
3226
3186
  }
3227
- async function ce(t, e) {
3187
+ async function ne(t, e) {
3228
3188
  return new Promise((s, n) => {
3229
- const r = Je(), a = (i) => {
3230
- if (Rs(i.data, r))
3189
+ const r = Be(), a = (i) => {
3190
+ if (ys(i.data, r))
3231
3191
  return;
3232
- const c = e(i.data);
3233
- c.success ? s(c.data) : xs(i.data) ? n(new Error(i.data.message)) : n(new Error("Unknown message received")), window.removeEventListener("message", a);
3192
+ const o = e(i.data);
3193
+ o.success ? s(o.data) : ls(i.data) ? n(new Error(i.data.message)) : n(new Error("Unknown message received")), window.removeEventListener("message", a);
3234
3194
  };
3235
- window.addEventListener("message", a), window.parent.postMessage({ ...t, id: r, featureVersion: Ut }, "*");
3195
+ window.addEventListener("message", a), window.parent.postMessage({ ...t, id: r, featureVersion: Ot }, "*");
3236
3196
  });
3237
3197
  }
3238
- async function Ns(t) {
3239
- return ce(t, (e) => bs(e) ? { success: !0, data: e.question } : { success: !1 });
3198
+ async function bs(t) {
3199
+ return ne(t, (e) => fs(e) ? { success: !0, data: e.question } : { success: !1 });
3240
3200
  }
3241
- async function Os(t) {
3242
- return ce(t, (e) => ks(e) ? { success: !0, data: e.group } : { success: !1 });
3201
+ async function ks(t) {
3202
+ return ne(t, (e) => hs(e) ? { success: !0, data: e.group } : { success: !1 });
3243
3203
  }
3244
3204
  function C(t) {
3245
- return ce(t, (e) => _s(e) ? { success: !0, data: void 0 } : { success: !1 });
3205
+ return ne(t, (e) => ds(e) ? { success: !0, data: void 0 } : { success: !1 });
3246
3206
  }
3247
- async function Is(t) {
3248
- return ce(t, (e) => Cs(e) ? { success: !0, data: e.entities } : { success: !1 });
3207
+ async function ws(t) {
3208
+ return ne(t, (e) => vs(e) ? { success: !0, data: e.entities } : { success: !1 });
3249
3209
  }
3250
- async function Ms(t) {
3251
- return ce(t, (e) => Es(e) ? { success: !0, data: e.entity } : { success: !1 });
3210
+ async function Ss(t) {
3211
+ return ne(t, (e) => _s(e) ? { success: !0, data: e.entity } : { success: !1 });
3252
3212
  }
3253
3213
  export {
3254
- Ut as QP_BRIDGE_FEATURE_VERSION,
3255
- xn as addNewGroup,
3256
- ms as addNewGroupRequestMessageSchema,
3257
- rs as busyIndicatorEndRequestMessageSchema,
3258
- ns as busyIndicatorStartRequestMessageSchema,
3259
- es as canSaveRequestMessageSchema,
3260
- Kt as canSaveSuccessResponseMessageSchema,
3261
- Bt as commandExecutedMessageSchema,
3262
- dn as completeAndCloseQuestionnaire,
3263
- is as completeAndCloseQuestionnaireRequestMessageSchema,
3264
- Xs as createMediaItem,
3265
- yn as createNewEntity,
3266
- bn as deleteGroup,
3267
- ps as deleteGroupRequestMessageSchema,
3268
- $e as entitySchema,
3269
- ln as executeCustomCommand,
3270
- cs as executeCustomCommandRequestMessageSchema,
3271
- pn as fetchEntities,
3272
- os as fetchEntitiesRequestMessageSchema,
3273
- us as fetchEntitiesSuccessResponseMessageSchema,
3274
- gn as getEntityById,
3275
- ds as getEntityByIdRequestMessageSchema,
3276
- ls as getEntityByIdSuccessResponseMessageSchema,
3277
- rn as getGroup,
3278
- Yt as getGroupRequestMessageSchema,
3279
- Xt as getGroupSuccessResponseMessageSchema,
3280
- sn as getQuestion,
3281
- Wt as getQuestionRequestMessageSchema,
3282
- Ht as getQuestionSuccessResponseMessageSchema,
3283
- Ft as groupOptionalScheme,
3284
- tt as groupSchema,
3285
- As as initOnSaveMessageHandler,
3286
- Js as isAddNewGroupRequestMessage,
3287
- Ts as isBusyIndicatorEndRequestMessage,
3288
- Ss as isBusyIndicatorStartRequestMessage,
3289
- ws as isCanSaveRequestMessage,
3290
- Vs as isCanSaveSuccessResponseMessage,
3291
- ys as isCommandExecutedMessage,
3292
- zs as isCompleteAndCloseQuestionnaireRequestMessage,
3293
- Ys as isDeleteGroupRequestMessage,
3294
- xs as isErrorMessage,
3295
- Ds as isExecuteCustomCommandRequestMessage,
3296
- Qs as isFetchEntitiesRequestMessage,
3297
- Cs as isFetchEntitiesSuccessResponseMessage,
3298
- Fs as isGetEntityByIdRequestMessage,
3299
- Es as isGetEntityByIdSuccessResponseMessage,
3300
- Us as isGetGroupRequestMessage,
3301
- ks as isGetGroupSuccessResponseMessage,
3302
- qs as isGetQuestionRequestMessage,
3303
- bs as isGetQuestionSuccessResponseMessage,
3304
- Zs as isMediaItem,
3305
- Rs as isNotRelevantMessage,
3306
- gs as isOnAnswerChangeMessage,
3307
- st as isQpBridgeMessage,
3308
- js as isQpBridgeRequestMessage,
3309
- vs as isQuestionnaireLoadedMessage,
3310
- Hs as isRepeatGroupRequestMessage,
3311
- Ws as isSaveEntityRequestMessage,
3312
- Bs as isSaveQuestionnaireRequestMessage,
3313
- Ps as isSetAnswerRequestMessage,
3314
- $s as isSetGroupRequestMessage,
3315
- Ls as isSetQuestionRequestMessage,
3316
- _s as isSuccessMessage,
3317
- Gs as isWithBusyIndicatorRequestMessage,
3318
- Qt as mediaItemSchema,
3319
- cn as onAnswerChange,
3320
- Vt as onAnswerChangeMessageSchema,
3321
- hn as onCommandExecuted,
3322
- fn as onQuestionnaireLoaded,
3323
- mn as onSave,
3324
- D as qpBridgeBaseMessageSchema,
3214
+ Ot as QP_BRIDGE_FEATURE_VERSION,
3215
+ ln as addNewGroup,
3216
+ as as addNewGroupRequestMessageSchema,
3217
+ Ht as busyIndicatorEndRequestMessageSchema,
3218
+ Wt as busyIndicatorStartRequestMessageSchema,
3219
+ Gt as canSaveRequestMessageSchema,
3220
+ Dt as canSaveSuccessResponseMessageSchema,
3221
+ Mt as commandExecutedMessageSchema,
3222
+ en as completeAndCloseQuestionnaire,
3223
+ Yt as completeAndCloseQuestionnaireRequestMessageSchema,
3224
+ zs as createMediaItem,
3225
+ cn as createNewEntity,
3226
+ fn as deleteGroup,
3227
+ is as deleteGroupRequestMessageSchema,
3228
+ Re as entitySchema,
3229
+ tn as executeCustomCommand,
3230
+ Xt as executeCustomCommandRequestMessageSchema,
3231
+ an as fetchEntities,
3232
+ Kt as fetchEntitiesRequestMessageSchema,
3233
+ es as fetchEntitiesSuccessResponseMessageSchema,
3234
+ on as getEntityById,
3235
+ ts as getEntityByIdRequestMessageSchema,
3236
+ ss as getEntityByIdSuccessResponseMessageSchema,
3237
+ Hs as getGroup,
3238
+ Bt as getGroupRequestMessageSchema,
3239
+ zt as getGroupSuccessResponseMessageSchema,
3240
+ Fs as getQuestion,
3241
+ $t as getQuestionRequestMessageSchema,
3242
+ Ut as getQuestionSuccessResponseMessageSchema,
3243
+ Lt as groupOptionalScheme,
3244
+ Fe as groupSchema,
3245
+ xs as initOnSaveMessageHandler,
3246
+ Vs as isAddNewGroupRequestMessage,
3247
+ gs as isBusyIndicatorEndRequestMessage,
3248
+ ms as isBusyIndicatorStartRequestMessage,
3249
+ ps as isCanSaveRequestMessage,
3250
+ Is as isCanSaveSuccessResponseMessage,
3251
+ cs as isCommandExecutedMessage,
3252
+ Zs as isCompleteAndCloseQuestionnaireRequestMessage,
3253
+ Bs as isDeleteGroupRequestMessage,
3254
+ ls as isErrorMessage,
3255
+ js as isExecuteCustomCommandRequestMessage,
3256
+ Ps as isFetchEntitiesRequestMessage,
3257
+ vs as isFetchEntitiesSuccessResponseMessage,
3258
+ Ls as isGetEntityByIdRequestMessage,
3259
+ _s as isGetEntityByIdSuccessResponseMessage,
3260
+ Os as isGetGroupRequestMessage,
3261
+ hs as isGetGroupSuccessResponseMessage,
3262
+ Cs as isGetQuestionRequestMessage,
3263
+ fs as isGetQuestionSuccessResponseMessage,
3264
+ Rs as isMediaItem,
3265
+ ys as isNotRelevantMessage,
3266
+ os as isOnAnswerChangeMessage,
3267
+ We as isQpBridgeMessage,
3268
+ Ts as isQpBridgeRequestMessage,
3269
+ us as isQuestionnaireLoadedMessage,
3270
+ Us as isRepeatGroupRequestMessage,
3271
+ $s as isSaveEntityRequestMessage,
3272
+ Ms as isSaveQuestionnaireRequestMessage,
3273
+ Es as isSetAnswerRequestMessage,
3274
+ Ns as isSetGroupRequestMessage,
3275
+ As as isSetQuestionRequestMessage,
3276
+ ds as isSuccessMessage,
3277
+ qs as isWithBusyIndicatorRequestMessage,
3278
+ Pt as mediaItemSchema,
3279
+ Ys as onAnswerChange,
3280
+ It as onAnswerChangeMessageSchema,
3281
+ nn as onCommandExecuted,
3282
+ sn as onQuestionnaireLoaded,
3283
+ rn as onSave,
3284
+ V as qpBridgeBaseMessageSchema,
3325
3285
  S as qpBridgeRequestMessageSchema,
3326
- Gt as questionOptionalScheme,
3327
- et as questionSchema,
3328
- zt as questionnaireLoadedMessageSchema,
3329
- en as removeOnSaveMessageHandler,
3330
- _n as repeatGroup,
3331
- hs as repeatGroupRequestMessageSchema,
3332
- Dt as responseErrorMessageSchema,
3333
- te as responseSuccessMessageSchema,
3334
- vn as saveEntity,
3335
- fs as saveEntityRequestMessageSchema,
3336
- un as saveQuestionnaire,
3337
- as as saveQuestionnaireRequestMessageSchema,
3338
- tn as setAnswer,
3339
- ss as setAnswerRequestMessageSchema,
3340
- an as setGroup,
3341
- ts as setGroupRequestMessageSchema,
3342
- nn as setQuestion,
3343
- Jt as setQuestionRequestMessageSchema,
3344
- Ks as updateMediaItem,
3345
- on as withBusyIndicator
3286
+ qt as questionOptionalScheme,
3287
+ Qe as questionSchema,
3288
+ Zt as questionnaireLoadedMessageSchema,
3289
+ Gs as removeOnSaveMessageHandler,
3290
+ dn as repeatGroup,
3291
+ rs as repeatGroupRequestMessageSchema,
3292
+ jt as responseErrorMessageSchema,
3293
+ J as responseSuccessMessageSchema,
3294
+ un as saveEntity,
3295
+ ns as saveEntityRequestMessageSchema,
3296
+ Ks as saveQuestionnaire,
3297
+ Jt as saveQuestionnaireRequestMessageSchema,
3298
+ Qs as setAnswer,
3299
+ Ft as setAnswerRequestMessageSchema,
3300
+ Js as setGroup,
3301
+ Qt as setGroupRequestMessageSchema,
3302
+ Ws as setQuestion,
3303
+ Vt as setQuestionRequestMessageSchema,
3304
+ Ds as updateMediaItem,
3305
+ Xs as withBusyIndicator
3346
3306
  };