@hype-stack/cli 0.1.0 → 0.2.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.
Files changed (76) hide show
  1. package/dist/cli-CPOgUkiJ.js +4056 -0
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/commands/compose.d.ts +3 -0
  4. package/dist/commands/compose.d.ts.map +1 -0
  5. package/dist/commands/create.d.ts +1 -1
  6. package/dist/commands/create.d.ts.map +1 -1
  7. package/dist/commands/init.d.ts +1 -1
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/login.d.ts +2 -0
  10. package/dist/commands/login.d.ts.map +1 -0
  11. package/dist/commands/logout.d.ts +2 -0
  12. package/dist/commands/logout.d.ts.map +1 -0
  13. package/dist/config/bin.d.ts.map +1 -0
  14. package/dist/config/bin.js +2440 -0
  15. package/dist/config/env.d.ts +9 -0
  16. package/dist/config/env.d.ts.map +1 -0
  17. package/dist/constants/constants.d.ts +60 -0
  18. package/dist/constants/constants.d.ts.map +1 -0
  19. package/dist/core/access-prompts.d.ts +15 -0
  20. package/dist/core/access-prompts.d.ts.map +1 -0
  21. package/dist/core/auth-api.d.ts +9 -0
  22. package/dist/core/auth-api.d.ts.map +1 -0
  23. package/dist/core/auth-store.d.ts +16 -0
  24. package/dist/core/auth-store.d.ts.map +1 -0
  25. package/dist/core/client.d.ts +2 -0
  26. package/dist/core/client.d.ts.map +1 -0
  27. package/dist/core/clone.d.ts.map +1 -1
  28. package/dist/core/codegen.d.ts +18 -0
  29. package/dist/core/codegen.d.ts.map +1 -0
  30. package/dist/core/codemods.d.ts +19 -0
  31. package/dist/core/codemods.d.ts.map +1 -0
  32. package/dist/core/device.d.ts +3 -0
  33. package/dist/core/device.d.ts.map +1 -0
  34. package/dist/core/editor-config.d.ts +1 -1
  35. package/dist/core/editor-config.d.ts.map +1 -1
  36. package/dist/core/env-files.d.ts +2 -0
  37. package/dist/core/env-files.d.ts.map +1 -0
  38. package/dist/core/installer.d.ts +57 -0
  39. package/dist/core/installer.d.ts.map +1 -0
  40. package/dist/core/license.d.ts +2 -0
  41. package/dist/core/license.d.ts.map +1 -0
  42. package/dist/core/login.d.ts +13 -0
  43. package/dist/core/login.d.ts.map +1 -0
  44. package/dist/core/npm-deps.d.ts +32 -0
  45. package/dist/core/npm-deps.d.ts.map +1 -0
  46. package/dist/core/open-browser.d.ts +2 -0
  47. package/dist/core/open-browser.d.ts.map +1 -0
  48. package/dist/core/post-setup.d.ts +6 -0
  49. package/dist/core/post-setup.d.ts.map +1 -0
  50. package/dist/core/readme.d.ts +10 -0
  51. package/dist/core/readme.d.ts.map +1 -0
  52. package/dist/core/registry.d.ts +35 -0
  53. package/dist/core/registry.d.ts.map +1 -0
  54. package/dist/core/resolve.d.ts +44 -0
  55. package/dist/core/resolve.d.ts.map +1 -0
  56. package/dist/core/stack-config.d.ts +3 -1
  57. package/dist/core/stack-config.d.ts.map +1 -1
  58. package/dist/index.d.ts +7 -5
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +2 -2
  61. package/dist/types/types.d.ts +177 -0
  62. package/dist/types/types.d.ts.map +1 -0
  63. package/dist/ui/banner.d.ts.map +1 -1
  64. package/dist/ui/logger.d.ts.map +1 -1
  65. package/dist/ui/theme.d.ts.map +1 -1
  66. package/package.json +7 -3
  67. package/dist/bin.d.ts.map +0 -1
  68. package/dist/bin.js +0 -5
  69. package/dist/cli-B_f7CCee.js +0 -548
  70. package/dist/commands/add.d.ts +0 -2
  71. package/dist/commands/add.d.ts.map +0 -1
  72. package/dist/constants.d.ts +0 -30
  73. package/dist/constants.d.ts.map +0 -1
  74. package/dist/types.d.ts +0 -23
  75. package/dist/types.d.ts.map +0 -1
  76. /package/dist/{bin.d.ts → config/bin.d.ts} +0 -0
