@tonyclaw/llm-inspector 1.9.5 → 1.9.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.
Files changed (50) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/index-Cc1oV0hF.css +1 -0
  3. package/.output/public/assets/index-DTjsqi6U.js +11 -0
  4. package/.output/public/assets/index-DrYcBTSK.js +122 -0
  5. package/.output/server/_chunks/ssr-renderer.mjs +1 -0
  6. package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +1 -1
  7. package/.output/server/_libs/ajv-formats.mjs +18 -18
  8. package/.output/server/_libs/ajv.mjs +196 -196
  9. package/.output/server/_libs/cookie-es.mjs +7 -21
  10. package/.output/server/_libs/h3-v2.mjs +18 -7
  11. package/.output/server/_libs/h3.mjs +24 -16
  12. package/.output/server/_libs/jszip.mjs +28 -28
  13. package/.output/server/_libs/pako.mjs +13 -13
  14. package/.output/server/_libs/radix-ui__react-collection.mjs +1 -1
  15. package/.output/server/_libs/radix-ui__react-id.mjs +1 -1
  16. package/.output/server/_libs/react-dom.mjs +5 -5
  17. package/.output/server/_libs/react.mjs +43 -43
  18. package/.output/server/_libs/readable-stream.mjs +15 -15
  19. package/.output/server/_libs/safe-buffer.mjs +3 -3
  20. package/.output/server/_libs/semver.mjs +10 -10
  21. package/.output/server/_libs/seroval-plugins.mjs +5 -5
  22. package/.output/server/_libs/seroval.mjs +606 -596
  23. package/.output/server/_libs/srvx.mjs +110 -46
  24. package/.output/server/_libs/swr.mjs +1 -1
  25. package/.output/server/_libs/tanstack__history.mjs +31 -44
  26. package/.output/server/_libs/tanstack__react-router.mjs +781 -1090
  27. package/.output/server/_libs/tanstack__router-core.mjs +2223 -2328
  28. package/.output/server/_libs/tslib.mjs +5 -5
  29. package/.output/server/_libs/use-sync-external-store.mjs +1 -1
  30. package/.output/server/_libs/zod.mjs +503 -205
  31. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +6 -0
  32. package/.output/server/_ssr/{index-Ou5OlbF7.mjs → index-Lxfn0bBE.mjs} +53 -25
  33. package/.output/server/_ssr/index.mjs +1100 -777
  34. package/.output/server/_ssr/{router-pQnqiQaV.mjs → router-CXva8nm-.mjs} +26 -7
  35. package/.output/server/_tanstack-start-manifest_v-Cb2CDJtB.mjs +4 -0
  36. package/.output/server/index.mjs +23 -22
  37. package/README.md +50 -11
  38. package/package.json +1 -1
  39. package/src/components/providers/ProviderCard.tsx +26 -9
  40. package/src/components/proxy-viewer/formats/anthropic/ContentBlocks.tsx +35 -2
  41. package/src/components/proxy-viewer/formats/openai/ResponseView.tsx +25 -11
  42. package/src/proxy/formats/openai/schemas.ts +6 -0
  43. package/src/proxy/formats/openai/stream.ts +8 -0
  44. package/src/proxy/handler.ts +6 -2
  45. package/.output/public/assets/index-BrRzz6xk.js +0 -97
  46. package/.output/public/assets/index-DdJSLfxK.css +0 -1
  47. package/.output/public/assets/main-DlRlP_aH.js +0 -17
  48. package/.output/server/_libs/tiny-invariant.mjs +0 -12
  49. package/.output/server/_libs/tiny-warning.mjs +0 -5
  50. package/.output/server/_tanstack-start-manifest_v-DqXd4TXM.mjs +0 -4
