@moq/publish 0.2.2 → 0.2.3

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.
@@ -1,4 +1,4 @@
1
- import * as ln from "@moq/lite";
1
+ import * as Se from "@moq/lite";
2
2
  import { Time as L } from "@moq/lite";
3
3
  import { Signal as f, Effect as P } from "@moq/signals";
4
4
  function d(e, n, t) {
@@ -53,7 +53,7 @@ function pn(e) {
53
53
  const n = Object.values(e).filter((r) => typeof r == "number");
54
54
  return Object.entries(e).filter(([r, s]) => n.indexOf(+r) === -1).map(([r, s]) => s);
55
55
  }
56
- function Se(e, n) {
56
+ function Ee(e, n) {
57
57
  return typeof n == "bigint" ? n.toString() : n;
58
58
  }
59
59
  function me(e) {
@@ -66,10 +66,10 @@ function me(e) {
66
66
  }
67
67
  };
68
68
  }
69
- function Oe(e) {
69
+ function Re(e) {
70
70
  return e == null;
71
71
  }
72
- function Re(e) {
72
+ function Ae(e) {
73
73
  const n = e.startsWith("^") ? 1 : 0, t = e.endsWith("$") ? e.length - 1 : e.length;
74
74
  return e.slice(n, t);
75
75
  }
@@ -83,13 +83,13 @@ function nt(e, n) {
83
83
  const i = t > s ? t : s, o = Number.parseInt(e.toFixed(i).replace(".", "")), a = Number.parseInt(n.toFixed(i).replace(".", ""));
84
84
  return o % a / 10 ** i;
85
85
  }
86
- const De = /* @__PURE__ */ Symbol("evaluating");
86
+ const qe = /* @__PURE__ */ Symbol("evaluating");
87
87
  function g(e, n, t) {
88
88
  let r;
89
89
  Object.defineProperty(e, n, {
90
90
  get() {
91
- if (r !== De)
92
- return r === void 0 && (r = De, r = t()), r;
91
+ if (r !== qe)
92
+ return r === void 0 && (r = qe, r = t()), r;
93
93
  },
94
94
  set(s) {
95
95
  Object.defineProperty(e, n, {
@@ -116,7 +116,7 @@ function F(...e) {
116
116
  }
117
117
  return Object.defineProperties({}, n);
118
118
  }
119
- function qe(e) {
119
+ function Me(e) {
120
120
  return JSON.stringify(e);
121
121
  }
122
122
  function tt(e) {
@@ -336,7 +336,7 @@ function x(e, n, t) {
336
336
  }
337
337
  return delete r.inst, delete r.continue, n?.reportInput || delete r.input, r;
338
338
  }
339
- function Ae(e) {
339
+ function Te(e) {
340
340
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
341
341
  }
342
342
  function te(...e) {
@@ -355,7 +355,7 @@ const vn = (e, n) => {
355
355
  }), Object.defineProperty(e, "issues", {
356
356
  value: n,
357
357
  enumerable: !1
358
- }), e.message = JSON.stringify(n, Se, 2), Object.defineProperty(e, "toString", {
358
+ }), e.message = JSON.stringify(n, Ee, 2), Object.defineProperty(e, "toString", {
359
359
  value: () => e.message,
360
360
  enumerable: !1
361
361
  });
@@ -387,7 +387,7 @@ function mt(e, n = (t) => t.message) {
387
387
  };
388
388
  return r(e), t;
389
389
  }
390
- const Te = (e) => (n, t, r, s) => {
390
+ const Ne = (e) => (n, t, r, s) => {
391
391
  const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = n._zod.run({ value: t, issues: [] }, i);
392
392
  if (o instanceof Promise)
393
393
  throw new X();
@@ -396,7 +396,7 @@ const Te = (e) => (n, t, r, s) => {
396
396
  throw mn(a, s?.callee), a;
397
397
  }
398
398
  return o.value;
399
- }, Ne = (e) => async (n, t, r, s) => {
399
+ }, $e = (e) => async (n, t, r, s) => {
400
400
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
401
401
  let o = n._zod.run({ value: t, issues: [] }, i);
402
402
  if (o instanceof Promise && (o = await o), o.issues.length) {
@@ -420,18 +420,18 @@ const Te = (e) => (n, t, r, s) => {
420
420
  error: new e(i.issues.map((o) => x(o, s, U())))
421
421
  } : { success: !0, data: i.value };
422
422
  }, vt = /* @__PURE__ */ ve(bn), gt = (e) => (n, t, r) => {
423
- const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
424
- return Te(e)(n, t, s);
425
- }, bt = (e) => (n, t, r) => Te(e)(n, t, r), _t = (e) => async (n, t, r) => {
426
423
  const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
427
424
  return Ne(e)(n, t, s);
428
- }, yt = (e) => async (n, t, r) => Ne(e)(n, t, r), kt = (e) => (n, t, r) => {
425
+ }, bt = (e) => (n, t, r) => Ne(e)(n, t, r), _t = (e) => async (n, t, r) => {
426
+ const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
427
+ return $e(e)(n, t, s);
428
+ }, yt = (e) => async (n, t, r) => $e(e)(n, t, r), kt = (e) => (n, t, r) => {
429
429
  const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
430
430
  return we(e)(n, t, s);
431
431
  }, It = (e) => (n, t, r) => we(e)(n, t, r), St = (e) => async (n, t, r) => {
432
432
  const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
433
433
  return ve(e)(n, t, s);
434
- }, Et = (e) => async (n, t, r) => ve(e)(n, t, r), zt = /^[cC][^\s-]{8,}$/, Pt = /^[0-9a-z]+$/, Ot = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Rt = /^[0-9a-vA-V]{20}$/, At = /^[A-Za-z0-9]{27}$/, Tt = /^[a-zA-Z0-9_-]{21}$/, Nt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, $t = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Me = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ct = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Zt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
434
+ }, Et = (e) => async (n, t, r) => ve(e)(n, t, r), zt = /^[cC][^\s-]{8,}$/, Pt = /^[0-9a-z]+$/, Ot = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Rt = /^[0-9a-vA-V]{20}$/, At = /^[A-Za-z0-9]{27}$/, Tt = /^[a-zA-Z0-9_-]{21}$/, Nt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, $t = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ue = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ct = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Zt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
435
435
  function Dt() {
436
436
  return new RegExp(Zt, "u");
437
437
  }
@@ -574,7 +574,7 @@ const Gt = (e) => {
574
574
  var t;
575
575
  T.init(e, n), (t = e._zod.def).when ?? (t.when = (r) => {
576
576
  const s = r.value;
577
- return !Oe(s) && s.length !== void 0;
577
+ return !Re(s) && s.length !== void 0;
578
578
  }), e._zod.onattach.push((r) => {
579
579
  const s = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
580
580
  n.maximum < s && (r._zod.bag.maximum = n.maximum);
@@ -582,7 +582,7 @@ const Gt = (e) => {
582
582
  const s = r.value;
583
583
  if (s.length <= n.maximum)
584
584
  return;
585
- const o = Ae(s);
585
+ const o = Te(s);
586
586
  r.issues.push({
587
587
  origin: o,
588
588
  code: "too_big",
@@ -597,7 +597,7 @@ const Gt = (e) => {
597
597
  var t;
598
598
  T.init(e, n), (t = e._zod.def).when ?? (t.when = (r) => {
599
599
  const s = r.value;
600
- return !Oe(s) && s.length !== void 0;
600
+ return !Re(s) && s.length !== void 0;
601
601
  }), e._zod.onattach.push((r) => {
602
602
  const s = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
603
603
  n.minimum > s && (r._zod.bag.minimum = n.minimum);
@@ -605,7 +605,7 @@ const Gt = (e) => {
605
605
  const s = r.value;
606
606
  if (s.length >= n.minimum)
607
607
  return;
608
- const o = Ae(s);
608
+ const o = Te(s);
609
609
  r.issues.push({
610
610
  origin: o,
611
611
  code: "too_small",
@@ -620,7 +620,7 @@ const Gt = (e) => {
620
620
  var t;
621
621
  T.init(e, n), (t = e._zod.def).when ?? (t.when = (r) => {
622
622
  const s = r.value;
623
- return !Oe(s) && s.length !== void 0;
623
+ return !Re(s) && s.length !== void 0;
624
624
  }), e._zod.onattach.push((r) => {
625
625
  const s = r._zod.bag;
626
626
  s.minimum = n.length, s.maximum = n.length, s.length = n.length;
@@ -628,7 +628,7 @@ const Gt = (e) => {
628
628
  const s = r.value, i = s.length;
629
629
  if (i === n.length)
630
630
  return;
631
- const o = Ae(s), a = i > n.length;
631
+ const o = Te(s), a = i > n.length;
632
632
  r.issues.push({
633
633
  origin: o,
634
634
  ...a ? { code: "too_big", maximum: n.length } : { code: "too_small", minimum: n.length },
@@ -829,7 +829,7 @@ const dr = {
829
829
  vendor: "zod",
830
830
  version: 1
831
831
  }));
832
- }), $e = /* @__PURE__ */ d("$ZodString", (e, n) => {
832
+ }), Ce = /* @__PURE__ */ d("$ZodString", (e, n) => {
833
833
  y.init(e, n), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Gt(e._zod.bag), e._zod.parse = (t, r) => {
834
834
  if (n.coerce)
835
835
  try {
@@ -844,7 +844,7 @@ const dr = {
844
844
  }), t;
845
845
  };
846
846
  }), b = /* @__PURE__ */ d("$ZodStringFormat", (e, n) => {
847
- ge.init(e, n), $e.init(e, n);
847
+ ge.init(e, n), Ce.init(e, n);
848
848
  }), lr = /* @__PURE__ */ d("$ZodGUID", (e, n) => {
849
849
  n.pattern ?? (n.pattern = $t), b.init(e, n);
850
850
  }), hr = /* @__PURE__ */ d("$ZodUUID", (e, n) => {
@@ -861,9 +861,9 @@ const dr = {
861
861
  }[n.version];
862
862
  if (r === void 0)
863
863
  throw new Error(`Invalid UUID version: "${n.version}"`);
864
- n.pattern ?? (n.pattern = Me(r));
864
+ n.pattern ?? (n.pattern = Ue(r));
865
865
  } else
866
- n.pattern ?? (n.pattern = Me());
866
+ n.pattern ?? (n.pattern = Ue());
867
867
  b.init(e, n);
868
868
  }), fr = /* @__PURE__ */ d("$ZodEmail", (e, n) => {
869
869
  n.pattern ?? (n.pattern = Ct), b.init(e, n);
@@ -1076,7 +1076,7 @@ const Zr = /* @__PURE__ */ d("$ZodJWT", (e, n) => {
1076
1076
  inst: e
1077
1077
  }), t);
1078
1078
  });
1079
- function Ue(e, n, t) {
1079
+ function xe(e, n, t) {
1080
1080
  e.issues.length && n.issues.push(...K(t, e.issues)), n.value[t] = e.value;
1081
1081
  }
1082
1082
  const xr = /* @__PURE__ */ d("$ZodArray", (e, n) => {
@@ -1096,7 +1096,7 @@ const xr = /* @__PURE__ */ d("$ZodArray", (e, n) => {
1096
1096
  value: a,
1097
1097
  issues: []
1098
1098
  }, r);
1099
- c instanceof Promise ? i.push(c.then((u) => Ue(u, t, o))) : Ue(c, t, o);
1099
+ c instanceof Promise ? i.push(c.then((u) => xe(u, t, o))) : xe(c, t, o);
1100
1100
  }
1101
1101
  return i.length ? Promise.all(i).then(() => t) : t;
1102
1102
  };
@@ -1191,7 +1191,7 @@ const Fr = /* @__PURE__ */ d("$ZodObject", (e, n) => {
1191
1191
  Fr.init(e, n);
1192
1192
  const t = e._zod.parse, r = me(() => Rn(n)), s = (p) => {
1193
1193
  const w = new ur(["shape", "payload", "ctx"]), E = r.value, v = (Z) => {
1194
- const A = qe(Z);
1194
+ const A = Me(Z);
1195
1195
  return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`;
1196
1196
  };
1197
1197
  w.write("const input = payload.value;");
@@ -1201,7 +1201,7 @@ const Fr = /* @__PURE__ */ d("$ZodObject", (e, n) => {
1201
1201
  $[Z] = `key_${Yn++}`;
1202
1202
  w.write("const newResult = {};");
1203
1203
  for (const Z of E.keys) {
1204
- const A = $[Z], C = qe(Z), et = p[Z]?._zod?.optout === "optional";
1204
+ const A = $[Z], C = Me(Z), et = p[Z]?._zod?.optout === "optional";
1205
1205
  w.write(`const ${A} = ${v(Z)};`), et ? w.write(`
1206
1206
  if (${A}.issues.length) {
1207
1207
  if (${C} in input) {
@@ -1256,7 +1256,7 @@ const Fr = /* @__PURE__ */ d("$ZodObject", (e, n) => {
1256
1256
  }), p);
1257
1257
  };
1258
1258
  });
1259
- function xe(e, n, t, r) {
1259
+ function Fe(e, n, t, r) {
1260
1260
  for (const i of e)
1261
1261
  if (i.issues.length === 0)
1262
1262
  return n.value = i.value, n;
@@ -1275,7 +1275,7 @@ const Tn = /* @__PURE__ */ d("$ZodUnion", (e, n) => {
1275
1275
  }), g(e._zod, "pattern", () => {
1276
1276
  if (n.options.every((s) => s._zod.pattern)) {
1277
1277
  const s = n.options.map((i) => i._zod.pattern);
1278
- return new RegExp(`^(${s.map((i) => Re(i.source)).join("|")})$`);
1278
+ return new RegExp(`^(${s.map((i) => Ae(i.source)).join("|")})$`);
1279
1279
  }
1280
1280
  });
1281
1281
  const t = n.options.length === 1, r = n.options[0]._zod.run;
@@ -1297,7 +1297,7 @@ const Tn = /* @__PURE__ */ d("$ZodUnion", (e, n) => {
1297
1297
  a.push(u);
1298
1298
  }
1299
1299
  }
1300
- return o ? Promise.all(a).then((c) => xe(c, s, e, i)) : xe(a, s, e, i);
1300
+ return o ? Promise.all(a).then((c) => Fe(c, s, e, i)) : Fe(a, s, e, i);
1301
1301
  };
1302
1302
  }), Vr = /* @__PURE__ */ d("$ZodDiscriminatedUnion", (e, n) => {
1303
1303
  n.inclusive = !1, Tn.init(e, n);
@@ -1353,10 +1353,10 @@ const Tn = /* @__PURE__ */ d("$ZodUnion", (e, n) => {
1353
1353
  }), Lr = /* @__PURE__ */ d("$ZodIntersection", (e, n) => {
1354
1354
  y.init(e, n), e._zod.parse = (t, r) => {
1355
1355
  const s = t.value, i = n.left._zod.run({ value: s, issues: [] }, r), o = n.right._zod.run({ value: s, issues: [] }, r);
1356
- return i instanceof Promise || o instanceof Promise ? Promise.all([i, o]).then(([c, u]) => Fe(t, c, u)) : Fe(t, i, o);
1356
+ return i instanceof Promise || o instanceof Promise ? Promise.all([i, o]).then(([c, u]) => je(t, c, u)) : je(t, i, o);
1357
1357
  };
1358
1358
  });
1359
- function Ee(e, n) {
1359
+ function ze(e, n) {
1360
1360
  if (e === n)
1361
1361
  return { valid: !0, data: e };
1362
1362
  if (e instanceof Date && n instanceof Date && +e == +n)
@@ -1364,7 +1364,7 @@ function Ee(e, n) {
1364
1364
  if (H(e) && H(n)) {
1365
1365
  const t = Object.keys(n), r = Object.keys(e).filter((i) => t.indexOf(i) !== -1), s = { ...e, ...n };
1366
1366
  for (const i of r) {
1367
- const o = Ee(e[i], n[i]);
1367
+ const o = ze(e[i], n[i]);
1368
1368
  if (!o.valid)
1369
1369
  return {
1370
1370
  valid: !1,
@@ -1379,7 +1379,7 @@ function Ee(e, n) {
1379
1379
  return { valid: !1, mergeErrorPath: [] };
1380
1380
  const t = [];
1381
1381
  for (let r = 0; r < e.length; r++) {
1382
- const s = e[r], i = n[r], o = Ee(s, i);
1382
+ const s = e[r], i = n[r], o = ze(s, i);
1383
1383
  if (!o.valid)
1384
1384
  return {
1385
1385
  valid: !1,
@@ -1391,7 +1391,7 @@ function Ee(e, n) {
1391
1391
  }
1392
1392
  return { valid: !1, mergeErrorPath: [] };
1393
1393
  }
1394
- function Fe(e, n, t) {
1394
+ function je(e, n, t) {
1395
1395
  const r = /* @__PURE__ */ new Map();
1396
1396
  let s;
1397
1397
  for (const a of n.issues)
@@ -1410,7 +1410,7 @@ function Fe(e, n, t) {
1410
1410
  const i = [...r].filter(([, a]) => a.l && a.r).map(([a]) => a);
1411
1411
  if (i.length && s && e.issues.push({ ...s, keys: i }), W(e))
1412
1412
  return e;
1413
- const o = Ee(n.value, t.value);
1413
+ const o = ze(n.value, t.value);
1414
1414
  if (!o.valid)
1415
1415
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1416
1416
  return e.value = o.data, e;
@@ -1516,17 +1516,17 @@ const Br = /* @__PURE__ */ d("$ZodRecord", (e, n) => {
1516
1516
  return t.value = s, t;
1517
1517
  };
1518
1518
  });
1519
- function je(e, n) {
1519
+ function Ve(e, n) {
1520
1520
  return e.issues.length && n === void 0 ? { issues: [], value: void 0 } : e;
1521
1521
  }
1522
1522
  const Nn = /* @__PURE__ */ d("$ZodOptional", (e, n) => {
1523
1523
  y.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", g(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), g(e._zod, "pattern", () => {
1524
1524
  const t = n.innerType._zod.pattern;
1525
- return t ? new RegExp(`^(${Re(t.source)})?$`) : void 0;
1525
+ return t ? new RegExp(`^(${Ae(t.source)})?$`) : void 0;
1526
1526
  }), e._zod.parse = (t, r) => {
1527
1527
  if (n.innerType._zod.optin === "optional") {
1528
1528
  const s = n.innerType._zod.run(t, r);
1529
- return s instanceof Promise ? s.then((i) => je(i, t.value)) : je(s, t.value);
1529
+ return s instanceof Promise ? s.then((i) => Ve(i, t.value)) : Ve(s, t.value);
1530
1530
  }
1531
1531
  return t.value === void 0 ? t : n.innerType._zod.run(t, r);
1532
1532
  };
@@ -1535,7 +1535,7 @@ const Nn = /* @__PURE__ */ d("$ZodOptional", (e, n) => {
1535
1535
  }), Xr = /* @__PURE__ */ d("$ZodNullable", (e, n) => {
1536
1536
  y.init(e, n), g(e._zod, "optin", () => n.innerType._zod.optin), g(e._zod, "optout", () => n.innerType._zod.optout), g(e._zod, "pattern", () => {
1537
1537
  const t = n.innerType._zod.pattern;
1538
- return t ? new RegExp(`^(${Re(t.source)}|null)$`) : void 0;
1538
+ return t ? new RegExp(`^(${Ae(t.source)}|null)$`) : void 0;
1539
1539
  }), g(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, null]) : void 0), e._zod.parse = (t, r) => t.value === null ? t : n.innerType._zod.run(t, r);
1540
1540
  }), Hr = /* @__PURE__ */ d("$ZodDefault", (e, n) => {
1541
1541
  y.init(e, n), e._zod.optin = "optional", g(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (t, r) => {
@@ -1544,10 +1544,10 @@ const Nn = /* @__PURE__ */ d("$ZodOptional", (e, n) => {
1544
1544
  if (t.value === void 0)
1545
1545
  return t.value = n.defaultValue, t;
1546
1546
  const s = n.innerType._zod.run(t, r);
1547
- return s instanceof Promise ? s.then((i) => Ve(i, n)) : Ve(s, n);
1547
+ return s instanceof Promise ? s.then((i) => Le(i, n)) : Le(s, n);
1548
1548
  };
1549
1549
  });
1550
- function Ve(e, n) {
1550
+ function Le(e, n) {
1551
1551
  return e.value === void 0 && (e.value = n.defaultValue), e;
1552
1552
  }
1553
1553
  const Yr = /* @__PURE__ */ d("$ZodPrefault", (e, n) => {
@@ -1558,10 +1558,10 @@ const Yr = /* @__PURE__ */ d("$ZodPrefault", (e, n) => {
1558
1558
  return t ? new Set([...t].filter((r) => r !== void 0)) : void 0;
1559
1559
  }), e._zod.parse = (t, r) => {
1560
1560
  const s = n.innerType._zod.run(t, r);
1561
- return s instanceof Promise ? s.then((i) => Le(i, e)) : Le(s, e);
1561
+ return s instanceof Promise ? s.then((i) => Be(i, e)) : Be(s, e);
1562
1562
  };
1563
1563
  });
1564
- function Le(e, n) {
1564
+ function Be(e, n) {
1565
1565
  return !e.issues.length && e.value === void 0 && e.issues.push({
1566
1566
  code: "invalid_type",
1567
1567
  expected: "nonoptional",
@@ -1606,21 +1606,21 @@ const ts = /* @__PURE__ */ d("$ZodReadonly", (e, n) => {
1606
1606
  if (r.direction === "backward")
1607
1607
  return n.innerType._zod.run(t, r);
1608
1608
  const s = n.innerType._zod.run(t, r);
1609
- return s instanceof Promise ? s.then(Be) : Be(s);
1609
+ return s instanceof Promise ? s.then(Ge) : Ge(s);
1610
1610
  };
1611
1611
  });
1612
- function Be(e) {
1612
+ function Ge(e) {
1613
1613
  return e.value = Object.freeze(e.value), e;
1614
1614
  }
1615
1615
  const rs = /* @__PURE__ */ d("$ZodCustom", (e, n) => {
1616
1616
  T.init(e, n), y.init(e, n), e._zod.parse = (t, r) => t, e._zod.check = (t) => {
1617
1617
  const r = t.value, s = n.fn(r);
1618
1618
  if (s instanceof Promise)
1619
- return s.then((i) => Ge(i, t, r, e));
1620
- Ge(s, t, r, e);
1619
+ return s.then((i) => Je(i, t, r, e));
1620
+ Je(s, t, r, e);
1621
1621
  };
1622
1622
  });
1623
- function Ge(e, n, t, r) {
1623
+ function Je(e, n, t, r) {
1624
1624
  if (!e) {
1625
1625
  const s = {
1626
1626
  code: "custom",
@@ -1635,7 +1635,7 @@ function Ge(e, n, t, r) {
1635
1635
  r._zod.def.params && (s.params = r._zod.def.params), n.issues.push(te(s));
1636
1636
  }
1637
1637
  }
1638
- var Je;
1638
+ var We;
1639
1639
  class ss {
1640
1640
  constructor() {
1641
1641
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
@@ -1668,7 +1668,7 @@ class ss {
1668
1668
  function os() {
1669
1669
  return new ss();
1670
1670
  }
1671
- (Je = globalThis).__zod_globalRegistry ?? (Je.__zod_globalRegistry = os());
1671
+ (We = globalThis).__zod_globalRegistry ?? (We.__zod_globalRegistry = os());
1672
1672
  const ee = globalThis.__zod_globalRegistry;
1673
1673
  // @__NO_SIDE_EFFECTS__
1674
1674
  function is(e, n) {
@@ -1688,7 +1688,7 @@ function as(e, n) {
1688
1688
  });
1689
1689
  }
1690
1690
  // @__NO_SIDE_EFFECTS__
1691
- function We(e, n) {
1691
+ function Ke(e, n) {
1692
1692
  return new e({
1693
1693
  type: "string",
1694
1694
  format: "guid",
@@ -1979,7 +1979,7 @@ function Ds(e, n) {
1979
1979
  });
1980
1980
  }
1981
1981
  // @__NO_SIDE_EFFECTS__
1982
- function Ke(e, n) {
1982
+ function Xe(e, n) {
1983
1983
  return new En({
1984
1984
  check: "less_than",
1985
1985
  ...m(n),
@@ -1997,7 +1997,7 @@ function _e(e, n) {
1997
1997
  });
1998
1998
  }
1999
1999
  // @__NO_SIDE_EFFECTS__
2000
- function Xe(e, n) {
2000
+ function He(e, n) {
2001
2001
  return new zn({
2002
2002
  check: "greater_than",
2003
2003
  ...m(n),
@@ -2015,7 +2015,7 @@ function ye(e, n) {
2015
2015
  });
2016
2016
  }
2017
2017
  // @__NO_SIDE_EFFECTS__
2018
- function He(e, n) {
2018
+ function Ye(e, n) {
2019
2019
  return new Ht({
2020
2020
  check: "multiple_of",
2021
2021
  ...m(n),
@@ -2596,13 +2596,13 @@ const Ao = (e, n) => {
2596
2596
  },
2597
2597
  addIssue: {
2598
2598
  value: (t) => {
2599
- e.issues.push(t), e.message = JSON.stringify(e.issues, Se, 2);
2599
+ e.issues.push(t), e.message = JSON.stringify(e.issues, Ee, 2);
2600
2600
  }
2601
2601
  // enumerable: false,
2602
2602
  },
2603
2603
  addIssues: {
2604
2604
  value: (t) => {
2605
- e.issues.push(...t), e.message = JSON.stringify(e.issues, Se, 2);
2605
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, Ee, 2);
2606
2606
  }
2607
2607
  // enumerable: false,
2608
2608
  },
@@ -2615,7 +2615,7 @@ const Ao = (e, n) => {
2615
2615
  });
2616
2616
  }, N = d("ZodError", Ao, {
2617
2617
  Parent: Error
2618
- }), To = /* @__PURE__ */ Te(N), No = /* @__PURE__ */ Ne(N), $o = /* @__PURE__ */ we(N), Co = /* @__PURE__ */ ve(N), Zo = /* @__PURE__ */ gt(N), Do = /* @__PURE__ */ bt(N), qo = /* @__PURE__ */ _t(N), Mo = /* @__PURE__ */ yt(N), Uo = /* @__PURE__ */ kt(N), xo = /* @__PURE__ */ It(N), Fo = /* @__PURE__ */ St(N), jo = /* @__PURE__ */ Et(N), k = /* @__PURE__ */ d("ZodType", (e, n) => (y.init(e, n), Object.assign(e["~standard"], {
2618
+ }), To = /* @__PURE__ */ Ne(N), No = /* @__PURE__ */ $e(N), $o = /* @__PURE__ */ we(N), Co = /* @__PURE__ */ ve(N), Zo = /* @__PURE__ */ gt(N), Do = /* @__PURE__ */ bt(N), qo = /* @__PURE__ */ _t(N), Mo = /* @__PURE__ */ yt(N), Uo = /* @__PURE__ */ kt(N), xo = /* @__PURE__ */ It(N), Fo = /* @__PURE__ */ St(N), jo = /* @__PURE__ */ Et(N), k = /* @__PURE__ */ d("ZodType", (e, n) => (y.init(e, n), Object.assign(e["~standard"], {
2619
2619
  jsonSchema: {
2620
2620
  input: fe(e, "input"),
2621
2621
  output: fe(e, "output")
@@ -2627,7 +2627,7 @@ const Ao = (e, n) => {
2627
2627
  ]
2628
2628
  }), {
2629
2629
  parent: !0
2630
- }), e.with = e.check, e.clone = (t, r) => j(e, t, r), e.brand = () => e, e.register = ((t, r) => (t.add(e, r), e)), e.parse = (t, r) => To(e, t, r, { callee: e.parse }), e.safeParse = (t, r) => $o(e, t, r), e.parseAsync = async (t, r) => No(e, t, r, { callee: e.parseAsync }), e.safeParseAsync = async (t, r) => Co(e, t, r), e.spa = e.safeParseAsync, e.encode = (t, r) => Zo(e, t, r), e.decode = (t, r) => Do(e, t, r), e.encodeAsync = async (t, r) => qo(e, t, r), e.decodeAsync = async (t, r) => Mo(e, t, r), e.safeEncode = (t, r) => Uo(e, t, r), e.safeDecode = (t, r) => xo(e, t, r), e.safeEncodeAsync = async (t, r) => Fo(e, t, r), e.safeDecodeAsync = async (t, r) => jo(e, t, r), e.refine = (t, r) => e.check(Mi(t, r)), e.superRefine = (t) => e.check(Ui(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ Q(t)), e.optional = () => tn(e), e.exactOptional = () => Ei(e), e.nullable = () => rn(e), e.nullish = () => tn(rn(e)), e.nonoptional = (t) => Ti(e, t), e.array = () => q(e), e.or = (t) => pi([e, t]), e.and = (t) => gi(e, t), e.transform = (t) => sn(e, Ii(t)), e.default = (t) => Oi(e, t), e.prefault = (t) => Ai(e, t), e.catch = (t) => $i(e, t), e.pipe = (t) => sn(e, t), e.readonly = () => Di(e), e.describe = (t) => {
2630
+ }), e.with = e.check, e.clone = (t, r) => j(e, t, r), e.brand = () => e, e.register = ((t, r) => (t.add(e, r), e)), e.parse = (t, r) => To(e, t, r, { callee: e.parse }), e.safeParse = (t, r) => $o(e, t, r), e.parseAsync = async (t, r) => No(e, t, r, { callee: e.parseAsync }), e.safeParseAsync = async (t, r) => Co(e, t, r), e.spa = e.safeParseAsync, e.encode = (t, r) => Zo(e, t, r), e.decode = (t, r) => Do(e, t, r), e.encodeAsync = async (t, r) => qo(e, t, r), e.decodeAsync = async (t, r) => Mo(e, t, r), e.safeEncode = (t, r) => Uo(e, t, r), e.safeDecode = (t, r) => xo(e, t, r), e.safeEncodeAsync = async (t, r) => Fo(e, t, r), e.safeDecodeAsync = async (t, r) => jo(e, t, r), e.refine = (t, r) => e.check(Mi(t, r)), e.superRefine = (t) => e.check(Ui(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ Q(t)), e.optional = () => rn(e), e.exactOptional = () => Ei(e), e.nullable = () => sn(e), e.nullish = () => rn(sn(e)), e.nonoptional = (t) => Ti(e, t), e.array = () => q(e), e.or = (t) => pi([e, t]), e.and = (t) => gi(e, t), e.transform = (t) => on(e, Ii(t)), e.default = (t) => Oi(e, t), e.prefault = (t) => Ai(e, t), e.catch = (t) => $i(e, t), e.pipe = (t) => on(e, t), e.readonly = () => Di(e), e.describe = (t) => {
2631
2631
  const r = e.clone();
2632
2632
  return ee.add(r, { description: t }), r;
2633
2633
  }, Object.defineProperty(e, "description", {
@@ -2641,11 +2641,11 @@ const Ao = (e, n) => {
2641
2641
  const r = e.clone();
2642
2642
  return ee.add(r, t[0]), r;
2643
2643
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), Un = /* @__PURE__ */ d("_ZodString", (e, n) => {
2644
- $e.init(e, n), k.init(e, n), e._zod.processJSONSchema = (r, s, i) => eo(e, r, s);
2644
+ Ce.init(e, n), k.init(e, n), e._zod.processJSONSchema = (r, s, i) => eo(e, r, s);
2645
2645
  const t = e._zod.bag;
2646
2646
  e.format = t.format ?? null, e.minLength = t.minimum ?? null, e.maxLength = t.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ qs(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ xs(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ Fs(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ js(...r)), e.min = (...r) => e.check(/* @__PURE__ */ he(...r)), e.max = (...r) => e.check(/* @__PURE__ */ $n(...r)), e.length = (...r) => e.check(/* @__PURE__ */ Cn(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ he(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ Ms(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ Us(r)), e.trim = () => e.check(/* @__PURE__ */ Ls()), e.normalize = (...r) => e.check(/* @__PURE__ */ Vs(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ Bs()), e.toUpperCase = () => e.check(/* @__PURE__ */ Gs()), e.slugify = () => e.check(/* @__PURE__ */ Js());
2647
2647
  }), Vo = /* @__PURE__ */ d("ZodString", (e, n) => {
2648
- $e.init(e, n), Un.init(e, n), e.email = (t) => e.check(/* @__PURE__ */ as(Lo, t)), e.url = (t) => e.check(/* @__PURE__ */ hs(Bo, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Ps(ii, t)), e.emoji = (t) => e.check(/* @__PURE__ */ fs(Go, t)), e.guid = (t) => e.check(/* @__PURE__ */ We(Ye, t)), e.uuid = (t) => e.check(/* @__PURE__ */ cs(de, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ us(de, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ ds(de, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ ls(de, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ ps(Jo, t)), e.guid = (t) => e.check(/* @__PURE__ */ We(Ye, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ms(Wo, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ws(Ko, t)), e.ulid = (t) => e.check(/* @__PURE__ */ vs(Xo, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Ss(ri, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Es(si, t)), e.xid = (t) => e.check(/* @__PURE__ */ gs(Ho, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ bs(Yo, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _s(Qo, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ ys(ei, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ ks(ni, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Is(ti, t)), e.e164 = (t) => e.check(/* @__PURE__ */ zs(oi, t)), e.datetime = (t) => e.check(Io(t)), e.date = (t) => e.check(Eo(t)), e.time = (t) => e.check(Po(t)), e.duration = (t) => e.check(Ro(t));
2648
+ Ce.init(e, n), Un.init(e, n), e.email = (t) => e.check(/* @__PURE__ */ as(Lo, t)), e.url = (t) => e.check(/* @__PURE__ */ hs(Bo, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Ps(ii, t)), e.emoji = (t) => e.check(/* @__PURE__ */ fs(Go, t)), e.guid = (t) => e.check(/* @__PURE__ */ Ke(Qe, t)), e.uuid = (t) => e.check(/* @__PURE__ */ cs(de, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ us(de, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ ds(de, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ ls(de, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ ps(Jo, t)), e.guid = (t) => e.check(/* @__PURE__ */ Ke(Qe, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ms(Wo, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ws(Ko, t)), e.ulid = (t) => e.check(/* @__PURE__ */ vs(Xo, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Ss(ri, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Es(si, t)), e.xid = (t) => e.check(/* @__PURE__ */ gs(Ho, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ bs(Yo, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ _s(Qo, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ ys(ei, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ ks(ni, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Is(ti, t)), e.e164 = (t) => e.check(/* @__PURE__ */ zs(oi, t)), e.datetime = (t) => e.check(Io(t)), e.date = (t) => e.check(Eo(t)), e.time = (t) => e.check(Po(t)), e.duration = (t) => e.check(Ro(t));
2649
2649
  });
2650
2650
  function _(e) {
2651
2651
  return /* @__PURE__ */ is(Vo, e);
@@ -2654,7 +2654,7 @@ const I = /* @__PURE__ */ d("ZodStringFormat", (e, n) => {
2654
2654
  b.init(e, n), Un.init(e, n);
2655
2655
  }), Lo = /* @__PURE__ */ d("ZodEmail", (e, n) => {
2656
2656
  fr.init(e, n), I.init(e, n);
2657
- }), Ye = /* @__PURE__ */ d("ZodGUID", (e, n) => {
2657
+ }), Qe = /* @__PURE__ */ d("ZodGUID", (e, n) => {
2658
2658
  lr.init(e, n), I.init(e, n);
2659
2659
  }), de = /* @__PURE__ */ d("ZodUUID", (e, n) => {
2660
2660
  hr.init(e, n), I.init(e, n);
@@ -2691,7 +2691,7 @@ const I = /* @__PURE__ */ d("ZodStringFormat", (e, n) => {
2691
2691
  }), ii = /* @__PURE__ */ d("ZodJWT", (e, n) => {
2692
2692
  Zr.init(e, n), I.init(e, n);
2693
2693
  }), xn = /* @__PURE__ */ d("ZodNumber", (e, n) => {
2694
- On.init(e, n), k.init(e, n), e._zod.processJSONSchema = (r, s, i) => no(e, r, s), e.gt = (r, s) => e.check(/* @__PURE__ */ Xe(r, s)), e.gte = (r, s) => e.check(/* @__PURE__ */ ye(r, s)), e.min = (r, s) => e.check(/* @__PURE__ */ ye(r, s)), e.lt = (r, s) => e.check(/* @__PURE__ */ Ke(r, s)), e.lte = (r, s) => e.check(/* @__PURE__ */ _e(r, s)), e.max = (r, s) => e.check(/* @__PURE__ */ _e(r, s)), e.int = (r) => e.check(Qe(r)), e.safe = (r) => e.check(Qe(r)), e.positive = (r) => e.check(/* @__PURE__ */ Xe(0, r)), e.nonnegative = (r) => e.check(/* @__PURE__ */ ye(0, r)), e.negative = (r) => e.check(/* @__PURE__ */ Ke(0, r)), e.nonpositive = (r) => e.check(/* @__PURE__ */ _e(0, r)), e.multipleOf = (r, s) => e.check(/* @__PURE__ */ He(r, s)), e.step = (r, s) => e.check(/* @__PURE__ */ He(r, s)), e.finite = () => e;
2694
+ On.init(e, n), k.init(e, n), e._zod.processJSONSchema = (r, s, i) => no(e, r, s), e.gt = (r, s) => e.check(/* @__PURE__ */ He(r, s)), e.gte = (r, s) => e.check(/* @__PURE__ */ ye(r, s)), e.min = (r, s) => e.check(/* @__PURE__ */ ye(r, s)), e.lt = (r, s) => e.check(/* @__PURE__ */ Xe(r, s)), e.lte = (r, s) => e.check(/* @__PURE__ */ _e(r, s)), e.max = (r, s) => e.check(/* @__PURE__ */ _e(r, s)), e.int = (r) => e.check(en(r)), e.safe = (r) => e.check(en(r)), e.positive = (r) => e.check(/* @__PURE__ */ He(0, r)), e.nonnegative = (r) => e.check(/* @__PURE__ */ ye(0, r)), e.negative = (r) => e.check(/* @__PURE__ */ Xe(0, r)), e.nonpositive = (r) => e.check(/* @__PURE__ */ _e(0, r)), e.multipleOf = (r, s) => e.check(/* @__PURE__ */ Ye(r, s)), e.step = (r, s) => e.check(/* @__PURE__ */ Ye(r, s)), e.finite = () => e;
2695
2695
  const t = e._zod.bag;
2696
2696
  e.minValue = Math.max(t.minimum ?? Number.NEGATIVE_INFINITY, t.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(t.maximum ?? Number.POSITIVE_INFINITY, t.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (t.format ?? "").includes("int") || Number.isSafeInteger(t.multipleOf ?? 0.5), e.isFinite = !0, e.format = t.format ?? null;
2697
2697
  });
@@ -2701,7 +2701,7 @@ function D(e) {
2701
2701
  const ai = /* @__PURE__ */ d("ZodNumberFormat", (e, n) => {
2702
2702
  Dr.init(e, n), xn.init(e, n);
2703
2703
  });
2704
- function Qe(e) {
2704
+ function en(e) {
2705
2705
  return /* @__PURE__ */ $s(ai, e);
2706
2706
  }
2707
2707
  const ci = /* @__PURE__ */ d("ZodBoolean", (e, n) => {
@@ -2713,7 +2713,7 @@ function V(e) {
2713
2713
  const ui = /* @__PURE__ */ d("ZodUnknown", (e, n) => {
2714
2714
  Mr.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => so();
2715
2715
  });
2716
- function en() {
2716
+ function nn() {
2717
2717
  return /* @__PURE__ */ Zs(ui);
2718
2718
  }
2719
2719
  const di = /* @__PURE__ */ d("ZodNever", (e, n) => {
@@ -2729,7 +2729,7 @@ function q(e, n) {
2729
2729
  return /* @__PURE__ */ Ws(hi, e, n);
2730
2730
  }
2731
2731
  const fi = /* @__PURE__ */ d("ZodObject", (e, n) => {
2732
- jr.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => lo(e, t, r, s), g(e, "shape", () => n.shape), e.keyof = () => _i(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({ ...e._zod.def, catchall: t }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: en() }), e.loose = () => e.clone({ ...e._zod.def, catchall: en() }), e.strict = () => e.clone({ ...e._zod.def, catchall: li() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (t) => ut(e, t), e.safeExtend = (t) => dt(e, t), e.merge = (t) => lt(e, t), e.pick = (t) => at(e, t), e.omit = (t) => ct(e, t), e.partial = (...t) => ht(jn, e, t[0]), e.required = (...t) => ft(Vn, e, t[0]);
2732
+ jr.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => lo(e, t, r, s), g(e, "shape", () => n.shape), e.keyof = () => _i(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({ ...e._zod.def, catchall: t }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: nn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: nn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: li() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (t) => ut(e, t), e.safeExtend = (t) => dt(e, t), e.merge = (t) => lt(e, t), e.pick = (t) => at(e, t), e.omit = (t) => ct(e, t), e.partial = (...t) => ht(jn, e, t[0]), e.required = (...t) => ft(Vn, e, t[0]);
2733
2733
  });
2734
2734
  function S(e, n) {
2735
2735
  const t = {
@@ -2773,7 +2773,7 @@ function gi(e, n) {
2773
2773
  const bi = /* @__PURE__ */ d("ZodRecord", (e, n) => {
2774
2774
  Br.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => po(e, t, r, s), e.keyType = n.keyType, e.valueType = n.valueType;
2775
2775
  });
2776
- function Ce(e, n, t) {
2776
+ function Ze(e, n, t) {
2777
2777
  return new bi({
2778
2778
  type: "record",
2779
2779
  keyType: e,
@@ -2781,7 +2781,7 @@ function Ce(e, n, t) {
2781
2781
  ...m(t)
2782
2782
  });
2783
2783
  }
2784
- const ze = /* @__PURE__ */ d("ZodEnum", (e, n) => {
2784
+ const Pe = /* @__PURE__ */ d("ZodEnum", (e, n) => {
2785
2785
  Gr.init(e, n), k.init(e, n), e._zod.processJSONSchema = (r, s, i) => oo(e, r, s), e.enum = n.entries, e.options = Object.values(n.entries);
2786
2786
  const t = new Set(Object.keys(n.entries));
2787
2787
  e.extract = (r, s) => {
@@ -2791,7 +2791,7 @@ const ze = /* @__PURE__ */ d("ZodEnum", (e, n) => {
2791
2791
  i[o] = n.entries[o];
2792
2792
  else
2793
2793
  throw new Error(`Key ${o} not found in enum`);
2794
- return new ze({
2794
+ return new Pe({
2795
2795
  ...n,
2796
2796
  checks: [],
2797
2797
  ...m(s),
@@ -2804,7 +2804,7 @@ const ze = /* @__PURE__ */ d("ZodEnum", (e, n) => {
2804
2804
  delete i[o];
2805
2805
  else
2806
2806
  throw new Error(`Key ${o} not found in enum`);
2807
- return new ze({
2807
+ return new Pe({
2808
2808
  ...n,
2809
2809
  checks: [],
2810
2810
  ...m(s),
@@ -2814,7 +2814,7 @@ const ze = /* @__PURE__ */ d("ZodEnum", (e, n) => {
2814
2814
  });
2815
2815
  function _i(e, n) {
2816
2816
  const t = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2817
- return new ze({
2817
+ return new Pe({
2818
2818
  type: "enum",
2819
2819
  entries: t,
2820
2820
  ...m(n)
@@ -2829,7 +2829,7 @@ const yi = /* @__PURE__ */ d("ZodLiteral", (e, n) => {
2829
2829
  }
2830
2830
  });
2831
2831
  });
2832
- function nn(e, n) {
2832
+ function tn(e, n) {
2833
2833
  return new yi({
2834
2834
  type: "literal",
2835
2835
  values: Array.isArray(e) ? e : [e],
@@ -2861,7 +2861,7 @@ function Ii(e) {
2861
2861
  const jn = /* @__PURE__ */ d("ZodOptional", (e, n) => {
2862
2862
  Nn.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => Mn(e, t, r, s), e.unwrap = () => e._zod.def.innerType;
2863
2863
  });
2864
- function tn(e) {
2864
+ function rn(e) {
2865
2865
  return new jn({
2866
2866
  type: "optional",
2867
2867
  innerType: e
@@ -2879,7 +2879,7 @@ function Ei(e) {
2879
2879
  const zi = /* @__PURE__ */ d("ZodNullable", (e, n) => {
2880
2880
  Xr.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => mo(e, t, r, s), e.unwrap = () => e._zod.def.innerType;
2881
2881
  });
2882
- function rn(e) {
2882
+ function sn(e) {
2883
2883
  return new zi({
2884
2884
  type: "nullable",
2885
2885
  innerType: e
@@ -2932,7 +2932,7 @@ function $i(e, n) {
2932
2932
  const Ci = /* @__PURE__ */ d("ZodPipe", (e, n) => {
2933
2933
  ns.init(e, n), k.init(e, n), e._zod.processJSONSchema = (t, r, s) => _o(e, t, r, s), e.in = n.in, e.out = n.out;
2934
2934
  });
2935
- function sn(e, n) {
2935
+ function on(e, n) {
2936
2936
  return new Ci({
2937
2937
  type: "pipe",
2938
2938
  in: e,
@@ -2965,10 +2965,10 @@ function M(e) {
2965
2965
  }
2966
2966
  const Ln = wi("kind", [
2967
2967
  // The default hang container
2968
- S({ kind: nn("legacy") }),
2968
+ S({ kind: tn("legacy") }),
2969
2969
  // CMAF container with timescale for timestamp conversion
2970
2970
  S({
2971
- kind: nn("cmaf"),
2971
+ kind: tn("cmaf"),
2972
2972
  // Time units per second
2973
2973
  timescale: R,
2974
2974
  // Track ID used in the moof/mdat fragments
@@ -2976,7 +2976,7 @@ const Ln = wi("kind", [
2976
2976
  })
2977
2977
  ]).default({ kind: "legacy" }), xi = S({
2978
2978
  name: _()
2979
- }), on = S({
2979
+ }), an = S({
2980
2980
  // See: https://w3c.github.io/webcodecs/codec_registry.html
2981
2981
  codec: _(),
2982
2982
  // The container format, used to decode the timestamp and more.
@@ -3003,12 +3003,12 @@ const Ln = wi("kind", [
3003
3003
  }), Fi = S({
3004
3004
  // A map of track name to rendition configuration.
3005
3005
  // This is not an array so it will work with JSON Merge Patch.
3006
- renditions: Ce(_(), on)
3006
+ renditions: Ze(_(), an)
3007
3007
  }).or(
3008
3008
  // Backwards compatibility: transform old {track, config} format to new object format
3009
3009
  S({
3010
3010
  track: xi,
3011
- config: on
3011
+ config: an
3012
3012
  }).transform((e) => ({
3013
3013
  renditions: { [e.track.name]: e.config }
3014
3014
  }))
@@ -3028,7 +3028,7 @@ const Ln = wi("kind", [
3028
3028
  }), Bi = S({
3029
3029
  message: re.optional(),
3030
3030
  typing: re.optional()
3031
- }), Ze = S({
3031
+ }), De = S({
3032
3032
  // The relative X position of the broadcast, from -1 to +1.
3033
3033
  // This should be used for audio panning but can also be used for video positioning.
3034
3034
  x: D().optional(),
@@ -3044,7 +3044,7 @@ const Ln = wi("kind", [
3044
3044
  // The initial position of the broadcaster, from -1 to +1 in both dimensions.
3045
3045
  // If not provided, then the broadcaster is assumed to be at (0,0)
3046
3046
  // This should be used for audio panning but can also be used for video positioning.
3047
- initial: Ze.optional(),
3047
+ initial: De.optional(),
3048
3048
  // If provided, then updates to the position are done via a separate Moq track.
3049
3049
  // This is used to avoid a full catalog update every time we want to update a few bytes.
3050
3050
  // TODO: These updates currently use JSON for simplicity, but we should use a binary format.
@@ -3055,7 +3055,7 @@ const Ln = wi("kind", [
3055
3055
  // If provided, this broadcaster is signaling the location of other peers.
3056
3056
  // The payload is a JSON blob keyed by handle for each peer.
3057
3057
  peers: re.optional()
3058
- }), Ji = Ce(_(), Ze);
3058
+ }), Ji = Ze(_(), De);
3059
3059
  S({
3060
3060
  name: _().optional(),
3061
3061
  // name
@@ -3087,7 +3087,7 @@ const J = {
3087
3087
  color: _().optional()
3088
3088
  }), Ki = S({
3089
3089
  name: _()
3090
- }), an = S({
3090
+ }), cn = S({
3091
3091
  // See: https://w3c.github.io/webcodecs/codec_registry.html
3092
3092
  codec: _(),
3093
3093
  // The container format, used to decode the timestamp and more.
@@ -3126,7 +3126,7 @@ const J = {
3126
3126
  }), Xi = S({
3127
3127
  // A map of track name to rendition configuration.
3128
3128
  // This is not an array in order for it to work with JSON Merge Patch.
3129
- renditions: Ce(_(), an),
3129
+ renditions: Ze(_(), cn),
3130
3130
  // Render the video at this size in pixels.
3131
3131
  // This is separate from the display aspect ratio because it does not require reinitialization.
3132
3132
  display: S({
@@ -3144,7 +3144,7 @@ const J = {
3144
3144
  q(
3145
3145
  S({
3146
3146
  track: Ki,
3147
- config: an
3147
+ config: cn
3148
3148
  })
3149
3149
  ).transform((e) => {
3150
3150
  const n = e[0]?.config;
@@ -3165,7 +3165,7 @@ S({
3165
3165
  capabilities: Li.optional(),
3166
3166
  preview: re.optional()
3167
3167
  });
3168
- function cn(e) {
3168
+ function un(e) {
3169
3169
  return new TextEncoder().encode(JSON.stringify(e));
3170
3170
  }
3171
3171
  class be {
@@ -3182,7 +3182,7 @@ class be {
3182
3182
  this.#n?.writeFrame(be.#t(n, t));
3183
3183
  }
3184
3184
  static #t(n, t) {
3185
- const r = ln.Varint.encode(t), s = (n instanceof Uint8Array, n.byteLength), i = new Uint8Array(r.byteLength + s);
3185
+ const r = Se.Varint.encode(t), s = (n instanceof Uint8Array, n.byteLength), i = new Uint8Array(r.byteLength + s);
3186
3186
  return i.set(r, 0), n instanceof Uint8Array ? i.set(n, r.byteLength) : n.copyTo(i.subarray(r.byteLength)), i;
3187
3187
  }
3188
3188
  close(n) {
@@ -5636,8 +5636,8 @@ var Capture = class extends AudioWorkletProcessor {
5636
5636
  }
5637
5637
  };
5638
5638
  registerProcessor("capture", Capture);
5639
- `, ea = new Blob([Qi], { type: "application/javascript" }), na = URL.createObjectURL(ea), un = 1e-3, Ie = 0.2;
5640
- let dn = class Bn {
5639
+ `, ea = new Blob([Qi], { type: "application/javascript" }), na = URL.createObjectURL(ea), dn = 1e-3, Ie = 0.2;
5640
+ let ln = class Bn {
5641
5641
  static TRACK = "audio/data";
5642
5642
  static PRIORITY = J.audio;
5643
5643
  enabled;
@@ -5699,7 +5699,7 @@ let dn = class Bn {
5699
5699
  if (!t) return;
5700
5700
  n.cleanup(() => t.gain.cancelScheduledValues(t.context.currentTime));
5701
5701
  const r = n.get(this.muted) ? 0 : n.get(this.volume);
5702
- r < un ? (t.gain.exponentialRampToValueAtTime(un, t.context.currentTime + Ie), t.gain.setValueAtTime(0, t.context.currentTime + Ie + 0.01)) : t.gain.exponentialRampToValueAtTime(r, t.context.currentTime + Ie);
5702
+ r < dn ? (t.gain.exponentialRampToValueAtTime(dn, t.context.currentTime + Ie), t.gain.setValueAtTime(0, t.context.currentTime + Ie + 0.01)) : t.gain.exponentialRampToValueAtTime(r, t.context.currentTime + Ie);
5703
5703
  }
5704
5704
  serve(n, t) {
5705
5705
  const r = t.getAll([this.enabled, this.#t, this.#n]);
@@ -5868,7 +5868,7 @@ class ae {
5868
5868
  const r = t.getAll([this.enabled, this.position]);
5869
5869
  if (!r) return;
5870
5870
  const [s, i] = r;
5871
- Jn(n, i, Ze);
5871
+ Jn(n, i, De);
5872
5872
  }
5873
5873
  close() {
5874
5874
  this.signals.close();
@@ -5947,7 +5947,7 @@ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5947
5947
  __proto__: null,
5948
5948
  Info: Kn
5949
5949
  }, Symbol.toStringTag, { value: "Module" }));
5950
- class Pe {
5950
+ class Oe {
5951
5951
  enabled;
5952
5952
  source;
5953
5953
  frame;
@@ -6188,7 +6188,7 @@ class B {
6188
6188
  flip = new f(!1);
6189
6189
  signals = new P();
6190
6190
  constructor(n) {
6191
- this.source = f.from(n?.source), this.hd = new Pe(this.frame, this.source, n?.hd), this.sd = new Pe(this.frame, this.source, n?.sd), this.flip = f.from(n?.flip ?? !1), this.signals.run(this.#n.bind(this)), this.signals.run(this.#e.bind(this));
6191
+ this.source = f.from(n?.source), this.hd = new Oe(this.frame, this.source, n?.hd), this.sd = new Oe(this.frame, this.source, n?.sd), this.flip = f.from(n?.flip ?? !1), this.signals.run(this.#n.bind(this)), this.signals.run(this.#e.bind(this));
6192
6192
  }
6193
6193
  #e(n) {
6194
6194
  const t = n.get(this.source);
@@ -6230,7 +6230,7 @@ class B {
6230
6230
  }
6231
6231
  const la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6232
6232
  __proto__: null,
6233
- Encoder: Pe,
6233
+ Encoder: Oe,
6234
6234
  Root: B
6235
6235
  }, Symbol.toStringTag, { value: "Module" }));
6236
6236
  class Xn {
@@ -6246,14 +6246,12 @@ class Xn {
6246
6246
  user;
6247
6247
  signals = new P();
6248
6248
  constructor(n) {
6249
- this.connection = f.from(n?.connection), this.enabled = f.from(n?.enabled ?? !1), this.name = f.from(n?.name), this.audio = new dn(n?.audio), this.video = new B(n?.video), this.location = new Wn(n?.location), this.chat = new Gn(n?.chat), this.preview = new pe(n?.preview), this.user = new Kn(n?.user), this.signals.run(this.#e.bind(this));
6249
+ this.connection = f.from(n?.connection), this.enabled = f.from(n?.enabled ?? !1), this.name = f.from(n?.name ?? Se.Path.empty()), this.audio = new ln(n?.audio), this.video = new B(n?.video), this.location = new Wn(n?.location), this.chat = new Gn(n?.chat), this.preview = new pe(n?.preview), this.user = new Kn(n?.user), this.signals.run(this.#e.bind(this));
6250
6250
  }
6251
6251
  #e(n) {
6252
6252
  const t = n.getAll([this.enabled, this.connection]);
6253
6253
  if (!t) return;
6254
- const [r, s] = t, i = n.get(this.name);
6255
- if (i === void 0) return;
6256
- const o = new ln.Broadcast();
6254
+ const [r, s] = t, i = n.get(this.name), o = new Se.Broadcast();
6257
6255
  n.cleanup(() => o.close()), s.publish(i, o), n.spawn(this.#n.bind(this, o, n));
6258
6256
  }
6259
6257
  async #n(n, t) {
@@ -6281,7 +6279,7 @@ class Xn {
6281
6279
  case se.TRACK:
6282
6280
  this.chat.message.serve(r.track, s);
6283
6281
  break;
6284
- case dn.TRACK:
6282
+ case ln.TRACK:
6285
6283
  this.audio.serve(r.track, s);
6286
6284
  break;
6287
6285
  case B.TRACK_HD:
@@ -6299,7 +6297,7 @@ class Xn {
6299
6297
  }
6300
6298
  #t(n, t) {
6301
6299
  if (!t.get(this.enabled)) {
6302
- n.writeFrame(cn({}));
6300
+ n.writeFrame(un({}));
6303
6301
  return;
6304
6302
  }
6305
6303
  const r = {
@@ -6309,7 +6307,7 @@ class Xn {
6309
6307
  user: t.get(this.user.catalog),
6310
6308
  chat: t.get(this.chat.catalog),
6311
6309
  preview: t.get(this.preview.catalog)
6312
- }, s = cn(r);
6310
+ }, s = un(r);
6313
6311
  n.writeFrame(s);
6314
6312
  }
6315
6313
  close() {
@@ -6565,7 +6563,7 @@ export {
6565
6563
  Xn as B,
6566
6564
  ha as C,
6567
6565
  Hn as D,
6568
- dn as E,
6566
+ ln as E,
6569
6567
  fa as F,
6570
6568
  ma as M,
6571
6569
  pe as P,
@@ -6575,4 +6573,4 @@ export {
6575
6573
  aa as i,
6576
6574
  da as u
6577
6575
  };
6578
- //# sourceMappingURL=screen-CB3eVjAV.js.map
6576
+ //# sourceMappingURL=screen-B680RFft.js.map