@@ -0,0 +1,2440 @@
1
+ #!/usr/bin/env node
2
+ import { t as e } from "../cli-CPOgUkiJ.js";
3
+ Object.freeze({ status: "aborted" });
4
+ function t(e, t, n) {
5
+ function r(n, r) {
6
+ if (n._zod || Object.defineProperty(n, "_zod", {
7
+ value: {
8
+ def: r,
9
+ constr: o,
10
+ traits: /* @__PURE__ */ new Set()
11
+ },
12
+ enumerable: !1
13
+ }), n._zod.traits.has(e)) return;
14
+ n._zod.traits.add(e), t(n, r);
15
+ let i = o.prototype, a = Object.keys(i);
16
+ for (let e = 0; e < a.length; e++) {
17
+ let t = a[e];
18
+ t in n || (n[t] = i[t].bind(n));
19
+ }
20
+ }
21
+ let i = n?.Parent ?? Object;
22
+ class a extends i {}
23
+ Object.defineProperty(a, "name", { value: e });
24
+ function o(e) {
25
+ var t;
26
+ let i = n?.Parent ? new a() : this;
27
+ r(i, e), (t = i._zod).deferred ?? (t.deferred = []);
28
+ for (let e of i._zod.deferred) e();
29
+ return i;
30
+ }
31
+ return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
32
+ }
33
+ var n = class extends Error {
34
+ constructor() {
35
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
36
+ }
37
+ }, r = class extends Error {
38
+ constructor(e) {
39
+ super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
40
+ }
41
+ }, i = {};
42
+ function a(e) {
43
+ return e && Object.assign(i, e), i;
44
+ }
45
+ //#endregion
46
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
47
+ function o(e) {
48
+ let t = Object.values(e).filter((e) => typeof e == "number");
49
+ return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
50
+ }
51
+ function s(e, t) {
52
+ return typeof t == "bigint" ? t.toString() : t;
53
+ }
54
+ function c(e) {
55
+ return { get value() {
56
+ {
57
+ let t = e();
58
+ return Object.defineProperty(this, "value", { value: t }), t;
59
+ }
60
+ throw Error("cached value already set");
61
+ } };
62
+ }
63
+ function l(e) {
64
+ return e == null;
65
+ }
66
+ function u(e) {
67
+ let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
68
+ return e.slice(t, n);
69
+ }
70
+ var d = Symbol("evaluating");
71
+ function f(e, t, n) {
72
+ let r;
73
+ Object.defineProperty(e, t, {
74
+ get() {
75
+ if (r !== d) return r === void 0 && (r = d, r = n()), r;
76
+ },
77
+ set(n) {
78
+ Object.defineProperty(e, t, { value: n });
79
+ },
80
+ configurable: !0
81
+ });
82
+ }
83
+ function p(e, t, n) {
84
+ Object.defineProperty(e, t, {
85
+ value: n,
86
+ writable: !0,
87
+ enumerable: !0,
88
+ configurable: !0
89
+ });
90
+ }
91
+ function m(...e) {
92
+ let t = {};
93
+ for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
94
+ return Object.defineProperties({}, t);
95
+ }
96
+ function ee(e) {
97
+ return JSON.stringify(e);
98
+ }
99
+ function te(e) {
100
+ return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
101
+ }
102
+ var ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
103
+ function h(e) {
104
+ return typeof e == "object" && !!e && !Array.isArray(e);
105
+ }
106
+ var re = c(() => {
107
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
108
+ try {
109
+ return Function(""), !0;
110
+ } catch {
111
+ return !1;
112
+ }
113
+ });
114
+ function g(e) {
115
+ if (h(e) === !1) return !1;
116
+ let t = e.constructor;
117
+ if (t === void 0 || typeof t != "function") return !0;
118
+ let n = t.prototype;
119
+ return !(h(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
120
+ }
121
+ function ie(e) {
122
+ return g(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
123
+ }
124
+ var ae = new Set([
125
+ "string",
126
+ "number",
127
+ "symbol"
128
+ ]);
129
+ function _(e) {
130
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
131
+ }
132
+ function v(e, t, n) {
133
+ let r = new e._zod.constr(t ?? e._zod.def);
134
+ return (!t || n?.parent) && (r._zod.parent = e), r;
135
+ }
136
+ function y(e) {
137
+ let t = e;
138
+ if (!t) return {};
139
+ if (typeof t == "string") return { error: () => t };
140
+ if (t?.message !== void 0) {
141
+ if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
142
+ t.error = t.message;
143
+ }
144
+ return delete t.message, typeof t.error == "string" ? {
145
+ ...t,
146
+ error: () => t.error
147
+ } : t;
148
+ }
149
+ function oe(e) {
150
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
151
+ }
152
+ -Number.MAX_VALUE, Number.MAX_VALUE;
153
+ function se(e, t) {
154
+ let n = e._zod.def, r = n.checks;
155
+ if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
156
+ return v(e, m(e._zod.def, {
157
+ get shape() {
158
+ let e = {};
159
+ for (let r in t) {
160
+ if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
161
+ t[r] && (e[r] = n.shape[r]);
162
+ }
163
+ return p(this, "shape", e), e;
164
+ },
165
+ checks: []
166
+ }));
167
+ }
168
+ function ce(e, t) {
169
+ let n = e._zod.def, r = n.checks;
170
+ if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
171
+ return v(e, m(e._zod.def, {
172
+ get shape() {
173
+ let r = { ...e._zod.def.shape };
174
+ for (let e in t) {
175
+ if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
176
+ t[e] && delete r[e];
177
+ }
178
+ return p(this, "shape", r), r;
179
+ },
180
+ checks: []
181
+ }));
182
+ }
183
+ function le(e, t) {
184
+ if (!g(t)) throw Error("Invalid input to extend: expected a plain object");
185
+ let n = e._zod.def.checks;
186
+ if (n && n.length > 0) {
187
+ let n = e._zod.def.shape;
188
+ for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
189
+ }
190
+ return v(e, m(e._zod.def, { get shape() {
191
+ let n = {
192
+ ...e._zod.def.shape,
193
+ ...t
194
+ };
195
+ return p(this, "shape", n), n;
196
+ } }));
197
+ }
198
+ function ue(e, t) {
199
+ if (!g(t)) throw Error("Invalid input to safeExtend: expected a plain object");
200
+ return v(e, m(e._zod.def, { get shape() {
201
+ let n = {
202
+ ...e._zod.def.shape,
203
+ ...t
204
+ };
205
+ return p(this, "shape", n), n;
206
+ } }));
207
+ }
208
+ function de(e, t) {
209
+ return v(e, m(e._zod.def, {
210
+ get shape() {
211
+ let n = {
212
+ ...e._zod.def.shape,
213
+ ...t._zod.def.shape
214
+ };
215
+ return p(this, "shape", n), n;
216
+ },
217
+ get catchall() {
218
+ return t._zod.def.catchall;
219
+ },
220
+ checks: []
221
+ }));
222
+ }
223
+ function fe(e, t, n) {
224
+ let r = t._zod.def.checks;
225
+ if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
226
+ return v(t, m(t._zod.def, {
227
+ get shape() {
228
+ let r = t._zod.def.shape, i = { ...r };
229
+ if (n) for (let t in n) {
230
+ if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
231
+ n[t] && (i[t] = e ? new e({
232
+ type: "optional",
233
+ innerType: r[t]
234
+ }) : r[t]);
235
+ }
236
+ else for (let t in r) i[t] = e ? new e({
237
+ type: "optional",
238
+ innerType: r[t]
239
+ }) : r[t];
240
+ return p(this, "shape", i), i;
241
+ },
242
+ checks: []
243
+ }));
244
+ }
245
+ function pe(e, t, n) {
246
+ return v(t, m(t._zod.def, { get shape() {
247
+ let r = t._zod.def.shape, i = { ...r };
248
+ if (n) for (let t in n) {
249
+ if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
250
+ n[t] && (i[t] = new e({
251
+ type: "nonoptional",
252
+ innerType: r[t]
253
+ }));
254
+ }
255
+ else for (let t in r) i[t] = new e({
256
+ type: "nonoptional",
257
+ innerType: r[t]
258
+ });
259
+ return p(this, "shape", i), i;
260
+ } }));
261
+ }
262
+ function b(e, t = 0) {
263
+ if (e.aborted === !0) return !0;
264
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
265
+ return !1;
266
+ }
267
+ function me(e, t) {
268
+ return t.map((t) => {
269
+ var n;
270
+ return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
271
+ });
272
+ }
273
+ function x(e) {
274
+ return typeof e == "string" ? e : e?.message;
275
+ }
276
+ function S(e, t, n) {
277
+ let r = {
278
+ ...e,
279
+ path: e.path ?? []
280
+ };
281
+ return e.message || (r.message = x(e.inst?._zod.def?.error?.(e)) ?? x(t?.error?.(e)) ?? x(n.customError?.(e)) ?? x(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
282
+ }
283
+ function C(e) {
284
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
285
+ }
286
+ function w(...e) {
287
+ let [t, n, r] = e;
288
+ return typeof t == "string" ? {
289
+ message: t,
290
+ code: "custom",
291
+ input: n,
292
+ inst: r
293
+ } : { ...t };
294
+ }
295
+ //#endregion
296
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
297
+ var he = (e, t) => {
298
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
299
+ value: e._zod,
300
+ enumerable: !1
301
+ }), Object.defineProperty(e, "issues", {
302
+ value: t,
303
+ enumerable: !1
304
+ }), e.message = JSON.stringify(t, s, 2), Object.defineProperty(e, "toString", {
305
+ value: () => e.message,
306
+ enumerable: !1
307
+ });
308
+ }, ge = t("$ZodError", he), _e = t("$ZodError", he, { Parent: Error });
309
+ function ve(e, t = (e) => e.message) {
310
+ let n = {}, r = [];
311
+ for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
312
+ return {
313
+ formErrors: r,
314
+ fieldErrors: n
315
+ };
316
+ }
317
+ function ye(e, t = (e) => e.message) {
318
+ let n = { _errors: [] }, r = (e) => {
319
+ for (let i of e.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((e) => r({ issues: e }));
320
+ else if (i.code === "invalid_key") r({ issues: i.issues });
321
+ else if (i.code === "invalid_element") r({ issues: i.issues });
322
+ else if (i.path.length === 0) n._errors.push(t(i));
323
+ else {
324
+ let e = n, r = 0;
325
+ for (; r < i.path.length;) {
326
+ let n = i.path[r];
327
+ r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
328
+ }
329
+ }
330
+ };
331
+ return r(e), n;
332
+ }
333
+ function be(e) {
334
+ let t = [], n = e.map((e) => typeof e == "object" ? e.key : e);
335
+ for (let e of n) typeof e == "number" ? t.push(`[${e}]`) : typeof e == "symbol" ? t.push(`[${JSON.stringify(String(e))}]`) : /[^\w$]/.test(e) ? t.push(`[${JSON.stringify(e)}]`) : (t.length && t.push("."), t.push(e));
336
+ return t.join("");
337
+ }
338
+ function xe(e) {
339
+ let t = [], n = [...e.issues].sort((e, t) => (e.path ?? []).length - (t.path ?? []).length);
340
+ for (let e of n) t.push(`✖ ${e.message}`), e.path?.length && t.push(` → at ${be(e.path)}`);
341
+ return t.join("\n");
342
+ }
343
+ //#endregion
344
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
345
+ var T = (e) => (t, r, i, o) => {
346
+ let s = i ? Object.assign(i, { async: !1 }) : { async: !1 }, c = t._zod.run({
347
+ value: r,
348
+ issues: []
349
+ }, s);
350
+ if (c instanceof Promise) throw new n();
351
+ if (c.issues.length) {
352
+ let t = new (o?.Err ?? e)(c.issues.map((e) => S(e, s, a())));
353
+ throw ne(t, o?.callee), t;
354
+ }
355
+ return c.value;
356
+ }, E = (e) => async (t, n, r, i) => {
357
+ let o = r ? Object.assign(r, { async: !0 }) : { async: !0 }, s = t._zod.run({
358
+ value: n,
359
+ issues: []
360
+ }, o);
361
+ if (s instanceof Promise && (s = await s), s.issues.length) {
362
+ let t = new (i?.Err ?? e)(s.issues.map((e) => S(e, o, a())));
363
+ throw ne(t, i?.callee), t;
364
+ }
365
+ return s.value;
366
+ }, D = (e) => (t, r, i) => {
367
+ let o = i ? {
368
+ ...i,
369
+ async: !1
370
+ } : { async: !1 }, s = t._zod.run({
371
+ value: r,
372
+ issues: []
373
+ }, o);
374
+ if (s instanceof Promise) throw new n();
375
+ return s.issues.length ? {
376
+ success: !1,
377
+ error: new (e ?? ge)(s.issues.map((e) => S(e, o, a())))
378
+ } : {
379
+ success: !0,
380
+ data: s.value
381
+ };
382
+ }, Se = /* @__PURE__ */ D(_e), O = (e) => async (t, n, r) => {
383
+ let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
384
+ value: n,
385
+ issues: []
386
+ }, i);
387
+ return o instanceof Promise && (o = await o), o.issues.length ? {
388
+ success: !1,
389
+ error: new e(o.issues.map((e) => S(e, i, a())))
390
+ } : {
391
+ success: !0,
392
+ data: o.value
393
+ };
394
+ }, Ce = /* @__PURE__ */ O(_e), we = (e) => (t, n, r) => {
395
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
396
+ return T(e)(t, n, i);
397
+ }, Te = (e) => (t, n, r) => T(e)(t, n, r), Ee = (e) => async (t, n, r) => {
398
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
399
+ return E(e)(t, n, i);
400
+ }, De = (e) => async (t, n, r) => E(e)(t, n, r), Oe = (e) => (t, n, r) => {
401
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
402
+ return D(e)(t, n, i);
403
+ }, ke = (e) => (t, n, r) => D(e)(t, n, r), Ae = (e) => async (t, n, r) => {
404
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
405
+ return O(e)(t, n, i);
406
+ }, je = (e) => async (t, n, r) => O(e)(t, n, r), Me = /^[cC][^\s-]{8,}$/, Ne = /^[0-9a-z]+$/, Pe = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Fe = /^[0-9a-vA-V]{20}$/, Ie = /^[A-Za-z0-9]{27}$/, Le = /^[a-zA-Z0-9_-]{21}$/, Re = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ze = /^([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})$/, Be = (e) => e ? 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)$/, Ve = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, He = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
407
+ function Ue() {
408
+ return new RegExp(He, "u");
409
+ }
410
+ var We = /^(?:(?: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])$/, Ge = /^(([0-9a-fA-F]{1,4}:){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}|:))$/, Ke = /^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/, qe = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Je = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Xe = /^\+[1-9]\d{6,14}$/, Ze = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Qe = /* @__PURE__ */ RegExp(`^${Ze}$`);
411
+ function $e(e) {
412
+ let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
413
+ return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
414
+ }
415
+ function et(e) {
416
+ return RegExp(`^${$e(e)}$`);
417
+ }
418
+ function tt(e) {
419
+ let t = $e({ precision: e.precision }), n = ["Z"];
420
+ e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
421
+ let r = `${t}(?:${n.join("|")})`;
422
+ return RegExp(`^${Ze}T(?:${r})$`);
423
+ }
424
+ var nt = (e) => {
425
+ let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
426
+ return RegExp(`^${t}$`);
427
+ }, rt = /^[^A-Z]*$/, it = /^[^a-z]*$/, k = /* @__PURE__ */ t("$ZodCheck", (e, t) => {
428
+ var n;
429
+ e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
430
+ }), at = /* @__PURE__ */ t("$ZodCheckMaxLength", (e, t) => {
431
+ var n;
432
+ k.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
433
+ let t = e.value;
434
+ return !l(t) && t.length !== void 0;
435
+ }), e._zod.onattach.push((e) => {
436
+ let n = e._zod.bag.maximum ?? Infinity;
437
+ t.maximum < n && (e._zod.bag.maximum = t.maximum);
438
+ }), e._zod.check = (n) => {
439
+ let r = n.value;
440
+ if (r.length <= t.maximum) return;
441
+ let i = C(r);
442
+ n.issues.push({
443
+ origin: i,
444
+ code: "too_big",
445
+ maximum: t.maximum,
446
+ inclusive: !0,
447
+ input: r,
448
+ inst: e,
449
+ continue: !t.abort
450
+ });
451
+ };
452
+ }), ot = /* @__PURE__ */ t("$ZodCheckMinLength", (e, t) => {
453
+ var n;
454
+ k.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
455
+ let t = e.value;
456
+ return !l(t) && t.length !== void 0;
457
+ }), e._zod.onattach.push((e) => {
458
+ let n = e._zod.bag.minimum ?? -Infinity;
459
+ t.minimum > n && (e._zod.bag.minimum = t.minimum);
460
+ }), e._zod.check = (n) => {
461
+ let r = n.value;
462
+ if (r.length >= t.minimum) return;
463
+ let i = C(r);
464
+ n.issues.push({
465
+ origin: i,
466
+ code: "too_small",
467
+ minimum: t.minimum,
468
+ inclusive: !0,
469
+ input: r,
470
+ inst: e,
471
+ continue: !t.abort
472
+ });
473
+ };
474
+ }), st = /* @__PURE__ */ t("$ZodCheckLengthEquals", (e, t) => {
475
+ var n;
476
+ k.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
477
+ let t = e.value;
478
+ return !l(t) && t.length !== void 0;
479
+ }), e._zod.onattach.push((e) => {
480
+ let n = e._zod.bag;
481
+ n.minimum = t.length, n.maximum = t.length, n.length = t.length;
482
+ }), e._zod.check = (n) => {
483
+ let r = n.value, i = r.length;
484
+ if (i === t.length) return;
485
+ let a = C(r), o = i > t.length;
486
+ n.issues.push({
487
+ origin: a,
488
+ ...o ? {
489
+ code: "too_big",
490
+ maximum: t.length
491
+ } : {
492
+ code: "too_small",
493
+ minimum: t.length
494
+ },
495
+ inclusive: !0,
496
+ exact: !0,
497
+ input: n.value,
498
+ inst: e,
499
+ continue: !t.abort
500
+ });
501
+ };
502
+ }), A = /* @__PURE__ */ t("$ZodCheckStringFormat", (e, t) => {
503
+ var n, r;
504
+ k.init(e, t), e._zod.onattach.push((e) => {
505
+ let n = e._zod.bag;
506
+ n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
507
+ }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
508
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
509
+ origin: "string",
510
+ code: "invalid_format",
511
+ format: t.format,
512
+ input: n.value,
513
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
514
+ inst: e,
515
+ continue: !t.abort
516
+ });
517
+ }) : (r = e._zod).check ?? (r.check = () => {});
518
+ }), ct = /* @__PURE__ */ t("$ZodCheckRegex", (e, t) => {
519
+ A.init(e, t), e._zod.check = (n) => {
520
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
521
+ origin: "string",
522
+ code: "invalid_format",
523
+ format: "regex",
524
+ input: n.value,
525
+ pattern: t.pattern.toString(),
526
+ inst: e,
527
+ continue: !t.abort
528
+ });
529
+ };
530
+ }), lt = /* @__PURE__ */ t("$ZodCheckLowerCase", (e, t) => {
531
+ t.pattern ??= rt, A.init(e, t);
532
+ }), ut = /* @__PURE__ */ t("$ZodCheckUpperCase", (e, t) => {
533
+ t.pattern ??= it, A.init(e, t);
534
+ }), dt = /* @__PURE__ */ t("$ZodCheckIncludes", (e, t) => {
535
+ k.init(e, t);
536
+ let n = _(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
537
+ t.pattern = r, e._zod.onattach.push((e) => {
538
+ let t = e._zod.bag;
539
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
540
+ }), e._zod.check = (n) => {
541
+ n.value.includes(t.includes, t.position) || n.issues.push({
542
+ origin: "string",
543
+ code: "invalid_format",
544
+ format: "includes",
545
+ includes: t.includes,
546
+ input: n.value,
547
+ inst: e,
548
+ continue: !t.abort
549
+ });
550
+ };
551
+ }), ft = /* @__PURE__ */ t("$ZodCheckStartsWith", (e, t) => {
552
+ k.init(e, t);
553
+ let n = RegExp(`^${_(t.prefix)}.*`);
554
+ t.pattern ??= n, e._zod.onattach.push((e) => {
555
+ let t = e._zod.bag;
556
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
557
+ }), e._zod.check = (n) => {
558
+ n.value.startsWith(t.prefix) || n.issues.push({
559
+ origin: "string",
560
+ code: "invalid_format",
561
+ format: "starts_with",
562
+ prefix: t.prefix,
563
+ input: n.value,
564
+ inst: e,
565
+ continue: !t.abort
566
+ });
567
+ };
568
+ }), pt = /* @__PURE__ */ t("$ZodCheckEndsWith", (e, t) => {
569
+ k.init(e, t);
570
+ let n = RegExp(`.*${_(t.suffix)}$`);
571
+ t.pattern ??= n, e._zod.onattach.push((e) => {
572
+ let t = e._zod.bag;
573
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
574
+ }), e._zod.check = (n) => {
575
+ n.value.endsWith(t.suffix) || n.issues.push({
576
+ origin: "string",
577
+ code: "invalid_format",
578
+ format: "ends_with",
579
+ suffix: t.suffix,
580
+ input: n.value,
581
+ inst: e,
582
+ continue: !t.abort
583
+ });
584
+ };
585
+ }), mt = /* @__PURE__ */ t("$ZodCheckOverwrite", (e, t) => {
586
+ k.init(e, t), e._zod.check = (e) => {
587
+ e.value = t.tx(e.value);
588
+ };
589
+ }), ht = class {
590
+ constructor(e = []) {
591
+ this.content = [], this.indent = 0, this && (this.args = e);
592
+ }
593
+ indented(e) {
594
+ this.indent += 1, e(this), --this.indent;
595
+ }
596
+ write(e) {
597
+ if (typeof e == "function") {
598
+ e(this, { execution: "sync" }), e(this, { execution: "async" });
599
+ return;
600
+ }
601
+ let t = e.split("\n").filter((e) => e), n = Math.min(...t.map((e) => e.length - e.trimStart().length)), r = t.map((e) => e.slice(n)).map((e) => " ".repeat(this.indent * 2) + e);
602
+ for (let e of r) this.content.push(e);
603
+ }
604
+ compile() {
605
+ let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
606
+ return new e(...t, n.join("\n"));
607
+ }
608
+ }, gt = {
609
+ major: 4,
610
+ minor: 3,
611
+ patch: 6
612
+ }, j = /* @__PURE__ */ t("$ZodType", (e, t) => {
613
+ var r;
614
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = gt;
615
+ let i = [...e._zod.def.checks ?? []];
616
+ e._zod.traits.has("$ZodCheck") && i.unshift(e);
617
+ for (let t of i) for (let n of t._zod.onattach) n(e);
618
+ if (i.length === 0) (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
619
+ e._zod.run = e._zod.parse;
620
+ });
621
+ else {
622
+ let t = (e, t, r) => {
623
+ let i = b(e), a;
624
+ for (let o of t) {
625
+ if (o._zod.def.when) {
626
+ if (!o._zod.def.when(e)) continue;
627
+ } else if (i) continue;
628
+ let t = e.issues.length, s = o._zod.check(e);
629
+ if (s instanceof Promise && r?.async === !1) throw new n();
630
+ if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
631
+ await s, e.issues.length !== t && (i ||= b(e, t));
632
+ });
633
+ else {
634
+ if (e.issues.length === t) continue;
635
+ i ||= b(e, t);
636
+ }
637
+ }
638
+ return a ? a.then(() => e) : e;
639
+ }, r = (r, a, o) => {
640
+ if (b(r)) return r.aborted = !0, r;
641
+ let s = t(a, i, o);
642
+ if (s instanceof Promise) {
643
+ if (o.async === !1) throw new n();
644
+ return s.then((t) => e._zod.parse(t, o));
645
+ }
646
+ return e._zod.parse(s, o);
647
+ };
648
+ e._zod.run = (a, o) => {
649
+ if (o.skipChecks) return e._zod.parse(a, o);
650
+ if (o.direction === "backward") {
651
+ let t = e._zod.parse({
652
+ value: a.value,
653
+ issues: []
654
+ }, {
655
+ ...o,
656
+ skipChecks: !0
657
+ });
658
+ return t instanceof Promise ? t.then((e) => r(e, a, o)) : r(t, a, o);
659
+ }
660
+ let s = e._zod.parse(a, o);
661
+ if (s instanceof Promise) {
662
+ if (o.async === !1) throw new n();
663
+ return s.then((e) => t(e, i, o));
664
+ }
665
+ return t(s, i, o);
666
+ };
667
+ }
668
+ f(e, "~standard", () => ({
669
+ validate: (t) => {
670
+ try {
671
+ let n = Se(e, t);
672
+ return n.success ? { value: n.data } : { issues: n.error?.issues };
673
+ } catch {
674
+ return Ce(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
675
+ }
676
+ },
677
+ vendor: "zod",
678
+ version: 1
679
+ }));
680
+ }), M = /* @__PURE__ */ t("$ZodString", (e, t) => {
681
+ j.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? nt(e._zod.bag), e._zod.parse = (n, r) => {
682
+ if (t.coerce) try {
683
+ n.value = String(n.value);
684
+ } catch {}
685
+ return typeof n.value == "string" || n.issues.push({
686
+ expected: "string",
687
+ code: "invalid_type",
688
+ input: n.value,
689
+ inst: e
690
+ }), n;
691
+ };
692
+ }), N = /* @__PURE__ */ t("$ZodStringFormat", (e, t) => {
693
+ A.init(e, t), M.init(e, t);
694
+ }), _t = /* @__PURE__ */ t("$ZodGUID", (e, t) => {
695
+ t.pattern ??= ze, N.init(e, t);
696
+ }), vt = /* @__PURE__ */ t("$ZodUUID", (e, t) => {
697
+ if (t.version) {
698
+ let e = {
699
+ v1: 1,
700
+ v2: 2,
701
+ v3: 3,
702
+ v4: 4,
703
+ v5: 5,
704
+ v6: 6,
705
+ v7: 7,
706
+ v8: 8
707
+ }[t.version];
708
+ if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
709
+ t.pattern ??= Be(e);
710
+ } else t.pattern ??= Be();
711
+ N.init(e, t);
712
+ }), yt = /* @__PURE__ */ t("$ZodEmail", (e, t) => {
713
+ t.pattern ??= Ve, N.init(e, t);
714
+ }), bt = /* @__PURE__ */ t("$ZodURL", (e, t) => {
715
+ N.init(e, t), e._zod.check = (n) => {
716
+ try {
717
+ let r = n.value.trim(), i = new URL(r);
718
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
719
+ code: "invalid_format",
720
+ format: "url",
721
+ note: "Invalid hostname",
722
+ pattern: t.hostname.source,
723
+ input: n.value,
724
+ inst: e,
725
+ continue: !t.abort
726
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.protocol) || n.issues.push({
727
+ code: "invalid_format",
728
+ format: "url",
729
+ note: "Invalid protocol",
730
+ pattern: t.protocol.source,
731
+ input: n.value,
732
+ inst: e,
733
+ continue: !t.abort
734
+ })), t.normalize ? n.value = i.href : n.value = r;
735
+ return;
736
+ } catch {
737
+ n.issues.push({
738
+ code: "invalid_format",
739
+ format: "url",
740
+ input: n.value,
741
+ inst: e,
742
+ continue: !t.abort
743
+ });
744
+ }
745
+ };
746
+ }), xt = /* @__PURE__ */ t("$ZodEmoji", (e, t) => {
747
+ t.pattern ??= Ue(), N.init(e, t);
748
+ }), St = /* @__PURE__ */ t("$ZodNanoID", (e, t) => {
749
+ t.pattern ??= Le, N.init(e, t);
750
+ }), Ct = /* @__PURE__ */ t("$ZodCUID", (e, t) => {
751
+ t.pattern ??= Me, N.init(e, t);
752
+ }), wt = /* @__PURE__ */ t("$ZodCUID2", (e, t) => {
753
+ t.pattern ??= Ne, N.init(e, t);
754
+ }), Tt = /* @__PURE__ */ t("$ZodULID", (e, t) => {
755
+ t.pattern ??= Pe, N.init(e, t);
756
+ }), Et = /* @__PURE__ */ t("$ZodXID", (e, t) => {
757
+ t.pattern ??= Fe, N.init(e, t);
758
+ }), Dt = /* @__PURE__ */ t("$ZodKSUID", (e, t) => {
759
+ t.pattern ??= Ie, N.init(e, t);
760
+ }), Ot = /* @__PURE__ */ t("$ZodISODateTime", (e, t) => {
761
+ t.pattern ??= tt(t), N.init(e, t);
762
+ }), kt = /* @__PURE__ */ t("$ZodISODate", (e, t) => {
763
+ t.pattern ??= Qe, N.init(e, t);
764
+ }), At = /* @__PURE__ */ t("$ZodISOTime", (e, t) => {
765
+ t.pattern ??= et(t), N.init(e, t);
766
+ }), jt = /* @__PURE__ */ t("$ZodISODuration", (e, t) => {
767
+ t.pattern ??= Re, N.init(e, t);
768
+ }), Mt = /* @__PURE__ */ t("$ZodIPv4", (e, t) => {
769
+ t.pattern ??= We, N.init(e, t), e._zod.bag.format = "ipv4";
770
+ }), Nt = /* @__PURE__ */ t("$ZodIPv6", (e, t) => {
771
+ t.pattern ??= Ge, N.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
772
+ try {
773
+ new URL(`http://[${n.value}]`);
774
+ } catch {
775
+ n.issues.push({
776
+ code: "invalid_format",
777
+ format: "ipv6",
778
+ input: n.value,
779
+ inst: e,
780
+ continue: !t.abort
781
+ });
782
+ }
783
+ };
784
+ }), Pt = /* @__PURE__ */ t("$ZodCIDRv4", (e, t) => {
785
+ t.pattern ??= Ke, N.init(e, t);
786
+ }), Ft = /* @__PURE__ */ t("$ZodCIDRv6", (e, t) => {
787
+ t.pattern ??= qe, N.init(e, t), e._zod.check = (n) => {
788
+ let r = n.value.split("/");
789
+ try {
790
+ if (r.length !== 2) throw Error();
791
+ let [e, t] = r;
792
+ if (!t) throw Error();
793
+ let n = Number(t);
794
+ if (`${n}` !== t || n < 0 || n > 128) throw Error();
795
+ new URL(`http://[${e}]`);
796
+ } catch {
797
+ n.issues.push({
798
+ code: "invalid_format",
799
+ format: "cidrv6",
800
+ input: n.value,
801
+ inst: e,
802
+ continue: !t.abort
803
+ });
804
+ }
805
+ };
806
+ });
807
+ function It(e) {
808
+ if (e === "") return !0;
809
+ if (e.length % 4 != 0) return !1;
810
+ try {
811
+ return atob(e), !0;
812
+ } catch {
813
+ return !1;
814
+ }
815
+ }
816
+ var Lt = /* @__PURE__ */ t("$ZodBase64", (e, t) => {
817
+ t.pattern ??= Je, N.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
818
+ It(n.value) || n.issues.push({
819
+ code: "invalid_format",
820
+ format: "base64",
821
+ input: n.value,
822
+ inst: e,
823
+ continue: !t.abort
824
+ });
825
+ };
826
+ });
827
+ function Rt(e) {
828
+ if (!Ye.test(e)) return !1;
829
+ let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
830
+ return It(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
831
+ }
832
+ var zt = /* @__PURE__ */ t("$ZodBase64URL", (e, t) => {
833
+ t.pattern ??= Ye, N.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
834
+ Rt(n.value) || n.issues.push({
835
+ code: "invalid_format",
836
+ format: "base64url",
837
+ input: n.value,
838
+ inst: e,
839
+ continue: !t.abort
840
+ });
841
+ };
842
+ }), Bt = /* @__PURE__ */ t("$ZodE164", (e, t) => {
843
+ t.pattern ??= Xe, N.init(e, t);
844
+ });
845
+ function Vt(e, t = null) {
846
+ try {
847
+ let n = e.split(".");
848
+ if (n.length !== 3) return !1;
849
+ let [r] = n;
850
+ if (!r) return !1;
851
+ let i = JSON.parse(atob(r));
852
+ return !("typ" in i && i?.typ !== "JWT" || !i.alg || t && (!("alg" in i) || i.alg !== t));
853
+ } catch {
854
+ return !1;
855
+ }
856
+ }
857
+ var Ht = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
858
+ N.init(e, t), e._zod.check = (n) => {
859
+ Vt(n.value, t.alg) || n.issues.push({
860
+ code: "invalid_format",
861
+ format: "jwt",
862
+ input: n.value,
863
+ inst: e,
864
+ continue: !t.abort
865
+ });
866
+ };
867
+ }), Ut = /* @__PURE__ */ t("$ZodUnknown", (e, t) => {
868
+ j.init(e, t), e._zod.parse = (e) => e;
869
+ }), Wt = /* @__PURE__ */ t("$ZodNever", (e, t) => {
870
+ j.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
871
+ expected: "never",
872
+ code: "invalid_type",
873
+ input: t.value,
874
+ inst: e
875
+ }), t);
876
+ });
877
+ function Gt(e, t, n) {
878
+ e.issues.length && t.issues.push(...me(n, e.issues)), t.value[n] = e.value;
879
+ }
880
+ var Kt = /* @__PURE__ */ t("$ZodArray", (e, t) => {
881
+ j.init(e, t), e._zod.parse = (n, r) => {
882
+ let i = n.value;
883
+ if (!Array.isArray(i)) return n.issues.push({
884
+ expected: "array",
885
+ code: "invalid_type",
886
+ input: i,
887
+ inst: e
888
+ }), n;
889
+ n.value = Array(i.length);
890
+ let a = [];
891
+ for (let e = 0; e < i.length; e++) {
892
+ let o = i[e], s = t.element._zod.run({
893
+ value: o,
894
+ issues: []
895
+ }, r);
896
+ s instanceof Promise ? a.push(s.then((t) => Gt(t, n, e))) : Gt(s, n, e);
897
+ }
898
+ return a.length ? Promise.all(a).then(() => n) : n;
899
+ };
900
+ });
901
+ function P(e, t, n, r, i) {
902
+ if (e.issues.length) {
903
+ if (i && !(n in r)) return;
904
+ t.issues.push(...me(n, e.issues));
905
+ }
906
+ e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
907
+ }
908
+ function qt(e) {
909
+ let t = Object.keys(e.shape);
910
+ for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
911
+ let n = oe(e.shape);
912
+ return {
913
+ ...e,
914
+ keys: t,
915
+ keySet: new Set(t),
916
+ numKeys: t.length,
917
+ optionalKeys: new Set(n)
918
+ };
919
+ }
920
+ function Jt(e, t, n, r, i, a) {
921
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
922
+ for (let i in t) {
923
+ if (s.has(i)) continue;
924
+ if (l === "never") {
925
+ o.push(i);
926
+ continue;
927
+ }
928
+ let a = c.run({
929
+ value: t[i],
930
+ issues: []
931
+ }, r);
932
+ a instanceof Promise ? e.push(a.then((e) => P(e, n, i, t, u))) : P(a, n, i, t, u);
933
+ }
934
+ return o.length && n.issues.push({
935
+ code: "unrecognized_keys",
936
+ keys: o,
937
+ input: t,
938
+ inst: a
939
+ }), e.length ? Promise.all(e).then(() => n) : n;
940
+ }
941
+ var Yt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
942
+ if (j.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
943
+ let e = t.shape;
944
+ Object.defineProperty(t, "shape", { get: () => {
945
+ let n = { ...e };
946
+ return Object.defineProperty(t, "shape", { value: n }), n;
947
+ } });
948
+ }
949
+ let n = c(() => qt(t));
950
+ f(e._zod, "propValues", () => {
951
+ let e = t.shape, n = {};
952
+ for (let t in e) {
953
+ let r = e[t]._zod;
954
+ if (r.values) {
955
+ n[t] ?? (n[t] = /* @__PURE__ */ new Set());
956
+ for (let e of r.values) n[t].add(e);
957
+ }
958
+ }
959
+ return n;
960
+ });
961
+ let r = h, i = t.catchall, a;
962
+ e._zod.parse = (t, o) => {
963
+ a ??= n.value;
964
+ let s = t.value;
965
+ if (!r(s)) return t.issues.push({
966
+ expected: "object",
967
+ code: "invalid_type",
968
+ input: s,
969
+ inst: e
970
+ }), t;
971
+ t.value = {};
972
+ let c = [], l = a.shape;
973
+ for (let e of a.keys) {
974
+ let n = l[e], r = n._zod.optout === "optional", i = n._zod.run({
975
+ value: s[e],
976
+ issues: []
977
+ }, o);
978
+ i instanceof Promise ? c.push(i.then((n) => P(n, t, e, s, r))) : P(i, t, e, s, r);
979
+ }
980
+ return i ? Jt(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
981
+ };
982
+ }), Xt = /* @__PURE__ */ t("$ZodObjectJIT", (e, t) => {
983
+ Yt.init(e, t);
984
+ let n = e._zod.parse, r = c(() => qt(t)), a = (e) => {
985
+ let t = new ht([
986
+ "shape",
987
+ "payload",
988
+ "ctx"
989
+ ]), n = r.value, i = (e) => {
990
+ let t = ee(e);
991
+ return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
992
+ };
993
+ t.write("const input = payload.value;");
994
+ let a = Object.create(null), o = 0;
995
+ for (let e of n.keys) a[e] = `key_${o++}`;
996
+ t.write("const newResult = {};");
997
+ for (let r of n.keys) {
998
+ let n = a[r], o = ee(r), s = e[r]?._zod?.optout === "optional";
999
+ t.write(`const ${n} = ${i(r)};`), s ? t.write(`
1000
+ if (${n}.issues.length) {
1001
+ if (${o} in input) {
1002
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1003
+ ...iss,
1004
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1005
+ })));
1006
+ }
1007
+ }
1008
+
1009
+ if (${n}.value === undefined) {
1010
+ if (${o} in input) {
1011
+ newResult[${o}] = undefined;
1012
+ }
1013
+ } else {
1014
+ newResult[${o}] = ${n}.value;
1015
+ }
1016
+
1017
+ `) : t.write(`
1018
+ if (${n}.issues.length) {
1019
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1020
+ ...iss,
1021
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1022
+ })));
1023
+ }
1024
+
1025
+ if (${n}.value === undefined) {
1026
+ if (${o} in input) {
1027
+ newResult[${o}] = undefined;
1028
+ }
1029
+ } else {
1030
+ newResult[${o}] = ${n}.value;
1031
+ }
1032
+
1033
+ `);
1034
+ }
1035
+ t.write("payload.value = newResult;"), t.write("return payload;");
1036
+ let s = t.compile();
1037
+ return (t, n) => s(e, t, n);
1038
+ }, o, s = h, l = !i.jitless, u = l && re.value, d = t.catchall, f;
1039
+ e._zod.parse = (i, c) => {
1040
+ f ??= r.value;
1041
+ let p = i.value;
1042
+ return s(p) ? l && u && c?.async === !1 && c.jitless !== !0 ? (o ||= a(t.shape), i = o(i, c), d ? Jt([], p, i, c, f, e) : i) : n(i, c) : (i.issues.push({
1043
+ expected: "object",
1044
+ code: "invalid_type",
1045
+ input: p,
1046
+ inst: e
1047
+ }), i);
1048
+ };
1049
+ });
1050
+ function Zt(e, t, n, r) {
1051
+ for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1052
+ let i = e.filter((e) => !b(e));
1053
+ return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1054
+ code: "invalid_union",
1055
+ input: t.value,
1056
+ inst: n,
1057
+ errors: e.map((e) => e.issues.map((e) => S(e, r, a())))
1058
+ }), t);
1059
+ }
1060
+ var Qt = /* @__PURE__ */ t("$ZodUnion", (e, t) => {
1061
+ j.init(e, t), f(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), f(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), f(e._zod, "values", () => {
1062
+ if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1063
+ }), f(e._zod, "pattern", () => {
1064
+ if (t.options.every((e) => e._zod.pattern)) {
1065
+ let e = t.options.map((e) => e._zod.pattern);
1066
+ return RegExp(`^(${e.map((e) => u(e.source)).join("|")})$`);
1067
+ }
1068
+ });
1069
+ let n = t.options.length === 1, r = t.options[0]._zod.run;
1070
+ e._zod.parse = (i, a) => {
1071
+ if (n) return r(i, a);
1072
+ let o = !1, s = [];
1073
+ for (let e of t.options) {
1074
+ let t = e._zod.run({
1075
+ value: i.value,
1076
+ issues: []
1077
+ }, a);
1078
+ if (t instanceof Promise) s.push(t), o = !0;
1079
+ else {
1080
+ if (t.issues.length === 0) return t;
1081
+ s.push(t);
1082
+ }
1083
+ }
1084
+ return o ? Promise.all(s).then((t) => Zt(t, i, e, a)) : Zt(s, i, e, a);
1085
+ };
1086
+ }), $t = /* @__PURE__ */ t("$ZodIntersection", (e, t) => {
1087
+ j.init(e, t), e._zod.parse = (e, n) => {
1088
+ let r = e.value, i = t.left._zod.run({
1089
+ value: r,
1090
+ issues: []
1091
+ }, n), a = t.right._zod.run({
1092
+ value: r,
1093
+ issues: []
1094
+ }, n);
1095
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => I(e, t, n)) : I(e, i, a);
1096
+ };
1097
+ });
1098
+ function F(e, t) {
1099
+ if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1100
+ valid: !0,
1101
+ data: e
1102
+ };
1103
+ if (g(e) && g(t)) {
1104
+ let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1105
+ ...e,
1106
+ ...t
1107
+ };
1108
+ for (let n of r) {
1109
+ let r = F(e[n], t[n]);
1110
+ if (!r.valid) return {
1111
+ valid: !1,
1112
+ mergeErrorPath: [n, ...r.mergeErrorPath]
1113
+ };
1114
+ i[n] = r.data;
1115
+ }
1116
+ return {
1117
+ valid: !0,
1118
+ data: i
1119
+ };
1120
+ }
1121
+ if (Array.isArray(e) && Array.isArray(t)) {
1122
+ if (e.length !== t.length) return {
1123
+ valid: !1,
1124
+ mergeErrorPath: []
1125
+ };
1126
+ let n = [];
1127
+ for (let r = 0; r < e.length; r++) {
1128
+ let i = e[r], a = t[r], o = F(i, a);
1129
+ if (!o.valid) return {
1130
+ valid: !1,
1131
+ mergeErrorPath: [r, ...o.mergeErrorPath]
1132
+ };
1133
+ n.push(o.data);
1134
+ }
1135
+ return {
1136
+ valid: !0,
1137
+ data: n
1138
+ };
1139
+ }
1140
+ return {
1141
+ valid: !1,
1142
+ mergeErrorPath: []
1143
+ };
1144
+ }
1145
+ function I(e, t, n) {
1146
+ let r = /* @__PURE__ */ new Map(), i;
1147
+ for (let n of t.issues) if (n.code === "unrecognized_keys") {
1148
+ i ??= n;
1149
+ for (let e of n.keys) r.has(e) || r.set(e, {}), r.get(e).l = !0;
1150
+ } else e.issues.push(n);
1151
+ for (let t of n.issues) if (t.code === "unrecognized_keys") for (let e of t.keys) r.has(e) || r.set(e, {}), r.get(e).r = !0;
1152
+ else e.issues.push(t);
1153
+ let a = [...r].filter(([, e]) => e.l && e.r).map(([e]) => e);
1154
+ if (a.length && i && e.issues.push({
1155
+ ...i,
1156
+ keys: a
1157
+ }), b(e)) return e;
1158
+ let o = F(t.value, n.value);
1159
+ if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1160
+ return e.value = o.data, e;
1161
+ }
1162
+ var en = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1163
+ j.init(e, t);
1164
+ let n = o(t.entries), r = new Set(n);
1165
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? _(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1166
+ let a = t.value;
1167
+ return r.has(a) || t.issues.push({
1168
+ code: "invalid_value",
1169
+ values: n,
1170
+ input: a,
1171
+ inst: e
1172
+ }), t;
1173
+ };
1174
+ }), tn = /* @__PURE__ */ t("$ZodTransform", (e, t) => {
1175
+ j.init(e, t), e._zod.parse = (i, a) => {
1176
+ if (a.direction === "backward") throw new r(e.constructor.name);
1177
+ let o = t.transform(i.value, i);
1178
+ if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i));
1179
+ if (o instanceof Promise) throw new n();
1180
+ return i.value = o, i;
1181
+ };
1182
+ });
1183
+ function L(e, t) {
1184
+ return e.issues.length && t === void 0 ? {
1185
+ issues: [],
1186
+ value: void 0
1187
+ } : e;
1188
+ }
1189
+ var R = /* @__PURE__ */ t("$ZodOptional", (e, t) => {
1190
+ j.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), f(e._zod, "pattern", () => {
1191
+ let e = t.innerType._zod.pattern;
1192
+ return e ? RegExp(`^(${u(e.source)})?$`) : void 0;
1193
+ }), e._zod.parse = (e, n) => {
1194
+ if (t.innerType._zod.optin === "optional") {
1195
+ let r = t.innerType._zod.run(e, n);
1196
+ return r instanceof Promise ? r.then((t) => L(t, e.value)) : L(r, e.value);
1197
+ }
1198
+ return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1199
+ };
1200
+ }), nn = /* @__PURE__ */ t("$ZodExactOptional", (e, t) => {
1201
+ R.init(e, t), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1202
+ }), rn = /* @__PURE__ */ t("$ZodNullable", (e, t) => {
1203
+ j.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "pattern", () => {
1204
+ let e = t.innerType._zod.pattern;
1205
+ return e ? RegExp(`^(${u(e.source)}|null)$`) : void 0;
1206
+ }), f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1207
+ }), an = /* @__PURE__ */ t("$ZodDefault", (e, t) => {
1208
+ j.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1209
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1210
+ if (e.value === void 0) return e.value = t.defaultValue, e;
1211
+ let r = t.innerType._zod.run(e, n);
1212
+ return r instanceof Promise ? r.then((e) => z(e, t)) : z(r, t);
1213
+ };
1214
+ });
1215
+ function z(e, t) {
1216
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1217
+ }
1218
+ var on = /* @__PURE__ */ t("$ZodPrefault", (e, t) => {
1219
+ j.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1220
+ }), sn = /* @__PURE__ */ t("$ZodNonOptional", (e, t) => {
1221
+ j.init(e, t), f(e._zod, "values", () => {
1222
+ let e = t.innerType._zod.values;
1223
+ return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1224
+ }), e._zod.parse = (n, r) => {
1225
+ let i = t.innerType._zod.run(n, r);
1226
+ return i instanceof Promise ? i.then((t) => cn(t, e)) : cn(i, e);
1227
+ };
1228
+ });
1229
+ function cn(e, t) {
1230
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1231
+ code: "invalid_type",
1232
+ expected: "nonoptional",
1233
+ input: e.value,
1234
+ inst: t
1235
+ }), e;
1236
+ }
1237
+ var ln = /* @__PURE__ */ t("$ZodCatch", (e, t) => {
1238
+ j.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1239
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1240
+ let r = t.innerType._zod.run(e, n);
1241
+ return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1242
+ ...e,
1243
+ error: { issues: r.issues.map((e) => S(e, n, a())) },
1244
+ input: e.value
1245
+ }), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1246
+ ...e,
1247
+ error: { issues: r.issues.map((e) => S(e, n, a())) },
1248
+ input: e.value
1249
+ }), e.issues = []), e);
1250
+ };
1251
+ }), un = /* @__PURE__ */ t("$ZodPipe", (e, t) => {
1252
+ j.init(e, t), f(e._zod, "values", () => t.in._zod.values), f(e._zod, "optin", () => t.in._zod.optin), f(e._zod, "optout", () => t.out._zod.optout), f(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1253
+ if (n.direction === "backward") {
1254
+ let r = t.out._zod.run(e, n);
1255
+ return r instanceof Promise ? r.then((e) => B(e, t.in, n)) : B(r, t.in, n);
1256
+ }
1257
+ let r = t.in._zod.run(e, n);
1258
+ return r instanceof Promise ? r.then((e) => B(e, t.out, n)) : B(r, t.out, n);
1259
+ };
1260
+ });
1261
+ function B(e, t, n) {
1262
+ return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1263
+ value: e.value,
1264
+ issues: e.issues
1265
+ }, n);
1266
+ }
1267
+ var dn = /* @__PURE__ */ t("$ZodReadonly", (e, t) => {
1268
+ j.init(e, t), f(e._zod, "propValues", () => t.innerType._zod.propValues), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "optin", () => t.innerType?._zod?.optin), f(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1269
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1270
+ let r = t.innerType._zod.run(e, n);
1271
+ return r instanceof Promise ? r.then(fn) : fn(r);
1272
+ };
1273
+ });
1274
+ function fn(e) {
1275
+ return e.value = Object.freeze(e.value), e;
1276
+ }
1277
+ var pn = /* @__PURE__ */ t("$ZodCustom", (e, t) => {
1278
+ k.init(e, t), j.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1279
+ let r = n.value, i = t.fn(r);
1280
+ if (i instanceof Promise) return i.then((t) => mn(t, n, r, e));
1281
+ mn(i, n, r, e);
1282
+ };
1283
+ });
1284
+ function mn(e, t, n, r) {
1285
+ if (!e) {
1286
+ let e = {
1287
+ code: "custom",
1288
+ input: n,
1289
+ inst: r,
1290
+ path: [...r._zod.def.path ?? []],
1291
+ continue: !r._zod.def.abort
1292
+ };
1293
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(w(e));
1294
+ }
1295
+ }
1296
+ //#endregion
1297
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1298
+ var hn, gn = class {
1299
+ constructor() {
1300
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1301
+ }
1302
+ add(e, ...t) {
1303
+ let n = t[0];
1304
+ return this._map.set(e, n), n && typeof n == "object" && "id" in n && this._idmap.set(n.id, e), this;
1305
+ }
1306
+ clear() {
1307
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
1308
+ }
1309
+ remove(e) {
1310
+ let t = this._map.get(e);
1311
+ return t && typeof t == "object" && "id" in t && this._idmap.delete(t.id), this._map.delete(e), this;
1312
+ }
1313
+ get(e) {
1314
+ let t = e._zod.parent;
1315
+ if (t) {
1316
+ let n = { ...this.get(t) ?? {} };
1317
+ delete n.id;
1318
+ let r = {
1319
+ ...n,
1320
+ ...this._map.get(e)
1321
+ };
1322
+ return Object.keys(r).length ? r : void 0;
1323
+ }
1324
+ return this._map.get(e);
1325
+ }
1326
+ has(e) {
1327
+ return this._map.has(e);
1328
+ }
1329
+ };
1330
+ function _n() {
1331
+ return new gn();
1332
+ }
1333
+ (hn = globalThis).__zod_globalRegistry ?? (hn.__zod_globalRegistry = _n());
1334
+ var V = globalThis.__zod_globalRegistry;
1335
+ //#endregion
1336
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1337
+ /* @__NO_SIDE_EFFECTS__ */
1338
+ function vn(e, t) {
1339
+ return new e({
1340
+ type: "string",
1341
+ ...y(t)
1342
+ });
1343
+ }
1344
+ /* @__NO_SIDE_EFFECTS__ */
1345
+ function yn(e, t) {
1346
+ return new e({
1347
+ type: "string",
1348
+ format: "email",
1349
+ check: "string_format",
1350
+ abort: !1,
1351
+ ...y(t)
1352
+ });
1353
+ }
1354
+ /* @__NO_SIDE_EFFECTS__ */
1355
+ function bn(e, t) {
1356
+ return new e({
1357
+ type: "string",
1358
+ format: "guid",
1359
+ check: "string_format",
1360
+ abort: !1,
1361
+ ...y(t)
1362
+ });
1363
+ }
1364
+ /* @__NO_SIDE_EFFECTS__ */
1365
+ function xn(e, t) {
1366
+ return new e({
1367
+ type: "string",
1368
+ format: "uuid",
1369
+ check: "string_format",
1370
+ abort: !1,
1371
+ ...y(t)
1372
+ });
1373
+ }
1374
+ /* @__NO_SIDE_EFFECTS__ */
1375
+ function Sn(e, t) {
1376
+ return new e({
1377
+ type: "string",
1378
+ format: "uuid",
1379
+ check: "string_format",
1380
+ abort: !1,
1381
+ version: "v4",
1382
+ ...y(t)
1383
+ });
1384
+ }
1385
+ /* @__NO_SIDE_EFFECTS__ */
1386
+ function Cn(e, t) {
1387
+ return new e({
1388
+ type: "string",
1389
+ format: "uuid",
1390
+ check: "string_format",
1391
+ abort: !1,
1392
+ version: "v6",
1393
+ ...y(t)
1394
+ });
1395
+ }
1396
+ /* @__NO_SIDE_EFFECTS__ */
1397
+ function wn(e, t) {
1398
+ return new e({
1399
+ type: "string",
1400
+ format: "uuid",
1401
+ check: "string_format",
1402
+ abort: !1,
1403
+ version: "v7",
1404
+ ...y(t)
1405
+ });
1406
+ }
1407
+ /* @__NO_SIDE_EFFECTS__ */
1408
+ function Tn(e, t) {
1409
+ return new e({
1410
+ type: "string",
1411
+ format: "url",
1412
+ check: "string_format",
1413
+ abort: !1,
1414
+ ...y(t)
1415
+ });
1416
+ }
1417
+ /* @__NO_SIDE_EFFECTS__ */
1418
+ function En(e, t) {
1419
+ return new e({
1420
+ type: "string",
1421
+ format: "emoji",
1422
+ check: "string_format",
1423
+ abort: !1,
1424
+ ...y(t)
1425
+ });
1426
+ }
1427
+ /* @__NO_SIDE_EFFECTS__ */
1428
+ function Dn(e, t) {
1429
+ return new e({
1430
+ type: "string",
1431
+ format: "nanoid",
1432
+ check: "string_format",
1433
+ abort: !1,
1434
+ ...y(t)
1435
+ });
1436
+ }
1437
+ /* @__NO_SIDE_EFFECTS__ */
1438
+ function On(e, t) {
1439
+ return new e({
1440
+ type: "string",
1441
+ format: "cuid",
1442
+ check: "string_format",
1443
+ abort: !1,
1444
+ ...y(t)
1445
+ });
1446
+ }
1447
+ /* @__NO_SIDE_EFFECTS__ */
1448
+ function kn(e, t) {
1449
+ return new e({
1450
+ type: "string",
1451
+ format: "cuid2",
1452
+ check: "string_format",
1453
+ abort: !1,
1454
+ ...y(t)
1455
+ });
1456
+ }
1457
+ /* @__NO_SIDE_EFFECTS__ */
1458
+ function An(e, t) {
1459
+ return new e({
1460
+ type: "string",
1461
+ format: "ulid",
1462
+ check: "string_format",
1463
+ abort: !1,
1464
+ ...y(t)
1465
+ });
1466
+ }
1467
+ /* @__NO_SIDE_EFFECTS__ */
1468
+ function jn(e, t) {
1469
+ return new e({
1470
+ type: "string",
1471
+ format: "xid",
1472
+ check: "string_format",
1473
+ abort: !1,
1474
+ ...y(t)
1475
+ });
1476
+ }
1477
+ /* @__NO_SIDE_EFFECTS__ */
1478
+ function Mn(e, t) {
1479
+ return new e({
1480
+ type: "string",
1481
+ format: "ksuid",
1482
+ check: "string_format",
1483
+ abort: !1,
1484
+ ...y(t)
1485
+ });
1486
+ }
1487
+ /* @__NO_SIDE_EFFECTS__ */
1488
+ function Nn(e, t) {
1489
+ return new e({
1490
+ type: "string",
1491
+ format: "ipv4",
1492
+ check: "string_format",
1493
+ abort: !1,
1494
+ ...y(t)
1495
+ });
1496
+ }
1497
+ /* @__NO_SIDE_EFFECTS__ */
1498
+ function Pn(e, t) {
1499
+ return new e({
1500
+ type: "string",
1501
+ format: "ipv6",
1502
+ check: "string_format",
1503
+ abort: !1,
1504
+ ...y(t)
1505
+ });
1506
+ }
1507
+ /* @__NO_SIDE_EFFECTS__ */
1508
+ function Fn(e, t) {
1509
+ return new e({
1510
+ type: "string",
1511
+ format: "cidrv4",
1512
+ check: "string_format",
1513
+ abort: !1,
1514
+ ...y(t)
1515
+ });
1516
+ }
1517
+ /* @__NO_SIDE_EFFECTS__ */
1518
+ function In(e, t) {
1519
+ return new e({
1520
+ type: "string",
1521
+ format: "cidrv6",
1522
+ check: "string_format",
1523
+ abort: !1,
1524
+ ...y(t)
1525
+ });
1526
+ }
1527
+ /* @__NO_SIDE_EFFECTS__ */
1528
+ function Ln(e, t) {
1529
+ return new e({
1530
+ type: "string",
1531
+ format: "base64",
1532
+ check: "string_format",
1533
+ abort: !1,
1534
+ ...y(t)
1535
+ });
1536
+ }
1537
+ /* @__NO_SIDE_EFFECTS__ */
1538
+ function Rn(e, t) {
1539
+ return new e({
1540
+ type: "string",
1541
+ format: "base64url",
1542
+ check: "string_format",
1543
+ abort: !1,
1544
+ ...y(t)
1545
+ });
1546
+ }
1547
+ /* @__NO_SIDE_EFFECTS__ */
1548
+ function zn(e, t) {
1549
+ return new e({
1550
+ type: "string",
1551
+ format: "e164",
1552
+ check: "string_format",
1553
+ abort: !1,
1554
+ ...y(t)
1555
+ });
1556
+ }
1557
+ /* @__NO_SIDE_EFFECTS__ */
1558
+ function Bn(e, t) {
1559
+ return new e({
1560
+ type: "string",
1561
+ format: "jwt",
1562
+ check: "string_format",
1563
+ abort: !1,
1564
+ ...y(t)
1565
+ });
1566
+ }
1567
+ /* @__NO_SIDE_EFFECTS__ */
1568
+ function Vn(e, t) {
1569
+ return new e({
1570
+ type: "string",
1571
+ format: "datetime",
1572
+ check: "string_format",
1573
+ offset: !1,
1574
+ local: !1,
1575
+ precision: null,
1576
+ ...y(t)
1577
+ });
1578
+ }
1579
+ /* @__NO_SIDE_EFFECTS__ */
1580
+ function Hn(e, t) {
1581
+ return new e({
1582
+ type: "string",
1583
+ format: "date",
1584
+ check: "string_format",
1585
+ ...y(t)
1586
+ });
1587
+ }
1588
+ /* @__NO_SIDE_EFFECTS__ */
1589
+ function Un(e, t) {
1590
+ return new e({
1591
+ type: "string",
1592
+ format: "time",
1593
+ check: "string_format",
1594
+ precision: null,
1595
+ ...y(t)
1596
+ });
1597
+ }
1598
+ /* @__NO_SIDE_EFFECTS__ */
1599
+ function Wn(e, t) {
1600
+ return new e({
1601
+ type: "string",
1602
+ format: "duration",
1603
+ check: "string_format",
1604
+ ...y(t)
1605
+ });
1606
+ }
1607
+ /* @__NO_SIDE_EFFECTS__ */
1608
+ function Gn(e) {
1609
+ return new e({ type: "unknown" });
1610
+ }
1611
+ /* @__NO_SIDE_EFFECTS__ */
1612
+ function Kn(e, t) {
1613
+ return new e({
1614
+ type: "never",
1615
+ ...y(t)
1616
+ });
1617
+ }
1618
+ /* @__NO_SIDE_EFFECTS__ */
1619
+ function qn(e, t) {
1620
+ return new at({
1621
+ check: "max_length",
1622
+ ...y(t),
1623
+ maximum: e
1624
+ });
1625
+ }
1626
+ /* @__NO_SIDE_EFFECTS__ */
1627
+ function H(e, t) {
1628
+ return new ot({
1629
+ check: "min_length",
1630
+ ...y(t),
1631
+ minimum: e
1632
+ });
1633
+ }
1634
+ /* @__NO_SIDE_EFFECTS__ */
1635
+ function Jn(e, t) {
1636
+ return new st({
1637
+ check: "length_equals",
1638
+ ...y(t),
1639
+ length: e
1640
+ });
1641
+ }
1642
+ /* @__NO_SIDE_EFFECTS__ */
1643
+ function Yn(e, t) {
1644
+ return new ct({
1645
+ check: "string_format",
1646
+ format: "regex",
1647
+ ...y(t),
1648
+ pattern: e
1649
+ });
1650
+ }
1651
+ /* @__NO_SIDE_EFFECTS__ */
1652
+ function Xn(e) {
1653
+ return new lt({
1654
+ check: "string_format",
1655
+ format: "lowercase",
1656
+ ...y(e)
1657
+ });
1658
+ }
1659
+ /* @__NO_SIDE_EFFECTS__ */
1660
+ function Zn(e) {
1661
+ return new ut({
1662
+ check: "string_format",
1663
+ format: "uppercase",
1664
+ ...y(e)
1665
+ });
1666
+ }
1667
+ /* @__NO_SIDE_EFFECTS__ */
1668
+ function Qn(e, t) {
1669
+ return new dt({
1670
+ check: "string_format",
1671
+ format: "includes",
1672
+ ...y(t),
1673
+ includes: e
1674
+ });
1675
+ }
1676
+ /* @__NO_SIDE_EFFECTS__ */
1677
+ function $n(e, t) {
1678
+ return new ft({
1679
+ check: "string_format",
1680
+ format: "starts_with",
1681
+ ...y(t),
1682
+ prefix: e
1683
+ });
1684
+ }
1685
+ /* @__NO_SIDE_EFFECTS__ */
1686
+ function er(e, t) {
1687
+ return new pt({
1688
+ check: "string_format",
1689
+ format: "ends_with",
1690
+ ...y(t),
1691
+ suffix: e
1692
+ });
1693
+ }
1694
+ /* @__NO_SIDE_EFFECTS__ */
1695
+ function U(e) {
1696
+ return new mt({
1697
+ check: "overwrite",
1698
+ tx: e
1699
+ });
1700
+ }
1701
+ /* @__NO_SIDE_EFFECTS__ */
1702
+ function tr(e) {
1703
+ return /* @__PURE__ */ U((t) => t.normalize(e));
1704
+ }
1705
+ /* @__NO_SIDE_EFFECTS__ */
1706
+ function nr() {
1707
+ return /* @__PURE__ */ U((e) => e.trim());
1708
+ }
1709
+ /* @__NO_SIDE_EFFECTS__ */
1710
+ function rr() {
1711
+ return /* @__PURE__ */ U((e) => e.toLowerCase());
1712
+ }
1713
+ /* @__NO_SIDE_EFFECTS__ */
1714
+ function ir() {
1715
+ return /* @__PURE__ */ U((e) => e.toUpperCase());
1716
+ }
1717
+ /* @__NO_SIDE_EFFECTS__ */
1718
+ function ar() {
1719
+ return /* @__PURE__ */ U((e) => te(e));
1720
+ }
1721
+ /* @__NO_SIDE_EFFECTS__ */
1722
+ function or(e, t, n) {
1723
+ return new e({
1724
+ type: "array",
1725
+ element: t,
1726
+ ...y(n)
1727
+ });
1728
+ }
1729
+ /* @__NO_SIDE_EFFECTS__ */
1730
+ function sr(e, t, n) {
1731
+ return new e({
1732
+ type: "custom",
1733
+ check: "custom",
1734
+ fn: t,
1735
+ ...y(n)
1736
+ });
1737
+ }
1738
+ /* @__NO_SIDE_EFFECTS__ */
1739
+ function cr(e) {
1740
+ let t = /* @__PURE__ */ lr((n) => (n.addIssue = (e) => {
1741
+ if (typeof e == "string") n.issues.push(w(e, n.value, t._zod.def));
1742
+ else {
1743
+ let r = e;
1744
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(w(r));
1745
+ }
1746
+ }, e(n.value, n)));
1747
+ return t;
1748
+ }
1749
+ /* @__NO_SIDE_EFFECTS__ */
1750
+ function lr(e, t) {
1751
+ let n = new k({
1752
+ check: "custom",
1753
+ ...y(t)
1754
+ });
1755
+ return n._zod.check = e, n;
1756
+ }
1757
+ //#endregion
1758
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
1759
+ function ur(e) {
1760
+ let t = e?.target ?? "draft-2020-12";
1761
+ return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
1762
+ processors: e.processors ?? {},
1763
+ metadataRegistry: e?.metadata ?? V,
1764
+ target: t,
1765
+ unrepresentable: e?.unrepresentable ?? "throw",
1766
+ override: e?.override ?? (() => {}),
1767
+ io: e?.io ?? "output",
1768
+ counter: 0,
1769
+ seen: /* @__PURE__ */ new Map(),
1770
+ cycles: e?.cycles ?? "ref",
1771
+ reused: e?.reused ?? "inline",
1772
+ external: e?.external ?? void 0
1773
+ };
1774
+ }
1775
+ function W(e, t, n = {
1776
+ path: [],
1777
+ schemaPath: []
1778
+ }) {
1779
+ var r;
1780
+ let i = e._zod.def, a = t.seen.get(e);
1781
+ if (a) return a.count++, n.schemaPath.includes(e) && (a.cycle = n.path), a.schema;
1782
+ let o = {
1783
+ schema: {},
1784
+ count: 1,
1785
+ cycle: void 0,
1786
+ path: n.path
1787
+ };
1788
+ t.seen.set(e, o);
1789
+ let s = e._zod.toJSONSchema?.();
1790
+ if (s) o.schema = s;
1791
+ else {
1792
+ let r = {
1793
+ ...n,
1794
+ schemaPath: [...n.schemaPath, e],
1795
+ path: n.path
1796
+ };
1797
+ if (e._zod.processJSONSchema) e._zod.processJSONSchema(t, o.schema, r);
1798
+ else {
1799
+ let n = o.schema, a = t.processors[i.type];
1800
+ if (!a) throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);
1801
+ a(e, t, n, r);
1802
+ }
1803
+ let a = e._zod.parent;
1804
+ a && (o.ref ||= a, W(a, t, r), t.seen.get(a).isParent = !0);
1805
+ }
1806
+ let c = t.metadataRegistry.get(e);
1807
+ return c && Object.assign(o.schema, c), t.io === "input" && G(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
1808
+ }
1809
+ function dr(e, t) {
1810
+ let n = e.seen.get(t);
1811
+ if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
1812
+ let r = /* @__PURE__ */ new Map();
1813
+ for (let t of e.seen.entries()) {
1814
+ let n = e.metadataRegistry.get(t[0])?.id;
1815
+ if (n) {
1816
+ let e = r.get(n);
1817
+ if (e && e !== t[0]) throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
1818
+ r.set(n, t[0]);
1819
+ }
1820
+ }
1821
+ let i = (t) => {
1822
+ let r = e.target === "draft-2020-12" ? "$defs" : "definitions";
1823
+ if (e.external) {
1824
+ let n = e.external.registry.get(t[0])?.id, i = e.external.uri ?? ((e) => e);
1825
+ if (n) return { ref: i(n) };
1826
+ let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
1827
+ return t[1].defId = a, {
1828
+ defId: a,
1829
+ ref: `${i("__shared")}#/${r}/${a}`
1830
+ };
1831
+ }
1832
+ if (t[1] === n) return { ref: "#" };
1833
+ let i = `#/${r}/`, a = t[1].schema.id ?? `__schema${e.counter++}`;
1834
+ return {
1835
+ defId: a,
1836
+ ref: i + a
1837
+ };
1838
+ }, a = (e) => {
1839
+ if (e[1].schema.$ref) return;
1840
+ let t = e[1], { ref: n, defId: r } = i(e);
1841
+ t.def = { ...t.schema }, r && (t.defId = r);
1842
+ let a = t.schema;
1843
+ for (let e in a) delete a[e];
1844
+ a.$ref = n;
1845
+ };
1846
+ if (e.cycles === "throw") for (let t of e.seen.entries()) {
1847
+ let e = t[1];
1848
+ if (e.cycle) throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
1849
+
1850
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
1851
+ }
1852
+ for (let n of e.seen.entries()) {
1853
+ let r = n[1];
1854
+ if (t === n[0]) {
1855
+ a(n);
1856
+ continue;
1857
+ }
1858
+ if (e.external) {
1859
+ let r = e.external.registry.get(n[0])?.id;
1860
+ if (t !== n[0] && r) {
1861
+ a(n);
1862
+ continue;
1863
+ }
1864
+ }
1865
+ if (e.metadataRegistry.get(n[0])?.id) {
1866
+ a(n);
1867
+ continue;
1868
+ }
1869
+ if (r.cycle) {
1870
+ a(n);
1871
+ continue;
1872
+ }
1873
+ if (r.count > 1 && e.reused === "ref") {
1874
+ a(n);
1875
+ continue;
1876
+ }
1877
+ }
1878
+ }
1879
+ function fr(e, t) {
1880
+ let n = e.seen.get(t);
1881
+ if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
1882
+ let r = (t) => {
1883
+ let n = e.seen.get(t);
1884
+ if (n.ref === null) return;
1885
+ let i = n.def ?? n.schema, a = { ...i }, o = n.ref;
1886
+ if (n.ref = null, o) {
1887
+ r(o);
1888
+ let n = e.seen.get(o), s = n.schema;
1889
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e === "$ref" || e === "allOf" || e in a || delete i[e];
1890
+ if (s.$ref && n.def) for (let e in i) e === "$ref" || e === "allOf" || e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
1891
+ }
1892
+ let s = t._zod.parent;
1893
+ if (s && s !== o) {
1894
+ r(s);
1895
+ let t = e.seen.get(s);
1896
+ if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e === "$ref" || e === "allOf" || e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
1897
+ }
1898
+ e.override({
1899
+ zodSchema: t,
1900
+ jsonSchema: i,
1901
+ path: n.path ?? []
1902
+ });
1903
+ };
1904
+ for (let t of [...e.seen.entries()].reverse()) r(t[0]);
1905
+ let i = {};
1906
+ if (e.target === "draft-2020-12" ? i.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? i.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? i.$schema = "http://json-schema.org/draft-04/schema#" : e.target, e.external?.uri) {
1907
+ let n = e.external.registry.get(t)?.id;
1908
+ if (!n) throw Error("Schema is missing an `id` property");
1909
+ i.$id = e.external.uri(n);
1910
+ }
1911
+ Object.assign(i, n.def ?? n.schema);
1912
+ let a = e.external?.defs ?? {};
1913
+ for (let t of e.seen.entries()) {
1914
+ let e = t[1];
1915
+ e.def && e.defId && (a[e.defId] = e.def);
1916
+ }
1917
+ e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? i.$defs = a : i.definitions = a);
1918
+ try {
1919
+ let n = JSON.parse(JSON.stringify(i));
1920
+ return Object.defineProperty(n, "~standard", {
1921
+ value: {
1922
+ ...t["~standard"],
1923
+ jsonSchema: {
1924
+ input: K(t, "input", e.processors),
1925
+ output: K(t, "output", e.processors)
1926
+ }
1927
+ },
1928
+ enumerable: !1,
1929
+ writable: !1
1930
+ }), n;
1931
+ } catch {
1932
+ throw Error("Error converting schema to JSON.");
1933
+ }
1934
+ }
1935
+ function G(e, t) {
1936
+ let n = t ?? { seen: /* @__PURE__ */ new Set() };
1937
+ if (n.seen.has(e)) return !1;
1938
+ n.seen.add(e);
1939
+ let r = e._zod.def;
1940
+ if (r.type === "transform") return !0;
1941
+ if (r.type === "array") return G(r.element, n);
1942
+ if (r.type === "set") return G(r.valueType, n);
1943
+ if (r.type === "lazy") return G(r.getter(), n);
1944
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return G(r.innerType, n);
1945
+ if (r.type === "intersection") return G(r.left, n) || G(r.right, n);
1946
+ if (r.type === "record" || r.type === "map") return G(r.keyType, n) || G(r.valueType, n);
1947
+ if (r.type === "pipe") return G(r.in, n) || G(r.out, n);
1948
+ if (r.type === "object") {
1949
+ for (let e in r.shape) if (G(r.shape[e], n)) return !0;
1950
+ return !1;
1951
+ }
1952
+ if (r.type === "union") {
1953
+ for (let e of r.options) if (G(e, n)) return !0;
1954
+ return !1;
1955
+ }
1956
+ if (r.type === "tuple") {
1957
+ for (let e of r.items) if (G(e, n)) return !0;
1958
+ return !!(r.rest && G(r.rest, n));
1959
+ }
1960
+ return !1;
1961
+ }
1962
+ var pr = (e, t = {}) => (n) => {
1963
+ let r = ur({
1964
+ ...n,
1965
+ processors: t
1966
+ });
1967
+ return W(e, r), dr(r, e), fr(r, e);
1968
+ }, K = (e, t, n = {}) => (r) => {
1969
+ let { libraryOptions: i, target: a } = r ?? {}, o = ur({
1970
+ ...i ?? {},
1971
+ target: a,
1972
+ io: t,
1973
+ processors: n
1974
+ });
1975
+ return W(e, o), dr(o, e), fr(o, e);
1976
+ }, mr = {
1977
+ guid: "uuid",
1978
+ url: "uri",
1979
+ datetime: "date-time",
1980
+ json_string: "json-string",
1981
+ regex: ""
1982
+ }, hr = (e, t, n, r) => {
1983
+ let i = n;
1984
+ i.type = "string";
1985
+ let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
1986
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = mr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
1987
+ let e = [...c];
1988
+ e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
1989
+ ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
1990
+ pattern: e.source
1991
+ }))]);
1992
+ }
1993
+ }, gr = (e, t, n, r) => {
1994
+ n.not = {};
1995
+ }, _r = (e, t, n, r) => {
1996
+ let i = e._zod.def, a = o(i.entries);
1997
+ a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
1998
+ }, vr = (e, t, n, r) => {
1999
+ if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2000
+ }, yr = (e, t, n, r) => {
2001
+ if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2002
+ }, br = (e, t, n, r) => {
2003
+ let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2004
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = W(a.element, t, {
2005
+ ...r,
2006
+ path: [...r.path, "items"]
2007
+ });
2008
+ }, xr = (e, t, n, r) => {
2009
+ let i = n, a = e._zod.def;
2010
+ i.type = "object", i.properties = {};
2011
+ let o = a.shape;
2012
+ for (let e in o) i.properties[e] = W(o[e], t, {
2013
+ ...r,
2014
+ path: [
2015
+ ...r.path,
2016
+ "properties",
2017
+ e
2018
+ ]
2019
+ });
2020
+ let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
2021
+ let n = a.shape[e]._zod;
2022
+ return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
2023
+ }));
2024
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = W(a.catchall, t, {
2025
+ ...r,
2026
+ path: [...r.path, "additionalProperties"]
2027
+ })) : t.io === "output" && (i.additionalProperties = !1);
2028
+ }, Sr = (e, t, n, r) => {
2029
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => W(e, t, {
2030
+ ...r,
2031
+ path: [
2032
+ ...r.path,
2033
+ a ? "oneOf" : "anyOf",
2034
+ n
2035
+ ]
2036
+ }));
2037
+ a ? n.oneOf = o : n.anyOf = o;
2038
+ }, Cr = (e, t, n, r) => {
2039
+ let i = e._zod.def, a = W(i.left, t, {
2040
+ ...r,
2041
+ path: [
2042
+ ...r.path,
2043
+ "allOf",
2044
+ 0
2045
+ ]
2046
+ }), o = W(i.right, t, {
2047
+ ...r,
2048
+ path: [
2049
+ ...r.path,
2050
+ "allOf",
2051
+ 1
2052
+ ]
2053
+ }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2054
+ n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2055
+ }, wr = (e, t, n, r) => {
2056
+ let i = e._zod.def, a = W(i.innerType, t, r), o = t.seen.get(e);
2057
+ t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2058
+ }, Tr = (e, t, n, r) => {
2059
+ let i = e._zod.def;
2060
+ W(i.innerType, t, r);
2061
+ let a = t.seen.get(e);
2062
+ a.ref = i.innerType;
2063
+ }, Er = (e, t, n, r) => {
2064
+ let i = e._zod.def;
2065
+ W(i.innerType, t, r);
2066
+ let a = t.seen.get(e);
2067
+ a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2068
+ }, Dr = (e, t, n, r) => {
2069
+ let i = e._zod.def;
2070
+ W(i.innerType, t, r);
2071
+ let a = t.seen.get(e);
2072
+ a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2073
+ }, Or = (e, t, n, r) => {
2074
+ let i = e._zod.def;
2075
+ W(i.innerType, t, r);
2076
+ let a = t.seen.get(e);
2077
+ a.ref = i.innerType;
2078
+ let o;
2079
+ try {
2080
+ o = i.catchValue(void 0);
2081
+ } catch {
2082
+ throw Error("Dynamic catch values are not supported in JSON Schema");
2083
+ }
2084
+ n.default = o;
2085
+ }, kr = (e, t, n, r) => {
2086
+ let i = e._zod.def, a = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
2087
+ W(a, t, r);
2088
+ let o = t.seen.get(e);
2089
+ o.ref = a;
2090
+ }, Ar = (e, t, n, r) => {
2091
+ let i = e._zod.def;
2092
+ W(i.innerType, t, r);
2093
+ let a = t.seen.get(e);
2094
+ a.ref = i.innerType, n.readOnly = !0;
2095
+ }, jr = (e, t, n, r) => {
2096
+ let i = e._zod.def;
2097
+ W(i.innerType, t, r);
2098
+ let a = t.seen.get(e);
2099
+ a.ref = i.innerType;
2100
+ }, Mr = /* @__PURE__ */ t("ZodISODateTime", (e, t) => {
2101
+ Ot.init(e, t), X.init(e, t);
2102
+ });
2103
+ function Nr(e) {
2104
+ return /* @__PURE__ */ Vn(Mr, e);
2105
+ }
2106
+ var Pr = /* @__PURE__ */ t("ZodISODate", (e, t) => {
2107
+ kt.init(e, t), X.init(e, t);
2108
+ });
2109
+ function Fr(e) {
2110
+ return /* @__PURE__ */ Hn(Pr, e);
2111
+ }
2112
+ var Ir = /* @__PURE__ */ t("ZodISOTime", (e, t) => {
2113
+ At.init(e, t), X.init(e, t);
2114
+ });
2115
+ function Lr(e) {
2116
+ return /* @__PURE__ */ Un(Ir, e);
2117
+ }
2118
+ var Rr = /* @__PURE__ */ t("ZodISODuration", (e, t) => {
2119
+ jt.init(e, t), X.init(e, t);
2120
+ });
2121
+ function zr(e) {
2122
+ return /* @__PURE__ */ Wn(Rr, e);
2123
+ }
2124
+ //#endregion
2125
+ //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
2126
+ var Br = (e, t) => {
2127
+ ge.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2128
+ format: { value: (t) => ye(e, t) },
2129
+ flatten: { value: (t) => ve(e, t) },
2130
+ addIssue: { value: (t) => {
2131
+ e.issues.push(t), e.message = JSON.stringify(e.issues, s, 2);
2132
+ } },
2133
+ addIssues: { value: (t) => {
2134
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, s, 2);
2135
+ } },
2136
+ isEmpty: { get() {
2137
+ return e.issues.length === 0;
2138
+ } }
2139
+ });
2140
+ };
2141
+ t("ZodError", Br);
2142
+ var q = t("ZodError", Br, { Parent: Error }), Vr = /* @__PURE__ */ T(q), Hr = /* @__PURE__ */ E(q), Ur = /* @__PURE__ */ D(q), Wr = /* @__PURE__ */ O(q), Gr = /* @__PURE__ */ we(q), Kr = /* @__PURE__ */ Te(q), qr = /* @__PURE__ */ Ee(q), Jr = /* @__PURE__ */ De(q), Yr = /* @__PURE__ */ Oe(q), Xr = /* @__PURE__ */ ke(q), Zr = /* @__PURE__ */ Ae(q), Qr = /* @__PURE__ */ je(q), J = /* @__PURE__ */ t("ZodType", (e, t) => (j.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2143
+ input: K(e, "input"),
2144
+ output: K(e, "output")
2145
+ } }), e.toJSONSchema = pr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(m(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
2146
+ check: e,
2147
+ def: { check: "custom" },
2148
+ onattach: []
2149
+ } } : e)] }), { parent: !0 }), e.with = e.check, e.clone = (t, n) => v(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Vr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Ur(e, t, n), e.parseAsync = async (t, n) => Hr(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Wr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Gr(e, t, n), e.decode = (t, n) => Kr(e, t, n), e.encodeAsync = async (t, n) => qr(e, t, n), e.decodeAsync = async (t, n) => Jr(e, t, n), e.safeEncode = (t, n) => Yr(e, t, n), e.safeDecode = (t, n) => Xr(e, t, n), e.safeEncodeAsync = async (t, n) => Zr(e, t, n), e.safeDecodeAsync = async (t, n) => Qr(e, t, n), e.refine = (t, n) => e.check(Qi(t, n)), e.superRefine = (t) => e.check($i(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ U(t)), e.optional = () => Pi(e), e.exactOptional = () => Ii(e), e.nullable = () => Ri(e), e.nullish = () => Pi(Ri(e)), e.nonoptional = (t) => Wi(e, t), e.array = () => wi(e), e.or = (t) => Oi([e, t]), e.and = (t) => Ai(e, t), e.transform = (t) => Ji(e, Ni(t)), e.default = (t) => Bi(e, t), e.prefault = (t) => Hi(e, t), e.catch = (t) => Ki(e, t), e.pipe = (t) => Ji(e, t), e.readonly = () => Xi(e), e.describe = (t) => {
2150
+ let n = e.clone();
2151
+ return V.add(n, { description: t }), n;
2152
+ }, Object.defineProperty(e, "description", {
2153
+ get() {
2154
+ return V.get(e)?.description;
2155
+ },
2156
+ configurable: !0
2157
+ }), e.meta = (...t) => {
2158
+ if (t.length === 0) return V.get(e);
2159
+ let n = e.clone();
2160
+ return V.add(n, t[0]), n;
2161
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), $r = /* @__PURE__ */ t("_ZodString", (e, t) => {
2162
+ M.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => hr(e, t, n, r);
2163
+ let n = e._zod.bag;
2164
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ Yn(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ Qn(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ $n(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ er(...t)), e.min = (...t) => e.check(/* @__PURE__ */ H(...t)), e.max = (...t) => e.check(/* @__PURE__ */ qn(...t)), e.length = (...t) => e.check(/* @__PURE__ */ Jn(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ H(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ Xn(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ Zn(t)), e.trim = () => e.check(/* @__PURE__ */ nr()), e.normalize = (...t) => e.check(/* @__PURE__ */ tr(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ rr()), e.toUpperCase = () => e.check(/* @__PURE__ */ ir()), e.slugify = () => e.check(/* @__PURE__ */ ar());
2165
+ }), ei = /* @__PURE__ */ t("ZodString", (e, t) => {
2166
+ M.init(e, t), $r.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ yn(ti, t)), e.url = (t) => e.check(/* @__PURE__ */ Tn(ri, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Bn(vi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ En(ii, t)), e.guid = (t) => e.check(/* @__PURE__ */ bn(ni, t)), e.uuid = (t) => e.check(/* @__PURE__ */ xn(Z, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Sn(Z, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Cn(Z, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ wn(Z, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Dn(ai, t)), e.guid = (t) => e.check(/* @__PURE__ */ bn(ni, t)), e.cuid = (t) => e.check(/* @__PURE__ */ On(oi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ kn(si, t)), e.ulid = (t) => e.check(/* @__PURE__ */ An(ci, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Ln(hi, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Rn(gi, t)), e.xid = (t) => e.check(/* @__PURE__ */ jn(li, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Mn(ui, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Nn(di, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Pn(fi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Fn(pi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ In(mi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ zn(_i, t)), e.datetime = (t) => e.check(Nr(t)), e.date = (t) => e.check(Fr(t)), e.time = (t) => e.check(Lr(t)), e.duration = (t) => e.check(zr(t));
2167
+ });
2168
+ function Y(e) {
2169
+ return /* @__PURE__ */ vn(ei, e);
2170
+ }
2171
+ var X = /* @__PURE__ */ t("ZodStringFormat", (e, t) => {
2172
+ N.init(e, t), $r.init(e, t);
2173
+ }), ti = /* @__PURE__ */ t("ZodEmail", (e, t) => {
2174
+ yt.init(e, t), X.init(e, t);
2175
+ }), ni = /* @__PURE__ */ t("ZodGUID", (e, t) => {
2176
+ _t.init(e, t), X.init(e, t);
2177
+ }), Z = /* @__PURE__ */ t("ZodUUID", (e, t) => {
2178
+ vt.init(e, t), X.init(e, t);
2179
+ }), ri = /* @__PURE__ */ t("ZodURL", (e, t) => {
2180
+ bt.init(e, t), X.init(e, t);
2181
+ }), ii = /* @__PURE__ */ t("ZodEmoji", (e, t) => {
2182
+ xt.init(e, t), X.init(e, t);
2183
+ }), ai = /* @__PURE__ */ t("ZodNanoID", (e, t) => {
2184
+ St.init(e, t), X.init(e, t);
2185
+ }), oi = /* @__PURE__ */ t("ZodCUID", (e, t) => {
2186
+ Ct.init(e, t), X.init(e, t);
2187
+ }), si = /* @__PURE__ */ t("ZodCUID2", (e, t) => {
2188
+ wt.init(e, t), X.init(e, t);
2189
+ }), ci = /* @__PURE__ */ t("ZodULID", (e, t) => {
2190
+ Tt.init(e, t), X.init(e, t);
2191
+ }), li = /* @__PURE__ */ t("ZodXID", (e, t) => {
2192
+ Et.init(e, t), X.init(e, t);
2193
+ }), ui = /* @__PURE__ */ t("ZodKSUID", (e, t) => {
2194
+ Dt.init(e, t), X.init(e, t);
2195
+ }), di = /* @__PURE__ */ t("ZodIPv4", (e, t) => {
2196
+ Mt.init(e, t), X.init(e, t);
2197
+ }), fi = /* @__PURE__ */ t("ZodIPv6", (e, t) => {
2198
+ Nt.init(e, t), X.init(e, t);
2199
+ }), pi = /* @__PURE__ */ t("ZodCIDRv4", (e, t) => {
2200
+ Pt.init(e, t), X.init(e, t);
2201
+ }), mi = /* @__PURE__ */ t("ZodCIDRv6", (e, t) => {
2202
+ Ft.init(e, t), X.init(e, t);
2203
+ }), hi = /* @__PURE__ */ t("ZodBase64", (e, t) => {
2204
+ Lt.init(e, t), X.init(e, t);
2205
+ }), gi = /* @__PURE__ */ t("ZodBase64URL", (e, t) => {
2206
+ zt.init(e, t), X.init(e, t);
2207
+ }), _i = /* @__PURE__ */ t("ZodE164", (e, t) => {
2208
+ Bt.init(e, t), X.init(e, t);
2209
+ }), vi = /* @__PURE__ */ t("ZodJWT", (e, t) => {
2210
+ Ht.init(e, t), X.init(e, t);
2211
+ }), yi = /* @__PURE__ */ t("ZodUnknown", (e, t) => {
2212
+ Ut.init(e, t), J.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2213
+ });
2214
+ function bi() {
2215
+ return /* @__PURE__ */ Gn(yi);
2216
+ }
2217
+ var xi = /* @__PURE__ */ t("ZodNever", (e, t) => {
2218
+ Wt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => gr(e, t, n, r);
2219
+ });
2220
+ function Si(e) {
2221
+ return /* @__PURE__ */ Kn(xi, e);
2222
+ }
2223
+ var Ci = /* @__PURE__ */ t("ZodArray", (e, t) => {
2224
+ Kt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => br(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ H(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ H(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ qn(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ Jn(t, n)), e.unwrap = () => e.element;
2225
+ });
2226
+ function wi(e, t) {
2227
+ return /* @__PURE__ */ or(Ci, e, t);
2228
+ }
2229
+ var Ti = /* @__PURE__ */ t("ZodObject", (e, t) => {
2230
+ Xt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n, r), f(e, "shape", () => t.shape), e.keyof = () => ji(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
2231
+ ...e._zod.def,
2232
+ catchall: t
2233
+ }), e.passthrough = () => e.clone({
2234
+ ...e._zod.def,
2235
+ catchall: bi()
2236
+ }), e.loose = () => e.clone({
2237
+ ...e._zod.def,
2238
+ catchall: bi()
2239
+ }), e.strict = () => e.clone({
2240
+ ...e._zod.def,
2241
+ catchall: Si()
2242
+ }), e.strip = () => e.clone({
2243
+ ...e._zod.def,
2244
+ catchall: void 0
2245
+ }), e.extend = (t) => le(e, t), e.safeExtend = (t) => ue(e, t), e.merge = (t) => de(e, t), e.pick = (t) => se(e, t), e.omit = (t) => ce(e, t), e.partial = (...t) => fe($, e, t[0]), e.required = (...t) => pe(Ui, e, t[0]);
2246
+ });
2247
+ function Ei(e, t) {
2248
+ return new Ti({
2249
+ type: "object",
2250
+ shape: e ?? {},
2251
+ ...y(t)
2252
+ });
2253
+ }
2254
+ var Di = /* @__PURE__ */ t("ZodUnion", (e, t) => {
2255
+ Qt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sr(e, t, n, r), e.options = t.options;
2256
+ });
2257
+ function Oi(e, t) {
2258
+ return new Di({
2259
+ type: "union",
2260
+ options: e,
2261
+ ...y(t)
2262
+ });
2263
+ }
2264
+ var ki = /* @__PURE__ */ t("ZodIntersection", (e, t) => {
2265
+ $t.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cr(e, t, n, r);
2266
+ });
2267
+ function Ai(e, t) {
2268
+ return new ki({
2269
+ type: "intersection",
2270
+ left: e,
2271
+ right: t
2272
+ });
2273
+ }
2274
+ var Q = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2275
+ en.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => _r(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2276
+ let n = new Set(Object.keys(t.entries));
2277
+ e.extract = (e, r) => {
2278
+ let i = {};
2279
+ for (let r of e) if (n.has(r)) i[r] = t.entries[r];
2280
+ else throw Error(`Key ${r} not found in enum`);
2281
+ return new Q({
2282
+ ...t,
2283
+ checks: [],
2284
+ ...y(r),
2285
+ entries: i
2286
+ });
2287
+ }, e.exclude = (e, r) => {
2288
+ let i = { ...t.entries };
2289
+ for (let t of e) if (n.has(t)) delete i[t];
2290
+ else throw Error(`Key ${t} not found in enum`);
2291
+ return new Q({
2292
+ ...t,
2293
+ checks: [],
2294
+ ...y(r),
2295
+ entries: i
2296
+ });
2297
+ };
2298
+ });
2299
+ function ji(e, t) {
2300
+ return new Q({
2301
+ type: "enum",
2302
+ entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2303
+ ...y(t)
2304
+ });
2305
+ }
2306
+ var Mi = /* @__PURE__ */ t("ZodTransform", (e, t) => {
2307
+ tn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => yr(e, t, n, r), e._zod.parse = (n, i) => {
2308
+ if (i.direction === "backward") throw new r(e.constructor.name);
2309
+ n.addIssue = (r) => {
2310
+ if (typeof r == "string") n.issues.push(w(r, n.value, t));
2311
+ else {
2312
+ let t = r;
2313
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(w(t));
2314
+ }
2315
+ };
2316
+ let a = t.transform(n.value, n);
2317
+ return a instanceof Promise ? a.then((e) => (n.value = e, n)) : (n.value = a, n);
2318
+ };
2319
+ });
2320
+ function Ni(e) {
2321
+ return new Mi({
2322
+ type: "transform",
2323
+ transform: e
2324
+ });
2325
+ }
2326
+ var $ = /* @__PURE__ */ t("ZodOptional", (e, t) => {
2327
+ R.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2328
+ });
2329
+ function Pi(e) {
2330
+ return new $({
2331
+ type: "optional",
2332
+ innerType: e
2333
+ });
2334
+ }
2335
+ var Fi = /* @__PURE__ */ t("ZodExactOptional", (e, t) => {
2336
+ nn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2337
+ });
2338
+ function Ii(e) {
2339
+ return new Fi({
2340
+ type: "optional",
2341
+ innerType: e
2342
+ });
2343
+ }
2344
+ var Li = /* @__PURE__ */ t("ZodNullable", (e, t) => {
2345
+ rn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => wr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2346
+ });
2347
+ function Ri(e) {
2348
+ return new Li({
2349
+ type: "nullable",
2350
+ innerType: e
2351
+ });
2352
+ }
2353
+ var zi = /* @__PURE__ */ t("ZodDefault", (e, t) => {
2354
+ an.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Er(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2355
+ });
2356
+ function Bi(e, t) {
2357
+ return new zi({
2358
+ type: "default",
2359
+ innerType: e,
2360
+ get defaultValue() {
2361
+ return typeof t == "function" ? t() : ie(t);
2362
+ }
2363
+ });
2364
+ }
2365
+ var Vi = /* @__PURE__ */ t("ZodPrefault", (e, t) => {
2366
+ on.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2367
+ });
2368
+ function Hi(e, t) {
2369
+ return new Vi({
2370
+ type: "prefault",
2371
+ innerType: e,
2372
+ get defaultValue() {
2373
+ return typeof t == "function" ? t() : ie(t);
2374
+ }
2375
+ });
2376
+ }
2377
+ var Ui = /* @__PURE__ */ t("ZodNonOptional", (e, t) => {
2378
+ sn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Tr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2379
+ });
2380
+ function Wi(e, t) {
2381
+ return new Ui({
2382
+ type: "nonoptional",
2383
+ innerType: e,
2384
+ ...y(t)
2385
+ });
2386
+ }
2387
+ var Gi = /* @__PURE__ */ t("ZodCatch", (e, t) => {
2388
+ ln.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Or(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2389
+ });
2390
+ function Ki(e, t) {
2391
+ return new Gi({
2392
+ type: "catch",
2393
+ innerType: e,
2394
+ catchValue: typeof t == "function" ? t : () => t
2395
+ });
2396
+ }
2397
+ var qi = /* @__PURE__ */ t("ZodPipe", (e, t) => {
2398
+ un.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => kr(e, t, n, r), e.in = t.in, e.out = t.out;
2399
+ });
2400
+ function Ji(e, t) {
2401
+ return new qi({
2402
+ type: "pipe",
2403
+ in: e,
2404
+ out: t
2405
+ });
2406
+ }
2407
+ var Yi = /* @__PURE__ */ t("ZodReadonly", (e, t) => {
2408
+ dn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2409
+ });
2410
+ function Xi(e) {
2411
+ return new Yi({
2412
+ type: "readonly",
2413
+ innerType: e
2414
+ });
2415
+ }
2416
+ var Zi = /* @__PURE__ */ t("ZodCustom", (e, t) => {
2417
+ pn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => vr(e, t, n, r);
2418
+ });
2419
+ function Qi(e, t = {}) {
2420
+ return /* @__PURE__ */ sr(Zi, e, t);
2421
+ }
2422
+ function $i(e) {
2423
+ return /* @__PURE__ */ cr(e);
2424
+ }
2425
+ //#endregion
2426
+ //#region src/config/env.ts
2427
+ var ea = Ei({
2428
+ HYPE_STACK_API_URL: Y().url().optional(),
2429
+ HYPE_STACK_WEB_URL: Y().url().optional(),
2430
+ HYPE_STACK_LICENSE_KEY: Y().optional()
2431
+ });
2432
+ (() => {
2433
+ let e = ea.safeParse(process.env);
2434
+ if (!e.success) {
2435
+ let t = xe(e.error);
2436
+ throw Error(`Invalid CLI environment variables:\n ${t}`);
2437
+ }
2438
+ return e.data;
2439
+ })(), e().parse();
2440
+ //#endregion