@@ -12,17 +12,17 @@ var hasRequiredCode$3;
12
12
  function requireCode$3() {
13
13
  if (hasRequiredCode$3) return code$3;
14
14
  hasRequiredCode$3 = 1;
15
- (function(exports$1) {
16
- Object.defineProperty(exports$1, "__esModule", { value: true });
17
- exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
15
+ (function(exports) {
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ 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 = void 0;
18
18
  class _CodeOrName {
19
19
  }
20
- exports$1._CodeOrName = _CodeOrName;
21
- exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
20
+ exports._CodeOrName = _CodeOrName;
21
+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
22
22
  class Name extends _CodeOrName {
23
23
  constructor(s) {
24
24
  super();
25
- if (!exports$1.IDENTIFIER.test(s))
25
+ if (!exports.IDENTIFIER.test(s))
26
26
  throw new Error("CodeGen: name must be a valid identifier");
27
27
  this.str = s;
28
28
  }
@@ -36,7 +36,7 @@ function requireCode$3() {
36
36
  return { [this.str]: 1 };
37
37
  }
38
38
  }
39
- exports$1.Name = Name;
39
+ exports.Name = Name;
40
40
  class _Code extends _CodeOrName {
41
41
  constructor(code2) {
42
42
  super();
@@ -64,8 +64,8 @@ function requireCode$3() {
64
64
  }, {});
65
65
  }
66
66
  }
67
- exports$1._Code = _Code;
68
- exports$1.nil = new _Code("");
67
+ exports._Code = _Code;
68
+ exports.nil = new _Code("");
69
69
  function _(strs, ...args) {
70
70
  const code2 = [strs[0]];
71
71
  let i = 0;
@@ -75,7 +75,7 @@ function requireCode$3() {
75
75
  }
76
76
  return new _Code(code2);
77
77
  }
78
- exports$1._ = _;
78
+ exports._ = _;
79
79
  const plus = new _Code("+");
80
80
  function str(strs, ...args) {
81
81
  const expr = [safeStringify(strs[0])];
@@ -88,7 +88,7 @@ function requireCode$3() {
88
88
  optimize(expr);
89
89
  return new _Code(expr);
90
90
  }
91
- exports$1.str = str;
91
+ exports.str = str;
92
92
  function addCodeArg(code2, arg) {
93
93
  if (arg instanceof _Code)
94
94
  code2.push(...arg._items);
@@ -97,7 +97,7 @@ function requireCode$3() {
97
97
  else
98
98
  code2.push(interpolate(arg));
99
99
  }
100
- exports$1.addCodeArg = addCodeArg;
100
+ exports.addCodeArg = addCodeArg;
101
101
  function optimize(expr) {
102
102
  let i = 1;
103
103
  while (i < expr.length - 1) {
@@ -133,33 +133,33 @@ function requireCode$3() {
133
133
  function strConcat(c1, c2) {
134
134
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
135
135
  }
136
- exports$1.strConcat = strConcat;
136
+ exports.strConcat = strConcat;
137
137
  function interpolate(x) {
138
138
  return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
139
139
  }
140
140
  function stringify(x) {
141
141
  return new _Code(safeStringify(x));
142
142
  }
143
- exports$1.stringify = stringify;
143
+ exports.stringify = stringify;
144
144
  function safeStringify(x) {
145
145
  return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
146
146
  }
147
- exports$1.safeStringify = safeStringify;
147
+ exports.safeStringify = safeStringify;
148
148
  function getProperty(key) {
149
- return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
149
+ return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
150
150
  }
151
- exports$1.getProperty = getProperty;
151
+ exports.getProperty = getProperty;
152
152
  function getEsmExportName(key) {
153
- if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
153
+ if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
154
154
  return new _Code(`${key}`);
155
155
  }
156
156
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
157
157
  }
158
- exports$1.getEsmExportName = getEsmExportName;
158
+ exports.getEsmExportName = getEsmExportName;
159
159
  function regexpCode(rx) {
160
160
  return new _Code(rx.toString());
161
161
  }
162
- exports$1.regexpCode = regexpCode;
162
+ exports.regexpCode = regexpCode;
163
163
  })(code$3);
164
164
  return code$3;
165
165
  }
@@ -168,9 +168,9 @@ var hasRequiredScope$1;
168
168
  function requireScope$1() {
169
169
  if (hasRequiredScope$1) return scope$1;
170
170
  hasRequiredScope$1 = 1;
171
- (function(exports$1) {
172
- Object.defineProperty(exports$1, "__esModule", { value: true });
173
- exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
171
+ (function(exports) {
172
+ Object.defineProperty(exports, "__esModule", { value: true });
173
+ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
174
174
  const code_1 = /* @__PURE__ */ requireCode$3();
175
175
  class ValueError extends Error {
176
176
  constructor(name) {
@@ -182,8 +182,8 @@ function requireScope$1() {
182
182
  (function(UsedValueState2) {
183
183
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
184
184
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
185
- })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
186
- exports$1.varKinds = {
185
+ })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
186
+ exports.varKinds = {
187
187
  const: new code_1.Name("const"),
188
188
  let: new code_1.Name("let"),
189
189
  var: new code_1.Name("var")
@@ -212,7 +212,7 @@ function requireScope$1() {
212
212
  return this._names[prefix] = { prefix, index: 0 };
213
213
  }
214
214
  }
215
- exports$1.Scope = Scope;
215
+ exports.Scope = Scope;
216
216
  class ValueScopeName extends code_1.Name {
217
217
  constructor(prefix, nameStr) {
218
218
  super(nameStr);
@@ -223,7 +223,7 @@ function requireScope$1() {
223
223
  this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
224
224
  }
225
225
  }
226
- exports$1.ValueScopeName = ValueScopeName;
226
+ exports.ValueScopeName = ValueScopeName;
227
227
  const line = (0, code_1._)`\n`;
228
228
  class ValueScope extends Scope {
229
229
  constructor(opts) {
@@ -293,7 +293,7 @@ function requireScope$1() {
293
293
  nameSet.set(name, UsedValueState.Started);
294
294
  let c = valueCode(name);
295
295
  if (c) {
296
- const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
296
+ const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
297
297
  code2 = (0, code_1._)`${code2}${def} ${name} = ${c};${this.opts._n}`;
298
298
  } else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
299
299
  code2 = (0, code_1._)`${code2}${c}${this.opts._n}`;
@@ -306,7 +306,7 @@ function requireScope$1() {
306
306
  return code2;
307
307
  }
308
308
  }
309
- exports$1.ValueScope = ValueScope;
309
+ exports.ValueScope = ValueScope;
310
310
  })(scope$1);
311
311
  return scope$1;
312
312
  }
@@ -314,50 +314,50 @@ var hasRequiredCodegen$1;
314
314
  function requireCodegen$1() {
315
315
  if (hasRequiredCodegen$1) return codegen$1;
316
316
  hasRequiredCodegen$1 = 1;
317
- (function(exports$1) {
318
- Object.defineProperty(exports$1, "__esModule", { value: true });
319
- exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
317
+ (function(exports) {
318
+ Object.defineProperty(exports, "__esModule", { value: true });
319
+ 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._ = void 0;
320
320
  const code_1 = /* @__PURE__ */ requireCode$3();
321
321
  const scope_1 = /* @__PURE__ */ requireScope$1();
322
322
  var code_2 = /* @__PURE__ */ requireCode$3();
323
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
323
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
324
324
  return code_2._;
325
325
  } });
326
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
326
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
327
327
  return code_2.str;
328
328
  } });
329
- Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function() {
329
+ Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
330
330
  return code_2.strConcat;
331
331
  } });
332
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
332
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
333
333
  return code_2.nil;
334
334
  } });
335
- Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function() {
335
+ Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
336
336
  return code_2.getProperty;
337
337
  } });
338
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
338
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
339
339
  return code_2.stringify;
340
340
  } });
341
- Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function() {
341
+ Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
342
342
  return code_2.regexpCode;
343
343
  } });
