@t2000/cli 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ccip-S3INYIGB.js → ccip-JEEJV65M.js} +3 -3
- package/dist/chunk-77SWBATH.js +204 -0
- package/dist/chunk-77SWBATH.js.map +1 -0
- package/dist/{chunk-7KWZUAT7.js → chunk-A5X4KG7U.js} +970 -210
- package/dist/chunk-A5X4KG7U.js.map +1 -0
- package/dist/{chunk-XLHETABG.js → chunk-KC2WRBJB.js} +1876 -2018
- package/dist/chunk-KC2WRBJB.js.map +1 -0
- package/dist/chunk-W7ACGWI5.js +879 -0
- package/dist/chunk-W7ACGWI5.js.map +1 -0
- package/dist/{client-BG6M6WUI.js → client-QWWT5U25.js} +211 -209
- package/dist/client-QWWT5U25.js.map +1 -0
- package/dist/{client-UCPLLOGQ.js → client-WUGFY2SS.js} +5 -5
- package/dist/{client-UCPLLOGQ.js.map → client-WUGFY2SS.js.map} +1 -1
- package/dist/{dist-6Z4OX6F4.js → dist-PMIMNN2H.js} +1475 -809
- package/dist/{dist-6Z4OX6F4.js.map → dist-PMIMNN2H.js.map} +1 -1
- package/dist/dist-YCBO7GXC.js +1305 -0
- package/dist/dist-YCBO7GXC.js.map +1 -0
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunk-7KWZUAT7.js.map +0 -1
- package/dist/chunk-PR2QAGO2.js +0 -968
- package/dist/chunk-PR2QAGO2.js.map +0 -1
- package/dist/chunk-SDO3BBBC.js +0 -154
- package/dist/chunk-SDO3BBBC.js.map +0 -1
- package/dist/chunk-XLHETABG.js.map +0 -1
- package/dist/client-BG6M6WUI.js.map +0 -1
- package/dist/dist-NX2SBBWO.js +0 -34
- package/dist/dist-NX2SBBWO.js.map +0 -1
- /package/dist/{ccip-S3INYIGB.js.map → ccip-JEEJV65M.js.map} +0 -0
|
@@ -10,10 +10,8 @@ import {
|
|
|
10
10
|
sha512
|
|
11
11
|
} from "./chunk-NGS6K3I3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
parseAbiParameters
|
|
16
|
-
} from "./chunk-PR2QAGO2.js";
|
|
13
|
+
keccak_256
|
|
14
|
+
} from "./chunk-77SWBATH.js";
|
|
17
15
|
import {
|
|
18
16
|
clean,
|
|
19
17
|
createHasher,
|
|
@@ -24,46 +22,85 @@ import {
|
|
|
24
22
|
__export
|
|
25
23
|
} from "./chunk-YPWSCLE3.js";
|
|
26
24
|
|
|
27
|
-
// ../../node_modules/.pnpm/
|
|
28
|
-
var
|
|
29
|
-
__export(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
months: () => months,
|
|
34
|
-
seconds: () => seconds,
|
|
35
|
-
weeks: () => weeks,
|
|
36
|
-
years: () => years
|
|
25
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Json.js
|
|
26
|
+
var Json_exports = {};
|
|
27
|
+
__export(Json_exports, {
|
|
28
|
+
canonicalize: () => canonicalize,
|
|
29
|
+
parse: () => parse,
|
|
30
|
+
stringify: () => stringify
|
|
37
31
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
var bigIntSuffix = "#__bigint";
|
|
33
|
+
function canonicalize(value) {
|
|
34
|
+
if (value === null || typeof value === "boolean" || typeof value === "string")
|
|
35
|
+
return JSON.stringify(value);
|
|
36
|
+
if (typeof value === "number") {
|
|
37
|
+
if (!Number.isFinite(value))
|
|
38
|
+
throw new TypeError("Cannot canonicalize non-finite number");
|
|
39
|
+
return Object.is(value, -0) ? "0" : JSON.stringify(value);
|
|
40
|
+
}
|
|
41
|
+
if (typeof value === "bigint")
|
|
42
|
+
throw new TypeError("Cannot canonicalize bigint");
|
|
43
|
+
if (Array.isArray(value))
|
|
44
|
+
return `[${value.map((item) => canonicalize(item)).join(",")}]`;
|
|
45
|
+
if (typeof value === "object") {
|
|
46
|
+
const entries = Object.keys(value).sort().reduce((acc, key) => {
|
|
47
|
+
const v = value[key];
|
|
48
|
+
if (v !== void 0)
|
|
49
|
+
acc.push(`${JSON.stringify(key)}:${canonicalize(v)}`);
|
|
50
|
+
return acc;
|
|
51
|
+
}, []);
|
|
52
|
+
return `{${entries.join(",")}}`;
|
|
53
|
+
}
|
|
54
|
+
return void 0;
|
|
52
55
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
56
|
+
function parse(string4, reviver) {
|
|
57
|
+
return JSON.parse(string4, (key, value_) => {
|
|
58
|
+
const value = value_;
|
|
59
|
+
if (typeof value === "string" && value.endsWith(bigIntSuffix))
|
|
60
|
+
return BigInt(value.slice(0, -bigIntSuffix.length));
|
|
61
|
+
return typeof reviver === "function" ? reviver(key, value) : value;
|
|
62
|
+
});
|
|
55
63
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
64
|
+
function stringify(value, replacer, space) {
|
|
65
|
+
return JSON.stringify(value, (key, value2) => {
|
|
66
|
+
if (typeof replacer === "function")
|
|
67
|
+
return replacer(key, value2);
|
|
68
|
+
if (typeof value2 === "bigint")
|
|
69
|
+
return value2.toString() + bigIntSuffix;
|
|
70
|
+
return value2;
|
|
71
|
+
}, space);
|
|
58
72
|
}
|
|
59
73
|
|
|
60
|
-
// ../../node_modules/.pnpm/
|
|
61
|
-
var
|
|
62
|
-
__export(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Bytes.js
|
|
75
|
+
var Bytes_exports = {};
|
|
76
|
+
__export(Bytes_exports, {
|
|
77
|
+
InvalidBytesBooleanError: () => InvalidBytesBooleanError,
|
|
78
|
+
InvalidBytesTypeError: () => InvalidBytesTypeError,
|
|
79
|
+
SizeExceedsPaddingSizeError: () => SizeExceedsPaddingSizeError,
|
|
80
|
+
SizeOverflowError: () => SizeOverflowError,
|
|
81
|
+
SliceOffsetOutOfBoundsError: () => SliceOffsetOutOfBoundsError,
|
|
82
|
+
assert: () => assert2,
|
|
83
|
+
concat: () => concat2,
|
|
84
|
+
from: () => from2,
|
|
85
|
+
fromArray: () => fromArray,
|
|
86
|
+
fromBoolean: () => fromBoolean2,
|
|
87
|
+
fromHex: () => fromHex,
|
|
88
|
+
fromNumber: () => fromNumber2,
|
|
89
|
+
fromString: () => fromString2,
|
|
90
|
+
isEqual: () => isEqual2,
|
|
91
|
+
padLeft: () => padLeft2,
|
|
92
|
+
padRight: () => padRight2,
|
|
93
|
+
random: () => random,
|
|
94
|
+
size: () => size,
|
|
95
|
+
slice: () => slice2,
|
|
96
|
+
toBigInt: () => toBigInt2,
|
|
97
|
+
toBoolean: () => toBoolean2,
|
|
98
|
+
toHex: () => toHex,
|
|
99
|
+
toNumber: () => toNumber2,
|
|
100
|
+
toString: () => toString2,
|
|
101
|
+
trimLeft: () => trimLeft2,
|
|
102
|
+
trimRight: () => trimRight,
|
|
103
|
+
validate: () => validate2
|
|
67
104
|
});
|
|
68
105
|
|
|
69
106
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/version.js
|
|
@@ -103,7 +140,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
103
140
|
const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
|
|
104
141
|
const docs = `${docsBaseUrl}${docsPath ?? ""}`;
|
|
105
142
|
const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
|
|
106
|
-
const
|
|
143
|
+
const version4 = options.version ?? _BaseError.prototype.version;
|
|
107
144
|
const message = [
|
|
108
145
|
shortMessage || "An error occurred.",
|
|
109
146
|
...options.metaMessages ? ["", ...options.metaMessages] : [],
|
|
@@ -111,7 +148,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
111
148
|
"",
|
|
112
149
|
details ? `Details: ${details}` : void 0,
|
|
113
150
|
docsPath ? `See: ${docs}` : void 0,
|
|
114
|
-
showVersion ? `Version: ${
|
|
151
|
+
showVersion ? `Version: ${version4}` : void 0
|
|
115
152
|
] : []
|
|
116
153
|
].filter((x) => typeof x === "string").join("\n");
|
|
117
154
|
super(message, options.cause ? { cause: options.cause } : void 0);
|
|
@@ -176,7 +213,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
176
213
|
this.docsPath = docsPath;
|
|
177
214
|
this.shortMessage = shortMessage;
|
|
178
215
|
this.showVersion = showVersion;
|
|
179
|
-
this.version =
|
|
216
|
+
this.version = version4;
|
|
180
217
|
}
|
|
181
218
|
walk(fn) {
|
|
182
219
|
return walk(this, fn);
|
|
@@ -203,172 +240,6 @@ function walk(err, fn) {
|
|
|
203
240
|
return fn ? null : err;
|
|
204
241
|
}
|
|
205
242
|
|
|
206
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hash.js
|
|
207
|
-
var Hash_exports = {};
|
|
208
|
-
__export(Hash_exports, {
|
|
209
|
-
hmac256: () => hmac256,
|
|
210
|
-
keccak256: () => keccak256,
|
|
211
|
-
ripemd160: () => ripemd1603,
|
|
212
|
-
sha256: () => sha2563,
|
|
213
|
-
validate: () => validate3
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/legacy.js
|
|
217
|
-
var Rho160 = /* @__PURE__ */ Uint8Array.from([
|
|
218
|
-
7,
|
|
219
|
-
4,
|
|
220
|
-
13,
|
|
221
|
-
1,
|
|
222
|
-
10,
|
|
223
|
-
6,
|
|
224
|
-
15,
|
|
225
|
-
3,
|
|
226
|
-
12,
|
|
227
|
-
0,
|
|
228
|
-
9,
|
|
229
|
-
5,
|
|
230
|
-
2,
|
|
231
|
-
14,
|
|
232
|
-
11,
|
|
233
|
-
8
|
|
234
|
-
]);
|
|
235
|
-
var Id160 = /* @__PURE__ */ (() => Uint8Array.from(new Array(16).fill(0).map((_, i) => i)))();
|
|
236
|
-
var Pi160 = /* @__PURE__ */ (() => Id160.map((i) => (9 * i + 5) % 16))();
|
|
237
|
-
var idxLR = /* @__PURE__ */ (() => {
|
|
238
|
-
const L = [Id160];
|
|
239
|
-
const R = [Pi160];
|
|
240
|
-
const res = [L, R];
|
|
241
|
-
for (let i = 0; i < 4; i++)
|
|
242
|
-
for (let j of res)
|
|
243
|
-
j.push(j[i].map((k) => Rho160[k]));
|
|
244
|
-
return res;
|
|
245
|
-
})();
|
|
246
|
-
var idxL = /* @__PURE__ */ (() => idxLR[0])();
|
|
247
|
-
var idxR = /* @__PURE__ */ (() => idxLR[1])();
|
|
248
|
-
var shifts160 = /* @__PURE__ */ [
|
|
249
|
-
[11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8],
|
|
250
|
-
[12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7],
|
|
251
|
-
[13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9],
|
|
252
|
-
[14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6],
|
|
253
|
-
[15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5]
|
|
254
|
-
].map((i) => Uint8Array.from(i));
|
|
255
|
-
var shiftsL160 = /* @__PURE__ */ idxL.map((idx, i) => idx.map((j) => shifts160[i][j]));
|
|
256
|
-
var shiftsR160 = /* @__PURE__ */ idxR.map((idx, i) => idx.map((j) => shifts160[i][j]));
|
|
257
|
-
var Kl160 = /* @__PURE__ */ Uint32Array.from([
|
|
258
|
-
0,
|
|
259
|
-
1518500249,
|
|
260
|
-
1859775393,
|
|
261
|
-
2400959708,
|
|
262
|
-
2840853838
|
|
263
|
-
]);
|
|
264
|
-
var Kr160 = /* @__PURE__ */ Uint32Array.from([
|
|
265
|
-
1352829926,
|
|
266
|
-
1548603684,
|
|
267
|
-
1836072691,
|
|
268
|
-
2053994217,
|
|
269
|
-
0
|
|
270
|
-
]);
|
|
271
|
-
function ripemd_f(group, x, y, z) {
|
|
272
|
-
if (group === 0)
|
|
273
|
-
return x ^ y ^ z;
|
|
274
|
-
if (group === 1)
|
|
275
|
-
return x & y | ~x & z;
|
|
276
|
-
if (group === 2)
|
|
277
|
-
return (x | ~y) ^ z;
|
|
278
|
-
if (group === 3)
|
|
279
|
-
return x & z | y & ~z;
|
|
280
|
-
return x ^ (y | ~z);
|
|
281
|
-
}
|
|
282
|
-
var BUF_160 = /* @__PURE__ */ new Uint32Array(16);
|
|
283
|
-
var RIPEMD160 = class extends HashMD {
|
|
284
|
-
constructor() {
|
|
285
|
-
super(64, 20, 8, true);
|
|
286
|
-
this.h0 = 1732584193 | 0;
|
|
287
|
-
this.h1 = 4023233417 | 0;
|
|
288
|
-
this.h2 = 2562383102 | 0;
|
|
289
|
-
this.h3 = 271733878 | 0;
|
|
290
|
-
this.h4 = 3285377520 | 0;
|
|
291
|
-
}
|
|
292
|
-
get() {
|
|
293
|
-
const { h0, h1, h2, h3, h4 } = this;
|
|
294
|
-
return [h0, h1, h2, h3, h4];
|
|
295
|
-
}
|
|
296
|
-
set(h0, h1, h2, h3, h4) {
|
|
297
|
-
this.h0 = h0 | 0;
|
|
298
|
-
this.h1 = h1 | 0;
|
|
299
|
-
this.h2 = h2 | 0;
|
|
300
|
-
this.h3 = h3 | 0;
|
|
301
|
-
this.h4 = h4 | 0;
|
|
302
|
-
}
|
|
303
|
-
process(view, offset) {
|
|
304
|
-
for (let i = 0; i < 16; i++, offset += 4)
|
|
305
|
-
BUF_160[i] = view.getUint32(offset, true);
|
|
306
|
-
let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el;
|
|
307
|
-
for (let group = 0; group < 5; group++) {
|
|
308
|
-
const rGroup = 4 - group;
|
|
309
|
-
const hbl = Kl160[group], hbr = Kr160[group];
|
|
310
|
-
const rl = idxL[group], rr = idxR[group];
|
|
311
|
-
const sl = shiftsL160[group], sr = shiftsR160[group];
|
|
312
|
-
for (let i = 0; i < 16; i++) {
|
|
313
|
-
const tl = rotl(al + ripemd_f(group, bl, cl, dl) + BUF_160[rl[i]] + hbl, sl[i]) + el | 0;
|
|
314
|
-
al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl;
|
|
315
|
-
}
|
|
316
|
-
for (let i = 0; i < 16; i++) {
|
|
317
|
-
const tr = rotl(ar + ripemd_f(rGroup, br, cr, dr) + BUF_160[rr[i]] + hbr, sr[i]) + er | 0;
|
|
318
|
-
ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
this.set(this.h1 + cl + dr | 0, this.h2 + dl + er | 0, this.h3 + el + ar | 0, this.h4 + al + br | 0, this.h0 + bl + cr | 0);
|
|
322
|
-
}
|
|
323
|
-
roundClean() {
|
|
324
|
-
clean(BUF_160);
|
|
325
|
-
}
|
|
326
|
-
destroy() {
|
|
327
|
-
this.destroyed = true;
|
|
328
|
-
clean(this.buffer);
|
|
329
|
-
this.set(0, 0, 0, 0, 0);
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
var ripemd160 = /* @__PURE__ */ createHasher(() => new RIPEMD160());
|
|
333
|
-
|
|
334
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/ripemd160.js
|
|
335
|
-
var ripemd1602 = ripemd160;
|
|
336
|
-
|
|
337
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
|
|
338
|
-
var sha2562 = sha256;
|
|
339
|
-
|
|
340
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Bytes.js
|
|
341
|
-
var Bytes_exports = {};
|
|
342
|
-
__export(Bytes_exports, {
|
|
343
|
-
InvalidBytesBooleanError: () => InvalidBytesBooleanError,
|
|
344
|
-
InvalidBytesTypeError: () => InvalidBytesTypeError,
|
|
345
|
-
SizeExceedsPaddingSizeError: () => SizeExceedsPaddingSizeError,
|
|
346
|
-
SizeOverflowError: () => SizeOverflowError,
|
|
347
|
-
SliceOffsetOutOfBoundsError: () => SliceOffsetOutOfBoundsError,
|
|
348
|
-
assert: () => assert2,
|
|
349
|
-
concat: () => concat2,
|
|
350
|
-
from: () => from2,
|
|
351
|
-
fromArray: () => fromArray,
|
|
352
|
-
fromBoolean: () => fromBoolean2,
|
|
353
|
-
fromHex: () => fromHex,
|
|
354
|
-
fromNumber: () => fromNumber2,
|
|
355
|
-
fromString: () => fromString2,
|
|
356
|
-
isEqual: () => isEqual2,
|
|
357
|
-
padLeft: () => padLeft2,
|
|
358
|
-
padRight: () => padRight2,
|
|
359
|
-
random: () => random,
|
|
360
|
-
size: () => size,
|
|
361
|
-
slice: () => slice2,
|
|
362
|
-
toBigInt: () => toBigInt2,
|
|
363
|
-
toBoolean: () => toBoolean2,
|
|
364
|
-
toHex: () => toHex,
|
|
365
|
-
toNumber: () => toNumber2,
|
|
366
|
-
toString: () => toString2,
|
|
367
|
-
trimLeft: () => trimLeft2,
|
|
368
|
-
trimRight: () => trimRight,
|
|
369
|
-
validate: () => validate2
|
|
370
|
-
});
|
|
371
|
-
|
|
372
243
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
373
244
|
var Hex_exports = {};
|
|
374
245
|
__export(Hex_exports, {
|
|
@@ -532,55 +403,6 @@ function trim2(value, options = {}) {
|
|
|
532
403
|
return `0x${data}`;
|
|
533
404
|
}
|
|
534
405
|
|
|
535
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Json.js
|
|
536
|
-
var Json_exports = {};
|
|
537
|
-
__export(Json_exports, {
|
|
538
|
-
canonicalize: () => canonicalize,
|
|
539
|
-
parse: () => parse,
|
|
540
|
-
stringify: () => stringify
|
|
541
|
-
});
|
|
542
|
-
var bigIntSuffix = "#__bigint";
|
|
543
|
-
function canonicalize(value) {
|
|
544
|
-
if (value === null || typeof value === "boolean" || typeof value === "string")
|
|
545
|
-
return JSON.stringify(value);
|
|
546
|
-
if (typeof value === "number") {
|
|
547
|
-
if (!Number.isFinite(value))
|
|
548
|
-
throw new TypeError("Cannot canonicalize non-finite number");
|
|
549
|
-
return Object.is(value, -0) ? "0" : JSON.stringify(value);
|
|
550
|
-
}
|
|
551
|
-
if (typeof value === "bigint")
|
|
552
|
-
throw new TypeError("Cannot canonicalize bigint");
|
|
553
|
-
if (Array.isArray(value))
|
|
554
|
-
return `[${value.map((item) => canonicalize(item)).join(",")}]`;
|
|
555
|
-
if (typeof value === "object") {
|
|
556
|
-
const entries = Object.keys(value).sort().reduce((acc, key) => {
|
|
557
|
-
const v = value[key];
|
|
558
|
-
if (v !== void 0)
|
|
559
|
-
acc.push(`${JSON.stringify(key)}:${canonicalize(v)}`);
|
|
560
|
-
return acc;
|
|
561
|
-
}, []);
|
|
562
|
-
return `{${entries.join(",")}}`;
|
|
563
|
-
}
|
|
564
|
-
return void 0;
|
|
565
|
-
}
|
|
566
|
-
function parse(string4, reviver) {
|
|
567
|
-
return JSON.parse(string4, (key, value_) => {
|
|
568
|
-
const value = value_;
|
|
569
|
-
if (typeof value === "string" && value.endsWith(bigIntSuffix))
|
|
570
|
-
return BigInt(value.slice(0, -bigIntSuffix.length));
|
|
571
|
-
return typeof reviver === "function" ? reviver(key, value) : value;
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
function stringify(value, replacer, space) {
|
|
575
|
-
return JSON.stringify(value, (key, value2) => {
|
|
576
|
-
if (typeof replacer === "function")
|
|
577
|
-
return replacer(key, value2);
|
|
578
|
-
if (typeof value2 === "bigint")
|
|
579
|
-
return value2.toString() + bigIntSuffix;
|
|
580
|
-
return value2;
|
|
581
|
-
}, space);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
406
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
585
407
|
var encoder = /* @__PURE__ */ new TextEncoder();
|
|
586
408
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
@@ -1058,6 +880,140 @@ var SizeExceedsPaddingSizeError = class extends BaseError {
|
|
|
1058
880
|
}
|
|
1059
881
|
};
|
|
1060
882
|
|
|
883
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hash.js
|
|
884
|
+
var Hash_exports = {};
|
|
885
|
+
__export(Hash_exports, {
|
|
886
|
+
hmac256: () => hmac256,
|
|
887
|
+
keccak256: () => keccak256,
|
|
888
|
+
ripemd160: () => ripemd1603,
|
|
889
|
+
sha256: () => sha2563,
|
|
890
|
+
validate: () => validate3
|
|
891
|
+
});
|
|
892
|
+
|
|
893
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/legacy.js
|
|
894
|
+
var Rho160 = /* @__PURE__ */ Uint8Array.from([
|
|
895
|
+
7,
|
|
896
|
+
4,
|
|
897
|
+
13,
|
|
898
|
+
1,
|
|
899
|
+
10,
|
|
900
|
+
6,
|
|
901
|
+
15,
|
|
902
|
+
3,
|
|
903
|
+
12,
|
|
904
|
+
0,
|
|
905
|
+
9,
|
|
906
|
+
5,
|
|
907
|
+
2,
|
|
908
|
+
14,
|
|
909
|
+
11,
|
|
910
|
+
8
|
|
911
|
+
]);
|
|
912
|
+
var Id160 = /* @__PURE__ */ (() => Uint8Array.from(new Array(16).fill(0).map((_, i) => i)))();
|
|
913
|
+
var Pi160 = /* @__PURE__ */ (() => Id160.map((i) => (9 * i + 5) % 16))();
|
|
914
|
+
var idxLR = /* @__PURE__ */ (() => {
|
|
915
|
+
const L = [Id160];
|
|
916
|
+
const R = [Pi160];
|
|
917
|
+
const res = [L, R];
|
|
918
|
+
for (let i = 0; i < 4; i++)
|
|
919
|
+
for (let j of res)
|
|
920
|
+
j.push(j[i].map((k) => Rho160[k]));
|
|
921
|
+
return res;
|
|
922
|
+
})();
|
|
923
|
+
var idxL = /* @__PURE__ */ (() => idxLR[0])();
|
|
924
|
+
var idxR = /* @__PURE__ */ (() => idxLR[1])();
|
|
925
|
+
var shifts160 = /* @__PURE__ */ [
|
|
926
|
+
[11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8],
|
|
927
|
+
[12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7],
|
|
928
|
+
[13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9],
|
|
929
|
+
[14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6],
|
|
930
|
+
[15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5]
|
|
931
|
+
].map((i) => Uint8Array.from(i));
|
|
932
|
+
var shiftsL160 = /* @__PURE__ */ idxL.map((idx, i) => idx.map((j) => shifts160[i][j]));
|
|
933
|
+
var shiftsR160 = /* @__PURE__ */ idxR.map((idx, i) => idx.map((j) => shifts160[i][j]));
|
|
934
|
+
var Kl160 = /* @__PURE__ */ Uint32Array.from([
|
|
935
|
+
0,
|
|
936
|
+
1518500249,
|
|
937
|
+
1859775393,
|
|
938
|
+
2400959708,
|
|
939
|
+
2840853838
|
|
940
|
+
]);
|
|
941
|
+
var Kr160 = /* @__PURE__ */ Uint32Array.from([
|
|
942
|
+
1352829926,
|
|
943
|
+
1548603684,
|
|
944
|
+
1836072691,
|
|
945
|
+
2053994217,
|
|
946
|
+
0
|
|
947
|
+
]);
|
|
948
|
+
function ripemd_f(group, x, y, z) {
|
|
949
|
+
if (group === 0)
|
|
950
|
+
return x ^ y ^ z;
|
|
951
|
+
if (group === 1)
|
|
952
|
+
return x & y | ~x & z;
|
|
953
|
+
if (group === 2)
|
|
954
|
+
return (x | ~y) ^ z;
|
|
955
|
+
if (group === 3)
|
|
956
|
+
return x & z | y & ~z;
|
|
957
|
+
return x ^ (y | ~z);
|
|
958
|
+
}
|
|
959
|
+
var BUF_160 = /* @__PURE__ */ new Uint32Array(16);
|
|
960
|
+
var RIPEMD160 = class extends HashMD {
|
|
961
|
+
constructor() {
|
|
962
|
+
super(64, 20, 8, true);
|
|
963
|
+
this.h0 = 1732584193 | 0;
|
|
964
|
+
this.h1 = 4023233417 | 0;
|
|
965
|
+
this.h2 = 2562383102 | 0;
|
|
966
|
+
this.h3 = 271733878 | 0;
|
|
967
|
+
this.h4 = 3285377520 | 0;
|
|
968
|
+
}
|
|
969
|
+
get() {
|
|
970
|
+
const { h0, h1, h2, h3, h4 } = this;
|
|
971
|
+
return [h0, h1, h2, h3, h4];
|
|
972
|
+
}
|
|
973
|
+
set(h0, h1, h2, h3, h4) {
|
|
974
|
+
this.h0 = h0 | 0;
|
|
975
|
+
this.h1 = h1 | 0;
|
|
976
|
+
this.h2 = h2 | 0;
|
|
977
|
+
this.h3 = h3 | 0;
|
|
978
|
+
this.h4 = h4 | 0;
|
|
979
|
+
}
|
|
980
|
+
process(view, offset) {
|
|
981
|
+
for (let i = 0; i < 16; i++, offset += 4)
|
|
982
|
+
BUF_160[i] = view.getUint32(offset, true);
|
|
983
|
+
let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el;
|
|
984
|
+
for (let group = 0; group < 5; group++) {
|
|
985
|
+
const rGroup = 4 - group;
|
|
986
|
+
const hbl = Kl160[group], hbr = Kr160[group];
|
|
987
|
+
const rl = idxL[group], rr = idxR[group];
|
|
988
|
+
const sl = shiftsL160[group], sr = shiftsR160[group];
|
|
989
|
+
for (let i = 0; i < 16; i++) {
|
|
990
|
+
const tl = rotl(al + ripemd_f(group, bl, cl, dl) + BUF_160[rl[i]] + hbl, sl[i]) + el | 0;
|
|
991
|
+
al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl;
|
|
992
|
+
}
|
|
993
|
+
for (let i = 0; i < 16; i++) {
|
|
994
|
+
const tr = rotl(ar + ripemd_f(rGroup, br, cr, dr) + BUF_160[rr[i]] + hbr, sr[i]) + er | 0;
|
|
995
|
+
ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
this.set(this.h1 + cl + dr | 0, this.h2 + dl + er | 0, this.h3 + el + ar | 0, this.h4 + al + br | 0, this.h0 + bl + cr | 0);
|
|
999
|
+
}
|
|
1000
|
+
roundClean() {
|
|
1001
|
+
clean(BUF_160);
|
|
1002
|
+
}
|
|
1003
|
+
destroy() {
|
|
1004
|
+
this.destroyed = true;
|
|
1005
|
+
clean(this.buffer);
|
|
1006
|
+
this.set(0, 0, 0, 0, 0);
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
var ripemd160 = /* @__PURE__ */ createHasher(() => new RIPEMD160());
|
|
1010
|
+
|
|
1011
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/ripemd160.js
|
|
1012
|
+
var ripemd1602 = ripemd160;
|
|
1013
|
+
|
|
1014
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
|
|
1015
|
+
var sha2562 = sha256;
|
|
1016
|
+
|
|
1061
1017
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Hash.js
|
|
1062
1018
|
function keccak256(value, options = {}) {
|
|
1063
1019
|
const { as = typeof value === "string" ? "Hex" : "Bytes" } = options;
|
|
@@ -1091,37 +1047,680 @@ function validate3(value) {
|
|
|
1091
1047
|
return validate(value) && size2(value) === 32;
|
|
1092
1048
|
}
|
|
1093
1049
|
|
|
1094
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/
|
|
1095
|
-
var
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1050
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Base64.js
|
|
1051
|
+
var Base64_exports = {};
|
|
1052
|
+
__export(Base64_exports, {
|
|
1053
|
+
fromBytes: () => fromBytes2,
|
|
1054
|
+
fromHex: () => fromHex2,
|
|
1055
|
+
fromString: () => fromString3,
|
|
1056
|
+
toBytes: () => toBytes2,
|
|
1057
|
+
toHex: () => toHex2,
|
|
1058
|
+
toString: () => toString3
|
|
1059
|
+
});
|
|
1060
|
+
var encoder3 = /* @__PURE__ */ new TextEncoder();
|
|
1061
|
+
var decoder2 = /* @__PURE__ */ new TextDecoder();
|
|
1062
|
+
var integerToCharacter = /* @__PURE__ */ Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((a, i) => [i, a.charCodeAt(0)]));
|
|
1063
|
+
var characterToInteger = {
|
|
1064
|
+
...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((a, i) => [a.charCodeAt(0), i])),
|
|
1065
|
+
["=".charCodeAt(0)]: 0,
|
|
1066
|
+
["-".charCodeAt(0)]: 62,
|
|
1067
|
+
["_".charCodeAt(0)]: 63
|
|
1068
|
+
};
|
|
1069
|
+
function fromBytes2(value, options = {}) {
|
|
1070
|
+
const { pad: pad3 = true, url: url2 = false } = options;
|
|
1071
|
+
const encoded = new Uint8Array(Math.ceil(value.length / 3) * 4);
|
|
1072
|
+
for (let i = 0, j = 0; j < value.length; i += 4, j += 3) {
|
|
1073
|
+
const y = (value[j] << 16) + (value[j + 1] << 8) + (value[j + 2] | 0);
|
|
1074
|
+
encoded[i] = integerToCharacter[y >> 18];
|
|
1075
|
+
encoded[i + 1] = integerToCharacter[y >> 12 & 63];
|
|
1076
|
+
encoded[i + 2] = integerToCharacter[y >> 6 & 63];
|
|
1077
|
+
encoded[i + 3] = integerToCharacter[y & 63];
|
|
1078
|
+
}
|
|
1079
|
+
const k = value.length % 3;
|
|
1080
|
+
const end = Math.floor(value.length / 3) * 4 + (k && k + 1);
|
|
1081
|
+
let base643 = decoder2.decode(new Uint8Array(encoded.buffer, 0, end));
|
|
1082
|
+
if (pad3 && k === 1)
|
|
1083
|
+
base643 += "==";
|
|
1084
|
+
if (pad3 && k === 2)
|
|
1085
|
+
base643 += "=";
|
|
1086
|
+
if (url2)
|
|
1087
|
+
base643 = base643.replaceAll("+", "-").replaceAll("/", "_");
|
|
1088
|
+
return base643;
|
|
1089
|
+
}
|
|
1090
|
+
function fromHex2(value, options = {}) {
|
|
1091
|
+
return fromBytes2(fromHex(value), options);
|
|
1092
|
+
}
|
|
1093
|
+
function fromString3(value, options = {}) {
|
|
1094
|
+
return fromBytes2(fromString2(value), options);
|
|
1095
|
+
}
|
|
1096
|
+
function toBytes2(value) {
|
|
1097
|
+
const base643 = value.replace(/=+$/, "");
|
|
1098
|
+
const size3 = base643.length;
|
|
1099
|
+
const decoded = new Uint8Array(size3 + 3);
|
|
1100
|
+
encoder3.encodeInto(base643 + "===", decoded);
|
|
1101
|
+
for (let i = 0, j = 0; i < base643.length; i += 4, j += 3) {
|
|
1102
|
+
const x = (characterToInteger[decoded[i]] << 18) + (characterToInteger[decoded[i + 1]] << 12) + (characterToInteger[decoded[i + 2]] << 6) + characterToInteger[decoded[i + 3]];
|
|
1103
|
+
decoded[j] = x >> 16;
|
|
1104
|
+
decoded[j + 1] = x >> 8 & 255;
|
|
1105
|
+
decoded[j + 2] = x & 255;
|
|
1106
|
+
}
|
|
1107
|
+
const decodedSize = (size3 >> 2) * 3 + (size3 % 4 && size3 % 4 - 1);
|
|
1108
|
+
return new Uint8Array(decoded.buffer, 0, decodedSize);
|
|
1109
|
+
}
|
|
1110
|
+
function toHex2(value) {
|
|
1111
|
+
return fromBytes(toBytes2(value));
|
|
1112
|
+
}
|
|
1113
|
+
function toString3(value) {
|
|
1114
|
+
return toString2(toBytes2(value));
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/version.js
|
|
1118
|
+
var version2 = "1.2.3";
|
|
1119
|
+
|
|
1120
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/errors.js
|
|
1121
|
+
var BaseError2 = class _BaseError extends Error {
|
|
1122
|
+
constructor(shortMessage, args = {}) {
|
|
1123
|
+
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
1124
|
+
const docsPath = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
1125
|
+
const message = [
|
|
1126
|
+
shortMessage || "An error occurred.",
|
|
1127
|
+
"",
|
|
1128
|
+
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
1129
|
+
...docsPath ? [`Docs: https://abitype.dev${docsPath}`] : [],
|
|
1130
|
+
...details ? [`Details: ${details}`] : [],
|
|
1131
|
+
`Version: abitype@${version2}`
|
|
1132
|
+
].join("\n");
|
|
1133
|
+
super(message);
|
|
1134
|
+
Object.defineProperty(this, "details", {
|
|
1099
1135
|
enumerable: true,
|
|
1100
1136
|
configurable: true,
|
|
1101
1137
|
writable: true,
|
|
1102
1138
|
value: void 0
|
|
1103
1139
|
});
|
|
1104
|
-
this
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1140
|
+
Object.defineProperty(this, "docsPath", {
|
|
1141
|
+
enumerable: true,
|
|
1142
|
+
configurable: true,
|
|
1143
|
+
writable: true,
|
|
1144
|
+
value: void 0
|
|
1145
|
+
});
|
|
1146
|
+
Object.defineProperty(this, "metaMessages", {
|
|
1147
|
+
enumerable: true,
|
|
1148
|
+
configurable: true,
|
|
1149
|
+
writable: true,
|
|
1150
|
+
value: void 0
|
|
1151
|
+
});
|
|
1152
|
+
Object.defineProperty(this, "shortMessage", {
|
|
1153
|
+
enumerable: true,
|
|
1154
|
+
configurable: true,
|
|
1155
|
+
writable: true,
|
|
1156
|
+
value: void 0
|
|
1157
|
+
});
|
|
1158
|
+
Object.defineProperty(this, "name", {
|
|
1159
|
+
enumerable: true,
|
|
1160
|
+
configurable: true,
|
|
1161
|
+
writable: true,
|
|
1162
|
+
value: "AbiTypeError"
|
|
1163
|
+
});
|
|
1164
|
+
if (args.cause)
|
|
1165
|
+
this.cause = args.cause;
|
|
1166
|
+
this.details = details;
|
|
1167
|
+
this.docsPath = docsPath;
|
|
1168
|
+
this.metaMessages = args.metaMessages;
|
|
1169
|
+
this.shortMessage = shortMessage;
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/regex.js
|
|
1174
|
+
function execTyped(regex, string4) {
|
|
1175
|
+
const match = regex.exec(string4);
|
|
1176
|
+
return match?.groups;
|
|
1177
|
+
}
|
|
1178
|
+
var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
1179
|
+
var integerRegex = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
1180
|
+
var isTupleRegex = /^\(.+?\).*?$/;
|
|
1181
|
+
|
|
1182
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
1183
|
+
var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
1184
|
+
function formatAbiParameter(abiParameter) {
|
|
1185
|
+
let type = abiParameter.type;
|
|
1186
|
+
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
1187
|
+
type = "(";
|
|
1188
|
+
const length = abiParameter.components.length;
|
|
1189
|
+
for (let i = 0; i < length; i++) {
|
|
1190
|
+
const component = abiParameter.components[i];
|
|
1191
|
+
type += formatAbiParameter(component);
|
|
1192
|
+
if (i < length - 1)
|
|
1193
|
+
type += ", ";
|
|
1194
|
+
}
|
|
1195
|
+
const result = execTyped(tupleRegex, abiParameter.type);
|
|
1196
|
+
type += `)${result?.array || ""}`;
|
|
1197
|
+
return formatAbiParameter({
|
|
1198
|
+
...abiParameter,
|
|
1199
|
+
type
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
if ("indexed" in abiParameter && abiParameter.indexed)
|
|
1203
|
+
type = `${type} indexed`;
|
|
1204
|
+
if (abiParameter.name)
|
|
1205
|
+
return `${type} ${abiParameter.name}`;
|
|
1206
|
+
return type;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
1210
|
+
function formatAbiParameters(abiParameters) {
|
|
1211
|
+
let params = "";
|
|
1212
|
+
const length = abiParameters.length;
|
|
1213
|
+
for (let i = 0; i < length; i++) {
|
|
1214
|
+
const abiParameter = abiParameters[i];
|
|
1215
|
+
params += formatAbiParameter(abiParameter);
|
|
1216
|
+
if (i !== length - 1)
|
|
1217
|
+
params += ", ";
|
|
1218
|
+
}
|
|
1219
|
+
return params;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
1223
|
+
var structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
1224
|
+
function isStructSignature(signature) {
|
|
1225
|
+
return structSignatureRegex.test(signature);
|
|
1226
|
+
}
|
|
1227
|
+
function execStructSignature(signature) {
|
|
1228
|
+
return execTyped(structSignatureRegex, signature);
|
|
1229
|
+
}
|
|
1230
|
+
var modifiers = /* @__PURE__ */ new Set([
|
|
1231
|
+
"memory",
|
|
1232
|
+
"indexed",
|
|
1233
|
+
"storage",
|
|
1234
|
+
"calldata"
|
|
1235
|
+
]);
|
|
1236
|
+
var functionModifiers = /* @__PURE__ */ new Set([
|
|
1237
|
+
"calldata",
|
|
1238
|
+
"memory",
|
|
1239
|
+
"storage"
|
|
1240
|
+
]);
|
|
1241
|
+
|
|
1242
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
1243
|
+
var UnknownTypeError = class extends BaseError2 {
|
|
1244
|
+
constructor({ type }) {
|
|
1245
|
+
super("Unknown type.", {
|
|
1246
|
+
metaMessages: [
|
|
1247
|
+
`Type "${type}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
|
|
1248
|
+
]
|
|
1249
|
+
});
|
|
1250
|
+
Object.defineProperty(this, "name", {
|
|
1251
|
+
enumerable: true,
|
|
1252
|
+
configurable: true,
|
|
1253
|
+
writable: true,
|
|
1254
|
+
value: "UnknownTypeError"
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
var UnknownSolidityTypeError = class extends BaseError2 {
|
|
1259
|
+
constructor({ type }) {
|
|
1260
|
+
super("Unknown type.", {
|
|
1261
|
+
metaMessages: [`Type "${type}" is not a valid ABI type.`]
|
|
1262
|
+
});
|
|
1263
|
+
Object.defineProperty(this, "name", {
|
|
1264
|
+
enumerable: true,
|
|
1265
|
+
configurable: true,
|
|
1266
|
+
writable: true,
|
|
1267
|
+
value: "UnknownSolidityTypeError"
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
1273
|
+
var InvalidAbiParametersError = class extends BaseError2 {
|
|
1274
|
+
constructor({ params }) {
|
|
1275
|
+
super("Failed to parse ABI parameters.", {
|
|
1276
|
+
details: `parseAbiParameters(${JSON.stringify(params, null, 2)})`,
|
|
1277
|
+
docsPath: "/api/human#parseabiparameters-1"
|
|
1278
|
+
});
|
|
1279
|
+
Object.defineProperty(this, "name", {
|
|
1280
|
+
enumerable: true,
|
|
1281
|
+
configurable: true,
|
|
1282
|
+
writable: true,
|
|
1283
|
+
value: "InvalidAbiParametersError"
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
var InvalidParameterError = class extends BaseError2 {
|
|
1288
|
+
constructor({ param }) {
|
|
1289
|
+
super("Invalid ABI parameter.", {
|
|
1290
|
+
details: param
|
|
1291
|
+
});
|
|
1292
|
+
Object.defineProperty(this, "name", {
|
|
1293
|
+
enumerable: true,
|
|
1294
|
+
configurable: true,
|
|
1295
|
+
writable: true,
|
|
1296
|
+
value: "InvalidParameterError"
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
var SolidityProtectedKeywordError = class extends BaseError2 {
|
|
1301
|
+
constructor({ param, name }) {
|
|
1302
|
+
super("Invalid ABI parameter.", {
|
|
1303
|
+
details: param,
|
|
1304
|
+
metaMessages: [
|
|
1305
|
+
`"${name}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
|
|
1306
|
+
]
|
|
1307
|
+
});
|
|
1308
|
+
Object.defineProperty(this, "name", {
|
|
1309
|
+
enumerable: true,
|
|
1310
|
+
configurable: true,
|
|
1311
|
+
writable: true,
|
|
1312
|
+
value: "SolidityProtectedKeywordError"
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
var InvalidModifierError = class extends BaseError2 {
|
|
1317
|
+
constructor({ param, type, modifier }) {
|
|
1318
|
+
super("Invalid ABI parameter.", {
|
|
1319
|
+
details: param,
|
|
1320
|
+
metaMessages: [
|
|
1321
|
+
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`
|
|
1322
|
+
]
|
|
1323
|
+
});
|
|
1324
|
+
Object.defineProperty(this, "name", {
|
|
1325
|
+
enumerable: true,
|
|
1326
|
+
configurable: true,
|
|
1327
|
+
writable: true,
|
|
1328
|
+
value: "InvalidModifierError"
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
};
|
|
1332
|
+
var InvalidFunctionModifierError = class extends BaseError2 {
|
|
1333
|
+
constructor({ param, type, modifier }) {
|
|
1334
|
+
super("Invalid ABI parameter.", {
|
|
1335
|
+
details: param,
|
|
1336
|
+
metaMessages: [
|
|
1337
|
+
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`,
|
|
1338
|
+
`Data location can only be specified for array, struct, or mapping types, but "${modifier}" was given.`
|
|
1339
|
+
]
|
|
1340
|
+
});
|
|
1341
|
+
Object.defineProperty(this, "name", {
|
|
1342
|
+
enumerable: true,
|
|
1343
|
+
configurable: true,
|
|
1344
|
+
writable: true,
|
|
1345
|
+
value: "InvalidFunctionModifierError"
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
var InvalidAbiTypeParameterError = class extends BaseError2 {
|
|
1350
|
+
constructor({ abiParameter }) {
|
|
1351
|
+
super("Invalid ABI parameter.", {
|
|
1352
|
+
details: JSON.stringify(abiParameter, null, 2),
|
|
1353
|
+
metaMessages: ["ABI parameter type is invalid."]
|
|
1354
|
+
});
|
|
1355
|
+
Object.defineProperty(this, "name", {
|
|
1356
|
+
enumerable: true,
|
|
1357
|
+
configurable: true,
|
|
1358
|
+
writable: true,
|
|
1359
|
+
value: "InvalidAbiTypeParameterError"
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
1365
|
+
var InvalidSignatureError = class extends BaseError2 {
|
|
1366
|
+
constructor({ signature, type }) {
|
|
1367
|
+
super(`Invalid ${type} signature.`, {
|
|
1368
|
+
details: signature
|
|
1369
|
+
});
|
|
1370
|
+
Object.defineProperty(this, "name", {
|
|
1371
|
+
enumerable: true,
|
|
1372
|
+
configurable: true,
|
|
1373
|
+
writable: true,
|
|
1374
|
+
value: "InvalidSignatureError"
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
};
|
|
1378
|
+
var InvalidStructSignatureError = class extends BaseError2 {
|
|
1379
|
+
constructor({ signature }) {
|
|
1380
|
+
super("Invalid struct signature.", {
|
|
1381
|
+
details: signature,
|
|
1382
|
+
metaMessages: ["No properties exist."]
|
|
1383
|
+
});
|
|
1384
|
+
Object.defineProperty(this, "name", {
|
|
1385
|
+
enumerable: true,
|
|
1386
|
+
configurable: true,
|
|
1387
|
+
writable: true,
|
|
1388
|
+
value: "InvalidStructSignatureError"
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
1394
|
+
var CircularReferenceError = class extends BaseError2 {
|
|
1395
|
+
constructor({ type }) {
|
|
1396
|
+
super("Circular reference detected.", {
|
|
1397
|
+
metaMessages: [`Struct "${type}" is a circular reference.`]
|
|
1398
|
+
});
|
|
1399
|
+
Object.defineProperty(this, "name", {
|
|
1400
|
+
enumerable: true,
|
|
1401
|
+
configurable: true,
|
|
1402
|
+
writable: true,
|
|
1403
|
+
value: "CircularReferenceError"
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1408
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
1409
|
+
var InvalidParenthesisError = class extends BaseError2 {
|
|
1410
|
+
constructor({ current, depth }) {
|
|
1411
|
+
super("Unbalanced parentheses.", {
|
|
1412
|
+
metaMessages: [
|
|
1413
|
+
`"${current.trim()}" has too many ${depth > 0 ? "opening" : "closing"} parentheses.`
|
|
1414
|
+
],
|
|
1415
|
+
details: `Depth "${depth}"`
|
|
1416
|
+
});
|
|
1417
|
+
Object.defineProperty(this, "name", {
|
|
1418
|
+
enumerable: true,
|
|
1419
|
+
configurable: true,
|
|
1420
|
+
writable: true,
|
|
1421
|
+
value: "InvalidParenthesisError"
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
1427
|
+
function getParameterCacheKey(param, type, structs) {
|
|
1428
|
+
let structKey = "";
|
|
1429
|
+
if (structs)
|
|
1430
|
+
for (const struct of Object.entries(structs)) {
|
|
1431
|
+
if (!struct)
|
|
1432
|
+
continue;
|
|
1433
|
+
let propertyKey = "";
|
|
1434
|
+
for (const property of struct[1]) {
|
|
1435
|
+
propertyKey += `[${property.type}${property.name ? `:${property.name}` : ""}]`;
|
|
1436
|
+
}
|
|
1437
|
+
structKey += `(${struct[0]}{${propertyKey}})`;
|
|
1438
|
+
}
|
|
1439
|
+
if (type)
|
|
1440
|
+
return `${type}:${param}${structKey}`;
|
|
1441
|
+
return `${param}${structKey}`;
|
|
1442
|
+
}
|
|
1443
|
+
var parameterCache = /* @__PURE__ */ new Map([
|
|
1444
|
+
// Unnamed
|
|
1445
|
+
["address", { type: "address" }],
|
|
1446
|
+
["bool", { type: "bool" }],
|
|
1447
|
+
["bytes", { type: "bytes" }],
|
|
1448
|
+
["bytes32", { type: "bytes32" }],
|
|
1449
|
+
["int", { type: "int256" }],
|
|
1450
|
+
["int256", { type: "int256" }],
|
|
1451
|
+
["string", { type: "string" }],
|
|
1452
|
+
["uint", { type: "uint256" }],
|
|
1453
|
+
["uint8", { type: "uint8" }],
|
|
1454
|
+
["uint16", { type: "uint16" }],
|
|
1455
|
+
["uint24", { type: "uint24" }],
|
|
1456
|
+
["uint32", { type: "uint32" }],
|
|
1457
|
+
["uint64", { type: "uint64" }],
|
|
1458
|
+
["uint96", { type: "uint96" }],
|
|
1459
|
+
["uint112", { type: "uint112" }],
|
|
1460
|
+
["uint160", { type: "uint160" }],
|
|
1461
|
+
["uint192", { type: "uint192" }],
|
|
1462
|
+
["uint256", { type: "uint256" }],
|
|
1463
|
+
// Named
|
|
1464
|
+
["address owner", { type: "address", name: "owner" }],
|
|
1465
|
+
["address to", { type: "address", name: "to" }],
|
|
1466
|
+
["bool approved", { type: "bool", name: "approved" }],
|
|
1467
|
+
["bytes _data", { type: "bytes", name: "_data" }],
|
|
1468
|
+
["bytes data", { type: "bytes", name: "data" }],
|
|
1469
|
+
["bytes signature", { type: "bytes", name: "signature" }],
|
|
1470
|
+
["bytes32 hash", { type: "bytes32", name: "hash" }],
|
|
1471
|
+
["bytes32 r", { type: "bytes32", name: "r" }],
|
|
1472
|
+
["bytes32 root", { type: "bytes32", name: "root" }],
|
|
1473
|
+
["bytes32 s", { type: "bytes32", name: "s" }],
|
|
1474
|
+
["string name", { type: "string", name: "name" }],
|
|
1475
|
+
["string symbol", { type: "string", name: "symbol" }],
|
|
1476
|
+
["string tokenURI", { type: "string", name: "tokenURI" }],
|
|
1477
|
+
["uint tokenId", { type: "uint256", name: "tokenId" }],
|
|
1478
|
+
["uint8 v", { type: "uint8", name: "v" }],
|
|
1479
|
+
["uint256 balance", { type: "uint256", name: "balance" }],
|
|
1480
|
+
["uint256 tokenId", { type: "uint256", name: "tokenId" }],
|
|
1481
|
+
["uint256 value", { type: "uint256", name: "value" }],
|
|
1482
|
+
// Indexed
|
|
1483
|
+
[
|
|
1484
|
+
"event:address indexed from",
|
|
1485
|
+
{ type: "address", name: "from", indexed: true }
|
|
1486
|
+
],
|
|
1487
|
+
["event:address indexed to", { type: "address", name: "to", indexed: true }],
|
|
1488
|
+
[
|
|
1489
|
+
"event:uint indexed tokenId",
|
|
1490
|
+
{ type: "uint256", name: "tokenId", indexed: true }
|
|
1491
|
+
],
|
|
1492
|
+
[
|
|
1493
|
+
"event:uint256 indexed tokenId",
|
|
1494
|
+
{ type: "uint256", name: "tokenId", indexed: true }
|
|
1495
|
+
]
|
|
1496
|
+
]);
|
|
1497
|
+
|
|
1498
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
1499
|
+
var abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
1500
|
+
var abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
1501
|
+
var dynamicIntegerRegex = /^u?int$/;
|
|
1502
|
+
function parseAbiParameter(param, options) {
|
|
1503
|
+
const parameterCacheKey = getParameterCacheKey(param, options?.type, options?.structs);
|
|
1504
|
+
if (parameterCache.has(parameterCacheKey))
|
|
1505
|
+
return parameterCache.get(parameterCacheKey);
|
|
1506
|
+
const isTuple = isTupleRegex.test(param);
|
|
1507
|
+
const match = execTyped(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);
|
|
1508
|
+
if (!match)
|
|
1509
|
+
throw new InvalidParameterError({ param });
|
|
1510
|
+
if (match.name && isSolidityKeyword(match.name))
|
|
1511
|
+
throw new SolidityProtectedKeywordError({ param, name: match.name });
|
|
1512
|
+
const name = match.name ? { name: match.name } : {};
|
|
1513
|
+
const indexed = match.modifier === "indexed" ? { indexed: true } : {};
|
|
1514
|
+
const structs = options?.structs ?? {};
|
|
1515
|
+
let type;
|
|
1516
|
+
let components = {};
|
|
1517
|
+
if (isTuple) {
|
|
1518
|
+
type = "tuple";
|
|
1519
|
+
const params = splitParameters(match.type);
|
|
1520
|
+
const components_ = [];
|
|
1521
|
+
const length = params.length;
|
|
1522
|
+
for (let i = 0; i < length; i++) {
|
|
1523
|
+
components_.push(parseAbiParameter(params[i], { structs }));
|
|
1524
|
+
}
|
|
1525
|
+
components = { components: components_ };
|
|
1526
|
+
} else if (match.type in structs) {
|
|
1527
|
+
type = "tuple";
|
|
1528
|
+
components = { components: structs[match.type] };
|
|
1529
|
+
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
1530
|
+
type = `${match.type}256`;
|
|
1531
|
+
} else if (match.type === "address payable") {
|
|
1532
|
+
type = "address";
|
|
1533
|
+
} else {
|
|
1534
|
+
type = match.type;
|
|
1535
|
+
if (!(options?.type === "struct") && !isSolidityType(type))
|
|
1536
|
+
throw new UnknownSolidityTypeError({ type });
|
|
1537
|
+
}
|
|
1538
|
+
if (match.modifier) {
|
|
1539
|
+
if (!options?.modifiers?.has?.(match.modifier))
|
|
1540
|
+
throw new InvalidModifierError({
|
|
1541
|
+
param,
|
|
1542
|
+
type: options?.type,
|
|
1543
|
+
modifier: match.modifier
|
|
1544
|
+
});
|
|
1545
|
+
if (functionModifiers.has(match.modifier) && !isValidDataLocation(type, !!match.array))
|
|
1546
|
+
throw new InvalidFunctionModifierError({
|
|
1547
|
+
param,
|
|
1548
|
+
type: options?.type,
|
|
1549
|
+
modifier: match.modifier
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
const abiParameter = {
|
|
1553
|
+
type: `${type}${match.array ?? ""}`,
|
|
1554
|
+
...name,
|
|
1555
|
+
...indexed,
|
|
1556
|
+
...components
|
|
1557
|
+
};
|
|
1558
|
+
parameterCache.set(parameterCacheKey, abiParameter);
|
|
1559
|
+
return abiParameter;
|
|
1560
|
+
}
|
|
1561
|
+
function splitParameters(params, result = [], current = "", depth = 0) {
|
|
1562
|
+
const length = params.trim().length;
|
|
1563
|
+
for (let i = 0; i < length; i++) {
|
|
1564
|
+
const char = params[i];
|
|
1565
|
+
const tail = params.slice(i + 1);
|
|
1566
|
+
switch (char) {
|
|
1567
|
+
case ",":
|
|
1568
|
+
return depth === 0 ? splitParameters(tail, [...result, current.trim()]) : splitParameters(tail, result, `${current}${char}`, depth);
|
|
1569
|
+
case "(":
|
|
1570
|
+
return splitParameters(tail, result, `${current}${char}`, depth + 1);
|
|
1571
|
+
case ")":
|
|
1572
|
+
return splitParameters(tail, result, `${current}${char}`, depth - 1);
|
|
1573
|
+
default:
|
|
1574
|
+
return splitParameters(tail, result, `${current}${char}`, depth);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
if (current === "")
|
|
1578
|
+
return result;
|
|
1579
|
+
if (depth !== 0)
|
|
1580
|
+
throw new InvalidParenthesisError({ current, depth });
|
|
1581
|
+
result.push(current.trim());
|
|
1582
|
+
return result;
|
|
1583
|
+
}
|
|
1584
|
+
function isSolidityType(type) {
|
|
1585
|
+
return type === "address" || type === "bool" || type === "function" || type === "string" || bytesRegex.test(type) || integerRegex.test(type);
|
|
1586
|
+
}
|
|
1587
|
+
var protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
1588
|
+
function isSolidityKeyword(name) {
|
|
1589
|
+
return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" || bytesRegex.test(name) || integerRegex.test(name) || protectedKeywordsRegex.test(name);
|
|
1590
|
+
}
|
|
1591
|
+
function isValidDataLocation(type, isArray) {
|
|
1592
|
+
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
1596
|
+
function parseStructs(signatures) {
|
|
1597
|
+
const shallowStructs = {};
|
|
1598
|
+
const signaturesLength = signatures.length;
|
|
1599
|
+
for (let i = 0; i < signaturesLength; i++) {
|
|
1600
|
+
const signature = signatures[i];
|
|
1601
|
+
if (!isStructSignature(signature))
|
|
1602
|
+
continue;
|
|
1603
|
+
const match = execStructSignature(signature);
|
|
1604
|
+
if (!match)
|
|
1605
|
+
throw new InvalidSignatureError({ signature, type: "struct" });
|
|
1606
|
+
const properties = match.properties.split(";");
|
|
1607
|
+
const components = [];
|
|
1608
|
+
const propertiesLength = properties.length;
|
|
1609
|
+
for (let k = 0; k < propertiesLength; k++) {
|
|
1610
|
+
const property = properties[k];
|
|
1611
|
+
const trimmed = property.trim();
|
|
1612
|
+
if (!trimmed)
|
|
1613
|
+
continue;
|
|
1614
|
+
const abiParameter = parseAbiParameter(trimmed, {
|
|
1615
|
+
type: "struct"
|
|
1616
|
+
});
|
|
1617
|
+
components.push(abiParameter);
|
|
1618
|
+
}
|
|
1619
|
+
if (!components.length)
|
|
1620
|
+
throw new InvalidStructSignatureError({ signature });
|
|
1621
|
+
shallowStructs[match.name] = components;
|
|
1622
|
+
}
|
|
1623
|
+
const resolvedStructs = {};
|
|
1624
|
+
const entries = Object.entries(shallowStructs);
|
|
1625
|
+
const entriesLength = entries.length;
|
|
1626
|
+
for (let i = 0; i < entriesLength; i++) {
|
|
1627
|
+
const [name, parameters] = entries[i];
|
|
1628
|
+
resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
|
|
1629
|
+
}
|
|
1630
|
+
return resolvedStructs;
|
|
1631
|
+
}
|
|
1632
|
+
var typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
1633
|
+
function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE__ */ new Set()) {
|
|
1634
|
+
const components = [];
|
|
1635
|
+
const length = abiParameters.length;
|
|
1636
|
+
for (let i = 0; i < length; i++) {
|
|
1637
|
+
const abiParameter = abiParameters[i];
|
|
1638
|
+
const isTuple = isTupleRegex.test(abiParameter.type);
|
|
1639
|
+
if (isTuple)
|
|
1640
|
+
components.push(abiParameter);
|
|
1641
|
+
else {
|
|
1642
|
+
const match = execTyped(typeWithoutTupleRegex, abiParameter.type);
|
|
1643
|
+
if (!match?.type)
|
|
1644
|
+
throw new InvalidAbiTypeParameterError({ abiParameter });
|
|
1645
|
+
const { array: array2, type } = match;
|
|
1646
|
+
if (type in structs) {
|
|
1647
|
+
if (ancestors.has(type))
|
|
1648
|
+
throw new CircularReferenceError({ type });
|
|
1649
|
+
components.push({
|
|
1650
|
+
...abiParameter,
|
|
1651
|
+
type: `tuple${array2 ?? ""}`,
|
|
1652
|
+
components: resolveStructs(structs[type], structs, /* @__PURE__ */ new Set([...ancestors, type]))
|
|
1653
|
+
});
|
|
1654
|
+
} else {
|
|
1655
|
+
if (isSolidityType(type))
|
|
1656
|
+
components.push(abiParameter);
|
|
1657
|
+
else
|
|
1658
|
+
throw new UnknownTypeError({ type });
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
return components;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.4.3/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
|
|
1666
|
+
function parseAbiParameters(params) {
|
|
1667
|
+
const abiParameters = [];
|
|
1668
|
+
if (typeof params === "string") {
|
|
1669
|
+
const parameters = splitParameters(params);
|
|
1670
|
+
const length = parameters.length;
|
|
1671
|
+
for (let i = 0; i < length; i++) {
|
|
1672
|
+
abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
|
|
1673
|
+
}
|
|
1674
|
+
} else {
|
|
1675
|
+
const structs = parseStructs(params);
|
|
1676
|
+
const length = params.length;
|
|
1677
|
+
for (let i = 0; i < length; i++) {
|
|
1678
|
+
const signature = params[i];
|
|
1679
|
+
if (isStructSignature(signature))
|
|
1680
|
+
continue;
|
|
1681
|
+
const parameters = splitParameters(signature);
|
|
1682
|
+
const length2 = parameters.length;
|
|
1683
|
+
for (let k = 0; k < length2; k++) {
|
|
1684
|
+
abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
if (abiParameters.length === 0)
|
|
1689
|
+
throw new InvalidAbiParametersError({ params });
|
|
1690
|
+
return abiParameters;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/internal/lru.js
|
|
1694
|
+
var LruMap = class extends Map {
|
|
1695
|
+
constructor(size3) {
|
|
1696
|
+
super();
|
|
1697
|
+
Object.defineProperty(this, "maxSize", {
|
|
1698
|
+
enumerable: true,
|
|
1699
|
+
configurable: true,
|
|
1700
|
+
writable: true,
|
|
1701
|
+
value: void 0
|
|
1702
|
+
});
|
|
1703
|
+
this.maxSize = size3;
|
|
1704
|
+
}
|
|
1705
|
+
get(key) {
|
|
1706
|
+
const value = super.get(key);
|
|
1707
|
+
if (super.has(key) && value !== void 0) {
|
|
1708
|
+
this.delete(key);
|
|
1709
|
+
super.set(key, value);
|
|
1710
|
+
}
|
|
1711
|
+
return value;
|
|
1712
|
+
}
|
|
1713
|
+
set(key, value) {
|
|
1714
|
+
super.set(key, value);
|
|
1715
|
+
if (this.maxSize && this.size > this.maxSize) {
|
|
1716
|
+
const firstKey = this.keys().next().value;
|
|
1717
|
+
if (firstKey)
|
|
1718
|
+
this.delete(firstKey);
|
|
1719
|
+
}
|
|
1720
|
+
return this;
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1125
1724
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Caches.js
|
|
1126
1725
|
var caches = {
|
|
1127
1726
|
checksum: /* @__PURE__ */ new LruMap(8192)
|
|
@@ -1153,9 +1752,9 @@ function assert3(publicKey, options = {}) {
|
|
|
1153
1752
|
function from3(value) {
|
|
1154
1753
|
const publicKey = (() => {
|
|
1155
1754
|
if (validate(value))
|
|
1156
|
-
return
|
|
1755
|
+
return fromHex3(value);
|
|
1157
1756
|
if (validate2(value))
|
|
1158
|
-
return
|
|
1757
|
+
return fromBytes3(value);
|
|
1159
1758
|
const { prefix, x, y } = value;
|
|
1160
1759
|
if (typeof x === "bigint" && typeof y === "bigint")
|
|
1161
1760
|
return { prefix: prefix ?? 4, x, y };
|
|
@@ -1164,10 +1763,10 @@ function from3(value) {
|
|
|
1164
1763
|
assert3(publicKey);
|
|
1165
1764
|
return publicKey;
|
|
1166
1765
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1766
|
+
function fromBytes3(publicKey) {
|
|
1767
|
+
return fromHex3(fromBytes(publicKey));
|
|
1169
1768
|
}
|
|
1170
|
-
function
|
|
1769
|
+
function fromHex3(publicKey) {
|
|
1171
1770
|
if (publicKey.length !== 132 && publicKey.length !== 130 && publicKey.length !== 68)
|
|
1172
1771
|
throw new InvalidSerializedSizeError({ publicKey });
|
|
1173
1772
|
if (publicKey.length === 130) {
|
|
@@ -1196,10 +1795,10 @@ function fromHex2(publicKey) {
|
|
|
1196
1795
|
x
|
|
1197
1796
|
};
|
|
1198
1797
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return fromHex(
|
|
1798
|
+
function toBytes3(publicKey, options = {}) {
|
|
1799
|
+
return fromHex(toHex3(publicKey, options));
|
|
1201
1800
|
}
|
|
1202
|
-
function
|
|
1801
|
+
function toHex3(publicKey, options = {}) {
|
|
1203
1802
|
assert3(publicKey);
|
|
1204
1803
|
const { prefix, x, y } = publicKey;
|
|
1205
1804
|
const { includePrefix = true } = options;
|
|
@@ -1299,35 +1898,35 @@ function assert4(value, options = {}) {
|
|
|
1299
1898
|
});
|
|
1300
1899
|
}
|
|
1301
1900
|
}
|
|
1302
|
-
function checksum2(
|
|
1303
|
-
if (checksum.has(
|
|
1304
|
-
return checksum.get(
|
|
1305
|
-
assert4(
|
|
1306
|
-
const hexAddress =
|
|
1307
|
-
const
|
|
1901
|
+
function checksum2(address) {
|
|
1902
|
+
if (checksum.has(address))
|
|
1903
|
+
return checksum.get(address);
|
|
1904
|
+
assert4(address, { strict: false });
|
|
1905
|
+
const hexAddress = address.substring(2).toLowerCase();
|
|
1906
|
+
const hash2 = keccak256(fromString2(hexAddress), { as: "Bytes" });
|
|
1308
1907
|
const characters = hexAddress.split("");
|
|
1309
1908
|
for (let i = 0; i < 40; i += 2) {
|
|
1310
|
-
if (
|
|
1909
|
+
if (hash2[i >> 1] >> 4 >= 8 && characters[i]) {
|
|
1311
1910
|
characters[i] = characters[i].toUpperCase();
|
|
1312
1911
|
}
|
|
1313
|
-
if ((
|
|
1912
|
+
if ((hash2[i >> 1] & 15) >= 8 && characters[i + 1]) {
|
|
1314
1913
|
characters[i + 1] = characters[i + 1].toUpperCase();
|
|
1315
1914
|
}
|
|
1316
1915
|
}
|
|
1317
1916
|
const result = `0x${characters.join("")}`;
|
|
1318
|
-
checksum.set(
|
|
1917
|
+
checksum.set(address, result);
|
|
1319
1918
|
return result;
|
|
1320
1919
|
}
|
|
1321
|
-
function from4(
|
|
1920
|
+
function from4(address, options = {}) {
|
|
1322
1921
|
const { checksum: checksumVal = false } = options;
|
|
1323
|
-
assert4(
|
|
1922
|
+
assert4(address);
|
|
1324
1923
|
if (checksumVal)
|
|
1325
|
-
return checksum2(
|
|
1326
|
-
return
|
|
1924
|
+
return checksum2(address);
|
|
1925
|
+
return address;
|
|
1327
1926
|
}
|
|
1328
1927
|
function fromPublicKey(publicKey, options = {}) {
|
|
1329
|
-
const
|
|
1330
|
-
return from4(`0x${
|
|
1928
|
+
const address = keccak256(`0x${toHex3(publicKey).slice(4)}`).substring(26);
|
|
1929
|
+
return from4(`0x${address}`, options);
|
|
1331
1930
|
}
|
|
1332
1931
|
function isEqual3(addressA, addressB) {
|
|
1333
1932
|
assert4(addressA, { strict: false });
|
|
@@ -1335,8 +1934,8 @@ function isEqual3(addressA, addressB) {
|
|
|
1335
1934
|
return addressA.toLowerCase() === addressB.toLowerCase();
|
|
1336
1935
|
}
|
|
1337
1936
|
var InvalidAddressError = class extends BaseError {
|
|
1338
|
-
constructor({ address
|
|
1339
|
-
super(`Address "${
|
|
1937
|
+
constructor({ address, cause }) {
|
|
1938
|
+
super(`Address "${address}" is invalid.`, {
|
|
1340
1939
|
cause
|
|
1341
1940
|
});
|
|
1342
1941
|
Object.defineProperty(this, "name", {
|
|
@@ -1389,8 +1988,8 @@ __export(AbiParameters_exports, {
|
|
|
1389
1988
|
|
|
1390
1989
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Solidity.js
|
|
1391
1990
|
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
1392
|
-
var
|
|
1393
|
-
var
|
|
1991
|
+
var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
1992
|
+
var integerRegex2 = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
1394
1993
|
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
1395
1994
|
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
1396
1995
|
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
@@ -1518,7 +2117,7 @@ var sizeOfOffset = 32;
|
|
|
1518
2117
|
function decodeAddress(cursor, options = {}) {
|
|
1519
2118
|
const { checksum: checksum3 = false } = options;
|
|
1520
2119
|
const value = cursor.readBytes(32);
|
|
1521
|
-
const wrap = (
|
|
2120
|
+
const wrap = (address) => checksum3 ? checksum2(address) : address;
|
|
1522
2121
|
return [wrap(fromBytes(slice2(value, -20))), 32];
|
|
1523
2122
|
}
|
|
1524
2123
|
function decodeArray(cursor, param, options) {
|
|
@@ -1687,7 +2286,7 @@ function prepareParameter({ checksumAddress = false, parameter: parameter_, valu
|
|
|
1687
2286
|
}
|
|
1688
2287
|
if (parameter.type.startsWith("uint") || parameter.type.startsWith("int")) {
|
|
1689
2288
|
const signed = parameter.type.startsWith("int");
|
|
1690
|
-
const [, , size3 = "256"] =
|
|
2289
|
+
const [, , size3 = "256"] = integerRegex2.exec(parameter.type) ?? [];
|
|
1691
2290
|
return encodeNumber(value, {
|
|
1692
2291
|
signed,
|
|
1693
2292
|
size: Number(size3)
|
|
@@ -2143,9 +2742,9 @@ function encodePacked(types, values) {
|
|
|
2143
2742
|
(function(encodePacked2) {
|
|
2144
2743
|
function encode4(type, value, isArray = false) {
|
|
2145
2744
|
if (type === "address") {
|
|
2146
|
-
const
|
|
2147
|
-
assert4(
|
|
2148
|
-
return padLeft(
|
|
2745
|
+
const address = value;
|
|
2746
|
+
assert4(address);
|
|
2747
|
+
return padLeft(address.toLowerCase(), isArray ? 32 : 0);
|
|
2149
2748
|
}
|
|
2150
2749
|
if (type === "string")
|
|
2151
2750
|
return fromString(value);
|
|
@@ -2153,7 +2752,7 @@ function encodePacked(types, values) {
|
|
|
2153
2752
|
return value;
|
|
2154
2753
|
if (type === "bool")
|
|
2155
2754
|
return padLeft(fromBoolean(value), isArray ? 32 : 1);
|
|
2156
|
-
const intMatch = type.match(
|
|
2755
|
+
const intMatch = type.match(integerRegex2);
|
|
2157
2756
|
if (intMatch) {
|
|
2158
2757
|
const [_type, baseType, bits = "256"] = intMatch;
|
|
2159
2758
|
const size3 = Number.parseInt(bits, 10) / 8;
|
|
@@ -2162,7 +2761,7 @@ function encodePacked(types, values) {
|
|
|
2162
2761
|
signed: baseType === "int"
|
|
2163
2762
|
});
|
|
2164
2763
|
}
|
|
2165
|
-
const bytesMatch = type.match(
|
|
2764
|
+
const bytesMatch = type.match(bytesRegex2);
|
|
2166
2765
|
if (bytesMatch) {
|
|
2167
2766
|
const [_type, size3] = bytesMatch;
|
|
2168
2767
|
if (Number.parseInt(size3, 10) !== (value.length - 2) / 2)
|
|
@@ -2296,17 +2895,17 @@ __export(Signature_exports, {
|
|
|
2296
2895
|
assert: () => assert5,
|
|
2297
2896
|
extract: () => extract,
|
|
2298
2897
|
from: () => from6,
|
|
2299
|
-
fromBytes: () =>
|
|
2898
|
+
fromBytes: () => fromBytes4,
|
|
2300
2899
|
fromDerBytes: () => fromDerBytes,
|
|
2301
2900
|
fromDerHex: () => fromDerHex,
|
|
2302
|
-
fromHex: () =>
|
|
2901
|
+
fromHex: () => fromHex4,
|
|
2303
2902
|
fromLegacy: () => fromLegacy,
|
|
2304
2903
|
fromRpc: () => fromRpc,
|
|
2305
2904
|
fromTuple: () => fromTuple,
|
|
2306
|
-
toBytes: () =>
|
|
2905
|
+
toBytes: () => toBytes4,
|
|
2307
2906
|
toDerBytes: () => toDerBytes,
|
|
2308
2907
|
toDerHex: () => toDerHex,
|
|
2309
|
-
toHex: () =>
|
|
2908
|
+
toHex: () => toHex4,
|
|
2310
2909
|
toLegacy: () => toLegacy,
|
|
2311
2910
|
toRpc: () => toRpc,
|
|
2312
2911
|
toTuple: () => toTuple,
|
|
@@ -2314,31 +2913,31 @@ __export(Signature_exports, {
|
|
|
2314
2913
|
validate: () => validate4,
|
|
2315
2914
|
yParityToV: () => yParityToV
|
|
2316
2915
|
});
|
|
2317
|
-
function assert5(
|
|
2916
|
+
function assert5(signature, options = {}) {
|
|
2318
2917
|
const { recovered } = options;
|
|
2319
|
-
if (typeof
|
|
2320
|
-
throw new MissingPropertiesError({ signature
|
|
2321
|
-
if (typeof
|
|
2322
|
-
throw new MissingPropertiesError({ signature
|
|
2323
|
-
if (recovered && typeof
|
|
2324
|
-
throw new MissingPropertiesError({ signature
|
|
2325
|
-
if (
|
|
2326
|
-
throw new InvalidRError({ value:
|
|
2327
|
-
if (
|
|
2328
|
-
throw new InvalidSError({ value:
|
|
2329
|
-
if (typeof
|
|
2330
|
-
throw new InvalidYParityError({ value:
|
|
2331
|
-
}
|
|
2332
|
-
function
|
|
2333
|
-
return
|
|
2334
|
-
}
|
|
2335
|
-
function
|
|
2336
|
-
if (
|
|
2337
|
-
throw new InvalidSerializedSizeError2({ signature
|
|
2338
|
-
const r = BigInt(slice(
|
|
2339
|
-
const s = BigInt(slice(
|
|
2918
|
+
if (typeof signature.r === "undefined")
|
|
2919
|
+
throw new MissingPropertiesError({ signature });
|
|
2920
|
+
if (typeof signature.s === "undefined")
|
|
2921
|
+
throw new MissingPropertiesError({ signature });
|
|
2922
|
+
if (recovered && typeof signature.yParity === "undefined")
|
|
2923
|
+
throw new MissingPropertiesError({ signature });
|
|
2924
|
+
if (signature.r < 0n || signature.r > maxUint256)
|
|
2925
|
+
throw new InvalidRError({ value: signature.r });
|
|
2926
|
+
if (signature.s < 0n || signature.s > maxUint256)
|
|
2927
|
+
throw new InvalidSError({ value: signature.s });
|
|
2928
|
+
if (typeof signature.yParity === "number" && signature.yParity !== 0 && signature.yParity !== 1)
|
|
2929
|
+
throw new InvalidYParityError({ value: signature.yParity });
|
|
2930
|
+
}
|
|
2931
|
+
function fromBytes4(signature) {
|
|
2932
|
+
return fromHex4(fromBytes(signature));
|
|
2933
|
+
}
|
|
2934
|
+
function fromHex4(signature) {
|
|
2935
|
+
if (signature.length !== 130 && signature.length !== 132)
|
|
2936
|
+
throw new InvalidSerializedSizeError2({ signature });
|
|
2937
|
+
const r = BigInt(slice(signature, 0, 32));
|
|
2938
|
+
const s = BigInt(slice(signature, 32, 64));
|
|
2340
2939
|
const yParity = (() => {
|
|
2341
|
-
const yParity2 = Number(`0x${
|
|
2940
|
+
const yParity2 = Number(`0x${signature.slice(130)}`);
|
|
2342
2941
|
if (Number.isNaN(yParity2))
|
|
2343
2942
|
return void 0;
|
|
2344
2943
|
try {
|
|
@@ -2365,52 +2964,52 @@ function extract(value) {
|
|
|
2365
2964
|
return void 0;
|
|
2366
2965
|
return from6(value);
|
|
2367
2966
|
}
|
|
2368
|
-
function from6(
|
|
2967
|
+
function from6(signature) {
|
|
2369
2968
|
const signature_ = (() => {
|
|
2370
|
-
if (typeof
|
|
2371
|
-
return
|
|
2372
|
-
if (
|
|
2373
|
-
return
|
|
2374
|
-
if (typeof
|
|
2375
|
-
return fromRpc(
|
|
2376
|
-
if (
|
|
2377
|
-
return fromLegacy(
|
|
2969
|
+
if (typeof signature === "string")
|
|
2970
|
+
return fromHex4(signature);
|
|
2971
|
+
if (signature instanceof Uint8Array)
|
|
2972
|
+
return fromBytes4(signature);
|
|
2973
|
+
if (typeof signature.r === "string")
|
|
2974
|
+
return fromRpc(signature);
|
|
2975
|
+
if (signature.v)
|
|
2976
|
+
return fromLegacy(signature);
|
|
2378
2977
|
return {
|
|
2379
|
-
r:
|
|
2380
|
-
s:
|
|
2381
|
-
...typeof
|
|
2978
|
+
r: signature.r,
|
|
2979
|
+
s: signature.s,
|
|
2980
|
+
...typeof signature.yParity !== "undefined" ? { yParity: signature.yParity } : {}
|
|
2382
2981
|
};
|
|
2383
2982
|
})();
|
|
2384
2983
|
assert5(signature_);
|
|
2385
2984
|
return signature_;
|
|
2386
2985
|
}
|
|
2387
|
-
function fromDerBytes(
|
|
2388
|
-
return fromDerHex(fromBytes(
|
|
2986
|
+
function fromDerBytes(signature) {
|
|
2987
|
+
return fromDerHex(fromBytes(signature));
|
|
2389
2988
|
}
|
|
2390
|
-
function fromDerHex(
|
|
2391
|
-
const { r, s } = secp256k1.Signature.fromDER(from(
|
|
2989
|
+
function fromDerHex(signature) {
|
|
2990
|
+
const { r, s } = secp256k1.Signature.fromDER(from(signature).slice(2));
|
|
2392
2991
|
return { r, s };
|
|
2393
2992
|
}
|
|
2394
|
-
function fromLegacy(
|
|
2993
|
+
function fromLegacy(signature) {
|
|
2395
2994
|
return {
|
|
2396
|
-
r:
|
|
2397
|
-
s:
|
|
2398
|
-
yParity: vToYParity(
|
|
2995
|
+
r: signature.r,
|
|
2996
|
+
s: signature.s,
|
|
2997
|
+
yParity: vToYParity(signature.v)
|
|
2399
2998
|
};
|
|
2400
2999
|
}
|
|
2401
|
-
function fromRpc(
|
|
3000
|
+
function fromRpc(signature) {
|
|
2402
3001
|
const yParity = (() => {
|
|
2403
|
-
const v =
|
|
2404
|
-
let yParity2 =
|
|
3002
|
+
const v = signature.v ? Number(signature.v) : void 0;
|
|
3003
|
+
let yParity2 = signature.yParity ? Number(signature.yParity) : void 0;
|
|
2405
3004
|
if (typeof v === "number" && typeof yParity2 !== "number")
|
|
2406
3005
|
yParity2 = vToYParity(v);
|
|
2407
3006
|
if (typeof yParity2 !== "number")
|
|
2408
|
-
throw new InvalidYParityError({ value:
|
|
3007
|
+
throw new InvalidYParityError({ value: signature.yParity });
|
|
2409
3008
|
return yParity2;
|
|
2410
3009
|
})();
|
|
2411
3010
|
return {
|
|
2412
|
-
r: BigInt(
|
|
2413
|
-
s: BigInt(
|
|
3011
|
+
r: BigInt(signature.r),
|
|
3012
|
+
s: BigInt(signature.s),
|
|
2414
3013
|
yParity
|
|
2415
3014
|
};
|
|
2416
3015
|
}
|
|
@@ -2422,55 +3021,55 @@ function fromTuple(tuple2) {
|
|
|
2422
3021
|
yParity: yParity === "0x" ? 0 : Number(yParity)
|
|
2423
3022
|
});
|
|
2424
3023
|
}
|
|
2425
|
-
function
|
|
2426
|
-
return fromHex(
|
|
3024
|
+
function toBytes4(signature) {
|
|
3025
|
+
return fromHex(toHex4(signature));
|
|
2427
3026
|
}
|
|
2428
|
-
function
|
|
2429
|
-
assert5(
|
|
2430
|
-
const r =
|
|
2431
|
-
const s =
|
|
3027
|
+
function toHex4(signature) {
|
|
3028
|
+
assert5(signature);
|
|
3029
|
+
const r = signature.r;
|
|
3030
|
+
const s = signature.s;
|
|
2432
3031
|
const signature_ = concat(
|
|
2433
3032
|
fromNumber(r, { size: 32 }),
|
|
2434
3033
|
fromNumber(s, { size: 32 }),
|
|
2435
3034
|
// If the signature is recovered, add the recovery byte to the signature.
|
|
2436
|
-
typeof
|
|
3035
|
+
typeof signature.yParity === "number" ? fromNumber(yParityToV(signature.yParity), { size: 1 }) : "0x"
|
|
2437
3036
|
);
|
|
2438
3037
|
return signature_;
|
|
2439
3038
|
}
|
|
2440
|
-
function toDerBytes(
|
|
2441
|
-
const sig = new secp256k1.Signature(
|
|
3039
|
+
function toDerBytes(signature) {
|
|
3040
|
+
const sig = new secp256k1.Signature(signature.r, signature.s);
|
|
2442
3041
|
return sig.toDERRawBytes();
|
|
2443
3042
|
}
|
|
2444
|
-
function toDerHex(
|
|
2445
|
-
const sig = new secp256k1.Signature(
|
|
3043
|
+
function toDerHex(signature) {
|
|
3044
|
+
const sig = new secp256k1.Signature(signature.r, signature.s);
|
|
2446
3045
|
return `0x${sig.toDERHex()}`;
|
|
2447
3046
|
}
|
|
2448
|
-
function toLegacy(
|
|
3047
|
+
function toLegacy(signature) {
|
|
2449
3048
|
return {
|
|
2450
|
-
r:
|
|
2451
|
-
s:
|
|
2452
|
-
v: yParityToV(
|
|
3049
|
+
r: signature.r,
|
|
3050
|
+
s: signature.s,
|
|
3051
|
+
v: yParityToV(signature.yParity)
|
|
2453
3052
|
};
|
|
2454
3053
|
}
|
|
2455
|
-
function toRpc(
|
|
2456
|
-
const { r, s, yParity } =
|
|
3054
|
+
function toRpc(signature) {
|
|
3055
|
+
const { r, s, yParity } = signature;
|
|
2457
3056
|
return {
|
|
2458
3057
|
r: fromNumber(r, { size: 32 }),
|
|
2459
3058
|
s: fromNumber(s, { size: 32 }),
|
|
2460
3059
|
yParity: yParity === 0 ? "0x0" : "0x1"
|
|
2461
3060
|
};
|
|
2462
3061
|
}
|
|
2463
|
-
function toTuple(
|
|
2464
|
-
const { r, s, yParity } =
|
|
3062
|
+
function toTuple(signature) {
|
|
3063
|
+
const { r, s, yParity } = signature;
|
|
2465
3064
|
return [
|
|
2466
3065
|
yParity ? "0x01" : "0x",
|
|
2467
3066
|
r === 0n ? "0x" : trimLeft(fromNumber(r)),
|
|
2468
3067
|
s === 0n ? "0x" : trimLeft(fromNumber(s))
|
|
2469
3068
|
];
|
|
2470
3069
|
}
|
|
2471
|
-
function validate4(
|
|
3070
|
+
function validate4(signature, options = {}) {
|
|
2472
3071
|
try {
|
|
2473
|
-
assert5(
|
|
3072
|
+
assert5(signature, options);
|
|
2474
3073
|
return true;
|
|
2475
3074
|
} catch {
|
|
2476
3075
|
return false;
|
|
@@ -2493,11 +3092,11 @@ function yParityToV(yParity) {
|
|
|
2493
3092
|
throw new InvalidYParityError({ value: yParity });
|
|
2494
3093
|
}
|
|
2495
3094
|
var InvalidSerializedSizeError2 = class extends BaseError {
|
|
2496
|
-
constructor({ signature
|
|
2497
|
-
super(`Value \`${
|
|
3095
|
+
constructor({ signature }) {
|
|
3096
|
+
super(`Value \`${signature}\` is an invalid signature size.`, {
|
|
2498
3097
|
metaMessages: [
|
|
2499
3098
|
"Expected: 64 bytes or 65 bytes.",
|
|
2500
|
-
`Received ${size2(from(
|
|
3099
|
+
`Received ${size2(from(signature))} bytes.`
|
|
2501
3100
|
]
|
|
2502
3101
|
});
|
|
2503
3102
|
Object.defineProperty(this, "name", {
|
|
@@ -2509,8 +3108,8 @@ var InvalidSerializedSizeError2 = class extends BaseError {
|
|
|
2509
3108
|
}
|
|
2510
3109
|
};
|
|
2511
3110
|
var MissingPropertiesError = class extends BaseError {
|
|
2512
|
-
constructor({ signature
|
|
2513
|
-
super(`Signature \`${stringify(
|
|
3111
|
+
constructor({ signature }) {
|
|
3112
|
+
super(`Signature \`${stringify(signature)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`);
|
|
2514
3113
|
Object.defineProperty(this, "name", {
|
|
2515
3114
|
enumerable: true,
|
|
2516
3115
|
configurable: true,
|
|
@@ -2564,89 +3163,22 @@ var InvalidVError = class extends BaseError {
|
|
|
2564
3163
|
}
|
|
2565
3164
|
};
|
|
2566
3165
|
|
|
2567
|
-
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Base64.js
|
|
2568
|
-
var Base64_exports = {};
|
|
2569
|
-
__export(Base64_exports, {
|
|
2570
|
-
fromBytes: () => fromBytes4,
|
|
2571
|
-
fromHex: () => fromHex4,
|
|
2572
|
-
fromString: () => fromString3,
|
|
2573
|
-
toBytes: () => toBytes4,
|
|
2574
|
-
toHex: () => toHex4,
|
|
2575
|
-
toString: () => toString3
|
|
2576
|
-
});
|
|
2577
|
-
var encoder3 = /* @__PURE__ */ new TextEncoder();
|
|
2578
|
-
var decoder2 = /* @__PURE__ */ new TextDecoder();
|
|
2579
|
-
var integerToCharacter = /* @__PURE__ */ Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((a, i) => [i, a.charCodeAt(0)]));
|
|
2580
|
-
var characterToInteger = {
|
|
2581
|
-
...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((a, i) => [a.charCodeAt(0), i])),
|
|
2582
|
-
["=".charCodeAt(0)]: 0,
|
|
2583
|
-
["-".charCodeAt(0)]: 62,
|
|
2584
|
-
["_".charCodeAt(0)]: 63
|
|
2585
|
-
};
|
|
2586
|
-
function fromBytes4(value, options = {}) {
|
|
2587
|
-
const { pad: pad3 = true, url: url2 = false } = options;
|
|
2588
|
-
const encoded = new Uint8Array(Math.ceil(value.length / 3) * 4);
|
|
2589
|
-
for (let i = 0, j = 0; j < value.length; i += 4, j += 3) {
|
|
2590
|
-
const y = (value[j] << 16) + (value[j + 1] << 8) + (value[j + 2] | 0);
|
|
2591
|
-
encoded[i] = integerToCharacter[y >> 18];
|
|
2592
|
-
encoded[i + 1] = integerToCharacter[y >> 12 & 63];
|
|
2593
|
-
encoded[i + 2] = integerToCharacter[y >> 6 & 63];
|
|
2594
|
-
encoded[i + 3] = integerToCharacter[y & 63];
|
|
2595
|
-
}
|
|
2596
|
-
const k = value.length % 3;
|
|
2597
|
-
const end = Math.floor(value.length / 3) * 4 + (k && k + 1);
|
|
2598
|
-
let base643 = decoder2.decode(new Uint8Array(encoded.buffer, 0, end));
|
|
2599
|
-
if (pad3 && k === 1)
|
|
2600
|
-
base643 += "==";
|
|
2601
|
-
if (pad3 && k === 2)
|
|
2602
|
-
base643 += "=";
|
|
2603
|
-
if (url2)
|
|
2604
|
-
base643 = base643.replaceAll("+", "-").replaceAll("/", "_");
|
|
2605
|
-
return base643;
|
|
2606
|
-
}
|
|
2607
|
-
function fromHex4(value, options = {}) {
|
|
2608
|
-
return fromBytes4(fromHex(value), options);
|
|
2609
|
-
}
|
|
2610
|
-
function fromString3(value, options = {}) {
|
|
2611
|
-
return fromBytes4(fromString2(value), options);
|
|
2612
|
-
}
|
|
2613
|
-
function toBytes4(value) {
|
|
2614
|
-
const base643 = value.replace(/=+$/, "");
|
|
2615
|
-
const size3 = base643.length;
|
|
2616
|
-
const decoded = new Uint8Array(size3 + 3);
|
|
2617
|
-
encoder3.encodeInto(base643 + "===", decoded);
|
|
2618
|
-
for (let i = 0, j = 0; i < base643.length; i += 4, j += 3) {
|
|
2619
|
-
const x = (characterToInteger[decoded[i]] << 18) + (characterToInteger[decoded[i + 1]] << 12) + (characterToInteger[decoded[i + 2]] << 6) + characterToInteger[decoded[i + 3]];
|
|
2620
|
-
decoded[j] = x >> 16;
|
|
2621
|
-
decoded[j + 1] = x >> 8 & 255;
|
|
2622
|
-
decoded[j + 2] = x & 255;
|
|
2623
|
-
}
|
|
2624
|
-
const decodedSize = (size3 >> 2) * 3 + (size3 % 4 && size3 % 4 - 1);
|
|
2625
|
-
return new Uint8Array(decoded.buffer, 0, decodedSize);
|
|
2626
|
-
}
|
|
2627
|
-
function toHex4(value) {
|
|
2628
|
-
return fromBytes(toBytes4(value));
|
|
2629
|
-
}
|
|
2630
|
-
function toString3(value) {
|
|
2631
|
-
return toString2(toBytes4(value));
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
3166
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/Secp256k1.js
|
|
2635
3167
|
function recoverAddress(options) {
|
|
2636
3168
|
return fromPublicKey(recoverPublicKey(options));
|
|
2637
3169
|
}
|
|
2638
3170
|
function recoverPublicKey(options) {
|
|
2639
|
-
const { payload, signature
|
|
2640
|
-
const { r, s, yParity } =
|
|
3171
|
+
const { payload, signature } = options;
|
|
3172
|
+
const { r, s, yParity } = signature;
|
|
2641
3173
|
const signature_ = new secp256k1.Signature(BigInt(r), BigInt(s)).addRecoveryBit(yParity);
|
|
2642
3174
|
const point = signature_.recoverPublicKey(from(payload).substring(2));
|
|
2643
3175
|
return from3(point);
|
|
2644
3176
|
}
|
|
2645
3177
|
function verify(options) {
|
|
2646
|
-
const { address
|
|
2647
|
-
if (
|
|
2648
|
-
return isEqual3(
|
|
2649
|
-
return secp256k1.verify(
|
|
3178
|
+
const { address, hash: hash2, payload, publicKey, signature } = options;
|
|
3179
|
+
if (address)
|
|
3180
|
+
return isEqual3(address, recoverAddress({ payload, signature }));
|
|
3181
|
+
return secp256k1.verify(signature, from2(payload), toBytes3(publicKey), ...hash2 ? [{ prehash: true, lowS: true }] : []);
|
|
2650
3182
|
}
|
|
2651
3183
|
|
|
2652
3184
|
// ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/nist.js
|
|
@@ -2697,13 +3229,13 @@ var secp256r1 = p256;
|
|
|
2697
3229
|
|
|
2698
3230
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/core/P256.js
|
|
2699
3231
|
function verify2(options) {
|
|
2700
|
-
const { hash:
|
|
2701
|
-
return secp256r1.verify(
|
|
3232
|
+
const { hash: hash2, payload, publicKey, signature } = options;
|
|
3233
|
+
return secp256r1.verify(signature, payload instanceof Uint8Array ? payload : fromHex(payload), toHex3(publicKey).substring(2), { lowS: true, ...hash2 ? { prehash: true } : {} });
|
|
2702
3234
|
}
|
|
2703
3235
|
|
|
2704
3236
|
// ../../node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.4.3/node_modules/ox/_esm/webauthn/Authentication.js
|
|
2705
3237
|
function verify3(options) {
|
|
2706
|
-
const { challenge, metadata, origin, publicKey, rpId, signature
|
|
3238
|
+
const { challenge, metadata, origin, publicKey, rpId, signature } = options;
|
|
2707
3239
|
const { authenticatorData, clientDataJSON, userVerificationRequired } = metadata;
|
|
2708
3240
|
const authenticatorDataBytes = fromHex(authenticatorData);
|
|
2709
3241
|
if (authenticatorDataBytes.length < 37)
|
|
@@ -2724,7 +3256,7 @@ function verify3(options) {
|
|
|
2724
3256
|
const clientData = JSON.parse(clientDataJSON);
|
|
2725
3257
|
if (clientData.type !== "webauthn.get")
|
|
2726
3258
|
return false;
|
|
2727
|
-
if (!clientData.challenge || fromBytes(
|
|
3259
|
+
if (!clientData.challenge || fromBytes(toBytes2(clientData.challenge)) !== challenge)
|
|
2728
3260
|
return false;
|
|
2729
3261
|
if (origin !== void 0) {
|
|
2730
3262
|
const origins = Array.isArray(origin) ? origin : [origin];
|
|
@@ -2739,7 +3271,7 @@ function verify3(options) {
|
|
|
2739
3271
|
hash: true,
|
|
2740
3272
|
payload,
|
|
2741
3273
|
publicKey,
|
|
2742
|
-
signature
|
|
3274
|
+
signature
|
|
2743
3275
|
});
|
|
2744
3276
|
}
|
|
2745
3277
|
|
|
@@ -2748,889 +3280,103 @@ function verify4(options) {
|
|
|
2748
3280
|
return verify3(options);
|
|
2749
3281
|
}
|
|
2750
3282
|
|
|
2751
|
-
// ../../node_modules/.pnpm/
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
}
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
3283
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
3284
|
+
var _a;
|
|
3285
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
3286
|
+
status: "aborted"
|
|
3287
|
+
});
|
|
3288
|
+
// @__NO_SIDE_EFFECTS__
|
|
3289
|
+
function $constructor(name, initializer2, params) {
|
|
3290
|
+
function init(inst, def) {
|
|
3291
|
+
if (!inst._zod) {
|
|
3292
|
+
Object.defineProperty(inst, "_zod", {
|
|
3293
|
+
value: {
|
|
3294
|
+
def,
|
|
3295
|
+
constr: _,
|
|
3296
|
+
traits: /* @__PURE__ */ new Set()
|
|
3297
|
+
},
|
|
3298
|
+
enumerable: false
|
|
3299
|
+
});
|
|
3300
|
+
}
|
|
3301
|
+
if (inst._zod.traits.has(name)) {
|
|
3302
|
+
return;
|
|
3303
|
+
}
|
|
3304
|
+
inst._zod.traits.add(name);
|
|
3305
|
+
initializer2(inst, def);
|
|
3306
|
+
const proto = _.prototype;
|
|
3307
|
+
const keys = Object.keys(proto);
|
|
3308
|
+
for (let i = 0; i < keys.length; i++) {
|
|
3309
|
+
const k = keys[i];
|
|
3310
|
+
if (!(k in inst)) {
|
|
3311
|
+
inst[k] = proto[k].bind(inst);
|
|
3312
|
+
}
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
const Parent = params?.Parent ?? Object;
|
|
3316
|
+
class Definition extends Parent {
|
|
3317
|
+
}
|
|
3318
|
+
Object.defineProperty(Definition, "name", { value: name });
|
|
3319
|
+
function _(def) {
|
|
3320
|
+
var _a3;
|
|
3321
|
+
const inst = params?.Parent ? new Definition() : this;
|
|
3322
|
+
init(inst, def);
|
|
3323
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
3324
|
+
for (const fn of inst._zod.deferred) {
|
|
3325
|
+
fn();
|
|
3326
|
+
}
|
|
3327
|
+
return inst;
|
|
3328
|
+
}
|
|
3329
|
+
Object.defineProperty(_, "init", { value: init });
|
|
3330
|
+
Object.defineProperty(_, Symbol.hasInstance, {
|
|
3331
|
+
value: (inst) => {
|
|
3332
|
+
if (params?.Parent && inst instanceof params.Parent)
|
|
3333
|
+
return true;
|
|
3334
|
+
return inst?._zod?.traits?.has(name);
|
|
3335
|
+
}
|
|
3336
|
+
});
|
|
3337
|
+
Object.defineProperty(_, "name", { value: name });
|
|
3338
|
+
return _;
|
|
2761
3339
|
}
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
3340
|
+
var $brand = /* @__PURE__ */ Symbol("zod_brand");
|
|
3341
|
+
var $ZodAsyncError = class extends Error {
|
|
3342
|
+
constructor() {
|
|
3343
|
+
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
3344
|
+
}
|
|
3345
|
+
};
|
|
3346
|
+
var $ZodEncodeError = class extends Error {
|
|
3347
|
+
constructor(name) {
|
|
3348
|
+
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
3349
|
+
this.name = "ZodEncodeError";
|
|
3350
|
+
}
|
|
3351
|
+
};
|
|
3352
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
3353
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
3354
|
+
function config(newConfig) {
|
|
3355
|
+
if (newConfig)
|
|
3356
|
+
Object.assign(globalConfig, newConfig);
|
|
3357
|
+
return globalConfig;
|
|
2765
3358
|
}
|
|
2766
3359
|
|
|
2767
|
-
// ../../node_modules/.pnpm/
|
|
2768
|
-
var
|
|
2769
|
-
__export(
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
ZodMiniCodec: () => ZodMiniCodec,
|
|
2788
|
-
ZodMiniCustom: () => ZodMiniCustom,
|
|
2789
|
-
ZodMiniCustomStringFormat: () => ZodMiniCustomStringFormat,
|
|
2790
|
-
ZodMiniDate: () => ZodMiniDate,
|
|
2791
|
-
ZodMiniDefault: () => ZodMiniDefault,
|
|
2792
|
-
ZodMiniDiscriminatedUnion: () => ZodMiniDiscriminatedUnion,
|
|
2793
|
-
ZodMiniE164: () => ZodMiniE164,
|
|
2794
|
-
ZodMiniEmail: () => ZodMiniEmail,
|
|
2795
|
-
ZodMiniEmoji: () => ZodMiniEmoji,
|
|
2796
|
-
ZodMiniEnum: () => ZodMiniEnum,
|
|
2797
|
-
ZodMiniExactOptional: () => ZodMiniExactOptional,
|
|
2798
|
-
ZodMiniFile: () => ZodMiniFile,
|
|
2799
|
-
ZodMiniFunction: () => ZodMiniFunction,
|
|
2800
|
-
ZodMiniGUID: () => ZodMiniGUID,
|
|
2801
|
-
ZodMiniIPv4: () => ZodMiniIPv4,
|
|
2802
|
-
ZodMiniIPv6: () => ZodMiniIPv6,
|
|
2803
|
-
ZodMiniISODate: () => ZodMiniISODate,
|
|
2804
|
-
ZodMiniISODateTime: () => ZodMiniISODateTime,
|
|
2805
|
-
ZodMiniISODuration: () => ZodMiniISODuration,
|
|
2806
|
-
ZodMiniISOTime: () => ZodMiniISOTime,
|
|
2807
|
-
ZodMiniIntersection: () => ZodMiniIntersection,
|
|
2808
|
-
ZodMiniJWT: () => ZodMiniJWT,
|
|
2809
|
-
ZodMiniKSUID: () => ZodMiniKSUID,
|
|
2810
|
-
ZodMiniLazy: () => ZodMiniLazy,
|
|
2811
|
-
ZodMiniLiteral: () => ZodMiniLiteral,
|
|
2812
|
-
ZodMiniMAC: () => ZodMiniMAC,
|
|
2813
|
-
ZodMiniMap: () => ZodMiniMap,
|
|
2814
|
-
ZodMiniNaN: () => ZodMiniNaN,
|
|
2815
|
-
ZodMiniNanoID: () => ZodMiniNanoID,
|
|
2816
|
-
ZodMiniNever: () => ZodMiniNever,
|
|
2817
|
-
ZodMiniNonOptional: () => ZodMiniNonOptional,
|
|
2818
|
-
ZodMiniNull: () => ZodMiniNull,
|
|
2819
|
-
ZodMiniNullable: () => ZodMiniNullable,
|
|
2820
|
-
ZodMiniNumber: () => ZodMiniNumber,
|
|
2821
|
-
ZodMiniNumberFormat: () => ZodMiniNumberFormat,
|
|
2822
|
-
ZodMiniObject: () => ZodMiniObject,
|
|
2823
|
-
ZodMiniOptional: () => ZodMiniOptional,
|
|
2824
|
-
ZodMiniPipe: () => ZodMiniPipe,
|
|
2825
|
-
ZodMiniPrefault: () => ZodMiniPrefault,
|
|
2826
|
-
ZodMiniPromise: () => ZodMiniPromise,
|
|
2827
|
-
ZodMiniReadonly: () => ZodMiniReadonly,
|
|
2828
|
-
ZodMiniRecord: () => ZodMiniRecord,
|
|
2829
|
-
ZodMiniSet: () => ZodMiniSet,
|
|
2830
|
-
ZodMiniString: () => ZodMiniString,
|
|
2831
|
-
ZodMiniStringFormat: () => ZodMiniStringFormat,
|
|
2832
|
-
ZodMiniSuccess: () => ZodMiniSuccess,
|
|
2833
|
-
ZodMiniSymbol: () => ZodMiniSymbol,
|
|
2834
|
-
ZodMiniTemplateLiteral: () => ZodMiniTemplateLiteral,
|
|
2835
|
-
ZodMiniTransform: () => ZodMiniTransform,
|
|
2836
|
-
ZodMiniTuple: () => ZodMiniTuple,
|
|
2837
|
-
ZodMiniType: () => ZodMiniType,
|
|
2838
|
-
ZodMiniULID: () => ZodMiniULID,
|
|
2839
|
-
ZodMiniURL: () => ZodMiniURL,
|
|
2840
|
-
ZodMiniUUID: () => ZodMiniUUID,
|
|
2841
|
-
ZodMiniUndefined: () => ZodMiniUndefined,
|
|
2842
|
-
ZodMiniUnion: () => ZodMiniUnion,
|
|
2843
|
-
ZodMiniUnknown: () => ZodMiniUnknown,
|
|
2844
|
-
ZodMiniVoid: () => ZodMiniVoid,
|
|
2845
|
-
ZodMiniXID: () => ZodMiniXID,
|
|
2846
|
-
ZodMiniXor: () => ZodMiniXor,
|
|
2847
|
-
_default: () => _default2,
|
|
2848
|
-
_function: () => _function,
|
|
2849
|
-
address: () => address,
|
|
2850
|
-
amount: () => amount,
|
|
2851
|
-
any: () => any,
|
|
2852
|
-
array: () => array,
|
|
2853
|
-
base64: () => base642,
|
|
2854
|
-
base64url: () => base64url2,
|
|
2855
|
-
bigint: () => bigint2,
|
|
2856
|
-
boolean: () => boolean2,
|
|
2857
|
-
catch: () => _catch2,
|
|
2858
|
-
catchall: () => catchall,
|
|
2859
|
-
check: () => check,
|
|
2860
|
-
cidrv4: () => cidrv42,
|
|
2861
|
-
cidrv6: () => cidrv62,
|
|
2862
|
-
clone: () => clone,
|
|
2863
|
-
codec: () => codec,
|
|
2864
|
-
coerce: () => coerce_exports,
|
|
2865
|
-
config: () => config,
|
|
2866
|
-
core: () => core_exports2,
|
|
2867
|
-
cuid: () => cuid3,
|
|
2868
|
-
cuid2: () => cuid22,
|
|
2869
|
-
custom: () => custom,
|
|
2870
|
-
date: () => date2,
|
|
2871
|
-
datetime: () => datetime3,
|
|
2872
|
-
decode: () => decode2,
|
|
2873
|
-
decodeAsync: () => decodeAsync,
|
|
2874
|
-
describe: () => describe2,
|
|
2875
|
-
discriminatedUnion: () => discriminatedUnion,
|
|
2876
|
-
e164: () => e1642,
|
|
2877
|
-
email: () => email2,
|
|
2878
|
-
emoji: () => emoji2,
|
|
2879
|
-
encode: () => encode3,
|
|
2880
|
-
encodeAsync: () => encodeAsync,
|
|
2881
|
-
endsWith: () => _endsWith,
|
|
2882
|
-
enum: () => _enum2,
|
|
2883
|
-
exactOptional: () => exactOptional,
|
|
2884
|
-
extend: () => extend2,
|
|
2885
|
-
file: () => file,
|
|
2886
|
-
flattenError: () => flattenError,
|
|
2887
|
-
float32: () => float32,
|
|
2888
|
-
float64: () => float64,
|
|
2889
|
-
formatError: () => formatError,
|
|
2890
|
-
function: () => _function,
|
|
2891
|
-
globalRegistry: () => globalRegistry,
|
|
2892
|
-
gt: () => _gt,
|
|
2893
|
-
gte: () => _gte,
|
|
2894
|
-
guid: () => guid2,
|
|
2895
|
-
hash: () => hash2,
|
|
2896
|
-
hex: () => hex2,
|
|
2897
|
-
hostname: () => hostname2,
|
|
2898
|
-
httpUrl: () => httpUrl,
|
|
2899
|
-
includes: () => _includes,
|
|
2900
|
-
instanceof: () => _instanceof,
|
|
2901
|
-
int: () => int,
|
|
2902
|
-
int32: () => int32,
|
|
2903
|
-
int64: () => int64,
|
|
2904
|
-
intersection: () => intersection,
|
|
2905
|
-
invertCodec: () => invertCodec,
|
|
2906
|
-
ipv4: () => ipv42,
|
|
2907
|
-
ipv6: () => ipv62,
|
|
2908
|
-
iso: () => iso_exports,
|
|
2909
|
-
json: () => json,
|
|
2910
|
-
jwt: () => jwt,
|
|
2911
|
-
keyof: () => keyof,
|
|
2912
|
-
ksuid: () => ksuid2,
|
|
2913
|
-
lazy: () => _lazy2,
|
|
2914
|
-
length: () => _length,
|
|
2915
|
-
literal: () => literal,
|
|
2916
|
-
locales: () => locales_exports,
|
|
2917
|
-
looseObject: () => looseObject,
|
|
2918
|
-
looseRecord: () => looseRecord,
|
|
2919
|
-
lowercase: () => _lowercase,
|
|
2920
|
-
lt: () => _lt,
|
|
2921
|
-
lte: () => _lte,
|
|
2922
|
-
mac: () => mac2,
|
|
2923
|
-
map: () => map,
|
|
2924
|
-
maxLength: () => _maxLength,
|
|
2925
|
-
maxSize: () => _maxSize,
|
|
2926
|
-
maximum: () => _lte,
|
|
2927
|
-
merge: () => merge2,
|
|
2928
|
-
meta: () => meta2,
|
|
2929
|
-
mime: () => _mime,
|
|
2930
|
-
minLength: () => _minLength,
|
|
2931
|
-
minSize: () => _minSize,
|
|
2932
|
-
minimum: () => _gte,
|
|
2933
|
-
multipleOf: () => _multipleOf,
|
|
2934
|
-
nan: () => nan,
|
|
2935
|
-
nanoid: () => nanoid2,
|
|
2936
|
-
nativeEnum: () => nativeEnum,
|
|
2937
|
-
negative: () => _negative,
|
|
2938
|
-
never: () => never,
|
|
2939
|
-
nonnegative: () => _nonnegative,
|
|
2940
|
-
nonoptional: () => nonoptional,
|
|
2941
|
-
nonpositive: () => _nonpositive,
|
|
2942
|
-
normalize: () => _normalize,
|
|
2943
|
-
null: () => _null3,
|
|
2944
|
-
nullable: () => nullable,
|
|
2945
|
-
nullish: () => nullish2,
|
|
2946
|
-
number: () => number2,
|
|
2947
|
-
object: () => object,
|
|
2948
|
-
omit: () => omit2,
|
|
2949
|
-
optional: () => optional,
|
|
2950
|
-
overwrite: () => _overwrite,
|
|
2951
|
-
parse: () => parse2,
|
|
2952
|
-
parseAsync: () => parseAsync,
|
|
2953
|
-
partial: () => partial2,
|
|
2954
|
-
partialRecord: () => partialRecord,
|
|
2955
|
-
period: () => period,
|
|
2956
|
-
pick: () => pick2,
|
|
2957
|
-
pipe: () => pipe,
|
|
2958
|
-
positive: () => _positive,
|
|
2959
|
-
prefault: () => prefault,
|
|
2960
|
-
prettifyError: () => prettifyError,
|
|
2961
|
-
promise: () => promise,
|
|
2962
|
-
property: () => _property,
|
|
2963
|
-
readonly: () => readonly,
|
|
2964
|
-
record: () => record,
|
|
2965
|
-
refine: () => refine,
|
|
2966
|
-
regex: () => _regex,
|
|
2967
|
-
regexes: () => regexes_exports,
|
|
2968
|
-
registry: () => registry,
|
|
2969
|
-
required: () => required2,
|
|
2970
|
-
safeDecode: () => safeDecode,
|
|
2971
|
-
safeDecodeAsync: () => safeDecodeAsync,
|
|
2972
|
-
safeEncode: () => safeEncode,
|
|
2973
|
-
safeEncodeAsync: () => safeEncodeAsync,
|
|
2974
|
-
safeExtend: () => safeExtend2,
|
|
2975
|
-
safeParse: () => safeParse,
|
|
2976
|
-
safeParseAsync: () => safeParseAsync,
|
|
2977
|
-
set: () => set,
|
|
2978
|
-
signature: () => signature,
|
|
2979
|
-
size: () => _size,
|
|
2980
|
-
startsWith: () => _startsWith,
|
|
2981
|
-
strictObject: () => strictObject,
|
|
2982
|
-
string: () => string2,
|
|
2983
|
-
stringFormat: () => stringFormat,
|
|
2984
|
-
stringbool: () => stringbool,
|
|
2985
|
-
success: () => success,
|
|
2986
|
-
superRefine: () => superRefine,
|
|
2987
|
-
symbol: () => symbol,
|
|
2988
|
-
templateLiteral: () => templateLiteral,
|
|
2989
|
-
toJSONSchema: () => toJSONSchema,
|
|
2990
|
-
toLowerCase: () => _toLowerCase,
|
|
2991
|
-
toUpperCase: () => _toUpperCase,
|
|
2992
|
-
transform: () => transform,
|
|
2993
|
-
treeifyError: () => treeifyError,
|
|
2994
|
-
trim: () => _trim,
|
|
2995
|
-
tuple: () => tuple,
|
|
2996
|
-
uint32: () => uint32,
|
|
2997
|
-
uint64: () => uint64,
|
|
2998
|
-
ulid: () => ulid2,
|
|
2999
|
-
undefined: () => _undefined3,
|
|
3000
|
-
union: () => union,
|
|
3001
|
-
unknown: () => unknown,
|
|
3002
|
-
unwrapOptional: () => unwrapOptional,
|
|
3003
|
-
uppercase: () => _uppercase,
|
|
3004
|
-
url: () => url,
|
|
3005
|
-
util: () => util_exports,
|
|
3006
|
-
uuid: () => uuid2,
|
|
3007
|
-
uuidv4: () => uuidv4,
|
|
3008
|
-
uuidv6: () => uuidv6,
|
|
3009
|
-
uuidv7: () => uuidv7,
|
|
3010
|
-
void: () => _void2,
|
|
3011
|
-
xid: () => xid2,
|
|
3012
|
-
xor: () => xor,
|
|
3013
|
-
z: () => external_exports
|
|
3014
|
-
});
|
|
3015
|
-
|
|
3016
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
|
|
3017
|
-
var external_exports = {};
|
|
3018
|
-
__export(external_exports, {
|
|
3019
|
-
$brand: () => $brand,
|
|
3020
|
-
$input: () => $input,
|
|
3021
|
-
$output: () => $output,
|
|
3022
|
-
NEVER: () => NEVER,
|
|
3023
|
-
TimePrecision: () => TimePrecision,
|
|
3024
|
-
ZodMiniAny: () => ZodMiniAny,
|
|
3025
|
-
ZodMiniArray: () => ZodMiniArray,
|
|
3026
|
-
ZodMiniBase64: () => ZodMiniBase64,
|
|
3027
|
-
ZodMiniBase64URL: () => ZodMiniBase64URL,
|
|
3028
|
-
ZodMiniBigInt: () => ZodMiniBigInt,
|
|
3029
|
-
ZodMiniBigIntFormat: () => ZodMiniBigIntFormat,
|
|
3030
|
-
ZodMiniBoolean: () => ZodMiniBoolean,
|
|
3031
|
-
ZodMiniCIDRv4: () => ZodMiniCIDRv4,
|
|
3032
|
-
ZodMiniCIDRv6: () => ZodMiniCIDRv6,
|
|
3033
|
-
ZodMiniCUID: () => ZodMiniCUID,
|
|
3034
|
-
ZodMiniCUID2: () => ZodMiniCUID2,
|
|
3035
|
-
ZodMiniCatch: () => ZodMiniCatch,
|
|
3036
|
-
ZodMiniCodec: () => ZodMiniCodec,
|
|
3037
|
-
ZodMiniCustom: () => ZodMiniCustom,
|
|
3038
|
-
ZodMiniCustomStringFormat: () => ZodMiniCustomStringFormat,
|
|
3039
|
-
ZodMiniDate: () => ZodMiniDate,
|
|
3040
|
-
ZodMiniDefault: () => ZodMiniDefault,
|
|
3041
|
-
ZodMiniDiscriminatedUnion: () => ZodMiniDiscriminatedUnion,
|
|
3042
|
-
ZodMiniE164: () => ZodMiniE164,
|
|
3043
|
-
ZodMiniEmail: () => ZodMiniEmail,
|
|
3044
|
-
ZodMiniEmoji: () => ZodMiniEmoji,
|
|
3045
|
-
ZodMiniEnum: () => ZodMiniEnum,
|
|
3046
|
-
ZodMiniExactOptional: () => ZodMiniExactOptional,
|
|
3047
|
-
ZodMiniFile: () => ZodMiniFile,
|
|
3048
|
-
ZodMiniFunction: () => ZodMiniFunction,
|
|
3049
|
-
ZodMiniGUID: () => ZodMiniGUID,
|
|
3050
|
-
ZodMiniIPv4: () => ZodMiniIPv4,
|
|
3051
|
-
ZodMiniIPv6: () => ZodMiniIPv6,
|
|
3052
|
-
ZodMiniISODate: () => ZodMiniISODate,
|
|
3053
|
-
ZodMiniISODateTime: () => ZodMiniISODateTime,
|
|
3054
|
-
ZodMiniISODuration: () => ZodMiniISODuration,
|
|
3055
|
-
ZodMiniISOTime: () => ZodMiniISOTime,
|
|
3056
|
-
ZodMiniIntersection: () => ZodMiniIntersection,
|
|
3057
|
-
ZodMiniJWT: () => ZodMiniJWT,
|
|
3058
|
-
ZodMiniKSUID: () => ZodMiniKSUID,
|
|
3059
|
-
ZodMiniLazy: () => ZodMiniLazy,
|
|
3060
|
-
ZodMiniLiteral: () => ZodMiniLiteral,
|
|
3061
|
-
ZodMiniMAC: () => ZodMiniMAC,
|
|
3062
|
-
ZodMiniMap: () => ZodMiniMap,
|
|
3063
|
-
ZodMiniNaN: () => ZodMiniNaN,
|
|
3064
|
-
ZodMiniNanoID: () => ZodMiniNanoID,
|
|
3065
|
-
ZodMiniNever: () => ZodMiniNever,
|
|
3066
|
-
ZodMiniNonOptional: () => ZodMiniNonOptional,
|
|
3067
|
-
ZodMiniNull: () => ZodMiniNull,
|
|
3068
|
-
ZodMiniNullable: () => ZodMiniNullable,
|
|
3069
|
-
ZodMiniNumber: () => ZodMiniNumber,
|
|
3070
|
-
ZodMiniNumberFormat: () => ZodMiniNumberFormat,
|
|
3071
|
-
ZodMiniObject: () => ZodMiniObject,
|
|
3072
|
-
ZodMiniOptional: () => ZodMiniOptional,
|
|
3073
|
-
ZodMiniPipe: () => ZodMiniPipe,
|
|
3074
|
-
ZodMiniPrefault: () => ZodMiniPrefault,
|
|
3075
|
-
ZodMiniPromise: () => ZodMiniPromise,
|
|
3076
|
-
ZodMiniReadonly: () => ZodMiniReadonly,
|
|
3077
|
-
ZodMiniRecord: () => ZodMiniRecord,
|
|
3078
|
-
ZodMiniSet: () => ZodMiniSet,
|
|
3079
|
-
ZodMiniString: () => ZodMiniString,
|
|
3080
|
-
ZodMiniStringFormat: () => ZodMiniStringFormat,
|
|
3081
|
-
ZodMiniSuccess: () => ZodMiniSuccess,
|
|
3082
|
-
ZodMiniSymbol: () => ZodMiniSymbol,
|
|
3083
|
-
ZodMiniTemplateLiteral: () => ZodMiniTemplateLiteral,
|
|
3084
|
-
ZodMiniTransform: () => ZodMiniTransform,
|
|
3085
|
-
ZodMiniTuple: () => ZodMiniTuple,
|
|
3086
|
-
ZodMiniType: () => ZodMiniType,
|
|
3087
|
-
ZodMiniULID: () => ZodMiniULID,
|
|
3088
|
-
ZodMiniURL: () => ZodMiniURL,
|
|
3089
|
-
ZodMiniUUID: () => ZodMiniUUID,
|
|
3090
|
-
ZodMiniUndefined: () => ZodMiniUndefined,
|
|
3091
|
-
ZodMiniUnion: () => ZodMiniUnion,
|
|
3092
|
-
ZodMiniUnknown: () => ZodMiniUnknown,
|
|
3093
|
-
ZodMiniVoid: () => ZodMiniVoid,
|
|
3094
|
-
ZodMiniXID: () => ZodMiniXID,
|
|
3095
|
-
ZodMiniXor: () => ZodMiniXor,
|
|
3096
|
-
_default: () => _default2,
|
|
3097
|
-
_function: () => _function,
|
|
3098
|
-
any: () => any,
|
|
3099
|
-
array: () => array,
|
|
3100
|
-
base64: () => base642,
|
|
3101
|
-
base64url: () => base64url2,
|
|
3102
|
-
bigint: () => bigint2,
|
|
3103
|
-
boolean: () => boolean2,
|
|
3104
|
-
catch: () => _catch2,
|
|
3105
|
-
catchall: () => catchall,
|
|
3106
|
-
check: () => check,
|
|
3107
|
-
cidrv4: () => cidrv42,
|
|
3108
|
-
cidrv6: () => cidrv62,
|
|
3109
|
-
clone: () => clone,
|
|
3110
|
-
codec: () => codec,
|
|
3111
|
-
coerce: () => coerce_exports,
|
|
3112
|
-
config: () => config,
|
|
3113
|
-
core: () => core_exports2,
|
|
3114
|
-
cuid: () => cuid3,
|
|
3115
|
-
cuid2: () => cuid22,
|
|
3116
|
-
custom: () => custom,
|
|
3117
|
-
date: () => date2,
|
|
3118
|
-
decode: () => decode2,
|
|
3119
|
-
decodeAsync: () => decodeAsync,
|
|
3120
|
-
describe: () => describe2,
|
|
3121
|
-
discriminatedUnion: () => discriminatedUnion,
|
|
3122
|
-
e164: () => e1642,
|
|
3123
|
-
email: () => email2,
|
|
3124
|
-
emoji: () => emoji2,
|
|
3125
|
-
encode: () => encode3,
|
|
3126
|
-
encodeAsync: () => encodeAsync,
|
|
3127
|
-
endsWith: () => _endsWith,
|
|
3128
|
-
enum: () => _enum2,
|
|
3129
|
-
exactOptional: () => exactOptional,
|
|
3130
|
-
extend: () => extend2,
|
|
3131
|
-
file: () => file,
|
|
3132
|
-
flattenError: () => flattenError,
|
|
3133
|
-
float32: () => float32,
|
|
3134
|
-
float64: () => float64,
|
|
3135
|
-
formatError: () => formatError,
|
|
3136
|
-
function: () => _function,
|
|
3137
|
-
globalRegistry: () => globalRegistry,
|
|
3138
|
-
gt: () => _gt,
|
|
3139
|
-
gte: () => _gte,
|
|
3140
|
-
guid: () => guid2,
|
|
3141
|
-
hash: () => hash,
|
|
3142
|
-
hex: () => hex2,
|
|
3143
|
-
hostname: () => hostname2,
|
|
3144
|
-
httpUrl: () => httpUrl,
|
|
3145
|
-
includes: () => _includes,
|
|
3146
|
-
instanceof: () => _instanceof,
|
|
3147
|
-
int: () => int,
|
|
3148
|
-
int32: () => int32,
|
|
3149
|
-
int64: () => int64,
|
|
3150
|
-
intersection: () => intersection,
|
|
3151
|
-
invertCodec: () => invertCodec,
|
|
3152
|
-
ipv4: () => ipv42,
|
|
3153
|
-
ipv6: () => ipv62,
|
|
3154
|
-
iso: () => iso_exports,
|
|
3155
|
-
json: () => json,
|
|
3156
|
-
jwt: () => jwt,
|
|
3157
|
-
keyof: () => keyof,
|
|
3158
|
-
ksuid: () => ksuid2,
|
|
3159
|
-
lazy: () => _lazy2,
|
|
3160
|
-
length: () => _length,
|
|
3161
|
-
literal: () => literal,
|
|
3162
|
-
locales: () => locales_exports,
|
|
3163
|
-
looseObject: () => looseObject,
|
|
3164
|
-
looseRecord: () => looseRecord,
|
|
3165
|
-
lowercase: () => _lowercase,
|
|
3166
|
-
lt: () => _lt,
|
|
3167
|
-
lte: () => _lte,
|
|
3168
|
-
mac: () => mac2,
|
|
3169
|
-
map: () => map,
|
|
3170
|
-
maxLength: () => _maxLength,
|
|
3171
|
-
maxSize: () => _maxSize,
|
|
3172
|
-
maximum: () => _lte,
|
|
3173
|
-
merge: () => merge2,
|
|
3174
|
-
meta: () => meta2,
|
|
3175
|
-
mime: () => _mime,
|
|
3176
|
-
minLength: () => _minLength,
|
|
3177
|
-
minSize: () => _minSize,
|
|
3178
|
-
minimum: () => _gte,
|
|
3179
|
-
multipleOf: () => _multipleOf,
|
|
3180
|
-
nan: () => nan,
|
|
3181
|
-
nanoid: () => nanoid2,
|
|
3182
|
-
nativeEnum: () => nativeEnum,
|
|
3183
|
-
negative: () => _negative,
|
|
3184
|
-
never: () => never,
|
|
3185
|
-
nonnegative: () => _nonnegative,
|
|
3186
|
-
nonoptional: () => nonoptional,
|
|
3187
|
-
nonpositive: () => _nonpositive,
|
|
3188
|
-
normalize: () => _normalize,
|
|
3189
|
-
null: () => _null3,
|
|
3190
|
-
nullable: () => nullable,
|
|
3191
|
-
nullish: () => nullish2,
|
|
3192
|
-
number: () => number2,
|
|
3193
|
-
object: () => object,
|
|
3194
|
-
omit: () => omit2,
|
|
3195
|
-
optional: () => optional,
|
|
3196
|
-
overwrite: () => _overwrite,
|
|
3197
|
-
parse: () => parse2,
|
|
3198
|
-
parseAsync: () => parseAsync,
|
|
3199
|
-
partial: () => partial2,
|
|
3200
|
-
partialRecord: () => partialRecord,
|
|
3201
|
-
pick: () => pick2,
|
|
3202
|
-
pipe: () => pipe,
|
|
3203
|
-
positive: () => _positive,
|
|
3204
|
-
prefault: () => prefault,
|
|
3205
|
-
prettifyError: () => prettifyError,
|
|
3206
|
-
promise: () => promise,
|
|
3207
|
-
property: () => _property,
|
|
3208
|
-
readonly: () => readonly,
|
|
3209
|
-
record: () => record,
|
|
3210
|
-
refine: () => refine,
|
|
3211
|
-
regex: () => _regex,
|
|
3212
|
-
regexes: () => regexes_exports,
|
|
3213
|
-
registry: () => registry,
|
|
3214
|
-
required: () => required2,
|
|
3215
|
-
safeDecode: () => safeDecode,
|
|
3216
|
-
safeDecodeAsync: () => safeDecodeAsync,
|
|
3217
|
-
safeEncode: () => safeEncode,
|
|
3218
|
-
safeEncodeAsync: () => safeEncodeAsync,
|
|
3219
|
-
safeExtend: () => safeExtend2,
|
|
3220
|
-
safeParse: () => safeParse,
|
|
3221
|
-
safeParseAsync: () => safeParseAsync,
|
|
3222
|
-
set: () => set,
|
|
3223
|
-
size: () => _size,
|
|
3224
|
-
startsWith: () => _startsWith,
|
|
3225
|
-
strictObject: () => strictObject,
|
|
3226
|
-
string: () => string2,
|
|
3227
|
-
stringFormat: () => stringFormat,
|
|
3228
|
-
stringbool: () => stringbool,
|
|
3229
|
-
success: () => success,
|
|
3230
|
-
superRefine: () => superRefine,
|
|
3231
|
-
symbol: () => symbol,
|
|
3232
|
-
templateLiteral: () => templateLiteral,
|
|
3233
|
-
toJSONSchema: () => toJSONSchema,
|
|
3234
|
-
toLowerCase: () => _toLowerCase,
|
|
3235
|
-
toUpperCase: () => _toUpperCase,
|
|
3236
|
-
transform: () => transform,
|
|
3237
|
-
treeifyError: () => treeifyError,
|
|
3238
|
-
trim: () => _trim,
|
|
3239
|
-
tuple: () => tuple,
|
|
3240
|
-
uint32: () => uint32,
|
|
3241
|
-
uint64: () => uint64,
|
|
3242
|
-
ulid: () => ulid2,
|
|
3243
|
-
undefined: () => _undefined3,
|
|
3244
|
-
union: () => union,
|
|
3245
|
-
unknown: () => unknown,
|
|
3246
|
-
uppercase: () => _uppercase,
|
|
3247
|
-
url: () => url,
|
|
3248
|
-
util: () => util_exports,
|
|
3249
|
-
uuid: () => uuid2,
|
|
3250
|
-
uuidv4: () => uuidv4,
|
|
3251
|
-
uuidv6: () => uuidv6,
|
|
3252
|
-
uuidv7: () => uuidv7,
|
|
3253
|
-
void: () => _void2,
|
|
3254
|
-
xid: () => xid2,
|
|
3255
|
-
xor: () => xor
|
|
3256
|
-
});
|
|
3257
|
-
|
|
3258
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
3259
|
-
var core_exports2 = {};
|
|
3260
|
-
__export(core_exports2, {
|
|
3261
|
-
$ZodAny: () => $ZodAny,
|
|
3262
|
-
$ZodArray: () => $ZodArray,
|
|
3263
|
-
$ZodAsyncError: () => $ZodAsyncError,
|
|
3264
|
-
$ZodBase64: () => $ZodBase64,
|
|
3265
|
-
$ZodBase64URL: () => $ZodBase64URL,
|
|
3266
|
-
$ZodBigInt: () => $ZodBigInt,
|
|
3267
|
-
$ZodBigIntFormat: () => $ZodBigIntFormat,
|
|
3268
|
-
$ZodBoolean: () => $ZodBoolean,
|
|
3269
|
-
$ZodCIDRv4: () => $ZodCIDRv4,
|
|
3270
|
-
$ZodCIDRv6: () => $ZodCIDRv6,
|
|
3271
|
-
$ZodCUID: () => $ZodCUID,
|
|
3272
|
-
$ZodCUID2: () => $ZodCUID2,
|
|
3273
|
-
$ZodCatch: () => $ZodCatch,
|
|
3274
|
-
$ZodCheck: () => $ZodCheck,
|
|
3275
|
-
$ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,
|
|
3276
|
-
$ZodCheckEndsWith: () => $ZodCheckEndsWith,
|
|
3277
|
-
$ZodCheckGreaterThan: () => $ZodCheckGreaterThan,
|
|
3278
|
-
$ZodCheckIncludes: () => $ZodCheckIncludes,
|
|
3279
|
-
$ZodCheckLengthEquals: () => $ZodCheckLengthEquals,
|
|
3280
|
-
$ZodCheckLessThan: () => $ZodCheckLessThan,
|
|
3281
|
-
$ZodCheckLowerCase: () => $ZodCheckLowerCase,
|
|
3282
|
-
$ZodCheckMaxLength: () => $ZodCheckMaxLength,
|
|
3283
|
-
$ZodCheckMaxSize: () => $ZodCheckMaxSize,
|
|
3284
|
-
$ZodCheckMimeType: () => $ZodCheckMimeType,
|
|
3285
|
-
$ZodCheckMinLength: () => $ZodCheckMinLength,
|
|
3286
|
-
$ZodCheckMinSize: () => $ZodCheckMinSize,
|
|
3287
|
-
$ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
|
|
3288
|
-
$ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
|
|
3289
|
-
$ZodCheckOverwrite: () => $ZodCheckOverwrite,
|
|
3290
|
-
$ZodCheckProperty: () => $ZodCheckProperty,
|
|
3291
|
-
$ZodCheckRegex: () => $ZodCheckRegex,
|
|
3292
|
-
$ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
|
|
3293
|
-
$ZodCheckStartsWith: () => $ZodCheckStartsWith,
|
|
3294
|
-
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
3295
|
-
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
3296
|
-
$ZodCodec: () => $ZodCodec,
|
|
3297
|
-
$ZodCustom: () => $ZodCustom,
|
|
3298
|
-
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
3299
|
-
$ZodDate: () => $ZodDate,
|
|
3300
|
-
$ZodDefault: () => $ZodDefault,
|
|
3301
|
-
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
3302
|
-
$ZodE164: () => $ZodE164,
|
|
3303
|
-
$ZodEmail: () => $ZodEmail,
|
|
3304
|
-
$ZodEmoji: () => $ZodEmoji,
|
|
3305
|
-
$ZodEncodeError: () => $ZodEncodeError,
|
|
3306
|
-
$ZodEnum: () => $ZodEnum,
|
|
3307
|
-
$ZodError: () => $ZodError,
|
|
3308
|
-
$ZodExactOptional: () => $ZodExactOptional,
|
|
3309
|
-
$ZodFile: () => $ZodFile,
|
|
3310
|
-
$ZodFunction: () => $ZodFunction,
|
|
3311
|
-
$ZodGUID: () => $ZodGUID,
|
|
3312
|
-
$ZodIPv4: () => $ZodIPv4,
|
|
3313
|
-
$ZodIPv6: () => $ZodIPv6,
|
|
3314
|
-
$ZodISODate: () => $ZodISODate,
|
|
3315
|
-
$ZodISODateTime: () => $ZodISODateTime,
|
|
3316
|
-
$ZodISODuration: () => $ZodISODuration,
|
|
3317
|
-
$ZodISOTime: () => $ZodISOTime,
|
|
3318
|
-
$ZodIntersection: () => $ZodIntersection,
|
|
3319
|
-
$ZodJWT: () => $ZodJWT,
|
|
3320
|
-
$ZodKSUID: () => $ZodKSUID,
|
|
3321
|
-
$ZodLazy: () => $ZodLazy,
|
|
3322
|
-
$ZodLiteral: () => $ZodLiteral,
|
|
3323
|
-
$ZodMAC: () => $ZodMAC,
|
|
3324
|
-
$ZodMap: () => $ZodMap,
|
|
3325
|
-
$ZodNaN: () => $ZodNaN,
|
|
3326
|
-
$ZodNanoID: () => $ZodNanoID,
|
|
3327
|
-
$ZodNever: () => $ZodNever,
|
|
3328
|
-
$ZodNonOptional: () => $ZodNonOptional,
|
|
3329
|
-
$ZodNull: () => $ZodNull,
|
|
3330
|
-
$ZodNullable: () => $ZodNullable,
|
|
3331
|
-
$ZodNumber: () => $ZodNumber,
|
|
3332
|
-
$ZodNumberFormat: () => $ZodNumberFormat,
|
|
3333
|
-
$ZodObject: () => $ZodObject,
|
|
3334
|
-
$ZodObjectJIT: () => $ZodObjectJIT,
|
|
3335
|
-
$ZodOptional: () => $ZodOptional,
|
|
3336
|
-
$ZodPipe: () => $ZodPipe,
|
|
3337
|
-
$ZodPrefault: () => $ZodPrefault,
|
|
3338
|
-
$ZodPreprocess: () => $ZodPreprocess,
|
|
3339
|
-
$ZodPromise: () => $ZodPromise,
|
|
3340
|
-
$ZodReadonly: () => $ZodReadonly,
|
|
3341
|
-
$ZodRealError: () => $ZodRealError,
|
|
3342
|
-
$ZodRecord: () => $ZodRecord,
|
|
3343
|
-
$ZodRegistry: () => $ZodRegistry,
|
|
3344
|
-
$ZodSet: () => $ZodSet,
|
|
3345
|
-
$ZodString: () => $ZodString,
|
|
3346
|
-
$ZodStringFormat: () => $ZodStringFormat,
|
|
3347
|
-
$ZodSuccess: () => $ZodSuccess,
|
|
3348
|
-
$ZodSymbol: () => $ZodSymbol,
|
|
3349
|
-
$ZodTemplateLiteral: () => $ZodTemplateLiteral,
|
|
3350
|
-
$ZodTransform: () => $ZodTransform,
|
|
3351
|
-
$ZodTuple: () => $ZodTuple,
|
|
3352
|
-
$ZodType: () => $ZodType,
|
|
3353
|
-
$ZodULID: () => $ZodULID,
|
|
3354
|
-
$ZodURL: () => $ZodURL,
|
|
3355
|
-
$ZodUUID: () => $ZodUUID,
|
|
3356
|
-
$ZodUndefined: () => $ZodUndefined,
|
|
3357
|
-
$ZodUnion: () => $ZodUnion,
|
|
3358
|
-
$ZodUnknown: () => $ZodUnknown,
|
|
3359
|
-
$ZodVoid: () => $ZodVoid,
|
|
3360
|
-
$ZodXID: () => $ZodXID,
|
|
3361
|
-
$ZodXor: () => $ZodXor,
|
|
3362
|
-
$brand: () => $brand,
|
|
3363
|
-
$constructor: () => $constructor,
|
|
3364
|
-
$input: () => $input,
|
|
3365
|
-
$output: () => $output,
|
|
3366
|
-
Doc: () => Doc,
|
|
3367
|
-
JSONSchema: () => json_schema_exports,
|
|
3368
|
-
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
3369
|
-
NEVER: () => NEVER,
|
|
3370
|
-
TimePrecision: () => TimePrecision,
|
|
3371
|
-
_any: () => _any,
|
|
3372
|
-
_array: () => _array,
|
|
3373
|
-
_base64: () => _base64,
|
|
3374
|
-
_base64url: () => _base64url,
|
|
3375
|
-
_bigint: () => _bigint,
|
|
3376
|
-
_boolean: () => _boolean,
|
|
3377
|
-
_catch: () => _catch,
|
|
3378
|
-
_check: () => _check,
|
|
3379
|
-
_cidrv4: () => _cidrv4,
|
|
3380
|
-
_cidrv6: () => _cidrv6,
|
|
3381
|
-
_coercedBigint: () => _coercedBigint,
|
|
3382
|
-
_coercedBoolean: () => _coercedBoolean,
|
|
3383
|
-
_coercedDate: () => _coercedDate,
|
|
3384
|
-
_coercedNumber: () => _coercedNumber,
|
|
3385
|
-
_coercedString: () => _coercedString,
|
|
3386
|
-
_cuid: () => _cuid,
|
|
3387
|
-
_cuid2: () => _cuid2,
|
|
3388
|
-
_custom: () => _custom,
|
|
3389
|
-
_date: () => _date,
|
|
3390
|
-
_decode: () => _decode,
|
|
3391
|
-
_decodeAsync: () => _decodeAsync,
|
|
3392
|
-
_default: () => _default,
|
|
3393
|
-
_discriminatedUnion: () => _discriminatedUnion,
|
|
3394
|
-
_e164: () => _e164,
|
|
3395
|
-
_email: () => _email,
|
|
3396
|
-
_emoji: () => _emoji2,
|
|
3397
|
-
_encode: () => _encode,
|
|
3398
|
-
_encodeAsync: () => _encodeAsync,
|
|
3399
|
-
_endsWith: () => _endsWith,
|
|
3400
|
-
_enum: () => _enum,
|
|
3401
|
-
_file: () => _file,
|
|
3402
|
-
_float32: () => _float32,
|
|
3403
|
-
_float64: () => _float64,
|
|
3404
|
-
_gt: () => _gt,
|
|
3405
|
-
_gte: () => _gte,
|
|
3406
|
-
_guid: () => _guid,
|
|
3407
|
-
_includes: () => _includes,
|
|
3408
|
-
_int: () => _int,
|
|
3409
|
-
_int32: () => _int32,
|
|
3410
|
-
_int64: () => _int64,
|
|
3411
|
-
_intersection: () => _intersection,
|
|
3412
|
-
_ipv4: () => _ipv4,
|
|
3413
|
-
_ipv6: () => _ipv6,
|
|
3414
|
-
_isoDate: () => _isoDate,
|
|
3415
|
-
_isoDateTime: () => _isoDateTime,
|
|
3416
|
-
_isoDuration: () => _isoDuration,
|
|
3417
|
-
_isoTime: () => _isoTime,
|
|
3418
|
-
_jwt: () => _jwt,
|
|
3419
|
-
_ksuid: () => _ksuid,
|
|
3420
|
-
_lazy: () => _lazy,
|
|
3421
|
-
_length: () => _length,
|
|
3422
|
-
_literal: () => _literal,
|
|
3423
|
-
_lowercase: () => _lowercase,
|
|
3424
|
-
_lt: () => _lt,
|
|
3425
|
-
_lte: () => _lte,
|
|
3426
|
-
_mac: () => _mac,
|
|
3427
|
-
_map: () => _map,
|
|
3428
|
-
_max: () => _lte,
|
|
3429
|
-
_maxLength: () => _maxLength,
|
|
3430
|
-
_maxSize: () => _maxSize,
|
|
3431
|
-
_mime: () => _mime,
|
|
3432
|
-
_min: () => _gte,
|
|
3433
|
-
_minLength: () => _minLength,
|
|
3434
|
-
_minSize: () => _minSize,
|
|
3435
|
-
_multipleOf: () => _multipleOf,
|
|
3436
|
-
_nan: () => _nan,
|
|
3437
|
-
_nanoid: () => _nanoid,
|
|
3438
|
-
_nativeEnum: () => _nativeEnum,
|
|
3439
|
-
_negative: () => _negative,
|
|
3440
|
-
_never: () => _never,
|
|
3441
|
-
_nonnegative: () => _nonnegative,
|
|
3442
|
-
_nonoptional: () => _nonoptional,
|
|
3443
|
-
_nonpositive: () => _nonpositive,
|
|
3444
|
-
_normalize: () => _normalize,
|
|
3445
|
-
_null: () => _null2,
|
|
3446
|
-
_nullable: () => _nullable,
|
|
3447
|
-
_number: () => _number,
|
|
3448
|
-
_optional: () => _optional,
|
|
3449
|
-
_overwrite: () => _overwrite,
|
|
3450
|
-
_parse: () => _parse,
|
|
3451
|
-
_parseAsync: () => _parseAsync,
|
|
3452
|
-
_pipe: () => _pipe,
|
|
3453
|
-
_positive: () => _positive,
|
|
3454
|
-
_promise: () => _promise,
|
|
3455
|
-
_property: () => _property,
|
|
3456
|
-
_readonly: () => _readonly,
|
|
3457
|
-
_record: () => _record,
|
|
3458
|
-
_refine: () => _refine,
|
|
3459
|
-
_regex: () => _regex,
|
|
3460
|
-
_safeDecode: () => _safeDecode,
|
|
3461
|
-
_safeDecodeAsync: () => _safeDecodeAsync,
|
|
3462
|
-
_safeEncode: () => _safeEncode,
|
|
3463
|
-
_safeEncodeAsync: () => _safeEncodeAsync,
|
|
3464
|
-
_safeParse: () => _safeParse,
|
|
3465
|
-
_safeParseAsync: () => _safeParseAsync,
|
|
3466
|
-
_set: () => _set,
|
|
3467
|
-
_size: () => _size,
|
|
3468
|
-
_slugify: () => _slugify,
|
|
3469
|
-
_startsWith: () => _startsWith,
|
|
3470
|
-
_string: () => _string,
|
|
3471
|
-
_stringFormat: () => _stringFormat,
|
|
3472
|
-
_stringbool: () => _stringbool,
|
|
3473
|
-
_success: () => _success,
|
|
3474
|
-
_superRefine: () => _superRefine,
|
|
3475
|
-
_symbol: () => _symbol,
|
|
3476
|
-
_templateLiteral: () => _templateLiteral,
|
|
3477
|
-
_toLowerCase: () => _toLowerCase,
|
|
3478
|
-
_toUpperCase: () => _toUpperCase,
|
|
3479
|
-
_transform: () => _transform,
|
|
3480
|
-
_trim: () => _trim,
|
|
3481
|
-
_tuple: () => _tuple,
|
|
3482
|
-
_uint32: () => _uint32,
|
|
3483
|
-
_uint64: () => _uint64,
|
|
3484
|
-
_ulid: () => _ulid,
|
|
3485
|
-
_undefined: () => _undefined2,
|
|
3486
|
-
_union: () => _union,
|
|
3487
|
-
_unknown: () => _unknown,
|
|
3488
|
-
_uppercase: () => _uppercase,
|
|
3489
|
-
_url: () => _url,
|
|
3490
|
-
_uuid: () => _uuid,
|
|
3491
|
-
_uuidv4: () => _uuidv4,
|
|
3492
|
-
_uuidv6: () => _uuidv6,
|
|
3493
|
-
_uuidv7: () => _uuidv7,
|
|
3494
|
-
_void: () => _void,
|
|
3495
|
-
_xid: () => _xid,
|
|
3496
|
-
_xor: () => _xor,
|
|
3497
|
-
clone: () => clone,
|
|
3498
|
-
config: () => config,
|
|
3499
|
-
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
|
|
3500
|
-
createToJSONSchemaMethod: () => createToJSONSchemaMethod,
|
|
3501
|
-
decode: () => decode2,
|
|
3502
|
-
decodeAsync: () => decodeAsync,
|
|
3503
|
-
describe: () => describe,
|
|
3504
|
-
encode: () => encode3,
|
|
3505
|
-
encodeAsync: () => encodeAsync,
|
|
3506
|
-
extractDefs: () => extractDefs,
|
|
3507
|
-
finalize: () => finalize,
|
|
3508
|
-
flattenError: () => flattenError,
|
|
3509
|
-
formatError: () => formatError,
|
|
3510
|
-
globalConfig: () => globalConfig,
|
|
3511
|
-
globalRegistry: () => globalRegistry,
|
|
3512
|
-
initializeContext: () => initializeContext,
|
|
3513
|
-
isValidBase64: () => isValidBase64,
|
|
3514
|
-
isValidBase64URL: () => isValidBase64URL,
|
|
3515
|
-
isValidJWT: () => isValidJWT,
|
|
3516
|
-
locales: () => locales_exports,
|
|
3517
|
-
meta: () => meta,
|
|
3518
|
-
parse: () => parse2,
|
|
3519
|
-
parseAsync: () => parseAsync,
|
|
3520
|
-
prettifyError: () => prettifyError,
|
|
3521
|
-
process: () => process,
|
|
3522
|
-
regexes: () => regexes_exports,
|
|
3523
|
-
registry: () => registry,
|
|
3524
|
-
safeDecode: () => safeDecode,
|
|
3525
|
-
safeDecodeAsync: () => safeDecodeAsync,
|
|
3526
|
-
safeEncode: () => safeEncode,
|
|
3527
|
-
safeEncodeAsync: () => safeEncodeAsync,
|
|
3528
|
-
safeParse: () => safeParse,
|
|
3529
|
-
safeParseAsync: () => safeParseAsync,
|
|
3530
|
-
toDotPath: () => toDotPath,
|
|
3531
|
-
toJSONSchema: () => toJSONSchema,
|
|
3532
|
-
treeifyError: () => treeifyError,
|
|
3533
|
-
util: () => util_exports,
|
|
3534
|
-
version: () => version2
|
|
3535
|
-
});
|
|
3536
|
-
|
|
3537
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
3538
|
-
var _a;
|
|
3539
|
-
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
3540
|
-
status: "aborted"
|
|
3541
|
-
});
|
|
3542
|
-
// @__NO_SIDE_EFFECTS__
|
|
3543
|
-
function $constructor(name, initializer2, params) {
|
|
3544
|
-
function init(inst, def) {
|
|
3545
|
-
if (!inst._zod) {
|
|
3546
|
-
Object.defineProperty(inst, "_zod", {
|
|
3547
|
-
value: {
|
|
3548
|
-
def,
|
|
3549
|
-
constr: _,
|
|
3550
|
-
traits: /* @__PURE__ */ new Set()
|
|
3551
|
-
},
|
|
3552
|
-
enumerable: false
|
|
3553
|
-
});
|
|
3554
|
-
}
|
|
3555
|
-
if (inst._zod.traits.has(name)) {
|
|
3556
|
-
return;
|
|
3557
|
-
}
|
|
3558
|
-
inst._zod.traits.add(name);
|
|
3559
|
-
initializer2(inst, def);
|
|
3560
|
-
const proto = _.prototype;
|
|
3561
|
-
const keys = Object.keys(proto);
|
|
3562
|
-
for (let i = 0; i < keys.length; i++) {
|
|
3563
|
-
const k = keys[i];
|
|
3564
|
-
if (!(k in inst)) {
|
|
3565
|
-
inst[k] = proto[k].bind(inst);
|
|
3566
|
-
}
|
|
3567
|
-
}
|
|
3568
|
-
}
|
|
3569
|
-
const Parent = params?.Parent ?? Object;
|
|
3570
|
-
class Definition extends Parent {
|
|
3571
|
-
}
|
|
3572
|
-
Object.defineProperty(Definition, "name", { value: name });
|
|
3573
|
-
function _(def) {
|
|
3574
|
-
var _a3;
|
|
3575
|
-
const inst = params?.Parent ? new Definition() : this;
|
|
3576
|
-
init(inst, def);
|
|
3577
|
-
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
3578
|
-
for (const fn of inst._zod.deferred) {
|
|
3579
|
-
fn();
|
|
3580
|
-
}
|
|
3581
|
-
return inst;
|
|
3582
|
-
}
|
|
3583
|
-
Object.defineProperty(_, "init", { value: init });
|
|
3584
|
-
Object.defineProperty(_, Symbol.hasInstance, {
|
|
3585
|
-
value: (inst) => {
|
|
3586
|
-
if (params?.Parent && inst instanceof params.Parent)
|
|
3587
|
-
return true;
|
|
3588
|
-
return inst?._zod?.traits?.has(name);
|
|
3589
|
-
}
|
|
3590
|
-
});
|
|
3591
|
-
Object.defineProperty(_, "name", { value: name });
|
|
3592
|
-
return _;
|
|
3593
|
-
}
|
|
3594
|
-
var $brand = /* @__PURE__ */ Symbol("zod_brand");
|
|
3595
|
-
var $ZodAsyncError = class extends Error {
|
|
3596
|
-
constructor() {
|
|
3597
|
-
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
3598
|
-
}
|
|
3599
|
-
};
|
|
3600
|
-
var $ZodEncodeError = class extends Error {
|
|
3601
|
-
constructor(name) {
|
|
3602
|
-
super(`Encountered unidirectional transform during encode: ${name}`);
|
|
3603
|
-
this.name = "ZodEncodeError";
|
|
3604
|
-
}
|
|
3605
|
-
};
|
|
3606
|
-
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
3607
|
-
var globalConfig = globalThis.__zod_globalConfig;
|
|
3608
|
-
function config(newConfig) {
|
|
3609
|
-
if (newConfig)
|
|
3610
|
-
Object.assign(globalConfig, newConfig);
|
|
3611
|
-
return globalConfig;
|
|
3612
|
-
}
|
|
3613
|
-
|
|
3614
|
-
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
3615
|
-
var util_exports = {};
|
|
3616
|
-
__export(util_exports, {
|
|
3617
|
-
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
3618
|
-
Class: () => Class,
|
|
3619
|
-
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
3620
|
-
aborted: () => aborted,
|
|
3621
|
-
allowsEval: () => allowsEval,
|
|
3622
|
-
assert: () => assert6,
|
|
3623
|
-
assertEqual: () => assertEqual,
|
|
3624
|
-
assertIs: () => assertIs,
|
|
3625
|
-
assertNever: () => assertNever,
|
|
3626
|
-
assertNotEqual: () => assertNotEqual,
|
|
3627
|
-
assignProp: () => assignProp,
|
|
3628
|
-
base64ToUint8Array: () => base64ToUint8Array,
|
|
3629
|
-
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
3630
|
-
cached: () => cached,
|
|
3631
|
-
captureStackTrace: () => captureStackTrace,
|
|
3632
|
-
cleanEnum: () => cleanEnum,
|
|
3633
|
-
cleanRegex: () => cleanRegex,
|
|
3360
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
3361
|
+
var util_exports = {};
|
|
3362
|
+
__export(util_exports, {
|
|
3363
|
+
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
3364
|
+
Class: () => Class,
|
|
3365
|
+
NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
|
|
3366
|
+
aborted: () => aborted,
|
|
3367
|
+
allowsEval: () => allowsEval,
|
|
3368
|
+
assert: () => assert6,
|
|
3369
|
+
assertEqual: () => assertEqual,
|
|
3370
|
+
assertIs: () => assertIs,
|
|
3371
|
+
assertNever: () => assertNever,
|
|
3372
|
+
assertNotEqual: () => assertNotEqual,
|
|
3373
|
+
assignProp: () => assignProp,
|
|
3374
|
+
base64ToUint8Array: () => base64ToUint8Array,
|
|
3375
|
+
base64urlToUint8Array: () => base64urlToUint8Array,
|
|
3376
|
+
cached: () => cached,
|
|
3377
|
+
captureStackTrace: () => captureStackTrace,
|
|
3378
|
+
cleanEnum: () => cleanEnum,
|
|
3379
|
+
cleanRegex: () => cleanRegex,
|
|
3634
3380
|
clone: () => clone,
|
|
3635
3381
|
cloneDef: () => cloneDef,
|
|
3636
3382
|
createTransparentProxy: () => createTransparentProxy,
|
|
@@ -4606,10 +4352,10 @@ var nanoid = /^[a-zA-Z0-9_-]{21}$/;
|
|
|
4606
4352
|
var duration = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;
|
|
4607
4353
|
var extendedDuration = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
4608
4354
|
var guid = /^([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})$/;
|
|
4609
|
-
var uuid = (
|
|
4610
|
-
if (!
|
|
4355
|
+
var uuid = (version4) => {
|
|
4356
|
+
if (!version4)
|
|
4611
4357
|
return /^([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)$/;
|
|
4612
|
-
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${
|
|
4358
|
+
return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version4}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
|
|
4613
4359
|
};
|
|
4614
4360
|
var uuid4 = /* @__PURE__ */ uuid(4);
|
|
4615
4361
|
var uuid6 = /* @__PURE__ */ uuid(6);
|
|
@@ -5278,7 +5024,7 @@ var Doc = class {
|
|
|
5278
5024
|
};
|
|
5279
5025
|
|
|
5280
5026
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
5281
|
-
var
|
|
5027
|
+
var version3 = {
|
|
5282
5028
|
major: 4,
|
|
5283
5029
|
minor: 4,
|
|
5284
5030
|
patch: 3
|
|
@@ -5290,7 +5036,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5290
5036
|
inst ?? (inst = {});
|
|
5291
5037
|
inst._zod.def = def;
|
|
5292
5038
|
inst._zod.bag = inst._zod.bag || {};
|
|
5293
|
-
inst._zod.version =
|
|
5039
|
+
inst._zod.version = version3;
|
|
5294
5040
|
const checks = [...inst._zod.def.checks ?? []];
|
|
5295
5041
|
if (inst._zod.traits.has("$ZodCheck")) {
|
|
5296
5042
|
checks.unshift(inst);
|
|
@@ -5596,7 +5342,7 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
5596
5342
|
try {
|
|
5597
5343
|
if (parts.length !== 2)
|
|
5598
5344
|
throw new Error();
|
|
5599
|
-
const [
|
|
5345
|
+
const [address, prefix] = parts;
|
|
5600
5346
|
if (!prefix)
|
|
5601
5347
|
throw new Error();
|
|
5602
5348
|
const prefixNum = Number(prefix);
|
|
@@ -5604,7 +5350,7 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
5604
5350
|
throw new Error();
|
|
5605
5351
|
if (prefixNum < 0 || prefixNum > 128)
|
|
5606
5352
|
throw new Error();
|
|
5607
|
-
new URL(`http://[${
|
|
5353
|
+
new URL(`http://[${address}]`);
|
|
5608
5354
|
} catch {
|
|
5609
5355
|
payload.issues.push({
|
|
5610
5356
|
code: "invalid_format",
|
|
@@ -13342,10 +13088,10 @@ var $ZodRegistry = class {
|
|
|
13342
13088
|
this._idmap = /* @__PURE__ */ new Map();
|
|
13343
13089
|
}
|
|
13344
13090
|
add(schema, ..._meta) {
|
|
13345
|
-
const
|
|
13346
|
-
this._map.set(schema,
|
|
13347
|
-
if (
|
|
13348
|
-
this._idmap.set(
|
|
13091
|
+
const meta3 = _meta[0];
|
|
13092
|
+
this._map.set(schema, meta3);
|
|
13093
|
+
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
13094
|
+
this._idmap.set(meta3.id, schema);
|
|
13349
13095
|
}
|
|
13350
13096
|
return this;
|
|
13351
13097
|
}
|
|
@@ -13355,9 +13101,9 @@ var $ZodRegistry = class {
|
|
|
13355
13101
|
return this;
|
|
13356
13102
|
}
|
|
13357
13103
|
remove(schema) {
|
|
13358
|
-
const
|
|
13359
|
-
if (
|
|
13360
|
-
this._idmap.delete(
|
|
13104
|
+
const meta3 = this._map.get(schema);
|
|
13105
|
+
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
13106
|
+
this._idmap.delete(meta3.id);
|
|
13361
13107
|
}
|
|
13362
13108
|
this._map.delete(schema);
|
|
13363
13109
|
return this;
|
|
@@ -14484,9 +14230,9 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
14484
14230
|
ctx.seen.get(parent).isParent = true;
|
|
14485
14231
|
}
|
|
14486
14232
|
}
|
|
14487
|
-
const
|
|
14488
|
-
if (
|
|
14489
|
-
Object.assign(result.schema,
|
|
14233
|
+
const meta3 = ctx.metadataRegistry.get(schema);
|
|
14234
|
+
if (meta3)
|
|
14235
|
+
Object.assign(result.schema, meta3);
|
|
14490
14236
|
if (ctx.io === "input" && isTransforming(schema)) {
|
|
14491
14237
|
delete result.schema.examples;
|
|
14492
14238
|
delete result.schema.default;
|
|
@@ -15324,6 +15070,285 @@ function toJSONSchema(input, params) {
|
|
|
15324
15070
|
return finalize(ctx, input);
|
|
15325
15071
|
}
|
|
15326
15072
|
|
|
15073
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
15074
|
+
var core_exports2 = {};
|
|
15075
|
+
__export(core_exports2, {
|
|
15076
|
+
$ZodAny: () => $ZodAny,
|
|
15077
|
+
$ZodArray: () => $ZodArray,
|
|
15078
|
+
$ZodAsyncError: () => $ZodAsyncError,
|
|
15079
|
+
$ZodBase64: () => $ZodBase64,
|
|
15080
|
+
$ZodBase64URL: () => $ZodBase64URL,
|
|
15081
|
+
$ZodBigInt: () => $ZodBigInt,
|
|
15082
|
+
$ZodBigIntFormat: () => $ZodBigIntFormat,
|
|
15083
|
+
$ZodBoolean: () => $ZodBoolean,
|
|
15084
|
+
$ZodCIDRv4: () => $ZodCIDRv4,
|
|
15085
|
+
$ZodCIDRv6: () => $ZodCIDRv6,
|
|
15086
|
+
$ZodCUID: () => $ZodCUID,
|
|
15087
|
+
$ZodCUID2: () => $ZodCUID2,
|
|
15088
|
+
$ZodCatch: () => $ZodCatch,
|
|
15089
|
+
$ZodCheck: () => $ZodCheck,
|
|
15090
|
+
$ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,
|
|
15091
|
+
$ZodCheckEndsWith: () => $ZodCheckEndsWith,
|
|
15092
|
+
$ZodCheckGreaterThan: () => $ZodCheckGreaterThan,
|
|
15093
|
+
$ZodCheckIncludes: () => $ZodCheckIncludes,
|
|
15094
|
+
$ZodCheckLengthEquals: () => $ZodCheckLengthEquals,
|
|
15095
|
+
$ZodCheckLessThan: () => $ZodCheckLessThan,
|
|
15096
|
+
$ZodCheckLowerCase: () => $ZodCheckLowerCase,
|
|
15097
|
+
$ZodCheckMaxLength: () => $ZodCheckMaxLength,
|
|
15098
|
+
$ZodCheckMaxSize: () => $ZodCheckMaxSize,
|
|
15099
|
+
$ZodCheckMimeType: () => $ZodCheckMimeType,
|
|
15100
|
+
$ZodCheckMinLength: () => $ZodCheckMinLength,
|
|
15101
|
+
$ZodCheckMinSize: () => $ZodCheckMinSize,
|
|
15102
|
+
$ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
|
|
15103
|
+
$ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
|
|
15104
|
+
$ZodCheckOverwrite: () => $ZodCheckOverwrite,
|
|
15105
|
+
$ZodCheckProperty: () => $ZodCheckProperty,
|
|
15106
|
+
$ZodCheckRegex: () => $ZodCheckRegex,
|
|
15107
|
+
$ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
|
|
15108
|
+
$ZodCheckStartsWith: () => $ZodCheckStartsWith,
|
|
15109
|
+
$ZodCheckStringFormat: () => $ZodCheckStringFormat,
|
|
15110
|
+
$ZodCheckUpperCase: () => $ZodCheckUpperCase,
|
|
15111
|
+
$ZodCodec: () => $ZodCodec,
|
|
15112
|
+
$ZodCustom: () => $ZodCustom,
|
|
15113
|
+
$ZodCustomStringFormat: () => $ZodCustomStringFormat,
|
|
15114
|
+
$ZodDate: () => $ZodDate,
|
|
15115
|
+
$ZodDefault: () => $ZodDefault,
|
|
15116
|
+
$ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
|
|
15117
|
+
$ZodE164: () => $ZodE164,
|
|
15118
|
+
$ZodEmail: () => $ZodEmail,
|
|
15119
|
+
$ZodEmoji: () => $ZodEmoji,
|
|
15120
|
+
$ZodEncodeError: () => $ZodEncodeError,
|
|
15121
|
+
$ZodEnum: () => $ZodEnum,
|
|
15122
|
+
$ZodError: () => $ZodError,
|
|
15123
|
+
$ZodExactOptional: () => $ZodExactOptional,
|
|
15124
|
+
$ZodFile: () => $ZodFile,
|
|
15125
|
+
$ZodFunction: () => $ZodFunction,
|
|
15126
|
+
$ZodGUID: () => $ZodGUID,
|
|
15127
|
+
$ZodIPv4: () => $ZodIPv4,
|
|
15128
|
+
$ZodIPv6: () => $ZodIPv6,
|
|
15129
|
+
$ZodISODate: () => $ZodISODate,
|
|
15130
|
+
$ZodISODateTime: () => $ZodISODateTime,
|
|
15131
|
+
$ZodISODuration: () => $ZodISODuration,
|
|
15132
|
+
$ZodISOTime: () => $ZodISOTime,
|
|
15133
|
+
$ZodIntersection: () => $ZodIntersection,
|
|
15134
|
+
$ZodJWT: () => $ZodJWT,
|
|
15135
|
+
$ZodKSUID: () => $ZodKSUID,
|
|
15136
|
+
$ZodLazy: () => $ZodLazy,
|
|
15137
|
+
$ZodLiteral: () => $ZodLiteral,
|
|
15138
|
+
$ZodMAC: () => $ZodMAC,
|
|
15139
|
+
$ZodMap: () => $ZodMap,
|
|
15140
|
+
$ZodNaN: () => $ZodNaN,
|
|
15141
|
+
$ZodNanoID: () => $ZodNanoID,
|
|
15142
|
+
$ZodNever: () => $ZodNever,
|
|
15143
|
+
$ZodNonOptional: () => $ZodNonOptional,
|
|
15144
|
+
$ZodNull: () => $ZodNull,
|
|
15145
|
+
$ZodNullable: () => $ZodNullable,
|
|
15146
|
+
$ZodNumber: () => $ZodNumber,
|
|
15147
|
+
$ZodNumberFormat: () => $ZodNumberFormat,
|
|
15148
|
+
$ZodObject: () => $ZodObject,
|
|
15149
|
+
$ZodObjectJIT: () => $ZodObjectJIT,
|
|
15150
|
+
$ZodOptional: () => $ZodOptional,
|
|
15151
|
+
$ZodPipe: () => $ZodPipe,
|
|
15152
|
+
$ZodPrefault: () => $ZodPrefault,
|
|
15153
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
15154
|
+
$ZodPromise: () => $ZodPromise,
|
|
15155
|
+
$ZodReadonly: () => $ZodReadonly,
|
|
15156
|
+
$ZodRealError: () => $ZodRealError,
|
|
15157
|
+
$ZodRecord: () => $ZodRecord,
|
|
15158
|
+
$ZodRegistry: () => $ZodRegistry,
|
|
15159
|
+
$ZodSet: () => $ZodSet,
|
|
15160
|
+
$ZodString: () => $ZodString,
|
|
15161
|
+
$ZodStringFormat: () => $ZodStringFormat,
|
|
15162
|
+
$ZodSuccess: () => $ZodSuccess,
|
|
15163
|
+
$ZodSymbol: () => $ZodSymbol,
|
|
15164
|
+
$ZodTemplateLiteral: () => $ZodTemplateLiteral,
|
|
15165
|
+
$ZodTransform: () => $ZodTransform,
|
|
15166
|
+
$ZodTuple: () => $ZodTuple,
|
|
15167
|
+
$ZodType: () => $ZodType,
|
|
15168
|
+
$ZodULID: () => $ZodULID,
|
|
15169
|
+
$ZodURL: () => $ZodURL,
|
|
15170
|
+
$ZodUUID: () => $ZodUUID,
|
|
15171
|
+
$ZodUndefined: () => $ZodUndefined,
|
|
15172
|
+
$ZodUnion: () => $ZodUnion,
|
|
15173
|
+
$ZodUnknown: () => $ZodUnknown,
|
|
15174
|
+
$ZodVoid: () => $ZodVoid,
|
|
15175
|
+
$ZodXID: () => $ZodXID,
|
|
15176
|
+
$ZodXor: () => $ZodXor,
|
|
15177
|
+
$brand: () => $brand,
|
|
15178
|
+
$constructor: () => $constructor,
|
|
15179
|
+
$input: () => $input,
|
|
15180
|
+
$output: () => $output,
|
|
15181
|
+
Doc: () => Doc,
|
|
15182
|
+
JSONSchema: () => json_schema_exports,
|
|
15183
|
+
JSONSchemaGenerator: () => JSONSchemaGenerator,
|
|
15184
|
+
NEVER: () => NEVER,
|
|
15185
|
+
TimePrecision: () => TimePrecision,
|
|
15186
|
+
_any: () => _any,
|
|
15187
|
+
_array: () => _array,
|
|
15188
|
+
_base64: () => _base64,
|
|
15189
|
+
_base64url: () => _base64url,
|
|
15190
|
+
_bigint: () => _bigint,
|
|
15191
|
+
_boolean: () => _boolean,
|
|
15192
|
+
_catch: () => _catch,
|
|
15193
|
+
_check: () => _check,
|
|
15194
|
+
_cidrv4: () => _cidrv4,
|
|
15195
|
+
_cidrv6: () => _cidrv6,
|
|
15196
|
+
_coercedBigint: () => _coercedBigint,
|
|
15197
|
+
_coercedBoolean: () => _coercedBoolean,
|
|
15198
|
+
_coercedDate: () => _coercedDate,
|
|
15199
|
+
_coercedNumber: () => _coercedNumber,
|
|
15200
|
+
_coercedString: () => _coercedString,
|
|
15201
|
+
_cuid: () => _cuid,
|
|
15202
|
+
_cuid2: () => _cuid2,
|
|
15203
|
+
_custom: () => _custom,
|
|
15204
|
+
_date: () => _date,
|
|
15205
|
+
_decode: () => _decode,
|
|
15206
|
+
_decodeAsync: () => _decodeAsync,
|
|
15207
|
+
_default: () => _default,
|
|
15208
|
+
_discriminatedUnion: () => _discriminatedUnion,
|
|
15209
|
+
_e164: () => _e164,
|
|
15210
|
+
_email: () => _email,
|
|
15211
|
+
_emoji: () => _emoji2,
|
|
15212
|
+
_encode: () => _encode,
|
|
15213
|
+
_encodeAsync: () => _encodeAsync,
|
|
15214
|
+
_endsWith: () => _endsWith,
|
|
15215
|
+
_enum: () => _enum,
|
|
15216
|
+
_file: () => _file,
|
|
15217
|
+
_float32: () => _float32,
|
|
15218
|
+
_float64: () => _float64,
|
|
15219
|
+
_gt: () => _gt,
|
|
15220
|
+
_gte: () => _gte,
|
|
15221
|
+
_guid: () => _guid,
|
|
15222
|
+
_includes: () => _includes,
|
|
15223
|
+
_int: () => _int,
|
|
15224
|
+
_int32: () => _int32,
|
|
15225
|
+
_int64: () => _int64,
|
|
15226
|
+
_intersection: () => _intersection,
|
|
15227
|
+
_ipv4: () => _ipv4,
|
|
15228
|
+
_ipv6: () => _ipv6,
|
|
15229
|
+
_isoDate: () => _isoDate,
|
|
15230
|
+
_isoDateTime: () => _isoDateTime,
|
|
15231
|
+
_isoDuration: () => _isoDuration,
|
|
15232
|
+
_isoTime: () => _isoTime,
|
|
15233
|
+
_jwt: () => _jwt,
|
|
15234
|
+
_ksuid: () => _ksuid,
|
|
15235
|
+
_lazy: () => _lazy,
|
|
15236
|
+
_length: () => _length,
|
|
15237
|
+
_literal: () => _literal,
|
|
15238
|
+
_lowercase: () => _lowercase,
|
|
15239
|
+
_lt: () => _lt,
|
|
15240
|
+
_lte: () => _lte,
|
|
15241
|
+
_mac: () => _mac,
|
|
15242
|
+
_map: () => _map,
|
|
15243
|
+
_max: () => _lte,
|
|
15244
|
+
_maxLength: () => _maxLength,
|
|
15245
|
+
_maxSize: () => _maxSize,
|
|
15246
|
+
_mime: () => _mime,
|
|
15247
|
+
_min: () => _gte,
|
|
15248
|
+
_minLength: () => _minLength,
|
|
15249
|
+
_minSize: () => _minSize,
|
|
15250
|
+
_multipleOf: () => _multipleOf,
|
|
15251
|
+
_nan: () => _nan,
|
|
15252
|
+
_nanoid: () => _nanoid,
|
|
15253
|
+
_nativeEnum: () => _nativeEnum,
|
|
15254
|
+
_negative: () => _negative,
|
|
15255
|
+
_never: () => _never,
|
|
15256
|
+
_nonnegative: () => _nonnegative,
|
|
15257
|
+
_nonoptional: () => _nonoptional,
|
|
15258
|
+
_nonpositive: () => _nonpositive,
|
|
15259
|
+
_normalize: () => _normalize,
|
|
15260
|
+
_null: () => _null2,
|
|
15261
|
+
_nullable: () => _nullable,
|
|
15262
|
+
_number: () => _number,
|
|
15263
|
+
_optional: () => _optional,
|
|
15264
|
+
_overwrite: () => _overwrite,
|
|
15265
|
+
_parse: () => _parse,
|
|
15266
|
+
_parseAsync: () => _parseAsync,
|
|
15267
|
+
_pipe: () => _pipe,
|
|
15268
|
+
_positive: () => _positive,
|
|
15269
|
+
_promise: () => _promise,
|
|
15270
|
+
_property: () => _property,
|
|
15271
|
+
_readonly: () => _readonly,
|
|
15272
|
+
_record: () => _record,
|
|
15273
|
+
_refine: () => _refine,
|
|
15274
|
+
_regex: () => _regex,
|
|
15275
|
+
_safeDecode: () => _safeDecode,
|
|
15276
|
+
_safeDecodeAsync: () => _safeDecodeAsync,
|
|
15277
|
+
_safeEncode: () => _safeEncode,
|
|
15278
|
+
_safeEncodeAsync: () => _safeEncodeAsync,
|
|
15279
|
+
_safeParse: () => _safeParse,
|
|
15280
|
+
_safeParseAsync: () => _safeParseAsync,
|
|
15281
|
+
_set: () => _set,
|
|
15282
|
+
_size: () => _size,
|
|
15283
|
+
_slugify: () => _slugify,
|
|
15284
|
+
_startsWith: () => _startsWith,
|
|
15285
|
+
_string: () => _string,
|
|
15286
|
+
_stringFormat: () => _stringFormat,
|
|
15287
|
+
_stringbool: () => _stringbool,
|
|
15288
|
+
_success: () => _success,
|
|
15289
|
+
_superRefine: () => _superRefine,
|
|
15290
|
+
_symbol: () => _symbol,
|
|
15291
|
+
_templateLiteral: () => _templateLiteral,
|
|
15292
|
+
_toLowerCase: () => _toLowerCase,
|
|
15293
|
+
_toUpperCase: () => _toUpperCase,
|
|
15294
|
+
_transform: () => _transform,
|
|
15295
|
+
_trim: () => _trim,
|
|
15296
|
+
_tuple: () => _tuple,
|
|
15297
|
+
_uint32: () => _uint32,
|
|
15298
|
+
_uint64: () => _uint64,
|
|
15299
|
+
_ulid: () => _ulid,
|
|
15300
|
+
_undefined: () => _undefined2,
|
|
15301
|
+
_union: () => _union,
|
|
15302
|
+
_unknown: () => _unknown,
|
|
15303
|
+
_uppercase: () => _uppercase,
|
|
15304
|
+
_url: () => _url,
|
|
15305
|
+
_uuid: () => _uuid,
|
|
15306
|
+
_uuidv4: () => _uuidv4,
|
|
15307
|
+
_uuidv6: () => _uuidv6,
|
|
15308
|
+
_uuidv7: () => _uuidv7,
|
|
15309
|
+
_void: () => _void,
|
|
15310
|
+
_xid: () => _xid,
|
|
15311
|
+
_xor: () => _xor,
|
|
15312
|
+
clone: () => clone,
|
|
15313
|
+
config: () => config,
|
|
15314
|
+
createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
|
|
15315
|
+
createToJSONSchemaMethod: () => createToJSONSchemaMethod,
|
|
15316
|
+
decode: () => decode2,
|
|
15317
|
+
decodeAsync: () => decodeAsync,
|
|
15318
|
+
describe: () => describe,
|
|
15319
|
+
encode: () => encode3,
|
|
15320
|
+
encodeAsync: () => encodeAsync,
|
|
15321
|
+
extractDefs: () => extractDefs,
|
|
15322
|
+
finalize: () => finalize,
|
|
15323
|
+
flattenError: () => flattenError,
|
|
15324
|
+
formatError: () => formatError,
|
|
15325
|
+
globalConfig: () => globalConfig,
|
|
15326
|
+
globalRegistry: () => globalRegistry,
|
|
15327
|
+
initializeContext: () => initializeContext,
|
|
15328
|
+
isValidBase64: () => isValidBase64,
|
|
15329
|
+
isValidBase64URL: () => isValidBase64URL,
|
|
15330
|
+
isValidJWT: () => isValidJWT,
|
|
15331
|
+
locales: () => locales_exports,
|
|
15332
|
+
meta: () => meta,
|
|
15333
|
+
parse: () => parse2,
|
|
15334
|
+
parseAsync: () => parseAsync,
|
|
15335
|
+
prettifyError: () => prettifyError,
|
|
15336
|
+
process: () => process,
|
|
15337
|
+
regexes: () => regexes_exports,
|
|
15338
|
+
registry: () => registry,
|
|
15339
|
+
safeDecode: () => safeDecode,
|
|
15340
|
+
safeDecodeAsync: () => safeDecodeAsync,
|
|
15341
|
+
safeEncode: () => safeEncode,
|
|
15342
|
+
safeEncodeAsync: () => safeEncodeAsync,
|
|
15343
|
+
safeParse: () => safeParse,
|
|
15344
|
+
safeParseAsync: () => safeParseAsync,
|
|
15345
|
+
toDotPath: () => toDotPath,
|
|
15346
|
+
toJSONSchema: () => toJSONSchema,
|
|
15347
|
+
treeifyError: () => treeifyError,
|
|
15348
|
+
util: () => util_exports,
|
|
15349
|
+
version: () => version3
|
|
15350
|
+
});
|
|
15351
|
+
|
|
15327
15352
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
15328
15353
|
var JSONSchemaGenerator = class {
|
|
15329
15354
|
/** @deprecated Access via ctx instead */
|
|
@@ -15427,8 +15452,8 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
|
|
|
15427
15452
|
inst.with = inst.check;
|
|
15428
15453
|
inst.clone = (_def, params) => clone(inst, _def, params);
|
|
15429
15454
|
inst.brand = () => inst;
|
|
15430
|
-
inst.register = ((reg,
|
|
15431
|
-
reg.add(inst,
|
|
15455
|
+
inst.register = ((reg, meta3) => {
|
|
15456
|
+
reg.add(inst, meta3);
|
|
15432
15457
|
return inst;
|
|
15433
15458
|
});
|
|
15434
15459
|
inst.apply = (fn) => fn(inst);
|
|
@@ -16356,632 +16381,266 @@ __export(coerce_exports, {
|
|
|
16356
16381
|
function string3(params) {
|
|
16357
16382
|
return _coercedString(ZodMiniString, params);
|
|
16358
16383
|
}
|
|
16359
|
-
// @__NO_SIDE_EFFECTS__
|
|
16360
|
-
function number3(params) {
|
|
16361
|
-
return _coercedNumber(ZodMiniNumber, params);
|
|
16362
|
-
}
|
|
16363
|
-
// @__NO_SIDE_EFFECTS__
|
|
16364
|
-
function boolean3(params) {
|
|
16365
|
-
return _coercedBoolean(ZodMiniBoolean, params);
|
|
16366
|
-
}
|
|
16367
|
-
// @__NO_SIDE_EFFECTS__
|
|
16368
|
-
function bigint3(params) {
|
|
16369
|
-
return _coercedBigint(ZodMiniBigInt, params);
|
|
16370
|
-
}
|
|
16371
|
-
// @__NO_SIDE_EFFECTS__
|
|
16372
|
-
function date4(params) {
|
|
16373
|
-
return _coercedDate(ZodMiniDate, params);
|
|
16374
|
-
}
|
|
16375
|
-
|
|
16376
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/zod.js
|
|
16377
|
-
function amount() {
|
|
16378
|
-
return external_exports.string().check(external_exports.regex(/^\d+(\.\d+)?$/, "Invalid amount"));
|
|
16379
|
-
}
|
|
16380
|
-
function datetime3() {
|
|
16381
|
-
return external_exports.string().check(external_exports.regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/, "Invalid ISO 8601 datetime"));
|
|
16382
|
-
}
|
|
16383
|
-
function address() {
|
|
16384
|
-
return external_exports.string().check(external_exports.regex(/^0x[0-9a-fA-F]{40}$/, "Invalid address"));
|
|
16385
|
-
}
|
|
16386
|
-
function hash2() {
|
|
16387
|
-
return external_exports.string().check(external_exports.regex(/^0x[0-9a-fA-F]{64}$/, "Invalid hash"));
|
|
16388
|
-
}
|
|
16389
|
-
function period() {
|
|
16390
|
-
return external_exports.string().check(external_exports.regex(/^(day|week|month|year|\d+)$/, "Invalid period"));
|
|
16391
|
-
}
|
|
16392
|
-
function signature() {
|
|
16393
|
-
return external_exports.string().check(external_exports.regex(/^0x[0-9a-fA-F]+$/, "Invalid signature"));
|
|
16394
|
-
}
|
|
16395
|
-
function unwrapOptional(schema) {
|
|
16396
|
-
if (schema._zod.def.type === "optional")
|
|
16397
|
-
return schema._zod.def.innerType;
|
|
16398
|
-
return schema;
|
|
16399
|
-
}
|
|
16400
|
-
|
|
16401
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/Challenge.js
|
|
16402
|
-
var Challenge_exports = {};
|
|
16403
|
-
__export(Challenge_exports, {
|
|
16404
|
-
Schema: () => Schema,
|
|
16405
|
-
deserialize: () => deserialize2,
|
|
16406
|
-
deserializeList: () => deserializeList,
|
|
16407
|
-
from: () => from8,
|
|
16408
|
-
fromHeaders: () => fromHeaders,
|
|
16409
|
-
fromHeadersList: () => fromHeadersList,
|
|
16410
|
-
fromMethod: () => fromMethod2,
|
|
16411
|
-
fromResponse: () => fromResponse,
|
|
16412
|
-
fromResponseList: () => fromResponseList,
|
|
16413
|
-
meta: () => meta3,
|
|
16414
|
-
serialize: () => serialize2,
|
|
16415
|
-
verify: () => verify5
|
|
16416
|
-
});
|
|
16417
|
-
|
|
16418
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/internal/constantTimeEqual.js
|
|
16419
|
-
function constantTimeEqual(a, b) {
|
|
16420
|
-
const hashA = Hash_exports.sha256(Hex_exports.fromString(a));
|
|
16421
|
-
const hashB = Hash_exports.sha256(Hex_exports.fromString(b));
|
|
16422
|
-
let result = 0;
|
|
16423
|
-
for (let i = 0; i < hashA.length; i++)
|
|
16424
|
-
result |= hashA.charCodeAt(i) ^ hashB.charCodeAt(i);
|
|
16425
|
-
return result === 0;
|
|
16426
|
-
}
|
|
16427
|
-
|
|
16428
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/Challenge.js
|
|
16429
|
-
var Schema = object({
|
|
16430
|
-
/** Optional human-readable description of the payment. */
|
|
16431
|
-
description: optional(string2()),
|
|
16432
|
-
/** Optional digest of the request body (format: "sha-256=base64hash"). */
|
|
16433
|
-
digest: optional(string2().check(_regex(/^sha-256=/, "Invalid digest format"))),
|
|
16434
|
-
/** Optional expiration timestamp (ISO 8601). */
|
|
16435
|
-
expires: optional(datetime3()),
|
|
16436
|
-
/** Unique challenge identifier (HMAC-bound). */
|
|
16437
|
-
id: string2(),
|
|
16438
|
-
/** Intent type (e.g., "charge", "session"). */
|
|
16439
|
-
intent: string2(),
|
|
16440
|
-
/** Payment method (e.g., "tempo", "stripe"). */
|
|
16441
|
-
method: string2(),
|
|
16442
|
-
/** Optional server-defined correlation data. Flat string-to-string map; clients MUST NOT modify. */
|
|
16443
|
-
opaque: optional(record(string2(), string2())),
|
|
16444
|
-
/** Server realm (e.g., hostname). */
|
|
16445
|
-
realm: string2(),
|
|
16446
|
-
/** Method-specific request data. */
|
|
16447
|
-
request: record(string2(), unknown())
|
|
16448
|
-
});
|
|
16449
|
-
function from8(parameters, options) {
|
|
16450
|
-
void options;
|
|
16451
|
-
const { description, digest, meta: meta4, method: methodName, intent, realm, request, secretKey } = parameters;
|
|
16452
|
-
const expires = parameters.expires;
|
|
16453
|
-
const id = secretKey ? computeId({ ...parameters, expires, ...meta4 && { opaque: meta4 } }, { secretKey }) : parameters.id;
|
|
16454
|
-
return Schema.parse({
|
|
16455
|
-
id,
|
|
16456
|
-
realm,
|
|
16457
|
-
method: methodName,
|
|
16458
|
-
intent,
|
|
16459
|
-
request,
|
|
16460
|
-
...description && { description },
|
|
16461
|
-
...digest && { digest },
|
|
16462
|
-
...expires && { expires },
|
|
16463
|
-
...meta4 && { opaque: meta4 }
|
|
16464
|
-
});
|
|
16465
|
-
}
|
|
16466
|
-
function fromMethod2(method, parameters) {
|
|
16467
|
-
const { name: methodName, intent } = method;
|
|
16468
|
-
const { description, digest, expires, id, meta: meta4, realm, secretKey } = parameters;
|
|
16469
|
-
const request = fromMethod(method, parameters.request);
|
|
16470
|
-
return from8({
|
|
16471
|
-
...id ? { id } : { secretKey },
|
|
16472
|
-
realm,
|
|
16473
|
-
method: methodName,
|
|
16474
|
-
intent,
|
|
16475
|
-
request,
|
|
16476
|
-
description,
|
|
16477
|
-
digest,
|
|
16478
|
-
expires,
|
|
16479
|
-
meta: meta4
|
|
16480
|
-
});
|
|
16481
|
-
}
|
|
16482
|
-
function serialize2(challenge) {
|
|
16483
|
-
const parts = [
|
|
16484
|
-
`id="${challenge.id}"`,
|
|
16485
|
-
`realm="${challenge.realm}"`,
|
|
16486
|
-
`method="${challenge.method}"`,
|
|
16487
|
-
`intent="${challenge.intent}"`,
|
|
16488
|
-
`request="${serialize(challenge.request)}"`
|
|
16489
|
-
];
|
|
16490
|
-
if (challenge.description !== void 0)
|
|
16491
|
-
parts.push(`description="${challenge.description}"`);
|
|
16492
|
-
if (challenge.digest !== void 0)
|
|
16493
|
-
parts.push(`digest="${challenge.digest}"`);
|
|
16494
|
-
if (challenge.expires !== void 0)
|
|
16495
|
-
parts.push(`expires="${challenge.expires}"`);
|
|
16496
|
-
if (challenge.opaque !== void 0)
|
|
16497
|
-
parts.push(`opaque="${serialize(challenge.opaque)}"`);
|
|
16498
|
-
return `Payment ${parts.join(", ")}`;
|
|
16499
|
-
}
|
|
16500
|
-
function deserialize2(value, options) {
|
|
16501
|
-
const params = extractPaymentAuthParams(value);
|
|
16502
|
-
if (!params)
|
|
16503
|
-
throw new Error("Missing Payment scheme.");
|
|
16504
|
-
const result = parseAuthParams(params);
|
|
16505
|
-
const { request, opaque, ...rest } = result;
|
|
16506
|
-
if (!request)
|
|
16507
|
-
throw new Error("Missing request parameter.");
|
|
16508
|
-
if (rest.method && !/^[a-z][a-z0-9:_-]*$/.test(rest.method))
|
|
16509
|
-
throw new Error(`Invalid method: "${rest.method}". Must be lowercase per spec.`);
|
|
16510
|
-
return from8({
|
|
16511
|
-
...rest,
|
|
16512
|
-
request: deserialize(request),
|
|
16513
|
-
...opaque && { meta: deserialize(opaque) }
|
|
16514
|
-
}, options);
|
|
16515
|
-
}
|
|
16516
|
-
function extractPaymentAuthParams(header) {
|
|
16517
|
-
const token = "Payment";
|
|
16518
|
-
let inQuotes = false;
|
|
16519
|
-
let escaped = false;
|
|
16520
|
-
for (let i = 0; i < header.length; i++) {
|
|
16521
|
-
const char = header[i];
|
|
16522
|
-
if (inQuotes) {
|
|
16523
|
-
if (escaped)
|
|
16524
|
-
escaped = false;
|
|
16525
|
-
else if (char === "\\")
|
|
16526
|
-
escaped = true;
|
|
16527
|
-
else if (char === '"')
|
|
16528
|
-
inQuotes = false;
|
|
16529
|
-
continue;
|
|
16530
|
-
}
|
|
16531
|
-
if (char === '"') {
|
|
16532
|
-
inQuotes = true;
|
|
16533
|
-
continue;
|
|
16534
|
-
}
|
|
16535
|
-
if (!startsWithSchemeToken(header, i, token))
|
|
16536
|
-
continue;
|
|
16537
|
-
const prefix = header.slice(0, i);
|
|
16538
|
-
if (prefix.trim() && !prefix.trimEnd().endsWith(","))
|
|
16539
|
-
continue;
|
|
16540
|
-
let paramsStart = i + token.length;
|
|
16541
|
-
while (paramsStart < header.length && /\s/.test(header[paramsStart] ?? ""))
|
|
16542
|
-
paramsStart++;
|
|
16543
|
-
return header.slice(paramsStart);
|
|
16544
|
-
}
|
|
16545
|
-
return null;
|
|
16546
|
-
}
|
|
16547
|
-
function parseAuthParams(input) {
|
|
16548
|
-
const result = {};
|
|
16549
|
-
let i = 0;
|
|
16550
|
-
while (i < input.length) {
|
|
16551
|
-
while (i < input.length && /[\s,]/.test(input[i] ?? ""))
|
|
16552
|
-
i++;
|
|
16553
|
-
if (i >= input.length)
|
|
16554
|
-
break;
|
|
16555
|
-
const keyStart = i;
|
|
16556
|
-
while (i < input.length && /[A-Za-z0-9_-]/.test(input[i] ?? ""))
|
|
16557
|
-
i++;
|
|
16558
|
-
const key = input.slice(keyStart, i);
|
|
16559
|
-
if (!key)
|
|
16560
|
-
throw new Error("Malformed auth-param.");
|
|
16561
|
-
while (i < input.length && /\s/.test(input[i] ?? ""))
|
|
16562
|
-
i++;
|
|
16563
|
-
if (input[i] !== "=")
|
|
16564
|
-
break;
|
|
16565
|
-
i++;
|
|
16566
|
-
while (i < input.length && /\s/.test(input[i] ?? ""))
|
|
16567
|
-
i++;
|
|
16568
|
-
const [value, nextIndex] = readAuthParamValue(input, i);
|
|
16569
|
-
i = nextIndex;
|
|
16570
|
-
if (key in result)
|
|
16571
|
-
throw new Error(`Duplicate parameter: ${key}`);
|
|
16572
|
-
result[key] = value;
|
|
16573
|
-
}
|
|
16574
|
-
return result;
|
|
16575
|
-
}
|
|
16576
|
-
function readAuthParamValue(input, start) {
|
|
16577
|
-
if (input[start] === '"')
|
|
16578
|
-
return readQuotedAuthParamValue(input, start + 1);
|
|
16579
|
-
let i = start;
|
|
16580
|
-
while (i < input.length && input[i] !== ",")
|
|
16581
|
-
i++;
|
|
16582
|
-
return [input.slice(start, i).trim(), i];
|
|
16583
|
-
}
|
|
16584
|
-
function readQuotedAuthParamValue(input, start) {
|
|
16585
|
-
let i = start;
|
|
16586
|
-
let value = "";
|
|
16587
|
-
let escaped = false;
|
|
16588
|
-
while (i < input.length) {
|
|
16589
|
-
const char = input[i];
|
|
16590
|
-
i++;
|
|
16591
|
-
if (escaped) {
|
|
16592
|
-
value += char;
|
|
16593
|
-
escaped = false;
|
|
16594
|
-
continue;
|
|
16595
|
-
}
|
|
16596
|
-
if (char === "\\") {
|
|
16597
|
-
escaped = true;
|
|
16598
|
-
continue;
|
|
16599
|
-
}
|
|
16600
|
-
if (char === '"')
|
|
16601
|
-
return [value, i];
|
|
16602
|
-
value += char;
|
|
16603
|
-
}
|
|
16604
|
-
throw new Error("Unterminated quoted-string.");
|
|
16605
|
-
}
|
|
16606
|
-
function startsWithSchemeToken(value, index, token) {
|
|
16607
|
-
if (!value.slice(index).toLowerCase().startsWith(token.toLowerCase()))
|
|
16608
|
-
return false;
|
|
16609
|
-
const next = value[index + token.length];
|
|
16610
|
-
return Boolean(next && /\s/.test(next));
|
|
16611
|
-
}
|
|
16612
|
-
function fromHeaders(headers, options) {
|
|
16613
|
-
const header = headers.get("WWW-Authenticate");
|
|
16614
|
-
if (!header)
|
|
16615
|
-
throw new Error("Missing WWW-Authenticate header.");
|
|
16616
|
-
return deserialize2(header, options);
|
|
16617
|
-
}
|
|
16618
|
-
function fromResponse(response, options) {
|
|
16619
|
-
if (response.status !== 402)
|
|
16620
|
-
throw new Error("Response status is not 402.");
|
|
16621
|
-
return fromHeaders(response.headers, options);
|
|
16622
|
-
}
|
|
16623
|
-
function fromResponseList(response, options) {
|
|
16624
|
-
if (response.status !== 402)
|
|
16625
|
-
throw new Error("Response status is not 402.");
|
|
16626
|
-
return fromHeadersList(response.headers, options);
|
|
16627
|
-
}
|
|
16628
|
-
function fromHeadersList(headers, options) {
|
|
16629
|
-
const header = headers.get("WWW-Authenticate");
|
|
16630
|
-
if (!header)
|
|
16631
|
-
throw new Error("Missing WWW-Authenticate header.");
|
|
16632
|
-
return deserializeList(header, options);
|
|
16633
|
-
}
|
|
16634
|
-
function deserializeList(value, options) {
|
|
16635
|
-
const starts = [];
|
|
16636
|
-
for (const match of value.matchAll(/Payment\s+/gi)) {
|
|
16637
|
-
starts.push(match.index);
|
|
16638
|
-
}
|
|
16639
|
-
if (starts.length === 0)
|
|
16640
|
-
throw new Error("No Payment schemes found.");
|
|
16641
|
-
return starts.map((start, i) => {
|
|
16642
|
-
const end = i + 1 < starts.length ? starts[i + 1] : value.length;
|
|
16643
|
-
const chunk = value.slice(start, end).replace(/,\s*$/, "");
|
|
16644
|
-
return deserialize2(chunk, options);
|
|
16645
|
-
});
|
|
16646
|
-
}
|
|
16647
|
-
function verify5(challenge, options) {
|
|
16648
|
-
const expectedId = computeId(challenge, options);
|
|
16649
|
-
return constantTimeEqual(challenge.id, expectedId);
|
|
16650
|
-
}
|
|
16651
|
-
function meta3(challenge) {
|
|
16652
|
-
return challenge.opaque;
|
|
16653
|
-
}
|
|
16654
|
-
function computeId(challenge, options) {
|
|
16655
|
-
const input = [
|
|
16656
|
-
challenge.realm,
|
|
16657
|
-
challenge.method,
|
|
16658
|
-
challenge.intent,
|
|
16659
|
-
serialize(challenge.request),
|
|
16660
|
-
challenge.expires ?? "",
|
|
16661
|
-
challenge.digest ?? "",
|
|
16662
|
-
challenge.opaque ? serialize(challenge.opaque) : ""
|
|
16663
|
-
].join("|");
|
|
16664
|
-
const key = Bytes_exports.fromString(options.secretKey);
|
|
16665
|
-
const data = Bytes_exports.fromString(input);
|
|
16666
|
-
const mac3 = Hash_exports.hmac256(key, data, { as: "Bytes" });
|
|
16667
|
-
return Base64_exports.fromBytes(mac3, { url: true, pad: false });
|
|
16668
|
-
}
|
|
16669
|
-
|
|
16670
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/Credential.js
|
|
16671
|
-
var Credential_exports = {};
|
|
16672
|
-
__export(Credential_exports, {
|
|
16673
|
-
deserialize: () => deserialize3,
|
|
16674
|
-
extractPaymentScheme: () => extractPaymentScheme,
|
|
16675
|
-
from: () => from9,
|
|
16676
|
-
fromRequest: () => fromRequest,
|
|
16677
|
-
serialize: () => serialize3
|
|
16678
|
-
});
|
|
16679
|
-
function deserialize3(value) {
|
|
16680
|
-
const prefixMatch = value.match(/^Payment\s+(.+)$/i);
|
|
16681
|
-
if (!prefixMatch?.[1])
|
|
16682
|
-
throw new Error("Missing Payment scheme.");
|
|
16683
|
-
try {
|
|
16684
|
-
const json2 = Base64_exports.toString(prefixMatch[1]);
|
|
16685
|
-
const parsed = JSON.parse(json2);
|
|
16686
|
-
const challenge = Schema.parse({
|
|
16687
|
-
...parsed.challenge,
|
|
16688
|
-
request: deserialize(parsed.challenge.request)
|
|
16689
|
-
});
|
|
16690
|
-
return {
|
|
16691
|
-
challenge,
|
|
16692
|
-
payload: parsed.payload,
|
|
16693
|
-
...parsed.source && { source: parsed.source }
|
|
16694
|
-
};
|
|
16695
|
-
} catch {
|
|
16696
|
-
throw new Error("Invalid base64url or JSON.");
|
|
16697
|
-
}
|
|
16698
|
-
}
|
|
16699
|
-
function from9(parameters) {
|
|
16700
|
-
const { challenge, payload, source } = parameters;
|
|
16701
|
-
return {
|
|
16702
|
-
challenge,
|
|
16703
|
-
payload,
|
|
16704
|
-
...source && { source }
|
|
16705
|
-
};
|
|
16706
|
-
}
|
|
16707
|
-
function fromRequest(request) {
|
|
16708
|
-
const header = request.headers.get("Authorization");
|
|
16709
|
-
if (!header)
|
|
16710
|
-
throw new Error("Missing Authorization header.");
|
|
16711
|
-
const payment = extractPaymentScheme(header);
|
|
16712
|
-
if (!payment)
|
|
16713
|
-
throw new Error("Missing Payment scheme.");
|
|
16714
|
-
return deserialize3(payment);
|
|
16715
|
-
}
|
|
16716
|
-
function serialize3(credential) {
|
|
16717
|
-
const wire = {
|
|
16718
|
-
challenge: {
|
|
16719
|
-
...credential.challenge,
|
|
16720
|
-
request: serialize(credential.challenge.request)
|
|
16721
|
-
},
|
|
16722
|
-
payload: credential.payload,
|
|
16723
|
-
...credential.source && { source: credential.source }
|
|
16724
|
-
};
|
|
16725
|
-
const json2 = JSON.stringify(wire);
|
|
16726
|
-
const encoded = Base64_exports.fromString(json2, { pad: false, url: true });
|
|
16727
|
-
return `Payment ${encoded}`;
|
|
16728
|
-
}
|
|
16729
|
-
function extractPaymentScheme(header) {
|
|
16730
|
-
const schemes = header.split(",").map((s) => s.trim());
|
|
16731
|
-
return schemes.find((s) => /^Payment\s+/i.test(s)) ?? null;
|
|
16732
|
-
}
|
|
16733
|
-
|
|
16734
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/Method.js
|
|
16735
|
-
var Method_exports = {};
|
|
16736
|
-
__export(Method_exports, {
|
|
16737
|
-
from: () => from10,
|
|
16738
|
-
toClient: () => toClient,
|
|
16739
|
-
toServer: () => toServer
|
|
16740
|
-
});
|
|
16741
|
-
function from10(method) {
|
|
16742
|
-
return method;
|
|
16743
|
-
}
|
|
16744
|
-
function toClient(method, options) {
|
|
16745
|
-
const { context, createCredential } = options;
|
|
16746
|
-
return {
|
|
16747
|
-
...method,
|
|
16748
|
-
context,
|
|
16749
|
-
createCredential
|
|
16750
|
-
};
|
|
16751
|
-
}
|
|
16752
|
-
function toServer(method, options) {
|
|
16753
|
-
const { defaults, request, respond, transport, verify: verify6 } = options;
|
|
16754
|
-
return {
|
|
16755
|
-
...method,
|
|
16756
|
-
defaults,
|
|
16757
|
-
request,
|
|
16758
|
-
respond,
|
|
16759
|
-
transport,
|
|
16760
|
-
verify: verify6
|
|
16761
|
-
};
|
|
16762
|
-
}
|
|
16763
|
-
|
|
16764
|
-
// ../../node_modules/.pnpm/mppx@0.4.9_@modelcontextprotocol+sdk@1.28.0_zod@4.4.3__express@5.2.1_hono@4.12.9_openap_a5bd8709643e33148686c341f103678d/node_modules/mppx/dist/Errors.js
|
|
16765
|
-
var Errors_exports2 = {};
|
|
16766
|
-
__export(Errors_exports2, {
|
|
16767
|
-
AmountExceedsDepositError: () => AmountExceedsDepositError,
|
|
16768
|
-
BadRequestError: () => BadRequestError,
|
|
16769
|
-
ChannelClosedError: () => ChannelClosedError,
|
|
16770
|
-
ChannelNotFoundError: () => ChannelNotFoundError,
|
|
16771
|
-
DeltaTooSmallError: () => DeltaTooSmallError,
|
|
16772
|
-
InsufficientBalanceError: () => InsufficientBalanceError,
|
|
16773
|
-
InvalidChallengeError: () => InvalidChallengeError,
|
|
16774
|
-
InvalidPayloadError: () => InvalidPayloadError,
|
|
16775
|
-
InvalidSignatureError: () => InvalidSignatureError,
|
|
16776
|
-
MalformedCredentialError: () => MalformedCredentialError,
|
|
16777
|
-
PaymentActionRequiredError: () => PaymentActionRequiredError,
|
|
16778
|
-
PaymentError: () => PaymentError,
|
|
16779
|
-
PaymentExpiredError: () => PaymentExpiredError,
|
|
16780
|
-
PaymentInsufficientError: () => PaymentInsufficientError,
|
|
16781
|
-
PaymentMethodUnsupportedError: () => PaymentMethodUnsupportedError,
|
|
16782
|
-
PaymentRequiredError: () => PaymentRequiredError,
|
|
16783
|
-
SignerMismatchError: () => SignerMismatchError,
|
|
16784
|
-
VerificationFailedError: () => VerificationFailedError
|
|
16785
|
-
});
|
|
16786
|
-
var PaymentError = class extends Error {
|
|
16787
|
-
/** HTTP status code. */
|
|
16788
|
-
status = 402;
|
|
16789
|
-
/** Converts the error to RFC 9457 Problem Details format. */
|
|
16790
|
-
toProblemDetails(challengeId) {
|
|
16791
|
-
return {
|
|
16792
|
-
type: this.type,
|
|
16793
|
-
title: this.title,
|
|
16794
|
-
status: this.status,
|
|
16795
|
-
detail: this.message,
|
|
16796
|
-
...challengeId && { challengeId }
|
|
16797
|
-
};
|
|
16798
|
-
}
|
|
16799
|
-
};
|
|
16800
|
-
var MalformedCredentialError = class extends PaymentError {
|
|
16801
|
-
name = "MalformedCredentialError";
|
|
16802
|
-
title = "Malformed Credential";
|
|
16803
|
-
status = 402;
|
|
16804
|
-
type = "https://paymentauth.org/problems/malformed-credential";
|
|
16805
|
-
constructor(options = {}) {
|
|
16806
|
-
const { reason } = options;
|
|
16807
|
-
super(reason ? `Credential is malformed: ${reason}.` : "Credential is malformed.");
|
|
16808
|
-
}
|
|
16809
|
-
};
|
|
16810
|
-
var InvalidChallengeError = class extends PaymentError {
|
|
16811
|
-
name = "InvalidChallengeError";
|
|
16812
|
-
title = "Invalid Challenge";
|
|
16813
|
-
status = 402;
|
|
16814
|
-
type = "https://paymentauth.org/problems/invalid-challenge";
|
|
16815
|
-
constructor(options = {}) {
|
|
16816
|
-
const { id, reason } = options;
|
|
16817
|
-
const idPart = id ? ` "${id}"` : "";
|
|
16818
|
-
const reasonPart = reason ? `: ${reason}` : "";
|
|
16819
|
-
super(`Challenge${idPart} is invalid${reasonPart}.`);
|
|
16820
|
-
}
|
|
16821
|
-
};
|
|
16822
|
-
var VerificationFailedError = class extends PaymentError {
|
|
16823
|
-
name = "VerificationFailedError";
|
|
16824
|
-
title = "Verification Failed";
|
|
16825
|
-
type = "https://paymentauth.org/problems/verification-failed";
|
|
16826
|
-
constructor(options = {}) {
|
|
16827
|
-
const { reason } = options;
|
|
16828
|
-
super(reason ? `Payment verification failed: ${reason}.` : "Payment verification failed.");
|
|
16829
|
-
}
|
|
16830
|
-
};
|
|
16831
|
-
var PaymentActionRequiredError = class extends PaymentError {
|
|
16832
|
-
name = "PaymentActionRequiredError";
|
|
16833
|
-
title = "Payment Action Required";
|
|
16834
|
-
type = "https://paymentauth.org/problems/payment-action-required";
|
|
16835
|
-
constructor(options = {}) {
|
|
16836
|
-
const { reason } = options;
|
|
16837
|
-
super(reason ? `Payment requires action: ${reason}.` : "Payment requires action.");
|
|
16838
|
-
}
|
|
16839
|
-
};
|
|
16840
|
-
var PaymentExpiredError = class extends PaymentError {
|
|
16841
|
-
name = "PaymentExpiredError";
|
|
16842
|
-
title = "Payment Expired";
|
|
16843
|
-
type = "https://paymentauth.org/problems/payment-expired";
|
|
16844
|
-
constructor(options = {}) {
|
|
16845
|
-
const { expires } = options;
|
|
16846
|
-
super(expires ? `Payment expired at ${expires}.` : "Payment has expired.");
|
|
16847
|
-
}
|
|
16848
|
-
};
|
|
16849
|
-
var PaymentRequiredError = class extends PaymentError {
|
|
16850
|
-
name = "PaymentRequiredError";
|
|
16851
|
-
title = "Payment Required";
|
|
16852
|
-
type = "https://paymentauth.org/problems/payment-required";
|
|
16853
|
-
constructor(options = {}) {
|
|
16854
|
-
const { description } = options;
|
|
16855
|
-
const parts = ["Payment is required"];
|
|
16856
|
-
if (description)
|
|
16857
|
-
parts.push(`(${description})`);
|
|
16858
|
-
super(`${parts.join(" ")}.`);
|
|
16859
|
-
}
|
|
16860
|
-
};
|
|
16861
|
-
var InvalidPayloadError = class extends PaymentError {
|
|
16862
|
-
name = "InvalidPayloadError";
|
|
16863
|
-
title = "Invalid Payload";
|
|
16864
|
-
type = "https://paymentauth.org/problems/invalid-payload";
|
|
16865
|
-
constructor(options = {}) {
|
|
16866
|
-
const { reason } = options;
|
|
16867
|
-
super(reason ? `Credential payload is invalid: ${reason}.` : "Credential payload is invalid.");
|
|
16868
|
-
}
|
|
16869
|
-
};
|
|
16870
|
-
var BadRequestError = class extends PaymentError {
|
|
16871
|
-
name = "BadRequestError";
|
|
16872
|
-
title = "Bad Request";
|
|
16873
|
-
status = 400;
|
|
16874
|
-
type = "https://paymentauth.org/problems/bad-request";
|
|
16875
|
-
constructor(options = {}) {
|
|
16876
|
-
const { reason } = options;
|
|
16877
|
-
super(reason ? `Bad request: ${reason}.` : "Bad request.");
|
|
16878
|
-
}
|
|
16879
|
-
};
|
|
16880
|
-
var PaymentInsufficientError = class extends PaymentError {
|
|
16881
|
-
name = "PaymentInsufficientError";
|
|
16882
|
-
title = "Payment Insufficient";
|
|
16883
|
-
type = "https://paymentauth.org/problems/payment-insufficient";
|
|
16884
|
-
constructor(options = {}) {
|
|
16885
|
-
const { reason } = options;
|
|
16886
|
-
super(reason ? `Payment insufficient: ${reason}.` : "Payment amount is insufficient.");
|
|
16887
|
-
}
|
|
16888
|
-
};
|
|
16889
|
-
var PaymentMethodUnsupportedError = class extends PaymentError {
|
|
16890
|
-
name = "PaymentMethodUnsupportedError";
|
|
16891
|
-
title = "Method Unsupported";
|
|
16892
|
-
status = 400;
|
|
16893
|
-
type = "https://paymentauth.org/problems/method-unsupported";
|
|
16894
|
-
constructor(options = {}) {
|
|
16895
|
-
const { method } = options;
|
|
16896
|
-
super(method ? `Payment method "${method}" is not supported.` : "Payment method is not supported.");
|
|
16897
|
-
}
|
|
16898
|
-
};
|
|
16899
|
-
var InsufficientBalanceError = class extends PaymentError {
|
|
16900
|
-
name = "InsufficientBalanceError";
|
|
16901
|
-
title = "Insufficient Balance";
|
|
16902
|
-
status = 402;
|
|
16903
|
-
type = "https://paymentauth.org/problems/session/insufficient-balance";
|
|
16904
|
-
constructor(options = {}) {
|
|
16905
|
-
const { reason } = options;
|
|
16906
|
-
super(reason ? `Insufficient balance: ${reason}.` : "Insufficient balance.");
|
|
16907
|
-
}
|
|
16908
|
-
};
|
|
16909
|
-
var InvalidSignatureError = class extends PaymentError {
|
|
16910
|
-
name = "InvalidSignatureError";
|
|
16911
|
-
title = "Invalid Signature";
|
|
16912
|
-
status = 402;
|
|
16913
|
-
type = "https://paymentauth.org/problems/session/invalid-signature";
|
|
16914
|
-
constructor(options = {}) {
|
|
16915
|
-
const { reason } = options;
|
|
16916
|
-
super(reason ? `Invalid signature: ${reason}.` : "Invalid signature.");
|
|
16917
|
-
}
|
|
16918
|
-
};
|
|
16919
|
-
var SignerMismatchError = class extends PaymentError {
|
|
16920
|
-
name = "SignerMismatchError";
|
|
16921
|
-
title = "Signer Mismatch";
|
|
16922
|
-
status = 402;
|
|
16923
|
-
type = "https://paymentauth.org/problems/session/signer-mismatch";
|
|
16924
|
-
constructor(options = {}) {
|
|
16925
|
-
const { reason } = options;
|
|
16926
|
-
super(reason ? `Signer mismatch: ${reason}.` : "Signer is not authorized for this channel.");
|
|
16927
|
-
}
|
|
16928
|
-
};
|
|
16929
|
-
var AmountExceedsDepositError = class extends PaymentError {
|
|
16930
|
-
name = "AmountExceedsDepositError";
|
|
16931
|
-
title = "Amount Exceeds Deposit";
|
|
16932
|
-
status = 402;
|
|
16933
|
-
type = "https://paymentauth.org/problems/session/amount-exceeds-deposit";
|
|
16934
|
-
constructor(options = {}) {
|
|
16935
|
-
const { reason } = options;
|
|
16936
|
-
super(reason ? `Amount exceeds deposit: ${reason}.` : "Voucher amount exceeds channel deposit.");
|
|
16937
|
-
}
|
|
16938
|
-
};
|
|
16939
|
-
var DeltaTooSmallError = class extends PaymentError {
|
|
16940
|
-
name = "DeltaTooSmallError";
|
|
16941
|
-
title = "Delta Too Small";
|
|
16942
|
-
status = 402;
|
|
16943
|
-
type = "https://paymentauth.org/problems/session/delta-too-small";
|
|
16944
|
-
constructor(options = {}) {
|
|
16945
|
-
const { reason } = options;
|
|
16946
|
-
super(reason ? `Delta too small: ${reason}.` : "Amount increase below minimum voucher delta.");
|
|
16947
|
-
}
|
|
16948
|
-
};
|
|
16949
|
-
var ChannelNotFoundError = class extends PaymentError {
|
|
16950
|
-
name = "ChannelNotFoundError";
|
|
16951
|
-
title = "Channel Not Found";
|
|
16952
|
-
status = 410;
|
|
16953
|
-
type = "https://paymentauth.org/problems/session/channel-not-found";
|
|
16954
|
-
constructor(options = {}) {
|
|
16955
|
-
const { reason } = options;
|
|
16956
|
-
super(reason ? `Channel not found: ${reason}.` : "No channel with this ID exists.");
|
|
16957
|
-
}
|
|
16958
|
-
};
|
|
16959
|
-
var ChannelClosedError = class extends PaymentError {
|
|
16960
|
-
name = "ChannelClosedError";
|
|
16961
|
-
title = "Channel Closed";
|
|
16962
|
-
status = 410;
|
|
16963
|
-
type = "https://paymentauth.org/problems/session/channel-finalized";
|
|
16964
|
-
constructor(options = {}) {
|
|
16965
|
-
const { reason } = options;
|
|
16966
|
-
super(reason ? `Channel closed: ${reason}.` : "Channel is closed.");
|
|
16967
|
-
}
|
|
16968
|
-
};
|
|
16384
|
+
// @__NO_SIDE_EFFECTS__
|
|
16385
|
+
function number3(params) {
|
|
16386
|
+
return _coercedNumber(ZodMiniNumber, params);
|
|
16387
|
+
}
|
|
16388
|
+
// @__NO_SIDE_EFFECTS__
|
|
16389
|
+
function boolean3(params) {
|
|
16390
|
+
return _coercedBoolean(ZodMiniBoolean, params);
|
|
16391
|
+
}
|
|
16392
|
+
// @__NO_SIDE_EFFECTS__
|
|
16393
|
+
function bigint3(params) {
|
|
16394
|
+
return _coercedBigint(ZodMiniBigInt, params);
|
|
16395
|
+
}
|
|
16396
|
+
// @__NO_SIDE_EFFECTS__
|
|
16397
|
+
function date4(params) {
|
|
16398
|
+
return _coercedDate(ZodMiniDate, params);
|
|
16399
|
+
}
|
|
16969
16400
|
|
|
16970
|
-
// ../../node_modules/.pnpm/
|
|
16971
|
-
var
|
|
16972
|
-
__export(
|
|
16973
|
-
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16401
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
|
|
16402
|
+
var external_exports = {};
|
|
16403
|
+
__export(external_exports, {
|
|
16404
|
+
$brand: () => $brand,
|
|
16405
|
+
$input: () => $input,
|
|
16406
|
+
$output: () => $output,
|
|
16407
|
+
NEVER: () => NEVER,
|
|
16408
|
+
TimePrecision: () => TimePrecision,
|
|
16409
|
+
ZodMiniAny: () => ZodMiniAny,
|
|
16410
|
+
ZodMiniArray: () => ZodMiniArray,
|
|
16411
|
+
ZodMiniBase64: () => ZodMiniBase64,
|
|
16412
|
+
ZodMiniBase64URL: () => ZodMiniBase64URL,
|
|
16413
|
+
ZodMiniBigInt: () => ZodMiniBigInt,
|
|
16414
|
+
ZodMiniBigIntFormat: () => ZodMiniBigIntFormat,
|
|
16415
|
+
ZodMiniBoolean: () => ZodMiniBoolean,
|
|
16416
|
+
ZodMiniCIDRv4: () => ZodMiniCIDRv4,
|
|
16417
|
+
ZodMiniCIDRv6: () => ZodMiniCIDRv6,
|
|
16418
|
+
ZodMiniCUID: () => ZodMiniCUID,
|
|
16419
|
+
ZodMiniCUID2: () => ZodMiniCUID2,
|
|
16420
|
+
ZodMiniCatch: () => ZodMiniCatch,
|
|
16421
|
+
ZodMiniCodec: () => ZodMiniCodec,
|
|
16422
|
+
ZodMiniCustom: () => ZodMiniCustom,
|
|
16423
|
+
ZodMiniCustomStringFormat: () => ZodMiniCustomStringFormat,
|
|
16424
|
+
ZodMiniDate: () => ZodMiniDate,
|
|
16425
|
+
ZodMiniDefault: () => ZodMiniDefault,
|
|
16426
|
+
ZodMiniDiscriminatedUnion: () => ZodMiniDiscriminatedUnion,
|
|
16427
|
+
ZodMiniE164: () => ZodMiniE164,
|
|
16428
|
+
ZodMiniEmail: () => ZodMiniEmail,
|
|
16429
|
+
ZodMiniEmoji: () => ZodMiniEmoji,
|
|
16430
|
+
ZodMiniEnum: () => ZodMiniEnum,
|
|
16431
|
+
ZodMiniExactOptional: () => ZodMiniExactOptional,
|
|
16432
|
+
ZodMiniFile: () => ZodMiniFile,
|
|
16433
|
+
ZodMiniFunction: () => ZodMiniFunction,
|
|
16434
|
+
ZodMiniGUID: () => ZodMiniGUID,
|
|
16435
|
+
ZodMiniIPv4: () => ZodMiniIPv4,
|
|
16436
|
+
ZodMiniIPv6: () => ZodMiniIPv6,
|
|
16437
|
+
ZodMiniISODate: () => ZodMiniISODate,
|
|
16438
|
+
ZodMiniISODateTime: () => ZodMiniISODateTime,
|
|
16439
|
+
ZodMiniISODuration: () => ZodMiniISODuration,
|
|
16440
|
+
ZodMiniISOTime: () => ZodMiniISOTime,
|
|
16441
|
+
ZodMiniIntersection: () => ZodMiniIntersection,
|
|
16442
|
+
ZodMiniJWT: () => ZodMiniJWT,
|
|
16443
|
+
ZodMiniKSUID: () => ZodMiniKSUID,
|
|
16444
|
+
ZodMiniLazy: () => ZodMiniLazy,
|
|
16445
|
+
ZodMiniLiteral: () => ZodMiniLiteral,
|
|
16446
|
+
ZodMiniMAC: () => ZodMiniMAC,
|
|
16447
|
+
ZodMiniMap: () => ZodMiniMap,
|
|
16448
|
+
ZodMiniNaN: () => ZodMiniNaN,
|
|
16449
|
+
ZodMiniNanoID: () => ZodMiniNanoID,
|
|
16450
|
+
ZodMiniNever: () => ZodMiniNever,
|
|
16451
|
+
ZodMiniNonOptional: () => ZodMiniNonOptional,
|
|
16452
|
+
ZodMiniNull: () => ZodMiniNull,
|
|
16453
|
+
ZodMiniNullable: () => ZodMiniNullable,
|
|
16454
|
+
ZodMiniNumber: () => ZodMiniNumber,
|
|
16455
|
+
ZodMiniNumberFormat: () => ZodMiniNumberFormat,
|
|
16456
|
+
ZodMiniObject: () => ZodMiniObject,
|
|
16457
|
+
ZodMiniOptional: () => ZodMiniOptional,
|
|
16458
|
+
ZodMiniPipe: () => ZodMiniPipe,
|
|
16459
|
+
ZodMiniPrefault: () => ZodMiniPrefault,
|
|
16460
|
+
ZodMiniPromise: () => ZodMiniPromise,
|
|
16461
|
+
ZodMiniReadonly: () => ZodMiniReadonly,
|
|
16462
|
+
ZodMiniRecord: () => ZodMiniRecord,
|
|
16463
|
+
ZodMiniSet: () => ZodMiniSet,
|
|
16464
|
+
ZodMiniString: () => ZodMiniString,
|
|
16465
|
+
ZodMiniStringFormat: () => ZodMiniStringFormat,
|
|
16466
|
+
ZodMiniSuccess: () => ZodMiniSuccess,
|
|
16467
|
+
ZodMiniSymbol: () => ZodMiniSymbol,
|
|
16468
|
+
ZodMiniTemplateLiteral: () => ZodMiniTemplateLiteral,
|
|
16469
|
+
ZodMiniTransform: () => ZodMiniTransform,
|
|
16470
|
+
ZodMiniTuple: () => ZodMiniTuple,
|
|
16471
|
+
ZodMiniType: () => ZodMiniType,
|
|
16472
|
+
ZodMiniULID: () => ZodMiniULID,
|
|
16473
|
+
ZodMiniURL: () => ZodMiniURL,
|
|
16474
|
+
ZodMiniUUID: () => ZodMiniUUID,
|
|
16475
|
+
ZodMiniUndefined: () => ZodMiniUndefined,
|
|
16476
|
+
ZodMiniUnion: () => ZodMiniUnion,
|
|
16477
|
+
ZodMiniUnknown: () => ZodMiniUnknown,
|
|
16478
|
+
ZodMiniVoid: () => ZodMiniVoid,
|
|
16479
|
+
ZodMiniXID: () => ZodMiniXID,
|
|
16480
|
+
ZodMiniXor: () => ZodMiniXor,
|
|
16481
|
+
_default: () => _default2,
|
|
16482
|
+
_function: () => _function,
|
|
16483
|
+
any: () => any,
|
|
16484
|
+
array: () => array,
|
|
16485
|
+
base64: () => base642,
|
|
16486
|
+
base64url: () => base64url2,
|
|
16487
|
+
bigint: () => bigint2,
|
|
16488
|
+
boolean: () => boolean2,
|
|
16489
|
+
catch: () => _catch2,
|
|
16490
|
+
catchall: () => catchall,
|
|
16491
|
+
check: () => check,
|
|
16492
|
+
cidrv4: () => cidrv42,
|
|
16493
|
+
cidrv6: () => cidrv62,
|
|
16494
|
+
clone: () => clone,
|
|
16495
|
+
codec: () => codec,
|
|
16496
|
+
coerce: () => coerce_exports,
|
|
16497
|
+
config: () => config,
|
|
16498
|
+
core: () => core_exports2,
|
|
16499
|
+
cuid: () => cuid3,
|
|
16500
|
+
cuid2: () => cuid22,
|
|
16501
|
+
custom: () => custom,
|
|
16502
|
+
date: () => date2,
|
|
16503
|
+
decode: () => decode2,
|
|
16504
|
+
decodeAsync: () => decodeAsync,
|
|
16505
|
+
describe: () => describe2,
|
|
16506
|
+
discriminatedUnion: () => discriminatedUnion,
|
|
16507
|
+
e164: () => e1642,
|
|
16508
|
+
email: () => email2,
|
|
16509
|
+
emoji: () => emoji2,
|
|
16510
|
+
encode: () => encode3,
|
|
16511
|
+
encodeAsync: () => encodeAsync,
|
|
16512
|
+
endsWith: () => _endsWith,
|
|
16513
|
+
enum: () => _enum2,
|
|
16514
|
+
exactOptional: () => exactOptional,
|
|
16515
|
+
extend: () => extend2,
|
|
16516
|
+
file: () => file,
|
|
16517
|
+
flattenError: () => flattenError,
|
|
16518
|
+
float32: () => float32,
|
|
16519
|
+
float64: () => float64,
|
|
16520
|
+
formatError: () => formatError,
|
|
16521
|
+
function: () => _function,
|
|
16522
|
+
globalRegistry: () => globalRegistry,
|
|
16523
|
+
gt: () => _gt,
|
|
16524
|
+
gte: () => _gte,
|
|
16525
|
+
guid: () => guid2,
|
|
16526
|
+
hash: () => hash,
|
|
16527
|
+
hex: () => hex2,
|
|
16528
|
+
hostname: () => hostname2,
|
|
16529
|
+
httpUrl: () => httpUrl,
|
|
16530
|
+
includes: () => _includes,
|
|
16531
|
+
instanceof: () => _instanceof,
|
|
16532
|
+
int: () => int,
|
|
16533
|
+
int32: () => int32,
|
|
16534
|
+
int64: () => int64,
|
|
16535
|
+
intersection: () => intersection,
|
|
16536
|
+
invertCodec: () => invertCodec,
|
|
16537
|
+
ipv4: () => ipv42,
|
|
16538
|
+
ipv6: () => ipv62,
|
|
16539
|
+
iso: () => iso_exports,
|
|
16540
|
+
json: () => json,
|
|
16541
|
+
jwt: () => jwt,
|
|
16542
|
+
keyof: () => keyof,
|
|
16543
|
+
ksuid: () => ksuid2,
|
|
16544
|
+
lazy: () => _lazy2,
|
|
16545
|
+
length: () => _length,
|
|
16546
|
+
literal: () => literal,
|
|
16547
|
+
locales: () => locales_exports,
|
|
16548
|
+
looseObject: () => looseObject,
|
|
16549
|
+
looseRecord: () => looseRecord,
|
|
16550
|
+
lowercase: () => _lowercase,
|
|
16551
|
+
lt: () => _lt,
|
|
16552
|
+
lte: () => _lte,
|
|
16553
|
+
mac: () => mac2,
|
|
16554
|
+
map: () => map,
|
|
16555
|
+
maxLength: () => _maxLength,
|
|
16556
|
+
maxSize: () => _maxSize,
|
|
16557
|
+
maximum: () => _lte,
|
|
16558
|
+
merge: () => merge2,
|
|
16559
|
+
meta: () => meta2,
|
|
16560
|
+
mime: () => _mime,
|
|
16561
|
+
minLength: () => _minLength,
|
|
16562
|
+
minSize: () => _minSize,
|
|
16563
|
+
minimum: () => _gte,
|
|
16564
|
+
multipleOf: () => _multipleOf,
|
|
16565
|
+
nan: () => nan,
|
|
16566
|
+
nanoid: () => nanoid2,
|
|
16567
|
+
nativeEnum: () => nativeEnum,
|
|
16568
|
+
negative: () => _negative,
|
|
16569
|
+
never: () => never,
|
|
16570
|
+
nonnegative: () => _nonnegative,
|
|
16571
|
+
nonoptional: () => nonoptional,
|
|
16572
|
+
nonpositive: () => _nonpositive,
|
|
16573
|
+
normalize: () => _normalize,
|
|
16574
|
+
null: () => _null3,
|
|
16575
|
+
nullable: () => nullable,
|
|
16576
|
+
nullish: () => nullish2,
|
|
16577
|
+
number: () => number2,
|
|
16578
|
+
object: () => object,
|
|
16579
|
+
omit: () => omit2,
|
|
16580
|
+
optional: () => optional,
|
|
16581
|
+
overwrite: () => _overwrite,
|
|
16582
|
+
parse: () => parse2,
|
|
16583
|
+
parseAsync: () => parseAsync,
|
|
16584
|
+
partial: () => partial2,
|
|
16585
|
+
partialRecord: () => partialRecord,
|
|
16586
|
+
pick: () => pick2,
|
|
16587
|
+
pipe: () => pipe,
|
|
16588
|
+
positive: () => _positive,
|
|
16589
|
+
prefault: () => prefault,
|
|
16590
|
+
prettifyError: () => prettifyError,
|
|
16591
|
+
promise: () => promise,
|
|
16592
|
+
property: () => _property,
|
|
16593
|
+
readonly: () => readonly,
|
|
16594
|
+
record: () => record,
|
|
16595
|
+
refine: () => refine,
|
|
16596
|
+
regex: () => _regex,
|
|
16597
|
+
regexes: () => regexes_exports,
|
|
16598
|
+
registry: () => registry,
|
|
16599
|
+
required: () => required2,
|
|
16600
|
+
safeDecode: () => safeDecode,
|
|
16601
|
+
safeDecodeAsync: () => safeDecodeAsync,
|
|
16602
|
+
safeEncode: () => safeEncode,
|
|
16603
|
+
safeEncodeAsync: () => safeEncodeAsync,
|
|
16604
|
+
safeExtend: () => safeExtend2,
|
|
16605
|
+
safeParse: () => safeParse,
|
|
16606
|
+
safeParseAsync: () => safeParseAsync,
|
|
16607
|
+
set: () => set,
|
|
16608
|
+
size: () => _size,
|
|
16609
|
+
startsWith: () => _startsWith,
|
|
16610
|
+
strictObject: () => strictObject,
|
|
16611
|
+
string: () => string2,
|
|
16612
|
+
stringFormat: () => stringFormat,
|
|
16613
|
+
stringbool: () => stringbool,
|
|
16614
|
+
success: () => success,
|
|
16615
|
+
superRefine: () => superRefine,
|
|
16616
|
+
symbol: () => symbol,
|
|
16617
|
+
templateLiteral: () => templateLiteral,
|
|
16618
|
+
toJSONSchema: () => toJSONSchema,
|
|
16619
|
+
toLowerCase: () => _toLowerCase,
|
|
16620
|
+
toUpperCase: () => _toUpperCase,
|
|
16621
|
+
transform: () => transform,
|
|
16622
|
+
treeifyError: () => treeifyError,
|
|
16623
|
+
trim: () => _trim,
|
|
16624
|
+
tuple: () => tuple,
|
|
16625
|
+
uint32: () => uint32,
|
|
16626
|
+
uint64: () => uint64,
|
|
16627
|
+
ulid: () => ulid2,
|
|
16628
|
+
undefined: () => _undefined3,
|
|
16629
|
+
union: () => union,
|
|
16630
|
+
unknown: () => unknown,
|
|
16631
|
+
uppercase: () => _uppercase,
|
|
16632
|
+
url: () => url,
|
|
16633
|
+
util: () => util_exports,
|
|
16634
|
+
uuid: () => uuid2,
|
|
16635
|
+
uuidv4: () => uuidv4,
|
|
16636
|
+
uuidv6: () => uuidv6,
|
|
16637
|
+
uuidv7: () => uuidv7,
|
|
16638
|
+
void: () => _void2,
|
|
16639
|
+
xid: () => xid2,
|
|
16640
|
+
xor: () => xor
|
|
16977
16641
|
});
|
|
16978
|
-
var paymentRequiredCode = -32042;
|
|
16979
|
-
var paymentVerificationFailedCode = -32043;
|
|
16980
|
-
var credentialMetaKey = "org.paymentauth/credential";
|
|
16981
|
-
var receiptMetaKey = "org.paymentauth/receipt";
|
|
16982
16642
|
|
|
16983
16643
|
export {
|
|
16984
|
-
Expires_exports,
|
|
16985
16644
|
BaseError,
|
|
16986
16645
|
sha2562 as sha256,
|
|
16987
16646
|
stringify,
|
|
@@ -17002,9 +16661,9 @@ export {
|
|
|
17002
16661
|
isEqual3 as isEqual,
|
|
17003
16662
|
AbiParameters_exports,
|
|
17004
16663
|
assert5 as assert,
|
|
17005
|
-
|
|
16664
|
+
fromHex4 as fromHex,
|
|
17006
16665
|
fromRpc,
|
|
17007
|
-
|
|
16666
|
+
toHex4 as toHex,
|
|
17008
16667
|
toRpc,
|
|
17009
16668
|
Signature_exports,
|
|
17010
16669
|
Base64_exports,
|
|
@@ -17013,41 +16672,240 @@ export {
|
|
|
17013
16672
|
secp256r1,
|
|
17014
16673
|
verify2,
|
|
17015
16674
|
verify4 as verify3,
|
|
17016
|
-
|
|
17017
|
-
|
|
16675
|
+
NEVER,
|
|
16676
|
+
$brand,
|
|
16677
|
+
config,
|
|
16678
|
+
clone,
|
|
16679
|
+
util_exports,
|
|
16680
|
+
flattenError,
|
|
16681
|
+
formatError,
|
|
16682
|
+
treeifyError,
|
|
16683
|
+
prettifyError,
|
|
16684
|
+
parse2 as parse,
|
|
16685
|
+
parseAsync,
|
|
16686
|
+
safeParse,
|
|
16687
|
+
safeParseAsync,
|
|
16688
|
+
encode3 as encode,
|
|
16689
|
+
decode2 as decode,
|
|
16690
|
+
encodeAsync,
|
|
16691
|
+
decodeAsync,
|
|
16692
|
+
safeEncode,
|
|
16693
|
+
safeDecode,
|
|
16694
|
+
safeEncodeAsync,
|
|
16695
|
+
safeDecodeAsync,
|
|
16696
|
+
regexes_exports,
|
|
16697
|
+
locales_exports,
|
|
16698
|
+
$output,
|
|
16699
|
+
$input,
|
|
16700
|
+
registry,
|
|
16701
|
+
globalRegistry,
|
|
16702
|
+
TimePrecision,
|
|
16703
|
+
_lt,
|
|
16704
|
+
_lte,
|
|
16705
|
+
_gt,
|
|
16706
|
+
_gte,
|
|
16707
|
+
_positive,
|
|
16708
|
+
_negative,
|
|
16709
|
+
_nonpositive,
|
|
16710
|
+
_nonnegative,
|
|
16711
|
+
_multipleOf,
|
|
16712
|
+
_maxSize,
|
|
16713
|
+
_minSize,
|
|
16714
|
+
_size,
|
|
16715
|
+
_maxLength,
|
|
17018
16716
|
_minLength,
|
|
16717
|
+
_length,
|
|
16718
|
+
_regex,
|
|
16719
|
+
_lowercase,
|
|
16720
|
+
_uppercase,
|
|
16721
|
+
_includes,
|
|
16722
|
+
_startsWith,
|
|
16723
|
+
_endsWith,
|
|
16724
|
+
_property,
|
|
16725
|
+
_mime,
|
|
16726
|
+
_overwrite,
|
|
16727
|
+
_normalize,
|
|
16728
|
+
_trim,
|
|
16729
|
+
_toLowerCase,
|
|
16730
|
+
_toUpperCase,
|
|
16731
|
+
toJSONSchema,
|
|
16732
|
+
core_exports2 as core_exports,
|
|
16733
|
+
ZodMiniType,
|
|
16734
|
+
ZodMiniString,
|
|
17019
16735
|
string2 as string,
|
|
16736
|
+
ZodMiniStringFormat,
|
|
16737
|
+
ZodMiniEmail,
|
|
16738
|
+
email2 as email,
|
|
16739
|
+
ZodMiniGUID,
|
|
16740
|
+
guid2 as guid,
|
|
16741
|
+
ZodMiniUUID,
|
|
16742
|
+
uuid2 as uuid,
|
|
16743
|
+
uuidv4,
|
|
16744
|
+
uuidv6,
|
|
16745
|
+
uuidv7,
|
|
16746
|
+
ZodMiniURL,
|
|
16747
|
+
url,
|
|
16748
|
+
httpUrl,
|
|
16749
|
+
ZodMiniEmoji,
|
|
16750
|
+
emoji2 as emoji,
|
|
16751
|
+
ZodMiniNanoID,
|
|
16752
|
+
nanoid2 as nanoid,
|
|
16753
|
+
ZodMiniCUID,
|
|
16754
|
+
cuid3 as cuid,
|
|
16755
|
+
ZodMiniCUID2,
|
|
16756
|
+
cuid22 as cuid2,
|
|
16757
|
+
ZodMiniULID,
|
|
16758
|
+
ulid2 as ulid,
|
|
16759
|
+
ZodMiniXID,
|
|
16760
|
+
xid2 as xid,
|
|
16761
|
+
ZodMiniKSUID,
|
|
16762
|
+
ksuid2 as ksuid,
|
|
16763
|
+
ZodMiniIPv4,
|
|
16764
|
+
ipv42 as ipv4,
|
|
16765
|
+
ZodMiniIPv6,
|
|
16766
|
+
ipv62 as ipv6,
|
|
16767
|
+
ZodMiniCIDRv4,
|
|
16768
|
+
cidrv42 as cidrv4,
|
|
16769
|
+
ZodMiniCIDRv6,
|
|
16770
|
+
cidrv62 as cidrv6,
|
|
16771
|
+
ZodMiniMAC,
|
|
16772
|
+
mac2 as mac,
|
|
16773
|
+
ZodMiniBase64,
|
|
16774
|
+
base642 as base64,
|
|
16775
|
+
ZodMiniBase64URL,
|
|
16776
|
+
base64url2 as base64url,
|
|
16777
|
+
ZodMiniE164,
|
|
16778
|
+
e1642 as e164,
|
|
16779
|
+
ZodMiniJWT,
|
|
16780
|
+
jwt,
|
|
16781
|
+
ZodMiniCustomStringFormat,
|
|
16782
|
+
stringFormat,
|
|
16783
|
+
hostname2 as hostname,
|
|
16784
|
+
hex2 as hex,
|
|
16785
|
+
ZodMiniNumber,
|
|
17020
16786
|
number2 as number,
|
|
16787
|
+
ZodMiniNumberFormat,
|
|
16788
|
+
int,
|
|
16789
|
+
float32,
|
|
16790
|
+
float64,
|
|
16791
|
+
int32,
|
|
16792
|
+
uint32,
|
|
16793
|
+
ZodMiniBoolean,
|
|
17021
16794
|
boolean2 as boolean,
|
|
16795
|
+
ZodMiniBigInt,
|
|
16796
|
+
bigint2 as bigint,
|
|
16797
|
+
ZodMiniBigIntFormat,
|
|
16798
|
+
int64,
|
|
16799
|
+
uint64,
|
|
16800
|
+
ZodMiniSymbol,
|
|
16801
|
+
symbol,
|
|
16802
|
+
ZodMiniUndefined,
|
|
16803
|
+
_undefined3 as _undefined,
|
|
16804
|
+
ZodMiniNull,
|
|
16805
|
+
_null3 as _null,
|
|
16806
|
+
ZodMiniAny,
|
|
16807
|
+
any,
|
|
16808
|
+
ZodMiniUnknown,
|
|
16809
|
+
unknown,
|
|
16810
|
+
ZodMiniNever,
|
|
16811
|
+
never,
|
|
16812
|
+
ZodMiniVoid,
|
|
16813
|
+
_void2 as _void,
|
|
16814
|
+
ZodMiniDate,
|
|
16815
|
+
date2 as date,
|
|
16816
|
+
ZodMiniArray,
|
|
17022
16817
|
array,
|
|
16818
|
+
keyof,
|
|
16819
|
+
ZodMiniObject,
|
|
17023
16820
|
object,
|
|
16821
|
+
strictObject,
|
|
16822
|
+
looseObject,
|
|
16823
|
+
extend2 as extend,
|
|
16824
|
+
safeExtend2 as safeExtend,
|
|
16825
|
+
merge2 as merge,
|
|
16826
|
+
pick2 as pick,
|
|
16827
|
+
omit2 as omit,
|
|
16828
|
+
partial2 as partial,
|
|
16829
|
+
required2 as required,
|
|
16830
|
+
catchall,
|
|
16831
|
+
ZodMiniUnion,
|
|
17024
16832
|
union,
|
|
16833
|
+
ZodMiniXor,
|
|
16834
|
+
xor,
|
|
16835
|
+
ZodMiniDiscriminatedUnion,
|
|
17025
16836
|
discriminatedUnion,
|
|
16837
|
+
ZodMiniIntersection,
|
|
16838
|
+
intersection,
|
|
16839
|
+
ZodMiniTuple,
|
|
16840
|
+
tuple,
|
|
16841
|
+
ZodMiniRecord,
|
|
17026
16842
|
record,
|
|
16843
|
+
partialRecord,
|
|
16844
|
+
looseRecord,
|
|
16845
|
+
ZodMiniMap,
|
|
16846
|
+
map,
|
|
16847
|
+
ZodMiniSet,
|
|
16848
|
+
set,
|
|
16849
|
+
ZodMiniEnum,
|
|
17027
16850
|
_enum2 as _enum,
|
|
16851
|
+
nativeEnum,
|
|
16852
|
+
ZodMiniLiteral,
|
|
17028
16853
|
literal,
|
|
16854
|
+
ZodMiniFile,
|
|
16855
|
+
file,
|
|
16856
|
+
ZodMiniTransform,
|
|
17029
16857
|
transform,
|
|
16858
|
+
ZodMiniOptional,
|
|
17030
16859
|
optional,
|
|
16860
|
+
ZodMiniExactOptional,
|
|
16861
|
+
exactOptional,
|
|
16862
|
+
ZodMiniNullable,
|
|
16863
|
+
nullable,
|
|
16864
|
+
nullish2 as nullish,
|
|
16865
|
+
ZodMiniDefault,
|
|
16866
|
+
_default2 as _default,
|
|
16867
|
+
ZodMiniPrefault,
|
|
16868
|
+
prefault,
|
|
16869
|
+
ZodMiniNonOptional,
|
|
16870
|
+
nonoptional,
|
|
16871
|
+
ZodMiniSuccess,
|
|
16872
|
+
success,
|
|
16873
|
+
ZodMiniCatch,
|
|
16874
|
+
_catch2 as _catch,
|
|
16875
|
+
ZodMiniNaN,
|
|
16876
|
+
nan,
|
|
16877
|
+
ZodMiniPipe,
|
|
17031
16878
|
pipe,
|
|
16879
|
+
ZodMiniCodec,
|
|
16880
|
+
codec,
|
|
16881
|
+
invertCodec,
|
|
16882
|
+
ZodMiniReadonly,
|
|
16883
|
+
readonly,
|
|
16884
|
+
ZodMiniTemplateLiteral,
|
|
16885
|
+
templateLiteral,
|
|
16886
|
+
ZodMiniLazy,
|
|
16887
|
+
_lazy2 as _lazy,
|
|
16888
|
+
ZodMiniPromise,
|
|
16889
|
+
promise,
|
|
16890
|
+
ZodMiniCustom,
|
|
16891
|
+
check,
|
|
17032
16892
|
custom,
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17040
|
-
|
|
17041
|
-
|
|
17042
|
-
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
|
|
17048
|
-
|
|
17049
|
-
credentialMetaKey,
|
|
17050
|
-
Mcp_exports
|
|
16893
|
+
refine,
|
|
16894
|
+
superRefine,
|
|
16895
|
+
describe2 as describe,
|
|
16896
|
+
meta2 as meta,
|
|
16897
|
+
_instanceof,
|
|
16898
|
+
stringbool,
|
|
16899
|
+
json,
|
|
16900
|
+
ZodMiniFunction,
|
|
16901
|
+
_function,
|
|
16902
|
+
ZodMiniISODateTime,
|
|
16903
|
+
ZodMiniISODate,
|
|
16904
|
+
ZodMiniISOTime,
|
|
16905
|
+
ZodMiniISODuration,
|
|
16906
|
+
iso_exports,
|
|
16907
|
+
coerce_exports,
|
|
16908
|
+
external_exports
|
|
17051
16909
|
};
|
|
17052
16910
|
/*! Bundled license information:
|
|
17053
16911
|
|
|
@@ -17055,4 +16913,4 @@ export {
|
|
|
17055
16913
|
@noble/curves/esm/p256.js:
|
|
17056
16914
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
17057
16915
|
*/
|
|
17058
|
-
//# sourceMappingURL=chunk-
|
|
16916
|
+
//# sourceMappingURL=chunk-KC2WRBJB.js.map
|