@oomol-lab/open-flow 0.1.0-beta.39 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/codeDiagnostics-BtH_YuXu.js +44 -0
- package/dist/browser/{createResourceDialog-DnlKSqIs.js → createResourceDialog-BOrW62JW.js} +1 -1
- package/dist/browser/{dist-DYjIVIZC.js → dist-Cdna4VV_.js} +1 -1
- package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
- package/dist/browser/{editorComponent-T-GmTa-C.js → editorComponent-0skblWYk.js} +190 -107
- package/dist/browser/flow-authoring-node.d.ts +2 -5
- package/dist/browser/flow-authoring.js +111 -83
- package/dist/browser/flow-change-schema.d.ts +1 -1
- package/dist/browser/flow-change.d.ts +16 -5
- package/dist/browser/flow-change.js +196 -143
- package/dist/browser/{flowChanges-BXqN4jyH.js → flowChanges-3o9Vs_1I.js} +2479 -3906
- package/dist/browser/{flowWorkspace-a5QLISui.js → flowWorkspace-DJzQVVtZ.js} +12035 -10159
- package/dist/browser/{inputValues-Do4FrC_6.js → inputValues-DkDT6u0o.js} +1 -1
- package/dist/browser/{typeScriptSession-vC9uPDVV.js → typeScriptSession-v9Pb3G6d.js} +136 -136
- package/dist/browser/ui.css +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +0 -3
- package/dist/browser/workbench.js +1046 -1025
- package/dist/browser/{workbenchSelect-Dx2Y46cD.js → workbenchSelect-B5zXyaaX.js} +1116 -1063
- package/dist/common/connectorDecoders.d.ts +2 -1
- package/dist/common/control-api-conformance.js +1589 -1518
- package/dist/common/control-api.d.ts +18 -6
- package/dist/common/control-api.js +1470 -1392
- package/dist/common/control-requests.js +1550 -1535
- package/dist/common/draftOperations.d.ts +0 -1
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.js +1092 -1060
- package/dist/common/flow-semantics.d.ts +1 -0
- package/dist/common/flow-semantics.js +2777 -2699
- package/dist/common/flowInspection.d.ts +1 -1
- package/dist/common/integration-trigger.js +350 -328
- package/dist/common/mcp.d.ts +27 -0
- package/dist/common/mcp.js +807 -728
- package/dist/common/poll-trigger.js +993 -971
- package/dist/common/provider-triggers.js +1521 -1203
- package/dist/common/runtime-contract.js +13 -6
- package/dist/common/scheduler.js +1430 -1408
- package/dist/common/trigger-catalog.d.ts +2 -1
- package/dist/common/webhook-trigger.js +221 -199
- package/dist/common/{zh-CN-D2od3TNw.js → zh-CN-CxZ3yYfR.js} +2 -2
- package/package.json +1 -1
|
@@ -166,7 +166,7 @@ function Qe(e) {
|
|
|
166
166
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
167
167
|
}
|
|
168
168
|
var $e = /* @__PURE__*/ Re(() => {
|
|
169
|
-
if (
|
|
169
|
+
if (k.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
170
170
|
try {
|
|
171
171
|
return Function(""), !0;
|
|
172
172
|
} catch {
|
|
@@ -298,49 +298,49 @@ function _t(e, t, n) {
|
|
|
298
298
|
innerType: t
|
|
299
299
|
})), it(t, T(t._zod.def, { shape: i }));
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function vt(e, t = 0) {
|
|
302
302
|
if (e.aborted === !0) return !0;
|
|
303
303
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
|
|
304
304
|
return !1;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function yt(e, t = 0) {
|
|
307
307
|
if (e.aborted === !0) return !0;
|
|
308
308
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
309
309
|
return !1;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function bt(e, t) {
|
|
312
312
|
return t.map((t) => {
|
|
313
313
|
var n;
|
|
314
314
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function xt(e) {
|
|
318
318
|
return typeof e == "string" ? e : e?.message;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function St(e, t, n) {
|
|
321
321
|
var r;
|
|
322
322
|
for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ct(e, t, n) {
|
|
325
325
|
var r;
|
|
326
326
|
let i = e.inst?._zod?.traits;
|
|
327
327
|
i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
328
|
-
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message :
|
|
328
|
+
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : xt(e.inst?._zod.def?.error?.(e)) ?? xt(a?.(e)) ?? xt(t?.error?.(e)) ?? xt(n.customError?.(e)) ?? xt(n.localeError?.(e)) ?? "Invalid input", s = {};
|
|
329
329
|
for (let t of Object.keys(e)) t !== "inst" && t !== "schema" && t !== "continue" && t !== "input" && t !== "__proto__" && (s[t] = e[t]);
|
|
330
330
|
return s.path ??= [], s.message = o, t?.reportInput && (s.input = e.input), s;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
function
|
|
332
|
+
var wt = /[\uD800-\uDBFF]/;
|
|
333
|
+
function Tt(e) {
|
|
334
334
|
let t = e.length;
|
|
335
|
-
if (!
|
|
335
|
+
if (!wt.test(e)) return t;
|
|
336
336
|
let n = t;
|
|
337
337
|
for (let r = 0; r < t - 1; r++) (e.charCodeAt(r) & 64512) == 55296 && (e.charCodeAt(r + 1) & 64512) == 56320 && (n--, r++);
|
|
338
338
|
return n;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Et(e) {
|
|
341
341
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Dt(e) {
|
|
344
344
|
let t = typeof e;
|
|
345
345
|
switch (t) {
|
|
346
346
|
case "number": return Number.isNaN(e) ? "nan" : "number";
|
|
@@ -353,7 +353,7 @@ function Et(e) {
|
|
|
353
353
|
}
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Ot(...e) {
|
|
357
357
|
let [t, n, r] = e;
|
|
358
358
|
return typeof t == "string" ? {
|
|
359
359
|
message: t,
|
|
@@ -362,16 +362,16 @@ function Dt(...e) {
|
|
|
362
362
|
inst: r
|
|
363
363
|
} : { ...t };
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function kt(e, t) {
|
|
366
366
|
for (let n in t) {
|
|
367
367
|
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
368
368
|
r.get ? Object.defineProperty(e, n, {
|
|
369
369
|
...r,
|
|
370
370
|
enumerable: !1
|
|
371
|
-
}) :
|
|
371
|
+
}) : Nt(e, n, r.value);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function At(e, t, n, r = !0) {
|
|
375
375
|
return Object.defineProperty(e, t, {
|
|
376
376
|
configurable: !0,
|
|
377
377
|
writable: !0,
|
|
@@ -379,67 +379,67 @@ function kt(e, t, n, r = !0) {
|
|
|
379
379
|
value: n
|
|
380
380
|
}), n;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
382
|
+
function jt(e, t, n) {
|
|
383
|
+
return At(e, t, n, !1);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Mt(e, t) {
|
|
386
386
|
for (let n in e) {
|
|
387
387
|
let r = e[n];
|
|
388
388
|
Object.defineProperty(t, n, {
|
|
389
389
|
configurable: !0,
|
|
390
390
|
enumerable: !0,
|
|
391
391
|
get() {
|
|
392
|
-
return
|
|
392
|
+
return At(this, n, r(this));
|
|
393
393
|
},
|
|
394
394
|
set(e) {
|
|
395
|
-
|
|
395
|
+
At(this, n, e);
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
return t;
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Nt(e, t, n) {
|
|
402
402
|
Object.defineProperty(e, t, {
|
|
403
403
|
configurable: !0,
|
|
404
404
|
get() {
|
|
405
|
-
return this == null ? n :
|
|
405
|
+
return this == null ? n : At(this, t, n.bind(this));
|
|
406
406
|
},
|
|
407
407
|
set(e) {
|
|
408
|
-
|
|
408
|
+
At(this, t, e);
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Pt(e, t) {
|
|
413
413
|
let n = Object.getPrototypeOf(e);
|
|
414
414
|
return t in n ? void 0 : n;
|
|
415
415
|
}
|
|
416
|
-
var
|
|
416
|
+
var Ft, It = !1, Lt = {
|
|
417
417
|
configurable: !0,
|
|
418
418
|
get() {
|
|
419
|
-
|
|
419
|
+
It = !0;
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
function
|
|
422
|
+
function D(e, t, n) {
|
|
423
423
|
let r = Object.getPrototypeOf(e._zod);
|
|
424
|
-
if (t in r &&
|
|
425
|
-
|
|
424
|
+
if (t in r && Ft !== e._zod) {
|
|
425
|
+
Ft = void 0;
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
|
-
|
|
428
|
+
Ft = e._zod, Object.defineProperty(r, t, {
|
|
429
429
|
configurable: !0,
|
|
430
430
|
get() {
|
|
431
|
-
Object.defineProperty(this, t,
|
|
432
|
-
let e =
|
|
433
|
-
|
|
431
|
+
Object.defineProperty(this, t, Lt);
|
|
432
|
+
let e = It;
|
|
433
|
+
It = !1;
|
|
434
434
|
try {
|
|
435
435
|
let r = n(this);
|
|
436
|
-
return
|
|
436
|
+
return It ? delete this[t] : Object.defineProperty(this, t, {
|
|
437
437
|
configurable: !0,
|
|
438
438
|
writable: !0,
|
|
439
439
|
value: r
|
|
440
|
-
}),
|
|
440
|
+
}), It ||= e, r;
|
|
441
441
|
} catch (n) {
|
|
442
|
-
throw delete this[t],
|
|
442
|
+
throw delete this[t], It ||= e, n;
|
|
443
443
|
}
|
|
444
444
|
},
|
|
445
445
|
set(e) {
|
|
@@ -451,8 +451,8 @@ function O(e, t, n) {
|
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let i =
|
|
454
|
+
function Rt(e, t, n, r) {
|
|
455
|
+
let i = Pt(e, t);
|
|
456
456
|
i && Object.defineProperty(i, t, {
|
|
457
457
|
configurable: !0,
|
|
458
458
|
get() {
|
|
@@ -474,26 +474,26 @@ function Lt(e, t, n, r) {
|
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var zt = "~constantCatch";
|
|
478
|
+
function Bt(e) {
|
|
479
479
|
let t = () => e;
|
|
480
|
-
return t[
|
|
480
|
+
return t[zt] = !0, t;
|
|
481
481
|
}
|
|
482
482
|
//#endregion
|
|
483
483
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/core.js
|
|
484
|
-
var
|
|
484
|
+
var Vt, Ht = {
|
|
485
485
|
value: void 0,
|
|
486
486
|
enumerable: !1
|
|
487
|
-
},
|
|
488
|
-
function
|
|
489
|
-
let t =
|
|
487
|
+
}, Ut = "captureStackTrace" in Error ? Error : null;
|
|
488
|
+
function Wt(e) {
|
|
489
|
+
let t = Ut;
|
|
490
490
|
if (t) {
|
|
491
491
|
let n = t.stackTraceLimit;
|
|
492
492
|
if (typeof n == "number") {
|
|
493
493
|
try {
|
|
494
494
|
t.stackTraceLimit = 0;
|
|
495
495
|
} catch {
|
|
496
|
-
return
|
|
496
|
+
return Ut = null, new e();
|
|
497
497
|
}
|
|
498
498
|
try {
|
|
499
499
|
return new e();
|
|
@@ -504,7 +504,7 @@ function Ut(e) {
|
|
|
504
504
|
}
|
|
505
505
|
return new e();
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function O(e, t, n, r) {
|
|
508
508
|
let i = {};
|
|
509
509
|
function a(e) {
|
|
510
510
|
this.def = e, this.constr = d, this.traits = /* @__PURE__ */ new Set();
|
|
@@ -513,18 +513,18 @@ function k(e, t, n, r) {
|
|
|
513
513
|
let o = n, s = o && /* @__PURE__ */ new WeakSet();
|
|
514
514
|
function c(n, r) {
|
|
515
515
|
if (!n._zod) {
|
|
516
|
-
|
|
516
|
+
Ht.value = new a(r);
|
|
517
517
|
try {
|
|
518
|
-
Object.defineProperty(n, "_zod",
|
|
518
|
+
Object.defineProperty(n, "_zod", Ht);
|
|
519
519
|
} finally {
|
|
520
|
-
|
|
520
|
+
Ht.value = void 0;
|
|
521
521
|
}
|
|
522
522
|
} else if (n._zod.traits.has(e)) return;
|
|
523
523
|
if (n._zod.traits.add(e), t(n, r), s) {
|
|
524
524
|
let e = Object.getPrototypeOf(n), t = n._zod.constr.prototype, r = e;
|
|
525
525
|
for (; r && r !== t;) r = Object.getPrototypeOf(r);
|
|
526
526
|
let i = r ?? e;
|
|
527
|
-
s.has(i) || (s.add(i),
|
|
527
|
+
s.has(i) || (s.add(i), kt(i, o));
|
|
528
528
|
}
|
|
529
529
|
let i = d.prototype;
|
|
530
530
|
for (let e in i) Object.prototype.hasOwnProperty.call(i, e) && (e in n || (n[e] = i[e].bind(n)));
|
|
@@ -533,7 +533,7 @@ function k(e, t, n, r) {
|
|
|
533
533
|
class u extends l {}
|
|
534
534
|
Object.defineProperty(u, "name", { value: e });
|
|
535
535
|
function d(e) {
|
|
536
|
-
let t = r?.Parent ?
|
|
536
|
+
let t = r?.Parent ? Wt(u) : this;
|
|
537
537
|
c(t, e);
|
|
538
538
|
let n = t._zod.deferred;
|
|
539
539
|
if (n) {
|
|
@@ -545,41 +545,41 @@ function k(e, t, n, r) {
|
|
|
545
545
|
}
|
|
546
546
|
return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
|
|
547
547
|
}
|
|
548
|
-
var
|
|
548
|
+
var Gt = class extends Error {
|
|
549
549
|
constructor() {
|
|
550
550
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
551
551
|
}
|
|
552
|
-
},
|
|
552
|
+
}, Kt = class extends Error {
|
|
553
553
|
constructor(e) {
|
|
554
554
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
|
-
(
|
|
558
|
-
var
|
|
559
|
-
function
|
|
560
|
-
return e && Object.assign(
|
|
557
|
+
(Vt = globalThis).__zod_globalConfig ?? (Vt.__zod_globalConfig = {});
|
|
558
|
+
var k = globalThis.__zod_globalConfig;
|
|
559
|
+
function A(e) {
|
|
560
|
+
return e && Object.assign(k, e), k;
|
|
561
561
|
}
|
|
562
562
|
//#endregion
|
|
563
563
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/errors.js
|
|
564
|
-
function
|
|
564
|
+
function qt() {
|
|
565
565
|
let e = this._zod;
|
|
566
566
|
return e.message ??= JSON.stringify(e.def, Ie, 2), e.message;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Jt(e) {
|
|
569
569
|
this._zod.message = e;
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
get:
|
|
573
|
-
set:
|
|
571
|
+
var Yt = {
|
|
572
|
+
get: qt,
|
|
573
|
+
set: Jt,
|
|
574
574
|
enumerable: !0,
|
|
575
575
|
configurable: !0
|
|
576
|
-
},
|
|
576
|
+
}, Xt = {
|
|
577
577
|
value: void 0,
|
|
578
578
|
enumerable: !1
|
|
579
|
-
},
|
|
580
|
-
e.name = "$ZodError",
|
|
579
|
+
}, Zt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Qt = (e, t) => {
|
|
580
|
+
e.name = "$ZodError", Xt.value = t, Object.defineProperty(e, "issues", Xt), Xt.value = void 0, Object.defineProperty(e, "message", Yt);
|
|
581
581
|
let n = Object.getPrototypeOf(e);
|
|
582
|
-
|
|
582
|
+
Zt.has(n) || (Zt.add(n), Object.defineProperty(n, "toString", {
|
|
583
583
|
configurable: !0,
|
|
584
584
|
enumerable: !1,
|
|
585
585
|
get() {
|
|
@@ -598,9 +598,9 @@ var Jt = {
|
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
600
|
}));
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
function
|
|
601
|
+
}, $t = O("$ZodError", Qt);
|
|
602
|
+
O("$ZodError", Qt, void 0, { Parent: Error });
|
|
603
|
+
function en(e, t, n) {
|
|
604
604
|
return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
|
|
605
605
|
value: n(),
|
|
606
606
|
writable: !0,
|
|
@@ -608,15 +608,15 @@ function $t(e, t, n) {
|
|
|
608
608
|
configurable: !0
|
|
609
609
|
}) : e[t] = n()), e[t];
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function tn(e, t = (e) => e.message) {
|
|
612
612
|
let n = {}, r = [];
|
|
613
|
-
for (let i of e.issues) i.path.length > 0 ?
|
|
613
|
+
for (let i of e.issues) i.path.length > 0 ? en(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
|
|
614
614
|
return {
|
|
615
615
|
formErrors: r,
|
|
616
616
|
fieldErrors: n
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function nn(e, t = (e) => e.message) {
|
|
620
620
|
let n = { _errors: [] }, r = (e, i = []) => {
|
|
621
621
|
for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
|
|
622
622
|
else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
|
|
@@ -648,13 +648,13 @@ function tn(e, t = (e) => e.message) {
|
|
|
648
648
|
}
|
|
649
649
|
//#endregion
|
|
650
650
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/parse.js
|
|
651
|
-
function
|
|
651
|
+
function rn(e, t) {
|
|
652
652
|
return {
|
|
653
653
|
callee: t?.callee ?? e,
|
|
654
654
|
Err: t?.Err
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
var
|
|
657
|
+
var an = (e) => {
|
|
658
658
|
let t = (n, r, i, a) => {
|
|
659
659
|
let o = i ? {
|
|
660
660
|
...i,
|
|
@@ -663,15 +663,15 @@ var rn = (e) => {
|
|
|
663
663
|
value: r,
|
|
664
664
|
issues: []
|
|
665
665
|
}, o);
|
|
666
|
-
if (s instanceof Promise) throw new
|
|
666
|
+
if (s instanceof Promise) throw new Gt();
|
|
667
667
|
if (s.issues.length) {
|
|
668
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
668
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => Ct(e, o, A())));
|
|
669
669
|
throw Ze(n, a?.callee ?? t), n;
|
|
670
670
|
}
|
|
671
671
|
return s.value;
|
|
672
672
|
};
|
|
673
673
|
return t;
|
|
674
|
-
},
|
|
674
|
+
}, on = (e) => {
|
|
675
675
|
let t = async (n, r, i, a) => {
|
|
676
676
|
let o = i ? {
|
|
677
677
|
...i,
|
|
@@ -681,13 +681,13 @@ var rn = (e) => {
|
|
|
681
681
|
issues: []
|
|
682
682
|
}, o);
|
|
683
683
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
684
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
684
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => Ct(e, o, A())));
|
|
685
685
|
throw Ze(n, a?.callee ?? t), n;
|
|
686
686
|
}
|
|
687
687
|
return s.value;
|
|
688
688
|
};
|
|
689
689
|
return t;
|
|
690
|
-
},
|
|
690
|
+
}, sn = (e) => (t, n, r) => {
|
|
691
691
|
let i = r ? {
|
|
692
692
|
...r,
|
|
693
693
|
async: !1
|
|
@@ -695,25 +695,25 @@ var rn = (e) => {
|
|
|
695
695
|
value: n,
|
|
696
696
|
issues: []
|
|
697
697
|
}, i);
|
|
698
|
-
if (a instanceof Promise) throw new
|
|
699
|
-
return a.issues.length ?
|
|
698
|
+
if (a instanceof Promise) throw new Gt();
|
|
699
|
+
return a.issues.length ? cn(e, a.issues, i) : {
|
|
700
700
|
success: !0,
|
|
701
701
|
data: a.value
|
|
702
702
|
};
|
|
703
703
|
};
|
|
704
|
-
function
|
|
704
|
+
function cn(e, t, n) {
|
|
705
705
|
let r;
|
|
706
706
|
return {
|
|
707
707
|
success: !1,
|
|
708
708
|
get error() {
|
|
709
|
-
return r || (r = new e(t.map((e) =>
|
|
709
|
+
return r || (r = new e(t.map((e) => Ct(e, n, A()))), t = void 0, n = void 0), r;
|
|
710
710
|
},
|
|
711
711
|
set error(e) {
|
|
712
712
|
r = e, t = void 0, n = void 0;
|
|
713
713
|
}
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
|
-
var
|
|
716
|
+
var ln = (e) => async (t, n, r) => {
|
|
717
717
|
let i = r ? {
|
|
718
718
|
...r,
|
|
719
719
|
async: !0
|
|
@@ -721,19 +721,19 @@ var cn = (e) => async (t, n, r) => {
|
|
|
721
721
|
value: n,
|
|
722
722
|
issues: []
|
|
723
723
|
}, i);
|
|
724
|
-
return a instanceof Promise && (a = await a), a.issues.length ?
|
|
724
|
+
return a instanceof Promise && (a = await a), a.issues.length ? cn(e, a.issues, i) : {
|
|
725
725
|
success: !0,
|
|
726
726
|
data: a.value
|
|
727
727
|
};
|
|
728
|
-
},
|
|
728
|
+
}, un = /* @__PURE__ */ Symbol.for("zod.compile.invalid"), dn = /* @__PURE__ */ Symbol.for("zod.compile.fallback"), fn = ((e, t, n) => {
|
|
729
729
|
let r = e._zod.bag.validator;
|
|
730
730
|
if (r !== void 0) {
|
|
731
|
-
if (r(t) !==
|
|
731
|
+
if (r(t) !== un) return !0;
|
|
732
732
|
if (r.definite === !0 && n === void 0) return !1;
|
|
733
733
|
}
|
|
734
|
-
return
|
|
734
|
+
return pn(e, t, n);
|
|
735
735
|
});
|
|
736
|
-
function
|
|
736
|
+
function pn(e, t, n) {
|
|
737
737
|
let r = n ? {
|
|
738
738
|
...n,
|
|
739
739
|
async: !1,
|
|
@@ -742,16 +742,16 @@ function fn(e, t, n) {
|
|
|
742
742
|
async: !1,
|
|
743
743
|
abortEarly: !0
|
|
744
744
|
}, i = e._zod.bag.fallbackRun, a;
|
|
745
|
-
if (i ? (r[
|
|
745
|
+
if (i ? (r[dn] = !0, a = i({
|
|
746
746
|
value: t,
|
|
747
747
|
issues: []
|
|
748
748
|
}, r)) : a = e._zod.run({
|
|
749
749
|
value: t,
|
|
750
750
|
issues: []
|
|
751
|
-
}, r), a instanceof Promise) throw new
|
|
751
|
+
}, r), a instanceof Promise) throw new Gt();
|
|
752
752
|
return a.issues.length === 0;
|
|
753
753
|
}
|
|
754
|
-
var
|
|
754
|
+
var mn = async (e, t, n) => {
|
|
755
755
|
let r = n ? {
|
|
756
756
|
...n,
|
|
757
757
|
async: !0,
|
|
@@ -764,87 +764,87 @@ var pn = async (e, t, n) => {
|
|
|
764
764
|
issues: []
|
|
765
765
|
}, r);
|
|
766
766
|
return i instanceof Promise && (i = await i), i.issues.length === 0;
|
|
767
|
-
},
|
|
768
|
-
let t =
|
|
767
|
+
}, hn = (e) => {
|
|
768
|
+
let t = an(e), n = (e, r, i, a) => {
|
|
769
769
|
let o = i ? {
|
|
770
770
|
...i,
|
|
771
771
|
direction: "backward"
|
|
772
772
|
} : { direction: "backward" };
|
|
773
|
-
return t(e, r, o,
|
|
773
|
+
return t(e, r, o, rn(n, a));
|
|
774
774
|
};
|
|
775
775
|
return n;
|
|
776
|
-
}, hn = (e) => {
|
|
777
|
-
let t = rn(e), n = (e, r, i, a) => t(e, r, i, nn(n, a));
|
|
778
|
-
return n;
|
|
779
776
|
}, gn = (e) => {
|
|
780
|
-
let t = an(e), n =
|
|
777
|
+
let t = an(e), n = (e, r, i, a) => t(e, r, i, rn(n, a));
|
|
778
|
+
return n;
|
|
779
|
+
}, _n = (e) => {
|
|
780
|
+
let t = on(e), n = async (e, r, i, a) => {
|
|
781
781
|
let o = i ? {
|
|
782
782
|
...i,
|
|
783
783
|
direction: "backward"
|
|
784
784
|
} : { direction: "backward" };
|
|
785
|
-
return await t(e, r, o,
|
|
785
|
+
return await t(e, r, o, rn(n, a));
|
|
786
786
|
};
|
|
787
787
|
return n;
|
|
788
|
-
},
|
|
789
|
-
let t =
|
|
788
|
+
}, vn = (e) => {
|
|
789
|
+
let t = on(e), n = async (e, r, i, a) => await t(e, r, i, rn(n, a));
|
|
790
790
|
return n;
|
|
791
|
-
},
|
|
791
|
+
}, yn = (e) => (t, n, r) => {
|
|
792
792
|
let i = r ? {
|
|
793
793
|
...r,
|
|
794
794
|
direction: "backward"
|
|
795
795
|
} : { direction: "backward" };
|
|
796
|
-
return
|
|
797
|
-
},
|
|
796
|
+
return sn(e)(t, n, i);
|
|
797
|
+
}, bn = (e) => (t, n, r) => sn(e)(t, n, r), xn = (e) => async (t, n, r) => {
|
|
798
798
|
let i = r ? {
|
|
799
799
|
...r,
|
|
800
800
|
direction: "backward"
|
|
801
801
|
} : { direction: "backward" };
|
|
802
|
-
return
|
|
803
|
-
},
|
|
804
|
-
function
|
|
802
|
+
return ln(e)(t, n, i);
|
|
803
|
+
}, Sn = (e) => async (t, n, r) => ln(e)(t, n, r), Cn = /^[cC][0-9a-z]{6,}$/, wn = /^[0-9a-z]+$/, Tn = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, En = /^[0-9a-vA-V]{20}$/, Dn = /^[A-Za-z0-9]{27}$/, On = /^[a-zA-Z0-9_-]{21}$/;
|
|
804
|
+
function kn(e) {
|
|
805
805
|
return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
|
|
806
806
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
809
|
-
return new RegExp(
|
|
807
|
+
var An = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, jn = /^([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})$/, Mn = (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)$/, Nn = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Pn = "^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
|
|
808
|
+
function Fn() {
|
|
809
|
+
return new RegExp(Pn, "u");
|
|
810
810
|
}
|
|
811
|
-
var
|
|
812
|
-
function
|
|
811
|
+
var In = /^(?:(?: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])$/, Ln = /^(([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}|:))$/, Rn = /^((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])$/, zn = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Bn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Vn = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/, Hn = /^https?$/, Un = /^\+[1-9]\d{6,14}$/, Wn = "(?:(?:\\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])))";
|
|
812
|
+
function Gn(e) {
|
|
813
813
|
return RegExp(`^${e}$`);
|
|
814
814
|
}
|
|
815
|
-
var
|
|
816
|
-
function
|
|
815
|
+
var Kn = /*@__PURE__*/ Gn(Wn);
|
|
816
|
+
function qn(e) {
|
|
817
817
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
818
818
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
819
819
|
}
|
|
820
|
-
function qn(e) {
|
|
821
|
-
return RegExp(`^${Kn(e)}$`);
|
|
822
|
-
}
|
|
823
820
|
function Jn(e) {
|
|
821
|
+
return RegExp(`^${qn(e)}$`);
|
|
822
|
+
}
|
|
823
|
+
function Yn(e) {
|
|
824
824
|
let t = ["Z"];
|
|
825
825
|
e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
826
|
-
let n = `${
|
|
826
|
+
let n = `${qn({
|
|
827
827
|
precision: e.precision,
|
|
828
828
|
seconds: !0
|
|
829
|
-
})}(?:${t.join("|")})`, r = e.local ? `${n}|${
|
|
830
|
-
return RegExp(`^${
|
|
829
|
+
})}(?:${t.join("|")})`, r = e.local ? `${n}|${qn({ precision: e.precision })}` : n;
|
|
830
|
+
return RegExp(`^${Wn}T(?:${r})$`);
|
|
831
831
|
}
|
|
832
|
-
var
|
|
832
|
+
var Xn = /^[\s\S]{0,}$/, Zn = /^-?\d+$/, Qn = /^-?\d+(?:\.\d+)?$/, $n = /^(?:true|false)$/i, er = /^null$/i, tr = /^[^A-Z]*$/, nr = /^[^a-z]*$/, j = /*@__PURE__*/ O("$ZodCheck", (e, t) => {
|
|
833
833
|
var n;
|
|
834
834
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
835
|
-
}),
|
|
835
|
+
}), rr = (e) => {
|
|
836
836
|
let t = e.value;
|
|
837
837
|
return !ze(t) && t.length !== void 0;
|
|
838
|
-
},
|
|
838
|
+
}, ir = {
|
|
839
839
|
number: "number",
|
|
840
840
|
bigint: "bigint",
|
|
841
841
|
object: "date"
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
let n =
|
|
842
|
+
}, ar = /*@__PURE__*/ O("$ZodCheckLessThan", (e, t) => {
|
|
843
|
+
j.init(e, t);
|
|
844
|
+
let n = ir[typeof t.value];
|
|
845
845
|
e._zod.check = (r) => {
|
|
846
846
|
(t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
|
|
847
|
-
origin:
|
|
847
|
+
origin: ir[typeof r.value] ?? n,
|
|
848
848
|
code: "too_big",
|
|
849
849
|
maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
850
850
|
input: r.value,
|
|
@@ -853,12 +853,12 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
853
853
|
continue: !t.abort
|
|
854
854
|
});
|
|
855
855
|
};
|
|
856
|
-
}),
|
|
857
|
-
|
|
858
|
-
let n =
|
|
856
|
+
}), or = /*@__PURE__*/ O("$ZodCheckGreaterThan", (e, t) => {
|
|
857
|
+
j.init(e, t);
|
|
858
|
+
let n = ir[typeof t.value];
|
|
859
859
|
e._zod.check = (r) => {
|
|
860
860
|
(t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
|
|
861
|
-
origin:
|
|
861
|
+
origin: ir[typeof r.value] ?? n,
|
|
862
862
|
code: "too_small",
|
|
863
863
|
minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
864
864
|
input: r.value,
|
|
@@ -867,8 +867,8 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
867
867
|
continue: !t.abort
|
|
868
868
|
});
|
|
869
869
|
};
|
|
870
|
-
}),
|
|
871
|
-
|
|
870
|
+
}), sr = /*@__PURE__*/ O("$ZodCheckMultipleOf", (e, t) => {
|
|
871
|
+
j.init(e, t), e._zod.check = (n) => {
|
|
872
872
|
if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
|
|
873
873
|
(typeof n.value == "bigint" ? t.value !== BigInt(0) && n.value % t.value === BigInt(0) : Ve(n.value, t.value) === 0) || n.issues.push({
|
|
874
874
|
origin: typeof n.value,
|
|
@@ -879,8 +879,8 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
879
879
|
continue: !t.abort
|
|
880
880
|
});
|
|
881
881
|
};
|
|
882
|
-
}),
|
|
883
|
-
|
|
882
|
+
}), cr = /*@__PURE__*/ O("$ZodCheckNumberFormat", (e, t) => {
|
|
883
|
+
j.init(e, t), t.format = t.format || "float64";
|
|
884
884
|
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = st[t.format];
|
|
885
885
|
e._zod.check = (o) => {
|
|
886
886
|
let s = o.value;
|
|
@@ -937,12 +937,12 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
937
937
|
continue: !t.abort
|
|
938
938
|
});
|
|
939
939
|
};
|
|
940
|
-
}),
|
|
940
|
+
}), lr = /*@__PURE__*/ O("$ZodCheckMaxLength", (e, t) => {
|
|
941
941
|
var n;
|
|
942
|
-
|
|
942
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = rr), e._zod.check = (n) => {
|
|
943
943
|
let r = n.value, i = r.length;
|
|
944
|
-
if ((typeof r == "string" && i > t.maximum ?
|
|
945
|
-
let a =
|
|
944
|
+
if ((typeof r == "string" && i > t.maximum ? Tt(r) : i) <= t.maximum) return;
|
|
945
|
+
let a = Et(r);
|
|
946
946
|
n.issues.push({
|
|
947
947
|
origin: a,
|
|
948
948
|
code: "too_big",
|
|
@@ -953,12 +953,12 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
953
953
|
continue: !t.abort
|
|
954
954
|
});
|
|
955
955
|
};
|
|
956
|
-
}),
|
|
956
|
+
}), ur = /*@__PURE__*/ O("$ZodCheckMinLength", (e, t) => {
|
|
957
957
|
var n;
|
|
958
|
-
|
|
958
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = rr), e._zod.check = (n) => {
|
|
959
959
|
let r = n.value, i = r.length;
|
|
960
|
-
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ?
|
|
961
|
-
let a =
|
|
960
|
+
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? Tt(r) : i) >= t.minimum) return;
|
|
961
|
+
let a = Et(r);
|
|
962
962
|
n.issues.push({
|
|
963
963
|
origin: a,
|
|
964
964
|
code: "too_small",
|
|
@@ -969,12 +969,12 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
969
969
|
continue: !t.abort
|
|
970
970
|
});
|
|
971
971
|
};
|
|
972
|
-
}),
|
|
972
|
+
}), dr = /*@__PURE__*/ O("$ZodCheckLengthEquals", (e, t) => {
|
|
973
973
|
var n;
|
|
974
|
-
|
|
975
|
-
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ?
|
|
974
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = rr), e._zod.check = (n) => {
|
|
975
|
+
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? Tt(r) : i;
|
|
976
976
|
if (a === t.length) return;
|
|
977
|
-
let o =
|
|
977
|
+
let o = Et(r), s = a > t.length;
|
|
978
978
|
n.issues.push({
|
|
979
979
|
origin: o,
|
|
980
980
|
...s ? {
|
|
@@ -991,9 +991,9 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
991
991
|
continue: !t.abort
|
|
992
992
|
});
|
|
993
993
|
};
|
|
994
|
-
}),
|
|
994
|
+
}), fr = /*@__PURE__*/ O("$ZodCheckStringFormat", (e, t) => {
|
|
995
995
|
var n, r;
|
|
996
|
-
|
|
996
|
+
j.init(e, t), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
997
997
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
998
998
|
origin: "string",
|
|
999
999
|
code: "invalid_format",
|
|
@@ -1004,8 +1004,8 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1004
1004
|
continue: !t.abort
|
|
1005
1005
|
});
|
|
1006
1006
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
1007
|
-
}),
|
|
1008
|
-
|
|
1007
|
+
}), pr = /*@__PURE__*/ O("$ZodCheckRegex", (e, t) => {
|
|
1008
|
+
fr.init(e, t), e._zod.check = (n) => {
|
|
1009
1009
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
1010
1010
|
origin: "string",
|
|
1011
1011
|
code: "invalid_format",
|
|
@@ -1016,12 +1016,12 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1016
1016
|
continue: !t.abort
|
|
1017
1017
|
});
|
|
1018
1018
|
};
|
|
1019
|
-
}),
|
|
1020
|
-
t.pattern ??=
|
|
1021
|
-
}),
|
|
1022
|
-
t.pattern ??=
|
|
1023
|
-
}),
|
|
1024
|
-
|
|
1019
|
+
}), mr = /*@__PURE__*/ O("$ZodCheckLowerCase", (e, t) => {
|
|
1020
|
+
t.pattern ??= tr, fr.init(e, t);
|
|
1021
|
+
}), hr = /*@__PURE__*/ O("$ZodCheckUpperCase", (e, t) => {
|
|
1022
|
+
t.pattern ??= nr, fr.init(e, t);
|
|
1023
|
+
}), gr = /*@__PURE__*/ O("$ZodCheckIncludes", (e, t) => {
|
|
1024
|
+
j.init(e, t);
|
|
1025
1025
|
let n = rt(t.includes);
|
|
1026
1026
|
t.pattern = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n), e._zod.check = (n) => {
|
|
1027
1027
|
n.value.includes(t.includes, t.position) || n.issues.push({
|
|
@@ -1034,8 +1034,8 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1034
1034
|
continue: !t.abort
|
|
1035
1035
|
});
|
|
1036
1036
|
};
|
|
1037
|
-
}),
|
|
1038
|
-
|
|
1037
|
+
}), _r = /*@__PURE__*/ O("$ZodCheckStartsWith", (e, t) => {
|
|
1038
|
+
j.init(e, t);
|
|
1039
1039
|
let n = RegExp(`^${rt(t.prefix)}.*`);
|
|
1040
1040
|
t.pattern ??= n, e._zod.check = (n) => {
|
|
1041
1041
|
n.value.startsWith(t.prefix) || n.issues.push({
|
|
@@ -1048,8 +1048,8 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1048
1048
|
continue: !t.abort
|
|
1049
1049
|
});
|
|
1050
1050
|
};
|
|
1051
|
-
}),
|
|
1052
|
-
|
|
1051
|
+
}), vr = /*@__PURE__*/ O("$ZodCheckEndsWith", (e, t) => {
|
|
1052
|
+
j.init(e, t);
|
|
1053
1053
|
let n = RegExp(`.*${rt(t.suffix)}$`);
|
|
1054
1054
|
t.pattern ??= n, e._zod.check = (n) => {
|
|
1055
1055
|
n.value.endsWith(t.suffix) || n.issues.push({
|
|
@@ -1062,11 +1062,11 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1062
1062
|
continue: !t.abort
|
|
1063
1063
|
});
|
|
1064
1064
|
};
|
|
1065
|
-
}),
|
|
1066
|
-
|
|
1065
|
+
}), yr = /*@__PURE__*/ O("$ZodCheckOverwrite", (e, t) => {
|
|
1066
|
+
j.init(e, t), e._zod.check = (e) => {
|
|
1067
1067
|
e.value = t.tx(e.value);
|
|
1068
1068
|
};
|
|
1069
|
-
}),
|
|
1069
|
+
}), br = class {
|
|
1070
1070
|
constructor(e = [], t = {}) {
|
|
1071
1071
|
this.content = [], this.indent = 0, this.args = e, this.closed = t;
|
|
1072
1072
|
}
|
|
@@ -1090,13 +1090,13 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1090
1090
|
let e = Function, t = this?.content ?? [""];
|
|
1091
1091
|
return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
|
|
1092
1092
|
}
|
|
1093
|
-
},
|
|
1093
|
+
}, xr = {
|
|
1094
1094
|
major: 4,
|
|
1095
1095
|
minor: 6,
|
|
1096
1096
|
patch: 5
|
|
1097
|
-
},
|
|
1097
|
+
}, M = /*@__PURE__*/ O("$ZodType", (e, t) => {
|
|
1098
1098
|
var n;
|
|
1099
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1099
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = xr;
|
|
1100
1100
|
let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
|
|
1101
1101
|
for (let t of i) for (let n of t._zod.onattach) n(e);
|
|
1102
1102
|
if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
|
|
@@ -1105,27 +1105,27 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1105
1105
|
else {
|
|
1106
1106
|
let t = (t, n, r) => {
|
|
1107
1107
|
if (t.memo) return t;
|
|
1108
|
-
let i =
|
|
1108
|
+
let i = vt(t), a;
|
|
1109
1109
|
for (let o of n) {
|
|
1110
1110
|
if (o._zod.def.when) {
|
|
1111
|
-
if (
|
|
1111
|
+
if (yt(t) || !o._zod.def.when(t)) continue;
|
|
1112
1112
|
} else if (i) continue;
|
|
1113
1113
|
let n = t.issues.length, s = o._zod.check(t);
|
|
1114
|
-
if (s instanceof Promise && r?.async === !1) throw new
|
|
1114
|
+
if (s instanceof Promise && r?.async === !1) throw new Gt();
|
|
1115
1115
|
if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
|
|
1116
|
-
await s, t.issues.length !== n && (
|
|
1116
|
+
await s, t.issues.length !== n && (St(t.issues, n, e), i ||= vt(t, n));
|
|
1117
1117
|
});
|
|
1118
1118
|
else {
|
|
1119
1119
|
if (t.issues.length === n) continue;
|
|
1120
|
-
|
|
1120
|
+
St(t.issues, n, e), i ||= vt(t, n);
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
1123
|
return a ? a.then(() => t) : t;
|
|
1124
1124
|
}, n = (n, r, a) => {
|
|
1125
|
-
if (
|
|
1125
|
+
if (vt(n)) return n.aborted = !0, n;
|
|
1126
1126
|
let o = t(r, i, a);
|
|
1127
1127
|
if (o instanceof Promise) {
|
|
1128
|
-
if (a.async === !1) throw new
|
|
1128
|
+
if (a.async === !1) throw new Gt();
|
|
1129
1129
|
return o.then((t) => e._zod.parse(t, a));
|
|
1130
1130
|
}
|
|
1131
1131
|
return e._zod.parse(o, a);
|
|
@@ -1144,7 +1144,7 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1144
1144
|
}
|
|
1145
1145
|
let o = e._zod.parse(r, a);
|
|
1146
1146
|
if (o instanceof Promise) {
|
|
1147
|
-
if (a.async === !1) throw new
|
|
1147
|
+
if (a.async === !1) throw new Gt();
|
|
1148
1148
|
return o.then((e) => t(e, i, a));
|
|
1149
1149
|
}
|
|
1150
1150
|
return t(o, i, a);
|
|
@@ -1152,20 +1152,20 @@ var Yn = /^[\s\S]{0,}$/, Xn = /^-?\d+$/, Zn = /^-?\d+(?:\.\d+)?$/, Qn = /^(?:tru
|
|
|
1152
1152
|
}
|
|
1153
1153
|
}, {
|
|
1154
1154
|
get "~standard"() {
|
|
1155
|
-
return
|
|
1155
|
+
return jt(this, "~standard", wr(this));
|
|
1156
1156
|
},
|
|
1157
1157
|
set "~standard"(e) {
|
|
1158
|
-
|
|
1158
|
+
At(this, "~standard", e);
|
|
1159
1159
|
}
|
|
1160
|
-
}),
|
|
1161
|
-
async function
|
|
1160
|
+
}), Sr = (e, t) => e.issues.length ? { issues: e.issues.map((e) => Ct(e, t, A())) } : { value: e.value };
|
|
1161
|
+
async function Cr(e, t) {
|
|
1162
1162
|
let n = { async: !0 };
|
|
1163
|
-
return
|
|
1163
|
+
return Sr(await e._zod.run({
|
|
1164
1164
|
value: t,
|
|
1165
1165
|
issues: []
|
|
1166
1166
|
}, n), n);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function wr(e) {
|
|
1169
1169
|
return {
|
|
1170
1170
|
validate: (t) => {
|
|
1171
1171
|
let n = { async: !1 };
|
|
@@ -1174,16 +1174,16 @@ function Cr(e) {
|
|
|
1174
1174
|
value: t,
|
|
1175
1175
|
issues: []
|
|
1176
1176
|
}, n);
|
|
1177
|
-
if (!(r instanceof Promise)) return
|
|
1177
|
+
if (!(r instanceof Promise)) return Sr(r, n);
|
|
1178
1178
|
} catch {}
|
|
1179
|
-
return
|
|
1179
|
+
return Cr(e, t);
|
|
1180
1180
|
},
|
|
1181
1181
|
vendor: "zod",
|
|
1182
1182
|
version: 1
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1185
|
+
var Tr = /*@__PURE__*/ O("$ZodString", (e, t) => {
|
|
1186
|
+
M.init(e, t), e._zod.pattern = t.pattern ?? Xn, e._zod.parse = (n, r) => {
|
|
1187
1187
|
if (t.coerce) try {
|
|
1188
1188
|
n.value = String(n.value);
|
|
1189
1189
|
} catch {}
|
|
@@ -1194,11 +1194,11 @@ var wr = /*@__PURE__*/ k("$ZodString", (e, t) => {
|
|
|
1194
1194
|
inst: e
|
|
1195
1195
|
}), n;
|
|
1196
1196
|
};
|
|
1197
|
-
}),
|
|
1198
|
-
|
|
1199
|
-
}),
|
|
1200
|
-
t.pattern ??=
|
|
1201
|
-
}),
|
|
1197
|
+
}), N = /*@__PURE__*/ O("$ZodStringFormat", (e, t) => {
|
|
1198
|
+
fr.init(e, t), Tr.init(e, t);
|
|
1199
|
+
}), Er = /*@__PURE__*/ O("$ZodGUID", (e, t) => {
|
|
1200
|
+
t.pattern ??= jn, N.init(e, t);
|
|
1201
|
+
}), Dr = /*@__PURE__*/ O("$ZodUUID", (e, t) => {
|
|
1202
1202
|
if (t.version) {
|
|
1203
1203
|
let e = {
|
|
1204
1204
|
v1: 1,
|
|
@@ -1211,24 +1211,24 @@ var wr = /*@__PURE__*/ k("$ZodString", (e, t) => {
|
|
|
1211
1211
|
v8: 8
|
|
1212
1212
|
}[t.version];
|
|
1213
1213
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
1214
|
-
t.pattern ??=
|
|
1215
|
-
} else t.pattern ??=
|
|
1216
|
-
|
|
1217
|
-
}),
|
|
1218
|
-
t.pattern ??=
|
|
1214
|
+
t.pattern ??= Mn(e);
|
|
1215
|
+
} else t.pattern ??= Mn();
|
|
1216
|
+
N.init(e, t);
|
|
1217
|
+
}), Or = /*@__PURE__*/ O("$ZodEmail", (e, t) => {
|
|
1218
|
+
t.pattern ??= Nn, N.init(e, t);
|
|
1219
1219
|
});
|
|
1220
|
-
function
|
|
1220
|
+
function kr(e) {
|
|
1221
1221
|
try {
|
|
1222
1222
|
return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
|
|
1223
1223
|
} catch {
|
|
1224
1224
|
return !1;
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
function kr(e, t) {
|
|
1228
|
-
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? Or(e) || 2 : Ar(e, t);
|
|
1229
|
-
}
|
|
1230
1227
|
function Ar(e, t) {
|
|
1231
|
-
|
|
1228
|
+
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? kr(e) || 2 : jr(e, t);
|
|
1229
|
+
}
|
|
1230
|
+
function jr(e, t) {
|
|
1231
|
+
if (!t.normalize && t.protocol?.source === Hn.source && !/^https?:\/\//i.test(e)) return 1;
|
|
1232
1232
|
try {
|
|
1233
1233
|
if (typeof URL < "u") {
|
|
1234
1234
|
let t = URL;
|
|
@@ -1239,20 +1239,20 @@ function Ar(e, t) {
|
|
|
1239
1239
|
return 2;
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
var
|
|
1243
|
-
function
|
|
1244
|
-
return e.replace(
|
|
1242
|
+
var Mr = /[\t\n\r]/g;
|
|
1243
|
+
function Nr(e) {
|
|
1244
|
+
return e.replace(Mr, "");
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Pr(e, t) {
|
|
1247
1247
|
return t.lastIndex = 0, t.test(e.hostname);
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Fr(e, t) {
|
|
1250
1250
|
return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
|
|
1251
1251
|
}
|
|
1252
|
-
var
|
|
1253
|
-
|
|
1252
|
+
var Ir = /*@__PURE__*/ O("$ZodURL", (e, t) => {
|
|
1253
|
+
N.init(e, t), e._zod.check = (n) => {
|
|
1254
1254
|
try {
|
|
1255
|
-
let r = n.value.trim(), i =
|
|
1255
|
+
let r = n.value.trim(), i = Ar(r, t);
|
|
1256
1256
|
if (i === 1) {
|
|
1257
1257
|
n.issues.push({
|
|
1258
1258
|
code: "invalid_format",
|
|
@@ -1275,10 +1275,10 @@ var Fr = /*@__PURE__*/ k("$ZodURL", (e, t) => {
|
|
|
1275
1275
|
return;
|
|
1276
1276
|
}
|
|
1277
1277
|
if (i === !0) {
|
|
1278
|
-
n.value =
|
|
1278
|
+
n.value = Nr(r);
|
|
1279
1279
|
return;
|
|
1280
1280
|
}
|
|
1281
|
-
t.hostname && !
|
|
1281
|
+
t.hostname && !Pr(i, t.hostname) && n.issues.push({
|
|
1282
1282
|
code: "invalid_format",
|
|
1283
1283
|
format: "url",
|
|
1284
1284
|
note: "Invalid hostname",
|
|
@@ -1286,7 +1286,7 @@ var Fr = /*@__PURE__*/ k("$ZodURL", (e, t) => {
|
|
|
1286
1286
|
input: n.value,
|
|
1287
1287
|
inst: e,
|
|
1288
1288
|
continue: !t.abort
|
|
1289
|
-
}), t.protocol && !
|
|
1289
|
+
}), t.protocol && !Fr(i, t.protocol) && n.issues.push({
|
|
1290
1290
|
code: "invalid_format",
|
|
1291
1291
|
format: "url",
|
|
1292
1292
|
note: "Invalid protocol",
|
|
@@ -1294,7 +1294,7 @@ var Fr = /*@__PURE__*/ k("$ZodURL", (e, t) => {
|
|
|
1294
1294
|
input: n.value,
|
|
1295
1295
|
inst: e,
|
|
1296
1296
|
continue: !t.abort
|
|
1297
|
-
}), n.value = t.normalize ? i.href :
|
|
1297
|
+
}), n.value = t.normalize ? i.href : Nr(r);
|
|
1298
1298
|
return;
|
|
1299
1299
|
} catch {
|
|
1300
1300
|
n.issues.push({
|
|
@@ -1306,38 +1306,38 @@ var Fr = /*@__PURE__*/ k("$ZodURL", (e, t) => {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
|
-
}),
|
|
1310
|
-
t.pattern ??=
|
|
1311
|
-
}),
|
|
1309
|
+
}), Lr = /*@__PURE__*/ O("$ZodEmoji", (e, t) => {
|
|
1310
|
+
t.pattern ??= Fn(), N.init(e, t);
|
|
1311
|
+
}), Rr = /*@__PURE__*/ O("$ZodNanoID", (e, t) => {
|
|
1312
1312
|
if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
|
|
1313
|
-
t.pattern ??= t.length === void 0 ?
|
|
1314
|
-
}),
|
|
1315
|
-
t.pattern ??=
|
|
1316
|
-
}),
|
|
1317
|
-
t.pattern ??=
|
|
1318
|
-
}),
|
|
1319
|
-
t.pattern ??=
|
|
1320
|
-
}),
|
|
1321
|
-
t.pattern ??=
|
|
1322
|
-
}),
|
|
1323
|
-
t.pattern ??=
|
|
1324
|
-
}),
|
|
1325
|
-
t.pattern ??=
|
|
1326
|
-
}),
|
|
1327
|
-
t.pattern ??=
|
|
1328
|
-
}),
|
|
1329
|
-
t.pattern ??=
|
|
1330
|
-
}),
|
|
1331
|
-
t.pattern ??=
|
|
1332
|
-
}),
|
|
1333
|
-
t.pattern ??=
|
|
1334
|
-
}),
|
|
1335
|
-
function
|
|
1336
|
-
return
|
|
1337
|
-
}
|
|
1338
|
-
var
|
|
1339
|
-
t.pattern ??=
|
|
1340
|
-
|
|
1313
|
+
t.pattern ??= t.length === void 0 ? On : kn(t.length), N.init(e, t);
|
|
1314
|
+
}), zr = /*@__PURE__*/ O("$ZodCUID", (e, t) => {
|
|
1315
|
+
t.pattern ??= Cn, N.init(e, t);
|
|
1316
|
+
}), Br = /*@__PURE__*/ O("$ZodCUID2", (e, t) => {
|
|
1317
|
+
t.pattern ??= wn, N.init(e, t);
|
|
1318
|
+
}), Vr = /*@__PURE__*/ O("$ZodULID", (e, t) => {
|
|
1319
|
+
t.pattern ??= Tn, N.init(e, t);
|
|
1320
|
+
}), Hr = /*@__PURE__*/ O("$ZodXID", (e, t) => {
|
|
1321
|
+
t.pattern ??= En, N.init(e, t);
|
|
1322
|
+
}), Ur = /*@__PURE__*/ O("$ZodKSUID", (e, t) => {
|
|
1323
|
+
t.pattern ??= Dn, N.init(e, t);
|
|
1324
|
+
}), Wr = /*@__PURE__*/ O("$ZodISODateTime", (e, t) => {
|
|
1325
|
+
t.pattern ??= Yn(t), N.init(e, t);
|
|
1326
|
+
}), Gr = /*@__PURE__*/ O("$ZodISODate", (e, t) => {
|
|
1327
|
+
t.pattern ??= Kn, N.init(e, t);
|
|
1328
|
+
}), Kr = /*@__PURE__*/ O("$ZodISOTime", (e, t) => {
|
|
1329
|
+
t.pattern ??= Jn(t), N.init(e, t);
|
|
1330
|
+
}), qr = /*@__PURE__*/ O("$ZodISODuration", (e, t) => {
|
|
1331
|
+
t.pattern ??= An, N.init(e, t);
|
|
1332
|
+
}), Jr = /*@__PURE__*/ O("$ZodIPv4", (e, t) => {
|
|
1333
|
+
t.pattern ??= In, N.init(e, t);
|
|
1334
|
+
}), Yr = /^[0-9a-fA-F:.]+$/;
|
|
1335
|
+
function Xr(e) {
|
|
1336
|
+
return Yr.test(e) ? kr(`http://[${e}]`) : !1;
|
|
1337
|
+
}
|
|
1338
|
+
var Zr = /*@__PURE__*/ O("$ZodIPv6", (e, t) => {
|
|
1339
|
+
t.pattern ??= Ln, N.init(e, t), e._zod.check = (n) => {
|
|
1340
|
+
Xr(n.value) || n.issues.push({
|
|
1341
1341
|
code: "invalid_format",
|
|
1342
1342
|
format: "ipv6",
|
|
1343
1343
|
input: n.value,
|
|
@@ -1345,20 +1345,20 @@ var Xr = /*@__PURE__*/ k("$ZodIPv6", (e, t) => {
|
|
|
1345
1345
|
continue: !t.abort
|
|
1346
1346
|
});
|
|
1347
1347
|
};
|
|
1348
|
-
}),
|
|
1349
|
-
t.pattern ??=
|
|
1348
|
+
}), Qr = /*@__PURE__*/ O("$ZodCIDRv4", (e, t) => {
|
|
1349
|
+
t.pattern ??= Rn, N.init(e, t);
|
|
1350
1350
|
});
|
|
1351
|
-
function
|
|
1351
|
+
function $r(e) {
|
|
1352
1352
|
let t = e.split("/");
|
|
1353
1353
|
if (t.length !== 2) return !1;
|
|
1354
1354
|
let [n, r] = t;
|
|
1355
1355
|
if (!r) return !1;
|
|
1356
1356
|
let i = Number(r);
|
|
1357
|
-
return `${i}` !== r || i < 0 || i > 128 ? !1 :
|
|
1357
|
+
return `${i}` !== r || i < 0 || i > 128 ? !1 : Xr(n);
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1360
|
-
t.pattern ??=
|
|
1361
|
-
|
|
1359
|
+
var ei = /*@__PURE__*/ O("$ZodCIDRv6", (e, t) => {
|
|
1360
|
+
t.pattern ??= zn, N.init(e, t), e._zod.check = (n) => {
|
|
1361
|
+
$r(n.value) || n.issues.push({
|
|
1362
1362
|
code: "invalid_format",
|
|
1363
1363
|
format: "cidrv6",
|
|
1364
1364
|
input: n.value,
|
|
@@ -1367,7 +1367,7 @@ var $r = /*@__PURE__*/ k("$ZodCIDRv6", (e, t) => {
|
|
|
1367
1367
|
});
|
|
1368
1368
|
};
|
|
1369
1369
|
});
|
|
1370
|
-
function
|
|
1370
|
+
function ti(e) {
|
|
1371
1371
|
if (e === "") return !0;
|
|
1372
1372
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
1373
1373
|
try {
|
|
@@ -1376,9 +1376,9 @@ function ei(e) {
|
|
|
1376
1376
|
return !1;
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
var
|
|
1380
|
-
t.pattern ??=
|
|
1381
|
-
|
|
1379
|
+
var ni = /^[0-9a-zA-Z+/]*={0,2}$/, ri = /*@__PURE__*/ O("$ZodBase64", (e, t) => {
|
|
1380
|
+
t.pattern ??= ni, N.init(e, t), e._zod.check = (n) => {
|
|
1381
|
+
ti(n.value) || n.issues.push({
|
|
1382
1382
|
code: "invalid_format",
|
|
1383
1383
|
format: "base64",
|
|
1384
1384
|
input: n.value,
|
|
@@ -1386,15 +1386,15 @@ var ti = /^[0-9a-zA-Z+/]*={0,2}$/, ni = /*@__PURE__*/ k("$ZodBase64", (e, t) =>
|
|
|
1386
1386
|
continue: !t.abort
|
|
1387
1387
|
});
|
|
1388
1388
|
};
|
|
1389
|
-
}),
|
|
1390
|
-
function
|
|
1391
|
-
if (!
|
|
1389
|
+
}), ii = /^[A-Za-z0-9_-]*$/;
|
|
1390
|
+
function ai(e) {
|
|
1391
|
+
if (!ii.test(e)) return !1;
|
|
1392
1392
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
1393
|
-
return
|
|
1393
|
+
return ti(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
1394
1394
|
}
|
|
1395
|
-
var
|
|
1396
|
-
t.pattern ??=
|
|
1397
|
-
|
|
1395
|
+
var oi = /*@__PURE__*/ O("$ZodBase64URL", (e, t) => {
|
|
1396
|
+
t.pattern ??= ii, N.init(e, t), e._zod.check = (n) => {
|
|
1397
|
+
ai(n.value) || n.issues.push({
|
|
1398
1398
|
code: "invalid_format",
|
|
1399
1399
|
format: "base64url",
|
|
1400
1400
|
input: n.value,
|
|
@@ -1402,10 +1402,10 @@ var ai = /*@__PURE__*/ k("$ZodBase64URL", (e, t) => {
|
|
|
1402
1402
|
continue: !t.abort
|
|
1403
1403
|
});
|
|
1404
1404
|
};
|
|
1405
|
-
}),
|
|
1406
|
-
t.pattern ??=
|
|
1405
|
+
}), si = /*@__PURE__*/ O("$ZodE164", (e, t) => {
|
|
1406
|
+
t.pattern ??= Un, N.init(e, t);
|
|
1407
1407
|
});
|
|
1408
|
-
function
|
|
1408
|
+
function ci(e, t = null) {
|
|
1409
1409
|
try {
|
|
1410
1410
|
let n = e.split(".");
|
|
1411
1411
|
if (n.length !== 3) return !1;
|
|
@@ -1417,9 +1417,9 @@ function si(e, t = null) {
|
|
|
1417
1417
|
return !1;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
var
|
|
1421
|
-
|
|
1422
|
-
|
|
1420
|
+
var li = /*@__PURE__*/ O("$ZodJWT", (e, t) => {
|
|
1421
|
+
N.init(e, t), e._zod.check = (n) => {
|
|
1422
|
+
ci(n.value, t.alg) || n.issues.push({
|
|
1423
1423
|
code: "invalid_format",
|
|
1424
1424
|
format: "jwt",
|
|
1425
1425
|
input: n.value,
|
|
@@ -1427,8 +1427,8 @@ var ci = /*@__PURE__*/ k("$ZodJWT", (e, t) => {
|
|
|
1427
1427
|
continue: !t.abort
|
|
1428
1428
|
});
|
|
1429
1429
|
};
|
|
1430
|
-
}),
|
|
1431
|
-
|
|
1430
|
+
}), ui = /*@__PURE__*/ O("$ZodNumber", (e, t) => {
|
|
1431
|
+
M.init(e, t), e._zod.pattern = Qn, e._zod.parse = (n, r) => {
|
|
1432
1432
|
if (t.coerce) try {
|
|
1433
1433
|
n.value = Number(n.value);
|
|
1434
1434
|
} catch {}
|
|
@@ -1443,10 +1443,10 @@ var ci = /*@__PURE__*/ k("$ZodJWT", (e, t) => {
|
|
|
1443
1443
|
...a ? { received: a } : {}
|
|
1444
1444
|
}), n;
|
|
1445
1445
|
};
|
|
1446
|
-
}),
|
|
1447
|
-
|
|
1448
|
-
}),
|
|
1449
|
-
|
|
1446
|
+
}), di = /*@__PURE__*/ O("$ZodNumberFormat", (e, t) => {
|
|
1447
|
+
cr.init(e, t), ui.init(e, t);
|
|
1448
|
+
}), fi = /*@__PURE__*/ O("$ZodBoolean", (e, t) => {
|
|
1449
|
+
M.init(e, t), e._zod.pattern = $n, e._zod.parse = (n, r) => {
|
|
1450
1450
|
if (t.coerce) try {
|
|
1451
1451
|
n.value = !!n.value;
|
|
1452
1452
|
} catch {}
|
|
@@ -1458,8 +1458,8 @@ var ci = /*@__PURE__*/ k("$ZodJWT", (e, t) => {
|
|
|
1458
1458
|
inst: e
|
|
1459
1459
|
}), n;
|
|
1460
1460
|
};
|
|
1461
|
-
}),
|
|
1462
|
-
|
|
1461
|
+
}), pi = /*@__PURE__*/ O("$ZodNull", (e, t) => {
|
|
1462
|
+
M.init(e, t), e._zod.pattern = er, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1463
1463
|
let r = t.value;
|
|
1464
1464
|
return r === null || t.issues.push({
|
|
1465
1465
|
expected: "null",
|
|
@@ -1468,22 +1468,22 @@ var ci = /*@__PURE__*/ k("$ZodJWT", (e, t) => {
|
|
|
1468
1468
|
inst: e
|
|
1469
1469
|
}), t;
|
|
1470
1470
|
};
|
|
1471
|
-
}),
|
|
1472
|
-
|
|
1473
|
-
}),
|
|
1474
|
-
|
|
1471
|
+
}), mi = /*@__PURE__*/ O("$ZodUnknown", (e, t) => {
|
|
1472
|
+
M.init(e, t), e._zod.parse = (e) => e;
|
|
1473
|
+
}), hi = /*@__PURE__*/ O("$ZodNever", (e, t) => {
|
|
1474
|
+
M.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1475
1475
|
expected: "never",
|
|
1476
1476
|
code: "invalid_type",
|
|
1477
1477
|
input: t.value,
|
|
1478
1478
|
inst: e
|
|
1479
1479
|
}), t);
|
|
1480
1480
|
});
|
|
1481
|
-
function
|
|
1482
|
-
e.issues.length && t.issues.push(...
|
|
1481
|
+
function gi(e, t, n) {
|
|
1482
|
+
e.issues.length && t.issues.push(...bt(n, e.issues)), t.value[n] = e.value;
|
|
1483
1483
|
}
|
|
1484
|
-
var
|
|
1485
|
-
|
|
1486
|
-
let n =
|
|
1484
|
+
var _i = /*@__PURE__*/ O("$ZodArray", (e, t) => {
|
|
1485
|
+
M.init(e, t);
|
|
1486
|
+
let n = k.memoizer;
|
|
1487
1487
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1488
1488
|
let a = r.value;
|
|
1489
1489
|
if (!Array.isArray(a)) return r.issues.push({
|
|
@@ -1499,18 +1499,18 @@ var gi = /*@__PURE__*/ k("$ZodArray", (e, t) => {
|
|
|
1499
1499
|
value: n,
|
|
1500
1500
|
issues: []
|
|
1501
1501
|
}, i);
|
|
1502
|
-
if (c instanceof Promise) o.push(c.then((t) =>
|
|
1503
|
-
else if (
|
|
1502
|
+
if (c instanceof Promise) o.push(c.then((t) => gi(t, r, e)));
|
|
1503
|
+
else if (gi(c, r, e), s && c.issues.length !== 0 && vt(c)) break;
|
|
1504
1504
|
}
|
|
1505
1505
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1506
1506
|
};
|
|
1507
1507
|
});
|
|
1508
|
-
function
|
|
1508
|
+
function vi(e, t, n, r, i, a) {
|
|
1509
1509
|
let o = n in r, s = a === "optional";
|
|
1510
1510
|
if (!(!o && s && i === "optional")) {
|
|
1511
1511
|
if (e.issues.length) {
|
|
1512
1512
|
if (i !== void 0 && s && !o) return;
|
|
1513
|
-
t.issues.push(...
|
|
1513
|
+
t.issues.push(...bt(n, e.issues));
|
|
1514
1514
|
}
|
|
1515
1515
|
if (!o && i === void 0) {
|
|
1516
1516
|
e.issues.length || t.issues.push({
|
|
@@ -1524,9 +1524,9 @@ function _i(e, t, n, r, i, a) {
|
|
|
1524
1524
|
e.value === void 0 ? (o || i === "defaulted" && !s) && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1528
|
-
function
|
|
1529
|
-
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n :
|
|
1527
|
+
var yi = [];
|
|
1528
|
+
function bi(e) {
|
|
1529
|
+
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : yi, i = r.length ? [...t, ...r] : t;
|
|
1530
1530
|
for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
|
|
1531
1531
|
let a = ot(e.shape);
|
|
1532
1532
|
return {
|
|
@@ -1538,11 +1538,11 @@ function yi(e) {
|
|
|
1538
1538
|
optionalKeys: new Set(a)
|
|
1539
1539
|
};
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function xi(e, t, n, r, i, a, o) {
|
|
1542
1542
|
let s = [], c = i.keySet, l = i.catchall._zod, u = l.def.type, d = l.optin, f = l.optout, p = 0;
|
|
1543
1543
|
for (let i in t) {
|
|
1544
1544
|
if (o && n.issues.length !== p) {
|
|
1545
|
-
if (
|
|
1545
|
+
if (vt(n, p)) break;
|
|
1546
1546
|
p = n.issues.length;
|
|
1547
1547
|
}
|
|
1548
1548
|
if (c.has(i)) continue;
|
|
@@ -1558,7 +1558,7 @@ function bi(e, t, n, r, i, a, o) {
|
|
|
1558
1558
|
value: t[i],
|
|
1559
1559
|
issues: []
|
|
1560
1560
|
}, r);
|
|
1561
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1561
|
+
a instanceof Promise ? e.push(a.then((e) => vi(e, n, i, t, d, f))) : vi(a, n, i, t, d, f);
|
|
1562
1562
|
}
|
|
1563
1563
|
return s.length && n.issues.push({
|
|
1564
1564
|
code: "unrecognized_keys",
|
|
@@ -1568,8 +1568,8 @@ function bi(e, t, n, r, i, a, o) {
|
|
|
1568
1568
|
continue: !0
|
|
1569
1569
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1570
1570
|
}
|
|
1571
|
-
var
|
|
1572
|
-
|
|
1571
|
+
var Si = /*@__PURE__*/ O("$ZodObject", (e, t) => {
|
|
1572
|
+
M.init(e, t);
|
|
1573
1573
|
let n = Object.getOwnPropertyDescriptor(t, "shape"), r = n?.get ? n.get.raw : t.shape ?? {};
|
|
1574
1574
|
if (r) {
|
|
1575
1575
|
let e = () => {
|
|
@@ -1578,8 +1578,8 @@ var xi = /*@__PURE__*/ k("$ZodObject", (e, t) => {
|
|
|
1578
1578
|
};
|
|
1579
1579
|
e.raw = r, Object.defineProperty(t, "shape", { get: e });
|
|
1580
1580
|
}
|
|
1581
|
-
let i = Re(() =>
|
|
1582
|
-
|
|
1581
|
+
let i = Re(() => bi(t));
|
|
1582
|
+
D(e, "propValues", (e) => {
|
|
1583
1583
|
let t = e.def.shape, n = {};
|
|
1584
1584
|
for (let e in t) {
|
|
1585
1585
|
let r = t[e]._zod;
|
|
@@ -1591,7 +1591,7 @@ var xi = /*@__PURE__*/ k("$ZodObject", (e, t) => {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
return n;
|
|
1593
1593
|
});
|
|
1594
|
-
let a = Qe, o = t.catchall, s, c =
|
|
1594
|
+
let a = Qe, o = t.catchall, s, c = k.memoizer;
|
|
1595
1595
|
c?.attach(e), e._zod.parse = (t, n) => {
|
|
1596
1596
|
s ??= i.value;
|
|
1597
1597
|
let r = t.value;
|
|
@@ -1605,7 +1605,7 @@ var xi = /*@__PURE__*/ k("$ZodObject", (e, t) => {
|
|
|
1605
1605
|
let l = [], u = s.shape, d = n?.abortEarly, f = t.issues.length;
|
|
1606
1606
|
for (let e of s.allKeys) {
|
|
1607
1607
|
if (d && t.issues.length !== f) {
|
|
1608
|
-
if (
|
|
1608
|
+
if (vt(t, f)) break;
|
|
1609
1609
|
f = t.issues.length;
|
|
1610
1610
|
}
|
|
1611
1611
|
if (e === "__proto__") continue;
|
|
@@ -1613,14 +1613,14 @@ var xi = /*@__PURE__*/ k("$ZodObject", (e, t) => {
|
|
|
1613
1613
|
value: r[e],
|
|
1614
1614
|
issues: []
|
|
1615
1615
|
}, n);
|
|
1616
|
-
s instanceof Promise ? l.push(s.then((n) =>
|
|
1616
|
+
s instanceof Promise ? l.push(s.then((n) => vi(n, t, e, r, a, o))) : vi(s, t, e, r, a, o);
|
|
1617
1617
|
}
|
|
1618
|
-
return o ?
|
|
1618
|
+
return o ? xi(l, r, t, n, i.value, e, d === !0) : l.length ? Promise.all(l).then(() => t) : t;
|
|
1619
1619
|
};
|
|
1620
|
-
}),
|
|
1621
|
-
|
|
1622
|
-
let n = e._zod.parse, r = Re(() =>
|
|
1623
|
-
let n = r.value, a = n.symbolKeys, o = new
|
|
1620
|
+
}), Ci = /*@__PURE__*/ O("$ZodObjectJIT", (e, t) => {
|
|
1621
|
+
Si.init(e, t);
|
|
1622
|
+
let n = e._zod.parse, r = Re(() => bi(t)), i = k.memoizer, a = (t) => {
|
|
1623
|
+
let n = r.value, a = n.symbolKeys, o = new br(["payload", "ctx"], {
|
|
1624
1624
|
shape: t,
|
|
1625
1625
|
inst: e,
|
|
1626
1626
|
memo: i,
|
|
@@ -1689,11 +1689,11 @@ var xi = /*@__PURE__*/ k("$ZodObject", (e, t) => {
|
|
|
1689
1689
|
`);
|
|
1690
1690
|
}
|
|
1691
1691
|
return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
|
|
1692
|
-
}, o, s = Qe, c = !
|
|
1692
|
+
}, o, s = Qe, c = !k.jitless, l = c && $e.value, u = t.catchall, d;
|
|
1693
1693
|
e._zod.parse = (i, f) => {
|
|
1694
1694
|
d ??= r.value;
|
|
1695
1695
|
let p = i.value;
|
|
1696
|
-
return s(p) ? c && l && f?.async === !1 && f.jitless !== !0 ? (o ||= a(t.shape), i = o(i, f), u ?
|
|
1696
|
+
return s(p) ? c && l && f?.async === !1 && f.jitless !== !0 ? (o ||= a(t.shape), i = o(i, f), u ? xi([], p, i, f, d, e, f?.abortEarly === !0) : i) : n(i, f) : (i.issues.push({
|
|
1697
1697
|
expected: "object",
|
|
1698
1698
|
code: "invalid_type",
|
|
1699
1699
|
input: p,
|
|
@@ -1701,20 +1701,20 @@ var xi = /*@__PURE__*/ k("$ZodObject", (e, t) => {
|
|
|
1701
1701
|
}), i);
|
|
1702
1702
|
};
|
|
1703
1703
|
});
|
|
1704
|
-
function
|
|
1704
|
+
function wi(e, t, n, r) {
|
|
1705
1705
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1706
|
-
let i = e.filter((e) => !
|
|
1706
|
+
let i = e.filter((e) => !vt(e));
|
|
1707
1707
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
1708
1708
|
code: "invalid_union",
|
|
1709
1709
|
input: t.value,
|
|
1710
1710
|
inst: n,
|
|
1711
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1711
|
+
errors: e.map((e) => e.issues.map((e) => Ct(e, r, A())))
|
|
1712
1712
|
}), t);
|
|
1713
1713
|
}
|
|
1714
|
-
var
|
|
1715
|
-
|
|
1714
|
+
var Ti = /*@__PURE__*/ O("$ZodUnion", (e, t) => {
|
|
1715
|
+
M.init(e, t), D(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), D(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), D(e, "values", (e) => {
|
|
1716
1716
|
if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1717
|
-
}),
|
|
1717
|
+
}), D(e, "pattern", (e) => {
|
|
1718
1718
|
if (e.def.options.every((e) => e._zod.pattern)) {
|
|
1719
1719
|
let t = e.def.options.map((e) => e._zod.pattern);
|
|
1720
1720
|
return RegExp(`^(${t.map((e) => Be(e.source)).join("|")})$`);
|
|
@@ -1735,10 +1735,10 @@ var wi = /*@__PURE__*/ k("$ZodUnion", (e, t) => {
|
|
|
1735
1735
|
o.push(t);
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
|
-
return a ? Promise.all(o).then((t) =>
|
|
1738
|
+
return a ? Promise.all(o).then((t) => wi(t, r, e, i)) : wi(o, r, e, i);
|
|
1739
1739
|
};
|
|
1740
1740
|
});
|
|
1741
|
-
function
|
|
1741
|
+
function Ei(e) {
|
|
1742
1742
|
let t = /* @__PURE__ */ new Map();
|
|
1743
1743
|
for (let n of e.options) {
|
|
1744
1744
|
let r = n._zod.propValues?.[e.discriminator];
|
|
@@ -1750,10 +1750,10 @@ function Ti(e) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
return t;
|
|
1752
1752
|
}
|
|
1753
|
-
var
|
|
1754
|
-
t.inclusive = !1,
|
|
1753
|
+
var Di = /*@__PURE__*/ O("$ZodDiscriminatedUnion", (e, t) => {
|
|
1754
|
+
t.inclusive = !1, Ti.init(e, t);
|
|
1755
1755
|
let n = e._zod.parse;
|
|
1756
|
-
|
|
1756
|
+
D(e, "propValues", (e) => {
|
|
1757
1757
|
let t = {}, n = 0;
|
|
1758
1758
|
for (let r of e.def.options) {
|
|
1759
1759
|
let i = r._zod.propValues;
|
|
@@ -1769,7 +1769,7 @@ var Ei = /*@__PURE__*/ k("$ZodDiscriminatedUnion", (e, t) => {
|
|
|
1769
1769
|
let r = We(e._zod.def);
|
|
1770
1770
|
if (r && !Object.prototype.hasOwnProperty.call(r, t.discriminator)) throw Error(`Invalid discriminated union option at index "${n}"`);
|
|
1771
1771
|
});
|
|
1772
|
-
let r = Re(() =>
|
|
1772
|
+
let r = Re(() => Ei(t));
|
|
1773
1773
|
e._zod.parse = (i, a) => {
|
|
1774
1774
|
let o = i.value;
|
|
1775
1775
|
if (!Qe(o)) return i.issues.push({
|
|
@@ -1790,8 +1790,8 @@ var Ei = /*@__PURE__*/ k("$ZodDiscriminatedUnion", (e, t) => {
|
|
|
1790
1790
|
inst: e
|
|
1791
1791
|
}), i);
|
|
1792
1792
|
};
|
|
1793
|
-
}),
|
|
1794
|
-
|
|
1793
|
+
}), Oi = /*@__PURE__*/ O("$ZodIntersection", (e, t) => {
|
|
1794
|
+
M.init(e, t), e._zod.parse = (e, n) => {
|
|
1795
1795
|
let r = e.value, i = t.left._zod.run({
|
|
1796
1796
|
value: r,
|
|
1797
1797
|
issues: []
|
|
@@ -1799,10 +1799,10 @@ var Ei = /*@__PURE__*/ k("$ZodDiscriminatedUnion", (e, t) => {
|
|
|
1799
1799
|
value: r,
|
|
1800
1800
|
issues: []
|
|
1801
1801
|
}, n);
|
|
1802
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1802
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Ai(e, t, n)) : Ai(e, i, a);
|
|
1803
1803
|
};
|
|
1804
1804
|
});
|
|
1805
|
-
function
|
|
1805
|
+
function ki(e, t) {
|
|
1806
1806
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1807
1807
|
valid: !0,
|
|
1808
1808
|
data: e
|
|
@@ -1815,7 +1815,7 @@ function Oi(e, t) {
|
|
|
1815
1815
|
Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
|
|
1816
1816
|
for (let n of r) {
|
|
1817
1817
|
if (n === "__proto__") continue;
|
|
1818
|
-
let r =
|
|
1818
|
+
let r = ki(e[n], t[n]);
|
|
1819
1819
|
if (!r.valid) return {
|
|
1820
1820
|
valid: !1,
|
|
1821
1821
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1834,7 +1834,7 @@ function Oi(e, t) {
|
|
|
1834
1834
|
};
|
|
1835
1835
|
let n = [];
|
|
1836
1836
|
for (let r = 0; r < e.length; r++) {
|
|
1837
|
-
let i = e[r], a = t[r], o =
|
|
1837
|
+
let i = e[r], a = t[r], o = ki(i, a);
|
|
1838
1838
|
if (!o.valid) return {
|
|
1839
1839
|
valid: !1,
|
|
1840
1840
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1851,7 +1851,7 @@ function Oi(e, t) {
|
|
|
1851
1851
|
mergeErrorPath: []
|
|
1852
1852
|
};
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function Ai(e, t, n) {
|
|
1855
1855
|
let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
|
|
1856
1856
|
let n;
|
|
1857
1857
|
if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
|
|
@@ -1873,16 +1873,16 @@ function ki(e, t, n) {
|
|
|
1873
1873
|
});
|
|
1874
1874
|
for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
|
|
1875
1875
|
}
|
|
1876
|
-
let c =
|
|
1876
|
+
let c = ki(t.value, n.value);
|
|
1877
1877
|
if (!c.valid) {
|
|
1878
|
-
if (
|
|
1878
|
+
if (vt(e)) return e;
|
|
1879
1879
|
throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
|
|
1880
1880
|
}
|
|
1881
1881
|
return e.value = c.data, e;
|
|
1882
1882
|
}
|
|
1883
|
-
var
|
|
1884
|
-
|
|
1885
|
-
let n =
|
|
1883
|
+
var ji = /*@__PURE__*/ O("$ZodRecord", (e, t) => {
|
|
1884
|
+
M.init(e, t);
|
|
1885
|
+
let n = k.memoizer;
|
|
1886
1886
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1887
1887
|
let a = r.value;
|
|
1888
1888
|
if (!et(a)) return r.issues.push({
|
|
@@ -1906,7 +1906,7 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
1906
1906
|
r.issues.push({
|
|
1907
1907
|
code: "invalid_key",
|
|
1908
1908
|
origin: "record",
|
|
1909
|
-
issues: s.issues.map((e) =>
|
|
1909
|
+
issues: s.issues.map((e) => Ct(e, i, A())),
|
|
1910
1910
|
input: n,
|
|
1911
1911
|
path: [n],
|
|
1912
1912
|
inst: e
|
|
@@ -1920,8 +1920,8 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
1920
1920
|
issues: []
|
|
1921
1921
|
}, i);
|
|
1922
1922
|
u instanceof Promise ? o.push(u.then((e) => {
|
|
1923
|
-
e.issues.length && r.issues.push(...
|
|
1924
|
-
})) : (u.issues.length && r.issues.push(...
|
|
1923
|
+
e.issues.length && r.issues.push(...bt(n, e.issues)), r.value[l] = e.value;
|
|
1924
|
+
})) : (u.issues.length && r.issues.push(...bt(n, u.issues)), r.value[l] = u.value);
|
|
1925
1925
|
}
|
|
1926
1926
|
let l;
|
|
1927
1927
|
for (let e in a) if (!c.has(e)) {
|
|
@@ -1947,7 +1947,7 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
1947
1947
|
issues: []
|
|
1948
1948
|
}, i);
|
|
1949
1949
|
if (l instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
1950
|
-
if (typeof n == "string" &&
|
|
1950
|
+
if (typeof n == "string" && Qn.test(n) && l.issues.length) {
|
|
1951
1951
|
let e = t.keyType._zod.run({
|
|
1952
1952
|
value: Number(n),
|
|
1953
1953
|
issues: []
|
|
@@ -1959,7 +1959,7 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
1959
1959
|
t.mode === "loose" ? r.value[n] = a[n] : s ? (c ??= [], c.push(n)) : r.issues.push({
|
|
1960
1960
|
code: "invalid_key",
|
|
1961
1961
|
origin: "record",
|
|
1962
|
-
issues: l.issues.map((e) =>
|
|
1962
|
+
issues: l.issues.map((e) => Ct(e, i, A())),
|
|
1963
1963
|
input: n,
|
|
1964
1964
|
path: [n],
|
|
1965
1965
|
inst: e
|
|
@@ -1973,8 +1973,8 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
1973
1973
|
issues: []
|
|
1974
1974
|
}, i);
|
|
1975
1975
|
d instanceof Promise ? o.push(d.then((e) => {
|
|
1976
|
-
e.issues.length && r.issues.push(...
|
|
1977
|
-
})) : (d.issues.length && r.issues.push(...
|
|
1976
|
+
e.issues.length && r.issues.push(...bt(n, e.issues)), r.value[u] = e.value;
|
|
1977
|
+
})) : (d.issues.length && r.issues.push(...bt(n, d.issues)), r.value[u] = d.value);
|
|
1978
1978
|
}
|
|
1979
1979
|
c && c.length > 0 && r.issues.push({
|
|
1980
1980
|
code: "unrecognized_keys",
|
|
@@ -1986,10 +1986,10 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1988
1988
|
};
|
|
1989
|
-
}),
|
|
1990
|
-
|
|
1989
|
+
}), Mi = /*@__PURE__*/ O("$ZodEnum", (e, t) => {
|
|
1990
|
+
M.init(e, t);
|
|
1991
1991
|
let n = Pe(t.entries), r = new Set(n);
|
|
1992
|
-
e._zod.values = r,
|
|
1992
|
+
e._zod.values = r, D(e, "pattern", (e) => {
|
|
1993
1993
|
let t = Pe(e.def.entries).filter((e) => nt.has(typeof e));
|
|
1994
1994
|
return RegExp(t.length ? `^(${t.map((e) => rt(e.toString())).join("|")})$` : "^[^\\s\\S]$");
|
|
1995
1995
|
}), e._zod.parse = (t, i) => {
|
|
@@ -2001,10 +2001,10 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
2001
2001
|
inst: e
|
|
2002
2002
|
}), t;
|
|
2003
2003
|
};
|
|
2004
|
-
}),
|
|
2005
|
-
|
|
2004
|
+
}), Ni = /*@__PURE__*/ O("$ZodLiteral", (e, t) => {
|
|
2005
|
+
M.init(e, t);
|
|
2006
2006
|
let n = new Set(t.values);
|
|
2007
|
-
e._zod.values = n,
|
|
2007
|
+
e._zod.values = n, D(e, "pattern", (e) => {
|
|
2008
2008
|
let t = e.def.values;
|
|
2009
2009
|
return RegExp(t.length ? `^(${t.map((e) => typeof e == "string" ? rt(e) : e ? rt(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$");
|
|
2010
2010
|
}), e._zod.parse = (r, i) => {
|
|
@@ -2016,23 +2016,23 @@ var Ai = /*@__PURE__*/ k("$ZodRecord", (e, t) => {
|
|
|
2016
2016
|
inst: e
|
|
2017
2017
|
}), r;
|
|
2018
2018
|
};
|
|
2019
|
-
}),
|
|
2020
|
-
|
|
2021
|
-
if (r.direction === "backward") throw new
|
|
2019
|
+
}), Pi = /*@__PURE__*/ O("$ZodTransform", (e, t) => {
|
|
2020
|
+
M.init(e, t), e._zod.optin = "optional", k.memoizer?.guard(e), e._zod.parse = (n, r) => {
|
|
2021
|
+
if (r.direction === "backward") throw new Kt(e.constructor.name);
|
|
2022
2022
|
let i = t.transform(n.value, n);
|
|
2023
2023
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
2024
|
-
if (i instanceof Promise) throw new
|
|
2024
|
+
if (i instanceof Promise) throw new Gt();
|
|
2025
2025
|
return n.value = i, n;
|
|
2026
2026
|
};
|
|
2027
2027
|
});
|
|
2028
|
-
function
|
|
2028
|
+
function Fi(e, t) {
|
|
2029
2029
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
2030
2030
|
}
|
|
2031
|
-
var
|
|
2032
|
-
|
|
2031
|
+
var Ii = /*@__PURE__*/ O("$ZodOptional", (e, t) => {
|
|
2032
|
+
M.init(e, t), D(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", D(e, "values", (e) => {
|
|
2033
2033
|
let t = e.def.innerType._zod.values;
|
|
2034
2034
|
return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
|
|
2035
|
-
}),
|
|
2035
|
+
}), D(e, "pattern", (e) => {
|
|
2036
2036
|
let t = e.def.innerType._zod.pattern;
|
|
2037
2037
|
return t ? RegExp(`^(${Be(t.source)})?$`) : void 0;
|
|
2038
2038
|
}), e._zod.parse = (e, n) => {
|
|
@@ -2042,40 +2042,40 @@ var Fi = /*@__PURE__*/ k("$ZodOptional", (e, t) => {
|
|
|
2042
2042
|
value: e.value,
|
|
2043
2043
|
issues: []
|
|
2044
2044
|
}, n);
|
|
2045
|
-
return r instanceof Promise ? r.then((t) =>
|
|
2045
|
+
return r instanceof Promise ? r.then((t) => Fi(e, t)) : Fi(e, r);
|
|
2046
2046
|
}
|
|
2047
2047
|
return t.innerType._zod.run(e, n);
|
|
2048
2048
|
};
|
|
2049
|
-
}),
|
|
2050
|
-
|
|
2051
|
-
}),
|
|
2052
|
-
|
|
2049
|
+
}), Li = /*@__PURE__*/ O("$ZodExactOptional", (e, t) => {
|
|
2050
|
+
Ii.init(e, t), D(e, "values", (e) => e.def.innerType._zod.values), D(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
2051
|
+
}), Ri = /*@__PURE__*/ O("$ZodNullable", (e, t) => {
|
|
2052
|
+
M.init(e, t), D(e, "optin", (e) => e.def.innerType._zod.optin), D(e, "optout", (e) => e.def.innerType._zod.optout), D(e, "pattern", (e) => {
|
|
2053
2053
|
let t = e.def.innerType._zod.pattern;
|
|
2054
2054
|
return t ? RegExp(`^(${Be(t.source)}|null)$`) : void 0;
|
|
2055
|
-
}),
|
|
2056
|
-
}),
|
|
2057
|
-
|
|
2055
|
+
}), D(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
2056
|
+
}), zi = /*@__PURE__*/ O("$ZodDefault", (e, t) => {
|
|
2057
|
+
M.init(e, t), e._zod.optin = "defaulted", D(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
2058
2058
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2059
2059
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
2060
2060
|
let r = t.innerType._zod.run(e, n);
|
|
2061
|
-
return r instanceof Promise ? r.then((e) =>
|
|
2061
|
+
return r instanceof Promise ? r.then((e) => Bi(e, t)) : Bi(r, t);
|
|
2062
2062
|
};
|
|
2063
2063
|
});
|
|
2064
|
-
function
|
|
2064
|
+
function Bi(e, t) {
|
|
2065
2065
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
2066
2066
|
}
|
|
2067
|
-
var
|
|
2068
|
-
|
|
2069
|
-
}),
|
|
2070
|
-
|
|
2067
|
+
var Vi = /*@__PURE__*/ O("$ZodPrefault", (e, t) => {
|
|
2068
|
+
M.init(e, t), e._zod.optin = "defaulted", D(e, "values", (e) => e.def.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));
|
|
2069
|
+
}), Hi = /*@__PURE__*/ O("$ZodNonOptional", (e, t) => {
|
|
2070
|
+
M.init(e, t), D(e, "values", (e) => {
|
|
2071
2071
|
let t = e.def.innerType._zod.values;
|
|
2072
2072
|
return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
|
|
2073
2073
|
}), e._zod.parse = (n, r) => {
|
|
2074
2074
|
let i = t.innerType._zod.run(n, r);
|
|
2075
|
-
return i instanceof Promise ? i.then((t) =>
|
|
2075
|
+
return i instanceof Promise ? i.then((t) => Ui(t, e)) : Ui(i, e);
|
|
2076
2076
|
};
|
|
2077
2077
|
});
|
|
2078
|
-
function
|
|
2078
|
+
function Ui(e, t) {
|
|
2079
2079
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
2080
2080
|
code: "invalid_type",
|
|
2081
2081
|
expected: "nonoptional",
|
|
@@ -2083,62 +2083,62 @@ function Hi(e, t) {
|
|
|
2083
2083
|
inst: t
|
|
2084
2084
|
}), e;
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function Wi(e, t, n, r) {
|
|
2087
2087
|
return t.issues.length ? (e.value = n.catchValue({
|
|
2088
2088
|
...t,
|
|
2089
2089
|
value: e.value,
|
|
2090
|
-
error: { issues: t.issues.map((e) =>
|
|
2090
|
+
error: { issues: t.issues.map((e) => Ct(e, r, A())) },
|
|
2091
2091
|
input: e.value
|
|
2092
2092
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
2093
2093
|
}
|
|
2094
|
-
var
|
|
2095
|
-
|
|
2094
|
+
var Gi = /*@__PURE__*/ O("$ZodCatch", (e, t) => {
|
|
2095
|
+
M.init(e, t), D(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), D(e, "optout", (e) => e.def.innerType._zod.optout), D(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
2096
2096
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2097
2097
|
let r = t.innerType._zod.run({
|
|
2098
2098
|
value: e.value,
|
|
2099
2099
|
issues: []
|
|
2100
2100
|
}, n);
|
|
2101
|
-
return r instanceof Promise ? r.then((r) =>
|
|
2101
|
+
return r instanceof Promise ? r.then((r) => Wi(e, r, t, n)) : Wi(e, r, t, n);
|
|
2102
2102
|
};
|
|
2103
|
-
}),
|
|
2104
|
-
|
|
2103
|
+
}), Ki = /*@__PURE__*/ O("$ZodPipe", (e, t) => {
|
|
2104
|
+
M.init(e, t), D(e, "values", (e) => e.def.in._zod.values), D(e, "optin", (e) => e.def.in._zod.optin), D(e, "optout", (e) => e.def.out._zod.optout), D(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
2105
2105
|
if (n.direction === "backward") {
|
|
2106
2106
|
let r = t.out._zod.run(e, n);
|
|
2107
|
-
return r instanceof Promise ? r.then((e) =>
|
|
2107
|
+
return r instanceof Promise ? r.then((e) => qi(e, t.in, n)) : qi(r, t.in, n);
|
|
2108
2108
|
}
|
|
2109
2109
|
let r = t.in._zod.run(e, n);
|
|
2110
|
-
return r instanceof Promise ? r.then((e) =>
|
|
2110
|
+
return r instanceof Promise ? r.then((e) => qi(e, t.out, n)) : qi(r, t.out, n);
|
|
2111
2111
|
};
|
|
2112
2112
|
});
|
|
2113
|
-
function
|
|
2113
|
+
function qi(e, t, n) {
|
|
2114
2114
|
return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
|
|
2115
2115
|
value: e.value,
|
|
2116
2116
|
issues: e.issues
|
|
2117
2117
|
}, n);
|
|
2118
2118
|
}
|
|
2119
|
-
var
|
|
2120
|
-
|
|
2119
|
+
var Ji = /*@__PURE__*/ O("$ZodReadonly", (e, t) => {
|
|
2120
|
+
M.init(e, t), D(e, "propValues", (e) => e.def.innerType._zod.propValues), D(e, "values", (e) => e.def.innerType._zod.values), D(e, "optin", (e) => e.def.innerType?._zod?.optin), D(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
2121
2121
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
2122
2122
|
let r = t.innerType._zod.run(e, n);
|
|
2123
|
-
return r instanceof Promise ? r.then(
|
|
2123
|
+
return r instanceof Promise ? r.then(Yi) : Yi(r);
|
|
2124
2124
|
};
|
|
2125
2125
|
});
|
|
2126
|
-
function
|
|
2126
|
+
function Yi(e) {
|
|
2127
2127
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
2128
2128
|
}
|
|
2129
|
-
var
|
|
2130
|
-
|
|
2129
|
+
var Xi = /*@__PURE__*/ O("$ZodLazy", (e, t) => {
|
|
2130
|
+
M.init(e, t), Ue(e._zod, "innerType", () => {
|
|
2131
2131
|
let e = t;
|
|
2132
2132
|
return e._cachedInner ||= t.getter(), e._cachedInner;
|
|
2133
|
-
}),
|
|
2134
|
-
}),
|
|
2135
|
-
|
|
2133
|
+
}), D(e, "pattern", (e) => e.innerType?._zod?.pattern), D(e, "propValues", (e) => e.innerType?._zod?.propValues), D(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), D(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
|
|
2134
|
+
}), Zi = /*@__PURE__*/ O("$ZodCustom", (e, t) => {
|
|
2135
|
+
j.init(e, t), M.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
2136
2136
|
let r = n.value, i = t.fn(r);
|
|
2137
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
2138
|
-
|
|
2137
|
+
if (i instanceof Promise) return i.then((t) => Qi(t, n, r, e));
|
|
2138
|
+
Qi(i, n, r, e);
|
|
2139
2139
|
};
|
|
2140
2140
|
});
|
|
2141
|
-
function
|
|
2141
|
+
function Qi(e, t, n, r) {
|
|
2142
2142
|
if (!e) {
|
|
2143
2143
|
let e = {
|
|
2144
2144
|
code: "custom",
|
|
@@ -2147,42 +2147,42 @@ function Zi(e, t, n, r) {
|
|
|
2147
2147
|
path: [...r._zod.def.path ?? []],
|
|
2148
2148
|
continue: !r._zod.def.abort
|
|
2149
2149
|
};
|
|
2150
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
2150
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(Ot(e));
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
//#endregion
|
|
2154
2154
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
|
|
2155
|
-
var
|
|
2155
|
+
var $i = class extends Error {
|
|
2156
2156
|
constructor() {
|
|
2157
2157
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
2158
2158
|
}
|
|
2159
|
-
},
|
|
2160
|
-
function
|
|
2159
|
+
}, ea = "~memo", ta = [];
|
|
2160
|
+
function na(e) {
|
|
2161
2161
|
return typeof e == "object" && !!e;
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function ra(e) {
|
|
2164
2164
|
return e.map((e) => e.path ? {
|
|
2165
2165
|
...e,
|
|
2166
2166
|
path: e.path.slice()
|
|
2167
2167
|
} : { ...e });
|
|
2168
2168
|
}
|
|
2169
|
-
var
|
|
2170
|
-
function
|
|
2171
|
-
let r =
|
|
2172
|
-
if (r !== void 0) return r ?
|
|
2173
|
-
if (t.has(e)) return
|
|
2169
|
+
var ia = /*@__PURE__*/ new WeakMap(), aa = 0, oa = 1, sa = 2;
|
|
2170
|
+
function ca(e, t, n) {
|
|
2171
|
+
let r = ia.get(e);
|
|
2172
|
+
if (r !== void 0) return r ? sa : aa;
|
|
2173
|
+
if (t.has(e)) return sa;
|
|
2174
2174
|
t.add(e);
|
|
2175
|
-
let i =
|
|
2176
|
-
if (i !==
|
|
2177
|
-
let r =
|
|
2175
|
+
let i = aa, a = (e) => {
|
|
2176
|
+
if (i !== sa && e?._zod) {
|
|
2177
|
+
let r = ca(e, t, n);
|
|
2178
2178
|
r > i && (i = r);
|
|
2179
2179
|
}
|
|
2180
2180
|
}, o = (e, r) => {
|
|
2181
|
-
let i =
|
|
2181
|
+
let i = aa;
|
|
2182
2182
|
for (let a of Reflect.ownKeys(e)) {
|
|
2183
2183
|
let o = Object.getOwnPropertyDescriptor(e, a);
|
|
2184
2184
|
if (r && !o.enumerable) continue;
|
|
2185
|
-
let s = o.get ?
|
|
2185
|
+
let s = o.get ? oa : o.value?._zod ? ca(o.value, t, n) : aa;
|
|
2186
2186
|
s > i && (i = s);
|
|
2187
2187
|
}
|
|
2188
2188
|
return i;
|
|
@@ -2192,7 +2192,7 @@ function sa(e, t, n) {
|
|
|
2192
2192
|
switch (c.type) {
|
|
2193
2193
|
case "object": {
|
|
2194
2194
|
let e = We(c);
|
|
2195
|
-
s(e ? o(e, !0) :
|
|
2195
|
+
s(e ? o(e, !0) : oa), a(c.catchall);
|
|
2196
2196
|
break;
|
|
2197
2197
|
}
|
|
2198
2198
|
case "array":
|
|
@@ -2234,7 +2234,7 @@ function sa(e, t, n) {
|
|
|
2234
2234
|
break;
|
|
2235
2235
|
case "lazy": {
|
|
2236
2236
|
let r = c._cachedInner ?? (n ? e._zod.innerType : void 0);
|
|
2237
|
-
s(r ?
|
|
2237
|
+
s(r ? ca(r, t, !1) : oa);
|
|
2238
2238
|
break;
|
|
2239
2239
|
}
|
|
2240
2240
|
case "template_literal":
|
|
@@ -2267,31 +2267,31 @@ function sa(e, t, n) {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
|
-
return t.delete(e),
|
|
2271
|
-
}
|
|
2272
|
-
function ca(e, t) {
|
|
2273
|
-
return t !== aa && ra.set(e, t === oa), t;
|
|
2270
|
+
return t.delete(e), la(e, i);
|
|
2274
2271
|
}
|
|
2275
2272
|
function la(e, t) {
|
|
2273
|
+
return t !== oa && ia.set(e, t === sa), t;
|
|
2274
|
+
}
|
|
2275
|
+
function ua(e, t) {
|
|
2276
2276
|
let n = e.buckets.get(t);
|
|
2277
2277
|
return n || (n = /* @__PURE__ */ new WeakMap(), e.buckets.set(t, n)), n;
|
|
2278
2278
|
}
|
|
2279
|
-
var
|
|
2279
|
+
var da, fa = [], pa = {
|
|
2280
2280
|
alloc(e, t, n) {
|
|
2281
|
-
let r =
|
|
2281
|
+
let r = da;
|
|
2282
2282
|
if (!r) return n;
|
|
2283
|
-
|
|
2283
|
+
da = void 0;
|
|
2284
2284
|
let i = {
|
|
2285
2285
|
value: n,
|
|
2286
2286
|
issues: null
|
|
2287
2287
|
};
|
|
2288
|
-
return r.set(t.value, i),
|
|
2288
|
+
return r.set(t.value, i), fa.push(i), n;
|
|
2289
2289
|
},
|
|
2290
2290
|
guard(e) {
|
|
2291
2291
|
var t;
|
|
2292
2292
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2293
2293
|
let t = e._zod.parse, n = (e, n) => {
|
|
2294
|
-
if (n.direction !== "backward" &&
|
|
2294
|
+
if (n.direction !== "backward" && ha(n, e.value)) throw new $i();
|
|
2295
2295
|
return t(e, n);
|
|
2296
2296
|
};
|
|
2297
2297
|
e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
|
|
@@ -2303,41 +2303,41 @@ var ua, da = [], fa = {
|
|
|
2303
2303
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
2304
2304
|
let t = e._zod.parse, o = (s, c) => {
|
|
2305
2305
|
if (n === void 0) {
|
|
2306
|
-
let i =
|
|
2307
|
-
if (i ===
|
|
2308
|
-
i ===
|
|
2306
|
+
let i = ca(e, /* @__PURE__ */ new Set(), !1);
|
|
2307
|
+
if (i === aa) return e._zod.parse = t, e._zod.run === o && (e._zod.run = t), t(s, c);
|
|
2308
|
+
i === sa || r ? n = !0 : r = !0;
|
|
2309
2309
|
}
|
|
2310
2310
|
let l = s.value;
|
|
2311
|
-
if (!
|
|
2312
|
-
let u = c[
|
|
2311
|
+
if (!na(l)) return t(s, c);
|
|
2312
|
+
let u = c[ea];
|
|
2313
2313
|
u || (u = {
|
|
2314
2314
|
buckets: /* @__PURE__ */ new WeakMap(),
|
|
2315
2315
|
backEdges: void 0
|
|
2316
|
-
}, c[
|
|
2316
|
+
}, c[ea] = u);
|
|
2317
2317
|
let d;
|
|
2318
|
-
i === c ? d = a : (d =
|
|
2318
|
+
i === c ? d = a : (d = ua(u, e), i = c, a = d);
|
|
2319
2319
|
let f = d.get(l);
|
|
2320
|
-
if (f) return s.value = f.value, f.issues ? f.issues.length && s.issues.push(...
|
|
2321
|
-
|
|
2322
|
-
let p =
|
|
2323
|
-
|
|
2324
|
-
let h =
|
|
2325
|
-
return m instanceof Promise ? m.then((e) => (h && (h.issues = e.issues.length ?
|
|
2320
|
+
if (f) return s.value = f.value, f.issues ? f.issues.length && s.issues.push(...ra(f.issues)) : (s.memo = !0, u.backEdges ?? (u.backEdges = /* @__PURE__ */ new WeakSet()), u.backEdges.add(f.value)), s;
|
|
2321
|
+
da = d;
|
|
2322
|
+
let p = fa.length, m = t(s, c);
|
|
2323
|
+
da = void 0;
|
|
2324
|
+
let h = fa.length > p ? fa.pop() : void 0;
|
|
2325
|
+
return m instanceof Promise ? m.then((e) => (h && (h.issues = e.issues.length ? ra(e.issues) : ta), e)) : (h && (h.issues = m.issues.length ? ra(m.issues) : ta), m);
|
|
2326
2326
|
};
|
|
2327
2327
|
e._zod.parse = o, e._zod.run === t && (e._zod.run = o);
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
2330
|
};
|
|
2331
|
-
function
|
|
2332
|
-
return
|
|
2331
|
+
function ma() {
|
|
2332
|
+
return pa;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2335
|
-
let n = e[
|
|
2336
|
-
return n !== void 0 &&
|
|
2334
|
+
function ha(e, t) {
|
|
2335
|
+
let n = e[ea]?.backEdges;
|
|
2336
|
+
return n !== void 0 && na(t) && n.has(t);
|
|
2337
2337
|
}
|
|
2338
2338
|
//#endregion
|
|
2339
2339
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/en.js
|
|
2340
|
-
var
|
|
2340
|
+
var ga = () => {
|
|
2341
2341
|
let e = {
|
|
2342
2342
|
string: {
|
|
2343
2343
|
unit: "characters",
|
|
@@ -2402,7 +2402,7 @@ var ha = () => {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
return (e) => {
|
|
2404
2404
|
switch (e.code) {
|
|
2405
|
-
case "invalid_type": return `Invalid input: expected ${i(e.expected)}, received ${i(
|
|
2405
|
+
case "invalid_type": return `Invalid input: expected ${i(e.expected)}, received ${i(Dt(e.input), e.input)}`;
|
|
2406
2406
|
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${at(e.values[0])}` : `Invalid option: expected one of ${Fe(e.values, "|")}`;
|
|
2407
2407
|
case "too_big": {
|
|
2408
2408
|
let n = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = t(e.origin);
|
|
@@ -2425,12 +2425,12 @@ var ha = () => {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
2427
|
};
|
|
2428
|
-
function
|
|
2429
|
-
return { localeError:
|
|
2428
|
+
function _a() {
|
|
2429
|
+
return { localeError: ga() };
|
|
2430
2430
|
}
|
|
2431
2431
|
//#endregion
|
|
2432
2432
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/registries.js
|
|
2433
|
-
var
|
|
2433
|
+
var va, ya = class {
|
|
2434
2434
|
constructor() {
|
|
2435
2435
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
2436
2436
|
}
|
|
@@ -2462,25 +2462,25 @@ var _a, va = class {
|
|
|
2462
2462
|
return this._map.has(e);
|
|
2463
2463
|
}
|
|
2464
2464
|
};
|
|
2465
|
-
function
|
|
2466
|
-
return new
|
|
2465
|
+
function ba() {
|
|
2466
|
+
return new ya();
|
|
2467
2467
|
}
|
|
2468
|
-
(
|
|
2469
|
-
var
|
|
2468
|
+
(va = globalThis).__zod_globalRegistry ?? (va.__zod_globalRegistry = ba());
|
|
2469
|
+
var xa = globalThis.__zod_globalRegistry;
|
|
2470
2470
|
//#endregion
|
|
2471
2471
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/api.js
|
|
2472
|
-
function
|
|
2472
|
+
function Sa(e) {
|
|
2473
2473
|
return e.checks &&= [...e.checks], e;
|
|
2474
2474
|
}
|
|
2475
2475
|
// @__NO_SIDE_EFFECTS__
|
|
2476
|
-
function
|
|
2477
|
-
return new e(
|
|
2476
|
+
function Ca(e, t) {
|
|
2477
|
+
return new e(Sa({
|
|
2478
2478
|
type: "string",
|
|
2479
2479
|
...E(t)
|
|
2480
2480
|
}));
|
|
2481
2481
|
}
|
|
2482
2482
|
// @__NO_SIDE_EFFECTS__
|
|
2483
|
-
function
|
|
2483
|
+
function wa(e, t) {
|
|
2484
2484
|
return new e({
|
|
2485
2485
|
type: "string",
|
|
2486
2486
|
format: "email",
|
|
@@ -2490,7 +2490,7 @@ function Ca(e, t) {
|
|
|
2490
2490
|
});
|
|
2491
2491
|
}
|
|
2492
2492
|
// @__NO_SIDE_EFFECTS__
|
|
2493
|
-
function
|
|
2493
|
+
function Ta(e, t) {
|
|
2494
2494
|
return new e({
|
|
2495
2495
|
type: "string",
|
|
2496
2496
|
format: "guid",
|
|
@@ -2500,7 +2500,7 @@ function wa(e, t) {
|
|
|
2500
2500
|
});
|
|
2501
2501
|
}
|
|
2502
2502
|
// @__NO_SIDE_EFFECTS__
|
|
2503
|
-
function
|
|
2503
|
+
function Ea(e, t) {
|
|
2504
2504
|
return new e({
|
|
2505
2505
|
type: "string",
|
|
2506
2506
|
format: "uuid",
|
|
@@ -2510,7 +2510,7 @@ function Ta(e, t) {
|
|
|
2510
2510
|
});
|
|
2511
2511
|
}
|
|
2512
2512
|
// @__NO_SIDE_EFFECTS__
|
|
2513
|
-
function
|
|
2513
|
+
function Da(e, t) {
|
|
2514
2514
|
return new e({
|
|
2515
2515
|
type: "string",
|
|
2516
2516
|
format: "uuid",
|
|
@@ -2521,7 +2521,7 @@ function Ea(e, t) {
|
|
|
2521
2521
|
});
|
|
2522
2522
|
}
|
|
2523
2523
|
// @__NO_SIDE_EFFECTS__
|
|
2524
|
-
function
|
|
2524
|
+
function Oa(e, t) {
|
|
2525
2525
|
return new e({
|
|
2526
2526
|
type: "string",
|
|
2527
2527
|
format: "uuid",
|
|
@@ -2532,7 +2532,7 @@ function Da(e, t) {
|
|
|
2532
2532
|
});
|
|
2533
2533
|
}
|
|
2534
2534
|
// @__NO_SIDE_EFFECTS__
|
|
2535
|
-
function
|
|
2535
|
+
function ka(e, t) {
|
|
2536
2536
|
return new e({
|
|
2537
2537
|
type: "string",
|
|
2538
2538
|
format: "uuid",
|
|
@@ -2543,7 +2543,7 @@ function Oa(e, t) {
|
|
|
2543
2543
|
});
|
|
2544
2544
|
}
|
|
2545
2545
|
// @__NO_SIDE_EFFECTS__
|
|
2546
|
-
function
|
|
2546
|
+
function Aa(e, t) {
|
|
2547
2547
|
return new e({
|
|
2548
2548
|
type: "string",
|
|
2549
2549
|
format: "url",
|
|
@@ -2553,7 +2553,7 @@ function ka(e, t) {
|
|
|
2553
2553
|
});
|
|
2554
2554
|
}
|
|
2555
2555
|
// @__NO_SIDE_EFFECTS__
|
|
2556
|
-
function
|
|
2556
|
+
function ja(e, t) {
|
|
2557
2557
|
return new e({
|
|
2558
2558
|
type: "string",
|
|
2559
2559
|
format: "emoji",
|
|
@@ -2563,7 +2563,7 @@ function Aa(e, t) {
|
|
|
2563
2563
|
});
|
|
2564
2564
|
}
|
|
2565
2565
|
// @__NO_SIDE_EFFECTS__
|
|
2566
|
-
function
|
|
2566
|
+
function Ma(e, t) {
|
|
2567
2567
|
return new e({
|
|
2568
2568
|
type: "string",
|
|
2569
2569
|
format: "nanoid",
|
|
@@ -2573,7 +2573,7 @@ function ja(e, t) {
|
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
2575
|
// @__NO_SIDE_EFFECTS__
|
|
2576
|
-
function
|
|
2576
|
+
function Na(e, t) {
|
|
2577
2577
|
return new e({
|
|
2578
2578
|
type: "string",
|
|
2579
2579
|
format: "cuid",
|
|
@@ -2583,7 +2583,7 @@ function Ma(e, t) {
|
|
|
2583
2583
|
});
|
|
2584
2584
|
}
|
|
2585
2585
|
// @__NO_SIDE_EFFECTS__
|
|
2586
|
-
function
|
|
2586
|
+
function Pa(e, t) {
|
|
2587
2587
|
return new e({
|
|
2588
2588
|
type: "string",
|
|
2589
2589
|
format: "cuid2",
|
|
@@ -2593,7 +2593,7 @@ function Na(e, t) {
|
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
2595
|
// @__NO_SIDE_EFFECTS__
|
|
2596
|
-
function
|
|
2596
|
+
function Fa(e, t) {
|
|
2597
2597
|
return new e({
|
|
2598
2598
|
type: "string",
|
|
2599
2599
|
format: "ulid",
|
|
@@ -2603,7 +2603,7 @@ function Pa(e, t) {
|
|
|
2603
2603
|
});
|
|
2604
2604
|
}
|
|
2605
2605
|
// @__NO_SIDE_EFFECTS__
|
|
2606
|
-
function
|
|
2606
|
+
function Ia(e, t) {
|
|
2607
2607
|
return new e({
|
|
2608
2608
|
type: "string",
|
|
2609
2609
|
format: "xid",
|
|
@@ -2613,7 +2613,7 @@ function Fa(e, t) {
|
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
2615
|
// @__NO_SIDE_EFFECTS__
|
|
2616
|
-
function
|
|
2616
|
+
function La(e, t) {
|
|
2617
2617
|
return new e({
|
|
2618
2618
|
type: "string",
|
|
2619
2619
|
format: "ksuid",
|
|
@@ -2623,7 +2623,7 @@ function Ia(e, t) {
|
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
// @__NO_SIDE_EFFECTS__
|
|
2626
|
-
function
|
|
2626
|
+
function Ra(e, t) {
|
|
2627
2627
|
return new e({
|
|
2628
2628
|
type: "string",
|
|
2629
2629
|
format: "ipv4",
|
|
@@ -2633,7 +2633,7 @@ function La(e, t) {
|
|
|
2633
2633
|
});
|
|
2634
2634
|
}
|
|
2635
2635
|
// @__NO_SIDE_EFFECTS__
|
|
2636
|
-
function
|
|
2636
|
+
function za(e, t) {
|
|
2637
2637
|
return new e({
|
|
2638
2638
|
type: "string",
|
|
2639
2639
|
format: "ipv6",
|
|
@@ -2643,7 +2643,7 @@ function Ra(e, t) {
|
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
2645
|
// @__NO_SIDE_EFFECTS__
|
|
2646
|
-
function
|
|
2646
|
+
function Ba(e, t) {
|
|
2647
2647
|
return new e({
|
|
2648
2648
|
type: "string",
|
|
2649
2649
|
format: "cidrv4",
|
|
@@ -2653,7 +2653,7 @@ function za(e, t) {
|
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
2655
|
// @__NO_SIDE_EFFECTS__
|
|
2656
|
-
function
|
|
2656
|
+
function Va(e, t) {
|
|
2657
2657
|
return new e({
|
|
2658
2658
|
type: "string",
|
|
2659
2659
|
format: "cidrv6",
|
|
@@ -2663,7 +2663,7 @@ function Ba(e, t) {
|
|
|
2663
2663
|
});
|
|
2664
2664
|
}
|
|
2665
2665
|
// @__NO_SIDE_EFFECTS__
|
|
2666
|
-
function
|
|
2666
|
+
function Ha(e, t) {
|
|
2667
2667
|
return new e({
|
|
2668
2668
|
type: "string",
|
|
2669
2669
|
format: "base64",
|
|
@@ -2673,7 +2673,7 @@ function Va(e, t) {
|
|
|
2673
2673
|
});
|
|
2674
2674
|
}
|
|
2675
2675
|
// @__NO_SIDE_EFFECTS__
|
|
2676
|
-
function
|
|
2676
|
+
function Ua(e, t) {
|
|
2677
2677
|
return new e({
|
|
2678
2678
|
type: "string",
|
|
2679
2679
|
format: "base64url",
|
|
@@ -2683,7 +2683,7 @@ function Ha(e, t) {
|
|
|
2683
2683
|
});
|
|
2684
2684
|
}
|
|
2685
2685
|
// @__NO_SIDE_EFFECTS__
|
|
2686
|
-
function
|
|
2686
|
+
function Wa(e, t) {
|
|
2687
2687
|
return new e({
|
|
2688
2688
|
type: "string",
|
|
2689
2689
|
format: "e164",
|
|
@@ -2693,7 +2693,7 @@ function Ua(e, t) {
|
|
|
2693
2693
|
});
|
|
2694
2694
|
}
|
|
2695
2695
|
// @__NO_SIDE_EFFECTS__
|
|
2696
|
-
function
|
|
2696
|
+
function Ga(e, t) {
|
|
2697
2697
|
return new e({
|
|
2698
2698
|
type: "string",
|
|
2699
2699
|
format: "jwt",
|
|
@@ -2703,7 +2703,7 @@ function Wa(e, t) {
|
|
|
2703
2703
|
});
|
|
2704
2704
|
}
|
|
2705
2705
|
// @__NO_SIDE_EFFECTS__
|
|
2706
|
-
function
|
|
2706
|
+
function Ka(e, t) {
|
|
2707
2707
|
return new e({
|
|
2708
2708
|
type: "string",
|
|
2709
2709
|
format: "datetime",
|
|
@@ -2715,7 +2715,7 @@ function Ga(e, t) {
|
|
|
2715
2715
|
});
|
|
2716
2716
|
}
|
|
2717
2717
|
// @__NO_SIDE_EFFECTS__
|
|
2718
|
-
function
|
|
2718
|
+
function qa(e, t) {
|
|
2719
2719
|
return new e({
|
|
2720
2720
|
type: "string",
|
|
2721
2721
|
format: "date",
|
|
@@ -2724,7 +2724,7 @@ function Ka(e, t) {
|
|
|
2724
2724
|
});
|
|
2725
2725
|
}
|
|
2726
2726
|
// @__NO_SIDE_EFFECTS__
|
|
2727
|
-
function
|
|
2727
|
+
function Ja(e, t) {
|
|
2728
2728
|
return new e({
|
|
2729
2729
|
type: "string",
|
|
2730
2730
|
format: "time",
|
|
@@ -2734,7 +2734,7 @@ function qa(e, t) {
|
|
|
2734
2734
|
});
|
|
2735
2735
|
}
|
|
2736
2736
|
// @__NO_SIDE_EFFECTS__
|
|
2737
|
-
function
|
|
2737
|
+
function Ya(e, t) {
|
|
2738
2738
|
return new e({
|
|
2739
2739
|
type: "string",
|
|
2740
2740
|
format: "duration",
|
|
@@ -2743,15 +2743,15 @@ function Ja(e, t) {
|
|
|
2743
2743
|
});
|
|
2744
2744
|
}
|
|
2745
2745
|
// @__NO_SIDE_EFFECTS__
|
|
2746
|
-
function
|
|
2747
|
-
return new e(
|
|
2746
|
+
function Xa(e, t) {
|
|
2747
|
+
return new e(Sa({
|
|
2748
2748
|
type: "number",
|
|
2749
2749
|
checks: [],
|
|
2750
2750
|
...E(t)
|
|
2751
2751
|
}));
|
|
2752
2752
|
}
|
|
2753
2753
|
// @__NO_SIDE_EFFECTS__
|
|
2754
|
-
function
|
|
2754
|
+
function Za(e, t) {
|
|
2755
2755
|
return new e({
|
|
2756
2756
|
type: "number",
|
|
2757
2757
|
check: "number_format",
|
|
@@ -2761,33 +2761,33 @@ function Xa(e, t) {
|
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
2763
|
// @__NO_SIDE_EFFECTS__
|
|
2764
|
-
function
|
|
2764
|
+
function Qa(e, t) {
|
|
2765
2765
|
return new e({
|
|
2766
2766
|
type: "boolean",
|
|
2767
2767
|
...E(t)
|
|
2768
2768
|
});
|
|
2769
2769
|
}
|
|
2770
2770
|
// @__NO_SIDE_EFFECTS__
|
|
2771
|
-
function
|
|
2771
|
+
function $a(e, t) {
|
|
2772
2772
|
return new e({
|
|
2773
2773
|
type: "null",
|
|
2774
2774
|
...E(t)
|
|
2775
2775
|
});
|
|
2776
2776
|
}
|
|
2777
2777
|
// @__NO_SIDE_EFFECTS__
|
|
2778
|
-
function
|
|
2778
|
+
function eo(e) {
|
|
2779
2779
|
return new e({ type: "unknown" });
|
|
2780
2780
|
}
|
|
2781
2781
|
// @__NO_SIDE_EFFECTS__
|
|
2782
|
-
function
|
|
2782
|
+
function to(e, t) {
|
|
2783
2783
|
return new e({
|
|
2784
2784
|
type: "never",
|
|
2785
2785
|
...E(t)
|
|
2786
2786
|
});
|
|
2787
2787
|
}
|
|
2788
2788
|
// @__NO_SIDE_EFFECTS__
|
|
2789
|
-
function
|
|
2790
|
-
return new
|
|
2789
|
+
function no(e, t) {
|
|
2790
|
+
return new ar({
|
|
2791
2791
|
check: "less_than",
|
|
2792
2792
|
...E(t),
|
|
2793
2793
|
value: e,
|
|
@@ -2795,8 +2795,8 @@ function to(e, t) {
|
|
|
2795
2795
|
});
|
|
2796
2796
|
}
|
|
2797
2797
|
// @__NO_SIDE_EFFECTS__
|
|
2798
|
-
function
|
|
2799
|
-
return new
|
|
2798
|
+
function ro(e, t) {
|
|
2799
|
+
return new ar({
|
|
2800
2800
|
check: "less_than",
|
|
2801
2801
|
...E(t),
|
|
2802
2802
|
value: e,
|
|
@@ -2804,8 +2804,8 @@ function no(e, t) {
|
|
|
2804
2804
|
});
|
|
2805
2805
|
}
|
|
2806
2806
|
// @__NO_SIDE_EFFECTS__
|
|
2807
|
-
function
|
|
2808
|
-
return new
|
|
2807
|
+
function io(e, t) {
|
|
2808
|
+
return new or({
|
|
2809
2809
|
check: "greater_than",
|
|
2810
2810
|
...E(t),
|
|
2811
2811
|
value: e,
|
|
@@ -2813,8 +2813,8 @@ function ro(e, t) {
|
|
|
2813
2813
|
});
|
|
2814
2814
|
}
|
|
2815
2815
|
// @__NO_SIDE_EFFECTS__
|
|
2816
|
-
function
|
|
2817
|
-
return new
|
|
2816
|
+
function ao(e, t) {
|
|
2817
|
+
return new or({
|
|
2818
2818
|
check: "greater_than",
|
|
2819
2819
|
...E(t),
|
|
2820
2820
|
value: e,
|
|
@@ -2822,40 +2822,40 @@ function io(e, t) {
|
|
|
2822
2822
|
});
|
|
2823
2823
|
}
|
|
2824
2824
|
// @__NO_SIDE_EFFECTS__
|
|
2825
|
-
function
|
|
2826
|
-
return new
|
|
2825
|
+
function oo(e, t) {
|
|
2826
|
+
return new sr({
|
|
2827
2827
|
check: "multiple_of",
|
|
2828
2828
|
...E(t),
|
|
2829
2829
|
value: e
|
|
2830
2830
|
});
|
|
2831
2831
|
}
|
|
2832
2832
|
// @__NO_SIDE_EFFECTS__
|
|
2833
|
-
function
|
|
2834
|
-
return new
|
|
2833
|
+
function so(e, t) {
|
|
2834
|
+
return new lr({
|
|
2835
2835
|
check: "max_length",
|
|
2836
2836
|
...E(t),
|
|
2837
2837
|
maximum: e
|
|
2838
2838
|
});
|
|
2839
2839
|
}
|
|
2840
2840
|
// @__NO_SIDE_EFFECTS__
|
|
2841
|
-
function
|
|
2842
|
-
return new
|
|
2841
|
+
function co(e, t) {
|
|
2842
|
+
return new ur({
|
|
2843
2843
|
check: "min_length",
|
|
2844
2844
|
...E(t),
|
|
2845
2845
|
minimum: e
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
2848
|
// @__NO_SIDE_EFFECTS__
|
|
2849
|
-
function
|
|
2850
|
-
return new
|
|
2849
|
+
function lo(e, t) {
|
|
2850
|
+
return new dr({
|
|
2851
2851
|
check: "length_equals",
|
|
2852
2852
|
...E(t),
|
|
2853
2853
|
length: e
|
|
2854
2854
|
});
|
|
2855
2855
|
}
|
|
2856
2856
|
// @__NO_SIDE_EFFECTS__
|
|
2857
|
-
function
|
|
2858
|
-
return new
|
|
2857
|
+
function uo(e, t) {
|
|
2858
|
+
return new pr({
|
|
2859
2859
|
check: "string_format",
|
|
2860
2860
|
format: "regex",
|
|
2861
2861
|
...E(t),
|
|
@@ -2863,24 +2863,24 @@ function lo(e, t) {
|
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
2865
|
// @__NO_SIDE_EFFECTS__
|
|
2866
|
-
function
|
|
2867
|
-
return new
|
|
2866
|
+
function fo(e) {
|
|
2867
|
+
return new mr({
|
|
2868
2868
|
check: "string_format",
|
|
2869
2869
|
format: "lowercase",
|
|
2870
2870
|
...E(e)
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
2873
|
// @__NO_SIDE_EFFECTS__
|
|
2874
|
-
function
|
|
2875
|
-
return new
|
|
2874
|
+
function po(e) {
|
|
2875
|
+
return new hr({
|
|
2876
2876
|
check: "string_format",
|
|
2877
2877
|
format: "uppercase",
|
|
2878
2878
|
...E(e)
|
|
2879
2879
|
});
|
|
2880
2880
|
}
|
|
2881
2881
|
// @__NO_SIDE_EFFECTS__
|
|
2882
|
-
function
|
|
2883
|
-
return new
|
|
2882
|
+
function mo(e, t) {
|
|
2883
|
+
return new gr({
|
|
2884
2884
|
check: "string_format",
|
|
2885
2885
|
format: "includes",
|
|
2886
2886
|
...E(t),
|
|
@@ -2888,8 +2888,8 @@ function po(e, t) {
|
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
2890
|
// @__NO_SIDE_EFFECTS__
|
|
2891
|
-
function
|
|
2892
|
-
return new
|
|
2891
|
+
function ho(e, t) {
|
|
2892
|
+
return new _r({
|
|
2893
2893
|
check: "string_format",
|
|
2894
2894
|
format: "starts_with",
|
|
2895
2895
|
...E(t),
|
|
@@ -2897,8 +2897,8 @@ function mo(e, t) {
|
|
|
2897
2897
|
});
|
|
2898
2898
|
}
|
|
2899
2899
|
// @__NO_SIDE_EFFECTS__
|
|
2900
|
-
function
|
|
2901
|
-
return new
|
|
2900
|
+
function go(e, t) {
|
|
2901
|
+
return new vr({
|
|
2902
2902
|
check: "string_format",
|
|
2903
2903
|
format: "ends_with",
|
|
2904
2904
|
...E(t),
|
|
@@ -2906,34 +2906,34 @@ function ho(e, t) {
|
|
|
2906
2906
|
});
|
|
2907
2907
|
}
|
|
2908
2908
|
// @__NO_SIDE_EFFECTS__
|
|
2909
|
-
function
|
|
2910
|
-
return new
|
|
2909
|
+
function _o(e) {
|
|
2910
|
+
return new yr({
|
|
2911
2911
|
check: "overwrite",
|
|
2912
2912
|
tx: e
|
|
2913
2913
|
});
|
|
2914
2914
|
}
|
|
2915
2915
|
// @__NO_SIDE_EFFECTS__
|
|
2916
|
-
function
|
|
2917
|
-
return /* @__PURE__ */
|
|
2918
|
-
}
|
|
2919
|
-
// @__NO_SIDE_EFFECTS__
|
|
2920
|
-
function vo() {
|
|
2921
|
-
return /* @__PURE__ */ go((e) => e.trim());
|
|
2916
|
+
function vo(e) {
|
|
2917
|
+
return /* @__PURE__ */ _o((t) => t.normalize(e));
|
|
2922
2918
|
}
|
|
2923
2919
|
// @__NO_SIDE_EFFECTS__
|
|
2924
2920
|
function yo() {
|
|
2925
|
-
return /* @__PURE__ */
|
|
2921
|
+
return /* @__PURE__ */ _o((e) => e.trim());
|
|
2926
2922
|
}
|
|
2927
2923
|
// @__NO_SIDE_EFFECTS__
|
|
2928
2924
|
function bo() {
|
|
2929
|
-
return /* @__PURE__ */
|
|
2925
|
+
return /* @__PURE__ */ _o((e) => e.toLowerCase());
|
|
2930
2926
|
}
|
|
2931
2927
|
// @__NO_SIDE_EFFECTS__
|
|
2932
2928
|
function xo() {
|
|
2933
|
-
return /* @__PURE__ */
|
|
2929
|
+
return /* @__PURE__ */ _o((e) => e.toUpperCase());
|
|
2930
|
+
}
|
|
2931
|
+
// @__NO_SIDE_EFFECTS__
|
|
2932
|
+
function So() {
|
|
2933
|
+
return /* @__PURE__ */ _o((e) => Xe(e));
|
|
2934
2934
|
}
|
|
2935
2935
|
// @__NO_SIDE_EFFECTS__
|
|
2936
|
-
function
|
|
2936
|
+
function Co(e, t, n) {
|
|
2937
2937
|
return new e({
|
|
2938
2938
|
type: "array",
|
|
2939
2939
|
element: t,
|
|
@@ -2941,7 +2941,7 @@ function So(e, t, n) {
|
|
|
2941
2941
|
});
|
|
2942
2942
|
}
|
|
2943
2943
|
// @__NO_SIDE_EFFECTS__
|
|
2944
|
-
function
|
|
2944
|
+
function wo(e, t, n) {
|
|
2945
2945
|
return new e({
|
|
2946
2946
|
type: "custom",
|
|
2947
2947
|
check: "custom",
|
|
@@ -2950,19 +2950,19 @@ function Co(e, t, n) {
|
|
|
2950
2950
|
});
|
|
2951
2951
|
}
|
|
2952
2952
|
// @__NO_SIDE_EFFECTS__
|
|
2953
|
-
function
|
|
2954
|
-
let n = /* @__PURE__ */
|
|
2955
|
-
if (typeof e == "string") t.issues.push(
|
|
2953
|
+
function To(e, t) {
|
|
2954
|
+
let n = /* @__PURE__ */ Eo((t) => (t.addIssue = (e) => {
|
|
2955
|
+
if (typeof e == "string") t.issues.push(Ot(e, t.value, n._zod.def));
|
|
2956
2956
|
else {
|
|
2957
2957
|
let r = e;
|
|
2958
|
-
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(
|
|
2958
|
+
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(Ot(r));
|
|
2959
2959
|
}
|
|
2960
2960
|
}, e(t.value, t)), t);
|
|
2961
2961
|
return n;
|
|
2962
2962
|
}
|
|
2963
2963
|
// @__NO_SIDE_EFFECTS__
|
|
2964
|
-
function
|
|
2965
|
-
let n = new
|
|
2964
|
+
function Eo(e, t) {
|
|
2965
|
+
let n = new j({
|
|
2966
2966
|
check: "custom",
|
|
2967
2967
|
...E(t)
|
|
2968
2968
|
});
|
|
@@ -2970,15 +2970,15 @@ function To(e, t) {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
//#endregion
|
|
2972
2972
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
|
|
2973
|
-
function
|
|
2973
|
+
function Do(e, ...t) {
|
|
2974
2974
|
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && C(e, t, n[t]);
|
|
2975
2975
|
return e;
|
|
2976
2976
|
}
|
|
2977
|
-
function
|
|
2977
|
+
function Oo(e) {
|
|
2978
2978
|
let t = e?.target ?? "draft-2020-12";
|
|
2979
2979
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2980
2980
|
processors: e.processors ?? {},
|
|
2981
|
-
metadataRegistry: e?.metadata ??
|
|
2981
|
+
metadataRegistry: e?.metadata ?? xa,
|
|
2982
2982
|
target: t,
|
|
2983
2983
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2984
2984
|
override: e?.override ?? (() => {}),
|
|
@@ -2994,7 +2994,7 @@ function Do(e) {
|
|
|
2994
2994
|
external: e?.external ?? void 0
|
|
2995
2995
|
};
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function ko(e, t, n, r, i) {
|
|
2998
2998
|
let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
|
|
2999
2999
|
zodSchema: e,
|
|
3000
3000
|
path: r.path,
|
|
@@ -3004,7 +3004,7 @@ function Oo(e, t, n, r, i) {
|
|
|
3004
3004
|
if (a === void 0 || a === "throw") throw Error(i);
|
|
3005
3005
|
return Object.assign(n, a), !0;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function P(e, t, n = {
|
|
3008
3008
|
path: [],
|
|
3009
3009
|
schemaPath: []
|
|
3010
3010
|
}) {
|
|
@@ -3033,15 +3033,15 @@ function F(e, t, n = {
|
|
|
3033
3033
|
a(e, t, n, r);
|
|
3034
3034
|
}
|
|
3035
3035
|
let a = e._zod.parent;
|
|
3036
|
-
a && (o.ref ||= a,
|
|
3036
|
+
a && (o.ref ||= a, P(a, t, r), t.seen.get(a).isParent = !0);
|
|
3037
3037
|
}
|
|
3038
3038
|
let c = t.metadataRegistry.get(e);
|
|
3039
|
-
return c &&
|
|
3039
|
+
return c && Do(o.schema, c), t.io === "input" && F(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Ao(e) {
|
|
3042
3042
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function jo(e, t) {
|
|
3045
3045
|
let n = e.seen.get(t);
|
|
3046
3046
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
3047
3047
|
if (e.external && e.sharedDefsExtractedFor === e.external) return;
|
|
@@ -3062,7 +3062,7 @@ function Ao(e, t) {
|
|
|
3062
3062
|
let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
|
|
3063
3063
|
return t[1].defId = a, {
|
|
3064
3064
|
defId: a,
|
|
3065
|
-
ref: `${i("__shared")}#/${r}/${
|
|
3065
|
+
ref: `${i("__shared")}#/${r}/${Ao(a)}`
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
3068
|
let i = `#/${r}/`;
|
|
@@ -3070,7 +3070,7 @@ function Ao(e, t) {
|
|
|
3070
3070
|
let a = t[1].schema.id ?? `__schema${e.counter++}`;
|
|
3071
3071
|
return {
|
|
3072
3072
|
defId: a,
|
|
3073
|
-
ref: i +
|
|
3073
|
+
ref: i + Ao(a)
|
|
3074
3074
|
};
|
|
3075
3075
|
}, a = (e) => {
|
|
3076
3076
|
if (e[1].schema.$ref) return;
|
|
@@ -3111,13 +3111,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3111
3111
|
}
|
|
3112
3112
|
e.external && (e.sharedDefsExtractedFor = e.external);
|
|
3113
3113
|
}
|
|
3114
|
-
function
|
|
3114
|
+
function Mo(e) {
|
|
3115
3115
|
let t = e.anyOf;
|
|
3116
3116
|
if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
|
|
3117
3117
|
let n = [];
|
|
3118
3118
|
for (let e of t) {
|
|
3119
3119
|
if (!e || typeof e != "object") return;
|
|
3120
|
-
|
|
3120
|
+
Mo(e);
|
|
3121
3121
|
let t = Object.keys(e);
|
|
3122
3122
|
if (t.length !== 1 || t[0] !== "type") return;
|
|
3123
3123
|
let r = e.type;
|
|
@@ -3128,21 +3128,21 @@ function jo(e) {
|
|
|
3128
3128
|
}
|
|
3129
3129
|
delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
|
|
3130
3130
|
}
|
|
3131
|
-
var
|
|
3131
|
+
var No = /* @__PURE__ */ new Set([
|
|
3132
3132
|
"type",
|
|
3133
3133
|
"properties",
|
|
3134
3134
|
"required",
|
|
3135
3135
|
"additionalProperties"
|
|
3136
|
-
]),
|
|
3137
|
-
function
|
|
3136
|
+
]), Po = ["oneOf", "anyOf"];
|
|
3137
|
+
function Fo(e) {
|
|
3138
3138
|
let t = e.additionalProperties;
|
|
3139
3139
|
return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function Io(e) {
|
|
3142
3142
|
let t = [];
|
|
3143
3143
|
for (let n of e) {
|
|
3144
3144
|
if (typeof n != "object" || n.type !== "object") return null;
|
|
3145
|
-
for (let e in n) if (!
|
|
3145
|
+
for (let e in n) if (!No.has(e)) return null;
|
|
3146
3146
|
t.push(n);
|
|
3147
3147
|
}
|
|
3148
3148
|
let n = {}, r = /* @__PURE__ */ new Set();
|
|
@@ -3151,10 +3151,10 @@ function Fo(e) {
|
|
|
3151
3151
|
if (Object.prototype.hasOwnProperty.call(n, r)) continue;
|
|
3152
3152
|
let e = [];
|
|
3153
3153
|
for (let n of t) {
|
|
3154
|
-
let t = n.properties?.[r] ??
|
|
3154
|
+
let t = n.properties?.[r] ?? Fo(n);
|
|
3155
3155
|
t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
|
|
3156
3156
|
}
|
|
3157
|
-
C(n, r, e.length === 1 ? e[0] :
|
|
3157
|
+
C(n, r, e.length === 1 ? e[0] : Io(e) ?? { allOf: e });
|
|
3158
3158
|
}
|
|
3159
3159
|
for (let t of e.required ?? []) r.add(t);
|
|
3160
3160
|
}
|
|
@@ -3166,29 +3166,29 @@ function Fo(e) {
|
|
|
3166
3166
|
else {
|
|
3167
3167
|
let e = [];
|
|
3168
3168
|
for (let n of t) {
|
|
3169
|
-
let t =
|
|
3169
|
+
let t = Fo(n);
|
|
3170
3170
|
t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
|
|
3171
3171
|
}
|
|
3172
3172
|
e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
|
|
3173
3173
|
}
|
|
3174
3174
|
return i;
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function Lo(e) {
|
|
3177
3177
|
let t = e.allOf;
|
|
3178
3178
|
if (!Array.isArray(t) || t.length < 2) return;
|
|
3179
|
-
for (let t of
|
|
3180
|
-
let n = t.filter((e) =>
|
|
3181
|
-
if (!n.length) r =
|
|
3179
|
+
for (let t of No) if (t in e) return;
|
|
3180
|
+
let n = t.filter((e) => Po.some((t) => Array.isArray(e[t]))), r = null;
|
|
3181
|
+
if (!n.length) r = Io(t);
|
|
3182
3182
|
else {
|
|
3183
|
-
let e = n[0], i =
|
|
3183
|
+
let e = n[0], i = Po.find((t) => Array.isArray(e[t]));
|
|
3184
3184
|
if (Object.keys(e).length !== 1) return;
|
|
3185
|
-
let a = t.filter((t) => t !== e), o = e[i].map((e) =>
|
|
3185
|
+
let a = t.filter((t) => t !== e), o = e[i].map((e) => Io([...a, e]));
|
|
3186
3186
|
if (o.some((e) => !e)) return;
|
|
3187
3187
|
r = { [i]: o };
|
|
3188
3188
|
}
|
|
3189
|
-
r && (delete e.allOf,
|
|
3189
|
+
r && (delete e.allOf, Do(e, r));
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function Ro(e, t) {
|
|
3192
3192
|
let n = e.seen.get(t);
|
|
3193
3193
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
3194
3194
|
let r = (t) => {
|
|
@@ -3198,7 +3198,7 @@ function Lo(e, t) {
|
|
|
3198
3198
|
if (n.ref = null, o) {
|
|
3199
3199
|
r(o);
|
|
3200
3200
|
let n = e.seen.get(o), s = n.schema;
|
|
3201
|
-
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) :
|
|
3201
|
+
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Do(i, s), Do(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
|
|
3202
3202
|
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];
|
|
3203
3203
|
}
|
|
3204
3204
|
let s = t._zod.parent;
|
|
@@ -3215,7 +3215,7 @@ function Lo(e, t) {
|
|
|
3215
3215
|
};
|
|
3216
3216
|
if (!e.external || e.sharedEmitDoneFor !== e.external) {
|
|
3217
3217
|
for (let t of [...e.seen.entries()].reverse()) r(t[0]);
|
|
3218
|
-
if (e.target !== "openapi-3.0") for (let t of e.seen.entries())
|
|
3218
|
+
if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) Mo(t[1].def ?? t[1].schema);
|
|
3219
3219
|
for (let t of e.deferred) t();
|
|
3220
3220
|
if (e.intersections.length) {
|
|
3221
3221
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -3225,7 +3225,7 @@ function Lo(e, t) {
|
|
|
3225
3225
|
let r = t.get(n);
|
|
3226
3226
|
r ? r.push(e) : t.set(n, [e]);
|
|
3227
3227
|
}
|
|
3228
|
-
for (let n of e.intersections) for (let e of t.get(n) ?? [])
|
|
3228
|
+
for (let n of e.intersections) for (let e of t.get(n) ?? []) Lo(e);
|
|
3229
3229
|
}
|
|
3230
3230
|
}
|
|
3231
3231
|
let i = {};
|
|
@@ -3234,7 +3234,7 @@ function Lo(e, t) {
|
|
|
3234
3234
|
if (!n) throw Error("Schema is missing an `id` property");
|
|
3235
3235
|
i.$id = e.external.uri(n);
|
|
3236
3236
|
}
|
|
3237
|
-
|
|
3237
|
+
Do(i, n.defId ? n.schema : n.def ?? n.schema);
|
|
3238
3238
|
let a = e.metadataRegistry.get(t)?.id;
|
|
3239
3239
|
a !== void 0 && i.id === a && delete i.id;
|
|
3240
3240
|
let o = e.external?.defs ?? {};
|
|
@@ -3249,8 +3249,8 @@ function Lo(e, t) {
|
|
|
3249
3249
|
value: {
|
|
3250
3250
|
...t["~standard"],
|
|
3251
3251
|
jsonSchema: {
|
|
3252
|
-
input:
|
|
3253
|
-
output:
|
|
3252
|
+
input: Bo(t, "input", e.processors),
|
|
3253
|
+
output: Bo(t, "output", e.processors)
|
|
3254
3254
|
}
|
|
3255
3255
|
},
|
|
3256
3256
|
enumerable: !1,
|
|
@@ -3260,131 +3260,131 @@ function Lo(e, t) {
|
|
|
3260
3260
|
throw Error("Error converting schema to JSON.");
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function F(e, t) {
|
|
3264
3264
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3265
3265
|
if (n.seen.has(e)) return !1;
|
|
3266
3266
|
n.seen.add(e);
|
|
3267
3267
|
let r = e._zod.def;
|
|
3268
3268
|
if (r.type === "transform") return !0;
|
|
3269
|
-
if (r.type === "array") return
|
|
3270
|
-
if (r.type === "set") return
|
|
3271
|
-
if (r.type === "lazy") return
|
|
3272
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return
|
|
3273
|
-
if (r.type === "intersection") return
|
|
3274
|
-
if (r.type === "record" || r.type === "map") return
|
|
3275
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3269
|
+
if (r.type === "array") return F(r.element, n);
|
|
3270
|
+
if (r.type === "set") return F(r.valueType, n);
|
|
3271
|
+
if (r.type === "lazy") return F(r.getter(), n);
|
|
3272
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return F(r.innerType, n);
|
|
3273
|
+
if (r.type === "intersection") return F(r.left, n) || F(r.right, n);
|
|
3274
|
+
if (r.type === "record" || r.type === "map") return F(r.keyType, n) || F(r.valueType, n);
|
|
3275
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : F(r.in, n) || F(r.out, n);
|
|
3276
3276
|
if (r.type === "object") {
|
|
3277
|
-
for (let e in r.shape) if (
|
|
3277
|
+
for (let e in r.shape) if (F(r.shape[e], n)) return !0;
|
|
3278
3278
|
return !1;
|
|
3279
3279
|
}
|
|
3280
3280
|
if (r.type === "union") {
|
|
3281
|
-
for (let e of r.options) if (
|
|
3281
|
+
for (let e of r.options) if (F(e, n)) return !0;
|
|
3282
3282
|
return !1;
|
|
3283
3283
|
}
|
|
3284
3284
|
if (r.type === "tuple") {
|
|
3285
|
-
for (let e of r.items) if (
|
|
3286
|
-
return !!(r.rest &&
|
|
3285
|
+
for (let e of r.items) if (F(e, n)) return !0;
|
|
3286
|
+
return !!(r.rest && F(r.rest, n));
|
|
3287
3287
|
}
|
|
3288
3288
|
return !1;
|
|
3289
3289
|
}
|
|
3290
|
-
var
|
|
3291
|
-
let r =
|
|
3290
|
+
var zo = (e, t = {}) => (n) => {
|
|
3291
|
+
let r = Oo({
|
|
3292
3292
|
...n,
|
|
3293
3293
|
processors: t
|
|
3294
3294
|
});
|
|
3295
|
-
return
|
|
3296
|
-
},
|
|
3297
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
3295
|
+
return P(e, r), jo(r, e), Ro(r, e);
|
|
3296
|
+
}, Bo = (e, t, n = {}) => (r) => {
|
|
3297
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = Oo({
|
|
3298
3298
|
...i ?? {},
|
|
3299
3299
|
target: a,
|
|
3300
3300
|
io: t,
|
|
3301
3301
|
processors: n
|
|
3302
3302
|
});
|
|
3303
|
-
return
|
|
3304
|
-
}, Bo = (e, t, n) => {
|
|
3305
|
-
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
3303
|
+
return P(e, o), jo(o, e), Ro(o, e);
|
|
3306
3304
|
}, Vo = (e, t, n) => {
|
|
3305
|
+
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
3306
|
+
}, Ho = (e, t, n) => {
|
|
3307
3307
|
(e[t] === void 0 || n < e[t]) && (e[t] = n);
|
|
3308
|
-
}, Ho = (e, t) => {
|
|
3309
|
-
Bo(e, "minimum", t), Vo(e, "maximum", t);
|
|
3310
3308
|
}, Uo = (e, t) => {
|
|
3311
|
-
e
|
|
3309
|
+
Vo(e, "minimum", t), Ho(e, "maximum", t);
|
|
3312
3310
|
}, Wo = (e, t) => {
|
|
3313
|
-
e.
|
|
3311
|
+
e.multipleOf ??= [], e.multipleOf.includes(t) || e.multipleOf.push(t);
|
|
3314
3312
|
}, Go = (e, t) => {
|
|
3315
|
-
e.
|
|
3313
|
+
e.patterns ??= /* @__PURE__ */ new Set(), e.patterns.add(t);
|
|
3316
3314
|
}, Ko = (e, t) => {
|
|
3315
|
+
e.mime = e.mime ? e.mime.filter((e) => t.includes(e)) : [...t];
|
|
3316
|
+
}, qo = (e, t) => {
|
|
3317
3317
|
e.format = t, t.includes("int") && (e.isInt = !0);
|
|
3318
|
-
},
|
|
3319
|
-
|
|
3318
|
+
}, Jo = (e, t) => Vo(e, "minimum", t.minimum), Yo = (e, t) => Ho(e, "maximum", t.maximum), Xo = (e) => (t, n) => {
|
|
3319
|
+
qo(t, n.format);
|
|
3320
3320
|
let [r, i] = e[n.format];
|
|
3321
|
-
|
|
3322
|
-
},
|
|
3323
|
-
greater_than: (e, t) =>
|
|
3324
|
-
less_than: (e, t) =>
|
|
3325
|
-
multiple_of: (e, t) =>
|
|
3326
|
-
number_format:
|
|
3327
|
-
bigint_format:
|
|
3328
|
-
min_length:
|
|
3329
|
-
max_length:
|
|
3330
|
-
length_equals: (e, t) =>
|
|
3331
|
-
min_size:
|
|
3332
|
-
max_size:
|
|
3333
|
-
size_equals: (e, t) =>
|
|
3321
|
+
Vo(t, "minimum", r), Ho(t, "maximum", i);
|
|
3322
|
+
}, Zo = {
|
|
3323
|
+
greater_than: (e, t) => Vo(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
|
|
3324
|
+
less_than: (e, t) => Ho(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
|
|
3325
|
+
multiple_of: (e, t) => Wo(e, t.value),
|
|
3326
|
+
number_format: Xo(st),
|
|
3327
|
+
bigint_format: Xo(ct),
|
|
3328
|
+
min_length: Jo,
|
|
3329
|
+
max_length: Yo,
|
|
3330
|
+
length_equals: (e, t) => Uo(e, t.length),
|
|
3331
|
+
min_size: Jo,
|
|
3332
|
+
max_size: Yo,
|
|
3333
|
+
size_equals: (e, t) => Uo(e, t.size),
|
|
3334
3334
|
string_format: (e, t) => {
|
|
3335
|
-
|
|
3335
|
+
qo(e, t.format), t.pattern && Go(e, t.pattern), (t.format === "base64" || t.format === "base64url") && (e.contentEncoding = t.format), (t.local || t.precision === -1) && (e.laxFormat = !0);
|
|
3336
3336
|
},
|
|
3337
|
-
mime_type: (e, t) =>
|
|
3337
|
+
mime_type: (e, t) => Ko(e, t.mime)
|
|
3338
3338
|
};
|
|
3339
|
-
function
|
|
3339
|
+
function I(e) {
|
|
3340
3340
|
let t = {}, n = e._zod.def, r = e._zod.traits.has("$ZodCheck") ? [e, ...n.checks ?? []] : n.checks ?? [];
|
|
3341
|
-
for (let e of r)
|
|
3341
|
+
for (let e of r) Zo[e._zod.def.check]?.(t, e._zod.def);
|
|
3342
3342
|
let i = e._zod.bag;
|
|
3343
|
-
i.minimum !== void 0 &&
|
|
3344
|
-
for (let e of i.patterns ?? [])
|
|
3343
|
+
i.minimum !== void 0 && Vo(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && Vo(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && Ho(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && Ho(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && Wo(t, i.multipleOf), i.format !== void 0 && (t.format ??= i.format, i.format.includes("int") && (t.isInt = !0)), i.mime && Ko(t, i.mime);
|
|
3344
|
+
for (let e of i.patterns ?? []) Go(t, e);
|
|
3345
3345
|
return t;
|
|
3346
3346
|
}
|
|
3347
|
-
var
|
|
3347
|
+
var Qo = {
|
|
3348
3348
|
guid: "uuid",
|
|
3349
3349
|
url: "uri",
|
|
3350
3350
|
datetime: "date-time",
|
|
3351
3351
|
json_string: "json-string",
|
|
3352
3352
|
regex: ""
|
|
3353
|
-
},
|
|
3353
|
+
}, $o = /* @__PURE__ */ new Map([[ni, Bn], [ii, Vn]]), es = (e) => $o.get(e) ?? e, ts = (e, t, n, r) => {
|
|
3354
3354
|
let i = n;
|
|
3355
3355
|
i.type = "string";
|
|
3356
|
-
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } =
|
|
3357
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
3358
|
-
let e = [...c].map(
|
|
3356
|
+
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = I(e);
|
|
3357
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Qo[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
3358
|
+
let e = [...c].map(es);
|
|
3359
3359
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
3360
3360
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
3361
3361
|
pattern: e.source
|
|
3362
3362
|
}))]);
|
|
3363
3363
|
}
|
|
3364
|
-
},
|
|
3365
|
-
let i = n, { minimum: a, maximum: o, multipleOf: s, exclusiveMaximum: c, exclusiveMinimum: l, isInt: u } =
|
|
3364
|
+
}, ns = (e, t, n, r) => {
|
|
3365
|
+
let i = n, { minimum: a, maximum: o, multipleOf: s, exclusiveMaximum: c, exclusiveMinimum: l, isInt: u } = I(e);
|
|
3366
3366
|
i.type = u ? "integer" : "number";
|
|
3367
3367
|
let d = typeof l == "number" && l >= (a ?? -Infinity), f = typeof c == "number" && c <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
3368
3368
|
if (d ? p ? (i.minimum = l, i.exclusiveMinimum = !0) : i.exclusiveMinimum = l : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = c, i.exclusiveMaximum = !0) : i.exclusiveMaximum = c : typeof o == "number" && (i.maximum = o), s) {
|
|
3369
3369
|
let n = /* @__PURE__ */ new Set();
|
|
3370
|
-
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) :
|
|
3370
|
+
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) : ko(e, t, i, r, `A multipleOf divisor of ${a} cannot be represented in JSON Schema`);
|
|
3371
3371
|
let [a, ...o] = n;
|
|
3372
3372
|
a !== void 0 && (i.multipleOf = a), o.length && (i.allOf = [...i.allOf ?? [], ...o.map((e) => ({ multipleOf: e }))]);
|
|
3373
3373
|
}
|
|
3374
|
-
}, ns = (e, t, n, r) => {
|
|
3375
|
-
n.type = "boolean";
|
|
3376
3374
|
}, rs = (e, t, n, r) => {
|
|
3377
|
-
|
|
3375
|
+
n.type = "boolean";
|
|
3378
3376
|
}, is = (e, t, n, r) => {
|
|
3379
|
-
n.
|
|
3377
|
+
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
3380
3378
|
}, as = (e, t, n, r) => {
|
|
3379
|
+
n.not = {};
|
|
3380
|
+
}, os = (e, t, n, r) => {
|
|
3381
3381
|
let i = e._zod.def, a = Pe(i.entries);
|
|
3382
3382
|
if (a.length === 0) {
|
|
3383
3383
|
n.not = {};
|
|
3384
3384
|
return;
|
|
3385
3385
|
}
|
|
3386
3386
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
3387
|
-
},
|
|
3387
|
+
}, ss = (e, t, n, r) => {
|
|
3388
3388
|
let i = e._zod.def;
|
|
3389
3389
|
if (i.values.length === 0) {
|
|
3390
3390
|
n.not = {};
|
|
@@ -3392,9 +3392,9 @@ var Zo = {
|
|
|
3392
3392
|
}
|
|
3393
3393
|
let a = [];
|
|
3394
3394
|
for (let o of i.values) if (o === void 0) {
|
|
3395
|
-
if (
|
|
3395
|
+
if (ko(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
|
|
3396
3396
|
} else if (typeof o == "bigint") {
|
|
3397
|
-
if (
|
|
3397
|
+
if (ko(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
|
|
3398
3398
|
a.push(Number(o));
|
|
3399
3399
|
} else a.push(o);
|
|
3400
3400
|
if (a.length !== 0) {
|
|
@@ -3403,26 +3403,26 @@ var Zo = {
|
|
|
3403
3403
|
n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
|
|
3404
3404
|
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
3405
3405
|
}
|
|
3406
|
-
}, ss = (e, t, n, r) => {
|
|
3407
|
-
Oo(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3408
3406
|
}, cs = (e, t, n, r) => {
|
|
3409
|
-
|
|
3407
|
+
ko(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3410
3408
|
}, ls = (e, t, n, r) => {
|
|
3411
|
-
|
|
3412
|
-
|
|
3409
|
+
ko(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3410
|
+
}, us = (e, t, n, r) => {
|
|
3411
|
+
let i = n, a = e._zod.def, { minimum: o, maximum: s } = I(e);
|
|
3412
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = P(a.element, t, {
|
|
3413
3413
|
...r,
|
|
3414
3414
|
path: [...r.path, "items"]
|
|
3415
3415
|
});
|
|
3416
3416
|
};
|
|
3417
|
-
function
|
|
3417
|
+
function ds(e) {
|
|
3418
3418
|
let t = e._zod.def;
|
|
3419
|
-
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ?
|
|
3419
|
+
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? ds(t.out) : t.type === "catch" ? ds(t.innerType) : e._zod.optin;
|
|
3420
3420
|
}
|
|
3421
|
-
var
|
|
3421
|
+
var fs = (e, t, n, r) => {
|
|
3422
3422
|
let i = n, a = e._zod.def, o = a.shape;
|
|
3423
|
-
if (Object.getOwnPropertySymbols(o).length &&
|
|
3423
|
+
if (Object.getOwnPropertySymbols(o).length && ko(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
3424
3424
|
i.type = "object", i.properties = {};
|
|
3425
|
-
for (let e in o) C(i.properties, e,
|
|
3425
|
+
for (let e in o) C(i.properties, e, P(o[e], t, {
|
|
3426
3426
|
...r,
|
|
3427
3427
|
path: [
|
|
3428
3428
|
...r.path,
|
|
@@ -3433,14 +3433,14 @@ var ds = (e, t, n, r) => {
|
|
|
3433
3433
|
let s = [];
|
|
3434
3434
|
for (let e of Object.keys(o)) {
|
|
3435
3435
|
let n = a.shape[e];
|
|
3436
|
-
(t.io === "input" ?
|
|
3436
|
+
(t.io === "input" ? ds(n) === void 0 : n._zod.optout === void 0) && s.push(e);
|
|
3437
3437
|
}
|
|
3438
|
-
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
3438
|
+
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = P(a.catchall, t, {
|
|
3439
3439
|
...r,
|
|
3440
3440
|
path: [...r.path, "additionalProperties"]
|
|
3441
3441
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
3442
|
-
},
|
|
3443
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
3442
|
+
}, ps = (e, t, n, r) => {
|
|
3443
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => P(e, t, {
|
|
3444
3444
|
...r,
|
|
3445
3445
|
path: [
|
|
3446
3446
|
...r.path,
|
|
@@ -3449,15 +3449,15 @@ var ds = (e, t, n, r) => {
|
|
|
3449
3449
|
]
|
|
3450
3450
|
}));
|
|
3451
3451
|
a ? n.oneOf = o : n.anyOf = o;
|
|
3452
|
-
},
|
|
3453
|
-
let i = e._zod.def, a =
|
|
3452
|
+
}, ms = (e, t, n, r) => {
|
|
3453
|
+
let i = e._zod.def, a = P(i.left, t, {
|
|
3454
3454
|
...r,
|
|
3455
3455
|
path: [
|
|
3456
3456
|
...r.path,
|
|
3457
3457
|
"allOf",
|
|
3458
3458
|
0
|
|
3459
3459
|
]
|
|
3460
|
-
}), o =
|
|
3460
|
+
}), o = P(i.right, t, {
|
|
3461
3461
|
...r,
|
|
3462
3462
|
path: [
|
|
3463
3463
|
...r.path,
|
|
@@ -3467,19 +3467,19 @@ var ds = (e, t, n, r) => {
|
|
|
3467
3467
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
3468
3468
|
n.allOf = c, t.intersections.push(c);
|
|
3469
3469
|
};
|
|
3470
|
-
function
|
|
3470
|
+
function hs(e, t, n) {
|
|
3471
3471
|
if (t.$ref) {
|
|
3472
3472
|
if (n.has(t)) return t;
|
|
3473
3473
|
n.add(t);
|
|
3474
3474
|
let r = e.get(t)?.def;
|
|
3475
3475
|
if (!r) return t;
|
|
3476
|
-
let i =
|
|
3476
|
+
let i = hs(e, r, n);
|
|
3477
3477
|
return i === r ? t : i;
|
|
3478
3478
|
}
|
|
3479
3479
|
for (let r of ["anyOf", "oneOf"]) {
|
|
3480
3480
|
let i = t[r];
|
|
3481
3481
|
if (!Array.isArray(i)) continue;
|
|
3482
|
-
let a = i.map((t) =>
|
|
3482
|
+
let a = i.map((t) => hs(e, t, n));
|
|
3483
3483
|
a.some((e, t) => e !== i[t]) && (t = {
|
|
3484
3484
|
...t,
|
|
3485
3485
|
[r]: a
|
|
@@ -3488,17 +3488,17 @@ function ms(e, t, n) {
|
|
|
3488
3488
|
let r = Array.isArray(t.type) ? t.type : [t.type], i = !r.includes("string") && r.some((e) => e === "number" || e === "integer"), a = t.enum ?? (t.const === void 0 ? void 0 : [t.const]);
|
|
3489
3489
|
if (!i && !a?.some((e) => typeof e == "number")) return t;
|
|
3490
3490
|
let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
|
|
3491
|
-
return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ?
|
|
3491
|
+
return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Qn : Zn).source), p) : p;
|
|
3492
3492
|
}
|
|
3493
|
-
var
|
|
3494
|
-
function
|
|
3493
|
+
var gs = /* @__PURE__ */ new WeakMap();
|
|
3494
|
+
function _s(e) {
|
|
3495
3495
|
let t = /* @__PURE__ */ new Map();
|
|
3496
3496
|
for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
|
|
3497
3497
|
let n = /* @__PURE__ */ new Map();
|
|
3498
|
-
for (let r of
|
|
3498
|
+
for (let r of gs.get(e) ?? []) {
|
|
3499
3499
|
let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
|
|
3500
3500
|
if (!a || a === !0 || n.has(a)) continue;
|
|
3501
|
-
let o =
|
|
3501
|
+
let o = hs(t, a, /* @__PURE__ */ new Set());
|
|
3502
3502
|
o !== a && n.set(a, o);
|
|
3503
3503
|
}
|
|
3504
3504
|
if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
|
|
@@ -3506,12 +3506,12 @@ function gs(e) {
|
|
|
3506
3506
|
t && (e.propertyNames = t);
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
3509
|
-
var
|
|
3509
|
+
var vs = (e, t, n, r) => {
|
|
3510
3510
|
let i = n, a = e._zod.def;
|
|
3511
3511
|
i.type = "object";
|
|
3512
|
-
let o = a.keyType, s =
|
|
3512
|
+
let o = a.keyType, s = I(o).patterns;
|
|
3513
3513
|
if (a.mode === "loose" && s && s.size > 0) {
|
|
3514
|
-
let e =
|
|
3514
|
+
let e = P(a.valueType, t, {
|
|
3515
3515
|
...r,
|
|
3516
3516
|
path: [
|
|
3517
3517
|
...r.path,
|
|
@@ -3520,88 +3520,88 @@ var _s = (e, t, n, r) => {
|
|
|
3520
3520
|
]
|
|
3521
3521
|
});
|
|
3522
3522
|
i.patternProperties = {};
|
|
3523
|
-
for (let t of s) C(i.patternProperties,
|
|
3523
|
+
for (let t of s) C(i.patternProperties, es(t).source, e);
|
|
3524
3524
|
} else {
|
|
3525
3525
|
if (t.target === "draft-07" || t.target === "draft-2020-12") {
|
|
3526
|
-
i.propertyNames =
|
|
3526
|
+
i.propertyNames = P(a.keyType, t, {
|
|
3527
3527
|
...r,
|
|
3528
3528
|
path: [...r.path, "propertyNames"]
|
|
3529
3529
|
});
|
|
3530
|
-
let n =
|
|
3531
|
-
n || (n = [],
|
|
3530
|
+
let n = gs.get(t);
|
|
3531
|
+
n || (n = [], gs.set(t, n), t.deferred.push(() => _s(t))), n.push(e);
|
|
3532
3532
|
}
|
|
3533
|
-
i.additionalProperties =
|
|
3533
|
+
i.additionalProperties = P(a.valueType, t, {
|
|
3534
3534
|
...r,
|
|
3535
3535
|
path: [...r.path, "additionalProperties"]
|
|
3536
3536
|
});
|
|
3537
3537
|
}
|
|
3538
|
-
let c = o._zod.values, l = t.io === "input" &&
|
|
3538
|
+
let c = o._zod.values, l = t.io === "input" && ds(a.valueType) !== void 0;
|
|
3539
3539
|
if (c && !a.partial && !l) {
|
|
3540
3540
|
let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
|
|
3541
3541
|
e.length > 0 && (i.required = e.map(String));
|
|
3542
3542
|
}
|
|
3543
|
-
}, vs = (e, t, n, r) => {
|
|
3544
|
-
let i = e._zod.def, a = F(i.innerType, t, r), o = t.seen.get(e);
|
|
3545
|
-
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3546
3543
|
}, ys = (e, t, n, r) => {
|
|
3544
|
+
let i = e._zod.def, a = P(i.innerType, t, r), o = t.seen.get(e);
|
|
3545
|
+
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3546
|
+
}, bs = (e, t, n, r) => {
|
|
3547
3547
|
let i = e._zod.def;
|
|
3548
|
-
|
|
3548
|
+
P(i.innerType, t, r);
|
|
3549
3549
|
let a = t.seen.get(e);
|
|
3550
3550
|
a.ref = i.innerType;
|
|
3551
|
-
},
|
|
3552
|
-
function
|
|
3551
|
+
}, xs = Symbol();
|
|
3552
|
+
function Ss(e, t, n, r, i) {
|
|
3553
3553
|
let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
|
|
3554
|
-
return a ? (
|
|
3554
|
+
return a ? (ko(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), xs) : JSON.parse(o);
|
|
3555
3555
|
}
|
|
3556
|
-
var
|
|
3556
|
+
var Cs = (e, t, n, r) => {
|
|
3557
3557
|
let i = e._zod.def;
|
|
3558
|
-
|
|
3558
|
+
P(i.innerType, t, r);
|
|
3559
3559
|
let a = t.seen.get(e);
|
|
3560
3560
|
a.ref = i.innerType;
|
|
3561
|
-
let o =
|
|
3562
|
-
o !==
|
|
3563
|
-
},
|
|
3561
|
+
let o = Ss(i.defaultValue, e, t, n, r);
|
|
3562
|
+
o !== xs && (n.default = o);
|
|
3563
|
+
}, ws = (e, t, n, r) => {
|
|
3564
3564
|
let i = e._zod.def;
|
|
3565
|
-
|
|
3565
|
+
P(i.innerType, t, r);
|
|
3566
3566
|
let a = t.seen.get(e);
|
|
3567
3567
|
if (a.ref = i.innerType, t.io !== "input") return;
|
|
3568
|
-
let o =
|
|
3569
|
-
o !==
|
|
3570
|
-
},
|
|
3568
|
+
let o = Ss(i.defaultValue, e, t, n, r);
|
|
3569
|
+
o !== xs && (n._prefault = o);
|
|
3570
|
+
}, Ts = (e, t, n, r) => {
|
|
3571
3571
|
let i = e._zod.def;
|
|
3572
|
-
|
|
3572
|
+
P(i.innerType, t, r);
|
|
3573
3573
|
let a = t.seen.get(e);
|
|
3574
3574
|
a.ref = i.innerType;
|
|
3575
3575
|
let o;
|
|
3576
3576
|
try {
|
|
3577
3577
|
o = i.catchValue(void 0);
|
|
3578
3578
|
} catch {
|
|
3579
|
-
|
|
3579
|
+
ko(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
|
|
3580
3580
|
return;
|
|
3581
3581
|
}
|
|
3582
3582
|
n.default = o;
|
|
3583
|
-
},
|
|
3583
|
+
}, Es = (e, t, n, r) => {
|
|
3584
3584
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
3585
|
-
|
|
3585
|
+
P(o, t, r);
|
|
3586
3586
|
let s = t.seen.get(e);
|
|
3587
3587
|
s.ref = o;
|
|
3588
|
-
},
|
|
3588
|
+
}, Ds = (e, t, n, r) => {
|
|
3589
3589
|
let i = e._zod.def;
|
|
3590
|
-
|
|
3590
|
+
P(i.innerType, t, r);
|
|
3591
3591
|
let a = t.seen.get(e);
|
|
3592
3592
|
a.ref = i.innerType, n.readOnly = !0;
|
|
3593
|
-
},
|
|
3593
|
+
}, Os = (e, t, n, r) => {
|
|
3594
3594
|
let i = e._zod.def;
|
|
3595
|
-
|
|
3595
|
+
P(i.innerType, t, r);
|
|
3596
3596
|
let a = t.seen.get(e);
|
|
3597
3597
|
a.ref = i.innerType;
|
|
3598
|
-
},
|
|
3598
|
+
}, ks = (e, t, n, r) => {
|
|
3599
3599
|
let i = e._zod.innerType;
|
|
3600
|
-
|
|
3600
|
+
P(i, t, r);
|
|
3601
3601
|
let a = t.seen.get(e);
|
|
3602
3602
|
a.ref = i;
|
|
3603
|
-
},
|
|
3604
|
-
function
|
|
3603
|
+
}, As = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
3604
|
+
function js(e, t, n) {
|
|
3605
3605
|
Object.defineProperty(e, t, {
|
|
3606
3606
|
configurable: !0,
|
|
3607
3607
|
enumerable: !1,
|
|
@@ -3622,12 +3622,12 @@ function As(e, t, n) {
|
|
|
3622
3622
|
}
|
|
3623
3623
|
});
|
|
3624
3624
|
}
|
|
3625
|
-
var
|
|
3626
|
-
|
|
3625
|
+
var L = /*@__PURE__*/ O("ZodError", (e, t) => {
|
|
3626
|
+
$t.init(e, t), e.name = "ZodError";
|
|
3627
3627
|
let n = Object.getPrototypeOf(e);
|
|
3628
|
-
|
|
3628
|
+
As.has(n) || (As.add(n), js(n, "format", (e) => (t) => nn(e, t)), js(n, "flatten", (e) => (t) => tn(e, t)), js(n, "addIssue", (e) => (t) => {
|
|
3629
3629
|
e.issues.push(t), e.message = JSON.stringify(e.issues, Ie, 2);
|
|
3630
|
-
}),
|
|
3630
|
+
}), js(n, "addIssues", (e) => (t) => {
|
|
3631
3631
|
e.issues.push(...t), e.message = JSON.stringify(e.issues, Ie, 2);
|
|
3632
3632
|
}), Object.defineProperty(n, "isEmpty", {
|
|
3633
3633
|
configurable: !0,
|
|
@@ -3636,16 +3636,16 @@ var R = /*@__PURE__*/ k("ZodError", (e, t) => {
|
|
|
3636
3636
|
return this.issues.length === 0;
|
|
3637
3637
|
}
|
|
3638
3638
|
}));
|
|
3639
|
-
}, void 0, { Parent: Error }),
|
|
3639
|
+
}, void 0, { Parent: Error }), Ms = /* @__PURE__ */ an(L), Ns = /* @__PURE__ */ on(L), Ps = /* @__PURE__ */ sn(L), Fs = /* @__PURE__ */ ln(L), Is = /* @__PURE__ */ hn(L), Ls = /* @__PURE__ */ gn(L), Rs = /* @__PURE__ */ _n(L), zs = /* @__PURE__ */ vn(L), Bs = /* @__PURE__ */ yn(L), Vs = /* @__PURE__ */ bn(L), Hs = /* @__PURE__ */ xn(L), Us = /* @__PURE__ */ Sn(L);
|
|
3640
3640
|
//#endregion
|
|
3641
3641
|
//#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
|
|
3642
|
-
function Us() {
|
|
3643
|
-
A.localeError || j(ga());
|
|
3644
|
-
}
|
|
3645
3642
|
function Ws() {
|
|
3646
|
-
|
|
3643
|
+
k.localeError || A(_a());
|
|
3647
3644
|
}
|
|
3648
|
-
|
|
3645
|
+
function Gs() {
|
|
3646
|
+
k.memoizer || A({ memoizer: ma() });
|
|
3647
|
+
}
|
|
3648
|
+
var R = /*@__PURE__*/ O("ZodType", (e, t) => (Ws(), M.init(e, t), e.def = t, e.type = t.type, e), {
|
|
3649
3649
|
check(...e) {
|
|
3650
3650
|
let t = this.def;
|
|
3651
3651
|
return this.clone(T(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -3673,7 +3673,7 @@ var z = /*@__PURE__*/ k("ZodType", (e, t) => (Us(), N.init(e, t), e.def = t, e.t
|
|
|
3673
3673
|
return this.check(ll(e, t));
|
|
3674
3674
|
},
|
|
3675
3675
|
overwrite(e) {
|
|
3676
|
-
return this.check(/* @__PURE__ */
|
|
3676
|
+
return this.check(/* @__PURE__ */ _o(e));
|
|
3677
3677
|
},
|
|
3678
3678
|
optional() {
|
|
3679
3679
|
return Hc(this);
|
|
@@ -3691,7 +3691,7 @@ var z = /*@__PURE__*/ k("ZodType", (e, t) => (Us(), N.init(e, t), e.def = t, e.t
|
|
|
3691
3691
|
return Qc(this, e);
|
|
3692
3692
|
},
|
|
3693
3693
|
array() {
|
|
3694
|
-
return
|
|
3694
|
+
return V(this);
|
|
3695
3695
|
},
|
|
3696
3696
|
or(e) {
|
|
3697
3697
|
return W([this, e]);
|
|
@@ -3719,12 +3719,12 @@ var z = /*@__PURE__*/ k("ZodType", (e, t) => (Us(), N.init(e, t), e.def = t, e.t
|
|
|
3719
3719
|
},
|
|
3720
3720
|
describe(e) {
|
|
3721
3721
|
let t = this.clone();
|
|
3722
|
-
return
|
|
3722
|
+
return xa.add(t, { description: e }), t;
|
|
3723
3723
|
},
|
|
3724
3724
|
meta(...e) {
|
|
3725
|
-
if (e.length === 0) return
|
|
3725
|
+
if (e.length === 0) return xa.get(this);
|
|
3726
3726
|
let t = this.clone();
|
|
3727
|
-
return
|
|
3727
|
+
return xa.add(t, e[0]), t;
|
|
3728
3728
|
},
|
|
3729
3729
|
isOptional() {
|
|
3730
3730
|
return this.safeParse(void 0).success;
|
|
@@ -3736,379 +3736,379 @@ var z = /*@__PURE__*/ k("ZodType", (e, t) => (Us(), N.init(e, t), e.def = t, e.t
|
|
|
3736
3736
|
return t.length === 0 ? e(this) : e(this, ...t);
|
|
3737
3737
|
},
|
|
3738
3738
|
get "~standard"() {
|
|
3739
|
-
return
|
|
3740
|
-
...
|
|
3739
|
+
return jt(this, "~standard", {
|
|
3740
|
+
...wr(this),
|
|
3741
3741
|
jsonSchema: {
|
|
3742
|
-
input:
|
|
3743
|
-
output:
|
|
3742
|
+
input: Bo(this, "input"),
|
|
3743
|
+
output: Bo(this, "output")
|
|
3744
3744
|
}
|
|
3745
3745
|
});
|
|
3746
3746
|
},
|
|
3747
3747
|
set "~standard"(e) {
|
|
3748
|
-
|
|
3748
|
+
At(this, "~standard", e);
|
|
3749
3749
|
},
|
|
3750
3750
|
parse: function e(t, n) {
|
|
3751
|
-
return
|
|
3751
|
+
return Ms(this, t, n, { callee: e });
|
|
3752
3752
|
},
|
|
3753
3753
|
parseAsync: async function e(t, n) {
|
|
3754
|
-
return await
|
|
3754
|
+
return await Ns(this, t, n, { callee: e });
|
|
3755
3755
|
},
|
|
3756
3756
|
safeParse(e, t) {
|
|
3757
|
-
return
|
|
3757
|
+
return Ps(this, e, t);
|
|
3758
3758
|
},
|
|
3759
3759
|
async safeParseAsync(e, t) {
|
|
3760
|
-
return
|
|
3760
|
+
return Fs(this, e, t);
|
|
3761
3761
|
},
|
|
3762
3762
|
get spa() {
|
|
3763
3763
|
return this?.safeParseAsync;
|
|
3764
3764
|
},
|
|
3765
3765
|
set spa(e) {
|
|
3766
|
-
|
|
3766
|
+
At(this, "spa", e);
|
|
3767
3767
|
},
|
|
3768
3768
|
validate(e, t) {
|
|
3769
|
-
return
|
|
3769
|
+
return fn(this, e, t);
|
|
3770
3770
|
},
|
|
3771
3771
|
validateAsync(e, t) {
|
|
3772
|
-
return
|
|
3772
|
+
return mn(this, e, t);
|
|
3773
3773
|
},
|
|
3774
3774
|
encode: function e(t, n) {
|
|
3775
|
-
return
|
|
3775
|
+
return Is(this, t, n, { callee: e });
|
|
3776
3776
|
},
|
|
3777
3777
|
decode: function e(t, n) {
|
|
3778
|
-
return
|
|
3778
|
+
return Ls(this, t, n, { callee: e });
|
|
3779
3779
|
},
|
|
3780
3780
|
encodeAsync: async function e(t, n) {
|
|
3781
|
-
return await
|
|
3781
|
+
return await Rs(this, t, n, { callee: e });
|
|
3782
3782
|
},
|
|
3783
3783
|
decodeAsync: async function e(t, n) {
|
|
3784
|
-
return await
|
|
3784
|
+
return await zs(this, t, n, { callee: e });
|
|
3785
3785
|
},
|
|
3786
3786
|
safeEncode(e, t) {
|
|
3787
|
-
return
|
|
3787
|
+
return Bs(this, e, t);
|
|
3788
3788
|
},
|
|
3789
3789
|
safeDecode(e, t) {
|
|
3790
|
-
return
|
|
3790
|
+
return Vs(this, e, t);
|
|
3791
3791
|
},
|
|
3792
3792
|
async safeEncodeAsync(e, t) {
|
|
3793
|
-
return
|
|
3793
|
+
return Hs(this, e, t);
|
|
3794
3794
|
},
|
|
3795
3795
|
async safeDecodeAsync(e, t) {
|
|
3796
|
-
return
|
|
3796
|
+
return Us(this, e, t);
|
|
3797
3797
|
},
|
|
3798
3798
|
toJSONSchema(e) {
|
|
3799
|
-
return
|
|
3799
|
+
return zo(this, {})(e);
|
|
3800
3800
|
},
|
|
3801
3801
|
get description() {
|
|
3802
|
-
return
|
|
3802
|
+
return xa.get(this)?.description;
|
|
3803
3803
|
},
|
|
3804
3804
|
get _def() {
|
|
3805
3805
|
return this._zod.def;
|
|
3806
3806
|
}
|
|
3807
|
-
}),
|
|
3808
|
-
|
|
3809
|
-
}, /*@__PURE__*/
|
|
3810
|
-
format: (e) =>
|
|
3811
|
-
minLength: (e) =>
|
|
3812
|
-
maxLength: (e) =>
|
|
3807
|
+
}), Ks = /*@__PURE__*/ O("_ZodString", (e, t) => {
|
|
3808
|
+
Tr.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ts(e, t, n, r);
|
|
3809
|
+
}, /*@__PURE__*/ Mt({
|
|
3810
|
+
format: (e) => I(e).format ?? null,
|
|
3811
|
+
minLength: (e) => I(e).minimum ?? null,
|
|
3812
|
+
maxLength: (e) => I(e).maximum ?? null
|
|
3813
3813
|
}, {
|
|
3814
3814
|
regex(...e) {
|
|
3815
|
-
return this.check(/* @__PURE__ */
|
|
3815
|
+
return this.check(/* @__PURE__ */ uo(...e));
|
|
3816
3816
|
},
|
|
3817
3817
|
includes(...e) {
|
|
3818
|
-
return this.check(/* @__PURE__ */
|
|
3818
|
+
return this.check(/* @__PURE__ */ mo(...e));
|
|
3819
3819
|
},
|
|
3820
3820
|
startsWith(...e) {
|
|
3821
|
-
return this.check(/* @__PURE__ */
|
|
3821
|
+
return this.check(/* @__PURE__ */ ho(...e));
|
|
3822
3822
|
},
|
|
3823
3823
|
endsWith(...e) {
|
|
3824
|
-
return this.check(/* @__PURE__ */
|
|
3824
|
+
return this.check(/* @__PURE__ */ go(...e));
|
|
3825
3825
|
},
|
|
3826
3826
|
min(...e) {
|
|
3827
|
-
return this.check(/* @__PURE__ */
|
|
3827
|
+
return this.check(/* @__PURE__ */ co(...e));
|
|
3828
3828
|
},
|
|
3829
3829
|
max(...e) {
|
|
3830
|
-
return this.check(/* @__PURE__ */
|
|
3830
|
+
return this.check(/* @__PURE__ */ so(...e));
|
|
3831
3831
|
},
|
|
3832
3832
|
length(...e) {
|
|
3833
|
-
return this.check(/* @__PURE__ */
|
|
3833
|
+
return this.check(/* @__PURE__ */ lo(...e));
|
|
3834
3834
|
},
|
|
3835
3835
|
nonempty(...e) {
|
|
3836
|
-
return this.check(/* @__PURE__ */
|
|
3836
|
+
return this.check(/* @__PURE__ */ co(1, ...e));
|
|
3837
3837
|
},
|
|
3838
3838
|
lowercase(e) {
|
|
3839
|
-
return this.check(/* @__PURE__ */
|
|
3839
|
+
return this.check(/* @__PURE__ */ fo(e));
|
|
3840
3840
|
},
|
|
3841
3841
|
uppercase(e) {
|
|
3842
|
-
return this.check(/* @__PURE__ */
|
|
3842
|
+
return this.check(/* @__PURE__ */ po(e));
|
|
3843
3843
|
},
|
|
3844
3844
|
trim() {
|
|
3845
|
-
return this.check(/* @__PURE__ */
|
|
3845
|
+
return this.check(/* @__PURE__ */ yo());
|
|
3846
3846
|
},
|
|
3847
3847
|
normalize(...e) {
|
|
3848
|
-
return this.check(/* @__PURE__ */
|
|
3848
|
+
return this.check(/* @__PURE__ */ vo(...e));
|
|
3849
3849
|
},
|
|
3850
3850
|
toLowerCase() {
|
|
3851
|
-
return this.check(/* @__PURE__ */
|
|
3851
|
+
return this.check(/* @__PURE__ */ bo());
|
|
3852
3852
|
},
|
|
3853
3853
|
toUpperCase() {
|
|
3854
|
-
return this.check(/* @__PURE__ */
|
|
3854
|
+
return this.check(/* @__PURE__ */ xo());
|
|
3855
3855
|
},
|
|
3856
3856
|
slugify() {
|
|
3857
|
-
return this.check(/* @__PURE__ */
|
|
3857
|
+
return this.check(/* @__PURE__ */ So());
|
|
3858
3858
|
}
|
|
3859
|
-
})),
|
|
3860
|
-
|
|
3859
|
+
})), qs = /*@__PURE__*/ O("ZodString", (e, t) => {
|
|
3860
|
+
Tr.init(e, t), Ks.init(e, t);
|
|
3861
3861
|
}, {
|
|
3862
3862
|
email(e) {
|
|
3863
|
-
return this.check(/* @__PURE__ */
|
|
3863
|
+
return this.check(/* @__PURE__ */ wa($s, e));
|
|
3864
3864
|
},
|
|
3865
3865
|
url(e) {
|
|
3866
|
-
return this.check(/* @__PURE__ */
|
|
3866
|
+
return this.check(/* @__PURE__ */ Aa(nc, e));
|
|
3867
3867
|
},
|
|
3868
3868
|
jwt(e) {
|
|
3869
|
-
return this.check(/* @__PURE__ */
|
|
3869
|
+
return this.check(/* @__PURE__ */ Ga(_c, e));
|
|
3870
3870
|
},
|
|
3871
3871
|
emoji(e) {
|
|
3872
|
-
return this.check(/* @__PURE__ */
|
|
3872
|
+
return this.check(/* @__PURE__ */ ja(rc, e));
|
|
3873
3873
|
},
|
|
3874
3874
|
guid(e) {
|
|
3875
|
-
return this.check(/* @__PURE__ */
|
|
3875
|
+
return this.check(/* @__PURE__ */ Ta(ec, e));
|
|
3876
3876
|
},
|
|
3877
3877
|
uuid(e) {
|
|
3878
|
-
return this.check(/* @__PURE__ */
|
|
3878
|
+
return this.check(/* @__PURE__ */ Ea(tc, e));
|
|
3879
3879
|
},
|
|
3880
3880
|
uuidv4(e) {
|
|
3881
|
-
return this.check(/* @__PURE__ */
|
|
3881
|
+
return this.check(/* @__PURE__ */ Da(tc, e));
|
|
3882
3882
|
},
|
|
3883
3883
|
uuidv6(e) {
|
|
3884
|
-
return this.check(/* @__PURE__ */
|
|
3884
|
+
return this.check(/* @__PURE__ */ Oa(tc, e));
|
|
3885
3885
|
},
|
|
3886
3886
|
uuidv7(e) {
|
|
3887
|
-
return this.check(/* @__PURE__ */
|
|
3887
|
+
return this.check(/* @__PURE__ */ ka(tc, e));
|
|
3888
3888
|
},
|
|
3889
3889
|
nanoid(e) {
|
|
3890
|
-
return this.check(/* @__PURE__ */
|
|
3890
|
+
return this.check(/* @__PURE__ */ Ma(ic, e));
|
|
3891
3891
|
},
|
|
3892
3892
|
cuid(e) {
|
|
3893
|
-
return this.check(/* @__PURE__ */
|
|
3893
|
+
return this.check(/* @__PURE__ */ Na(ac, e));
|
|
3894
3894
|
},
|
|
3895
3895
|
cuid2(e) {
|
|
3896
|
-
return this.check(/* @__PURE__ */
|
|
3896
|
+
return this.check(/* @__PURE__ */ Pa(oc, e));
|
|
3897
3897
|
},
|
|
3898
3898
|
ulid(e) {
|
|
3899
|
-
return this.check(/* @__PURE__ */
|
|
3899
|
+
return this.check(/* @__PURE__ */ Fa(sc, e));
|
|
3900
3900
|
},
|
|
3901
3901
|
base64(e) {
|
|
3902
|
-
return this.check(/* @__PURE__ */
|
|
3902
|
+
return this.check(/* @__PURE__ */ Ha(mc, e));
|
|
3903
3903
|
},
|
|
3904
3904
|
base64url(e) {
|
|
3905
|
-
return this.check(/* @__PURE__ */
|
|
3905
|
+
return this.check(/* @__PURE__ */ Ua(hc, e));
|
|
3906
3906
|
},
|
|
3907
3907
|
xid(e) {
|
|
3908
|
-
return this.check(/* @__PURE__ */
|
|
3908
|
+
return this.check(/* @__PURE__ */ Ia(cc, e));
|
|
3909
3909
|
},
|
|
3910
3910
|
ksuid(e) {
|
|
3911
|
-
return this.check(/* @__PURE__ */
|
|
3911
|
+
return this.check(/* @__PURE__ */ La(lc, e));
|
|
3912
3912
|
},
|
|
3913
3913
|
ipv4(e) {
|
|
3914
|
-
return this.check(/* @__PURE__ */
|
|
3914
|
+
return this.check(/* @__PURE__ */ Ra(uc, e));
|
|
3915
3915
|
},
|
|
3916
3916
|
ipv6(e) {
|
|
3917
|
-
return this.check(/* @__PURE__ */
|
|
3917
|
+
return this.check(/* @__PURE__ */ za(dc, e));
|
|
3918
3918
|
},
|
|
3919
3919
|
cidrv4(e) {
|
|
3920
|
-
return this.check(/* @__PURE__ */
|
|
3920
|
+
return this.check(/* @__PURE__ */ Ba(fc, e));
|
|
3921
3921
|
},
|
|
3922
3922
|
cidrv6(e) {
|
|
3923
|
-
return this.check(/* @__PURE__ */
|
|
3923
|
+
return this.check(/* @__PURE__ */ Va(pc, e));
|
|
3924
3924
|
},
|
|
3925
3925
|
e164(e) {
|
|
3926
|
-
return this.check(/* @__PURE__ */
|
|
3926
|
+
return this.check(/* @__PURE__ */ Wa(gc, e));
|
|
3927
3927
|
},
|
|
3928
3928
|
datetime(e) {
|
|
3929
|
-
return this.check(/* @__PURE__ */
|
|
3929
|
+
return this.check(/* @__PURE__ */ Ka(Ys, e));
|
|
3930
3930
|
},
|
|
3931
3931
|
date(e) {
|
|
3932
|
-
return this.check(/* @__PURE__ */
|
|
3932
|
+
return this.check(/* @__PURE__ */ qa(Xs, e));
|
|
3933
3933
|
},
|
|
3934
3934
|
time(e) {
|
|
3935
|
-
return this.check(/* @__PURE__ */
|
|
3935
|
+
return this.check(/* @__PURE__ */ Ja(Zs, e));
|
|
3936
3936
|
},
|
|
3937
3937
|
duration(e) {
|
|
3938
|
-
return this.check(/* @__PURE__ */
|
|
3938
|
+
return this.check(/* @__PURE__ */ Ya(Qs, e));
|
|
3939
3939
|
}
|
|
3940
3940
|
});
|
|
3941
|
-
function
|
|
3942
|
-
return /* @__PURE__ */
|
|
3943
|
-
}
|
|
3944
|
-
var
|
|
3945
|
-
|
|
3946
|
-
}),
|
|
3947
|
-
|
|
3948
|
-
}),
|
|
3949
|
-
|
|
3950
|
-
}),
|
|
3951
|
-
|
|
3952
|
-
}),
|
|
3953
|
-
|
|
3954
|
-
}),
|
|
3955
|
-
|
|
3956
|
-
}),
|
|
3957
|
-
|
|
3958
|
-
}),
|
|
3959
|
-
|
|
3960
|
-
}),
|
|
3961
|
-
|
|
3962
|
-
}),
|
|
3963
|
-
|
|
3964
|
-
}),
|
|
3965
|
-
|
|
3966
|
-
}),
|
|
3967
|
-
|
|
3968
|
-
}),
|
|
3969
|
-
|
|
3970
|
-
}),
|
|
3971
|
-
|
|
3972
|
-
}),
|
|
3973
|
-
|
|
3974
|
-
}),
|
|
3975
|
-
|
|
3976
|
-
}),
|
|
3977
|
-
|
|
3978
|
-
}),
|
|
3979
|
-
|
|
3980
|
-
}),
|
|
3981
|
-
|
|
3982
|
-
}),
|
|
3983
|
-
|
|
3984
|
-
}),
|
|
3985
|
-
|
|
3986
|
-
}),
|
|
3987
|
-
|
|
3988
|
-
}),
|
|
3989
|
-
|
|
3990
|
-
}),
|
|
3991
|
-
|
|
3992
|
-
}),
|
|
3993
|
-
|
|
3994
|
-
}, /*@__PURE__*/
|
|
3941
|
+
function Js(e) {
|
|
3942
|
+
return /* @__PURE__ */ Ca(qs, e);
|
|
3943
|
+
}
|
|
3944
|
+
var z = /*@__PURE__*/ O("ZodStringFormat", (e, t) => {
|
|
3945
|
+
N.init(e, t), Ks.init(e, t);
|
|
3946
|
+
}), Ys = /*@__PURE__*/ O("ZodISODateTime", (e, t) => {
|
|
3947
|
+
Wr.init(e, t), z.init(e, t);
|
|
3948
|
+
}), Xs = /*@__PURE__*/ O("ZodISODate", (e, t) => {
|
|
3949
|
+
Gr.init(e, t), z.init(e, t);
|
|
3950
|
+
}), Zs = /*@__PURE__*/ O("ZodISOTime", (e, t) => {
|
|
3951
|
+
Kr.init(e, t), z.init(e, t);
|
|
3952
|
+
}), Qs = /*@__PURE__*/ O("ZodISODuration", (e, t) => {
|
|
3953
|
+
qr.init(e, t), z.init(e, t);
|
|
3954
|
+
}), $s = /*@__PURE__*/ O("ZodEmail", (e, t) => {
|
|
3955
|
+
Or.init(e, t), z.init(e, t);
|
|
3956
|
+
}), ec = /*@__PURE__*/ O("ZodGUID", (e, t) => {
|
|
3957
|
+
Er.init(e, t), z.init(e, t);
|
|
3958
|
+
}), tc = /*@__PURE__*/ O("ZodUUID", (e, t) => {
|
|
3959
|
+
Dr.init(e, t), z.init(e, t);
|
|
3960
|
+
}), nc = /*@__PURE__*/ O("ZodURL", (e, t) => {
|
|
3961
|
+
Ir.init(e, t), z.init(e, t);
|
|
3962
|
+
}), rc = /*@__PURE__*/ O("ZodEmoji", (e, t) => {
|
|
3963
|
+
Lr.init(e, t), z.init(e, t);
|
|
3964
|
+
}), ic = /*@__PURE__*/ O("ZodNanoID", (e, t) => {
|
|
3965
|
+
Rr.init(e, t), z.init(e, t);
|
|
3966
|
+
}), ac = /*@__PURE__*/ O("ZodCUID", (e, t) => {
|
|
3967
|
+
zr.init(e, t), z.init(e, t);
|
|
3968
|
+
}), oc = /*@__PURE__*/ O("ZodCUID2", (e, t) => {
|
|
3969
|
+
Br.init(e, t), z.init(e, t);
|
|
3970
|
+
}), sc = /*@__PURE__*/ O("ZodULID", (e, t) => {
|
|
3971
|
+
Vr.init(e, t), z.init(e, t);
|
|
3972
|
+
}), cc = /*@__PURE__*/ O("ZodXID", (e, t) => {
|
|
3973
|
+
Hr.init(e, t), z.init(e, t);
|
|
3974
|
+
}), lc = /*@__PURE__*/ O("ZodKSUID", (e, t) => {
|
|
3975
|
+
Ur.init(e, t), z.init(e, t);
|
|
3976
|
+
}), uc = /*@__PURE__*/ O("ZodIPv4", (e, t) => {
|
|
3977
|
+
Jr.init(e, t), z.init(e, t);
|
|
3978
|
+
}), dc = /*@__PURE__*/ O("ZodIPv6", (e, t) => {
|
|
3979
|
+
Zr.init(e, t), z.init(e, t);
|
|
3980
|
+
}), fc = /*@__PURE__*/ O("ZodCIDRv4", (e, t) => {
|
|
3981
|
+
Qr.init(e, t), z.init(e, t);
|
|
3982
|
+
}), pc = /*@__PURE__*/ O("ZodCIDRv6", (e, t) => {
|
|
3983
|
+
ei.init(e, t), z.init(e, t);
|
|
3984
|
+
}), mc = /*@__PURE__*/ O("ZodBase64", (e, t) => {
|
|
3985
|
+
ri.init(e, t), z.init(e, t);
|
|
3986
|
+
}), hc = /*@__PURE__*/ O("ZodBase64URL", (e, t) => {
|
|
3987
|
+
oi.init(e, t), z.init(e, t);
|
|
3988
|
+
}), gc = /*@__PURE__*/ O("ZodE164", (e, t) => {
|
|
3989
|
+
si.init(e, t), z.init(e, t);
|
|
3990
|
+
}), _c = /*@__PURE__*/ O("ZodJWT", (e, t) => {
|
|
3991
|
+
li.init(e, t), z.init(e, t);
|
|
3992
|
+
}), vc = /*@__PURE__*/ O("ZodNumber", (e, t) => {
|
|
3993
|
+
ui.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ns(e, t, n, r), e.isFinite = !0;
|
|
3994
|
+
}, /*@__PURE__*/ Mt({
|
|
3995
3995
|
minValue: (e) => {
|
|
3996
|
-
let { minimum: t, exclusiveMinimum: n } =
|
|
3996
|
+
let { minimum: t, exclusiveMinimum: n } = I(e);
|
|
3997
3997
|
return Math.max(t ?? -Infinity, n ?? -Infinity);
|
|
3998
3998
|
},
|
|
3999
3999
|
maxValue: (e) => {
|
|
4000
|
-
let { maximum: t, exclusiveMaximum: n } =
|
|
4000
|
+
let { maximum: t, exclusiveMaximum: n } = I(e);
|
|
4001
4001
|
return Math.min(t ?? Infinity, n ?? Infinity);
|
|
4002
4002
|
},
|
|
4003
4003
|
isInt: (e) => {
|
|
4004
|
-
let { isInt: t, multipleOf: n } =
|
|
4004
|
+
let { isInt: t, multipleOf: n } = I(e);
|
|
4005
4005
|
return !!t || !!n?.some(Number.isSafeInteger);
|
|
4006
4006
|
},
|
|
4007
|
-
format: (e) =>
|
|
4007
|
+
format: (e) => I(e).format ?? null
|
|
4008
4008
|
}, {
|
|
4009
4009
|
gt(e, t) {
|
|
4010
|
-
return this.check(/* @__PURE__ */
|
|
4010
|
+
return this.check(/* @__PURE__ */ io(e, t));
|
|
4011
4011
|
},
|
|
4012
4012
|
gte(e, t) {
|
|
4013
|
-
return this.check(/* @__PURE__ */
|
|
4013
|
+
return this.check(/* @__PURE__ */ ao(e, t));
|
|
4014
4014
|
},
|
|
4015
4015
|
min(e, t) {
|
|
4016
|
-
return this.check(/* @__PURE__ */
|
|
4016
|
+
return this.check(/* @__PURE__ */ ao(e, t));
|
|
4017
4017
|
},
|
|
4018
4018
|
lt(e, t) {
|
|
4019
|
-
return this.check(/* @__PURE__ */
|
|
4019
|
+
return this.check(/* @__PURE__ */ no(e, t));
|
|
4020
4020
|
},
|
|
4021
4021
|
lte(e, t) {
|
|
4022
|
-
return this.check(/* @__PURE__ */
|
|
4022
|
+
return this.check(/* @__PURE__ */ ro(e, t));
|
|
4023
4023
|
},
|
|
4024
4024
|
max(e, t) {
|
|
4025
|
-
return this.check(/* @__PURE__ */
|
|
4025
|
+
return this.check(/* @__PURE__ */ ro(e, t));
|
|
4026
4026
|
},
|
|
4027
4027
|
int(e) {
|
|
4028
|
-
return this.check(
|
|
4028
|
+
return this.check(bc(e));
|
|
4029
4029
|
},
|
|
4030
4030
|
safe(e) {
|
|
4031
|
-
return this.check(
|
|
4031
|
+
return this.check(bc(e));
|
|
4032
4032
|
},
|
|
4033
4033
|
positive(e) {
|
|
4034
|
-
return this.check(/* @__PURE__ */
|
|
4034
|
+
return this.check(/* @__PURE__ */ io(0, e));
|
|
4035
4035
|
},
|
|
4036
4036
|
nonnegative(e) {
|
|
4037
|
-
return this.check(/* @__PURE__ */
|
|
4037
|
+
return this.check(/* @__PURE__ */ ao(0, e));
|
|
4038
4038
|
},
|
|
4039
4039
|
negative(e) {
|
|
4040
|
-
return this.check(/* @__PURE__ */
|
|
4040
|
+
return this.check(/* @__PURE__ */ no(0, e));
|
|
4041
4041
|
},
|
|
4042
4042
|
nonpositive(e) {
|
|
4043
|
-
return this.check(/* @__PURE__ */
|
|
4043
|
+
return this.check(/* @__PURE__ */ ro(0, e));
|
|
4044
4044
|
},
|
|
4045
4045
|
multipleOf(e, t) {
|
|
4046
|
-
return this.check(/* @__PURE__ */
|
|
4046
|
+
return this.check(/* @__PURE__ */ oo(e, t));
|
|
4047
4047
|
},
|
|
4048
4048
|
step(e, t) {
|
|
4049
|
-
return this.check(/* @__PURE__ */
|
|
4049
|
+
return this.check(/* @__PURE__ */ oo(e, t));
|
|
4050
4050
|
},
|
|
4051
4051
|
finite() {
|
|
4052
4052
|
return this;
|
|
4053
4053
|
}
|
|
4054
4054
|
}));
|
|
4055
|
-
function
|
|
4056
|
-
return /* @__PURE__ */
|
|
4055
|
+
function B(e) {
|
|
4056
|
+
return /* @__PURE__ */ Xa(vc, e);
|
|
4057
4057
|
}
|
|
4058
|
-
var
|
|
4059
|
-
|
|
4058
|
+
var yc = /*@__PURE__*/ O("ZodNumberFormat", (e, t) => {
|
|
4059
|
+
di.init(e, t), vc.init(e, t);
|
|
4060
4060
|
});
|
|
4061
|
-
function
|
|
4062
|
-
return /* @__PURE__ */
|
|
4061
|
+
function bc(e) {
|
|
4062
|
+
return /* @__PURE__ */ Za(yc, e);
|
|
4063
4063
|
}
|
|
4064
|
-
var
|
|
4065
|
-
|
|
4064
|
+
var xc = /*@__PURE__*/ O("ZodBoolean", (e, t) => {
|
|
4065
|
+
fi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => rs(e, t, n, r);
|
|
4066
4066
|
});
|
|
4067
|
-
function
|
|
4068
|
-
return /* @__PURE__ */
|
|
4067
|
+
function Sc(e) {
|
|
4068
|
+
return /* @__PURE__ */ Qa(xc, e);
|
|
4069
4069
|
}
|
|
4070
|
-
var
|
|
4071
|
-
|
|
4070
|
+
var Cc = /*@__PURE__*/ O("ZodNull", (e, t) => {
|
|
4071
|
+
pi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => is(e, t, n, r);
|
|
4072
4072
|
});
|
|
4073
|
-
function
|
|
4074
|
-
return /* @__PURE__ */
|
|
4073
|
+
function wc(e) {
|
|
4074
|
+
return /* @__PURE__ */ $a(Cc, e);
|
|
4075
4075
|
}
|
|
4076
|
-
var
|
|
4077
|
-
|
|
4076
|
+
var Tc = /*@__PURE__*/ O("ZodUnknown", (e, t) => {
|
|
4077
|
+
mi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
4078
4078
|
});
|
|
4079
|
-
function
|
|
4080
|
-
return /* @__PURE__ */
|
|
4079
|
+
function Ec() {
|
|
4080
|
+
return /* @__PURE__ */ eo(Tc);
|
|
4081
4081
|
}
|
|
4082
|
-
var
|
|
4083
|
-
|
|
4082
|
+
var Dc = /*@__PURE__*/ O("ZodNever", (e, t) => {
|
|
4083
|
+
hi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => as(e, t, n, r);
|
|
4084
4084
|
});
|
|
4085
|
-
function
|
|
4086
|
-
return /* @__PURE__ */
|
|
4085
|
+
function Oc(e) {
|
|
4086
|
+
return /* @__PURE__ */ to(Dc, e);
|
|
4087
4087
|
}
|
|
4088
|
-
var
|
|
4089
|
-
|
|
4088
|
+
var kc = /*@__PURE__*/ O("ZodArray", (e, t) => {
|
|
4089
|
+
Gs(), _i.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => us(e, t, n, r), e.element = t.element;
|
|
4090
4090
|
}, {
|
|
4091
4091
|
min(e, t) {
|
|
4092
|
-
return this.check(/* @__PURE__ */
|
|
4092
|
+
return this.check(/* @__PURE__ */ co(e, t));
|
|
4093
4093
|
},
|
|
4094
4094
|
nonempty(e) {
|
|
4095
|
-
return this.check(/* @__PURE__ */
|
|
4095
|
+
return this.check(/* @__PURE__ */ co(1, e));
|
|
4096
4096
|
},
|
|
4097
4097
|
max(e, t) {
|
|
4098
|
-
return this.check(/* @__PURE__ */
|
|
4098
|
+
return this.check(/* @__PURE__ */ so(e, t));
|
|
4099
4099
|
},
|
|
4100
4100
|
length(e, t) {
|
|
4101
|
-
return this.check(/* @__PURE__ */
|
|
4101
|
+
return this.check(/* @__PURE__ */ lo(e, t));
|
|
4102
4102
|
},
|
|
4103
4103
|
unwrap() {
|
|
4104
4104
|
return this.element;
|
|
4105
4105
|
}
|
|
4106
4106
|
});
|
|
4107
|
-
function
|
|
4108
|
-
return /* @__PURE__ */
|
|
4107
|
+
function V(e, t) {
|
|
4108
|
+
return /* @__PURE__ */ Co(kc, e, t);
|
|
4109
4109
|
}
|
|
4110
|
-
var
|
|
4111
|
-
|
|
4110
|
+
var Ac = /*@__PURE__*/ O("ZodObject", (e, t) => {
|
|
4111
|
+
Gs(), Ci.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => fs(e, t, n, r), Rt(e, "shape", (e) => e._zod.def.shape, !1);
|
|
4112
4112
|
}, {
|
|
4113
4113
|
keyof() {
|
|
4114
4114
|
return K(Object.keys(this._zod.def.shape));
|
|
@@ -4117,13 +4117,13 @@ var kc = /*@__PURE__*/ k("ZodObject", (e, t) => {
|
|
|
4117
4117
|
return this.clone(T(this._zod.def, { catchall: e }));
|
|
4118
4118
|
},
|
|
4119
4119
|
passthrough() {
|
|
4120
|
-
return this.clone(T(this._zod.def, { catchall:
|
|
4120
|
+
return this.clone(T(this._zod.def, { catchall: Ec() }));
|
|
4121
4121
|
},
|
|
4122
4122
|
loose() {
|
|
4123
|
-
return this.clone(T(this._zod.def, { catchall:
|
|
4123
|
+
return this.clone(T(this._zod.def, { catchall: Ec() }));
|
|
4124
4124
|
},
|
|
4125
4125
|
strict() {
|
|
4126
|
-
return this.clone(T(this._zod.def, { catchall:
|
|
4126
|
+
return this.clone(T(this._zod.def, { catchall: Oc() }));
|
|
4127
4127
|
},
|
|
4128
4128
|
strip() {
|
|
4129
4129
|
return this.clone(T(this._zod.def, { catchall: void 0 }));
|
|
@@ -4153,23 +4153,23 @@ var kc = /*@__PURE__*/ k("ZodObject", (e, t) => {
|
|
|
4153
4153
|
return _t(Zc, this, e[0]);
|
|
4154
4154
|
}
|
|
4155
4155
|
});
|
|
4156
|
-
function
|
|
4157
|
-
return new
|
|
4156
|
+
function H(e, t) {
|
|
4157
|
+
return new Ac({
|
|
4158
4158
|
type: "object",
|
|
4159
4159
|
shape: e ?? {},
|
|
4160
4160
|
...E(t)
|
|
4161
4161
|
});
|
|
4162
4162
|
}
|
|
4163
|
-
function
|
|
4164
|
-
return new
|
|
4163
|
+
function U(e, t) {
|
|
4164
|
+
return new Ac({
|
|
4165
4165
|
type: "object",
|
|
4166
4166
|
shape: e,
|
|
4167
|
-
catchall:
|
|
4167
|
+
catchall: Oc(),
|
|
4168
4168
|
...E(t)
|
|
4169
4169
|
});
|
|
4170
4170
|
}
|
|
4171
|
-
var jc = /*@__PURE__*/
|
|
4172
|
-
|
|
4171
|
+
var jc = /*@__PURE__*/ O("ZodUnion", (e, t) => {
|
|
4172
|
+
Ti.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ps(e, t, n, r), e.options = t.options;
|
|
4173
4173
|
});
|
|
4174
4174
|
function W(e, t) {
|
|
4175
4175
|
return new jc({
|
|
@@ -4178,8 +4178,8 @@ function W(e, t) {
|
|
|
4178
4178
|
...E(t)
|
|
4179
4179
|
});
|
|
4180
4180
|
}
|
|
4181
|
-
var Mc = /*@__PURE__*/
|
|
4182
|
-
jc.init(e, t),
|
|
4181
|
+
var Mc = /*@__PURE__*/ O("ZodDiscriminatedUnion", (e, t) => {
|
|
4182
|
+
jc.init(e, t), Di.init(e, t);
|
|
4183
4183
|
});
|
|
4184
4184
|
function Nc(e, t, n) {
|
|
4185
4185
|
return new Mc({
|
|
@@ -4189,8 +4189,8 @@ function Nc(e, t, n) {
|
|
|
4189
4189
|
...E(n)
|
|
4190
4190
|
});
|
|
4191
4191
|
}
|
|
4192
|
-
var Pc = /*@__PURE__*/
|
|
4193
|
-
|
|
4192
|
+
var Pc = /*@__PURE__*/ O("ZodIntersection", (e, t) => {
|
|
4193
|
+
Oi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ms(e, t, n, r);
|
|
4194
4194
|
});
|
|
4195
4195
|
function Fc(e, t) {
|
|
4196
4196
|
return new Pc({
|
|
@@ -4199,13 +4199,13 @@ function Fc(e, t) {
|
|
|
4199
4199
|
right: t
|
|
4200
4200
|
});
|
|
4201
4201
|
}
|
|
4202
|
-
var Ic = /*@__PURE__*/
|
|
4203
|
-
|
|
4202
|
+
var Ic = /*@__PURE__*/ O("ZodRecord", (e, t) => {
|
|
4203
|
+
Gs(), ji.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => vs(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
4204
4204
|
});
|
|
4205
4205
|
function G(e, t, n) {
|
|
4206
4206
|
return !t || !t._zod ? new Ic({
|
|
4207
4207
|
type: "record",
|
|
4208
|
-
keyType:
|
|
4208
|
+
keyType: Js(),
|
|
4209
4209
|
valueType: e,
|
|
4210
4210
|
...E(t)
|
|
4211
4211
|
}) : new Ic({
|
|
@@ -4215,8 +4215,8 @@ function G(e, t, n) {
|
|
|
4215
4215
|
...E(n)
|
|
4216
4216
|
});
|
|
4217
4217
|
}
|
|
4218
|
-
var Lc = /*@__PURE__*/
|
|
4219
|
-
|
|
4218
|
+
var Lc = /*@__PURE__*/ O("ZodEnum", (e, t) => {
|
|
4219
|
+
Mi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => os(e, t, n, r), e.enum = t.entries, e.options = [...e._zod.values];
|
|
4220
4220
|
let n = new Set(Object.keys(t.entries));
|
|
4221
4221
|
e.extract = (e, r) => {
|
|
4222
4222
|
let i = {};
|
|
@@ -4247,8 +4247,8 @@ function K(e, t) {
|
|
|
4247
4247
|
...E(t)
|
|
4248
4248
|
});
|
|
4249
4249
|
}
|
|
4250
|
-
var Rc = /*@__PURE__*/
|
|
4251
|
-
|
|
4250
|
+
var Rc = /*@__PURE__*/ O("ZodLiteral", (e, t) => {
|
|
4251
|
+
Ni.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ss(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
4252
4252
|
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
4253
4253
|
return t.values[0];
|
|
4254
4254
|
} });
|
|
@@ -4260,14 +4260,14 @@ function q(e, t) {
|
|
|
4260
4260
|
...E(t)
|
|
4261
4261
|
});
|
|
4262
4262
|
}
|
|
4263
|
-
var zc = /*@__PURE__*/
|
|
4264
|
-
|
|
4265
|
-
if (r.direction === "backward") throw new
|
|
4263
|
+
var zc = /*@__PURE__*/ O("ZodTransform", (e, t) => {
|
|
4264
|
+
Gs(), Pi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ls(e, t, n, r), e._zod.parse = (n, r) => {
|
|
4265
|
+
if (r.direction === "backward") throw new Kt(e.constructor.name);
|
|
4266
4266
|
n.addIssue = (r) => {
|
|
4267
|
-
if (typeof r == "string") n.issues.push(
|
|
4267
|
+
if (typeof r == "string") n.issues.push(Ot(r, n.value, t));
|
|
4268
4268
|
else {
|
|
4269
4269
|
let t = r;
|
|
4270
|
-
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(
|
|
4270
|
+
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(Ot(t));
|
|
4271
4271
|
}
|
|
4272
4272
|
};
|
|
4273
4273
|
let i = t.transform(n.value, n);
|
|
@@ -4280,8 +4280,8 @@ function Bc(e) {
|
|
|
4280
4280
|
transform: e
|
|
4281
4281
|
});
|
|
4282
4282
|
}
|
|
4283
|
-
var Vc = /*@__PURE__*/
|
|
4284
|
-
|
|
4283
|
+
var Vc = /*@__PURE__*/ O("ZodOptional", (e, t) => {
|
|
4284
|
+
Ii.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => Os(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4285
4285
|
});
|
|
4286
4286
|
function Hc(e) {
|
|
4287
4287
|
return new Vc({
|
|
@@ -4289,8 +4289,8 @@ function Hc(e) {
|
|
|
4289
4289
|
innerType: e
|
|
4290
4290
|
});
|
|
4291
4291
|
}
|
|
4292
|
-
var Uc = /*@__PURE__*/
|
|
4293
|
-
|
|
4292
|
+
var Uc = /*@__PURE__*/ O("ZodExactOptional", (e, t) => {
|
|
4293
|
+
Li.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => Os(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4294
4294
|
});
|
|
4295
4295
|
function Wc(e) {
|
|
4296
4296
|
return new Uc({
|
|
@@ -4298,8 +4298,8 @@ function Wc(e) {
|
|
|
4298
4298
|
innerType: e
|
|
4299
4299
|
});
|
|
4300
4300
|
}
|
|
4301
|
-
var Gc = /*@__PURE__*/
|
|
4302
|
-
|
|
4301
|
+
var Gc = /*@__PURE__*/ O("ZodNullable", (e, t) => {
|
|
4302
|
+
Ri.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ys(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4303
4303
|
});
|
|
4304
4304
|
function Kc(e) {
|
|
4305
4305
|
return new Gc({
|
|
@@ -4307,8 +4307,8 @@ function Kc(e) {
|
|
|
4307
4307
|
innerType: e
|
|
4308
4308
|
});
|
|
4309
4309
|
}
|
|
4310
|
-
var qc = /*@__PURE__*/
|
|
4311
|
-
|
|
4310
|
+
var qc = /*@__PURE__*/ O("ZodDefault", (e, t) => {
|
|
4311
|
+
zi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cs(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
4312
4312
|
});
|
|
4313
4313
|
function Jc(e, t) {
|
|
4314
4314
|
return new qc({
|
|
@@ -4319,8 +4319,8 @@ function Jc(e, t) {
|
|
|
4319
4319
|
}
|
|
4320
4320
|
});
|
|
4321
4321
|
}
|
|
4322
|
-
var Yc = /*@__PURE__*/
|
|
4323
|
-
|
|
4322
|
+
var Yc = /*@__PURE__*/ O("ZodPrefault", (e, t) => {
|
|
4323
|
+
Vi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ws(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4324
4324
|
});
|
|
4325
4325
|
function Xc(e, t) {
|
|
4326
4326
|
return new Yc({
|
|
@@ -4331,8 +4331,8 @@ function Xc(e, t) {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
});
|
|
4333
4333
|
}
|
|
4334
|
-
var Zc = /*@__PURE__*/
|
|
4335
|
-
|
|
4334
|
+
var Zc = /*@__PURE__*/ O("ZodNonOptional", (e, t) => {
|
|
4335
|
+
Hi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => bs(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4336
4336
|
});
|
|
4337
4337
|
function Qc(e, t) {
|
|
4338
4338
|
return new Zc({
|
|
@@ -4341,18 +4341,18 @@ function Qc(e, t) {
|
|
|
4341
4341
|
...E(t)
|
|
4342
4342
|
});
|
|
4343
4343
|
}
|
|
4344
|
-
var $c = /*@__PURE__*/
|
|
4345
|
-
|
|
4344
|
+
var $c = /*@__PURE__*/ O("ZodCatch", (e, t) => {
|
|
4345
|
+
Gi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ts(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
4346
4346
|
});
|
|
4347
4347
|
function el(e, t) {
|
|
4348
4348
|
return new $c({
|
|
4349
4349
|
type: "catch",
|
|
4350
4350
|
innerType: e,
|
|
4351
|
-
catchValue: typeof t == "function" ? t :
|
|
4351
|
+
catchValue: typeof t == "function" ? t : Bt(t)
|
|
4352
4352
|
});
|
|
4353
4353
|
}
|
|
4354
|
-
var tl = /*@__PURE__*/
|
|
4355
|
-
|
|
4354
|
+
var tl = /*@__PURE__*/ O("ZodPipe", (e, t) => {
|
|
4355
|
+
Ki.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => Es(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
4356
4356
|
});
|
|
4357
4357
|
function nl(e, t) {
|
|
4358
4358
|
return new tl({
|
|
@@ -4361,8 +4361,8 @@ function nl(e, t) {
|
|
|
4361
4361
|
out: t
|
|
4362
4362
|
});
|
|
4363
4363
|
}
|
|
4364
|
-
var rl = /*@__PURE__*/
|
|
4365
|
-
|
|
4364
|
+
var rl = /*@__PURE__*/ O("ZodReadonly", (e, t) => {
|
|
4365
|
+
Ji.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ds(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
4366
4366
|
});
|
|
4367
4367
|
function il(e) {
|
|
4368
4368
|
return new rl({
|
|
@@ -4370,8 +4370,8 @@ function il(e) {
|
|
|
4370
4370
|
innerType: e
|
|
4371
4371
|
});
|
|
4372
4372
|
}
|
|
4373
|
-
var al = /*@__PURE__*/
|
|
4374
|
-
|
|
4373
|
+
var al = /*@__PURE__*/ O("ZodLazy", (e, t) => {
|
|
4374
|
+
Xi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ks(e, t, n, r), e.unwrap = () => e._zod.def.getter();
|
|
4375
4375
|
});
|
|
4376
4376
|
function ol(e) {
|
|
4377
4377
|
return new al({
|
|
@@ -4379,23 +4379,23 @@ function ol(e) {
|
|
|
4379
4379
|
getter: e
|
|
4380
4380
|
});
|
|
4381
4381
|
}
|
|
4382
|
-
var sl = /*@__PURE__*/
|
|
4383
|
-
|
|
4382
|
+
var sl = /*@__PURE__*/ O("ZodCustom", (e, t) => {
|
|
4383
|
+
Zi.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => cs(e, t, n, r);
|
|
4384
4384
|
});
|
|
4385
4385
|
function cl(e, t = {}) {
|
|
4386
|
-
return /* @__PURE__ */
|
|
4386
|
+
return /* @__PURE__ */ wo(sl, e, t);
|
|
4387
4387
|
}
|
|
4388
4388
|
function ll(e, t) {
|
|
4389
|
-
return /* @__PURE__ */
|
|
4389
|
+
return /* @__PURE__ */ To(e, t);
|
|
4390
4390
|
}
|
|
4391
4391
|
function ul(e) {
|
|
4392
4392
|
let t = ol(() => W([
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
G(
|
|
4393
|
+
Js(e),
|
|
4394
|
+
B(),
|
|
4395
|
+
Sc(),
|
|
4396
|
+
wc(),
|
|
4397
|
+
V(t),
|
|
4398
|
+
G(Js(), t)
|
|
4399
4399
|
]));
|
|
4400
4400
|
return t;
|
|
4401
4401
|
}
|
|
@@ -4405,11 +4405,11 @@ function dl(e, t = 0) {
|
|
|
4405
4405
|
}
|
|
4406
4406
|
//#endregion
|
|
4407
4407
|
//#region src/flow/common/triggerScheduleSchema.ts
|
|
4408
|
-
var fl =
|
|
4408
|
+
var fl = V(W([H({
|
|
4409
4409
|
type: q("cron"),
|
|
4410
|
-
expression:
|
|
4411
|
-
timezone:
|
|
4412
|
-
}),
|
|
4410
|
+
expression: Js(),
|
|
4411
|
+
timezone: Js()
|
|
4412
|
+
}), H({
|
|
4413
4413
|
type: q("every"),
|
|
4414
4414
|
unit: K([
|
|
4415
4415
|
"day",
|
|
@@ -4418,7 +4418,7 @@ var fl = H(W([U({
|
|
|
4418
4418
|
"month",
|
|
4419
4419
|
"week"
|
|
4420
4420
|
]),
|
|
4421
|
-
value:
|
|
4421
|
+
value: B()
|
|
4422
4422
|
})])), pl = [
|
|
4423
4423
|
"GET",
|
|
4424
4424
|
"POST",
|
|
@@ -4429,114 +4429,129 @@ var fl = H(W([U({
|
|
|
4429
4429
|
function ml(e) {
|
|
4430
4430
|
return e !== "GET";
|
|
4431
4431
|
}
|
|
4432
|
-
var J =
|
|
4432
|
+
var J = Js(), hl = ul(), gl = V(J), _l = H({
|
|
4433
4433
|
description: J.optional(),
|
|
4434
4434
|
jsonSchema: hl,
|
|
4435
|
-
nullable:
|
|
4435
|
+
nullable: Sc(),
|
|
4436
4436
|
handle: J
|
|
4437
|
-
}), Y = _l.extend({ value: hl.optional() }), vl =
|
|
4438
|
-
collapsed:
|
|
4437
|
+
}), Y = _l.extend({ value: hl.optional() }), vl = H({
|
|
4438
|
+
collapsed: Sc().optional(),
|
|
4439
4439
|
group: J
|
|
4440
|
-
}), yl =
|
|
4440
|
+
}), yl = H({
|
|
4441
4441
|
kind: q("node"),
|
|
4442
4442
|
nodeId: J,
|
|
4443
4443
|
output: J,
|
|
4444
4444
|
field: J.optional()
|
|
4445
|
-
}), bl =
|
|
4445
|
+
}), bl = H({
|
|
4446
4446
|
kind: q("flow"),
|
|
4447
4447
|
input: J
|
|
4448
4448
|
}), xl = W([
|
|
4449
4449
|
yl,
|
|
4450
4450
|
bl,
|
|
4451
|
-
|
|
4451
|
+
H({
|
|
4452
4452
|
kind: q("binding"),
|
|
4453
4453
|
bindingId: J
|
|
4454
4454
|
})
|
|
4455
|
-
]), Sl = W([
|
|
4455
|
+
]), Sl = W([H({ kind: q("unset") }), H({
|
|
4456
4456
|
kind: q("value"),
|
|
4457
4457
|
value: hl
|
|
4458
|
-
})]), Cl = W([Sl,
|
|
4458
|
+
})]), Cl = W([Sl, H({
|
|
4459
4459
|
kind: q("sources"),
|
|
4460
|
-
sources:
|
|
4460
|
+
sources: V(xl)
|
|
4461
4461
|
})]), wl = G(J, Cl), Tl = {
|
|
4462
|
-
inputs:
|
|
4463
|
-
outputs:
|
|
4464
|
-
}, El = W([
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
connectionId: J.optional(),
|
|
4468
|
-
connections: H(Ac({
|
|
4469
|
-
connectionId: J,
|
|
4470
|
-
alias: J.optional()
|
|
4471
|
-
}))
|
|
4472
|
-
}), Ac({
|
|
4473
|
-
kind: q("connector"),
|
|
4474
|
-
actionHints: H(J).optional(),
|
|
4475
|
-
connectionHints: H(Ac({
|
|
4462
|
+
inputs: V(W([Y, vl])),
|
|
4463
|
+
outputs: V(W([_l, vl]))
|
|
4464
|
+
}, El = W([
|
|
4465
|
+
U({
|
|
4466
|
+
kind: q("connector"),
|
|
4476
4467
|
action: J,
|
|
4477
|
-
connectionId: J,
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4468
|
+
connectionId: J.optional(),
|
|
4469
|
+
connections: V(U({
|
|
4470
|
+
connectionId: J,
|
|
4471
|
+
alias: J.optional()
|
|
4472
|
+
}))
|
|
4473
|
+
}),
|
|
4474
|
+
U({
|
|
4475
|
+
kind: q("connector"),
|
|
4476
|
+
mode: q("shared")
|
|
4477
|
+
}),
|
|
4478
|
+
U({
|
|
4479
|
+
kind: q("connector"),
|
|
4480
|
+
mode: q("independent"),
|
|
4481
|
+
actions: V(U({
|
|
4482
|
+
action: J,
|
|
4483
|
+
connectionId: J.optional()
|
|
4484
|
+
}))
|
|
4485
|
+
}),
|
|
4486
|
+
U({
|
|
4487
|
+
kind: q("connector"),
|
|
4488
|
+
actionHints: V(J).optional(),
|
|
4489
|
+
connectionHints: V(U({
|
|
4490
|
+
action: J,
|
|
4491
|
+
connectionId: J,
|
|
4492
|
+
alias: J.optional()
|
|
4493
|
+
})).optional()
|
|
4494
|
+
})
|
|
4495
|
+
]), Dl = H({
|
|
4481
4496
|
...Tl,
|
|
4482
4497
|
name: J,
|
|
4483
4498
|
moduleId: J,
|
|
4484
|
-
capabilities:
|
|
4485
|
-
}), Ol = W([
|
|
4499
|
+
capabilities: V(El).optional()
|
|
4500
|
+
}), Ol = W([H({
|
|
4486
4501
|
kind: q("value"),
|
|
4487
4502
|
value: hl
|
|
4488
|
-
}),
|
|
4503
|
+
}), H({
|
|
4489
4504
|
kind: q("input"),
|
|
4490
4505
|
input: J
|
|
4491
|
-
})]), kl = W([Ol,
|
|
4506
|
+
})]), kl = W([Ol, H({ kind: q("model") })]), Al = H({
|
|
4492
4507
|
...Tl,
|
|
4493
4508
|
name: J,
|
|
4494
4509
|
executor: W([
|
|
4495
|
-
|
|
4510
|
+
H({
|
|
4496
4511
|
kind: q("connector"),
|
|
4497
4512
|
action: J,
|
|
4498
4513
|
connectionId: J.optional()
|
|
4499
4514
|
}),
|
|
4500
|
-
|
|
4515
|
+
H({
|
|
4501
4516
|
kind: q("llm"),
|
|
4502
4517
|
mode: K(["chat", "json"])
|
|
4503
4518
|
}),
|
|
4504
|
-
|
|
4519
|
+
H({
|
|
4505
4520
|
kind: q("agent"),
|
|
4506
|
-
code:
|
|
4521
|
+
code: Sc().optional(),
|
|
4507
4522
|
model: J,
|
|
4508
4523
|
prompt: Ol,
|
|
4509
4524
|
system: J,
|
|
4510
|
-
maxRounds:
|
|
4511
|
-
tools: H(
|
|
4525
|
+
maxRounds: B(),
|
|
4526
|
+
tools: V(H({
|
|
4512
4527
|
id: J,
|
|
4513
4528
|
name: J,
|
|
4514
4529
|
description: J,
|
|
4515
4530
|
action: J,
|
|
4516
4531
|
connectionId: J.optional(),
|
|
4517
|
-
approval:
|
|
4518
|
-
inputs:
|
|
4532
|
+
approval: Sc(),
|
|
4533
|
+
inputs: V(Y.extend({ source: kl }))
|
|
4519
4534
|
})),
|
|
4520
|
-
notification:
|
|
4535
|
+
notification: H({
|
|
4521
4536
|
taskId: J,
|
|
4522
4537
|
messageHandle: J,
|
|
4523
4538
|
inputs: G(J, Ol)
|
|
4524
4539
|
}).optional()
|
|
4525
4540
|
})
|
|
4526
4541
|
])
|
|
4527
|
-
}), jl = W([
|
|
4542
|
+
}), jl = W([H({
|
|
4528
4543
|
kind: q("value"),
|
|
4529
4544
|
value: hl.optional(),
|
|
4530
4545
|
jsonSchema: hl.optional()
|
|
4531
|
-
}),
|
|
4546
|
+
}), H({
|
|
4532
4547
|
kind: q("source"),
|
|
4533
4548
|
source: xl
|
|
4534
4549
|
})]), Ml = {
|
|
4535
4550
|
matchMode: K(["first", "all"]),
|
|
4536
|
-
cases: H(
|
|
4551
|
+
cases: V(H({
|
|
4537
4552
|
description: J.optional(),
|
|
4538
4553
|
output: J,
|
|
4539
|
-
groups: H(
|
|
4554
|
+
groups: V(H({ expressions: V(H({
|
|
4540
4555
|
left: jl,
|
|
4541
4556
|
operator: K([
|
|
4542
4557
|
"!=",
|
|
@@ -4564,17 +4579,17 @@ var J = qs(), hl = ul(), gl = H(J), _l = U({
|
|
|
4564
4579
|
})) }))
|
|
4565
4580
|
}))
|
|
4566
4581
|
}, Nl = {
|
|
4567
|
-
inputDefinitions:
|
|
4582
|
+
inputDefinitions: V(Y),
|
|
4568
4583
|
prompt: J
|
|
4569
|
-
}, Pl =
|
|
4570
|
-
allowedMethods:
|
|
4584
|
+
}, Pl = H({
|
|
4585
|
+
allowedMethods: Oc().optional(),
|
|
4571
4586
|
allowedOrigins: gl.optional(),
|
|
4572
|
-
noResponseBody:
|
|
4587
|
+
noResponseBody: Oc().optional(),
|
|
4573
4588
|
responseData: J.optional(),
|
|
4574
4589
|
responseHeaders: G(J, J).optional(),
|
|
4575
|
-
responseStatusCode:
|
|
4590
|
+
responseStatusCode: B().int().min(200).max(599).optional()
|
|
4576
4591
|
}), Fl = {
|
|
4577
|
-
bodyFields:
|
|
4592
|
+
bodyFields: V(Y),
|
|
4578
4593
|
method: K(pl),
|
|
4579
4594
|
options: Pl.optional()
|
|
4580
4595
|
}, Il = {
|
|
@@ -4584,20 +4599,20 @@ var J = qs(), hl = ul(), gl = H(J), _l = U({
|
|
|
4584
4599
|
displayName: J,
|
|
4585
4600
|
key: J,
|
|
4586
4601
|
name: J,
|
|
4587
|
-
outputs:
|
|
4602
|
+
outputs: V(_l).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
|
|
4588
4603
|
provider: J
|
|
4589
|
-
}, Ll =
|
|
4590
|
-
body:
|
|
4591
|
-
allowArray:
|
|
4592
|
-
allowEmpty:
|
|
4593
|
-
formats:
|
|
4604
|
+
}, Ll = H({
|
|
4605
|
+
body: H({
|
|
4606
|
+
allowArray: Sc(),
|
|
4607
|
+
allowEmpty: Sc(),
|
|
4608
|
+
formats: V(K([
|
|
4594
4609
|
"form",
|
|
4595
4610
|
"json",
|
|
4596
4611
|
"multipart",
|
|
4597
4612
|
"text"
|
|
4598
4613
|
]))
|
|
4599
4614
|
}),
|
|
4600
|
-
methods:
|
|
4615
|
+
methods: V(K([
|
|
4601
4616
|
"DELETE",
|
|
4602
4617
|
"GET",
|
|
4603
4618
|
"HEAD",
|
|
@@ -4605,125 +4620,125 @@ var J = qs(), hl = ul(), gl = H(J), _l = U({
|
|
|
4605
4620
|
"POST",
|
|
4606
4621
|
"PUT"
|
|
4607
4622
|
])),
|
|
4608
|
-
successStatus:
|
|
4623
|
+
successStatus: B()
|
|
4609
4624
|
}), Rl = {
|
|
4610
4625
|
name: J,
|
|
4611
4626
|
description: J.optional(),
|
|
4612
4627
|
icon: J.optional()
|
|
4613
4628
|
}, zl = {
|
|
4614
|
-
maxExecutions:
|
|
4629
|
+
maxExecutions: B().int().positive().max(2 ** 53 - 1).optional(),
|
|
4615
4630
|
inputs: wl,
|
|
4616
4631
|
name: J.optional(),
|
|
4617
4632
|
description: J.optional(),
|
|
4618
4633
|
icon: J.optional(),
|
|
4619
|
-
timeoutMs:
|
|
4634
|
+
timeoutMs: B().optional()
|
|
4620
4635
|
}, Bl = W([
|
|
4621
|
-
|
|
4636
|
+
H({
|
|
4622
4637
|
...zl,
|
|
4623
|
-
inputs: G(J,
|
|
4638
|
+
inputs: G(J, Oc()),
|
|
4624
4639
|
kind: q("condition"),
|
|
4625
4640
|
...Ml
|
|
4626
4641
|
}),
|
|
4627
|
-
|
|
4642
|
+
H({
|
|
4628
4643
|
...zl,
|
|
4629
|
-
inputs:
|
|
4644
|
+
inputs: Ec().transform(() => ({})).default({}),
|
|
4630
4645
|
kind: q("value"),
|
|
4631
|
-
values:
|
|
4646
|
+
values: V(Y)
|
|
4632
4647
|
}),
|
|
4633
|
-
|
|
4648
|
+
H({
|
|
4634
4649
|
...zl,
|
|
4635
4650
|
kind: q("subflow"),
|
|
4636
4651
|
subflowId: J
|
|
4637
4652
|
}),
|
|
4638
|
-
|
|
4653
|
+
H({
|
|
4639
4654
|
...zl,
|
|
4640
4655
|
kind: q("task"),
|
|
4641
4656
|
task: Dl,
|
|
4642
|
-
additionalInputs:
|
|
4657
|
+
additionalInputs: V(Y).optional()
|
|
4643
4658
|
}),
|
|
4644
|
-
|
|
4659
|
+
H({
|
|
4645
4660
|
...zl,
|
|
4646
4661
|
kind: q("task"),
|
|
4647
4662
|
taskId: J,
|
|
4648
|
-
additionalInputs:
|
|
4663
|
+
additionalInputs: V(Y).optional()
|
|
4649
4664
|
}),
|
|
4650
|
-
|
|
4665
|
+
U({
|
|
4651
4666
|
...zl,
|
|
4652
4667
|
kind: q("approval"),
|
|
4653
4668
|
...Nl
|
|
4654
4669
|
}).omit({ timeoutMs: !0 }),
|
|
4655
|
-
|
|
4670
|
+
U({
|
|
4656
4671
|
...zl,
|
|
4657
4672
|
kind: q("wait"),
|
|
4658
4673
|
...Nl
|
|
4659
4674
|
}).omit({ timeoutMs: !0 }),
|
|
4660
|
-
|
|
4675
|
+
H({
|
|
4661
4676
|
...Rl,
|
|
4662
4677
|
kind: q("manual")
|
|
4663
4678
|
}),
|
|
4664
|
-
|
|
4679
|
+
H({
|
|
4665
4680
|
...Rl,
|
|
4666
4681
|
kind: q("webhook"),
|
|
4667
4682
|
...Fl
|
|
4668
4683
|
}),
|
|
4669
|
-
|
|
4684
|
+
H({
|
|
4670
4685
|
...Rl,
|
|
4671
4686
|
kind: q("cron"),
|
|
4672
4687
|
cronTimes: fl
|
|
4673
4688
|
}),
|
|
4674
|
-
|
|
4689
|
+
H({
|
|
4675
4690
|
...Rl,
|
|
4676
4691
|
kind: q("poll"),
|
|
4677
|
-
|
|
4692
|
+
connectionId: J.min(1).optional(),
|
|
4678
4693
|
config: G(J, Sl),
|
|
4679
|
-
definition:
|
|
4694
|
+
definition: H({
|
|
4680
4695
|
...Il,
|
|
4681
4696
|
type: q("poll")
|
|
4682
4697
|
}),
|
|
4683
4698
|
pollTimes: fl
|
|
4684
4699
|
}),
|
|
4685
|
-
|
|
4700
|
+
H({
|
|
4686
4701
|
...Rl,
|
|
4687
4702
|
kind: q("integration"),
|
|
4688
|
-
|
|
4703
|
+
connectionId: J.min(1).optional(),
|
|
4689
4704
|
config: G(J, Sl),
|
|
4690
|
-
definition:
|
|
4705
|
+
definition: H({
|
|
4691
4706
|
...Il,
|
|
4692
4707
|
type: q("integration"),
|
|
4693
4708
|
endpoint: Ll
|
|
4694
4709
|
})
|
|
4695
4710
|
})
|
|
4696
|
-
]), Vl = W([
|
|
4711
|
+
]), Vl = W([H({ kind: q("flow") }), H({
|
|
4697
4712
|
kind: q("subflow"),
|
|
4698
4713
|
id: J
|
|
4699
|
-
})]), Hl =
|
|
4714
|
+
})]), Hl = H({
|
|
4700
4715
|
source: J,
|
|
4701
4716
|
target: J,
|
|
4702
4717
|
sourceHandle: J.optional()
|
|
4703
4718
|
}), X = {
|
|
4704
4719
|
nodeId: J,
|
|
4705
4720
|
target: Vl
|
|
4706
|
-
}, Ul =
|
|
4721
|
+
}, Ul = H({
|
|
4707
4722
|
name: J,
|
|
4708
|
-
inputs:
|
|
4709
|
-
outputs:
|
|
4710
|
-
}), Wl =
|
|
4723
|
+
inputs: V(Y),
|
|
4724
|
+
outputs: V(_l.extend({ sources: V(W([yl, bl])) }))
|
|
4725
|
+
}), Wl = H({
|
|
4711
4726
|
nodes: G(J, Bl),
|
|
4712
|
-
edges:
|
|
4713
|
-
}), Gl =
|
|
4714
|
-
kind:
|
|
4727
|
+
edges: V(Hl).default([])
|
|
4728
|
+
}), Gl = H({
|
|
4729
|
+
kind: q("variable"),
|
|
4715
4730
|
target: J
|
|
4716
|
-
}), Kl =
|
|
4731
|
+
}), Kl = H({
|
|
4717
4732
|
name: J,
|
|
4718
4733
|
imports: gl,
|
|
4719
4734
|
source: J
|
|
4720
|
-
}), ql =
|
|
4735
|
+
}), ql = H({
|
|
4721
4736
|
bindings: G(J, Gl),
|
|
4722
4737
|
graph: Wl,
|
|
4723
4738
|
subflows: G(J, Ul.extend({ graph: Wl })),
|
|
4724
4739
|
tasks: G(J, Al)
|
|
4725
|
-
}), Jl =
|
|
4726
|
-
modelVersion: W([q(2), q(
|
|
4740
|
+
}), Jl = H({
|
|
4741
|
+
modelVersion: W([q(2), q(4)]),
|
|
4727
4742
|
document: ql,
|
|
4728
4743
|
modules: G(J, Kl)
|
|
4729
4744
|
});
|
|
@@ -4759,7 +4774,14 @@ var Xl = {
|
|
|
4759
4774
|
},
|
|
4760
4775
|
"graph.node.delete": X,
|
|
4761
4776
|
"graph.node.field.set": W([
|
|
4762
|
-
|
|
4777
|
+
H({
|
|
4778
|
+
...X,
|
|
4779
|
+
kind: q("graph.node.field.set"),
|
|
4780
|
+
field: q("connectionId"),
|
|
4781
|
+
before: J.min(1).optional(),
|
|
4782
|
+
value: J.min(1).optional()
|
|
4783
|
+
}),
|
|
4784
|
+
H({
|
|
4763
4785
|
...X,
|
|
4764
4786
|
kind: q("graph.node.field.set"),
|
|
4765
4787
|
field: K([
|
|
@@ -4770,19 +4792,19 @@ var Xl = {
|
|
|
4770
4792
|
before: J.optional(),
|
|
4771
4793
|
value: J.optional()
|
|
4772
4794
|
}),
|
|
4773
|
-
|
|
4795
|
+
H({
|
|
4774
4796
|
...X,
|
|
4775
4797
|
kind: q("graph.node.field.set"),
|
|
4776
4798
|
field: q("maxExecutions"),
|
|
4777
|
-
before:
|
|
4778
|
-
value:
|
|
4799
|
+
before: B().int().positive().max(2 ** 53 - 1).optional(),
|
|
4800
|
+
value: B().int().positive().max(2 ** 53 - 1).optional()
|
|
4779
4801
|
}),
|
|
4780
|
-
|
|
4802
|
+
H({
|
|
4781
4803
|
...X,
|
|
4782
4804
|
kind: q("graph.node.field.set"),
|
|
4783
4805
|
field: q("timeoutMs"),
|
|
4784
|
-
before:
|
|
4785
|
-
value:
|
|
4806
|
+
before: B().optional(),
|
|
4807
|
+
value: B().optional()
|
|
4786
4808
|
})
|
|
4787
4809
|
]),
|
|
4788
4810
|
"graph.node.input.set": {
|
|
@@ -4793,35 +4815,35 @@ var Xl = {
|
|
|
4793
4815
|
},
|
|
4794
4816
|
"graph.node.additional-inputs.set": {
|
|
4795
4817
|
...X,
|
|
4796
|
-
before:
|
|
4797
|
-
value:
|
|
4818
|
+
before: V(Y).optional(),
|
|
4819
|
+
value: V(Y).optional()
|
|
4798
4820
|
},
|
|
4799
4821
|
"graph.node.condition.set": {
|
|
4800
4822
|
...X,
|
|
4801
|
-
before:
|
|
4802
|
-
value:
|
|
4823
|
+
before: H(Ml),
|
|
4824
|
+
value: H(Ml)
|
|
4803
4825
|
},
|
|
4804
4826
|
"graph.node.values.set": {
|
|
4805
4827
|
...X,
|
|
4806
|
-
before:
|
|
4807
|
-
value:
|
|
4828
|
+
before: V(Y),
|
|
4829
|
+
value: V(Y)
|
|
4808
4830
|
},
|
|
4809
4831
|
"graph.node.resolution.set": {
|
|
4810
4832
|
...X,
|
|
4811
|
-
target:
|
|
4812
|
-
before:
|
|
4813
|
-
value:
|
|
4833
|
+
target: H({ kind: q("flow") }),
|
|
4834
|
+
before: H(Nl),
|
|
4835
|
+
value: H(Nl)
|
|
4814
4836
|
},
|
|
4815
4837
|
"graph.node.webhook.set": {
|
|
4816
4838
|
...X,
|
|
4817
|
-
target:
|
|
4818
|
-
before:
|
|
4819
|
-
value:
|
|
4839
|
+
target: H({ kind: q("flow") }),
|
|
4840
|
+
before: H(Fl),
|
|
4841
|
+
value: H(Fl)
|
|
4820
4842
|
},
|
|
4821
4843
|
"graph.node.task.ports.set": {
|
|
4822
4844
|
...X,
|
|
4823
|
-
before:
|
|
4824
|
-
value:
|
|
4845
|
+
before: H(Tl),
|
|
4846
|
+
value: H(Tl)
|
|
4825
4847
|
},
|
|
4826
4848
|
"graph.node.task.name.set": {
|
|
4827
4849
|
...X,
|
|
@@ -4830,8 +4852,8 @@ var Xl = {
|
|
|
4830
4852
|
},
|
|
4831
4853
|
"graph.node.task.capabilities.set": {
|
|
4832
4854
|
...X,
|
|
4833
|
-
before:
|
|
4834
|
-
value:
|
|
4855
|
+
before: V(El).optional(),
|
|
4856
|
+
value: V(El).optional()
|
|
4835
4857
|
},
|
|
4836
4858
|
"graph.trigger.config.set": {
|
|
4837
4859
|
nodeId: J,
|
|
@@ -4897,7 +4919,7 @@ var Xl = {
|
|
|
4897
4919
|
value: J
|
|
4898
4920
|
}
|
|
4899
4921
|
};
|
|
4900
|
-
|
|
4922
|
+
V(W([...new Map(Object.entries(Xl).map(([e, t]) => [e, t instanceof R ? t : H({
|
|
4901
4923
|
kind: q(e),
|
|
4902
4924
|
...t
|
|
4903
4925
|
})])).values()])).min(1);
|
|
@@ -5110,6 +5132,37 @@ function pu(e) {
|
|
|
5110
5132
|
function mu(e) {
|
|
5111
5133
|
if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
|
|
5112
5134
|
if (e.length == 0) return [];
|
|
5135
|
+
if (e.some((e) => typeof e == "object" && !!e && !Array.isArray(e) && Object.hasOwn(e, "mode"))) {
|
|
5136
|
+
if (e.length != 1) throw TypeError("Connector capability is declared more than once.");
|
|
5137
|
+
let t = e[0];
|
|
5138
|
+
if (t.mode == "shared") {
|
|
5139
|
+
if (t.kind != "connector" || Object.keys(t).some((e) => !["kind", "mode"].includes(e))) throw TypeError("Invalid shared Connector permission capability.");
|
|
5140
|
+
return [{
|
|
5141
|
+
kind: "connector",
|
|
5142
|
+
mode: "shared"
|
|
5143
|
+
}];
|
|
5144
|
+
}
|
|
5145
|
+
if (Object.keys(t).some((e) => ![
|
|
5146
|
+
"kind",
|
|
5147
|
+
"mode",
|
|
5148
|
+
"actions"
|
|
5149
|
+
].includes(e)) || t.kind != "connector" || t.mode != "independent" || !Array.isArray(t.actions)) throw TypeError("Invalid Connector permission capability.");
|
|
5150
|
+
let n = t.actions.map((e) => {
|
|
5151
|
+
if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError("Invalid Connector Action.");
|
|
5152
|
+
let t = e;
|
|
5153
|
+
if (Object.keys(t).some((e) => !["action", "connectionId"].includes(e)) || typeof t.action != "string" || !/^[A-Za-z0-9_-]+\.[A-Za-z0-9_.-]+$/.test(t.action) || Object.hasOwn(t, "connectionId") && (typeof t.connectionId != "string" || t.connectionId.length == 0)) throw TypeError("Invalid Connector Action permission.");
|
|
5154
|
+
return t.connectionId == null ? { action: t.action } : {
|
|
5155
|
+
action: t.action,
|
|
5156
|
+
connectionId: t.connectionId
|
|
5157
|
+
};
|
|
5158
|
+
});
|
|
5159
|
+
if (new Set(n.map((e) => e.action)).size != n.length) throw TypeError("Duplicate Connector Action permission.");
|
|
5160
|
+
return [{
|
|
5161
|
+
kind: "connector",
|
|
5162
|
+
mode: "independent",
|
|
5163
|
+
actions: n
|
|
5164
|
+
}];
|
|
5165
|
+
}
|
|
5113
5166
|
if (e.some((e) => typeof e == "object" && !!e && !Array.isArray(e) && !Object.hasOwn(e, "action"))) {
|
|
5114
5167
|
if (e.length != 1) throw TypeError("Connector capability is declared more than once.");
|
|
5115
5168
|
let t = e[0];
|
|
@@ -5335,7 +5388,7 @@ function yu(e, t) {
|
|
|
5335
5388
|
}
|
|
5336
5389
|
case "graph.node.field.set": {
|
|
5337
5390
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5338
|
-
r ?? Z("The Node does not exist in the target graph."), v(Reflect.get(r, e.field), e.before) || Z("The Node field changed before this operation was applied.");
|
|
5391
|
+
r ?? Z("The Node does not exist in the target graph."), e.field == "connectionId" && r.kind != "poll" && r.kind != "integration" && Z("Only provider Triggers select a node Connection."), v(Reflect.get(r, e.field), e.before) || Z("The Node field changed before this operation was applied.");
|
|
5339
5392
|
let i = { ...r };
|
|
5340
5393
|
if (e.field == "name") {
|
|
5341
5394
|
typeof e.value != "string" && Z("A Node name cannot be empty.");
|
|
@@ -5631,7 +5684,7 @@ function yu(e, t) {
|
|
|
5631
5684
|
}
|
|
5632
5685
|
return {
|
|
5633
5686
|
document: n,
|
|
5634
|
-
modelVersion:
|
|
5687
|
+
modelVersion: 4,
|
|
5635
5688
|
modules: r
|
|
5636
5689
|
};
|
|
5637
5690
|
}
|
|
@@ -6367,4 +6420,4 @@ function od({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
|
|
|
6367
6420
|
});
|
|
6368
6421
|
}
|
|
6369
6422
|
//#endregion
|
|
6370
|
-
export { su as A, Nc as B, pu as C, iu as D, ru as E, pl as F,
|
|
6423
|
+
export { su as A, Nc as B, pu as C, iu as D, ru as E, pl as F, B as G, ul as H, ml as I, Js as J, G as K, K as L, $l as M, ou as N, nu as O, Yl as P, V as R, hu as S, lu as T, ol as U, bc as V, q as W, Ne as X, W as Y, vu as _, $u as a, gu as b, ed as c, Eu as d, Su as f, Cu as g, bu as h, Zu as i, Zl as j, eu as k, nd as l, Tu as m, ad as n, rd as o, wu as p, U as q, Ju as r, td as s, od as t, Yu as u, yu as v, fu as w, _u as x, du as y, Sc as z };
|