344
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
344
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
345
345
  return code_2.Name;
346
346
  } });
347
347
  var scope_2 = /* @__PURE__ */ requireScope$1();
348
- Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function() {
348
+ Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
349
349
  return scope_2.Scope;
350
350
  } });
351
- Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function() {
351
+ Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
352
352
  return scope_2.ValueScope;
353
353
  } });
354
- Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function() {
354
+ Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
355
355
  return scope_2.ValueScopeName;
356
356
  } });
357
- Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function() {
357
+ Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
358
358
  return scope_2.varKinds;
359
359
  } });
360
- exports$1.operators = {
360
+ exports.operators = {
361
361
  GT: new code_1._Code(">"),
362
362
  GTE: new code_1._Code(">="),
363
363
  LT: new code_1._Code("<"),
@@ -770,7 +770,7 @@ function requireCodegen$1() {
770
770
  }
771
771
  // `+=` code
772
772
  add(lhs, rhs) {
773
- return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
773
+ return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
774
774
  }
775
775
  // appends passed SafeExpr to code or executes Block
776
776
  code(c) {
@@ -970,7 +970,7 @@ function requireCodegen$1() {
970
970
  ns[ns.length - 1] = node;
971
971
  }
972
972
  }
973
- exports$1.CodeGen = CodeGen;
973
+ exports.CodeGen = CodeGen;
974
974
  function addNames(names2, from) {
975
975
  for (const n in from)
976
976
  names2[n] = (names2[n] || 0) + (from[n] || 0);
@@ -1011,17 +1011,17 @@ function requireCodegen$1() {
1011
1011
  function not2(x) {
1012
1012
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
1013
1013
  }
1014
- exports$1.not = not2;
1015
- const andCode = mappend(exports$1.operators.AND);
1014
+ exports.not = not2;
1015
+ const andCode = mappend(exports.operators.AND);
1016
1016
  function and(...args) {
1017
1017
  return args.reduce(andCode);
1018
1018
  }
1019
- exports$1.and = and;
1020
- const orCode = mappend(exports$1.operators.OR);
1019
+ exports.and = and;
1020
+ const orCode = mappend(exports.operators.OR);
1021
1021
  function or(...args) {
1022
1022
  return args.reduce(orCode);
1023
1023
  }
1024
- exports$1.or = or;
1024
+ exports.or = or;
1025
1025
  function mappend(op) {
1026
1026
  return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
1027
1027
  }
@@ -1241,19 +1241,19 @@ var hasRequiredErrors$1;
1241
1241
  function requireErrors$1() {
1242
1242
  if (hasRequiredErrors$1) return errors$1;
1243
1243
  hasRequiredErrors$1 = 1;
1244
- (function(exports$1) {
1245
- Object.defineProperty(exports$1, "__esModule", { value: true });
1246
- exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
1244
+ (function(exports) {
1245
+ Object.defineProperty(exports, "__esModule", { value: true });
1246
+ exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
1247
1247
  const codegen_1 = /* @__PURE__ */ requireCodegen$1();
1248
1248
  const util_1 = /* @__PURE__ */ requireUtil$1();
1249
1249
  const names_1 = /* @__PURE__ */ requireNames$1();
1250
- exports$1.keywordError = {
1250
+ exports.keywordError = {
1251
1251
  message: ({ keyword: keyword2 }) => (0, codegen_1.str)`must pass "${keyword2}" keyword validation`
1252
1252
  };
1253
- exports$1.keyword$DataError = {
1253
+ exports.keyword$DataError = {
1254
1254
  message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword2}" keyword is invalid ($data)`
1255
1255
  };
1256
- function reportError(cxt, error = exports$1.keywordError, errorPaths, overrideAllErrors) {
1256
+ function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
1257
1257
  const { it } = cxt;
1258
1258
  const { gen, compositeRule, allErrors } = it;
1259
1259
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -1263,8 +1263,8 @@ function requireErrors$1() {
1263
1263
  returnErrors(it, (0, codegen_1._)`[${errObj}]`);
1264
1264
  }
1265
1265
  }
1266
- exports$1.reportError = reportError;
1267
- function reportExtraError(cxt, error = exports$1.keywordError, errorPaths) {
1266
+ exports.reportError = reportError;
1267
+ function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
1268
1268
  const { it } = cxt;
1269
1269
  const { gen, compositeRule, allErrors } = it;
1270
1270
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -1273,12 +1273,12 @@ function requireErrors$1() {
1273
1273
  returnErrors(it, names_1.default.vErrors);
1274
1274
  }
1275
1275
  }
1276
- exports$1.reportExtraError = reportExtraError;
1276
+ exports.reportExtraError = reportExtraError;
1277
1277
  function resetErrorsCount(gen, errsCount) {
1278
1278
  gen.assign(names_1.default.errors, errsCount);
1279
1279
  gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
1280
1280
  }
1281
- exports$1.resetErrorsCount = resetErrorsCount;
1281
+ exports.resetErrorsCount = resetErrorsCount;
1282
1282
  function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it }) {
1283
1283
  if (errsCount === void 0)
1284
1284
  throw new Error("ajv implementation error");
@@ -1293,7 +1293,7 @@ function requireErrors$1() {
1293
1293
  }
1294
1294
  });
1295
1295
  }
1296
- exports$1.extendErrors = extendErrors;
1296
+ exports.extendErrors = extendErrors;
1297
1297
  function addError(gen, errObj) {
1298
1298
  const err = gen.const("err", errObj);
1299
1299
  gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
@@ -2967,30 +2967,30 @@ var hasRequiredCore$3;
2967
2967
  function requireCore$3() {
2968
2968
  if (hasRequiredCore$3) return core$3;
2969
2969
  hasRequiredCore$3 = 1;
2970
- (function(exports$1) {
2971
- Object.defineProperty(exports$1, "__esModule", { value: true });
2972
- exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
2970
+ (function(exports) {
2971
+ Object.defineProperty(exports, "__esModule", { value: true });
2972
+ exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
2973
2973
  var validate_1 = /* @__PURE__ */ requireValidate$1();
2974
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
2974
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
2975
2975
  return validate_1.KeywordCxt;
2976
2976
  } });
2977
2977
  var codegen_1 = /* @__PURE__ */ requireCodegen$1();
2978
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
2978
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
2979
2979
  return codegen_1._;
2980
2980
  } });
2981
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
2981
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
2982
2982
  return codegen_1.str;
2983
2983
  } });
2984
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
2984
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
2985
2985
  return codegen_1.stringify;
2986
2986
  } });
