@telemetryos/sdk 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -34,14 +34,14 @@ var b;
34
34
  }
35
35
  a.joinValues = s, a.jsonStringifyReplacer = (n, i) => typeof i == "bigint" ? i.toString() : i;
36
36
  })(b || (b = {}));
37
- var Ie;
37
+ var Ee;
38
38
  (function(a) {
39
39
  a.mergeShapes = (e, t) => ({
40
40
  ...e,
41
41
  ...t
42
42
  // second overwrites first
43
43
  });
44
- })(Ie || (Ie = {}));
44
+ })(Ee || (Ee = {}));
45
45
  const h = b.arrayToEnum([
46
46
  "string",
47
47
  "nan",
@@ -63,7 +63,7 @@ const h = b.arrayToEnum([
63
63
  "never",
64
64
  "map",
65
65
  "set"
66
- ]), E = (a) => {
66
+ ]), j = (a) => {
67
67
  switch (typeof a) {
68
68
  case "undefined":
69
69
  return h.undefined;
@@ -84,7 +84,7 @@ const h = b.arrayToEnum([
84
84
  default:
85
85
  return h.unknown;
86
86
  }
87
- }, c = b.arrayToEnum([
87
+ }, d = b.arrayToEnum([
88
88
  "invalid_type",
89
89
  "invalid_literal",
90
90
  "custom",
@@ -102,7 +102,7 @@ const h = b.arrayToEnum([
102
102
  "not_multiple_of",
103
103
  "not_finite"
104
104
  ]), et = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
105
- let C = class qe extends Error {
105
+ let N = class qe extends Error {
106
106
  get errors() {
107
107
  return this.issues;
108
108
  }
@@ -129,10 +129,10 @@ let C = class qe extends Error {
129
129
  else if (r.path.length === 0)
130
130
  s._errors.push(t(r));
131
131
  else {
132
- let o = s, d = 0;
133
- for (; d < r.path.length; ) {
134
- const u = r.path[d];
135
- d === r.path.length - 1 ? (o[u] = o[u] || { _errors: [] }, o[u]._errors.push(t(r))) : o[u] = o[u] || { _errors: [] }, o = o[u], d++;
132
+ let o = s, c = 0;
133
+ for (; c < r.path.length; ) {
134
+ const u = r.path[c];
135
+ c === r.path.length - 1 ? (o[u] = o[u] || { _errors: [] }, o[u]._errors.push(t(r))) : o[u] = o[u] || { _errors: [] }, o = o[u], c++;
136
136
  }
137
137
  }
138
138
  };
@@ -161,56 +161,56 @@ let C = class qe extends Error {
161
161
  return this.flatten();
162
162
  }
163
163
  };
164
- C.create = (a) => new C(a);
164
+ N.create = (a) => new N(a);
165
165
  const W = (a, e) => {
166
166
  let t;
167
167
  switch (a.code) {
168
- case c.invalid_type:
168
+ case d.invalid_type:
169
169
  a.received === h.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
170
170
  break;
171
- case c.invalid_literal:
171
+ case d.invalid_literal:
172
172
  t = `Invalid literal value, expected ${JSON.stringify(a.expected, b.jsonStringifyReplacer)}`;
173
173
  break;
174
- case c.unrecognized_keys:
174
+ case d.unrecognized_keys:
175
175
  t = `Unrecognized key(s) in object: ${b.joinValues(a.keys, ", ")}`;
176
176
  break;
177
- case c.invalid_union:
177
+ case d.invalid_union:
178
178
  t = "Invalid input";
179
179
  break;
180
- case c.invalid_union_discriminator:
180
+ case d.invalid_union_discriminator:
181
181
  t = `Invalid discriminator value. Expected ${b.joinValues(a.options)}`;
182
182
  break;
183
- case c.invalid_enum_value:
183
+ case d.invalid_enum_value:
184
184
  t = `Invalid enum value. Expected ${b.joinValues(a.options)}, received '${a.received}'`;
185
185
  break;
186
- case c.invalid_arguments:
186
+ case d.invalid_arguments:
187
187
  t = "Invalid function arguments";
188
188
  break;
189
- case c.invalid_return_type:
189
+ case d.invalid_return_type:
190
190
  t = "Invalid function return type";
191
191
  break;
192
- case c.invalid_date:
192
+ case d.invalid_date:
193
193
  t = "Invalid date";
194
194
  break;
195
- case c.invalid_string:
195
+ case d.invalid_string:
196
196
  typeof a.validation == "object" ? "includes" in a.validation ? (t = `Invalid input: must include "${a.validation.includes}"`, typeof a.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${a.validation.position}`)) : "startsWith" in a.validation ? t = `Invalid input: must start with "${a.validation.startsWith}"` : "endsWith" in a.validation ? t = `Invalid input: must end with "${a.validation.endsWith}"` : b.assertNever(a.validation) : a.validation !== "regex" ? t = `Invalid ${a.validation}` : t = "Invalid";
197
197
  break;
198
- case c.too_small:
198
+ case d.too_small:
199
199
  a.type === "array" ? t = `Array must contain ${a.exact ? "exactly" : a.inclusive ? "at least" : "more than"} ${a.minimum} element(s)` : a.type === "string" ? t = `String must contain ${a.exact ? "exactly" : a.inclusive ? "at least" : "over"} ${a.minimum} character(s)` : a.type === "number" ? t = `Number must be ${a.exact ? "exactly equal to " : a.inclusive ? "greater than or equal to " : "greater than "}${a.minimum}` : a.type === "date" ? t = `Date must be ${a.exact ? "exactly equal to " : a.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(a.minimum))}` : t = "Invalid input";
200
200
  break;
201
- case c.too_big:
201
+ case d.too_big:
202
202
  a.type === "array" ? t = `Array must contain ${a.exact ? "exactly" : a.inclusive ? "at most" : "less than"} ${a.maximum} element(s)` : a.type === "string" ? t = `String must contain ${a.exact ? "exactly" : a.inclusive ? "at most" : "under"} ${a.maximum} character(s)` : a.type === "number" ? t = `Number must be ${a.exact ? "exactly" : a.inclusive ? "less than or equal to" : "less than"} ${a.maximum}` : a.type === "bigint" ? t = `BigInt must be ${a.exact ? "exactly" : a.inclusive ? "less than or equal to" : "less than"} ${a.maximum}` : a.type === "date" ? t = `Date must be ${a.exact ? "exactly" : a.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(a.maximum))}` : t = "Invalid input";
203
203
  break;
204
- case c.custom:
204
+ case d.custom:
205
205
  t = "Invalid input";
206
206
  break;
207
- case c.invalid_intersection_types:
207
+ case d.invalid_intersection_types:
208
208
  t = "Intersection results could not be merged";
209
209
  break;
210
- case c.not_multiple_of:
210
+ case d.not_multiple_of:
211
211
  t = `Number must be a multiple of ${a.multipleOf}`;
212
212
  break;
213
- case c.not_finite:
213
+ case d.not_finite:
214
214
  t = "Number must be finite";
215
215
  break;
216
216
  default:
@@ -237,8 +237,8 @@ const be = (a) => {
237
237
  message: n.message
238
238
  };
239
239
  let o = "";
240
- const d = s.filter((u) => !!u).slice().reverse();
241
- for (const u of d)
240
+ const c = s.filter((u) => !!u).slice().reverse();
241
+ for (const u of c)
242
242
  o = u(r, { data: e, defaultError: o }).message;
243
243
  return {
244
244
  ...n,
@@ -278,7 +278,7 @@ let Z = class Ve {
278
278
  const s = [];
279
279
  for (const n of t) {
280
280
  if (n.status === "aborted")
281
- return f;
281
+ return _;
282
282
  n.status === "dirty" && e.dirty(), s.push(n.value);
283
283
  }
284
284
  return { status: e.value, value: s };
@@ -299,15 +299,15 @@ let Z = class Ve {
299
299
  for (const n of t) {
300
300
  const { key: i, value: r } = n;
301
301
  if (i.status === "aborted" || r.status === "aborted")
302
- return f;
302
+ return _;
303
303
  i.status === "dirty" && e.dirty(), r.status === "dirty" && e.dirty(), i.value !== "__proto__" && (typeof r.value < "u" || n.alwaysSet) && (s[i.value] = r.value);
304
304
  }
305
305
  return { status: e.value, value: s };
306
306
  }
307
307
  };
308
- const f = Object.freeze({
308
+ const _ = Object.freeze({
309
309
  status: "aborted"
310
- }), ke = (a) => ({ status: "dirty", value: a }), x = (a) => ({ status: "valid", value: a }), Ee = (a) => a.status === "aborted", $e = (a) => a.status === "dirty", z = (a) => a.status === "valid", Q = (a) => typeof Promise < "u" && a instanceof Promise;
310
+ }), ke = (a) => ({ status: "dirty", value: a }), x = (a) => ({ status: "valid", value: a }), je = (a) => a.status === "aborted", $e = (a) => a.status === "dirty", z = (a) => a.status === "valid", Q = (a) => typeof Promise < "u" && a instanceof Promise;
311
311
  function we(a, e, t, s) {
312
312
  if (typeof e == "function" ? a !== e || !0 : !e.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
313
313
  return e.get(a);
@@ -339,35 +339,35 @@ const Le = (a, e) => {
339
339
  get error() {
340
340
  if (this._error)
341
341
  return this._error;
342
- const t = new C(a.common.issues);
342
+ const t = new N(a.common.issues);
343
343
  return this._error = t, this._error;
344
344
  }
345
345
  };
346
346
  };
347
- function y(a) {
347
+ function g(a) {
348
348
  if (!a)
349
349
  return {};
350
350
  const { errorMap: e, invalid_type_error: t, required_error: s, description: n } = a;
351
351
  if (e && (t || s))
352
352
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
353
353
  return e ? { errorMap: e, description: n } : { errorMap: (i, r) => {
354
- var o, d;
354
+ var o, c;
355
355
  const { message: u } = a;
356
- return i.code === "invalid_enum_value" ? { message: u ?? r.defaultError } : typeof r.data > "u" ? { message: (o = u ?? s) !== null && o !== void 0 ? o : r.defaultError } : i.code !== "invalid_type" ? { message: r.defaultError } : { message: (d = u ?? t) !== null && d !== void 0 ? d : r.defaultError };
356
+ return i.code === "invalid_enum_value" ? { message: u ?? r.defaultError } : typeof r.data > "u" ? { message: (o = u ?? s) !== null && o !== void 0 ? o : r.defaultError } : i.code !== "invalid_type" ? { message: r.defaultError } : { message: (c = u ?? t) !== null && c !== void 0 ? c : r.defaultError };
357
357
  }, description: n };
358
358
  }
359
- class _ {
359
+ class y {
360
360
  get description() {
361
361
  return this._def.description;
362
362
  }
363
363
  _getType(e) {
364
- return E(e.data);
364
+ return j(e.data);
365
365
  }
366
366
  _getOrReturnCtx(e, t) {
367
367
  return t || {
368
368
  common: e.parent.common,
369
369
  data: e.data,
370
- parsedType: E(e.data),
370
+ parsedType: j(e.data),
371
371
  schemaErrorMap: this._def.errorMap,
372
372
  path: e.path,
373
373
  parent: e.parent
@@ -379,7 +379,7 @@ class _ {
379
379
  ctx: {
380
380
  common: e.parent.common,
381
381
  data: e.data,
382
- parsedType: E(e.data),
382
+ parsedType: j(e.data),
383
383
  schemaErrorMap: this._def.errorMap,
384
384
  path: e.path,
385
385
  parent: e.parent
@@ -414,7 +414,7 @@ class _ {
414
414
  schemaErrorMap: this._def.errorMap,
415
415
  parent: null,
416
416
  data: e,
417
- parsedType: E(e)
417
+ parsedType: j(e)
418
418
  }, i = this._parseSync({ data: e, path: n.path, parent: n });
419
419
  return Le(n, i);
420
420
  }
@@ -429,7 +429,7 @@ class _ {
429
429
  schemaErrorMap: this._def.errorMap,
430
430
  parent: null,
431
431
  data: e,
432
- parsedType: E(e)
432
+ parsedType: j(e)
433
433
  };
434
434
  if (!this["~standard"].async)
435
435
  try {
@@ -468,7 +468,7 @@ class _ {
468
468
  schemaErrorMap: this._def.errorMap,
469
469
  parent: null,
470
470
  data: e,
471
- parsedType: E(e)
471
+ parsedType: j(e)
472
472
  }, n = this._parse({ data: e, path: s.path, parent: s }), i = await (Q(n) ? n : Promise.resolve(n));
473
473
  return Le(s, i);
474
474
  }
@@ -476,19 +476,19 @@ class _ {
476
476
  const s = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
477
477
  return this._refinement((n, i) => {
478
478
  const r = e(n), o = () => i.addIssue({
479
- code: c.custom,
479
+ code: d.custom,
480
480
  ...s(n)
481
481
  });
482
- return typeof Promise < "u" && r instanceof Promise ? r.then((d) => d ? !0 : (o(), !1)) : r ? !0 : (o(), !1);
482
+ return typeof Promise < "u" && r instanceof Promise ? r.then((c) => c ? !0 : (o(), !1)) : r ? !0 : (o(), !1);
483
483
  });
484
484
  }
485
485
  refinement(e, t) {
486
486
  return this._refinement((s, n) => e(s) ? !0 : (n.addIssue(typeof t == "function" ? t(s, n) : t), !1));
487
487
  }
488
488
  _refinement(e) {
489
- return new S({
489
+ return new C({
490
490
  schema: this,
491
- typeName: m.ZodEffects,
491
+ typeName: f.ZodEffects,
492
492
  effect: { type: "refinement", refinement: e }
493
493
  });
494
494
  }
@@ -524,36 +524,36 @@ class _ {
524
524
  return ie.create(this, e, this._def);
525
525
  }
526
526
  transform(e) {
527
- return new S({
528
- ...y(this._def),
527
+ return new C({
528
+ ...g(this._def),
529
529
  schema: this,
530
- typeName: m.ZodEffects,
530
+ typeName: f.ZodEffects,
531
531
  effect: { type: "transform", transform: e }
532
532
  });
533
533
  }
534
534
  default(e) {
535
535
  const t = typeof e == "function" ? e : () => e;
536
536
  return new ue({
537
- ...y(this._def),
537
+ ...g(this._def),
538
538
  innerType: this,
539
539
  defaultValue: t,
540
- typeName: m.ZodDefault
540
+ typeName: f.ZodDefault
541
541
  });
542
542
  }
543
543
  brand() {
544
544
  return new Fe({
545
- typeName: m.ZodBranded,
545
+ typeName: f.ZodBranded,
546
546
  type: this,
547
- ...y(this._def)
547
+ ...g(this._def)
548
548
  });
549
549
  }
550
550
  catch(e) {
551
551
  const t = typeof e == "function" ? e : () => e;
552
552
  return new le({
553
- ...y(this._def),
553
+ ...g(this._def),
554
554
  innerType: this,
555
555
  catchValue: t,
556
- typeName: m.ZodCatch
556
+ typeName: f.ZodCatch
557
557
  });
558
558
  }
559
559
  describe(e) {
@@ -576,9 +576,9 @@ class _ {
576
576
  return this.safeParse(null).success;
577
577
  }
578
578
  }
579
- const at = /^c[^\s-]{8,}$/i, nt = /^[0-9a-z]+$/, it = /^[0-9A-HJKMNP-TV-Z]{26}$/i, rt = /^[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, ot = /^[a-z0-9_-]{21}$/i, dt = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, ct = /^[-+]?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)?)??$/, ut = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, lt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
579
+ const at = /^c[^\s-]{8,}$/i, nt = /^[0-9a-z]+$/, it = /^[0-9A-HJKMNP-TV-Z]{26}$/i, rt = /^[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, ot = /^[a-z0-9_-]{21}$/i, ct = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, dt = /^[-+]?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)?)??$/, ut = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, lt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
580
580
  let Ae;
581
- const ht = /^(?:(?: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])$/, pt = /^(?:(?: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])$/, mt = /^(([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]))$/, ft = /^(([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])$/, yt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, gt = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ke = "((\\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])))", _t = new RegExp(`^${Ke}$`);
581
+ const ht = /^(?:(?: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])$/, pt = /^(?:(?: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])$/, mt = /^(([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]))$/, ft = /^(([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}=))?$/, gt = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ke = "((\\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])))", yt = new RegExp(`^${Ke}$`);
582
582
  function He(a) {
583
583
  let e = "[0-5]\\d";
584
584
  a.precision ? e = `${e}\\.\\d{${a.precision}}` : a.precision == null && (e = `${e}(\\.\\d+)?`);
@@ -597,7 +597,7 @@ function bt(a, e) {
597
597
  return !!((e === "v4" || !e) && ht.test(a) || (e === "v6" || !e) && mt.test(a));
598
598
  }
599
599
  function kt(a, e) {
600
- if (!dt.test(a))
600
+ if (!ct.test(a))
601
601
  return !1;
602
602
  try {
603
603
  const [t] = a.split("."), s = t.replace(/-/g, "+").replace(/_/g, "/").padEnd(t.length + (4 - t.length % 4) % 4, "="), n = JSON.parse(atob(s));
@@ -609,22 +609,22 @@ function kt(a, e) {
609
609
  function wt(a, e) {
610
610
  return !!((e === "v4" || !e) && pt.test(a) || (e === "v6" || !e) && ft.test(a));
611
611
  }
612
- class N extends _ {
612
+ class S extends y {
613
613
  _parse(e) {
614
614
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== h.string) {
615
615
  const n = this._getOrReturnCtx(e);
616
616
  return l(n, {
617
- code: c.invalid_type,
617
+ code: d.invalid_type,
618
618
  expected: h.string,
619
619
  received: n.parsedType
620
- }), f;
620
+ }), _;
621
621
  }
622
622
  const t = new Z();
623
623
  let s;
624
624
  for (const n of this._def.checks)
625
625
  if (n.kind === "min")
626
626
  e.data.length < n.value && (s = this._getOrReturnCtx(e, s), l(s, {
627
- code: c.too_small,
627
+ code: d.too_small,
628
628
  minimum: n.value,
629
629
  type: "string",
630
630
  inclusive: !0,
@@ -633,7 +633,7 @@ class N extends _ {
633
633
  }), t.dirty());
634
634
  else if (n.kind === "max")
635
635
  e.data.length > n.value && (s = this._getOrReturnCtx(e, s), l(s, {
636
- code: c.too_big,
636
+ code: d.too_big,
637
637
  maximum: n.value,
638
638
  type: "string",
639
639
  inclusive: !0,
@@ -643,14 +643,14 @@ class N extends _ {
643
643
  else if (n.kind === "length") {
644
644
  const i = e.data.length > n.value, r = e.data.length < n.value;
645
645
  (i || r) && (s = this._getOrReturnCtx(e, s), i ? l(s, {
646
- code: c.too_big,
646
+ code: d.too_big,
647
647
  maximum: n.value,
648
648
  type: "string",
649
649
  inclusive: !0,
650
650
  exact: !0,
651
651
  message: n.message
652
652
  }) : r && l(s, {
653
- code: c.too_small,
653
+ code: d.too_small,
654
654
  minimum: n.value,
655
655
  type: "string",
656
656
  inclusive: !0,
@@ -660,43 +660,43 @@ class N extends _ {
660
660
  } else if (n.kind === "email")
661
661
  ut.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
662
662
  validation: "email",
663
- code: c.invalid_string,
663
+ code: d.invalid_string,
664
664
  message: n.message
665
665
  }), t.dirty());
666
666
  else if (n.kind === "emoji")
667
667
  Ae || (Ae = new RegExp(lt, "u")), Ae.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
668
668
  validation: "emoji",
669
- code: c.invalid_string,
669
+ code: d.invalid_string,
670
670
  message: n.message
671
671
  }), t.dirty());
672
672
  else if (n.kind === "uuid")
673
673
  rt.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
674
674
  validation: "uuid",
675
- code: c.invalid_string,
675
+ code: d.invalid_string,
676
676
  message: n.message
677
677
  }), t.dirty());
678
678
  else if (n.kind === "nanoid")
679
679
  ot.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
680
680
  validation: "nanoid",
681
- code: c.invalid_string,
681
+ code: d.invalid_string,
682
682
  message: n.message
683
683
  }), t.dirty());
684
684
  else if (n.kind === "cuid")
685
685
  at.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
686
686
  validation: "cuid",
687
- code: c.invalid_string,
687
+ code: d.invalid_string,
688
688
  message: n.message
689
689
  }), t.dirty());
690
690
  else if (n.kind === "cuid2")
691
691
  nt.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
692
692
  validation: "cuid2",
693
- code: c.invalid_string,
693
+ code: d.invalid_string,
694
694
  message: n.message
695
695
  }), t.dirty());
696
696
  else if (n.kind === "ulid")
697
697
  it.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
698
698
  validation: "ulid",
699
- code: c.invalid_string,
699
+ code: d.invalid_string,
700
700
  message: n.message
701
701
  }), t.dirty());
702
702
  else if (n.kind === "url")
@@ -705,61 +705,61 @@ class N extends _ {
705
705
  } catch {
706
706
  s = this._getOrReturnCtx(e, s), l(s, {
707
707
  validation: "url",
708
- code: c.invalid_string,
708
+ code: d.invalid_string,
709
709
  message: n.message
710
710
  }), t.dirty();
711
711
  }
712
712
  else n.kind === "regex" ? (n.regex.lastIndex = 0, n.regex.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
713
713
  validation: "regex",
714
- code: c.invalid_string,
714
+ code: d.invalid_string,
715
715
  message: n.message
716
716
  }), t.dirty())) : n.kind === "trim" ? e.data = e.data.trim() : n.kind === "includes" ? e.data.includes(n.value, n.position) || (s = this._getOrReturnCtx(e, s), l(s, {
717
- code: c.invalid_string,
717
+ code: d.invalid_string,
718
718
  validation: { includes: n.value, position: n.position },
719
719
  message: n.message
720
720
  }), t.dirty()) : n.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : n.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : n.kind === "startsWith" ? e.data.startsWith(n.value) || (s = this._getOrReturnCtx(e, s), l(s, {
721
- code: c.invalid_string,
721
+ code: d.invalid_string,
722
722
  validation: { startsWith: n.value },
723
723
  message: n.message
724
724
  }), t.dirty()) : n.kind === "endsWith" ? e.data.endsWith(n.value) || (s = this._getOrReturnCtx(e, s), l(s, {
725
- code: c.invalid_string,
725
+ code: d.invalid_string,
726
726
  validation: { endsWith: n.value },
727
727
  message: n.message
728
728
  }), t.dirty()) : n.kind === "datetime" ? We(n).test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
729
- code: c.invalid_string,
729
+ code: d.invalid_string,
730
730
  validation: "datetime",
731
731
  message: n.message
732
- }), t.dirty()) : n.kind === "date" ? _t.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
733
- code: c.invalid_string,
732
+ }), t.dirty()) : n.kind === "date" ? yt.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
733
+ code: d.invalid_string,
734
734
  validation: "date",
735
735
  message: n.message
736
736
  }), t.dirty()) : n.kind === "time" ? vt(n).test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
737
- code: c.invalid_string,
737
+ code: d.invalid_string,
738
738
  validation: "time",
739
739
  message: n.message
740
- }), t.dirty()) : n.kind === "duration" ? ct.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
740
+ }), t.dirty()) : n.kind === "duration" ? dt.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
741
741
  validation: "duration",
742
- code: c.invalid_string,
742
+ code: d.invalid_string,
743
743
  message: n.message
744
744
  }), t.dirty()) : n.kind === "ip" ? bt(e.data, n.version) || (s = this._getOrReturnCtx(e, s), l(s, {
745
745
  validation: "ip",
746
- code: c.invalid_string,
746
+ code: d.invalid_string,
747
747
  message: n.message
748
748
  }), t.dirty()) : n.kind === "jwt" ? kt(e.data, n.alg) || (s = this._getOrReturnCtx(e, s), l(s, {
749
749
  validation: "jwt",
750
- code: c.invalid_string,
750
+ code: d.invalid_string,
751
751
  message: n.message
752
752
  }), t.dirty()) : n.kind === "cidr" ? wt(e.data, n.version) || (s = this._getOrReturnCtx(e, s), l(s, {
753
753
  validation: "cidr",
754
- code: c.invalid_string,
754
+ code: d.invalid_string,
755
755
  message: n.message
756
- }), t.dirty()) : n.kind === "base64" ? yt.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
756
+ }), t.dirty()) : n.kind === "base64" ? _t.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
757
757
  validation: "base64",
758
- code: c.invalid_string,
758
+ code: d.invalid_string,
759
759
  message: n.message
760
760
  }), t.dirty()) : n.kind === "base64url" ? gt.test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
761
761
  validation: "base64url",
762
- code: c.invalid_string,
762
+ code: d.invalid_string,
763
763
  message: n.message
764
764
  }), t.dirty()) : b.assertNever(n);
765
765
  return { status: t.value, value: e.data };
@@ -767,12 +767,12 @@ class N extends _ {
767
767
  _regex(e, t, s) {
768
768
  return this.refinement((n) => e.test(n), {
769
769
  validation: t,
770
- code: c.invalid_string,
770
+ code: d.invalid_string,
771
771
  ...p.errToObj(s)
772
772
  });
773
773
  }
774
774
  _addCheck(e) {
775
- return new N({
775
+ return new S({
776
776
  ...this._def,
777
777
  checks: [...this._def.checks, e]
778
778
  });
@@ -909,19 +909,19 @@ class N extends _ {
909
909
  return this.min(1, p.errToObj(e));
910
910
  }
911
911
  trim() {
912
- return new N({
912
+ return new S({
913
913
  ...this._def,
914
914
  checks: [...this._def.checks, { kind: "trim" }]
915
915
  });
916
916
  }
917
917
  toLowerCase() {
918
- return new N({
918
+ return new S({
919
919
  ...this._def,
920
920
  checks: [...this._def.checks, { kind: "toLowerCase" }]
921
921
  });
922
922
  }
923
923
  toUpperCase() {
924
- return new N({
924
+ return new S({
925
925
  ...this._def,
926
926
  checks: [...this._def.checks, { kind: "toUpperCase" }]
927
927
  });
@@ -987,20 +987,20 @@ class N extends _ {
987
987
  return e;
988
988
  }
989
989
  }
990
- N.create = (a) => {
990
+ S.create = (a) => {
991
991
  var e;
992
- return new N({
992
+ return new S({
993
993
  checks: [],
994
- typeName: m.ZodString,
994
+ typeName: f.ZodString,
995
995
  coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
996
- ...y(a)
996
+ ...g(a)
997
997
  });
998
998
  };
999
999
  function xt(a, e) {
1000
1000
  const t = (a.toString().split(".")[1] || "").length, s = (e.toString().split(".")[1] || "").length, n = t > s ? t : s, i = parseInt(a.toFixed(n).replace(".", "")), r = parseInt(e.toFixed(n).replace(".", ""));
1001
1001
  return i % r / Math.pow(10, n);
1002
1002
  }
1003
- class R extends _ {
1003
+ class R extends y {
1004
1004
  constructor() {
1005
1005
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1006
1006
  }
@@ -1008,39 +1008,39 @@ class R extends _ {
1008
1008
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== h.number) {
1009
1009
  const n = this._getOrReturnCtx(e);
1010
1010
  return l(n, {
1011
- code: c.invalid_type,
1011
+ code: d.invalid_type,
1012
1012
  expected: h.number,
1013
1013
  received: n.parsedType
1014
- }), f;
1014
+ }), _;
1015
1015
  }
1016
1016
  let t;
1017
1017
  const s = new Z();
1018
1018
  for (const n of this._def.checks)
1019
1019
  n.kind === "int" ? b.isInteger(e.data) || (t = this._getOrReturnCtx(e, t), l(t, {
1020
- code: c.invalid_type,
1020
+ code: d.invalid_type,
1021
1021
  expected: "integer",
1022
1022
  received: "float",
1023
1023
  message: n.message
1024
1024
  }), s.dirty()) : n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (t = this._getOrReturnCtx(e, t), l(t, {
1025
- code: c.too_small,
1025
+ code: d.too_small,
1026
1026
  minimum: n.value,
1027
1027
  type: "number",
1028
1028
  inclusive: n.inclusive,
1029
1029
  exact: !1,
1030
1030
  message: n.message
1031
1031
  }), s.dirty()) : n.kind === "max" ? (n.inclusive ? e.data > n.value : e.data >= n.value) && (t = this._getOrReturnCtx(e, t), l(t, {
1032
- code: c.too_big,
1032
+ code: d.too_big,
1033
1033
  maximum: n.value,
1034
1034
  type: "number",
1035
1035
  inclusive: n.inclusive,
1036
1036
  exact: !1,
1037
1037
  message: n.message
1038
1038
  }), s.dirty()) : n.kind === "multipleOf" ? xt(e.data, n.value) !== 0 && (t = this._getOrReturnCtx(e, t), l(t, {
1039
- code: c.not_multiple_of,
1039
+ code: d.not_multiple_of,
1040
1040
  multipleOf: n.value,
1041
1041
  message: n.message
1042
1042
  }), s.dirty()) : n.kind === "finite" ? Number.isFinite(e.data) || (t = this._getOrReturnCtx(e, t), l(t, {
1043
- code: c.not_finite,
1043
+ code: d.not_finite,
1044
1044
  message: n.message
1045
1045
  }), s.dirty()) : b.assertNever(n);
1046
1046
  return { status: s.value, value: e.data };
@@ -1168,11 +1168,11 @@ class R extends _ {
1168
1168
  }
1169
1169
  R.create = (a) => new R({
1170
1170
  checks: [],
1171
- typeName: m.ZodNumber,
1171
+ typeName: f.ZodNumber,
1172
1172
  coerce: (a == null ? void 0 : a.coerce) || !1,
1173
- ...y(a)
1173
+ ...g(a)
1174
1174
  });
1175
- let ee = class Pe extends _ {
1175
+ let ee = class Pe extends y {
1176
1176
  constructor() {
1177
1177
  super(...arguments), this.min = this.gte, this.max = this.lte;
1178
1178
  }
@@ -1189,19 +1189,19 @@ let ee = class Pe extends _ {
1189
1189
  const s = new Z();
1190
1190
  for (const n of this._def.checks)
1191
1191
  n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (t = this._getOrReturnCtx(e, t), l(t, {
1192
- code: c.too_small,
1192
+ code: d.too_small,
1193
1193
  type: "bigint",
1194
1194
  minimum: n.value,
1195
1195
  inclusive: n.inclusive,
1196
1196
  message: n.message
1197
1197
  }), s.dirty()) : n.kind === "max" ? (n.inclusive ? e.data > n.value : e.data >= n.value) && (t = this._getOrReturnCtx(e, t), l(t, {
1198
- code: c.too_big,
1198
+ code: d.too_big,
1199
1199
  type: "bigint",
1200
1200
  maximum: n.value,
1201
1201
  inclusive: n.inclusive,
1202
1202
  message: n.message
1203
1203
  }), s.dirty()) : n.kind === "multipleOf" ? e.data % n.value !== BigInt(0) && (t = this._getOrReturnCtx(e, t), l(t, {
1204
- code: c.not_multiple_of,
1204
+ code: d.not_multiple_of,
1205
1205
  multipleOf: n.value,
1206
1206
  message: n.message
1207
1207
  }), s.dirty()) : b.assertNever(n);
@@ -1210,10 +1210,10 @@ let ee = class Pe extends _ {
1210
1210
  _getInvalidInput(e) {
1211
1211
  const t = this._getOrReturnCtx(e);
1212
1212
  return l(t, {
1213
- code: c.invalid_type,
1213
+ code: d.invalid_type,
1214
1214
  expected: h.bigint,
1215
1215
  received: t.parsedType
1216
- }), f;
1216
+ }), _;
1217
1217
  }
1218
1218
  gte(e, t) {
1219
1219
  return this.setLimit("min", e, !0, p.toString(t));
@@ -1303,57 +1303,57 @@ ee.create = (a) => {
1303
1303
  var e;
1304
1304
  return new ee({
1305
1305
  checks: [],
1306
- typeName: m.ZodBigInt,
1306
+ typeName: f.ZodBigInt,
1307
1307
  coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
1308
- ...y(a)
1308
+ ...g(a)
1309
1309
  });
1310
1310
  };
1311
- class te extends _ {
1311
+ class te extends y {
1312
1312
  _parse(e) {
1313
1313
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== h.boolean) {
1314
1314
  const t = this._getOrReturnCtx(e);
1315
1315
  return l(t, {
1316
- code: c.invalid_type,
1316
+ code: d.invalid_type,
1317
1317
  expected: h.boolean,
1318
1318
  received: t.parsedType
1319
- }), f;
1319
+ }), _;
1320
1320
  }
1321
1321
  return x(e.data);
1322
1322
  }
1323
1323
  }
1324
1324
  te.create = (a) => new te({
1325
- typeName: m.ZodBoolean,
1325
+ typeName: f.ZodBoolean,
1326
1326
  coerce: (a == null ? void 0 : a.coerce) || !1,
1327
- ...y(a)
1327
+ ...g(a)
1328
1328
  });
1329
- class q extends _ {
1329
+ class q extends y {
1330
1330
  _parse(e) {
1331
1331
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== h.date) {
1332
1332
  const n = this._getOrReturnCtx(e);
1333
1333
  return l(n, {
1334
- code: c.invalid_type,
1334
+ code: d.invalid_type,
1335
1335
  expected: h.date,
1336
1336
  received: n.parsedType
1337
- }), f;
1337
+ }), _;
1338
1338
  }
1339
1339
  if (isNaN(e.data.getTime())) {
1340
1340
  const n = this._getOrReturnCtx(e);
1341
1341
  return l(n, {
1342
- code: c.invalid_date
1343
- }), f;
1342
+ code: d.invalid_date
1343
+ }), _;
1344
1344
  }
1345
1345
  const t = new Z();
1346
1346
  let s;
1347
1347
  for (const n of this._def.checks)
1348
1348
  n.kind === "min" ? e.data.getTime() < n.value && (s = this._getOrReturnCtx(e, s), l(s, {
1349
- code: c.too_small,
1349
+ code: d.too_small,
1350
1350
  message: n.message,
1351
1351
  inclusive: !0,
1352
1352
  exact: !1,
1353
1353
  minimum: n.value,
1354
1354
  type: "date"
1355
1355
  }), t.dirty()) : n.kind === "max" ? e.data.getTime() > n.value && (s = this._getOrReturnCtx(e, s), l(s, {
1356
- code: c.too_big,
1356
+ code: d.too_big,
1357
1357
  message: n.message,
1358
1358
  inclusive: !0,
1359
1359
  exact: !1,
@@ -1401,61 +1401,61 @@ class q extends _ {
1401
1401
  q.create = (a) => new q({
1402
1402
  checks: [],
1403
1403
  coerce: (a == null ? void 0 : a.coerce) || !1,
1404
- typeName: m.ZodDate,
1405
- ...y(a)
1404
+ typeName: f.ZodDate,
1405
+ ...g(a)
1406
1406
  });
1407
- class xe extends _ {
1407
+ class xe extends y {
1408
1408
  _parse(e) {
1409
1409
  if (this._getType(e) !== h.symbol) {
1410
1410
  const t = this._getOrReturnCtx(e);
1411
1411
  return l(t, {
1412
- code: c.invalid_type,
1412
+ code: d.invalid_type,
1413
1413
  expected: h.symbol,
1414
1414
  received: t.parsedType
1415
- }), f;
1415
+ }), _;
1416
1416
  }
1417
1417
  return x(e.data);
1418
1418
  }
1419
1419
  }
1420
1420
  xe.create = (a) => new xe({
1421
- typeName: m.ZodSymbol,
1422
- ...y(a)
1421
+ typeName: f.ZodSymbol,
1422
+ ...g(a)
1423
1423
  });
1424
- class se extends _ {
1424
+ class se extends y {
1425
1425
  _parse(e) {
1426
1426
  if (this._getType(e) !== h.undefined) {
1427
1427
  const t = this._getOrReturnCtx(e);
1428
1428
  return l(t, {
1429
- code: c.invalid_type,
1429
+ code: d.invalid_type,
1430
1430
  expected: h.undefined,
1431
1431
  received: t.parsedType
1432
- }), f;
1432
+ }), _;
1433
1433
  }
1434
1434
  return x(e.data);
1435
1435
  }
1436
1436
  }
1437
1437
  se.create = (a) => new se({
1438
- typeName: m.ZodUndefined,
1439
- ...y(a)
1438
+ typeName: f.ZodUndefined,
1439
+ ...g(a)
1440
1440
  });
1441
- class ae extends _ {
1441
+ class ae extends y {
1442
1442
  _parse(e) {
1443
1443
  if (this._getType(e) !== h.null) {
1444
1444
  const t = this._getOrReturnCtx(e);
1445
1445
  return l(t, {
1446
- code: c.invalid_type,
1446
+ code: d.invalid_type,
1447
1447
  expected: h.null,
1448
1448
  received: t.parsedType
1449
- }), f;
1449
+ }), _;
1450
1450
  }
1451
1451
  return x(e.data);
1452
1452
  }
1453
1453
  }
1454
1454
  ae.create = (a) => new ae({
1455
- typeName: m.ZodNull,
1456
- ...y(a)
1455
+ typeName: f.ZodNull,
1456
+ ...g(a)
1457
1457
  });
1458
- let J = class extends _ {
1458
+ let J = class extends y {
1459
1459
  constructor() {
1460
1460
  super(...arguments), this._any = !0;
1461
1461
  }
@@ -1464,10 +1464,10 @@ let J = class extends _ {
1464
1464
  }
1465
1465
  };
1466
1466
  J.create = (a) => new J({
1467
- typeName: m.ZodAny,
1468
- ...y(a)
1467
+ typeName: f.ZodAny,
1468
+ ...g(a)
1469
1469
  });
1470
- class D extends _ {
1470
+ class D extends y {
1471
1471
  constructor() {
1472
1472
  super(...arguments), this._unknown = !0;
1473
1473
  }
@@ -1476,53 +1476,53 @@ class D extends _ {
1476
1476
  }
1477
1477
  }
1478
1478
  D.create = (a) => new D({
1479
- typeName: m.ZodUnknown,
1480
- ...y(a)
1479
+ typeName: f.ZodUnknown,
1480
+ ...g(a)
1481
1481
  });
1482
- let $ = class extends _ {
1482
+ class $ extends y {
1483
1483
  _parse(e) {
1484
1484
  const t = this._getOrReturnCtx(e);
1485
1485
  return l(t, {
1486
- code: c.invalid_type,
1486
+ code: d.invalid_type,
1487
1487
  expected: h.never,
1488
1488
  received: t.parsedType
1489
- }), f;
1489
+ }), _;
1490
1490
  }
1491
- };
1491
+ }
1492
1492
  $.create = (a) => new $({
1493
- typeName: m.ZodNever,
1494
- ...y(a)
1493
+ typeName: f.ZodNever,
1494
+ ...g(a)
1495
1495
  });
1496
- class Ze extends _ {
1496
+ class Ze extends y {
1497
1497
  _parse(e) {
1498
1498
  if (this._getType(e) !== h.undefined) {
1499
1499
  const t = this._getOrReturnCtx(e);
1500
1500
  return l(t, {
1501
- code: c.invalid_type,
1501
+ code: d.invalid_type,
1502
1502
  expected: h.void,
1503
1503
  received: t.parsedType
1504
- }), f;
1504
+ }), _;
1505
1505
  }
1506
1506
  return x(e.data);
1507
1507
  }
1508
1508
  }
1509
1509
  Ze.create = (a) => new Ze({
1510
- typeName: m.ZodVoid,
1511
- ...y(a)
1510
+ typeName: f.ZodVoid,
1511
+ ...g(a)
1512
1512
  });
1513
- let B = class _e extends _ {
1513
+ let B = class ye extends y {
1514
1514
  _parse(e) {
1515
1515
  const { ctx: t, status: s } = this._processInputParams(e), n = this._def;
1516
1516
  if (t.parsedType !== h.array)
1517
1517
  return l(t, {
1518
- code: c.invalid_type,
1518
+ code: d.invalid_type,
1519
1519
  expected: h.array,
1520
1520
  received: t.parsedType
1521
- }), f;
1521
+ }), _;
1522
1522
  if (n.exactLength !== null) {
1523
1523
  const r = t.data.length > n.exactLength.value, o = t.data.length < n.exactLength.value;
1524
1524
  (r || o) && (l(t, {
1525
- code: r ? c.too_big : c.too_small,
1525
+ code: r ? d.too_big : d.too_small,
1526
1526
  minimum: o ? n.exactLength.value : void 0,
1527
1527
  maximum: r ? n.exactLength.value : void 0,
1528
1528
  type: "array",
@@ -1532,14 +1532,14 @@ let B = class _e extends _ {
1532
1532
  }), s.dirty());
1533
1533
  }
1534
1534
  if (n.minLength !== null && t.data.length < n.minLength.value && (l(t, {
1535
- code: c.too_small,
1535
+ code: d.too_small,
1536
1536
  minimum: n.minLength.value,
1537
1537
  type: "array",
1538
1538
  inclusive: !0,
1539
1539
  exact: !1,
1540
1540
  message: n.minLength.message
1541
1541
  }), s.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (l(t, {
1542
- code: c.too_big,
1542
+ code: d.too_big,
1543
1543
  maximum: n.maxLength.value,
1544
1544
  type: "array",
1545
1545
  inclusive: !0,
@@ -1554,19 +1554,19 @@ let B = class _e extends _ {
1554
1554
  return this._def.type;
1555
1555
  }
1556
1556
  min(e, t) {
1557
- return new _e({
1557
+ return new ye({
1558
1558
  ...this._def,
1559
1559
  minLength: { value: e, message: p.toString(t) }
1560
1560
  });
1561
1561
  }
1562
1562
  max(e, t) {
1563
- return new _e({
1563
+ return new ye({
1564
1564
  ...this._def,
1565
1565
  maxLength: { value: e, message: p.toString(t) }
1566
1566
  });
1567
1567
  }
1568
1568
  length(e, t) {
1569
- return new _e({
1569
+ return new ye({
1570
1570
  ...this._def,
1571
1571
  exactLength: { value: e, message: p.toString(t) }
1572
1572
  });
@@ -1580,8 +1580,8 @@ B.create = (a, e) => new B({
1580
1580
  minLength: null,
1581
1581
  maxLength: null,
1582
1582
  exactLength: null,
1583
- typeName: m.ZodArray,
1584
- ...y(e)
1583
+ typeName: f.ZodArray,
1584
+ ...g(e)
1585
1585
  });
1586
1586
  function K(a) {
1587
1587
  if (a instanceof k) {
@@ -1597,9 +1597,9 @@ function K(a) {
1597
1597
  } else return a instanceof B ? new B({
1598
1598
  ...a._def,
1599
1599
  type: K(a.element)
1600
- }) : a instanceof O ? O.create(K(a.unwrap())) : a instanceof M ? M.create(K(a.unwrap())) : a instanceof j ? j.create(a.items.map((e) => K(e))) : a;
1600
+ }) : a instanceof O ? O.create(K(a.unwrap())) : a instanceof M ? M.create(K(a.unwrap())) : a instanceof I ? I.create(a.items.map((e) => K(e))) : a;
1601
1601
  }
1602
- class k extends _ {
1602
+ class k extends y {
1603
1603
  constructor() {
1604
1604
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
1605
1605
  }
@@ -1611,48 +1611,48 @@ class k extends _ {
1611
1611
  }
1612
1612
  _parse(e) {
1613
1613
  if (this._getType(e) !== h.object) {
1614
- const d = this._getOrReturnCtx(e);
1615
- return l(d, {
1616
- code: c.invalid_type,
1614
+ const c = this._getOrReturnCtx(e);
1615
+ return l(c, {
1616
+ code: d.invalid_type,
1617
1617
  expected: h.object,
1618
- received: d.parsedType
1619
- }), f;
1618
+ received: c.parsedType
1619
+ }), _;
1620
1620
  }
1621
1621
  const { status: t, ctx: s } = this._processInputParams(e), { shape: n, keys: i } = this._getCached(), r = [];
1622
1622
  if (!(this._def.catchall instanceof $ && this._def.unknownKeys === "strip"))
1623
- for (const d in s.data)
1624
- i.includes(d) || r.push(d);
1623
+ for (const c in s.data)
1624
+ i.includes(c) || r.push(c);
1625
1625
  const o = [];
1626
- for (const d of i) {
1627
- const u = n[d], g = s.data[d];
1626
+ for (const c of i) {
1627
+ const u = n[c], m = s.data[c];
1628
1628
  o.push({
1629
- key: { status: "valid", value: d },
1630
- value: u._parse(new A(s, g, s.path, d)),
1631
- alwaysSet: d in s.data
1629
+ key: { status: "valid", value: c },
1630
+ value: u._parse(new A(s, m, s.path, c)),
1631
+ alwaysSet: c in s.data
1632
1632
  });
1633
1633
  }
1634
1634
  if (this._def.catchall instanceof $) {
1635
- const d = this._def.unknownKeys;
1636
- if (d === "passthrough")
1635
+ const c = this._def.unknownKeys;
1636
+ if (c === "passthrough")
1637
1637
  for (const u of r)
1638
1638
  o.push({
1639
1639
  key: { status: "valid", value: u },
1640
1640
  value: { status: "valid", value: s.data[u] }
1641
1641
  });
1642
- else if (d === "strict")
1642
+ else if (c === "strict")
1643
1643
  r.length > 0 && (l(s, {
1644
- code: c.unrecognized_keys,
1644
+ code: d.unrecognized_keys,
1645
1645
  keys: r
1646
1646
  }), t.dirty());
1647
- else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1647
+ else if (c !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
1648
1648
  } else {
1649
- const d = this._def.catchall;
1649
+ const c = this._def.catchall;
1650
1650
  for (const u of r) {
1651
- const g = s.data[u];
1651
+ const m = s.data[u];
1652
1652
  o.push({
1653
1653
  key: { status: "valid", value: u },
1654
- value: d._parse(
1655
- new A(s, g, s.path, u)
1654
+ value: c._parse(
1655
+ new A(s, m, s.path, u)
1656
1656
  //, ctx.child(key), value, getParsedType(value)
1657
1657
  ),
1658
1658
  alwaysSet: u in s.data
@@ -1660,17 +1660,17 @@ class k extends _ {
1660
1660
  }
1661
1661
  }
1662
1662
  return s.common.async ? Promise.resolve().then(async () => {
1663
- const d = [];
1663
+ const c = [];
1664
1664
  for (const u of o) {
1665
- const g = await u.key, w = await u.value;
1666
- d.push({
1667
- key: g,
1665
+ const m = await u.key, w = await u.value;
1666
+ c.push({
1667
+ key: m,
1668
1668
  value: w,
1669
1669
  alwaysSet: u.alwaysSet
1670
1670
  });
1671
1671
  }
1672
- return d;
1673
- }).then((d) => Z.mergeObjectSync(t, d)) : Z.mergeObjectSync(t, o);
1672
+ return c;
1673
+ }).then((c) => Z.mergeObjectSync(t, c)) : Z.mergeObjectSync(t, o);
1674
1674
  }
1675
1675
  get shape() {
1676
1676
  return this._def.shape();
@@ -1682,11 +1682,11 @@ class k extends _ {
1682
1682
  ...e !== void 0 ? {
1683
1683
  errorMap: (t, s) => {
1684
1684
  var n, i, r, o;
1685
- const d = (r = (i = (n = this._def).errorMap) === null || i === void 0 ? void 0 : i.call(n, t, s).message) !== null && r !== void 0 ? r : s.defaultError;
1685
+ const c = (r = (i = (n = this._def).errorMap) === null || i === void 0 ? void 0 : i.call(n, t, s).message) !== null && r !== void 0 ? r : s.defaultError;
1686
1686
  return t.code === "unrecognized_keys" ? {
1687
- message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : d
1687
+ message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : c
1688
1688
  } : {
1689
- message: d
1689
+ message: c
1690
1690
  };
1691
1691
  }
1692
1692
  } : {}
@@ -1743,7 +1743,7 @@ class k extends _ {
1743
1743
  ...this._def.shape(),
1744
1744
  ...e._def.shape()
1745
1745
  }),
1746
- typeName: m.ZodObject
1746
+ typeName: f.ZodObject
1747
1747
  });
1748
1748
  }
1749
1749
  // merge<
@@ -1869,24 +1869,24 @@ k.create = (a, e) => new k({
1869
1869
  shape: () => a,
1870
1870
  unknownKeys: "strip",
1871
1871
  catchall: $.create(),
1872
- typeName: m.ZodObject,
1873
- ...y(e)
1872
+ typeName: f.ZodObject,
1873
+ ...g(e)
1874
1874
  });
1875
1875
  k.strictCreate = (a, e) => new k({
1876
1876
  shape: () => a,
1877
1877
  unknownKeys: "strict",
1878
1878
  catchall: $.create(),
1879
- typeName: m.ZodObject,
1880
- ...y(e)
1879
+ typeName: f.ZodObject,
1880
+ ...g(e)
1881
1881
  });
1882
1882
  k.lazycreate = (a, e) => new k({
1883
1883
  shape: a,
1884
1884
  unknownKeys: "strip",
1885
1885
  catchall: $.create(),
1886
- typeName: m.ZodObject,
1887
- ...y(e)
1886
+ typeName: f.ZodObject,
1887
+ ...g(e)
1888
1888
  });
1889
- class ne extends _ {
1889
+ class ne extends y {
1890
1890
  _parse(e) {
1891
1891
  const { ctx: t } = this._processInputParams(e), s = this._def.options;
1892
1892
  function n(i) {
@@ -1896,11 +1896,11 @@ class ne extends _ {
1896
1896
  for (const o of i)
1897
1897
  if (o.result.status === "dirty")
1898
1898
  return t.common.issues.push(...o.ctx.common.issues), o.result;
1899
- const r = i.map((o) => new C(o.ctx.common.issues));
1899
+ const r = i.map((o) => new N(o.ctx.common.issues));
1900
1900
  return l(t, {
1901
- code: c.invalid_union,
1901
+ code: d.invalid_union,
1902
1902
  unionErrors: r
1903
- }), f;
1903
+ }), _;
1904
1904
  }
1905
1905
  if (t.common.async)
1906
1906
  return Promise.all(s.map(async (i) => {
@@ -1924,7 +1924,7 @@ class ne extends _ {
1924
1924
  {
1925
1925
  let i;
1926
1926
  const r = [];
1927
- for (const d of s) {
1927
+ for (const c of s) {
1928
1928
  const u = {
1929
1929
  ...t,
1930
1930
  common: {
@@ -1932,22 +1932,22 @@ class ne extends _ {
1932
1932
  issues: []
1933
1933
  },
1934
1934
  parent: null
1935
- }, g = d._parseSync({
1935
+ }, m = c._parseSync({
1936
1936
  data: t.data,
1937
1937
  path: t.path,
1938
1938
  parent: u
1939
1939
  });
1940
- if (g.status === "valid")
1941
- return g;
1942
- g.status === "dirty" && !i && (i = { result: g, ctx: u }), u.common.issues.length && r.push(u.common.issues);
1940
+ if (m.status === "valid")
1941
+ return m;
1942
+ m.status === "dirty" && !i && (i = { result: m, ctx: u }), u.common.issues.length && r.push(u.common.issues);
1943
1943
  }
1944
1944
  if (i)
1945
1945
  return t.common.issues.push(...i.ctx.common.issues), i.result;
1946
- const o = r.map((d) => new C(d));
1946
+ const o = r.map((c) => new N(c));
1947
1947
  return l(t, {
1948
- code: c.invalid_union,
1948
+ code: d.invalid_union,
1949
1949
  unionErrors: o
1950
- }), f;
1950
+ }), _;
1951
1951
  }
1952
1952
  }
1953
1953
  get options() {
@@ -1956,19 +1956,19 @@ class ne extends _ {
1956
1956
  }
1957
1957
  ne.create = (a, e) => new ne({
1958
1958
  options: a,
1959
- typeName: m.ZodUnion,
1960
- ...y(e)
1959
+ typeName: f.ZodUnion,
1960
+ ...g(e)
1961
1961
  });
1962
- const P = (a) => a instanceof oe ? P(a.schema) : a instanceof S ? P(a.innerType()) : a instanceof de ? [a.value] : a instanceof pe ? a.options : a instanceof ce ? b.objectValues(a.enum) : a instanceof ue ? P(a._def.innerType) : a instanceof se ? [void 0] : a instanceof ae ? [null] : a instanceof O ? [void 0, ...P(a.unwrap())] : a instanceof M ? [null, ...P(a.unwrap())] : a instanceof Fe || a instanceof he ? P(a.unwrap()) : a instanceof le ? P(a._def.innerType) : [];
1963
- class Ce extends _ {
1962
+ const P = (a) => a instanceof oe ? P(a.schema) : a instanceof C ? P(a.innerType()) : a instanceof ce ? [a.value] : a instanceof pe ? a.options : a instanceof de ? b.objectValues(a.enum) : a instanceof ue ? P(a._def.innerType) : a instanceof se ? [void 0] : a instanceof ae ? [null] : a instanceof O ? [void 0, ...P(a.unwrap())] : a instanceof M ? [null, ...P(a.unwrap())] : a instanceof Fe || a instanceof he ? P(a.unwrap()) : a instanceof le ? P(a._def.innerType) : [];
1963
+ class Ne extends y {
1964
1964
  _parse(e) {
1965
1965
  const { ctx: t } = this._processInputParams(e);
1966
1966
  if (t.parsedType !== h.object)
1967
1967
  return l(t, {
1968
- code: c.invalid_type,
1968
+ code: d.invalid_type,
1969
1969
  expected: h.object,
1970
1970
  received: t.parsedType
1971
- }), f;
1971
+ }), _;
1972
1972
  const s = this.discriminator, n = t.data[s], i = this.optionsMap.get(n);
1973
1973
  return i ? t.common.async ? i._parseAsync({
1974
1974
  data: t.data,
@@ -1979,10 +1979,10 @@ class Ce extends _ {
1979
1979
  path: t.path,
1980
1980
  parent: t
1981
1981
  }) : (l(t, {
1982
- code: c.invalid_union_discriminator,
1982
+ code: d.invalid_union_discriminator,
1983
1983
  options: Array.from(this.optionsMap.keys()),
1984
1984
  path: [s]
1985
- }), f);
1985
+ }), _);
1986
1986
  }
1987
1987
  get discriminator() {
1988
1988
  return this._def.discriminator;
@@ -2013,26 +2013,26 @@ class Ce extends _ {
2013
2013
  n.set(o, i);
2014
2014
  }
2015
2015
  }
2016
- return new Ce({
2017
- typeName: m.ZodDiscriminatedUnion,
2016
+ return new Ne({
2017
+ typeName: f.ZodDiscriminatedUnion,
2018
2018
  discriminator: e,
2019
2019
  options: t,
2020
2020
  optionsMap: n,
2021
- ...y(s)
2021
+ ...g(s)
2022
2022
  });
2023
2023
  }
2024
2024
  }
2025
2025
  function Re(a, e) {
2026
- const t = E(a), s = E(e);
2026
+ const t = j(a), s = j(e);
2027
2027
  if (a === e)
2028
2028
  return { valid: !0, data: a };
2029
2029
  if (t === h.object && s === h.object) {
2030
2030
  const n = b.objectKeys(e), i = b.objectKeys(a).filter((o) => n.indexOf(o) !== -1), r = { ...a, ...e };
2031
2031
  for (const o of i) {
2032
- const d = Re(a[o], e[o]);
2033
- if (!d.valid)
2032
+ const c = Re(a[o], e[o]);
2033
+ if (!c.valid)
2034
2034
  return { valid: !1 };
2035
- r[o] = d.data;
2035
+ r[o] = c.data;
2036
2036
  }
2037
2037
  return { valid: !0, data: r };
2038
2038
  } else if (t === h.array && s === h.array) {
@@ -2040,23 +2040,23 @@ function Re(a, e) {
2040
2040
  return { valid: !1 };
2041
2041
  const n = [];
2042
2042
  for (let i = 0; i < a.length; i++) {
2043
- const r = a[i], o = e[i], d = Re(r, o);
2044
- if (!d.valid)
2043
+ const r = a[i], o = e[i], c = Re(r, o);
2044
+ if (!c.valid)
2045
2045
  return { valid: !1 };
2046
- n.push(d.data);
2046
+ n.push(c.data);
2047
2047
  }
2048
2048
  return { valid: !0, data: n };
2049
2049
  } else return t === h.date && s === h.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
2050
2050
  }
2051
- class ie extends _ {
2051
+ class ie extends y {
2052
2052
  _parse(e) {
2053
2053
  const { status: t, ctx: s } = this._processInputParams(e), n = (i, r) => {
2054
- if (Ee(i) || Ee(r))
2055
- return f;
2054
+ if (je(i) || je(r))
2055
+ return _;
2056
2056
  const o = Re(i.value, r.value);
2057
2057
  return o.valid ? (($e(i) || $e(r)) && t.dirty(), { status: t.value, value: o.data }) : (l(s, {
2058
- code: c.invalid_intersection_types
2059
- }), f);
2058
+ code: d.invalid_intersection_types
2059
+ }), _);
2060
2060
  };
2061
2061
  return s.common.async ? Promise.all([
2062
2062
  this._def.left._parseAsync({
@@ -2083,28 +2083,28 @@ class ie extends _ {
2083
2083
  ie.create = (a, e, t) => new ie({
2084
2084
  left: a,
2085
2085
  right: e,
2086
- typeName: m.ZodIntersection,
2087
- ...y(t)
2086
+ typeName: f.ZodIntersection,
2087
+ ...g(t)
2088
2088
  });
2089
- class j extends _ {
2089
+ class I extends y {
2090
2090
  _parse(e) {
2091
2091
  const { status: t, ctx: s } = this._processInputParams(e);
2092
2092
  if (s.parsedType !== h.array)
2093
2093
  return l(s, {
2094
- code: c.invalid_type,
2094
+ code: d.invalid_type,
2095
2095
  expected: h.array,
2096
2096
  received: s.parsedType
2097
- }), f;
2097
+ }), _;
2098
2098
  if (s.data.length < this._def.items.length)
2099
2099
  return l(s, {
2100
- code: c.too_small,
2100
+ code: d.too_small,
2101
2101
  minimum: this._def.items.length,
2102
2102
  inclusive: !0,
2103
2103
  exact: !1,
2104
2104
  type: "array"
2105
- }), f;
2105
+ }), _;
2106
2106
  !this._def.rest && s.data.length > this._def.items.length && (l(s, {
2107
- code: c.too_big,
2107
+ code: d.too_big,
2108
2108
  maximum: this._def.items.length,
2109
2109
  inclusive: !0,
2110
2110
  exact: !1,
@@ -2120,23 +2120,23 @@ class j extends _ {
2120
2120
  return this._def.items;
2121
2121
  }
2122
2122
  rest(e) {
2123
- return new j({
2123
+ return new I({
2124
2124
  ...this._def,
2125
2125
  rest: e
2126
2126
  });
2127
2127
  }
2128
2128
  }
2129
- j.create = (a, e) => {
2129
+ I.create = (a, e) => {
2130
2130
  if (!Array.isArray(a))
2131
2131
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
2132
- return new j({
2132
+ return new I({
2133
2133
  items: a,
2134
- typeName: m.ZodTuple,
2134
+ typeName: f.ZodTuple,
2135
2135
  rest: null,
2136
- ...y(e)
2136
+ ...g(e)
2137
2137
  });
2138
2138
  };
2139
- class re extends _ {
2139
+ class re extends y {
2140
2140
  get keySchema() {
2141
2141
  return this._def.keyType;
2142
2142
  }
@@ -2147,10 +2147,10 @@ class re extends _ {
2147
2147
  const { status: t, ctx: s } = this._processInputParams(e);
2148
2148
  if (s.parsedType !== h.object)
2149
2149
  return l(s, {
2150
- code: c.invalid_type,
2150
+ code: d.invalid_type,
2151
2151
  expected: h.object,
2152
2152
  received: s.parsedType
2153
- }), f;
2153
+ }), _;
2154
2154
  const n = [], i = this._def.keyType, r = this._def.valueType;
2155
2155
  for (const o in s.data)
2156
2156
  n.push({
@@ -2164,20 +2164,20 @@ class re extends _ {
2164
2164
  return this._def.valueType;
2165
2165
  }
2166
2166
  static create(e, t, s) {
2167
- return t instanceof _ ? new re({
2167
+ return t instanceof y ? new re({
2168
2168
  keyType: e,
2169
2169
  valueType: t,
2170
- typeName: m.ZodRecord,
2171
- ...y(s)
2170
+ typeName: f.ZodRecord,
2171
+ ...g(s)
2172
2172
  }) : new re({
2173
- keyType: N.create(),
2173
+ keyType: S.create(),
2174
2174
  valueType: e,
2175
- typeName: m.ZodRecord,
2176
- ...y(t)
2175
+ typeName: f.ZodRecord,
2176
+ ...g(t)
2177
2177
  });
2178
2178
  }
2179
2179
  }
2180
- class Te extends _ {
2180
+ class Te extends y {
2181
2181
  get keySchema() {
2182
2182
  return this._def.keyType;
2183
2183
  }
@@ -2188,32 +2188,32 @@ class Te extends _ {
2188
2188
  const { status: t, ctx: s } = this._processInputParams(e);
2189
2189
  if (s.parsedType !== h.map)
2190
2190
  return l(s, {
2191
- code: c.invalid_type,
2191
+ code: d.invalid_type,
2192
2192
  expected: h.map,
2193
2193
  received: s.parsedType
2194
- }), f;
2195
- const n = this._def.keyType, i = this._def.valueType, r = [...s.data.entries()].map(([o, d], u) => ({
2194
+ }), _;
2195
+ const n = this._def.keyType, i = this._def.valueType, r = [...s.data.entries()].map(([o, c], u) => ({
2196
2196
  key: n._parse(new A(s, o, s.path, [u, "key"])),
2197
- value: i._parse(new A(s, d, s.path, [u, "value"]))
2197
+ value: i._parse(new A(s, c, s.path, [u, "value"]))
2198
2198
  }));
2199
2199
  if (s.common.async) {
2200
2200
  const o = /* @__PURE__ */ new Map();
2201
2201
  return Promise.resolve().then(async () => {
2202
- for (const d of r) {
2203
- const u = await d.key, g = await d.value;
2204
- if (u.status === "aborted" || g.status === "aborted")
2205
- return f;
2206
- (u.status === "dirty" || g.status === "dirty") && t.dirty(), o.set(u.value, g.value);
2202
+ for (const c of r) {
2203
+ const u = await c.key, m = await c.value;
2204
+ if (u.status === "aborted" || m.status === "aborted")
2205
+ return _;
2206
+ (u.status === "dirty" || m.status === "dirty") && t.dirty(), o.set(u.value, m.value);
2207
2207
  }
2208
2208
  return { status: t.value, value: o };
2209
2209
  });
2210
2210
  } else {
2211
2211
  const o = /* @__PURE__ */ new Map();
2212
- for (const d of r) {
2213
- const u = d.key, g = d.value;
2214
- if (u.status === "aborted" || g.status === "aborted")
2215
- return f;
2216
- (u.status === "dirty" || g.status === "dirty") && t.dirty(), o.set(u.value, g.value);
2212
+ for (const c of r) {
2213
+ const u = c.key, m = c.value;
2214
+ if (u.status === "aborted" || m.status === "aborted")
2215
+ return _;
2216
+ (u.status === "dirty" || m.status === "dirty") && t.dirty(), o.set(u.value, m.value);
2217
2217
  }
2218
2218
  return { status: t.value, value: o };
2219
2219
  }
@@ -2222,28 +2222,28 @@ class Te extends _ {
2222
2222
  Te.create = (a, e, t) => new Te({
2223
2223
  valueType: e,
2224
2224
  keyType: a,
2225
- typeName: m.ZodMap,
2226
- ...y(t)
2225
+ typeName: f.ZodMap,
2226
+ ...g(t)
2227
2227
  });
2228
- class V extends _ {
2228
+ class V extends y {
2229
2229
  _parse(e) {
2230
2230
  const { status: t, ctx: s } = this._processInputParams(e);
2231
2231
  if (s.parsedType !== h.set)
2232
2232
  return l(s, {
2233
- code: c.invalid_type,
2233
+ code: d.invalid_type,
2234
2234
  expected: h.set,
2235
2235
  received: s.parsedType
2236
- }), f;
2236
+ }), _;
2237
2237
  const n = this._def;
2238
2238
  n.minSize !== null && s.data.size < n.minSize.value && (l(s, {
2239
- code: c.too_small,
2239
+ code: d.too_small,
2240
2240
  minimum: n.minSize.value,
2241
2241
  type: "set",
2242
2242
  inclusive: !0,
2243
2243
  exact: !1,
2244
2244
  message: n.minSize.message
2245
2245
  }), t.dirty()), n.maxSize !== null && s.data.size > n.maxSize.value && (l(s, {
2246
- code: c.too_big,
2246
+ code: d.too_big,
2247
2247
  maximum: n.maxSize.value,
2248
2248
  type: "set",
2249
2249
  inclusive: !0,
@@ -2251,17 +2251,17 @@ class V extends _ {
2251
2251
  message: n.maxSize.message
2252
2252
  }), t.dirty());
2253
2253
  const i = this._def.valueType;
2254
- function r(d) {
2254
+ function r(c) {
2255
2255
  const u = /* @__PURE__ */ new Set();
2256
- for (const g of d) {
2257
- if (g.status === "aborted")
2258
- return f;
2259
- g.status === "dirty" && t.dirty(), u.add(g.value);
2256
+ for (const m of c) {
2257
+ if (m.status === "aborted")
2258
+ return _;
2259
+ m.status === "dirty" && t.dirty(), u.add(m.value);
2260
2260
  }
2261
2261
  return { status: t.value, value: u };
2262
2262
  }
2263
- const o = [...s.data.values()].map((d, u) => i._parse(new A(s, d, s.path, u)));
2264
- return s.common.async ? Promise.all(o).then((d) => r(d)) : r(o);
2263
+ const o = [...s.data.values()].map((c, u) => i._parse(new A(s, c, s.path, u)));
2264
+ return s.common.async ? Promise.all(o).then((c) => r(c)) : r(o);
2265
2265
  }
2266
2266
  min(e, t) {
2267
2267
  return new V({
@@ -2286,10 +2286,10 @@ V.create = (a, e) => new V({
2286
2286
  valueType: a,
2287
2287
  minSize: null,
2288
2288
  maxSize: null,
2289
- typeName: m.ZodSet,
2290
- ...y(e)
2289
+ typeName: f.ZodSet,
2290
+ ...g(e)
2291
2291
  });
2292
- class H extends _ {
2292
+ class H extends y {
2293
2293
  constructor() {
2294
2294
  super(...arguments), this.validate = this.implement;
2295
2295
  }
@@ -2297,11 +2297,11 @@ class H extends _ {
2297
2297
  const { ctx: t } = this._processInputParams(e);
2298
2298
  if (t.parsedType !== h.function)
2299
2299
  return l(t, {
2300
- code: c.invalid_type,
2300
+ code: d.invalid_type,
2301
2301
  expected: h.function,
2302
2302
  received: t.parsedType
2303
- }), f;
2304
- function s(o, d) {
2303
+ }), _;
2304
+ function s(o, c) {
2305
2305
  return be({
2306
2306
  data: o,
2307
2307
  path: t.path,
@@ -2312,12 +2312,12 @@ class H extends _ {
2312
2312
  W
2313
2313
  ].filter((u) => !!u),
2314
2314
  issueData: {
2315
- code: c.invalid_arguments,
2316
- argumentsError: d
2315
+ code: d.invalid_arguments,
2316
+ argumentsError: c
2317
2317
  }
2318
2318
  });
2319
2319
  }
2320
- function n(o, d) {
2320
+ function n(o, c) {
2321
2321
  return be({
2322
2322
  data: o,
2323
2323
  path: t.path,
@@ -2328,31 +2328,31 @@ class H extends _ {
2328
2328
  W
2329
2329
  ].filter((u) => !!u),
2330
2330
  issueData: {
2331
- code: c.invalid_return_type,
2332
- returnTypeError: d
2331
+ code: d.invalid_return_type,
2332
+ returnTypeError: c
2333
2333
  }
2334
2334
  });
2335
2335
  }
2336
2336
  const i = { errorMap: t.common.contextualErrorMap }, r = t.data;
2337
2337
  if (this._def.returns instanceof Y) {
2338
2338
  const o = this;
2339
- return x(async function(...d) {
2340
- const u = new C([]), g = await o._def.args.parseAsync(d, i).catch((I) => {
2341
- throw u.addIssue(s(d, I)), u;
2342
- }), w = await Reflect.apply(r, this, g);
2343
- return await o._def.returns._def.type.parseAsync(w, i).catch((I) => {
2344
- throw u.addIssue(n(w, I)), u;
2339
+ return x(async function(...c) {
2340
+ const u = new N([]), m = await o._def.args.parseAsync(c, i).catch((E) => {
2341
+ throw u.addIssue(s(c, E)), u;
2342
+ }), w = await Reflect.apply(r, this, m);
2343
+ return await o._def.returns._def.type.parseAsync(w, i).catch((E) => {
2344
+ throw u.addIssue(n(w, E)), u;
2345
2345
  });
2346
2346
  });
2347
2347
  } else {
2348
2348
  const o = this;
2349
- return x(function(...d) {
2350
- const u = o._def.args.safeParse(d, i);
2349
+ return x(function(...c) {
2350
+ const u = o._def.args.safeParse(c, i);
2351
2351
  if (!u.success)
2352
- throw new C([s(d, u.error)]);
2353
- const g = Reflect.apply(r, this, u.data), w = o._def.returns.safeParse(g, i);
2352
+ throw new N([s(c, u.error)]);
2353
+ const m = Reflect.apply(r, this, u.data), w = o._def.returns.safeParse(m, i);
2354
2354
  if (!w.success)
2355
- throw new C([n(g, w.error)]);
2355
+ throw new N([n(m, w.error)]);
2356
2356
  return w.data;
2357
2357
  });
2358
2358
  }
@@ -2366,7 +2366,7 @@ class H extends _ {
2366
2366
  args(...e) {
2367
2367
  return new H({
2368
2368
  ...this._def,
2369
- args: j.create(e).rest(D.create())
2369
+ args: I.create(e).rest(D.create())
2370
2370
  });
2371
2371
  }
2372
2372
  returns(e) {
@@ -2383,14 +2383,14 @@ class H extends _ {
2383
2383
  }
2384
2384
  static create(e, t, s) {
2385
2385
  return new H({
2386
- args: e || j.create([]).rest(D.create()),
2386
+ args: e || I.create([]).rest(D.create()),
2387
2387
  returns: t || D.create(),
2388
- typeName: m.ZodFunction,
2389
- ...y(s)
2388
+ typeName: f.ZodFunction,
2389
+ ...g(s)
2390
2390
  });
2391
2391
  }
2392
2392
  }
2393
- class oe extends _ {
2393
+ class oe extends y {
2394
2394
  get schema() {
2395
2395
  return this._def.getter();
2396
2396
  }
@@ -2401,18 +2401,18 @@ class oe extends _ {
2401
2401
  }
2402
2402
  oe.create = (a, e) => new oe({
2403
2403
  getter: a,
2404
- typeName: m.ZodLazy,
2405
- ...y(e)
2404
+ typeName: f.ZodLazy,
2405
+ ...g(e)
2406
2406
  });
2407
- class de extends _ {
2407
+ class ce extends y {
2408
2408
  _parse(e) {
2409
2409
  if (e.data !== this._def.value) {
2410
2410
  const t = this._getOrReturnCtx(e);
2411
2411
  return l(t, {
2412
2412
  received: t.data,
2413
- code: c.invalid_literal,
2413
+ code: d.invalid_literal,
2414
2414
  expected: this._def.value
2415
- }), f;
2415
+ }), _;
2416
2416
  }
2417
2417
  return { status: "valid", value: e.data };
2418
2418
  }
@@ -2420,19 +2420,19 @@ class de extends _ {
2420
2420
  return this._def.value;
2421
2421
  }
2422
2422
  }
2423
- de.create = (a, e) => new de({
2423
+ ce.create = (a, e) => new ce({
2424
2424
  value: a,
2425
- typeName: m.ZodLiteral,
2426
- ...y(e)
2425
+ typeName: f.ZodLiteral,
2426
+ ...g(e)
2427
2427
  });
2428
2428
  function Je(a, e) {
2429
2429
  return new pe({
2430
2430
  values: a,
2431
- typeName: m.ZodEnum,
2432
- ...y(e)
2431
+ typeName: f.ZodEnum,
2432
+ ...g(e)
2433
2433
  });
2434
2434
  }
2435
- let pe = class Me extends _ {
2435
+ let pe = class Me extends y {
2436
2436
  constructor() {
2437
2437
  super(...arguments), G.set(this, void 0);
2438
2438
  }
@@ -2442,16 +2442,16 @@ let pe = class Me extends _ {
2442
2442
  return l(t, {
2443
2443
  expected: b.joinValues(s),
2444
2444
  received: t.parsedType,
2445
- code: c.invalid_type
2446
- }), f;
2445
+ code: d.invalid_type
2446
+ }), _;
2447
2447
  }
2448
2448
  if (we(this, G) || Ue(this, G, new Set(this._def.values)), !we(this, G).has(e.data)) {
2449
2449
  const t = this._getOrReturnCtx(e), s = this._def.values;
2450
2450
  return l(t, {
2451
2451
  received: t.data,
2452
- code: c.invalid_enum_value,
2452
+ code: d.invalid_enum_value,
2453
2453
  options: s
2454
- }), f;
2454
+ }), _;
2455
2455
  }
2456
2456
  return x(e.data);
2457
2457
  }
@@ -2491,7 +2491,7 @@ let pe = class Me extends _ {
2491
2491
  };
2492
2492
  G = /* @__PURE__ */ new WeakMap();
2493
2493
  pe.create = Je;
2494
- class ce extends _ {
2494
+ class de extends y {
2495
2495
  constructor() {
2496
2496
  super(...arguments), X.set(this, void 0);
2497
2497
  }
@@ -2502,16 +2502,16 @@ class ce extends _ {
2502
2502
  return l(s, {
2503
2503
  expected: b.joinValues(n),
2504
2504
  received: s.parsedType,
2505
- code: c.invalid_type
2506
- }), f;
2505
+ code: d.invalid_type
2506
+ }), _;
2507
2507
  }
2508
2508
  if (we(this, X) || Ue(this, X, new Set(b.getValidEnumValues(this._def.values))), !we(this, X).has(e.data)) {
2509
2509
  const n = b.objectValues(t);
2510
2510
  return l(s, {
2511
2511
  received: s.data,
2512
- code: c.invalid_enum_value,
2512
+ code: d.invalid_enum_value,
2513
2513
  options: n
2514
- }), f;
2514
+ }), _;
2515
2515
  }
2516
2516
  return x(e.data);
2517
2517
  }
@@ -2520,12 +2520,12 @@ class ce extends _ {
2520
2520
  }
2521
2521
  }
2522
2522
  X = /* @__PURE__ */ new WeakMap();
2523
- ce.create = (a, e) => new ce({
2523
+ de.create = (a, e) => new de({
2524
2524
  values: a,
2525
- typeName: m.ZodNativeEnum,
2526
- ...y(e)
2525
+ typeName: f.ZodNativeEnum,
2526
+ ...g(e)
2527
2527
  });
2528
- class Y extends _ {
2528
+ class Y extends y {
2529
2529
  unwrap() {
2530
2530
  return this._def.type;
2531
2531
  }
@@ -2533,10 +2533,10 @@ class Y extends _ {
2533
2533
  const { ctx: t } = this._processInputParams(e);
2534
2534
  if (t.parsedType !== h.promise && t.common.async === !1)
2535
2535
  return l(t, {
2536
- code: c.invalid_type,
2536
+ code: d.invalid_type,
2537
2537
  expected: h.promise,
2538
2538
  received: t.parsedType
2539
- }), f;
2539
+ }), _;
2540
2540
  const s = t.parsedType === h.promise ? t.data : Promise.resolve(t.data);
2541
2541
  return x(s.then((n) => this._def.type.parseAsync(n, {
2542
2542
  path: t.path,
@@ -2546,15 +2546,15 @@ class Y extends _ {
2546
2546
  }
2547
2547
  Y.create = (a, e) => new Y({
2548
2548
  type: a,
2549
- typeName: m.ZodPromise,
2550
- ...y(e)
2549
+ typeName: f.ZodPromise,
2550
+ ...g(e)
2551
2551
  });
2552
- class S extends _ {
2552
+ class C extends y {
2553
2553
  innerType() {
2554
2554
  return this._def.schema;
2555
2555
  }
2556
2556
  sourceType() {
2557
- return this._def.schema._def.typeName === m.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2557
+ return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
2558
2558
  }
2559
2559
  _parse(e) {
2560
2560
  const { status: t, ctx: s } = this._processInputParams(e), n = this._def.effect || null, i = {
@@ -2570,31 +2570,31 @@ class S extends _ {
2570
2570
  if (s.common.async)
2571
2571
  return Promise.resolve(r).then(async (o) => {
2572
2572
  if (t.value === "aborted")
2573
- return f;
2574
- const d = await this._def.schema._parseAsync({
2573
+ return _;
2574
+ const c = await this._def.schema._parseAsync({
2575
2575
  data: o,
2576
2576
  path: s.path,
2577
2577
  parent: s
2578
2578
  });
2579
- return d.status === "aborted" ? f : d.status === "dirty" || t.value === "dirty" ? ke(d.value) : d;
2579
+ return c.status === "aborted" ? _ : c.status === "dirty" || t.value === "dirty" ? ke(c.value) : c;
2580
2580
  });
2581
2581
  {
2582
2582
  if (t.value === "aborted")
2583
- return f;
2583
+ return _;
2584
2584
  const o = this._def.schema._parseSync({
2585
2585
  data: r,
2586
2586
  path: s.path,
2587
2587
  parent: s
2588
2588
  });
2589
- return o.status === "aborted" ? f : o.status === "dirty" || t.value === "dirty" ? ke(o.value) : o;
2589
+ return o.status === "aborted" ? _ : o.status === "dirty" || t.value === "dirty" ? ke(o.value) : o;
2590
2590
  }
2591
2591
  }
2592
2592
  if (n.type === "refinement") {
2593
2593
  const r = (o) => {
2594
- const d = n.refinement(o, i);
2594
+ const c = n.refinement(o, i);
2595
2595
  if (s.common.async)
2596
- return Promise.resolve(d);
2597
- if (d instanceof Promise)
2596
+ return Promise.resolve(c);
2597
+ if (c instanceof Promise)
2598
2598
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
2599
2599
  return o;
2600
2600
  };
@@ -2604,9 +2604,9 @@ class S extends _ {
2604
2604
  path: s.path,
2605
2605
  parent: s
2606
2606
  });
2607
- return o.status === "aborted" ? f : (o.status === "dirty" && t.dirty(), r(o.value), { status: t.value, value: o.value });
2607
+ return o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), r(o.value), { status: t.value, value: o.value });
2608
2608
  } else
2609
- return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((o) => o.status === "aborted" ? f : (o.status === "dirty" && t.dirty(), r(o.value).then(() => ({ status: t.value, value: o.value }))));
2609
+ return this._def.schema._parseAsync({ data: s.data, path: s.path, parent: s }).then((o) => o.status === "aborted" ? _ : (o.status === "dirty" && t.dirty(), r(o.value).then(() => ({ status: t.value, value: o.value }))));
2610
2610
  }
2611
2611
  if (n.type === "transform")
2612
2612
  if (s.common.async === !1) {
@@ -2626,19 +2626,19 @@ class S extends _ {
2626
2626
  b.assertNever(n);
2627
2627
  }
2628
2628
  }
2629
- S.create = (a, e, t) => new S({
2629
+ C.create = (a, e, t) => new C({
2630
2630
  schema: a,
2631
- typeName: m.ZodEffects,
2631
+ typeName: f.ZodEffects,
2632
2632
  effect: e,
2633
- ...y(t)
2633
+ ...g(t)
2634
2634
  });
2635
- S.createWithPreprocess = (a, e, t) => new S({
2635
+ C.createWithPreprocess = (a, e, t) => new C({
2636
2636
  schema: e,
2637
2637
  effect: { type: "preprocess", transform: a },
2638
- typeName: m.ZodEffects,
2639
- ...y(t)
2638
+ typeName: f.ZodEffects,
2639
+ ...g(t)
2640
2640
  });
2641
- let O = class extends _ {
2641
+ let O = class extends y {
2642
2642
  _parse(e) {
2643
2643
  return this._getType(e) === h.undefined ? x(void 0) : this._def.innerType._parse(e);
2644
2644
  }
@@ -2648,10 +2648,10 @@ let O = class extends _ {
2648
2648
  };
2649
2649
  O.create = (a, e) => new O({
2650
2650
  innerType: a,
2651
- typeName: m.ZodOptional,
2652
- ...y(e)
2651
+ typeName: f.ZodOptional,
2652
+ ...g(e)
2653
2653
  });
2654
- let M = class extends _ {
2654
+ let M = class extends y {
2655
2655
  _parse(e) {
2656
2656
  return this._getType(e) === h.null ? x(null) : this._def.innerType._parse(e);
2657
2657
  }
@@ -2661,10 +2661,10 @@ let M = class extends _ {
2661
2661
  };
2662
2662
  M.create = (a, e) => new M({
2663
2663
  innerType: a,
2664
- typeName: m.ZodNullable,
2665
- ...y(e)
2664
+ typeName: f.ZodNullable,
2665
+ ...g(e)
2666
2666
  });
2667
- class ue extends _ {
2667
+ class ue extends y {
2668
2668
  _parse(e) {
2669
2669
  const { ctx: t } = this._processInputParams(e);
2670
2670
  let s = t.data;
@@ -2680,11 +2680,11 @@ class ue extends _ {
2680
2680
  }
2681
2681
  ue.create = (a, e) => new ue({
2682
2682
  innerType: a,
2683
- typeName: m.ZodDefault,
2683
+ typeName: f.ZodDefault,
2684
2684
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2685
- ...y(e)
2685
+ ...g(e)
2686
2686
  });
2687
- class le extends _ {
2687
+ class le extends y {
2688
2688
  _parse(e) {
2689
2689
  const { ctx: t } = this._processInputParams(e), s = {
2690
2690
  ...t,
@@ -2703,7 +2703,7 @@ class le extends _ {
2703
2703
  status: "valid",
2704
2704
  value: i.status === "valid" ? i.value : this._def.catchValue({
2705
2705
  get error() {
2706
- return new C(s.common.issues);
2706
+ return new N(s.common.issues);
2707
2707
  },
2708
2708
  input: s.data
2709
2709
  })
@@ -2711,7 +2711,7 @@ class le extends _ {
2711
2711
  status: "valid",
2712
2712
  value: n.status === "valid" ? n.value : this._def.catchValue({
2713
2713
  get error() {
2714
- return new C(s.common.issues);
2714
+ return new N(s.common.issues);
2715
2715
  },
2716
2716
  input: s.data
2717
2717
  })
@@ -2723,29 +2723,29 @@ class le extends _ {
2723
2723
  }
2724
2724
  le.create = (a, e) => new le({
2725
2725
  innerType: a,
2726
- typeName: m.ZodCatch,
2726
+ typeName: f.ZodCatch,
2727
2727
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2728
- ...y(e)
2728
+ ...g(e)
2729
2729
  });
2730
- class Ne extends _ {
2730
+ class Se extends y {
2731
2731
  _parse(e) {
2732
2732
  if (this._getType(e) !== h.nan) {
2733
2733
  const t = this._getOrReturnCtx(e);
2734
2734
  return l(t, {
2735
- code: c.invalid_type,
2735
+ code: d.invalid_type,
2736
2736
  expected: h.nan,
2737
2737
  received: t.parsedType
2738
- }), f;
2738
+ }), _;
2739
2739
  }
2740
2740
  return { status: "valid", value: e.data };
2741
2741
  }
2742
2742
  }
2743
- Ne.create = (a) => new Ne({
2744
- typeName: m.ZodNaN,
2745
- ...y(a)
2743
+ Se.create = (a) => new Se({
2744
+ typeName: f.ZodNaN,
2745
+ ...g(a)
2746
2746
  });
2747
2747
  const Zt = Symbol("zod_brand");
2748
- class Fe extends _ {
2748
+ class Fe extends y {
2749
2749
  _parse(e) {
2750
2750
  const { ctx: t } = this._processInputParams(e), s = t.data;
2751
2751
  return this._def.type._parse({
@@ -2758,7 +2758,7 @@ class Fe extends _ {
2758
2758
  return this._def.type;
2759
2759
  }
2760
2760
  }
2761
- class me extends _ {
2761
+ class me extends y {
2762
2762
  _parse(e) {
2763
2763
  const { status: t, ctx: s } = this._processInputParams(e);
2764
2764
  if (s.common.async)
@@ -2768,7 +2768,7 @@ class me extends _ {
2768
2768
  path: s.path,
2769
2769
  parent: s
2770
2770
  });
2771
- return n.status === "aborted" ? f : n.status === "dirty" ? (t.dirty(), ke(n.value)) : this._def.out._parseAsync({
2771
+ return n.status === "aborted" ? _ : n.status === "dirty" ? (t.dirty(), ke(n.value)) : this._def.out._parseAsync({
2772
2772
  data: n.value,
2773
2773
  path: s.path,
2774
2774
  parent: s
@@ -2780,7 +2780,7 @@ class me extends _ {
2780
2780
  path: s.path,
2781
2781
  parent: s
2782
2782
  });
2783
- return n.status === "aborted" ? f : n.status === "dirty" ? (t.dirty(), {
2783
+ return n.status === "aborted" ? _ : n.status === "dirty" ? (t.dirty(), {
2784
2784
  status: "dirty",
2785
2785
  value: n.value
2786
2786
  }) : this._def.out._parseSync({
@@ -2794,11 +2794,11 @@ class me extends _ {
2794
2794
  return new me({
2795
2795
  in: e,
2796
2796
  out: t,
2797
- typeName: m.ZodPipeline
2797
+ typeName: f.ZodPipeline
2798
2798
  });
2799
2799
  }
2800
2800
  }
2801
- class he extends _ {
2801
+ class he extends y {
2802
2802
  _parse(e) {
2803
2803
  const t = this._def.innerType._parse(e), s = (n) => (z(n) && (n.value = Object.freeze(n.value)), n);
2804
2804
  return Q(t) ? t.then((n) => s(n)) : s(t);
@@ -2809,8 +2809,8 @@ class he extends _ {
2809
2809
  }
2810
2810
  he.create = (a, e) => new he({
2811
2811
  innerType: a,
2812
- typeName: m.ZodReadonly,
2813
- ...y(e)
2812
+ typeName: f.ZodReadonly,
2813
+ ...g(e)
2814
2814
  });
2815
2815
  function De(a, e) {
2816
2816
  const t = typeof a == "function" ? a(e) : typeof a == "string" ? { message: a } : a;
@@ -2821,30 +2821,30 @@ function Ye(a, e = {}, t) {
2821
2821
  var i, r;
2822
2822
  const o = a(s);
2823
2823
  if (o instanceof Promise)
2824
- return o.then((d) => {
2825
- var u, g;
2826
- if (!d) {
2827
- const w = De(e, s), I = (g = (u = w.fatal) !== null && u !== void 0 ? u : t) !== null && g !== void 0 ? g : !0;
2828
- n.addIssue({ code: "custom", ...w, fatal: I });
2824
+ return o.then((c) => {
2825
+ var u, m;
2826
+ if (!c) {
2827
+ const w = De(e, s), E = (m = (u = w.fatal) !== null && u !== void 0 ? u : t) !== null && m !== void 0 ? m : !0;
2828
+ n.addIssue({ code: "custom", ...w, fatal: E });
2829
2829
  }
2830
2830
  });
2831
2831
  if (!o) {
2832
- const d = De(e, s), u = (r = (i = d.fatal) !== null && i !== void 0 ? i : t) !== null && r !== void 0 ? r : !0;
2833
- n.addIssue({ code: "custom", ...d, fatal: u });
2832
+ const c = De(e, s), u = (r = (i = c.fatal) !== null && i !== void 0 ? i : t) !== null && r !== void 0 ? r : !0;
2833
+ n.addIssue({ code: "custom", ...c, fatal: u });
2834
2834
  }
2835
2835
  }) : J.create();
2836
2836
  }
2837
2837
  const Tt = {
2838
2838
  object: k.lazycreate
2839
2839
  };
2840
- var m;
2840
+ var f;
2841
2841
  (function(a) {
2842
2842
  a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
2843
- })(m || (m = {}));
2844
- const Nt = (a, e = {
2843
+ })(f || (f = {}));
2844
+ const St = (a, e = {
2845
2845
  message: `Input not instance of ${a.name}`
2846
- }) => Ye((t) => t instanceof a, e), Ge = N.create, Xe = R.create, Ct = Ne.create, St = ee.create, Qe = te.create, Ot = q.create, At = xe.create, jt = se.create, It = ae.create, Et = J.create, $t = D.create, Pt = $.create, Rt = Ze.create, Mt = B.create, Ft = k.create, Lt = k.strictCreate, Dt = ne.create, zt = Ce.create, qt = ie.create, Bt = j.create, Vt = re.create, Ut = Te.create, Kt = V.create, Ht = H.create, Wt = oe.create, Jt = de.create, Yt = pe.create, Gt = ce.create, Xt = Y.create, ze = S.create, Qt = O.create, es = M.create, ts = S.createWithPreprocess, ss = me.create, as = () => Ge().optional(), ns = () => Xe().optional(), is = () => Qe().optional(), rs = {
2847
- string: (a) => N.create({ ...a, coerce: !0 }),
2846
+ }) => Ye((t) => t instanceof a, e), Ge = S.create, Xe = R.create, Nt = Se.create, Ct = ee.create, Qe = te.create, Ot = q.create, At = xe.create, It = se.create, Et = ae.create, jt = J.create, $t = D.create, Pt = $.create, Rt = Ze.create, Mt = B.create, Ft = k.create, Lt = k.strictCreate, Dt = ne.create, zt = Ne.create, qt = ie.create, Bt = I.create, Vt = re.create, Ut = Te.create, Kt = V.create, Ht = H.create, Wt = oe.create, Jt = ce.create, Yt = pe.create, Gt = de.create, Xt = Y.create, ze = C.create, Qt = O.create, es = M.create, ts = C.createWithPreprocess, ss = me.create, as = () => Ge().optional(), ns = () => Xe().optional(), is = () => Qe().optional(), rs = {
2847
+ string: (a) => S.create({ ...a, coerce: !0 }),
2848
2848
  number: (a) => R.create({ ...a, coerce: !0 }),
2849
2849
  boolean: (a) => te.create({
2850
2850
  ...a,
@@ -2852,8 +2852,8 @@ const Nt = (a, e = {
2852
2852
  }),
2853
2853
  bigint: (a) => ee.create({ ...a, coerce: !0 }),
2854
2854
  date: (a) => q.create({ ...a, coerce: !0 })
2855
- }, os = f;
2856
- var je = /* @__PURE__ */ Object.freeze({
2855
+ }, os = _;
2856
+ var Ie = /* @__PURE__ */ Object.freeze({
2857
2857
  __proto__: null,
2858
2858
  defaultErrorMap: W,
2859
2859
  setErrorMap: tt,
@@ -2862,10 +2862,10 @@ var je = /* @__PURE__ */ Object.freeze({
2862
2862
  EMPTY_PATH: st,
2863
2863
  addIssueToContext: l,
2864
2864
  ParseStatus: Z,
2865
- INVALID: f,
2865
+ INVALID: _,
2866
2866
  DIRTY: ke,
2867
2867
  OK: x,
2868
- isAborted: Ee,
2868
+ isAborted: je,
2869
2869
  isDirty: $e,
2870
2870
  isValid: z,
2871
2871
  isAsync: Q,
@@ -2873,13 +2873,13 @@ var je = /* @__PURE__ */ Object.freeze({
2873
2873
  return b;
2874
2874
  },
2875
2875
  get objectUtil() {
2876
- return Ie;
2876
+ return Ee;
2877
2877
  },
2878
2878
  ZodParsedType: h,
2879
- getParsedType: E,
2880
- ZodType: _,
2879
+ getParsedType: j,
2880
+ ZodType: y,
2881
2881
  datetimeRegex: We,
2882
- ZodString: N,
2882
+ ZodString: S,
2883
2883
  ZodNumber: R,
2884
2884
  ZodBigInt: ee,
2885
2885
  ZodBoolean: te,
@@ -2894,55 +2894,55 @@ var je = /* @__PURE__ */ Object.freeze({
2894
2894
  ZodArray: B,
2895
2895
  ZodObject: k,
2896
2896
  ZodUnion: ne,
2897
- ZodDiscriminatedUnion: Ce,
2897
+ ZodDiscriminatedUnion: Ne,
2898
2898
  ZodIntersection: ie,
2899
- ZodTuple: j,
2899
+ ZodTuple: I,
2900
2900
  ZodRecord: re,
2901
2901
  ZodMap: Te,
2902
2902
  ZodSet: V,
2903
2903
  ZodFunction: H,
2904
2904
  ZodLazy: oe,
2905
- ZodLiteral: de,
2905
+ ZodLiteral: ce,
2906
2906
  ZodEnum: pe,
2907
- ZodNativeEnum: ce,
2907
+ ZodNativeEnum: de,
2908
2908
  ZodPromise: Y,
2909
- ZodEffects: S,
2910
- ZodTransformer: S,
2909
+ ZodEffects: C,
2910
+ ZodTransformer: C,
2911
2911
  ZodOptional: O,
2912
2912
  ZodNullable: M,
2913
2913
  ZodDefault: ue,
2914
2914
  ZodCatch: le,
2915
- ZodNaN: Ne,
2915
+ ZodNaN: Se,
2916
2916
  BRAND: Zt,
2917
2917
  ZodBranded: Fe,
2918
2918
  ZodPipeline: me,
2919
2919
  ZodReadonly: he,
2920
2920
  custom: Ye,
2921
- Schema: _,
2922
- ZodSchema: _,
2921
+ Schema: y,
2922
+ ZodSchema: y,
2923
2923
  late: Tt,
2924
2924
  get ZodFirstPartyTypeKind() {
2925
- return m;
2925
+ return f;
2926
2926
  },
2927
2927
  coerce: rs,
2928
- any: Et,
2928
+ any: jt,
2929
2929
  array: Mt,
2930
- bigint: St,
2930
+ bigint: Ct,
2931
2931
  boolean: Qe,
2932
2932
  date: Ot,
2933
2933
  discriminatedUnion: zt,
2934
2934
  effect: ze,
2935
2935
  enum: Yt,
2936
2936
  function: Ht,
2937
- instanceof: Nt,
2937
+ instanceof: St,
2938
2938
  intersection: qt,
2939
2939
  lazy: Wt,
2940
2940
  literal: Jt,
2941
2941
  map: Ut,
2942
- nan: Ct,
2942
+ nan: Nt,
2943
2943
  nativeEnum: Gt,
2944
2944
  never: Pt,
2945
- null: It,
2945
+ null: Et,
2946
2946
  nullable: es,
2947
2947
  number: Xe,
2948
2948
  object: Ft,
@@ -2960,17 +2960,17 @@ var je = /* @__PURE__ */ Object.freeze({
2960
2960
  symbol: At,
2961
2961
  transformer: ze,
2962
2962
  tuple: Bt,
2963
- undefined: jt,
2963
+ undefined: It,
2964
2964
  union: Dt,
2965
2965
  unknown: $t,
2966
2966
  void: Rt,
2967
2967
  NEVER: os,
2968
- ZodIssueCode: c,
2968
+ ZodIssueCode: d,
2969
2969
  quotelessJson: et,
2970
- ZodError: C
2970
+ ZodError: N
2971
2971
  });
2972
- const ds = "1.0.1", cs = {
2973
- version: ds
2972
+ const cs = "1.1.0", ds = {
2973
+ version: cs
2974
2974
  };
2975
2975
  class us {
2976
2976
  constructor(e) {
@@ -3048,7 +3048,7 @@ class ls {
3048
3048
  function hs(a, e = console.error) {
3049
3049
  a().catch(e);
3050
3050
  }
3051
- class Ns {
3051
+ class Ts {
3052
3052
  constructor(e) {
3053
3053
  this._client = e;
3054
3054
  }
@@ -3303,9 +3303,9 @@ class fs {
3303
3303
  return await this._client.request("user.getCurrentUser", {});
3304
3304
  }
3305
3305
  }
3306
- const ys = je.object({
3307
- name: je.string(),
3308
- data: je.any()
3306
+ const _s = Ie.object({
3307
+ name: Ie.string(),
3308
+ data: Ie.any()
3309
3309
  });
3310
3310
  class gs {
3311
3311
  /**
@@ -3362,7 +3362,7 @@ class gs {
3362
3362
  }
3363
3363
  }
3364
3364
  const U = 1e3 * 30;
3365
- class _s {
3365
+ class ys {
3366
3366
  /**
3367
3367
  * Creates a new Client instance for communicating with the TelemetryOS platform.
3368
3368
  *
@@ -3374,7 +3374,7 @@ class _s {
3374
3374
  * in your application's telemetry.config.json file
3375
3375
  */
3376
3376
  constructor(e) {
3377
- this._applicationName = e, this._applicationId = "", this._onHandlers = /* @__PURE__ */ new Map(), this._onceHandlers = /* @__PURE__ */ new Map(), this._subscriptionNamesByHandler = /* @__PURE__ */ new Map(), this._subscriptionNamesBySubjectName = /* @__PURE__ */ new Map();
3377
+ this._applicationName = e, this._applicationInstance = "", this._applicationSpecifier = "", this._onHandlers = /* @__PURE__ */ new Map(), this._onceHandlers = /* @__PURE__ */ new Map(), this._subscriptionNamesByHandler = /* @__PURE__ */ new Map(), this._subscriptionNamesBySubjectName = /* @__PURE__ */ new Map();
3378
3378
  }
3379
3379
  /**
3380
3380
  * Provides access to the accounts API for retrieving TelemetryOS account information.
@@ -3465,6 +3465,15 @@ class _s {
3465
3465
  get rootSettingsNavigation() {
3466
3466
  return new gs(this.store);
3467
3467
  }
3468
+ get applicationName() {
3469
+ return this._applicationName;
3470
+ }
3471
+ get applicationSpecifier() {
3472
+ return this._applicationSpecifier;
3473
+ }
3474
+ get applicationInstance() {
3475
+ return this._applicationInstance;
3476
+ }
3468
3477
  /**
3469
3478
  * Initializes the client by setting up message listeners and extracting the application ID.
3470
3479
  *
@@ -3482,23 +3491,35 @@ class _s {
3482
3491
  */
3483
3492
  bind() {
3484
3493
  var e;
3485
- const t = new URL(window.location.href).searchParams;
3486
- this._applicationId = (e = t.get("telemetryApplicationId")) !== null && e !== void 0 ? e : "", this._windowMessageHandler = (s) => {
3487
- if (s.source === window)
3494
+ const t = new URL(window.location.href), s = t.searchParams;
3495
+ this._applicationInstance = (e = s.get("telemetryApplicationId")) !== null && e !== void 0 ? e : "";
3496
+ const n = s.get("applicationSpecifier");
3497
+ if (n)
3498
+ this._applicationSpecifier = n;
3499
+ else {
3500
+ const i = t.hostname.split(".");
3501
+ this._applicationSpecifier = i[0] || "";
3502
+ }
3503
+ if (!this._applicationSpecifier || this._applicationSpecifier.length !== 40)
3504
+ throw new Error(`Invalid applicationSpecifier: expected 40-character hash, got "${this._applicationSpecifier}"`);
3505
+ if (!this._applicationInstance)
3506
+ throw new Error("Missing telemetryApplicationId query parameter");
3507
+ this._windowMessageHandler = (i) => {
3508
+ if (i.source === window)
3488
3509
  return;
3489
- for (let d = 0; d < window.frames.length; d += 1)
3490
- window.frames[d].postMessage(s.data, "*");
3491
- const n = ys.safeParse(s.data);
3492
- if (!n.success)
3510
+ for (let m = 0; m < window.frames.length; m += 1)
3511
+ window.frames[m].postMessage(i.data, "*");
3512
+ const r = _s.safeParse(i.data);
3513
+ if (!r.success)
3493
3514
  return;
3494
- const i = n.data, r = this._onHandlers.get(i.name), o = this._onceHandlers.get(i.name);
3495
- if (r)
3496
- for (const d of r)
3497
- d(i.data);
3498
- if (o) {
3499
- for (const d of o)
3500
- d(i.data);
3501
- this._onceHandlers.delete(i.name);
3515
+ const o = r.data, c = this._onHandlers.get(o.name), u = this._onceHandlers.get(o.name);
3516
+ if (c)
3517
+ for (const m of c)
3518
+ m(o.data);
3519
+ if (u) {
3520
+ for (const m of u)
3521
+ m(o.data);
3522
+ this._onceHandlers.delete(o.name);
3502
3523
  }
3503
3524
  }, window.addEventListener("message", this._windowMessageHandler);
3504
3525
  }
@@ -3535,6 +3556,8 @@ class _s {
3535
3556
  const s = {
3536
3557
  telemetrySdkVersion: ge,
3537
3558
  applicationName: this._applicationName,
3559
+ applicationSpecifier: this._applicationSpecifier,
3560
+ applicationInstance: this._applicationInstance,
3538
3561
  name: e,
3539
3562
  data: t
3540
3563
  };
@@ -3558,90 +3581,96 @@ class _s {
3558
3581
  * @throws {Error} If the request times out
3559
3582
  */
3560
3583
  request(e, t) {
3561
- const s = ye(), n = {
3584
+ const s = _e(), n = {
3562
3585
  telemetrySdkVersion: ge,
3563
3586
  applicationName: this._applicationName,
3587
+ applicationSpecifier: this._applicationSpecifier,
3588
+ applicationInstance: this._applicationInstance,
3564
3589
  name: e,
3565
3590
  data: t,
3566
3591
  responseName: s
3567
3592
  };
3568
3593
  window.parent.postMessage(n, "*");
3569
3594
  let i = !1, r;
3570
- const o = new Promise((u, g) => {
3595
+ const o = new Promise((u, m) => {
3571
3596
  const w = new Error(`${e} message request with response name of ${s} timed out after ${U}`);
3572
3597
  setTimeout(() => {
3573
- i = !0, this.off(s, r), g(w);
3598
+ i = !0, this.off(s, r), m(w);
3574
3599
  }, U);
3575
- }), d = new Promise((u) => {
3576
- r = (g) => {
3577
- i || u(g);
3600
+ }), c = new Promise((u) => {
3601
+ r = (m) => {
3602
+ i || u(m);
3578
3603
  }, this.once(s, u);
3579
3604
  });
3580
- return Promise.race([o, d]);
3605
+ return Promise.race([o, c]);
3581
3606
  }
3582
3607
  async subscribe(e, t, s) {
3583
3608
  let n, i;
3584
3609
  typeof t == "function" ? i = t : (n = t, i = s);
3585
- const r = ye(), o = ye();
3586
- let d = this._subscriptionNamesBySubjectName.get(e);
3587
- d || (d = [], this._subscriptionNamesBySubjectName.set(e, d)), d.push(r), this._subscriptionNamesByHandler.set(i, r), this.on(r, i);
3610
+ const r = _e(), o = _e();
3611
+ let c = this._subscriptionNamesBySubjectName.get(e);
3612
+ c || (c = [], this._subscriptionNamesBySubjectName.set(e, c)), c.push(r), this._subscriptionNamesByHandler.set(i, r), this.on(r, i);
3588
3613
  const u = {
3589
3614
  telemetrySdkVersion: ge,
3590
3615
  applicationName: this._applicationName,
3616
+ applicationSpecifier: this._applicationSpecifier,
3617
+ applicationInstance: this._applicationInstance,
3591
3618
  name: e,
3592
3619
  data: n,
3593
3620
  responseName: o,
3594
3621
  subscriptionName: r
3595
3622
  };
3596
3623
  window.parent.postMessage(u, "*");
3597
- let g = !1, w;
3598
- const I = new Promise((F, L) => {
3624
+ let m = !1, w;
3625
+ const E = new Promise((F, L) => {
3599
3626
  const Oe = new Error(`${e} subscribe request with subscription name of ${r} and response name of ${o} timed out after ${U}`);
3600
3627
  setTimeout(() => {
3601
- g = !0, this.off(o, w), L(Oe);
3628
+ m = !0, this.off(o, w), L(Oe);
3602
3629
  }, U);
3603
- }), Se = new Promise((F) => {
3630
+ }), Ce = new Promise((F) => {
3604
3631
  w = (L) => {
3605
- g || F(L);
3632
+ m || F(L);
3606
3633
  }, this.on(o, F);
3607
3634
  });
3608
- return Promise.race([I, Se]);
3635
+ return Promise.race([E, Ce]);
3609
3636
  }
3610
3637
  async unsubscribe(e, t, s) {
3611
3638
  let n, i;
3612
3639
  typeof t == "function" ? i = t : (n = t, i = s);
3613
- const r = ye();
3640
+ const r = _e();
3614
3641
  let o = [];
3615
3642
  if (i) {
3616
- const d = this._subscriptionNamesByHandler.get(i);
3617
- if (!d)
3643
+ const c = this._subscriptionNamesByHandler.get(i);
3644
+ if (!c)
3618
3645
  return { success: !1 };
3619
- o = [d], this._subscriptionNamesByHandler.delete(i);
3646
+ o = [c], this._subscriptionNamesByHandler.delete(i);
3620
3647
  } else if (!this._subscriptionNamesBySubjectName.get(e))
3621
3648
  return { success: !1 };
3622
- for await (const d of o) {
3623
- this.off(d, i);
3649
+ for await (const c of o) {
3650
+ this.off(c, i);
3624
3651
  const u = {
3625
3652
  telemetrySdkVersion: ge,
3653
+ applicationInstance: this._applicationInstance,
3626
3654
  applicationName: this._applicationName,
3655
+ applicationSpecifier: this._applicationSpecifier,
3627
3656
  name: e,
3628
3657
  data: n,
3629
3658
  responseName: r,
3630
- unsubscribeName: d
3659
+ unsubscribeName: c
3631
3660
  };
3632
3661
  window.parent.postMessage(u, "*");
3633
- let g = !1, w;
3634
- const I = new Promise((F, L) => {
3635
- const Oe = new Error(`${e} unsubscribe request with unsubscribe name of ${d} and response name of ${r} timed out after ${U}`);
3662
+ let m = !1, w;
3663
+ const E = new Promise((F, L) => {
3664
+ const Oe = new Error(`${e} unsubscribe request with unsubscribe name of ${c} and response name of ${r} timed out after ${U}`);
3636
3665
  setTimeout(() => {
3637
- g = !0, this.off(r, w), L(Oe);
3666
+ m = !0, this.off(r, w), L(Oe);
3638
3667
  }, U);
3639
- }), Se = new Promise((F) => {
3668
+ }), Ce = new Promise((F) => {
3640
3669
  w = (L) => {
3641
- g || F(L);
3670
+ m || F(L);
3642
3671
  }, this.once(r, F);
3643
3672
  });
3644
- if (!(await Promise.race([I, Se])).success)
3673
+ if (!(await Promise.race([E, Ce])).success)
3645
3674
  return { success: !1 };
3646
3675
  }
3647
3676
  return { success: !0 };
@@ -3718,10 +3747,10 @@ class _s {
3718
3747
  }
3719
3748
  }
3720
3749
  }
3721
- function ye() {
3750
+ function _e() {
3722
3751
  return Math.random().toString(36).slice(2, 9);
3723
3752
  }
3724
- const ge = cs.version;
3753
+ const ge = ds.version;
3725
3754
  class vs {
3726
3755
  constructor(e) {
3727
3756
  this._client = e;
@@ -3747,7 +3776,7 @@ class bs {
3747
3776
  return await this._client.request("playlist.setDuration", { duration: e });
3748
3777
  }
3749
3778
  }
3750
- class ks extends _s {
3779
+ class ks extends ys {
3751
3780
  get playlist() {
3752
3781
  return new bs(this);
3753
3782
  }
@@ -3756,19 +3785,19 @@ class ks extends _s {
3756
3785
  }
3757
3786
  }
3758
3787
  let v = null;
3759
- function Cs() {
3788
+ function Ss() {
3760
3789
  return v;
3761
3790
  }
3762
- function Ss(a) {
3791
+ function Ns(a) {
3763
3792
  v = new ks(a), v.bind();
3764
3793
  }
3765
- function Os() {
3794
+ function Cs() {
3766
3795
  v == null || v.unbind(), v = null;
3767
3796
  }
3768
- function As(...a) {
3797
+ function Os(...a) {
3769
3798
  return T(v), v.on(...a);
3770
3799
  }
3771
- function js(...a) {
3800
+ function As(...a) {
3772
3801
  return T(v), v.once(...a);
3773
3802
  }
3774
3803
  function Is(...a) {
@@ -3777,34 +3806,34 @@ function Is(...a) {
3777
3806
  function Es(...a) {
3778
3807
  return T(v), v.send(...a);
3779
3808
  }
3780
- function $s(...a) {
3809
+ function js(...a) {
3781
3810
  return T(v), v.request(...a);
3782
3811
  }
3783
- function Ps(...a) {
3812
+ function $s(...a) {
3784
3813
  return T(v), v.subscribe(...a);
3785
3814
  }
3786
- function Rs(...a) {
3815
+ function Ps(...a) {
3787
3816
  return T(v), v.unsubscribe(...a);
3788
3817
  }
3789
- function Ms() {
3818
+ function Rs() {
3790
3819
  return T(v), v.store;
3791
3820
  }
3792
- function Fs() {
3821
+ function Ms() {
3793
3822
  return T(v), v.applications;
3794
3823
  }
3795
- function Ls() {
3824
+ function Fs() {
3796
3825
  return T(v), v.media;
3797
3826
  }
3798
- function Ds() {
3827
+ function Ls() {
3799
3828
  return T(v), v.playlist;
3800
3829
  }
3801
- function zs() {
3830
+ function Ds() {
3802
3831
  return T(v), v.overrides;
3803
3832
  }
3804
- function qs() {
3833
+ function zs() {
3805
3834
  return T(v), v.accounts;
3806
3835
  }
3807
- function Bs() {
3836
+ function qs() {
3808
3837
  return T(v), v.users;
3809
3838
  }
3810
3839
  function T(a) {
@@ -3814,26 +3843,26 @@ function T(a) {
3814
3843
  export {
3815
3844
  us as Accounts,
3816
3845
  ls as Applications,
3817
- Ns as Environment,
3846
+ Ts as Environment,
3818
3847
  ps as Media,
3819
3848
  ms as Store,
3820
3849
  fs as Users,
3821
- qs as accounts,
3822
- Fs as applications,
3823
- Ss as configure,
3824
- Os as destroy,
3825
- Cs as globalClient,
3826
- Ls as media,
3850
+ zs as accounts,
3851
+ Ms as applications,
3852
+ Ns as configure,
3853
+ Cs as destroy,
3854
+ Ss as globalClient,
3855
+ Fs as media,
3827
3856
  Is as off,
3828
- As as on,
3829
- js as once,
3830
- zs as overrides,
3831
- Ds as playlist,
3832
- $s as request,
3857
+ Os as on,
3858
+ As as once,
3859
+ Ds as overrides,
3860
+ Ls as playlist,
3861
+ js as request,
3833
3862
  Es as send,
3834
- Ms as store,
3835
- Ps as subscribe,
3863
+ Rs as store,
3864
+ $s as subscribe,
3836
3865
  ge as telemetrySdkVersion,
3837
- Rs as unsubscribe,
3838
- Bs as users
3866
+ Ps as unsubscribe,
3867
+ qs as users
3839
3868
  };