@staix/agent-hub 0.12.5 → 0.12.7

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.
@@ -18,34 +18,23 @@ var __toESM = (mod, isNodeMode, target) => {
18
18
  return cached;
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
21
+ const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
31
33
  };
32
34
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
- var __returnValue = (v) => v;
34
- function __exportSetter(name, newValue) {
35
- this[name] = __returnValue.bind(null, newValue);
36
- }
37
- var __export = (target, all) => {
38
- for (var name in all)
39
- __defProp(target, name, {
40
- get: all[name],
41
- enumerable: true,
42
- configurable: true,
43
- set: __exportSetter.bind(all, name)
44
- });
45
- };
46
35
 
47
36
  // node_modules/ajv/dist/compile/codegen/code.js
48
- var require_code = __commonJS((exports) => {
37
+ var require_code = __commonJS(function(exports) {
49
38
  Object.defineProperty(exports, "__esModule", { value: true });
50
39
  exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = undefined;
51
40
 
@@ -88,12 +77,12 @@ var require_code = __commonJS((exports) => {
88
77
  return item === "" || item === '""';
89
78
  }
90
79
  get str() {
91
- var _a3;
92
- return (_a3 = this._str) !== null && _a3 !== undefined ? _a3 : this._str = this._items.reduce((s, c) => `${s}${c}`, "");
80
+ var _a;
81
+ return (_a = this._str) !== null && _a !== undefined ? _a : this._str = this._items.reduce((s, c) => `${s}${c}`, "");
93
82
  }
94
83
  get names() {
95
- var _a3;
96
- return (_a3 = this._names) !== null && _a3 !== undefined ? _a3 : this._names = this._items.reduce((names, c) => {
84
+ var _a;
85
+ return (_a = this._names) !== null && _a !== undefined ? _a : this._names = this._items.reduce((names, c) => {
97
86
  if (c instanceof Name)
98
87
  names[c.str] = (names[c.str] || 0) + 1;
99
88
  return names;
@@ -199,7 +188,7 @@ var require_code = __commonJS((exports) => {
199
188
  });
200
189
 
201
190
  // node_modules/ajv/dist/compile/codegen/scope.js
202
- var require_scope = __commonJS((exports) => {
191
+ var require_scope = __commonJS(function(exports) {
203
192
  Object.defineProperty(exports, "__esModule", { value: true });
204
193
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
205
194
  var code_1 = require_code();
@@ -211,9 +200,9 @@ var require_scope = __commonJS((exports) => {
211
200
  }
212
201
  }
213
202
  var UsedValueState;
214
- (function(UsedValueState2) {
215
- UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
216
- UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
203
+ (function(UsedValueState) {
204
+ UsedValueState[UsedValueState["Started"] = 0] = "Started";
205
+ UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
217
206
  })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
218
207
  exports.varKinds = {
219
208
  const: new code_1.Name("const"),
@@ -238,8 +227,8 @@ var require_scope = __commonJS((exports) => {
238
227
  return `${prefix}${ng.index++}`;
239
228
  }
240
229
  _nameGroup(prefix) {
241
- var _a3, _b;
242
- if (((_b = (_a3 = this._parent) === null || _a3 === undefined ? undefined : _a3._prefixes) === null || _b === undefined ? undefined : _b.has(prefix)) || this._prefixes && !this._prefixes.has(prefix)) {
230
+ var _a, _b;
231
+ if (((_b = (_a = this._parent) === null || _a === undefined ? undefined : _a._prefixes) === null || _b === undefined ? undefined : _b.has(prefix)) || this._prefixes && !this._prefixes.has(prefix)) {
243
232
  throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`);
244
233
  }
245
234
  return this._names[prefix] = { prefix, index: 0 };
@@ -274,12 +263,12 @@ var require_scope = __commonJS((exports) => {
274
263
  return new ValueScopeName(prefix, this._newName(prefix));
275
264
  }
276
265
  value(nameOrPrefix, value) {
277
- var _a3;
266
+ var _a;
278
267
  if (value.ref === undefined)
279
268
  throw new Error("CodeGen: ref must be passed in value");
280
269
  const name = this.toName(nameOrPrefix);
281
270
  const { prefix } = name;
282
- const valueKey = (_a3 = value.key) !== null && _a3 !== undefined ? _a3 : value.ref;
271
+ const valueKey = (_a = value.key) !== null && _a !== undefined ? _a : value.ref;
283
272
  let vs = this._values[prefix];
284
273
  if (vs) {
285
274
  const _name = vs.get(valueKey);
@@ -345,7 +334,7 @@ var require_scope = __commonJS((exports) => {
345
334
  });
346
335
 
347
336
  // node_modules/ajv/dist/compile/codegen/index.js
348
- var require_codegen = __commonJS((exports) => {
337
+ var require_codegen = __commonJS(function(exports) {
349
338
  Object.defineProperty(exports, "__esModule", { value: true });
350
339
  exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = undefined;
351
340
  var code_1 = require_code();
@@ -490,9 +479,9 @@ var require_codegen = __commonJS((exports) => {
490
479
  }
491
480
 
492
481
  class Throw extends Node {
493
- constructor(error2) {
482
+ constructor(error) {
494
483
  super();
495
- this.error = error2;
484
+ this.error = error;
496
485
  }
497
486
  render({ _n }) {
498
487
  return `throw ${this.error};` + _n;
@@ -607,8 +596,8 @@ var require_codegen = __commonJS((exports) => {
607
596
  return this;
608
597
  }
609
598
  optimizeNames(names, constants) {
610
- var _a3;
611
- this.else = (_a3 = this.else) === null || _a3 === undefined ? undefined : _a3.optimizeNames(names, constants);
599
+ var _a;
600
+ this.else = (_a = this.else) === null || _a === undefined ? undefined : _a.optimizeNames(names, constants);
612
601
  if (!(super.optimizeNames(names, constants) || this.else))
613
602
  return;
614
603
  this.condition = optimizeExpr(this.condition, names, constants);
@@ -719,16 +708,16 @@ var require_codegen = __commonJS((exports) => {
719
708
  return code;
720
709
  }
721
710
  optimizeNodes() {
722
- var _a3, _b;
711
+ var _a, _b;
723
712
  super.optimizeNodes();
724
- (_a3 = this.catch) === null || _a3 === undefined || _a3.optimizeNodes();
713
+ (_a = this.catch) === null || _a === undefined || _a.optimizeNodes();
725
714
  (_b = this.finally) === null || _b === undefined || _b.optimizeNodes();
726
715
  return this;
727
716
  }
728
717
  optimizeNames(names, constants) {
729
- var _a3, _b;
718
+ var _a, _b;
730
719
  super.optimizeNames(names, constants);
731
- (_a3 = this.catch) === null || _a3 === undefined || _a3.optimizeNames(names, constants);
720
+ (_a = this.catch) === null || _a === undefined || _a.optimizeNames(names, constants);
732
721
  (_b = this.finally) === null || _b === undefined || _b.optimizeNames(names, constants);
733
722
  return this;
734
723
  }
@@ -743,9 +732,9 @@ var require_codegen = __commonJS((exports) => {
743
732
  }
744
733
 
745
734
  class Catch extends BlockNode {
746
- constructor(error2) {
735
+ constructor(error) {
747
736
  super();
748
- this.error = error2;
737
+ this.error = error;
749
738
  }
750
739
  render(opts) {
751
740
  return `catch(${this.error})` + super.render(opts);
@@ -858,8 +847,8 @@ var require_codegen = __commonJS((exports) => {
858
847
  endIf() {
859
848
  return this._endBlockNode(If, Else);
860
849
  }
861
- _for(node2, forBody) {
862
- this._blockNode(node2);
850
+ _for(node, forBody) {
851
+ this._blockNode(node);
863
852
  if (forBody)
864
853
  this.code(forBody).endFor();
865
854
  return this;
@@ -899,32 +888,32 @@ var require_codegen = __commonJS((exports) => {
899
888
  return this._leafNode(new Break(label));
900
889
  }
901
890
  return(value) {
902
- const node2 = new Return;
903
- this._blockNode(node2);
891
+ const node = new Return;
892
+ this._blockNode(node);
904
893
  this.code(value);
905
- if (node2.nodes.length !== 1)
894
+ if (node.nodes.length !== 1)
906
895
  throw new Error('CodeGen: "return" should have one node');
907
896
  return this._endBlockNode(Return);
908
897
  }
909
898
  try(tryBody, catchCode, finallyCode) {
910
899
  if (!catchCode && !finallyCode)
911
900
  throw new Error('CodeGen: "try" without "catch" and "finally"');
912
- const node2 = new Try;
913
- this._blockNode(node2);
901
+ const node = new Try;
902
+ this._blockNode(node);
914
903
  this.code(tryBody);
915
904
  if (catchCode) {
916
- const error2 = this.name("e");
917
- this._currNode = node2.catch = new Catch(error2);
918
- catchCode(error2);
905
+ const error = this.name("e");
906
+ this._currNode = node.catch = new Catch(error);
907
+ catchCode(error);
919
908
  }
920
909
  if (finallyCode) {
921
- this._currNode = node2.finally = new Finally;
910
+ this._currNode = node.finally = new Finally;
922
911
  this.code(finallyCode);
923
912
  }
924
913
  return this._endBlockNode(Catch, Finally);
925
914
  }
926
- throw(error2) {
927
- return this._leafNode(new Throw(error2));
915
+ throw(error) {
916
+ return this._leafNode(new Throw(error));
928
917
  }
929
918
  block(body, nodeCount) {
930
919
  this._blockStarts.push(this._nodes.length);
@@ -958,13 +947,13 @@ var require_codegen = __commonJS((exports) => {
958
947
  this._root.optimizeNames(this._root.names, this._constants);
959
948
  }
960
949
  }
961
- _leafNode(node2) {
962
- this._currNode.nodes.push(node2);
950
+ _leafNode(node) {
951
+ this._currNode.nodes.push(node);
963
952
  return this;
964
953
  }
965
- _blockNode(node2) {
966
- this._currNode.nodes.push(node2);
967
- this._nodes.push(node2);
954
+ _blockNode(node) {
955
+ this._currNode.nodes.push(node);
956
+ this._nodes.push(node);
968
957
  }
969
958
  _endBlockNode(N1, N2) {
970
959
  const n = this._currNode;
@@ -974,12 +963,12 @@ var require_codegen = __commonJS((exports) => {
974
963
  }
975
964
  throw new Error(`CodeGen: not in block "${N2 ? `${N1.kind}/${N2.kind}` : N1.kind}"`);
976
965
  }
977
- _elseNode(node2) {
966
+ _elseNode(node) {
978
967
  const n = this._currNode;
979
968
  if (!(n instanceof If)) {
980
969
  throw new Error('CodeGen: "else" without "if"');
981
970
  }
982
- this._currNode = n.else = node2;
971
+ this._currNode = n.else = node;
983
972
  return this;
984
973
  }
985
974
  get _root() {
@@ -989,9 +978,9 @@ var require_codegen = __commonJS((exports) => {
989
978
  const ns = this._nodes;
990
979
  return ns[ns.length - 1];
991
980
  }
992
- set _currNode(node2) {
981
+ set _currNode(node) {
993
982
  const ns = this._nodes;
994
- ns[ns.length - 1] = node2;
983
+ ns[ns.length - 1] = node;
995
984
  }
996
985
  }
997
986
  exports.CodeGen = CodeGen;
@@ -1055,7 +1044,7 @@ var require_codegen = __commonJS((exports) => {
1055
1044
  });
1056
1045
 
1057
1046
  // node_modules/ajv/dist/compile/util.js
1058
- var require_util = __commonJS((exports) => {
1047
+ var require_util = __commonJS(function(exports) {
1059
1048
  Object.defineProperty(exports, "__esModule", { value: true });
1060
1049
  exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = undefined;
1061
1050
  var codegen_1 = require_codegen();
@@ -1144,9 +1133,9 @@ var require_util = __commonJS((exports) => {
1144
1133
  }
1145
1134
  }
1146
1135
  exports.eachItem = eachItem;
1147
- function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues2, resultToName }) {
1136
+ function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName }) {
1148
1137
  return (gen, from, to, toName) => {
1149
- const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues2(from, to);
1138
+ const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues(from, to);
1150
1139
  return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
1151
1140
  };
1152
1141
  }
@@ -1195,9 +1184,9 @@ var require_util = __commonJS((exports) => {
1195
1184
  }
1196
1185
  exports.useFunc = useFunc;
1197
1186
  var Type;
1198
- (function(Type2) {
1199
- Type2[Type2["Num"] = 0] = "Num";
1200
- Type2[Type2["Str"] = 1] = "Str";
1187
+ (function(Type) {
1188
+ Type[Type["Num"] = 0] = "Num";
1189
+ Type[Type["Str"] = 1] = "Str";
1201
1190
  })(Type || (exports.Type = Type = {}));
1202
1191
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
1203
1192
  if (dataProp instanceof codegen_1.Name) {
@@ -1219,7 +1208,7 @@ var require_util = __commonJS((exports) => {
1219
1208
  });
1220
1209
 
1221
1210
  // node_modules/ajv/dist/compile/names.js
1222
- var require_names = __commonJS((exports) => {
1211
+ var require_names = __commonJS(function(exports) {
1223
1212
  Object.defineProperty(exports, "__esModule", { value: true });
1224
1213
  var codegen_1 = require_codegen();
1225
1214
  var names = {
@@ -1244,7 +1233,7 @@ var require_names = __commonJS((exports) => {
1244
1233
  });
1245
1234
 
1246
1235
  // node_modules/ajv/dist/compile/errors.js
1247
- var require_errors = __commonJS((exports) => {
1236
+ var require_errors = __commonJS(function(exports) {
1248
1237
  Object.defineProperty(exports, "__esModule", { value: true });
1249
1238
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
1250
1239
  var codegen_1 = require_codegen();
@@ -1256,10 +1245,10 @@ var require_errors = __commonJS((exports) => {
1256
1245
  exports.keyword$DataError = {
1257
1246
  message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
1258
1247
  };
1259
- function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
1248
+ function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
1260
1249
  const { it } = cxt;
1261
1250
  const { gen, compositeRule, allErrors } = it;
1262
- const errObj = errorObjectCode(cxt, error2, errorPaths);
1251
+ const errObj = errorObjectCode(cxt, error, errorPaths);
1263
1252
  if (overrideAllErrors !== null && overrideAllErrors !== undefined ? overrideAllErrors : compositeRule || allErrors) {
1264
1253
  addError(gen, errObj);
1265
1254
  } else {
@@ -1267,10 +1256,10 @@ var require_errors = __commonJS((exports) => {
1267
1256
  }
1268
1257
  }
1269
1258
  exports.reportError = reportError;
1270
- function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
1259
+ function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
1271
1260
  const { it } = cxt;
1272
1261
  const { gen, compositeRule, allErrors } = it;
1273
- const errObj = errorObjectCode(cxt, error2, errorPaths);
1262
+ const errObj = errorObjectCode(cxt, error, errorPaths);
1274
1263
  addError(gen, errObj);
1275
1264
  if (!(compositeRule || allErrors)) {
1276
1265
  returnErrors(it, names_1.default.vErrors);
@@ -1320,19 +1309,19 @@ var require_errors = __commonJS((exports) => {
1320
1309
  schema: new codegen_1.Name("schema"),
1321
1310
  parentSchema: new codegen_1.Name("parentSchema")
1322
1311
  };
1323
- function errorObjectCode(cxt, error2, errorPaths) {
1312
+ function errorObjectCode(cxt, error, errorPaths) {
1324
1313
  const { createErrors } = cxt.it;
1325
1314
  if (createErrors === false)
1326
1315
  return (0, codegen_1._)`{}`;
1327
- return errorObject(cxt, error2, errorPaths);
1316
+ return errorObject(cxt, error, errorPaths);
1328
1317
  }
1329
- function errorObject(cxt, error2, errorPaths = {}) {
1318
+ function errorObject(cxt, error, errorPaths = {}) {
1330
1319
  const { gen, it } = cxt;
1331
1320
  const keyValues = [
1332
1321
  errorInstancePath(it, errorPaths),
1333
1322
  errorSchemaPath(cxt, errorPaths)
1334
1323
  ];
1335
- extraErrorProps(cxt, error2, keyValues);
1324
+ extraErrorProps(cxt, error, keyValues);
1336
1325
  return gen.object(...keyValues);
1337
1326
  }
1338
1327
  function errorInstancePath({ errorPath }, { instancePath }) {
@@ -1362,7 +1351,7 @@ var require_errors = __commonJS((exports) => {
1362
1351
  });
1363
1352
 
1364
1353
  // node_modules/ajv/dist/compile/validate/boolSchema.js
1365
- var require_boolSchema = __commonJS((exports) => {
1354
+ var require_boolSchema = __commonJS(function(exports) {
1366
1355
  Object.defineProperty(exports, "__esModule", { value: true });
1367
1356
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
1368
1357
  var errors_1 = require_errors();
@@ -1410,7 +1399,7 @@ var require_boolSchema = __commonJS((exports) => {
1410
1399
  });
1411
1400
 
1412
1401
  // node_modules/ajv/dist/compile/rules.js
1413
- var require_rules = __commonJS((exports) => {
1402
+ var require_rules = __commonJS(function(exports) {
1414
1403
  Object.defineProperty(exports, "__esModule", { value: true });
1415
1404
  exports.getRules = exports.isJSONType = undefined;
1416
1405
  var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
@@ -1438,7 +1427,7 @@ var require_rules = __commonJS((exports) => {
1438
1427
  });
1439
1428
 
1440
1429
  // node_modules/ajv/dist/compile/validate/applicability.js
1441
- var require_applicability = __commonJS((exports) => {
1430
+ var require_applicability = __commonJS(function(exports) {
1442
1431
  Object.defineProperty(exports, "__esModule", { value: true });
1443
1432
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
1444
1433
  function schemaHasRulesForType({ schema, self }, type) {
@@ -1451,14 +1440,14 @@ var require_applicability = __commonJS((exports) => {
1451
1440
  }
1452
1441
  exports.shouldUseGroup = shouldUseGroup;
1453
1442
  function shouldUseRule(schema, rule) {
1454
- var _a3;
1455
- return schema[rule.keyword] !== undefined || ((_a3 = rule.definition.implements) === null || _a3 === undefined ? undefined : _a3.some((kwd) => schema[kwd] !== undefined));
1443
+ var _a;
1444
+ return schema[rule.keyword] !== undefined || ((_a = rule.definition.implements) === null || _a === undefined ? undefined : _a.some((kwd) => schema[kwd] !== undefined));
1456
1445
  }
1457
1446
  exports.shouldUseRule = shouldUseRule;
1458
1447
  });
1459
1448
 
1460
1449
  // node_modules/ajv/dist/compile/validate/dataType.js
1461
- var require_dataType = __commonJS((exports) => {
1450
+ var require_dataType = __commonJS(function(exports) {
1462
1451
  Object.defineProperty(exports, "__esModule", { value: true });
1463
1452
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
1464
1453
  var rules_1 = require_rules();
@@ -1467,9 +1456,9 @@ var require_dataType = __commonJS((exports) => {
1467
1456
  var codegen_1 = require_codegen();
1468
1457
  var util_1 = require_util();
1469
1458
  var DataType;
1470
- (function(DataType2) {
1471
- DataType2[DataType2["Correct"] = 0] = "Correct";
1472
- DataType2[DataType2["Wrong"] = 1] = "Wrong";
1459
+ (function(DataType) {
1460
+ DataType[DataType["Correct"] = 0] = "Correct";
1461
+ DataType[DataType["Wrong"] = 1] = "Wrong";
1473
1462
  })(DataType || (exports.DataType = DataType = {}));
1474
1463
  function getSchemaTypes(schema) {
1475
1464
  const types = getJSONTypes(schema.type);
@@ -1639,7 +1628,7 @@ var require_dataType = __commonJS((exports) => {
1639
1628
  });
1640
1629
 
1641
1630
  // node_modules/ajv/dist/compile/validate/defaults.js
1642
- var require_defaults = __commonJS((exports) => {
1631
+ var require_defaults = __commonJS(function(exports) {
1643
1632
  Object.defineProperty(exports, "__esModule", { value: true });
1644
1633
  exports.assignDefaults = undefined;
1645
1634
  var codegen_1 = require_codegen();
@@ -1673,7 +1662,7 @@ var require_defaults = __commonJS((exports) => {
1673
1662
  });
1674
1663
 
1675
1664
  // node_modules/ajv/dist/vocabularies/code.js
1676
- var require_code2 = __commonJS((exports) => {
1665
+ var require_code2 = __commonJS(function(exports) {
1677
1666
  Object.defineProperty(exports, "__esModule", { value: true });
1678
1667
  exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = undefined;
1679
1668
  var codegen_1 = require_codegen();
@@ -1802,7 +1791,7 @@ var require_code2 = __commonJS((exports) => {
1802
1791
  });
1803
1792
 
1804
1793
  // node_modules/ajv/dist/compile/validate/keyword.js
1805
- var require_keyword = __commonJS((exports) => {
1794
+ var require_keyword = __commonJS(function(exports) {
1806
1795
  Object.defineProperty(exports, "__esModule", { value: true });
1807
1796
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
1808
1797
  var codegen_1 = require_codegen();
@@ -1827,14 +1816,14 @@ var require_keyword = __commonJS((exports) => {
1827
1816
  }
1828
1817
  exports.macroKeywordCode = macroKeywordCode;
1829
1818
  function funcKeywordCode(cxt, def) {
1830
- var _a3;
1819
+ var _a;
1831
1820
  const { gen, keyword, schema, parentSchema, $data, it } = cxt;
1832
1821
  checkAsyncKeyword(it, def);
1833
- const validate2 = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate;
1834
- const validateRef = useKeyword(gen, keyword, validate2);
1822
+ const validate = !$data && def.compile ? def.compile.call(it.self, schema, parentSchema, it) : def.validate;
1823
+ const validateRef = useKeyword(gen, keyword, validate);
1835
1824
  const valid = gen.let("valid");
1836
1825
  cxt.block$data(valid, validateKeyword);
1837
- cxt.ok((_a3 = def.valid) !== null && _a3 !== undefined ? _a3 : valid);
1826
+ cxt.ok((_a = def.valid) !== null && _a !== undefined ? _a : valid);
1838
1827
  function validateKeyword() {
1839
1828
  if (def.errors === false) {
1840
1829
  assignValid();
@@ -1842,13 +1831,13 @@ var require_keyword = __commonJS((exports) => {
1842
1831
  modifyData(cxt);
1843
1832
  reportErrs(() => cxt.error());
1844
1833
  } else {
1845
- const ruleErrs = def.async ? validateAsync3() : validateSync();
1834
+ const ruleErrs = def.async ? validateAsync() : validateSync();
1846
1835
  if (def.modifying)
1847
1836
  modifyData(cxt);
1848
1837
  reportErrs(() => addErrs(cxt, ruleErrs));
1849
1838
  }
1850
1839
  }
1851
- function validateAsync3() {
1840
+ function validateAsync() {
1852
1841
  const ruleErrs = gen.let("ruleErrs", null);
1853
1842
  gen.try(() => assignValid((0, codegen_1._)`await `), (e) => gen.assign(valid, false).if((0, codegen_1._)`${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e}.errors`), () => gen.throw(e)));
1854
1843
  return ruleErrs;
@@ -1864,9 +1853,9 @@ var require_keyword = __commonJS((exports) => {
1864
1853
  const passSchema = !(("compile" in def) && !$data || def.schema === false);
1865
1854
  gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
1866
1855
  }
1867
- function reportErrs(errors3) {
1868
- var _a4;
1869
- gen.if((0, codegen_1.not)((_a4 = def.valid) !== null && _a4 !== undefined ? _a4 : valid), errors3);
1856
+ function reportErrs(errors) {
1857
+ var _a;
1858
+ gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== undefined ? _a : valid), errors);
1870
1859
  }
1871
1860
  }
1872
1861
  exports.funcKeywordCode = funcKeywordCode;
@@ -1917,7 +1906,7 @@ var require_keyword = __commonJS((exports) => {
1917
1906
  });
1918
1907
 
1919
1908
  // node_modules/ajv/dist/compile/validate/subschema.js
1920
- var require_subschema = __commonJS((exports) => {
1909
+ var require_subschema = __commonJS(function(exports) {
1921
1910
  Object.defineProperty(exports, "__esModule", { value: true });
1922
1911
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
1923
1912
  var codegen_1 = require_codegen();
@@ -1997,7 +1986,7 @@ var require_subschema = __commonJS((exports) => {
1997
1986
  });
1998
1987
 
1999
1988
  // node_modules/fast-deep-equal/index.js
2000
- var require_fast_deep_equal = __commonJS((exports, module) => {
1989
+ var require_fast_deep_equal = __commonJS(function(exports, module) {
2001
1990
  module.exports = function equal(a, b) {
2002
1991
  if (a === b)
2003
1992
  return true;
@@ -2039,7 +2028,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
2039
2028
  });
2040
2029
 
2041
2030
  // node_modules/json-schema-traverse/index.js
2042
- var require_json_schema_traverse = __commonJS((exports, module) => {
2031
+ var require_json_schema_traverse = __commonJS(function(exports, module) {
2043
2032
  var traverse = module.exports = function(schema, opts, cb) {
2044
2033
  if (typeof opts == "function") {
2045
2034
  cb = opts;
@@ -2122,7 +2111,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
2122
2111
  });
2123
2112
 
2124
2113
  // node_modules/ajv/dist/compile/resolve.js
2125
- var require_resolve = __commonJS((exports) => {
2114
+ var require_resolve = __commonJS(function(exports) {
2126
2115
  Object.defineProperty(exports, "__esModule", { value: true });
2127
2116
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
2128
2117
  var util_1 = require_util();
@@ -2254,11 +2243,11 @@ var require_resolve = __commonJS((exports) => {
2254
2243
  }
2255
2244
  return ref;
2256
2245
  }
2257
- function addAnchor(anchor2) {
2258
- if (typeof anchor2 == "string") {
2259
- if (!ANCHOR.test(anchor2))
2260
- throw new Error(`invalid anchor "${anchor2}"`);
2261
- addRef.call(this, `#${anchor2}`);
2246
+ function addAnchor(anchor) {
2247
+ if (typeof anchor == "string") {
2248
+ if (!ANCHOR.test(anchor))
2249
+ throw new Error(`invalid anchor "${anchor}"`);
2250
+ addRef.call(this, `#${anchor}`);
2262
2251
  }
2263
2252
  }
2264
2253
  });
@@ -2275,7 +2264,7 @@ var require_resolve = __commonJS((exports) => {
2275
2264
  });
2276
2265
 
2277
2266
  // node_modules/ajv/dist/compile/validate/index.js
2278
- var require_validate = __commonJS((exports) => {
2267
+ var require_validate = __commonJS(function(exports) {
2279
2268
  Object.defineProperty(exports, "__esModule", { value: true });
2280
2269
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
2281
2270
  var boolSchema_1 = require_boolSchema();
@@ -2780,13 +2769,13 @@ var require_validate = __commonJS((exports) => {
2780
2769
  });
2781
2770
 
2782
2771
  // node_modules/ajv/dist/runtime/validation_error.js
2783
- var require_validation_error = __commonJS((exports) => {
2772
+ var require_validation_error = __commonJS(function(exports) {
2784
2773
  Object.defineProperty(exports, "__esModule", { value: true });
2785
2774
 
2786
2775
  class ValidationError extends Error {
2787
- constructor(errors3) {
2776
+ constructor(errors) {
2788
2777
  super("validation failed");
2789
- this.errors = errors3;
2778
+ this.errors = errors;
2790
2779
  this.ajv = this.validation = true;
2791
2780
  }
2792
2781
  }
@@ -2794,7 +2783,7 @@ var require_validation_error = __commonJS((exports) => {
2794
2783
  });
2795
2784
 
2796
2785
  // node_modules/ajv/dist/compile/ref_error.js
2797
- var require_ref_error = __commonJS((exports) => {
2786
+ var require_ref_error = __commonJS(function(exports) {
2798
2787
  Object.defineProperty(exports, "__esModule", { value: true });
2799
2788
  var resolve_1 = require_resolve();
2800
2789
 
@@ -2809,7 +2798,7 @@ var require_ref_error = __commonJS((exports) => {
2809
2798
  });
2810
2799
 
2811
2800
  // node_modules/ajv/dist/compile/index.js
2812
- var require_compile = __commonJS((exports) => {
2801
+ var require_compile = __commonJS(function(exports) {
2813
2802
  Object.defineProperty(exports, "__esModule", { value: true });
2814
2803
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
2815
2804
  var codegen_1 = require_codegen();
@@ -2821,7 +2810,7 @@ var require_compile = __commonJS((exports) => {
2821
2810
 
2822
2811
  class SchemaEnv {
2823
2812
  constructor(env) {
2824
- var _a3;
2813
+ var _a;
2825
2814
  this.refs = {};
2826
2815
  this.dynamicAnchors = {};
2827
2816
  let schema;
@@ -2830,7 +2819,7 @@ var require_compile = __commonJS((exports) => {
2830
2819
  this.schema = env.schema;
2831
2820
  this.schemaId = env.schemaId;
2832
2821
  this.root = env.root || this;
2833
- this.baseId = (_a3 = env.baseId) !== null && _a3 !== undefined ? _a3 : (0, resolve_1.normalizeId)(schema === null || schema === undefined ? undefined : schema[env.schemaId || "$id"]);
2822
+ this.baseId = (_a = env.baseId) !== null && _a !== undefined ? _a : (0, resolve_1.normalizeId)(schema === null || schema === undefined ? undefined : schema[env.schemaId || "$id"]);
2834
2823
  this.schemaPath = env.schemaPath;
2835
2824
  this.localRefs = env.localRefs;
2836
2825
  this.meta = env.meta;
@@ -2890,28 +2879,28 @@ var require_compile = __commonJS((exports) => {
2890
2879
  if (this.opts.code.process)
2891
2880
  sourceCode = this.opts.code.process(sourceCode, sch);
2892
2881
  const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode);
2893
- const validate2 = makeValidate(this, this.scope.get());
2894
- this.scope.value(validateName, { ref: validate2 });
2895
- validate2.errors = null;
2896
- validate2.schema = sch.schema;
2897
- validate2.schemaEnv = sch;
2882
+ const validate = makeValidate(this, this.scope.get());
2883
+ this.scope.value(validateName, { ref: validate });
2884
+ validate.errors = null;
2885
+ validate.schema = sch.schema;
2886
+ validate.schemaEnv = sch;
2898
2887
  if (sch.$async)
2899
- validate2.$async = true;
2888
+ validate.$async = true;
2900
2889
  if (this.opts.code.source === true) {
2901
- validate2.source = { validateName, validateCode, scopeValues: gen._values };
2890
+ validate.source = { validateName, validateCode, scopeValues: gen._values };
2902
2891
  }
2903
2892
  if (this.opts.unevaluated) {
2904
2893
  const { props, items } = schemaCxt;
2905
- validate2.evaluated = {
2894
+ validate.evaluated = {
2906
2895
  props: props instanceof codegen_1.Name ? undefined : props,
2907
2896
  items: items instanceof codegen_1.Name ? undefined : items,
2908
2897
  dynamicProps: props instanceof codegen_1.Name,
2909
2898
  dynamicItems: items instanceof codegen_1.Name
2910
2899
  };
2911
- if (validate2.source)
2912
- validate2.source.evaluated = (0, codegen_1.stringify)(validate2.evaluated);
2900
+ if (validate.source)
2901
+ validate.source.evaluated = (0, codegen_1.stringify)(validate.evaluated);
2913
2902
  }
2914
- sch.validate = validate2;
2903
+ sch.validate = validate;
2915
2904
  return sch;
2916
2905
  } catch (e) {
2917
2906
  delete sch.validate;
@@ -2925,14 +2914,14 @@ var require_compile = __commonJS((exports) => {
2925
2914
  }
2926
2915
  exports.compileSchema = compileSchema;
2927
2916
  function resolveRef(root, baseId, ref) {
2928
- var _a3;
2917
+ var _a;
2929
2918
  ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
2930
2919
  const schOrFunc = root.refs[ref];
2931
2920
  if (schOrFunc)
2932
2921
  return schOrFunc;
2933
2922
  let _sch = resolve.call(this, root, ref);
2934
2923
  if (_sch === undefined) {
2935
- const schema = (_a3 = root.localRefs) === null || _a3 === undefined ? undefined : _a3[ref];
2924
+ const schema = (_a = root.localRefs) === null || _a === undefined ? undefined : _a[ref];
2936
2925
  const { schemaId } = this.opts;
2937
2926
  if (schema)
2938
2927
  _sch = new SchemaEnv({ schema, schemaId, root, baseId });
@@ -3001,8 +2990,8 @@ var require_compile = __commonJS((exports) => {
3001
2990
  "definitions"
3002
2991
  ]);
3003
2992
  function getJsonPointer(parsedRef, { baseId, schema, root }) {
3004
- var _a3;
3005
- if (((_a3 = parsedRef.fragment) === null || _a3 === undefined ? undefined : _a3[0]) !== "/")
2993
+ var _a;
2994
+ if (((_a = parsedRef.fragment) === null || _a === undefined ? undefined : _a[0]) !== "/")
3006
2995
  return;
3007
2996
  for (const part of parsedRef.fragment.slice(1).split("/")) {
3008
2997
  if (typeof schema === "boolean")
@@ -3030,7 +3019,7 @@ var require_compile = __commonJS((exports) => {
3030
3019
  });
3031
3020
 
3032
3021
  // node_modules/ajv/dist/refs/data.json
3033
- var require_data = __commonJS((exports, module) => {
3022
+ var require_data = __commonJS(function(exports, module) {
3034
3023
  module.exports = {
3035
3024
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3036
3025
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3047,7 +3036,7 @@ var require_data = __commonJS((exports, module) => {
3047
3036
  });
3048
3037
 
3049
3038
  // node_modules/fast-uri/lib/utils.js
3050
- var require_utils = __commonJS((exports, module) => {
3039
+ var require_utils = __commonJS(function(exports, module) {
3051
3040
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3052
3041
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3053
3042
  var isPort = RegExp.prototype.test.bind(/^\d*$/u);
@@ -3564,7 +3553,7 @@ var require_utils = __commonJS((exports, module) => {
3564
3553
  });
3565
3554
 
3566
3555
  // node_modules/fast-uri/lib/schemes.js
3567
- var require_schemes = __commonJS((exports, module) => {
3556
+ var require_schemes = __commonJS(function(exports, module) {
3568
3557
  var { isUUID } = require_utils();
3569
3558
  var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
3570
3559
  var supportedSchemeNames = [
@@ -3739,7 +3728,7 @@ var require_schemes = __commonJS((exports, module) => {
3739
3728
  });
3740
3729
 
3741
3730
  // node_modules/fast-uri/index.js
3742
- var require_fast_uri = __commonJS((exports, module) => {
3731
+ var require_fast_uri = __commonJS(function(exports, module) {
3743
3732
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3744
3733
  var { SCHEMES, getSchemeHandler } = require_schemes();
3745
3734
  var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
@@ -3755,7 +3744,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3755
3744
  if (typeof uri === "string") {
3756
3745
  uri = normalizeString(uri, options);
3757
3746
  } else if (typeof uri === "object") {
3758
- uri = parse5(serialize(uri, options), options);
3747
+ uri = parse(serialize(uri, options), options);
3759
3748
  }
3760
3749
  return uri;
3761
3750
  }
@@ -3795,8 +3784,8 @@ var require_fast_uri = __commonJS((exports, module) => {
3795
3784
  function resolveComponent(base, relative, options, skipNormalization) {
3796
3785
  const target = {};
3797
3786
  if (!skipNormalization) {
3798
- base = parse5(serialize(base, options), options);
3799
- relative = parse5(serialize(relative, options), options);
3787
+ base = parse(serialize(base, options), options);
3788
+ relative = parse(serialize(relative, options), options);
3800
3789
  }
3801
3790
  options = options || {};
3802
3791
  if (!options.tolerant && relative.scheme) {
@@ -4097,7 +4086,7 @@ var require_fast_uri = __commonJS((exports, module) => {
4097
4086
  }
4098
4087
  return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
4099
4088
  }
4100
- function parse5(uri, opts) {
4089
+ function parse(uri, opts) {
4101
4090
  return parseWithStatus(uri, opts).parsed;
4102
4091
  }
4103
4092
  function normalizeString(uri, opts) {
@@ -4134,7 +4123,7 @@ var require_fast_uri = __commonJS((exports, module) => {
4134
4123
  resolveComponent,
4135
4124
  equal,
4136
4125
  serialize,
4137
- parse: parse5
4126
+ parse
4138
4127
  };
4139
4128
  module.exports = fastUri;
4140
4129
  module.exports.default = fastUri;
@@ -4142,7 +4131,7 @@ var require_fast_uri = __commonJS((exports, module) => {
4142
4131
  });
4143
4132
 
4144
4133
  // node_modules/ajv/dist/runtime/uri.js
4145
- var require_uri = __commonJS((exports) => {
4134
+ var require_uri = __commonJS(function(exports) {
4146
4135
  Object.defineProperty(exports, "__esModule", { value: true });
4147
4136
  var uri = require_fast_uri();
4148
4137
  uri.code = 'require("ajv/dist/runtime/uri").default';
@@ -4150,7 +4139,7 @@ var require_uri = __commonJS((exports) => {
4150
4139
  });
4151
4140
 
4152
4141
  // node_modules/ajv/dist/core.js
4153
- var require_core = __commonJS((exports) => {
4142
+ var require_core = __commonJS(function(exports) {
4154
4143
  Object.defineProperty(exports, "__esModule", { value: true });
4155
4144
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
4156
4145
  var validate_1 = require_validate();
@@ -4228,9 +4217,9 @@ var require_core = __commonJS((exports) => {
4228
4217
  };
4229
4218
  var MAX_EXPRESSION = 200;
4230
4219
  function requiredOptions(o) {
4231
- var _a3, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
4220
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
4232
4221
  const s = o.strict;
4233
- const _optz = (_a3 = o.code) === null || _a3 === undefined ? undefined : _a3.optimize;
4222
+ const _optz = (_a = o.code) === null || _a === undefined ? undefined : _a.optimize;
4234
4223
  const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;
4235
4224
  const regExp = (_c = (_b = o.code) === null || _b === undefined ? undefined : _b.regExp) !== null && _c !== undefined ? _c : defaultRegExp;
4236
4225
  const uriResolver = (_d = o.uriResolver) !== null && _d !== undefined ? _d : uri_1.default;
@@ -4289,19 +4278,19 @@ var require_core = __commonJS((exports) => {
4289
4278
  this.addKeyword("$async");
4290
4279
  }
4291
4280
  _addDefaultMetaSchema() {
4292
- const { $data, meta: meta2, schemaId } = this.opts;
4281
+ const { $data, meta, schemaId } = this.opts;
4293
4282
  let _dataRefSchema = $dataRefSchema;
4294
4283
  if (schemaId === "id") {
4295
4284
  _dataRefSchema = { ...$dataRefSchema };
4296
4285
  _dataRefSchema.id = _dataRefSchema.$id;
4297
4286
  delete _dataRefSchema.$id;
4298
4287
  }
4299
- if (meta2 && $data)
4288
+ if (meta && $data)
4300
4289
  this.addMetaSchema(_dataRefSchema, _dataRefSchema[schemaId], false);
4301
4290
  }
4302
4291
  defaultMeta() {
4303
- const { meta: meta2, schemaId } = this.opts;
4304
- return this.opts.defaultMeta = typeof meta2 == "object" ? meta2[schemaId] || meta2 : undefined;
4292
+ const { meta, schemaId } = this.opts;
4293
+ return this.opts.defaultMeta = typeof meta == "object" ? meta[schemaId] || meta : undefined;
4305
4294
  }
4306
4295
  validate(schemaKeyRef, data) {
4307
4296
  let v;
@@ -4321,12 +4310,12 @@ var require_core = __commonJS((exports) => {
4321
4310
  const sch = this._addSchema(schema, _meta);
4322
4311
  return sch.validate || this._compileSchemaEnv(sch);
4323
4312
  }
4324
- compileAsync(schema, meta2) {
4313
+ compileAsync(schema, meta) {
4325
4314
  if (typeof this.opts.loadSchema != "function") {
4326
4315
  throw new Error("options.loadSchema should be a function");
4327
4316
  }
4328
4317
  const { loadSchema } = this.opts;
4329
- return runCompileAsync.call(this, schema, meta2);
4318
+ return runCompileAsync.call(this, schema, meta);
4330
4319
  async function runCompileAsync(_schema, _meta) {
4331
4320
  await loadMetaSchema.call(this, _schema.$schema);
4332
4321
  const sch = this._addSchema(_schema, _meta);
@@ -4358,7 +4347,7 @@ var require_core = __commonJS((exports) => {
4358
4347
  if (!this.refs[ref])
4359
4348
  await loadMetaSchema.call(this, _schema.$schema);
4360
4349
  if (!this.refs[ref])
4361
- this.addSchema(_schema, ref, meta2);
4350
+ this.addSchema(_schema, ref, meta);
4362
4351
  }
4363
4352
  async function _loadSchema(ref) {
4364
4353
  const p = this._loading[ref];
@@ -4524,10 +4513,10 @@ var require_core = __commonJS((exports) => {
4524
4513
  this.formats[name] = format;
4525
4514
  return this;
4526
4515
  }
4527
- errorsText(errors3 = this.errors, { separator = ", ", dataVar = "data" } = {}) {
4528
- if (!errors3 || errors3.length === 0)
4516
+ errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
4517
+ if (!errors || errors.length === 0)
4529
4518
  return "No errors";
4530
- return errors3.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg);
4519
+ return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg);
4531
4520
  }
4532
4521
  $dataMetaSchema(metaSchema, keywordsJsonPointers) {
4533
4522
  const rules = this.RULES.all;
@@ -4549,20 +4538,20 @@ var require_core = __commonJS((exports) => {
4549
4538
  }
4550
4539
  return metaSchema;
4551
4540
  }
4552
- _removeAllSchemas(schemas3, regex) {
4553
- for (const keyRef in schemas3) {
4554
- const sch = schemas3[keyRef];
4541
+ _removeAllSchemas(schemas, regex) {
4542
+ for (const keyRef in schemas) {
4543
+ const sch = schemas[keyRef];
4555
4544
  if (!regex || regex.test(keyRef)) {
4556
4545
  if (typeof sch == "string") {
4557
- delete schemas3[keyRef];
4546
+ delete schemas[keyRef];
4558
4547
  } else if (sch && !sch.meta) {
4559
4548
  this._cache.delete(sch.schema);
4560
- delete schemas3[keyRef];
4549
+ delete schemas[keyRef];
4561
4550
  }
4562
4551
  }
4563
4552
  }
4564
4553
  }
4565
- _addSchema(schema, meta2, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
4554
+ _addSchema(schema, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
4566
4555
  let id;
4567
4556
  const { schemaId } = this.opts;
4568
4557
  if (typeof schema == "object") {
@@ -4578,7 +4567,7 @@ var require_core = __commonJS((exports) => {
4578
4567
  return sch;
4579
4568
  baseId = (0, resolve_1.normalizeId)(id || baseId);
4580
4569
  const localRefs = resolve_1.getSchemaRefs.call(this, schema, baseId);
4581
- sch = new compile_1.SchemaEnv({ schema, schemaId, meta: meta2, baseId, localRefs });
4570
+ sch = new compile_1.SchemaEnv({ schema, schemaId, meta, baseId, localRefs });
4582
4571
  this._cache.set(sch.schema, sch);
4583
4572
  if (addSchema && !baseId.startsWith("#")) {
4584
4573
  if (baseId)
@@ -4689,7 +4678,7 @@ var require_core = __commonJS((exports) => {
4689
4678
  }
4690
4679
  }
4691
4680
  function addRule(keyword, definition, dataType) {
4692
- var _a3;
4681
+ var _a;
4693
4682
  const post = definition === null || definition === undefined ? undefined : definition.post;
4694
4683
  if (dataType && post)
4695
4684
  throw new Error('keyword with "post" flag cannot have "type"');
@@ -4715,7 +4704,7 @@ var require_core = __commonJS((exports) => {
4715
4704
  else
4716
4705
  ruleGroup.rules.push(rule);
4717
4706
  RULES.all[keyword] = rule;
4718
- (_a3 = definition.implements) === null || _a3 === undefined || _a3.forEach((kwd) => this.addKeyword(kwd));
4707
+ (_a = definition.implements) === null || _a === undefined || _a.forEach((kwd) => this.addKeyword(kwd));
4719
4708
  }
4720
4709
  function addBeforeRule(ruleGroup, rule, before) {
4721
4710
  const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
@@ -4743,7 +4732,7 @@ var require_core = __commonJS((exports) => {
4743
4732
  });
4744
4733
 
4745
4734
  // node_modules/ajv/dist/vocabularies/core/id.js
4746
- var require_id = __commonJS((exports) => {
4735
+ var require_id = __commonJS(function(exports) {
4747
4736
  Object.defineProperty(exports, "__esModule", { value: true });
4748
4737
  var def = {
4749
4738
  keyword: "id",
@@ -4755,7 +4744,7 @@ var require_id = __commonJS((exports) => {
4755
4744
  });
4756
4745
 
4757
4746
  // node_modules/ajv/dist/vocabularies/core/ref.js
4758
- var require_ref = __commonJS((exports) => {
4747
+ var require_ref = __commonJS(function(exports) {
4759
4748
  Object.defineProperty(exports, "__esModule", { value: true });
4760
4749
  exports.callRef = exports.getValidate = undefined;
4761
4750
  var ref_error_1 = require_ref_error();
@@ -4843,10 +4832,10 @@ var require_ref = __commonJS((exports) => {
4843
4832
  gen.assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`);
4844
4833
  }
4845
4834
  function addEvaluatedFrom(source) {
4846
- var _a3;
4835
+ var _a;
4847
4836
  if (!it.opts.unevaluated)
4848
4837
  return;
4849
- const schEvaluated = (_a3 = sch === null || sch === undefined ? undefined : sch.validate) === null || _a3 === undefined ? undefined : _a3.evaluated;
4838
+ const schEvaluated = (_a = sch === null || sch === undefined ? undefined : sch.validate) === null || _a === undefined ? undefined : _a.evaluated;
4850
4839
  if (it.props !== true) {
4851
4840
  if (schEvaluated && !schEvaluated.dynamicProps) {
4852
4841
  if (schEvaluated.props !== undefined) {
@@ -4874,11 +4863,11 @@ var require_ref = __commonJS((exports) => {
4874
4863
  });
4875
4864
 
4876
4865
  // node_modules/ajv/dist/vocabularies/core/index.js
4877
- var require_core2 = __commonJS((exports) => {
4866
+ var require_core2 = __commonJS(function(exports) {
4878
4867
  Object.defineProperty(exports, "__esModule", { value: true });
4879
4868
  var id_1 = require_id();
4880
4869
  var ref_1 = require_ref();
4881
- var core2 = [
4870
+ var core = [
4882
4871
  "$schema",
4883
4872
  "$id",
4884
4873
  "$defs",
@@ -4888,11 +4877,11 @@ var require_core2 = __commonJS((exports) => {
4888
4877
  id_1.default,
4889
4878
  ref_1.default
4890
4879
  ];
4891
- exports.default = core2;
4880
+ exports.default = core;
4892
4881
  });
4893
4882
 
4894
4883
  // node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4895
- var require_limitNumber = __commonJS((exports) => {
4884
+ var require_limitNumber = __commonJS(function(exports) {
4896
4885
  Object.defineProperty(exports, "__esModule", { value: true });
4897
4886
  var codegen_1 = require_codegen();
4898
4887
  var ops = codegen_1.operators;
@@ -4902,7 +4891,7 @@ var require_limitNumber = __commonJS((exports) => {
4902
4891
  exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
4903
4892
  exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
4904
4893
  };
4905
- var error2 = {
4894
+ var error = {
4906
4895
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`,
4907
4896
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
4908
4897
  };
@@ -4911,7 +4900,7 @@ var require_limitNumber = __commonJS((exports) => {
4911
4900
  type: "number",
4912
4901
  schemaType: "number",
4913
4902
  $data: true,
4914
- error: error2,
4903
+ error,
4915
4904
  code(cxt) {
4916
4905
  const { keyword, data, schemaCode } = cxt;
4917
4906
  cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
@@ -4921,10 +4910,10 @@ var require_limitNumber = __commonJS((exports) => {
4921
4910
  });
4922
4911
 
4923
4912
  // node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4924
- var require_multipleOf = __commonJS((exports) => {
4913
+ var require_multipleOf = __commonJS(function(exports) {
4925
4914
  Object.defineProperty(exports, "__esModule", { value: true });
4926
4915
  var codegen_1 = require_codegen();
4927
- var error2 = {
4916
+ var error = {
4928
4917
  message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
4929
4918
  params: ({ schemaCode }) => (0, codegen_1._)`{multipleOf: ${schemaCode}}`
4930
4919
  };
@@ -4933,7 +4922,7 @@ var require_multipleOf = __commonJS((exports) => {
4933
4922
  type: "number",
4934
4923
  schemaType: "number",
4935
4924
  $data: true,
4936
- error: error2,
4925
+ error,
4937
4926
  code(cxt) {
4938
4927
  const { gen, data, schemaCode, it } = cxt;
4939
4928
  const prec = it.opts.multipleOfPrecision;
@@ -4946,7 +4935,7 @@ var require_multipleOf = __commonJS((exports) => {
4946
4935
  });
4947
4936
 
4948
4937
  // node_modules/ajv/dist/runtime/ucs2length.js
4949
- var require_ucs2length = __commonJS((exports) => {
4938
+ var require_ucs2length = __commonJS(function(exports) {
4950
4939
  Object.defineProperty(exports, "__esModule", { value: true });
4951
4940
  function ucs2length(str) {
4952
4941
  const len = str.length;
@@ -4969,12 +4958,12 @@ var require_ucs2length = __commonJS((exports) => {
4969
4958
  });
4970
4959
 
4971
4960
  // node_modules/ajv/dist/vocabularies/validation/limitLength.js
4972
- var require_limitLength = __commonJS((exports) => {
4961
+ var require_limitLength = __commonJS(function(exports) {
4973
4962
  Object.defineProperty(exports, "__esModule", { value: true });
4974
4963
  var codegen_1 = require_codegen();
4975
4964
  var util_1 = require_util();
4976
4965
  var ucs2length_1 = require_ucs2length();
4977
- var error2 = {
4966
+ var error = {
4978
4967
  message({ keyword, schemaCode }) {
4979
4968
  const comp = keyword === "maxLength" ? "more" : "fewer";
4980
4969
  return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} characters`;
@@ -4986,7 +4975,7 @@ var require_limitLength = __commonJS((exports) => {
4986
4975
  type: "string",
4987
4976
  schemaType: "number",
4988
4977
  $data: true,
4989
- error: error2,
4978
+ error,
4990
4979
  code(cxt) {
4991
4980
  const { keyword, data, schemaCode, it } = cxt;
4992
4981
  const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT;
@@ -4998,12 +4987,12 @@ var require_limitLength = __commonJS((exports) => {
4998
4987
  });
4999
4988
 
5000
4989
  // node_modules/ajv/dist/vocabularies/validation/pattern.js
5001
- var require_pattern = __commonJS((exports) => {
4990
+ var require_pattern = __commonJS(function(exports) {
5002
4991
  Object.defineProperty(exports, "__esModule", { value: true });
5003
4992
  var code_1 = require_code2();
5004
4993
  var util_1 = require_util();
5005
4994
  var codegen_1 = require_codegen();
5006
- var error2 = {
4995
+ var error = {
5007
4996
  message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`,
5008
4997
  params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}`
5009
4998
  };
@@ -5012,7 +5001,7 @@ var require_pattern = __commonJS((exports) => {
5012
5001
  type: "string",
5013
5002
  schemaType: "string",
5014
5003
  $data: true,
5015
- error: error2,
5004
+ error,
5016
5005
  code(cxt) {
5017
5006
  const { gen, data, $data, schema, schemaCode, it } = cxt;
5018
5007
  const u = it.opts.unicodeRegExp ? "u" : "";
@@ -5032,10 +5021,10 @@ var require_pattern = __commonJS((exports) => {
5032
5021
  });
5033
5022
 
5034
5023
  // node_modules/ajv/dist/vocabularies/validation/limitProperties.js
5035
- var require_limitProperties = __commonJS((exports) => {
5024
+ var require_limitProperties = __commonJS(function(exports) {
5036
5025
  Object.defineProperty(exports, "__esModule", { value: true });
5037
5026
  var codegen_1 = require_codegen();
5038
- var error2 = {
5027
+ var error = {
5039
5028
  message({ keyword, schemaCode }) {
5040
5029
  const comp = keyword === "maxProperties" ? "more" : "fewer";
5041
5030
  return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`;
@@ -5047,7 +5036,7 @@ var require_limitProperties = __commonJS((exports) => {
5047
5036
  type: "object",
5048
5037
  schemaType: "number",
5049
5038
  $data: true,
5050
- error: error2,
5039
+ error,
5051
5040
  code(cxt) {
5052
5041
  const { keyword, data, schemaCode } = cxt;
5053
5042
  const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT;
@@ -5058,12 +5047,12 @@ var require_limitProperties = __commonJS((exports) => {
5058
5047
  });
5059
5048
 
5060
5049
  // node_modules/ajv/dist/vocabularies/validation/required.js
5061
- var require_required = __commonJS((exports) => {
5050
+ var require_required = __commonJS(function(exports) {
5062
5051
  Object.defineProperty(exports, "__esModule", { value: true });
5063
5052
  var code_1 = require_code2();
5064
5053
  var codegen_1 = require_codegen();
5065
5054
  var util_1 = require_util();
5066
- var error2 = {
5055
+ var error = {
5067
5056
  message: ({ params: { missingProperty } }) => (0, codegen_1.str)`must have required property '${missingProperty}'`,
5068
5057
  params: ({ params: { missingProperty } }) => (0, codegen_1._)`{missingProperty: ${missingProperty}}`
5069
5058
  };
@@ -5072,7 +5061,7 @@ var require_required = __commonJS((exports) => {
5072
5061
  type: "object",
5073
5062
  schemaType: "array",
5074
5063
  $data: true,
5075
- error: error2,
5064
+ error,
5076
5065
  code(cxt) {
5077
5066
  const { gen, schema, schemaCode, data, $data, it } = cxt;
5078
5067
  const { opts } = it;
@@ -5137,10 +5126,10 @@ var require_required = __commonJS((exports) => {
5137
5126
  });
5138
5127
 
5139
5128
  // node_modules/ajv/dist/vocabularies/validation/limitItems.js
5140
- var require_limitItems = __commonJS((exports) => {
5129
+ var require_limitItems = __commonJS(function(exports) {
5141
5130
  Object.defineProperty(exports, "__esModule", { value: true });
5142
5131
  var codegen_1 = require_codegen();
5143
- var error2 = {
5132
+ var error = {
5144
5133
  message({ keyword, schemaCode }) {
5145
5134
  const comp = keyword === "maxItems" ? "more" : "fewer";
5146
5135
  return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`;
@@ -5152,7 +5141,7 @@ var require_limitItems = __commonJS((exports) => {
5152
5141
  type: "array",
5153
5142
  schemaType: "number",
5154
5143
  $data: true,
5155
- error: error2,
5144
+ error,
5156
5145
  code(cxt) {
5157
5146
  const { keyword, data, schemaCode } = cxt;
5158
5147
  const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT;
@@ -5163,7 +5152,7 @@ var require_limitItems = __commonJS((exports) => {
5163
5152
  });
5164
5153
 
5165
5154
  // node_modules/ajv/dist/runtime/equal.js
5166
- var require_equal = __commonJS((exports) => {
5155
+ var require_equal = __commonJS(function(exports) {
5167
5156
  Object.defineProperty(exports, "__esModule", { value: true });
5168
5157
  var equal = require_fast_deep_equal();
5169
5158
  equal.code = 'require("ajv/dist/runtime/equal").default';
@@ -5171,13 +5160,13 @@ var require_equal = __commonJS((exports) => {
5171
5160
  });
5172
5161
 
5173
5162
  // node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
5174
- var require_uniqueItems = __commonJS((exports) => {
5163
+ var require_uniqueItems = __commonJS(function(exports) {
5175
5164
  Object.defineProperty(exports, "__esModule", { value: true });
5176
5165
  var dataType_1 = require_dataType();
5177
5166
  var codegen_1 = require_codegen();
5178
5167
  var util_1 = require_util();
5179
5168
  var equal_1 = require_equal();
5180
- var error2 = {
5169
+ var error = {
5181
5170
  message: ({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,
5182
5171
  params: ({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}`
5183
5172
  };
@@ -5186,7 +5175,7 @@ var require_uniqueItems = __commonJS((exports) => {
5186
5175
  type: "array",
5187
5176
  schemaType: "boolean",
5188
5177
  $data: true,
5189
- error: error2,
5178
+ error,
5190
5179
  code(cxt) {
5191
5180
  const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt;
5192
5181
  if (!$data && !schema)
@@ -5235,19 +5224,19 @@ var require_uniqueItems = __commonJS((exports) => {
5235
5224
  });
5236
5225
 
5237
5226
  // node_modules/ajv/dist/vocabularies/validation/const.js
5238
- var require_const = __commonJS((exports) => {
5227
+ var require_const = __commonJS(function(exports) {
5239
5228
  Object.defineProperty(exports, "__esModule", { value: true });
5240
5229
  var codegen_1 = require_codegen();
5241
5230
  var util_1 = require_util();
5242
5231
  var equal_1 = require_equal();
5243
- var error2 = {
5232
+ var error = {
5244
5233
  message: "must be equal to constant",
5245
5234
  params: ({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}`
5246
5235
  };
5247
5236
  var def = {
5248
5237
  keyword: "const",
5249
5238
  $data: true,
5250
- error: error2,
5239
+ error,
5251
5240
  code(cxt) {
5252
5241
  const { gen, data, $data, schemaCode, schema } = cxt;
5253
5242
  if ($data || schema && typeof schema == "object") {
@@ -5261,12 +5250,12 @@ var require_const = __commonJS((exports) => {
5261
5250
  });
5262
5251
 
5263
5252
  // node_modules/ajv/dist/vocabularies/validation/enum.js
5264
- var require_enum = __commonJS((exports) => {
5253
+ var require_enum = __commonJS(function(exports) {
5265
5254
  Object.defineProperty(exports, "__esModule", { value: true });
5266
5255
  var codegen_1 = require_codegen();
5267
5256
  var util_1 = require_util();
5268
5257
  var equal_1 = require_equal();
5269
- var error2 = {
5258
+ var error = {
5270
5259
  message: "must be equal to one of the allowed values",
5271
5260
  params: ({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}`
5272
5261
  };
@@ -5274,7 +5263,7 @@ var require_enum = __commonJS((exports) => {
5274
5263
  keyword: "enum",
5275
5264
  schemaType: "array",
5276
5265
  $data: true,
5277
- error: error2,
5266
+ error,
5278
5267
  code(cxt) {
5279
5268
  const { gen, data, $data, schema, schemaCode, it } = cxt;
5280
5269
  if (!$data && schema.length === 0)
@@ -5307,7 +5296,7 @@ var require_enum = __commonJS((exports) => {
5307
5296
  });
5308
5297
 
5309
5298
  // node_modules/ajv/dist/vocabularies/validation/index.js
5310
- var require_validation = __commonJS((exports) => {
5299
+ var require_validation = __commonJS(function(exports) {
5311
5300
  Object.defineProperty(exports, "__esModule", { value: true });
5312
5301
  var limitNumber_1 = require_limitNumber();
5313
5302
  var multipleOf_1 = require_multipleOf();
@@ -5337,12 +5326,12 @@ var require_validation = __commonJS((exports) => {
5337
5326
  });
5338
5327
 
5339
5328
  // node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5340
- var require_additionalItems = __commonJS((exports) => {
5329
+ var require_additionalItems = __commonJS(function(exports) {
5341
5330
  Object.defineProperty(exports, "__esModule", { value: true });
5342
5331
  exports.validateAdditionalItems = undefined;
5343
5332
  var codegen_1 = require_codegen();
5344
5333
  var util_1 = require_util();
5345
- var error2 = {
5334
+ var error = {
5346
5335
  message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
5347
5336
  params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
5348
5337
  };
@@ -5351,7 +5340,7 @@ var require_additionalItems = __commonJS((exports) => {
5351
5340
  type: "array",
5352
5341
  schemaType: ["boolean", "object"],
5353
5342
  before: "uniqueItems",
5354
- error: error2,
5343
+ error,
5355
5344
  code(cxt) {
5356
5345
  const { parentSchema, it } = cxt;
5357
5346
  const { items } = parentSchema;
@@ -5387,7 +5376,7 @@ var require_additionalItems = __commonJS((exports) => {
5387
5376
  });
5388
5377
 
5389
5378
  // node_modules/ajv/dist/vocabularies/applicator/items.js
5390
- var require_items = __commonJS((exports) => {
5379
+ var require_items = __commonJS(function(exports) {
5391
5380
  Object.defineProperty(exports, "__esModule", { value: true });
5392
5381
  exports.validateTuple = undefined;
5393
5382
  var codegen_1 = require_codegen();
@@ -5441,7 +5430,7 @@ var require_items = __commonJS((exports) => {
5441
5430
  });
5442
5431
 
5443
5432
  // node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5444
- var require_prefixItems = __commonJS((exports) => {
5433
+ var require_prefixItems = __commonJS(function(exports) {
5445
5434
  Object.defineProperty(exports, "__esModule", { value: true });
5446
5435
  var items_1 = require_items();
5447
5436
  var def = {
@@ -5455,13 +5444,13 @@ var require_prefixItems = __commonJS((exports) => {
5455
5444
  });
5456
5445
 
5457
5446
  // node_modules/ajv/dist/vocabularies/applicator/items2020.js
5458
- var require_items2020 = __commonJS((exports) => {
5447
+ var require_items2020 = __commonJS(function(exports) {
5459
5448
  Object.defineProperty(exports, "__esModule", { value: true });
5460
5449
  var codegen_1 = require_codegen();
5461
5450
  var util_1 = require_util();
5462
5451
  var code_1 = require_code2();
5463
5452
  var additionalItems_1 = require_additionalItems();
5464
- var error2 = {
5453
+ var error = {
5465
5454
  message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
5466
5455
  params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
5467
5456
  };
@@ -5470,7 +5459,7 @@ var require_items2020 = __commonJS((exports) => {
5470
5459
  type: "array",
5471
5460
  schemaType: ["object", "boolean"],
5472
5461
  before: "uniqueItems",
5473
- error: error2,
5462
+ error,
5474
5463
  code(cxt) {
5475
5464
  const { schema, parentSchema, it } = cxt;
5476
5465
  const { prefixItems } = parentSchema;
@@ -5487,11 +5476,11 @@ var require_items2020 = __commonJS((exports) => {
5487
5476
  });
5488
5477
 
5489
5478
  // node_modules/ajv/dist/vocabularies/applicator/contains.js
5490
- var require_contains = __commonJS((exports) => {
5479
+ var require_contains = __commonJS(function(exports) {
5491
5480
  Object.defineProperty(exports, "__esModule", { value: true });
5492
5481
  var codegen_1 = require_codegen();
5493
5482
  var util_1 = require_util();
5494
- var error2 = {
5483
+ var error = {
5495
5484
  message: ({ params: { min, max } }) => max === undefined ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,
5496
5485
  params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}`
5497
5486
  };
@@ -5501,7 +5490,7 @@ var require_contains = __commonJS((exports) => {
5501
5490
  schemaType: ["object", "boolean"],
5502
5491
  before: "uniqueItems",
5503
5492
  trackErrors: true,
5504
- error: error2,
5493
+ error,
5505
5494
  code(cxt) {
5506
5495
  const { gen, schema, parentSchema, data, it } = cxt;
5507
5496
  let min;
@@ -5578,7 +5567,7 @@ var require_contains = __commonJS((exports) => {
5578
5567
  });
5579
5568
 
5580
5569
  // node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5581
- var require_dependencies = __commonJS((exports) => {
5570
+ var require_dependencies = __commonJS(function(exports) {
5582
5571
  Object.defineProperty(exports, "__esModule", { value: true });
5583
5572
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
5584
5573
  var codegen_1 = require_codegen();
@@ -5663,11 +5652,11 @@ var require_dependencies = __commonJS((exports) => {
5663
5652
  });
5664
5653
 
5665
5654
  // node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5666
- var require_propertyNames = __commonJS((exports) => {
5655
+ var require_propertyNames = __commonJS(function(exports) {
5667
5656
  Object.defineProperty(exports, "__esModule", { value: true });
5668
5657
  var codegen_1 = require_codegen();
5669
5658
  var util_1 = require_util();
5670
- var error2 = {
5659
+ var error = {
5671
5660
  message: "property name must be valid",
5672
5661
  params: ({ params }) => (0, codegen_1._)`{propertyName: ${params.propertyName}}`
5673
5662
  };
@@ -5675,7 +5664,7 @@ var require_propertyNames = __commonJS((exports) => {
5675
5664
  keyword: "propertyNames",
5676
5665
  type: "object",
5677
5666
  schemaType: ["object", "boolean"],
5678
- error: error2,
5667
+ error,
5679
5668
  code(cxt) {
5680
5669
  const { gen, schema, data, it } = cxt;
5681
5670
  if ((0, util_1.alwaysValidSchema)(it, schema))
@@ -5703,13 +5692,13 @@ var require_propertyNames = __commonJS((exports) => {
5703
5692
  });
5704
5693
 
5705
5694
  // node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5706
- var require_additionalProperties = __commonJS((exports) => {
5695
+ var require_additionalProperties = __commonJS(function(exports) {
5707
5696
  Object.defineProperty(exports, "__esModule", { value: true });
5708
5697
  var code_1 = require_code2();
5709
5698
  var codegen_1 = require_codegen();
5710
5699
  var names_1 = require_names();
5711
5700
  var util_1 = require_util();
5712
- var error2 = {
5701
+ var error = {
5713
5702
  message: "must NOT have additional properties",
5714
5703
  params: ({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}`
5715
5704
  };
@@ -5719,7 +5708,7 @@ var require_additionalProperties = __commonJS((exports) => {
5719
5708
  schemaType: ["boolean", "object"],
5720
5709
  allowUndefined: true,
5721
5710
  trackErrors: true,
5722
- error: error2,
5711
+ error,
5723
5712
  code(cxt) {
5724
5713
  const { gen, schema, parentSchema, data, errsCount, it } = cxt;
5725
5714
  if (!errsCount)
@@ -5785,13 +5774,13 @@ var require_additionalProperties = __commonJS((exports) => {
5785
5774
  }
5786
5775
  }
5787
5776
  }
5788
- function applyAdditionalSchema(key, valid, errors3) {
5777
+ function applyAdditionalSchema(key, valid, errors) {
5789
5778
  const subschema = {
5790
5779
  keyword: "additionalProperties",
5791
5780
  dataProp: key,
5792
5781
  dataPropType: util_1.Type.Str
5793
5782
  };
5794
- if (errors3 === false) {
5783
+ if (errors === false) {
5795
5784
  Object.assign(subschema, {
5796
5785
  compositeRule: true,
5797
5786
  createErrors: false,
@@ -5806,7 +5795,7 @@ var require_additionalProperties = __commonJS((exports) => {
5806
5795
  });
5807
5796
 
5808
5797
  // node_modules/ajv/dist/vocabularies/applicator/properties.js
5809
- var require_properties = __commonJS((exports) => {
5798
+ var require_properties = __commonJS(function(exports) {
5810
5799
  Object.defineProperty(exports, "__esModule", { value: true });
5811
5800
  var validate_1 = require_validate();
5812
5801
  var code_1 = require_code2();
@@ -5861,7 +5850,7 @@ var require_properties = __commonJS((exports) => {
5861
5850
  });
5862
5851
 
5863
5852
  // node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5864
- var require_patternProperties = __commonJS((exports) => {
5853
+ var require_patternProperties = __commonJS(function(exports) {
5865
5854
  Object.defineProperty(exports, "__esModule", { value: true });
5866
5855
  var code_1 = require_code2();
5867
5856
  var codegen_1 = require_codegen();
@@ -5932,7 +5921,7 @@ var require_patternProperties = __commonJS((exports) => {
5932
5921
  });
5933
5922
 
5934
5923
  // node_modules/ajv/dist/vocabularies/applicator/not.js
5935
- var require_not = __commonJS((exports) => {
5924
+ var require_not = __commonJS(function(exports) {
5936
5925
  Object.defineProperty(exports, "__esModule", { value: true });
5937
5926
  var util_1 = require_util();
5938
5927
  var def = {
@@ -5960,7 +5949,7 @@ var require_not = __commonJS((exports) => {
5960
5949
  });
5961
5950
 
5962
5951
  // node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5963
- var require_anyOf = __commonJS((exports) => {
5952
+ var require_anyOf = __commonJS(function(exports) {
5964
5953
  Object.defineProperty(exports, "__esModule", { value: true });
5965
5954
  var code_1 = require_code2();
5966
5955
  var def = {
@@ -5974,11 +5963,11 @@ var require_anyOf = __commonJS((exports) => {
5974
5963
  });
5975
5964
 
5976
5965
  // node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5977
- var require_oneOf = __commonJS((exports) => {
5966
+ var require_oneOf = __commonJS(function(exports) {
5978
5967
  Object.defineProperty(exports, "__esModule", { value: true });
5979
5968
  var codegen_1 = require_codegen();
5980
5969
  var util_1 = require_util();
5981
- var error2 = {
5970
+ var error = {
5982
5971
  message: "must match exactly one schema in oneOf",
5983
5972
  params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}`
5984
5973
  };
@@ -5986,7 +5975,7 @@ var require_oneOf = __commonJS((exports) => {
5986
5975
  keyword: "oneOf",
5987
5976
  schemaType: "array",
5988
5977
  trackErrors: true,
5989
- error: error2,
5978
+ error,
5990
5979
  code(cxt) {
5991
5980
  const { gen, schema, parentSchema, it } = cxt;
5992
5981
  if (!Array.isArray(schema))
@@ -6029,7 +6018,7 @@ var require_oneOf = __commonJS((exports) => {
6029
6018
  });
6030
6019
 
6031
6020
  // node_modules/ajv/dist/vocabularies/applicator/allOf.js
6032
- var require_allOf = __commonJS((exports) => {
6021
+ var require_allOf = __commonJS(function(exports) {
6033
6022
  Object.defineProperty(exports, "__esModule", { value: true });
6034
6023
  var util_1 = require_util();
6035
6024
  var def = {
@@ -6053,11 +6042,11 @@ var require_allOf = __commonJS((exports) => {
6053
6042
  });
6054
6043
 
6055
6044
  // node_modules/ajv/dist/vocabularies/applicator/if.js
6056
- var require_if = __commonJS((exports) => {
6045
+ var require_if = __commonJS(function(exports) {
6057
6046
  Object.defineProperty(exports, "__esModule", { value: true });
6058
6047
  var codegen_1 = require_codegen();
6059
6048
  var util_1 = require_util();
6060
- var error2 = {
6049
+ var error = {
6061
6050
  message: ({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`,
6062
6051
  params: ({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}`
6063
6052
  };
@@ -6065,7 +6054,7 @@ var require_if = __commonJS((exports) => {
6065
6054
  keyword: "if",
6066
6055
  schemaType: ["object", "boolean"],
6067
6056
  trackErrors: true,
6068
- error: error2,
6057
+ error,
6069
6058
  code(cxt) {
6070
6059
  const { gen, parentSchema, it } = cxt;
6071
6060
  if (parentSchema.then === undefined && parentSchema.else === undefined) {
@@ -6119,7 +6108,7 @@ var require_if = __commonJS((exports) => {
6119
6108
  });
6120
6109
 
6121
6110
  // node_modules/ajv/dist/vocabularies/applicator/thenElse.js
6122
- var require_thenElse = __commonJS((exports) => {
6111
+ var require_thenElse = __commonJS(function(exports) {
6123
6112
  Object.defineProperty(exports, "__esModule", { value: true });
6124
6113
  var util_1 = require_util();
6125
6114
  var def = {
@@ -6134,7 +6123,7 @@ var require_thenElse = __commonJS((exports) => {
6134
6123
  });
6135
6124
 
6136
6125
  // node_modules/ajv/dist/vocabularies/applicator/index.js
6137
- var require_applicator = __commonJS((exports) => {
6126
+ var require_applicator = __commonJS(function(exports) {
6138
6127
  Object.defineProperty(exports, "__esModule", { value: true });
6139
6128
  var additionalItems_1 = require_additionalItems();
6140
6129
  var prefixItems_1 = require_prefixItems();
@@ -6177,10 +6166,10 @@ var require_applicator = __commonJS((exports) => {
6177
6166
  });
6178
6167
 
6179
6168
  // node_modules/ajv/dist/vocabularies/format/format.js
6180
- var require_format = __commonJS((exports) => {
6169
+ var require_format = __commonJS(function(exports) {
6181
6170
  Object.defineProperty(exports, "__esModule", { value: true });
6182
6171
  var codegen_1 = require_codegen();
6183
- var error2 = {
6172
+ var error = {
6184
6173
  message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
6185
6174
  params: ({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}`
6186
6175
  };
@@ -6189,7 +6178,7 @@ var require_format = __commonJS((exports) => {
6189
6178
  type: ["number", "string"],
6190
6179
  schemaType: "string",
6191
6180
  $data: true,
6192
- error: error2,
6181
+ error,
6193
6182
  code(cxt, ruleType) {
6194
6183
  const { gen, data, $data, schema, schemaCode, it } = cxt;
6195
6184
  const { opts, errSchemaPath, schemaEnv, self } = it;
@@ -6264,7 +6253,7 @@ var require_format = __commonJS((exports) => {
6264
6253
  });
6265
6254
 
6266
6255
  // node_modules/ajv/dist/vocabularies/format/index.js
6267
- var require_format2 = __commonJS((exports) => {
6256
+ var require_format2 = __commonJS(function(exports) {
6268
6257
  Object.defineProperty(exports, "__esModule", { value: true });
6269
6258
  var format_1 = require_format();
6270
6259
  var format = [format_1.default];
@@ -6272,7 +6261,7 @@ var require_format2 = __commonJS((exports) => {
6272
6261
  });
6273
6262
 
6274
6263
  // node_modules/ajv/dist/vocabularies/metadata.js
6275
- var require_metadata = __commonJS((exports) => {
6264
+ var require_metadata = __commonJS(function(exports) {
6276
6265
  Object.defineProperty(exports, "__esModule", { value: true });
6277
6266
  exports.contentVocabulary = exports.metadataVocabulary = undefined;
6278
6267
  exports.metadataVocabulary = [
@@ -6292,7 +6281,7 @@ var require_metadata = __commonJS((exports) => {
6292
6281
  });
6293
6282
 
6294
6283
  // node_modules/ajv/dist/vocabularies/draft7.js
6295
- var require_draft7 = __commonJS((exports) => {
6284
+ var require_draft7 = __commonJS(function(exports) {
6296
6285
  Object.defineProperty(exports, "__esModule", { value: true });
6297
6286
  var core_1 = require_core2();
6298
6287
  var validation_1 = require_validation();
@@ -6311,25 +6300,25 @@ var require_draft7 = __commonJS((exports) => {
6311
6300
  });
6312
6301
 
6313
6302
  // node_modules/ajv/dist/vocabularies/discriminator/types.js
6314
- var require_types = __commonJS((exports) => {
6303
+ var require_types = __commonJS(function(exports) {
6315
6304
  Object.defineProperty(exports, "__esModule", { value: true });
6316
6305
  exports.DiscrError = undefined;
6317
6306
  var DiscrError;
6318
- (function(DiscrError2) {
6319
- DiscrError2["Tag"] = "tag";
6320
- DiscrError2["Mapping"] = "mapping";
6307
+ (function(DiscrError) {
6308
+ DiscrError["Tag"] = "tag";
6309
+ DiscrError["Mapping"] = "mapping";
6321
6310
  })(DiscrError || (exports.DiscrError = DiscrError = {}));
6322
6311
  });
6323
6312
 
6324
6313
  // node_modules/ajv/dist/vocabularies/discriminator/index.js
6325
- var require_discriminator = __commonJS((exports) => {
6314
+ var require_discriminator = __commonJS(function(exports) {
6326
6315
  Object.defineProperty(exports, "__esModule", { value: true });
6327
6316
  var codegen_1 = require_codegen();
6328
6317
  var types_1 = require_types();
6329
6318
  var compile_1 = require_compile();
6330
6319
  var ref_error_1 = require_ref_error();
6331
6320
  var util_1 = require_util();
6332
- var error2 = {
6321
+ var error = {
6333
6322
  message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
6334
6323
  params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`
6335
6324
  };
@@ -6337,7 +6326,7 @@ var require_discriminator = __commonJS((exports) => {
6337
6326
  keyword: "discriminator",
6338
6327
  type: "object",
6339
6328
  schemaType: "object",
6340
- error: error2,
6329
+ error,
6341
6330
  code(cxt) {
6342
6331
  const { gen, data, schema, parentSchema, it } = cxt;
6343
6332
  const { oneOf } = parentSchema;
@@ -6373,7 +6362,7 @@ var require_discriminator = __commonJS((exports) => {
6373
6362
  return _valid;
6374
6363
  }
6375
6364
  function getMapping() {
6376
- var _a3;
6365
+ var _a;
6377
6366
  const oneOfMapping = {};
6378
6367
  const topRequired = hasRequired(parentSchema);
6379
6368
  let tagRequired = true;
@@ -6387,7 +6376,7 @@ var require_discriminator = __commonJS((exports) => {
6387
6376
  if (sch === undefined)
6388
6377
  throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
6389
6378
  }
6390
- const propSch = (_a3 = sch === null || sch === undefined ? undefined : sch.properties) === null || _a3 === undefined ? undefined : _a3[tagName];
6379
+ const propSch = (_a = sch === null || sch === undefined ? undefined : sch.properties) === null || _a === undefined ? undefined : _a[tagName];
6391
6380
  if (typeof propSch != "object") {
6392
6381
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
6393
6382
  }
@@ -6397,8 +6386,8 @@ var require_discriminator = __commonJS((exports) => {
6397
6386
  if (!tagRequired)
6398
6387
  throw new Error(`discriminator: "${tagName}" must be required`);
6399
6388
  return oneOfMapping;
6400
- function hasRequired({ required: required2 }) {
6401
- return Array.isArray(required2) && required2.includes(tagName);
6389
+ function hasRequired({ required }) {
6390
+ return Array.isArray(required) && required.includes(tagName);
6402
6391
  }
6403
6392
  function addMappings(sch, i) {
6404
6393
  if (sch.const) {
@@ -6424,7 +6413,7 @@ var require_discriminator = __commonJS((exports) => {
6424
6413
  });
6425
6414
 
6426
6415
  // node_modules/ajv/dist/refs/json-schema-draft-07.json
6427
- var require_json_schema_draft_07 = __commonJS((exports, module) => {
6416
+ var require_json_schema_draft_07 = __commonJS(function(exports, module) {
6428
6417
  module.exports = {
6429
6418
  $schema: "http://json-schema.org/draft-07/schema#",
6430
6419
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6579,7 +6568,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
6579
6568
  });
6580
6569
 
6581
6570
  // node_modules/ajv/dist/ajv.js
6582
- var require_ajv = __commonJS((exports, module) => {
6571
+ var require_ajv = __commonJS(function(exports, module) {
6583
6572
  Object.defineProperty(exports, "__esModule", { value: true });
6584
6573
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
6585
6574
  var core_1 = require_core();
@@ -6647,14 +6636,14 @@ var require_ajv = __commonJS((exports, module) => {
6647
6636
  });
6648
6637
 
6649
6638
  // node_modules/ajv-formats/dist/formats.js
6650
- var require_formats = __commonJS((exports) => {
6639
+ var require_formats = __commonJS(function(exports) {
6651
6640
  Object.defineProperty(exports, "__esModule", { value: true });
6652
6641
  exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
6653
- function fmtDef(validate2, compare) {
6654
- return { validate: validate2, compare };
6642
+ function fmtDef(validate, compare) {
6643
+ return { validate, compare };
6655
6644
  }
6656
6645
  exports.fullFormats = {
6657
- date: fmtDef(date4, compareDate),
6646
+ date: fmtDef(date, compareDate),
6658
6647
  time: fmtDef(getTime(true), compareTime),
6659
6648
  "date-time": fmtDef(getDateTime(true), compareDateTime),
6660
6649
  "iso-time": fmtDef(getTime(), compareIsoTime),
@@ -6698,7 +6687,7 @@ var require_formats = __commonJS((exports) => {
6698
6687
  }
6699
6688
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
6700
6689
  var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
6701
- function date4(str) {
6690
+ function date(str) {
6702
6691
  const matches = DATE.exec(str);
6703
6692
  if (!matches)
6704
6693
  return false;
@@ -6718,7 +6707,7 @@ var require_formats = __commonJS((exports) => {
6718
6707
  }
6719
6708
  var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
6720
6709
  function getTime(strictTimeZone) {
6721
- return function time3(str) {
6710
+ return function time(str) {
6722
6711
  const matches = TIME.exec(str);
6723
6712
  if (!matches)
6724
6713
  return false;
@@ -6764,10 +6753,10 @@ var require_formats = __commonJS((exports) => {
6764
6753
  }
6765
6754
  var DATE_TIME_SEPARATOR = /t|\s/i;
6766
6755
  function getDateTime(strictTimeZone) {
6767
- const time3 = getTime(strictTimeZone);
6756
+ const time = getTime(strictTimeZone);
6768
6757
  return function date_time(str) {
6769
6758
  const dateTime = str.split(DATE_TIME_SEPARATOR);
6770
- return dateTime.length === 2 && date4(dateTime[0]) && time3(dateTime[1]);
6759
+ return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);
6771
6760
  };
6772
6761
  }
6773
6762
  function compareDateTime(dt1, dt2) {
@@ -6824,7 +6813,7 @@ var require_formats = __commonJS((exports) => {
6824
6813
  });
6825
6814
 
6826
6815
  // node_modules/ajv-formats/dist/limit.js
6827
- var require_limit = __commonJS((exports) => {
6816
+ var require_limit = __commonJS(function(exports) {
6828
6817
  Object.defineProperty(exports, "__esModule", { value: true });
6829
6818
  exports.formatLimitDefinition = undefined;
6830
6819
  var ajv_1 = require_ajv();
@@ -6836,7 +6825,7 @@ var require_limit = __commonJS((exports) => {
6836
6825
  formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
6837
6826
  formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
6838
6827
  };
6839
- var error2 = {
6828
+ var error = {
6840
6829
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
6841
6830
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
6842
6831
  };
@@ -6845,7 +6834,7 @@ var require_limit = __commonJS((exports) => {
6845
6834
  type: "string",
6846
6835
  schemaType: "string",
6847
6836
  $data: true,
6848
- error: error2,
6837
+ error,
6849
6838
  code(cxt) {
6850
6839
  const { gen, data, schemaCode, keyword, it } = cxt;
6851
6840
  const { opts, self } = it;
@@ -6893,7 +6882,7 @@ var require_limit = __commonJS((exports) => {
6893
6882
  });
6894
6883
 
6895
6884
  // node_modules/ajv-formats/dist/index.js
6896
- var require_dist = __commonJS((exports, module) => {
6885
+ var require_dist = __commonJS(function(exports, module) {
6897
6886
  Object.defineProperty(exports, "__esModule", { value: true });
6898
6887
  var formats_1 = require_formats();
6899
6888
  var limit_1 = require_limit();
@@ -6920,9 +6909,9 @@ var require_dist = __commonJS((exports, module) => {
6920
6909
  return f;
6921
6910
  };
6922
6911
  function addFormats(ajv, list, fs, exportName) {
6923
- var _a3;
6912
+ var _a;
6924
6913
  var _b;
6925
- (_a3 = (_b = ajv.opts.code).formats) !== null && _a3 !== undefined || (_b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`);
6914
+ (_a = (_b = ajv.opts.code).formats) !== null && _a !== undefined || (_b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`);
6926
6915
  for (const f of list)
6927
6916
  ajv.addFormat(f, fs[f]);
6928
6917
  }
@@ -6932,98 +6921,6 @@ var require_dist = __commonJS((exports, module) => {
6932
6921
  });
6933
6922
 
6934
6923
  // node_modules/zod/v4/core/util.js
6935
- var exports_util = {};
6936
- __export(exports_util, {
6937
- unwrapMessage: () => unwrapMessage,
6938
- uint8ArrayToHex: () => uint8ArrayToHex,
6939
- uint8ArrayToBase64url: () => uint8ArrayToBase64url,
6940
- uint8ArrayToBase64: () => uint8ArrayToBase64,
6941
- toZod: () => toZod,
6942
- stringifyPrimitive: () => stringifyPrimitive,
6943
- slugify: () => slugify,
6944
- shallowClone: () => shallowClone,
6945
- safeExtend: () => safeExtend,
6946
- required: () => required,
6947
- rawShape: () => rawShape,
6948
- randomString: () => randomString,
6949
- propertyKeyTypes: () => propertyKeyTypes,
6950
- promiseAllObject: () => promiseAllObject,
6951
- primitiveTypes: () => primitiveTypes,
6952
- prefixIssues: () => prefixIssues,
6953
- pick: () => pick,
6954
- partial: () => partial,
6955
- parsedType: () => parsedType,
6956
- own: () => own,
6957
- optionalKeys: () => optionalKeys,
6958
- omit: () => omit,
6959
- objectClone: () => objectClone,
6960
- numKeys: () => numKeys,
6961
- nullish: () => nullish,
6962
- normalizeParams: () => normalizeParams,
6963
- mergeDefs: () => mergeDefs,
6964
- merge: () => merge,
6965
- members: () => members,
6966
- jsonStringifyReplacer: () => jsonStringifyReplacer,
6967
- joinValues: () => joinValues,
6968
- issue: () => issue,
6969
- isPlainObject: () => isPlainObject,
6970
- isObject: () => isObject,
6971
- installLazyProp: () => installLazyProp,
6972
- hide: () => hide,
6973
- hexToUint8Array: () => hexToUint8Array,
6974
- getSizableOrigin: () => getSizableOrigin,
6975
- getParsedType: () => getParsedType,
6976
- getLengthableOrigin: () => getLengthableOrigin,
6977
- getEnumValues: () => getEnumValues,
6978
- getElementAtPath: () => getElementAtPath,
6979
- floatSafeRemainder: () => floatSafeRemainder,
6980
- finalizeIssue: () => finalizeIssue,
6981
- extend: () => extend,
6982
- explicitlyAborted: () => explicitlyAborted,
6983
- escapeRegex: () => escapeRegex,
6984
- esc: () => esc,
6985
- derived: () => derived,
6986
- defineLazyInternal: () => defineLazyInternal,
6987
- defineLazy: () => defineLazy,
6988
- createTransparentProxy: () => createTransparentProxy,
6989
- constantCatch: () => constantCatch,
6990
- codePointLength: () => codePointLength,
6991
- cloneDef: () => cloneDef,
6992
- clone: () => clone,
6993
- cleanRegex: () => cleanRegex,
6994
- cleanEnum: () => cleanEnum,
6995
- captureStackTrace: () => captureStackTrace,
6996
- cached: () => cached,
6997
- base64urlToUint8Array: () => base64urlToUint8Array,
6998
- base64ToUint8Array: () => base64ToUint8Array,
6999
- attachSchema: () => attachSchema,
7000
- assignProp: () => assignProp,
7001
- assertNotEqual: () => assertNotEqual,
7002
- assertNever: () => assertNever,
7003
- assertIs: () => assertIs,
7004
- assertEqual: () => assertEqual,
7005
- assert: () => assert,
7006
- allowsEval: () => allowsEval,
7007
- aborted: () => aborted,
7008
- NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
7009
- Class: () => Class,
7010
- CONSTANT_CATCH: () => CONSTANT_CATCH,
7011
- BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES
7012
- });
7013
- function assertEqual(val) {
7014
- return val;
7015
- }
7016
- function assertNotEqual(val) {
7017
- return val;
7018
- }
7019
- function toZod() {
7020
- return (schema) => schema;
7021
- }
7022
- function assertIs(_arg) {}
7023
- function assertNever(_x) {
7024
- throw new Error("Unexpected value in exhaustive check");
7025
- }
7026
- function assert(_) {}
7027
6924
  function getEnumValues(entries) {
7028
6925
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
7029
6926
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -7071,31 +6968,6 @@ function floatSafeRemainder(val, step) {
7071
6968
  return 0;
7072
6969
  return ratio - roundedRatio;
7073
6970
  }
7074
- var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
7075
- function defineLazy(object, key, getter) {
7076
- let value = undefined;
7077
- Object.defineProperty(object, key, {
7078
- get() {
7079
- if (value === EVALUATING) {
7080
- return;
7081
- }
7082
- if (value === undefined) {
7083
- value = EVALUATING;
7084
- value = getter();
7085
- }
7086
- return value;
7087
- },
7088
- set(v) {
7089
- Object.defineProperty(object, key, {
7090
- value: v
7091
- });
7092
- },
7093
- configurable: true
7094
- });
7095
- }
7096
- function objectClone(obj) {
7097
- return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
7098
- }
7099
6971
  function assignProp(target, prop, value) {
7100
6972
  Object.defineProperty(target, prop, {
7101
6973
  value,
@@ -7162,33 +7034,6 @@ function mergeDefs(...defs) {
7162
7034
  }
7163
7035
  return Object.defineProperties({}, mergedDescriptors);
7164
7036
  }
7165
- function cloneDef(schema) {
7166
- return mergeDefs(schema._zod.def);
7167
- }
7168
- function getElementAtPath(obj, path) {
7169
- if (!path)
7170
- return obj;
7171
- return path.reduce((acc, key) => acc?.[key], obj);
7172
- }
7173
- function promiseAllObject(promisesObj) {
7174
- const keys = Object.keys(promisesObj);
7175
- const promises = keys.map((key) => promisesObj[key]);
7176
- return Promise.all(promises).then((results) => {
7177
- const resolvedObj = {};
7178
- for (let i = 0;i < keys.length; i++) {
7179
- resolvedObj[keys[i]] = results[i];
7180
- }
7181
- return resolvedObj;
7182
- });
7183
- }
7184
- function randomString(length = 10) {
7185
- const chars = "abcdefghijklmnopqrstuvwxyz";
7186
- let str = "";
7187
- for (let i = 0;i < length; i++) {
7188
- str += chars[Math.floor(Math.random() * chars.length)];
7189
- }
7190
- return str;
7191
- }
7192
7037
  function esc(str) {
7193
7038
  return JSON.stringify(str);
7194
7039
  }
@@ -7241,68 +7086,7 @@ function shallowClone(o) {
7241
7086
  return new Set(o);
7242
7087
  return o;
7243
7088
  }
7244
- function numKeys(data) {
7245
- let keyCount = 0;
7246
- for (const key in data) {
7247
- if (Object.prototype.hasOwnProperty.call(data, key)) {
7248
- keyCount++;
7249
- }
7250
- }
7251
- return keyCount;
7252
- }
7253
- var getParsedType = (data) => {
7254
- const t = typeof data;
7255
- switch (t) {
7256
- case "undefined":
7257
- return "undefined";
7258
- case "string":
7259
- return "string";
7260
- case "number":
7261
- return Number.isNaN(data) ? "nan" : "number";
7262
- case "boolean":
7263
- return "boolean";
7264
- case "function":
7265
- return "function";
7266
- case "bigint":
7267
- return "bigint";
7268
- case "symbol":
7269
- return "symbol";
7270
- case "object":
7271
- if (Array.isArray(data)) {
7272
- return "array";
7273
- }
7274
- if (data === null) {
7275
- return "null";
7276
- }
7277
- if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
7278
- return "promise";
7279
- }
7280
- if (typeof Map !== "undefined" && data instanceof Map) {
7281
- return "map";
7282
- }
7283
- if (typeof Set !== "undefined" && data instanceof Set) {
7284
- return "set";
7285
- }
7286
- if (typeof Date !== "undefined" && data instanceof Date) {
7287
- return "date";
7288
- }
7289
- if (typeof File !== "undefined" && data instanceof File) {
7290
- return "file";
7291
- }
7292
- return "object";
7293
- default:
7294
- throw new Error(`Unknown data type: ${t}`);
7295
- }
7296
- };
7297
7089
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
7298
- var primitiveTypes = /* @__PURE__ */ new Set([
7299
- "string",
7300
- "number",
7301
- "bigint",
7302
- "boolean",
7303
- "symbol",
7304
- "undefined"
7305
- ]);
7306
7090
  function escapeRegex(str) {
7307
7091
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
7308
7092
  }
@@ -7328,39 +7112,6 @@ function normalizeParams(_params) {
7328
7112
  return { ...params, error: () => params.error };
7329
7113
  return params;
7330
7114
  }
7331
- function createTransparentProxy(getter) {
7332
- let target;
7333
- return new Proxy({}, {
7334
- get(_, prop, receiver) {
7335
- target ?? (target = getter());
7336
- return Reflect.get(target, prop, receiver);
7337
- },
7338
- set(_, prop, value, receiver) {
7339
- target ?? (target = getter());
7340
- return Reflect.set(target, prop, value, receiver);
7341
- },
7342
- has(_, prop) {
7343
- target ?? (target = getter());
7344
- return Reflect.has(target, prop);
7345
- },
7346
- deleteProperty(_, prop) {
7347
- target ?? (target = getter());
7348
- return Reflect.deleteProperty(target, prop);
7349
- },
7350
- ownKeys(_) {
7351
- target ?? (target = getter());
7352
- return Reflect.ownKeys(target);
7353
- },
7354
- getOwnPropertyDescriptor(_, prop) {
7355
- target ?? (target = getter());
7356
- return Reflect.getOwnPropertyDescriptor(target, prop);
7357
- },
7358
- defineProperty(_, prop, descriptor) {
7359
- target ?? (target = getter());
7360
- return Reflect.defineProperty(target, prop, descriptor);
7361
- }
7362
- });
7363
- }
7364
7115
  function stringifyPrimitive(value) {
7365
7116
  if (typeof value === "bigint")
7366
7117
  return value.toString() + "n";
@@ -7545,15 +7296,6 @@ function finalizeIssue(iss, ctx, config) {
7545
7296
  }
7546
7297
  return full;
7547
7298
  }
7548
- function getSizableOrigin(input) {
7549
- if (input instanceof Set)
7550
- return "set";
7551
- if (input instanceof Map)
7552
- return "map";
7553
- if (input instanceof File)
7554
- return "file";
7555
- return "unknown";
7556
- }
7557
7299
  var highSurrogate = /[\uD800-\uDBFF]/;
7558
7300
  function codePointLength(str) {
7559
7301
  const units = str.length;
@@ -7608,52 +7350,6 @@ function issue(...args) {
7608
7350
  }
7609
7351
  return { ...iss };
7610
7352
  }
7611
- function cleanEnum(obj) {
7612
- return Object.entries(obj).filter(([k, _]) => {
7613
- return Number.isNaN(Number.parseInt(k, 10));
7614
- }).map((el) => el[1]);
7615
- }
7616
- function base64ToUint8Array(base64) {
7617
- const binaryString = atob(base64);
7618
- const bytes = new Uint8Array(binaryString.length);
7619
- for (let i = 0;i < binaryString.length; i++) {
7620
- bytes[i] = binaryString.charCodeAt(i);
7621
- }
7622
- return bytes;
7623
- }
7624
- function uint8ArrayToBase64(bytes) {
7625
- let binaryString = "";
7626
- for (let i = 0;i < bytes.length; i++) {
7627
- binaryString += String.fromCharCode(bytes[i]);
7628
- }
7629
- return btoa(binaryString);
7630
- }
7631
- function base64urlToUint8Array(base64url) {
7632
- const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/");
7633
- const padding = "=".repeat((4 - base64.length % 4) % 4);
7634
- return base64ToUint8Array(base64 + padding);
7635
- }
7636
- function uint8ArrayToBase64url(bytes) {
7637
- return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
7638
- }
7639
- function hexToUint8Array(hex) {
7640
- const cleanHex = hex.replace(/^0x/, "");
7641
- if (cleanHex.length % 2 !== 0) {
7642
- throw new Error("Invalid hex string length");
7643
- }
7644
- const bytes = new Uint8Array(cleanHex.length / 2);
7645
- for (let i = 0;i < cleanHex.length; i += 2) {
7646
- bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
7647
- }
7648
- return bytes;
7649
- }
7650
- function uint8ArrayToHex(bytes) {
7651
- return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
7652
- }
7653
-
7654
- class Class {
7655
- constructor(..._args) {}
7656
- }
7657
7353
  function members(proto, table) {
7658
7354
  for (const key in table) {
7659
7355
  const desc = Object.getOwnPropertyDescriptor(table, key);
@@ -7815,23 +7511,23 @@ function $constructor(name, initializer, proto, params) {
7815
7511
  inst._zod.traits.add(name);
7816
7512
  initializer(inst, def);
7817
7513
  if (initialized) {
7818
- const own2 = Object.getPrototypeOf(inst);
7514
+ const own = Object.getPrototypeOf(inst);
7819
7515
  const ctorProto = inst._zod.constr.prototype;
7820
- let up = own2;
7516
+ let up = own;
7821
7517
  while (up && up !== ctorProto)
7822
7518
  up = Object.getPrototypeOf(up);
7823
- const target = up ?? own2;
7519
+ const target = up ?? own;
7824
7520
  if (!initialized.has(target)) {
7825
7521
  initialized.add(target);
7826
7522
  members(target, protoMembers);
7827
7523
  }
7828
7524
  }
7829
- const proto2 = _.prototype;
7830
- for (const k in proto2) {
7831
- if (!Object.prototype.hasOwnProperty.call(proto2, k))
7525
+ const proto = _.prototype;
7526
+ for (const k in proto) {
7527
+ if (!Object.prototype.hasOwnProperty.call(proto, k))
7832
7528
  continue;
7833
7529
  if (!(k in inst)) {
7834
- inst[k] = proto2[k].bind(inst);
7530
+ inst[k] = proto[k].bind(inst);
7835
7531
  }
7836
7532
  }
7837
7533
  }
@@ -7939,7 +7635,7 @@ function node(obj, key, make) {
7939
7635
  }
7940
7636
  return obj[key];
7941
7637
  }
7942
- function flattenError(error, mapper = (issue2) => issue2.message) {
7638
+ function flattenError(error, mapper = (issue) => issue.message) {
7943
7639
  const fieldErrors = {};
7944
7640
  const formErrors = [];
7945
7641
  for (const sub of error.issues) {
@@ -7951,20 +7647,20 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
7951
7647
  }
7952
7648
  return { formErrors, fieldErrors };
7953
7649
  }
7954
- function formatError(error, mapper = (issue2) => issue2.message) {
7650
+ function formatError(error, mapper = (issue) => issue.message) {
7955
7651
  const fieldErrors = { _errors: [] };
7956
- const processError = (error2, path = []) => {
7957
- for (const issue2 of error2.issues) {
7958
- if (issue2.code === "invalid_union" && issue2.errors.length) {
7959
- issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
7960
- } else if (issue2.code === "invalid_key") {
7961
- processError({ issues: issue2.issues }, [...path, ...issue2.path]);
7962
- } else if (issue2.code === "invalid_element") {
7963
- processError({ issues: issue2.issues }, [...path, ...issue2.path]);
7652
+ const processError = (error, path = []) => {
7653
+ for (const issue of error.issues) {
7654
+ if (issue.code === "invalid_union" && issue.errors.length) {
7655
+ issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
7656
+ } else if (issue.code === "invalid_key") {
7657
+ processError({ issues: issue.issues }, [...path, ...issue.path]);
7658
+ } else if (issue.code === "invalid_element") {
7659
+ processError({ issues: issue.issues }, [...path, ...issue.path]);
7964
7660
  } else {
7965
- const fullpath = [...path, ...issue2.path];
7661
+ const fullpath = [...path, ...issue.path];
7966
7662
  if (fullpath.length === 0) {
7967
- fieldErrors._errors.push(mapper(issue2));
7663
+ fieldErrors._errors.push(mapper(issue));
7968
7664
  } else {
7969
7665
  let curr = fieldErrors;
7970
7666
  let i = 0;
@@ -7973,7 +7669,7 @@ function formatError(error, mapper = (issue2) => issue2.message) {
7973
7669
  const terminal = i === fullpath.length - 1;
7974
7670
  if (el === "_errors") {
7975
7671
  if (terminal)
7976
- curr._errors.push(mapper(issue2));
7672
+ curr._errors.push(mapper(issue));
7977
7673
  i++;
7978
7674
  continue;
7979
7675
  }
@@ -7985,11 +7681,11 @@ function formatError(error, mapper = (issue2) => issue2.message) {
7985
7681
  configurable: true
7986
7682
  });
7987
7683
  }
7988
- const node2 = curr[el];
7684
+ const node = curr[el];
7989
7685
  if (terminal) {
7990
- node2._errors.push(mapper(issue2));
7686
+ node._errors.push(mapper(issue));
7991
7687
  }
7992
- curr = node2;
7688
+ curr = node;
7993
7689
  i++;
7994
7690
  }
7995
7691
  }
@@ -8209,10 +7905,10 @@ var uppercase = /^[^a-z]*$/;
8209
7905
 
8210
7906
  // node_modules/zod/v4/core/checks.js
8211
7907
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
8212
- var _a2;
7908
+ var _a;
8213
7909
  inst._zod ?? (inst._zod = {});
8214
7910
  inst._zod.def = def;
8215
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
7911
+ (_a = inst._zod).onattach ?? (_a.onattach = []);
8216
7912
  });
8217
7913
  var _whenHasLength = (payload) => {
8218
7914
  const val = payload.value;
@@ -8349,9 +8045,9 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
8349
8045
  };
8350
8046
  });
8351
8047
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
8352
- var _a2;
8048
+ var _a;
8353
8049
  $ZodCheck.init(inst, def);
8354
- (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasLength);
8050
+ (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
8355
8051
  inst._zod.check = (payload) => {
8356
8052
  const input = payload.value;
8357
8053
  const units = input.length;
@@ -8371,9 +8067,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
8371
8067
  };
8372
8068
  });
8373
8069
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
8374
- var _a2;
8070
+ var _a;
8375
8071
  $ZodCheck.init(inst, def);
8376
- (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasLength);
8072
+ (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
8377
8073
  inst._zod.check = (payload) => {
8378
8074
  const input = payload.value;
8379
8075
  const units = input.length;
@@ -8393,9 +8089,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
8393
8089
  };
8394
8090
  });
8395
8091
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
8396
- var _a2;
8092
+ var _a;
8397
8093
  $ZodCheck.init(inst, def);
8398
- (_a2 = inst._zod.def).when ?? (_a2.when = _whenHasLength);
8094
+ (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
8399
8095
  inst._zod.check = (payload) => {
8400
8096
  const input = payload.value;
8401
8097
  const units = input.length;
@@ -8416,10 +8112,10 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
8416
8112
  };
8417
8113
  });
8418
8114
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
8419
- var _a2, _b;
8115
+ var _a, _b;
8420
8116
  $ZodCheck.init(inst, def);
8421
8117
  if (def.pattern)
8422
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
8118
+ (_a = inst._zod).check ?? (_a.check = (payload) => {
8423
8119
  def.pattern.lastIndex = 0;
8424
8120
  if (def.pattern.test(payload.value))
8425
8121
  return;
@@ -8574,7 +8270,7 @@ var version = {
8574
8270
 
8575
8271
  // node_modules/zod/v4/core/schemas.js
8576
8272
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
8577
- var _a2;
8273
+ var _a;
8578
8274
  inst ?? (inst = {});
8579
8275
  inst._zod.def = def;
8580
8276
  inst._zod.bag = inst._zod.bag || {};
@@ -8587,17 +8283,17 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
8587
8283
  }
8588
8284
  }
8589
8285
  if (checks.length === 0) {
8590
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
8286
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
8591
8287
  inst._zod.deferred?.push(() => {
8592
8288
  inst._zod.run = inst._zod.parse;
8593
8289
  });
8594
8290
  } else {
8595
- const runChecks = (payload, checks2, ctx) => {
8291
+ const runChecks = (payload, checks, ctx) => {
8596
8292
  if (payload.memo)
8597
8293
  return payload;
8598
8294
  let isAborted = aborted(payload);
8599
8295
  let asyncResult;
8600
- for (const ch of checks2) {
8296
+ for (const ch of checks) {
8601
8297
  if (ch._zod.def.when) {
8602
8298
  if (explicitlyAborted(payload))
8603
8299
  continue;
@@ -8647,7 +8343,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
8647
8343
  if (checkResult instanceof Promise) {
8648
8344
  if (ctx.async === false)
8649
8345
  throw new $ZodAsyncError;
8650
- return checkResult.then((checkResult2) => inst._zod.parse(checkResult2, ctx));
8346
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
8651
8347
  }
8652
8348
  return inst._zod.parse(checkResult, ctx);
8653
8349
  };
@@ -8658,8 +8354,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
8658
8354
  if (ctx.direction === "backward") {
8659
8355
  const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
8660
8356
  if (canary instanceof Promise) {
8661
- return canary.then((canary2) => {
8662
- return handleCanaryResult(canary2, payload, ctx);
8357
+ return canary.then((canary) => {
8358
+ return handleCanaryResult(canary, payload, ctx);
8663
8359
  });
8664
8360
  }
8665
8361
  return handleCanaryResult(canary, payload, ctx);
@@ -8668,7 +8364,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
8668
8364
  if (result instanceof Promise) {
8669
8365
  if (ctx.async === false)
8670
8366
  throw new $ZodAsyncError;
8671
- return result.then((result2) => runChecks(result2, checks, ctx));
8367
+ return result.then((result) => runChecks(result, checks, ctx));
8672
8368
  }
8673
8369
  return runChecks(result, checks, ctx);
8674
8370
  };
@@ -8708,7 +8404,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
8708
8404
  if (def.coerce)
8709
8405
  try {
8710
8406
  payload.value = String(payload.value);
8711
- } catch (_2) {}
8407
+ } catch (_) {}
8712
8408
  if (typeof payload.value === "string")
8713
8409
  return payload;
8714
8410
  payload.issues.push({
@@ -9001,8 +8697,8 @@ var base64urlCharset = /^[A-Za-z0-9_-]*$/;
9001
8697
  function isValidBase64URL(data) {
9002
8698
  if (!base64urlCharset.test(data))
9003
8699
  return false;
9004
- const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
9005
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
8700
+ const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
8701
+ const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
9006
8702
  return isValidBase64(padded);
9007
8703
  }
9008
8704
  var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
@@ -9169,7 +8865,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
9169
8865
  issues: []
9170
8866
  }, ctx);
9171
8867
  if (result instanceof Promise) {
9172
- proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
8868
+ proms.push(result.then((result) => handleArrayResult(result, payload, i)));
9173
8869
  } else {
9174
8870
  handleArrayResult(result, payload, i);
9175
8871
  if (abortEarly && result.issues.length !== 0 && aborted(result))
@@ -9261,7 +8957,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
9261
8957
  }
9262
8958
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
9263
8959
  if (r instanceof Promise) {
9264
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, optin, optout)));
8960
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
9265
8961
  } else {
9266
8962
  handlePropertyResult(r, payload, key, input, optin, optout);
9267
8963
  }
@@ -9348,7 +9044,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
9348
9044
  const optout = el._zod.optout;
9349
9045
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
9350
9046
  if (r instanceof Promise) {
9351
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, optin, optout)));
9047
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
9352
9048
  } else {
9353
9049
  handlePropertyResult(r, payload, key, input, optin, optout);
9354
9050
  }
@@ -9546,8 +9242,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
9546
9242
  }
9547
9243
  if (!async)
9548
9244
  return handleUnionResults(results, payload, inst, ctx);
9549
- return Promise.all(results).then((results2) => {
9550
- return handleUnionResults(results2, payload, inst, ctx);
9245
+ return Promise.all(results).then((results) => {
9246
+ return handleUnionResults(results, payload, inst, ctx);
9551
9247
  });
9552
9248
  };
9553
9249
  });
@@ -9626,7 +9322,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
9626
9322
  errors: [],
9627
9323
  note: "No matching discriminator",
9628
9324
  discriminator: def.discriminator,
9629
- options: Array.from(disc.value.keys()).filter((value2) => disc.value.get(value2) !== null),
9325
+ options: Array.from(disc.value.keys()).filter((value) => disc.value.get(value) !== null),
9630
9326
  input,
9631
9327
  path: [def.discriminator],
9632
9328
  inst
@@ -9642,8 +9338,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
9642
9338
  const right = def.right._zod.run({ value: input, issues: [] }, ctx);
9643
9339
  const async = left instanceof Promise || right instanceof Promise;
9644
9340
  if (async) {
9645
- return Promise.all([left, right]).then(([left2, right2]) => {
9646
- return handleIntersectionResults(payload, left2, right2);
9341
+ return Promise.all([left, right]).then(([left, right]) => {
9342
+ return handleIntersectionResults(payload, left, right);
9647
9343
  });
9648
9344
  }
9649
9345
  return handleIntersectionResults(payload, left, right);
@@ -9793,11 +9489,11 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
9793
9489
  continue;
9794
9490
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
9795
9491
  if (result instanceof Promise) {
9796
- proms.push(result.then((result2) => {
9797
- if (result2.issues.length) {
9798
- payload.issues.push(...prefixIssues(key, result2.issues));
9492
+ proms.push(result.then((result) => {
9493
+ if (result.issues.length) {
9494
+ payload.issues.push(...prefixIssues(key, result.issues));
9799
9495
  }
9800
- payload.value[outKey] = result2.value;
9496
+ payload.value[outKey] = result.value;
9801
9497
  }));
9802
9498
  } else {
9803
9499
  if (result.issues.length) {
@@ -9874,11 +9570,11 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
9874
9570
  continue;
9875
9571
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
9876
9572
  if (result instanceof Promise) {
9877
- proms.push(result.then((result2) => {
9878
- if (result2.issues.length) {
9879
- payload.issues.push(...prefixIssues(key, result2.issues));
9573
+ proms.push(result.then((result) => {
9574
+ if (result.issues.length) {
9575
+ payload.issues.push(...prefixIssues(key, result.issues));
9880
9576
  }
9881
- payload.value[outKey] = result2.value;
9577
+ payload.value[outKey] = result.value;
9882
9578
  }));
9883
9579
  } else {
9884
9580
  if (result.issues.length) {
@@ -9959,8 +9655,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
9959
9655
  const _out = def.transform(payload.value, payload);
9960
9656
  if (ctx.async) {
9961
9657
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
9962
- return output.then((output2) => {
9963
- payload.value = output2;
9658
+ return output.then((output) => {
9659
+ payload.value = output;
9964
9660
  return payload;
9965
9661
  });
9966
9662
  }
@@ -9993,7 +9689,7 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
9993
9689
  return payload;
9994
9690
  const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
9995
9691
  if (result instanceof Promise)
9996
- return result.then((result2) => handleOptionalResult(payload, result2));
9692
+ return result.then((result) => handleOptionalResult(payload, result));
9997
9693
  return handleOptionalResult(payload, result);
9998
9694
  }
9999
9695
  return def.innerType._zod.run(payload, ctx);
@@ -10038,7 +9734,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
10038
9734
  }
10039
9735
  const result = def.innerType._zod.run(payload, ctx);
10040
9736
  if (result instanceof Promise) {
10041
- return result.then((result2) => handleDefaultResult(result2, def));
9737
+ return result.then((result) => handleDefaultResult(result, def));
10042
9738
  }
10043
9739
  return handleDefaultResult(result, def);
10044
9740
  };
@@ -10072,7 +9768,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
10072
9768
  inst._zod.parse = (payload, ctx) => {
10073
9769
  const result = def.innerType._zod.run(payload, ctx);
10074
9770
  if (result instanceof Promise) {
10075
- return result.then((result2) => handleNonOptionalResult(result2, inst));
9771
+ return result.then((result) => handleNonOptionalResult(result, inst));
10076
9772
  }
10077
9773
  return handleNonOptionalResult(result, inst);
10078
9774
  };
@@ -10116,7 +9812,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
10116
9812
  }
10117
9813
  const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
10118
9814
  if (result instanceof Promise) {
10119
- return result.then((result2) => handleCatchResult(payload, result2, def, ctx));
9815
+ return result.then((result) => handleCatchResult(payload, result, def, ctx));
10120
9816
  }
10121
9817
  return handleCatchResult(payload, result, def, ctx);
10122
9818
  };
@@ -10131,13 +9827,13 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
10131
9827
  if (ctx.direction === "backward") {
10132
9828
  const right = def.out._zod.run(payload, ctx);
10133
9829
  if (right instanceof Promise) {
10134
- return right.then((right2) => handlePipeResult(right2, def.in, ctx));
9830
+ return right.then((right) => handlePipeResult(right, def.in, ctx));
10135
9831
  }
10136
9832
  return handlePipeResult(right, def.in, ctx);
10137
9833
  }
10138
9834
  const left = def.in._zod.run(payload, ctx);
10139
9835
  if (left instanceof Promise) {
10140
- return left.then((left2) => handlePipeResult(left2, def.out, ctx));
9836
+ return left.then((left) => handlePipeResult(left, def.out, ctx));
10141
9837
  }
10142
9838
  return handlePipeResult(left, def.out, ctx);
10143
9839
  };
@@ -10184,7 +9880,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
10184
9880
  const input = payload.value;
10185
9881
  const r = def.fn(input);
10186
9882
  if (r instanceof Promise) {
10187
- return r.then((r2) => handleRefineResult(r2, payload, input, inst));
9883
+ return r.then((r) => handleRefineResult(r, payload, input, inst));
10188
9884
  }
10189
9885
  handleRefineResult(r, payload, input, inst);
10190
9886
  return;
@@ -10224,9 +9920,9 @@ var NONE = 0;
10224
9920
  var ASSUMED = 1;
10225
9921
  var PROVEN = 2;
10226
9922
  function isRecursive(inst, stack, resolve) {
10227
- const cached2 = recursive.get(inst);
10228
- if (cached2 !== undefined)
10229
- return cached2 ? PROVEN : NONE;
9923
+ const cached = recursive.get(inst);
9924
+ if (cached !== undefined)
9925
+ return cached ? PROVEN : NONE;
10230
9926
  if (stack.has(inst))
10231
9927
  return PROVEN;
10232
9928
  stack.add(inst);
@@ -10250,7 +9946,7 @@ function isRecursive(inst, stack, resolve) {
10250
9946
  }
10251
9947
  return answer;
10252
9948
  };
10253
- const merge2 = (answer) => {
9949
+ const merge = (answer) => {
10254
9950
  if (answer > result)
10255
9951
  result = answer;
10256
9952
  };
@@ -10259,7 +9955,7 @@ function isRecursive(inst, stack, resolve) {
10259
9955
  switch (kind) {
10260
9956
  case "object": {
10261
9957
  const raw = rawShape(def);
10262
- merge2(raw ? shape(raw, true) : ASSUMED);
9958
+ merge(raw ? shape(raw, true) : ASSUMED);
10263
9959
  check(def.catchall);
10264
9960
  break;
10265
9961
  }
@@ -10308,7 +10004,7 @@ function isRecursive(inst, stack, resolve) {
10308
10004
  break;
10309
10005
  case "lazy": {
10310
10006
  const inner = def._cachedInner ?? (resolve ? inst._zod.innerType : undefined);
10311
- merge2(inner ? isRecursive(inner, stack, false) : ASSUMED);
10007
+ merge(inner ? isRecursive(inner, stack, false) : ASSUMED);
10312
10008
  break;
10313
10009
  }
10314
10010
  case "template_literal":
@@ -10378,8 +10074,8 @@ var memo = {
10378
10074
  return empty;
10379
10075
  },
10380
10076
  guard(inst) {
10381
- var _a2;
10382
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
10077
+ var _a;
10078
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
10383
10079
  inst._zod.deferred.push(() => {
10384
10080
  const base = inst._zod.parse;
10385
10081
  const wrapped = (payload, ctx) => {
@@ -10393,12 +10089,12 @@ var memo = {
10393
10089
  });
10394
10090
  },
10395
10091
  attach(inst) {
10396
- var _a2;
10092
+ var _a;
10397
10093
  let isRecursiveInst;
10398
10094
  let rechecked = false;
10399
10095
  let lastCtx;
10400
10096
  let lastBucket;
10401
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
10097
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
10402
10098
  inst._zod.deferred.push(() => {
10403
10099
  const base = inst._zod.parse;
10404
10100
  const wrapped = (payload, ctx) => {
@@ -10528,35 +10224,35 @@ var error = () => {
10528
10224
  }
10529
10225
  return TypeDictionary[type] ?? type;
10530
10226
  }
10531
- return (issue2) => {
10532
- switch (issue2.code) {
10227
+ return (issue) => {
10228
+ switch (issue.code) {
10533
10229
  case "invalid_type": {
10534
- const expected = getTypeName(issue2.expected);
10535
- const receivedType = parsedType(issue2.input);
10536
- const received = getTypeName(receivedType, issue2.input);
10230
+ const expected = getTypeName(issue.expected);
10231
+ const receivedType = parsedType(issue.input);
10232
+ const received = getTypeName(receivedType, issue.input);
10537
10233
  return `Invalid input: expected ${expected}, received ${received}`;
10538
10234
  }
10539
10235
  case "invalid_value":
10540
- if (issue2.values.length === 1)
10541
- return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
10542
- return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
10236
+ if (issue.values.length === 1)
10237
+ return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`;
10238
+ return `Invalid option: expected one of ${joinValues(issue.values, "|")}`;
10543
10239
  case "too_big": {
10544
- const adj = issue2.exact ? "exactly " : issue2.inclusive ? "<=" : "<";
10545
- const sizing = getSizing(issue2.origin);
10240
+ const adj = issue.exact ? "exactly " : issue.inclusive ? "<=" : "<";
10241
+ const sizing = getSizing(issue.origin);
10546
10242
  if (sizing)
10547
- return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
10548
- return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;
10243
+ return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`;
10244
+ return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`;
10549
10245
  }
10550
10246
  case "too_small": {
10551
- const adj = issue2.exact ? "exactly " : issue2.inclusive ? ">=" : ">";
10552
- const sizing = getSizing(issue2.origin);
10247
+ const adj = issue.exact ? "exactly " : issue.inclusive ? ">=" : ">";
10248
+ const sizing = getSizing(issue.origin);
10553
10249
  if (sizing) {
10554
- return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
10250
+ return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`;
10555
10251
  }
10556
- return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
10252
+ return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`;
10557
10253
  }
10558
10254
  case "invalid_format": {
10559
- const _issue = issue2;
10255
+ const _issue = issue;
10560
10256
  if (_issue.format === "starts_with") {
10561
10257
  return `Invalid string: must start with "${_issue.prefix}"`;
10562
10258
  }
@@ -10566,25 +10262,25 @@ var error = () => {
10566
10262
  return `Invalid string: must include "${_issue.includes}"`;
10567
10263
  if (_issue.format === "regex")
10568
10264
  return `Invalid string: must match pattern ${_issue.pattern}`;
10569
- return `Invalid ${FormatDictionary[_issue.format] ?? issue2.format}`;
10265
+ return `Invalid ${FormatDictionary[_issue.format] ?? issue.format}`;
10570
10266
  }
10571
10267
  case "not_multiple_of":
10572
- return `Invalid number: must be a multiple of ${issue2.divisor}`;
10268
+ return `Invalid number: must be a multiple of ${issue.divisor}`;
10573
10269
  case "unrecognized_keys":
10574
- return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
10270
+ return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`;
10575
10271
  case "invalid_key":
10576
- return `Invalid key in ${issue2.origin}`;
10272
+ return `Invalid key in ${issue.origin}`;
10577
10273
  case "invalid_union":
10578
- if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
10579
- const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
10274
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
10275
+ const opts = issue.options.map((o) => `'${o}'`).join(" | ");
10580
10276
  return `Invalid discriminator value. Expected ${opts}`;
10581
10277
  }
10582
- if (issue2.inclusive === false) {
10278
+ if (issue.inclusive === false) {
10583
10279
  return "Invalid input: more than one option matched";
10584
10280
  }
10585
10281
  return "Invalid input";
10586
10282
  case "invalid_element":
10587
- return `Invalid value in ${issue2.origin}`;
10283
+ return `Invalid value in ${issue.origin}`;
10588
10284
  default:
10589
10285
  return `Invalid input`;
10590
10286
  }
@@ -10648,11 +10344,11 @@ function snapshotChecks(def) {
10648
10344
  def.checks = [...def.checks];
10649
10345
  return def;
10650
10346
  }
10651
- function _string(Class2, params) {
10652
- return new Class2(snapshotChecks({ type: "string", ...normalizeParams(params) }));
10347
+ function _string(Class, params) {
10348
+ return new Class(snapshotChecks({ type: "string", ...normalizeParams(params) }));
10653
10349
  }
10654
- function _email(Class2, params) {
10655
- return new Class2({
10350
+ function _email(Class, params) {
10351
+ return new Class({
10656
10352
  type: "string",
10657
10353
  format: "email",
10658
10354
  check: "string_format",
@@ -10660,8 +10356,8 @@ function _email(Class2, params) {
10660
10356
  ...normalizeParams(params)
10661
10357
  });
10662
10358
  }
10663
- function _guid(Class2, params) {
10664
- return new Class2({
10359
+ function _guid(Class, params) {
10360
+ return new Class({
10665
10361
  type: "string",
10666
10362
  format: "guid",
10667
10363
  check: "string_format",
@@ -10669,8 +10365,8 @@ function _guid(Class2, params) {
10669
10365
  ...normalizeParams(params)
10670
10366
  });
10671
10367
  }
10672
- function _uuid(Class2, params) {
10673
- return new Class2({
10368
+ function _uuid(Class, params) {
10369
+ return new Class({
10674
10370
  type: "string",
10675
10371
  format: "uuid",
10676
10372
  check: "string_format",
@@ -10678,8 +10374,8 @@ function _uuid(Class2, params) {
10678
10374
  ...normalizeParams(params)
10679
10375
  });
10680
10376
  }
10681
- function _uuidv4(Class2, params) {
10682
- return new Class2({
10377
+ function _uuidv4(Class, params) {
10378
+ return new Class({
10683
10379
  type: "string",
10684
10380
  format: "uuid",
10685
10381
  check: "string_format",
@@ -10688,8 +10384,8 @@ function _uuidv4(Class2, params) {
10688
10384
  ...normalizeParams(params)
10689
10385
  });
10690
10386
  }
10691
- function _uuidv6(Class2, params) {
10692
- return new Class2({
10387
+ function _uuidv6(Class, params) {
10388
+ return new Class({
10693
10389
  type: "string",
10694
10390
  format: "uuid",
10695
10391
  check: "string_format",
@@ -10698,8 +10394,8 @@ function _uuidv6(Class2, params) {
10698
10394
  ...normalizeParams(params)
10699
10395
  });
10700
10396
  }
10701
- function _uuidv7(Class2, params) {
10702
- return new Class2({
10397
+ function _uuidv7(Class, params) {
10398
+ return new Class({
10703
10399
  type: "string",
10704
10400
  format: "uuid",
10705
10401
  check: "string_format",
@@ -10708,8 +10404,8 @@ function _uuidv7(Class2, params) {
10708
10404
  ...normalizeParams(params)
10709
10405
  });
10710
10406
  }
10711
- function _url(Class2, params) {
10712
- return new Class2({
10407
+ function _url(Class, params) {
10408
+ return new Class({
10713
10409
  type: "string",
10714
10410
  format: "url",
10715
10411
  check: "string_format",
@@ -10717,8 +10413,8 @@ function _url(Class2, params) {
10717
10413
  ...normalizeParams(params)
10718
10414
  });
10719
10415
  }
10720
- function _emoji2(Class2, params) {
10721
- return new Class2({
10416
+ function _emoji2(Class, params) {
10417
+ return new Class({
10722
10418
  type: "string",
10723
10419
  format: "emoji",
10724
10420
  check: "string_format",
@@ -10726,8 +10422,8 @@ function _emoji2(Class2, params) {
10726
10422
  ...normalizeParams(params)
10727
10423
  });
10728
10424
  }
10729
- function _nanoid(Class2, params) {
10730
- return new Class2({
10425
+ function _nanoid(Class, params) {
10426
+ return new Class({
10731
10427
  type: "string",
10732
10428
  format: "nanoid",
10733
10429
  check: "string_format",
@@ -10735,8 +10431,8 @@ function _nanoid(Class2, params) {
10735
10431
  ...normalizeParams(params)
10736
10432
  });
10737
10433
  }
10738
- function _cuid(Class2, params) {
10739
- return new Class2({
10434
+ function _cuid(Class, params) {
10435
+ return new Class({
10740
10436
  type: "string",
10741
10437
  format: "cuid",
10742
10438
  check: "string_format",
@@ -10744,8 +10440,8 @@ function _cuid(Class2, params) {
10744
10440
  ...normalizeParams(params)
10745
10441
  });
10746
10442
  }
10747
- function _cuid2(Class2, params) {
10748
- return new Class2({
10443
+ function _cuid2(Class, params) {
10444
+ return new Class({
10749
10445
  type: "string",
10750
10446
  format: "cuid2",
10751
10447
  check: "string_format",
@@ -10753,8 +10449,8 @@ function _cuid2(Class2, params) {
10753
10449
  ...normalizeParams(params)
10754
10450
  });
10755
10451
  }
10756
- function _ulid(Class2, params) {
10757
- return new Class2({
10452
+ function _ulid(Class, params) {
10453
+ return new Class({
10758
10454
  type: "string",
10759
10455
  format: "ulid",
10760
10456
  check: "string_format",
@@ -10762,8 +10458,8 @@ function _ulid(Class2, params) {
10762
10458
  ...normalizeParams(params)
10763
10459
  });
10764
10460
  }
10765
- function _xid(Class2, params) {
10766
- return new Class2({
10461
+ function _xid(Class, params) {
10462
+ return new Class({
10767
10463
  type: "string",
10768
10464
  format: "xid",
10769
10465
  check: "string_format",
@@ -10771,8 +10467,8 @@ function _xid(Class2, params) {
10771
10467
  ...normalizeParams(params)
10772
10468
  });
10773
10469
  }
10774
- function _ksuid(Class2, params) {
10775
- return new Class2({
10470
+ function _ksuid(Class, params) {
10471
+ return new Class({
10776
10472
  type: "string",
10777
10473
  format: "ksuid",
10778
10474
  check: "string_format",
@@ -10780,8 +10476,8 @@ function _ksuid(Class2, params) {
10780
10476
  ...normalizeParams(params)
10781
10477
  });
10782
10478
  }
10783
- function _ipv4(Class2, params) {
10784
- return new Class2({
10479
+ function _ipv4(Class, params) {
10480
+ return new Class({
10785
10481
  type: "string",
10786
10482
  format: "ipv4",
10787
10483
  check: "string_format",
@@ -10789,8 +10485,8 @@ function _ipv4(Class2, params) {
10789
10485
  ...normalizeParams(params)
10790
10486
  });
10791
10487
  }
10792
- function _ipv6(Class2, params) {
10793
- return new Class2({
10488
+ function _ipv6(Class, params) {
10489
+ return new Class({
10794
10490
  type: "string",
10795
10491
  format: "ipv6",
10796
10492
  check: "string_format",
@@ -10798,8 +10494,8 @@ function _ipv6(Class2, params) {
10798
10494
  ...normalizeParams(params)
10799
10495
  });
10800
10496
  }
10801
- function _cidrv4(Class2, params) {
10802
- return new Class2({
10497
+ function _cidrv4(Class, params) {
10498
+ return new Class({
10803
10499
  type: "string",
10804
10500
  format: "cidrv4",
10805
10501
  check: "string_format",
@@ -10807,8 +10503,8 @@ function _cidrv4(Class2, params) {
10807
10503
  ...normalizeParams(params)
10808
10504
  });
10809
10505
  }
10810
- function _cidrv6(Class2, params) {
10811
- return new Class2({
10506
+ function _cidrv6(Class, params) {
10507
+ return new Class({
10812
10508
  type: "string",
10813
10509
  format: "cidrv6",
10814
10510
  check: "string_format",
@@ -10816,8 +10512,8 @@ function _cidrv6(Class2, params) {
10816
10512
  ...normalizeParams(params)
10817
10513
  });
10818
10514
  }
10819
- function _base64(Class2, params) {
10820
- return new Class2({
10515
+ function _base64(Class, params) {
10516
+ return new Class({
10821
10517
  type: "string",
10822
10518
  format: "base64",
10823
10519
  check: "string_format",
@@ -10825,8 +10521,8 @@ function _base64(Class2, params) {
10825
10521
  ...normalizeParams(params)
10826
10522
  });
10827
10523
  }
10828
- function _base64url(Class2, params) {
10829
- return new Class2({
10524
+ function _base64url(Class, params) {
10525
+ return new Class({
10830
10526
  type: "string",
10831
10527
  format: "base64url",
10832
10528
  check: "string_format",
@@ -10834,8 +10530,8 @@ function _base64url(Class2, params) {
10834
10530
  ...normalizeParams(params)
10835
10531
  });
10836
10532
  }
10837
- function _e164(Class2, params) {
10838
- return new Class2({
10533
+ function _e164(Class, params) {
10534
+ return new Class({
10839
10535
  type: "string",
10840
10536
  format: "e164",
10841
10537
  check: "string_format",
@@ -10843,8 +10539,8 @@ function _e164(Class2, params) {
10843
10539
  ...normalizeParams(params)
10844
10540
  });
10845
10541
  }
10846
- function _jwt(Class2, params) {
10847
- return new Class2({
10542
+ function _jwt(Class, params) {
10543
+ return new Class({
10848
10544
  type: "string",
10849
10545
  format: "jwt",
10850
10546
  check: "string_format",
@@ -10852,8 +10548,8 @@ function _jwt(Class2, params) {
10852
10548
  ...normalizeParams(params)
10853
10549
  });
10854
10550
  }
10855
- function _isoDateTime(Class2, params) {
10856
- return new Class2({
10551
+ function _isoDateTime(Class, params) {
10552
+ return new Class({
10857
10553
  type: "string",
10858
10554
  format: "datetime",
10859
10555
  check: "string_format",
@@ -10863,16 +10559,16 @@ function _isoDateTime(Class2, params) {
10863
10559
  ...normalizeParams(params)
10864
10560
  });
10865
10561
  }
10866
- function _isoDate(Class2, params) {
10867
- return new Class2({
10562
+ function _isoDate(Class, params) {
10563
+ return new Class({
10868
10564
  type: "string",
10869
10565
  format: "date",
10870
10566
  check: "string_format",
10871
10567
  ...normalizeParams(params)
10872
10568
  });
10873
10569
  }
10874
- function _isoTime(Class2, params) {
10875
- return new Class2({
10570
+ function _isoTime(Class, params) {
10571
+ return new Class({
10876
10572
  type: "string",
10877
10573
  format: "time",
10878
10574
  check: "string_format",
@@ -10880,19 +10576,19 @@ function _isoTime(Class2, params) {
10880
10576
  ...normalizeParams(params)
10881
10577
  });
10882
10578
  }
10883
- function _isoDuration(Class2, params) {
10884
- return new Class2({
10579
+ function _isoDuration(Class, params) {
10580
+ return new Class({
10885
10581
  type: "string",
10886
10582
  format: "duration",
10887
10583
  check: "string_format",
10888
10584
  ...normalizeParams(params)
10889
10585
  });
10890
10586
  }
10891
- function _number(Class2, params) {
10892
- return new Class2(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
10587
+ function _number(Class, params) {
10588
+ return new Class(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
10893
10589
  }
10894
- function _int(Class2, params) {
10895
- return new Class2({
10590
+ function _int(Class, params) {
10591
+ return new Class({
10896
10592
  type: "number",
10897
10593
  check: "number_format",
10898
10594
  abort: false,
@@ -10900,25 +10596,25 @@ function _int(Class2, params) {
10900
10596
  ...normalizeParams(params)
10901
10597
  });
10902
10598
  }
10903
- function _boolean(Class2, params) {
10904
- return new Class2({
10599
+ function _boolean(Class, params) {
10600
+ return new Class({
10905
10601
  type: "boolean",
10906
10602
  ...normalizeParams(params)
10907
10603
  });
10908
10604
  }
10909
- function _null2(Class2, params) {
10910
- return new Class2({
10605
+ function _null2(Class, params) {
10606
+ return new Class({
10911
10607
  type: "null",
10912
10608
  ...normalizeParams(params)
10913
10609
  });
10914
10610
  }
10915
- function _unknown(Class2) {
10916
- return new Class2({
10611
+ function _unknown(Class) {
10612
+ return new Class({
10917
10613
  type: "unknown"
10918
10614
  });
10919
10615
  }
10920
- function _never(Class2, params) {
10921
- return new Class2({
10616
+ function _never(Class, params) {
10617
+ return new Class({
10922
10618
  type: "never",
10923
10619
  ...normalizeParams(params)
10924
10620
  });
@@ -11051,17 +10747,17 @@ function _toUpperCase() {
11051
10747
  function _slugify() {
11052
10748
  return _overwrite((input) => slugify(input));
11053
10749
  }
11054
- function _array(Class2, element, params) {
11055
- return new Class2({
10750
+ function _array(Class, element, params) {
10751
+ return new Class({
11056
10752
  type: "array",
11057
10753
  element,
11058
10754
  ...normalizeParams(params)
11059
10755
  });
11060
10756
  }
11061
- function _custom(Class2, fn, _params) {
10757
+ function _custom(Class, fn, _params) {
11062
10758
  const norm = normalizeParams(_params);
11063
10759
  norm.abort ?? (norm.abort = true);
11064
- const schema = new Class2({
10760
+ const schema = new Class({
11065
10761
  type: "custom",
11066
10762
  check: "custom",
11067
10763
  fn,
@@ -11069,8 +10765,8 @@ function _custom(Class2, fn, _params) {
11069
10765
  });
11070
10766
  return schema;
11071
10767
  }
11072
- function _refine(Class2, fn, _params) {
11073
- const schema = new Class2({
10768
+ function _refine(Class, fn, _params) {
10769
+ const schema = new Class({
11074
10770
  type: "custom",
11075
10771
  check: "custom",
11076
10772
  fn,
@@ -11152,7 +10848,7 @@ function handleUnrepresentable(schema, ctx, json, params, message) {
11152
10848
  return true;
11153
10849
  }
11154
10850
  function processSchema(schema, ctx, _params = { path: [], schemaPath: [] }) {
11155
- var _a3;
10851
+ var _a;
11156
10852
  const def = schema._zod.def;
11157
10853
  const seen = ctx.seen.get(schema);
11158
10854
  if (seen) {
@@ -11202,7 +10898,7 @@ function processSchema(schema, ctx, _params = { path: [], schemaPath: [] }) {
11202
10898
  delete result.schema.default;
11203
10899
  }
11204
10900
  if (ctx.io === "input" && "_prefault" in result.schema)
11205
- (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
10901
+ (_a = result.schema).default ?? (_a.default = result.schema._prefault);
11206
10902
  delete result.schema._prefault;
11207
10903
  const _result = ctx.seen.get(schema);
11208
10904
  return _result.schema;
@@ -11231,7 +10927,7 @@ function extractDefs(ctx, schema) {
11231
10927
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
11232
10928
  if (ctx.external) {
11233
10929
  const externalId = ctx.external.registry.get(entry[0])?.id;
11234
- const uriGenerator = ctx.external.uri ?? ((id2) => id2);
10930
+ const uriGenerator = ctx.external.uri ?? ((id) => id);
11235
10931
  if (externalId) {
11236
10932
  return { ref: uriGenerator(externalId) };
11237
10933
  }
@@ -11256,11 +10952,11 @@ function extractDefs(ctx, schema) {
11256
10952
  seen.def = { ...seen.schema };
11257
10953
  if (defId)
11258
10954
  seen.defId = defId;
11259
- const schema2 = seen.schema;
11260
- for (const key in schema2) {
11261
- delete schema2[key];
10955
+ const schema = seen.schema;
10956
+ for (const key in schema) {
10957
+ delete schema[key];
11262
10958
  }
11263
- schema2.$ref = ref;
10959
+ schema.$ref = ref;
11264
10960
  };
11265
10961
  if (ctx.cycles === "throw") {
11266
10962
  for (const entry of ctx.seen.entries()) {
@@ -11332,9 +11028,9 @@ function undeclaredConstraint(member) {
11332
11028
  return null;
11333
11029
  return Object.keys(extra).length ? extra : null;
11334
11030
  }
11335
- function foldObjects(members2) {
11031
+ function foldObjects(members) {
11336
11032
  const objects = [];
11337
- for (const member of members2) {
11033
+ for (const member of members) {
11338
11034
  if (typeof member !== "object" || member.type !== "object")
11339
11035
  return null;
11340
11036
  for (const key in member) {
@@ -11344,7 +11040,7 @@ function foldObjects(members2) {
11344
11040
  objects.push(member);
11345
11041
  }
11346
11042
  const properties = {};
11347
- const required2 = new Set;
11043
+ const required = new Set;
11348
11044
  for (const object of objects) {
11349
11045
  for (const key in object.properties) {
11350
11046
  if (Object.prototype.hasOwnProperty.call(properties, key))
@@ -11361,11 +11057,11 @@ function foldObjects(members2) {
11361
11057
  assignProp(properties, key, merged);
11362
11058
  }
11363
11059
  for (const key of object.required ?? [])
11364
- required2.add(key);
11060
+ required.add(key);
11365
11061
  }
11366
11062
  const folded = { type: "object", properties };
11367
- if (required2.size)
11368
- folded.required = [...required2];
11063
+ if (required.size)
11064
+ folded.required = [...required];
11369
11065
  if (objects.every((object) => object.additionalProperties === false)) {
11370
11066
  folded.additionalProperties = false;
11371
11067
  } else {
@@ -11417,8 +11113,8 @@ function finalize(ctx, schema) {
11417
11113
  const seen = ctx.seen.get(zodSchema);
11418
11114
  if (seen.ref === null)
11419
11115
  return;
11420
- const schema2 = seen.def ?? seen.schema;
11421
- const _cached = { ...schema2 };
11116
+ const schema = seen.def ?? seen.schema;
11117
+ const _cached = { ...schema };
11422
11118
  const ref = seen.ref;
11423
11119
  seen.ref = null;
11424
11120
  if (ref) {
@@ -11426,28 +11122,28 @@ function finalize(ctx, schema) {
11426
11122
  const refSeen = ctx.seen.get(ref);
11427
11123
  const refSchema = refSeen.schema;
11428
11124
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
11429
- schema2.allOf = schema2.allOf ?? [];
11430
- schema2.allOf.push(refSchema);
11125
+ schema.allOf = schema.allOf ?? [];
11126
+ schema.allOf.push(refSchema);
11431
11127
  } else {
11432
- assignProps(schema2, refSchema);
11128
+ assignProps(schema, refSchema);
11433
11129
  }
11434
- assignProps(schema2, _cached);
11130
+ assignProps(schema, _cached);
11435
11131
  const isParentRef = zodSchema._zod.parent === ref;
11436
11132
  if (isParentRef) {
11437
- for (const key in schema2) {
11133
+ for (const key in schema) {
11438
11134
  if (key === "$ref" || key === "allOf")
11439
11135
  continue;
11440
11136
  if (!(key in _cached)) {
11441
- delete schema2[key];
11137
+ delete schema[key];
11442
11138
  }
11443
11139
  }
11444
11140
  }
11445
11141
  if (refSchema.$ref && refSeen.def) {
11446
- for (const key in schema2) {
11142
+ for (const key in schema) {
11447
11143
  if (key === "$ref" || key === "allOf")
11448
11144
  continue;
11449
- if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
11450
- delete schema2[key];
11145
+ if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {
11146
+ delete schema[key];
11451
11147
  }
11452
11148
  }
11453
11149
  }
@@ -11457,13 +11153,13 @@ function finalize(ctx, schema) {
11457
11153
  flattenRef(parent);
11458
11154
  const parentSeen = ctx.seen.get(parent);
11459
11155
  if (parentSeen?.schema.$ref) {
11460
- schema2.$ref = parentSeen.schema.$ref;
11156
+ schema.$ref = parentSeen.schema.$ref;
11461
11157
  if (parentSeen.def) {
11462
- for (const key in schema2) {
11158
+ for (const key in schema) {
11463
11159
  if (key === "$ref" || key === "allOf")
11464
11160
  continue;
11465
- if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
11466
- delete schema2[key];
11161
+ if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {
11162
+ delete schema[key];
11467
11163
  }
11468
11164
  }
11469
11165
  }
@@ -11471,7 +11167,7 @@ function finalize(ctx, schema) {
11471
11167
  }
11472
11168
  ctx.override({
11473
11169
  zodSchema,
11474
- jsonSchema: schema2,
11170
+ jsonSchema: schema,
11475
11171
  path: seen.path ?? []
11476
11172
  });
11477
11173
  };
@@ -12171,8 +11867,8 @@ function isZ4Schema(s) {
12171
11867
  }
12172
11868
  function safeParse2(schema, data) {
12173
11869
  if (isZ4Schema(schema)) {
12174
- const result2 = safeParse(schema, data);
12175
- return result2;
11870
+ const result = safeParse(schema, data);
11871
+ return result;
12176
11872
  }
12177
11873
  const v3Schema = schema;
12178
11874
  const result = v3Schema.safeParse(data);
@@ -12181,34 +11877,34 @@ function safeParse2(schema, data) {
12181
11877
  function getObjectShape(schema) {
12182
11878
  if (!schema)
12183
11879
  return;
12184
- let rawShape2;
11880
+ let rawShape;
12185
11881
  if (isZ4Schema(schema)) {
12186
11882
  const v4Schema = schema;
12187
- rawShape2 = v4Schema._zod?.def?.shape;
11883
+ rawShape = v4Schema._zod?.def?.shape;
12188
11884
  } else {
12189
11885
  const v3Schema = schema;
12190
- rawShape2 = v3Schema.shape;
11886
+ rawShape = v3Schema.shape;
12191
11887
  }
12192
- if (!rawShape2)
11888
+ if (!rawShape)
12193
11889
  return;
12194
- if (typeof rawShape2 === "function") {
11890
+ if (typeof rawShape === "function") {
12195
11891
  try {
12196
- return rawShape2();
11892
+ return rawShape();
12197
11893
  } catch {
12198
11894
  return;
12199
11895
  }
12200
11896
  }
12201
- return rawShape2;
11897
+ return rawShape;
12202
11898
  }
12203
11899
  function getLiteralValue(schema) {
12204
11900
  if (isZ4Schema(schema)) {
12205
11901
  const v4Schema = schema;
12206
- const def2 = v4Schema._zod?.def;
12207
- if (def2) {
12208
- if (def2.value !== undefined)
12209
- return def2.value;
12210
- if (Array.isArray(def2.values) && def2.values.length > 0) {
12211
- return def2.values[0];
11902
+ const def = v4Schema._zod?.def;
11903
+ if (def) {
11904
+ if (def.value !== undefined)
11905
+ return def.value;
11906
+ if (Array.isArray(def.values) && def.values.length > 0) {
11907
+ return def.values[0];
12212
11908
  }
12213
11909
  }
12214
11910
  }
@@ -12251,12 +11947,12 @@ var initializer2 = (inst, issues) => {
12251
11947
  _installedErrorProtos.add(proto);
12252
11948
  _lazyMethod(proto, "format", (self) => (mapper) => formatError(self, mapper));
12253
11949
  _lazyMethod(proto, "flatten", (self) => (mapper) => flattenError(self, mapper));
12254
- _lazyMethod(proto, "addIssue", (self) => (issue2) => {
12255
- self.issues.push(issue2);
11950
+ _lazyMethod(proto, "addIssue", (self) => (issue) => {
11951
+ self.issues.push(issue);
12256
11952
  self.message = JSON.stringify(self.issues, jsonStringifyReplacer, 2);
12257
11953
  });
12258
- _lazyMethod(proto, "addIssues", (self) => (issues2) => {
12259
- self.issues.push(...issues2);
11954
+ _lazyMethod(proto, "addIssues", (self) => (issues) => {
11955
+ self.issues.push(...issues);
12260
11956
  self.message = JSON.stringify(self.issues, jsonStringifyReplacer, 2);
12261
11957
  });
12262
11958
  Object.defineProperty(proto, "isEmpty", {
@@ -12303,7 +11999,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12303
11999
  }, {
12304
12000
  check(...chks) {
12305
12001
  const def = this.def;
12306
- return this.clone(exports_util.mergeDefs(def, {
12002
+ return this.clone(mergeDefs(def, {
12307
12003
  checks: [
12308
12004
  ...def.checks ?? [],
12309
12005
  ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
@@ -12319,8 +12015,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12319
12015
  brand() {
12320
12016
  return this;
12321
12017
  },
12322
- register(reg, meta2) {
12323
- reg.add(this, meta2);
12018
+ register(reg, meta) {
12019
+ reg.add(this, meta);
12324
12020
  return this;
12325
12021
  },
12326
12022
  refine(check, params) {
@@ -12396,7 +12092,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12396
12092
  return args.length === 0 ? fn(this) : fn(this, ...args);
12397
12093
  },
12398
12094
  get "~standard"() {
12399
- return exports_util.hide(this, "~standard", {
12095
+ return hide(this, "~standard", {
12400
12096
  ...standardProps(this),
12401
12097
  jsonSchema: {
12402
12098
  input: createStandardJSONSchemaMethod(this, "input"),
@@ -12405,13 +12101,13 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12405
12101
  });
12406
12102
  },
12407
12103
  set "~standard"(value) {
12408
- exports_util.own(this, "~standard", value);
12104
+ own(this, "~standard", value);
12409
12105
  },
12410
- parse: function _parse2(data, params) {
12411
- return parse3(this, data, params, { callee: _parse2 });
12106
+ parse: function _parse(data, params) {
12107
+ return parse3(this, data, params, { callee: _parse });
12412
12108
  },
12413
- parseAsync: async function _parseAsync2(data, params) {
12414
- return await parseAsync2(this, data, params, { callee: _parseAsync2 });
12109
+ parseAsync: async function _parseAsync(data, params) {
12110
+ return await parseAsync2(this, data, params, { callee: _parseAsync });
12415
12111
  },
12416
12112
  safeParse(data, params) {
12417
12113
  return safeParse3(this, data, params);
@@ -12423,7 +12119,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12423
12119
  return this?.safeParseAsync;
12424
12120
  },
12425
12121
  set spa(value) {
12426
- exports_util.own(this, "spa", value);
12122
+ own(this, "spa", value);
12427
12123
  },
12428
12124
  validate(data, params) {
12429
12125
  return validate(this, data, params);
@@ -12431,17 +12127,17 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12431
12127
  validateAsync(data, params) {
12432
12128
  return validateAsync(this, data, params);
12433
12129
  },
12434
- encode: function _encode2(data, params) {
12435
- return encode2(this, data, params, { callee: _encode2 });
12130
+ encode: function _encode(data, params) {
12131
+ return encode2(this, data, params, { callee: _encode });
12436
12132
  },
12437
- decode: function _decode2(data, params) {
12438
- return decode2(this, data, params, { callee: _decode2 });
12133
+ decode: function _decode(data, params) {
12134
+ return decode2(this, data, params, { callee: _decode });
12439
12135
  },
12440
- encodeAsync: async function _encodeAsync2(data, params) {
12441
- return await encodeAsync2(this, data, params, { callee: _encodeAsync2 });
12136
+ encodeAsync: async function _encodeAsync(data, params) {
12137
+ return await encodeAsync2(this, data, params, { callee: _encodeAsync });
12442
12138
  },
12443
- decodeAsync: async function _decodeAsync2(data, params) {
12444
- return await decodeAsync2(this, data, params, { callee: _decodeAsync2 });
12139
+ decodeAsync: async function _decodeAsync(data, params) {
12140
+ return await decodeAsync2(this, data, params, { callee: _decodeAsync });
12445
12141
  },
12446
12142
  safeEncode(data, params) {
12447
12143
  return safeEncode2(this, data, params);
@@ -12469,7 +12165,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
12469
12165
  $ZodString.init(inst, def);
12470
12166
  ZodType.init(inst, def);
12471
12167
  inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
12472
- }, /* @__PURE__ */ exports_util.derived({
12168
+ }, /* @__PURE__ */ derived({
12473
12169
  format: (inst) => aggregateChecks(inst).format ?? null,
12474
12170
  minLength: (inst) => aggregateChecks(inst).minimum ?? null,
12475
12171
  maxLength: (inst) => aggregateChecks(inst).maximum ?? null
@@ -12707,7 +12403,7 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
12707
12403
  ZodType.init(inst, def);
12708
12404
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
12709
12405
  inst.isFinite = true;
12710
- }, /* @__PURE__ */ exports_util.derived({
12406
+ }, /* @__PURE__ */ derived({
12711
12407
  minValue: (inst) => {
12712
12408
  const { minimum, exclusiveMinimum } = aggregateChecks(inst);
12713
12409
  return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
@@ -12841,56 +12537,56 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
12841
12537
  $ZodObjectJIT.init(inst, def);
12842
12538
  ZodType.init(inst, def);
12843
12539
  inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
12844
- exports_util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
12540
+ installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
12845
12541
  }, {
12846
12542
  keyof() {
12847
12543
  return _enum(Object.keys(this._zod.def.shape));
12848
12544
  },
12849
12545
  catchall(catchall) {
12850
- return this.clone(exports_util.mergeDefs(this._zod.def, { catchall }));
12546
+ return this.clone(mergeDefs(this._zod.def, { catchall }));
12851
12547
  },
12852
12548
  passthrough() {
12853
- return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: unknown() }));
12549
+ return this.clone(mergeDefs(this._zod.def, { catchall: unknown() }));
12854
12550
  },
12855
12551
  loose() {
12856
- return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: unknown() }));
12552
+ return this.clone(mergeDefs(this._zod.def, { catchall: unknown() }));
12857
12553
  },
12858
12554
  strict() {
12859
- return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: never() }));
12555
+ return this.clone(mergeDefs(this._zod.def, { catchall: never() }));
12860
12556
  },
12861
12557
  strip() {
12862
- return this.clone(exports_util.mergeDefs(this._zod.def, { catchall: undefined }));
12558
+ return this.clone(mergeDefs(this._zod.def, { catchall: undefined }));
12863
12559
  },
12864
12560
  extend(incoming) {
12865
- return exports_util.extend(this, incoming);
12561
+ return extend(this, incoming);
12866
12562
  },
12867
12563
  safeExtend(incoming) {
12868
- return exports_util.safeExtend(this, incoming);
12564
+ return safeExtend(this, incoming);
12869
12565
  },
12870
12566
  merge(other) {
12871
- return exports_util.merge(this, other);
12567
+ return merge(this, other);
12872
12568
  },
12873
12569
  pick(mask) {
12874
- return exports_util.pick(this, mask);
12570
+ return pick(this, mask);
12875
12571
  },
12876
12572
  omit(mask) {
12877
- return exports_util.omit(this, mask);
12573
+ return omit(this, mask);
12878
12574
  },
12879
12575
  partial(...args) {
12880
- return exports_util.partial(ZodOptional, this, args[0]);
12576
+ return partial(ZodOptional, this, args[0]);
12881
12577
  },
12882
12578
  exactPartial(...args) {
12883
- return exports_util.partial(ZodExactOptional, this, args[0], "exactPartial");
12579
+ return partial(ZodExactOptional, this, args[0], "exactPartial");
12884
12580
  },
12885
12581
  required(...args) {
12886
- return exports_util.required(ZodNonOptional, this, args[0]);
12582
+ return required(ZodNonOptional, this, args[0]);
12887
12583
  }
12888
12584
  });
12889
12585
  function object2(shape, params) {
12890
12586
  const def = {
12891
12587
  type: "object",
12892
12588
  shape: shape ?? {},
12893
- ...exports_util.normalizeParams(params)
12589
+ ...normalizeParams(params)
12894
12590
  };
12895
12591
  return new ZodObject(def);
12896
12592
  }
@@ -12899,7 +12595,7 @@ function looseObject(shape, params) {
12899
12595
  type: "object",
12900
12596
  shape,
12901
12597
  catchall: unknown(),
12902
- ...exports_util.normalizeParams(params)
12598
+ ...normalizeParams(params)
12903
12599
  });
12904
12600
  }
12905
12601
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
@@ -12912,7 +12608,7 @@ function union(options, params) {
12912
12608
  return new ZodUnion({
12913
12609
  type: "union",
12914
12610
  options,
12915
- ...exports_util.normalizeParams(params)
12611
+ ...normalizeParams(params)
12916
12612
  });
12917
12613
  }
12918
12614
  var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
@@ -12924,7 +12620,7 @@ function discriminatedUnion(discriminator, options, params) {
12924
12620
  type: "union",
12925
12621
  options,
12926
12622
  discriminator,
12927
- ...exports_util.normalizeParams(params)
12623
+ ...normalizeParams(params)
12928
12624
  });
12929
12625
  }
12930
12626
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
@@ -12953,14 +12649,14 @@ function record(keyType, valueType, params) {
12953
12649
  type: "record",
12954
12650
  keyType: string2(),
12955
12651
  valueType: keyType,
12956
- ...exports_util.normalizeParams(valueType)
12652
+ ...normalizeParams(valueType)
12957
12653
  });
12958
12654
  }
12959
12655
  return new ZodRecord({
12960
12656
  type: "record",
12961
12657
  keyType,
12962
12658
  valueType,
12963
- ...exports_util.normalizeParams(params)
12659
+ ...normalizeParams(params)
12964
12660
  });
12965
12661
  }
12966
12662
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
@@ -12981,7 +12677,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
12981
12677
  return new ZodEnum({
12982
12678
  ...def,
12983
12679
  checks: [],
12984
- ...exports_util.normalizeParams(params),
12680
+ ...normalizeParams(params),
12985
12681
  entries: newEntries
12986
12682
  });
12987
12683
  };
@@ -12996,7 +12692,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
12996
12692
  return new ZodEnum({
12997
12693
  ...def,
12998
12694
  checks: [],
12999
- ...exports_util.normalizeParams(params),
12695
+ ...normalizeParams(params),
13000
12696
  entries: newEntries
13001
12697
  });
13002
12698
  };
@@ -13006,7 +12702,7 @@ function _enum(values, params) {
13006
12702
  return new ZodEnum({
13007
12703
  type: "enum",
13008
12704
  entries,
13009
- ...exports_util.normalizeParams(params)
12705
+ ...normalizeParams(params)
13010
12706
  });
13011
12707
  }
13012
12708
  var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
@@ -13027,7 +12723,7 @@ function literal(value, params) {
13027
12723
  return new ZodLiteral({
13028
12724
  type: "literal",
13029
12725
  values: Array.isArray(value) ? value : [value],
13030
- ...exports_util.normalizeParams(params)
12726
+ ...normalizeParams(params)
13031
12727
  });
13032
12728
  }
13033
12729
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
@@ -13041,7 +12737,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
13041
12737
  }
13042
12738
  payload.addIssue = (issue2) => {
13043
12739
  if (typeof issue2 === "string") {
13044
- payload.issues.push(exports_util.issue(issue2, payload.value, def));
12740
+ payload.issues.push(issue(issue2, payload.value, def));
13045
12741
  } else {
13046
12742
  const _issue = issue2;
13047
12743
  if (_issue.fatal)
@@ -13050,13 +12746,13 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
13050
12746
  if (!("input" in _issue))
13051
12747
  _issue.input = payload.value;
13052
12748
  _issue.inst ?? (_issue.inst = inst);
13053
- payload.issues.push(exports_util.issue(_issue));
12749
+ payload.issues.push(issue(_issue));
13054
12750
  }
13055
12751
  };
13056
12752
  const output = def.transform(payload.value, payload);
13057
12753
  if (output instanceof Promise) {
13058
- return output.then((output2) => {
13059
- payload.value = output2;
12754
+ return output.then((output) => {
12755
+ payload.value = output;
13060
12756
  return payload;
13061
12757
  });
13062
12758
  }
@@ -13118,7 +12814,7 @@ function _default(innerType, defaultValue) {
13118
12814
  type: "default",
13119
12815
  innerType,
13120
12816
  get defaultValue() {
13121
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
12817
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
13122
12818
  }
13123
12819
  });
13124
12820
  }
@@ -13133,7 +12829,7 @@ function prefault(innerType, defaultValue) {
13133
12829
  type: "prefault",
13134
12830
  innerType,
13135
12831
  get defaultValue() {
13136
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
12832
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
13137
12833
  }
13138
12834
  });
13139
12835
  }
@@ -13147,7 +12843,7 @@ function nonoptional(innerType, params) {
13147
12843
  return new ZodNonOptional({
13148
12844
  type: "nonoptional",
13149
12845
  innerType,
13150
- ...exports_util.normalizeParams(params)
12846
+ ...normalizeParams(params)
13151
12847
  });
13152
12848
  }
13153
12849
  var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
@@ -13161,7 +12857,7 @@ function _catch(innerType, catchValue) {
13161
12857
  return new ZodCatch({
13162
12858
  type: "catch",
13163
12859
  innerType,
13164
- catchValue: typeof catchValue === "function" ? catchValue : exports_util.constantCatch(catchValue)
12860
+ catchValue: typeof catchValue === "function" ? catchValue : constantCatch(catchValue)
13165
12861
  });
13166
12862
  }
13167
12863
  var ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
@@ -13216,29 +12912,9 @@ function preprocess(fn, schema) {
13216
12912
  });
13217
12913
  }
13218
12914
  // node_modules/zod/v4/classic/iso.js
13219
- var exports_iso = {};
13220
- __export(exports_iso, {
13221
- time: () => time2,
13222
- duration: () => duration2,
13223
- datetime: () => datetime2,
13224
- date: () => date2,
13225
- ZodISOTime: () => ZodISOTime,
13226
- ZodISODuration: () => ZodISODuration,
13227
- ZodISODateTime: () => ZodISODateTime,
13228
- ZodISODate: () => ZodISODate
13229
- });
13230
12915
  function datetime2(params) {
13231
12916
  return _isoDateTime(ZodISODateTime, params);
13232
12917
  }
13233
- function date2(params) {
13234
- return _isoDate(ZodISODate, params);
13235
- }
13236
- function time2(params) {
13237
- return _isoTime(ZodISOTime, params);
13238
- }
13239
- function duration2(params) {
13240
- return _isoDuration(ZodISODuration, params);
13241
- }
13242
12918
  // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
13243
12919
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
13244
12920
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
@@ -13301,15 +12977,15 @@ var JSONRPCResultResponseSchema = object2({
13301
12977
  }).strict();
13302
12978
  var isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success;
13303
12979
  var ErrorCode;
13304
- (function(ErrorCode2) {
13305
- ErrorCode2[ErrorCode2["ConnectionClosed"] = -32000] = "ConnectionClosed";
13306
- ErrorCode2[ErrorCode2["RequestTimeout"] = -32001] = "RequestTimeout";
13307
- ErrorCode2[ErrorCode2["ParseError"] = -32700] = "ParseError";
13308
- ErrorCode2[ErrorCode2["InvalidRequest"] = -32600] = "InvalidRequest";
13309
- ErrorCode2[ErrorCode2["MethodNotFound"] = -32601] = "MethodNotFound";
13310
- ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
13311
- ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
13312
- ErrorCode2[ErrorCode2["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
12980
+ (function(ErrorCode) {
12981
+ ErrorCode[ErrorCode["ConnectionClosed"] = -32000] = "ConnectionClosed";
12982
+ ErrorCode[ErrorCode["RequestTimeout"] = -32001] = "RequestTimeout";
12983
+ ErrorCode[ErrorCode["ParseError"] = -32700] = "ParseError";
12984
+ ErrorCode[ErrorCode["InvalidRequest"] = -32600] = "InvalidRequest";
12985
+ ErrorCode[ErrorCode["MethodNotFound"] = -32601] = "MethodNotFound";
12986
+ ErrorCode[ErrorCode["InvalidParams"] = -32602] = "InvalidParams";
12987
+ ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
12988
+ ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
13313
12989
  })(ErrorCode || (ErrorCode = {}));
13314
12990
  var JSONRPCErrorResponseSchema = object2({
13315
12991
  jsonrpc: literal(JSONRPC_VERSION),
@@ -13536,7 +13212,7 @@ var RoleSchema = _enum(["user", "assistant"]);
13536
13212
  var AnnotationsSchema = object2({
13537
13213
  audience: array(RoleSchema).optional(),
13538
13214
  priority: number2().min(0).max(1).optional(),
13539
- lastModified: exports_iso.datetime({ offset: true }).optional()
13215
+ lastModified: datetime2({ offset: true }).optional()
13540
13216
  });
13541
13217
  var ResourceSchema = object2({
13542
13218
  ...BaseMetadataSchema.shape,
@@ -14155,8 +13831,8 @@ class Protocol {
14155
13831
  resolver(message);
14156
13832
  } else {
14157
13833
  const errorMessage = message;
14158
- const error2 = new McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data);
14159
- resolver(error2);
13834
+ const error = new McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data);
13835
+ resolver(error);
14160
13836
  }
14161
13837
  } else {
14162
13838
  const messageType = queuedMessage.type === "response" ? "Response" : "Error";
@@ -14200,8 +13876,8 @@ class Protocol {
14200
13876
  nextCursor,
14201
13877
  _meta: {}
14202
13878
  };
14203
- } catch (error2) {
14204
- throw new McpError(ErrorCode.InvalidParams, `Failed to list tasks: ${error2 instanceof Error ? error2.message : String(error2)}`);
13879
+ } catch (error) {
13880
+ throw new McpError(ErrorCode.InvalidParams, `Failed to list tasks: ${error instanceof Error ? error.message : String(error)}`);
14205
13881
  }
14206
13882
  });
14207
13883
  this.setRequestHandler(CancelTaskRequestSchema, async (request, extra) => {
@@ -14223,11 +13899,11 @@ class Protocol {
14223
13899
  _meta: {},
14224
13900
  ...cancelledTask
14225
13901
  };
14226
- } catch (error2) {
14227
- if (error2 instanceof McpError) {
14228
- throw error2;
13902
+ } catch (error) {
13903
+ if (error instanceof McpError) {
13904
+ throw error;
14229
13905
  }
14230
- throw new McpError(ErrorCode.InvalidRequest, `Failed to cancel task: ${error2 instanceof Error ? error2.message : String(error2)}`);
13906
+ throw new McpError(ErrorCode.InvalidRequest, `Failed to cancel task: ${error instanceof Error ? error.message : String(error)}`);
14231
13907
  }
14232
13908
  });
14233
13909
  }
@@ -14283,9 +13959,9 @@ class Protocol {
14283
13959
  this._onclose();
14284
13960
  };
14285
13961
  const _onerror = this.transport?.onerror;
14286
- this._transport.onerror = (error2) => {
14287
- _onerror?.(error2);
14288
- this._onerror(error2);
13962
+ this._transport.onerror = (error) => {
13963
+ _onerror?.(error);
13964
+ this._onerror(error);
14289
13965
  };
14290
13966
  const _onmessage = this._transport?.onmessage;
14291
13967
  this._transport.onmessage = (message, extra) => {
@@ -14316,22 +13992,22 @@ class Protocol {
14316
13992
  controller.abort();
14317
13993
  }
14318
13994
  this._requestHandlerAbortControllers.clear();
14319
- const error2 = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
13995
+ const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
14320
13996
  this._transport = undefined;
14321
13997
  this.onclose?.();
14322
13998
  for (const handler of responseHandlers.values()) {
14323
- handler(error2);
13999
+ handler(error);
14324
14000
  }
14325
14001
  }
14326
- _onerror(error2) {
14327
- this.onerror?.(error2);
14002
+ _onerror(error) {
14003
+ this.onerror?.(error);
14328
14004
  }
14329
14005
  _onnotification(notification) {
14330
14006
  const handler = this._notificationHandlers.get(notification.method) ?? this.fallbackNotificationHandler;
14331
14007
  if (handler === undefined) {
14332
14008
  return;
14333
14009
  }
14334
- Promise.resolve().then(() => handler(notification)).catch((error2) => this._onerror(new Error(`Uncaught error in notification handler: ${error2}`)));
14010
+ Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
14335
14011
  }
14336
14012
  _onrequest(request, extra) {
14337
14013
  const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler;
@@ -14351,9 +14027,9 @@ class Protocol {
14351
14027
  type: "error",
14352
14028
  message: errorResponse,
14353
14029
  timestamp: Date.now()
14354
- }, capturedTransport?.sessionId).catch((error2) => this._onerror(new Error(`Failed to enqueue error response: ${error2}`)));
14030
+ }, capturedTransport?.sessionId).catch((error) => this._onerror(new Error(`Failed to enqueue error response: ${error}`)));
14355
14031
  } else {
14356
- capturedTransport?.send(errorResponse).catch((error2) => this._onerror(new Error(`Failed to send an error response: ${error2}`)));
14032
+ capturedTransport?.send(errorResponse).catch((error) => this._onerror(new Error(`Failed to send an error response: ${error}`)));
14357
14033
  }
14358
14034
  return;
14359
14035
  }
@@ -14419,7 +14095,7 @@ class Protocol {
14419
14095
  } else {
14420
14096
  await capturedTransport?.send(response);
14421
14097
  }
14422
- }, async (error2) => {
14098
+ }, async (error) => {
14423
14099
  if (abortController.signal.aborted) {
14424
14100
  return;
14425
14101
  }
@@ -14427,9 +14103,9 @@ class Protocol {
14427
14103
  jsonrpc: "2.0",
14428
14104
  id: request.id,
14429
14105
  error: {
14430
- code: Number.isSafeInteger(error2["code"]) ? error2["code"] : ErrorCode.InternalError,
14431
- message: error2.message ?? "Internal error",
14432
- ...error2["data"] !== undefined && { data: error2["data"] }
14106
+ code: Number.isSafeInteger(error["code"]) ? error["code"] : ErrorCode.InternalError,
14107
+ message: error.message ?? "Internal error",
14108
+ ...error["data"] !== undefined && { data: error["data"] }
14433
14109
  }
14434
14110
  };
14435
14111
  if (relatedTaskId && this._taskMessageQueue) {
@@ -14441,7 +14117,7 @@ class Protocol {
14441
14117
  } else {
14442
14118
  await capturedTransport?.send(errorResponse);
14443
14119
  }
14444
- }).catch((error2) => this._onerror(new Error(`Failed to send response: ${error2}`))).finally(() => {
14120
+ }).catch((error) => this._onerror(new Error(`Failed to send response: ${error}`))).finally(() => {
14445
14121
  if (this._requestHandlerAbortControllers.get(request.id) === abortController) {
14446
14122
  this._requestHandlerAbortControllers.delete(request.id);
14447
14123
  }
@@ -14460,11 +14136,11 @@ class Protocol {
14460
14136
  if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) {
14461
14137
  try {
14462
14138
  this._resetTimeout(messageId);
14463
- } catch (error2) {
14139
+ } catch (error) {
14464
14140
  this._responseHandlers.delete(messageId);
14465
14141
  this._progressHandlers.delete(messageId);
14466
14142
  this._cleanupTimeout(messageId);
14467
- responseHandler(error2);
14143
+ responseHandler(error);
14468
14144
  return;
14469
14145
  }
14470
14146
  }
@@ -14478,8 +14154,8 @@ class Protocol {
14478
14154
  if (isJSONRPCResultResponse(response)) {
14479
14155
  resolver(response);
14480
14156
  } else {
14481
- const error2 = new McpError(response.error.code, response.error.message, response.error.data);
14482
- resolver(error2);
14157
+ const error = new McpError(response.error.code, response.error.message, response.error.data);
14158
+ resolver(error);
14483
14159
  }
14484
14160
  return;
14485
14161
  }
@@ -14507,8 +14183,8 @@ class Protocol {
14507
14183
  if (isJSONRPCResultResponse(response)) {
14508
14184
  handler(response);
14509
14185
  } else {
14510
- const error2 = McpError.fromError(response.error.code, response.error.message, response.error.data);
14511
- handler(error2);
14186
+ const error = McpError.fromError(response.error.code, response.error.message, response.error.data);
14187
+ handler(error);
14512
14188
  }
14513
14189
  }
14514
14190
  get transport() {
@@ -14523,10 +14199,10 @@ class Protocol {
14523
14199
  try {
14524
14200
  const result = await this.request(request, resultSchema, options);
14525
14201
  yield { type: "result", result };
14526
- } catch (error2) {
14202
+ } catch (error) {
14527
14203
  yield {
14528
14204
  type: "error",
14529
- error: error2 instanceof McpError ? error2 : new McpError(ErrorCode.InternalError, String(error2))
14205
+ error: error instanceof McpError ? error : new McpError(ErrorCode.InternalError, String(error))
14530
14206
  };
14531
14207
  }
14532
14208
  return;
@@ -14541,18 +14217,18 @@ class Protocol {
14541
14217
  throw new McpError(ErrorCode.InternalError, "Task creation did not return a task");
14542
14218
  }
14543
14219
  while (true) {
14544
- const task2 = await this.getTask({ taskId }, options);
14545
- yield { type: "taskStatus", task: task2 };
14546
- if (isTerminal(task2.status)) {
14547
- if (task2.status === "completed") {
14220
+ const task = await this.getTask({ taskId }, options);
14221
+ yield { type: "taskStatus", task };
14222
+ if (isTerminal(task.status)) {
14223
+ if (task.status === "completed") {
14548
14224
  const result = await this.getTaskResult({ taskId }, resultSchema, options);
14549
14225
  yield { type: "result", result };
14550
- } else if (task2.status === "failed") {
14226
+ } else if (task.status === "failed") {
14551
14227
  yield {
14552
14228
  type: "error",
14553
14229
  error: new McpError(ErrorCode.InternalError, `Task ${taskId} failed`)
14554
14230
  };
14555
- } else if (task2.status === "cancelled") {
14231
+ } else if (task.status === "cancelled") {
14556
14232
  yield {
14557
14233
  type: "error",
14558
14234
  error: new McpError(ErrorCode.InternalError, `Task ${taskId} was cancelled`)
@@ -14560,27 +14236,27 @@ class Protocol {
14560
14236
  }
14561
14237
  return;
14562
14238
  }
14563
- if (task2.status === "input_required") {
14239
+ if (task.status === "input_required") {
14564
14240
  const result = await this.getTaskResult({ taskId }, resultSchema, options);
14565
14241
  yield { type: "result", result };
14566
14242
  return;
14567
14243
  }
14568
- const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000;
14244
+ const pollInterval = task.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000;
14569
14245
  await new Promise((resolve) => setTimeout(resolve, pollInterval));
14570
14246
  options?.signal?.throwIfAborted();
14571
14247
  }
14572
- } catch (error2) {
14248
+ } catch (error) {
14573
14249
  yield {
14574
14250
  type: "error",
14575
- error: error2 instanceof McpError ? error2 : new McpError(ErrorCode.InternalError, String(error2))
14251
+ error: error instanceof McpError ? error : new McpError(ErrorCode.InternalError, String(error))
14576
14252
  };
14577
14253
  }
14578
14254
  }
14579
14255
  request(request, resultSchema, options) {
14580
14256
  const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {};
14581
14257
  return new Promise((resolve, reject) => {
14582
- const earlyReject = (error2) => {
14583
- reject(error2);
14258
+ const earlyReject = (error) => {
14259
+ reject(error);
14584
14260
  };
14585
14261
  if (!this._transport) {
14586
14262
  earlyReject(new Error("Not connected"));
@@ -14640,9 +14316,9 @@ class Protocol {
14640
14316
  requestId: messageId,
14641
14317
  reason: String(reason)
14642
14318
  }
14643
- }, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error3) => this._onerror(new Error(`Failed to send cancellation: ${error3}`)));
14644
- const error2 = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
14645
- reject(error2);
14319
+ }, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error) => this._onerror(new Error(`Failed to send cancellation: ${error}`)));
14320
+ const error = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
14321
+ reject(error);
14646
14322
  };
14647
14323
  this._responseHandlers.set(messageId, (response) => {
14648
14324
  if (options?.signal?.aborted) {
@@ -14658,8 +14334,8 @@ class Protocol {
14658
14334
  } else {
14659
14335
  resolve(parseResult.data);
14660
14336
  }
14661
- } catch (error2) {
14662
- reject(error2);
14337
+ } catch (error) {
14338
+ reject(error);
14663
14339
  }
14664
14340
  });
14665
14341
  options?.signal?.addEventListener("abort", () => {
@@ -14683,14 +14359,14 @@ class Protocol {
14683
14359
  type: "request",
14684
14360
  message: jsonrpcRequest,
14685
14361
  timestamp: Date.now()
14686
- }).catch((error2) => {
14362
+ }).catch((error) => {
14687
14363
  this._cleanupTimeout(messageId);
14688
- reject(error2);
14364
+ reject(error);
14689
14365
  });
14690
14366
  } else {
14691
- this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error2) => {
14367
+ this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error) => {
14692
14368
  this._cleanupTimeout(messageId);
14693
- reject(error2);
14369
+ reject(error);
14694
14370
  });
14695
14371
  }
14696
14372
  });
@@ -14714,7 +14390,7 @@ class Protocol {
14714
14390
  this.assertNotificationCapability(notification.method);
14715
14391
  const relatedTaskId = options?.relatedTask?.taskId;
14716
14392
  if (relatedTaskId) {
14717
- const jsonrpcNotification2 = {
14393
+ const jsonrpcNotification = {
14718
14394
  ...notification,
14719
14395
  jsonrpc: "2.0",
14720
14396
  params: {
@@ -14727,7 +14403,7 @@ class Protocol {
14727
14403
  };
14728
14404
  await this._enqueueTaskMessage(relatedTaskId, {
14729
14405
  type: "notification",
14730
- message: jsonrpcNotification2,
14406
+ message: jsonrpcNotification,
14731
14407
  timestamp: Date.now()
14732
14408
  });
14733
14409
  return;
@@ -14744,23 +14420,23 @@ class Protocol {
14744
14420
  if (!this._transport) {
14745
14421
  return;
14746
14422
  }
14747
- let jsonrpcNotification2 = {
14423
+ let jsonrpcNotification = {
14748
14424
  ...notification,
14749
14425
  jsonrpc: "2.0"
14750
14426
  };
14751
14427
  if (options?.relatedTask) {
14752
- jsonrpcNotification2 = {
14753
- ...jsonrpcNotification2,
14428
+ jsonrpcNotification = {
14429
+ ...jsonrpcNotification,
14754
14430
  params: {
14755
- ...jsonrpcNotification2.params,
14431
+ ...jsonrpcNotification.params,
14756
14432
  _meta: {
14757
- ...jsonrpcNotification2.params?._meta || {},
14433
+ ...jsonrpcNotification.params?._meta || {},
14758
14434
  [RELATED_TASK_META_KEY]: options.relatedTask
14759
14435
  }
14760
14436
  }
14761
14437
  };
14762
14438
  }
14763
- this._transport?.send(jsonrpcNotification2, options).catch((error2) => this._onerror(error2));
14439
+ this._transport?.send(jsonrpcNotification, options).catch((error) => this._onerror(error));
14764
14440
  });
14765
14441
  return;
14766
14442
  }
@@ -15371,11 +15047,11 @@ class Server extends Protocol {
15371
15047
  if (!validationResult.valid) {
15372
15048
  throw new McpError(ErrorCode.InvalidParams, `Elicitation response content does not match requested schema: ${validationResult.errorMessage}`);
15373
15049
  }
15374
- } catch (error2) {
15375
- if (error2 instanceof McpError) {
15376
- throw error2;
15050
+ } catch (error) {
15051
+ if (error instanceof McpError) {
15052
+ throw error;
15377
15053
  }
15378
- throw new McpError(ErrorCode.InternalError, `Error validating elicitation response: ${error2 instanceof Error ? error2.message : String(error2)}`);
15054
+ throw new McpError(ErrorCode.InternalError, `Error validating elicitation response: ${error instanceof Error ? error.message : String(error)}`);
15379
15055
  }
15380
15056
  }
15381
15057
  return result;
@@ -15475,13 +15151,13 @@ class StdioServerTransport {
15475
15151
  try {
15476
15152
  this._readBuffer.append(chunk);
15477
15153
  this.processReadBuffer();
15478
- } catch (error2) {
15479
- this.onerror?.(error2);
15154
+ } catch (error) {
15155
+ this.onerror?.(error);
15480
15156
  this.close().catch(() => {});
15481
15157
  }
15482
15158
  };
15483
- this._onerror = (error2) => {
15484
- this.onerror?.(error2);
15159
+ this._onerror = (error) => {
15160
+ this.onerror?.(error);
15485
15161
  };
15486
15162
  this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
15487
15163
  }
@@ -15501,8 +15177,8 @@ class StdioServerTransport {
15501
15177
  break;
15502
15178
  }
15503
15179
  this.onmessage?.(message);
15504
- } catch (error2) {
15505
- this.onerror?.(error2);
15180
+ } catch (error) {
15181
+ this.onerror?.(error);
15506
15182
  }
15507
15183
  }
15508
15184
  }
@@ -15566,8 +15242,8 @@ function projectRoot(cwd) {
15566
15242
  dir = canonical(input);
15567
15243
  if (!lstatSync(dir).isDirectory())
15568
15244
  throw new Error(`${cwd} is not a directory`);
15569
- } catch (error2) {
15570
- throw new Error(`cannot resolve project directory ${cwd}: ${error2.message}`);
15245
+ } catch (error) {
15246
+ throw new Error(`cannot resolve project directory ${cwd}: ${error.message}`);
15571
15247
  }
15572
15248
  const boundary = gitRoot(dir);
15573
15249
  const stop = boundary ?? parseRoot(dir);
@@ -15663,13 +15339,13 @@ class ControlClient {
15663
15339
  instanceId: hello.instanceId ?? control.instanceId,
15664
15340
  projectRoot: hello.projectRoot ?? control.cwd
15665
15341
  };
15666
- return new Promise((resolve2, reject) => {
15342
+ return new Promise((resolve, reject) => {
15667
15343
  const ws = new WebSocket(control.url);
15668
15344
  const client = new ControlClient(ws);
15669
15345
  const timer = setTimeout(() => refuse(new Error(`hub connection timed out at ${control.url}`)), timeoutMs);
15670
- const refuse = (error2) => {
15346
+ const refuse = (error) => {
15671
15347
  clearTimeout(timer);
15672
- reject(error2);
15348
+ reject(error);
15673
15349
  ws.close();
15674
15350
  };
15675
15351
  ws.onerror = () => refuse(new Error(`cannot reach hub at ${control.url}`));
@@ -15703,7 +15379,7 @@ class ControlClient {
15703
15379
  return refuse(Object.assign(new Error("connected hub has a different project or instance"), { code: 4404 }));
15704
15380
  }
15705
15381
  clearTimeout(timer);
15706
- resolve2(client);
15382
+ resolve(client);
15707
15383
  });
15708
15384
  });
15709
15385
  }
@@ -15711,9 +15387,9 @@ class ControlClient {
15711
15387
  if (this.ws.readyState !== WebSocket.OPEN)
15712
15388
  return Promise.resolve({ ok: false, error: "hub connection is not open" });
15713
15389
  const rid = this.nextRid++;
15714
- return new Promise((resolve2) => {
15715
- const timer = timeoutMs ? setTimeout(() => (this.pending.delete(rid), resolve2({ ok: false, error: `no answer from the hub within ${Math.round(timeoutMs / 1000)} s` })), timeoutMs) : undefined;
15716
- this.pending.set(rid, (reply) => (clearTimeout(timer), resolve2(reply)));
15390
+ return new Promise((resolve) => {
15391
+ const timer = timeoutMs ? setTimeout(() => (this.pending.delete(rid), resolve({ ok: false, error: `no answer from the hub within ${Math.round(timeoutMs / 1000)} s` })), timeoutMs) : undefined;
15392
+ this.pending.set(rid, (reply) => (clearTimeout(timer), resolve(reply)));
15717
15393
  this.ws.send(JSON.stringify({ ...msg, rid }));
15718
15394
  });
15719
15395
  }
@@ -15727,7 +15403,7 @@ class ControlClient {
15727
15403
  // package.json
15728
15404
  var package_default = {
15729
15405
  name: "@staix/agent-hub",
15730
- version: "0.12.5",
15406
+ version: "0.12.7",
15731
15407
  description: "Native multi-agent hub: Claude Code, Codex, Kimi Code, Pi and local inference as peers in one project",
15732
15408
  license: "MIT",
15733
15409
  type: "module",
@@ -15809,10 +15485,10 @@ var plan = {
15809
15485
  },
15810
15486
  additionalProperties: false
15811
15487
  };
15812
- var tool = (name, description, properties, required2 = []) => ({
15488
+ var tool = (name, description, properties, required = []) => ({
15813
15489
  name,
15814
15490
  description,
15815
- inputSchema: { type: "object", properties, required: required2, additionalProperties: false }
15491
+ inputSchema: { type: "object", properties, required, additionalProperties: false }
15816
15492
  });
15817
15493
  var TASK_TOOLS = [
15818
15494
  tool("hub_task_propose", "Put a piece of work on the shared task board. The hub assigns an owner by class (routing.toml) unless you name one. Classes: plan, implement, bulk_edit, test, review, summarize, triage. Name the class when you know it; without one the hub tries to pick it. Name yourself as owner to claim work nobody assigned you: it starts in progress. Put the paths the work touches in refs, and when you claim work, a plan; the hub says when they overlap another open task.", { title: str, class: { type: "string", enum: ["plan", "implement", "bulk_edit", "test", "review", "summarize", "triage"] }, detail: str, refs, plan, owner: { type: "string", description: "peer id; yours to claim the work, omit to let the hub route it" }, after: { type: "array", items: { type: "integer" }, description: "ids of tasks that must be approved first; until then this one waits, offered to nobody, and cannot be claimed" }, urgent: { type: "boolean", description: "hand it over even when its owner is paused for quota only briefly" } }, ["title"]),
@@ -15905,7 +15581,7 @@ async function push(envs, deliveryId, generation) {
15905
15581
  ${sanitize(e.body)}`).join(`
15906
15582
 
15907
15583
  `);
15908
- const meta2 = {
15584
+ const meta = {
15909
15585
  source: single ? parent.from : "hub-digest",
15910
15586
  ...single ? {} : { sources: [...new Set(envs.map((e) => e.from))].join(",") },
15911
15587
  message_id: parent.id,
@@ -15915,7 +15591,7 @@ ${sanitize(e.body)}`).join(`
15915
15591
  ts: new Date(parent.ts).toISOString()
15916
15592
  };
15917
15593
  try {
15918
- await server.notification({ method: "notifications/claude/channel", params: { content, meta: meta2 } });
15594
+ await server.notification({ method: "notifications/claude/channel", params: { content, meta } });
15919
15595
  if (deliveryId && hub) {
15920
15596
  try {
15921
15597
  const receipt = await hub.request({ t: "delivery_receipt", deliveryId, generation, state: "accepted" });