2987
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
2987
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
2988
2988
  return codegen_1.nil;
2989
2989
  } });
2990
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
2990
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
2991
2991
  return codegen_1.Name;
2992
2992
  } });
2993
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
2993
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
2994
2994
  return codegen_1.CodeGen;
2995
2995
  } });
2996
2996
  const validation_error_1 = /* @__PURE__ */ requireValidation_error$1();
@@ -3444,7 +3444,7 @@ function requireCore$3() {
3444
3444
  }
3445
3445
  Ajv.ValidationError = validation_error_1.default;
3446
3446
  Ajv.MissingRefError = ref_error_1.default;
3447
- exports$1.default = Ajv;
3447
+ exports.default = Ajv;
3448
3448
  function checkOptions(checkOpts, options, msg, log = "error") {
3449
3449
  for (const key in checkOpts) {
3450
3450
  const opt = key;
@@ -4485,13 +4485,13 @@ var hasRequiredDependencies$1;
4485
4485
  function requireDependencies$1() {
4486
4486
  if (hasRequiredDependencies$1) return dependencies$1;
4487
4487
  hasRequiredDependencies$1 = 1;
4488
- (function(exports$1) {
4489
- Object.defineProperty(exports$1, "__esModule", { value: true });
4490
- exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
4488
+ (function(exports) {
4489
+ Object.defineProperty(exports, "__esModule", { value: true });
4490
+ exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
4491
4491
  const codegen_1 = /* @__PURE__ */ requireCodegen$1();
4492
4492
  const util_1 = /* @__PURE__ */ requireUtil$1();
4493
4493
  const code_1 = /* @__PURE__ */ requireCode$2();
4494
- exports$1.error = {
4494
+ exports.error = {
4495
4495
  message: ({ params: { property, depsCount, deps } }) => {
4496
4496
  const property_ies = depsCount === 1 ? "property" : "properties";
4497
4497
  return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
@@ -4506,7 +4506,7 @@ function requireDependencies$1() {
4506
4506
  keyword: "dependencies",
4507
4507
  type: "object",
4508
4508
  schemaType: "object",
4509
- error: exports$1.error,
4509
+ error: exports.error,
4510
4510
  code(cxt) {
4511
4511
  const [propDeps, schDeps] = splitDependencies(cxt);
4512
4512
  validatePropertyDeps(cxt, propDeps);
@@ -4552,7 +4552,7 @@ function requireDependencies$1() {
4552
4552
  }
4553
4553
  }
4554
4554
  }
4555
- exports$1.validatePropertyDeps = validatePropertyDeps;
4555
+ exports.validatePropertyDeps = validatePropertyDeps;
4556
4556
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
4557
4557
  const { gen, data, keyword: keyword2, it } = cxt;
4558
4558
  const valid = gen.name("valid");
@@ -4571,8 +4571,8 @@ function requireDependencies$1() {
4571
4571
  cxt.ok(valid);
4572
4572
  }
4573
4573
  }
4574
- exports$1.validateSchemaDeps = validateSchemaDeps;
4575
- exports$1.default = def;
4574
+ exports.validateSchemaDeps = validateSchemaDeps;
4575
+ exports.default = def;
4576
4576
  })(dependencies$1);
4577
4577
  return dependencies$1;
4578
4578
  }
@@ -5889,9 +5889,9 @@ var hasRequired_2020;
5889
5889
  function require_2020() {
5890
5890
  if (hasRequired_2020) return _2020.exports;
5891
5891
  hasRequired_2020 = 1;
5892
- (function(module, exports$1) {
5893
- Object.defineProperty(exports$1, "__esModule", { value: true });
5894
- exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv2020 = void 0;
5892
+ (function(module, exports) {
5893
+ Object.defineProperty(exports, "__esModule", { value: true });
5894
+ exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2020 = void 0;
5895
5895
  const core_1 = /* @__PURE__ */ requireCore$3();
5896
5896
  const draft2020_1 = /* @__PURE__ */ requireDraft2020();
5897
5897
  const discriminator_1 = /* @__PURE__ */ requireDiscriminator$1();
@@ -5924,40 +5924,40 @@ function require_2020() {
5924
5924
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
5925
5925
  }
5926
5926
  }
5927
- exports$1.Ajv2020 = Ajv2020;
5928
- module.exports = exports$1 = Ajv2020;
5927
+ exports.Ajv2020 = Ajv2020;
5928
+ module.exports = exports = Ajv2020;
5929
5929
  module.exports.Ajv2020 = Ajv2020;
5930
- Object.defineProperty(exports$1, "__esModule", { value: true });
5931
- exports$1.default = Ajv2020;
5930
+ Object.defineProperty(exports, "__esModule", { value: true });
5931
+ exports.default = Ajv2020;
5932
5932
  var validate_1 = /* @__PURE__ */ requireValidate$1();
5933
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
5933
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
5934
5934
  return validate_1.KeywordCxt;
5935
5935
  } });
5936
5936
  var codegen_1 = /* @__PURE__ */ requireCodegen$1();
5937
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
5937
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
5938
5938
  return codegen_1._;
5939
5939
  } });
5940
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
5940
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
5941
5941
  return codegen_1.str;
5942
5942
  } });
5943
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
5943
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
5944
5944
  return codegen_1.stringify;
5945
5945
  } });
5946
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
5946
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
5947
5947
  return codegen_1.nil;
5948
5948
  } });
5949
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
5949
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
5950
5950
  return codegen_1.Name;
5951
5951
  } });
5952
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
5952
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
5953
5953
  return codegen_1.CodeGen;
5954
5954
  } });
5955
5955
  var validation_error_1 = /* @__PURE__ */ requireValidation_error$1();
5956
- Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
5956
+ Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
5957
5957
  return validation_error_1.default;
5958
5958
  } });
5959
5959
  var ref_error_1 = /* @__PURE__ */ requireRef_error$1();
5960
- Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
5960
+ Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
5961
5961
  return ref_error_1.default;
5962
5962
  } });
5963
5963
  })(_2020, _2020.exports);
@@ -5975,17 +5975,17 @@ var hasRequiredCode$1;
5975
5975
  function requireCode$1() {
5976
5976
  if (hasRequiredCode$1) return code$1;
5977
5977
  hasRequiredCode$1 = 1;
5978
- (function(exports$1) {
5979
- Object.defineProperty(exports$1, "__esModule", { value: true });
5980
- exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
5978
+ (function(exports) {
5979
+ Object.defineProperty(exports, "__esModule", { value: true });
5980
+ 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 = void 0;
5981
5981
  class _CodeOrName {
5982
5982
  }
5983
- exports$1._CodeOrName = _CodeOrName;
5984
- exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
5983
+ exports._CodeOrName = _CodeOrName;
5984
+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
5985
5985
  class Name extends _CodeOrName {
5986
5986
  constructor(s) {
5987
5987
  super();
5988
- if (!exports$1.IDENTIFIER.test(s))
5988
+ if (!exports.IDENTIFIER.test(s))
5989
5989
  throw new Error("CodeGen: name must be a valid identifier");
5990
5990
  this.str = s;
5991
5991
  }
@@ -5999,7 +5999,7 @@ function requireCode$1() {
5999
5999
  return { [this.str]: 1 };
6000
6000
  }
6001
6001
  }
6002
- exports$1.Name = Name;
6002
+ exports.Name = Name;
6003
6003
  class _Code extends _CodeOrName {
6004
6004
  constructor(code2) {
6005
6005
  super();
@@ -6027,8 +6027,8 @@ function requireCode$1() {
6027
6027
  }, {});
6028
6028
  }
6029
6029
  }
6030
- exports$1._Code = _Code;
6031
- exports$1.nil = new _Code("");
6030
+ exports._Code = _Code;
6031
+ exports.nil = new _Code("");
6032
6032
  function _(strs, ...args) {
6033
6033
  const code2 = [strs[0]];
6034
6034
  let i = 0;
@@ -6038,7 +6038,7 @@ function requireCode$1() {
6038
6038
  }
6039
6039
  return new _Code(code2);
6040
6040
  }
6041
- exports$1._ = _;
6041
+ exports._ = _;
6042
6042
  const plus = new _Code("+");
6043
6043
  function str(strs, ...args) {
6044
6044
  const expr = [safeStringify(strs[0])];
@@ -6051,7 +6051,7 @@ function requireCode$1() {
6051
6051
  optimize(expr);
6052
6052
  return new _Code(expr);
6053
6053
  }
6054
- exports$1.str = str;
6054
+ exports.str = str;
6055
6055
  function addCodeArg(code2, arg) {
6056
6056
  if (arg instanceof _Code)
6057
6057
  code2.push(...arg._items);
@@ -6060,7 +6060,7 @@ function requireCode$1() {
6060
6060
  else
6061
6061
  code2.push(interpolate(arg));
6062
6062
  }
6063
- exports$1.addCodeArg = addCodeArg;
6063
+ exports.addCodeArg = addCodeArg;
6064
6064
  function optimize(expr) {
6065
6065
  let i = 1;
6066
6066
  while (i < expr.length - 1) {
@@ -6096,33 +6096,33 @@ function requireCode$1() {
6096
6096
  function strConcat(c1, c2) {
6097
6097
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
6098
6098
  }
6099
- exports$1.strConcat = strConcat;
6099
+ exports.strConcat = strConcat;
6100
6100
  function interpolate(x) {
6101
6101
  return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
6102
6102
  }
6103
6103
  function stringify(x) {
6104
6104
  return new _Code(safeStringify(x));
6105
6105
  }
6106
- exports$1.stringify = stringify;
6106
+ exports.stringify = stringify;
6107
6107
  function safeStringify(x) {
6108
6108
  return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
6109
6109
  }
6110
- exports$1.safeStringify = safeStringify;
6110
+ exports.safeStringify = safeStringify;
6111
6111
  function getProperty(key) {
6112
- return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
6112
+ return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
6113
6113
  }
6114
- exports$1.getProperty = getProperty;
6114
+ exports.getProperty = getProperty;
6115
6115
  function getEsmExportName(key) {
6116
- if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
6116
+ if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
6117
6117
  return new _Code(`${key}`);
6118
6118
  }
6119
6119
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
6120
6120
  }
6121
- exports$1.getEsmExportName = getEsmExportName;
6121
+ exports.getEsmExportName = getEsmExportName;
6122
6122
  function regexpCode(rx) {
6123
6123
  return new _Code(rx.toString());
6124
6124
  }
6125
- exports$1.regexpCode = regexpCode;
6125
+ exports.regexpCode = regexpCode;
6126
6126
  })(code$1);
6127
6127
  return code$1;
6128
6128
  }
@@ -6131,9 +6131,9 @@ var hasRequiredScope;
6131
6131
  function requireScope() {
6132
6132
  if (hasRequiredScope) return scope;
6133
6133
  hasRequiredScope = 1;
6134
- (function(exports$1) {
6135
- Object.defineProperty(exports$1, "__esModule", { value: true });
6136
- exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
6134
+ (function(exports) {
6135
+ Object.defineProperty(exports, "__esModule", { value: true });
6136
+ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
6137
6137
  const code_1 = /* @__PURE__ */ requireCode$1();
6138
6138
  class ValueError extends Error {
6139
6139
  constructor(name) {
@@ -6145,8 +6145,8 @@ function requireScope() {
6145
6145
  (function(UsedValueState2) {
6146
6146
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
6147
6147
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
6148
- })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
6149
- exports$1.varKinds = {
6148
+ })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
6149
+ exports.varKinds = {
6150
6150
  const: new code_1.Name("const"),
6151
6151
  let: new code_1.Name("let"),
6152
6152
  var: new code_1.Name("var")
@@ -6175,7 +6175,7 @@ function requireScope() {
6175
6175
  return this._names[prefix] = { prefix, index: 0 };
6176
6176
  }
6177
6177
  }
6178
- exports$1.Scope = Scope;
6178
+ exports.Scope = Scope;
6179
6179
  class ValueScopeName extends code_1.Name {
6180
6180
  constructor(prefix, nameStr) {
6181
6181
  super(nameStr);
@@ -6186,7 +6186,7 @@ function requireScope() {
6186
6186
  this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
6187
6187
  }
6188
6188
  }
6189
- exports$1.ValueScopeName = ValueScopeName;
6189
+ exports.ValueScopeName = ValueScopeName;
6190
6190
  const line = (0, code_1._)`\n`;
6191
6191
  class ValueScope extends Scope {
6192
6192
  constructor(opts) {
@@ -6256,7 +6256,7 @@ function requireScope() {
6256
6256
  nameSet.set(name, UsedValueState.Started);
6257
6257
  let c = valueCode(name);
6258
6258
  if (c) {
6259
- const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
6259
+ const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
6260
6260
  code2 = (0, code_1._)`${code2}${def} ${name} = ${c};${this.opts._n}`;
6261
6261
  } else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
6262
6262
  code2 = (0, code_1._)`${code2}${c}${this.opts._n}`;
@@ -6269,7 +6269,7 @@ function requireScope() {
6269
6269
  return code2;
6270
6270
  }
6271
6271
  }
6272
- exports$1.ValueScope = ValueScope;
6272
+ exports.ValueScope = ValueScope;
6273
6273
  })(scope);
6274
6274
  return scope;
6275
6275
  }
@@ -6277,50 +6277,50 @@ var hasRequiredCodegen;
6277
6277
  function requireCodegen() {
6278
6278
  if (hasRequiredCodegen) return codegen;
6279
6279
  hasRequiredCodegen = 1;
6280
- (function(exports$1) {
6281
- Object.defineProperty(exports$1, "__esModule", { value: true });
6282
- exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
6280
+ (function(exports) {
6281
+ Object.defineProperty(exports, "__esModule", { value: true });
6282
+ 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._ = void 0;
6283
6283
  const code_1 = /* @__PURE__ */ requireCode$1();
6284
6284
  const scope_1 = /* @__PURE__ */ requireScope();
6285
6285
  var code_2 = /* @__PURE__ */ requireCode$1();
6286
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
6286
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
6287
6287
  return code_2._;
6288
6288
  } });
6289
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
6289
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
6290
6290
  return code_2.str;
6291
6291
  } });
6292
- Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function() {
6292
+ Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
6293
6293
  return code_2.strConcat;
6294
6294
  } });
6295
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
6295
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
6296
6296
  return code_2.nil;
6297
6297
  } });
6298
- Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function() {
6298
+ Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
6299
6299
  return code_2.getProperty;
6300
6300
  } });
6301
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
6301
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
6302
6302
  return code_2.stringify;
6303
6303
  } });
6304
- Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function() {
6304
+ Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
6305
6305
  return code_2.regexpCode;
6306
6306
  } });
6307
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
6307
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
6308
6308
  return code_2.Name;
6309
6309
  } });
6310
6310
  var scope_2 = /* @__PURE__ */ requireScope();
6311
- Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function() {
6311
+ Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
6312
6312
  return scope_2.Scope;
6313
6313
  } });
6314
- Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function() {
6314
+ Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
6315
6315
  return scope_2.ValueScope;
6316
6316
  } });
6317
- Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function() {
6317
+ Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
6318
6318
  return scope_2.ValueScopeName;
6319
6319
  } });
6320
- Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function() {
6320
+ Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
6321
6321
  return scope_2.varKinds;
6322
6322
  } });
6323
- exports$1.operators = {
6323
+ exports.operators = {
6324
6324
  GT: new code_1._Code(">"),
6325
6325
  GTE: new code_1._Code(">="),
6326
6326
  LT: new code_1._Code("<"),
@@ -6733,7 +6733,7 @@ function requireCodegen() {
6733
6733
  }
6734
6734
  // `+=` code
6735
6735
  add(lhs, rhs) {
6736
- return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
6736
+ return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
6737
6737
  }
6738
6738
  // appends passed SafeExpr to code or executes Block
6739
6739
  code(c) {
@@ -6933,7 +6933,7 @@ function requireCodegen() {
6933
6933
  ns[ns.length - 1] = node;
6934
6934
  }
6935
6935
  }
6936
- exports$1.CodeGen = CodeGen;
6936
+ exports.CodeGen = CodeGen;
6937
6937
  function addNames(names2, from) {
6938
6938
  for (const n in from)
6939
6939
  names2[n] = (names2[n] || 0) + (from[n] || 0);
@@ -6974,17 +6974,17 @@ function requireCodegen() {
6974
6974
  function not2(x) {
6975
6975
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
6976
6976
  }
6977
- exports$1.not = not2;
6978
- const andCode = mappend(exports$1.operators.AND);
6977
+ exports.not = not2;
6978
+ const andCode = mappend(exports.operators.AND);
6979
6979
  function and(...args) {
6980
6980
  return args.reduce(andCode);
6981
6981
  }
6982
- exports$1.and = and;
6983
- const orCode = mappend(exports$1.operators.OR);
6982
+ exports.and = and;
6983
+ const orCode = mappend(exports.operators.OR);
6984
6984
  function or(...args) {
6985
6985
  return args.reduce(orCode);
6986
6986
  }
6987
- exports$1.or = or;
6987
+ exports.or = or;
6988
6988
  function mappend(op) {
6989
6989
  return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
6990
6990
  }
@@ -7204,19 +7204,19 @@ var hasRequiredErrors;
7204
7204
  function requireErrors() {
7205
7205
  if (hasRequiredErrors) return errors;
7206
7206
  hasRequiredErrors = 1;
7207
- (function(exports$1) {
7208
- Object.defineProperty(exports$1, "__esModule", { value: true });
7209
- exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
7207
+ (function(exports) {
7208
+ Object.defineProperty(exports, "__esModule", { value: true });
7209
+ exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
7210
7210
  const codegen_1 = /* @__PURE__ */ requireCodegen();
7211
7211
  const util_1 = /* @__PURE__ */ requireUtil();
7212
7212
  const names_1 = /* @__PURE__ */ requireNames();
7213
- exports$1.keywordError = {
7213
+ exports.keywordError = {
7214
7214
  message: ({ keyword: keyword2 }) => (0, codegen_1.str)`must pass "${keyword2}" keyword validation`
7215
7215
  };
7216
- exports$1.keyword$DataError = {
7216
+ exports.keyword$DataError = {
7217
7217
  message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword2}" keyword is invalid ($data)`
7218
7218
  };
7219
- function reportError(cxt, error = exports$1.keywordError, errorPaths, overrideAllErrors) {
7219
+ function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
7220
7220
  const { it } = cxt;
7221
7221
  const { gen, compositeRule, allErrors } = it;
7222
7222
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -7226,8 +7226,8 @@ function requireErrors() {
7226
7226
  returnErrors(it, (0, codegen_1._)`[${errObj}]`);
7227
7227
  }
7228
7228
  }
7229
- exports$1.reportError = reportError;
7230
- function reportExtraError(cxt, error = exports$1.keywordError, errorPaths) {
7229
+ exports.reportError = reportError;
7230
+ function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
7231
7231
  const { it } = cxt;
7232
7232
  const { gen, compositeRule, allErrors } = it;
7233
7233
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -7236,12 +7236,12 @@ function requireErrors() {
7236
7236
  returnErrors(it, names_1.default.vErrors);
7237
7237
  }
7238
7238
  }
7239
- exports$1.reportExtraError = reportExtraError;
7239
+ exports.reportExtraError = reportExtraError;
7240
7240
  function resetErrorsCount(gen, errsCount) {
7241
7241
  gen.assign(names_1.default.errors, errsCount);
7242
7242
  gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
7243
7243
  }
7244
- exports$1.resetErrorsCount = resetErrorsCount;
7244
+ exports.resetErrorsCount = resetErrorsCount;
7245
7245
  function extendErrors({ gen, keyword: keyword2, schemaValue, data, errsCount, it }) {
7246
7246
  if (errsCount === void 0)
7247
7247
  throw new Error("ajv implementation error");
@@ -7256,7 +7256,7 @@ function requireErrors() {
7256
7256
  }
7257
7257
  });
7258
7258
  }
7259
- exports$1.extendErrors = extendErrors;
7259
+ exports.extendErrors = extendErrors;
7260
7260
  function addError(gen, errObj) {
7261
7261
  const err = gen.const("err", errObj);
7262
7262
  gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
@@ -8930,30 +8930,30 @@ var hasRequiredCore$1;
8930
8930
  function requireCore$1() {
8931
8931
  if (hasRequiredCore$1) return core$1;
8932
8932
  hasRequiredCore$1 = 1;
8933
- (function(exports$1) {
8934
- Object.defineProperty(exports$1, "__esModule", { value: true });
8935
- exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
8933
+ (function(exports) {
8934
+ Object.defineProperty(exports, "__esModule", { value: true });
8935
+ exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
8936
8936
  var validate_1 = /* @__PURE__ */ requireValidate();
8937
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
8937
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
8938
8938
  return validate_1.KeywordCxt;
8939
8939
  } });
8940
8940
  var codegen_1 = /* @__PURE__ */ requireCodegen();
8941
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
8941
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
8942
8942
  return codegen_1._;
8943
8943
  } });
8944
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
8944
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
8945
8945
  return codegen_1.str;
8946
8946
  } });
8947
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
8947
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
8948
8948
  return codegen_1.stringify;
8949
8949
  } });
8950
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
8950
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
8951
8951
  return codegen_1.nil;
8952
8952
  } });
8953
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
8953
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
8954
8954
  return codegen_1.Name;
8955
8955
  } });
8956
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
8956
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
8957
8957
  return codegen_1.CodeGen;
8958
8958
  } });
8959
8959
  const validation_error_1 = /* @__PURE__ */ requireValidation_error();
@@ -9407,7 +9407,7 @@ function requireCore$1() {
9407
9407
  }
9408
9408
  Ajv.ValidationError = validation_error_1.default;
9409
9409
  Ajv.MissingRefError = ref_error_1.default;
9410
- exports$1.default = Ajv;
9410
+ exports.default = Ajv;
9411
9411
  function checkOptions(checkOpts, options, msg, log = "error") {
9412
9412
  for (const key in checkOpts) {
9413
9413
  const opt = key;
@@ -10448,13 +10448,13 @@ var hasRequiredDependencies;
10448
10448
  function requireDependencies() {
10449
10449
  if (hasRequiredDependencies) return dependencies;
10450
10450
  hasRequiredDependencies = 1;
10451
- (function(exports$1) {
10452
- Object.defineProperty(exports$1, "__esModule", { value: true });
10453
- exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
10451
+ (function(exports) {
10452
+ Object.defineProperty(exports, "__esModule", { value: true });
10453
+ exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
10454
10454
  const codegen_1 = /* @__PURE__ */ requireCodegen();
10455
10455
  const util_1 = /* @__PURE__ */ requireUtil();
10456
10456
  const code_1 = /* @__PURE__ */ requireCode();
10457
- exports$1.error = {
10457
+ exports.error = {
10458
10458
  message: ({ params: { property, depsCount, deps } }) => {
10459
10459
  const property_ies = depsCount === 1 ? "property" : "properties";
10460
10460
  return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
@@ -10469,7 +10469,7 @@ function requireDependencies() {
10469
10469
  keyword: "dependencies",
10470
10470
  type: "object",
10471
10471
  schemaType: "object",
10472
- error: exports$1.error,
10472
+ error: exports.error,
10473
10473
  code(cxt) {
10474
10474
  const [propDeps, schDeps] = splitDependencies(cxt);
10475
10475
  validatePropertyDeps(cxt, propDeps);
@@ -10515,7 +10515,7 @@ function requireDependencies() {
10515
10515
  }
10516
10516
  }
10517
10517
  }
10518
- exports$1.validatePropertyDeps = validatePropertyDeps;
10518
+ exports.validatePropertyDeps = validatePropertyDeps;
10519
10519
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
10520
10520
  const { gen, data, keyword: keyword2, it } = cxt;
10521
10521
  const valid = gen.name("valid");
@@ -10534,8 +10534,8 @@ function requireDependencies() {
10534
10534
  cxt.ok(valid);
10535
10535
  }
10536
10536
  }
10537
- exports$1.validateSchemaDeps = validateSchemaDeps;
10538
- exports$1.default = def;
10537
+ exports.validateSchemaDeps = validateSchemaDeps;
10538
+ exports.default = def;
10539
10539
  })(dependencies);
10540
10540
  return dependencies;
10541
10541
  }
@@ -11370,9 +11370,9 @@ var hasRequiredAjv;
11370
11370
  function requireAjv() {
11371
11371
  if (hasRequiredAjv) return ajv.exports;
11372
11372
  hasRequiredAjv = 1;
11373
- (function(module, exports$1) {
11374
- Object.defineProperty(exports$1, "__esModule", { value: true });
11375
- exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
11373
+ (function(module, exports) {
11374
+ Object.defineProperty(exports, "__esModule", { value: true });
11375
+ exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
11376
11376
  const core_1 = /* @__PURE__ */ requireCore$1();
11377
11377
  const draft7_1 = /* @__PURE__ */ requireDraft7();
11378
11378
  const discriminator_1 = /* @__PURE__ */ requireDiscriminator();
@@ -11398,40 +11398,40 @@ function requireAjv() {
11398
11398
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
11399
11399
  }
11400
11400
  }
11401
- exports$1.Ajv = Ajv;
11402
- module.exports = exports$1 = Ajv;
11401
+ exports.Ajv = Ajv;
11402
+ module.exports = exports = Ajv;
11403
11403
  module.exports.Ajv = Ajv;
11404
- Object.defineProperty(exports$1, "__esModule", { value: true });
11405
- exports$1.default = Ajv;
11404
+ Object.defineProperty(exports, "__esModule", { value: true });
11405
+ exports.default = Ajv;
11406
11406
  var validate_1 = /* @__PURE__ */ requireValidate();
11407
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
11407
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
11408
11408
  return validate_1.KeywordCxt;
11409
11409
  } });
11410
11410
  var codegen_1 = /* @__PURE__ */ requireCodegen();
11411
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
11411
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
11412
11412
  return codegen_1._;
11413
11413
  } });
11414
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
11414
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
11415
11415
  return codegen_1.str;
11416
11416
  } });
11417
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
11417
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
11418
11418
  return codegen_1.stringify;
11419
11419
  } });
11420
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
11420
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
11421
11421
  return codegen_1.nil;
11422
11422
  } });
11423
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
11423
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
11424
11424
  return codegen_1.Name;
11425
11425
  } });
11426
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
11426
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
11427
11427
  return codegen_1.CodeGen;
11428
11428
  } });
11429
11429
  var validation_error_1 = /* @__PURE__ */ requireValidation_error();
11430
- Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
11430
+ Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
11431
11431
  return validation_error_1.default;
11432
11432
  } });
11433
11433
  var ref_error_1 = /* @__PURE__ */ requireRef_error();
11434
- Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
11434
+ Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
11435
11435
  return ref_error_1.default;
11436
11436
  } });
11437
11437
  })(ajv, ajv.exports);